alice-and-bot-mcp 1.0.78 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/alice-and-bot-mcp.js +32 -32
- package/package.json +1 -1
package/bin/alice-and-bot-mcp.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
3
|
-
]))+`;We.KANJI=new RegExp(Rr,"g");We.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");We.BYTE=new RegExp(
|
|
4
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};rf.exports=ur});var of=O((
|
|
5
|
-
Suggested mode is: `+V.toString(i));switch(n===V.KANJI&&!pi.isKanjiModeEnabled()&&(n=V.BYTE),n){case V.NUMERIC:return new cf(e);case V.ALPHANUMERIC:return new uf(e);case V.KANJI:return new df(e);case V.BYTE:return new lf(e)}}lr.fromArray=function(t){return t.reduce(function(n,i){return typeof i=="string"?n.push(sf(i,null)):i.data&&n.push(sf(i.data,i.mode)),n},[])};lr.fromString=function(t,n){let i=ff(t,pi.isKanjiModeEnabled()),r=
|
|
2
|
+
var Eg=Object.create;var No=Object.defineProperty;var Pg=Object.getOwnPropertyDescriptor;var Og=Object.getOwnPropertyNames;var Ng=Object.getPrototypeOf,Ag=Object.prototype.hasOwnProperty;import{createRequire as __deno_internal_createRequire} from "node:module";var ee=__deno_internal_createRequire(import.meta.url);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nt=(e,t)=>{for(var n in t)No(e,n,{get:t[n],enumerable:!0})},Cg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Og(t))!Ag.call(e,r)&&r!==n&&No(e,r,{get:()=>t[r],enumerable:!(i=Pg(t,r))||i.enumerable});return e};var Vl=(e,t,n)=>(n=e!=null?Eg(Ng(e)):{},Cg(1 ?No(n,"default",{value:e,enumerable:!0}):n,e));var Ho=O((Zk,wd)=>{wd.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var ct=O(Ct=>{var Wo,Av=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ct.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ct.getSymbolTotalCodewords=function(t){return Av[t]};Ct.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ct.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Wo=t};Ct.isKanjiModeEnabled=function(){return typeof Wo<"u"};Ct.toSJIS=function(t){return Wo(t)}});var ai=O(we=>{we.L={bit:1};we.M={bit:0};we.Q={bit:3};we.H={bit:2};function Cv(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return we.L;case"m":case"medium":return we.M;case"q":case"quartile":return we.Q;case"h":case"high":return we.H;default:throw new Error("Unknown EC Level: "+e)}}we.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};we.from=function(t,n){if(we.isValid(t))return t;try{return Cv(t)}catch{return n}}});var Id=O((Fk,Sd)=>{function kd(){this.buffer=[],this.length=0}kd.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Sd.exports=kd});var zd=O((Vk,Td)=>{function Ar(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Ar.prototype.set=function(e,t,n,i){let r=e*this.size+t;this.data[r]=n,i&&(this.reservedBit[r]=!0)};Ar.prototype.get=function(e,t){return this.data[e*this.size+t]};Ar.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Ar.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};Td.exports=Ar});var jd=O(si=>{var Uv=ct().getSymbolSize;si.getRowColCoords=function(t){if(t===1)return[];let n=Math.floor(t/7)+2,i=Uv(t),r=i===145?26:Math.ceil((i-13)/(2*n-2))*2,o=[i-7];for(let a=1;a<n-1;a++)o[a]=o[a-1]-r;return o.push(6),o.reverse()};si.getPositions=function(t){let n=[],i=si.getRowColCoords(t),r=i.length;for(let o=0;o<r;o++)for(let a=0;a<r;a++)o===0&&a===0||o===0&&a===r-1||o===r-1&&a===0||n.push([i[o],i[a]]);return n}});var Od=O(Pd=>{var Rv=ct().getSymbolSize,Ed=7;Pd.getPositions=function(t){let n=Rv(t);return[[0,0],[n-Ed,0],[0,n-Ed]]}});var Nd=O(H=>{H.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Ut={N1:3,N2:3,N3:40,N4:10};H.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};H.from=function(t){return H.isValid(t)?parseInt(t,10):void 0};H.getPenaltyN1=function(t){let n=t.size,i=0,r=0,o=0,a=null,s=null;for(let c=0;c<n;c++){r=o=0,a=s=null;for(let d=0;d<n;d++){let f=t.get(c,d);f===a?r++:(r>=5&&(i+=Ut.N1+(r-5)),a=f,r=1),f=t.get(d,c),f===s?o++:(o>=5&&(i+=Ut.N1+(o-5)),s=f,o=1)}r>=5&&(i+=Ut.N1+(r-5)),o>=5&&(i+=Ut.N1+(o-5))}return i};H.getPenaltyN2=function(t){let n=t.size,i=0;for(let r=0;r<n-1;r++)for(let o=0;o<n-1;o++){let a=t.get(r,o)+t.get(r,o+1)+t.get(r+1,o)+t.get(r+1,o+1);(a===4||a===0)&&i++}return i*Ut.N2};H.getPenaltyN3=function(t){let n=t.size,i=0,r=0,o=0;for(let a=0;a<n;a++){r=o=0;for(let s=0;s<n;s++)r=r<<1&2047|t.get(a,s),s>=10&&(r===1488||r===93)&&i++,o=o<<1&2047|t.get(s,a),s>=10&&(o===1488||o===93)&&i++}return i*Ut.N3};H.getPenaltyN4=function(t){let n=0,i=t.data.length;for(let o=0;o<i;o++)n+=t.data[o];return Math.abs(Math.ceil(n*100/i/5)-10)*Ut.N4};function Lv(e,t,n){switch(e){case H.Patterns.PATTERN000:return(t+n)%2===0;case H.Patterns.PATTERN001:return t%2===0;case H.Patterns.PATTERN010:return n%3===0;case H.Patterns.PATTERN011:return(t+n)%3===0;case H.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case H.Patterns.PATTERN101:return t*n%2+t*n%3===0;case H.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case H.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}H.applyMask=function(t,n){let i=n.size;for(let r=0;r<i;r++)for(let o=0;o<i;o++)n.isReserved(o,r)||n.xor(o,r,Lv(t,o,r))};H.getBestMask=function(t,n){let i=Object.keys(H.Patterns).length,r=0,o=1/0;for(let a=0;a<i;a++){n(a),H.applyMask(a,t);let s=H.getPenaltyN1(t)+H.getPenaltyN2(t)+H.getPenaltyN3(t)+H.getPenaltyN4(t);H.applyMask(a,t),s<o&&(o=s,r=a)}return r}});var Go=O(Jo=>{var ut=ai(),ci=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ui=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Jo.getBlocksCount=function(t,n){switch(n){case ut.L:return ci[(t-1)*4+0];case ut.M:return ci[(t-1)*4+1];case ut.Q:return ci[(t-1)*4+2];case ut.H:return ci[(t-1)*4+3];default:return}};Jo.getTotalCodewordsCount=function(t,n){switch(n){case ut.L:return ui[(t-1)*4+0];case ut.M:return ui[(t-1)*4+1];case ut.Q:return ui[(t-1)*4+2];case ut.H:return ui[(t-1)*4+3];default:return}}});var Ad=O(di=>{var Cr=new Uint8Array(512),li=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Cr[n]=t,li[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Cr[n]=Cr[n-255]})();di.log=function(t){if(t<1)throw new Error("log("+t+")");return li[t]};di.exp=function(t){return Cr[t]};di.mul=function(t,n){return t===0||n===0?0:Cr[li[t]+li[n]]}});var Cd=O(Ur=>{var Yo=Ad();Ur.mul=function(t,n){let i=new Uint8Array(t.length+n.length-1);for(let r=0;r<t.length;r++)for(let o=0;o<n.length;o++)i[r+o]^=Yo.mul(t[r],n[o]);return i};Ur.mod=function(t,n){let i=new Uint8Array(t);for(;i.length-n.length>=0;){let r=i[0];for(let a=0;a<n.length;a++)i[a]^=Yo.mul(n[a],r);let o=0;for(;o<i.length&&i[o]===0;)o++;i=i.slice(o)}return i};Ur.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let i=0;i<t;i++)n=Ur.mul(n,new Uint8Array([1,Yo.exp(i)]));return n}});var Ld=O((Yk,Rd)=>{var Ud=Cd();function Xo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Xo.prototype.initialize=function(t){this.degree=t,this.genPoly=Ud.generateECPolynomial(this.degree)};Xo.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let n=new Uint8Array(t.length+this.degree);n.set(t);let i=Ud.mod(n,this.genPoly),r=this.degree-i.length;if(r>0){let o=new Uint8Array(this.degree);return o.set(i,r),o}return i};Rd.exports=Xo});var Qo=O(Dd=>{Dd.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var ea=O(We=>{var Zd="[0-9]+",Dv="[A-Z $%*+\\-./:]+",Rr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Rr=Rr.replace(/u/g,"\\u");var Zv="(?:(?![A-Z0-9 $%*+\\-./:]|"+Rr+`)(?:.|[\r
|
|
3
|
+
]))+`;We.KANJI=new RegExp(Rr,"g");We.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");We.BYTE=new RegExp(Zv,"g");We.NUMERIC=new RegExp(Zd,"g");We.ALPHANUMERIC=new RegExp(Dv,"g");var Bv=new RegExp("^"+Rr+"$"),Mv=new RegExp("^"+Zd+"$"),Fv=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");We.testKanji=function(t){return Bv.test(t)};We.testNumeric=function(t){return Mv.test(t)};We.testAlphanumeric=function(t){return Fv.test(t)}});var lt=O(X=>{var Vv=Qo(),ta=ea();X.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};X.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};X.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};X.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};X.MIXED={bit:-1};X.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Vv.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]};X.getBestModeForData=function(t){return ta.testNumeric(t)?X.NUMERIC:ta.testAlphanumeric(t)?X.ALPHANUMERIC:ta.testKanji(t)?X.KANJI:X.BYTE};X.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};X.isValid=function(t){return t&&t.bit&&t.ccBits};function qv(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return X.NUMERIC;case"alphanumeric":return X.ALPHANUMERIC;case"kanji":return X.KANJI;case"byte":return X.BYTE;default:throw new Error("Unknown mode: "+e)}}X.from=function(t,n){if(X.isValid(t))return t;try{return qv(t)}catch{return n}}});var qd=O(Rt=>{var fi=ct(),Kv=Go(),Bd=ai(),dt=lt(),ra=Qo(),Fd=7973,Md=fi.getBCHDigit(Fd);function Hv(e,t,n){for(let i=1;i<=40;i++)if(t<=Rt.getCapacity(i,n,e))return i}function Vd(e,t){return dt.getCharCountIndicator(e,t)+4}function Wv(e,t){let n=0;return e.forEach(function(i){let r=Vd(i.mode,t);n+=r+i.getBitsLength()}),n}function Jv(e,t){for(let n=1;n<=40;n++)if(Wv(e,n)<=Rt.getCapacity(n,t,dt.MIXED))return n}Rt.from=function(t,n){return ra.isValid(t)?parseInt(t,10):n};Rt.getCapacity=function(t,n,i){if(!ra.isValid(t))throw new Error("Invalid QR Code version");typeof i>"u"&&(i=dt.BYTE);let r=fi.getSymbolTotalCodewords(t),o=Kv.getTotalCodewordsCount(t,n),a=(r-o)*8;if(i===dt.MIXED)return a;let s=a-Vd(i,t);switch(i){case dt.NUMERIC:return Math.floor(s/10*3);case dt.ALPHANUMERIC:return Math.floor(s/11*2);case dt.KANJI:return Math.floor(s/13);case dt.BYTE:default:return Math.floor(s/8)}};Rt.getBestVersionForData=function(t,n){let i,r=Bd.from(n,Bd.M);if(Array.isArray(t)){if(t.length>1)return Jv(t,r);if(t.length===0)return 1;i=t[0]}else i=t;return Hv(i.mode,i.getLength(),r)};Rt.getEncodedBits=function(t){if(!ra.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;fi.getBCHDigit(n)-Md>=0;)n^=Fd<<fi.getBCHDigit(n)-Md;return t<<12|n}});var Jd=O(Wd=>{var na=ct(),Hd=1335,Gv=21522,Kd=na.getBCHDigit(Hd);Wd.getEncodedBits=function(t,n){let i=t.bit<<3|n,r=i<<10;for(;na.getBCHDigit(r)-Kd>=0;)r^=Hd<<na.getBCHDigit(r)-Kd;return(i<<10|r)^Gv}});var Yd=O((nS,Gd)=>{var Yv=lt();function ar(e){this.mode=Yv.NUMERIC,this.data=e.toString()}ar.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ar.prototype.getLength=function(){return this.data.length};ar.prototype.getBitsLength=function(){return ar.getBitsLength(this.data.length)};ar.prototype.write=function(t){let n,i,r;for(n=0;n+3<=this.data.length;n+=3)i=this.data.substr(n,3),r=parseInt(i,10),t.put(r,10);let o=this.data.length-n;o>0&&(i=this.data.substr(n),r=parseInt(i,10),t.put(r,o*3+1))};Gd.exports=ar});var Qd=O((iS,Xd)=>{var Xv=lt(),ia=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function sr(e){this.mode=Xv.ALPHANUMERIC,this.data=e}sr.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};sr.prototype.getLength=function(){return this.data.length};sr.prototype.getBitsLength=function(){return sr.getBitsLength(this.data.length)};sr.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let i=ia.indexOf(this.data[n])*45;i+=ia.indexOf(this.data[n+1]),t.put(i,11)}this.data.length%2&&t.put(ia.indexOf(this.data[n]),6)};Xd.exports=sr});var tf=O((oS,ef)=>{var Qv=lt();function cr(e){this.mode=Qv.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}cr.getBitsLength=function(t){return t*8};cr.prototype.getLength=function(){return this.data.length};cr.prototype.getBitsLength=function(){return cr.getBitsLength(this.data.length)};cr.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};ef.exports=cr});var nf=O((aS,rf)=>{var e_=lt(),t_=ct();function ur(e){this.mode=e_.KANJI,this.data=e}ur.getBitsLength=function(t){return t*13};ur.prototype.getLength=function(){return this.data.length};ur.prototype.getBitsLength=function(){return ur.getBitsLength(this.data.length)};ur.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=t_.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
4
|
+
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};rf.exports=ur});var of=O((sS,oa)=>{"use strict";var Lr={single_source_shortest_paths:function(e,t,n){var i={},r={};r[t]=0;var o=Lr.PriorityQueue.make();o.push(t,0);for(var a,s,c,d,f,h,v,m,p;!o.empty();){a=o.pop(),s=a.value,d=a.cost,f=e[s]||{};for(c in f)f.hasOwnProperty(c)&&(h=f[c],v=d+h,m=r[c],p=typeof r[c]>"u",(p||m>v)&&(r[c]=v,o.push(c,v),i[c]=s))}if(typeof n<"u"&&typeof r[n]>"u"){var y=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(y)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],i=t,r;i;)n.push(i),r=e[i],i=e[i];return n.reverse(),n},find_path:function(e,t,n){var i=Lr.single_source_shortest_paths(e,t,n);return Lr.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t=Lr.PriorityQueue,n={},i;e=e||{};for(i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n.queue=[],n.sorter=e.sorter||t.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof oa<"u"&&(oa.exports=Lr)});var pf=O(lr=>{var V=lt(),cf=Yd(),uf=Qd(),lf=tf(),df=nf(),Dr=ea(),pi=ct(),r_=of();function af(e){return unescape(encodeURIComponent(e)).length}function Zr(e,t,n){let i=[],r;for(;(r=e.exec(n))!==null;)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function ff(e){let t=Zr(Dr.NUMERIC,V.NUMERIC,e),n=Zr(Dr.ALPHANUMERIC,V.ALPHANUMERIC,e),i,r;return pi.isKanjiModeEnabled()?(i=Zr(Dr.BYTE,V.BYTE,e),r=Zr(Dr.KANJI,V.KANJI,e)):(i=Zr(Dr.BYTE_KANJI,V.BYTE,e),r=[]),t.concat(n,i,r).sort(function(a,s){return a.index-s.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function aa(e,t){switch(t){case V.NUMERIC:return cf.getBitsLength(e);case V.ALPHANUMERIC:return uf.getBitsLength(e);case V.KANJI:return df.getBitsLength(e);case V.BYTE:return lf.getBitsLength(e)}}function n_(e){return e.reduce(function(t,n){let i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function i_(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];switch(i.mode){case V.NUMERIC:t.push([i,{data:i.data,mode:V.ALPHANUMERIC,length:i.length},{data:i.data,mode:V.BYTE,length:i.length}]);break;case V.ALPHANUMERIC:t.push([i,{data:i.data,mode:V.BYTE,length:i.length}]);break;case V.KANJI:t.push([i,{data:i.data,mode:V.BYTE,length:af(i.data)}]);break;case V.BYTE:t.push([{data:i.data,mode:V.BYTE,length:af(i.data)}])}}return t}function o_(e,t){let n={},i={start:{}},r=["start"];for(let o=0;o<e.length;o++){let a=e[o],s=[];for(let c=0;c<a.length;c++){let d=a[c],f=""+o+c;s.push(f),n[f]={node:d,lastCount:0},i[f]={};for(let h=0;h<r.length;h++){let v=r[h];n[v]&&n[v].node.mode===d.mode?(i[v][f]=aa(n[v].lastCount+d.length,d.mode)-aa(n[v].lastCount,d.mode),n[v].lastCount+=d.length):(n[v]&&(n[v].lastCount=d.length),i[v][f]=aa(d.length,d.mode)+4+V.getCharCountIndicator(d.mode,t))}}r=s}for(let o=0;o<r.length;o++)i[r[o]].end=0;return{map:i,table:n}}function sf(e,t){let n,i=V.getBestModeForData(e);if(n=V.from(t,i),n!==V.BYTE&&n.bit<i.bit)throw new Error('"'+e+'" cannot be encoded with mode '+V.toString(n)+`.
|
|
5
|
+
Suggested mode is: `+V.toString(i));switch(n===V.KANJI&&!pi.isKanjiModeEnabled()&&(n=V.BYTE),n){case V.NUMERIC:return new cf(e);case V.ALPHANUMERIC:return new uf(e);case V.KANJI:return new df(e);case V.BYTE:return new lf(e)}}lr.fromArray=function(t){return t.reduce(function(n,i){return typeof i=="string"?n.push(sf(i,null)):i.data&&n.push(sf(i.data,i.mode)),n},[])};lr.fromString=function(t,n){let i=ff(t,pi.isKanjiModeEnabled()),r=i_(i),o=o_(r,n),a=r_.find_path(o.map,"start","end"),s=[];for(let c=1;c<a.length-1;c++)s.push(o.table[a[c]].node);return lr.fromArray(n_(s))};lr.rawSplit=function(t){return lr.fromArray(ff(t,pi.isKanjiModeEnabled()))}});var fa=O(mf=>{var hi=ct(),sa=ai(),a_=Id(),s_=zd(),c_=jd(),u_=Od(),la=Nd(),da=Go(),l_=Ld(),mi=qd(),d_=Jd(),f_=lt(),ca=pf();function p_(e,t){let n=e.size,i=u_.getPositions(t);for(let r=0;r<i.length;r++){let o=i[r][0],a=i[r][1];for(let s=-1;s<=7;s++)if(!(o+s<=-1||n<=o+s))for(let c=-1;c<=7;c++)a+c<=-1||n<=a+c||(s>=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(o+s,a+c,!0,!0):e.set(o+s,a+c,!1,!0))}}function m_(e){let t=e.size;for(let n=8;n<t-8;n++){let i=n%2===0;e.set(n,6,i,!0),e.set(6,n,i,!0)}}function h_(e,t){let n=c_.getPositions(t);for(let i=0;i<n.length;i++){let r=n[i][0],o=n[i][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?e.set(r+a,o+s,!0,!0):e.set(r+a,o+s,!1,!0)}}function g_(e,t){let n=e.size,i=mi.getEncodedBits(t),r,o,a;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+n-8-3,a=(i>>s&1)===1,e.set(r,o,a,!0),e.set(o,r,a,!0)}function ua(e,t,n){let i=e.size,r=d_.getEncodedBits(t,n),o,a;for(o=0;o<15;o++)a=(r>>o&1)===1,o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(i-15+o,8,a,!0),o<8?e.set(8,i-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(i-8,8,1,!0)}function y_(e,t){let n=e.size,i=-1,r=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(r,s-c)){let d=!1;a<t.length&&(d=(t[a]>>>o&1)===1),e.set(r,s-c,d),o--,o===-1&&(a++,o=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}function v_(e,t,n){let i=new a_;n.forEach(function(c){i.put(c.mode.bit,4),i.put(c.getLength(),f_.getCharCountIndicator(c.mode,e)),c.write(i)});let r=hi.getSymbolTotalCodewords(e),o=da.getTotalCodewordsCount(e,t),a=(r-o)*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);let s=(a-i.getLengthInBits())/8;for(let c=0;c<s;c++)i.put(c%2?17:236,8);return __(i,e,t)}function __(e,t,n){let i=hi.getSymbolTotalCodewords(t),r=da.getTotalCodewordsCount(t,n),o=i-r,a=da.getBlocksCount(t,n),s=i%a,c=a-s,d=Math.floor(i/a),f=Math.floor(o/a),h=f+1,v=d-f,m=new l_(v),p=0,y=new Array(a),b=new Array(a),x=0,T=new Uint8Array(e.buffer);for(let M=0;M<a;M++){let K=M<c?f:h;y[M]=T.slice(p,p+K),b[M]=m.encode(y[M]),p+=K,x=Math.max(x,K)}let w=new Uint8Array(i),S=0,C,L;for(C=0;C<x;C++)for(L=0;L<a;L++)C<y[L].length&&(w[S++]=y[L][C]);for(C=0;C<v;C++)for(L=0;L<a;L++)w[S++]=b[L][C];return w}function b_(e,t,n,i){let r;if(Array.isArray(e))r=ca.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){let f=ca.rawSplit(e);d=mi.getBestVersionForData(f,n)}r=ca.fromString(e,d||40)}else throw new Error("Invalid data");let o=mi.getBestVersionForData(r,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
|
|
6
6
|
The chosen QR Code version cannot contain this amount of data.
|
|
7
7
|
Minimum version required to store current data is: `+o+`.
|
|
8
|
-
`);let a=y_(t,n,r),s=hi.getSymbolSize(t),c=new a_(s);return f_(c,t),p_(c),m_(c,t),ua(c,n,0),t>=7&&h_(c,t),g_(c,a),isNaN(i)&&(i=la.getBestMask(c,ua.bind(null,c,n))),la.applyMask(i,c),ua(c,n,i),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:i,segments:r}}mf.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let i=sa.M,r,o;return typeof n<"u"&&(i=sa.from(n.errorCorrectionLevel,sa.M),r=mi.from(n.version),o=la.from(n.maskPattern),n.toSJISFunc&&hi.setToSJISFunction(n.toSJISFunc)),__(t,r,i,o)}});var pa=O((cS,gf)=>{"use strict";var b_=ee("node:util"),hf=ee("node:stream"),Ee=gf.exports=function(){hf.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};b_.inherits(Ee,hf);Ee.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t}),process.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))};Ee.prototype.write=function(e,t){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let n;return Buffer.isBuffer(e)?n=e:n=Buffer.from(e,t||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};Ee.prototype.end=function(e,t){e&&this.write(e,t),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};Ee.prototype.destroySoon=Ee.prototype.end;Ee.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Ee.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Ee.prototype._processReadAllowingLess=function(e){this._reads.shift();let t=this._buffers[0];t.length>e.length?(this._buffered-=e.length,this._buffers[0]=t.slice(e.length),e.func.call(this,t.slice(0,e.length))):(this._buffered-=t.length,this._buffers.shift(),e.func.call(this,t))};Ee.prototype._processRead=function(e){this._reads.shift();let t=0,n=0,i=Buffer.alloc(e.length);for(;t<e.length;){let r=this._buffers[n++],o=Math.min(r.length,e.length-t);r.copy(i,t,0,o),t+=o,o!==r.length&&(this._buffers[--n]=r.slice(o))}n>0&&this._buffers.splice(0,n),this._buffered-=e.length,e.func.call(this,i)};Ee.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e=this._reads[0];if(e.allowLess)this._processReadAllowingLess(e);else if(this._buffered>=e.length)this._processRead(e);else break}this._buffers&&!this.writable&&this._end()}catch(e){this.emit("error",e)}}});var ha=O(ma=>{"use strict";var ft=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];ma.getImagePasses=function(e,t){let n=[],i=e%8,r=t%8,o=(e-i)/8,a=(t-r)/8;for(let s=0;s<ft.length;s++){let c=ft[s],d=o*c.x.length,f=a*c.y.length;for(let h=0;h<c.x.length&&c.x[h]<i;h++)d++;for(let h=0;h<c.y.length&&c.y[h]<r;h++)f++;d>0&&f>0&&n.push({width:d,height:f,index:s})}return n};ma.getInterlaceIterator=function(e){return function(t,n,i){let r=t%ft[i].x.length,o=(t-r)/ft[i].x.length*8+ft[i].x[r],a=n%ft[i].y.length,s=(n-a)/ft[i].y.length*8+ft[i].y[a];return o*4+s*e*4}}});var ga=O((lS,yf)=>{"use strict";yf.exports=function(t,n,i){let r=t+n-i,o=Math.abs(r-t),a=Math.abs(r-n),s=Math.abs(r-i);return o<=a&&o<=s?t:a<=s?n:i}});var ya=O((dS,_f)=>{"use strict";var x_=ha(),$_=ga();function vf(e,t,n){let i=e*t;return n!==8&&(i=Math.ceil(i/(8/n))),i}var dr=_f.exports=function(e,t){let n=e.width,i=e.height,r=e.interlace,o=e.bpp,a=e.depth;if(this.read=t.read,this.write=t.write,this.complete=t.complete,this._imageIndex=0,this._images=[],r){let s=x_.getImagePasses(n,i);for(let c=0;c<s.length;c++)this._images.push({byteWidth:vf(s[c].width,o,a),height:s[c].height,lineIndex:0})}else this._images.push({byteWidth:vf(n,o,a),height:i,lineIndex:0});a===8?this._xComparison=o:a===16?this._xComparison=o*2:this._xComparison=1};dr.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};dr.prototype._unFilterType1=function(e,t,n){let i=this._xComparison,r=i-1;for(let o=0;o<n;o++){let a=e[1+o],s=o>r?t[o-i]:0;t[o]=a+s}};dr.prototype._unFilterType2=function(e,t,n){let i=this._lastLine;for(let r=0;r<n;r++){let o=e[1+r],a=i?i[r]:0;t[r]=o+a}};dr.prototype._unFilterType3=function(e,t,n){let i=this._xComparison,r=i-1,o=this._lastLine;for(let a=0;a<n;a++){let s=e[1+a],c=o?o[a]:0,d=a>r?t[a-i]:0,f=Math.floor((d+c)/2);t[a]=s+f}};dr.prototype._unFilterType4=function(e,t,n){let i=this._xComparison,r=i-1,o=this._lastLine;for(let a=0;a<n;a++){let s=e[1+a],c=o?o[a]:0,d=a>r?t[a-i]:0,f=a>r&&o?o[a-i]:0,h=$_(d,c,f);t[a]=s+h}};dr.prototype._reverseFilterLine=function(e){let t=e[0],n,i=this._images[this._imageIndex],r=i.byteWidth;if(t===0)n=e.slice(1,r+1);else switch(n=Buffer.alloc(r),t){case 1:this._unFilterType1(e,n,r);break;case 2:this._unFilterType2(e,n,r);break;case 3:this._unFilterType3(e,n,r);break;case 4:this._unFilterType4(e,n,r);break;default:throw new Error("Unrecognised filter type - "+t)}this.write(n),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=n,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var $f=O((fS,xf)=>{"use strict";var w_=ee("node:util"),bf=pa(),k_=ya(),S_=xf.exports=function(e){bf.call(this);let t=[],n=this;this._filter=new k_(e,{read:this.read.bind(this),write:function(i){t.push(i)},complete:function(){n.emit("complete",Buffer.concat(t))}}),this._filter.start()};w_.inherits(S_,bf)});var fr=O((pS,wf)=>{"use strict";wf.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var ba=O((mS,kf)=>{"use strict";var va=[];(function(){for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;va[e]=t}})();var _a=kf.exports=function(){this._crc=-1};_a.prototype.write=function(e){for(let t=0;t<e.length;t++)this._crc=va[(this._crc^e[t])&255]^this._crc>>>8;return!0};_a.prototype.crc32=function(){return this._crc^-1};_a.crc32=function(e){let t=-1;for(let n=0;n<e.length;n++)t=va[(t^e[n])&255]^t>>>8;return t^-1}});var xa=O((hS,Sf)=>{"use strict";var te=fr(),I_=ba(),oe=Sf.exports=function(e,t){this._options=e,e.checkCRC=e.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[te.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[te.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[te.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[te.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[te.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[te.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t.read,this.error=t.error,this.metadata=t.metadata,this.gamma=t.gamma,this.transColor=t.transColor,this.palette=t.palette,this.parsed=t.parsed,this.inflateData=t.inflateData,this.finished=t.finished,this.simpleTransparency=t.simpleTransparency,this.headersFinished=t.headersFinished||function(){}};oe.prototype.start=function(){this.read(te.PNG_SIGNATURE.length,this._parseSignature.bind(this))};oe.prototype._parseSignature=function(e){let t=te.PNG_SIGNATURE;for(let n=0;n<t.length;n++)if(e[n]!==t[n]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};oe.prototype._parseChunkBegin=function(e){let t=e.readUInt32BE(0),n=e.readUInt32BE(4),i="";for(let o=4;o<8;o++)i+=String.fromCharCode(e[o]);let r=!!(e[4]&32);if(!this._hasIHDR&&n!==te.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new I_,this._crc.write(Buffer.from(i)),this._chunks[n])return this._chunks[n](t);if(!r){this.error(new Error("Unsupported critical chunk type "+i));return}this.read(t+4,this._skipChunk.bind(this))};oe.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};oe.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};oe.prototype._parseChunkEnd=function(e){let t=e.readInt32BE(0),n=this._crc.crc32();if(this._options.checkCRC&&n!==t){this.error(new Error("Crc error - "+t+" - "+n));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};oe.prototype._handleIHDR=function(e){this.read(e,this._parseIHDR.bind(this))};oe.prototype._parseIHDR=function(e){this._crc.write(e);let t=e.readUInt32BE(0),n=e.readUInt32BE(4),i=e[8],r=e[9],o=e[10],a=e[11],s=e[12];if(i!==8&&i!==4&&i!==2&&i!==1&&i!==16){this.error(new Error("Unsupported bit depth "+i));return}if(!(r in te.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(o!==0){this.error(new Error("Unsupported compression method"));return}if(a!==0){this.error(new Error("Unsupported filter method"));return}if(s!==0&&s!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=r;let c=te.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:t,height:n,depth:i,interlace:!!s,palette:!!(r&te.COLORTYPE_PALETTE),color:!!(r&te.COLORTYPE_COLOR),alpha:!!(r&te.COLORTYPE_ALPHA),bpp:c,colorType:r}),this._handleChunkEnd()};oe.prototype._handlePLTE=function(e){this.read(e,this._parsePLTE.bind(this))};oe.prototype._parsePLTE=function(e){this._crc.write(e);let t=Math.floor(e.length/3);for(let n=0;n<t;n++)this._palette.push([e[n*3],e[n*3+1],e[n*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};oe.prototype._handleTRNS=function(e){this.simpleTransparency(),this.read(e,this._parseTRNS.bind(this))};oe.prototype._parseTRNS=function(e){if(this._crc.write(e),this._colorType===te.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(e.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let t=0;t<e.length;t++)this._palette[t][3]=e[t];this.palette(this._palette)}this._colorType===te.COLORTYPE_GRAYSCALE&&this.transColor([e.readUInt16BE(0)]),this._colorType===te.COLORTYPE_COLOR&&this.transColor([e.readUInt16BE(0),e.readUInt16BE(2),e.readUInt16BE(4)]),this._handleChunkEnd()};oe.prototype._handleGAMA=function(e){this.read(e,this._parseGAMA.bind(this))};oe.prototype._parseGAMA=function(e){this._crc.write(e),this.gamma(e.readUInt32BE(0)/te.GAMMA_DIVISION),this._handleChunkEnd()};oe.prototype._handleIDAT=function(e){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-e,this._parseIDAT.bind(this,e))};oe.prototype._parseIDAT=function(e,t){if(this._crc.write(t),this._colorType===te.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(t);let n=e-t.length;n>0?this._handleIDAT(n):this._handleChunkEnd()};oe.prototype._handleIEND=function(e){this.read(e,this._parseIEND.bind(this))};oe.prototype._parseIEND=function(e){this._crc.write(e),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var $a=O(Tf=>{"use strict";var If=ha(),T_=[function(){},function(e,t,n,i){if(i===t.length)throw new Error("Ran out of data");let r=t[i];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=255},function(e,t,n,i){if(i+1>=t.length)throw new Error("Ran out of data");let r=t[i];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=t[i+1]},function(e,t,n,i){if(i+2>=t.length)throw new Error("Ran out of data");e[n]=t[i],e[n+1]=t[i+1],e[n+2]=t[i+2],e[n+3]=255},function(e,t,n,i){if(i+3>=t.length)throw new Error("Ran out of data");e[n]=t[i],e[n+1]=t[i+1],e[n+2]=t[i+2],e[n+3]=t[i+3]}],z_=[function(){},function(e,t,n,i){let r=t[0];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=i},function(e,t,n){let i=t[0];e[n]=i,e[n+1]=i,e[n+2]=i,e[n+3]=t[1]},function(e,t,n,i){e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=i},function(e,t,n){e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=t[3]}];function j_(e,t){let n=[],i=0;function r(){if(i===e.length)throw new Error("Ran out of data");let o=e[i];i++;let a,s,c,d,f,h,v,m;switch(t){default:throw new Error("unrecognised depth");case 16:v=e[i],i++,n.push((o<<8)+v);break;case 4:v=o&15,m=o>>4,n.push(m,v);break;case 2:f=o&3,h=o>>2&3,v=o>>4&3,m=o>>6&3,n.push(m,v,h,f);break;case 1:a=o&1,s=o>>1&1,c=o>>2&1,d=o>>3&1,f=o>>4&1,h=o>>5&1,v=o>>6&1,m=o>>7&1,n.push(m,v,h,f,d,c,s,a);break}}return{get:function(o){for(;n.length<o;)r();let a=n.slice(0,o);return n=n.slice(o),a},resetAfterLine:function(){n.length=0},end:function(){if(i!==e.length)throw new Error("extra data found")}}}function P_(e,t,n,i,r,o){let a=e.width,s=e.height,c=e.index;for(let d=0;d<s;d++)for(let f=0;f<a;f++){let h=n(f,d,c);T_[i](t,r,h,o),o+=i}return o}function E_(e,t,n,i,r,o){let a=e.width,s=e.height,c=e.index;for(let d=0;d<s;d++){for(let f=0;f<a;f++){let h=r.get(i),v=n(f,d,c);z_[i](t,h,v,o)}r.resetAfterLine()}}Tf.dataToBitMap=function(e,t){let n=t.width,i=t.height,r=t.depth,o=t.bpp,a=t.interlace,s;r!==8&&(s=j_(e,r));let c;r<=8?c=Buffer.alloc(n*i*4):c=new Uint16Array(n*i*4);let d=Math.pow(2,r)-1,f=0,h,v;if(a)h=If.getImagePasses(n,i),v=If.getInterlaceIterator(n,i);else{let m=0;v=function(){let p=m;return m+=4,p},h=[{width:n,height:i}]}for(let m=0;m<h.length;m++)r===8?f=P_(h[m],c,v,o,e,f):E_(h[m],c,v,o,s,d);if(r===8){if(f!==e.length)throw new Error("extra data found")}else s.end();return c}});var wa=O((yS,zf)=>{"use strict";function O_(e,t,n,i,r){let o=0;for(let a=0;a<i;a++)for(let s=0;s<n;s++){let c=r[e[o]];if(!c)throw new Error("index "+e[o]+" not in palette");for(let d=0;d<4;d++)t[o+d]=c[d];o+=4}}function N_(e,t,n,i,r){let o=0;for(let a=0;a<i;a++)for(let s=0;s<n;s++){let c=!1;if(r.length===1?r[0]===e[o]&&(c=!0):r[0]===e[o]&&r[1]===e[o+1]&&r[2]===e[o+2]&&(c=!0),c)for(let d=0;d<4;d++)t[o+d]=0;o+=4}}function C_(e,t,n,i,r){let o=255,a=Math.pow(2,r)-1,s=0;for(let c=0;c<i;c++)for(let d=0;d<n;d++){for(let f=0;f<4;f++)t[s+f]=Math.floor(e[s+f]*o/a+.5);s+=4}}zf.exports=function(e,t){let n=t.depth,i=t.width,r=t.height,o=t.colorType,a=t.transColor,s=t.palette,c=e;return o===3?O_(e,c,i,r,s):(a&&N_(e,c,i,r,a),n!==8&&(n===16&&(c=Buffer.alloc(i*r*4)),C_(e,c,i,r,n))),c}});var Ef=O((vS,Pf)=>{"use strict";var A_=ee("node:util"),ka=ee("node:zlib"),jf=pa(),U_=$f(),R_=xa(),L_=$a(),D_=wa(),De=Pf.exports=function(e){jf.call(this),this._parser=new R_(e,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e,this.writable=!0,this._parser.start()};A_.inherits(De,jf);De.prototype._handleError=function(e){this.emit("error",e),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};De.prototype._inflateData=function(e){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=ka.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let n=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,i=Math.max(n,ka.Z_MIN_CHUNK);this._inflate=ka.createInflate({chunkSize:i});let r=n,o=this.emit.bind(this,"error");this._inflate.on("error",function(s){r&&o(s)}),this._filter.on("complete",this._complete.bind(this));let a=this._filter.write.bind(this._filter);this._inflate.on("data",function(s){r&&(s.length>r&&(s=s.slice(0,r)),r-=s.length,a(s))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(e)};De.prototype._handleMetaData=function(e){this._metaData=e,this._bitmapInfo=Object.create(e),this._filter=new U_(this._bitmapInfo)};De.prototype._handleTransColor=function(e){this._bitmapInfo.transColor=e};De.prototype._handlePalette=function(e){this._bitmapInfo.palette=e};De.prototype._simpleTransparency=function(){this._metaData.alpha=!0};De.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};De.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};De.prototype._complete=function(e){if(this.errord)return;let t;try{let n=L_.dataToBitMap(e,this._bitmapInfo);t=D_(n,this._bitmapInfo),n=null}catch(n){this._handleError(n);return}this.emit("parsed",t)}});var Nf=O((_S,Of)=>{"use strict";var ke=fr();Of.exports=function(e,t,n,i){let r=[ke.COLORTYPE_COLOR_ALPHA,ke.COLORTYPE_ALPHA].indexOf(i.colorType)!==-1;if(i.colorType===i.inputColorType){let p=function(){let y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]!==256}();if(i.bitDepth===8||i.bitDepth===16&&p)return e}let o=i.bitDepth!==16?e:new Uint16Array(e.buffer),a=255,s=ke.COLORTYPE_TO_BPP_MAP[i.inputColorType];s===4&&!i.inputHasAlpha&&(s=3);let c=ke.COLORTYPE_TO_BPP_MAP[i.colorType];i.bitDepth===16&&(a=65535,c*=2);let d=Buffer.alloc(t*n*c),f=0,h=0,v=i.bgColor||{};v.red===void 0&&(v.red=a),v.green===void 0&&(v.green=a),v.blue===void 0&&(v.blue=a);function m(){let p,y,b,x=a;switch(i.inputColorType){case ke.COLORTYPE_COLOR_ALPHA:x=o[f+3],p=o[f],y=o[f+1],b=o[f+2];break;case ke.COLORTYPE_COLOR:p=o[f],y=o[f+1],b=o[f+2];break;case ke.COLORTYPE_ALPHA:x=o[f+1],p=o[f],y=p,b=p;break;case ke.COLORTYPE_GRAYSCALE:p=o[f],y=p,b=p;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(r||(x/=a,p=Math.min(Math.max(Math.round((1-x)*v.red+x*p),0),a),y=Math.min(Math.max(Math.round((1-x)*v.green+x*y),0),a),b=Math.min(Math.max(Math.round((1-x)*v.blue+x*b),0),a))),{red:p,green:y,blue:b,alpha:x}}for(let p=0;p<n;p++)for(let y=0;y<t;y++){let b=m(o,f);switch(i.colorType){case ke.COLORTYPE_COLOR_ALPHA:case ke.COLORTYPE_COLOR:i.bitDepth===8?(d[h]=b.red,d[h+1]=b.green,d[h+2]=b.blue,r&&(d[h+3]=b.alpha)):(d.writeUInt16BE(b.red,h),d.writeUInt16BE(b.green,h+2),d.writeUInt16BE(b.blue,h+4),r&&d.writeUInt16BE(b.alpha,h+6));break;case ke.COLORTYPE_ALPHA:case ke.COLORTYPE_GRAYSCALE:{let x=(b.red+b.green+b.blue)/3;i.bitDepth===8?(d[h]=x,r&&(d[h+1]=b.alpha)):(d.writeUInt16BE(x,h),r&&d.writeUInt16BE(b.alpha,h+2));break}default:throw new Error("unrecognised color Type "+i.colorType)}f+=s,h+=c}return d}});var Uf=O((bS,Af)=>{"use strict";var Cf=ga();function Z_(e,t,n,i,r){for(let o=0;o<n;o++)i[r+o]=e[t+o]}function B_(e,t,n){let i=0,r=t+n;for(let o=t;o<r;o++)i+=Math.abs(e[o]);return i}function M_(e,t,n,i,r,o){for(let a=0;a<n;a++){let s=a>=o?e[t+a-o]:0,c=e[t+a]-s;i[r+a]=c}}function F_(e,t,n,i){let r=0;for(let o=0;o<n;o++){let a=o>=i?e[t+o-i]:0,s=e[t+o]-a;r+=Math.abs(s)}return r}function V_(e,t,n,i,r){for(let o=0;o<n;o++){let a=t>0?e[t+o-n]:0,s=e[t+o]-a;i[r+o]=s}}function q_(e,t,n){let i=0,r=t+n;for(let o=t;o<r;o++){let a=t>0?e[o-n]:0,s=e[o]-a;i+=Math.abs(s)}return i}function K_(e,t,n,i,r,o){for(let a=0;a<n;a++){let s=a>=o?e[t+a-o]:0,c=t>0?e[t+a-n]:0,d=e[t+a]-(s+c>>1);i[r+a]=d}}function H_(e,t,n,i){let r=0;for(let o=0;o<n;o++){let a=o>=i?e[t+o-i]:0,s=t>0?e[t+o-n]:0,c=e[t+o]-(a+s>>1);r+=Math.abs(c)}return r}function W_(e,t,n,i,r,o){for(let a=0;a<n;a++){let s=a>=o?e[t+a-o]:0,c=t>0?e[t+a-n]:0,d=t>0&&a>=o?e[t+a-(n+o)]:0,f=e[t+a]-Cf(s,c,d);i[r+a]=f}}function J_(e,t,n,i){let r=0;for(let o=0;o<n;o++){let a=o>=i?e[t+o-i]:0,s=t>0?e[t+o-n]:0,c=t>0&&o>=i?e[t+o-(n+i)]:0,d=e[t+o]-Cf(a,s,c);r+=Math.abs(d)}return r}var G_={0:Z_,1:M_,2:V_,3:K_,4:W_},Y_={0:B_,1:F_,2:q_,3:H_,4:J_};Af.exports=function(e,t,n,i,r){let o;if(!("filterType"in i)||i.filterType===-1)o=[0,1,2,3,4];else if(typeof i.filterType=="number")o=[i.filterType];else throw new Error("unrecognised filter types");i.bitDepth===16&&(r*=2);let a=t*r,s=0,c=0,d=Buffer.alloc((a+1)*n),f=o[0];for(let h=0;h<n;h++){if(o.length>1){let v=1/0;for(let m=0;m<o.length;m++){let p=Y_[o[m]](e,c,a,r);p<v&&(f=o[m],v=p)}}d[s]=f,s++,G_[f](e,c,a,d,s,r),s+=a,c+=a}return d}});var Sa=O((xS,Rf)=>{"use strict";var ce=fr(),X_=ba(),Q_=Nf(),eb=Uf(),tb=ee("node:zlib"),pt=Rf.exports=function(e){if(this._options=e,e.deflateChunkSize=e.deflateChunkSize||32*1024,e.deflateLevel=e.deflateLevel!=null?e.deflateLevel:9,e.deflateStrategy=e.deflateStrategy!=null?e.deflateStrategy:3,e.inputHasAlpha=e.inputHasAlpha!=null?e.inputHasAlpha:!0,e.deflateFactory=e.deflateFactory||tb.createDeflate,e.bitDepth=e.bitDepth||8,e.colorType=typeof e.colorType=="number"?e.colorType:ce.COLORTYPE_COLOR_ALPHA,e.inputColorType=typeof e.inputColorType=="number"?e.inputColorType:ce.COLORTYPE_COLOR_ALPHA,[ce.COLORTYPE_GRAYSCALE,ce.COLORTYPE_COLOR,ce.COLORTYPE_COLOR_ALPHA,ce.COLORTYPE_ALPHA].indexOf(e.colorType)===-1)throw new Error("option color type:"+e.colorType+" is not supported at present");if([ce.COLORTYPE_GRAYSCALE,ce.COLORTYPE_COLOR,ce.COLORTYPE_COLOR_ALPHA,ce.COLORTYPE_ALPHA].indexOf(e.inputColorType)===-1)throw new Error("option input color type:"+e.inputColorType+" is not supported at present");if(e.bitDepth!==8&&e.bitDepth!==16)throw new Error("option bit depth:"+e.bitDepth+" is not supported at present")};pt.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};pt.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};pt.prototype.filterData=function(e,t,n){let i=Q_(e,t,n,this._options),r=ce.COLORTYPE_TO_BPP_MAP[this._options.colorType];return eb(i,t,n,this._options,r)};pt.prototype._packChunk=function(e,t){let n=t?t.length:0,i=Buffer.alloc(n+12);return i.writeUInt32BE(n,0),i.writeUInt32BE(e,4),t&&t.copy(i,8),i.writeInt32BE(X_.crc32(i.slice(4,i.length-4)),i.length-4),i};pt.prototype.packGAMA=function(e){let t=Buffer.alloc(4);return t.writeUInt32BE(Math.floor(e*ce.GAMMA_DIVISION),0),this._packChunk(ce.TYPE_gAMA,t)};pt.prototype.packIHDR=function(e,t){let n=Buffer.alloc(13);return n.writeUInt32BE(e,0),n.writeUInt32BE(t,4),n[8]=this._options.bitDepth,n[9]=this._options.colorType,n[10]=0,n[11]=0,n[12]=0,this._packChunk(ce.TYPE_IHDR,n)};pt.prototype.packIDAT=function(e){return this._packChunk(ce.TYPE_IDAT,e)};pt.prototype.packIEND=function(){return this._packChunk(ce.TYPE_IEND,null)}});var Bf=O(($S,Zf)=>{"use strict";var rb=ee("node:util"),Lf=ee("node:stream"),nb=fr(),ib=Sa(),Df=Zf.exports=function(e){Lf.call(this);let t=e||{};this._packer=new ib(t),this._deflate=this._packer.createDeflate(),this.readable=!0};rb.inherits(Df,Lf);Df.prototype.pack=function(e,t,n,i){this.emit("data",Buffer.from(nb.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t,n)),i&&this.emit("data",this._packer.packGAMA(i));let r=this._packer.filterData(e,t,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(o){this.emit("data",this._packer.packIDAT(o))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(r)}});var Hf=O((Br,Kf)=>{"use strict";var Mf=ee("node:assert").ok,pr=ee("node:zlib"),ob=ee("node:util"),Ff=ee("node:buffer").kMaxLength;function Lt(e){if(!(this instanceof Lt))return new Lt(e);e&&e.chunkSize<pr.Z_MIN_CHUNK&&(e.chunkSize=pr.Z_MIN_CHUNK),pr.Inflate.call(this,e),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,e&&e.maxLength!=null&&(this._maxLength=e.maxLength)}function ab(e){return new Lt(e)}function Vf(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}Lt.prototype._processChunk=function(e,t,n){if(typeof n=="function")return pr.Inflate._processChunk.call(this,e,t,n);let i=this,r=e&&e.length,o=this._chunkSize-this._offset,a=this._maxLength,s=0,c=[],d=0,f;this.on("error",function(p){f=p});function h(p,y){if(i._hadError)return;let b=o-y;if(Mf(b>=0,"have should not go down"),b>0){let x=i._buffer.slice(i._offset,i._offset+b);if(i._offset+=b,x.length>a&&(x=x.slice(0,a)),c.push(x),d+=x.length,a-=x.length,a===0)return!1}return(y===0||i._offset>=i._chunkSize)&&(o=i._chunkSize,i._offset=0,i._buffer=Buffer.allocUnsafe(i._chunkSize)),y===0?(s+=r-p,r=p,!0):!1}Mf(this._handle,"zlib binding closed");let v;do v=this._handle.writeSync(t,e,s,r,this._buffer,this._offset,o),v=v||this._writeState;while(!this._hadError&&h(v[0],v[1]));if(this._hadError)throw f;if(d>=Ff)throw Vf(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Ff.toString(16)+" bytes");let m=Buffer.concat(c,d);return Vf(this),m};ob.inherits(Lt,pr.Inflate);function sb(e,t){if(typeof t=="string"&&(t=Buffer.from(t)),!(t instanceof Buffer))throw new TypeError("Not a string or buffer");let n=e._finishFlushFlag;return n==null&&(n=pr.Z_FINISH),e._processChunk(t,n)}function qf(e,t){return sb(new Lt(t),e)}Kf.exports=Br=qf;Br.Inflate=Lt;Br.createInflate=ab;Br.inflateSync=qf});var Ia=O((wS,Jf)=>{"use strict";var Wf=Jf.exports=function(e){this._buffer=e,this._reads=[]};Wf.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t})};Wf.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e=this._reads[0];if(this._buffer.length&&(this._buffer.length>=e.length||e.allowLess)){this._reads.shift();let t=this._buffer;this._buffer=t.slice(e.length),e.func.call(this,t.slice(0,e.length))}else break}if(this._reads.length>0)return new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return new Error("unrecognised content at end of stream")}});var Yf=O(Gf=>{"use strict";var cb=Ia(),ub=ya();Gf.process=function(e,t){let n=[],i=new cb(e);return new ub(t,{read:i.read.bind(i),write:function(o){n.push(o)},complete:function(){}}).start(),i.process(),Buffer.concat(n)}});var tp=O((SS,ep)=>{"use strict";var Xf=!0,Qf=ee("node:zlib"),lb=Hf();Qf.deflateSync||(Xf=!1);var db=Ia(),fb=Yf(),pb=xa(),mb=$a(),hb=wa();ep.exports=function(e,t){if(!Xf)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let n;function i(S){n=S}let r;function o(S){r=S}function a(S){r.transColor=S}function s(S){r.palette=S}function c(){r.alpha=!0}let d;function f(S){d=S}let h=[];function v(S){h.push(S)}let m=new db(e);if(new pb(t,{read:m.read.bind(m),error:i,metadata:o,gamma:f,palette:s,transColor:a,inflateData:v,simpleTransparency:c}).start(),m.process(),n)throw n;let y=Buffer.concat(h);h.length=0;let b;if(r.interlace)b=Qf.inflateSync(y);else{let A=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;b=lb(y,{chunkSize:A,maxLength:A})}if(y=null,!b||!b.length)throw new Error("bad png - invalid inflate data response");let x=fb.process(b,r);y=null;let T=mb.dataToBitMap(x,r);x=null;let w=hb(T,r);return r.data=w,r.gamma=d||0,r}});var op=O((IS,ip)=>{"use strict";var rp=!0,np=ee("node:zlib");np.deflateSync||(rp=!1);var gb=fr(),yb=Sa();ip.exports=function(e,t){if(!rp)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let n=t||{},i=new yb(n),r=[];r.push(Buffer.from(gb.PNG_SIGNATURE)),r.push(i.packIHDR(e.width,e.height)),e.gamma&&r.push(i.packGAMA(e.gamma));let o=i.filterData(e.data,e.width,e.height),a=np.deflateSync(o,i.getDeflateOptions());if(o=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return r.push(i.packIDAT(a)),r.push(i.packIEND()),Buffer.concat(r)}});var ap=O(Ta=>{"use strict";var vb=tp(),_b=op();Ta.read=function(e,t){return vb(e,t||{})};Ta.write=function(e,t){return _b(e,t)}});var up=O(cp=>{"use strict";var bb=ee("node:util"),sp=ee("node:stream"),xb=Ef(),$b=Bf(),wb=ap(),le=cp.PNG=function(e){sp.call(this),e=e||{},this.width=e.width|0,this.height=e.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new xb(e),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new $b(e),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};bb.inherits(le,sp);le.sync=wb;le.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this)};le.prototype.parse=function(e,t){if(t){let n,i;n=function(r){this.removeListener("error",i),this.data=r,t(null,this)}.bind(this),i=function(r){this.removeListener("parsed",n),t(r,null)}.bind(this),this.once("parsed",n),this.once("error",i)}return this.end(e),this};le.prototype.write=function(e){return this._parser.write(e),!0};le.prototype.end=function(e){this._parser.end(e)};le.prototype._metadata=function(e){this.width=e.width,this.height=e.height,this.emit("metadata",e)};le.prototype._gamma=function(e){this.gamma=e};le.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};le.bitblt=function(e,t,n,i,r,o,a,s){if(n|=0,i|=0,r|=0,o|=0,a|=0,s|=0,n>e.width||i>e.height||n+r>e.width||i+o>e.height)throw new Error("bitblt reading outside image");if(a>t.width||s>t.height||a+r>t.width||s+o>t.height)throw new Error("bitblt writing outside image");for(let c=0;c<o;c++)e.data.copy(t.data,(s+c)*t.width+a<<2,(i+c)*e.width+n<<2,(i+c)*e.width+n+r<<2)};le.prototype.bitblt=function(e,t,n,i,r,o,a){return le.bitblt(this,e,t,n,i,r,o,a),this};le.adjustGamma=function(e){if(e.gamma){for(let t=0;t<e.height;t++)for(let n=0;n<e.width;n++){let i=e.width*t+n<<2;for(let r=0;r<3;r++){let o=e.data[i+r]/255;o=Math.pow(o,1/2.2/e.gamma),e.data[i+r]=Math.round(o*255)}}e.gamma=0}};le.prototype.adjustGamma=function(){le.adjustGamma(this)}});var Mr=O(Dt=>{function lp(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(i){return[i,i]}))),t.length===6&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+t.slice(0,6).join("")}}Dt.getOptions=function(t){t||(t={}),t.color||(t.color={});let n=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:n,color:{dark:lp(t.color.dark||"#000000ff"),light:lp(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Dt.getScale=function(t,n){return n.width&&n.width>=t+n.margin*2?n.width/(t+n.margin*2):n.scale};Dt.getImageWidth=function(t,n){let i=Dt.getScale(t,n);return Math.floor((t+n.margin*2)*i)};Dt.qrToImageData=function(t,n,i){let r=n.modules.size,o=n.modules.data,a=Dt.getScale(r,i),s=Math.floor((r+i.margin*2)*a),c=i.margin*a,d=[i.color.light,i.color.dark];for(let f=0;f<s;f++)for(let h=0;h<s;h++){let v=(f*s+h)*4,m=i.color.light;if(f>=c&&h>=c&&f<s-c&&h<s-c){let p=Math.floor((f-c)/a),y=Math.floor((h-c)/a);m=d[o[p*r+y]?1:0]}t[v++]=m.r,t[v++]=m.g,t[v++]=m.b,t[v]=m.a}}});var dp=O(Ze=>{var kb=ee("node:fs"),Sb=up().PNG,za=Mr();Ze.render=function(t,n){let i=za.getOptions(n),r=i.rendererOpts,o=za.getImageWidth(t.modules.size,i);r.width=o,r.height=o;let a=new Sb(r);return za.qrToImageData(a.data,t,i),a};Ze.renderToDataURL=function(t,n,i){typeof i>"u"&&(i=n,n=void 0),Ze.renderToBuffer(t,n,function(r,o){r&&i(r);let a="data:image/png;base64,";a+=o.toString("base64"),i(null,a)})};Ze.renderToBuffer=function(t,n,i){typeof i>"u"&&(i=n,n=void 0);let r=Ze.render(t,n),o=[];r.on("error",i),r.on("data",function(a){o.push(a)}),r.on("end",function(){i(null,Buffer.concat(o))}),r.pack()};Ze.renderToFile=function(t,n,i,r){typeof r>"u"&&(r=i,i=void 0);let o=!1,a=(...c)=>{o||(o=!0,r.apply(null,c))},s=kb.createWriteStream(t);s.on("error",a),s.on("close",a),Ze.renderToFileStream(s,n,i)};Ze.renderToFileStream=function(t,n,i){Ze.render(n,i).pack().pipe(t)}});var fp=O(gi=>{var Ib=Mr(),Tb={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},zb={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function jb(e,t,n){return e&&t?n.BB:e&&!t?n.BW:!e&&t?n.WB:n.WW}gi.render=function(e,t,n){let i=Ib.getOptions(t),r=Tb;(i.color.dark.hex==="#ffffff"||i.color.light.hex==="#000000")&&(r=zb);let o=e.modules.size,a=e.modules.data,s="",c=Array(o+i.margin*2+1).join(r.WW);c=Array(i.margin/2+1).join(c+`
|
|
9
|
-
`);let d=Array(i.margin+1).join(r.WW);s+=c;for(let f=0;f<o;f+=2){s+=d;for(let h=0;h<o;h++){let v=a[f*o+h],m=a[(f+1)*o+h];s+=
|
|
8
|
+
`);let a=v_(t,n,r),s=hi.getSymbolSize(t),c=new s_(s);return p_(c,t),m_(c),h_(c,t),ua(c,n,0),t>=7&&g_(c,t),y_(c,a),isNaN(i)&&(i=la.getBestMask(c,ua.bind(null,c,n))),la.applyMask(i,c),ua(c,n,i),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:i,segments:r}}mf.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let i=sa.M,r,o;return typeof n<"u"&&(i=sa.from(n.errorCorrectionLevel,sa.M),r=mi.from(n.version),o=la.from(n.maskPattern),n.toSJISFunc&&hi.setToSJISFunction(n.toSJISFunc)),b_(t,r,i,o)}});var pa=O((lS,gf)=>{"use strict";var x_=ee("node:util"),hf=ee("node:stream"),Pe=gf.exports=function(){hf.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};x_.inherits(Pe,hf);Pe.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t}),process.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))};Pe.prototype.write=function(e,t){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let n;return Buffer.isBuffer(e)?n=e:n=Buffer.from(e,t||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};Pe.prototype.end=function(e,t){e&&this.write(e,t),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};Pe.prototype.destroySoon=Pe.prototype.end;Pe.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Pe.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Pe.prototype._processReadAllowingLess=function(e){this._reads.shift();let t=this._buffers[0];t.length>e.length?(this._buffered-=e.length,this._buffers[0]=t.slice(e.length),e.func.call(this,t.slice(0,e.length))):(this._buffered-=t.length,this._buffers.shift(),e.func.call(this,t))};Pe.prototype._processRead=function(e){this._reads.shift();let t=0,n=0,i=Buffer.alloc(e.length);for(;t<e.length;){let r=this._buffers[n++],o=Math.min(r.length,e.length-t);r.copy(i,t,0,o),t+=o,o!==r.length&&(this._buffers[--n]=r.slice(o))}n>0&&this._buffers.splice(0,n),this._buffered-=e.length,e.func.call(this,i)};Pe.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e=this._reads[0];if(e.allowLess)this._processReadAllowingLess(e);else if(this._buffered>=e.length)this._processRead(e);else break}this._buffers&&!this.writable&&this._end()}catch(e){this.emit("error",e)}}});var ha=O(ma=>{"use strict";var ft=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];ma.getImagePasses=function(e,t){let n=[],i=e%8,r=t%8,o=(e-i)/8,a=(t-r)/8;for(let s=0;s<ft.length;s++){let c=ft[s],d=o*c.x.length,f=a*c.y.length;for(let h=0;h<c.x.length&&c.x[h]<i;h++)d++;for(let h=0;h<c.y.length&&c.y[h]<r;h++)f++;d>0&&f>0&&n.push({width:d,height:f,index:s})}return n};ma.getInterlaceIterator=function(e){return function(t,n,i){let r=t%ft[i].x.length,o=(t-r)/ft[i].x.length*8+ft[i].x[r],a=n%ft[i].y.length,s=(n-a)/ft[i].y.length*8+ft[i].y[a];return o*4+s*e*4}}});var ga=O((fS,yf)=>{"use strict";yf.exports=function(t,n,i){let r=t+n-i,o=Math.abs(r-t),a=Math.abs(r-n),s=Math.abs(r-i);return o<=a&&o<=s?t:a<=s?n:i}});var ya=O((pS,_f)=>{"use strict";var $_=ha(),w_=ga();function vf(e,t,n){let i=e*t;return n!==8&&(i=Math.ceil(i/(8/n))),i}var dr=_f.exports=function(e,t){let n=e.width,i=e.height,r=e.interlace,o=e.bpp,a=e.depth;if(this.read=t.read,this.write=t.write,this.complete=t.complete,this._imageIndex=0,this._images=[],r){let s=$_.getImagePasses(n,i);for(let c=0;c<s.length;c++)this._images.push({byteWidth:vf(s[c].width,o,a),height:s[c].height,lineIndex:0})}else this._images.push({byteWidth:vf(n,o,a),height:i,lineIndex:0});a===8?this._xComparison=o:a===16?this._xComparison=o*2:this._xComparison=1};dr.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};dr.prototype._unFilterType1=function(e,t,n){let i=this._xComparison,r=i-1;for(let o=0;o<n;o++){let a=e[1+o],s=o>r?t[o-i]:0;t[o]=a+s}};dr.prototype._unFilterType2=function(e,t,n){let i=this._lastLine;for(let r=0;r<n;r++){let o=e[1+r],a=i?i[r]:0;t[r]=o+a}};dr.prototype._unFilterType3=function(e,t,n){let i=this._xComparison,r=i-1,o=this._lastLine;for(let a=0;a<n;a++){let s=e[1+a],c=o?o[a]:0,d=a>r?t[a-i]:0,f=Math.floor((d+c)/2);t[a]=s+f}};dr.prototype._unFilterType4=function(e,t,n){let i=this._xComparison,r=i-1,o=this._lastLine;for(let a=0;a<n;a++){let s=e[1+a],c=o?o[a]:0,d=a>r?t[a-i]:0,f=a>r&&o?o[a-i]:0,h=w_(d,c,f);t[a]=s+h}};dr.prototype._reverseFilterLine=function(e){let t=e[0],n,i=this._images[this._imageIndex],r=i.byteWidth;if(t===0)n=e.slice(1,r+1);else switch(n=Buffer.alloc(r),t){case 1:this._unFilterType1(e,n,r);break;case 2:this._unFilterType2(e,n,r);break;case 3:this._unFilterType3(e,n,r);break;case 4:this._unFilterType4(e,n,r);break;default:throw new Error("Unrecognised filter type - "+t)}this.write(n),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=n,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var $f=O((mS,xf)=>{"use strict";var k_=ee("node:util"),bf=pa(),S_=ya(),I_=xf.exports=function(e){bf.call(this);let t=[],n=this;this._filter=new S_(e,{read:this.read.bind(this),write:function(i){t.push(i)},complete:function(){n.emit("complete",Buffer.concat(t))}}),this._filter.start()};k_.inherits(I_,bf)});var fr=O((hS,wf)=>{"use strict";wf.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var ba=O((gS,kf)=>{"use strict";var va=[];(function(){for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;va[e]=t}})();var _a=kf.exports=function(){this._crc=-1};_a.prototype.write=function(e){for(let t=0;t<e.length;t++)this._crc=va[(this._crc^e[t])&255]^this._crc>>>8;return!0};_a.prototype.crc32=function(){return this._crc^-1};_a.crc32=function(e){let t=-1;for(let n=0;n<e.length;n++)t=va[(t^e[n])&255]^t>>>8;return t^-1}});var xa=O((yS,Sf)=>{"use strict";var te=fr(),T_=ba(),oe=Sf.exports=function(e,t){this._options=e,e.checkCRC=e.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[te.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[te.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[te.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[te.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[te.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[te.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t.read,this.error=t.error,this.metadata=t.metadata,this.gamma=t.gamma,this.transColor=t.transColor,this.palette=t.palette,this.parsed=t.parsed,this.inflateData=t.inflateData,this.finished=t.finished,this.simpleTransparency=t.simpleTransparency,this.headersFinished=t.headersFinished||function(){}};oe.prototype.start=function(){this.read(te.PNG_SIGNATURE.length,this._parseSignature.bind(this))};oe.prototype._parseSignature=function(e){let t=te.PNG_SIGNATURE;for(let n=0;n<t.length;n++)if(e[n]!==t[n]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};oe.prototype._parseChunkBegin=function(e){let t=e.readUInt32BE(0),n=e.readUInt32BE(4),i="";for(let o=4;o<8;o++)i+=String.fromCharCode(e[o]);let r=!!(e[4]&32);if(!this._hasIHDR&&n!==te.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new T_,this._crc.write(Buffer.from(i)),this._chunks[n])return this._chunks[n](t);if(!r){this.error(new Error("Unsupported critical chunk type "+i));return}this.read(t+4,this._skipChunk.bind(this))};oe.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};oe.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};oe.prototype._parseChunkEnd=function(e){let t=e.readInt32BE(0),n=this._crc.crc32();if(this._options.checkCRC&&n!==t){this.error(new Error("Crc error - "+t+" - "+n));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};oe.prototype._handleIHDR=function(e){this.read(e,this._parseIHDR.bind(this))};oe.prototype._parseIHDR=function(e){this._crc.write(e);let t=e.readUInt32BE(0),n=e.readUInt32BE(4),i=e[8],r=e[9],o=e[10],a=e[11],s=e[12];if(i!==8&&i!==4&&i!==2&&i!==1&&i!==16){this.error(new Error("Unsupported bit depth "+i));return}if(!(r in te.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(o!==0){this.error(new Error("Unsupported compression method"));return}if(a!==0){this.error(new Error("Unsupported filter method"));return}if(s!==0&&s!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=r;let c=te.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:t,height:n,depth:i,interlace:!!s,palette:!!(r&te.COLORTYPE_PALETTE),color:!!(r&te.COLORTYPE_COLOR),alpha:!!(r&te.COLORTYPE_ALPHA),bpp:c,colorType:r}),this._handleChunkEnd()};oe.prototype._handlePLTE=function(e){this.read(e,this._parsePLTE.bind(this))};oe.prototype._parsePLTE=function(e){this._crc.write(e);let t=Math.floor(e.length/3);for(let n=0;n<t;n++)this._palette.push([e[n*3],e[n*3+1],e[n*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};oe.prototype._handleTRNS=function(e){this.simpleTransparency(),this.read(e,this._parseTRNS.bind(this))};oe.prototype._parseTRNS=function(e){if(this._crc.write(e),this._colorType===te.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(e.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let t=0;t<e.length;t++)this._palette[t][3]=e[t];this.palette(this._palette)}this._colorType===te.COLORTYPE_GRAYSCALE&&this.transColor([e.readUInt16BE(0)]),this._colorType===te.COLORTYPE_COLOR&&this.transColor([e.readUInt16BE(0),e.readUInt16BE(2),e.readUInt16BE(4)]),this._handleChunkEnd()};oe.prototype._handleGAMA=function(e){this.read(e,this._parseGAMA.bind(this))};oe.prototype._parseGAMA=function(e){this._crc.write(e),this.gamma(e.readUInt32BE(0)/te.GAMMA_DIVISION),this._handleChunkEnd()};oe.prototype._handleIDAT=function(e){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-e,this._parseIDAT.bind(this,e))};oe.prototype._parseIDAT=function(e,t){if(this._crc.write(t),this._colorType===te.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(t);let n=e-t.length;n>0?this._handleIDAT(n):this._handleChunkEnd()};oe.prototype._handleIEND=function(e){this.read(e,this._parseIEND.bind(this))};oe.prototype._parseIEND=function(e){this._crc.write(e),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var $a=O(Tf=>{"use strict";var If=ha(),z_=[function(){},function(e,t,n,i){if(i===t.length)throw new Error("Ran out of data");let r=t[i];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=255},function(e,t,n,i){if(i+1>=t.length)throw new Error("Ran out of data");let r=t[i];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=t[i+1]},function(e,t,n,i){if(i+2>=t.length)throw new Error("Ran out of data");e[n]=t[i],e[n+1]=t[i+1],e[n+2]=t[i+2],e[n+3]=255},function(e,t,n,i){if(i+3>=t.length)throw new Error("Ran out of data");e[n]=t[i],e[n+1]=t[i+1],e[n+2]=t[i+2],e[n+3]=t[i+3]}],j_=[function(){},function(e,t,n,i){let r=t[0];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=i},function(e,t,n){let i=t[0];e[n]=i,e[n+1]=i,e[n+2]=i,e[n+3]=t[1]},function(e,t,n,i){e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=i},function(e,t,n){e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=t[3]}];function E_(e,t){let n=[],i=0;function r(){if(i===e.length)throw new Error("Ran out of data");let o=e[i];i++;let a,s,c,d,f,h,v,m;switch(t){default:throw new Error("unrecognised depth");case 16:v=e[i],i++,n.push((o<<8)+v);break;case 4:v=o&15,m=o>>4,n.push(m,v);break;case 2:f=o&3,h=o>>2&3,v=o>>4&3,m=o>>6&3,n.push(m,v,h,f);break;case 1:a=o&1,s=o>>1&1,c=o>>2&1,d=o>>3&1,f=o>>4&1,h=o>>5&1,v=o>>6&1,m=o>>7&1,n.push(m,v,h,f,d,c,s,a);break}}return{get:function(o){for(;n.length<o;)r();let a=n.slice(0,o);return n=n.slice(o),a},resetAfterLine:function(){n.length=0},end:function(){if(i!==e.length)throw new Error("extra data found")}}}function P_(e,t,n,i,r,o){let a=e.width,s=e.height,c=e.index;for(let d=0;d<s;d++)for(let f=0;f<a;f++){let h=n(f,d,c);z_[i](t,r,h,o),o+=i}return o}function O_(e,t,n,i,r,o){let a=e.width,s=e.height,c=e.index;for(let d=0;d<s;d++){for(let f=0;f<a;f++){let h=r.get(i),v=n(f,d,c);j_[i](t,h,v,o)}r.resetAfterLine()}}Tf.dataToBitMap=function(e,t){let n=t.width,i=t.height,r=t.depth,o=t.bpp,a=t.interlace,s;r!==8&&(s=E_(e,r));let c;r<=8?c=Buffer.alloc(n*i*4):c=new Uint16Array(n*i*4);let d=Math.pow(2,r)-1,f=0,h,v;if(a)h=If.getImagePasses(n,i),v=If.getInterlaceIterator(n,i);else{let m=0;v=function(){let p=m;return m+=4,p},h=[{width:n,height:i}]}for(let m=0;m<h.length;m++)r===8?f=P_(h[m],c,v,o,e,f):O_(h[m],c,v,o,s,d);if(r===8){if(f!==e.length)throw new Error("extra data found")}else s.end();return c}});var wa=O((_S,zf)=>{"use strict";function N_(e,t,n,i,r){let o=0;for(let a=0;a<i;a++)for(let s=0;s<n;s++){let c=r[e[o]];if(!c)throw new Error("index "+e[o]+" not in palette");for(let d=0;d<4;d++)t[o+d]=c[d];o+=4}}function A_(e,t,n,i,r){let o=0;for(let a=0;a<i;a++)for(let s=0;s<n;s++){let c=!1;if(r.length===1?r[0]===e[o]&&(c=!0):r[0]===e[o]&&r[1]===e[o+1]&&r[2]===e[o+2]&&(c=!0),c)for(let d=0;d<4;d++)t[o+d]=0;o+=4}}function C_(e,t,n,i,r){let o=255,a=Math.pow(2,r)-1,s=0;for(let c=0;c<i;c++)for(let d=0;d<n;d++){for(let f=0;f<4;f++)t[s+f]=Math.floor(e[s+f]*o/a+.5);s+=4}}zf.exports=function(e,t){let n=t.depth,i=t.width,r=t.height,o=t.colorType,a=t.transColor,s=t.palette,c=e;return o===3?N_(e,c,i,r,s):(a&&A_(e,c,i,r,a),n!==8&&(n===16&&(c=Buffer.alloc(i*r*4)),C_(e,c,i,r,n))),c}});var Pf=O((bS,Ef)=>{"use strict";var U_=ee("node:util"),ka=ee("node:zlib"),jf=pa(),R_=$f(),L_=xa(),D_=$a(),Z_=wa(),De=Ef.exports=function(e){jf.call(this),this._parser=new L_(e,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e,this.writable=!0,this._parser.start()};U_.inherits(De,jf);De.prototype._handleError=function(e){this.emit("error",e),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};De.prototype._inflateData=function(e){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=ka.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let n=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,i=Math.max(n,ka.Z_MIN_CHUNK);this._inflate=ka.createInflate({chunkSize:i});let r=n,o=this.emit.bind(this,"error");this._inflate.on("error",function(s){r&&o(s)}),this._filter.on("complete",this._complete.bind(this));let a=this._filter.write.bind(this._filter);this._inflate.on("data",function(s){r&&(s.length>r&&(s=s.slice(0,r)),r-=s.length,a(s))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(e)};De.prototype._handleMetaData=function(e){this._metaData=e,this._bitmapInfo=Object.create(e),this._filter=new R_(this._bitmapInfo)};De.prototype._handleTransColor=function(e){this._bitmapInfo.transColor=e};De.prototype._handlePalette=function(e){this._bitmapInfo.palette=e};De.prototype._simpleTransparency=function(){this._metaData.alpha=!0};De.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};De.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};De.prototype._complete=function(e){if(this.errord)return;let t;try{let n=D_.dataToBitMap(e,this._bitmapInfo);t=Z_(n,this._bitmapInfo),n=null}catch(n){this._handleError(n);return}this.emit("parsed",t)}});var Nf=O((xS,Of)=>{"use strict";var ke=fr();Of.exports=function(e,t,n,i){let r=[ke.COLORTYPE_COLOR_ALPHA,ke.COLORTYPE_ALPHA].indexOf(i.colorType)!==-1;if(i.colorType===i.inputColorType){let p=function(){let y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]!==256}();if(i.bitDepth===8||i.bitDepth===16&&p)return e}let o=i.bitDepth!==16?e:new Uint16Array(e.buffer),a=255,s=ke.COLORTYPE_TO_BPP_MAP[i.inputColorType];s===4&&!i.inputHasAlpha&&(s=3);let c=ke.COLORTYPE_TO_BPP_MAP[i.colorType];i.bitDepth===16&&(a=65535,c*=2);let d=Buffer.alloc(t*n*c),f=0,h=0,v=i.bgColor||{};v.red===void 0&&(v.red=a),v.green===void 0&&(v.green=a),v.blue===void 0&&(v.blue=a);function m(){let p,y,b,x=a;switch(i.inputColorType){case ke.COLORTYPE_COLOR_ALPHA:x=o[f+3],p=o[f],y=o[f+1],b=o[f+2];break;case ke.COLORTYPE_COLOR:p=o[f],y=o[f+1],b=o[f+2];break;case ke.COLORTYPE_ALPHA:x=o[f+1],p=o[f],y=p,b=p;break;case ke.COLORTYPE_GRAYSCALE:p=o[f],y=p,b=p;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(r||(x/=a,p=Math.min(Math.max(Math.round((1-x)*v.red+x*p),0),a),y=Math.min(Math.max(Math.round((1-x)*v.green+x*y),0),a),b=Math.min(Math.max(Math.round((1-x)*v.blue+x*b),0),a))),{red:p,green:y,blue:b,alpha:x}}for(let p=0;p<n;p++)for(let y=0;y<t;y++){let b=m(o,f);switch(i.colorType){case ke.COLORTYPE_COLOR_ALPHA:case ke.COLORTYPE_COLOR:i.bitDepth===8?(d[h]=b.red,d[h+1]=b.green,d[h+2]=b.blue,r&&(d[h+3]=b.alpha)):(d.writeUInt16BE(b.red,h),d.writeUInt16BE(b.green,h+2),d.writeUInt16BE(b.blue,h+4),r&&d.writeUInt16BE(b.alpha,h+6));break;case ke.COLORTYPE_ALPHA:case ke.COLORTYPE_GRAYSCALE:{let x=(b.red+b.green+b.blue)/3;i.bitDepth===8?(d[h]=x,r&&(d[h+1]=b.alpha)):(d.writeUInt16BE(x,h),r&&d.writeUInt16BE(b.alpha,h+2));break}default:throw new Error("unrecognised color Type "+i.colorType)}f+=s,h+=c}return d}});var Uf=O(($S,Cf)=>{"use strict";var Af=ga();function B_(e,t,n,i,r){for(let o=0;o<n;o++)i[r+o]=e[t+o]}function M_(e,t,n){let i=0,r=t+n;for(let o=t;o<r;o++)i+=Math.abs(e[o]);return i}function F_(e,t,n,i,r,o){for(let a=0;a<n;a++){let s=a>=o?e[t+a-o]:0,c=e[t+a]-s;i[r+a]=c}}function V_(e,t,n,i){let r=0;for(let o=0;o<n;o++){let a=o>=i?e[t+o-i]:0,s=e[t+o]-a;r+=Math.abs(s)}return r}function q_(e,t,n,i,r){for(let o=0;o<n;o++){let a=t>0?e[t+o-n]:0,s=e[t+o]-a;i[r+o]=s}}function K_(e,t,n){let i=0,r=t+n;for(let o=t;o<r;o++){let a=t>0?e[o-n]:0,s=e[o]-a;i+=Math.abs(s)}return i}function H_(e,t,n,i,r,o){for(let a=0;a<n;a++){let s=a>=o?e[t+a-o]:0,c=t>0?e[t+a-n]:0,d=e[t+a]-(s+c>>1);i[r+a]=d}}function W_(e,t,n,i){let r=0;for(let o=0;o<n;o++){let a=o>=i?e[t+o-i]:0,s=t>0?e[t+o-n]:0,c=e[t+o]-(a+s>>1);r+=Math.abs(c)}return r}function J_(e,t,n,i,r,o){for(let a=0;a<n;a++){let s=a>=o?e[t+a-o]:0,c=t>0?e[t+a-n]:0,d=t>0&&a>=o?e[t+a-(n+o)]:0,f=e[t+a]-Af(s,c,d);i[r+a]=f}}function G_(e,t,n,i){let r=0;for(let o=0;o<n;o++){let a=o>=i?e[t+o-i]:0,s=t>0?e[t+o-n]:0,c=t>0&&o>=i?e[t+o-(n+i)]:0,d=e[t+o]-Af(a,s,c);r+=Math.abs(d)}return r}var Y_={0:B_,1:F_,2:q_,3:H_,4:J_},X_={0:M_,1:V_,2:K_,3:W_,4:G_};Cf.exports=function(e,t,n,i,r){let o;if(!("filterType"in i)||i.filterType===-1)o=[0,1,2,3,4];else if(typeof i.filterType=="number")o=[i.filterType];else throw new Error("unrecognised filter types");i.bitDepth===16&&(r*=2);let a=t*r,s=0,c=0,d=Buffer.alloc((a+1)*n),f=o[0];for(let h=0;h<n;h++){if(o.length>1){let v=1/0;for(let m=0;m<o.length;m++){let p=X_[o[m]](e,c,a,r);p<v&&(f=o[m],v=p)}}d[s]=f,s++,Y_[f](e,c,a,d,s,r),s+=a,c+=a}return d}});var Sa=O((wS,Rf)=>{"use strict";var ce=fr(),Q_=ba(),eb=Nf(),tb=Uf(),rb=ee("node:zlib"),pt=Rf.exports=function(e){if(this._options=e,e.deflateChunkSize=e.deflateChunkSize||32*1024,e.deflateLevel=e.deflateLevel!=null?e.deflateLevel:9,e.deflateStrategy=e.deflateStrategy!=null?e.deflateStrategy:3,e.inputHasAlpha=e.inputHasAlpha!=null?e.inputHasAlpha:!0,e.deflateFactory=e.deflateFactory||rb.createDeflate,e.bitDepth=e.bitDepth||8,e.colorType=typeof e.colorType=="number"?e.colorType:ce.COLORTYPE_COLOR_ALPHA,e.inputColorType=typeof e.inputColorType=="number"?e.inputColorType:ce.COLORTYPE_COLOR_ALPHA,[ce.COLORTYPE_GRAYSCALE,ce.COLORTYPE_COLOR,ce.COLORTYPE_COLOR_ALPHA,ce.COLORTYPE_ALPHA].indexOf(e.colorType)===-1)throw new Error("option color type:"+e.colorType+" is not supported at present");if([ce.COLORTYPE_GRAYSCALE,ce.COLORTYPE_COLOR,ce.COLORTYPE_COLOR_ALPHA,ce.COLORTYPE_ALPHA].indexOf(e.inputColorType)===-1)throw new Error("option input color type:"+e.inputColorType+" is not supported at present");if(e.bitDepth!==8&&e.bitDepth!==16)throw new Error("option bit depth:"+e.bitDepth+" is not supported at present")};pt.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};pt.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};pt.prototype.filterData=function(e,t,n){let i=eb(e,t,n,this._options),r=ce.COLORTYPE_TO_BPP_MAP[this._options.colorType];return tb(i,t,n,this._options,r)};pt.prototype._packChunk=function(e,t){let n=t?t.length:0,i=Buffer.alloc(n+12);return i.writeUInt32BE(n,0),i.writeUInt32BE(e,4),t&&t.copy(i,8),i.writeInt32BE(Q_.crc32(i.slice(4,i.length-4)),i.length-4),i};pt.prototype.packGAMA=function(e){let t=Buffer.alloc(4);return t.writeUInt32BE(Math.floor(e*ce.GAMMA_DIVISION),0),this._packChunk(ce.TYPE_gAMA,t)};pt.prototype.packIHDR=function(e,t){let n=Buffer.alloc(13);return n.writeUInt32BE(e,0),n.writeUInt32BE(t,4),n[8]=this._options.bitDepth,n[9]=this._options.colorType,n[10]=0,n[11]=0,n[12]=0,this._packChunk(ce.TYPE_IHDR,n)};pt.prototype.packIDAT=function(e){return this._packChunk(ce.TYPE_IDAT,e)};pt.prototype.packIEND=function(){return this._packChunk(ce.TYPE_IEND,null)}});var Bf=O((kS,Zf)=>{"use strict";var nb=ee("node:util"),Lf=ee("node:stream"),ib=fr(),ob=Sa(),Df=Zf.exports=function(e){Lf.call(this);let t=e||{};this._packer=new ob(t),this._deflate=this._packer.createDeflate(),this.readable=!0};nb.inherits(Df,Lf);Df.prototype.pack=function(e,t,n,i){this.emit("data",Buffer.from(ib.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t,n)),i&&this.emit("data",this._packer.packGAMA(i));let r=this._packer.filterData(e,t,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(o){this.emit("data",this._packer.packIDAT(o))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(r)}});var Hf=O((Br,Kf)=>{"use strict";var Mf=ee("node:assert").ok,pr=ee("node:zlib"),ab=ee("node:util"),Ff=ee("node:buffer").kMaxLength;function Lt(e){if(!(this instanceof Lt))return new Lt(e);e&&e.chunkSize<pr.Z_MIN_CHUNK&&(e.chunkSize=pr.Z_MIN_CHUNK),pr.Inflate.call(this,e),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,e&&e.maxLength!=null&&(this._maxLength=e.maxLength)}function sb(e){return new Lt(e)}function Vf(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}Lt.prototype._processChunk=function(e,t,n){if(typeof n=="function")return pr.Inflate._processChunk.call(this,e,t,n);let i=this,r=e&&e.length,o=this._chunkSize-this._offset,a=this._maxLength,s=0,c=[],d=0,f;this.on("error",function(p){f=p});function h(p,y){if(i._hadError)return;let b=o-y;if(Mf(b>=0,"have should not go down"),b>0){let x=i._buffer.slice(i._offset,i._offset+b);if(i._offset+=b,x.length>a&&(x=x.slice(0,a)),c.push(x),d+=x.length,a-=x.length,a===0)return!1}return(y===0||i._offset>=i._chunkSize)&&(o=i._chunkSize,i._offset=0,i._buffer=Buffer.allocUnsafe(i._chunkSize)),y===0?(s+=r-p,r=p,!0):!1}Mf(this._handle,"zlib binding closed");let v;do v=this._handle.writeSync(t,e,s,r,this._buffer,this._offset,o),v=v||this._writeState;while(!this._hadError&&h(v[0],v[1]));if(this._hadError)throw f;if(d>=Ff)throw Vf(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Ff.toString(16)+" bytes");let m=Buffer.concat(c,d);return Vf(this),m};ab.inherits(Lt,pr.Inflate);function cb(e,t){if(typeof t=="string"&&(t=Buffer.from(t)),!(t instanceof Buffer))throw new TypeError("Not a string or buffer");let n=e._finishFlushFlag;return n==null&&(n=pr.Z_FINISH),e._processChunk(t,n)}function qf(e,t){return cb(new Lt(t),e)}Kf.exports=Br=qf;Br.Inflate=Lt;Br.createInflate=sb;Br.inflateSync=qf});var Ia=O((SS,Jf)=>{"use strict";var Wf=Jf.exports=function(e){this._buffer=e,this._reads=[]};Wf.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t})};Wf.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e=this._reads[0];if(this._buffer.length&&(this._buffer.length>=e.length||e.allowLess)){this._reads.shift();let t=this._buffer;this._buffer=t.slice(e.length),e.func.call(this,t.slice(0,e.length))}else break}if(this._reads.length>0)return new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return new Error("unrecognised content at end of stream")}});var Yf=O(Gf=>{"use strict";var ub=Ia(),lb=ya();Gf.process=function(e,t){let n=[],i=new ub(e);return new lb(t,{read:i.read.bind(i),write:function(o){n.push(o)},complete:function(){}}).start(),i.process(),Buffer.concat(n)}});var tp=O((TS,ep)=>{"use strict";var Xf=!0,Qf=ee("node:zlib"),db=Hf();Qf.deflateSync||(Xf=!1);var fb=Ia(),pb=Yf(),mb=xa(),hb=$a(),gb=wa();ep.exports=function(e,t){if(!Xf)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let n;function i(S){n=S}let r;function o(S){r=S}function a(S){r.transColor=S}function s(S){r.palette=S}function c(){r.alpha=!0}let d;function f(S){d=S}let h=[];function v(S){h.push(S)}let m=new fb(e);if(new mb(t,{read:m.read.bind(m),error:i,metadata:o,gamma:f,palette:s,transColor:a,inflateData:v,simpleTransparency:c}).start(),m.process(),n)throw n;let y=Buffer.concat(h);h.length=0;let b;if(r.interlace)b=Qf.inflateSync(y);else{let C=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;b=db(y,{chunkSize:C,maxLength:C})}if(y=null,!b||!b.length)throw new Error("bad png - invalid inflate data response");let x=pb.process(b,r);y=null;let T=hb.dataToBitMap(x,r);x=null;let w=gb(T,r);return r.data=w,r.gamma=d||0,r}});var op=O((zS,ip)=>{"use strict";var rp=!0,np=ee("node:zlib");np.deflateSync||(rp=!1);var yb=fr(),vb=Sa();ip.exports=function(e,t){if(!rp)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let n=t||{},i=new vb(n),r=[];r.push(Buffer.from(yb.PNG_SIGNATURE)),r.push(i.packIHDR(e.width,e.height)),e.gamma&&r.push(i.packGAMA(e.gamma));let o=i.filterData(e.data,e.width,e.height),a=np.deflateSync(o,i.getDeflateOptions());if(o=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return r.push(i.packIDAT(a)),r.push(i.packIEND()),Buffer.concat(r)}});var ap=O(Ta=>{"use strict";var _b=tp(),bb=op();Ta.read=function(e,t){return _b(e,t||{})};Ta.write=function(e,t){return bb(e,t)}});var up=O(cp=>{"use strict";var xb=ee("node:util"),sp=ee("node:stream"),$b=Pf(),wb=Bf(),kb=ap(),le=cp.PNG=function(e){sp.call(this),e=e||{},this.width=e.width|0,this.height=e.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new $b(e),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new wb(e),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};xb.inherits(le,sp);le.sync=kb;le.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this)};le.prototype.parse=function(e,t){if(t){let n,i;n=function(r){this.removeListener("error",i),this.data=r,t(null,this)}.bind(this),i=function(r){this.removeListener("parsed",n),t(r,null)}.bind(this),this.once("parsed",n),this.once("error",i)}return this.end(e),this};le.prototype.write=function(e){return this._parser.write(e),!0};le.prototype.end=function(e){this._parser.end(e)};le.prototype._metadata=function(e){this.width=e.width,this.height=e.height,this.emit("metadata",e)};le.prototype._gamma=function(e){this.gamma=e};le.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};le.bitblt=function(e,t,n,i,r,o,a,s){if(n|=0,i|=0,r|=0,o|=0,a|=0,s|=0,n>e.width||i>e.height||n+r>e.width||i+o>e.height)throw new Error("bitblt reading outside image");if(a>t.width||s>t.height||a+r>t.width||s+o>t.height)throw new Error("bitblt writing outside image");for(let c=0;c<o;c++)e.data.copy(t.data,(s+c)*t.width+a<<2,(i+c)*e.width+n<<2,(i+c)*e.width+n+r<<2)};le.prototype.bitblt=function(e,t,n,i,r,o,a){return le.bitblt(this,e,t,n,i,r,o,a),this};le.adjustGamma=function(e){if(e.gamma){for(let t=0;t<e.height;t++)for(let n=0;n<e.width;n++){let i=e.width*t+n<<2;for(let r=0;r<3;r++){let o=e.data[i+r]/255;o=Math.pow(o,1/2.2/e.gamma),e.data[i+r]=Math.round(o*255)}}e.gamma=0}};le.prototype.adjustGamma=function(){le.adjustGamma(this)}});var Mr=O(Dt=>{function lp(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(i){return[i,i]}))),t.length===6&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+t.slice(0,6).join("")}}Dt.getOptions=function(t){t||(t={}),t.color||(t.color={});let n=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:n,color:{dark:lp(t.color.dark||"#000000ff"),light:lp(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Dt.getScale=function(t,n){return n.width&&n.width>=t+n.margin*2?n.width/(t+n.margin*2):n.scale};Dt.getImageWidth=function(t,n){let i=Dt.getScale(t,n);return Math.floor((t+n.margin*2)*i)};Dt.qrToImageData=function(t,n,i){let r=n.modules.size,o=n.modules.data,a=Dt.getScale(r,i),s=Math.floor((r+i.margin*2)*a),c=i.margin*a,d=[i.color.light,i.color.dark];for(let f=0;f<s;f++)for(let h=0;h<s;h++){let v=(f*s+h)*4,m=i.color.light;if(f>=c&&h>=c&&f<s-c&&h<s-c){let p=Math.floor((f-c)/a),y=Math.floor((h-c)/a);m=d[o[p*r+y]?1:0]}t[v++]=m.r,t[v++]=m.g,t[v++]=m.b,t[v]=m.a}}});var dp=O(Ze=>{var Sb=ee("node:fs"),Ib=up().PNG,za=Mr();Ze.render=function(t,n){let i=za.getOptions(n),r=i.rendererOpts,o=za.getImageWidth(t.modules.size,i);r.width=o,r.height=o;let a=new Ib(r);return za.qrToImageData(a.data,t,i),a};Ze.renderToDataURL=function(t,n,i){typeof i>"u"&&(i=n,n=void 0),Ze.renderToBuffer(t,n,function(r,o){r&&i(r);let a="data:image/png;base64,";a+=o.toString("base64"),i(null,a)})};Ze.renderToBuffer=function(t,n,i){typeof i>"u"&&(i=n,n=void 0);let r=Ze.render(t,n),o=[];r.on("error",i),r.on("data",function(a){o.push(a)}),r.on("end",function(){i(null,Buffer.concat(o))}),r.pack()};Ze.renderToFile=function(t,n,i,r){typeof r>"u"&&(r=i,i=void 0);let o=!1,a=(...c)=>{o||(o=!0,r.apply(null,c))},s=Sb.createWriteStream(t);s.on("error",a),s.on("close",a),Ze.renderToFileStream(s,n,i)};Ze.renderToFileStream=function(t,n,i){Ze.render(n,i).pack().pipe(t)}});var fp=O(gi=>{var Tb=Mr(),zb={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},jb={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function Eb(e,t,n){return e&&t?n.BB:e&&!t?n.BW:!e&&t?n.WB:n.WW}gi.render=function(e,t,n){let i=Tb.getOptions(t),r=zb;(i.color.dark.hex==="#ffffff"||i.color.light.hex==="#000000")&&(r=jb);let o=e.modules.size,a=e.modules.data,s="",c=Array(o+i.margin*2+1).join(r.WW);c=Array(i.margin/2+1).join(c+`
|
|
9
|
+
`);let d=Array(i.margin+1).join(r.WW);s+=c;for(let f=0;f<o;f+=2){s+=d;for(let h=0;h<o;h++){let v=a[f*o+h],m=a[(f+1)*o+h];s+=Eb(v,m,r)}s+=d+`
|
|
10
10
|
`}return s+=c.slice(0,-1),typeof n=="function"&&n(null,s),s};gi.renderToFile=function(t,n,i,r){typeof r>"u"&&(r=i,i=void 0);let o=ee("node:fs"),a=gi.render(n,i);o.writeFile(t,a,r)}});var mp=O(pp=>{pp.render=function(e,t,n){let i=e.modules.size,r=e.modules.data,o="\x1B[40m \x1B[0m",a="\x1B[47m \x1B[0m",s="",c=Array(i+3).join(a),d=Array(2).join(a);s+=c+`
|
|
11
11
|
`;for(let f=0;f<i;++f){s+=a;for(let h=0;h<i;h++)s+=r[f*i+h]?o:a;s+=d+`
|
|
12
12
|
`}return s+=c+`
|
|
13
|
-
`,typeof n=="function"&&n(null,s),s}});var vp=O(yp=>{var Pb="\x1B[47m",
|
|
14
|
-
`+a,h=a;for(let v=-1;v<i+1;v+=2){for(let m=-1;m<i;m++)h+=d[gp(r,i,m,v)];h+=d[gp(r,i,i,v)]+f}return h+=Zt,typeof n=="function"&&n(null,h),h}});var bp=O(_p=>{var
|
|
15
|
-
`;return typeof i=="function"&&i(null,v),v}});var wp=O(yi=>{var
|
|
16
|
-
${T}`,
|
|
17
|
-
${T}`);let de=Math.min(w.length,s),Oe=0;for(;Oe<de-1;Oe++){let Dn=c(String(Oe),w,y,b,x,T);S+=Dn!==void 0?Dn:"null",S+=
|
|
18
|
-
${L}`),y.pop(),`[${S}]`}let M=Object.keys(w),K=M.length;if(K===0)return"{}";if(a<y.length+1)return'"[Object]"';let F="",ue="";x!==""&&(T+=x,
|
|
19
|
-
${T}`,F=" ");let Te=Math.min(K,s);r&&!Fa(w)&&(M=Ma(M,o)),y.push(w);for(let de=0;de<Te;de++){let Oe=M[de],Ne=c(Oe,w,y,b,x,T);Ne!==void 0&&(S+=`${ue}${ht(Oe)}:${F}${Ne}`,ue=
|
|
13
|
+
`,typeof n=="function"&&n(null,s),s}});var vp=O(yp=>{var Pb="\x1B[47m",Ob="\x1B[40m",ja="\x1B[37m",Ea="\x1B[30m",Zt="\x1B[0m",Nb=Pb+Ea,Ab=Ob+ja,Cb=function(e,t,n){return{"00":Zt+" "+e,"01":Zt+t+"\u2584"+e,"02":Zt+n+"\u2584"+e,10:Zt+t+"\u2580"+e,11:" ",12:"\u2584",20:Zt+n+"\u2580"+e,21:"\u2580",22:"\u2588"}},hp=function(e,t,n,i){let r=t+1;if(n>=r||i>=r||i<-1||n<-1)return"0";if(n>=t||i>=t||i<0||n<0)return"1";let o=i*t+n;return e[o]?"2":"1"},gp=function(e,t,n,i){return hp(e,t,n,i)+hp(e,t,n,i+1)};yp.render=function(e,t,n){let i=e.modules.size,r=e.modules.data,o=!!(t&&t.inverse),a=t&&t.inverse?Ab:Nb,d=Cb(a,o?Ea:ja,o?ja:Ea),f=Zt+`
|
|
14
|
+
`+a,h=a;for(let v=-1;v<i+1;v+=2){for(let m=-1;m<i;m++)h+=d[gp(r,i,m,v)];h+=d[gp(r,i,i,v)]+f}return h+=Zt,typeof n=="function"&&n(null,h),h}});var bp=O(_p=>{var Ub=mp(),Rb=vp();_p.render=function(e,t,n){return t&&t.small?Rb.render(e,t,n):Ub.render(e,t,n)}});var Oa=O($p=>{var Lb=Mr();function xp(e,t){let n=e.a/255,i=t+'="'+e.hex+'"';return n<1?i+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function Pa(e,t,n){let i=e+t;return typeof n<"u"&&(i+=" "+n),i}function Db(e,t,n){let i="",r=0,o=!1,a=0;for(let s=0;s<e.length;s++){let c=Math.floor(s%t),d=Math.floor(s/t);!c&&!o&&(o=!0),e[s]?(a++,s>0&&c>0&&e[s-1]||(i+=o?Pa("M",c+n,.5+d+n):Pa("m",r,0),r=0,o=!1),c+1<t&&e[s+1]||(i+=Pa("h",a),a=0)):r++}return i}$p.render=function(t,n,i){let r=Lb.getOptions(n),o=t.modules.size,a=t.modules.data,s=o+r.margin*2,c=r.color.light.a?"<path "+xp(r.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",d="<path "+xp(r.color.dark,"stroke")+' d="'+Db(a,o,r.margin)+'"/>',f='viewBox="0 0 '+s+" "+s+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+f+' shape-rendering="crispEdges">'+c+d+`</svg>
|
|
15
|
+
`;return typeof i=="function"&&i(null,v),v}});var wp=O(yi=>{var Zb=Oa();yi.render=Zb.render;yi.renderToFile=function(t,n,i,r){typeof r>"u"&&(r=i,i=void 0);let o=ee("node:fs"),s='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+yi.render(n,i);o.writeFile(t,s,r)}});var kp=O(vi=>{var Na=Mr();function Bb(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}function Mb(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}vi.render=function(t,n,i){let r=i,o=n;typeof r>"u"&&(!n||!n.getContext)&&(r=n,n=void 0),n||(o=Mb()),r=Na.getOptions(r);let a=Na.getImageWidth(t.modules.size,r),s=o.getContext("2d"),c=s.createImageData(a,a);return Na.qrToImageData(c.data,t,r),Bb(s,o,a),s.putImageData(c,0,0),o};vi.renderToDataURL=function(t,n,i){let r=i;typeof r>"u"&&(!n||!n.getContext)&&(r=n,n=void 0),r||(r={});let o=vi.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}});var Ip=O(Fr=>{var Fb=Ho(),Aa=fa(),Sp=kp(),Vb=Oa();function Ca(e,t,n,i,r){let o=[].slice.call(arguments,1),a=o.length,s=typeof o[a-1]=="function";if(!s&&!Fb())throw new Error("Callback required as last argument");if(s){if(a<2)throw new Error("Too few arguments provided");a===2?(r=n,n=t,t=i=void 0):a===3&&(t.getContext&&typeof r>"u"?(r=i,i=void 0):(r=i,i=n,n=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(n=t,t=i=void 0):a===2&&!t.getContext&&(i=n,n=t,t=void 0),new Promise(function(c,d){try{let f=Aa.create(n,i);c(e(f,t,i))}catch(f){d(f)}})}try{let c=Aa.create(n,i);r(null,e(c,t,i))}catch(c){r(c)}}Fr.create=Aa.create;Fr.toCanvas=Ca.bind(null,Sp.render);Fr.toDataURL=Ca.bind(null,Sp.renderToDataURL);Fr.toString=Ca.bind(null,function(e,t,n){return Vb.render(e,n)})});var Ep=O(mt=>{var Tp=Ho(),Ua=fa(),qb=dp(),zp=fp(),Kb=bp(),jp=wp();function Vr(e,t,n){if(typeof e>"u")throw new Error("String required as first argument");if(typeof n>"u"&&(n=t,t={}),typeof n!="function")if(Tp())t=n||{},n=null;else throw new Error("Callback required as last argument");return{opts:t,cb:n}}function Hb(e){return e.slice((e.lastIndexOf(".")-1>>>0)+2).toLowerCase()}function _i(e){switch(e){case"svg":return jp;case"txt":case"utf8":return zp;case"png":case"image/png":default:return qb}}function Wb(e){switch(e){case"svg":return jp;case"terminal":return Kb;case"utf8":default:return zp}}function qr(e,t,n){if(!n.cb)return new Promise(function(i,r){try{let o=Ua.create(t,n.opts);return e(o,n.opts,function(a,s){return a?r(a):i(s)})}catch(o){r(o)}});try{let i=Ua.create(t,n.opts);return e(i,n.opts,n.cb)}catch(i){n.cb(i)}}mt.create=Ua.create;mt.toCanvas=Ip().toCanvas;mt.toString=function(t,n,i){let r=Vr(t,n,i),o=r.opts?r.opts.type:void 0,a=Wb(o);return qr(a.render,t,r)};mt.toDataURL=function(t,n,i){let r=Vr(t,n,i),o=_i(r.opts.type);return qr(o.renderToDataURL,t,r)};mt.toBuffer=function(t,n,i){let r=Vr(t,n,i),o=_i(r.opts.type);return qr(o.renderToBuffer,t,r)};mt.toFile=function(t,n,i,r){if(typeof t!="string"||!(typeof n=="string"||typeof n=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!Tp())throw new Error("Too few arguments provided");let o=Vr(n,i,r),a=o.opts.type||Hb(t),c=_i(a).renderToFile.bind(null,t);return qr(c,n,o)};mt.toFileStream=function(t,n,i){if(arguments.length<2)throw new Error("Too few arguments provided");let r=Vr(n,i,t.emit.bind(t,"error")),a=_i("png").renderToFileStream.bind(null,t);qr(a,n,r)}});var Op=O((MS,Pp)=>{Pp.exports=Ep()});var Zp=O((qa,Dp)=>{"use strict";var{hasOwnProperty:Hr}=Object.prototype,Mt=Va();Mt.configure=Va;Mt.stringify=Mt;Mt.default=Mt;qa.stringify=Mt;qa.configure=Va;Dp.exports=Mt;var ux=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function ht(e){return e.length<5e3&&!ux.test(e)?`"${e}"`:JSON.stringify(e)}function Ma(e,t){if(e.length>200||t)return e.sort(t);for(let n=1;n<e.length;n++){let i=e[n],r=n;for(;r!==0&&e[r-1]>i;)e[r]=e[r-1],r--;e[r]=i}return e}var lx=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Fa(e){return lx.call(e)!==void 0&&e.length!==0}function Rp(e,t,n){e.length<n&&(n=e.length);let i=t===","?"":" ",r=`"0":${i}${e[0]}`;for(let o=1;o<n;o++)r+=`${t}"${o}":${i}${e[o]}`;return r}function dx(e){if(Hr.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function fx(e){let t;if(Hr.call(e,"deterministic")&&(t=e.deterministic,typeof t!="boolean"&&typeof t!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===void 0?!0:t}function px(e,t){let n;if(Hr.call(e,t)&&(n=e[t],typeof n!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return n===void 0?!0:n}function Lp(e,t){let n;if(Hr.call(e,t)){if(n=e[t],typeof n!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${t}" argument must be an integer`);if(n<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return n===void 0?1/0:n}function Bt(e){return e===1?"1 item":`${e} items`}function mx(e){let t=new Set;for(let n of e)(typeof n=="string"||typeof n=="number")&&t.add(String(n));return t}function hx(e){if(Hr.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return n=>{let i=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(i+=` (${n.toString()})`),new Error(i)}}}function Va(e){e={...e};let t=hx(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let n=dx(e),i=px(e,"bigint"),r=fx(e),o=typeof r=="function"?r:void 0,a=Lp(e,"maximumDepth"),s=Lp(e,"maximumBreadth");function c(m,p,y,b,x,T){let w=p[m];switch(typeof w=="object"&&w!==null&&typeof w.toJSON=="function"&&(w=w.toJSON(m)),w=b.call(p,m,w),typeof w){case"string":return ht(w);case"object":{if(w===null)return"null";if(y.indexOf(w)!==-1)return n;let S="",C=",",L=T;if(Array.isArray(w)){if(w.length===0)return"[]";if(a<y.length+1)return'"[Array]"';y.push(w),x!==""&&(T+=x,S+=`
|
|
16
|
+
${T}`,C=`,
|
|
17
|
+
${T}`);let de=Math.min(w.length,s),Oe=0;for(;Oe<de-1;Oe++){let Dn=c(String(Oe),w,y,b,x,T);S+=Dn!==void 0?Dn:"null",S+=C}let Ne=c(String(Oe),w,y,b,x,T);if(S+=Ne!==void 0?Ne:"null",w.length-1>s){let Dn=w.length-s-1;S+=`${C}"... ${Bt(Dn)} not stringified"`}return x!==""&&(S+=`
|
|
18
|
+
${L}`),y.pop(),`[${S}]`}let M=Object.keys(w),K=M.length;if(K===0)return"{}";if(a<y.length+1)return'"[Object]"';let F="",ue="";x!==""&&(T+=x,C=`,
|
|
19
|
+
${T}`,F=" ");let Te=Math.min(K,s);r&&!Fa(w)&&(M=Ma(M,o)),y.push(w);for(let de=0;de<Te;de++){let Oe=M[de],Ne=c(Oe,w,y,b,x,T);Ne!==void 0&&(S+=`${ue}${ht(Oe)}:${F}${Ne}`,ue=C)}if(K>s){let de=K-s;S+=`${ue}"...":${F}"${Bt(de)} not stringified"`,ue=C}return x!==""&&ue.length>1&&(S=`
|
|
20
20
|
${T}${S}
|
|
21
|
-
${L}`),y.pop(),`{${S}}`}case"number":return isFinite(w)?String(w):t?t(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(w);default:return t?t(w):void 0}}function d(m,p,y,b,x,T){switch(typeof p=="object"&&p!==null&&typeof p.toJSON=="function"&&(p=p.toJSON(m)),typeof p){case"string":return ht(p);case"object":{if(p===null)return"null";if(y.indexOf(p)!==-1)return n;let w=T,S="",
|
|
22
|
-
${T}`,
|
|
23
|
-
${T}`);let K=Math.min(p.length,s),F=0;for(;F<K-1;F++){let Te=d(String(F),p[F],y,b,x,T);S+=Te!==void 0?Te:"null",S+=
|
|
24
|
-
${w}`),y.pop(),`[${S}]`}y.push(p);let L="";x!==""&&(T+=x,
|
|
25
|
-
${T}`,L=" ");let M="";for(let K of b){let F=d(K,p[K],y,b,x,T);F!==void 0&&(S+=`${M}${ht(K)}:${L}${F}`,M=
|
|
21
|
+
${L}`),y.pop(),`{${S}}`}case"number":return isFinite(w)?String(w):t?t(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(w);default:return t?t(w):void 0}}function d(m,p,y,b,x,T){switch(typeof p=="object"&&p!==null&&typeof p.toJSON=="function"&&(p=p.toJSON(m)),typeof p){case"string":return ht(p);case"object":{if(p===null)return"null";if(y.indexOf(p)!==-1)return n;let w=T,S="",C=",";if(Array.isArray(p)){if(p.length===0)return"[]";if(a<y.length+1)return'"[Array]"';y.push(p),x!==""&&(T+=x,S+=`
|
|
22
|
+
${T}`,C=`,
|
|
23
|
+
${T}`);let K=Math.min(p.length,s),F=0;for(;F<K-1;F++){let Te=d(String(F),p[F],y,b,x,T);S+=Te!==void 0?Te:"null",S+=C}let ue=d(String(F),p[F],y,b,x,T);if(S+=ue!==void 0?ue:"null",p.length-1>s){let Te=p.length-s-1;S+=`${C}"... ${Bt(Te)} not stringified"`}return x!==""&&(S+=`
|
|
24
|
+
${w}`),y.pop(),`[${S}]`}y.push(p);let L="";x!==""&&(T+=x,C=`,
|
|
25
|
+
${T}`,L=" ");let M="";for(let K of b){let F=d(K,p[K],y,b,x,T);F!==void 0&&(S+=`${M}${ht(K)}:${L}${F}`,M=C)}return x!==""&&M.length>1&&(S=`
|
|
26
26
|
${T}${S}
|
|
27
27
|
${w}`),y.pop(),`{${S}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function f(m,p,y,b,x){switch(typeof p){case"string":return ht(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(m),typeof p!="object")return f(m,p,y,b,x);if(p===null)return"null"}if(y.indexOf(p)!==-1)return n;let T=x;if(Array.isArray(p)){if(p.length===0)return"[]";if(a<y.length+1)return'"[Array]"';y.push(p),x+=b;let F=`
|
|
28
28
|
${x}`,ue=`,
|
|
29
29
|
${x}`,Te=Math.min(p.length,s),de=0;for(;de<Te-1;de++){let Ne=f(String(de),p[de],y,b,x);F+=Ne!==void 0?Ne:"null",F+=ue}let Oe=f(String(de),p[de],y,b,x);if(F+=Oe!==void 0?Oe:"null",p.length-1>s){let Ne=p.length-s-1;F+=`${ue}"... ${Bt(Ne)} not stringified"`}return F+=`
|
|
30
|
-
${T}`,y.pop(),`[${F}]`}let w=Object.keys(p),S=w.length;if(S===0)return"{}";if(a<y.length+1)return'"[Object]"';x+=b;let
|
|
31
|
-
${x}`,L="",M="",K=Math.min(S,s);Fa(p)&&(L+=Rp(p,
|
|
30
|
+
${T}`,y.pop(),`[${F}]`}let w=Object.keys(p),S=w.length;if(S===0)return"{}";if(a<y.length+1)return'"[Object]"';x+=b;let C=`,
|
|
31
|
+
${x}`,L="",M="",K=Math.min(S,s);Fa(p)&&(L+=Rp(p,C,s),w=w.slice(p.length),K-=p.length,M=C),r&&(w=Ma(w,o)),y.push(p);for(let F=0;F<K;F++){let ue=w[F],Te=f(ue,p[ue],y,b,x);Te!==void 0&&(L+=`${M}${ht(ue)}: ${Te}`,M=C)}if(S>s){let F=S-s;L+=`${M}"...": "${Bt(F)} not stringified"`,M=C}return M!==""&&(L=`
|
|
32
32
|
${x}${L}
|
|
33
|
-
${T}`),y.pop(),`{${L}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function h(m,p,y){switch(typeof p){case"string":return ht(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(m),typeof p!="object")return h(m,p,y);if(p===null)return"null"}if(y.indexOf(p)!==-1)return n;let b="",x=p.length!==void 0;if(x&&Array.isArray(p)){if(p.length===0)return"[]";if(a<y.length+1)return'"[Array]"';y.push(p);let L=Math.min(p.length,s),M=0;for(;M<L-1;M++){let F=h(String(M),p[M],y);b+=F!==void 0?F:"null",b+=","}let K=h(String(M),p[M],y);if(b+=K!==void 0?K:"null",p.length-1>s){let F=p.length-s-1;b+=`,"... ${Bt(F)} not stringified"`}return y.pop(),`[${b}]`}let T=Object.keys(p),w=T.length;if(w===0)return"{}";if(a<y.length+1)return'"[Object]"';let S="",A=Math.min(w,s);x&&Fa(p)&&(b+=Rp(p,",",s),T=T.slice(p.length),A-=p.length,S=","),r&&(T=Ma(T,o)),y.push(p);for(let L=0;L<A;L++){let M=T[L],K=h(M,p[M],y);K!==void 0&&(b+=`${S}${ht(M)}:${K}`,S=",")}if(w>s){let L=w-s;b+=`${S}"...":"${Bt(L)} not stringified"`}return y.pop(),`{${b}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function v(m,p,y){if(arguments.length>1){let b="";if(typeof y=="number"?b=" ".repeat(Math.min(y,10)):typeof y=="string"&&(b=y.slice(0,10)),p!=null){if(typeof p=="function")return c("",{"":m},[],p,b,"");if(Array.isArray(p))return d("",m,[],px(p),b,"")}if(b.length!==0)return f("",m,[],b,"")}return h("",m,[])}return v}});var l={};nt(l,{BRAND:()=>ay,DIRTY:()=>_t,EMPTY_PATH:()=>Lg,INVALID:()=>N,NEVER:()=>Vy,OK:()=>se,ParseStatus:()=>ae,Schema:()=>D,ZodAny:()=>at,ZodArray:()=>Ke,ZodBigInt:()=>xt,ZodBoolean:()=>$t,ZodBranded:()=>Er,ZodCatch:()=>Nt,ZodDate:()=>wt,ZodDefault:()=>Ot,ZodDiscriminatedUnion:()=>Mn,ZodEffects:()=>$e,ZodEnum:()=>Pt,ZodError:()=>fe,ZodFirstPartyTypeKind:()=>C,ZodFunction:()=>Vn,ZodIntersection:()=>Tt,ZodIssueCode:()=>$,ZodLazy:()=>zt,ZodLiteral:()=>jt,ZodMap:()=>nr,ZodNaN:()=>or,ZodNativeEnum:()=>Et,ZodNever:()=>ze,ZodNull:()=>St,ZodNullable:()=>Ue,ZodNumber:()=>bt,ZodObject:()=>pe,ZodOptional:()=>be,ZodParsedType:()=>P,ZodPipeline:()=>Or,ZodPromise:()=>st,ZodReadonly:()=>Ct,ZodRecord:()=>Fn,ZodSchema:()=>D,ZodSet:()=>ir,ZodString:()=>ot,ZodSymbol:()=>tr,ZodTransformer:()=>$e,ZodTuple:()=>Ae,ZodType:()=>D,ZodUndefined:()=>kt,ZodUnion:()=>It,ZodUnknown:()=>qe,ZodVoid:()=>rr,addIssueToContext:()=>z,any:()=>hy,array:()=>_y,bigint:()=>ly,boolean:()=>td,coerce:()=>Fy,custom:()=>Xl,date:()=>dy,datetimeRegex:()=>Gl,defaultErrorMap:()=>Fe,discriminatedUnion:()=>wy,effect:()=>Ay,enum:()=>Oy,function:()=>jy,getErrorMap:()=>Xt,getParsedType:()=>Ce,instanceof:()=>cy,intersection:()=>ky,isAborted:()=>Zn,isAsync:()=>Qt,isDirty:()=>Bn,isValid:()=>it,late:()=>sy,lazy:()=>Py,literal:()=>Ey,makeIssue:()=>Pr,map:()=>Ty,nan:()=>uy,nativeEnum:()=>Ny,never:()=>yy,null:()=>my,nullable:()=>Ry,number:()=>ed,object:()=>by,objectUtil:()=>Co,oboolean:()=>My,onumber:()=>By,optional:()=>Uy,ostring:()=>Zy,pipeline:()=>Dy,preprocess:()=>Ly,promise:()=>Cy,quotelessJson:()=>Ag,record:()=>Iy,set:()=>zy,setErrorMap:()=>Rg,strictObject:()=>xy,string:()=>Ql,symbol:()=>fy,transformer:()=>Ay,tuple:()=>Sy,undefined:()=>py,union:()=>$y,unknown:()=>gy,util:()=>B,void:()=>vy});var B;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let o={};for(let a of r)o[a]=a;return o},e.getValidEnumValues=r=>{let o=e.objectKeys(r).filter(s=>typeof r[r[s]]!="number"),a={};for(let s of o)a[s]=r[s];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let o=[];for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.push(a);return o},e.find=(r,o)=>{for(let a of r)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,o=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(B||(B={}));var Co;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Co||(Co={}));var P=B.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ce=e=>{switch(typeof e){case"undefined":return P.undefined;case"string":return P.string;case"number":return Number.isNaN(e)?P.nan:P.number;case"boolean":return P.boolean;case"function":return P.function;case"bigint":return P.bigint;case"symbol":return P.symbol;case"object":return Array.isArray(e)?P.array:e===null?P.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?P.promise:typeof Map<"u"&&e instanceof Map?P.map:typeof Set<"u"&&e instanceof Set?P.set:typeof Date<"u"&&e instanceof Date?P.date:P.object;default:return P.unknown}};var $=B.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ag=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fe=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(let a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let s=i,c=0;for(;c<a.path.length;){let d=a.path[c];c===a.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(n(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}};return r(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,B.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},i=[];for(let r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};fe.create=e=>new fe(e);var Ug=(e,t)=>{let n;switch(e.code){case $.invalid_type:e.received===P.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case $.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,B.jsonStringifyReplacer)}`;break;case $.unrecognized_keys:n=`Unrecognized key(s) in object: ${B.joinValues(e.keys,", ")}`;break;case $.invalid_union:n="Invalid input";break;case $.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${B.joinValues(e.options)}`;break;case $.invalid_enum_value:n=`Invalid enum value. Expected ${B.joinValues(e.options)}, received '${e.received}'`;break;case $.invalid_arguments:n="Invalid function arguments";break;case $.invalid_return_type:n="Invalid function return type";break;case $.invalid_date:n="Invalid date";break;case $.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:B.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case $.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case $.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case $.custom:n="Invalid input";break;case $.invalid_intersection_types:n="Intersection results could not be merged";break;case $.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case $.not_finite:n="Number must be finite";break;default:n=t.defaultError,B.assertNever(e)}return{message:n}},Fe=Ug;var ql=Fe;function Rg(e){ql=e}function Xt(){return ql}var Pr=e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],a={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let s="",c=i.filter(d=>!!d).slice().reverse();for(let d of c)s=d(a,{data:t,defaultError:s}).message;return{...r,path:o,message:s}},Lg=[];function z(e,t){let n=Xt(),i=Pr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fe?void 0:Fe].filter(r=>!!r)});e.common.issues.push(i)}var ae=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let i=[];for(let r of n){if(r.status==="aborted")return N;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let o=await r.key,a=await r.value;i.push({key:o,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:o,value:a}=r;if(o.status==="aborted"||a.status==="aborted")return N;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(i[o.value]=a.value)}return{status:t.value,value:i}}},N=Object.freeze({status:"aborted"}),_t=e=>({status:"dirty",value:e}),se=e=>({status:"valid",value:e}),Zn=e=>e.status==="aborted",Bn=e=>e.status==="dirty",it=e=>e.status==="valid",Qt=e=>typeof Promise<"u"&&e instanceof Promise;var E;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(E||(E={}));var xe=class{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Kl=(e,t)=>{if(it(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new fe(e.common.issues);return this._error=n,this._error}}};function R(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,s)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??i??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??n??s.defaultError}},description:r}}var D=class{get description(){return this._def.description}_getType(t){return Ce(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ce(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ae,ctx:{common:t.parent.common,data:t.data,parsedType:Ce(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Qt(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ce(t)},r=this._parseSync({data:t,path:i.path,parent:i});return Kl(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ce(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return it(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>it(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ce(t)},r=this._parse({data:t,path:i.path,parent:i}),o=await(Qt(r)?r:Promise.resolve(r));return Kl(i,o)}refine(t,n){let i=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,o)=>{let a=t(r),s=()=>o.addIssue({code:$.custom,...i(r)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new $e({schema:this,typeName:C.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return be.create(this,this._def)}nullable(){return Ue.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ke.create(this)}promise(){return st.create(this,this._def)}or(t){return It.create([this,t],this._def)}and(t){return Tt.create(this,t,this._def)}transform(t){return new $e({...R(this._def),schema:this,typeName:C.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ot({...R(this._def),innerType:this,defaultValue:n,typeName:C.ZodDefault})}brand(){return new Er({typeName:C.ZodBranded,type:this,...R(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Nt({...R(this._def),innerType:this,catchValue:n,typeName:C.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Or.create(this,t)}readonly(){return Ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Dg=/^c[^\s-]{8,}$/i,Zg=/^[0-9a-z]+$/,Bg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Mg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Fg=/^[a-z0-9_-]{21}$/i,Vg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qg=/^[-+]?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)?)??$/,Kg=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ao,Wg=/^(?:(?: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])$/,Jg=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,Gg=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Yg=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Xg=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Qg=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Wl="((\\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])))",ey=new RegExp(`^${Wl}$`);function Jl(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function ty(e){return new RegExp(`^${Jl(e)}$`)}function Gl(e){let t=`${Wl}T${Jl(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ry(e,t){return!!((t==="v4"||!t)&&Wg.test(e)||(t==="v6"||!t)&&Gg.test(e))}function ny(e,t){if(!Vg.test(e))return!1;try{let[n]=e.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function iy(e,t){return!!((t==="v4"||!t)&&Jg.test(e)||(t==="v6"||!t)&&Yg.test(e))}var ot=class e extends D{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==P.string){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_type,expected:P.string,received:o.parsedType}),N}let i=new ae,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(r=this._getOrReturnCtx(t,r),a?z(r,{code:$.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&z(r,{code:$.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Kg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"email",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Ao||(Ao=new RegExp(Hg,"u")),Ao.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"emoji",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")Mg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"uuid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")Fg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"nanoid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Dg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cuid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Zg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cuid2",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Bg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"ulid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),z(r,{validation:"url",code:$.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"regex",code:$.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?Gl(o).test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?ey.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?ty(o).test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?qg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"duration",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?ry(t.data,o.version)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"ip",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?ny(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"jwt",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?iy(t.data,o.version)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cidr",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?Xg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?Qg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64url",code:$.invalid_string,message:o.message}),i.dirty()):B.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:$.invalid_string,...E.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...E.errToObj(t)})}url(t){return this._addCheck({kind:"url",...E.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...E.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...E.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...E.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...E.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...E.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...E.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...E.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...E.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...E.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...E.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...E.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...E.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...E.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...E.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...E.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...E.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...E.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...E.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...E.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...E.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...E.errToObj(n)})}nonempty(t){return this.min(1,E.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};ot.create=e=>new ot({checks:[],typeName:C.ZodString,coerce:e?.coerce??!1,...R(e)});function oy(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return o%a/10**r}var bt=class e extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==P.number){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_type,expected:P.number,received:o.parsedType}),N}let i,r=new ae;for(let o of this._def.checks)o.kind==="int"?B.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),z(i,{code:$.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?oy(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),z(i,{code:$.not_finite,message:o.message}),r.dirty()):B.assertNever(o);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,E.toString(n))}gt(t,n){return this.setLimit("min",t,!1,E.toString(n))}lte(t,n){return this.setLimit("max",t,!0,E.toString(n))}lt(t,n){return this.setLimit("max",t,!1,E.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:E.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:E.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:E.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:E.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:E.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:E.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:E.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:E.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:E.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:E.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&B.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};bt.create=e=>new bt({checks:[],typeName:C.ZodNumber,coerce:e?.coerce||!1,...R(e)});var xt=class e extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==P.bigint)return this._getInvalidInput(t);let i,r=new ae;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):B.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return z(n,{code:$.invalid_type,expected:P.bigint,received:n.parsedType}),N}gte(t,n){return this.setLimit("min",t,!0,E.toString(n))}gt(t,n){return this.setLimit("min",t,!1,E.toString(n))}lte(t,n){return this.setLimit("max",t,!0,E.toString(n))}lt(t,n){return this.setLimit("max",t,!1,E.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:E.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:E.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:E.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:E.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:E.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:E.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};xt.create=e=>new xt({checks:[],typeName:C.ZodBigInt,coerce:e?.coerce??!1,...R(e)});var $t=class extends D{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==P.boolean){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:P.boolean,received:i.parsedType}),N}return se(t.data)}};$t.create=e=>new $t({typeName:C.ZodBoolean,coerce:e?.coerce||!1,...R(e)});var wt=class e extends D{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==P.date){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_type,expected:P.date,received:o.parsedType}),N}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_date}),N}let i=new ae,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):B.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:E.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:E.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};wt.create=e=>new wt({checks:[],coerce:e?.coerce||!1,typeName:C.ZodDate,...R(e)});var tr=class extends D{_parse(t){if(this._getType(t)!==P.symbol){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:P.symbol,received:i.parsedType}),N}return se(t.data)}};tr.create=e=>new tr({typeName:C.ZodSymbol,...R(e)});var kt=class extends D{_parse(t){if(this._getType(t)!==P.undefined){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:P.undefined,received:i.parsedType}),N}return se(t.data)}};kt.create=e=>new kt({typeName:C.ZodUndefined,...R(e)});var St=class extends D{_parse(t){if(this._getType(t)!==P.null){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:P.null,received:i.parsedType}),N}return se(t.data)}};St.create=e=>new St({typeName:C.ZodNull,...R(e)});var at=class extends D{constructor(){super(...arguments),this._any=!0}_parse(t){return se(t.data)}};at.create=e=>new at({typeName:C.ZodAny,...R(e)});var qe=class extends D{constructor(){super(...arguments),this._unknown=!0}_parse(t){return se(t.data)}};qe.create=e=>new qe({typeName:C.ZodUnknown,...R(e)});var ze=class extends D{_parse(t){let n=this._getOrReturnCtx(t);return z(n,{code:$.invalid_type,expected:P.never,received:n.parsedType}),N}};ze.create=e=>new ze({typeName:C.ZodNever,...R(e)});var rr=class extends D{_parse(t){if(this._getType(t)!==P.undefined){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:P.void,received:i.parsedType}),N}return se(t.data)}};rr.create=e=>new rr({typeName:C.ZodVoid,...R(e)});var Ke=class e extends D{_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==P.array)return z(n,{code:$.invalid_type,expected:P.array,received:n.parsedType}),N;if(r.exactLength!==null){let a=n.data.length>r.exactLength.value,s=n.data.length<r.exactLength.value;(a||s)&&(z(n,{code:a?$.too_big:$.too_small,minimum:s?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(z(n,{code:$.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(z(n,{code:$.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>r.type._parseAsync(new xe(n,a,n.path,s)))).then(a=>ae.mergeArray(i,a));let o=[...n.data].map((a,s)=>r.type._parseSync(new xe(n,a,n.path,s)));return ae.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:E.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:E.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:E.toString(n)}})}nonempty(t){return this.min(1,t)}};Ke.create=(e,t)=>new Ke({type:e,minLength:null,maxLength:null,exactLength:null,typeName:C.ZodArray,...R(t)});function er(e){if(e instanceof pe){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=be.create(er(i))}return new pe({...e._def,shape:()=>t})}else return e instanceof Ke?new Ke({...e._def,type:er(e.element)}):e instanceof be?be.create(er(e.unwrap())):e instanceof Ue?Ue.create(er(e.unwrap())):e instanceof Ae?Ae.create(e.items.map(t=>er(t))):e}var pe=class e extends D{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=B.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==P.object){let d=this._getOrReturnCtx(t);return z(d,{code:$.invalid_type,expected:P.object,received:d.parsedType}),N}let{status:i,ctx:r}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof ze&&this._def.unknownKeys==="strip"))for(let d in r.data)a.includes(d)||s.push(d);let c=[];for(let d of a){let f=o[d],h=r.data[d];c.push({key:{status:"valid",value:d},value:f._parse(new xe(r,h,r.path,d)),alwaysSet:d in r.data})}if(this._def.catchall instanceof ze){let d=this._def.unknownKeys;if(d==="passthrough")for(let f of s)c.push({key:{status:"valid",value:f},value:{status:"valid",value:r.data[f]}});else if(d==="strict")s.length>0&&(z(r,{code:$.unrecognized_keys,keys:s}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let f of s){let h=r.data[f];c.push({key:{status:"valid",value:f},value:d._parse(new xe(r,h,r.path,f)),alwaysSet:f in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let d=[];for(let f of c){let h=await f.key,v=await f.value;d.push({key:h,value:v,alwaysSet:f.alwaysSet})}return d}).then(d=>ae.mergeObjectSync(i,d)):ae.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return E.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:E.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:C.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of B.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let i of B.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}deepPartial(){return er(this)}partial(t){let n={};for(let i of B.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let i of B.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof be;)o=o._def.innerType;n[i]=o}return new e({...this._def,shape:()=>n})}keyof(){return Yl(B.objectKeys(this.shape))}};pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ze.create(),typeName:C.ZodObject,...R(t)});pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ze.create(),typeName:C.ZodObject,...R(t)});pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ze.create(),typeName:C.ZodObject,...R(t)});var It=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(s=>new fe(s.ctx.common.issues));return z(n,{code:$.invalid_union,unionErrors:a}),N}if(n.common.async)return Promise.all(i.map(async o=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let o,a=[];for(let c of i){let d={...n,common:{...n.common,issues:[]},parent:null},f=c._parseSync({data:n.data,path:n.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;let s=a.map(c=>new fe(c));return z(n,{code:$.invalid_union,unionErrors:s}),N}}get options(){return this._def.options}};It.create=(e,t)=>new It({options:e,typeName:C.ZodUnion,...R(t)});var Ve=e=>e instanceof zt?Ve(e.schema):e instanceof $e?Ve(e.innerType()):e instanceof jt?[e.value]:e instanceof Pt?e.options:e instanceof Et?B.objectValues(e.enum):e instanceof Ot?Ve(e._def.innerType):e instanceof kt?[void 0]:e instanceof St?[null]:e instanceof be?[void 0,...Ve(e.unwrap())]:e instanceof Ue?[null,...Ve(e.unwrap())]:e instanceof Er||e instanceof Ct?Ve(e.unwrap()):e instanceof Nt?Ve(e._def.innerType):[],Mn=class e extends D{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==P.object)return z(n,{code:$.invalid_type,expected:P.object,received:n.parsedType}),N;let i=this.discriminator,r=n.data[i],o=this.optionsMap.get(r);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(z(n,{code:$.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),N)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let o of n){let a=Ve(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(r.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);r.set(s,o)}}return new e({typeName:C.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...R(i)})}};function Uo(e,t){let n=Ce(e),i=Ce(t);if(e===t)return{valid:!0,data:e};if(n===P.object&&i===P.object){let r=B.objectKeys(t),o=B.objectKeys(e).filter(s=>r.indexOf(s)!==-1),a={...e,...t};for(let s of o){let c=Uo(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(n===P.array&&i===P.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let o=0;o<e.length;o++){let a=e[o],s=t[o],c=Uo(a,s);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===P.date&&i===P.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Tt=class extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=(o,a)=>{if(Zn(o)||Zn(a))return N;let s=Uo(o.value,a.value);return s.valid?((Bn(o)||Bn(a))&&n.dirty(),{status:n.value,value:s.data}):(z(i,{code:$.invalid_intersection_types}),N)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=>r(o,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Tt.create=(e,t,n)=>new Tt({left:e,right:t,typeName:C.ZodIntersection,...R(n)});var Ae=class e extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==P.array)return z(i,{code:$.invalid_type,expected:P.array,received:i.parsedType}),N;if(i.data.length<this._def.items.length)return z(i,{code:$.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),N;!this._def.rest&&i.data.length>this._def.items.length&&(z(i,{code:$.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let o=[...i.data].map((a,s)=>{let c=this._def.items[s]||this._def.rest;return c?c._parse(new xe(i,a,i.path,s)):null}).filter(a=>!!a);return i.common.async?Promise.all(o).then(a=>ae.mergeArray(n,a)):ae.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ae.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ae({items:e,typeName:C.ZodTuple,rest:null,...R(t)})};var Fn=class e extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==P.object)return z(i,{code:$.invalid_type,expected:P.object,received:i.parsedType}),N;let r=[],o=this._def.keyType,a=this._def.valueType;for(let s in i.data)r.push({key:o._parse(new xe(i,s,i.path,s)),value:a._parse(new xe(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?ae.mergeObjectAsync(n,r):ae.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof D?new e({keyType:t,valueType:n,typeName:C.ZodRecord,...R(i)}):new e({keyType:ot.create(),valueType:t,typeName:C.ZodRecord,...R(n)})}},nr=class extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==P.map)return z(i,{code:$.invalid_type,expected:P.map,received:i.parsedType}),N;let r=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([s,c],d)=>({key:r._parse(new xe(i,s,i.path,[d,"key"])),value:o._parse(new xe(i,c,i.path,[d,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let c of a){let d=await c.key,f=await c.value;if(d.status==="aborted"||f.status==="aborted")return N;(d.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(d.value,f.value)}return{status:n.value,value:s}})}else{let s=new Map;for(let c of a){let d=c.key,f=c.value;if(d.status==="aborted"||f.status==="aborted")return N;(d.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(d.value,f.value)}return{status:n.value,value:s}}}};nr.create=(e,t,n)=>new nr({valueType:t,keyType:e,typeName:C.ZodMap,...R(n)});var ir=class e extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==P.set)return z(i,{code:$.invalid_type,expected:P.set,received:i.parsedType}),N;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(z(i,{code:$.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(z(i,{code:$.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let o=this._def.valueType;function a(c){let d=new Set;for(let f of c){if(f.status==="aborted")return N;f.status==="dirty"&&n.dirty(),d.add(f.value)}return{status:n.value,value:d}}let s=[...i.data.values()].map((c,d)=>o._parse(new xe(i,c,i.path,d)));return i.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,n){return new e({...this._def,minSize:{value:t,message:E.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:E.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};ir.create=(e,t)=>new ir({valueType:e,minSize:null,maxSize:null,typeName:C.ZodSet,...R(t)});var Vn=class e extends D{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==P.function)return z(n,{code:$.invalid_type,expected:P.function,received:n.parsedType}),N;function i(s,c){return Pr({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xt(),Fe].filter(d=>!!d),issueData:{code:$.invalid_arguments,argumentsError:c}})}function r(s,c){return Pr({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xt(),Fe].filter(d=>!!d),issueData:{code:$.invalid_return_type,returnTypeError:c}})}let o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof st){let s=this;return se(async function(...c){let d=new fe([]),f=await s._def.args.parseAsync(c,o).catch(m=>{throw d.addIssue(i(c,m)),d}),h=await Reflect.apply(a,this,f);return await s._def.returns._def.type.parseAsync(h,o).catch(m=>{throw d.addIssue(r(h,m)),d})})}else{let s=this;return se(function(...c){let d=s._def.args.safeParse(c,o);if(!d.success)throw new fe([i(c,d.error)]);let f=Reflect.apply(a,this,d.data),h=s._def.returns.safeParse(f,o);if(!h.success)throw new fe([r(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ae.create(t).rest(qe.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new e({args:t||Ae.create([]).rest(qe.create()),returns:n||qe.create(),typeName:C.ZodFunction,...R(i)})}},zt=class extends D{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};zt.create=(e,t)=>new zt({getter:e,typeName:C.ZodLazy,...R(t)});var jt=class extends D{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return z(n,{received:n.data,code:$.invalid_literal,expected:this._def.value}),N}return{status:"valid",value:t.data}}get value(){return this._def.value}};jt.create=(e,t)=>new jt({value:e,typeName:C.ZodLiteral,...R(t)});function Yl(e,t){return new Pt({values:e,typeName:C.ZodEnum,...R(t)})}var Pt=class e extends D{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return z(n,{expected:B.joinValues(i),received:n.parsedType,code:$.invalid_type}),N}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return z(n,{received:n.data,code:$.invalid_enum_value,options:i}),N}return se(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}};Pt.create=Yl;var Et=class extends D{_parse(t){let n=B.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==P.string&&i.parsedType!==P.number){let r=B.objectValues(n);return z(i,{expected:B.joinValues(r),received:i.parsedType,code:$.invalid_type}),N}if(this._cache||(this._cache=new Set(B.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=B.objectValues(n);return z(i,{received:i.data,code:$.invalid_enum_value,options:r}),N}return se(t.data)}get enum(){return this._def.values}};Et.create=(e,t)=>new Et({values:e,typeName:C.ZodNativeEnum,...R(t)});var st=class extends D{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==P.promise&&n.common.async===!1)return z(n,{code:$.invalid_type,expected:P.promise,received:n.parsedType}),N;let i=n.parsedType===P.promise?n.data:Promise.resolve(n.data);return se(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};st.create=(e,t)=>new st({type:e,typeName:C.ZodPromise,...R(t)});var $e=class extends D{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===C.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:a=>{z(i,a),a.fatal?n.abort():n.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){let a=r.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return N;let c=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return c.status==="aborted"?N:c.status==="dirty"?_t(c.value):n.value==="dirty"?_t(c.value):c});{if(n.value==="aborted")return N;let s=this._def.schema._parseSync({data:a,path:i.path,parent:i});return s.status==="aborted"?N:s.status==="dirty"?_t(s.value):n.value==="dirty"?_t(s.value):s}}if(r.type==="refinement"){let a=s=>{let c=r.refinement(s,o);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?N:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?N:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(r.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!it(a))return N;let s=r.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>it(a)?Promise.resolve(r.transform(a.value,o)).then(s=>({status:n.value,value:s})):N);B.assertNever(r)}};$e.create=(e,t,n)=>new $e({schema:e,typeName:C.ZodEffects,effect:t,...R(n)});$e.createWithPreprocess=(e,t,n)=>new $e({schema:t,effect:{type:"preprocess",transform:e},typeName:C.ZodEffects,...R(n)});var be=class extends D{_parse(t){return this._getType(t)===P.undefined?se(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};be.create=(e,t)=>new be({innerType:e,typeName:C.ZodOptional,...R(t)});var Ue=class extends D{_parse(t){return this._getType(t)===P.null?se(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ue.create=(e,t)=>new Ue({innerType:e,typeName:C.ZodNullable,...R(t)});var Ot=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===P.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ot.create=(e,t)=>new Ot({innerType:e,typeName:C.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...R(t)});var Nt=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Qt(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fe(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new fe(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Nt.create=(e,t)=>new Nt({innerType:e,typeName:C.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...R(t)});var or=class extends D{_parse(t){if(this._getType(t)!==P.nan){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:P.nan,received:i.parsedType}),N}return{status:"valid",value:t.data}}};or.create=e=>new or({typeName:C.ZodNaN,...R(e)});var ay=Symbol("zod_brand"),Er=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Or=class e extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?N:o.status==="dirty"?(n.dirty(),_t(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?N:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:C.ZodPipeline})}},Ct=class extends D{_parse(t){let n=this._def.innerType._parse(t),i=r=>(it(r)&&(r.value=Object.freeze(r.value)),r);return Qt(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};Ct.create=(e,t)=>new Ct({innerType:e,typeName:C.ZodReadonly,...R(t)});function Hl(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Xl(e,t={},n){return e?at.create().superRefine((i,r)=>{let o=e(i);if(o instanceof Promise)return o.then(a=>{if(!a){let s=Hl(t,i),c=s.fatal??n??!0;r.addIssue({code:"custom",...s,fatal:c})}});if(!o){let a=Hl(t,i),s=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:s})}}):at.create()}var sy={object:pe.lazycreate},C;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(C||(C={}));var cy=(e,t={message:`Input not instance of ${e.name}`})=>Xl(n=>n instanceof e,t),Ql=ot.create,ed=bt.create,uy=or.create,ly=xt.create,td=$t.create,dy=wt.create,fy=tr.create,py=kt.create,my=St.create,hy=at.create,gy=qe.create,yy=ze.create,vy=rr.create,_y=Ke.create,by=pe.create,xy=pe.strictCreate,$y=It.create,wy=Mn.create,ky=Tt.create,Sy=Ae.create,Iy=Fn.create,Ty=nr.create,zy=ir.create,jy=Vn.create,Py=zt.create,Ey=jt.create,Oy=Pt.create,Ny=Et.create,Cy=st.create,Ay=$e.create,Uy=be.create,Ry=Ue.create,Ly=$e.createWithPreprocess,Dy=Or.create,Zy=()=>Ql().optional(),By=()=>ed().optional(),My=()=>td().optional(),Fy={string:e=>ot.create({...e,coerce:!0}),number:e=>bt.create({...e,coerce:!0}),boolean:e=>$t.create({...e,coerce:!0}),bigint:e=>xt.create({...e,coerce:!0}),date:e=>wt.create({...e,coerce:!0})};var Vy=N;var Ro="2025-03-26",rd=[Ro,"2024-11-05","2024-10-07"],qn="2.0",nd=l.union([l.string(),l.number().int()]),id=l.string(),qy=l.object({progressToken:l.optional(nd)}).passthrough(),je=l.object({_meta:l.optional(qy)}).passthrough(),ye=l.object({method:l.string(),params:l.optional(je)}),Nr=l.object({_meta:l.optional(l.object({}).passthrough())}).passthrough(),Le=l.object({method:l.string(),params:l.optional(Nr)}),Pe=l.object({_meta:l.optional(l.object({}).passthrough())}).passthrough(),Kn=l.union([l.string(),l.number().int()]),od=l.object({jsonrpc:l.literal(qn),id:Kn}).merge(ye).strict(),ad=e=>od.safeParse(e).success,sd=l.object({jsonrpc:l.literal(qn)}).merge(Le).strict(),cd=e=>sd.safeParse(e).success,ud=l.object({jsonrpc:l.literal(qn),id:Kn,result:Pe}).strict(),Lo=e=>ud.safeParse(e).success,Re;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(Re||(Re={}));var ld=l.object({jsonrpc:l.literal(qn),id:Kn,error:l.object({code:l.number().int(),message:l.string(),data:l.optional(l.unknown())})}).strict(),dd=e=>ld.safeParse(e).success,fd=l.union([od,sd,ud,ld]),Hn=Pe.strict(),Wn=Le.extend({method:l.literal("notifications/cancelled"),params:Nr.extend({requestId:Kn,reason:l.string().optional()})}),pd=l.object({name:l.string(),version:l.string()}).passthrough(),Ky=l.object({experimental:l.optional(l.object({}).passthrough()),sampling:l.optional(l.object({}).passthrough()),roots:l.optional(l.object({listChanged:l.optional(l.boolean())}).passthrough())}).passthrough(),Do=ye.extend({method:l.literal("initialize"),params:je.extend({protocolVersion:l.string(),capabilities:Ky,clientInfo:pd})});var Hy=l.object({experimental:l.optional(l.object({}).passthrough()),logging:l.optional(l.object({}).passthrough()),completions:l.optional(l.object({}).passthrough()),prompts:l.optional(l.object({listChanged:l.optional(l.boolean())}).passthrough()),resources:l.optional(l.object({subscribe:l.optional(l.boolean()),listChanged:l.optional(l.boolean())}).passthrough()),tools:l.optional(l.object({listChanged:l.optional(l.boolean())}).passthrough())}).passthrough(),Wy=Pe.extend({protocolVersion:l.string(),capabilities:Hy,serverInfo:pd,instructions:l.optional(l.string())}),Zo=Le.extend({method:l.literal("notifications/initialized")});var Jn=ye.extend({method:l.literal("ping")}),Jy=l.object({progress:l.number(),total:l.optional(l.number()),message:l.optional(l.string())}).passthrough(),Gn=Le.extend({method:l.literal("notifications/progress"),params:Nr.merge(Jy).extend({progressToken:nd})}),Yn=ye.extend({params:je.extend({cursor:l.optional(id)}).optional()}),Xn=Pe.extend({nextCursor:l.optional(id)}),md=l.object({uri:l.string(),mimeType:l.optional(l.string())}).passthrough(),hd=md.extend({text:l.string()}),gd=md.extend({blob:l.string().base64()}),Gy=l.object({uri:l.string(),name:l.string(),description:l.optional(l.string()),mimeType:l.optional(l.string())}).passthrough(),Yy=l.object({uriTemplate:l.string(),name:l.string(),description:l.optional(l.string()),mimeType:l.optional(l.string())}).passthrough(),Xy=Yn.extend({method:l.literal("resources/list")}),Qy=Xn.extend({resources:l.array(Gy)}),ev=Yn.extend({method:l.literal("resources/templates/list")}),tv=Xn.extend({resourceTemplates:l.array(Yy)}),rv=ye.extend({method:l.literal("resources/read"),params:je.extend({uri:l.string()})}),nv=Pe.extend({contents:l.array(l.union([hd,gd]))}),iv=Le.extend({method:l.literal("notifications/resources/list_changed")}),ov=ye.extend({method:l.literal("resources/subscribe"),params:je.extend({uri:l.string()})}),av=ye.extend({method:l.literal("resources/unsubscribe"),params:je.extend({uri:l.string()})}),sv=Le.extend({method:l.literal("notifications/resources/updated"),params:Nr.extend({uri:l.string()})}),cv=l.object({name:l.string(),description:l.optional(l.string()),required:l.optional(l.boolean())}).passthrough(),uv=l.object({name:l.string(),description:l.optional(l.string()),arguments:l.optional(l.array(cv))}).passthrough(),Bo=Yn.extend({method:l.literal("prompts/list")}),lv=Xn.extend({prompts:l.array(uv)}),Mo=ye.extend({method:l.literal("prompts/get"),params:je.extend({name:l.string(),arguments:l.optional(l.record(l.string()))})}),Qn=l.object({type:l.literal("text"),text:l.string()}).passthrough(),ei=l.object({type:l.literal("image"),data:l.string().base64(),mimeType:l.string()}).passthrough(),ti=l.object({type:l.literal("audio"),data:l.string().base64(),mimeType:l.string()}).passthrough(),yd=l.object({type:l.literal("resource"),resource:l.union([hd,gd])}).passthrough(),dv=l.object({role:l.enum(["user","assistant"]),content:l.union([Qn,ei,ti,yd])}).passthrough(),fv=Pe.extend({description:l.optional(l.string()),messages:l.array(dv)}),pv=Le.extend({method:l.literal("notifications/prompts/list_changed")}),mv=l.object({title:l.optional(l.string()),readOnlyHint:l.optional(l.boolean()),destructiveHint:l.optional(l.boolean()),idempotentHint:l.optional(l.boolean()),openWorldHint:l.optional(l.boolean())}).passthrough(),hv=l.object({name:l.string(),description:l.optional(l.string()),inputSchema:l.object({type:l.literal("object"),properties:l.optional(l.object({}).passthrough()),required:l.optional(l.array(l.string()))}).passthrough(),outputSchema:l.optional(l.object({type:l.literal("object"),properties:l.optional(l.object({}).passthrough()),required:l.optional(l.array(l.string()))}).passthrough()),annotations:l.optional(mv)}).passthrough(),Fo=Yn.extend({method:l.literal("tools/list")}),gv=Xn.extend({tools:l.array(hv)}),vd=Pe.extend({content:l.array(l.union([Qn,ei,ti,yd])).default([]),structuredContent:l.object({}).passthrough().optional(),isError:l.optional(l.boolean())}),bk=vd.or(Pe.extend({toolResult:l.unknown()})),Vo=ye.extend({method:l.literal("tools/call"),params:je.extend({name:l.string(),arguments:l.optional(l.record(l.unknown()))})}),yv=Le.extend({method:l.literal("notifications/tools/list_changed")}),_d=l.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),vv=ye.extend({method:l.literal("logging/setLevel"),params:je.extend({level:_d})}),_v=Le.extend({method:l.literal("notifications/message"),params:Nr.extend({level:_d,logger:l.optional(l.string()),data:l.unknown()})}),bv=l.object({name:l.string().optional()}).passthrough(),xv=l.object({hints:l.optional(l.array(bv)),costPriority:l.optional(l.number().min(0).max(1)),speedPriority:l.optional(l.number().min(0).max(1)),intelligencePriority:l.optional(l.number().min(0).max(1))}).passthrough(),$v=l.object({role:l.enum(["user","assistant"]),content:l.union([Qn,ei,ti])}).passthrough(),wv=ye.extend({method:l.literal("sampling/createMessage"),params:je.extend({messages:l.array($v),systemPrompt:l.optional(l.string()),includeContext:l.optional(l.enum(["none","thisServer","allServers"])),temperature:l.optional(l.number()),maxTokens:l.number().int(),stopSequences:l.optional(l.array(l.string())),metadata:l.optional(l.object({}).passthrough()),modelPreferences:l.optional(xv)})}),qo=Pe.extend({model:l.string(),stopReason:l.optional(l.enum(["endTurn","stopSequence","maxTokens"]).or(l.string())),role:l.enum(["user","assistant"]),content:l.discriminatedUnion("type",[Qn,ei,ti])}),kv=l.object({type:l.literal("ref/resource"),uri:l.string()}).passthrough(),Sv=l.object({type:l.literal("ref/prompt"),name:l.string()}).passthrough(),Iv=ye.extend({method:l.literal("completion/complete"),params:je.extend({ref:l.union([Sv,kv]),argument:l.object({name:l.string(),value:l.string()}).passthrough()})}),Tv=Pe.extend({completion:l.object({values:l.array(l.string()).max(100),total:l.optional(l.number().int()),hasMore:l.optional(l.boolean())}).passthrough()}),zv=l.object({uri:l.string().startsWith("file://"),name:l.optional(l.string())}).passthrough(),jv=ye.extend({method:l.literal("roots/list")}),Ko=Pe.extend({roots:l.array(zv)}),Pv=Le.extend({method:l.literal("notifications/roots/list_changed")}),xk=l.union([Jn,Do,Iv,vv,Mo,Bo,Xy,ev,rv,ov,av,Vo,Fo]),$k=l.union([Wn,Gn,Zo,Pv]),wk=l.union([Hn,qo,Ko]),kk=l.union([Jn,wv,jv]),Sk=l.union([Wn,Gn,_v,sv,iv,yv,pv]),Ik=l.union([Hn,Wy,Tv,fv,lv,Qy,tv,nv,vd,gv]),He=class extends Error{constructor(t,n,i){super(`MCP error ${t}: ${n}`),this.code=t,this.data=i,this.name="McpError"}};var Ev=6e4,ri=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this.setNotificationHandler(Wn,n=>{let i=this._requestHandlerAbortControllers.get(n.params.requestId);i?.abort(n.params.reason)}),this.setNotificationHandler(Gn,n=>{this._onprogress(n)}),this.setRequestHandler(Jn,n=>({}))}_setupTimeout(t,n,i,r,o=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(r,n),startTime:Date.now(),timeout:n,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:r})}_resetTimeout(t){let n=this._timeoutInfo.get(t);if(!n)return!1;let i=Date.now()-n.startTime;if(n.maxTotalTimeout&&i>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),new He(Re.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:i});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){let n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){this._transport=t,this._transport.onclose=()=>{this._onclose()},this._transport.onerror=n=>{this._onerror(n)},this._transport.onmessage=(n,i)=>{Lo(n)||dd(n)?this._onresponse(n):ad(n)?this._onrequest(n,i):cd(n)?this._onnotification(n):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},await this._transport.start()}_onclose(){var t;let n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._transport=void 0,(t=this.onclose)===null||t===void 0||t.call(this);let i=new He(Re.ConnectionClosed,"Connection closed");for(let r of n.values())r(i)}_onerror(t){var n;(n=this.onerror)===null||n===void 0||n.call(this,t)}_onnotification(t){var n;let i=(n=this._notificationHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(t)).catch(r=>this._onerror(new Error(`Uncaught error in notification handler: ${r}`)))}_onrequest(t,n){var i,r,o,a;let s=(i=this._requestHandlers.get(t.method))!==null&&i!==void 0?i:this.fallbackRequestHandler;if(s===void 0){(r=this._transport)===null||r===void 0||r.send({jsonrpc:"2.0",id:t.id,error:{code:Re.MethodNotFound,message:"Method not found"}}).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let c=new AbortController;this._requestHandlerAbortControllers.set(t.id,c);let d={signal:c.signal,sessionId:(o=this._transport)===null||o===void 0?void 0:o.sessionId,_meta:(a=t.params)===null||a===void 0?void 0:a._meta,sendNotification:f=>this.notification(f,{relatedRequestId:t.id}),sendRequest:(f,h,v)=>this.request(f,h,{...v,relatedRequestId:t.id}),authInfo:n?.authInfo,requestId:t.id};Promise.resolve().then(()=>s(t,d)).then(f=>{var h;if(!c.signal.aborted)return(h=this._transport)===null||h===void 0?void 0:h.send({result:f,jsonrpc:"2.0",id:t.id})},f=>{var h,v;if(!c.signal.aborted)return(h=this._transport)===null||h===void 0?void 0:h.send({jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(f.code)?f.code:Re.InternalError,message:(v=f.message)!==null&&v!==void 0?v:"Internal error"}})}).catch(f=>this._onerror(new Error(`Failed to send response: ${f}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:n,...i}=t.params,r=Number(n),o=this._progressHandlers.get(r);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(r),s=this._timeoutInfo.get(r);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(c){a(c);return}o(i)}_onresponse(t){let n=Number(t.id),i=this._responseHandlers.get(n);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}if(this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),Lo(t))i(t);else{let r=new He(t.error.code,t.error.message,t.error.data);i(r)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)===null||t===void 0?void 0:t.close())}request(t,n,i){let{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}=i??{};return new Promise((s,c)=>{var d,f,h,v,m,p;if(!this._transport){c(new Error("Not connected"));return}((d=this._options)===null||d===void 0?void 0:d.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(t.method),(f=i?.signal)===null||f===void 0||f.throwIfAborted();let y=this._requestMessageId++,b={...t,jsonrpc:"2.0",id:y};i?.onprogress&&(this._progressHandlers.set(y,i.onprogress),b.params={...t.params,_meta:{...((h=t.params)===null||h===void 0?void 0:h._meta)||{},progressToken:y}});let x=S=>{var A;this._responseHandlers.delete(y),this._progressHandlers.delete(y),this._cleanupTimeout(y),(A=this._transport)===null||A===void 0||A.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:y,reason:String(S)}},{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}).catch(L=>this._onerror(new Error(`Failed to send cancellation: ${L}`))),c(S)};this._responseHandlers.set(y,S=>{var A;if(!(!((A=i?.signal)===null||A===void 0)&&A.aborted)){if(S instanceof Error)return c(S);try{let L=n.parse(S.result);s(L)}catch(L){c(L)}}}),(v=i?.signal)===null||v===void 0||v.addEventListener("abort",()=>{var S;x((S=i?.signal)===null||S===void 0?void 0:S.reason)});let T=(m=i?.timeout)!==null&&m!==void 0?m:Ev,w=()=>x(new He(Re.RequestTimeout,"Request timed out",{timeout:T}));this._setupTimeout(y,T,i?.maxTotalTimeout,w,(p=i?.resetTimeoutOnProgress)!==null&&p!==void 0?p:!1),this._transport.send(b,{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}).catch(S=>{this._cleanupTimeout(y),c(S)})})}async notification(t,n){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let i={...t,jsonrpc:"2.0"};await this._transport.send(i,n)}setRequestHandler(t,n){let i=t.shape.method.value;this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(r,o)=>Promise.resolve(n(t.parse(r),o)))}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){this._notificationHandlers.set(t.shape.method.value,i=>Promise.resolve(n(t.parse(i))))}removeNotificationHandler(t){this._notificationHandlers.delete(t)}};function bd(e,t){return Object.entries(t).reduce((n,[i,r])=>(r&&typeof r=="object"?n[i]=n[i]?{...n[i],...r}:r:n[i]=r,n),{...e})}var ni=class extends ri{constructor(t,n){var i;super(n),this._serverInfo=t,this._capabilities=(i=n?.capabilities)!==null&&i!==void 0?i:{},this._instructions=n?.instructions,this.setRequestHandler(Do,r=>this._oninitialize(r)),this.setNotificationHandler(Zo,()=>{var r;return(r=this.oninitialized)===null||r===void 0?void 0:r.call(this)})}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=bd(this._capabilities,t)}assertCapabilityForMethod(t){var n,i;switch(t){case"sampling/createMessage":if(!(!((n=this._clientCapabilities)===null||n===void 0)&&n.sampling))throw new Error(`Client does not support sampling (required for ${t})`);break;case"roots/list":if(!(!((i=this._clientCapabilities)===null||i===void 0)&&i.roots))throw new Error(`Client does not support listing roots (required for ${t})`);break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${t})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${t})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${t})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Server does not support sampling (required for ${t})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"ping":case"initialize":break}}async _oninitialize(t){let n=t.params.protocolVersion;return this._clientCapabilities=t.params.capabilities,this._clientVersion=t.params.clientInfo,{protocolVersion:rd.includes(n)?n:Ro,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Hn)}async createMessage(t,n){return this.request({method:"sampling/createMessage",params:t},qo,n)}async listRoots(t,n){return this.request({method:"roots/list",params:t},Ko,n)}async sendLoggingMessage(t){return this.notification({method:"notifications/message",params:t})}async sendResourceUpdated(t){return this.notification({method:"notifications/resources/updated",params:t})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};import $d from"node:process";var ii=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(`
|
|
34
|
-
`);if(t===-1)return null;let n=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),
|
|
35
|
-
`}var oi=class{constructor(t=$d.stdin,n=$d.stdout){this._stdin=t,this._stdout=n,this._readBuffer=new ii,this._started=!1,this._ondata=i=>{this._readBuffer.append(i),this.processReadBuffer()},this._onerror=i=>{var r;(r=this.onerror)===null||r===void 0||r.call(this,i)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(var t,n;;)try{let i=this._readBuffer.readMessage();if(i===null)break;(t=this.onmessage)===null||t===void 0||t.call(this,i)}catch(i){(n=this.onerror)===null||n===void 0||n.call(this,i)}}async close(){var t;this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),(t=this.onclose)===null||t===void 0||t.call(this)}send(t){return new Promise(n=>{let i=xd(t);this._stdout.write(i)?n():this._stdout.once("drain",n)})}};var
|
|
36
|
-
`))),La=e=>{let t=
|
|
37
|
-
`:"")+e}catch(n){console.error(`error within ${e}, gamla could not augment error stack`,n,t)}throw t},Da=e=>{let t=La(4);return(...n)=>{try{let i=e(...n);return Se(i)?i.catch(Cp(t)):i}catch(i){Cp(t)(i)}}},me=(...e)=>Da(Yb(...e));var Za=e=>e;var Xb=e=>t=>{let n=[];for(let i of t)n.push(e(i));return n.some(Se)?Promise.all(n):n},Ge=(...e)=>Da(Xb(...e));var Ba=(...e)=>(...t)=>{let n=[],i=!1;for(let r of e)n.push(r(...t)),i=i||Se(n[n.length-1]);return i?Promise.all(n):n},Ap=e=>t=>Ba(Za,e)(t);var xi=e=>me(Ge(Ap(e)),t=>t.filter(bi),Ge(Kr));var f1=new TextEncoder;var g1=new TextEncoder().encode("0123456789abcdef"),y1=new TextEncoder,v1=new TextDecoder;var rx=(e,t,n)=>i=>{let r={};for(let o of i)for(let a of e(o))r[a]=t(a in r?r[a]:n(),o);return r},T1=Je((e,t)=>(e[t]=(e[t]||0)+1,e),()=>({})),nx=(e,t,n)=>rx(me(e,Ra),t,n);var z1=nx(Kr,(e,[t,n])=>(e.add(n),e),()=>new Set),Up=e=>me(Object.entries,e,Object.fromEntries),j1=me(Ge,Up),P1=me(xi,Up);var ix=e=>(t,n)=>(...i)=>new Promise((r,o)=>{let a=!1,s=!1,c=setTimeout(()=>{a||(s=!0,o(e))},t);n(...i).then(d=>{s||(clearTimeout(c),a=!0,r(d))}).catch(o)}),H1=ix(new Error("Timed out"));var ox=e=>{let t=0,n=[],i=()=>{n.length>0&&t<e&&(t++,n.shift()())};return{acquire:()=>t<e?(t++,Promise.resolve()):new Promise(a=>{n.push(a)}),release:()=>{t--,i()}}},ax=e=>t=>n=>{let i=new Map;return async(...r)=>{let o=e(...r);i.has(o)||i.set(o,ox(t));let{acquire:a,release:s}=i.get(o);await a();try{return await n(...r)}finally{s()}}},Y1=ax(()=>"");var sx=(e,t)=>e+t,o4=Je(sx,()=>0);var l4=Je((e,t)=>e.flatMap(n=>t.map(i=>[...n,i])),()=>[[]]);var Ka=Vl(Zp()),L4=Ka.default.configure;var mr=Ka.default;var Q=e=>e,Bp=e=>async t=>{let n=await fetch(e,{method:"POST",body:JSON.stringify(t)});return n.status!==200?Promise.reject(await n.text()):n.json()},Mp=(e,t)=>n=>e(n);var u={};nt(u,{$brand:()=>$i,$input:()=>ou,$output:()=>iu,NEVER:()=>ew,ZodAny:()=>ih,ZodArray:()=>ch,ZodBase64:()=>gl,ZodBase64URL:()=>yl,ZodBigInt:()=>On,ZodBigIntFormat:()=>bl,ZodBoolean:()=>En,ZodCIDRv4:()=>ml,ZodCIDRv6:()=>hl,ZodCUID:()=>sl,ZodCUID2:()=>cl,ZodCatch:()=>Th,ZodCustom:()=>wo,ZodDate:()=>bo,ZodDefault:()=>xh,ZodDiscriminatedUnion:()=>uh,ZodE164:()=>vl,ZodEmail:()=>nl,ZodEmoji:()=>ol,ZodEnum:()=>zn,ZodError:()=>J0,ZodFile:()=>_h,ZodGUID:()=>mo,ZodIPv4:()=>fl,ZodIPv6:()=>pl,ZodISODate:()=>uo,ZodISODateTime:()=>co,ZodISODuration:()=>fo,ZodISOTime:()=>lo,ZodIntersection:()=>lh,ZodIssueCode:()=>X$,ZodJWT:()=>_l,ZodKSUID:()=>dl,ZodLazy:()=>Nh,ZodLiteral:()=>yh,ZodMap:()=>mh,ZodNaN:()=>jh,ZodNanoID:()=>al,ZodNever:()=>ah,ZodNonOptional:()=>Tl,ZodNull:()=>rh,ZodNullable:()=>bh,ZodNumber:()=>Pn,ZodNumberFormat:()=>Sr,ZodObject:()=>xo,ZodOptional:()=>Il,ZodPipe:()=>zl,ZodPrefault:()=>wh,ZodPromise:()=>Ah,ZodReadonly:()=>Ph,ZodRealError:()=>kr,ZodRecord:()=>wl,ZodSet:()=>hh,ZodString:()=>jn,ZodStringFormat:()=>J,ZodSuccess:()=>Ih,ZodSymbol:()=>eh,ZodTemplateLiteral:()=>Oh,ZodTransform:()=>kl,ZodTuple:()=>fh,ZodType:()=>Z,ZodULID:()=>ul,ZodURL:()=>il,ZodUUID:()=>rt,ZodUndefined:()=>th,ZodUnion:()=>$l,ZodUnknown:()=>oh,ZodVoid:()=>sh,ZodXID:()=>ll,_ZodString:()=>rl,_default:()=>$h,any:()=>z$,array:()=>xl,base64:()=>h$,base64url:()=>g$,bigint:()=>w$,boolean:()=>Qm,catch:()=>zh,check:()=>Uh,cidrv4:()=>p$,cidrv6:()=>m$,clone:()=>ve,coerce:()=>jl,config:()=>Y,core:()=>tt,cuid:()=>a$,cuid2:()=>s$,custom:()=>H$,date:()=>P$,discriminatedUnion:()=>A$,e164:()=>y$,email:()=>Y0,emoji:()=>i$,endsWith:()=>bn,enum:()=>gh,file:()=>B$,flattenError:()=>on,float32:()=>_$,float64:()=>b$,formatError:()=>an,function:()=>Vu,getErrorMap:()=>rw,globalRegistry:()=>Me,gt:()=>Qe,gte:()=>ge,guid:()=>X0,includes:()=>vn,instanceof:()=>W$,int:()=>tl,int32:()=>x$,int64:()=>k$,intersection:()=>dh,ipv4:()=>d$,ipv6:()=>f$,iso:()=>po,json:()=>G$,jwt:()=>v$,keyof:()=>E$,ksuid:()=>l$,lazy:()=>Ch,length:()=>wr,literal:()=>vh,locales:()=>fn,looseObject:()=>C$,lowercase:()=>gn,lt:()=>Xe,lte:()=>Ie,map:()=>L$,maxLength:()=>$r,maxSize:()=>xr,mime:()=>xn,minLength:()=>yt,minSize:()=>Gt,multipleOf:()=>Jt,nan:()=>V$,nanoid:()=>o$,nativeEnum:()=>Z$,negative:()=>Au,never:()=>_o,nonnegative:()=>Ru,nonoptional:()=>Sh,nonpositive:()=>Uu,normalize:()=>$n,null:()=>nh,nullable:()=>yo,nullish:()=>M$,number:()=>Xm,object:()=>O$,optional:()=>go,overwrite:()=>et,parse:()=>Gu,parseAsync:()=>Yu,partialRecord:()=>R$,pipe:()=>vo,positive:()=>Cu,prefault:()=>kh,preprocess:()=>Y$,prettifyError:()=>os,promise:()=>K$,property:()=>Lu,readonly:()=>Eh,record:()=>ph,refine:()=>Rh,regex:()=>hn,regexes:()=>Kt,registry:()=>Di,safeParse:()=>Xu,safeParseAsync:()=>Qu,set:()=>D$,setErrorMap:()=>tw,size:()=>mn,startsWith:()=>_n,strictObject:()=>N$,string:()=>el,stringbool:()=>J$,success:()=>F$,superRefine:()=>Lh,symbol:()=>I$,templateLiteral:()=>q$,toJSONSchema:()=>qu,toLowerCase:()=>kn,toUpperCase:()=>Sn,transform:()=>Sl,treeifyError:()=>is,trim:()=>wn,tuple:()=>U$,uint32:()=>$$,uint64:()=>S$,ulid:()=>c$,undefined:()=>T$,union:()=>$o,unknown:()=>ho,uppercase:()=>yn,url:()=>n$,uuid:()=>Q0,uuidv4:()=>e$,uuidv6:()=>t$,uuidv7:()=>r$,void:()=>j$,xid:()=>u$});var tt={};nt(tt,{$ZodAny:()=>Oc,$ZodArray:()=>un,$ZodAsyncError:()=>Be,$ZodBase64:()=>wc,$ZodBase64URL:()=>kc,$ZodBigInt:()=>Ui,$ZodBigIntFormat:()=>zc,$ZodBoolean:()=>cn,$ZodCIDRv4:()=>bc,$ZodCIDRv6:()=>xc,$ZodCUID:()=>uc,$ZodCUID2:()=>lc,$ZodCatch:()=>Yc,$ZodCheck:()=>G,$ZodCheckBigIntFormat:()=>Ds,$ZodCheckEndsWith:()=>Ys,$ZodCheckGreaterThan:()=>Oi,$ZodCheckIncludes:()=>Js,$ZodCheckLengthEquals:()=>qs,$ZodCheckLessThan:()=>Ei,$ZodCheckLowerCase:()=>Hs,$ZodCheckMaxLength:()=>Fs,$ZodCheckMaxSize:()=>Zs,$ZodCheckMimeType:()=>Qs,$ZodCheckMinLength:()=>Vs,$ZodCheckMinSize:()=>Bs,$ZodCheckMultipleOf:()=>Rs,$ZodCheckNumberFormat:()=>Ls,$ZodCheckOverwrite:()=>ec,$ZodCheckProperty:()=>Xs,$ZodCheckRegex:()=>Ks,$ZodCheckSizeEquals:()=>Ms,$ZodCheckStartsWith:()=>Gs,$ZodCheckStringFormat:()=>yr,$ZodCheckUpperCase:()=>Ws,$ZodCustom:()=>nu,$ZodDate:()=>Ac,$ZodDefault:()=>Hc,$ZodDiscriminatedUnion:()=>Rc,$ZodE164:()=>Sc,$ZodEmail:()=>oc,$ZodEmoji:()=>sc,$ZodEnum:()=>Mc,$ZodError:()=>nn,$ZodFile:()=>Vc,$ZodFunction:()=>so,$ZodGUID:()=>nc,$ZodIPv4:()=>vc,$ZodIPv6:()=>_c,$ZodISODate:()=>hc,$ZodISODateTime:()=>mc,$ZodISODuration:()=>yc,$ZodISOTime:()=>gc,$ZodIntersection:()=>Lc,$ZodJWT:()=>Ic,$ZodKSUID:()=>pc,$ZodLazy:()=>ru,$ZodLiteral:()=>Fc,$ZodMap:()=>Zc,$ZodNaN:()=>Xc,$ZodNanoID:()=>cc,$ZodNever:()=>Nc,$ZodNonOptional:()=>Jc,$ZodNull:()=>Ec,$ZodNullable:()=>Kc,$ZodNumber:()=>Ai,$ZodNumberFormat:()=>Tc,$ZodObject:()=>Uc,$ZodOptional:()=>qc,$ZodPipe:()=>dn,$ZodPrefault:()=>Wc,$ZodPromise:()=>tu,$ZodReadonly:()=>Qc,$ZodRealError:()=>gr,$ZodRecord:()=>Dc,$ZodRegistry:()=>_r,$ZodSet:()=>Bc,$ZodString:()=>Ht,$ZodStringFormat:()=>W,$ZodSuccess:()=>Gc,$ZodSymbol:()=>jc,$ZodTemplateLiteral:()=>eu,$ZodTransform:()=>ln,$ZodTuple:()=>Wt,$ZodType:()=>U,$ZodULID:()=>dc,$ZodURL:()=>ac,$ZodUUID:()=>ic,$ZodUndefined:()=>Pc,$ZodUnion:()=>Ri,$ZodUnknown:()=>vr,$ZodVoid:()=>Cc,$ZodXID:()=>fc,$brand:()=>$i,$constructor:()=>g,$input:()=>ou,$output:()=>iu,Doc:()=>sn,JSONSchema:()=>Jm,JSONSchemaGenerator:()=>Tn,_any:()=>zu,_array:()=>In,_base64:()=>no,_base64url:()=>io,_bigint:()=>xu,_boolean:()=>_u,_catch:()=>M0,_cidrv4:()=>to,_cidrv6:()=>ro,_coercedBigint:()=>$u,_coercedBoolean:()=>bu,_coercedDate:()=>Ou,_coercedNumber:()=>pu,_coercedString:()=>su,_cuid:()=>Wi,_cuid2:()=>Ji,_custom:()=>Bu,_date:()=>Eu,_default:()=>D0,_discriminatedUnion:()=>z0,_e164:()=>oo,_email:()=>Zi,_emoji:()=>Ki,_endsWith:()=>bn,_enum:()=>N0,_file:()=>Zu,_float32:()=>hu,_float64:()=>gu,_gt:()=>Qe,_gte:()=>ge,_guid:()=>pn,_includes:()=>vn,_int:()=>mu,_int32:()=>yu,_int64:()=>wu,_intersection:()=>j0,_ipv4:()=>Qi,_ipv6:()=>eo,_isoDate:()=>uu,_isoDateTime:()=>cu,_isoDuration:()=>du,_isoTime:()=>lu,_jwt:()=>ao,_ksuid:()=>Xi,_lazy:()=>K0,_length:()=>wr,_literal:()=>A0,_lowercase:()=>gn,_lt:()=>Xe,_lte:()=>Ie,_map:()=>E0,_max:()=>Ie,_maxLength:()=>$r,_maxSize:()=>xr,_mime:()=>xn,_min:()=>ge,_minLength:()=>yt,_minSize:()=>Gt,_multipleOf:()=>Jt,_nan:()=>Nu,_nanoid:()=>Hi,_nativeEnum:()=>C0,_negative:()=>Au,_never:()=>ju,_nonnegative:()=>Ru,_nonoptional:()=>Z0,_nonpositive:()=>Uu,_normalize:()=>$n,_null:()=>Tu,_nullable:()=>L0,_number:()=>fu,_optional:()=>R0,_overwrite:()=>et,_parse:()=>ki,_parseAsync:()=>Ii,_pipe:()=>F0,_positive:()=>Cu,_promise:()=>H0,_property:()=>Lu,_readonly:()=>V0,_record:()=>P0,_refine:()=>Mu,_regex:()=>hn,_safeParse:()=>zi,_safeParseAsync:()=>ji,_set:()=>O0,_size:()=>mn,_startsWith:()=>_n,_string:()=>au,_stringbool:()=>Fu,_success:()=>B0,_symbol:()=>Su,_templateLiteral:()=>q0,_toLowerCase:()=>kn,_toUpperCase:()=>Sn,_transform:()=>U0,_trim:()=>wn,_tuple:()=>Du,_uint32:()=>vu,_uint64:()=>ku,_ulid:()=>Gi,_undefined:()=>Iu,_union:()=>T0,_unknown:()=>br,_uppercase:()=>yn,_url:()=>qi,_uuid:()=>Bi,_uuidv4:()=>Mi,_uuidv6:()=>Fi,_uuidv7:()=>Vi,_void:()=>Pu,_xid:()=>Yi,clone:()=>ve,config:()=>Y,flattenError:()=>on,formatError:()=>an,function:()=>Vu,globalConfig:()=>Wr,globalRegistry:()=>Me,isValidBase64:()=>$c,isValidBase64URL:()=>cm,isValidJWT:()=>um,locales:()=>fn,parse:()=>Si,parseAsync:()=>Ti,prettifyError:()=>os,regexes:()=>Kt,registry:()=>Di,safeParse:()=>as,safeParseAsync:()=>ss,toDotPath:()=>Vp,toJSONSchema:()=>qu,treeifyError:()=>is,util:()=>I,version:()=>tc});function g(e,t,n){function i(s,c){var d;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(d=s._zod).traits??(d.traits=new Set),s._zod.traits.add(e),t(s,c);for(let f in a.prototype)f in s||Object.defineProperty(s,f,{value:a.prototype[f].bind(s)});s._zod.constr=a,s._zod.def=c}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let d=n?.Parent?new o:this;i(d,s),(c=d._zod).deferred??(c.deferred=[]);for(let f of d._zod.deferred)f();return d}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var $i=Symbol("zod_brand"),Be=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Wr={};function Y(e){return e&&Object.assign(Wr,e),Wr}var I={};nt(I,{BIGINT_FORMAT_RANGES:()=>rs,Class:()=>Wa,NUMBER_FORMAT_RANGES:()=>ts,aborted:()=>Vt,allowsEval:()=>Xa,assert:()=>_x,assertEqual:()=>hx,assertIs:()=>yx,assertNever:()=>vx,assertNotEqual:()=>gx,assignProp:()=>Ya,cached:()=>Yr,cleanEnum:()=>Ex,cleanRegex:()=>Xr,clone:()=>ve,createTransparentProxy:()=>kx,defineLazy:()=>q,esc:()=>Ft,escapeRegex:()=>Ye,extend:()=>Tx,finalizeIssue:()=>_e,floatSafeRemainder:()=>Ga,getElementAtPath:()=>bx,getEnumValues:()=>Gr,getLengthableOrigin:()=>rn,getParsedType:()=>wx,getSizableOrigin:()=>tn,isObject:()=>hr,isPlainObject:()=>Qr,issue:()=>ns,joinValues:()=>_,jsonStringifyReplacer:()=>Ja,merge:()=>zx,normalizeParams:()=>k,nullish:()=>gt,numKeys:()=>$x,omit:()=>Ix,optionalKeys:()=>es,partial:()=>jx,pick:()=>Sx,prefixIssues:()=>he,primitiveTypes:()=>Qa,promiseAllObject:()=>xx,propertyKeyTypes:()=>en,randomString:()=>wi,required:()=>Px,stringifyPrimitive:()=>j,unwrapMessage:()=>Jr});function hx(e){return e}function gx(e){return e}function yx(e){}function vx(e){throw new Error}function _x(e){}function Gr(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function _(e,t="|"){return e.map(n=>j(n)).join(t)}function Ja(e,t){return typeof t=="bigint"?t.toString():t}function Yr(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function gt(e){return e==null}function Xr(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ga(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return o%a/10**r}function q(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}throw new Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Ya(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function bx(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function xx(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function wi(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Ft(e){return JSON.stringify(e)}function hr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xa=Yr(()=>{try{let e=Function;return new e(""),!0}catch{return!1}});function Qr(e){if(hr(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(hr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function $x(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var wx=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},en=new Set(["string","number","symbol"]),Qa=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ye(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function k(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};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:()=>t.error}:t}function kx(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function j(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function es(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ts={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 Sx(e,t){let n={},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(n[r]=i.shape[r])}return ve(e,{...e._zod.def,shape:n,checks:[]})}function Ix(e,t){let n={...e._zod.def.shape},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete n[r]}return ve(e,{...e._zod.def,shape:n,checks:[]})}function Tx(e,t){let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return Ya(this,"shape",i),i},checks:[]};return ve(e,n)}function zx(e,t){return ve(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ya(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function jx(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)r[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return ve(t,{...t._zod.def,shape:r,checks:[]})}function Px(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(let o in i)r[o]=new e({type:"nonoptional",innerType:i[o]});return ve(t,{...t._zod.def,shape:r,checks:[]})}function Vt(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n].continue!==!0)return!0;return!1}function he(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Jr(e){return typeof e=="string"?e:e?.message}function _e(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=Jr(e.inst?._zod.def?.error?.(e))??Jr(t?.error?.(e))??Jr(n.customError?.(e))??Jr(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function tn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ns(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Ex(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var Wa=class{constructor(...t){}};var Fp=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Ja,2)},enumerable:!0})},nn=g("$ZodError",Fp),gr=g("$ZodError",Fp,{Parent:Error});function on(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function an(e,t){let n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>r({issues:s}));else if(a.code==="invalid_key")r({issues:a.issues});else if(a.code==="invalid_element")r({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let s=i,c=0;for(;c<a.path.length;){let d=a.path[c];c===a.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(n(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}};return r(e),i}function is(e,t){let n=t||function(o){return o.message},i={errors:[]},r=(o,a=[])=>{var s,c;for(let d of o.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(f=>r({issues:f},d.path));else if(d.code==="invalid_key")r({issues:d.issues},d.path);else if(d.code==="invalid_element")r({issues:d.issues},d.path);else{let f=[...a,...d.path];if(f.length===0){i.errors.push(n(d));continue}let h=i,v=0;for(;v<f.length;){let m=f[v],p=v===f.length-1;typeof m=="string"?(h.properties??(h.properties={}),(s=h.properties)[m]??(s[m]={errors:[]}),h=h.properties[m]):(h.items??(h.items=[]),(c=h.items)[m]??(c[m]={errors:[]}),h=h.items[m]),p&&h.errors.push(n(d)),v++}}};return r(e),i}function Vp(e){let t=[];for(let n of e)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function os(e){let t=[],n=[...e.issues].sort((i,r)=>i.path.length-r.path.length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Vp(i.path)}`);return t.join(`
|
|
38
|
-
`)}var ki=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Be;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>_e(c,o,Y())));throw Error.captureStackTrace(s,r?.callee),s}return a.value},Si=ki(gr),Ii=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>_e(c,o,Y())));throw Error.captureStackTrace(s,r?.callee),s}return a.value},Ti=Ii(gr),zi=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Be;return o.issues.length?{success:!1,error:new(e??nn)(o.issues.map(a=>_e(a,r,Y())))}:{success:!0,data:o.value}},as=zi(gr),ji=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>_e(a,r,Y())))}:{success:!0,data:o.value}},ss=ji(gr);var Kt={};nt(Kt,{_emoji:()=>qp,base64:()=>$s,base64url:()=>Pi,bigint:()=>js,boolean:()=>Os,browserEmail:()=>Zx,cidrv4:()=>bs,cidrv6:()=>xs,cuid:()=>cs,cuid2:()=>us,date:()=>Ss,datetime:()=>Ts,domain:()=>Bx,duration:()=>ms,e164:()=>ks,email:()=>gs,emoji:()=>ys,extendedDuration:()=>Nx,guid:()=>hs,hostname:()=>ws,html5Email:()=>Rx,integer:()=>Ps,ipv4:()=>vs,ipv6:()=>_s,ksuid:()=>fs,lowercase:()=>As,nanoid:()=>ps,null:()=>Ns,number:()=>Es,rfc5322Email:()=>Lx,string:()=>zs,time:()=>Is,ulid:()=>ls,undefined:()=>Cs,unicodeEmail:()=>Dx,uppercase:()=>Us,uuid:()=>qt,uuid4:()=>Cx,uuid6:()=>Ax,uuid7:()=>Ux,xid:()=>ds});var cs=/^[cC][^\s-]{8,}$/,us=/^[0-9a-z]+$/,ls=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ds=/^[0-9a-vA-V]{20}$/,fs=/^[A-Za-z0-9]{27}$/,ps=/^[a-zA-Z0-9_-]{21}$/,ms=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Nx=/^[-+]?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)?)??$/,hs=/^([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})$/,qt=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)$/,Cx=qt(4),Ax=qt(6),Ux=qt(7),gs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Rx=/^[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])?)*$/,Lx=/^(([^<>()\[\]\\.,;:\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,}))$/,Dx=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Zx=/^[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])?)*$/,qp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ys(){return new RegExp(qp,"u")}var vs=/^(?:(?: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])$/,_s=/^(([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})$/,bs=/^((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])$/,xs=/^(([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])$/,$s=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pi=/^[A-Za-z0-9_-]*$/,ws=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Bx=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ks=/^\+(?:[0-9]){6,14}[0-9]$/,Kp="((\\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])))",Ss=new RegExp(`^${Kp}$`);function Hp(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Is(e){return new RegExp(`^${Hp(e)}$`)}function Ts(e){let t=`${Kp}T${Hp(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}var zs=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},js=/^\d+n?$/,Ps=/^\d+$/,Es=/^-?\d+(?:\.\d+)?/i,Os=/true|false/i,Ns=/null/i;var Cs=/undefined/i;var As=/^[^A-Z]*$/,Us=/^[^a-z]*$/;var G=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Jp={number:"number",bigint:"bigint",object:"date"},Ei=g("$ZodCheckLessThan",(e,t)=>{G.init(e,t);let n=Jp[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Oi=g("$ZodCheckGreaterThan",(e,t)=>{G.init(e,t);let n=Jp[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rs=g("$ZodCheckMultipleOf",(e,t)=>{G.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Ga(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ls=g("$ZodCheckNumberFormat",(e,t)=>{G.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=ts[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=Ps)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),Ds=g("$ZodCheckBigIntFormat",(e,t)=>{G.init(e,t);let[n,i]=rs[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),Zs=g("$ZodCheckMaxSize",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;i.size<=t.maximum||n.issues.push({origin:tn(i),code:"too_big",maximum:t.maximum,input:i,inst:e,continue:!t.abort})}}),Bs=g("$ZodCheckMinSize",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.size!==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;i.size>=t.minimum||n.issues.push({origin:tn(i),code:"too_small",minimum:t.minimum,input:i,inst:e,continue:!t.abort})}}),Ms=g("$ZodCheckSizeEquals",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{let i=n.value,r=i.size;if(r===t.size)return;let o=r>t.size;n.issues.push({origin:tn(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},input:n.value,inst:e,continue:!t.abort})}}),Fs=g("$ZodCheckMaxLength",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=rn(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Vs=g("$ZodCheckMinLength",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(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 o=rn(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qs=g("$ZodCheckLengthEquals",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,r=i.length;if(r===t.length)return;let o=rn(i),a=r>t.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},input:n.value,inst:e,continue:!t.abort})}}),yr=g("$ZodCheckStringFormat",(e,t)=>{var n;G.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),(n=e._zod).check??(n.check=i=>{if(!t.pattern)throw new Error("Not implemented.");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})})}),Ks=g("$ZodCheckRegex",(e,t)=>{yr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Hs=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=As),yr.init(e,t)}),Ws=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Us),yr.init(e,t)}),Js=g("$ZodCheckIncludes",(e,t)=>{G.init(e,t);let n=Ye(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Gs=g("$ZodCheckStartsWith",(e,t)=>{G.init(e,t);let n=new RegExp(`^${Ye(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Ys=g("$ZodCheckEndsWith",(e,t)=>{G.init(e,t);let n=new RegExp(`.*${Ye(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Wp(e,t,n){e.issues.length&&t.issues.push(...he(n,e.issues))}var Xs=g("$ZodCheckProperty",(e,t)=>{G.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Wp(r,n,t.property));Wp(i,n,t.property)}}),Qs=g("$ZodCheckMimeType",(e,t)=>{G.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,path:["type"],inst:e})}}),ec=g("$ZodCheckOverwrite",(e,t)=>{G.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var sn=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
33
|
+
${T}`),y.pop(),`{${L}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function h(m,p,y){switch(typeof p){case"string":return ht(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(m),typeof p!="object")return h(m,p,y);if(p===null)return"null"}if(y.indexOf(p)!==-1)return n;let b="",x=p.length!==void 0;if(x&&Array.isArray(p)){if(p.length===0)return"[]";if(a<y.length+1)return'"[Array]"';y.push(p);let L=Math.min(p.length,s),M=0;for(;M<L-1;M++){let F=h(String(M),p[M],y);b+=F!==void 0?F:"null",b+=","}let K=h(String(M),p[M],y);if(b+=K!==void 0?K:"null",p.length-1>s){let F=p.length-s-1;b+=`,"... ${Bt(F)} not stringified"`}return y.pop(),`[${b}]`}let T=Object.keys(p),w=T.length;if(w===0)return"{}";if(a<y.length+1)return'"[Object]"';let S="",C=Math.min(w,s);x&&Fa(p)&&(b+=Rp(p,",",s),T=T.slice(p.length),C-=p.length,S=","),r&&(T=Ma(T,o)),y.push(p);for(let L=0;L<C;L++){let M=T[L],K=h(M,p[M],y);K!==void 0&&(b+=`${S}${ht(M)}:${K}`,S=",")}if(w>s){let L=w-s;b+=`${S}"...":"${Bt(L)} not stringified"`}return y.pop(),`{${b}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function v(m,p,y){if(arguments.length>1){let b="";if(typeof y=="number"?b=" ".repeat(Math.min(y,10)):typeof y=="string"&&(b=y.slice(0,10)),p!=null){if(typeof p=="function")return c("",{"":m},[],p,b,"");if(Array.isArray(p))return d("",m,[],mx(p),b,"")}if(b.length!==0)return f("",m,[],b,"")}return h("",m,[])}return v}});var l={};nt(l,{BRAND:()=>sy,DIRTY:()=>_t,EMPTY_PATH:()=>Dg,INVALID:()=>N,NEVER:()=>qy,OK:()=>se,ParseStatus:()=>ae,Schema:()=>D,ZodAny:()=>at,ZodArray:()=>Ke,ZodBigInt:()=>xt,ZodBoolean:()=>$t,ZodBranded:()=>Pr,ZodCatch:()=>Nt,ZodDate:()=>wt,ZodDefault:()=>Ot,ZodDiscriminatedUnion:()=>Mn,ZodEffects:()=>$e,ZodEnum:()=>Et,ZodError:()=>fe,ZodFirstPartyTypeKind:()=>A,ZodFunction:()=>Vn,ZodIntersection:()=>Tt,ZodIssueCode:()=>$,ZodLazy:()=>zt,ZodLiteral:()=>jt,ZodMap:()=>nr,ZodNaN:()=>or,ZodNativeEnum:()=>Pt,ZodNever:()=>ze,ZodNull:()=>St,ZodNullable:()=>Ue,ZodNumber:()=>bt,ZodObject:()=>pe,ZodOptional:()=>be,ZodParsedType:()=>E,ZodPipeline:()=>Or,ZodPromise:()=>st,ZodReadonly:()=>At,ZodRecord:()=>Fn,ZodSchema:()=>D,ZodSet:()=>ir,ZodString:()=>ot,ZodSymbol:()=>tr,ZodTransformer:()=>$e,ZodTuple:()=>Ce,ZodType:()=>D,ZodUndefined:()=>kt,ZodUnion:()=>It,ZodUnknown:()=>qe,ZodVoid:()=>rr,addIssueToContext:()=>z,any:()=>gy,array:()=>by,bigint:()=>dy,boolean:()=>td,coerce:()=>Vy,custom:()=>Xl,date:()=>fy,datetimeRegex:()=>Gl,defaultErrorMap:()=>Fe,discriminatedUnion:()=>ky,effect:()=>Uy,enum:()=>Ny,function:()=>Ey,getErrorMap:()=>Xt,getParsedType:()=>Ae,instanceof:()=>uy,intersection:()=>Sy,isAborted:()=>Zn,isAsync:()=>Qt,isDirty:()=>Bn,isValid:()=>it,late:()=>cy,lazy:()=>Py,literal:()=>Oy,makeIssue:()=>Er,map:()=>zy,nan:()=>ly,nativeEnum:()=>Ay,never:()=>vy,null:()=>hy,nullable:()=>Ly,number:()=>ed,object:()=>xy,objectUtil:()=>Ao,oboolean:()=>Fy,onumber:()=>My,optional:()=>Ry,ostring:()=>By,pipeline:()=>Zy,preprocess:()=>Dy,promise:()=>Cy,quotelessJson:()=>Ug,record:()=>Ty,set:()=>jy,setErrorMap:()=>Lg,strictObject:()=>$y,string:()=>Ql,symbol:()=>py,transformer:()=>Uy,tuple:()=>Iy,undefined:()=>my,union:()=>wy,unknown:()=>yy,util:()=>B,void:()=>_y});var B;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{let o={};for(let a of r)o[a]=a;return o},e.getValidEnumValues=r=>{let o=e.objectKeys(r).filter(s=>typeof r[r[s]]!="number"),a={};for(let s of o)a[s]=r[s];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let o=[];for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.push(a);return o},e.find=(r,o)=>{for(let a of r)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,o=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(B||(B={}));var Ao;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ao||(Ao={}));var E=B.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ae=e=>{switch(typeof e){case"undefined":return E.undefined;case"string":return E.string;case"number":return Number.isNaN(e)?E.nan:E.number;case"boolean":return E.boolean;case"function":return E.function;case"bigint":return E.bigint;case"symbol":return E.symbol;case"object":return Array.isArray(e)?E.array:e===null?E.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?E.promise:typeof Map<"u"&&e instanceof Map?E.map:typeof Set<"u"&&e instanceof Set?E.set:typeof Date<"u"&&e instanceof Date?E.date:E.object;default:return E.unknown}};var $=B.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ug=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fe=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(let a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let s=i,c=0;for(;c<a.path.length;){let d=a.path[c];c===a.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(n(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}};return r(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,B.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},i=[];for(let r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};fe.create=e=>new fe(e);var Rg=(e,t)=>{let n;switch(e.code){case $.invalid_type:e.received===E.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case $.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,B.jsonStringifyReplacer)}`;break;case $.unrecognized_keys:n=`Unrecognized key(s) in object: ${B.joinValues(e.keys,", ")}`;break;case $.invalid_union:n="Invalid input";break;case $.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${B.joinValues(e.options)}`;break;case $.invalid_enum_value:n=`Invalid enum value. Expected ${B.joinValues(e.options)}, received '${e.received}'`;break;case $.invalid_arguments:n="Invalid function arguments";break;case $.invalid_return_type:n="Invalid function return type";break;case $.invalid_date:n="Invalid date";break;case $.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:B.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case $.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case $.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case $.custom:n="Invalid input";break;case $.invalid_intersection_types:n="Intersection results could not be merged";break;case $.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case $.not_finite:n="Number must be finite";break;default:n=t.defaultError,B.assertNever(e)}return{message:n}},Fe=Rg;var ql=Fe;function Lg(e){ql=e}function Xt(){return ql}var Er=e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],a={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let s="",c=i.filter(d=>!!d).slice().reverse();for(let d of c)s=d(a,{data:t,defaultError:s}).message;return{...r,path:o,message:s}},Dg=[];function z(e,t){let n=Xt(),i=Er({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fe?void 0:Fe].filter(r=>!!r)});e.common.issues.push(i)}var ae=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let i=[];for(let r of n){if(r.status==="aborted")return N;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let o=await r.key,a=await r.value;i.push({key:o,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:o,value:a}=r;if(o.status==="aborted"||a.status==="aborted")return N;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(i[o.value]=a.value)}return{status:t.value,value:i}}},N=Object.freeze({status:"aborted"}),_t=e=>({status:"dirty",value:e}),se=e=>({status:"valid",value:e}),Zn=e=>e.status==="aborted",Bn=e=>e.status==="dirty",it=e=>e.status==="valid",Qt=e=>typeof Promise<"u"&&e instanceof Promise;var P;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(P||(P={}));var xe=class{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Kl=(e,t)=>{if(it(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new fe(e.common.issues);return this._error=n,this._error}}};function R(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,s)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??i??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??n??s.defaultError}},description:r}}var D=class{get description(){return this._def.description}_getType(t){return Ae(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ae(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ae,ctx:{common:t.parent.common,data:t.data,parsedType:Ae(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Qt(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ae(t)},r=this._parseSync({data:t,path:i.path,parent:i});return Kl(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ae(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return it(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>it(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ae(t)},r=this._parse({data:t,path:i.path,parent:i}),o=await(Qt(r)?r:Promise.resolve(r));return Kl(i,o)}refine(t,n){let i=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,o)=>{let a=t(r),s=()=>o.addIssue({code:$.custom,...i(r)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new $e({schema:this,typeName:A.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return be.create(this,this._def)}nullable(){return Ue.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ke.create(this)}promise(){return st.create(this,this._def)}or(t){return It.create([this,t],this._def)}and(t){return Tt.create(this,t,this._def)}transform(t){return new $e({...R(this._def),schema:this,typeName:A.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ot({...R(this._def),innerType:this,defaultValue:n,typeName:A.ZodDefault})}brand(){return new Pr({typeName:A.ZodBranded,type:this,...R(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Nt({...R(this._def),innerType:this,catchValue:n,typeName:A.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Or.create(this,t)}readonly(){return At.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Zg=/^c[^\s-]{8,}$/i,Bg=/^[0-9a-z]+$/,Mg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Fg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Vg=/^[a-z0-9_-]{21}$/i,qg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Kg=/^[-+]?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)?)??$/,Hg=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Wg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Co,Jg=/^(?:(?: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])$/,Gg=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,Yg=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Xg=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qg=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ey=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Wl="((\\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])))",ty=new RegExp(`^${Wl}$`);function Jl(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function ry(e){return new RegExp(`^${Jl(e)}$`)}function Gl(e){let t=`${Wl}T${Jl(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ny(e,t){return!!((t==="v4"||!t)&&Jg.test(e)||(t==="v6"||!t)&&Yg.test(e))}function iy(e,t){if(!qg.test(e))return!1;try{let[n]=e.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function oy(e,t){return!!((t==="v4"||!t)&&Gg.test(e)||(t==="v6"||!t)&&Xg.test(e))}var ot=class e extends D{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==E.string){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_type,expected:E.string,received:o.parsedType}),N}let i=new ae,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(r=this._getOrReturnCtx(t,r),a?z(r,{code:$.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&z(r,{code:$.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Hg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"email",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Co||(Co=new RegExp(Wg,"u")),Co.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"emoji",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")Fg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"uuid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")Vg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"nanoid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Zg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cuid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Bg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cuid2",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Mg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"ulid",code:$.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),z(r,{validation:"url",code:$.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"regex",code:$.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?Gl(o).test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?ty.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?ry(o).test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:$.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?Kg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"duration",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?ny(t.data,o.version)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"ip",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?iy(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"jwt",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?oy(t.data,o.version)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cidr",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?Qg.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64",code:$.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?ey.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64url",code:$.invalid_string,message:o.message}),i.dirty()):B.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:$.invalid_string,...P.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...P.errToObj(t)})}url(t){return this._addCheck({kind:"url",...P.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...P.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...P.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...P.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...P.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...P.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...P.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...P.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...P.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...P.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...P.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...P.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...P.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...P.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...P.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...P.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...P.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...P.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...P.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...P.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...P.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...P.errToObj(n)})}nonempty(t){return this.min(1,P.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};ot.create=e=>new ot({checks:[],typeName:A.ZodString,coerce:e?.coerce??!1,...R(e)});function ay(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return o%a/10**r}var bt=class e extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==E.number){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_type,expected:E.number,received:o.parsedType}),N}let i,r=new ae;for(let o of this._def.checks)o.kind==="int"?B.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),z(i,{code:$.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?ay(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),z(i,{code:$.not_finite,message:o.message}),r.dirty()):B.assertNever(o);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,P.toString(n))}gt(t,n){return this.setLimit("min",t,!1,P.toString(n))}lte(t,n){return this.setLimit("max",t,!0,P.toString(n))}lt(t,n){return this.setLimit("max",t,!1,P.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:P.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:P.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:P.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:P.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:P.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:P.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:P.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:P.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:P.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:P.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&B.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};bt.create=e=>new bt({checks:[],typeName:A.ZodNumber,coerce:e?.coerce||!1,...R(e)});var xt=class e extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==E.bigint)return this._getInvalidInput(t);let i,r=new ae;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),z(i,{code:$.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):B.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return z(n,{code:$.invalid_type,expected:E.bigint,received:n.parsedType}),N}gte(t,n){return this.setLimit("min",t,!0,P.toString(n))}gt(t,n){return this.setLimit("min",t,!1,P.toString(n))}lte(t,n){return this.setLimit("max",t,!0,P.toString(n))}lt(t,n){return this.setLimit("max",t,!1,P.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:P.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:P.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:P.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:P.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:P.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:P.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};xt.create=e=>new xt({checks:[],typeName:A.ZodBigInt,coerce:e?.coerce??!1,...R(e)});var $t=class extends D{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==E.boolean){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:E.boolean,received:i.parsedType}),N}return se(t.data)}};$t.create=e=>new $t({typeName:A.ZodBoolean,coerce:e?.coerce||!1,...R(e)});var wt=class e extends D{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==E.date){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_type,expected:E.date,received:o.parsedType}),N}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return z(o,{code:$.invalid_date}),N}let i=new ae,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:$.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):B.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:P.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:P.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};wt.create=e=>new wt({checks:[],coerce:e?.coerce||!1,typeName:A.ZodDate,...R(e)});var tr=class extends D{_parse(t){if(this._getType(t)!==E.symbol){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:E.symbol,received:i.parsedType}),N}return se(t.data)}};tr.create=e=>new tr({typeName:A.ZodSymbol,...R(e)});var kt=class extends D{_parse(t){if(this._getType(t)!==E.undefined){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:E.undefined,received:i.parsedType}),N}return se(t.data)}};kt.create=e=>new kt({typeName:A.ZodUndefined,...R(e)});var St=class extends D{_parse(t){if(this._getType(t)!==E.null){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:E.null,received:i.parsedType}),N}return se(t.data)}};St.create=e=>new St({typeName:A.ZodNull,...R(e)});var at=class extends D{constructor(){super(...arguments),this._any=!0}_parse(t){return se(t.data)}};at.create=e=>new at({typeName:A.ZodAny,...R(e)});var qe=class extends D{constructor(){super(...arguments),this._unknown=!0}_parse(t){return se(t.data)}};qe.create=e=>new qe({typeName:A.ZodUnknown,...R(e)});var ze=class extends D{_parse(t){let n=this._getOrReturnCtx(t);return z(n,{code:$.invalid_type,expected:E.never,received:n.parsedType}),N}};ze.create=e=>new ze({typeName:A.ZodNever,...R(e)});var rr=class extends D{_parse(t){if(this._getType(t)!==E.undefined){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:E.void,received:i.parsedType}),N}return se(t.data)}};rr.create=e=>new rr({typeName:A.ZodVoid,...R(e)});var Ke=class e extends D{_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==E.array)return z(n,{code:$.invalid_type,expected:E.array,received:n.parsedType}),N;if(r.exactLength!==null){let a=n.data.length>r.exactLength.value,s=n.data.length<r.exactLength.value;(a||s)&&(z(n,{code:a?$.too_big:$.too_small,minimum:s?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(z(n,{code:$.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(z(n,{code:$.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>r.type._parseAsync(new xe(n,a,n.path,s)))).then(a=>ae.mergeArray(i,a));let o=[...n.data].map((a,s)=>r.type._parseSync(new xe(n,a,n.path,s)));return ae.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:P.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:P.toString(n)}})}nonempty(t){return this.min(1,t)}};Ke.create=(e,t)=>new Ke({type:e,minLength:null,maxLength:null,exactLength:null,typeName:A.ZodArray,...R(t)});function er(e){if(e instanceof pe){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=be.create(er(i))}return new pe({...e._def,shape:()=>t})}else return e instanceof Ke?new Ke({...e._def,type:er(e.element)}):e instanceof be?be.create(er(e.unwrap())):e instanceof Ue?Ue.create(er(e.unwrap())):e instanceof Ce?Ce.create(e.items.map(t=>er(t))):e}var pe=class e extends D{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=B.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==E.object){let d=this._getOrReturnCtx(t);return z(d,{code:$.invalid_type,expected:E.object,received:d.parsedType}),N}let{status:i,ctx:r}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof ze&&this._def.unknownKeys==="strip"))for(let d in r.data)a.includes(d)||s.push(d);let c=[];for(let d of a){let f=o[d],h=r.data[d];c.push({key:{status:"valid",value:d},value:f._parse(new xe(r,h,r.path,d)),alwaysSet:d in r.data})}if(this._def.catchall instanceof ze){let d=this._def.unknownKeys;if(d==="passthrough")for(let f of s)c.push({key:{status:"valid",value:f},value:{status:"valid",value:r.data[f]}});else if(d==="strict")s.length>0&&(z(r,{code:$.unrecognized_keys,keys:s}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let f of s){let h=r.data[f];c.push({key:{status:"valid",value:f},value:d._parse(new xe(r,h,r.path,f)),alwaysSet:f in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let d=[];for(let f of c){let h=await f.key,v=await f.value;d.push({key:h,value:v,alwaysSet:f.alwaysSet})}return d}).then(d=>ae.mergeObjectSync(i,d)):ae.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return P.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:P.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:A.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of B.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let i of B.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:()=>n})}deepPartial(){return er(this)}partial(t){let n={};for(let i of B.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let i of B.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof be;)o=o._def.innerType;n[i]=o}return new e({...this._def,shape:()=>n})}keyof(){return Yl(B.objectKeys(this.shape))}};pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ze.create(),typeName:A.ZodObject,...R(t)});pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ze.create(),typeName:A.ZodObject,...R(t)});pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ze.create(),typeName:A.ZodObject,...R(t)});var It=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(s=>new fe(s.ctx.common.issues));return z(n,{code:$.invalid_union,unionErrors:a}),N}if(n.common.async)return Promise.all(i.map(async o=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let o,a=[];for(let c of i){let d={...n,common:{...n.common,issues:[]},parent:null},f=c._parseSync({data:n.data,path:n.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;let s=a.map(c=>new fe(c));return z(n,{code:$.invalid_union,unionErrors:s}),N}}get options(){return this._def.options}};It.create=(e,t)=>new It({options:e,typeName:A.ZodUnion,...R(t)});var Ve=e=>e instanceof zt?Ve(e.schema):e instanceof $e?Ve(e.innerType()):e instanceof jt?[e.value]:e instanceof Et?e.options:e instanceof Pt?B.objectValues(e.enum):e instanceof Ot?Ve(e._def.innerType):e instanceof kt?[void 0]:e instanceof St?[null]:e instanceof be?[void 0,...Ve(e.unwrap())]:e instanceof Ue?[null,...Ve(e.unwrap())]:e instanceof Pr||e instanceof At?Ve(e.unwrap()):e instanceof Nt?Ve(e._def.innerType):[],Mn=class e extends D{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==E.object)return z(n,{code:$.invalid_type,expected:E.object,received:n.parsedType}),N;let i=this.discriminator,r=n.data[i],o=this.optionsMap.get(r);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(z(n,{code:$.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),N)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let o of n){let a=Ve(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(r.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);r.set(s,o)}}return new e({typeName:A.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...R(i)})}};function Uo(e,t){let n=Ae(e),i=Ae(t);if(e===t)return{valid:!0,data:e};if(n===E.object&&i===E.object){let r=B.objectKeys(t),o=B.objectKeys(e).filter(s=>r.indexOf(s)!==-1),a={...e,...t};for(let s of o){let c=Uo(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(n===E.array&&i===E.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let o=0;o<e.length;o++){let a=e[o],s=t[o],c=Uo(a,s);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===E.date&&i===E.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Tt=class extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=(o,a)=>{if(Zn(o)||Zn(a))return N;let s=Uo(o.value,a.value);return s.valid?((Bn(o)||Bn(a))&&n.dirty(),{status:n.value,value:s.data}):(z(i,{code:$.invalid_intersection_types}),N)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=>r(o,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Tt.create=(e,t,n)=>new Tt({left:e,right:t,typeName:A.ZodIntersection,...R(n)});var Ce=class e extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==E.array)return z(i,{code:$.invalid_type,expected:E.array,received:i.parsedType}),N;if(i.data.length<this._def.items.length)return z(i,{code:$.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),N;!this._def.rest&&i.data.length>this._def.items.length&&(z(i,{code:$.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let o=[...i.data].map((a,s)=>{let c=this._def.items[s]||this._def.rest;return c?c._parse(new xe(i,a,i.path,s)):null}).filter(a=>!!a);return i.common.async?Promise.all(o).then(a=>ae.mergeArray(n,a)):ae.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ce.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ce({items:e,typeName:A.ZodTuple,rest:null,...R(t)})};var Fn=class e extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==E.object)return z(i,{code:$.invalid_type,expected:E.object,received:i.parsedType}),N;let r=[],o=this._def.keyType,a=this._def.valueType;for(let s in i.data)r.push({key:o._parse(new xe(i,s,i.path,s)),value:a._parse(new xe(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?ae.mergeObjectAsync(n,r):ae.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof D?new e({keyType:t,valueType:n,typeName:A.ZodRecord,...R(i)}):new e({keyType:ot.create(),valueType:t,typeName:A.ZodRecord,...R(n)})}},nr=class extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==E.map)return z(i,{code:$.invalid_type,expected:E.map,received:i.parsedType}),N;let r=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([s,c],d)=>({key:r._parse(new xe(i,s,i.path,[d,"key"])),value:o._parse(new xe(i,c,i.path,[d,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let c of a){let d=await c.key,f=await c.value;if(d.status==="aborted"||f.status==="aborted")return N;(d.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(d.value,f.value)}return{status:n.value,value:s}})}else{let s=new Map;for(let c of a){let d=c.key,f=c.value;if(d.status==="aborted"||f.status==="aborted")return N;(d.status==="dirty"||f.status==="dirty")&&n.dirty(),s.set(d.value,f.value)}return{status:n.value,value:s}}}};nr.create=(e,t,n)=>new nr({valueType:t,keyType:e,typeName:A.ZodMap,...R(n)});var ir=class e extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==E.set)return z(i,{code:$.invalid_type,expected:E.set,received:i.parsedType}),N;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(z(i,{code:$.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(z(i,{code:$.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let o=this._def.valueType;function a(c){let d=new Set;for(let f of c){if(f.status==="aborted")return N;f.status==="dirty"&&n.dirty(),d.add(f.value)}return{status:n.value,value:d}}let s=[...i.data.values()].map((c,d)=>o._parse(new xe(i,c,i.path,d)));return i.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,n){return new e({...this._def,minSize:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:P.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};ir.create=(e,t)=>new ir({valueType:e,minSize:null,maxSize:null,typeName:A.ZodSet,...R(t)});var Vn=class e extends D{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==E.function)return z(n,{code:$.invalid_type,expected:E.function,received:n.parsedType}),N;function i(s,c){return Er({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xt(),Fe].filter(d=>!!d),issueData:{code:$.invalid_arguments,argumentsError:c}})}function r(s,c){return Er({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xt(),Fe].filter(d=>!!d),issueData:{code:$.invalid_return_type,returnTypeError:c}})}let o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof st){let s=this;return se(async function(...c){let d=new fe([]),f=await s._def.args.parseAsync(c,o).catch(m=>{throw d.addIssue(i(c,m)),d}),h=await Reflect.apply(a,this,f);return await s._def.returns._def.type.parseAsync(h,o).catch(m=>{throw d.addIssue(r(h,m)),d})})}else{let s=this;return se(function(...c){let d=s._def.args.safeParse(c,o);if(!d.success)throw new fe([i(c,d.error)]);let f=Reflect.apply(a,this,d.data),h=s._def.returns.safeParse(f,o);if(!h.success)throw new fe([r(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ce.create(t).rest(qe.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new e({args:t||Ce.create([]).rest(qe.create()),returns:n||qe.create(),typeName:A.ZodFunction,...R(i)})}},zt=class extends D{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};zt.create=(e,t)=>new zt({getter:e,typeName:A.ZodLazy,...R(t)});var jt=class extends D{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return z(n,{received:n.data,code:$.invalid_literal,expected:this._def.value}),N}return{status:"valid",value:t.data}}get value(){return this._def.value}};jt.create=(e,t)=>new jt({value:e,typeName:A.ZodLiteral,...R(t)});function Yl(e,t){return new Et({values:e,typeName:A.ZodEnum,...R(t)})}var Et=class e extends D{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return z(n,{expected:B.joinValues(i),received:n.parsedType,code:$.invalid_type}),N}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return z(n,{received:n.data,code:$.invalid_enum_value,options:i}),N}return se(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}};Et.create=Yl;var Pt=class extends D{_parse(t){let n=B.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==E.string&&i.parsedType!==E.number){let r=B.objectValues(n);return z(i,{expected:B.joinValues(r),received:i.parsedType,code:$.invalid_type}),N}if(this._cache||(this._cache=new Set(B.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=B.objectValues(n);return z(i,{received:i.data,code:$.invalid_enum_value,options:r}),N}return se(t.data)}get enum(){return this._def.values}};Pt.create=(e,t)=>new Pt({values:e,typeName:A.ZodNativeEnum,...R(t)});var st=class extends D{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==E.promise&&n.common.async===!1)return z(n,{code:$.invalid_type,expected:E.promise,received:n.parsedType}),N;let i=n.parsedType===E.promise?n.data:Promise.resolve(n.data);return se(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};st.create=(e,t)=>new st({type:e,typeName:A.ZodPromise,...R(t)});var $e=class extends D{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===A.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:a=>{z(i,a),a.fatal?n.abort():n.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){let a=r.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return N;let c=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return c.status==="aborted"?N:c.status==="dirty"?_t(c.value):n.value==="dirty"?_t(c.value):c});{if(n.value==="aborted")return N;let s=this._def.schema._parseSync({data:a,path:i.path,parent:i});return s.status==="aborted"?N:s.status==="dirty"?_t(s.value):n.value==="dirty"?_t(s.value):s}}if(r.type==="refinement"){let a=s=>{let c=r.refinement(s,o);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?N:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?N:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(r.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!it(a))return N;let s=r.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>it(a)?Promise.resolve(r.transform(a.value,o)).then(s=>({status:n.value,value:s})):N);B.assertNever(r)}};$e.create=(e,t,n)=>new $e({schema:e,typeName:A.ZodEffects,effect:t,...R(n)});$e.createWithPreprocess=(e,t,n)=>new $e({schema:t,effect:{type:"preprocess",transform:e},typeName:A.ZodEffects,...R(n)});var be=class extends D{_parse(t){return this._getType(t)===E.undefined?se(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};be.create=(e,t)=>new be({innerType:e,typeName:A.ZodOptional,...R(t)});var Ue=class extends D{_parse(t){return this._getType(t)===E.null?se(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ue.create=(e,t)=>new Ue({innerType:e,typeName:A.ZodNullable,...R(t)});var Ot=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===E.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ot.create=(e,t)=>new Ot({innerType:e,typeName:A.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...R(t)});var Nt=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Qt(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fe(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new fe(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Nt.create=(e,t)=>new Nt({innerType:e,typeName:A.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...R(t)});var or=class extends D{_parse(t){if(this._getType(t)!==E.nan){let i=this._getOrReturnCtx(t);return z(i,{code:$.invalid_type,expected:E.nan,received:i.parsedType}),N}return{status:"valid",value:t.data}}};or.create=e=>new or({typeName:A.ZodNaN,...R(e)});var sy=Symbol("zod_brand"),Pr=class extends D{_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Or=class e extends D{_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?N:o.status==="dirty"?(n.dirty(),_t(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?N:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:A.ZodPipeline})}},At=class extends D{_parse(t){let n=this._def.innerType._parse(t),i=r=>(it(r)&&(r.value=Object.freeze(r.value)),r);return Qt(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};At.create=(e,t)=>new At({innerType:e,typeName:A.ZodReadonly,...R(t)});function Hl(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Xl(e,t={},n){return e?at.create().superRefine((i,r)=>{let o=e(i);if(o instanceof Promise)return o.then(a=>{if(!a){let s=Hl(t,i),c=s.fatal??n??!0;r.addIssue({code:"custom",...s,fatal:c})}});if(!o){let a=Hl(t,i),s=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:s})}}):at.create()}var cy={object:pe.lazycreate},A;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(A||(A={}));var uy=(e,t={message:`Input not instance of ${e.name}`})=>Xl(n=>n instanceof e,t),Ql=ot.create,ed=bt.create,ly=or.create,dy=xt.create,td=$t.create,fy=wt.create,py=tr.create,my=kt.create,hy=St.create,gy=at.create,yy=qe.create,vy=ze.create,_y=rr.create,by=Ke.create,xy=pe.create,$y=pe.strictCreate,wy=It.create,ky=Mn.create,Sy=Tt.create,Iy=Ce.create,Ty=Fn.create,zy=nr.create,jy=ir.create,Ey=Vn.create,Py=zt.create,Oy=jt.create,Ny=Et.create,Ay=Pt.create,Cy=st.create,Uy=$e.create,Ry=be.create,Ly=Ue.create,Dy=$e.createWithPreprocess,Zy=Or.create,By=()=>Ql().optional(),My=()=>ed().optional(),Fy=()=>td().optional(),Vy={string:e=>ot.create({...e,coerce:!0}),number:e=>bt.create({...e,coerce:!0}),boolean:e=>$t.create({...e,coerce:!0}),bigint:e=>xt.create({...e,coerce:!0}),date:e=>wt.create({...e,coerce:!0})};var qy=N;var Ro="2025-03-26",rd=[Ro,"2024-11-05","2024-10-07"],qn="2.0",nd=l.union([l.string(),l.number().int()]),id=l.string(),Ky=l.object({progressToken:l.optional(nd)}).passthrough(),je=l.object({_meta:l.optional(Ky)}).passthrough(),ye=l.object({method:l.string(),params:l.optional(je)}),Nr=l.object({_meta:l.optional(l.object({}).passthrough())}).passthrough(),Le=l.object({method:l.string(),params:l.optional(Nr)}),Ee=l.object({_meta:l.optional(l.object({}).passthrough())}).passthrough(),Kn=l.union([l.string(),l.number().int()]),od=l.object({jsonrpc:l.literal(qn),id:Kn}).merge(ye).strict(),ad=e=>od.safeParse(e).success,sd=l.object({jsonrpc:l.literal(qn)}).merge(Le).strict(),cd=e=>sd.safeParse(e).success,ud=l.object({jsonrpc:l.literal(qn),id:Kn,result:Ee}).strict(),Lo=e=>ud.safeParse(e).success,Re;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(Re||(Re={}));var ld=l.object({jsonrpc:l.literal(qn),id:Kn,error:l.object({code:l.number().int(),message:l.string(),data:l.optional(l.unknown())})}).strict(),dd=e=>ld.safeParse(e).success,fd=l.union([od,sd,ud,ld]),Hn=Ee.strict(),Wn=Le.extend({method:l.literal("notifications/cancelled"),params:Nr.extend({requestId:Kn,reason:l.string().optional()})}),pd=l.object({name:l.string(),version:l.string()}).passthrough(),Hy=l.object({experimental:l.optional(l.object({}).passthrough()),sampling:l.optional(l.object({}).passthrough()),roots:l.optional(l.object({listChanged:l.optional(l.boolean())}).passthrough())}).passthrough(),Do=ye.extend({method:l.literal("initialize"),params:je.extend({protocolVersion:l.string(),capabilities:Hy,clientInfo:pd})});var Wy=l.object({experimental:l.optional(l.object({}).passthrough()),logging:l.optional(l.object({}).passthrough()),completions:l.optional(l.object({}).passthrough()),prompts:l.optional(l.object({listChanged:l.optional(l.boolean())}).passthrough()),resources:l.optional(l.object({subscribe:l.optional(l.boolean()),listChanged:l.optional(l.boolean())}).passthrough()),tools:l.optional(l.object({listChanged:l.optional(l.boolean())}).passthrough())}).passthrough(),Jy=Ee.extend({protocolVersion:l.string(),capabilities:Wy,serverInfo:pd,instructions:l.optional(l.string())}),Zo=Le.extend({method:l.literal("notifications/initialized")});var Jn=ye.extend({method:l.literal("ping")}),Gy=l.object({progress:l.number(),total:l.optional(l.number()),message:l.optional(l.string())}).passthrough(),Gn=Le.extend({method:l.literal("notifications/progress"),params:Nr.merge(Gy).extend({progressToken:nd})}),Yn=ye.extend({params:je.extend({cursor:l.optional(id)}).optional()}),Xn=Ee.extend({nextCursor:l.optional(id)}),md=l.object({uri:l.string(),mimeType:l.optional(l.string())}).passthrough(),hd=md.extend({text:l.string()}),gd=md.extend({blob:l.string().base64()}),Yy=l.object({uri:l.string(),name:l.string(),description:l.optional(l.string()),mimeType:l.optional(l.string())}).passthrough(),Xy=l.object({uriTemplate:l.string(),name:l.string(),description:l.optional(l.string()),mimeType:l.optional(l.string())}).passthrough(),Qy=Yn.extend({method:l.literal("resources/list")}),ev=Xn.extend({resources:l.array(Yy)}),tv=Yn.extend({method:l.literal("resources/templates/list")}),rv=Xn.extend({resourceTemplates:l.array(Xy)}),nv=ye.extend({method:l.literal("resources/read"),params:je.extend({uri:l.string()})}),iv=Ee.extend({contents:l.array(l.union([hd,gd]))}),ov=Le.extend({method:l.literal("notifications/resources/list_changed")}),av=ye.extend({method:l.literal("resources/subscribe"),params:je.extend({uri:l.string()})}),sv=ye.extend({method:l.literal("resources/unsubscribe"),params:je.extend({uri:l.string()})}),cv=Le.extend({method:l.literal("notifications/resources/updated"),params:Nr.extend({uri:l.string()})}),uv=l.object({name:l.string(),description:l.optional(l.string()),required:l.optional(l.boolean())}).passthrough(),lv=l.object({name:l.string(),description:l.optional(l.string()),arguments:l.optional(l.array(uv))}).passthrough(),Bo=Yn.extend({method:l.literal("prompts/list")}),dv=Xn.extend({prompts:l.array(lv)}),Mo=ye.extend({method:l.literal("prompts/get"),params:je.extend({name:l.string(),arguments:l.optional(l.record(l.string()))})}),Qn=l.object({type:l.literal("text"),text:l.string()}).passthrough(),ei=l.object({type:l.literal("image"),data:l.string().base64(),mimeType:l.string()}).passthrough(),ti=l.object({type:l.literal("audio"),data:l.string().base64(),mimeType:l.string()}).passthrough(),yd=l.object({type:l.literal("resource"),resource:l.union([hd,gd])}).passthrough(),fv=l.object({role:l.enum(["user","assistant"]),content:l.union([Qn,ei,ti,yd])}).passthrough(),pv=Ee.extend({description:l.optional(l.string()),messages:l.array(fv)}),mv=Le.extend({method:l.literal("notifications/prompts/list_changed")}),hv=l.object({title:l.optional(l.string()),readOnlyHint:l.optional(l.boolean()),destructiveHint:l.optional(l.boolean()),idempotentHint:l.optional(l.boolean()),openWorldHint:l.optional(l.boolean())}).passthrough(),gv=l.object({name:l.string(),description:l.optional(l.string()),inputSchema:l.object({type:l.literal("object"),properties:l.optional(l.object({}).passthrough()),required:l.optional(l.array(l.string()))}).passthrough(),outputSchema:l.optional(l.object({type:l.literal("object"),properties:l.optional(l.object({}).passthrough()),required:l.optional(l.array(l.string()))}).passthrough()),annotations:l.optional(hv)}).passthrough(),Fo=Yn.extend({method:l.literal("tools/list")}),yv=Xn.extend({tools:l.array(gv)}),vd=Ee.extend({content:l.array(l.union([Qn,ei,ti,yd])).default([]),structuredContent:l.object({}).passthrough().optional(),isError:l.optional(l.boolean())}),$k=vd.or(Ee.extend({toolResult:l.unknown()})),Vo=ye.extend({method:l.literal("tools/call"),params:je.extend({name:l.string(),arguments:l.optional(l.record(l.unknown()))})}),vv=Le.extend({method:l.literal("notifications/tools/list_changed")}),_d=l.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),_v=ye.extend({method:l.literal("logging/setLevel"),params:je.extend({level:_d})}),bv=Le.extend({method:l.literal("notifications/message"),params:Nr.extend({level:_d,logger:l.optional(l.string()),data:l.unknown()})}),xv=l.object({name:l.string().optional()}).passthrough(),$v=l.object({hints:l.optional(l.array(xv)),costPriority:l.optional(l.number().min(0).max(1)),speedPriority:l.optional(l.number().min(0).max(1)),intelligencePriority:l.optional(l.number().min(0).max(1))}).passthrough(),wv=l.object({role:l.enum(["user","assistant"]),content:l.union([Qn,ei,ti])}).passthrough(),kv=ye.extend({method:l.literal("sampling/createMessage"),params:je.extend({messages:l.array(wv),systemPrompt:l.optional(l.string()),includeContext:l.optional(l.enum(["none","thisServer","allServers"])),temperature:l.optional(l.number()),maxTokens:l.number().int(),stopSequences:l.optional(l.array(l.string())),metadata:l.optional(l.object({}).passthrough()),modelPreferences:l.optional($v)})}),qo=Ee.extend({model:l.string(),stopReason:l.optional(l.enum(["endTurn","stopSequence","maxTokens"]).or(l.string())),role:l.enum(["user","assistant"]),content:l.discriminatedUnion("type",[Qn,ei,ti])}),Sv=l.object({type:l.literal("ref/resource"),uri:l.string()}).passthrough(),Iv=l.object({type:l.literal("ref/prompt"),name:l.string()}).passthrough(),Tv=ye.extend({method:l.literal("completion/complete"),params:je.extend({ref:l.union([Iv,Sv]),argument:l.object({name:l.string(),value:l.string()}).passthrough()})}),zv=Ee.extend({completion:l.object({values:l.array(l.string()).max(100),total:l.optional(l.number().int()),hasMore:l.optional(l.boolean())}).passthrough()}),jv=l.object({uri:l.string().startsWith("file://"),name:l.optional(l.string())}).passthrough(),Ev=ye.extend({method:l.literal("roots/list")}),Ko=Ee.extend({roots:l.array(jv)}),Pv=Le.extend({method:l.literal("notifications/roots/list_changed")}),wk=l.union([Jn,Do,Tv,_v,Mo,Bo,Qy,tv,nv,av,sv,Vo,Fo]),kk=l.union([Wn,Gn,Zo,Pv]),Sk=l.union([Hn,qo,Ko]),Ik=l.union([Jn,kv,Ev]),Tk=l.union([Wn,Gn,bv,cv,ov,vv,mv]),zk=l.union([Hn,Jy,zv,pv,dv,ev,rv,iv,vd,yv]),He=class extends Error{constructor(t,n,i){super(`MCP error ${t}: ${n}`),this.code=t,this.data=i,this.name="McpError"}};var Ov=6e4,ri=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this.setNotificationHandler(Wn,n=>{let i=this._requestHandlerAbortControllers.get(n.params.requestId);i?.abort(n.params.reason)}),this.setNotificationHandler(Gn,n=>{this._onprogress(n)}),this.setRequestHandler(Jn,n=>({}))}_setupTimeout(t,n,i,r,o=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(r,n),startTime:Date.now(),timeout:n,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:r})}_resetTimeout(t){let n=this._timeoutInfo.get(t);if(!n)return!1;let i=Date.now()-n.startTime;if(n.maxTotalTimeout&&i>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),new He(Re.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:i});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){let n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){this._transport=t,this._transport.onclose=()=>{this._onclose()},this._transport.onerror=n=>{this._onerror(n)},this._transport.onmessage=(n,i)=>{Lo(n)||dd(n)?this._onresponse(n):ad(n)?this._onrequest(n,i):cd(n)?this._onnotification(n):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},await this._transport.start()}_onclose(){var t;let n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._transport=void 0,(t=this.onclose)===null||t===void 0||t.call(this);let i=new He(Re.ConnectionClosed,"Connection closed");for(let r of n.values())r(i)}_onerror(t){var n;(n=this.onerror)===null||n===void 0||n.call(this,t)}_onnotification(t){var n;let i=(n=this._notificationHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(t)).catch(r=>this._onerror(new Error(`Uncaught error in notification handler: ${r}`)))}_onrequest(t,n){var i,r,o,a;let s=(i=this._requestHandlers.get(t.method))!==null&&i!==void 0?i:this.fallbackRequestHandler;if(s===void 0){(r=this._transport)===null||r===void 0||r.send({jsonrpc:"2.0",id:t.id,error:{code:Re.MethodNotFound,message:"Method not found"}}).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let c=new AbortController;this._requestHandlerAbortControllers.set(t.id,c);let d={signal:c.signal,sessionId:(o=this._transport)===null||o===void 0?void 0:o.sessionId,_meta:(a=t.params)===null||a===void 0?void 0:a._meta,sendNotification:f=>this.notification(f,{relatedRequestId:t.id}),sendRequest:(f,h,v)=>this.request(f,h,{...v,relatedRequestId:t.id}),authInfo:n?.authInfo,requestId:t.id};Promise.resolve().then(()=>s(t,d)).then(f=>{var h;if(!c.signal.aborted)return(h=this._transport)===null||h===void 0?void 0:h.send({result:f,jsonrpc:"2.0",id:t.id})},f=>{var h,v;if(!c.signal.aborted)return(h=this._transport)===null||h===void 0?void 0:h.send({jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(f.code)?f.code:Re.InternalError,message:(v=f.message)!==null&&v!==void 0?v:"Internal error"}})}).catch(f=>this._onerror(new Error(`Failed to send response: ${f}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:n,...i}=t.params,r=Number(n),o=this._progressHandlers.get(r);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(r),s=this._timeoutInfo.get(r);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(c){a(c);return}o(i)}_onresponse(t){let n=Number(t.id),i=this._responseHandlers.get(n);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}if(this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),Lo(t))i(t);else{let r=new He(t.error.code,t.error.message,t.error.data);i(r)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)===null||t===void 0?void 0:t.close())}request(t,n,i){let{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}=i??{};return new Promise((s,c)=>{var d,f,h,v,m,p;if(!this._transport){c(new Error("Not connected"));return}((d=this._options)===null||d===void 0?void 0:d.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(t.method),(f=i?.signal)===null||f===void 0||f.throwIfAborted();let y=this._requestMessageId++,b={...t,jsonrpc:"2.0",id:y};i?.onprogress&&(this._progressHandlers.set(y,i.onprogress),b.params={...t.params,_meta:{...((h=t.params)===null||h===void 0?void 0:h._meta)||{},progressToken:y}});let x=S=>{var C;this._responseHandlers.delete(y),this._progressHandlers.delete(y),this._cleanupTimeout(y),(C=this._transport)===null||C===void 0||C.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:y,reason:String(S)}},{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}).catch(L=>this._onerror(new Error(`Failed to send cancellation: ${L}`))),c(S)};this._responseHandlers.set(y,S=>{var C;if(!(!((C=i?.signal)===null||C===void 0)&&C.aborted)){if(S instanceof Error)return c(S);try{let L=n.parse(S.result);s(L)}catch(L){c(L)}}}),(v=i?.signal)===null||v===void 0||v.addEventListener("abort",()=>{var S;x((S=i?.signal)===null||S===void 0?void 0:S.reason)});let T=(m=i?.timeout)!==null&&m!==void 0?m:Ov,w=()=>x(new He(Re.RequestTimeout,"Request timed out",{timeout:T}));this._setupTimeout(y,T,i?.maxTotalTimeout,w,(p=i?.resetTimeoutOnProgress)!==null&&p!==void 0?p:!1),this._transport.send(b,{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}).catch(S=>{this._cleanupTimeout(y),c(S)})})}async notification(t,n){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let i={...t,jsonrpc:"2.0"};await this._transport.send(i,n)}setRequestHandler(t,n){let i=t.shape.method.value;this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(r,o)=>Promise.resolve(n(t.parse(r),o)))}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){this._notificationHandlers.set(t.shape.method.value,i=>Promise.resolve(n(t.parse(i))))}removeNotificationHandler(t){this._notificationHandlers.delete(t)}};function bd(e,t){return Object.entries(t).reduce((n,[i,r])=>(r&&typeof r=="object"?n[i]=n[i]?{...n[i],...r}:r:n[i]=r,n),{...e})}var ni=class extends ri{constructor(t,n){var i;super(n),this._serverInfo=t,this._capabilities=(i=n?.capabilities)!==null&&i!==void 0?i:{},this._instructions=n?.instructions,this.setRequestHandler(Do,r=>this._oninitialize(r)),this.setNotificationHandler(Zo,()=>{var r;return(r=this.oninitialized)===null||r===void 0?void 0:r.call(this)})}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=bd(this._capabilities,t)}assertCapabilityForMethod(t){var n,i;switch(t){case"sampling/createMessage":if(!(!((n=this._clientCapabilities)===null||n===void 0)&&n.sampling))throw new Error(`Client does not support sampling (required for ${t})`);break;case"roots/list":if(!(!((i=this._clientCapabilities)===null||i===void 0)&&i.roots))throw new Error(`Client does not support listing roots (required for ${t})`);break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${t})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${t})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${t})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Server does not support sampling (required for ${t})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"ping":case"initialize":break}}async _oninitialize(t){let n=t.params.protocolVersion;return this._clientCapabilities=t.params.capabilities,this._clientVersion=t.params.clientInfo,{protocolVersion:rd.includes(n)?n:Ro,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Hn)}async createMessage(t,n){return this.request({method:"sampling/createMessage",params:t},qo,n)}async listRoots(t,n){return this.request({method:"roots/list",params:t},Ko,n)}async sendLoggingMessage(t){return this.notification({method:"notifications/message",params:t})}async sendResourceUpdated(t){return this.notification({method:"notifications/resources/updated",params:t})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};import $d from"node:process";var ii=class{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(`
|
|
34
|
+
`);if(t===-1)return null;let n=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),Nv(n)}clear(){this._buffer=void 0}};function Nv(e){return fd.parse(JSON.parse(e))}function xd(e){return JSON.stringify(e)+`
|
|
35
|
+
`}var oi=class{constructor(t=$d.stdin,n=$d.stdout){this._stdin=t,this._stdout=n,this._readBuffer=new ii,this._started=!1,this._ondata=i=>{this._readBuffer.append(i),this.processReadBuffer()},this._onerror=i=>{var r;(r=this.onerror)===null||r===void 0||r.call(this,i)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(var t,n;;)try{let i=this._readBuffer.readMessage();if(i===null)break;(t=this.onmessage)===null||t===void 0||t.call(this,i)}catch(i){(n=this.onerror)===null||n===void 0||n.call(this,i)}}async close(){var t;this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),(t=this.onclose)===null||t===void 0||t.call(this)}send(t){return new Promise(n=>{let i=xd(t);this._stdout.write(i)?n():this._stdout.once("drain",n)})}};var xg=Vl(Op());import{mkdir as Ow,readFile as Nw,writeFile as _g}from"node:fs/promises";import bg from"node:os";import jr from"node:path";import Zl from"node:process";var Se=e=>{if(e==null)return!1;let t=e;return typeof t.then=="function"&&typeof t.catch=="function"&&typeof t.finally=="function"};var Kr=e=>e[0];var bi=e=>e[1];var Ra=e=>[e];var Np=(e,t,n,i)=>{let r=t;for(let o=i;o<n.length;o++){if(Se(r))return r.then(a=>Np(e,a,n,o));r=e(r,n[o])}return r},Je=(e,t)=>n=>Np(e,t(),n,0);var Jb=({line:e,file:t,column:n})=>`${t}:${e}:${n}`,Gb=e=>{let t=/\s+at\s+(.+\s)?\(?(.+):(\d+):(\d+)\)?/.exec(e)||/(.+)@(.+):(\d+):(\d+)/g.exec(e);if(!t)return null;let[,,n,i,r]=t;return{file:n,line:parseInt(i),column:parseInt(r)}},Yb=(e,t)=>Gb(t(e.split(`
|
|
36
|
+
`))),La=e=>{let t=Yb(new Error().stack,n=>n[e]);return t?Jb(t):"stack line could not be parsed"};var Xb=(...e)=>(...t)=>Je((n,i)=>i(n),()=>e[0](...t))(e.slice(1)),Ap=e=>t=>{if(t===void 0)throw console.error(`undefined error within ${e}`),t;try{t.message=(t.message?t.message+`
|
|
37
|
+
`:"")+e}catch(n){console.error(`error within ${e}, gamla could not augment error stack`,n,t)}throw t},Da=e=>{let t=La(4);return(...n)=>{try{let i=e(...n);return Se(i)?i.catch(Ap(t)):i}catch(i){Ap(t)(i)}}},me=(...e)=>Da(Xb(...e));var Za=e=>e;var Qb=e=>t=>{let n=[];for(let i of t)n.push(e(i));return n.some(Se)?Promise.all(n):n},Ge=(...e)=>Da(Qb(...e));var Ba=(...e)=>(...t)=>{let n=[],i=!1;for(let r of e)n.push(r(...t)),i=i||Se(n[n.length-1]);return i?Promise.all(n):n},Cp=e=>t=>Ba(Za,e)(t);var xi=e=>me(Ge(Cp(e)),t=>t.filter(bi),Ge(Kr));var m1=new TextEncoder;var v1=new TextEncoder().encode("0123456789abcdef"),_1=new TextEncoder,b1=new TextDecoder;var nx=(e,t,n)=>i=>{let r={};for(let o of i)for(let a of e(o))r[a]=t(a in r?r[a]:n(),o);return r},j1=Je((e,t)=>(e[t]=(e[t]||0)+1,e),()=>({})),ix=(e,t,n)=>nx(me(e,Ra),t,n);var E1=ix(Kr,(e,[t,n])=>(e.add(n),e),()=>new Set),Up=e=>me(Object.entries,e,Object.fromEntries),P1=me(Ge,Up),O1=me(xi,Up);var ox=e=>(t,n)=>(...i)=>new Promise((r,o)=>{let a=!1,s=!1,c=setTimeout(()=>{a||(s=!0,o(e))},t);n(...i).then(d=>{s||(clearTimeout(c),a=!0,r(d))}).catch(o)}),J1=ox(new Error("Timed out"));var ax=e=>{let t=0,n=[],i=()=>{n.length>0&&t<e&&(t++,n.shift()())};return{acquire:()=>t<e?(t++,Promise.resolve()):new Promise(a=>{n.push(a)}),release:()=>{t--,i()}}},sx=e=>t=>n=>{let i=new Map;return async(...r)=>{let o=e(...r);i.has(o)||i.set(o,ax(t));let{acquire:a,release:s}=i.get(o);await a();try{return await n(...r)}finally{s()}}},Q1=sx(()=>"");var cx=(e,t)=>e+t,s4=Je(cx,()=>0);var f4=Je((e,t)=>e.flatMap(n=>t.map(i=>[...n,i])),()=>[[]]);var Ka=Vl(Zp()),Z4=Ka.default.configure;var mr=Ka.default;var Q=e=>e,Bp=e=>async t=>{let n=await fetch(e,{method:"POST",body:JSON.stringify(t)});return n.status!==200?Promise.reject(await n.text()):n.json()},Mp=(e,t)=>n=>e(n);var u={};nt(u,{$brand:()=>$i,$input:()=>ou,$output:()=>iu,NEVER:()=>tw,ZodAny:()=>ih,ZodArray:()=>ch,ZodBase64:()=>gl,ZodBase64URL:()=>yl,ZodBigInt:()=>On,ZodBigIntFormat:()=>bl,ZodBoolean:()=>Pn,ZodCIDRv4:()=>ml,ZodCIDRv6:()=>hl,ZodCUID:()=>sl,ZodCUID2:()=>cl,ZodCatch:()=>Th,ZodCustom:()=>wo,ZodDate:()=>bo,ZodDefault:()=>xh,ZodDiscriminatedUnion:()=>uh,ZodE164:()=>vl,ZodEmail:()=>nl,ZodEmoji:()=>ol,ZodEnum:()=>zn,ZodError:()=>G0,ZodFile:()=>_h,ZodGUID:()=>mo,ZodIPv4:()=>fl,ZodIPv6:()=>pl,ZodISODate:()=>uo,ZodISODateTime:()=>co,ZodISODuration:()=>fo,ZodISOTime:()=>lo,ZodIntersection:()=>lh,ZodIssueCode:()=>Q$,ZodJWT:()=>_l,ZodKSUID:()=>dl,ZodLazy:()=>Nh,ZodLiteral:()=>yh,ZodMap:()=>mh,ZodNaN:()=>jh,ZodNanoID:()=>al,ZodNever:()=>ah,ZodNonOptional:()=>Tl,ZodNull:()=>rh,ZodNullable:()=>bh,ZodNumber:()=>En,ZodNumberFormat:()=>Sr,ZodObject:()=>xo,ZodOptional:()=>Il,ZodPipe:()=>zl,ZodPrefault:()=>wh,ZodPromise:()=>Ch,ZodReadonly:()=>Eh,ZodRealError:()=>kr,ZodRecord:()=>wl,ZodSet:()=>hh,ZodString:()=>jn,ZodStringFormat:()=>J,ZodSuccess:()=>Ih,ZodSymbol:()=>eh,ZodTemplateLiteral:()=>Oh,ZodTransform:()=>kl,ZodTuple:()=>fh,ZodType:()=>Z,ZodULID:()=>ul,ZodURL:()=>il,ZodUUID:()=>rt,ZodUndefined:()=>th,ZodUnion:()=>$l,ZodUnknown:()=>oh,ZodVoid:()=>sh,ZodXID:()=>ll,_ZodString:()=>rl,_default:()=>$h,any:()=>j$,array:()=>xl,base64:()=>g$,base64url:()=>y$,bigint:()=>k$,boolean:()=>Qm,catch:()=>zh,check:()=>Uh,cidrv4:()=>m$,cidrv6:()=>h$,clone:()=>ve,coerce:()=>jl,config:()=>Y,core:()=>tt,cuid:()=>s$,cuid2:()=>c$,custom:()=>W$,date:()=>P$,discriminatedUnion:()=>U$,e164:()=>v$,email:()=>X0,emoji:()=>o$,endsWith:()=>bn,enum:()=>gh,file:()=>M$,flattenError:()=>on,float32:()=>b$,float64:()=>x$,formatError:()=>an,function:()=>Vu,getErrorMap:()=>nw,globalRegistry:()=>Me,gt:()=>Qe,gte:()=>ge,guid:()=>Q0,includes:()=>vn,instanceof:()=>J$,int:()=>tl,int32:()=>$$,int64:()=>S$,intersection:()=>dh,ipv4:()=>f$,ipv6:()=>p$,iso:()=>po,json:()=>Y$,jwt:()=>_$,keyof:()=>O$,ksuid:()=>d$,lazy:()=>Ah,length:()=>wr,literal:()=>vh,locales:()=>fn,looseObject:()=>C$,lowercase:()=>gn,lt:()=>Xe,lte:()=>Ie,map:()=>D$,maxLength:()=>$r,maxSize:()=>xr,mime:()=>xn,minLength:()=>yt,minSize:()=>Gt,multipleOf:()=>Jt,nan:()=>q$,nanoid:()=>a$,nativeEnum:()=>B$,negative:()=>Cu,never:()=>_o,nonnegative:()=>Ru,nonoptional:()=>Sh,nonpositive:()=>Uu,normalize:()=>$n,null:()=>nh,nullable:()=>yo,nullish:()=>F$,number:()=>Xm,object:()=>N$,optional:()=>go,overwrite:()=>et,parse:()=>Gu,parseAsync:()=>Yu,partialRecord:()=>L$,pipe:()=>vo,positive:()=>Au,prefault:()=>kh,preprocess:()=>X$,prettifyError:()=>os,promise:()=>H$,property:()=>Lu,readonly:()=>Ph,record:()=>ph,refine:()=>Rh,regex:()=>hn,regexes:()=>Kt,registry:()=>Di,safeParse:()=>Xu,safeParseAsync:()=>Qu,set:()=>Z$,setErrorMap:()=>rw,size:()=>mn,startsWith:()=>_n,strictObject:()=>A$,string:()=>el,stringbool:()=>G$,success:()=>V$,superRefine:()=>Lh,symbol:()=>T$,templateLiteral:()=>K$,toJSONSchema:()=>qu,toLowerCase:()=>kn,toUpperCase:()=>Sn,transform:()=>Sl,treeifyError:()=>is,trim:()=>wn,tuple:()=>R$,uint32:()=>w$,uint64:()=>I$,ulid:()=>u$,undefined:()=>z$,union:()=>$o,unknown:()=>ho,uppercase:()=>yn,url:()=>i$,uuid:()=>e$,uuidv4:()=>t$,uuidv6:()=>r$,uuidv7:()=>n$,void:()=>E$,xid:()=>l$});var tt={};nt(tt,{$ZodAny:()=>Oc,$ZodArray:()=>un,$ZodAsyncError:()=>Be,$ZodBase64:()=>wc,$ZodBase64URL:()=>kc,$ZodBigInt:()=>Ui,$ZodBigIntFormat:()=>zc,$ZodBoolean:()=>cn,$ZodCIDRv4:()=>bc,$ZodCIDRv6:()=>xc,$ZodCUID:()=>uc,$ZodCUID2:()=>lc,$ZodCatch:()=>Yc,$ZodCheck:()=>G,$ZodCheckBigIntFormat:()=>Ds,$ZodCheckEndsWith:()=>Ys,$ZodCheckGreaterThan:()=>Oi,$ZodCheckIncludes:()=>Js,$ZodCheckLengthEquals:()=>qs,$ZodCheckLessThan:()=>Pi,$ZodCheckLowerCase:()=>Hs,$ZodCheckMaxLength:()=>Fs,$ZodCheckMaxSize:()=>Zs,$ZodCheckMimeType:()=>Qs,$ZodCheckMinLength:()=>Vs,$ZodCheckMinSize:()=>Bs,$ZodCheckMultipleOf:()=>Rs,$ZodCheckNumberFormat:()=>Ls,$ZodCheckOverwrite:()=>ec,$ZodCheckProperty:()=>Xs,$ZodCheckRegex:()=>Ks,$ZodCheckSizeEquals:()=>Ms,$ZodCheckStartsWith:()=>Gs,$ZodCheckStringFormat:()=>yr,$ZodCheckUpperCase:()=>Ws,$ZodCustom:()=>nu,$ZodDate:()=>Cc,$ZodDefault:()=>Hc,$ZodDiscriminatedUnion:()=>Rc,$ZodE164:()=>Sc,$ZodEmail:()=>oc,$ZodEmoji:()=>sc,$ZodEnum:()=>Mc,$ZodError:()=>nn,$ZodFile:()=>Vc,$ZodFunction:()=>so,$ZodGUID:()=>nc,$ZodIPv4:()=>vc,$ZodIPv6:()=>_c,$ZodISODate:()=>hc,$ZodISODateTime:()=>mc,$ZodISODuration:()=>yc,$ZodISOTime:()=>gc,$ZodIntersection:()=>Lc,$ZodJWT:()=>Ic,$ZodKSUID:()=>pc,$ZodLazy:()=>ru,$ZodLiteral:()=>Fc,$ZodMap:()=>Zc,$ZodNaN:()=>Xc,$ZodNanoID:()=>cc,$ZodNever:()=>Nc,$ZodNonOptional:()=>Jc,$ZodNull:()=>Pc,$ZodNullable:()=>Kc,$ZodNumber:()=>Ci,$ZodNumberFormat:()=>Tc,$ZodObject:()=>Uc,$ZodOptional:()=>qc,$ZodPipe:()=>dn,$ZodPrefault:()=>Wc,$ZodPromise:()=>tu,$ZodReadonly:()=>Qc,$ZodRealError:()=>gr,$ZodRecord:()=>Dc,$ZodRegistry:()=>_r,$ZodSet:()=>Bc,$ZodString:()=>Ht,$ZodStringFormat:()=>W,$ZodSuccess:()=>Gc,$ZodSymbol:()=>jc,$ZodTemplateLiteral:()=>eu,$ZodTransform:()=>ln,$ZodTuple:()=>Wt,$ZodType:()=>U,$ZodULID:()=>dc,$ZodURL:()=>ac,$ZodUUID:()=>ic,$ZodUndefined:()=>Ec,$ZodUnion:()=>Ri,$ZodUnknown:()=>vr,$ZodVoid:()=>Ac,$ZodXID:()=>fc,$brand:()=>$i,$constructor:()=>g,$input:()=>ou,$output:()=>iu,Doc:()=>sn,JSONSchema:()=>Jm,JSONSchemaGenerator:()=>Tn,_any:()=>zu,_array:()=>In,_base64:()=>no,_base64url:()=>io,_bigint:()=>xu,_boolean:()=>_u,_catch:()=>F0,_cidrv4:()=>to,_cidrv6:()=>ro,_coercedBigint:()=>$u,_coercedBoolean:()=>bu,_coercedDate:()=>Ou,_coercedNumber:()=>pu,_coercedString:()=>su,_cuid:()=>Wi,_cuid2:()=>Ji,_custom:()=>Bu,_date:()=>Pu,_default:()=>Z0,_discriminatedUnion:()=>j0,_e164:()=>oo,_email:()=>Zi,_emoji:()=>Ki,_endsWith:()=>bn,_enum:()=>A0,_file:()=>Zu,_float32:()=>hu,_float64:()=>gu,_gt:()=>Qe,_gte:()=>ge,_guid:()=>pn,_includes:()=>vn,_int:()=>mu,_int32:()=>yu,_int64:()=>wu,_intersection:()=>E0,_ipv4:()=>Qi,_ipv6:()=>eo,_isoDate:()=>uu,_isoDateTime:()=>cu,_isoDuration:()=>du,_isoTime:()=>lu,_jwt:()=>ao,_ksuid:()=>Xi,_lazy:()=>H0,_length:()=>wr,_literal:()=>U0,_lowercase:()=>gn,_lt:()=>Xe,_lte:()=>Ie,_map:()=>O0,_max:()=>Ie,_maxLength:()=>$r,_maxSize:()=>xr,_mime:()=>xn,_min:()=>ge,_minLength:()=>yt,_minSize:()=>Gt,_multipleOf:()=>Jt,_nan:()=>Nu,_nanoid:()=>Hi,_nativeEnum:()=>C0,_negative:()=>Cu,_never:()=>ju,_nonnegative:()=>Ru,_nonoptional:()=>B0,_nonpositive:()=>Uu,_normalize:()=>$n,_null:()=>Tu,_nullable:()=>D0,_number:()=>fu,_optional:()=>L0,_overwrite:()=>et,_parse:()=>ki,_parseAsync:()=>Ii,_pipe:()=>V0,_positive:()=>Au,_promise:()=>W0,_property:()=>Lu,_readonly:()=>q0,_record:()=>P0,_refine:()=>Mu,_regex:()=>hn,_safeParse:()=>zi,_safeParseAsync:()=>ji,_set:()=>N0,_size:()=>mn,_startsWith:()=>_n,_string:()=>au,_stringbool:()=>Fu,_success:()=>M0,_symbol:()=>Su,_templateLiteral:()=>K0,_toLowerCase:()=>kn,_toUpperCase:()=>Sn,_transform:()=>R0,_trim:()=>wn,_tuple:()=>Du,_uint32:()=>vu,_uint64:()=>ku,_ulid:()=>Gi,_undefined:()=>Iu,_union:()=>z0,_unknown:()=>br,_uppercase:()=>yn,_url:()=>qi,_uuid:()=>Bi,_uuidv4:()=>Mi,_uuidv6:()=>Fi,_uuidv7:()=>Vi,_void:()=>Eu,_xid:()=>Yi,clone:()=>ve,config:()=>Y,flattenError:()=>on,formatError:()=>an,function:()=>Vu,globalConfig:()=>Wr,globalRegistry:()=>Me,isValidBase64:()=>$c,isValidBase64URL:()=>cm,isValidJWT:()=>um,locales:()=>fn,parse:()=>Si,parseAsync:()=>Ti,prettifyError:()=>os,regexes:()=>Kt,registry:()=>Di,safeParse:()=>as,safeParseAsync:()=>ss,toDotPath:()=>Vp,toJSONSchema:()=>qu,treeifyError:()=>is,util:()=>I,version:()=>tc});function g(e,t,n){function i(s,c){var d;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(d=s._zod).traits??(d.traits=new Set),s._zod.traits.add(e),t(s,c);for(let f in a.prototype)f in s||Object.defineProperty(s,f,{value:a.prototype[f].bind(s)});s._zod.constr=a,s._zod.def=c}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let d=n?.Parent?new o:this;i(d,s),(c=d._zod).deferred??(c.deferred=[]);for(let f of d._zod.deferred)f();return d}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var $i=Symbol("zod_brand"),Be=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Wr={};function Y(e){return e&&Object.assign(Wr,e),Wr}var I={};nt(I,{BIGINT_FORMAT_RANGES:()=>rs,Class:()=>Wa,NUMBER_FORMAT_RANGES:()=>ts,aborted:()=>Vt,allowsEval:()=>Xa,assert:()=>bx,assertEqual:()=>gx,assertIs:()=>vx,assertNever:()=>_x,assertNotEqual:()=>yx,assignProp:()=>Ya,cached:()=>Yr,cleanEnum:()=>Ox,cleanRegex:()=>Xr,clone:()=>ve,createTransparentProxy:()=>Sx,defineLazy:()=>q,esc:()=>Ft,escapeRegex:()=>Ye,extend:()=>zx,finalizeIssue:()=>_e,floatSafeRemainder:()=>Ga,getElementAtPath:()=>xx,getEnumValues:()=>Gr,getLengthableOrigin:()=>rn,getParsedType:()=>kx,getSizableOrigin:()=>tn,isObject:()=>hr,isPlainObject:()=>Qr,issue:()=>ns,joinValues:()=>_,jsonStringifyReplacer:()=>Ja,merge:()=>jx,normalizeParams:()=>k,nullish:()=>gt,numKeys:()=>wx,omit:()=>Tx,optionalKeys:()=>es,partial:()=>Ex,pick:()=>Ix,prefixIssues:()=>he,primitiveTypes:()=>Qa,promiseAllObject:()=>$x,propertyKeyTypes:()=>en,randomString:()=>wi,required:()=>Px,stringifyPrimitive:()=>j,unwrapMessage:()=>Jr});function gx(e){return e}function yx(e){return e}function vx(e){}function _x(e){throw new Error}function bx(e){}function Gr(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function _(e,t="|"){return e.map(n=>j(n)).join(t)}function Ja(e,t){return typeof t=="bigint"?t.toString():t}function Yr(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function gt(e){return e==null}function Xr(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ga(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,o=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return o%a/10**r}function q(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}throw new Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Ya(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function xx(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function $x(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function wi(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Ft(e){return JSON.stringify(e)}function hr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xa=Yr(()=>{try{let e=Function;return new e(""),!0}catch{return!1}});function Qr(e){if(hr(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(hr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function wx(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var kx=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},en=new Set(["string","number","symbol"]),Qa=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ye(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function k(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};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:()=>t.error}:t}function Sx(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function j(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function es(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ts={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 Ix(e,t){let n={},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(n[r]=i.shape[r])}return ve(e,{...e._zod.def,shape:n,checks:[]})}function Tx(e,t){let n={...e._zod.def.shape},i=e._zod.def;for(let r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete n[r]}return ve(e,{...e._zod.def,shape:n,checks:[]})}function zx(e,t){let n={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return Ya(this,"shape",i),i},checks:[]};return ve(e,n)}function jx(e,t){return ve(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ya(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function Ex(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)r[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return ve(t,{...t._zod.def,shape:r,checks:[]})}function Px(e,t,n){let i=t._zod.def.shape,r={...i};if(n)for(let o in n){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(let o in i)r[o]=new e({type:"nonoptional",innerType:i[o]});return ve(t,{...t._zod.def,shape:r,checks:[]})}function Vt(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n].continue!==!0)return!0;return!1}function he(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Jr(e){return typeof e=="string"?e:e?.message}function _e(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=Jr(e.inst?._zod.def?.error?.(e))??Jr(t?.error?.(e))??Jr(n.customError?.(e))??Jr(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function tn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ns(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Ox(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}var Wa=class{constructor(...t){}};var Fp=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Ja,2)},enumerable:!0})},nn=g("$ZodError",Fp),gr=g("$ZodError",Fp,{Parent:Error});function on(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function an(e,t){let n=t||function(o){return o.message},i={_errors:[]},r=o=>{for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>r({issues:s}));else if(a.code==="invalid_key")r({issues:a.issues});else if(a.code==="invalid_element")r({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let s=i,c=0;for(;c<a.path.length;){let d=a.path[c];c===a.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(n(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}};return r(e),i}function is(e,t){let n=t||function(o){return o.message},i={errors:[]},r=(o,a=[])=>{var s,c;for(let d of o.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(f=>r({issues:f},d.path));else if(d.code==="invalid_key")r({issues:d.issues},d.path);else if(d.code==="invalid_element")r({issues:d.issues},d.path);else{let f=[...a,...d.path];if(f.length===0){i.errors.push(n(d));continue}let h=i,v=0;for(;v<f.length;){let m=f[v],p=v===f.length-1;typeof m=="string"?(h.properties??(h.properties={}),(s=h.properties)[m]??(s[m]={errors:[]}),h=h.properties[m]):(h.items??(h.items=[]),(c=h.items)[m]??(c[m]={errors:[]}),h=h.items[m]),p&&h.errors.push(n(d)),v++}}};return r(e),i}function Vp(e){let t=[];for(let n of e)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function os(e){let t=[],n=[...e.issues].sort((i,r)=>i.path.length-r.path.length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Vp(i.path)}`);return t.join(`
|
|
38
|
+
`)}var ki=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Be;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>_e(c,o,Y())));throw Error.captureStackTrace(s,r?.callee),s}return a.value},Si=ki(gr),Ii=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>_e(c,o,Y())));throw Error.captureStackTrace(s,r?.callee),s}return a.value},Ti=Ii(gr),zi=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Be;return o.issues.length?{success:!1,error:new(e??nn)(o.issues.map(a=>_e(a,r,Y())))}:{success:!0,data:o.value}},as=zi(gr),ji=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>_e(a,r,Y())))}:{success:!0,data:o.value}},ss=ji(gr);var Kt={};nt(Kt,{_emoji:()=>qp,base64:()=>$s,base64url:()=>Ei,bigint:()=>js,boolean:()=>Os,browserEmail:()=>Bx,cidrv4:()=>bs,cidrv6:()=>xs,cuid:()=>cs,cuid2:()=>us,date:()=>Ss,datetime:()=>Ts,domain:()=>Mx,duration:()=>ms,e164:()=>ks,email:()=>gs,emoji:()=>ys,extendedDuration:()=>Ax,guid:()=>hs,hostname:()=>ws,html5Email:()=>Lx,integer:()=>Es,ipv4:()=>vs,ipv6:()=>_s,ksuid:()=>fs,lowercase:()=>Cs,nanoid:()=>ps,null:()=>Ns,number:()=>Ps,rfc5322Email:()=>Dx,string:()=>zs,time:()=>Is,ulid:()=>ls,undefined:()=>As,unicodeEmail:()=>Zx,uppercase:()=>Us,uuid:()=>qt,uuid4:()=>Cx,uuid6:()=>Ux,uuid7:()=>Rx,xid:()=>ds});var cs=/^[cC][^\s-]{8,}$/,us=/^[0-9a-z]+$/,ls=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ds=/^[0-9a-vA-V]{20}$/,fs=/^[A-Za-z0-9]{27}$/,ps=/^[a-zA-Z0-9_-]{21}$/,ms=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ax=/^[-+]?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)?)??$/,hs=/^([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})$/,qt=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)$/,Cx=qt(4),Ux=qt(6),Rx=qt(7),gs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Lx=/^[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])?)*$/,Dx=/^(([^<>()\[\]\\.,;:\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,}))$/,Zx=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Bx=/^[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])?)*$/,qp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ys(){return new RegExp(qp,"u")}var vs=/^(?:(?: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])$/,_s=/^(([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})$/,bs=/^((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])$/,xs=/^(([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])$/,$s=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ei=/^[A-Za-z0-9_-]*$/,ws=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Mx=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ks=/^\+(?:[0-9]){6,14}[0-9]$/,Kp="((\\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])))",Ss=new RegExp(`^${Kp}$`);function Hp(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Is(e){return new RegExp(`^${Hp(e)}$`)}function Ts(e){let t=`${Kp}T${Hp(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}var zs=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},js=/^\d+n?$/,Es=/^\d+$/,Ps=/^-?\d+(?:\.\d+)?/i,Os=/true|false/i,Ns=/null/i;var As=/undefined/i;var Cs=/^[^A-Z]*$/,Us=/^[^a-z]*$/;var G=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Jp={number:"number",bigint:"bigint",object:"date"},Pi=g("$ZodCheckLessThan",(e,t)=>{G.init(e,t);let n=Jp[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Oi=g("$ZodCheckGreaterThan",(e,t)=>{G.init(e,t);let n=Jp[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rs=g("$ZodCheckMultipleOf",(e,t)=>{G.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Ga(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ls=g("$ZodCheckNumberFormat",(e,t)=>{G.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=ts[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=Es)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),Ds=g("$ZodCheckBigIntFormat",(e,t)=>{G.init(e,t);let[n,i]=rs[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),Zs=g("$ZodCheckMaxSize",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;i.size<=t.maximum||n.issues.push({origin:tn(i),code:"too_big",maximum:t.maximum,input:i,inst:e,continue:!t.abort})}}),Bs=g("$ZodCheckMinSize",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.size!==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;i.size>=t.minimum||n.issues.push({origin:tn(i),code:"too_small",minimum:t.minimum,input:i,inst:e,continue:!t.abort})}}),Ms=g("$ZodCheckSizeEquals",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.size!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{let i=n.value,r=i.size;if(r===t.size)return;let o=r>t.size;n.issues.push({origin:tn(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},input:n.value,inst:e,continue:!t.abort})}}),Fs=g("$ZodCheckMaxLength",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=rn(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Vs=g("$ZodCheckMinLength",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(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 o=rn(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qs=g("$ZodCheckLengthEquals",(e,t)=>{G.init(e,t),e._zod.when=n=>{let i=n.value;return!gt(i)&&i.length!==void 0},e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,r=i.length;if(r===t.length)return;let o=rn(i),a=r>t.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},input:n.value,inst:e,continue:!t.abort})}}),yr=g("$ZodCheckStringFormat",(e,t)=>{var n;G.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),(n=e._zod).check??(n.check=i=>{if(!t.pattern)throw new Error("Not implemented.");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})})}),Ks=g("$ZodCheckRegex",(e,t)=>{yr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Hs=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Cs),yr.init(e,t)}),Ws=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Us),yr.init(e,t)}),Js=g("$ZodCheckIncludes",(e,t)=>{G.init(e,t);let n=Ye(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Gs=g("$ZodCheckStartsWith",(e,t)=>{G.init(e,t);let n=new RegExp(`^${Ye(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Ys=g("$ZodCheckEndsWith",(e,t)=>{G.init(e,t);let n=new RegExp(`.*${Ye(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Wp(e,t,n){e.issues.length&&t.issues.push(...he(n,e.issues))}var Xs=g("$ZodCheckProperty",(e,t)=>{G.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Wp(r,n,t.property));Wp(i,n,t.property)}}),Qs=g("$ZodCheckMimeType",(e,t)=>{G.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,path:["type"],inst:e})}}),ec=g("$ZodCheckOverwrite",(e,t)=>{G.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var sn=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
39
39
|
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
40
|
-
`))}};var tc={major:4,minor:0,patch:0};var U=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.id=t.type+"_"+wi(10),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tc;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._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 r=(o,a,s)=>{let c=Vt(o),d;for(let f of a){if(f._zod.when){if(!f._zod.when(o))continue}else if(c)continue;let h=o.issues.length,v=f._zod.check(o);if(v instanceof Promise&&s?.async===!1)throw new Be;if(d||v instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await v,o.issues.length!==h&&(c||(c=Vt(o,h)))});else{if(o.issues.length===h)continue;c||(c=Vt(o,h))}}return d?d.then(()=>o):o};e._zod.run=(o,a)=>{let s=e._zod.parse(o,a);if(s instanceof Promise){if(a.async===!1)throw new Be;return s.then(c=>r(c,i,a))}return r(s,i,a)}}e["~standard"]={validate:r=>{try{let o=as(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return ss(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ht=g("$ZodString",(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??zs(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),W=g("$ZodStringFormat",(e,t)=>{yr.init(e,t),Ht.init(e,t)}),nc=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=hs),W.init(e,t)}),ic=g("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qt(i))}else t.pattern??(t.pattern=qt());W.init(e,t)}),oc=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gs),W.init(e,t)}),ac=g("$ZodURL",(e,t)=>{W.init(e,t),e._zod.check=n=>{try{let i=new URL(n.value);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ws.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}));return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),sc=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ys()),W.init(e,t)}),cc=g("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ps),W.init(e,t)}),uc=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=cs),W.init(e,t)}),lc=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=us),W.init(e,t)}),dc=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ls),W.init(e,t)}),fc=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ds),W.init(e,t)}),pc=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fs),W.init(e,t)}),mc=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ts(t)),W.init(e,t)}),hc=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ss),W.init(e,t)}),gc=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Is(t)),W.init(e,t)}),yc=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ms),W.init(e,t)}),vc=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vs),W.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv4"})}),_c=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_s),W.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),bc=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=bs),W.init(e,t)}),xc=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xs),W.init(e,t),e._zod.check=n=>{let[i,r]=n.value.split("/");try{if(!r)throw new Error;let o=Number(r);if(`${o}`!==r)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function $c(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var wc=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=$s),W.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{$c(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function cm(e){if(!
|
|
40
|
+
`))}};var tc={major:4,minor:0,patch:0};var U=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.id=t.type+"_"+wi(10),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tc;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._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 r=(o,a,s)=>{let c=Vt(o),d;for(let f of a){if(f._zod.when){if(!f._zod.when(o))continue}else if(c)continue;let h=o.issues.length,v=f._zod.check(o);if(v instanceof Promise&&s?.async===!1)throw new Be;if(d||v instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await v,o.issues.length!==h&&(c||(c=Vt(o,h)))});else{if(o.issues.length===h)continue;c||(c=Vt(o,h))}}return d?d.then(()=>o):o};e._zod.run=(o,a)=>{let s=e._zod.parse(o,a);if(s instanceof Promise){if(a.async===!1)throw new Be;return s.then(c=>r(c,i,a))}return r(s,i,a)}}e["~standard"]={validate:r=>{try{let o=as(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return ss(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ht=g("$ZodString",(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??zs(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),W=g("$ZodStringFormat",(e,t)=>{yr.init(e,t),Ht.init(e,t)}),nc=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=hs),W.init(e,t)}),ic=g("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qt(i))}else t.pattern??(t.pattern=qt());W.init(e,t)}),oc=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gs),W.init(e,t)}),ac=g("$ZodURL",(e,t)=>{W.init(e,t),e._zod.check=n=>{try{let i=new URL(n.value);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ws.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}));return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),sc=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ys()),W.init(e,t)}),cc=g("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ps),W.init(e,t)}),uc=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=cs),W.init(e,t)}),lc=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=us),W.init(e,t)}),dc=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ls),W.init(e,t)}),fc=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ds),W.init(e,t)}),pc=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fs),W.init(e,t)}),mc=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ts(t)),W.init(e,t)}),hc=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ss),W.init(e,t)}),gc=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Is(t)),W.init(e,t)}),yc=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ms),W.init(e,t)}),vc=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vs),W.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv4"})}),_c=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_s),W.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),bc=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=bs),W.init(e,t)}),xc=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xs),W.init(e,t),e._zod.check=n=>{let[i,r]=n.value.split("/");try{if(!r)throw new Error;let o=Number(r);if(`${o}`!==r)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function $c(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var wc=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=$s),W.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{$c(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function cm(e){if(!Ei.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return $c(n)}var kc=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ei),W.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{cm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Sc=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ks),W.init(e,t)});function um(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n,r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Ic=g("$ZodJWT",(e,t)=>{W.init(e,t),e._zod.check=n=>{um(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ci=g("$ZodNumber",(e,t)=>{U.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ps,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),Tc=g("$ZodNumber",(e,t)=>{Ls.init(e,t),Ci.init(e,t)}),cn=g("$ZodBoolean",(e,t)=>{U.init(e,t),e._zod.pattern=Os,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Ui=g("$ZodBigInt",(e,t)=>{U.init(e,t),e._zod.pattern=js,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}let{value:r}=n;return typeof r=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:r,inst:e}),n}}),zc=g("$ZodBigInt",(e,t)=>{Ds.init(e,t),Ui.init(e,t)}),jc=g("$ZodSymbol",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Ec=g("$ZodUndefined",(e,t)=>{U.init(e,t),e._zod.pattern=As,e._zod.values=new Set([void 0]),e._zod.parse=(n,i)=>{let{value:r}=n;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Pc=g("$ZodNull",(e,t)=>{U.init(e,t),e._zod.pattern=Ns,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let{value:r}=n;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Oc=g("$ZodAny",(e,t)=>{U.init(e,t),e._zod.parse=n=>n}),vr=g("$ZodUnknown",(e,t)=>{U.init(e,t),e._zod.parse=n=>n}),Nc=g("$ZodNever",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Ac=g("$ZodVoid",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Cc=g("$ZodDate",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Yp(e,t,n){e.issues.length&&t.issues.push(...he(n,e.issues)),t.value[n]=e.value}var un=g("$ZodArray",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(d=>Yp(d,n,a))):Yp(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Ni(e,t,n){e.issues.length&&t.issues.push(...he(n,e.issues)),t.value[n]=e.value}function Xp(e,t,n,i){e.issues.length?i[n]===void 0?n in i?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...he(n,e.issues)):e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}var Uc=g("$ZodObject",(e,t)=>{U.init(e,t);let n=Yr(()=>{let h=Object.keys(t.shape);for(let m of h)if(!(t.shape[m]instanceof U))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);let v=es(t.shape);return{shape:t.shape,keys:h,keySet:new Set(h),numKeys:h.length,optionalKeys:new Set(v)}});q(e._zod,"propValues",()=>{let h=t.shape,v={};for(let m in h){let p=h[m]._zod;if(p.values){v[m]??(v[m]=new Set);for(let y of p.values)v[m].add(y)}}return v});let i=h=>{let v=new sn(["shape","payload","ctx"]),{keys:m,optionalKeys:p}=n.value,y=T=>{let w=Ft(T);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};v.write("const input = payload.value;");let b=Object.create(null);for(let T of m)b[T]=wi(15);v.write("const newResult = {}");for(let T of m)if(p.has(T)){let w=b[T];v.write(`const ${w} = ${y(T)};`);let S=Ft(T);v.write(`
|
|
41
41
|
if (${w}.issues.length) {
|
|
42
42
|
if (input[${S}] === undefined) {
|
|
43
43
|
if (${S} in input) {
|
|
@@ -60,12 +60,12 @@ ${T}`),y.pop(),`{${L}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";
|
|
|
60
60
|
if (${w}.issues.length) payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
|
|
61
61
|
...iss,
|
|
62
62
|
path: iss.path ? [${Ft(T)}, ...iss.path] : [${Ft(T)}]
|
|
63
|
-
})));`),v.write(`newResult[${Ft(T)}] = ${w}.value`)}v.write("payload.value = newResult;"),v.write("return payload;");let x=v.compile();return(T,w)=>x(h,T,w)},r,o=hr,a=!Wr.jitless,c=a&&Xa.value,{catchall:d}=t,f;e._zod.parse=(h,v)=>{f??(f=n.value);let m=h.value;if(!o(m))return h.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),h;let p=[];if(a&&c&&v?.async===!1&&v.jitless!==!0)r||(r=i(t.shape)),h=r(h,v);else{h.value={};let w=f.shape;for(let S of f.keys){let A=w[S],L=A._zod.run({value:m[S],issues:[]},v),M=A._zod.optin==="optional"&&A._zod.optout==="optional";L instanceof Promise?p.push(L.then(K=>M?Xp(K,h,S,m):Ni(K,h,S))):M?Xp(L,h,S,m):Ni(L,h,S)}}if(!d)return p.length?Promise.all(p).then(()=>h):h;let y=[],b=f.keySet,x=d._zod,T=x.def.type;for(let w of Object.keys(m)){if(b.has(w))continue;if(T==="never"){y.push(w);continue}let S=x.run({value:m[w],issues:[]},v);S instanceof Promise?p.push(S.then(A=>Ni(A,h,w))):Ni(S,h,w)}return y.length&&h.issues.push({code:"unrecognized_keys",keys:y,input:m,inst:e}),p.length?Promise.all(p).then(()=>h):h}});function Qp(e,t,n,i){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(o=>_e(o,i,Y())))}),t}var Ri=g("$ZodUnion",(e,t)=>{U.init(e,t),q(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Xr(i.source)).join("|")})$`)}}),e._zod.parse=(n,i)=>{let r=!1,o=[];for(let a of t.options){let s=a._zod.run({value:n.value,issues:[]},i);if(s instanceof Promise)o.push(s),r=!0;else{if(s.issues.length===0)return s;o.push(s)}}return r?Promise.all(o).then(a=>Qp(a,n,e,i)):Qp(o,n,e,i)}}),Rc=g("$ZodDiscriminatedUnion",(e,t)=>{Ri.init(e,t);let n=e._zod.parse;q(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let d of c)r[s].add(d)}}return r});let i=Yr(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!hr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[t.discriminator],inst:e}),r)}}),Lc=g("$ZodIntersection",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,d])=>em(n,c,d)):em(n,o,a)}});function rc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Qr(e)&&Qr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=rc(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=rc(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function em(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Vt(e))return e;let i=rc(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Wt=g("$ZodTuple",(e,t)=>{U.init(e,t);let n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,o)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let s=[];if(!t.rest){let d=a.length>n.length,f=a.length<i-1;if(d||f)return r.issues.push({input:a,inst:e,origin:"array",...d?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),r}let c=-1;for(let d of n){if(c++,c>=a.length&&c>=i)continue;let f=d._zod.run({value:a[c],issues:[]},o);f instanceof Promise?s.push(f.then(h=>Ci(h,r,c))):Ci(f,r,c)}if(t.rest){let d=a.slice(n.length);for(let f of d){c++;let h=t.rest._zod.run({value:f,issues:[]},o);h instanceof Promise?s.push(h.then(v=>Ci(v,r,c))):Ci(h,r,c)}}return s.length?Promise.all(s).then(()=>r):r}});function Ci(e,t,n){e.issues.length&&t.issues.push(...he(n,e.issues)),t.value[n]=e.value}var Dc=g("$ZodRecord",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Qr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[];if(t.keyType._zod.values){let a=t.keyType._zod.values;n.value={};for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let d=t.valueType._zod.run({value:r[c],issues:[]},i);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&n.issues.push(...he(c,f.issues)),n.value[c]=f.value})):(d.issues.length&&n.issues.push(...he(c,d.issues)),n.value[c]=d.value)}let s;for(let c in r)a.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(let a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let s=t.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map(d=>_e(d,i,Y())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:r[a],issues:[]},i);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&n.issues.push(...he(a,d.issues)),n.value[s.value]=d.value})):(c.issues.length&&n.issues.push(...he(a,c.issues)),n.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Zc=g("$ZodMap",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},i),d=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||d instanceof Promise?o.push(Promise.all([c,d]).then(([f,h])=>{tm(f,h,n,a,r,e,i)})):tm(c,d,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function tm(e,t,n,i,r,o,a){e.issues.length&&(en.has(typeof i)?n.issues.push(...he(i,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:r,inst:o,issues:e.issues.map(s=>_e(s,a,Y()))})),t.issues.length&&(en.has(typeof i)?n.issues.push(...he(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>_e(s,a,Y()))})),n.value.set(e.value,t.value)}var Bc=g("$ZodSet",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>rm(c,n))):rm(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function rm(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Mc=g("$ZodEnum",(e,t)=>{U.init(e,t);let n=Gr(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=>en.has(typeof i)).map(i=>typeof i=="string"?Ye(i):i.toString()).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return e._zod.values.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),Fc=g("$ZodLiteral",(e,t)=>{U.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ye(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),Vc=g("$ZodFile",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),ln=g("$ZodTransform",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Be;return n.value=r,n}}),qc=g("$ZodOptional",(e,t)=>{U.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Xr(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>n.value===void 0?n:t.innerType._zod.run(n,i)}),Kc=g("$ZodNullable",(e,t)=>{U.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Xr(n.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),Hc=g("$ZodDefault",(e,t)=>{U.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>nm(o,t)):nm(r,t)}});function nm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wc=g("$ZodPrefault",(e,t)=>{U.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Jc=g("$ZodNonOptional",(e,t)=>{U.init(e,t),q(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>im(o,e)):im(r,e)}});function im(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Gc=g("$ZodSuccess",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Yc=g("$ZodCatch",(e,t)=>{U.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>_e(a,i,Y()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>_e(o,i,Y()))},input:n.value}),n.issues=[]),n)}}),Xc=g("$ZodNaN",(e,t)=>{U.init(e,t),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)}),dn=g("$ZodPipe",(e,t)=>{U.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,i)=>{let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>om(o,t,i)):om(r,t,i)}});function om(e,t,n){return Vt(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var Qc=g("$ZodReadonly",(e,t)=>{U.init(e,t),q(e._zod,"propValues",()=>t.innerType._zod.propValues),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(am):am(r)}});function am(e){return e.value=Object.freeze(e.value),e}var eu=g("$ZodTemplateLiteral",(e,t)=>{U.init(e,t);let n=[];for(let i of t.parts)if(i instanceof U){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||Qa.has(typeof i))n.push(Ye(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",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:"template_literal",pattern:e._zod.pattern.source}),i)}),tu=g("$ZodPromise",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),ru=g("$ZodLazy",(e,t)=>{U.init(e,t),q(e._zod,"innerType",()=>t.getter()),q(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),q(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),q(e._zod,"optin",()=>e._zod.innerType._zod.optin),q(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),nu=g("$ZodCustom",(e,t)=>{G.init(e,t),U.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>sm(o,n,i,e));sm(r,n,i,e)}});function sm(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(ns(r))}}var fn={};nt(fn,{ar:()=>dm,az:()=>fm,be:()=>mm,ca:()=>hm,cs:()=>gm,de:()=>ym,en:()=>Li,es:()=>vm,fa:()=>_m,fi:()=>bm,fr:()=>xm,frCA:()=>$m,he:()=>wm,hu:()=>km,id:()=>Sm,it:()=>Im,ja:()=>Tm,kh:()=>zm,ko:()=>jm,mk:()=>Pm,ms:()=>Em,nl:()=>Om,no:()=>Nm,ota:()=>Cm,pl:()=>Am,pt:()=>Um,ru:()=>Lm,sl:()=>Dm,sv:()=>Zm,ta:()=>Bm,th:()=>Mm,tr:()=>Fm,ua:()=>Vm,ur:()=>qm,vi:()=>Km,zhCN:()=>Hm,zhTW:()=>Wm});var Mx=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${j(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 "${r.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}`:`${i[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${_(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function dm(){return{localeError:Mx()}}var Fx=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${j(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function fm(){return{localeError:Fx()}}function pm(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var Vx=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${j(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=pm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=pm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function mm(){return{localeError:Vx()}}var qx=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${j(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function hm(){return{localeError:qx()}}var Kx=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r.expected}, obdr\u017Eeno ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${j(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function gm(){return{localeError:Kx()}}var Hx=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${j(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;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: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function ym(){return{localeError:Hx()}}var Wx=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Jx=()=>{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"}};function t(i){return e[i]??null}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"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${Wx(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${j(i.values[0])}`:`Invalid option: expected one of ${_(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${r}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${_(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Li(){return{localeError:Jx()}}var Gx=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${j(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Demasiado peque\xF1o: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r.origin}`;default:return"Entrada inv\xE1lida"}}};function vm(){return{localeError:Gx()}}var Yx=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${n(r.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${j(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${_(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;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`:`${i[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function _m(){return{localeError:Yx()}}var Xx=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${j(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function bm(){return{localeError:Xx()}}var Qx=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : ${r.expected} attendu, ${n(r.input)} re\xE7u`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${j(r.values[0])} attendu`:`Option invalide : une valeur parmi ${_(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function xm(){return{localeError:Qx()}}var e0=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${r.expected}, re\xE7u ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${j(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function $m(){return{localeError:e0()}}var t0=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{switch(r.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${r.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${j(r.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${i[o.format]??r.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}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 ${r.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${r.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${r.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function wm(){return{localeError:t0()}}var r0=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r.expected}, a kapott \xE9rt\xE9k ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${j(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function km(){return{localeError:r0()}}var n0=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${j(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Sm(){return{localeError:n0()}}var i0=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${j(r.values[0])}`:`Opzione non valida: atteso uno tra ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${_(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Im(){return{localeError:i0()}}var o0=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${n(r.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${j(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;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${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${_(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Tm(){return{localeError:o0()}}var a0=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${j(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function zm(){return{localeError:a0()}}var s0=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${n(r.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${j(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function jm(){return{localeError:s0()}}var c0=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${j(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Pm(){return{localeError:c0()}}var u0=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${j(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function Em(){return{localeError:u0()}}var l0=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${j(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;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: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function Om(){return{localeError:l0()}}var d0=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${j(r.values[0])}`:`Ugyldig valg: forventet en av ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function Nm(){return{localeError:d0()}}var f0=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`F\xE2sit giren: umulan ${r.expected}, al\u0131nan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${j(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Cm(){return{localeError:f0()}}var p0=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${j(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${i[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Am(){return{localeError:p0()}}var m0=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${j(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function Um(){return{localeError:m0()}}function Rm(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var h0=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${j(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Rm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Rm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Lm(){return{localeError:h0()}}var g0=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${j(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function Dm(){return{localeError:g0()}}var y0=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${j(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${i[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Zm(){return{localeError:y0()}}var v0=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${j(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Bm(){return{localeError:v0()}}var _0=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${j(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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: ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${_(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Mm(){return{localeError:_0()}}var b0=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},x0=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}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"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${b0(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${j(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${_(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Fm(){return{localeError:x0()}}var $0=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${j(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Vm(){return{localeError:$0()}}var w0=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${n(r.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${j(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${_(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function qm(){return{localeError:w0()}}var k0=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${j(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Km(){return{localeError:k0()}}var S0=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${j(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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${i[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Hm(){return{localeError:S0()}}var I0=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r.expected}\uFF0C\u4F46\u6536\u5230 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${j(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${_(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Wm(){return{localeError:I0()}}var iu=Symbol("ZodOutput"),ou=Symbol("ZodInput"),_r=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function Di(){return new _r}var Me=Di();function au(e,t){return new e({type:"string",...k(t)})}function su(e,t){return new e({type:"string",coerce:!0,...k(t)})}function Zi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(t)})}function pn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(t)})}function Bi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(t)})}function Mi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(t)})}function Fi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(t)})}function Vi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(t)})}function qi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(t)})}function Ki(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(t)})}function Hi(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(t)})}function Wi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(t)})}function Ji(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(t)})}function Gi(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(t)})}function Yi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(t)})}function Xi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(t)})}function Qi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(t)})}function eo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(t)})}function to(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(t)})}function ro(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(t)})}function no(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(t)})}function io(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(t)})}function oo(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(t)})}function ao(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(t)})}function cu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(t)})}function uu(e,t){return new e({type:"string",format:"date",check:"string_format",...k(t)})}function lu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(t)})}function du(e,t){return new e({type:"string",format:"duration",check:"string_format",...k(t)})}function fu(e,t){return new e({type:"number",checks:[],...k(t)})}function pu(e,t){return new e({type:"number",coerce:!0,checks:[],...k(t)})}function mu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(t)})}function hu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(t)})}function gu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(t)})}function yu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(t)})}function vu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(t)})}function _u(e,t){return new e({type:"boolean",...k(t)})}function bu(e,t){return new e({type:"boolean",coerce:!0,...k(t)})}function xu(e,t){return new e({type:"bigint",...k(t)})}function $u(e,t){return new e({type:"bigint",coerce:!0,...k(t)})}function wu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(t)})}function ku(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(t)})}function Su(e,t){return new e({type:"symbol",...k(t)})}function Iu(e,t){return new e({type:"undefined",...k(t)})}function Tu(e,t){return new e({type:"null",...k(t)})}function zu(e){return new e({type:"any"})}function br(e){return new e({type:"unknown"})}function ju(e,t){return new e({type:"never",...k(t)})}function Pu(e,t){return new e({type:"void",...k(t)})}function Eu(e,t){return new e({type:"date",...k(t)})}function Ou(e,t){return new e({type:"date",coerce:!0,...k(t)})}function Nu(e,t){return new e({type:"nan",...k(t)})}function Xe(e,t){return new Ei({check:"less_than",...k(t),value:e,inclusive:!1})}function Ie(e,t){return new Ei({check:"less_than",...k(t),value:e,inclusive:!0})}function Qe(e,t){return new Oi({check:"greater_than",...k(t),value:e,inclusive:!1})}function ge(e,t){return new Oi({check:"greater_than",...k(t),value:e,inclusive:!0})}function Cu(e){return Qe(0,e)}function Au(e){return Xe(0,e)}function Uu(e){return Ie(0,e)}function Ru(e){return ge(0,e)}function Jt(e,t){return new Rs({check:"multiple_of",...k(t),value:e})}function xr(e,t){return new Zs({check:"max_size",...k(t),maximum:e})}function Gt(e,t){return new Bs({check:"min_size",...k(t),minimum:e})}function mn(e,t){return new Ms({check:"size_equals",...k(t),size:e})}function $r(e,t){return new Fs({check:"max_length",...k(t),maximum:e})}function yt(e,t){return new Vs({check:"min_length",...k(t),minimum:e})}function wr(e,t){return new qs({check:"length_equals",...k(t),length:e})}function hn(e,t){return new Ks({check:"string_format",format:"regex",...k(t),pattern:e})}function gn(e){return new Hs({check:"string_format",format:"lowercase",...k(e)})}function yn(e){return new Ws({check:"string_format",format:"uppercase",...k(e)})}function vn(e,t){return new Js({check:"string_format",format:"includes",...k(t),includes:e})}function _n(e,t){return new Gs({check:"string_format",format:"starts_with",...k(t),prefix:e})}function bn(e,t){return new Ys({check:"string_format",format:"ends_with",...k(t),suffix:e})}function Lu(e,t,n){return new Xs({check:"property",property:e,schema:t,...k(n)})}function xn(e,t){return new Qs({check:"mime_type",mime:e,...k(t)})}function et(e){return new ec({check:"overwrite",tx:e})}function $n(e){return et(t=>t.normalize(e))}function wn(){return et(e=>e.trim())}function kn(){return et(e=>e.toLowerCase())}function Sn(){return et(e=>e.toUpperCase())}function In(e,t,n){return new e({type:"array",element:t,...k(n)})}function T0(e,t,n){return new e({type:"union",options:t,...k(n)})}function z0(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...k(i)})}function j0(e,t,n){return new e({type:"intersection",left:t,right:n})}function Du(e,t,n,i){let r=n instanceof U,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...k(o)})}function P0(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...k(i)})}function E0(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...k(i)})}function O0(e,t,n){return new e({type:"set",valueType:t,...k(n)})}function N0(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...k(n)})}function C0(e,t,n){return new e({type:"enum",entries:t,...k(n)})}function A0(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...k(n)})}function Zu(e,t){return new e({type:"file",...k(t)})}function U0(e,t){return new e({type:"transform",transform:t})}function R0(e,t){return new e({type:"optional",innerType:t})}function L0(e,t){return new e({type:"nullable",innerType:t})}function D0(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():n}})}function Z0(e,t,n){return new e({type:"nonoptional",innerType:t,...k(n)})}function B0(e,t){return new e({type:"success",innerType:t})}function M0(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function F0(e,t,n){return new e({type:"pipe",in:t,out:n})}function V0(e,t){return new e({type:"readonly",innerType:t})}function q0(e,t,n){return new e({type:"template_literal",parts:t,...k(n)})}function K0(e,t){return new e({type:"lazy",getter:t})}function H0(e,t){return new e({type:"promise",innerType:t})}function Bu(e,t,n){let i=k(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Mu(e,t,n){return new e({type:"custom",check:"custom",fn:t,...k(n)})}function Fu(e,t){let{case:n,error:i,truthy:r,falsy:o}=k(t),a=r??["true","1","yes","on","y","enabled"],s=o??["false","0","no","off","n","disabled"];n!=="sensitive"&&(a=a.map(x=>typeof x=="string"?x.toLowerCase():x),s=s.map(x=>typeof x=="string"?x.toLowerCase():x));let c=new Set(a),d=new Set(s),f=e.Pipe??dn,h=e.Boolean??cn,v=e.String??Ht,m=e.Transform??ln,p=new m({type:"transform",transform:(x,T)=>{let w=x;return n!=="sensitive"&&(w=w.toLowerCase()),c.has(w)?!0:d.has(w)?!1:(T.issues.push({code:"invalid_value",expected:"stringbool",values:[...c,...d],input:T.value,inst:p}),{})},error:i}),y=new f({type:"pipe",in:new v({type:"string",error:i}),out:p,error:i});return new f({type:"pipe",in:y,out:new h({type:"boolean",error:i}),error:i})}var so=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=(...i)=>{let r=this._def.input?Si(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...r);return this._def.output?Si(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=async(...i)=>{let r=this._def.input?await Ti(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...r);return this._def.output?Ti(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){let n=this.constructor;return Array.isArray(t[0])?new n({type:"function",input:new Wt({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new n({type:"function",input:t[0],output:this._def.output})}output(t){let n=this.constructor;return new n({type:"function",input:this._def.input,output:t})}};function Vu(e){return new so({type:"function",input:Array.isArray(e?.input)?Du(Wt,e?.input):e?.input??In(un,br(vr)),output:e?.output??br(vr)})}var Tn=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Me,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var i;let r=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;let s={schema:{},count:1,cycle:void 0};this.seen.set(t,s),t._zod.toJSONSchema&&(s.schema=t._zod.toJSONSchema());let c={...n,schemaPath:[...n.schemaPath,t],path:n.path},d=t._zod.parent;if(d)s.ref=d,this.process(d,c),this.seen.get(d).isParent=!0;else{let v=s.schema;switch(r.type){case"string":{let m=v;m.type="string";let{minimum:p,maximum:y,format:b,patterns:x,contentEncoding:T}=t._zod.bag;if(typeof p=="number"&&(m.minLength=p),typeof y=="number"&&(m.maxLength=y),b&&(m.format=o[b]??b,m.format===""&&delete m.format),T&&(m.contentEncoding=T),x&&x.size>0){let w=[...x];w.length===1?m.pattern=w[0].source:w.length>1&&(s.schema.allOf=[...w.map(S=>({...this.target==="draft-7"?{type:"string"}:{},pattern:S.source}))])}break}case"number":{let m=v,{minimum:p,maximum:y,format:b,multipleOf:x,exclusiveMaximum:T,exclusiveMinimum:w}=t._zod.bag;typeof b=="string"&&b.includes("int")?m.type="integer":m.type="number",typeof w=="number"&&(m.exclusiveMinimum=w),typeof p=="number"&&(m.minimum=p,typeof w=="number"&&(w>=p?delete m.minimum:delete m.exclusiveMinimum)),typeof T=="number"&&(m.exclusiveMaximum=T),typeof y=="number"&&(m.maximum=y,typeof T=="number"&&(T<=y?delete m.maximum:delete m.exclusiveMaximum)),typeof x=="number"&&(m.multipleOf=x);break}case"boolean":{let m=v;m.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"undefined":{let m=v;m.type="null";break}case"null":{v.type="null";break}case"any":break;case"unknown":break;case"never":{v.not={};break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let m=v,{minimum:p,maximum:y}=t._zod.bag;typeof p=="number"&&(m.minItems=p),typeof y=="number"&&(m.maxItems=y),m.type="array",m.items=this.process(r.element,{...c,path:[...c.path,"items"]});break}case"object":{let m=v;m.type="object",m.properties={};let p=r.shape;for(let x in p)m.properties[x]=this.process(p[x],{...c,path:[...c.path,"properties",x]});let y=new Set(Object.keys(p)),b=new Set([...y].filter(x=>{let T=r.shape[x]._zod;return this.io==="input"?T.optin===void 0:T.optout===void 0}));b.size>0&&(m.required=Array.from(b)),r.catchall?._zod.def.type==="never"?m.additionalProperties=!1:r.catchall?r.catchall&&(m.additionalProperties=this.process(r.catchall,{...c,path:[...c.path,"additionalProperties"]})):this.io==="output"&&(m.additionalProperties=!1);break}case"union":{let m=v;m.anyOf=r.options.map((p,y)=>this.process(p,{...c,path:[...c.path,"anyOf",y]}));break}case"intersection":{let m=v,p=this.process(r.left,{...c,path:[...c.path,"allOf",0]}),y=this.process(r.right,{...c,path:[...c.path,"allOf",1]}),b=T=>"allOf"in T&&Object.keys(T).length===1,x=[...b(p)?p.allOf:[p],...b(y)?y.allOf:[y]];m.allOf=x;break}case"tuple":{let m=v;m.type="array";let p=r.items.map((x,T)=>this.process(x,{...c,path:[...c.path,"prefixItems",T]}));if(this.target==="draft-2020-12"?m.prefixItems=p:m.items=p,r.rest){let x=this.process(r.rest,{...c,path:[...c.path,"items"]});this.target==="draft-2020-12"?m.items=x:m.additionalItems=x}r.rest&&(m.items=this.process(r.rest,{...c,path:[...c.path,"items"]}));let{minimum:y,maximum:b}=t._zod.bag;typeof y=="number"&&(m.minItems=y),typeof b=="number"&&(m.maxItems=b);break}case"record":{let m=v;m.type="object",m.propertyNames=this.process(r.keyType,{...c,path:[...c.path,"propertyNames"]}),m.additionalProperties=this.process(r.valueType,{...c,path:[...c.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let m=v,p=Gr(r.entries);p.every(y=>typeof y=="number")&&(m.type="number"),p.every(y=>typeof y=="string")&&(m.type="string"),m.enum=p;break}case"literal":{let m=v,p=[];for(let y of r.values)if(y===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof y=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");p.push(Number(y))}else p.push(y);if(p.length!==0)if(p.length===1){let y=p[0];m.type=y===null?"null":typeof y,m.const=y}else p.every(y=>typeof y=="number")&&(m.type="number"),p.every(y=>typeof y=="string")&&(m.type="string"),p.every(y=>typeof y=="boolean")&&(m.type="string"),p.every(y=>y===null)&&(m.type="null"),m.enum=p;break}case"file":{let m=v,p={type:"string",format:"binary",contentEncoding:"binary"},{minimum:y,maximum:b,mime:x}=t._zod.bag;y!==void 0&&(p.minLength=y),b!==void 0&&(p.maxLength=b),x?x.length===1?(p.contentMediaType=x[0],Object.assign(m,p)):m.anyOf=x.map(T=>({...p,contentMediaType:T})):Object.assign(m,p);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let m=this.process(r.innerType,c);v.anyOf=[m,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,c),s.ref=r.innerType;break}case"success":{let m=v;m.type="boolean";break}case"default":{this.process(r.innerType,c),s.ref=r.innerType,v.default=r.defaultValue;break}case"prefault":{this.process(r.innerType,c),s.ref=r.innerType,this.io==="input"&&(v._prefault=r.defaultValue);break}case"catch":{this.process(r.innerType,c),s.ref=r.innerType;let m;try{m=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}v.default=m;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let m=v,p=t._zod.pattern;if(!p)throw new Error("Pattern not found in template literal");m.type="string",m.pattern=p.source;break}case"pipe":{let m=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(m,c),s.ref=m;break}case"readonly":{this.process(r.innerType,c),s.ref=r.innerType,v.readOnly=!0;break}case"promise":{this.process(r.innerType,c),s.ref=r.innerType;break}case"optional":{this.process(r.innerType,c),s.ref=r.innerType;break}case"lazy":{let m=t._zod.innerType;this.process(m,c),s.ref=m;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}let f=this.metadataRegistry.get(t);return f&&Object.assign(s.schema,f),this.io==="input"&&re(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,n){let i={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=f=>{let h=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let y=i.external.registry.get(f[0])?.id;if(y)return{ref:i.external.uri(y)};let b=f[1].defId??f[1].schema.id??`schema${this.counter++}`;return f[1].defId=b,{defId:b,ref:`${i.external.uri("__shared")}#/${h}/${b}`}}if(f[1]===r)return{ref:"#"};let m=`#/${h}/`,p=f[1].schema.id??`__schema${this.counter++}`;return{defId:p,ref:m+p}},a=f=>{if(f[1].schema.$ref)return;let h=f[1],{ref:v,defId:m}=o(f);h.def={...h.schema},m&&(h.defId=m);let p=h.schema;for(let y in p)delete p[y];p.$ref=v};for(let f of this.seen.entries()){let h=f[1];if(t===f[0]){a(f);continue}if(i.external){let m=i.external.registry.get(f[0])?.id;if(t!==f[0]&&m){a(f);continue}}if(this.metadataRegistry.get(f[0])?.id){a(f);continue}if(h.cycle){if(i.cycles==="throw")throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
63
|
+
})));`),v.write(`newResult[${Ft(T)}] = ${w}.value`)}v.write("payload.value = newResult;"),v.write("return payload;");let x=v.compile();return(T,w)=>x(h,T,w)},r,o=hr,a=!Wr.jitless,c=a&&Xa.value,{catchall:d}=t,f;e._zod.parse=(h,v)=>{f??(f=n.value);let m=h.value;if(!o(m))return h.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),h;let p=[];if(a&&c&&v?.async===!1&&v.jitless!==!0)r||(r=i(t.shape)),h=r(h,v);else{h.value={};let w=f.shape;for(let S of f.keys){let C=w[S],L=C._zod.run({value:m[S],issues:[]},v),M=C._zod.optin==="optional"&&C._zod.optout==="optional";L instanceof Promise?p.push(L.then(K=>M?Xp(K,h,S,m):Ni(K,h,S))):M?Xp(L,h,S,m):Ni(L,h,S)}}if(!d)return p.length?Promise.all(p).then(()=>h):h;let y=[],b=f.keySet,x=d._zod,T=x.def.type;for(let w of Object.keys(m)){if(b.has(w))continue;if(T==="never"){y.push(w);continue}let S=x.run({value:m[w],issues:[]},v);S instanceof Promise?p.push(S.then(C=>Ni(C,h,w))):Ni(S,h,w)}return y.length&&h.issues.push({code:"unrecognized_keys",keys:y,input:m,inst:e}),p.length?Promise.all(p).then(()=>h):h}});function Qp(e,t,n,i){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(o=>_e(o,i,Y())))}),t}var Ri=g("$ZodUnion",(e,t)=>{U.init(e,t),q(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Xr(i.source)).join("|")})$`)}}),e._zod.parse=(n,i)=>{let r=!1,o=[];for(let a of t.options){let s=a._zod.run({value:n.value,issues:[]},i);if(s instanceof Promise)o.push(s),r=!0;else{if(s.issues.length===0)return s;o.push(s)}}return r?Promise.all(o).then(a=>Qp(a,n,e,i)):Qp(o,n,e,i)}}),Rc=g("$ZodDiscriminatedUnion",(e,t)=>{Ri.init(e,t);let n=e._zod.parse;q(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let d of c)r[s].add(d)}}return r});let i=Yr(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!hr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[t.discriminator],inst:e}),r)}}),Lc=g("$ZodIntersection",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let{value:r}=n,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,d])=>em(n,c,d)):em(n,o,a)}});function rc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Qr(e)&&Qr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=rc(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=rc(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function em(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Vt(e))return e;let i=rc(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Wt=g("$ZodTuple",(e,t)=>{U.init(e,t);let n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,o)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let s=[];if(!t.rest){let d=a.length>n.length,f=a.length<i-1;if(d||f)return r.issues.push({input:a,inst:e,origin:"array",...d?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}}),r}let c=-1;for(let d of n){if(c++,c>=a.length&&c>=i)continue;let f=d._zod.run({value:a[c],issues:[]},o);f instanceof Promise?s.push(f.then(h=>Ai(h,r,c))):Ai(f,r,c)}if(t.rest){let d=a.slice(n.length);for(let f of d){c++;let h=t.rest._zod.run({value:f,issues:[]},o);h instanceof Promise?s.push(h.then(v=>Ai(v,r,c))):Ai(h,r,c)}}return s.length?Promise.all(s).then(()=>r):r}});function Ai(e,t,n){e.issues.length&&t.issues.push(...he(n,e.issues)),t.value[n]=e.value}var Dc=g("$ZodRecord",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Qr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[];if(t.keyType._zod.values){let a=t.keyType._zod.values;n.value={};for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let d=t.valueType._zod.run({value:r[c],issues:[]},i);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&n.issues.push(...he(c,f.issues)),n.value[c]=f.value})):(d.issues.length&&n.issues.push(...he(c,d.issues)),n.value[c]=d.value)}let s;for(let c in r)a.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(let a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let s=t.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map(d=>_e(d,i,Y())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:r[a],issues:[]},i);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&n.issues.push(...he(a,d.issues)),n.value[s.value]=d.value})):(c.issues.length&&n.issues.push(...he(a,c.issues)),n.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Zc=g("$ZodMap",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},i),d=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||d instanceof Promise?o.push(Promise.all([c,d]).then(([f,h])=>{tm(f,h,n,a,r,e,i)})):tm(c,d,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function tm(e,t,n,i,r,o,a){e.issues.length&&(en.has(typeof i)?n.issues.push(...he(i,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:r,inst:o,issues:e.issues.map(s=>_e(s,a,Y()))})),t.issues.length&&(en.has(typeof i)?n.issues.push(...he(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>_e(s,a,Y()))})),n.value.set(e.value,t.value)}var Bc=g("$ZodSet",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>rm(c,n))):rm(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function rm(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Mc=g("$ZodEnum",(e,t)=>{U.init(e,t);let n=Gr(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=>en.has(typeof i)).map(i=>typeof i=="string"?Ye(i):i.toString()).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return e._zod.values.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),Fc=g("$ZodLiteral",(e,t)=>{U.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ye(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),Vc=g("$ZodFile",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),ln=g("$ZodTransform",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Be;return n.value=r,n}}),qc=g("$ZodOptional",(e,t)=>{U.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Xr(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>n.value===void 0?n:t.innerType._zod.run(n,i)}),Kc=g("$ZodNullable",(e,t)=>{U.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Xr(n.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),Hc=g("$ZodDefault",(e,t)=>{U.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>nm(o,t)):nm(r,t)}});function nm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wc=g("$ZodPrefault",(e,t)=>{U.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Jc=g("$ZodNonOptional",(e,t)=>{U.init(e,t),q(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>im(o,e)):im(r,e)}});function im(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Gc=g("$ZodSuccess",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Yc=g("$ZodCatch",(e,t)=>{U.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>_e(a,i,Y()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>_e(o,i,Y()))},input:n.value}),n.issues=[]),n)}}),Xc=g("$ZodNaN",(e,t)=>{U.init(e,t),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)}),dn=g("$ZodPipe",(e,t)=>{U.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,i)=>{let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>om(o,t,i)):om(r,t,i)}});function om(e,t,n){return Vt(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}var Qc=g("$ZodReadonly",(e,t)=>{U.init(e,t),q(e._zod,"propValues",()=>t.innerType._zod.propValues),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(am):am(r)}});function am(e){return e.value=Object.freeze(e.value),e}var eu=g("$ZodTemplateLiteral",(e,t)=>{U.init(e,t);let n=[];for(let i of t.parts)if(i instanceof U){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||Qa.has(typeof i))n.push(Ye(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",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:"template_literal",pattern:e._zod.pattern.source}),i)}),tu=g("$ZodPromise",(e,t)=>{U.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),ru=g("$ZodLazy",(e,t)=>{U.init(e,t),q(e._zod,"innerType",()=>t.getter()),q(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),q(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),q(e._zod,"optin",()=>e._zod.innerType._zod.optin),q(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),nu=g("$ZodCustom",(e,t)=>{G.init(e,t),U.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>sm(o,n,i,e));sm(r,n,i,e)}});function sm(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(ns(r))}}var fn={};nt(fn,{ar:()=>dm,az:()=>fm,be:()=>mm,ca:()=>hm,cs:()=>gm,de:()=>ym,en:()=>Li,es:()=>vm,fa:()=>_m,fi:()=>bm,fr:()=>xm,frCA:()=>$m,he:()=>wm,hu:()=>km,id:()=>Sm,it:()=>Im,ja:()=>Tm,kh:()=>zm,ko:()=>jm,mk:()=>Em,ms:()=>Pm,nl:()=>Om,no:()=>Nm,ota:()=>Am,pl:()=>Cm,pt:()=>Um,ru:()=>Lm,sl:()=>Dm,sv:()=>Zm,ta:()=>Bm,th:()=>Mm,tr:()=>Fm,ua:()=>Vm,ur:()=>qm,vi:()=>Km,zhCN:()=>Hm,zhTW:()=>Wm});var Fx=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${j(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 "${r.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}`:`${i[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${_(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function dm(){return{localeError:Fx()}}var Vx=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${j(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function fm(){return{localeError:Vx()}}function pm(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var qx=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${j(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=pm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=pm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function mm(){return{localeError:qx()}}var Kx=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${j(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function hm(){return{localeError:Kx()}}var Hx=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r.expected}, obdr\u017Eeno ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${j(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function gm(){return{localeError:Hx()}}var Wx=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${j(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;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: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function ym(){return{localeError:Wx()}}var Jx=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Gx=()=>{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"}};function t(i){return e[i]??null}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"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${Jx(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${j(i.values[0])}`:`Invalid option: expected one of ${_(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${r}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${_(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Li(){return{localeError:Gx()}}var Yx=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"arreglo";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${j(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Demasiado peque\xF1o: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r.origin}`;default:return"Entrada inv\xE1lida"}}};function vm(){return{localeError:Yx()}}var Xx=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${n(r.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${j(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${_(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;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`:`${i[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function _m(){return{localeError:Xx()}}var Qx=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${j(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function bm(){return{localeError:Qx()}}var e0=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : ${r.expected} attendu, ${n(r.input)} re\xE7u`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${j(r.values[0])} attendu`:`Option invalide : une valeur parmi ${_(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function xm(){return{localeError:e0()}}var t0=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${r.expected}, re\xE7u ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${j(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function $m(){return{localeError:t0()}}var r0=()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{switch(r.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${r.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${j(r.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${r.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${r.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${o.prefix}"`:o.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${o.suffix}"`:o.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${o.includes}"`:o.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${o.pattern}`:`${i[o.format]??r.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}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 ${r.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${r.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${r.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function wm(){return{localeError:r0()}}var n0=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r.expected}, a kapott \xE9rt\xE9k ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${j(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function km(){return{localeError:n0()}}var i0=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${j(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Sm(){return{localeError:i0()}}var o0=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${j(r.values[0])}`:`Opzione non valida: atteso uno tra ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${_(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Im(){return{localeError:o0()}}var a0=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${n(r.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${j(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;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${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${_(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Tm(){return{localeError:a0()}}var s0=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${j(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function zm(){return{localeError:s0()}}var c0=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${n(r.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${j(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function jm(){return{localeError:c0()}}var u0=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${j(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Em(){return{localeError:u0()}}var l0=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${j(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function Pm(){return{localeError:l0()}}var d0=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${j(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;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: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function Om(){return{localeError:d0()}}var f0=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${j(r.values[0])}`:`Ugyldig valg: forventet en av ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function Nm(){return{localeError:f0()}}var p0=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`F\xE2sit giren: umulan ${r.expected}, al\u0131nan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${j(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Am(){return{localeError:p0()}}var m0=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${j(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${i[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Cm(){return{localeError:m0()}}var h0=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${j(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function Um(){return{localeError:h0()}}function Rm(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var g0=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${j(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Rm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Rm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Lm(){return{localeError:g0()}}var y0=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${j(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function Dm(){return{localeError:y0()}}var v0=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${j(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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) ${i[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Zm(){return{localeError:v0()}}var _0=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${j(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Bm(){return{localeError:_0()}}var b0=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${j(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;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: ${i[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${_(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Mm(){return{localeError:b0()}}var x0=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},$0=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}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"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${x0(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${j(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(i.values,"|")}`;case"too_big":{let r=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${r}${i.maximum.toString()}`}case"too_small":{let r=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{let r=i;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${_(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Fm(){return{localeError:$0()}}var w0=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${j(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Vm(){return{localeError:w0()}}var k0=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${n(r.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${j(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${_(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function qm(){return{localeError:k0()}}var S0=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${j(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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}`:`${i[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Km(){return{localeError:S0()}}var I0=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${j(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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${i[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Hm(){return{localeError:I0()}}var T0=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n=r=>{let o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},i={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"};return r=>{switch(r.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r.expected}\uFF0C\u4F46\u6536\u5230 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${j(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;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 ${i[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${_(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Wm(){return{localeError:T0()}}var iu=Symbol("ZodOutput"),ou=Symbol("ZodInput"),_r=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function Di(){return new _r}var Me=Di();function au(e,t){return new e({type:"string",...k(t)})}function su(e,t){return new e({type:"string",coerce:!0,...k(t)})}function Zi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(t)})}function pn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(t)})}function Bi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(t)})}function Mi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(t)})}function Fi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(t)})}function Vi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(t)})}function qi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(t)})}function Ki(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(t)})}function Hi(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(t)})}function Wi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(t)})}function Ji(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(t)})}function Gi(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(t)})}function Yi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(t)})}function Xi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(t)})}function Qi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(t)})}function eo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(t)})}function to(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(t)})}function ro(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(t)})}function no(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(t)})}function io(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(t)})}function oo(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(t)})}function ao(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(t)})}function cu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(t)})}function uu(e,t){return new e({type:"string",format:"date",check:"string_format",...k(t)})}function lu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(t)})}function du(e,t){return new e({type:"string",format:"duration",check:"string_format",...k(t)})}function fu(e,t){return new e({type:"number",checks:[],...k(t)})}function pu(e,t){return new e({type:"number",coerce:!0,checks:[],...k(t)})}function mu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(t)})}function hu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(t)})}function gu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(t)})}function yu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(t)})}function vu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(t)})}function _u(e,t){return new e({type:"boolean",...k(t)})}function bu(e,t){return new e({type:"boolean",coerce:!0,...k(t)})}function xu(e,t){return new e({type:"bigint",...k(t)})}function $u(e,t){return new e({type:"bigint",coerce:!0,...k(t)})}function wu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(t)})}function ku(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(t)})}function Su(e,t){return new e({type:"symbol",...k(t)})}function Iu(e,t){return new e({type:"undefined",...k(t)})}function Tu(e,t){return new e({type:"null",...k(t)})}function zu(e){return new e({type:"any"})}function br(e){return new e({type:"unknown"})}function ju(e,t){return new e({type:"never",...k(t)})}function Eu(e,t){return new e({type:"void",...k(t)})}function Pu(e,t){return new e({type:"date",...k(t)})}function Ou(e,t){return new e({type:"date",coerce:!0,...k(t)})}function Nu(e,t){return new e({type:"nan",...k(t)})}function Xe(e,t){return new Pi({check:"less_than",...k(t),value:e,inclusive:!1})}function Ie(e,t){return new Pi({check:"less_than",...k(t),value:e,inclusive:!0})}function Qe(e,t){return new Oi({check:"greater_than",...k(t),value:e,inclusive:!1})}function ge(e,t){return new Oi({check:"greater_than",...k(t),value:e,inclusive:!0})}function Au(e){return Qe(0,e)}function Cu(e){return Xe(0,e)}function Uu(e){return Ie(0,e)}function Ru(e){return ge(0,e)}function Jt(e,t){return new Rs({check:"multiple_of",...k(t),value:e})}function xr(e,t){return new Zs({check:"max_size",...k(t),maximum:e})}function Gt(e,t){return new Bs({check:"min_size",...k(t),minimum:e})}function mn(e,t){return new Ms({check:"size_equals",...k(t),size:e})}function $r(e,t){return new Fs({check:"max_length",...k(t),maximum:e})}function yt(e,t){return new Vs({check:"min_length",...k(t),minimum:e})}function wr(e,t){return new qs({check:"length_equals",...k(t),length:e})}function hn(e,t){return new Ks({check:"string_format",format:"regex",...k(t),pattern:e})}function gn(e){return new Hs({check:"string_format",format:"lowercase",...k(e)})}function yn(e){return new Ws({check:"string_format",format:"uppercase",...k(e)})}function vn(e,t){return new Js({check:"string_format",format:"includes",...k(t),includes:e})}function _n(e,t){return new Gs({check:"string_format",format:"starts_with",...k(t),prefix:e})}function bn(e,t){return new Ys({check:"string_format",format:"ends_with",...k(t),suffix:e})}function Lu(e,t,n){return new Xs({check:"property",property:e,schema:t,...k(n)})}function xn(e,t){return new Qs({check:"mime_type",mime:e,...k(t)})}function et(e){return new ec({check:"overwrite",tx:e})}function $n(e){return et(t=>t.normalize(e))}function wn(){return et(e=>e.trim())}function kn(){return et(e=>e.toLowerCase())}function Sn(){return et(e=>e.toUpperCase())}function In(e,t,n){return new e({type:"array",element:t,...k(n)})}function z0(e,t,n){return new e({type:"union",options:t,...k(n)})}function j0(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...k(i)})}function E0(e,t,n){return new e({type:"intersection",left:t,right:n})}function Du(e,t,n,i){let r=n instanceof U,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...k(o)})}function P0(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...k(i)})}function O0(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...k(i)})}function N0(e,t,n){return new e({type:"set",valueType:t,...k(n)})}function A0(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...k(n)})}function C0(e,t,n){return new e({type:"enum",entries:t,...k(n)})}function U0(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...k(n)})}function Zu(e,t){return new e({type:"file",...k(t)})}function R0(e,t){return new e({type:"transform",transform:t})}function L0(e,t){return new e({type:"optional",innerType:t})}function D0(e,t){return new e({type:"nullable",innerType:t})}function Z0(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():n}})}function B0(e,t,n){return new e({type:"nonoptional",innerType:t,...k(n)})}function M0(e,t){return new e({type:"success",innerType:t})}function F0(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function V0(e,t,n){return new e({type:"pipe",in:t,out:n})}function q0(e,t){return new e({type:"readonly",innerType:t})}function K0(e,t,n){return new e({type:"template_literal",parts:t,...k(n)})}function H0(e,t){return new e({type:"lazy",getter:t})}function W0(e,t){return new e({type:"promise",innerType:t})}function Bu(e,t,n){let i=k(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Mu(e,t,n){return new e({type:"custom",check:"custom",fn:t,...k(n)})}function Fu(e,t){let{case:n,error:i,truthy:r,falsy:o}=k(t),a=r??["true","1","yes","on","y","enabled"],s=o??["false","0","no","off","n","disabled"];n!=="sensitive"&&(a=a.map(x=>typeof x=="string"?x.toLowerCase():x),s=s.map(x=>typeof x=="string"?x.toLowerCase():x));let c=new Set(a),d=new Set(s),f=e.Pipe??dn,h=e.Boolean??cn,v=e.String??Ht,m=e.Transform??ln,p=new m({type:"transform",transform:(x,T)=>{let w=x;return n!=="sensitive"&&(w=w.toLowerCase()),c.has(w)?!0:d.has(w)?!1:(T.issues.push({code:"invalid_value",expected:"stringbool",values:[...c,...d],input:T.value,inst:p}),{})},error:i}),y=new f({type:"pipe",in:new v({type:"string",error:i}),out:p,error:i});return new f({type:"pipe",in:y,out:new h({type:"boolean",error:i}),error:i})}var so=class{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=(...i)=>{let r=this._def.input?Si(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=t(...r);return this._def.output?Si(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");let n=async(...i)=>{let r=this._def.input?await Ti(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");let o=await t(...r);return this._def.output?Ti(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){let n=this.constructor;return Array.isArray(t[0])?new n({type:"function",input:new Wt({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new n({type:"function",input:t[0],output:this._def.output})}output(t){let n=this.constructor;return new n({type:"function",input:this._def.input,output:t})}};function Vu(e){return new so({type:"function",input:Array.isArray(e?.input)?Du(Wt,e?.input):e?.input??In(un,br(vr)),output:e?.output??br(vr)})}var Tn=class{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Me,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var i;let r=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;let s={schema:{},count:1,cycle:void 0};this.seen.set(t,s),t._zod.toJSONSchema&&(s.schema=t._zod.toJSONSchema());let c={...n,schemaPath:[...n.schemaPath,t],path:n.path},d=t._zod.parent;if(d)s.ref=d,this.process(d,c),this.seen.get(d).isParent=!0;else{let v=s.schema;switch(r.type){case"string":{let m=v;m.type="string";let{minimum:p,maximum:y,format:b,patterns:x,contentEncoding:T}=t._zod.bag;if(typeof p=="number"&&(m.minLength=p),typeof y=="number"&&(m.maxLength=y),b&&(m.format=o[b]??b,m.format===""&&delete m.format),T&&(m.contentEncoding=T),x&&x.size>0){let w=[...x];w.length===1?m.pattern=w[0].source:w.length>1&&(s.schema.allOf=[...w.map(S=>({...this.target==="draft-7"?{type:"string"}:{},pattern:S.source}))])}break}case"number":{let m=v,{minimum:p,maximum:y,format:b,multipleOf:x,exclusiveMaximum:T,exclusiveMinimum:w}=t._zod.bag;typeof b=="string"&&b.includes("int")?m.type="integer":m.type="number",typeof w=="number"&&(m.exclusiveMinimum=w),typeof p=="number"&&(m.minimum=p,typeof w=="number"&&(w>=p?delete m.minimum:delete m.exclusiveMinimum)),typeof T=="number"&&(m.exclusiveMaximum=T),typeof y=="number"&&(m.maximum=y,typeof T=="number"&&(T<=y?delete m.maximum:delete m.exclusiveMaximum)),typeof x=="number"&&(m.multipleOf=x);break}case"boolean":{let m=v;m.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"undefined":{let m=v;m.type="null";break}case"null":{v.type="null";break}case"any":break;case"unknown":break;case"never":{v.not={};break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let m=v,{minimum:p,maximum:y}=t._zod.bag;typeof p=="number"&&(m.minItems=p),typeof y=="number"&&(m.maxItems=y),m.type="array",m.items=this.process(r.element,{...c,path:[...c.path,"items"]});break}case"object":{let m=v;m.type="object",m.properties={};let p=r.shape;for(let x in p)m.properties[x]=this.process(p[x],{...c,path:[...c.path,"properties",x]});let y=new Set(Object.keys(p)),b=new Set([...y].filter(x=>{let T=r.shape[x]._zod;return this.io==="input"?T.optin===void 0:T.optout===void 0}));b.size>0&&(m.required=Array.from(b)),r.catchall?._zod.def.type==="never"?m.additionalProperties=!1:r.catchall?r.catchall&&(m.additionalProperties=this.process(r.catchall,{...c,path:[...c.path,"additionalProperties"]})):this.io==="output"&&(m.additionalProperties=!1);break}case"union":{let m=v;m.anyOf=r.options.map((p,y)=>this.process(p,{...c,path:[...c.path,"anyOf",y]}));break}case"intersection":{let m=v,p=this.process(r.left,{...c,path:[...c.path,"allOf",0]}),y=this.process(r.right,{...c,path:[...c.path,"allOf",1]}),b=T=>"allOf"in T&&Object.keys(T).length===1,x=[...b(p)?p.allOf:[p],...b(y)?y.allOf:[y]];m.allOf=x;break}case"tuple":{let m=v;m.type="array";let p=r.items.map((x,T)=>this.process(x,{...c,path:[...c.path,"prefixItems",T]}));if(this.target==="draft-2020-12"?m.prefixItems=p:m.items=p,r.rest){let x=this.process(r.rest,{...c,path:[...c.path,"items"]});this.target==="draft-2020-12"?m.items=x:m.additionalItems=x}r.rest&&(m.items=this.process(r.rest,{...c,path:[...c.path,"items"]}));let{minimum:y,maximum:b}=t._zod.bag;typeof y=="number"&&(m.minItems=y),typeof b=="number"&&(m.maxItems=b);break}case"record":{let m=v;m.type="object",m.propertyNames=this.process(r.keyType,{...c,path:[...c.path,"propertyNames"]}),m.additionalProperties=this.process(r.valueType,{...c,path:[...c.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let m=v,p=Gr(r.entries);p.every(y=>typeof y=="number")&&(m.type="number"),p.every(y=>typeof y=="string")&&(m.type="string"),m.enum=p;break}case"literal":{let m=v,p=[];for(let y of r.values)if(y===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof y=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");p.push(Number(y))}else p.push(y);if(p.length!==0)if(p.length===1){let y=p[0];m.type=y===null?"null":typeof y,m.const=y}else p.every(y=>typeof y=="number")&&(m.type="number"),p.every(y=>typeof y=="string")&&(m.type="string"),p.every(y=>typeof y=="boolean")&&(m.type="string"),p.every(y=>y===null)&&(m.type="null"),m.enum=p;break}case"file":{let m=v,p={type:"string",format:"binary",contentEncoding:"binary"},{minimum:y,maximum:b,mime:x}=t._zod.bag;y!==void 0&&(p.minLength=y),b!==void 0&&(p.maxLength=b),x?x.length===1?(p.contentMediaType=x[0],Object.assign(m,p)):m.anyOf=x.map(T=>({...p,contentMediaType:T})):Object.assign(m,p);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let m=this.process(r.innerType,c);v.anyOf=[m,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,c),s.ref=r.innerType;break}case"success":{let m=v;m.type="boolean";break}case"default":{this.process(r.innerType,c),s.ref=r.innerType,v.default=r.defaultValue;break}case"prefault":{this.process(r.innerType,c),s.ref=r.innerType,this.io==="input"&&(v._prefault=r.defaultValue);break}case"catch":{this.process(r.innerType,c),s.ref=r.innerType;let m;try{m=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}v.default=m;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let m=v,p=t._zod.pattern;if(!p)throw new Error("Pattern not found in template literal");m.type="string",m.pattern=p.source;break}case"pipe":{let m=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(m,c),s.ref=m;break}case"readonly":{this.process(r.innerType,c),s.ref=r.innerType,v.readOnly=!0;break}case"promise":{this.process(r.innerType,c),s.ref=r.innerType;break}case"optional":{this.process(r.innerType,c),s.ref=r.innerType;break}case"lazy":{let m=t._zod.innerType;this.process(m,c),s.ref=m;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}let f=this.metadataRegistry.get(t);return f&&Object.assign(s.schema,f),this.io==="input"&&re(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,n){let i={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=f=>{let h=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let y=i.external.registry.get(f[0])?.id;if(y)return{ref:i.external.uri(y)};let b=f[1].defId??f[1].schema.id??`schema${this.counter++}`;return f[1].defId=b,{defId:b,ref:`${i.external.uri("__shared")}#/${h}/${b}`}}if(f[1]===r)return{ref:"#"};let m=`#/${h}/`,p=f[1].schema.id??`__schema${this.counter++}`;return{defId:p,ref:m+p}},a=f=>{if(f[1].schema.$ref)return;let h=f[1],{ref:v,defId:m}=o(f);h.def={...h.schema},m&&(h.defId=m);let p=h.schema;for(let y in p)delete p[y];p.$ref=v};for(let f of this.seen.entries()){let h=f[1];if(t===f[0]){a(f);continue}if(i.external){let m=i.external.registry.get(f[0])?.id;if(t!==f[0]&&m){a(f);continue}}if(this.metadataRegistry.get(f[0])?.id){a(f);continue}if(h.cycle){if(i.cycles==="throw")throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
64
64
|
|
|
65
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);i.cycles==="ref"&&a(f);continue}if(h.count>1&&i.reused==="ref"){a(f);continue}}let s=(f,h)=>{let v=this.seen.get(f),m=v.def??v.schema,p={...m};if(v.ref===null)return;let y=v.ref;if(v.ref=null,y){s(y,h);let b=this.seen.get(y).schema;b.$ref&&h.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(b)):(Object.assign(m,b),Object.assign(m,p))}v.isParent||this.override({zodSchema:f,jsonSchema:m})};for(let f of[...this.seen.entries()].reverse())s(f[0],{target:this.target});let c={};this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),Object.assign(c,r.def);let d=i.external?.defs??{};for(let f of this.seen.entries()){let h=f[1];h.def&&h.defId&&(d[h.defId]=h.def)}!i.external&&Object.keys(d).length>0&&(this.target==="draft-2020-12"?c.$defs=d:c.definitions=d);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}};function qu(e,t){if(e instanceof _r){let i=new Tn(t),r={};for(let s of e._idmap.entries()){let[c,d]=s;i.process(d)}let o={},a={registry:e,uri:t?.uri||(s=>s),defs:r};for(let s of e._idmap.entries()){let[c,d]=s;o[c]=i.emit(d,{...t,external:a})}if(Object.keys(r).length>0){let s=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:r}}return{schemas:o}}let n=new Tn(t);return n.process(e),n.emit(e,t)}function re(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return re(r.element,n);case"object":{for(let o in r.shape)if(re(r.shape[o],n))return!0;return!1}case"union":{for(let o of r.options)if(re(o,n))return!0;return!1}case"intersection":return re(r.left,n)||re(r.right,n);case"tuple":{for(let o of r.items)if(re(o,n))return!0;return!!(r.rest&&re(r.rest,n))}case"record":return re(r.keyType,n)||re(r.valueType,n);case"map":return re(r.keyType,n)||re(r.valueType,n);case"set":return re(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return re(r.innerType,n);case"lazy":return re(r.getter(),n);case"default":return re(r.innerType,n);case"prefault":return re(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return re(r.in,n)||re(r.out,n);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${r.type}`)}var Jm={};var po={};nt(po,{ZodISODate:()=>uo,ZodISODateTime:()=>co,ZodISODuration:()=>fo,ZodISOTime:()=>lo,date:()=>Hu,datetime:()=>Ku,duration:()=>Ju,time:()=>Wu});var co=g("ZodISODateTime",(e,t)=>{mc.init(e,t),J.init(e,t)});function Ku(e){return cu(co,e)}var uo=g("ZodISODate",(e,t)=>{hc.init(e,t),J.init(e,t)});function Hu(e){return uu(uo,e)}var lo=g("ZodISOTime",(e,t)=>{gc.init(e,t),J.init(e,t)});function Wu(e){return lu(lo,e)}var fo=g("ZodISODuration",(e,t)=>{yc.init(e,t),J.init(e,t)});function Ju(e){return du(fo,e)}var Ym=(e,t)=>{nn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>an(e,n)},flatten:{value:n=>on(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},J0=g("ZodError",Ym),kr=g("ZodError",Ym,{Parent:Error});var Gu=ki(kr),Yu=Ii(kr),Xu=zi(kr),Qu=ji(kr);var Z=g("ZodType",(e,t)=>(U.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>ve(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>Gu(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Xu(e,n,i),e.parseAsync=async(n,i)=>Yu(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Qu(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=>e.check(Rh(n,i)),e.superRefine=n=>e.check(Lh(n)),e.overwrite=n=>e.check(et(n)),e.optional=()=>go(e),e.nullable=()=>yo(e),e.nullish=()=>go(yo(e)),e.nonoptional=n=>Sh(e,n),e.array=()=>xl(e),e.or=n=>$o([e,n]),e.and=n=>dh(e,n),e.transform=n=>vo(e,Sl(n)),e.default=n=>$h(e,n),e.prefault=n=>kh(e,n),e.catch=n=>zh(e,n),e.pipe=n=>vo(e,n),e.readonly=()=>Eh(e),e.describe=n=>{let i=e.clone();return Me.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Me.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Me.get(e);let i=e.clone();return Me.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),rl=g("_ZodString",(e,t)=>{Ht.init(e,t),Z.init(e,t);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(hn(...i)),e.includes=(...i)=>e.check(vn(...i)),e.startsWith=(...i)=>e.check(_n(...i)),e.endsWith=(...i)=>e.check(bn(...i)),e.min=(...i)=>e.check(yt(...i)),e.max=(...i)=>e.check($r(...i)),e.length=(...i)=>e.check(wr(...i)),e.nonempty=(...i)=>e.check(yt(1,...i)),e.lowercase=i=>e.check(gn(i)),e.uppercase=i=>e.check(yn(i)),e.trim=()=>e.check(wn()),e.normalize=(...i)=>e.check($n(...i)),e.toLowerCase=()=>e.check(kn()),e.toUpperCase=()=>e.check(Sn())}),jn=g("ZodString",(e,t)=>{Ht.init(e,t),rl.init(e,t),e.email=n=>e.check(Zi(nl,n)),e.url=n=>e.check(qi(il,n)),e.jwt=n=>e.check(ao(_l,n)),e.emoji=n=>e.check(Ki(ol,n)),e.guid=n=>e.check(pn(mo,n)),e.uuid=n=>e.check(Bi(rt,n)),e.uuidv4=n=>e.check(Mi(rt,n)),e.uuidv6=n=>e.check(Fi(rt,n)),e.uuidv7=n=>e.check(Vi(rt,n)),e.nanoid=n=>e.check(Hi(al,n)),e.guid=n=>e.check(pn(mo,n)),e.cuid=n=>e.check(Wi(sl,n)),e.cuid2=n=>e.check(Ji(cl,n)),e.ulid=n=>e.check(Gi(ul,n)),e.base64=n=>e.check(no(gl,n)),e.base64url=n=>e.check(io(yl,n)),e.xid=n=>e.check(Yi(ll,n)),e.ksuid=n=>e.check(Xi(dl,n)),e.ipv4=n=>e.check(Qi(fl,n)),e.ipv6=n=>e.check(eo(pl,n)),e.cidrv4=n=>e.check(to(ml,n)),e.cidrv6=n=>e.check(ro(hl,n)),e.e164=n=>e.check(oo(vl,n)),e.datetime=n=>e.check(Ku(n)),e.date=n=>e.check(Hu(n)),e.time=n=>e.check(Wu(n)),e.duration=n=>e.check(Ju(n))});function el(e){return au(jn,e)}var J=g("ZodStringFormat",(e,t)=>{W.init(e,t),rl.init(e,t)}),nl=g("ZodEmail",(e,t)=>{oc.init(e,t),J.init(e,t)});function Y0(e){return Zi(nl,e)}var mo=g("ZodGUID",(e,t)=>{nc.init(e,t),J.init(e,t)});function X0(e){return pn(mo,e)}var rt=g("ZodUUID",(e,t)=>{ic.init(e,t),J.init(e,t)});function Q0(e){return Bi(rt,e)}function e$(e){return Mi(rt,e)}function t$(e){return Fi(rt,e)}function r$(e){return Vi(rt,e)}var il=g("ZodURL",(e,t)=>{ac.init(e,t),J.init(e,t)});function n$(e){return qi(il,e)}var ol=g("ZodEmoji",(e,t)=>{sc.init(e,t),J.init(e,t)});function i$(e){return Ki(ol,e)}var al=g("ZodNanoID",(e,t)=>{cc.init(e,t),J.init(e,t)});function o$(e){return Hi(al,e)}var sl=g("ZodCUID",(e,t)=>{uc.init(e,t),J.init(e,t)});function a$(e){return Wi(sl,e)}var cl=g("ZodCUID2",(e,t)=>{lc.init(e,t),J.init(e,t)});function s$(e){return Ji(cl,e)}var ul=g("ZodULID",(e,t)=>{dc.init(e,t),J.init(e,t)});function c$(e){return Gi(ul,e)}var ll=g("ZodXID",(e,t)=>{fc.init(e,t),J.init(e,t)});function u$(e){return Yi(ll,e)}var dl=g("ZodKSUID",(e,t)=>{pc.init(e,t),J.init(e,t)});function l$(e){return Xi(dl,e)}var fl=g("ZodIPv4",(e,t)=>{vc.init(e,t),J.init(e,t)});function d$(e){return Qi(fl,e)}var pl=g("ZodIPv6",(e,t)=>{_c.init(e,t),J.init(e,t)});function f$(e){return eo(pl,e)}var ml=g("ZodCIDRv4",(e,t)=>{bc.init(e,t),J.init(e,t)});function p$(e){return to(ml,e)}var hl=g("ZodCIDRv6",(e,t)=>{xc.init(e,t),J.init(e,t)});function m$(e){return ro(hl,e)}var gl=g("ZodBase64",(e,t)=>{wc.init(e,t),J.init(e,t)});function h$(e){return no(gl,e)}var yl=g("ZodBase64URL",(e,t)=>{kc.init(e,t),J.init(e,t)});function g$(e){return io(yl,e)}var vl=g("ZodE164",(e,t)=>{Sc.init(e,t),J.init(e,t)});function y$(e){return oo(vl,e)}var _l=g("ZodJWT",(e,t)=>{Ic.init(e,t),J.init(e,t)});function v$(e){return ao(_l,e)}var Pn=g("ZodNumber",(e,t)=>{Ai.init(e,t),Z.init(e,t),e.gt=(i,r)=>e.check(Qe(i,r)),e.gte=(i,r)=>e.check(ge(i,r)),e.min=(i,r)=>e.check(ge(i,r)),e.lt=(i,r)=>e.check(Xe(i,r)),e.lte=(i,r)=>e.check(Ie(i,r)),e.max=(i,r)=>e.check(Ie(i,r)),e.int=i=>e.check(tl(i)),e.safe=i=>e.check(tl(i)),e.positive=i=>e.check(Qe(0,i)),e.nonnegative=i=>e.check(ge(0,i)),e.negative=i=>e.check(Xe(0,i)),e.nonpositive=i=>e.check(Ie(0,i)),e.multipleOf=(i,r)=>e.check(Jt(i,r)),e.step=(i,r)=>e.check(Jt(i,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Xm(e){return fu(Pn,e)}var Sr=g("ZodNumberFormat",(e,t)=>{Tc.init(e,t),Pn.init(e,t)});function tl(e){return mu(Sr,e)}function _$(e){return hu(Sr,e)}function b$(e){return gu(Sr,e)}function x$(e){return yu(Sr,e)}function $$(e){return vu(Sr,e)}var En=g("ZodBoolean",(e,t)=>{cn.init(e,t),Z.init(e,t)});function Qm(e){return _u(En,e)}var On=g("ZodBigInt",(e,t)=>{Ui.init(e,t),Z.init(e,t),e.gte=(i,r)=>e.check(ge(i,r)),e.min=(i,r)=>e.check(ge(i,r)),e.gt=(i,r)=>e.check(Qe(i,r)),e.gte=(i,r)=>e.check(ge(i,r)),e.min=(i,r)=>e.check(ge(i,r)),e.lt=(i,r)=>e.check(Xe(i,r)),e.lte=(i,r)=>e.check(Ie(i,r)),e.max=(i,r)=>e.check(Ie(i,r)),e.positive=i=>e.check(Qe(BigInt(0),i)),e.negative=i=>e.check(Xe(BigInt(0),i)),e.nonpositive=i=>e.check(Ie(BigInt(0),i)),e.nonnegative=i=>e.check(ge(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Jt(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function w$(e){return xu(On,e)}var bl=g("ZodBigIntFormat",(e,t)=>{zc.init(e,t),On.init(e,t)});function k$(e){return wu(bl,e)}function S$(e){return ku(bl,e)}var eh=g("ZodSymbol",(e,t)=>{jc.init(e,t),Z.init(e,t)});function I$(e){return Su(eh,e)}var th=g("ZodUndefined",(e,t)=>{Pc.init(e,t),Z.init(e,t)});function T$(e){return Iu(th,e)}var rh=g("ZodNull",(e,t)=>{Ec.init(e,t),Z.init(e,t)});function nh(e){return Tu(rh,e)}var ih=g("ZodAny",(e,t)=>{Oc.init(e,t),Z.init(e,t)});function z$(){return zu(ih)}var oh=g("ZodUnknown",(e,t)=>{vr.init(e,t),Z.init(e,t)});function ho(){return br(oh)}var ah=g("ZodNever",(e,t)=>{Nc.init(e,t),Z.init(e,t)});function _o(e){return ju(ah,e)}var sh=g("ZodVoid",(e,t)=>{Cc.init(e,t),Z.init(e,t)});function j$(e){return Pu(sh,e)}var bo=g("ZodDate",(e,t)=>{Ac.init(e,t),Z.init(e,t),e.min=(i,r)=>e.check(ge(i,r)),e.max=(i,r)=>e.check(Ie(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function P$(e){return Eu(bo,e)}var ch=g("ZodArray",(e,t)=>{un.init(e,t),Z.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(yt(n,i)),e.nonempty=n=>e.check(yt(1,n)),e.max=(n,i)=>e.check($r(n,i)),e.length=(n,i)=>e.check(wr(n,i)),e.unwrap=()=>e.element});function xl(e,t){return In(ch,e,t)}function E$(e){let t=e._zod.def.shape;return vh(Object.keys(t))}var xo=g("ZodObject",(e,t)=>{Uc.init(e,t),Z.init(e,t),I.defineLazy(e,"shape",()=>Object.fromEntries(Object.entries(e._zod.def.shape))),e.keyof=()=>gh(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ho()}),e.loose=()=>e.clone({...e._zod.def,catchall:ho()}),e.strict=()=>e.clone({...e._zod.def,catchall:_o()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>I.extend(e,n),e.merge=n=>I.merge(e,n),e.pick=n=>I.pick(e,n),e.omit=n=>I.omit(e,n),e.partial=(...n)=>I.partial(Il,e,n[0]),e.required=(...n)=>I.required(Tl,e,n[0])});function O$(e,t){let n={type:"object",get shape(){return I.assignProp(this,"shape",{...e}),this.shape},...I.normalizeParams(t)};return new xo(n)}function N$(e,t){return new xo({type:"object",get shape(){return I.assignProp(this,"shape",{...e}),this.shape},catchall:_o(),...I.normalizeParams(t)})}function C$(e,t){return new xo({type:"object",get shape(){return I.assignProp(this,"shape",{...e}),this.shape},catchall:ho(),...I.normalizeParams(t)})}var $l=g("ZodUnion",(e,t)=>{Ri.init(e,t),Z.init(e,t),e.options=t.options});function $o(e,t){return new $l({type:"union",options:e,...I.normalizeParams(t)})}var uh=g("ZodDiscriminatedUnion",(e,t)=>{$l.init(e,t),Rc.init(e,t)});function A$(e,t,n){return new uh({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var lh=g("ZodIntersection",(e,t)=>{Lc.init(e,t),Z.init(e,t)});function dh(e,t){return new lh({type:"intersection",left:e,right:t})}var fh=g("ZodTuple",(e,t)=>{Wt.init(e,t),Z.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function U$(e,t,n){let i=t instanceof U,r=i?n:t,o=i?t:null;return new fh({type:"tuple",items:e,rest:o,...I.normalizeParams(r)})}var wl=g("ZodRecord",(e,t)=>{Dc.init(e,t),Z.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function ph(e,t,n){return new wl({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function R$(e,t,n){return new wl({type:"record",keyType:$o([e,_o()]),valueType:t,...I.normalizeParams(n)})}var mh=g("ZodMap",(e,t)=>{Zc.init(e,t),Z.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function L$(e,t,n){return new mh({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var hh=g("ZodSet",(e,t)=>{Bc.init(e,t),Z.init(e,t),e.min=(...n)=>e.check(Gt(...n)),e.nonempty=n=>e.check(Gt(1,n)),e.max=(...n)=>e.check(xr(...n)),e.size=(...n)=>e.check(mn(...n))});function D$(e,t){return new hh({type:"set",valueType:e,...I.normalizeParams(t)})}var zn=g("ZodEnum",(e,t)=>{Mc.init(e,t),Z.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new zn({...t,checks:[],...I.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.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 zn({...t,checks:[],...I.normalizeParams(r),entries:o})}});function gh(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zn({type:"enum",entries:n,...I.normalizeParams(t)})}function Z$(e,t){return new zn({type:"enum",entries:e,...I.normalizeParams(t)})}var yh=g("ZodLiteral",(e,t)=>{Fc.init(e,t),Z.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function vh(e,t){return new yh({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var _h=g("ZodFile",(e,t)=>{Vc.init(e,t),Z.init(e,t),e.min=(n,i)=>e.check(Gt(n,i)),e.max=(n,i)=>e.check(xr(n,i)),e.mime=(n,i)=>e.check(xn(Array.isArray(n)?n:[n],i))});function B$(e){return Zu(_h,e)}var kl=g("ZodTransform",(e,t)=>{ln.init(e,t),Z.init(e,t),e._zod.parse=(n,i)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(I.issue(o,n.value,t));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),a.continue??(a.continue=!0),n.issues.push(I.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Sl(e){return new kl({type:"transform",transform:e})}var Il=g("ZodOptional",(e,t)=>{qc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function go(e){return new Il({type:"optional",innerType:e})}var bh=g("ZodNullable",(e,t)=>{Kc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yo(e){return new bh({type:"nullable",innerType:e})}function M$(e){return go(yo(e))}var xh=g("ZodDefault",(e,t)=>{Hc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $h(e,t){return new xh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var wh=g("ZodPrefault",(e,t)=>{Wc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function kh(e,t){return new wh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var Tl=g("ZodNonOptional",(e,t)=>{Jc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Sh(e,t){return new Tl({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var Ih=g("ZodSuccess",(e,t)=>{Gc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function F$(e){return new Ih({type:"success",innerType:e})}var Th=g("ZodCatch",(e,t)=>{Yc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zh(e,t){return new Th({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var jh=g("ZodNaN",(e,t)=>{Xc.init(e,t),Z.init(e,t)});function V$(e){return Nu(jh,e)}var zl=g("ZodPipe",(e,t)=>{dn.init(e,t),Z.init(e,t),e.in=t.in,e.out=t.out});function vo(e,t){return new zl({type:"pipe",in:e,out:t})}var Ph=g("ZodReadonly",(e,t)=>{Qc.init(e,t),Z.init(e,t)});function Eh(e){return new Ph({type:"readonly",innerType:e})}var Oh=g("ZodTemplateLiteral",(e,t)=>{eu.init(e,t),Z.init(e,t)});function q$(e,t){return new Oh({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Nh=g("ZodLazy",(e,t)=>{ru.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.getter()});function Ch(e){return new Nh({type:"lazy",getter:e})}var Ah=g("ZodPromise",(e,t)=>{tu.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function K$(e){return new Ah({type:"promise",innerType:e})}var wo=g("ZodCustom",(e,t)=>{nu.init(e,t),Z.init(e,t)});function Uh(e,t){let n=new G({check:"custom",...I.normalizeParams(t)});return n._zod.check=e,n}function H$(e,t){return Bu(wo,e??(()=>!0),t)}function Rh(e,t={}){return Mu(wo,e,t)}function Lh(e,t){let n=Uh(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(I.issue(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(I.issue(o))}},e(i.value,i)),t);return n}function W$(e,t={error:`Input not instance of ${e.name}`}){let n=new wo({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...I.normalizeParams(t)});return n._zod.bag.Class=e,n}var J$=(...e)=>Fu({Pipe:zl,Boolean:En,String:jn,Transform:kl},...e);function G$(e){let t=Ch(()=>$o([el(e),Xm(),Qm(),nh(),xl(t),ph(el(),t)]));return t}function Y$(e,t){return vo(Sl(e),t)}var X$={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"},Q$=Object.freeze({status:"aborted"}),ew=Q$;function tw(e){Y({customError:e})}function rw(){return Y().customError}var jl={};nt(jl,{bigint:()=>aw,boolean:()=>ow,date:()=>sw,number:()=>iw,string:()=>nw});function nw(e){return su(jn,e)}function iw(e){return pu(Pn,e)}function ow(e){return bu(En,e)}function aw(e){return $u(On,e)}function sw(e){return Ou(bo,e)}Y(Li());var Pl={name:"RSA-OAEP",hash:"SHA-256"},ko={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},Zh="spki",Bh="pkcs8",So={name:"AES-GCM",length:256},Nn=12,Cn=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n},El=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),n="",i=8192;for(let r=0;r<t.length;r+=i)n+=String.fromCharCode(...t.subarray(r,r+i));return btoa(n)},Ol=async(e,t)=>JSON.parse(new TextDecoder().decode(await crypto.subtle.decrypt(Pl,await Io(e,"decrypt"),Cn(t)))),cw=512,Ir=new Map,Mh=(e,t)=>{let n=Ir.get(e);if(n)return n;if(Ir.size>=cw){let r=Ir.keys().next().value;r!==void 0&&Ir.delete(r)}let i=t().catch(r=>{throw Ir.delete(e),r});return Ir.set(e,i),i},Io=(e,t)=>Mh(`${t}:${e}`,()=>crypto.subtle.importKey(t==="decrypt"||t==="sign"?Bh:Zh,Cn(e),t==="decrypt"||t==="encrypt"?Pl:ko,!1,[t])),Nl=(e,t)=>Mh(`aes:${t.join(",")}:${e}`,()=>crypto.subtle.importKey("raw",Cn(e),So,!1,t));var Dh=async(e,t)=>El(await crypto.subtle.exportKey(t,e)),uw=async({publicKey:e,privateKey:t})=>({publicKey:await Dh(e,Zh),privateKey:await Dh(t,Bh)}),Cl=async e=>uw(await crypto.subtle.generateKey({...e==="encrypt"?Pl:ko,modulusLength:2048,publicExponent:new Uint8Array([1,0,1])},!0,e==="encrypt"?["encrypt","decrypt"]:["sign","verify"])),An=e=>typeof e=="string"&&/^[A-Za-z0-9+/]+={0,2}$/.test(e)&&e.length%4===0&&e.length>=64?Io(e,"sign").then(()=>!0,()=>!1):Promise.resolve(!1),To=async(e,t)=>El(await crypto.subtle.sign(ko,await Io(e,"sign"),new TextEncoder().encode(t))),Fh=async(e,t,n)=>crypto.subtle.verify(ko,await Io(t,"verify"),Cn(e),new TextEncoder().encode(n)),Vh=async(e,t)=>{let n=crypto.getRandomValues(new Uint8Array(Nn)),i=await Nl(e,["encrypt"]),r=new TextEncoder().encode(JSON.stringify(t)),o=new Uint8Array(await crypto.subtle.encrypt({...So,iv:n},i,r)),a=new Uint8Array(n.length+o.length);return a.set(n,0),a.set(o,n.length),El(a)},qh=async(e,t)=>{let n=Cn(t),i=n.subarray(0,Nn),r=n.subarray(Nn),o=await Nl(e,["decrypt"]),a=await crypto.subtle.decrypt({...So,iv:i},o,r);return JSON.parse(new TextDecoder().decode(a))};var Kh=async(e,t)=>{let n=new Uint8Array(t),i=n.subarray(0,Nn),r=n.subarray(Nn),o=await Nl(e,["decrypt"]);return crypto.subtle.decrypt({...So,iv:i},o,r)},Al=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");var Un=async(e,t,n)=>{let{nonce:i}=await Hh(e.publicSignKey),r=await Wh({action:t,publicSignKey:e.publicSignKey,payload:n,nonce:i});return{payload:n,publicSignKey:e.publicSignKey,nonce:i,authToken:await To(e.privateSignKey,r)}};var zo="https://api.aliceandbot.com";var Jh=Math.ceil(18e3)+2e3,Gh=e=>{if(e.length>4e3)throw new Error("Message exceeds maximum length of 4000 characters")},lw={image:25*1048576,audio:25*1048576,video:100*1048576,file:25*1048576};var dw=new Map,fw=new Map,Rn=e=>(e?.publicSignKey&&dw.set(e.publicSignKey,e),e);var Ul=(e,t)=>{Rn(t),e&&fw.set(e,t)};var jo=u.object({nonce:u.string(),authToken:u.string()}),Rl=u.object({publicSignKey:u.string(),nonce:u.string(),authToken:u.string()}),pw=e=>u.object({payload:e,publicSignKey:u.string(),nonce:u.string(),authToken:u.string()}),ne=(e,t)=>Q({authRequired:!1,input:pw(e),output:t}),mw={issueNonce:Q({authRequired:!1,input:u.object({publicSignKey:u.string()}),output:u.object({nonce:u.string()})}),aliasToPublicSignKey:Q({authRequired:!1,input:u.object({alias:u.string()}),output:u.union([u.object({publicSignKey:u.string()}),u.object({error:u.enum(["no-such-alias"])})])}),resolveHandle:Q({authRequired:!1,input:u.object({handle:u.string()}),output:u.union([u.object({publicSignKey:u.string()}),u.object({error:u.enum(["no-such-handle"])})])}),publicSignKeyToAlias:Q({authRequired:!1,input:u.object({publicSignKey:u.string()}),output:u.union([u.object({alias:u.string()}),u.object({error:u.enum(["no-such-identity","no-alias"])})])}),setAlias:ne(u.object({alias:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["alias-taken","invalid-alias","not-found","invalid-auth"])})])),setName:ne(u.object({name:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","invalid-name"])})])),setAvatar:ne(u.object({avatar:u.string().optional()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","invalid-avatar"])})])),setPriceTag:ne(u.object({priceTag:u.number().nonnegative().finite().optional()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth"])})])),getBalanceAndTransactions:ne(u.object({}),u.union([u.object({balance:u.number(),transactions:u.array(u.object({amount:u.number(),type:u.string(),timestamp:u.number(),status:u.string().optional(),walletAddress:u.string().optional()}))}),u.object({error:u.enum(["not-found","invalid-auth"])})])),requestPayout:ne(u.object({amount:u.number().positive().finite(),walletAddress:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","insufficient-balance"])})])),prepareCryptoPayment:ne(u.object({amount:u.number().positive().finite()}),u.union([u.object({address:u.string(),btcAmount:u.number(),usdAmount:u.number(),qrUrl:u.string()}),u.object({error:u.enum(["not-found","invalid-auth","missing-secret"])})])),checkCryptoPayment:ne(u.object({paymentAddress:u.string()}),u.union([u.object({success:u.literal(!0),message:u.string()}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","not-paid","already-claimed","missing-secret"])})])),conversationKey:Q({authRequired:!1,input:u.object({conversationId:u.string(),publicSignKey:u.string(),auth:jo.optional()}),output:u.union([u.object({conversationKey:u.string()}),u.object({error:u.literal("no-such-key")})])}),createConversation:ne(u.object({publicSignKeyToEncryptedSymmetricKey:u.record(u.string(),u.string()),title:u.string(),maxTotalCost:u.number().nonnegative().finite().optional()}),u.union([u.object({conversationId:u.string()}),u.object({error:u.enum(["invalid-participants","must-own-an-identity","insufficient-balance","price-changed","invalid-auth"])})])),createAccount:Q({authRequired:!1,input:u.object({}),output:u.object({success:u.literal(!0),accountId:u.string(),accessToken:u.string()})}),createAnonymousIdentity:Q({authRequired:!1,input:u.object({name:u.string().max(100),publicSignKey:u.string().min(1).max(4096),publicEncryptKey:u.string().min(1).max(4096),alias:u.string().max(64).optional()}),output:u.object({})}),createIdentity:Q({authRequired:!0,input:u.object({publicSignKey:u.string().min(1).max(4096),publicEncryptKey:u.string().min(1).max(4096)}),output:u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.string()})])}),sendMessage:Q({authRequired:!1,input:u.object({encryptedMessage:u.string().max(Jh),conversation:u.string(),silent:u.boolean().optional(),senderPublicSignKey:u.string().optional(),auth:jo.optional()}),output:u.object({messageId:u.string()})}),sendTyping:Q({authRequired:!1,input:u.object({conversation:u.string(),isTyping:u.boolean(),publicSignKey:u.string(),auth:jo.optional()}),output:u.object({success:u.literal(!0)})}),setWebhook:Q({authRequired:!1,input:u.object({url:u.string(),publicSignKey:u.string(),auth:jo.optional()}),output:u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["identity-does-not-exist","invalid-auth","invalid-url"])})])}),getProfile:Q({authRequired:!1,input:u.object({publicSignKey:u.string()}),output:u.object({profile:u.union([u.object({name:u.string().optional(),avatar:u.string().optional(),alias:u.string().optional(),priceTag:u.number().optional()}),u.null()])})}),getConversations:Q({authRequired:!1,input:u.object({publicSignKeys:u.array(u.string()),auth:Rl.optional()}),output:u.object({conversations:u.array(u.object({id:u.string(),title:u.string(),participants:u.array(u.object({publicSignKey:u.string()}))}))})}),getConversationInfo:Q({authRequired:!1,input:u.object({conversationId:u.string(),auth:Rl.optional()}),output:u.union([u.object({conversationInfo:u.object({participants:u.array(u.object({publicSignKey:u.string(),name:u.string().optional(),avatar:u.string().optional(),alias:u.string().optional()})),isPartial:u.boolean(),hasCanvas:u.boolean()})}),u.object({error:u.literal("not-found")})])}),getVapidPublicKey:Q({authRequired:!1,input:u.object({}),output:u.object({publicKey:u.string()})}),getTurnCredentials:ne(u.object({}),u.union([u.object({urls:u.string(),username:u.string(),credential:u.string(),ttl:u.number()}),u.object({error:u.enum(["invalid-auth","missing-secret"])})])),registerPushSubscription:ne(u.object({subscription:u.object({endpoint:u.string(),expirationTime:u.number().nullable().optional().transform(e=>e??null),keys:u.object({p256dh:u.string(),auth:u.string()})}),conversationId:u.string().optional()}),u.object({success:u.literal(!0)})),unregisterPushSubscription:ne(u.object({endpoint:u.string()}),u.object({success:u.literal(!0)})),dismissNotifications:ne(u.object({conversationId:u.string(),excludeEndpoint:u.string().optional()}),u.object({success:u.literal(!0)})),heartbeat:ne(u.object({}),u.object({success:u.literal(!0)})),storeTransferPayload:Q({authRequired:!1,input:u.object({encryptedPayload:u.string().max(32768)}),output:u.object({relayId:u.string()})}),retrieveTransferPayload:Q({authRequired:!1,input:u.object({relayId:u.string()}),output:u.union([u.object({encryptedPayload:u.string()}),u.object({error:u.enum(["not-found"])})])}),getUploadUrl:ne(u.object({conversationId:u.string(),contentHash:u.string(),fileName:u.string(),contentType:u.string()}),u.union([u.object({uploadUrl:u.string(),fileUrl:u.string(),maxSize:u.number()}),u.object({error:u.enum(["not-participant","invalid-conversation"])})])),renameConversation:ne(u.object({conversationId:u.string(),title:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","not-admin","invalid-title"])})])),getMessages:ne(u.object({conversationId:u.string(),limit:u.number().int().min(0).max(200).optional(),before:u.number().optional()}),u.union([u.object({messages:u.array(u.object({id:u.string(),payload:u.unknown(),timestamp:u.number()})),hasMore:u.boolean()}),u.object({error:u.enum(["not-participant","invalid-auth"])})])),saveCanvas:ne(u.object({conversationId:u.string(),encrypted:u.string(),expectedVersion:u.number().int().min(0)}),u.union([u.object({ok:u.literal(!0),version:u.number()}),u.object({ok:u.literal(!1),error:u.enum(["invalid-auth","not-participant","conflict"]),currentEncrypted:u.string().optional(),currentVersion:u.number().optional()})])),mintInstantToken:ne(u.object({includeConversations:u.boolean().optional(),conversationId:u.string().optional()}),u.union([u.object({token:u.string(),instantEmail:u.string(),conversations:u.array(u.object({id:u.string(),title:u.string(),updatedAt:u.number().optional(),participants:u.array(u.object({publicSignKey:u.string(),name:u.string().optional(),avatar:u.string().optional()})),archivedBy:u.array(u.object({publicSignKey:u.string()})).optional()})).optional(),conversationBootstrap:u.object({conversationId:u.string(),hasAccess:u.boolean(),title:u.string().optional(),participants:u.array(u.object({publicSignKey:u.string(),name:u.string().optional(),avatar:u.string().optional()})).optional(),encryptedKey:u.string().optional(),messages:u.array(u.object({id:u.string(),payload:u.unknown(),timestamp:u.number()})),hasMore:u.boolean()}).optional()}),u.object({error:u.enum(["invalid-auth","not-found"])})])),getCanvasRow:Q({authRequired:!1,input:u.object({conversationId:u.string(),auth:Rl.optional()}),output:u.object({row:u.object({id:u.string(),encrypted:u.string(),version:u.number()}).nullable()})})},Tr=Mp(Bp(zo),mw),Yh=async({url:e,credentials:t})=>{let n=await An(t.privateSignKey)?await Un(t,"setWebhook",{url:e}):void 0;return Tr({endpoint:"setWebhook",payload:{url:e,publicSignKey:t.publicSignKey,...n?{auth:{nonce:n.nonce,authToken:n.authToken}}:{}}})};var Hh=e=>Tr({endpoint:"issueNonce",payload:{publicSignKey:e}});var Wh=async e=>{let t=mr({endpoint:e.action,params:{publicSignKey:e.publicSignKey,payload:e.payload},nonce:e.nonce}),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t));return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")};var Xh="/chat";var hw=12,Qh=async e=>{let t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Al(btoa(String.fromCharCode(...new Uint8Array(t)))).slice(0,hw)};var gw="MCowBQYDK2VwAyEABJDWi/dcXSzFvi4MSthH2bCoU5009eCw9rNtw2NL8sU=",yw=10*60*1e3,eg={name:"Ed25519"},tg=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0));var vw=({messageId:e,conversationId:t,timestamp:n,payload:i})=>"alice-webhook-v1:"+mr({messageId:e,conversationId:t,timestamp:n,payload:i});var rg=(e,t)=>{let n=e.serverSignature;if(!n||!Number.isFinite(e.timestamp)||Math.abs((t?.now??Date.now())-e.timestamp)>(t?.maxSkewMs??yw))return Promise.resolve(!1);let i=t?.publicKey??gw;return Promise.resolve().then(async()=>{let r=await crypto.subtle.importKey("spki",tg(i),eg,!1,["verify"]);return crypto.subtle.verify(eg,r,tg(n),new TextEncoder().encode(vw(e)))}).then(r=>r,()=>!1)},_w=1e4,Ln=new Set,ng=(e,t)=>{if(!t)return!0;let n=`${e}:${t}`;if(Ln.has(n))return!1;if(Ln.size>=_w){let i=Ln.values().next().value;i!==void 0&&Ln.delete(i)}return Ln.add(n),!0};var Ll=mr,og=async e=>Po({...e,conversationKey:await ag(e.credentials,e.conversation)}),bw=async(e,{privateSignKey:t,publicSignKey:n},i,r)=>{Gh(Ll(i));let o={...i,...r?{conversationId:r}:{},sentAt:Date.now()},a=Ll(o);return Vh(e,{payload:o,publicSignKey:n,signature:await To(t,a)})},xw=e=>e.type==="event"||e.type==="spinner"||e.type==="progress"||e.type==="reaction"&&!!e.remove||e.type==="call"&&e.action!=="offer",Po=async({conversationKey:e,conversation:t,credentials:n,message:i})=>{let r=await bw(e,n,i,t),o=await An(n.privateSignKey)?await Un(n,"sendMessage",{conversation:t,encryptedMessage:r}):void 0;return Tr({endpoint:"sendMessage",payload:{conversation:t,silent:xw(i)?!0:void 0,senderPublicSignKey:n.publicSignKey,encryptedMessage:r,...o?{auth:{nonce:o.nonce,authToken:o.authToken}}:{}}})};var $w=e=>typeof e=="string",ag=async(e,t)=>{Rn(e);let n=await An(e.privateSignKey)?await Un(e,"conversationKey",{conversationId:t}):void 0,i=await Tr({endpoint:"conversationKey",payload:{conversationId:t,publicSignKey:e.publicSignKey,...n?{auth:{nonce:n.nonce,authToken:n.authToken}}:{}}});if("error"in i||!$w(i.conversationKey))throw new Error("No keys found for conversation");let r=await Ol(e.privateEncryptKey,i.conversationKey);return Ul(r,e),r},sg=async(e,t,n)=>{if(Rn(t),(e.serverSignature!==void 0||n?.requireServerSignature)&&!await rg(e,{publicKey:n?.webhookServerPublicKey,now:n?.now}))return;let i=e.conversationKey?await Ol(t.privateEncryptKey,e.conversationKey):await ag(t,e.conversationId);Ul(i,t);let r=e.conversationInfo&&!e.conversationInfo.isPartial?new Set(e.conversationInfo.participants.map(a=>a.publicSignKey)):void 0,o=await kw(i,{conversationId:e.conversationId,allowedParticipantKeys:r})(e);if(o&&!(!n?.allowReplay&&!ng(t.publicSignKey,e.messageId)))return{conversationId:e.conversationId,message:o,conversationKey:i,messageId:e.messageId}},ww=(e,t,n)=>{let i={publicSignKey:e,timestamp:t,text:"text"in n?n.text:""};return n.type==="call"?{...i,type:"call",callId:n.callId,action:n.action,sdp:n.sdp,duration:n.duration}:n.type==="spinner"?{...i,type:"spinner",active:n.active,elementId:n.elementId}:n.type==="progress"?{...i,type:"progress",percentage:n.percentage,elementId:n.elementId}:n.type==="edit"?{...i,type:"edit",editOf:n.editOf,attachments:n.attachments}:n.type==="reaction"?{...i,type:"reaction",reactTo:n.reactTo,emoji:n.emoji,remove:n.remove}:n.type==="event"?{...i,type:"event",action:n.action,data:n.data}:{...i,type:"text",attachments:n.attachments,elementId:"elementId"in n?n.elementId:void 0,replyTo:n.replyTo}},kw=(e,t)=>async({payload:n,timestamp:i})=>{try{let{signature:r,payload:o,publicSignKey:a}=await qh(e,n);return t?.allowedParticipantKeys&&!t.allowedParticipantKeys.has(a)||!await Fh(r,a,Ll(o))||t?.conversationId&&o.conversationId!==void 0&&o.conversationId!==t.conversationId||o.sentAt!==void 0&&(typeof o.sentAt!="number"||!Number.isFinite(o.sentAt)||o.sentAt<=0)?void 0:ww(a,i,o)}catch{return}};var cg=async(e,t)=>{let{publicKey:n,privateKey:i}=await Cl("sign"),r=await Cl("encrypt");return await Tr({endpoint:"createAnonymousIdentity",payload:{name:e,publicSignKey:n,publicEncryptKey:r.publicKey,...t?{alias:t}:{}}}),Rn({publicSignKey:n,privateSignKey:i,privateEncryptKey:r.privateKey})},Sw="https://aliceandbot.com",ug=async(e,t)=>{let n=`${Sw}${Xh}?chatWith=${await Qh(e)}`;return t?`${n}&topic=${encodeURIComponent(t)}`:n};var ig="/alice-and-bot-attachments/",Iw=e=>{if(!e||/[\p{Cc}\\]/u.test(e))return!1;try{if(decodeURIComponent(e).includes(".."))return!1;let t=new URL(e);return t.protocol!=="https:"||t.hostname!=="storage.googleapis.com"?!1:t.pathname.startsWith(ig)&&t.pathname.length>ig.length}catch{return!1}},lg=async({url:e,conversationKey:t})=>{if(!Iw(e))throw new Error("Untrusted attachment URL");let n=await fetch(e);if(!n.ok)throw new Error(`Download failed: ${n.status} ${await n.text()}`);let i=await n.arrayBuffer();return Kh(t,i)},nj=`${zo}/ui-update`;import{Buffer as dg}from"node:buffer";import{timingSafeEqual as Tw}from"node:crypto";var fg="/alice-and-bot-attachments/",zw=/^\.[a-zA-Z0-9]{1,10}$/,pg=()=>{let e=crypto.getRandomValues(new Uint8Array(12));return`pair-${Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}`},mg=(e,t)=>{let n=dg.from(e),i=dg.from(t);return n.length===i.length&&Tw(n,i)},jw=(e,t)=>{if(!t||t.length<16)return!1;let n=e.trim();if(!n)return!1;let i=n.toLowerCase().startsWith("/pair ")?n.slice(6).trim():n;return mg(i,t)},hg=({senderPublicSignKey:e,botPublicSignKey:t,messageText:n,pairingCode:i,authorizedPublicSignKey:r})=>!e||e===t?{status:"ignore-self"}:r?mg(e,r)?{status:"authorized"}:{status:"rejected",reason:"wrong-sender"}:jw(n,i)?{status:"paired-now",authorizedPublicSignKey:e}:{status:"rejected",reason:"unpaired"},gg=e=>{if(!e||/[\p{Cc}\\]/u.test(e))return!1;try{if(decodeURIComponent(e).includes(".."))return!1;let t=new URL(e);return t.protocol!=="https:"||t.hostname!=="storage.googleapis.com"?!1:t.pathname.startsWith(fg)&&t.pathname.length>fg.length}catch{return!1}},yg=(e,t=".bin")=>{let n=e.startsWith(".")?e.toLowerCase():`.${e.toLowerCase()}`;return zw.test(n)?n:t};var xg=()=>Zl.env.ALICEANDBOT_MCP_CONFIG_DIR||jr.join(_g.homedir(),".config","aliceandbot-mcp"),$g=()=>jr.join(xg(),"credentials.json"),Bl=()=>jr.join(xg(),"state.json"),wg=Zl.env.ALICEANDBOT_RELAY_URL||"https://api.aliceandbot.com/relay",Ow=3e3,Eo=async e=>{try{return JSON.parse(await Ew(e,"utf8"))}catch{return null}},Ml=async(e,t)=>{await Pw(jr.dirname(e),{recursive:!0,mode:448}),await vg(e,JSON.stringify(t),{mode:384})},kg=e=>!!(e&&typeof e.relayToken=="string"&&e.relayToken&&typeof e.pairingCode=="string"&&e.pairingCode.length>=16),Sg=e=>({relayToken:e.relayToken,pairingCode:e.pairingCode,...typeof e.authorizedPublicSignKey=="string"&&e.authorizedPublicSignKey?{authorizedPublicSignKey:e.authorizedPublicSignKey}:{}}),Nw=async()=>{let e=$g(),t=await Eo(e);if(t)return t;let n=await cg("MCP Session");return await Ml(e,n),n},Cw=async()=>{let e=Bl(),t=await Eo(e);if(kg(t))return Sg(t);let n={relayToken:typeof t?.relayToken=="string"&&t.relayToken?t.relayToken:crypto.randomUUID(),pairingCode:pg(),...typeof t?.authorizedPublicSignKey=="string"&&t.authorizedPublicSignKey?{authorizedPublicSignKey:t.authorizedPublicSignKey}:{}};return await Ml(e,n),n},ie={credentials:null,state:null,pollTimer:null,pollInFlight:null},Dl=new Map,Yt=[],Oo=e=>({content:[{type:"text",text:e}]}),zr=e=>({content:[{type:"text",text:e}],isError:!0}),Aw=e=>!!(e&&typeof e=="object"&&"messages"in e&&Array.isArray(e.messages)),Uw=e=>async t=>{if(t.type==="location")return`[Location attachment: ${t.latitude}, ${t.longitude}${t.label?` (${t.label})`:""}]`;if(!gg(t.url))return"[Blocked attachment from untrusted URL]";try{let n=await lg({url:t.url,conversationKey:e}),i="mimeType"in t?t.mimeType.match(/\/([^;]+)/)?.[1]??"bin":"bin",r=yg(i,".bin"),o=jr.join(_g.tmpdir(),`alice_attachment_${Date.now()}_${crypto.randomUUID().slice(0,8)}${r}`);return await vg(o,new Uint8Array(n),{mode:384}),`[Attachment saved to ${o}]`}catch(n){return`[Failed to download attachment: ${n}]`}},Rw=(e,t)=>async n=>{let i=await sg(n,t,{requireServerSignature:!0});if(!i)return null;let{conversationId:r,message:o,conversationKey:a}=i,s=hg({senderPublicSignKey:o.publicSignKey,botPublicSignKey:t.publicSignKey,messageText:o.text??"",pairingCode:e.pairingCode,authorizedPublicSignKey:e.authorizedPublicSignKey});if(s.status==="ignore-self"||s.status==="rejected")return null;if(s.status==="paired-now")return e.authorizedPublicSignKey=s.authorizedPublicSignKey,await Ml(Bl(),e),Dl.set(r,{conversationKey:a}),await Po({conversationKey:a,conversation:r,credentials:t,message:{type:"text",text:"Device paired with this MCP session."}}).catch(()=>{}),null;if(Dl.set(r,{conversationKey:a}),o.type!=="text"&&o.type!=="edit")return null;let c="attachments"in o&&o.attachments?await Promise.all(o.attachments.map(Uw(a))):[],d=[o.text,...c].filter(Boolean).join(`
|
|
66
|
-
`);return d?{conversationId:r,text:d,type:o.type}:null},
|
|
67
|
-
`))},
|
|
65
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);i.cycles==="ref"&&a(f);continue}if(h.count>1&&i.reused==="ref"){a(f);continue}}let s=(f,h)=>{let v=this.seen.get(f),m=v.def??v.schema,p={...m};if(v.ref===null)return;let y=v.ref;if(v.ref=null,y){s(y,h);let b=this.seen.get(y).schema;b.$ref&&h.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(b)):(Object.assign(m,b),Object.assign(m,p))}v.isParent||this.override({zodSchema:f,jsonSchema:m})};for(let f of[...this.seen.entries()].reverse())s(f[0],{target:this.target});let c={};this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),Object.assign(c,r.def);let d=i.external?.defs??{};for(let f of this.seen.entries()){let h=f[1];h.def&&h.defId&&(d[h.defId]=h.def)}!i.external&&Object.keys(d).length>0&&(this.target==="draft-2020-12"?c.$defs=d:c.definitions=d);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}};function qu(e,t){if(e instanceof _r){let i=new Tn(t),r={};for(let s of e._idmap.entries()){let[c,d]=s;i.process(d)}let o={},a={registry:e,uri:t?.uri||(s=>s),defs:r};for(let s of e._idmap.entries()){let[c,d]=s;o[c]=i.emit(d,{...t,external:a})}if(Object.keys(r).length>0){let s=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:r}}return{schemas:o}}let n=new Tn(t);return n.process(e),n.emit(e,t)}function re(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return re(r.element,n);case"object":{for(let o in r.shape)if(re(r.shape[o],n))return!0;return!1}case"union":{for(let o of r.options)if(re(o,n))return!0;return!1}case"intersection":return re(r.left,n)||re(r.right,n);case"tuple":{for(let o of r.items)if(re(o,n))return!0;return!!(r.rest&&re(r.rest,n))}case"record":return re(r.keyType,n)||re(r.valueType,n);case"map":return re(r.keyType,n)||re(r.valueType,n);case"set":return re(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return re(r.innerType,n);case"lazy":return re(r.getter(),n);case"default":return re(r.innerType,n);case"prefault":return re(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return re(r.in,n)||re(r.out,n);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${r.type}`)}var Jm={};var po={};nt(po,{ZodISODate:()=>uo,ZodISODateTime:()=>co,ZodISODuration:()=>fo,ZodISOTime:()=>lo,date:()=>Hu,datetime:()=>Ku,duration:()=>Ju,time:()=>Wu});var co=g("ZodISODateTime",(e,t)=>{mc.init(e,t),J.init(e,t)});function Ku(e){return cu(co,e)}var uo=g("ZodISODate",(e,t)=>{hc.init(e,t),J.init(e,t)});function Hu(e){return uu(uo,e)}var lo=g("ZodISOTime",(e,t)=>{gc.init(e,t),J.init(e,t)});function Wu(e){return lu(lo,e)}var fo=g("ZodISODuration",(e,t)=>{yc.init(e,t),J.init(e,t)});function Ju(e){return du(fo,e)}var Ym=(e,t)=>{nn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>an(e,n)},flatten:{value:n=>on(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},G0=g("ZodError",Ym),kr=g("ZodError",Ym,{Parent:Error});var Gu=ki(kr),Yu=Ii(kr),Xu=zi(kr),Qu=ji(kr);var Z=g("ZodType",(e,t)=>(U.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(n,i)=>ve(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>Gu(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Xu(e,n,i),e.parseAsync=async(n,i)=>Yu(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Qu(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=>e.check(Rh(n,i)),e.superRefine=n=>e.check(Lh(n)),e.overwrite=n=>e.check(et(n)),e.optional=()=>go(e),e.nullable=()=>yo(e),e.nullish=()=>go(yo(e)),e.nonoptional=n=>Sh(e,n),e.array=()=>xl(e),e.or=n=>$o([e,n]),e.and=n=>dh(e,n),e.transform=n=>vo(e,Sl(n)),e.default=n=>$h(e,n),e.prefault=n=>kh(e,n),e.catch=n=>zh(e,n),e.pipe=n=>vo(e,n),e.readonly=()=>Ph(e),e.describe=n=>{let i=e.clone();return Me.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Me.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Me.get(e);let i=e.clone();return Me.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),rl=g("_ZodString",(e,t)=>{Ht.init(e,t),Z.init(e,t);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(hn(...i)),e.includes=(...i)=>e.check(vn(...i)),e.startsWith=(...i)=>e.check(_n(...i)),e.endsWith=(...i)=>e.check(bn(...i)),e.min=(...i)=>e.check(yt(...i)),e.max=(...i)=>e.check($r(...i)),e.length=(...i)=>e.check(wr(...i)),e.nonempty=(...i)=>e.check(yt(1,...i)),e.lowercase=i=>e.check(gn(i)),e.uppercase=i=>e.check(yn(i)),e.trim=()=>e.check(wn()),e.normalize=(...i)=>e.check($n(...i)),e.toLowerCase=()=>e.check(kn()),e.toUpperCase=()=>e.check(Sn())}),jn=g("ZodString",(e,t)=>{Ht.init(e,t),rl.init(e,t),e.email=n=>e.check(Zi(nl,n)),e.url=n=>e.check(qi(il,n)),e.jwt=n=>e.check(ao(_l,n)),e.emoji=n=>e.check(Ki(ol,n)),e.guid=n=>e.check(pn(mo,n)),e.uuid=n=>e.check(Bi(rt,n)),e.uuidv4=n=>e.check(Mi(rt,n)),e.uuidv6=n=>e.check(Fi(rt,n)),e.uuidv7=n=>e.check(Vi(rt,n)),e.nanoid=n=>e.check(Hi(al,n)),e.guid=n=>e.check(pn(mo,n)),e.cuid=n=>e.check(Wi(sl,n)),e.cuid2=n=>e.check(Ji(cl,n)),e.ulid=n=>e.check(Gi(ul,n)),e.base64=n=>e.check(no(gl,n)),e.base64url=n=>e.check(io(yl,n)),e.xid=n=>e.check(Yi(ll,n)),e.ksuid=n=>e.check(Xi(dl,n)),e.ipv4=n=>e.check(Qi(fl,n)),e.ipv6=n=>e.check(eo(pl,n)),e.cidrv4=n=>e.check(to(ml,n)),e.cidrv6=n=>e.check(ro(hl,n)),e.e164=n=>e.check(oo(vl,n)),e.datetime=n=>e.check(Ku(n)),e.date=n=>e.check(Hu(n)),e.time=n=>e.check(Wu(n)),e.duration=n=>e.check(Ju(n))});function el(e){return au(jn,e)}var J=g("ZodStringFormat",(e,t)=>{W.init(e,t),rl.init(e,t)}),nl=g("ZodEmail",(e,t)=>{oc.init(e,t),J.init(e,t)});function X0(e){return Zi(nl,e)}var mo=g("ZodGUID",(e,t)=>{nc.init(e,t),J.init(e,t)});function Q0(e){return pn(mo,e)}var rt=g("ZodUUID",(e,t)=>{ic.init(e,t),J.init(e,t)});function e$(e){return Bi(rt,e)}function t$(e){return Mi(rt,e)}function r$(e){return Fi(rt,e)}function n$(e){return Vi(rt,e)}var il=g("ZodURL",(e,t)=>{ac.init(e,t),J.init(e,t)});function i$(e){return qi(il,e)}var ol=g("ZodEmoji",(e,t)=>{sc.init(e,t),J.init(e,t)});function o$(e){return Ki(ol,e)}var al=g("ZodNanoID",(e,t)=>{cc.init(e,t),J.init(e,t)});function a$(e){return Hi(al,e)}var sl=g("ZodCUID",(e,t)=>{uc.init(e,t),J.init(e,t)});function s$(e){return Wi(sl,e)}var cl=g("ZodCUID2",(e,t)=>{lc.init(e,t),J.init(e,t)});function c$(e){return Ji(cl,e)}var ul=g("ZodULID",(e,t)=>{dc.init(e,t),J.init(e,t)});function u$(e){return Gi(ul,e)}var ll=g("ZodXID",(e,t)=>{fc.init(e,t),J.init(e,t)});function l$(e){return Yi(ll,e)}var dl=g("ZodKSUID",(e,t)=>{pc.init(e,t),J.init(e,t)});function d$(e){return Xi(dl,e)}var fl=g("ZodIPv4",(e,t)=>{vc.init(e,t),J.init(e,t)});function f$(e){return Qi(fl,e)}var pl=g("ZodIPv6",(e,t)=>{_c.init(e,t),J.init(e,t)});function p$(e){return eo(pl,e)}var ml=g("ZodCIDRv4",(e,t)=>{bc.init(e,t),J.init(e,t)});function m$(e){return to(ml,e)}var hl=g("ZodCIDRv6",(e,t)=>{xc.init(e,t),J.init(e,t)});function h$(e){return ro(hl,e)}var gl=g("ZodBase64",(e,t)=>{wc.init(e,t),J.init(e,t)});function g$(e){return no(gl,e)}var yl=g("ZodBase64URL",(e,t)=>{kc.init(e,t),J.init(e,t)});function y$(e){return io(yl,e)}var vl=g("ZodE164",(e,t)=>{Sc.init(e,t),J.init(e,t)});function v$(e){return oo(vl,e)}var _l=g("ZodJWT",(e,t)=>{Ic.init(e,t),J.init(e,t)});function _$(e){return ao(_l,e)}var En=g("ZodNumber",(e,t)=>{Ci.init(e,t),Z.init(e,t),e.gt=(i,r)=>e.check(Qe(i,r)),e.gte=(i,r)=>e.check(ge(i,r)),e.min=(i,r)=>e.check(ge(i,r)),e.lt=(i,r)=>e.check(Xe(i,r)),e.lte=(i,r)=>e.check(Ie(i,r)),e.max=(i,r)=>e.check(Ie(i,r)),e.int=i=>e.check(tl(i)),e.safe=i=>e.check(tl(i)),e.positive=i=>e.check(Qe(0,i)),e.nonnegative=i=>e.check(ge(0,i)),e.negative=i=>e.check(Xe(0,i)),e.nonpositive=i=>e.check(Ie(0,i)),e.multipleOf=(i,r)=>e.check(Jt(i,r)),e.step=(i,r)=>e.check(Jt(i,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Xm(e){return fu(En,e)}var Sr=g("ZodNumberFormat",(e,t)=>{Tc.init(e,t),En.init(e,t)});function tl(e){return mu(Sr,e)}function b$(e){return hu(Sr,e)}function x$(e){return gu(Sr,e)}function $$(e){return yu(Sr,e)}function w$(e){return vu(Sr,e)}var Pn=g("ZodBoolean",(e,t)=>{cn.init(e,t),Z.init(e,t)});function Qm(e){return _u(Pn,e)}var On=g("ZodBigInt",(e,t)=>{Ui.init(e,t),Z.init(e,t),e.gte=(i,r)=>e.check(ge(i,r)),e.min=(i,r)=>e.check(ge(i,r)),e.gt=(i,r)=>e.check(Qe(i,r)),e.gte=(i,r)=>e.check(ge(i,r)),e.min=(i,r)=>e.check(ge(i,r)),e.lt=(i,r)=>e.check(Xe(i,r)),e.lte=(i,r)=>e.check(Ie(i,r)),e.max=(i,r)=>e.check(Ie(i,r)),e.positive=i=>e.check(Qe(BigInt(0),i)),e.negative=i=>e.check(Xe(BigInt(0),i)),e.nonpositive=i=>e.check(Ie(BigInt(0),i)),e.nonnegative=i=>e.check(ge(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Jt(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function k$(e){return xu(On,e)}var bl=g("ZodBigIntFormat",(e,t)=>{zc.init(e,t),On.init(e,t)});function S$(e){return wu(bl,e)}function I$(e){return ku(bl,e)}var eh=g("ZodSymbol",(e,t)=>{jc.init(e,t),Z.init(e,t)});function T$(e){return Su(eh,e)}var th=g("ZodUndefined",(e,t)=>{Ec.init(e,t),Z.init(e,t)});function z$(e){return Iu(th,e)}var rh=g("ZodNull",(e,t)=>{Pc.init(e,t),Z.init(e,t)});function nh(e){return Tu(rh,e)}var ih=g("ZodAny",(e,t)=>{Oc.init(e,t),Z.init(e,t)});function j$(){return zu(ih)}var oh=g("ZodUnknown",(e,t)=>{vr.init(e,t),Z.init(e,t)});function ho(){return br(oh)}var ah=g("ZodNever",(e,t)=>{Nc.init(e,t),Z.init(e,t)});function _o(e){return ju(ah,e)}var sh=g("ZodVoid",(e,t)=>{Ac.init(e,t),Z.init(e,t)});function E$(e){return Eu(sh,e)}var bo=g("ZodDate",(e,t)=>{Cc.init(e,t),Z.init(e,t),e.min=(i,r)=>e.check(ge(i,r)),e.max=(i,r)=>e.check(Ie(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function P$(e){return Pu(bo,e)}var ch=g("ZodArray",(e,t)=>{un.init(e,t),Z.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(yt(n,i)),e.nonempty=n=>e.check(yt(1,n)),e.max=(n,i)=>e.check($r(n,i)),e.length=(n,i)=>e.check(wr(n,i)),e.unwrap=()=>e.element});function xl(e,t){return In(ch,e,t)}function O$(e){let t=e._zod.def.shape;return vh(Object.keys(t))}var xo=g("ZodObject",(e,t)=>{Uc.init(e,t),Z.init(e,t),I.defineLazy(e,"shape",()=>Object.fromEntries(Object.entries(e._zod.def.shape))),e.keyof=()=>gh(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ho()}),e.loose=()=>e.clone({...e._zod.def,catchall:ho()}),e.strict=()=>e.clone({...e._zod.def,catchall:_o()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>I.extend(e,n),e.merge=n=>I.merge(e,n),e.pick=n=>I.pick(e,n),e.omit=n=>I.omit(e,n),e.partial=(...n)=>I.partial(Il,e,n[0]),e.required=(...n)=>I.required(Tl,e,n[0])});function N$(e,t){let n={type:"object",get shape(){return I.assignProp(this,"shape",{...e}),this.shape},...I.normalizeParams(t)};return new xo(n)}function A$(e,t){return new xo({type:"object",get shape(){return I.assignProp(this,"shape",{...e}),this.shape},catchall:_o(),...I.normalizeParams(t)})}function C$(e,t){return new xo({type:"object",get shape(){return I.assignProp(this,"shape",{...e}),this.shape},catchall:ho(),...I.normalizeParams(t)})}var $l=g("ZodUnion",(e,t)=>{Ri.init(e,t),Z.init(e,t),e.options=t.options});function $o(e,t){return new $l({type:"union",options:e,...I.normalizeParams(t)})}var uh=g("ZodDiscriminatedUnion",(e,t)=>{$l.init(e,t),Rc.init(e,t)});function U$(e,t,n){return new uh({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var lh=g("ZodIntersection",(e,t)=>{Lc.init(e,t),Z.init(e,t)});function dh(e,t){return new lh({type:"intersection",left:e,right:t})}var fh=g("ZodTuple",(e,t)=>{Wt.init(e,t),Z.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function R$(e,t,n){let i=t instanceof U,r=i?n:t,o=i?t:null;return new fh({type:"tuple",items:e,rest:o,...I.normalizeParams(r)})}var wl=g("ZodRecord",(e,t)=>{Dc.init(e,t),Z.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function ph(e,t,n){return new wl({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function L$(e,t,n){return new wl({type:"record",keyType:$o([e,_o()]),valueType:t,...I.normalizeParams(n)})}var mh=g("ZodMap",(e,t)=>{Zc.init(e,t),Z.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function D$(e,t,n){return new mh({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var hh=g("ZodSet",(e,t)=>{Bc.init(e,t),Z.init(e,t),e.min=(...n)=>e.check(Gt(...n)),e.nonempty=n=>e.check(Gt(1,n)),e.max=(...n)=>e.check(xr(...n)),e.size=(...n)=>e.check(mn(...n))});function Z$(e,t){return new hh({type:"set",valueType:e,...I.normalizeParams(t)})}var zn=g("ZodEnum",(e,t)=>{Mc.init(e,t),Z.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new zn({...t,checks:[],...I.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.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 zn({...t,checks:[],...I.normalizeParams(r),entries:o})}});function gh(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zn({type:"enum",entries:n,...I.normalizeParams(t)})}function B$(e,t){return new zn({type:"enum",entries:e,...I.normalizeParams(t)})}var yh=g("ZodLiteral",(e,t)=>{Fc.init(e,t),Z.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function vh(e,t){return new yh({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var _h=g("ZodFile",(e,t)=>{Vc.init(e,t),Z.init(e,t),e.min=(n,i)=>e.check(Gt(n,i)),e.max=(n,i)=>e.check(xr(n,i)),e.mime=(n,i)=>e.check(xn(Array.isArray(n)?n:[n],i))});function M$(e){return Zu(_h,e)}var kl=g("ZodTransform",(e,t)=>{ln.init(e,t),Z.init(e,t),e._zod.parse=(n,i)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(I.issue(o,n.value,t));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),a.continue??(a.continue=!0),n.issues.push(I.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Sl(e){return new kl({type:"transform",transform:e})}var Il=g("ZodOptional",(e,t)=>{qc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function go(e){return new Il({type:"optional",innerType:e})}var bh=g("ZodNullable",(e,t)=>{Kc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yo(e){return new bh({type:"nullable",innerType:e})}function F$(e){return go(yo(e))}var xh=g("ZodDefault",(e,t)=>{Hc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $h(e,t){return new xh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var wh=g("ZodPrefault",(e,t)=>{Wc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function kh(e,t){return new wh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}var Tl=g("ZodNonOptional",(e,t)=>{Jc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Sh(e,t){return new Tl({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var Ih=g("ZodSuccess",(e,t)=>{Gc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function V$(e){return new Ih({type:"success",innerType:e})}var Th=g("ZodCatch",(e,t)=>{Yc.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zh(e,t){return new Th({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var jh=g("ZodNaN",(e,t)=>{Xc.init(e,t),Z.init(e,t)});function q$(e){return Nu(jh,e)}var zl=g("ZodPipe",(e,t)=>{dn.init(e,t),Z.init(e,t),e.in=t.in,e.out=t.out});function vo(e,t){return new zl({type:"pipe",in:e,out:t})}var Eh=g("ZodReadonly",(e,t)=>{Qc.init(e,t),Z.init(e,t)});function Ph(e){return new Eh({type:"readonly",innerType:e})}var Oh=g("ZodTemplateLiteral",(e,t)=>{eu.init(e,t),Z.init(e,t)});function K$(e,t){return new Oh({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Nh=g("ZodLazy",(e,t)=>{ru.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.getter()});function Ah(e){return new Nh({type:"lazy",getter:e})}var Ch=g("ZodPromise",(e,t)=>{tu.init(e,t),Z.init(e,t),e.unwrap=()=>e._zod.def.innerType});function H$(e){return new Ch({type:"promise",innerType:e})}var wo=g("ZodCustom",(e,t)=>{nu.init(e,t),Z.init(e,t)});function Uh(e,t){let n=new G({check:"custom",...I.normalizeParams(t)});return n._zod.check=e,n}function W$(e,t){return Bu(wo,e??(()=>!0),t)}function Rh(e,t={}){return Mu(wo,e,t)}function Lh(e,t){let n=Uh(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(I.issue(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(I.issue(o))}},e(i.value,i)),t);return n}function J$(e,t={error:`Input not instance of ${e.name}`}){let n=new wo({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...I.normalizeParams(t)});return n._zod.bag.Class=e,n}var G$=(...e)=>Fu({Pipe:zl,Boolean:Pn,String:jn,Transform:kl},...e);function Y$(e){let t=Ah(()=>$o([el(e),Xm(),Qm(),nh(),xl(t),ph(el(),t)]));return t}function X$(e,t){return vo(Sl(e),t)}var Q$={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"},ew=Object.freeze({status:"aborted"}),tw=ew;function rw(e){Y({customError:e})}function nw(){return Y().customError}var jl={};nt(jl,{bigint:()=>sw,boolean:()=>aw,date:()=>cw,number:()=>ow,string:()=>iw});function iw(e){return su(jn,e)}function ow(e){return pu(En,e)}function aw(e){return bu(Pn,e)}function sw(e){return $u(On,e)}function cw(e){return Ou(bo,e)}Y(Li());var El={name:"RSA-OAEP",hash:"SHA-256"},ko={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},Zh="spki",Bh="pkcs8",So={name:"AES-GCM",length:256},Nn=12,An=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n},Pl=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),n="",i=8192;for(let r=0;r<t.length;r+=i)n+=String.fromCharCode(...t.subarray(r,r+i));return btoa(n)},Ol=async(e,t)=>JSON.parse(new TextDecoder().decode(await crypto.subtle.decrypt(El,await Io(e,"decrypt"),An(t)))),uw=512,Ir=new Map,Mh=(e,t)=>{let n=Ir.get(e);if(n)return n;if(Ir.size>=uw){let r=Ir.keys().next().value;r!==void 0&&Ir.delete(r)}let i=t().catch(r=>{throw Ir.delete(e),r});return Ir.set(e,i),i},Io=(e,t)=>Mh(`${t}:${e}`,()=>crypto.subtle.importKey(t==="decrypt"||t==="sign"?Bh:Zh,An(e),t==="decrypt"||t==="encrypt"?El:ko,!1,[t])),Nl=(e,t)=>Mh(`aes:${t.join(",")}:${e}`,()=>crypto.subtle.importKey("raw",An(e),So,!1,t));var Dh=async(e,t)=>Pl(await crypto.subtle.exportKey(t,e)),lw=async({publicKey:e,privateKey:t})=>({publicKey:await Dh(e,Zh),privateKey:await Dh(t,Bh)}),Al=async e=>lw(await crypto.subtle.generateKey({...e==="encrypt"?El:ko,modulusLength:2048,publicExponent:new Uint8Array([1,0,1])},!0,e==="encrypt"?["encrypt","decrypt"]:["sign","verify"])),Cn=e=>typeof e=="string"&&/^[A-Za-z0-9+/]+={0,2}$/.test(e)&&e.length%4===0&&e.length>=64?Io(e,"sign").then(()=>!0,()=>!1):Promise.resolve(!1),To=async(e,t)=>Pl(await crypto.subtle.sign(ko,await Io(e,"sign"),new TextEncoder().encode(t))),Fh=async(e,t,n)=>crypto.subtle.verify(ko,await Io(t,"verify"),An(e),new TextEncoder().encode(n)),Vh=async(e,t)=>{let n=crypto.getRandomValues(new Uint8Array(Nn)),i=await Nl(e,["encrypt"]),r=new TextEncoder().encode(JSON.stringify(t)),o=new Uint8Array(await crypto.subtle.encrypt({...So,iv:n},i,r)),a=new Uint8Array(n.length+o.length);return a.set(n,0),a.set(o,n.length),Pl(a)},qh=async(e,t)=>{let n=An(t),i=n.subarray(0,Nn),r=n.subarray(Nn),o=await Nl(e,["decrypt"]),a=await crypto.subtle.decrypt({...So,iv:i},o,r);return JSON.parse(new TextDecoder().decode(a))};var Kh=async(e,t)=>{let n=new Uint8Array(t),i=n.subarray(0,Nn),r=n.subarray(Nn),o=await Nl(e,["decrypt"]);return crypto.subtle.decrypt({...So,iv:i},o,r)},Cl=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");var Un=async(e,t,n)=>{let{nonce:i}=await Hh(e.publicSignKey),r=await Wh({action:t,publicSignKey:e.publicSignKey,payload:n,nonce:i});return{payload:n,publicSignKey:e.publicSignKey,nonce:i,authToken:await To(e.privateSignKey,r)}};var zo="https://api.aliceandbot.com";var Jh=Math.ceil(18e3)+2e3,Gh=e=>{if(e.length>4e3)throw new Error("Message exceeds maximum length of 4000 characters")},dw={image:25*1048576,audio:25*1048576,video:100*1048576,file:25*1048576};var fw=new Map,pw=new Map,Rn=e=>(e?.publicSignKey&&fw.set(e.publicSignKey,e),e);var Ul=(e,t)=>{Rn(t),e&&pw.set(e,t)};var jo=u.object({nonce:u.string(),authToken:u.string()}),Rl=u.object({publicSignKey:u.string(),nonce:u.string(),authToken:u.string()}),mw=e=>u.object({payload:e,publicSignKey:u.string(),nonce:u.string(),authToken:u.string()}),ne=(e,t)=>Q({authRequired:!1,input:mw(e),output:t}),hw={issueNonce:Q({authRequired:!1,input:u.object({publicSignKey:u.string()}),output:u.object({nonce:u.string()})}),aliasToPublicSignKey:Q({authRequired:!1,input:u.object({alias:u.string()}),output:u.union([u.object({publicSignKey:u.string()}),u.object({error:u.enum(["no-such-alias"])})])}),resolveHandle:Q({authRequired:!1,input:u.object({handle:u.string()}),output:u.union([u.object({publicSignKey:u.string()}),u.object({error:u.enum(["no-such-handle"])})])}),publicSignKeyToAlias:Q({authRequired:!1,input:u.object({publicSignKey:u.string()}),output:u.union([u.object({alias:u.string()}),u.object({error:u.enum(["no-such-identity","no-alias"])})])}),setAlias:ne(u.object({alias:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["alias-taken","invalid-alias","not-found","invalid-auth"])})])),setName:ne(u.object({name:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","invalid-name"])})])),setAvatar:ne(u.object({avatar:u.string().optional()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","invalid-avatar"])})])),setPriceTag:ne(u.object({priceTag:u.number().nonnegative().finite().optional()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth"])})])),getBalanceAndTransactions:ne(u.object({}),u.union([u.object({balance:u.number(),transactions:u.array(u.object({amount:u.number(),type:u.string(),timestamp:u.number(),status:u.string().optional(),walletAddress:u.string().optional()}))}),u.object({error:u.enum(["not-found","invalid-auth"])})])),requestPayout:ne(u.object({amount:u.number().positive().finite(),walletAddress:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","insufficient-balance"])})])),prepareCryptoPayment:ne(u.object({amount:u.number().positive().finite()}),u.union([u.object({address:u.string(),btcAmount:u.number(),usdAmount:u.number(),qrUrl:u.string()}),u.object({error:u.enum(["not-found","invalid-auth","missing-secret"])})])),checkCryptoPayment:ne(u.object({paymentAddress:u.string()}),u.union([u.object({success:u.literal(!0),message:u.string()}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","not-paid","already-claimed","missing-secret"])})])),conversationKey:Q({authRequired:!1,input:u.object({conversationId:u.string(),publicSignKey:u.string(),auth:jo.optional()}),output:u.union([u.object({conversationKey:u.string()}),u.object({error:u.literal("no-such-key")})])}),createConversation:ne(u.object({publicSignKeyToEncryptedSymmetricKey:u.record(u.string(),u.string()),title:u.string(),maxTotalCost:u.number().nonnegative().finite().optional()}),u.union([u.object({conversationId:u.string()}),u.object({error:u.enum(["invalid-participants","must-own-an-identity","insufficient-balance","price-changed","invalid-auth"])})])),createAccount:Q({authRequired:!1,input:u.object({}),output:u.object({success:u.literal(!0),accountId:u.string(),accessToken:u.string()})}),createAnonymousIdentity:Q({authRequired:!1,input:u.object({name:u.string().max(100),publicSignKey:u.string().min(1).max(4096),publicEncryptKey:u.string().min(1).max(4096),alias:u.string().max(64).optional()}),output:u.object({})}),createIdentity:Q({authRequired:!0,input:u.object({publicSignKey:u.string().min(1).max(4096),publicEncryptKey:u.string().min(1).max(4096)}),output:u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.string()})])}),sendMessage:Q({authRequired:!1,input:u.object({encryptedMessage:u.string().max(Jh),conversation:u.string(),silent:u.boolean().optional(),senderPublicSignKey:u.string().optional(),auth:jo.optional()}),output:u.object({messageId:u.string()})}),sendTyping:Q({authRequired:!1,input:u.object({conversation:u.string(),isTyping:u.boolean(),publicSignKey:u.string(),auth:jo.optional()}),output:u.object({success:u.literal(!0)})}),setWebhook:Q({authRequired:!1,input:u.object({url:u.string(),publicSignKey:u.string(),auth:jo.optional()}),output:u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["identity-does-not-exist","invalid-auth","invalid-url"])})])}),getProfile:Q({authRequired:!1,input:u.object({publicSignKey:u.string()}),output:u.object({profile:u.union([u.object({name:u.string().optional(),avatar:u.string().optional(),alias:u.string().optional(),priceTag:u.number().optional()}),u.null()])})}),getConversations:Q({authRequired:!1,input:u.object({publicSignKeys:u.array(u.string()),auth:Rl.optional()}),output:u.object({conversations:u.array(u.object({id:u.string(),title:u.string(),participants:u.array(u.object({publicSignKey:u.string()}))}))})}),getConversationInfo:Q({authRequired:!1,input:u.object({conversationId:u.string(),auth:Rl.optional()}),output:u.union([u.object({conversationInfo:u.object({participants:u.array(u.object({publicSignKey:u.string(),name:u.string().optional(),avatar:u.string().optional(),alias:u.string().optional()})),isPartial:u.boolean(),hasCanvas:u.boolean()})}),u.object({error:u.literal("not-found")})])}),getVapidPublicKey:Q({authRequired:!1,input:u.object({}),output:u.object({publicKey:u.string()})}),getTurnCredentials:ne(u.object({}),u.union([u.object({urls:u.string(),username:u.string(),credential:u.string(),ttl:u.number()}),u.object({error:u.enum(["invalid-auth","missing-secret"])})])),registerPushSubscription:ne(u.object({subscription:u.object({endpoint:u.string(),expirationTime:u.number().nullable().optional().transform(e=>e??null),keys:u.object({p256dh:u.string(),auth:u.string()})}),conversationId:u.string().optional()}),u.object({success:u.literal(!0)})),unregisterPushSubscription:ne(u.object({endpoint:u.string()}),u.object({success:u.literal(!0)})),dismissNotifications:ne(u.object({conversationId:u.string(),excludeEndpoint:u.string().optional()}),u.object({success:u.literal(!0)})),heartbeat:ne(u.object({}),u.object({success:u.literal(!0)})),storeTransferPayload:Q({authRequired:!1,input:u.object({encryptedPayload:u.string().max(32768)}),output:u.object({relayId:u.string()})}),retrieveTransferPayload:Q({authRequired:!1,input:u.object({relayId:u.string()}),output:u.union([u.object({encryptedPayload:u.string()}),u.object({error:u.enum(["not-found"])})])}),getUploadUrl:ne(u.object({conversationId:u.string(),contentHash:u.string(),fileName:u.string(),contentType:u.string()}),u.union([u.object({uploadUrl:u.string(),fileUrl:u.string(),maxSize:u.number()}),u.object({error:u.enum(["not-participant","invalid-conversation"])})])),renameConversation:ne(u.object({conversationId:u.string(),title:u.string()}),u.union([u.object({success:u.literal(!0)}),u.object({success:u.literal(!1),error:u.enum(["not-found","invalid-auth","not-admin","invalid-title"])})])),getMessages:ne(u.object({conversationId:u.string(),limit:u.number().int().min(0).max(200).optional(),before:u.number().optional()}),u.union([u.object({messages:u.array(u.object({id:u.string(),payload:u.unknown(),timestamp:u.number()})),hasMore:u.boolean()}),u.object({error:u.enum(["not-participant","invalid-auth"])})])),saveCanvas:ne(u.object({conversationId:u.string(),encrypted:u.string(),expectedVersion:u.number().int().min(0)}),u.union([u.object({ok:u.literal(!0),version:u.number()}),u.object({ok:u.literal(!1),error:u.enum(["invalid-auth","not-participant","conflict"]),currentEncrypted:u.string().optional(),currentVersion:u.number().optional()})])),mintInstantToken:ne(u.object({includeConversations:u.boolean().optional(),conversationId:u.string().optional()}),u.union([u.object({token:u.string(),instantEmail:u.string(),conversations:u.array(u.object({id:u.string(),title:u.string(),updatedAt:u.number().optional(),participants:u.array(u.object({publicSignKey:u.string(),name:u.string().optional(),avatar:u.string().optional()})),archivedBy:u.array(u.object({publicSignKey:u.string()})).optional()})).optional(),conversationBootstrap:u.object({conversationId:u.string(),hasAccess:u.boolean(),title:u.string().optional(),participants:u.array(u.object({publicSignKey:u.string(),name:u.string().optional(),avatar:u.string().optional()})).optional(),encryptedKey:u.string().optional(),messages:u.array(u.object({id:u.string(),payload:u.unknown(),timestamp:u.number()})),hasMore:u.boolean()}).optional()}),u.object({error:u.enum(["invalid-auth","not-found"])})])),getCanvasRow:Q({authRequired:!1,input:u.object({conversationId:u.string(),auth:Rl.optional()}),output:u.object({row:u.object({id:u.string(),encrypted:u.string(),version:u.number()}).nullable()})})},Tr=Mp(Bp(zo),hw),Yh=async({url:e,credentials:t})=>{let n=await Cn(t.privateSignKey)?await Un(t,"setWebhook",{url:e}):void 0;return Tr({endpoint:"setWebhook",payload:{url:e,publicSignKey:t.publicSignKey,...n?{auth:{nonce:n.nonce,authToken:n.authToken}}:{}}})};var Hh=e=>Tr({endpoint:"issueNonce",payload:{publicSignKey:e}});var Wh=async e=>{let t=mr({endpoint:e.action,params:{publicSignKey:e.publicSignKey,payload:e.payload},nonce:e.nonce}),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t));return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")};var Xh="/chat";var gw=12,Qh=async e=>{let t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Cl(btoa(String.fromCharCode(...new Uint8Array(t)))).slice(0,gw)};var yw="MCowBQYDK2VwAyEABJDWi/dcXSzFvi4MSthH2bCoU5009eCw9rNtw2NL8sU=",vw=10*60*1e3,eg={name:"Ed25519"},tg=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0));var _w=({messageId:e,conversationId:t,timestamp:n,payload:i})=>"alice-webhook-v1:"+mr({messageId:e,conversationId:t,timestamp:n,payload:i});var rg=(e,t)=>{let n=e.serverSignature;if(!n||!Number.isFinite(e.timestamp)||Math.abs((t?.now??Date.now())-e.timestamp)>(t?.maxSkewMs??vw))return Promise.resolve(!1);let i=t?.publicKey??yw;return Promise.resolve().then(async()=>{let r=await crypto.subtle.importKey("spki",tg(i),eg,!1,["verify"]);return crypto.subtle.verify(eg,r,tg(n),new TextEncoder().encode(_w(e)))}).then(r=>r,()=>!1)},bw=1e4,Ln=new Set,ng=(e,t)=>{if(!t)return!0;let n=`${e}:${t}`;if(Ln.has(n))return!1;if(Ln.size>=bw){let i=Ln.values().next().value;i!==void 0&&Ln.delete(i)}return Ln.add(n),!0};var xw="Attachment expired",ig=e=>new Error(`${xw} (${e})`);var Ll=mr,ag=async e=>Eo({...e,conversationKey:await sg(e.credentials,e.conversation)}),$w=async(e,{privateSignKey:t,publicSignKey:n},i,r)=>{Gh(Ll(i));let o={...i,...r?{conversationId:r}:{},sentAt:Date.now()},a=Ll(o);return Vh(e,{payload:o,publicSignKey:n,signature:await To(t,a)})},ww=e=>e.type==="event"||e.type==="spinner"||e.type==="progress"||e.type==="reaction"&&!!e.remove||e.type==="call"&&e.action!=="offer",Eo=async({conversationKey:e,conversation:t,credentials:n,message:i})=>{let r=await $w(e,n,i,t),o=await Cn(n.privateSignKey)?await Un(n,"sendMessage",{conversation:t,encryptedMessage:r}):void 0;return Tr({endpoint:"sendMessage",payload:{conversation:t,silent:ww(i)?!0:void 0,senderPublicSignKey:n.publicSignKey,encryptedMessage:r,...o?{auth:{nonce:o.nonce,authToken:o.authToken}}:{}}})};var kw=e=>typeof e=="string",sg=async(e,t)=>{Rn(e);let n=await Cn(e.privateSignKey)?await Un(e,"conversationKey",{conversationId:t}):void 0,i=await Tr({endpoint:"conversationKey",payload:{conversationId:t,publicSignKey:e.publicSignKey,...n?{auth:{nonce:n.nonce,authToken:n.authToken}}:{}}});if("error"in i||!kw(i.conversationKey))throw new Error("No keys found for conversation");let r=await Ol(e.privateEncryptKey,i.conversationKey);return Ul(r,e),r},cg=async(e,t,n)=>{if(Rn(t),(e.serverSignature!==void 0||n?.requireServerSignature)&&!await rg(e,{publicKey:n?.webhookServerPublicKey,now:n?.now}))return;let i=e.conversationKey?await Ol(t.privateEncryptKey,e.conversationKey):await sg(t,e.conversationId);Ul(i,t);let r=e.conversationInfo&&!e.conversationInfo.isPartial?new Set(e.conversationInfo.participants.map(a=>a.publicSignKey)):void 0,o=await Iw(i,{conversationId:e.conversationId,allowedParticipantKeys:r})(e);if(o&&!(!n?.allowReplay&&!ng(t.publicSignKey,e.messageId)))return{conversationId:e.conversationId,message:o,conversationKey:i,messageId:e.messageId}},Sw=(e,t,n)=>{let i={publicSignKey:e,timestamp:t,text:"text"in n?n.text:""};return n.type==="call"?{...i,type:"call",callId:n.callId,action:n.action,sdp:n.sdp,duration:n.duration}:n.type==="spinner"?{...i,type:"spinner",active:n.active,elementId:n.elementId}:n.type==="progress"?{...i,type:"progress",percentage:n.percentage,elementId:n.elementId}:n.type==="edit"?{...i,type:"edit",editOf:n.editOf,attachments:n.attachments}:n.type==="reaction"?{...i,type:"reaction",reactTo:n.reactTo,emoji:n.emoji,remove:n.remove}:n.type==="event"?{...i,type:"event",action:n.action,data:n.data}:{...i,type:"text",attachments:n.attachments,elementId:"elementId"in n?n.elementId:void 0,replyTo:n.replyTo}},Iw=(e,t)=>async({payload:n,timestamp:i})=>{try{let{signature:r,payload:o,publicSignKey:a}=await qh(e,n);return t?.allowedParticipantKeys&&!t.allowedParticipantKeys.has(a)||!await Fh(r,a,Ll(o))||t?.conversationId&&o.conversationId!==void 0&&o.conversationId!==t.conversationId||o.sentAt!==void 0&&(typeof o.sentAt!="number"||!Number.isFinite(o.sentAt)||o.sentAt<=0)?void 0:Sw(a,i,o)}catch{return}};var ug=async(e,t)=>{let{publicKey:n,privateKey:i}=await Al("sign"),r=await Al("encrypt");return await Tr({endpoint:"createAnonymousIdentity",payload:{name:e,publicSignKey:n,publicEncryptKey:r.publicKey,...t?{alias:t}:{}}}),Rn({publicSignKey:n,privateSignKey:i,privateEncryptKey:r.privateKey})},Tw="https://aliceandbot.com",lg=async(e,t)=>{let n=`${Tw}${Xh}?chatWith=${await Qh(e)}`;return t?`${n}&topic=${encodeURIComponent(t)}`:n};var og="/alice-and-bot-attachments/",zw=e=>{if(!e||/[\p{Cc}\\]/u.test(e))return!1;try{if(decodeURIComponent(e).includes(".."))return!1;let t=new URL(e);return t.protocol!=="https:"||t.hostname!=="storage.googleapis.com"?!1:t.pathname.startsWith(og)&&t.pathname.length>og.length}catch{return!1}},dg=async({url:e,conversationKey:t})=>{if(!zw(e))throw new Error("Untrusted attachment URL");let n=await fetch(e);if(n.status===404||n.status===410)throw ig(n.status);if(!n.ok)throw new Error(`Download failed: ${n.status} ${await n.text()}`);let i=await n.arrayBuffer();return Kh(t,i)},sj=`${zo}/ui-update`;import{Buffer as fg}from"node:buffer";import{timingSafeEqual as jw}from"node:crypto";var pg="/alice-and-bot-attachments/",Ew=/^\.[a-zA-Z0-9]{1,10}$/,mg=()=>{let e=crypto.getRandomValues(new Uint8Array(12));return`pair-${Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}`},hg=(e,t)=>{let n=fg.from(e),i=fg.from(t);return n.length===i.length&&jw(n,i)},Pw=(e,t)=>{if(!t||t.length<16)return!1;let n=e.trim();if(!n)return!1;let i=n.toLowerCase().startsWith("/pair ")?n.slice(6).trim():n;return hg(i,t)},gg=({senderPublicSignKey:e,botPublicSignKey:t,messageText:n,pairingCode:i,authorizedPublicSignKey:r})=>!e||e===t?{status:"ignore-self"}:r?hg(e,r)?{status:"authorized"}:{status:"rejected",reason:"wrong-sender"}:Pw(n,i)?{status:"paired-now",authorizedPublicSignKey:e}:{status:"rejected",reason:"unpaired"},yg=e=>{if(!e||/[\p{Cc}\\]/u.test(e))return!1;try{if(decodeURIComponent(e).includes(".."))return!1;let t=new URL(e);return t.protocol!=="https:"||t.hostname!=="storage.googleapis.com"?!1:t.pathname.startsWith(pg)&&t.pathname.length>pg.length}catch{return!1}},vg=(e,t=".bin")=>{let n=e.startsWith(".")?e.toLowerCase():`.${e.toLowerCase()}`;return Ew.test(n)?n:t};var $g=()=>Zl.env.ALICEANDBOT_MCP_CONFIG_DIR||jr.join(bg.homedir(),".config","aliceandbot-mcp"),wg=()=>jr.join($g(),"credentials.json"),Bl=()=>jr.join($g(),"state.json"),kg=Zl.env.ALICEANDBOT_RELAY_URL||"https://api.aliceandbot.com/relay",Aw=3e3,Po=async e=>{try{return JSON.parse(await Nw(e,"utf8"))}catch{return null}},Ml=async(e,t)=>{await Ow(jr.dirname(e),{recursive:!0,mode:448}),await _g(e,JSON.stringify(t),{mode:384})},Sg=e=>!!(e&&typeof e.relayToken=="string"&&e.relayToken&&typeof e.pairingCode=="string"&&e.pairingCode.length>=16),Ig=e=>({relayToken:e.relayToken,pairingCode:e.pairingCode,...typeof e.authorizedPublicSignKey=="string"&&e.authorizedPublicSignKey?{authorizedPublicSignKey:e.authorizedPublicSignKey}:{}}),Cw=async()=>{let e=wg(),t=await Po(e);if(t)return t;let n=await ug("MCP Session");return await Ml(e,n),n},Uw=async()=>{let e=Bl(),t=await Po(e);if(Sg(t))return Ig(t);let n={relayToken:typeof t?.relayToken=="string"&&t.relayToken?t.relayToken:crypto.randomUUID(),pairingCode:mg(),...typeof t?.authorizedPublicSignKey=="string"&&t.authorizedPublicSignKey?{authorizedPublicSignKey:t.authorizedPublicSignKey}:{}};return await Ml(e,n),n},ie={credentials:null,state:null,pollTimer:null,pollInFlight:null},Dl=new Map,Yt=[],Oo=e=>({content:[{type:"text",text:e}]}),zr=e=>({content:[{type:"text",text:e}],isError:!0}),Rw=e=>!!(e&&typeof e=="object"&&"messages"in e&&Array.isArray(e.messages)),Lw=e=>async t=>{if(t.type==="location")return`[Location attachment: ${t.latitude}, ${t.longitude}${t.label?` (${t.label})`:""}]`;if(!yg(t.url))return"[Blocked attachment from untrusted URL]";try{let n=await dg({url:t.url,conversationKey:e}),i="mimeType"in t?t.mimeType.match(/\/([^;]+)/)?.[1]??"bin":"bin",r=vg(i,".bin"),o=jr.join(bg.tmpdir(),`alice_attachment_${Date.now()}_${crypto.randomUUID().slice(0,8)}${r}`);return await _g(o,new Uint8Array(n),{mode:384}),`[Attachment saved to ${o}]`}catch(n){return`[Failed to download attachment: ${n}]`}},Dw=(e,t)=>async n=>{let i=await cg(n,t,{requireServerSignature:!0});if(!i)return null;let{conversationId:r,message:o,conversationKey:a}=i,s=gg({senderPublicSignKey:o.publicSignKey,botPublicSignKey:t.publicSignKey,messageText:o.text??"",pairingCode:e.pairingCode,authorizedPublicSignKey:e.authorizedPublicSignKey});if(s.status==="ignore-self"||s.status==="rejected")return null;if(s.status==="paired-now")return e.authorizedPublicSignKey=s.authorizedPublicSignKey,await Ml(Bl(),e),Dl.set(r,{conversationKey:a}),await Eo({conversationKey:a,conversation:r,credentials:t,message:{type:"text",text:"Device paired with this MCP session."}}).catch(()=>{}),null;if(Dl.set(r,{conversationKey:a}),o.type!=="text"&&o.type!=="edit")return null;let c="attachments"in o&&o.attachments?await Promise.all(o.attachments.map(Lw(a))):[],d=[o.text,...c].filter(Boolean).join(`
|
|
66
|
+
`);return d?{conversationId:r,text:d,type:o.type}:null},Zw=async()=>{let{state:e,credentials:t}=ie;if(!(!e||!t))try{let n=await fetch(`${kg}/poll/${e.relayToken}`);if(!n.ok)return;let i=await n.json();if(!Rw(i)||!i.messages.length)return;let r=(await Promise.all(i.messages.map(Dw(e,t)))).filter(o=>o!==null);r.length&&(Yt.push(...r),vt.sendToolListChanged().catch(()=>{}))}catch{}},Tg=()=>{if(ie.pollInFlight)return ie.pollInFlight;let e=Zw().finally(()=>{ie.pollInFlight=null});return ie.pollInFlight=e,e},zg=()=>{ie.pollTimer||(ie.pollTimer=setInterval(()=>{Tg()},Aw))},Fl=async()=>{if(ie.credentials&&ie.state)return!0;let[e,t]=await Promise.all([Po(wg()),Po(Bl())]);return!e||!Sg(t)?!1:(ie.credentials=e,ie.state=Ig(t),zg(),!0)},Bw=async()=>{let e=await Cw(),t=await Uw();ie.credentials=e,ie.state=t;let n=await Yh({url:`${kg}/webhook/${t.relayToken}`,credentials:e});if(!n.success)return zr(`Failed to register webhook: ${n.error}`);zg();let r=`MCP_${jr.basename(Zl.cwd())||"session"}_${Date.now()}`,o=await lg(e.publicSignKey,r),a=await xg.default.toString(o,{type:"utf8"});return Oo([a,`Chat with this session: ${o}`,...t.authorizedPublicSignKey?["Device status: Paired"]:[`Pairing code: ${t.pairingCode}`,`Send "${t.pairingCode}" (or "/pair ${t.pairingCode}") as your first message in Alice&Bot to pair your device.`],"","Scan the QR code or open the link in Alice&Bot.","You'll be notified automatically when messages arrive, or call aliceandbot_read to check anytime."].join(`
|
|
67
|
+
`))},Mw=async()=>{if(!ie.credentials&&!await Fl())return zr("Run aliceandbot_setup first.");if(await Tg(),!Yt.length)return Oo("No new messages.");let e=Yt.map(t=>`Conversation: ${t.conversationId}
|
|
68
68
|
Message: ${t.text}`).join(`
|
|
69
69
|
|
|
70
|
-
`);return Yt.length=0,vt.sendToolListChanged().catch(()=>{}),Oo(e)},
|
|
70
|
+
`);return Yt.length=0,vt.sendToolListChanged().catch(()=>{}),Oo(e)},Fw=async(e,t)=>{if(!e.trim()||!t.trim())return zr("Both conversation and text are required.");if(!ie.credentials&&!await Fl())return zr("Run aliceandbot_setup first.");let{credentials:n}=ie;if(!n)return zr("Run aliceandbot_setup first.");let i=Dl.get(e);return i?.conversationKey?await Eo({conversationKey:i.conversationKey,conversation:e,credentials:n,message:{type:"text",text:t}}):await ag({credentials:n,conversation:e,message:{type:"text",text:t}}),Oo("Sent.")},vt=new ni({name:"aliceandbot",version:"0.2.0"},{capabilities:{tools:{listChanged:!0},prompts:{}}});vt.onclose=()=>{ie.pollTimer&&(clearInterval(ie.pollTimer),ie.pollTimer=null)};vt.setRequestHandler(Fo,()=>({tools:[{name:"aliceandbot_setup",description:"Set up Alice&Bot messaging. Returns a QR code and link to chat with this session from your phone.",inputSchema:{type:"object",properties:{}}},{name:"aliceandbot_read",description:Yt.length?`[${Yt.length}] new message${Yt.length>1?"s":""} waiting. Call this tool to read them.`:"Check for and read incoming Alice&Bot messages.",inputSchema:{type:"object",properties:{}}},{name:"aliceandbot_reply",description:"Send a reply via Alice&Bot.",inputSchema:{type:"object",properties:{conversation:{type:"string",description:"Conversation ID to reply to"},text:{type:"string",description:"Message text"}},required:["conversation","text"]}}]}));vt.setRequestHandler(Vo,e=>{let{name:t}=e.params,n=e.params.arguments??{},i=typeof n.conversation=="string"?n.conversation:"",r=typeof n.text=="string"?n.text:"";return t==="aliceandbot_setup"?Bw():t==="aliceandbot_read"?Mw():t==="aliceandbot_reply"?Fw(i,r):zr(`Unknown tool: ${t}`)});vt.setRequestHandler(Bo,()=>({prompts:[{name:"aliceandbot",description:"Chat with this session via Alice&Bot"}]}));vt.setRequestHandler(Mo,e=>{if(e.params.name!=="aliceandbot")throw new He(Re.InvalidParams,`Unknown prompt: ${e.params.name}`);return{messages:[{role:"user",content:{type:"text",text:["Set up Alice&Bot so I can message this session from my phone.","Call aliceandbot_setup to get a QR code and pairing code.","Read incoming messages with aliceandbot_read and respond with aliceandbot_reply."].join(" ")}}]}});var jg=async()=>{await Fl(),await vt.connect(new oi)};await jg();
|
|
71
71
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|