@capgo/cli 8.32.2 → 8.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/package.json +1 -1
- package/dist/src/schemas/common.d.ts +2 -0
- package/dist/src/sdk.js +4 -4
- package/package.json +1 -1
package/dist/src/sdk.js
CHANGED
|
@@ -109,7 +109,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
109
109
|
`)}),D.__defineSetter__("stack",function(J){return[J].concat(D.stack).join(`
|
|
110
110
|
|
|
111
111
|
`)}),D}});var td=A((IE$,ad)=>{var d9=s("constants"),Fv0=process.cwd,OW=null,Uv0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!OW)OW=Fv0.call(process);return OW};try{process.cwd()}catch($){}if(typeof process.chdir==="function"){if(VW=process.chdir,process.chdir=function($){OW=null,VW.call(process,$)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,VW)}var VW;ad.exports=Gv0;function Gv0($){if(d9.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))D($);if(!$.lutimes)J($);if($.chown=Y($.chown),$.fchown=Y($.fchown),$.lchown=Y($.lchown),$.chmod=X($.chmod),$.fchmod=X($.fchmod),$.lchmod=X($.lchmod),$.chownSync=Z($.chownSync),$.fchownSync=Z($.fchownSync),$.lchownSync=Z($.lchownSync),$.chmodSync=Q($.chmodSync),$.fchmodSync=Q($.fchmodSync),$.lchmodSync=Q($.lchmodSync),$.stat=F($.stat),$.fstat=F($.fstat),$.lstat=F($.lstat),$.statSync=U($.statSync),$.fstatSync=U($.fstatSync),$.lstatSync=U($.lstatSync),$.chmod&&!$.lchmod)$.lchmod=function(q,W,z){if(z)process.nextTick(z)},$.lchmodSync=function(){};if($.chown&&!$.lchown)$.lchown=function(q,W,z,H){if(H)process.nextTick(H)},$.lchownSync=function(){};if(Uv0==="win32")$.rename=typeof $.rename!=="function"?$.rename:function(q){function W(z,H,O){var V=Date.now(),K=0;q(z,H,function L(E){if(E&&(E.code==="EACCES"||E.code==="EPERM"||E.code==="EBUSY")&&Date.now()-V<60000){if(setTimeout(function(){$.stat(H,function(N,M){if(N&&N.code==="ENOENT")q(z,H,L);else O(E)})},K),K<100)K+=10;return}if(O)O(E)})}if(Object.setPrototypeOf)Object.setPrototypeOf(W,q);return W}($.rename);$.read=typeof $.read!=="function"?$.read:function(q){function W(z,H,O,V,K,L){var E;if(L&&typeof L==="function"){var N=0;E=function(M,w,R){if(M&&M.code==="EAGAIN"&&N<10)return N++,q.call($,z,H,O,V,K,E);L.apply(this,arguments)}}return q.call($,z,H,O,V,K,E)}if(Object.setPrototypeOf)Object.setPrototypeOf(W,q);return W}($.read),$.readSync=typeof $.readSync!=="function"?$.readSync:function(q){return function(W,z,H,O,V){var K=0;while(!0)try{return q.call($,W,z,H,O,V)}catch(L){if(L.code==="EAGAIN"&&K<10){K++;continue}throw L}}}($.readSync);function D(q){q.lchmod=function(W,z,H){q.open(W,d9.O_WRONLY|d9.O_SYMLINK,z,function(O,V){if(O){if(H)H(O);return}q.fchmod(V,z,function(K){q.close(V,function(L){if(H)H(K||L)})})})},q.lchmodSync=function(W,z){var H=q.openSync(W,d9.O_WRONLY|d9.O_SYMLINK,z),O=!0,V;try{V=q.fchmodSync(H,z),O=!1}finally{if(O)try{q.closeSync(H)}catch(K){}else q.closeSync(H)}return V}}function J(q){if(d9.hasOwnProperty("O_SYMLINK")&&q.futimes)q.lutimes=function(W,z,H,O){q.open(W,d9.O_SYMLINK,function(V,K){if(V){if(O)O(V);return}q.futimes(K,z,H,function(L){q.close(K,function(E){if(O)O(L||E)})})})},q.lutimesSync=function(W,z,H){var O=q.openSync(W,d9.O_SYMLINK),V,K=!0;try{V=q.futimesSync(O,z,H),K=!1}finally{if(K)try{q.closeSync(O)}catch(L){}else q.closeSync(O)}return V};else if(q.futimes)q.lutimes=function(W,z,H,O){if(O)process.nextTick(O)},q.lutimesSync=function(){}}function X(q){if(!q)return q;return function(W,z,H){return q.call($,W,z,function(O){if(G(O))O=null;if(H)H.apply(this,arguments)})}}function Q(q){if(!q)return q;return function(W,z){try{return q.call($,W,z)}catch(H){if(!G(H))throw H}}}function Y(q){if(!q)return q;return function(W,z,H,O){return q.call($,W,z,H,function(V){if(G(V))V=null;if(O)O.apply(this,arguments)})}}function Z(q){if(!q)return q;return function(W,z,H){try{return q.call($,W,z,H)}catch(O){if(!G(O))throw O}}}function F(q){if(!q)return q;return function(W,z,H){if(typeof z==="function")H=z,z=null;function O(V,K){if(K){if(K.uid<0)K.uid+=4294967296;if(K.gid<0)K.gid+=4294967296}if(H)H.apply(this,arguments)}return z?q.call($,W,z,O):q.call($,W,O)}}function U(q){if(!q)return q;return function(W,z){var H=z?q.call($,W,z):q.call($,W);if(H){if(H.uid<0)H.uid+=4294967296;if(H.gid<0)H.gid+=4294967296}return H}}function G(q){if(!q)return!0;if(q.code==="ENOSYS")return!0;var W=!process.getuid||process.getuid()!==0;if(W){if(q.code==="EINVAL"||q.code==="EPERM")return!0}return!1}}});var $c=A((jE$,ed)=>{var sd=s("stream").Stream;ed.exports=qv0;function qv0($){return{ReadStream:D,WriteStream:J};function D(X,Q){if(!(this instanceof D))return new D(X,Q);sd.call(this);var Y=this;this.path=X,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Q=Q||{};var Z=Object.keys(Q);for(var F=0,U=Z.length;F<U;F++){var G=Z[F];this[G]=Q[G]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){Y._read()});return}$.open(this.path,this.flags,this.mode,function(q,W){if(q){Y.emit("error",q),Y.readable=!1;return}Y.fd=W,Y.emit("open",W),Y._read()})}function J(X,Q){if(!(this instanceof J))return new J(X,Q);sd.call(this),this.path=X,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Q=Q||{};var Y=Object.keys(Q);for(var Z=0,F=Y.length;Z<F;Z++){var U=Y[Z];this[U]=Q[U]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=$.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var Jc=A((TE$,Dc)=>{Dc.exports=zv0;var Wv0=Object.getPrototypeOf||function($){return $.__proto__};function zv0($){if($===null||typeof $!=="object")return $;if($ instanceof Object)var D={__proto__:Wv0($)};else var D=Object.create(null);return Object.getOwnPropertyNames($).forEach(function(J){Object.defineProperty(D,J,Object.getOwnPropertyDescriptor($,J))}),D}});var y1=A((CE$,uw)=>{var T1=s("fs"),Hv0=td(),Ov0=$c(),Vv0=Jc(),KW=s("util"),WD,MW;if(typeof Symbol==="function"&&typeof Symbol.for==="function")WD=Symbol.for("graceful-fs.queue"),MW=Symbol.for("graceful-fs.previous");else WD="___graceful-fs.queue",MW="___graceful-fs.previous";function Kv0(){}function Qc($,D){Object.defineProperty($,WD,{get:function(){return D}})}var EJ=Kv0;if(KW.debuglog)EJ=KW.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))EJ=function(){var $=KW.format.apply(KW,arguments);$="GFS4: "+$.split(/\n/).join(`
|
|
112
|
-
GFS4: `),console.error($)};if(!T1[WD]){if(vw=global[WD]||[],Qc(T1,vw),T1.close=function($){function D(J,X){return $.call(T1,J,function(Q){if(!Q)Xc();if(typeof X==="function")X.apply(this,arguments)})}return Object.defineProperty(D,MW,{value:$}),D}(T1.close),T1.closeSync=function($){function D(J){$.apply(T1,arguments),Xc()}return Object.defineProperty(D,MW,{value:$}),D}(T1.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){EJ(T1[WD]),s("assert").equal(T1[WD].length,0)})}var vw;if(!global[WD])Qc(global,T1[WD]);uw.exports=_w(Vv0(T1));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!T1.__patched)uw.exports=_w(T1),T1.__patched=!0;function _w($){Hv0($),$.gracefulify=_w,$.createReadStream=w,$.createWriteStream=R;var D=$.readFile;$.readFile=J;function J(I,_,x){if(typeof _==="function")x=_,_=null;return c(I,_,x);function c(d,D0,b,j){return D(d,D0,function(T){if(T&&(T.code==="EMFILE"||T.code==="ENFILE"))xX([c,[d,D0,b],T,j||Date.now(),Date.now()]);else if(typeof b==="function")b.apply(this,arguments)})}}var X=$.writeFile;$.writeFile=Q;function Q(I,_,x,c){if(typeof x==="function")c=x,x=null;return d(I,_,x,c);function d(D0,b,j,T,u){return X(D0,b,j,function(m){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}var Y=$.appendFile;if(Y)$.appendFile=Z;function Z(I,_,x,c){if(typeof x==="function")c=x,x=null;return d(I,_,x,c);function d(D0,b,j,T,u){return Y(D0,b,j,function(m){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}var F=$.copyFile;if(F)$.copyFile=U;function U(I,_,x,c){if(typeof x==="function")c=x,x=0;return d(I,_,x,c);function d(D0,b,j,T,u){return F(D0,b,j,function(m){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}var G=$.readdir;$.readdir=W;var q=/^v[0-5]\./;function W(I,_,x){if(typeof _==="function")x=_,_=null;var c=q.test(process.version)?function(b,j,T,u){return G(b,d(b,j,T,u))}:function(b,j,T,u){return G(b,j,d(b,j,T,u))};return c(I,_,x);function d(D0,b,j,T){return function(u,m){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))xX([c,[D0,b,j],u,T||Date.now(),Date.now()]);else{if(m&&m.sort)m.sort();if(typeof j==="function")j.call(this,u,m)}}}}if(process.version.substr(0,4)==="v0.8"){var z=Ov0($);L=z.ReadStream,N=z.WriteStream}var H=$.ReadStream;if(H)L.prototype=Object.create(H.prototype),L.prototype.open=E;var O=$.WriteStream;if(O)N.prototype=Object.create(O.prototype),N.prototype.open=M;Object.defineProperty($,"ReadStream",{get:function(){return L},set:function(I){L=I},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return N},set:function(I){N=I},enumerable:!0,configurable:!0});var V=L;Object.defineProperty($,"FileReadStream",{get:function(){return V},set:function(I){V=I},enumerable:!0,configurable:!0});var K=N;Object.defineProperty($,"FileWriteStream",{get:function(){return K},set:function(I){K=I},enumerable:!0,configurable:!0});function L(I,_){if(this instanceof L)return H.apply(this,arguments),this;else return L.apply(Object.create(L.prototype),arguments)}function E(){var I=this;v(I.path,I.flags,I.mode,function(_,x){if(_){if(I.autoClose)I.destroy();I.emit("error",_)}else I.fd=x,I.emit("open",x),I.read()})}function N(I,_){if(this instanceof N)return O.apply(this,arguments),this;else return N.apply(Object.create(N.prototype),arguments)}function M(){var I=this;v(I.path,I.flags,I.mode,function(_,x){if(_)I.destroy(),I.emit("error",_);else I.fd=x,I.emit("open",x)})}function w(I,_){return new $.ReadStream(I,_)}function R(I,_){return new $.WriteStream(I,_)}var S=$.open;$.open=v;function v(I,_,x,c){if(typeof x==="function")c=x,x=null;return d(I,_,x,c);function d(D0,b,j,T,u){return S(D0,b,j,function(m,i){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}return $}function xX($){EJ("ENQUEUE",$[0].name,$[1]),T1[WD].push($),kw()}var NW;function Xc(){var $=Date.now();for(var D=0;D<T1[WD].length;++D)if(T1[WD][D].length>2)T1[WD][D][3]=$,T1[WD][D][4]=$;kw()}function kw(){if(clearTimeout(NW),NW=void 0,T1[WD].length===0)return;var $=T1[WD].shift(),D=$[0],J=$[1],X=$[2],Q=$[3],Y=$[4];if(Q===void 0)EJ("RETRY",D.name,J),D.apply(null,J);else if(Date.now()-Q>=60000){EJ("TIMEOUT",D.name,J);var Z=J.pop();if(typeof Z==="function")Z.call(null,X)}else{var F=Date.now()-Y,U=Math.max(Y-Q,1),G=Math.min(U*1.2,100);if(F>=G)EJ("RETRY",D.name,J),D.apply(null,J.concat([Q]));else T1[WD].push($)}if(NW===void 0)NW=setTimeout(kw,0)}});var Zc=A((PE$,Yc)=>{function n6($,D){if(typeof D==="boolean")D={forever:D};if(this._originalTimeouts=JSON.parse(JSON.stringify($)),this._timeouts=$,this._options=D||{},this._maxRetryTime=D&&D.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}Yc.exports=n6;n6.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};n6.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};n6.prototype.retry=function($){if(this._timeout)clearTimeout(this._timeout);if(!$)return!1;var D=new Date().getTime();if($&&D-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push($);var J=this._timeouts.shift();if(J===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),J=this._timeouts.shift();else return!1;var X=this,Q=setTimeout(function(){if(X._attempts++,X._operationTimeoutCb){if(X._timeout=setTimeout(function(){X._operationTimeoutCb(X._attempts)},X._operationTimeout),X._options.unref)X._timeout.unref()}X._fn(X._attempts)},J);if(this._options.unref)Q.unref();return!0};n6.prototype.attempt=function($,D){if(this._fn=$,D){if(D.timeout)this._operationTimeout=D.timeout;if(D.cb)this._operationTimeoutCb=D.cb}var J=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){J._operationTimeoutCb()},J._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};n6.prototype.try=function($){console.log("Using RetryOperation.try() is deprecated"),this.attempt($)};n6.prototype.start=function($){console.log("Using RetryOperation.start() is deprecated"),this.attempt($)};n6.prototype.start=n6.prototype.try;n6.prototype.errors=function(){return this._errors};n6.prototype.attempts=function(){return this._attempts};n6.prototype.mainError=function(){if(this._errors.length===0)return null;var $={},D=null,J=0;for(var X=0;X<this._errors.length;X++){var Q=this._errors[X],Y=Q.message,Z=($[Y]||0)+1;if($[Y]=Z,Z>=J)D=Q,J=Z}return D}});var Uc=A((Mv0)=>{var Nv0=Zc();Mv0.operation=function($){var D=Mv0.timeouts($);return new Nv0(D,{forever:$&&$.forever,unref:$&&$.unref,maxRetryTime:$&&$.maxRetryTime})};Mv0.timeouts=function($){if($ instanceof Array)return[].concat($);var D={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var J in $)D[J]=$[J];if(D.minTimeout>D.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var X=[];for(var Q=0;Q<D.retries;Q++)X.push(this.createTimeout(Q,D));if($&&$.forever&&!X.length)X.push(this.createTimeout(Q,D));return X.sort(function(Y,Z){return Y-Z}),X};Mv0.createTimeout=function($,D){var J=D.randomize?Math.random()+1:1,X=Math.round(J*D.minTimeout*Math.pow(D.factor,$));return X=Math.min(X,D.maxTimeout),X};Mv0.wrap=function($,D,J){if(D instanceof Array)J=D,D=null;if(!J){J=[];for(var X in $)if(typeof $[X]==="function")J.push(X)}for(var Q=0;Q<J.length;Q++){var Y=J[Q],Z=$[Y];$[Y]=function(U){var G=Mv0.operation(D),q=Array.prototype.slice.call(arguments,1),W=q.pop();q.push(function(z){if(G.retry(z))return;if(z)arguments[0]=G.mainError();W.apply(this,arguments)}),G.attempt(function(){U.apply($,q)})}.bind($,Z),$[Y].options=D}}});var Gc=A((xE$,LW)=>{LW.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")LW.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")LW.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var EW=A((vE$,_X)=>{var B1=global.process,RJ=function($){return $&&typeof $==="object"&&typeof $.removeListener==="function"&&typeof $.emit==="function"&&typeof $.reallyExit==="function"&&typeof $.listeners==="function"&&typeof $.kill==="function"&&typeof $.pid==="number"&&typeof $.on==="function"};if(!RJ(B1))_X.exports=function(){return function(){}};else{if(yw=s("assert"),AJ=Gc(),fw=/^win/i.test(B1.platform),vX=s("events"),typeof vX!=="function")vX=vX.EventEmitter;if(B1.__signal_exit_emitter__)a1=B1.__signal_exit_emitter__;else a1=B1.__signal_exit_emitter__=new vX,a1.count=0,a1.emitted={};if(!a1.infinite)a1.setMaxListeners(1/0),a1.infinite=!0;_X.exports=function($,D){if(!RJ(global.process))return function(){};if(yw.equal(typeof $,"function","a callback must be provided for exit handler"),IJ===!1)wW();var J="exit";if(D&&D.alwaysLast)J="afterexit";var X=function(){if(a1.removeListener(J,$),a1.listeners("exit").length===0&&a1.listeners("afterexit").length===0)zF()};return a1.on(J,$),X},zF=function(){if(!IJ||!RJ(global.process))return;IJ=!1,AJ.forEach(function(D){try{B1.removeListener(D,HF[D])}catch(J){}}),B1.emit=OF,B1.reallyExit=BW,a1.count-=1},_X.exports.unload=zF,c9=function(D,J,X){if(a1.emitted[D])return;a1.emitted[D]=!0,a1.emit(D,J,X)},HF={},AJ.forEach(function($){HF[$]=function(){if(!RJ(global.process))return;var J=B1.listeners($);if(J.length===a1.count){if(zF(),c9("exit",null,$),c9("afterexit",null,$),fw&&$==="SIGHUP")$="SIGINT";B1.kill(B1.pid,$)}}}),_X.exports.signals=function(){return AJ},IJ=!1,wW=function(){if(IJ||!RJ(global.process))return;IJ=!0,a1.count+=1,AJ=AJ.filter(function(D){try{return B1.on(D,HF[D]),!0}catch(J){return!1}}),B1.emit=bw,B1.reallyExit=hw},_X.exports.load=wW,BW=B1.reallyExit,hw=function(D){if(!RJ(global.process))return;B1.exitCode=D||0,c9("exit",B1.exitCode,null),c9("afterexit",B1.exitCode,null),BW.call(B1,B1.exitCode)},OF=B1.emit,bw=function(D,J){if(D==="exit"&&RJ(global.process)){if(J!==void 0)B1.exitCode=J;var X=OF.apply(this,arguments);return c9("exit",B1.exitCode,null),c9("afterexit",B1.exitCode,null),X}else return OF.apply(this,arguments)}}var yw,AJ,fw,vX,a1,zF,c9,HF,IJ,wW,BW,hw,OF,bw});var Wc=A((Av0,gw)=>{var qc=Symbol();function Ev0($,D,J){let X=D[qc];if(X)return D.stat($,(Y,Z)=>{if(Y)return J(Y);J(null,Z.mtime,X)});let Q=new Date(Math.ceil(Date.now()/1000)*1000+5);D.utimes($,Q,Q,(Y)=>{if(Y)return J(Y);D.stat($,(Z,F)=>{if(Z)return J(Z);let U=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(D,qc,{value:U}),J(null,F.mtime,U)})})}function Rv0($){let D=Date.now();if($==="s")D=Math.ceil(D/1000)*1000;return new Date(D)}Av0.probe=Ev0;Av0.getMtime=Rv0});var Kc=A((_v0,KF)=>{var Tv0=s("path"),cw=y1(),Cv0=Uc(),Pv0=EW(),zc=Wc(),o8={};function VF($,D){return D.lockfilePath||`${$}.lock`}function lw($,D,J){if(!D.realpath)return J(null,Tv0.resolve($));D.fs.realpath($,J)}function dw($,D,J){let X=VF($,D);D.fs.mkdir(X,(Q)=>{if(!Q)return zc.probe(X,D.fs,(Y,Z,F)=>{if(Y)return D.fs.rmdir(X,()=>{}),J(Y);J(null,Z,F)});if(Q.code!=="EEXIST")return J(Q);if(D.stale<=0)return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));D.fs.stat(X,(Y,Z)=>{if(Y){if(Y.code==="ENOENT")return dw($,{...D,stale:0},J);return J(Y)}if(!Hc(Z,D))return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));Oc($,D,(F)=>{if(F)return J(F);dw($,{...D,stale:0},J)})})})}function Hc($,D){return $.mtime.getTime()<Date.now()-D.stale}function Oc($,D,J){D.fs.rmdir(VF($,D),(X)=>{if(X&&X.code!=="ENOENT")return J(X);J()})}function RW($,D){let J=o8[$];if(J.updateTimeout)return;if(J.updateDelay=J.updateDelay||D.update,J.updateTimeout=setTimeout(()=>{J.updateTimeout=null,D.fs.stat(J.lockfilePath,(X,Q)=>{let Y=J.lastUpdate+D.stale<Date.now();if(X){if(X.code==="ENOENT"||Y)return mw($,J,Object.assign(X,{code:"ECOMPROMISED"}));return J.updateDelay=1000,RW($,D)}if(J.mtime.getTime()!==Q.mtime.getTime())return mw($,J,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=zc.getMtime(J.mtimePrecision);D.fs.utimes(J.lockfilePath,F,F,(U)=>{let G=J.lastUpdate+D.stale<Date.now();if(J.released)return;if(U){if(U.code==="ENOENT"||G)return mw($,J,Object.assign(U,{code:"ECOMPROMISED"}));return J.updateDelay=1000,RW($,D)}J.mtime=F,J.lastUpdate=Date.now(),J.updateDelay=null,RW($,D)})})},J.updateDelay),J.updateTimeout.unref)J.updateTimeout.unref()}function mw($,D,J){if(D.released=!0,D.updateTimeout)clearTimeout(D.updateTimeout);if(o8[$]===D)delete o8[$];D.options.onCompromised(J)}function Sv0($,D,J){D={stale:1e4,update:null,realpath:!0,retries:0,fs:cw,onCompromised:(X)=>{throw X},...D},D.retries=D.retries||0,D.retries=typeof D.retries==="number"?{retries:D.retries}:D.retries,D.stale=Math.max(D.stale||0,2000),D.update=D.update==null?D.stale/2:D.update||0,D.update=Math.max(Math.min(D.update,D.stale/2),1000),lw($,D,(X,Q)=>{if(X)return J(X);let Y=Cv0.operation(D.retries);Y.attempt(()=>{dw(Q,D,(Z,F,U)=>{if(Y.retry(Z))return;if(Z)return J(Y.mainError());let G=o8[Q]={lockfilePath:VF(Q,D),mtime:F,mtimePrecision:U,options:D,lastUpdate:Date.now()};RW(Q,D),J(null,(q)=>{if(G.released)return q&&q(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));Vc(Q,{...D,realpath:!1},q)})})})})}function Vc($,D,J){D={fs:cw,realpath:!0,...D},lw($,D,(X,Q)=>{if(X)return J(X);let Y=o8[Q];if(!Y)return J(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));Y.updateTimeout&&clearTimeout(Y.updateTimeout),Y.released=!0,delete o8[Q],Oc(Q,D,J)})}function xv0($,D,J){D={stale:1e4,realpath:!0,fs:cw,...D},D.stale=Math.max(D.stale||0,2000),lw($,D,(X,Q)=>{if(X)return J(X);D.fs.stat(VF(Q,D),(Y,Z)=>{if(Y)return Y.code==="ENOENT"?J(null,!1):J(Y);return J(null,!Hc(Z,D))})})}function vv0(){return o8}Pv0(()=>{for(let $ in o8){let D=o8[$].options;try{D.fs.rmdirSync(VF($,D))}catch(J){}}});_v0.lock=Sv0;_v0.unlock=Vc;_v0.check=xv0;_v0.getLocks=vv0});var Mc=A((_E$,Nc)=>{var hv0=y1();function bv0($){let D=["mkdir","realpath","stat","rmdir","utimes"],J={...$};return D.forEach((X)=>{J[X]=(...Q)=>{let Y=Q.pop(),Z;try{Z=$[`${X}Sync`](...Q)}catch(F){return Y(F)}Y(null,Z)}}),J}function gv0($){return(...D)=>new Promise((J,X)=>{D.push((Q,Y)=>{if(Q)X(Q);else J(Y)}),$(...D)})}function mv0($){return(...D)=>{let J,X;if(D.push((Q,Y)=>{J=Q,X=Y}),$(...D),J)throw J;return X}}function dv0($){if($={...$},$.fs=bv0($.fs||hv0),typeof $.retries==="number"&&$.retries>0||$.retries&&typeof $.retries.retries==="number"&&$.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return $}Nc.exports={toPromise:gv0,toSync:mv0,toSyncOptions:dv0}});var wc=A((kE$,l9)=>{var kX=Kc(),{toPromise:AW,toSync:IW,toSyncOptions:nw}=Mc();async function Lc($,D){let J=await AW(kX.lock)($,D);return AW(J)}function cv0($,D){let J=IW(kX.lock)($,nw(D));return IW(J)}function lv0($,D){return AW(kX.unlock)($,D)}function nv0($,D){return IW(kX.unlock)($,nw(D))}function iv0($,D){return AW(kX.check)($,D)}function pv0($,D){return IW(kX.check)($,nw(D))}l9.exports=Lc;l9.exports.lock=Lc;l9.exports.unlock=lv0;l9.exports.lockSync=cv0;l9.exports.unlockSync=nv0;l9.exports.check=iv0;l9.exports.checkSync=pv0});var Tc=A((Ic)=>{Object.defineProperty(Ic,"__esModule",{value:!0});Ic.canStoreURLs=Ic.FileUrlStorage=void 0;var Bc=s("fs"),rv0=av0(od()),Ec=ov0(wc());function Ac($){if(typeof WeakMap!="function")return null;var D=new WeakMap,J=new WeakMap;return(Ac=function(X){return X?J:D})($)}function ov0($,D){if(!D&&$&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var J=Ac(D);if(J&&J.has($))return J.get($);var X={__proto__:null},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in $)if(Y!=="default"&&{}.hasOwnProperty.call($,Y)){var Z=Q?Object.getOwnPropertyDescriptor($,Y):null;Z&&(Z.get||Z.set)?Object.defineProperty(X,Y,Z):X[Y]=$[Y]}return X.default=$,J&&J.set($,X),X}function av0($){return $&&$.__esModule?$:{default:$}}function NF($){return NF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},NF($)}function tv0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function Rc($,D){for(var J=0;J<D.length;J++){var X=D[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty($,ev0(X.key),X)}}function sv0($,D,J){if(D)Rc($.prototype,D);if(J)Rc($,J);return Object.defineProperty($,"prototype",{writable:!1}),$}function ev0($){var D=$_0($,"string");return NF(D)=="symbol"?D:D+""}function $_0($,D){if(NF($)!="object"||!$)return $;var J=$[Symbol.toPrimitive];if(J!==void 0){var X=J.call($,D||"default");if(NF(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var uE$=Ic.canStoreURLs=!0,yE$=Ic.FileUrlStorage=function(){function $(D){tv0(this,$),this.path=D}return sv0($,[{key:"findAllUploads",value:function(){var J=this;return new Promise(function(X,Q){J._getItems("tus::",function(Y,Z){if(Y)Q(Y);else X(Z)})})}},{key:"findUploadsByFingerprint",value:function(J){var X=this;return new Promise(function(Q,Y){X._getItems("tus::".concat(J),function(Z,F){if(Z)Y(Z);else Q(F)})})}},{key:"removeUpload",value:function(J){var X=this;return new Promise(function(Q,Y){X._removeItem(J,function(Z){if(Z)Y(Z);else Q()})})}},{key:"addUpload",value:function(J,X){var Q=this,Y=Math.round(Math.random()*1000000000000),Z="tus::".concat(J,"::").concat(Y);return new Promise(function(F,U){Q._setItem(Z,X,function(G){if(G)U(G);else F(Z)})})}},{key:"_setItem",value:function(J,X,Q){var Y=this;Ec.lock(this.path,this._lockfileOptions()).then(function(Z){Q=Y._releaseAndCb(Z,Q),Y._getData(function(F,U){if(F){Q(F);return}U[J]=X,Y._writeData(U,function(G){return Q(G)})})}).catch(Q)}},{key:"_getItems",value:function(J,X){this._getData(function(Q,Y){if(Q){X(Q);return}var Z=Object.keys(Y).filter(function(F){return F.startsWith(J)}).map(function(F){var U=Y[F];return U.urlStorageKey=F,U});X(null,Z)})}},{key:"_removeItem",value:function(J,X){var Q=this;Ec.lock(this.path,this._lockfileOptions()).then(function(Y){X=Q._releaseAndCb(Y,X),Q._getData(function(Z,F){if(Z){X(Z);return}delete F[J],Q._writeData(F,function(U){return X(U)})})}).catch(X)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(J,X){return function(Q){if(Q){J().then(function(){return X(Q)}).catch(function(Y){return X((0,rv0.default)([Q,Y]))});return}J().then(X).catch(X)}}},{key:"_writeData",value:function(J,X){var Q={encoding:"utf8",mode:432,flag:"w"};(0,Bc.writeFile)(this.path,JSON.stringify(J),Q,function(Y){return X(Y)})}},{key:"_getData",value:function(J){(0,Bc.readFile)(this.path,"utf8",function(X,Q){if(X){if(X.code==="ENOENT")J(null,{});else J(X);return}try{Q=!Q.trim().length?{}:JSON.parse(Q)}catch(Y){J(Y);return}J(null,Q)})}}])}()});var TW=A((n9)=>{Object.defineProperty(n9,"__esModule",{value:!0});Object.defineProperty(n9,"DefaultHttpStack",{enumerable:!0,get:function(){return xc.default}});Object.defineProperty(n9,"DetailedError",{enumerable:!0,get:function(){return J_0.default}});Object.defineProperty(n9,"FileUrlStorage",{enumerable:!0,get:function(){return vc.FileUrlStorage}});Object.defineProperty(n9,"StreamSource",{enumerable:!0,get:function(){return F_0.default}});n9.Upload=void 0;Object.defineProperty(n9,"canStoreURLs",{enumerable:!0,get:function(){return vc.canStoreURLs}});n9.defaultOptions=void 0;Object.defineProperty(n9,"enableDebugLog",{enumerable:!0,get:function(){return X_0.enableDebugLog}});n9.isSupported=void 0;var J_0=jJ(nL()),X_0=iL(),Q_0=jJ(wg()),iw=jJ(eg()),Y_0=jJ(Lm()),Z_0=jJ(Am()),xc=jJ(gm()),F_0=jJ(Xw()),vc=Tc();function jJ($){return $&&$.__esModule?$:{default:$}}function yX($){return yX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},yX($)}function U_0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function Cc($,D){for(var J=0;J<D.length;J++){var X=D[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty($,kc(X.key),X)}}function G_0($,D,J){if(D)Cc($.prototype,D);if(J)Cc($,J);return Object.defineProperty($,"prototype",{writable:!1}),$}function q_0($,D,J){return D=jW(D),W_0($,_c()?Reflect.construct(D,J||[],jW($).constructor):D.apply($,J))}function W_0($,D){if(D&&(yX(D)==="object"||typeof D==="function"))return D;else if(D!==void 0)throw TypeError("Derived constructors may only return object or undefined");return z_0($)}function z_0($){if($===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function _c(){try{var $=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(D){}return(_c=function(){return!!$})()}function jW($){return jW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},jW($)}function H_0($,D){if(typeof D!=="function"&&D!==null)throw TypeError("Super expression must either be null or a function");if($.prototype=Object.create(D&&D.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),D)pw($,D)}function pw($,D){return pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Q){return X.__proto__=Q,X},pw($,D)}function Pc($,D){var J=Object.keys($);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols($);D&&(X=X.filter(function(Q){return Object.getOwnPropertyDescriptor($,Q).enumerable})),J.push.apply(J,X)}return J}function uX($){for(var D=1;D<arguments.length;D++){var J=arguments[D]!=null?arguments[D]:{};D%2?Pc(Object(J),!0).forEach(function(X){O_0($,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(J)):Pc(Object(J)).forEach(function(X){Object.defineProperty($,X,Object.getOwnPropertyDescriptor(J,X))})}return $}function O_0($,D,J){if(D=kc(D),D in $)Object.defineProperty($,D,{value:J,enumerable:!0,configurable:!0,writable:!0});else $[D]=J;return $}function kc($){var D=V_0($,"string");return yX(D)=="symbol"?D:D+""}function V_0($,D){if(yX($)!="object"||!$)return $;var J=$[Symbol.toPrimitive];if(J!==void 0){var X=J.call($,D||"default");if(yX(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var Sc=n9.defaultOptions=uX(uX({},iw.default.defaultOptions),{},{httpStack:new xc.default,fileReader:new Y_0.default,urlStorage:new Q_0.default,fingerprint:Z_0.default}),hE$=n9.Upload=function($){function D(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return U_0(this,D),X=uX(uX({},Sc),X),q_0(this,D,[J,X])}return H_0(D,$),G_0(D,null,[{key:"terminate",value:function(X){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q=uX(uX({},Sc),Q),iw.default.terminate(X,Q)}}])}(iw.default),bE$=n9.isSupported=!0});var zD;var a8=a(()=>{zD={name:"@capgo/cli",type:"module",version:"8.32.2",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/capgo.git",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:bundle":"bun test/test-bundle.mjs","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs","test:credentials":"bun test/test-credentials.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:manifest-path-encoding":"bun test/test-manifest-path-encoding.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:init-replay && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:trial-warning":"bun test/test-trial-warning.mjs","test:plan-validation":"bun test/test-plan-validation.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@rrweb/types":"^2.1.1","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","happy-dom":"^20.11.0",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",zod:"^4.4.3","@standard-schema/spec":"^1.1.0"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.110.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260707.2","@vercel/ncc":"^0.44.1","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0",eslint:"^10.7.0","git-format-staged":"4.0.1",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",typescript:"6.0.3",ws:"^8.21.1"}}});import{platform as N_0,release as M_0}from"node:os";import{arch as L_0,version as w_0}from"node:process";function rw(){return hc}function ow(){let $={cli_version:zD.version,node_version:w_0,os_platform:N_0(),os_arch:L_0,os_release:M_0(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:MF.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:hc};if(MF.name)$.ci_provider=MF.name;return $}var MF,hc="cli";var aw=a(()=>{a8();MF=j$(hL(),1)});import{AsyncLocalStorage as B_0}from"node:async_hooks";function fX($,D){return gc.run($,()=>Promise.resolve(D()))}function E_0(){return gc.getStore()}function mc(){return R_0}function cc($){dc=$}function bc($){try{dc?.($)}catch{}}function nc($,D){let J;try{J=new URL($).pathname}catch{J=$.split("?")[0]}let X="/functions/v1/",Q=J.indexOf(X);if(Q>=0){let G=J.slice(Q+X.length).replace(/^\/+|\/+$/g,"");return G?`${D} functions:${G}`:`${D} functions`}let Y="/rest/v1/",Z=J.indexOf(Y),F=Z>=0?J.slice(Z+Y.length):J.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let U=F.split("/")[0]||J;return`${D} ${U}`}function A_0($){let D=$?.headers;if(!D)return;let J=D.get;if(typeof J==="function")return J.call(D,"capgkey")??void 0;if(Array.isArray(D))return D.find(([X])=>X.toLowerCase()==="capgkey")?.[1];return D.capgkey}function ic(){return async(D,J)=>{let X=(J?.method??"GET").toUpperCase(),Q=typeof D==="string"?D:D instanceof URL?D.href:D.url,Y=E_0(),Z=A_0(J),F=Date.now();try{let U=await globalThis.fetch(D,J);return bc({url:Q,method:X,status:U.status,ok:U.ok,durationMs:Date.now()-F,source:Y,apikey:Z}),U}catch(U){throw bc({url:Q,method:X,status:0,ok:!1,durationMs:Date.now()-F,source:Y,apikey:Z,error:U}),U}}}var gc,R_0=!1,dc,lc=5000;var CW=a(()=>{gc=new B_0});function pc($,D){let X=["normal","bold","dim","italic","underline","strikethrough"].indexOf($),Q="\x1B[";return"\x1B["+X+"m"+D+"\x1B[0m"}var T6;var rc=a(()=>{T6=class T6{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=T6.wideTheme;columnWidth(){let $=[this.headers,...this.rows].filter((J)=>J.length>0),D=$[0].map((J)=>this.cast(J).length);for(let J of $.slice(1))for(let X=0;X<D.length;X++){let Q=this.cast(J[X]).length;if(Q>D[X])D[X]=Q}return D}cast($){if(typeof $==="object")return"obj";if($!==void 0&&typeof $.toString==="function")return $.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine($){let D=this.columnWidth();return $[0]+D.map((J)=>$[1].repeat(J)).join($[2])+$[3]}renderCell($,D,J=!1){let X=this.cast($),Q=J?pc("bold",X):X,Y=D-X.length,Z=this.theme.row[1];switch(typeof $){case"number":return Z.repeat(Y)+Q;case"string":return Q+Z.repeat(Y);case"boolean":case"object":return Z.repeat(Math.ceil(Y/2))+pc("italic",X)+Z.repeat(Math.floor(Y/2));default:return Z.repeat(Y)}}renderRow($,D=!1){let J=this.theme.row,X=this.columnWidth();return J[0]+$.map((Q,Y)=>this.renderCell(Q,X[Y],D)).join(J[2])+J[3]}toString(){let $=this.theme,D=this.headers.length>0,J=this.rows.length>0;return[this.title?this.renderTitle():"",D||J?this.renderLine($.top):"",D?this.renderRow(this.headers,!0):"",D&&J?this.renderLine($.div):"",...this.rows.map((X)=>this.renderRow(X)),D||J?this.renderLine($.bot):""].filter((X)=>X.length>0).join(`
|
|
112
|
+
GFS4: `),console.error($)};if(!T1[WD]){if(vw=global[WD]||[],Qc(T1,vw),T1.close=function($){function D(J,X){return $.call(T1,J,function(Q){if(!Q)Xc();if(typeof X==="function")X.apply(this,arguments)})}return Object.defineProperty(D,MW,{value:$}),D}(T1.close),T1.closeSync=function($){function D(J){$.apply(T1,arguments),Xc()}return Object.defineProperty(D,MW,{value:$}),D}(T1.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){EJ(T1[WD]),s("assert").equal(T1[WD].length,0)})}var vw;if(!global[WD])Qc(global,T1[WD]);uw.exports=_w(Vv0(T1));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!T1.__patched)uw.exports=_w(T1),T1.__patched=!0;function _w($){Hv0($),$.gracefulify=_w,$.createReadStream=w,$.createWriteStream=R;var D=$.readFile;$.readFile=J;function J(I,_,x){if(typeof _==="function")x=_,_=null;return c(I,_,x);function c(d,D0,b,j){return D(d,D0,function(T){if(T&&(T.code==="EMFILE"||T.code==="ENFILE"))xX([c,[d,D0,b],T,j||Date.now(),Date.now()]);else if(typeof b==="function")b.apply(this,arguments)})}}var X=$.writeFile;$.writeFile=Q;function Q(I,_,x,c){if(typeof x==="function")c=x,x=null;return d(I,_,x,c);function d(D0,b,j,T,u){return X(D0,b,j,function(m){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}var Y=$.appendFile;if(Y)$.appendFile=Z;function Z(I,_,x,c){if(typeof x==="function")c=x,x=null;return d(I,_,x,c);function d(D0,b,j,T,u){return Y(D0,b,j,function(m){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}var F=$.copyFile;if(F)$.copyFile=U;function U(I,_,x,c){if(typeof x==="function")c=x,x=0;return d(I,_,x,c);function d(D0,b,j,T,u){return F(D0,b,j,function(m){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}var G=$.readdir;$.readdir=W;var q=/^v[0-5]\./;function W(I,_,x){if(typeof _==="function")x=_,_=null;var c=q.test(process.version)?function(b,j,T,u){return G(b,d(b,j,T,u))}:function(b,j,T,u){return G(b,j,d(b,j,T,u))};return c(I,_,x);function d(D0,b,j,T){return function(u,m){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))xX([c,[D0,b,j],u,T||Date.now(),Date.now()]);else{if(m&&m.sort)m.sort();if(typeof j==="function")j.call(this,u,m)}}}}if(process.version.substr(0,4)==="v0.8"){var z=Ov0($);L=z.ReadStream,N=z.WriteStream}var H=$.ReadStream;if(H)L.prototype=Object.create(H.prototype),L.prototype.open=E;var O=$.WriteStream;if(O)N.prototype=Object.create(O.prototype),N.prototype.open=M;Object.defineProperty($,"ReadStream",{get:function(){return L},set:function(I){L=I},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return N},set:function(I){N=I},enumerable:!0,configurable:!0});var V=L;Object.defineProperty($,"FileReadStream",{get:function(){return V},set:function(I){V=I},enumerable:!0,configurable:!0});var K=N;Object.defineProperty($,"FileWriteStream",{get:function(){return K},set:function(I){K=I},enumerable:!0,configurable:!0});function L(I,_){if(this instanceof L)return H.apply(this,arguments),this;else return L.apply(Object.create(L.prototype),arguments)}function E(){var I=this;v(I.path,I.flags,I.mode,function(_,x){if(_){if(I.autoClose)I.destroy();I.emit("error",_)}else I.fd=x,I.emit("open",x),I.read()})}function N(I,_){if(this instanceof N)return O.apply(this,arguments),this;else return N.apply(Object.create(N.prototype),arguments)}function M(){var I=this;v(I.path,I.flags,I.mode,function(_,x){if(_)I.destroy(),I.emit("error",_);else I.fd=x,I.emit("open",x)})}function w(I,_){return new $.ReadStream(I,_)}function R(I,_){return new $.WriteStream(I,_)}var S=$.open;$.open=v;function v(I,_,x,c){if(typeof x==="function")c=x,x=null;return d(I,_,x,c);function d(D0,b,j,T,u){return S(D0,b,j,function(m,i){if(m&&(m.code==="EMFILE"||m.code==="ENFILE"))xX([d,[D0,b,j,T],m,u||Date.now(),Date.now()]);else if(typeof T==="function")T.apply(this,arguments)})}}return $}function xX($){EJ("ENQUEUE",$[0].name,$[1]),T1[WD].push($),kw()}var NW;function Xc(){var $=Date.now();for(var D=0;D<T1[WD].length;++D)if(T1[WD][D].length>2)T1[WD][D][3]=$,T1[WD][D][4]=$;kw()}function kw(){if(clearTimeout(NW),NW=void 0,T1[WD].length===0)return;var $=T1[WD].shift(),D=$[0],J=$[1],X=$[2],Q=$[3],Y=$[4];if(Q===void 0)EJ("RETRY",D.name,J),D.apply(null,J);else if(Date.now()-Q>=60000){EJ("TIMEOUT",D.name,J);var Z=J.pop();if(typeof Z==="function")Z.call(null,X)}else{var F=Date.now()-Y,U=Math.max(Y-Q,1),G=Math.min(U*1.2,100);if(F>=G)EJ("RETRY",D.name,J),D.apply(null,J.concat([Q]));else T1[WD].push($)}if(NW===void 0)NW=setTimeout(kw,0)}});var Zc=A((PE$,Yc)=>{function n6($,D){if(typeof D==="boolean")D={forever:D};if(this._originalTimeouts=JSON.parse(JSON.stringify($)),this._timeouts=$,this._options=D||{},this._maxRetryTime=D&&D.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}Yc.exports=n6;n6.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};n6.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};n6.prototype.retry=function($){if(this._timeout)clearTimeout(this._timeout);if(!$)return!1;var D=new Date().getTime();if($&&D-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push($);var J=this._timeouts.shift();if(J===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),J=this._timeouts.shift();else return!1;var X=this,Q=setTimeout(function(){if(X._attempts++,X._operationTimeoutCb){if(X._timeout=setTimeout(function(){X._operationTimeoutCb(X._attempts)},X._operationTimeout),X._options.unref)X._timeout.unref()}X._fn(X._attempts)},J);if(this._options.unref)Q.unref();return!0};n6.prototype.attempt=function($,D){if(this._fn=$,D){if(D.timeout)this._operationTimeout=D.timeout;if(D.cb)this._operationTimeoutCb=D.cb}var J=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){J._operationTimeoutCb()},J._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};n6.prototype.try=function($){console.log("Using RetryOperation.try() is deprecated"),this.attempt($)};n6.prototype.start=function($){console.log("Using RetryOperation.start() is deprecated"),this.attempt($)};n6.prototype.start=n6.prototype.try;n6.prototype.errors=function(){return this._errors};n6.prototype.attempts=function(){return this._attempts};n6.prototype.mainError=function(){if(this._errors.length===0)return null;var $={},D=null,J=0;for(var X=0;X<this._errors.length;X++){var Q=this._errors[X],Y=Q.message,Z=($[Y]||0)+1;if($[Y]=Z,Z>=J)D=Q,J=Z}return D}});var Uc=A((Mv0)=>{var Nv0=Zc();Mv0.operation=function($){var D=Mv0.timeouts($);return new Nv0(D,{forever:$&&$.forever,unref:$&&$.unref,maxRetryTime:$&&$.maxRetryTime})};Mv0.timeouts=function($){if($ instanceof Array)return[].concat($);var D={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var J in $)D[J]=$[J];if(D.minTimeout>D.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var X=[];for(var Q=0;Q<D.retries;Q++)X.push(this.createTimeout(Q,D));if($&&$.forever&&!X.length)X.push(this.createTimeout(Q,D));return X.sort(function(Y,Z){return Y-Z}),X};Mv0.createTimeout=function($,D){var J=D.randomize?Math.random()+1:1,X=Math.round(J*D.minTimeout*Math.pow(D.factor,$));return X=Math.min(X,D.maxTimeout),X};Mv0.wrap=function($,D,J){if(D instanceof Array)J=D,D=null;if(!J){J=[];for(var X in $)if(typeof $[X]==="function")J.push(X)}for(var Q=0;Q<J.length;Q++){var Y=J[Q],Z=$[Y];$[Y]=function(U){var G=Mv0.operation(D),q=Array.prototype.slice.call(arguments,1),W=q.pop();q.push(function(z){if(G.retry(z))return;if(z)arguments[0]=G.mainError();W.apply(this,arguments)}),G.attempt(function(){U.apply($,q)})}.bind($,Z),$[Y].options=D}}});var Gc=A((xE$,LW)=>{LW.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")LW.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")LW.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var EW=A((vE$,_X)=>{var B1=global.process,RJ=function($){return $&&typeof $==="object"&&typeof $.removeListener==="function"&&typeof $.emit==="function"&&typeof $.reallyExit==="function"&&typeof $.listeners==="function"&&typeof $.kill==="function"&&typeof $.pid==="number"&&typeof $.on==="function"};if(!RJ(B1))_X.exports=function(){return function(){}};else{if(yw=s("assert"),AJ=Gc(),fw=/^win/i.test(B1.platform),vX=s("events"),typeof vX!=="function")vX=vX.EventEmitter;if(B1.__signal_exit_emitter__)a1=B1.__signal_exit_emitter__;else a1=B1.__signal_exit_emitter__=new vX,a1.count=0,a1.emitted={};if(!a1.infinite)a1.setMaxListeners(1/0),a1.infinite=!0;_X.exports=function($,D){if(!RJ(global.process))return function(){};if(yw.equal(typeof $,"function","a callback must be provided for exit handler"),IJ===!1)wW();var J="exit";if(D&&D.alwaysLast)J="afterexit";var X=function(){if(a1.removeListener(J,$),a1.listeners("exit").length===0&&a1.listeners("afterexit").length===0)zF()};return a1.on(J,$),X},zF=function(){if(!IJ||!RJ(global.process))return;IJ=!1,AJ.forEach(function(D){try{B1.removeListener(D,HF[D])}catch(J){}}),B1.emit=OF,B1.reallyExit=BW,a1.count-=1},_X.exports.unload=zF,c9=function(D,J,X){if(a1.emitted[D])return;a1.emitted[D]=!0,a1.emit(D,J,X)},HF={},AJ.forEach(function($){HF[$]=function(){if(!RJ(global.process))return;var J=B1.listeners($);if(J.length===a1.count){if(zF(),c9("exit",null,$),c9("afterexit",null,$),fw&&$==="SIGHUP")$="SIGINT";B1.kill(B1.pid,$)}}}),_X.exports.signals=function(){return AJ},IJ=!1,wW=function(){if(IJ||!RJ(global.process))return;IJ=!0,a1.count+=1,AJ=AJ.filter(function(D){try{return B1.on(D,HF[D]),!0}catch(J){return!1}}),B1.emit=bw,B1.reallyExit=hw},_X.exports.load=wW,BW=B1.reallyExit,hw=function(D){if(!RJ(global.process))return;B1.exitCode=D||0,c9("exit",B1.exitCode,null),c9("afterexit",B1.exitCode,null),BW.call(B1,B1.exitCode)},OF=B1.emit,bw=function(D,J){if(D==="exit"&&RJ(global.process)){if(J!==void 0)B1.exitCode=J;var X=OF.apply(this,arguments);return c9("exit",B1.exitCode,null),c9("afterexit",B1.exitCode,null),X}else return OF.apply(this,arguments)}}var yw,AJ,fw,vX,a1,zF,c9,HF,IJ,wW,BW,hw,OF,bw});var Wc=A((Av0,gw)=>{var qc=Symbol();function Ev0($,D,J){let X=D[qc];if(X)return D.stat($,(Y,Z)=>{if(Y)return J(Y);J(null,Z.mtime,X)});let Q=new Date(Math.ceil(Date.now()/1000)*1000+5);D.utimes($,Q,Q,(Y)=>{if(Y)return J(Y);D.stat($,(Z,F)=>{if(Z)return J(Z);let U=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(D,qc,{value:U}),J(null,F.mtime,U)})})}function Rv0($){let D=Date.now();if($==="s")D=Math.ceil(D/1000)*1000;return new Date(D)}Av0.probe=Ev0;Av0.getMtime=Rv0});var Kc=A((_v0,KF)=>{var Tv0=s("path"),cw=y1(),Cv0=Uc(),Pv0=EW(),zc=Wc(),o8={};function VF($,D){return D.lockfilePath||`${$}.lock`}function lw($,D,J){if(!D.realpath)return J(null,Tv0.resolve($));D.fs.realpath($,J)}function dw($,D,J){let X=VF($,D);D.fs.mkdir(X,(Q)=>{if(!Q)return zc.probe(X,D.fs,(Y,Z,F)=>{if(Y)return D.fs.rmdir(X,()=>{}),J(Y);J(null,Z,F)});if(Q.code!=="EEXIST")return J(Q);if(D.stale<=0)return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));D.fs.stat(X,(Y,Z)=>{if(Y){if(Y.code==="ENOENT")return dw($,{...D,stale:0},J);return J(Y)}if(!Hc(Z,D))return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:$}));Oc($,D,(F)=>{if(F)return J(F);dw($,{...D,stale:0},J)})})})}function Hc($,D){return $.mtime.getTime()<Date.now()-D.stale}function Oc($,D,J){D.fs.rmdir(VF($,D),(X)=>{if(X&&X.code!=="ENOENT")return J(X);J()})}function RW($,D){let J=o8[$];if(J.updateTimeout)return;if(J.updateDelay=J.updateDelay||D.update,J.updateTimeout=setTimeout(()=>{J.updateTimeout=null,D.fs.stat(J.lockfilePath,(X,Q)=>{let Y=J.lastUpdate+D.stale<Date.now();if(X){if(X.code==="ENOENT"||Y)return mw($,J,Object.assign(X,{code:"ECOMPROMISED"}));return J.updateDelay=1000,RW($,D)}if(J.mtime.getTime()!==Q.mtime.getTime())return mw($,J,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=zc.getMtime(J.mtimePrecision);D.fs.utimes(J.lockfilePath,F,F,(U)=>{let G=J.lastUpdate+D.stale<Date.now();if(J.released)return;if(U){if(U.code==="ENOENT"||G)return mw($,J,Object.assign(U,{code:"ECOMPROMISED"}));return J.updateDelay=1000,RW($,D)}J.mtime=F,J.lastUpdate=Date.now(),J.updateDelay=null,RW($,D)})})},J.updateDelay),J.updateTimeout.unref)J.updateTimeout.unref()}function mw($,D,J){if(D.released=!0,D.updateTimeout)clearTimeout(D.updateTimeout);if(o8[$]===D)delete o8[$];D.options.onCompromised(J)}function Sv0($,D,J){D={stale:1e4,update:null,realpath:!0,retries:0,fs:cw,onCompromised:(X)=>{throw X},...D},D.retries=D.retries||0,D.retries=typeof D.retries==="number"?{retries:D.retries}:D.retries,D.stale=Math.max(D.stale||0,2000),D.update=D.update==null?D.stale/2:D.update||0,D.update=Math.max(Math.min(D.update,D.stale/2),1000),lw($,D,(X,Q)=>{if(X)return J(X);let Y=Cv0.operation(D.retries);Y.attempt(()=>{dw(Q,D,(Z,F,U)=>{if(Y.retry(Z))return;if(Z)return J(Y.mainError());let G=o8[Q]={lockfilePath:VF(Q,D),mtime:F,mtimePrecision:U,options:D,lastUpdate:Date.now()};RW(Q,D),J(null,(q)=>{if(G.released)return q&&q(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));Vc(Q,{...D,realpath:!1},q)})})})})}function Vc($,D,J){D={fs:cw,realpath:!0,...D},lw($,D,(X,Q)=>{if(X)return J(X);let Y=o8[Q];if(!Y)return J(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));Y.updateTimeout&&clearTimeout(Y.updateTimeout),Y.released=!0,delete o8[Q],Oc(Q,D,J)})}function xv0($,D,J){D={stale:1e4,realpath:!0,fs:cw,...D},D.stale=Math.max(D.stale||0,2000),lw($,D,(X,Q)=>{if(X)return J(X);D.fs.stat(VF(Q,D),(Y,Z)=>{if(Y)return Y.code==="ENOENT"?J(null,!1):J(Y);return J(null,!Hc(Z,D))})})}function vv0(){return o8}Pv0(()=>{for(let $ in o8){let D=o8[$].options;try{D.fs.rmdirSync(VF($,D))}catch(J){}}});_v0.lock=Sv0;_v0.unlock=Vc;_v0.check=xv0;_v0.getLocks=vv0});var Mc=A((_E$,Nc)=>{var hv0=y1();function bv0($){let D=["mkdir","realpath","stat","rmdir","utimes"],J={...$};return D.forEach((X)=>{J[X]=(...Q)=>{let Y=Q.pop(),Z;try{Z=$[`${X}Sync`](...Q)}catch(F){return Y(F)}Y(null,Z)}}),J}function gv0($){return(...D)=>new Promise((J,X)=>{D.push((Q,Y)=>{if(Q)X(Q);else J(Y)}),$(...D)})}function mv0($){return(...D)=>{let J,X;if(D.push((Q,Y)=>{J=Q,X=Y}),$(...D),J)throw J;return X}}function dv0($){if($={...$},$.fs=bv0($.fs||hv0),typeof $.retries==="number"&&$.retries>0||$.retries&&typeof $.retries.retries==="number"&&$.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return $}Nc.exports={toPromise:gv0,toSync:mv0,toSyncOptions:dv0}});var wc=A((kE$,l9)=>{var kX=Kc(),{toPromise:AW,toSync:IW,toSyncOptions:nw}=Mc();async function Lc($,D){let J=await AW(kX.lock)($,D);return AW(J)}function cv0($,D){let J=IW(kX.lock)($,nw(D));return IW(J)}function lv0($,D){return AW(kX.unlock)($,D)}function nv0($,D){return IW(kX.unlock)($,nw(D))}function iv0($,D){return AW(kX.check)($,D)}function pv0($,D){return IW(kX.check)($,nw(D))}l9.exports=Lc;l9.exports.lock=Lc;l9.exports.unlock=lv0;l9.exports.lockSync=cv0;l9.exports.unlockSync=nv0;l9.exports.check=iv0;l9.exports.checkSync=pv0});var Tc=A((Ic)=>{Object.defineProperty(Ic,"__esModule",{value:!0});Ic.canStoreURLs=Ic.FileUrlStorage=void 0;var Bc=s("fs"),rv0=av0(od()),Ec=ov0(wc());function Ac($){if(typeof WeakMap!="function")return null;var D=new WeakMap,J=new WeakMap;return(Ac=function(X){return X?J:D})($)}function ov0($,D){if(!D&&$&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var J=Ac(D);if(J&&J.has($))return J.get($);var X={__proto__:null},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in $)if(Y!=="default"&&{}.hasOwnProperty.call($,Y)){var Z=Q?Object.getOwnPropertyDescriptor($,Y):null;Z&&(Z.get||Z.set)?Object.defineProperty(X,Y,Z):X[Y]=$[Y]}return X.default=$,J&&J.set($,X),X}function av0($){return $&&$.__esModule?$:{default:$}}function NF($){return NF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},NF($)}function tv0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function Rc($,D){for(var J=0;J<D.length;J++){var X=D[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty($,ev0(X.key),X)}}function sv0($,D,J){if(D)Rc($.prototype,D);if(J)Rc($,J);return Object.defineProperty($,"prototype",{writable:!1}),$}function ev0($){var D=$_0($,"string");return NF(D)=="symbol"?D:D+""}function $_0($,D){if(NF($)!="object"||!$)return $;var J=$[Symbol.toPrimitive];if(J!==void 0){var X=J.call($,D||"default");if(NF(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var uE$=Ic.canStoreURLs=!0,yE$=Ic.FileUrlStorage=function(){function $(D){tv0(this,$),this.path=D}return sv0($,[{key:"findAllUploads",value:function(){var J=this;return new Promise(function(X,Q){J._getItems("tus::",function(Y,Z){if(Y)Q(Y);else X(Z)})})}},{key:"findUploadsByFingerprint",value:function(J){var X=this;return new Promise(function(Q,Y){X._getItems("tus::".concat(J),function(Z,F){if(Z)Y(Z);else Q(F)})})}},{key:"removeUpload",value:function(J){var X=this;return new Promise(function(Q,Y){X._removeItem(J,function(Z){if(Z)Y(Z);else Q()})})}},{key:"addUpload",value:function(J,X){var Q=this,Y=Math.round(Math.random()*1000000000000),Z="tus::".concat(J,"::").concat(Y);return new Promise(function(F,U){Q._setItem(Z,X,function(G){if(G)U(G);else F(Z)})})}},{key:"_setItem",value:function(J,X,Q){var Y=this;Ec.lock(this.path,this._lockfileOptions()).then(function(Z){Q=Y._releaseAndCb(Z,Q),Y._getData(function(F,U){if(F){Q(F);return}U[J]=X,Y._writeData(U,function(G){return Q(G)})})}).catch(Q)}},{key:"_getItems",value:function(J,X){this._getData(function(Q,Y){if(Q){X(Q);return}var Z=Object.keys(Y).filter(function(F){return F.startsWith(J)}).map(function(F){var U=Y[F];return U.urlStorageKey=F,U});X(null,Z)})}},{key:"_removeItem",value:function(J,X){var Q=this;Ec.lock(this.path,this._lockfileOptions()).then(function(Y){X=Q._releaseAndCb(Y,X),Q._getData(function(Z,F){if(Z){X(Z);return}delete F[J],Q._writeData(F,function(U){return X(U)})})}).catch(X)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(J,X){return function(Q){if(Q){J().then(function(){return X(Q)}).catch(function(Y){return X((0,rv0.default)([Q,Y]))});return}J().then(X).catch(X)}}},{key:"_writeData",value:function(J,X){var Q={encoding:"utf8",mode:432,flag:"w"};(0,Bc.writeFile)(this.path,JSON.stringify(J),Q,function(Y){return X(Y)})}},{key:"_getData",value:function(J){(0,Bc.readFile)(this.path,"utf8",function(X,Q){if(X){if(X.code==="ENOENT")J(null,{});else J(X);return}try{Q=!Q.trim().length?{}:JSON.parse(Q)}catch(Y){J(Y);return}J(null,Q)})}}])}()});var TW=A((n9)=>{Object.defineProperty(n9,"__esModule",{value:!0});Object.defineProperty(n9,"DefaultHttpStack",{enumerable:!0,get:function(){return xc.default}});Object.defineProperty(n9,"DetailedError",{enumerable:!0,get:function(){return J_0.default}});Object.defineProperty(n9,"FileUrlStorage",{enumerable:!0,get:function(){return vc.FileUrlStorage}});Object.defineProperty(n9,"StreamSource",{enumerable:!0,get:function(){return F_0.default}});n9.Upload=void 0;Object.defineProperty(n9,"canStoreURLs",{enumerable:!0,get:function(){return vc.canStoreURLs}});n9.defaultOptions=void 0;Object.defineProperty(n9,"enableDebugLog",{enumerable:!0,get:function(){return X_0.enableDebugLog}});n9.isSupported=void 0;var J_0=jJ(nL()),X_0=iL(),Q_0=jJ(wg()),iw=jJ(eg()),Y_0=jJ(Lm()),Z_0=jJ(Am()),xc=jJ(gm()),F_0=jJ(Xw()),vc=Tc();function jJ($){return $&&$.__esModule?$:{default:$}}function yX($){return yX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},yX($)}function U_0($,D){if(!($ instanceof D))throw TypeError("Cannot call a class as a function")}function Cc($,D){for(var J=0;J<D.length;J++){var X=D[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty($,kc(X.key),X)}}function G_0($,D,J){if(D)Cc($.prototype,D);if(J)Cc($,J);return Object.defineProperty($,"prototype",{writable:!1}),$}function q_0($,D,J){return D=jW(D),W_0($,_c()?Reflect.construct(D,J||[],jW($).constructor):D.apply($,J))}function W_0($,D){if(D&&(yX(D)==="object"||typeof D==="function"))return D;else if(D!==void 0)throw TypeError("Derived constructors may only return object or undefined");return z_0($)}function z_0($){if($===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function _c(){try{var $=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(D){}return(_c=function(){return!!$})()}function jW($){return jW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},jW($)}function H_0($,D){if(typeof D!=="function"&&D!==null)throw TypeError("Super expression must either be null or a function");if($.prototype=Object.create(D&&D.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),D)pw($,D)}function pw($,D){return pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Q){return X.__proto__=Q,X},pw($,D)}function Pc($,D){var J=Object.keys($);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols($);D&&(X=X.filter(function(Q){return Object.getOwnPropertyDescriptor($,Q).enumerable})),J.push.apply(J,X)}return J}function uX($){for(var D=1;D<arguments.length;D++){var J=arguments[D]!=null?arguments[D]:{};D%2?Pc(Object(J),!0).forEach(function(X){O_0($,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(J)):Pc(Object(J)).forEach(function(X){Object.defineProperty($,X,Object.getOwnPropertyDescriptor(J,X))})}return $}function O_0($,D,J){if(D=kc(D),D in $)Object.defineProperty($,D,{value:J,enumerable:!0,configurable:!0,writable:!0});else $[D]=J;return $}function kc($){var D=V_0($,"string");return yX(D)=="symbol"?D:D+""}function V_0($,D){if(yX($)!="object"||!$)return $;var J=$[Symbol.toPrimitive];if(J!==void 0){var X=J.call($,D||"default");if(yX(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)($)}var Sc=n9.defaultOptions=uX(uX({},iw.default.defaultOptions),{},{httpStack:new xc.default,fileReader:new Y_0.default,urlStorage:new Q_0.default,fingerprint:Z_0.default}),hE$=n9.Upload=function($){function D(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return U_0(this,D),X=uX(uX({},Sc),X),q_0(this,D,[J,X])}return H_0(D,$),G_0(D,null,[{key:"terminate",value:function(X){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q=uX(uX({},Sc),Q),iw.default.terminate(X,Q)}}])}(iw.default),bE$=n9.isSupported=!0});var zD;var a8=a(()=>{zD={name:"@capgo/cli",type:"module",version:"8.32.3",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/capgo.git",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:bundle":"bun test/test-bundle.mjs","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs","test:credentials":"bun test/test-credentials.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:manifest-path-encoding":"bun test/test-manifest-path-encoding.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:init-replay && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:trial-warning":"bun test/test-trial-warning.mjs","test:plan-validation":"bun test/test-plan-validation.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@rrweb/types":"^2.1.1","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","happy-dom":"^20.11.0",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",zod:"^4.4.3","@standard-schema/spec":"^1.1.0"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.110.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260707.2","@vercel/ncc":"^0.44.1","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0",eslint:"^10.7.0","git-format-staged":"4.0.1",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",typescript:"6.0.3",ws:"^8.21.1"}}});import{platform as N_0,release as M_0}from"node:os";import{arch as L_0,version as w_0}from"node:process";function rw(){return hc}function ow(){let $={cli_version:zD.version,node_version:w_0,os_platform:N_0(),os_arch:L_0,os_release:M_0(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:MF.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:hc};if(MF.name)$.ci_provider=MF.name;return $}var MF,hc="cli";var aw=a(()=>{a8();MF=j$(hL(),1)});import{AsyncLocalStorage as B_0}from"node:async_hooks";function fX($,D){return gc.run($,()=>Promise.resolve(D()))}function E_0(){return gc.getStore()}function mc(){return R_0}function cc($){dc=$}function bc($){try{dc?.($)}catch{}}function nc($,D){let J;try{J=new URL($).pathname}catch{J=$.split("?")[0]}let X="/functions/v1/",Q=J.indexOf(X);if(Q>=0){let G=J.slice(Q+X.length).replace(/^\/+|\/+$/g,"");return G?`${D} functions:${G}`:`${D} functions`}let Y="/rest/v1/",Z=J.indexOf(Y),F=Z>=0?J.slice(Z+Y.length):J.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let U=F.split("/")[0]||J;return`${D} ${U}`}function A_0($){let D=$?.headers;if(!D)return;let J=D.get;if(typeof J==="function")return J.call(D,"capgkey")??void 0;if(Array.isArray(D))return D.find(([X])=>X.toLowerCase()==="capgkey")?.[1];return D.capgkey}function ic(){return async(D,J)=>{let X=(J?.method??"GET").toUpperCase(),Q=typeof D==="string"?D:D instanceof URL?D.href:D.url,Y=E_0(),Z=A_0(J),F=Date.now();try{let U=await globalThis.fetch(D,J);return bc({url:Q,method:X,status:U.status,ok:U.ok,durationMs:Date.now()-F,source:Y,apikey:Z}),U}catch(U){throw bc({url:Q,method:X,status:0,ok:!1,durationMs:Date.now()-F,source:Y,apikey:Z,error:U}),U}}}var gc,R_0=!1,dc,lc=5000;var CW=a(()=>{gc=new B_0});function pc($,D){let X=["normal","bold","dim","italic","underline","strikethrough"].indexOf($),Q="\x1B[";return"\x1B["+X+"m"+D+"\x1B[0m"}var T6;var rc=a(()=>{T6=class T6{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=T6.wideTheme;columnWidth(){let $=[this.headers,...this.rows].filter((J)=>J.length>0),D=$[0].map((J)=>this.cast(J).length);for(let J of $.slice(1))for(let X=0;X<D.length;X++){let Q=this.cast(J[X]).length;if(Q>D[X])D[X]=Q}return D}cast($){if(typeof $==="object")return"obj";if($!==void 0&&typeof $.toString==="function")return $.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine($){let D=this.columnWidth();return $[0]+D.map((J)=>$[1].repeat(J)).join($[2])+$[3]}renderCell($,D,J=!1){let X=this.cast($),Q=J?pc("bold",X):X,Y=D-X.length,Z=this.theme.row[1];switch(typeof $){case"number":return Z.repeat(Y)+Q;case"string":return Q+Z.repeat(Y);case"boolean":case"object":return Z.repeat(Math.ceil(Y/2))+pc("italic",X)+Z.repeat(Math.floor(Y/2));default:return Z.repeat(Y)}}renderRow($,D=!1){let J=this.theme.row,X=this.columnWidth();return J[0]+$.map((Q,Y)=>this.renderCell(Q,X[Y],D)).join(J[2])+J[3]}toString(){let $=this.theme,D=this.headers.length>0,J=this.rows.length>0;return[this.title?this.renderTitle():"",D||J?this.renderLine($.top):"",D?this.renderRow(this.headers,!0):"",D&&J?this.renderLine($.div):"",...this.rows.map((X)=>this.renderRow(X)),D||J?this.renderLine($.bot):""].filter((X)=>X.length>0).join(`
|
|
113
113
|
`)}}});var hX=a(()=>{rc()});async function PW($){try{let J=`https://registry.npmjs.org/${encodeURIComponent($.toLowerCase())}`,X=await fetch(J,{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"}});if(!X.ok)return null;return(await X.json())["dist-tags"]?.latest||null}catch{return null}}async function I_0(){let $=await PW("@capgo/cli")??"",D=$?.split(".")[0]??"";return{currentVersion:zD.version,latestVersion:$,isOutdated:!!$&&$!==zD.version,majorVersion:D}}async function Z1(){let{isOutdated:$,currentVersion:D,latestVersion:J,majorVersion:X}=await I_0();if($)B.warning(`\uD83D\uDEA8 You are using @capgo/cli@${D} it's not the latest version.
|
|
114
114
|
Please use @capgo/cli@${J}" or @capgo/cli@${X} to keep up to date with the latest features and bug fixes.`)}var bD=a(()=>{F$();a8()});async function oc($,D,J,X,Q,Y="✅",Z){await n0(J,{channel:$,event:X,icon:Y,org_id:D,tracking_version:2,...Q||Z?{tags:{...Q?{"app-id":Q}:{},...Z}}:{},notify:!1})}var ac=a(()=>{F$();hX();bD();D$()});var tw=A((FR$,tc)=>{var bX=1000,gX=bX*60,mX=gX*60,TJ=mX*24,j_0=TJ*7,T_0=TJ*365.25;tc.exports=function($,D){D=D||{};var J=typeof $;if(J==="string"&&$.length>0)return C_0($);else if(J==="number"&&isFinite($))return D.long?S_0($):P_0($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function C_0($){if($=String($),$.length>100)return;var D=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!D)return;var J=parseFloat(D[1]),X=(D[2]||"ms").toLowerCase();switch(X){case"years":case"year":case"yrs":case"yr":case"y":return J*T_0;case"weeks":case"week":case"w":return J*j_0;case"days":case"day":case"d":return J*TJ;case"hours":case"hour":case"hrs":case"hr":case"h":return J*mX;case"minutes":case"minute":case"mins":case"min":case"m":return J*gX;case"seconds":case"second":case"secs":case"sec":case"s":return J*bX;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function P_0($){var D=Math.abs($);if(D>=TJ)return Math.round($/TJ)+"d";if(D>=mX)return Math.round($/mX)+"h";if(D>=gX)return Math.round($/gX)+"m";if(D>=bX)return Math.round($/bX)+"s";return $+"ms"}function S_0($){var D=Math.abs($);if(D>=TJ)return SW($,D,TJ,"day");if(D>=mX)return SW($,D,mX,"hour");if(D>=gX)return SW($,D,gX,"minute");if(D>=bX)return SW($,D,bX,"second");return $+" ms"}function SW($,D,J,X){var Q=D>=J*1.5;return Math.round($/J)+" "+X+(Q?"s":"")}});var sw=A((UR$,sc)=>{function x_0($){J.debug=J,J.default=J,J.coerce=U,J.disable=Z,J.enable=Q,J.enabled=F,J.humanize=tw(),J.destroy=G,Object.keys($).forEach((q)=>{J[q]=$[q]}),J.names=[],J.skips=[],J.formatters={};function D(q){let W=0;for(let z=0;z<q.length;z++)W=(W<<5)-W+q.charCodeAt(z),W|=0;return J.colors[Math.abs(W)%J.colors.length]}J.selectColor=D;function J(q){let W,z=null,H,O;function V(...K){if(!V.enabled)return;let L=V,E=Number(new Date),N=E-(W||E);if(L.diff=N,L.prev=W,L.curr=E,W=E,K[0]=J.coerce(K[0]),typeof K[0]!=="string")K.unshift("%O");let M=0;K[0]=K[0].replace(/%([a-zA-Z%])/g,(R,S)=>{if(R==="%%")return"%";M++;let v=J.formatters[S];if(typeof v==="function"){let I=K[M];R=v.call(L,I),K.splice(M,1),M--}return R}),J.formatArgs.call(L,K),(L.log||J.log).apply(L,K)}if(V.namespace=q,V.useColors=J.useColors(),V.color=J.selectColor(q),V.extend=X,V.destroy=J.destroy,Object.defineProperty(V,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(z!==null)return z;if(H!==J.namespaces)H=J.namespaces,O=J.enabled(q);return O},set:(K)=>{z=K}}),typeof J.init==="function")J.init(V);return V}function X(q,W){let z=J(this.namespace+(typeof W>"u"?":":W)+q);return z.log=this.log,z}function Q(q){J.save(q),J.namespaces=q,J.names=[],J.skips=[];let W=(typeof q==="string"?q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let z of W)if(z[0]==="-")J.skips.push(z.slice(1));else J.names.push(z)}function Y(q,W){let z=0,H=0,O=-1,V=0;while(z<q.length)if(H<W.length&&(W[H]===q[z]||W[H]==="*"))if(W[H]==="*")O=H,V=z,H++;else z++,H++;else if(O!==-1)H=O+1,V++,z=V;else return!1;while(H<W.length&&W[H]==="*")H++;return H===W.length}function Z(){let q=[...J.names,...J.skips.map((W)=>"-"+W)].join(",");return J.enable(""),q}function F(q){for(let W of J.skips)if(Y(q,W))return!1;for(let W of J.names)if(Y(q,W))return!0;return!1}function U(q){if(q instanceof Error)return q.stack||q.message;return q}function G(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}sc.exports=x_0});var $l=A((ec,xW)=>{ec.formatArgs=__0;ec.save=k_0;ec.load=u_0;ec.useColors=v_0;ec.storage=y_0();ec.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();ec.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function v_0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function __0($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+xW.exports.humanize(this.diff),!this.useColors)return;let D="color: "+this.color;$.splice(1,0,D,"color: inherit");let J=0,X=0;$[0].replace(/%[a-zA-Z%]/g,(Q)=>{if(Q==="%%")return;if(J++,Q==="%c")X=J}),$.splice(X,0,D)}ec.log=console.debug||console.log||(()=>{});function k_0($){try{if($)ec.storage.setItem("debug",$);else ec.storage.removeItem("debug")}catch(D){}}function u_0(){let $;try{$=ec.storage.getItem("debug")||ec.storage.getItem("DEBUG")}catch(D){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function y_0(){try{return localStorage}catch($){}}xW.exports=sw()(ec);var{formatters:f_0}=xW.exports;f_0.j=function($){try{return JSON.stringify($)}catch(D){return"[UnexpectedJSONParseError]: "+D.message}}});var Jl=A((qR$,Dl)=>{Dl.exports=($,D=process.argv)=>{let J=$.startsWith("-")?"":$.length===1?"-":"--",X=D.indexOf(J+$),Q=D.indexOf("--");return X!==-1&&(Q===-1||X<Q)}});var Yl=A((WR$,Ql)=>{var n_0=s("os"),Xl=s("tty"),i6=Jl(),{env:DD}=process,i9;if(i6("no-color")||i6("no-colors")||i6("color=false")||i6("color=never"))i9=0;else if(i6("color")||i6("colors")||i6("color=true")||i6("color=always"))i9=1;if("FORCE_COLOR"in DD)if(DD.FORCE_COLOR==="true")i9=1;else if(DD.FORCE_COLOR==="false")i9=0;else i9=DD.FORCE_COLOR.length===0?1:Math.min(parseInt(DD.FORCE_COLOR,10),3);function ew($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function $B($,D){if(i9===0)return 0;if(i6("color=16m")||i6("color=full")||i6("color=truecolor"))return 3;if(i6("color=256"))return 2;if($&&!D&&i9===void 0)return 0;let J=i9||0;if(DD.TERM==="dumb")return J;if(process.platform==="win32"){let X=n_0.release().split(".");if(Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in DD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((X)=>(X in DD))||DD.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in DD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(DD.TEAMCITY_VERSION)?1:0;if(DD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in DD){let X=parseInt((DD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(DD.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(DD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(DD.TERM))return 1;if("COLORTERM"in DD)return 1;return J}function i_0($){let D=$B($,$&&$.isTTY);return ew(D)}Ql.exports={supportsColor:i_0,stdout:ew($B(!0,Xl.isatty(1))),stderr:ew($B(!0,Xl.isatty(2)))}});var Gl=A((Fl,_W)=>{var p_0=s("tty"),vW=s("util");Fl.init=$k0;Fl.log=t_0;Fl.formatArgs=o_0;Fl.save=s_0;Fl.load=e_0;Fl.useColors=r_0;Fl.destroy=vW.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Fl.colors=[6,2,3,4,5,1];try{let $=Yl();if($&&($.stderr||$).level>=2)Fl.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}Fl.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,D)=>{let J=D.substring(6).toLowerCase().replace(/_([a-z])/g,(Q,Y)=>{return Y.toUpperCase()}),X=process.env[D];if(/^(yes|on|true|enabled)$/i.test(X))X=!0;else if(/^(no|off|false|disabled)$/i.test(X))X=!1;else if(X==="null")X=null;else X=Number(X);return $[J]=X,$},{});function r_0(){return"colors"in Fl.inspectOpts?Boolean(Fl.inspectOpts.colors):p_0.isatty(process.stderr.fd)}function o_0($){let{namespace:D,useColors:J}=this;if(J){let X=this.color,Q="\x1B[3"+(X<8?X:"8;5;"+X),Y=` ${Q};1m${D} \x1B[0m`;$[0]=Y+$[0].split(`
|
|
115
115
|
`).join(`
|
|
@@ -359,7 +359,7 @@ export default config;
|
|
|
359
359
|
|
|
360
360
|
`)}H.write("payload.value = newResult;"),H.write("return payload;");let E=H.compile();return(N,M)=>E(z,N,M)},Y,Z=nJ,F=!dJ.jitless,G=F&&dE.value,q=D.catchall,W;$._zod.parse=(z,H)=>{W??(W=X.value);let O=z.value;if(!Z(O))return z.issues.push({expected:"object",code:"invalid_type",input:O,inst:$}),z;if(F&&G&&H?.async===!1&&H.jitless!==!0){if(!Y)Y=Q(D.shape);if(z=Y(z,H),!q)return z;return x80([],O,z,H,W,$)}return J(z,H)}});xU=t("$ZodUnion",($,D)=>{Y$.init($,D),L$($._zod,"optin",()=>D.options.some((X)=>X._zod.optin==="optional")?"optional":void 0),L$($._zod,"optout",()=>D.options.some((X)=>X._zod.optout==="optional")?"optional":void 0),L$($._zod,"values",()=>{if(D.options.every((X)=>X._zod.values))return new Set(D.options.flatMap((X)=>Array.from(X._zod.values)));return}),L$($._zod,"pattern",()=>{if(D.options.every((X)=>X._zod.pattern)){let X=D.options.map((Q)=>Q._zod.pattern);return new RegExp(`^(${X.map((Q)=>wU(Q.source)).join("|")})$`)}return});let J=D.options.length===1?D.options[0]._zod.run:null;$._zod.parse=(X,Q)=>{if(J)return J(X,Q);let Y=!1,Z=[];for(let F of D.options){let U=F._zod.run({value:X.value,issues:[]},Q);if(U instanceof Promise)Z.push(U),Y=!0;else{if(U.issues.length===0)return U;Z.push(U)}}if(!Y)return V80(Z,X,$,Q);return Promise.all(Z).then((F)=>{return V80(F,X,$,Q)})}});uA=t("$ZodXor",($,D)=>{xU.init($,D),D.inclusive=!1;let J=D.options.length===1?D.options[0]._zod.run:null;$._zod.parse=(X,Q)=>{if(J)return J(X,Q);let Y=!1,Z=[];for(let F of D.options){let U=F._zod.run({value:X.value,issues:[]},Q);if(U instanceof Promise)Z.push(U),Y=!0;else Z.push(U)}if(!Y)return K80(Z,X,$,Q);return Promise.all(Z).then((F)=>{return K80(F,X,$,Q)})}}),yA=t("$ZodDiscriminatedUnion",($,D)=>{D.inclusive=!1,xU.init($,D);let J=$._zod.parse;L$($._zod,"propValues",()=>{let Q={};for(let Y of D.options){let Z=Y._zod.propValues;if(!Z||Object.keys(Z).length===0)throw Error(`Invalid discriminated union option at index "${D.options.indexOf(Y)}"`);for(let[F,U]of Object.entries(Z)){if(!Q[F])Q[F]=new Set;for(let G of U)Q[F].add(G)}}return Q});let X=KQ(()=>{let Q=D.options,Y=new Map;for(let Z of Q){let F=Z._zod.propValues?.[D.discriminator];if(!F||F.size===0)throw Error(`Invalid discriminated union option at index "${D.options.indexOf(Z)}"`);for(let U of F){if(Y.has(U))throw Error(`Duplicate discriminator value "${String(U)}"`);Y.set(U,Z)}}return Y});$._zod.parse=(Q,Y)=>{let Z=Q.value;if(!nJ(Z))return Q.issues.push({code:"invalid_type",expected:"object",input:Z,inst:$}),Q;let F=X.value.get(Z?.[D.discriminator]);if(F)return F._zod.run(Q,Y);if(D.unionFallback||Y.direction==="backward")return J(Q,Y);return Q.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:D.discriminator,options:Array.from(X.value.keys()),input:Z,path:[D.discriminator],inst:$}),Q}}),fA=t("$ZodIntersection",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{let Q=J.value,Y=D.left._zod.run({value:Q,issues:[]},X),Z=D.right._zod.run({value:Q,issues:[]},X);if(Y instanceof Promise||Z instanceof Promise)return Promise.all([Y,Z]).then(([U,G])=>{return N80(J,U,G)});return N80(J,Y,Z)}});lH=t("$ZodTuple",($,D)=>{Y$.init($,D);let J=D.items;$._zod.parse=(X,Q)=>{let Y=X.value;if(!Array.isArray(Y))return X.issues.push({input:Y,inst:$,expected:"tuple",code:"invalid_type"}),X;X.value=[];let Z=[],F=M80(J,"optin"),U=M80(J,"optout");if(!D.rest){if(Y.length<F)return X.issues.push({code:"too_small",minimum:F,inclusive:!0,input:Y,inst:$,origin:"array"}),X;if(Y.length>J.length)X.issues.push({code:"too_big",maximum:J.length,inclusive:!0,input:Y,inst:$,origin:"array"})}let G=Array(J.length);for(let q=0;q<J.length;q++){let W=J[q]._zod.run({value:Y[q],issues:[]},Q);if(W instanceof Promise)Z.push(W.then((z)=>{G[q]=z}));else G[q]=W}if(D.rest){let q=J.length-1,W=Y.slice(J.length);for(let z of W){q++;let H=D.rest._zod.run({value:z,issues:[]},Q);if(H instanceof Promise)Z.push(H.then((O)=>L80(O,X,q)));else L80(H,X,q)}}if(Z.length)return Promise.all(Z).then(()=>w80(G,X,J,Y,U));return w80(G,X,J,Y,U)}});hA=t("$ZodRecord",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{let Q=J.value;if(!O7(Q))return J.issues.push({expected:"record",code:"invalid_type",input:Q,inst:$}),J;let Y=[],Z=D.keyType._zod.values;if(Z){J.value={};let F=new Set;for(let G of Z)if(typeof G==="string"||typeof G==="number"||typeof G==="symbol"){F.add(typeof G==="number"?G.toString():G);let q=D.keyType._zod.run({value:G,issues:[]},X);if(q instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(q.issues.length){J.issues.push({code:"invalid_key",origin:"record",issues:q.issues.map((H)=>rD(H,X,f1())),input:G,path:[G],inst:$});continue}let W=q.value,z=D.valueType._zod.run({value:Q[G],issues:[]},X);if(z instanceof Promise)Y.push(z.then((H)=>{if(H.issues.length)J.issues.push(...O6(G,H.issues));J.value[W]=H.value}));else{if(z.issues.length)J.issues.push(...O6(G,z.issues));J.value[W]=z.value}}let U;for(let G in Q)if(!F.has(G))U=U??[],U.push(G);if(U&&U.length>0)J.issues.push({code:"unrecognized_keys",input:Q,inst:$,keys:U})}else{J.value={};for(let F of Reflect.ownKeys(Q)){if(F==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(Q,F))continue;let U=D.keyType._zod.run({value:F,issues:[]},X);if(U instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof F==="string"&&TU.test(F)&&U.issues.length){let W=D.keyType._zod.run({value:Number(F),issues:[]},X);if(W instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(W.issues.length===0)U=W}if(U.issues.length){if(D.mode==="loose")J.value[F]=Q[F];else J.issues.push({code:"invalid_key",origin:"record",issues:U.issues.map((W)=>rD(W,X,f1())),input:F,path:[F],inst:$});continue}let q=D.valueType._zod.run({value:Q[F],issues:[]},X);if(q instanceof Promise)Y.push(q.then((W)=>{if(W.issues.length)J.issues.push(...O6(F,W.issues));J.value[U.value]=W.value}));else{if(q.issues.length)J.issues.push(...O6(F,q.issues));J.value[U.value]=q.value}}}if(Y.length)return Promise.all(Y).then(()=>J);return J}}),bA=t("$ZodMap",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{let Q=J.value;if(!(Q instanceof Map))return J.issues.push({expected:"map",code:"invalid_type",input:Q,inst:$}),J;let Y=[];J.value=new Map;for(let[Z,F]of Q){let U=D.keyType._zod.run({value:Z,issues:[]},X),G=D.valueType._zod.run({value:F,issues:[]},X);if(U instanceof Promise||G instanceof Promise)Y.push(Promise.all([U,G]).then(([q,W])=>{B80(q,W,J,Z,Q,$,X)}));else B80(U,G,J,Z,Q,$,X)}if(Y.length)return Promise.all(Y).then(()=>J);return J}});gA=t("$ZodSet",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{let Q=J.value;if(!(Q instanceof Set))return J.issues.push({input:Q,inst:$,expected:"set",code:"invalid_type"}),J;let Y=[];J.value=new Set;for(let Z of Q){let F=D.valueType._zod.run({value:Z,issues:[]},X);if(F instanceof Promise)Y.push(F.then((U)=>E80(U,J)));else E80(F,J)}if(Y.length)return Promise.all(Y).then(()=>J);return J}});mA=t("$ZodEnum",($,D)=>{Y$.init($,D);let J=LU(D.entries),X=new Set(J);$._zod.values=X,$._zod.pattern=new RegExp(`^(${J.filter((Q)=>BU.has(typeof Q)).map((Q)=>typeof Q==="string"?s6(Q):Q.toString()).join("|")})$`),$._zod.parse=(Q,Y)=>{let Z=Q.value;if(X.has(Z))return Q;return Q.issues.push({code:"invalid_value",values:J,input:Z,inst:$}),Q}}),dA=t("$ZodLiteral",($,D)=>{if(Y$.init($,D),D.values.length===0)throw Error("Cannot create literal schema with no valid values");let J=new Set(D.values);$._zod.values=J,$._zod.pattern=new RegExp(`^(${D.values.map((X)=>typeof X==="string"?s6(X):X?s6(X.toString()):String(X)).join("|")})$`),$._zod.parse=(X,Q)=>{let Y=X.value;if(J.has(Y))return X;return X.issues.push({code:"invalid_value",values:D.values,input:Y,inst:$}),X}}),cA=t("$ZodFile",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{let Q=J.value;if(Q instanceof File)return J;return J.issues.push({expected:"file",code:"invalid_type",input:Q,inst:$}),J}}),lA=t("$ZodTransform",($,D)=>{Y$.init($,D),$._zod.optin="optional",$._zod.parse=(J,X)=>{if(X.direction==="backward")throw new cJ($.constructor.name);let Q=D.transform(J.value,J);if(X.async)return(Q instanceof Promise?Q:Promise.resolve(Q)).then((Z)=>{return J.value=Z,J.fallback=!0,J});if(Q instanceof Promise)throw new q8;return J.value=Q,J.fallback=!0,J}});nH=t("$ZodOptional",($,D)=>{Y$.init($,D),$._zod.optin="optional",$._zod.optout="optional",L$($._zod,"values",()=>{return D.innerType._zod.values?new Set([...D.innerType._zod.values,void 0]):void 0}),L$($._zod,"pattern",()=>{let J=D.innerType._zod.pattern;return J?new RegExp(`^(${wU(J.source)})?$`):void 0}),$._zod.parse=(J,X)=>{if(D.innerType._zod.optin==="optional"){let Q=J.value,Y=D.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Z)=>R80(Z,Q));return R80(Y,Q)}if(J.value===void 0)return J;return D.innerType._zod.run(J,X)}}),nA=t("$ZodExactOptional",($,D)=>{nH.init($,D),L$($._zod,"values",()=>D.innerType._zod.values),L$($._zod,"pattern",()=>D.innerType._zod.pattern),$._zod.parse=(J,X)=>{return D.innerType._zod.run(J,X)}}),iA=t("$ZodNullable",($,D)=>{Y$.init($,D),L$($._zod,"optin",()=>D.innerType._zod.optin),L$($._zod,"optout",()=>D.innerType._zod.optout),L$($._zod,"pattern",()=>{let J=D.innerType._zod.pattern;return J?new RegExp(`^(${wU(J.source)}|null)$`):void 0}),L$($._zod,"values",()=>{return D.innerType._zod.values?new Set([...D.innerType._zod.values,null]):void 0}),$._zod.parse=(J,X)=>{if(J.value===null)return J;return D.innerType._zod.run(J,X)}}),pA=t("$ZodDefault",($,D)=>{Y$.init($,D),$._zod.optin="optional",L$($._zod,"values",()=>D.innerType._zod.values),$._zod.parse=(J,X)=>{if(X.direction==="backward")return D.innerType._zod.run(J,X);if(J.value===void 0)return J.value=D.defaultValue,J;let Q=D.innerType._zod.run(J,X);if(Q instanceof Promise)return Q.then((Y)=>A80(Y,D));return A80(Q,D)}});rA=t("$ZodPrefault",($,D)=>{Y$.init($,D),$._zod.optin="optional",L$($._zod,"values",()=>D.innerType._zod.values),$._zod.parse=(J,X)=>{if(X.direction==="backward")return D.innerType._zod.run(J,X);if(J.value===void 0)J.value=D.defaultValue;return D.innerType._zod.run(J,X)}}),oA=t("$ZodNonOptional",($,D)=>{Y$.init($,D),L$($._zod,"values",()=>{let J=D.innerType._zod.values;return J?new Set([...J].filter((X)=>X!==void 0)):void 0}),$._zod.parse=(J,X)=>{let Q=D.innerType._zod.run(J,X);if(Q instanceof Promise)return Q.then((Y)=>I80(Y,$));return I80(Q,$)}});aA=t("$ZodSuccess",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{if(X.direction==="backward")throw new cJ("ZodSuccess");let Q=D.innerType._zod.run(J,X);if(Q instanceof Promise)return Q.then((Y)=>{return J.value=Y.issues.length===0,J});return J.value=Q.issues.length===0,J}}),tA=t("$ZodCatch",($,D)=>{Y$.init($,D),$._zod.optin="optional",L$($._zod,"optout",()=>D.innerType._zod.optout),L$($._zod,"values",()=>D.innerType._zod.values),$._zod.parse=(J,X)=>{if(X.direction==="backward")return D.innerType._zod.run(J,X);let Q=D.innerType._zod.run(J,X);if(Q instanceof Promise)return Q.then((Y)=>{if(J.value=Y.value,Y.issues.length)J.value=D.catchValue({...J,error:{issues:Y.issues.map((Z)=>rD(Z,X,f1()))},input:J.value}),J.issues=[],J.fallback=!0;return J});if(J.value=Q.value,Q.issues.length)J.value=D.catchValue({...J,error:{issues:Q.issues.map((Y)=>rD(Y,X,f1()))},input:J.value}),J.issues=[],J.fallback=!0;return J}}),sA=t("$ZodNaN",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{if(typeof J.value!=="number"||!Number.isNaN(J.value))return J.issues.push({input:J.value,inst:$,expected:"nan",code:"invalid_type"}),J;return J}}),iH=t("$ZodPipe",($,D)=>{Y$.init($,D),L$($._zod,"values",()=>D.in._zod.values),L$($._zod,"optin",()=>D.in._zod.optin),L$($._zod,"optout",()=>D.out._zod.optout),L$($._zod,"propValues",()=>D.in._zod.propValues),$._zod.parse=(J,X)=>{if(X.direction==="backward"){let Y=D.out._zod.run(J,X);if(Y instanceof Promise)return Y.then((Z)=>hH(Z,D.in,X));return hH(Y,D.in,X)}let Q=D.in._zod.run(J,X);if(Q instanceof Promise)return Q.then((Y)=>hH(Y,D.out,X));return hH(Q,D.out,X)}});vU=t("$ZodCodec",($,D)=>{Y$.init($,D),L$($._zod,"values",()=>D.in._zod.values),L$($._zod,"optin",()=>D.in._zod.optin),L$($._zod,"optout",()=>D.out._zod.optout),L$($._zod,"propValues",()=>D.in._zod.propValues),$._zod.parse=(J,X)=>{if((X.direction||"forward")==="forward"){let Y=D.in._zod.run(J,X);if(Y instanceof Promise)return Y.then((Z)=>bH(Z,D,X));return bH(Y,D,X)}else{let Y=D.out._zod.run(J,X);if(Y instanceof Promise)return Y.then((Z)=>bH(Z,D,X));return bH(Y,D,X)}}});eA=t("$ZodPreprocess",($,D)=>{iH.init($,D)}),$I=t("$ZodReadonly",($,D)=>{Y$.init($,D),L$($._zod,"propValues",()=>D.innerType._zod.propValues),L$($._zod,"values",()=>D.innerType._zod.values),L$($._zod,"optin",()=>D.innerType?._zod?.optin),L$($._zod,"optout",()=>D.innerType?._zod?.optout),$._zod.parse=(J,X)=>{if(X.direction==="backward")return D.innerType._zod.run(J,X);let Q=D.innerType._zod.run(J,X);if(Q instanceof Promise)return Q.then(j80);return j80(Q)}});DI=t("$ZodTemplateLiteral",($,D)=>{Y$.init($,D);let J=[];for(let X of D.parts)if(typeof X==="object"&&X!==null){if(!X._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...X._zod.traits].shift()}`);let Q=X._zod.pattern instanceof RegExp?X._zod.pattern.source:X._zod.pattern;if(!Q)throw Error(`Invalid template literal part: ${X._zod.traits}`);let Y=Q.startsWith("^")?1:0,Z=Q.endsWith("$")?Q.length-1:Q.length;J.push(Q.slice(Y,Z))}else if(X===null||lE.has(typeof X))J.push(s6(`${X}`));else throw Error(`Invalid template literal part: ${X}`);$._zod.pattern=new RegExp(`^${J.join("")}$`),$._zod.parse=(X,Q)=>{if(typeof X.value!=="string")return X.issues.push({input:X.value,inst:$,expected:"string",code:"invalid_type"}),X;if($._zod.pattern.lastIndex=0,!$._zod.pattern.test(X.value))return X.issues.push({input:X.value,inst:$,code:"invalid_format",format:D.format??"template_literal",pattern:$._zod.pattern.source}),X;return X}}),JI=t("$ZodFunction",($,D)=>{return Y$.init($,D),$._def=D,$._zod.def=D,$.implement=(J)=>{if(typeof J!=="function")throw Error("implement() must be called with a function");return function(...X){let Q=$._def.input?EH($._def.input,X):X,Y=Reflect.apply(J,this,Q);if($._def.output)return EH($._def.output,Y);return Y}},$.implementAsync=(J)=>{if(typeof J!=="function")throw Error("implementAsync() must be called with a function");return async function(...X){let Q=$._def.input?await RH($._def.input,X):X,Y=await Reflect.apply(J,this,Q);if($._def.output)return await RH($._def.output,Y);return Y}},$._zod.parse=(J,X)=>{if(typeof J.value!=="function")return J.issues.push({code:"invalid_type",expected:"function",input:J.value,inst:$}),J;if($._def.output&&$._def.output._zod.def.type==="promise")J.value=$.implementAsync(J.value);else J.value=$.implement(J.value);return J},$.input=(...J)=>{let X=$.constructor;if(Array.isArray(J[0]))return new X({type:"function",input:new lH({type:"tuple",items:J[0],rest:J[1]}),output:$._def.output});return new X({type:"function",input:J[0],output:$._def.output})},$.output=(J)=>{return new $.constructor({type:"function",input:$._def.input,output:J})},$}),XI=t("$ZodPromise",($,D)=>{Y$.init($,D),$._zod.parse=(J,X)=>{return Promise.resolve(J.value).then((Q)=>D.innerType._zod.run({value:Q,issues:[]},X))}}),QI=t("$ZodLazy",($,D)=>{Y$.init($,D),L$($._zod,"innerType",()=>{let J=D;if(!J._cachedInner)J._cachedInner=D.getter();return J._cachedInner}),L$($._zod,"pattern",()=>$._zod.innerType?._zod?.pattern),L$($._zod,"propValues",()=>$._zod.innerType?._zod?.propValues),L$($._zod,"optin",()=>$._zod.innerType?._zod?.optin??void 0),L$($._zod,"optout",()=>$._zod.innerType?._zod?.optout??void 0),$._zod.parse=(J,X)=>{return $._zod.innerType._zod.run(J,X)}}),YI=t("$ZodCustom",($,D)=>{D1.init($,D),Y$.init($,D),$._zod.parse=(J,X)=>{return J},$._zod.check=(J)=>{let X=J.value,Q=D.fn(X);if(Q instanceof Promise)return Q.then((Y)=>T80(Y,J,X,$));T80(Q,J,X,$);return}})});function FI(){return{localeError:Os0()}}var Os0=()=>{let $={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function D(Q){return $[Q]??null}let J={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${Q.expected}، ولكن تم إدخال ${F}`;return`مدخلات غير مقبولة: يفترض إدخال ${Y}، ولكن تم إدخال ${F}`}case"invalid_value":if(Q.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${z0(Q.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return` أكبر من اللازم: يفترض أن تكون ${Q.origin??"القيمة"} ${Y} ${Q.maximum.toString()} ${Z.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${Q.origin??"القيمة"} ${Y} ${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`أصغر من اللازم: يفترض لـ ${Q.origin} أن يكون ${Y} ${Q.minimum.toString()} ${Z.unit}`;return`أصغر من اللازم: يفترض لـ ${Q.origin} أن يكون ${Y} ${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${Q.prefix}"`;if(Y.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${Y.suffix}"`;if(Y.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${Y.includes}"`;if(Y.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${Y.pattern}`;return`${J[Y.format]??Q.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${Q.divisor}`;case"unrecognized_keys":return`معرف${Q.keys.length>1?"ات":""} غريب${Q.keys.length>1?"ة":""}: ${J0(Q.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${Q.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${Q.origin}`;default:return"مدخل غير مقبول"}}};var _80=a(()=>{h0()});function UI(){return{localeError:Vs0()}}var Vs0=()=>{let $={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function D(Q){return $[Q]??null}let J={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"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Yanlış dəyər: gözlənilən instanceof ${Q.expected}, daxil olan ${F}`;return`Yanlış dəyər: gözlənilən ${Y}, daxil olan ${F}`}case"invalid_value":if(Q.values.length===1)return`Yanlış dəyər: gözlənilən ${z0(Q.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Çox böyük: gözlənilən ${Q.origin??"dəyər"} ${Y}${Q.maximum.toString()} ${Z.unit??"element"}`;return`Çox böyük: gözlənilən ${Q.origin??"dəyər"} ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Çox kiçik: gözlənilən ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Çox kiçik: gözlənilən ${Q.origin} ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Yanlış mətn: "${Y.prefix}" ilə başlamalıdır`;if(Y.format==="ends_with")return`Yanlış mətn: "${Y.suffix}" ilə bitməlidir`;if(Y.format==="includes")return`Yanlış mətn: "${Y.includes}" daxil olmalıdır`;if(Y.format==="regex")return`Yanlış mətn: ${Y.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Yanlış ədəd: ${Q.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${Q.keys.length>1?"lar":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`${Q.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${Q.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};var k80=a(()=>{h0()});function u80($,D,J,X){let Q=Math.abs($),Y=Q%10,Z=Q%100;if(Z>=11&&Z<=19)return X;if(Y===1)return D;if(Y>=2&&Y<=4)return J;return X}function GI(){return{localeError:Ks0()}}var Ks0=()=>{let $={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function D(Q){return $[Q]??null}let J={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},X={nan:"NaN",number:"лік",array:"масіў"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Няправільны ўвод: чакаўся instanceof ${Q.expected}, атрымана ${F}`;return`Няправільны ўвод: чакаўся ${Y}, атрымана ${F}`}case"invalid_value":if(Q.values.length===1)return`Няправільны ўвод: чакалася ${z0(Q.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z){let F=Number(Q.maximum),U=u80(F,Z.unit.one,Z.unit.few,Z.unit.many);return`Занадта вялікі: чакалася, што ${Q.origin??"значэнне"} павінна ${Z.verb} ${Y}${Q.maximum.toString()} ${U}`}return`Занадта вялікі: чакалася, што ${Q.origin??"значэнне"} павінна быць ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z){let F=Number(Q.minimum),U=u80(F,Z.unit.one,Z.unit.few,Z.unit.many);return`Занадта малы: чакалася, што ${Q.origin} павінна ${Z.verb} ${Y}${Q.minimum.toString()} ${U}`}return`Занадта малы: чакалася, што ${Q.origin} павінна быць ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${Y.prefix}"`;if(Y.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${Y.suffix}"`;if(Y.format==="includes")return`Няправільны радок: павінен змяшчаць "${Y.includes}"`;if(Y.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${Y.pattern}`;return`Няправільны ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${Q.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${Q.keys.length>1?"ключы":"ключ"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${Q.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${Q.origin}`;default:return"Няправільны ўвод"}}};var y80=a(()=>{h0()});function qI(){return{localeError:Ns0()}}var Ns0=()=>{let $={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function D(Q){return $[Q]??null}let J={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},X={nan:"NaN",number:"число",array:"масив"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Невалиден вход: очакван instanceof ${Q.expected}, получен ${F}`;return`Невалиден вход: очакван ${Y}, получен ${F}`}case"invalid_value":if(Q.values.length===1)return`Невалиден вход: очакван ${z0(Q.values[0])}`;return`Невалидна опция: очаквано едно от ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Твърде голямо: очаква се ${Q.origin??"стойност"} да съдържа ${Y}${Q.maximum.toString()} ${Z.unit??"елемента"}`;return`Твърде голямо: очаква се ${Q.origin??"стойност"} да бъде ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Твърде малко: очаква се ${Q.origin} да съдържа ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Твърде малко: очаква се ${Q.origin} да бъде ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Невалиден низ: трябва да започва с "${Y.prefix}"`;if(Y.format==="ends_with")return`Невалиден низ: трябва да завършва с "${Y.suffix}"`;if(Y.format==="includes")return`Невалиден низ: трябва да включва "${Y.includes}"`;if(Y.format==="regex")return`Невалиден низ: трябва да съвпада с ${Y.pattern}`;let Z="Невалиден";if(Y.format==="emoji")Z="Невалидно";if(Y.format==="datetime")Z="Невалидно";if(Y.format==="date")Z="Невалидна";if(Y.format==="time")Z="Невалидно";if(Y.format==="duration")Z="Невалидна";return`${Z} ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${Q.divisor}`;case"unrecognized_keys":return`Неразпознат${Q.keys.length>1?"и":""} ключ${Q.keys.length>1?"ове":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${Q.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${Q.origin}`;default:return"Невалиден вход"}}};var f80=a(()=>{h0()});function WI(){return{localeError:Ms0()}}var Ms0=()=>{let $={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function D(Q){return $[Q]??null}let J={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Tipus invàlid: s'esperava instanceof ${Q.expected}, s'ha rebut ${F}`;return`Tipus invàlid: s'esperava ${Y}, s'ha rebut ${F}`}case"invalid_value":if(Q.values.length===1)return`Valor invàlid: s'esperava ${z0(Q.values[0])}`;return`Opció invàlida: s'esperava una de ${J0(Q.values," o ")}`;case"too_big":{let Y=Q.inclusive?"com a màxim":"menys de",Z=D(Q.origin);if(Z)return`Massa gran: s'esperava que ${Q.origin??"el valor"} contingués ${Y} ${Q.maximum.toString()} ${Z.unit??"elements"}`;return`Massa gran: s'esperava que ${Q.origin??"el valor"} fos ${Y} ${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?"com a mínim":"més de",Z=D(Q.origin);if(Z)return`Massa petit: s'esperava que ${Q.origin} contingués ${Y} ${Q.minimum.toString()} ${Z.unit}`;return`Massa petit: s'esperava que ${Q.origin} fos ${Y} ${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Format invàlid: ha de començar amb "${Y.prefix}"`;if(Y.format==="ends_with")return`Format invàlid: ha d'acabar amb "${Y.suffix}"`;if(Y.format==="includes")return`Format invàlid: ha d'incloure "${Y.includes}"`;if(Y.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${Y.pattern}`;return`Format invàlid per a ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${Q.divisor}`;case"unrecognized_keys":return`Clau${Q.keys.length>1?"s":""} no reconeguda${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${Q.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${Q.origin}`;default:return"Entrada invàlida"}}};var h80=a(()=>{h0()});function zI(){return{localeError:Ls0()}}var Ls0=()=>{let $={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function D(Q){return $[Q]??null}let J={regex:"regulární výraz",email:"e-mailová 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 čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},X={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Neplatný vstup: očekáváno instanceof ${Q.expected}, obdrženo ${F}`;return`Neplatný vstup: očekáváno ${Y}, obdrženo ${F}`}case"invalid_value":if(Q.values.length===1)return`Neplatný vstup: očekáváno ${z0(Q.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Hodnota je příliš velká: ${Q.origin??"hodnota"} musí mít ${Y}${Q.maximum.toString()} ${Z.unit??"prvků"}`;return`Hodnota je příliš velká: ${Q.origin??"hodnota"} musí být ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Hodnota je příliš malá: ${Q.origin??"hodnota"} musí mít ${Y}${Q.minimum.toString()} ${Z.unit??"prvků"}`;return`Hodnota je příliš malá: ${Q.origin??"hodnota"} musí být ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Neplatný řetězec: musí začínat na "${Y.prefix}"`;if(Y.format==="ends_with")return`Neplatný řetězec: musí končit na "${Y.suffix}"`;if(Y.format==="includes")return`Neplatný řetězec: musí obsahovat "${Y.includes}"`;if(Y.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${Y.pattern}`;return`Neplatný formát ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${Q.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${J0(Q.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${Q.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${Q.origin}`;default:return"Neplatný vstup"}}};var b80=a(()=>{h0()});function HI(){return{localeError:ws0()}}var ws0=()=>{let $={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function D(Q){return $[Q]??null}let J={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},X={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Ugyldigt input: forventede instanceof ${Q.expected}, fik ${F}`;return`Ugyldigt input: forventede ${Y}, fik ${F}`}case"invalid_value":if(Q.values.length===1)return`Ugyldig værdi: forventede ${z0(Q.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin),F=X[Q.origin]??Q.origin;if(Z)return`For stor: forventede ${F??"value"} ${Z.verb} ${Y} ${Q.maximum.toString()} ${Z.unit??"elementer"}`;return`For stor: forventede ${F??"value"} havde ${Y} ${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin),F=X[Q.origin]??Q.origin;if(Z)return`For lille: forventede ${F} ${Z.verb} ${Y} ${Q.minimum.toString()} ${Z.unit}`;return`For lille: forventede ${F} havde ${Y} ${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ugyldig streng: skal starte med "${Y.prefix}"`;if(Y.format==="ends_with")return`Ugyldig streng: skal ende med "${Y.suffix}"`;if(Y.format==="includes")return`Ugyldig streng: skal indeholde "${Y.includes}"`;if(Y.format==="regex")return`Ugyldig streng: skal matche mønsteret ${Y.pattern}`;return`Ugyldig ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${Q.divisor}`;case"unrecognized_keys":return`${Q.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${Q.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${Q.origin}`;default:return"Ugyldigt input"}}};var g80=a(()=>{h0()});function OI(){return{localeError:Bs0()}}var Bs0=()=>{let $={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 D(Q){return $[Q]??null}let J={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"},X={nan:"NaN",number:"Zahl",array:"Array"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Ungültige Eingabe: erwartet instanceof ${Q.expected}, erhalten ${F}`;return`Ungültige Eingabe: erwartet ${Y}, erhalten ${F}`}case"invalid_value":if(Q.values.length===1)return`Ungültige Eingabe: erwartet ${z0(Q.values[0])}`;return`Ungültige Option: erwartet eine von ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Zu groß: erwartet, dass ${Q.origin??"Wert"} ${Y}${Q.maximum.toString()} ${Z.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${Q.origin??"Wert"} ${Y}${Q.maximum.toString()} ist`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Zu klein: erwartet, dass ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit} hat`;return`Zu klein: erwartet, dass ${Q.origin} ${Y}${Q.minimum.toString()} ist`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ungültiger String: muss mit "${Y.prefix}" beginnen`;if(Y.format==="ends_with")return`Ungültiger String: muss mit "${Y.suffix}" enden`;if(Y.format==="includes")return`Ungültiger String: muss "${Y.includes}" enthalten`;if(Y.format==="regex")return`Ungültiger String: muss dem Muster ${Y.pattern} entsprechen`;return`Ungültig: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${Q.divisor} sein`;case"unrecognized_keys":return`${Q.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${Q.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${Q.origin}`;default:return"Ungültige Eingabe"}}};var m80=a(()=>{h0()});function VI(){return{localeError:Es0()}}var Es0=()=>{let $={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function D(Q){return $[Q]??null}let J={regex:"είσοδος",email:"διεύθυνση 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:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(typeof Q.expected==="string"&&/^[A-Z]/.test(Q.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${Q.expected}, λήφθηκε ${F}`;return`Μη έγκυρη είσοδος: αναμενόταν ${Y}, λήφθηκε ${F}`}case"invalid_value":if(Q.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${z0(Q.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Πολύ μεγάλο: αναμενόταν ${Q.origin??"τιμή"} να έχει ${Y}${Q.maximum.toString()} ${Z.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${Q.origin??"τιμή"} να είναι ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Πολύ μικρό: αναμενόταν ${Q.origin} να έχει ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Πολύ μικρό: αναμενόταν ${Q.origin} να είναι ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${Y.prefix}"`;if(Y.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${Y.suffix}"`;if(Y.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${Y.includes}"`;if(Y.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${Y.pattern}`;return`Μη έγκυρο: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${Q.divisor}`;case"unrecognized_keys":return`Άγνωστ${Q.keys.length>1?"α":"ο"} κλειδ${Q.keys.length>1?"ιά":"ί"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${Q.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${Q.origin}`;default:return"Μη έγκυρη είσοδος"}}};var d80=a(()=>{h0()});function _U(){return{localeError:Rs0()}}var Rs0=()=>{let $={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function D(Q){return $[Q]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;return`Invalid input: expected ${Y}, received ${F}`}case"invalid_value":if(Q.values.length===1)return`Invalid input: expected ${z0(Q.values[0])}`;return`Invalid option: expected one of ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Too big: expected ${Q.origin??"value"} to have ${Y}${Q.maximum.toString()} ${Z.unit??"elements"}`;return`Too big: expected ${Q.origin??"value"} to be ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Too small: expected ${Q.origin} to have ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Too small: expected ${Q.origin} to be ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Invalid string: must start with "${Y.prefix}"`;if(Y.format==="ends_with")return`Invalid string: must end with "${Y.suffix}"`;if(Y.format==="includes")return`Invalid string: must include "${Y.includes}"`;if(Y.format==="regex")return`Invalid string: must match pattern ${Y.pattern}`;return`Invalid ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Q.divisor}`;case"unrecognized_keys":return`Unrecognized key${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Invalid key in ${Q.origin}`;case"invalid_union":if(Q.options&&Array.isArray(Q.options)&&Q.options.length>0)return`Invalid discriminator value. Expected ${Q.options.map((Z)=>`'${Z}'`).join(" | ")}`;return"Invalid input";case"invalid_element":return`Invalid value in ${Q.origin}`;default:return"Invalid input"}}};var KI=a(()=>{h0()});function NI(){return{localeError:As0()}}var As0=()=>{let $={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function D(Q){return $[Q]??null}let J={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},X={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Nevalida enigo: atendiĝis instanceof ${Q.expected}, riceviĝis ${F}`;return`Nevalida enigo: atendiĝis ${Y}, riceviĝis ${F}`}case"invalid_value":if(Q.values.length===1)return`Nevalida enigo: atendiĝis ${z0(Q.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Tro granda: atendiĝis ke ${Q.origin??"valoro"} havu ${Y}${Q.maximum.toString()} ${Z.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${Q.origin??"valoro"} havu ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Tro malgranda: atendiĝis ke ${Q.origin} havu ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Tro malgranda: atendiĝis ke ${Q.origin} estu ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${Y.prefix}"`;if(Y.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${Y.suffix}"`;if(Y.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${Y.includes}"`;if(Y.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${Y.pattern}`;return`Nevalida ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${Q.divisor}`;case"unrecognized_keys":return`Nekonata${Q.keys.length>1?"j":""} ŝlosilo${Q.keys.length>1?"j":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${Q.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${Q.origin}`;default:return"Nevalida enigo"}}};var c80=a(()=>{h0()});function MI(){return{localeError:Is0()}}var Is0=()=>{let $={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function D(Q){return $[Q]??null}let J={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Entrada inválida: se esperaba instanceof ${Q.expected}, recibido ${F}`;return`Entrada inválida: se esperaba ${Y}, recibido ${F}`}case"invalid_value":if(Q.values.length===1)return`Entrada inválida: se esperaba ${z0(Q.values[0])}`;return`Opción inválida: se esperaba una de ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin),F=X[Q.origin]??Q.origin;if(Z)return`Demasiado grande: se esperaba que ${F??"valor"} tuviera ${Y}${Q.maximum.toString()} ${Z.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${F??"valor"} fuera ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin),F=X[Q.origin]??Q.origin;if(Z)return`Demasiado pequeño: se esperaba que ${F} tuviera ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Demasiado pequeño: se esperaba que ${F} fuera ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Cadena inválida: debe comenzar con "${Y.prefix}"`;if(Y.format==="ends_with")return`Cadena inválida: debe terminar en "${Y.suffix}"`;if(Y.format==="includes")return`Cadena inválida: debe incluir "${Y.includes}"`;if(Y.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${Y.pattern}`;return`Inválido ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${Q.divisor}`;case"unrecognized_keys":return`Llave${Q.keys.length>1?"s":""} desconocida${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Llave inválida en ${X[Q.origin]??Q.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${X[Q.origin]??Q.origin}`;default:return"Entrada inválida"}}};var l80=a(()=>{h0()});function LI(){return{localeError:js0()}}var js0=()=>{let $={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function D(Q){return $[Q]??null}let J={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},X={nan:"NaN",number:"عدد",array:"آرایه"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`ورودی نامعتبر: میبایست instanceof ${Q.expected} میبود، ${F} دریافت شد`;return`ورودی نامعتبر: میبایست ${Y} میبود، ${F} دریافت شد`}case"invalid_value":if(Q.values.length===1)return`ورودی نامعتبر: میبایست ${z0(Q.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${J0(Q.values,"|")} میبود`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`خیلی بزرگ: ${Q.origin??"مقدار"} باید ${Y}${Q.maximum.toString()} ${Z.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${Q.origin??"مقدار"} باید ${Y}${Q.maximum.toString()} باشد`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`خیلی کوچک: ${Q.origin} باید ${Y}${Q.minimum.toString()} ${Z.unit} باشد`;return`خیلی کوچک: ${Q.origin} باید ${Y}${Q.minimum.toString()} باشد`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`رشته نامعتبر: باید با "${Y.prefix}" شروع شود`;if(Y.format==="ends_with")return`رشته نامعتبر: باید با "${Y.suffix}" تمام شود`;if(Y.format==="includes")return`رشته نامعتبر: باید شامل "${Y.includes}" باشد`;if(Y.format==="regex")return`رشته نامعتبر: باید با الگوی ${Y.pattern} مطابقت داشته باشد`;return`${J[Y.format]??Q.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${Q.divisor} باشد`;case"unrecognized_keys":return`کلید${Q.keys.length>1?"های":""} ناشناس: ${J0(Q.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${Q.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${Q.origin}`;default:return"ورودی نامعتبر"}}};var n80=a(()=>{h0()});function wI(){return{localeError:Ts0()}}var Ts0=()=>{let $={string:{unit:"merkkiä",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äivämäärän"}};function D(Q){return $[Q]??null}let J={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",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"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Virheellinen tyyppi: odotettiin instanceof ${Q.expected}, oli ${F}`;return`Virheellinen tyyppi: odotettiin ${Y}, oli ${F}`}case"invalid_value":if(Q.values.length===1)return`Virheellinen syöte: täytyy olla ${z0(Q.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Liian suuri: ${Z.subject} täytyy olla ${Y}${Q.maximum.toString()} ${Z.unit}`.trim();return`Liian suuri: arvon täytyy olla ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Liian pieni: ${Z.subject} täytyy olla ${Y}${Q.minimum.toString()} ${Z.unit}`.trim();return`Liian pieni: arvon täytyy olla ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${Y.prefix}"`;if(Y.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${Y.suffix}"`;if(Y.format==="includes")return`Virheellinen syöte: täytyy sisältää "${Y.includes}"`;if(Y.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${Y.pattern}`;return`Virheellinen ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${Q.divisor} monikerta`;case"unrecognized_keys":return`${Q.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${J0(Q.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öte"}}};var i80=a(()=>{h0()});function BI(){return{localeError:Cs0()}}var Cs0=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function D(Q){return $[Q]??null}let J={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},X={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Entrée invalide : instanceof ${Q.expected} attendu, ${F} reçu`;return`Entrée invalide : ${Y} attendu, ${F} reçu`}case"invalid_value":if(Q.values.length===1)return`Entrée invalide : ${z0(Q.values[0])} attendu`;return`Option invalide : une valeur parmi ${J0(Q.values,"|")} attendue`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Trop grand : ${X[Q.origin]??"valeur"} doit ${Z.verb} ${Y}${Q.maximum.toString()} ${Z.unit??"élément(s)"}`;return`Trop grand : ${X[Q.origin]??"valeur"} doit être ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Trop petit : ${X[Q.origin]??"valeur"} doit ${Z.verb} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Trop petit : ${X[Q.origin]??"valeur"} doit être ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Chaîne invalide : doit commencer par "${Y.prefix}"`;if(Y.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Y.suffix}"`;if(Y.format==="includes")return`Chaîne invalide : doit inclure "${Y.includes}"`;if(Y.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${Y.pattern}`;return`${J[Y.format]??Q.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Q.divisor}`;case"unrecognized_keys":return`Clé${Q.keys.length>1?"s":""} non reconnue${Q.keys.length>1?"s":""} : ${J0(Q.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Q.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Q.origin}`;default:return"Entrée invalide"}}};var p80=a(()=>{h0()});function EI(){return{localeError:Ps0()}}var Ps0=()=>{let $={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function D(Q){return $[Q]??null}let J={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Entrée invalide : attendu instanceof ${Q.expected}, reçu ${F}`;return`Entrée invalide : attendu ${Y}, reçu ${F}`}case"invalid_value":if(Q.values.length===1)return`Entrée invalide : attendu ${z0(Q.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"≤":"<",Z=D(Q.origin);if(Z)return`Trop grand : attendu que ${Q.origin??"la valeur"} ait ${Y}${Q.maximum.toString()} ${Z.unit}`;return`Trop grand : attendu que ${Q.origin??"la valeur"} soit ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?"≥":">",Z=D(Q.origin);if(Z)return`Trop petit : attendu que ${Q.origin} ait ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Trop petit : attendu que ${Q.origin} soit ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Chaîne invalide : doit commencer par "${Y.prefix}"`;if(Y.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Y.suffix}"`;if(Y.format==="includes")return`Chaîne invalide : doit inclure "${Y.includes}"`;if(Y.format==="regex")return`Chaîne invalide : doit correspondre au motif ${Y.pattern}`;return`${J[Y.format]??Q.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Q.divisor}`;case"unrecognized_keys":return`Clé${Q.keys.length>1?"s":""} non reconnue${Q.keys.length>1?"s":""} : ${J0(Q.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Q.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Q.origin}`;default:return"Entrée invalide"}}};var r80=a(()=>{h0()});function RI(){return{localeError:Ss0()}}var Ss0=()=>{let $={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},D={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},J=(G)=>G?$[G]:void 0,X=(G)=>{let q=J(G);if(q)return q.label;return G??$.unknown.label},Q=(G)=>`ה${X(G)}`,Y=(G)=>{return(J(G)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},Z=(G)=>{if(!G)return null;return D[G]??null},F={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},U={nan:"NaN"};return(G)=>{switch(G.code){case"invalid_type":{let q=G.expected,W=U[q??""]??X(q),z=H0(G.input),H=U[z]??$[z]?.label??z;if(/^[A-Z]/.test(G.expected))return`קלט לא תקין: צריך להיות instanceof ${G.expected}, התקבל ${H}`;return`קלט לא תקין: צריך להיות ${W}, התקבל ${H}`}case"invalid_value":{if(G.values.length===1)return`ערך לא תקין: הערך חייב להיות ${z0(G.values[0])}`;let q=G.values.map((H)=>z0(H));if(G.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${q[0]} או ${q[1]}`;let W=q[q.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${q.slice(0,-1).join(", ")} או ${W}`}case"too_big":{let q=Z(G.origin),W=Q(G.origin??"value");if(G.origin==="string")return`${q?.longLabel??"ארוך"} מדי: ${W} צריכה להכיל ${G.maximum.toString()} ${q?.unit??""} ${G.inclusive?"או פחות":"לכל היותר"}`.trim();if(G.origin==="number"){let O=G.inclusive?`קטן או שווה ל-${G.maximum}`:`קטן מ-${G.maximum}`;return`גדול מדי: ${W} צריך להיות ${O}`}if(G.origin==="array"||G.origin==="set"){let O=G.origin==="set"?"צריכה":"צריך",V=G.inclusive?`${G.maximum} ${q?.unit??""} או פחות`:`פחות מ-${G.maximum} ${q?.unit??""}`;return`גדול מדי: ${W} ${O} להכיל ${V}`.trim()}let z=G.inclusive?"<=":"<",H=Y(G.origin??"value");if(q?.unit)return`${q.longLabel} מדי: ${W} ${H} ${z}${G.maximum.toString()} ${q.unit}`;return`${q?.longLabel??"גדול"} מדי: ${W} ${H} ${z}${G.maximum.toString()}`}case"too_small":{let q=Z(G.origin),W=Q(G.origin??"value");if(G.origin==="string")return`${q?.shortLabel??"קצר"} מדי: ${W} צריכה להכיל ${G.minimum.toString()} ${q?.unit??""} ${G.inclusive?"או יותר":"לפחות"}`.trim();if(G.origin==="number"){let O=G.inclusive?`גדול או שווה ל-${G.minimum}`:`גדול מ-${G.minimum}`;return`קטן מדי: ${W} צריך להיות ${O}`}if(G.origin==="array"||G.origin==="set"){let O=G.origin==="set"?"צריכה":"צריך";if(G.minimum===1&&G.inclusive){let K=G.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${W} ${O} להכיל ${K}`}let V=G.inclusive?`${G.minimum} ${q?.unit??""} או יותר`:`יותר מ-${G.minimum} ${q?.unit??""}`;return`קטן מדי: ${W} ${O} להכיל ${V}`.trim()}let z=G.inclusive?">=":">",H=Y(G.origin??"value");if(q?.unit)return`${q.shortLabel} מדי: ${W} ${H} ${z}${G.minimum.toString()} ${q.unit}`;return`${q?.shortLabel??"קטן"} מדי: ${W} ${H} ${z}${G.minimum.toString()}`}case"invalid_format":{let q=G;if(q.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${q.prefix}"`;if(q.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${q.suffix}"`;if(q.format==="includes")return`המחרוזת חייבת לכלול "${q.includes}"`;if(q.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${q.pattern}`;let W=F[q.format],z=W?.label??q.format,O=(W?.gender??"m")==="f"?"תקינה":"תקין";return`${z} לא ${O}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${G.divisor}`;case"unrecognized_keys":return`מפתח${G.keys.length>1?"ות":""} לא מזוה${G.keys.length>1?"ים":"ה"}: ${J0(G.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${Q(G.origin??"array")}`;default:return"קלט לא תקין"}}};var o80=a(()=>{h0()});function AI(){return{localeError:xs0()}}var xs0=()=>{let $={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function D(Q){return $[Q]??null}let J={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},X={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Neispravan unos: očekuje se instanceof ${Q.expected}, a primljeno je ${F}`;return`Neispravan unos: očekuje se ${Y}, a primljeno je ${F}`}case"invalid_value":if(Q.values.length===1)return`Neispravna vrijednost: očekivano ${z0(Q.values[0])}`;return`Neispravna opcija: očekivano jedno od ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin),F=X[Q.origin]??Q.origin;if(Z)return`Preveliko: očekivano da ${F??"vrijednost"} ima ${Y}${Q.maximum.toString()} ${Z.unit??"elemenata"}`;return`Preveliko: očekivano da ${F??"vrijednost"} bude ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin),F=X[Q.origin]??Q.origin;if(Z)return`Premalo: očekivano da ${F} ima ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Premalo: očekivano da ${F} bude ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Neispravan tekst: mora započinjati s "${Y.prefix}"`;if(Y.format==="ends_with")return`Neispravan tekst: mora završavati s "${Y.suffix}"`;if(Y.format==="includes")return`Neispravan tekst: mora sadržavati "${Y.includes}"`;if(Y.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${Y.pattern}`;return`Neispravna ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${Q.divisor}`;case"unrecognized_keys":return`Neprepoznat${Q.keys.length>1?"i ključevi":" ključ"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${X[Q.origin]??Q.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${X[Q.origin]??Q.origin}`;default:return"Neispravan unos"}}};var a80=a(()=>{h0()});function II(){return{localeError:vs0()}}var vs0=()=>{let $={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function D(Q){return $[Q]??null}let J={regex:"bemenet",email:"email cím",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őbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},X={nan:"NaN",number:"szám",array:"tömb"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Érvénytelen bemenet: a várt érték instanceof ${Q.expected}, a kapott érték ${F}`;return`Érvénytelen bemenet: a várt érték ${Y}, a kapott érték ${F}`}case"invalid_value":if(Q.values.length===1)return`Érvénytelen bemenet: a várt érték ${z0(Q.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Túl nagy: ${Q.origin??"érték"} mérete túl nagy ${Y}${Q.maximum.toString()} ${Z.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${Q.origin??"érték"} túl nagy: ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Túl kicsi: a bemeneti érték ${Q.origin} mérete túl kicsi ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Túl kicsi: a bemeneti érték ${Q.origin} túl kicsi ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Érvénytelen string: "${Y.prefix}" értékkel kell kezdődnie`;if(Y.format==="ends_with")return`Érvénytelen string: "${Y.suffix}" értékkel kell végződnie`;if(Y.format==="includes")return`Érvénytelen string: "${Y.includes}" értéket kell tartalmaznia`;if(Y.format==="regex")return`Érvénytelen string: ${Y.pattern} mintának kell megfelelnie`;return`Érvénytelen ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Érvénytelen szám: ${Q.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${Q.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${Q.origin}`;default:return"Érvénytelen bemenet"}}};var t80=a(()=>{h0()});function s80($,D,J){return Math.abs($)===1?D:J}function RQ($){if(!$)return"";let D=["ա","ե","ը","ի","ո","ու","օ"],J=$[$.length-1];return $+(D.includes(J)?"ն":"ը")}function jI(){return{localeError:_s0()}}var _s0=()=>{let $={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function D(Q){return $[Q]??null}let J={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},X={nan:"NaN",number:"թիվ",array:"զանգված"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${Q.expected}, ստացվել է ${F}`;return`Սխալ մուտքագրում․ սպասվում էր ${Y}, ստացվել է ${F}`}case"invalid_value":if(Q.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${z0(Q.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z){let F=Number(Q.maximum),U=s80(F,Z.unit.one,Z.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${RQ(Q.origin??"արժեք")} կունենա ${Y}${Q.maximum.toString()} ${U}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${RQ(Q.origin??"արժեք")} լինի ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z){let F=Number(Q.minimum),U=s80(F,Z.unit.one,Z.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${RQ(Q.origin)} կունենա ${Y}${Q.minimum.toString()} ${U}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${RQ(Q.origin)} լինի ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${Y.prefix}"-ով`;if(Y.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${Y.suffix}"-ով`;if(Y.format==="includes")return`Սխալ տող․ պետք է պարունակի "${Y.includes}"`;if(Y.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${Y.pattern} ձևաչափին`;return`Սխալ ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${Q.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${Q.keys.length>1?"ներ":""}. ${J0(Q.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${RQ(Q.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${RQ(Q.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var e80=a(()=>{h0()});function TI(){return{localeError:ks0()}}var ks0=()=>{let $={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function D(Q){return $[Q]??null}let J={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"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Input tidak valid: diharapkan instanceof ${Q.expected}, diterima ${F}`;return`Input tidak valid: diharapkan ${Y}, diterima ${F}`}case"invalid_value":if(Q.values.length===1)return`Input tidak valid: diharapkan ${z0(Q.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Terlalu besar: diharapkan ${Q.origin??"value"} memiliki ${Y}${Q.maximum.toString()} ${Z.unit??"elemen"}`;return`Terlalu besar: diharapkan ${Q.origin??"value"} menjadi ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Terlalu kecil: diharapkan ${Q.origin} memiliki ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Terlalu kecil: diharapkan ${Q.origin} menjadi ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`String tidak valid: harus dimulai dengan "${Y.prefix}"`;if(Y.format==="ends_with")return`String tidak valid: harus berakhir dengan "${Y.suffix}"`;if(Y.format==="includes")return`String tidak valid: harus menyertakan "${Y.includes}"`;if(Y.format==="regex")return`String tidak valid: harus sesuai pola ${Y.pattern}`;return`${J[Y.format]??Q.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${Q.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${Q.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${Q.origin}`;default:return"Input tidak valid"}}};var $90=a(()=>{h0()});function CI(){return{localeError:us0()}}var us0=()=>{let $={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function D(Q){return $[Q]??null}let J={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},X={nan:"NaN",number:"númer",array:"fylki"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Rangt gildi: Þú slóst inn ${F} þar sem á að vera instanceof ${Q.expected}`;return`Rangt gildi: Þú slóst inn ${F} þar sem á að vera ${Y}`}case"invalid_value":if(Q.values.length===1)return`Rangt gildi: gert ráð fyrir ${z0(Q.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Of stórt: gert er ráð fyrir að ${Q.origin??"gildi"} hafi ${Y}${Q.maximum.toString()} ${Z.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${Q.origin??"gildi"} sé ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Of lítið: gert er ráð fyrir að ${Q.origin} hafi ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Of lítið: gert er ráð fyrir að ${Q.origin} sé ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ógildur strengur: verður að byrja á "${Y.prefix}"`;if(Y.format==="ends_with")return`Ógildur strengur: verður að enda á "${Y.suffix}"`;if(Y.format==="includes")return`Ógildur strengur: verður að innihalda "${Y.includes}"`;if(Y.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${Y.pattern}`;return`Rangt ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${Q.divisor}`;case"unrecognized_keys":return`Óþekkt ${Q.keys.length>1?"ir lyklar":"ur lykill"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${Q.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${Q.origin}`;default:return"Rangt gildi"}}};var D90=a(()=>{h0()});function PI(){return{localeError:ys0()}}var ys0=()=>{let $={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function D(Q){return $[Q]??null}let J={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"},X={nan:"NaN",number:"numero",array:"vettore"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Input non valido: atteso instanceof ${Q.expected}, ricevuto ${F}`;return`Input non valido: atteso ${Y}, ricevuto ${F}`}case"invalid_value":if(Q.values.length===1)return`Input non valido: atteso ${z0(Q.values[0])}`;return`Opzione non valida: atteso uno tra ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Troppo grande: ${Q.origin??"valore"} deve avere ${Y}${Q.maximum.toString()} ${Z.unit??"elementi"}`;return`Troppo grande: ${Q.origin??"valore"} deve essere ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Troppo piccolo: ${Q.origin} deve avere ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Troppo piccolo: ${Q.origin} deve essere ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Stringa non valida: deve iniziare con "${Y.prefix}"`;if(Y.format==="ends_with")return`Stringa non valida: deve terminare con "${Y.suffix}"`;if(Y.format==="includes")return`Stringa non valida: deve includere "${Y.includes}"`;if(Y.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${Y.pattern}`;return`Input non valido: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${Q.divisor}`;case"unrecognized_keys":return`Chiav${Q.keys.length>1?"i":"e"} non riconosciut${Q.keys.length>1?"e":"a"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${Q.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${Q.origin}`;default:return"Input non valido"}}};var J90=a(()=>{h0()});function SI(){return{localeError:fs0()}}var fs0=()=>{let $={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function D(Q){return $[Q]??null}let J={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},X={nan:"NaN",number:"数値",array:"配列"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`無効な入力: instanceof ${Q.expected}が期待されましたが、${F}が入力されました`;return`無効な入力: ${Y}が期待されましたが、${F}が入力されました`}case"invalid_value":if(Q.values.length===1)return`無効な入力: ${z0(Q.values[0])}が期待されました`;return`無効な選択: ${J0(Q.values,"、")}のいずれかである必要があります`;case"too_big":{let Y=Q.inclusive?"以下である":"より小さい",Z=D(Q.origin);if(Z)return`大きすぎる値: ${Q.origin??"値"}は${Q.maximum.toString()}${Z.unit??"要素"}${Y}必要があります`;return`大きすぎる値: ${Q.origin??"値"}は${Q.maximum.toString()}${Y}必要があります`}case"too_small":{let Y=Q.inclusive?"以上である":"より大きい",Z=D(Q.origin);if(Z)return`小さすぎる値: ${Q.origin}は${Q.minimum.toString()}${Z.unit}${Y}必要があります`;return`小さすぎる値: ${Q.origin}は${Q.minimum.toString()}${Y}必要があります`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`無効な文字列: "${Y.prefix}"で始まる必要があります`;if(Y.format==="ends_with")return`無効な文字列: "${Y.suffix}"で終わる必要があります`;if(Y.format==="includes")return`無効な文字列: "${Y.includes}"を含む必要があります`;if(Y.format==="regex")return`無効な文字列: パターン${Y.pattern}に一致する必要があります`;return`無効な${J[Y.format]??Q.format}`}case"not_multiple_of":return`無効な数値: ${Q.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${Q.keys.length>1?"群":""}: ${J0(Q.keys,"、")}`;case"invalid_key":return`${Q.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${Q.origin}内の無効な値`;default:return"無効な入力"}}};var X90=a(()=>{h0()});function xI(){return{localeError:hs0()}}var hs0=()=>{let $={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function D(Q){return $[Q]??null}let J={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},X={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${Q.expected}, მიღებული ${F}`;return`არასწორი შეყვანა: მოსალოდნელი ${Y}, მიღებული ${F}`}case"invalid_value":if(Q.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${z0(Q.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J0(Q.values,"|")}-დან`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`ზედმეტად დიდი: მოსალოდნელი ${Q.origin??"მნიშვნელობა"} ${Z.verb} ${Y}${Q.maximum.toString()} ${Z.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${Q.origin??"მნიშვნელობა"} იყოს ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`ზედმეტად პატარა: მოსალოდნელი ${Q.origin} ${Z.verb} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${Q.origin} იყოს ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${Y.prefix}"-ით`;if(Y.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${Y.suffix}"-ით`;if(Y.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${Y.includes}"-ს`;if(Y.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${Y.pattern}`;return`არასწორი ${J[Y.format]??Q.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${Q.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${Q.keys.length>1?"ები":"ი"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${Q.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${Q.origin}-ში`;default:return"არასწორი შეყვანა"}}};var Q90=a(()=>{h0()});function kU(){return{localeError:bs0()}}var bs0=()=>{let $={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function D(Q){return $[Q]??null}let J={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},X={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${Q.expected} ប៉ុន្តែទទួលបាន ${F}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Y} ប៉ុន្តែទទួលបាន ${F}`}case"invalid_value":if(Q.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${z0(Q.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`ធំពេក៖ ត្រូវការ ${Q.origin??"តម្លៃ"} ${Y} ${Q.maximum.toString()} ${Z.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${Q.origin??"តម្លៃ"} ${Y} ${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`តូចពេក៖ ត្រូវការ ${Q.origin} ${Y} ${Q.minimum.toString()} ${Z.unit}`;return`តូចពេក៖ ត្រូវការ ${Q.origin} ${Y} ${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${Y.prefix}"`;if(Y.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${Y.suffix}"`;if(Y.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${Y.includes}"`;if(Y.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${Y.pattern}`;return`មិនត្រឹមត្រូវ៖ ${J[Y.format]??Q.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${Q.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${J0(Q.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${Q.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${Q.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};var vI=a(()=>{h0()});function _I(){return kU()}var Y90=a(()=>{vI()});function kI(){return{localeError:gs0()}}var gs0=()=>{let $={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function D(Q){return $[Q]??null}let J={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`잘못된 입력: 예상 타입은 instanceof ${Q.expected}, 받은 타입은 ${F}입니다`;return`잘못된 입력: 예상 타입은 ${Y}, 받은 타입은 ${F}입니다`}case"invalid_value":if(Q.values.length===1)return`잘못된 입력: 값은 ${z0(Q.values[0])} 이어야 합니다`;return`잘못된 옵션: ${J0(Q.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let Y=Q.inclusive?"이하":"미만",Z=Y==="미만"?"이어야 합니다":"여야 합니다",F=D(Q.origin),U=F?.unit??"요소";if(F)return`${Q.origin??"값"}이 너무 큽니다: ${Q.maximum.toString()}${U} ${Y}${Z}`;return`${Q.origin??"값"}이 너무 큽니다: ${Q.maximum.toString()} ${Y}${Z}`}case"too_small":{let Y=Q.inclusive?"이상":"초과",Z=Y==="이상"?"이어야 합니다":"여야 합니다",F=D(Q.origin),U=F?.unit??"요소";if(F)return`${Q.origin??"값"}이 너무 작습니다: ${Q.minimum.toString()}${U} ${Y}${Z}`;return`${Q.origin??"값"}이 너무 작습니다: ${Q.minimum.toString()} ${Y}${Z}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`잘못된 문자열: "${Y.prefix}"(으)로 시작해야 합니다`;if(Y.format==="ends_with")return`잘못된 문자열: "${Y.suffix}"(으)로 끝나야 합니다`;if(Y.format==="includes")return`잘못된 문자열: "${Y.includes}"을(를) 포함해야 합니다`;if(Y.format==="regex")return`잘못된 문자열: 정규식 ${Y.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${J[Y.format]??Q.format}`}case"not_multiple_of":return`잘못된 숫자: ${Q.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${J0(Q.keys,", ")}`;case"invalid_key":return`잘못된 키: ${Q.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${Q.origin}`;default:return"잘못된 입력"}}};var Z90=a(()=>{h0()});function F90($){let D=Math.abs($),J=D%10,X=D%100;if(X>=11&&X<=19||J===0)return"many";if(J===1)return"one";return"few"}function uI(){return{localeError:ms0()}}var uU=($)=>{return $.charAt(0).toUpperCase()+$.slice(1)},ms0=()=>{let $={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function D(Q,Y,Z,F){let U=$[Q]??null;if(U===null)return U;return{unit:U.unit[Y],verb:U.verb[F][Z?"inclusive":"notInclusive"]}}let J={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},X={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Gautas tipas ${F}, o tikėtasi - instanceof ${Q.expected}`;return`Gautas tipas ${F}, o tikėtasi - ${Y}`}case"invalid_value":if(Q.values.length===1)return`Privalo būti ${z0(Q.values[0])}`;return`Privalo būti vienas iš ${J0(Q.values,"|")} pasirinkimų`;case"too_big":{let Y=X[Q.origin]??Q.origin,Z=D(Q.origin,F90(Number(Q.maximum)),Q.inclusive??!1,"smaller");if(Z?.verb)return`${uU(Y??Q.origin??"reikšmė")} ${Z.verb} ${Q.maximum.toString()} ${Z.unit??"elementų"}`;let F=Q.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${uU(Y??Q.origin??"reikšmė")} turi būti ${F} ${Q.maximum.toString()} ${Z?.unit}`}case"too_small":{let Y=X[Q.origin]??Q.origin,Z=D(Q.origin,F90(Number(Q.minimum)),Q.inclusive??!1,"bigger");if(Z?.verb)return`${uU(Y??Q.origin??"reikšmė")} ${Z.verb} ${Q.minimum.toString()} ${Z.unit??"elementų"}`;let F=Q.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${uU(Y??Q.origin??"reikšmė")} turi būti ${F} ${Q.minimum.toString()} ${Z?.unit}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Eilutė privalo prasidėti "${Y.prefix}"`;if(Y.format==="ends_with")return`Eilutė privalo pasibaigti "${Y.suffix}"`;if(Y.format==="includes")return`Eilutė privalo įtraukti "${Y.includes}"`;if(Y.format==="regex")return`Eilutė privalo atitikti ${Y.pattern}`;return`Neteisingas ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Skaičius privalo būti ${Q.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${Q.keys.length>1?"i":"as"} rakt${Q.keys.length>1?"ai":"as"}: ${J0(Q.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let Y=X[Q.origin]??Q.origin;return`${uU(Y??Q.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};var U90=a(()=>{h0()});function yI(){return{localeError:ds0()}}var ds0=()=>{let $={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function D(Q){return $[Q]??null}let J={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},X={nan:"NaN",number:"број",array:"низа"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Грешен внес: се очекува instanceof ${Q.expected}, примено ${F}`;return`Грешен внес: се очекува ${Y}, примено ${F}`}case"invalid_value":if(Q.values.length===1)return`Invalid input: expected ${z0(Q.values[0])}`;return`Грешана опција: се очекува една ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Премногу голем: се очекува ${Q.origin??"вредноста"} да има ${Y}${Q.maximum.toString()} ${Z.unit??"елементи"}`;return`Премногу голем: се очекува ${Q.origin??"вредноста"} да биде ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Премногу мал: се очекува ${Q.origin} да има ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Премногу мал: се очекува ${Q.origin} да биде ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Неважечка низа: мора да започнува со "${Y.prefix}"`;if(Y.format==="ends_with")return`Неважечка низа: мора да завршува со "${Y.suffix}"`;if(Y.format==="includes")return`Неважечка низа: мора да вклучува "${Y.includes}"`;if(Y.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${Y.pattern}`;return`Invalid ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${Q.divisor}`;case"unrecognized_keys":return`${Q.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${Q.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${Q.origin}`;default:return"Грешен внес"}}};var G90=a(()=>{h0()});function fI(){return{localeError:cs0()}}var cs0=()=>{let $={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function D(Q){return $[Q]??null}let J={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"},X={nan:"NaN",number:"nombor"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Input tidak sah: dijangka instanceof ${Q.expected}, diterima ${F}`;return`Input tidak sah: dijangka ${Y}, diterima ${F}`}case"invalid_value":if(Q.values.length===1)return`Input tidak sah: dijangka ${z0(Q.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Terlalu besar: dijangka ${Q.origin??"nilai"} ${Z.verb} ${Y}${Q.maximum.toString()} ${Z.unit??"elemen"}`;return`Terlalu besar: dijangka ${Q.origin??"nilai"} adalah ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Terlalu kecil: dijangka ${Q.origin} ${Z.verb} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Terlalu kecil: dijangka ${Q.origin} adalah ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`String tidak sah: mesti bermula dengan "${Y.prefix}"`;if(Y.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${Y.suffix}"`;if(Y.format==="includes")return`String tidak sah: mesti mengandungi "${Y.includes}"`;if(Y.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${Y.pattern}`;return`${J[Y.format]??Q.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${Q.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${J0(Q.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${Q.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${Q.origin}`;default:return"Input tidak sah"}}};var q90=a(()=>{h0()});function hI(){return{localeError:ls0()}}var ls0=()=>{let $={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function D(Q){return $[Q]??null}let J={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"},X={nan:"NaN",number:"getal"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Ongeldige invoer: verwacht instanceof ${Q.expected}, ontving ${F}`;return`Ongeldige invoer: verwacht ${Y}, ontving ${F}`}case"invalid_value":if(Q.values.length===1)return`Ongeldige invoer: verwacht ${z0(Q.values[0])}`;return`Ongeldige optie: verwacht één van ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin),F=Q.origin==="date"?"laat":Q.origin==="string"?"lang":"groot";if(Z)return`Te ${F}: verwacht dat ${Q.origin??"waarde"} ${Y}${Q.maximum.toString()} ${Z.unit??"elementen"} ${Z.verb}`;return`Te ${F}: verwacht dat ${Q.origin??"waarde"} ${Y}${Q.maximum.toString()} is`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin),F=Q.origin==="date"?"vroeg":Q.origin==="string"?"kort":"klein";if(Z)return`Te ${F}: verwacht dat ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit} ${Z.verb}`;return`Te ${F}: verwacht dat ${Q.origin} ${Y}${Q.minimum.toString()} is`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ongeldige tekst: moet met "${Y.prefix}" beginnen`;if(Y.format==="ends_with")return`Ongeldige tekst: moet op "${Y.suffix}" eindigen`;if(Y.format==="includes")return`Ongeldige tekst: moet "${Y.includes}" bevatten`;if(Y.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${Y.pattern}`;return`Ongeldig: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${Q.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${Q.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${Q.origin}`;default:return"Ongeldige invoer"}}};var W90=a(()=>{h0()});function bI(){return{localeError:ns0()}}var ns0=()=>{let $={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function D(Q){return $[Q]??null}let J={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åde",ipv6:"IPv6-område",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"},X={nan:"NaN",number:"tall",array:"liste"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Ugyldig input: forventet instanceof ${Q.expected}, fikk ${F}`;return`Ugyldig input: forventet ${Y}, fikk ${F}`}case"invalid_value":if(Q.values.length===1)return`Ugyldig verdi: forventet ${z0(Q.values[0])}`;return`Ugyldig valg: forventet en av ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`For stor(t): forventet ${Q.origin??"value"} til å ha ${Y}${Q.maximum.toString()} ${Z.unit??"elementer"}`;return`For stor(t): forventet ${Q.origin??"value"} til å ha ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`For lite(n): forventet ${Q.origin} til å ha ${Y}${Q.minimum.toString()} ${Z.unit}`;return`For lite(n): forventet ${Q.origin} til å ha ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ugyldig streng: må starte med "${Y.prefix}"`;if(Y.format==="ends_with")return`Ugyldig streng: må ende med "${Y.suffix}"`;if(Y.format==="includes")return`Ugyldig streng: må inneholde "${Y.includes}"`;if(Y.format==="regex")return`Ugyldig streng: må matche mønsteret ${Y.pattern}`;return`Ugyldig ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${Q.divisor}`;case"unrecognized_keys":return`${Q.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${Q.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${Q.origin}`;default:return"Ugyldig input"}}};var z90=a(()=>{h0()});function gI(){return{localeError:is0()}}var is0=()=>{let $={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function D(Q){return $[Q]??null}let J={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},X={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Fâsit giren: umulan instanceof ${Q.expected}, alınan ${F}`;return`Fâsit giren: umulan ${Y}, alınan ${F}`}case"invalid_value":if(Q.values.length===1)return`Fâsit giren: umulan ${z0(Q.values[0])}`;return`Fâsit tercih: mûteberler ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Fazla büyük: ${Q.origin??"value"}, ${Y}${Q.maximum.toString()} ${Z.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${Q.origin??"value"}, ${Y}${Q.maximum.toString()} olmalıydı.`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Fazla küçük: ${Q.origin}, ${Y}${Q.minimum.toString()} ${Z.unit} sahip olmalıydı.`;return`Fazla küçük: ${Q.origin}, ${Y}${Q.minimum.toString()} olmalıydı.`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Fâsit metin: "${Y.prefix}" ile başlamalı.`;if(Y.format==="ends_with")return`Fâsit metin: "${Y.suffix}" ile bitmeli.`;if(Y.format==="includes")return`Fâsit metin: "${Y.includes}" ihtivâ etmeli.`;if(Y.format==="regex")return`Fâsit metin: ${Y.pattern} nakşına uymalı.`;return`Fâsit ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Fâsit sayı: ${Q.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`${Q.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${Q.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};var H90=a(()=>{h0()});function mI(){return{localeError:ps0()}}var ps0=()=>{let $={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function D(Q){return $[Q]??null}let J={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},X={nan:"NaN",number:"عدد",array:"ارې"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`ناسم ورودي: باید instanceof ${Q.expected} وای, مګر ${F} ترلاسه شو`;return`ناسم ورودي: باید ${Y} وای, مګر ${F} ترلاسه شو`}case"invalid_value":if(Q.values.length===1)return`ناسم ورودي: باید ${z0(Q.values[0])} وای`;return`ناسم انتخاب: باید یو له ${J0(Q.values,"|")} څخه وای`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`ډیر لوی: ${Q.origin??"ارزښت"} باید ${Y}${Q.maximum.toString()} ${Z.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${Q.origin??"ارزښت"} باید ${Y}${Q.maximum.toString()} وي`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`ډیر کوچنی: ${Q.origin} باید ${Y}${Q.minimum.toString()} ${Z.unit} ولري`;return`ډیر کوچنی: ${Q.origin} باید ${Y}${Q.minimum.toString()} وي`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`ناسم متن: باید د "${Y.prefix}" سره پیل شي`;if(Y.format==="ends_with")return`ناسم متن: باید د "${Y.suffix}" سره پای ته ورسيږي`;if(Y.format==="includes")return`ناسم متن: باید "${Y.includes}" ولري`;if(Y.format==="regex")return`ناسم متن: باید د ${Y.pattern} سره مطابقت ولري`;return`${J[Y.format]??Q.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${Q.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${Q.keys.length>1?"کلیډونه":"کلیډ"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${Q.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${Q.origin} کې`;default:return"ناسمه ورودي"}}};var O90=a(()=>{h0()});function dI(){return{localeError:rs0()}}var rs0=()=>{let $={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function D(Q){return $[Q]??null}let J={regex:"wyrażenie",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ąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},X={nan:"NaN",number:"liczba",array:"tablica"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${Q.expected}, otrzymano ${F}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${Y}, otrzymano ${F}`}case"invalid_value":if(Q.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${z0(Q.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Za duża wartość: oczekiwano, że ${Q.origin??"wartość"} będzie mieć ${Y}${Q.maximum.toString()} ${Z.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${Q.origin??"wartość"} będzie wynosić ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Za mała wartość: oczekiwano, że ${Q.origin??"wartość"} będzie mieć ${Y}${Q.minimum.toString()} ${Z.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${Q.origin??"wartość"} będzie wynosić ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${Y.prefix}"`;if(Y.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${Y.suffix}"`;if(Y.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${Y.includes}"`;if(Y.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${Y.pattern}`;return`Nieprawidłow(y/a/e) ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${Q.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${Q.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${Q.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};var V90=a(()=>{h0()});function cI(){return{localeError:os0()}}var os0=()=>{let $={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function D(Q){return $[Q]??null}let J={regex:"padrão",email:"endereço 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ção ISO",ipv4:"endereço IPv4",ipv6:"endereço 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úmero E.164",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN",number:"número",null:"nulo"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Tipo inválido: esperado instanceof ${Q.expected}, recebido ${F}`;return`Tipo inválido: esperado ${Y}, recebido ${F}`}case"invalid_value":if(Q.values.length===1)return`Entrada inválida: esperado ${z0(Q.values[0])}`;return`Opção inválida: esperada uma das ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Muito grande: esperado que ${Q.origin??"valor"} tivesse ${Y}${Q.maximum.toString()} ${Z.unit??"elementos"}`;return`Muito grande: esperado que ${Q.origin??"valor"} fosse ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Muito pequeno: esperado que ${Q.origin} tivesse ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Muito pequeno: esperado que ${Q.origin} fosse ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Texto inválido: deve começar com "${Y.prefix}"`;if(Y.format==="ends_with")return`Texto inválido: deve terminar com "${Y.suffix}"`;if(Y.format==="includes")return`Texto inválido: deve incluir "${Y.includes}"`;if(Y.format==="regex")return`Texto inválido: deve corresponder ao padrão ${Y.pattern}`;return`${J[Y.format]??Q.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Q.divisor}`;case"unrecognized_keys":return`Chave${Q.keys.length>1?"s":""} desconhecida${Q.keys.length>1?"s":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Chave inválida em ${Q.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${Q.origin}`;default:return"Campo inválido"}}};var K90=a(()=>{h0()});function lI(){return{localeError:as0()}}var as0=()=>{let $={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function D(Q){return $[Q]??null}let J={regex:"intrare",email:"adresă de 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:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},X={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;return`Intrare invalidă: așteptat ${Y}, primit ${F}`}case"invalid_value":if(Q.values.length===1)return`Intrare invalidă: așteptat ${z0(Q.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Prea mare: așteptat ca ${Q.origin??"valoarea"} ${Z.verb} ${Y}${Q.maximum.toString()} ${Z.unit??"elemente"}`;return`Prea mare: așteptat ca ${Q.origin??"valoarea"} să fie ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Prea mic: așteptat ca ${Q.origin} ${Z.verb} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Prea mic: așteptat ca ${Q.origin} să fie ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${Y.prefix}"`;if(Y.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${Y.suffix}"`;if(Y.format==="includes")return`Șir invalid: trebuie să includă "${Y.includes}"`;if(Y.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${Y.pattern}`;return`Format invalid: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${Q.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${J0(Q.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${Q.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${Q.origin}`;default:return"Intrare invalidă"}}};var N90=a(()=>{h0()});function M90($,D,J,X){let Q=Math.abs($),Y=Q%10,Z=Q%100;if(Z>=11&&Z<=19)return X;if(Y===1)return D;if(Y>=2&&Y<=4)return J;return X}function nI(){return{localeError:ts0()}}var ts0=()=>{let $={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function D(Q){return $[Q]??null}let J={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},X={nan:"NaN",number:"число",array:"массив"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Неверный ввод: ожидалось instanceof ${Q.expected}, получено ${F}`;return`Неверный ввод: ожидалось ${Y}, получено ${F}`}case"invalid_value":if(Q.values.length===1)return`Неверный ввод: ожидалось ${z0(Q.values[0])}`;return`Неверный вариант: ожидалось одно из ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z){let F=Number(Q.maximum),U=M90(F,Z.unit.one,Z.unit.few,Z.unit.many);return`Слишком большое значение: ожидалось, что ${Q.origin??"значение"} будет иметь ${Y}${Q.maximum.toString()} ${U}`}return`Слишком большое значение: ожидалось, что ${Q.origin??"значение"} будет ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z){let F=Number(Q.minimum),U=M90(F,Z.unit.one,Z.unit.few,Z.unit.many);return`Слишком маленькое значение: ожидалось, что ${Q.origin} будет иметь ${Y}${Q.minimum.toString()} ${U}`}return`Слишком маленькое значение: ожидалось, что ${Q.origin} будет ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Неверная строка: должна начинаться с "${Y.prefix}"`;if(Y.format==="ends_with")return`Неверная строка: должна заканчиваться на "${Y.suffix}"`;if(Y.format==="includes")return`Неверная строка: должна содержать "${Y.includes}"`;if(Y.format==="regex")return`Неверная строка: должна соответствовать шаблону ${Y.pattern}`;return`Неверный ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${Q.divisor}`;case"unrecognized_keys":return`Нераспознанн${Q.keys.length>1?"ые":"ый"} ключ${Q.keys.length>1?"и":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${Q.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${Q.origin}`;default:return"Неверные входные данные"}}};var L90=a(()=>{h0()});function iI(){return{localeError:ss0()}}var ss0=()=>{let $={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function D(Q){return $[Q]??null}let J={regex:"vnos",email:"e-poštni 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 čas",date:"ISO datum",time:"ISO čas",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 številka",jwt:"JWT",template_literal:"vnos"},X={nan:"NaN",number:"število",array:"tabela"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Neveljaven vnos: pričakovano instanceof ${Q.expected}, prejeto ${F}`;return`Neveljaven vnos: pričakovano ${Y}, prejeto ${F}`}case"invalid_value":if(Q.values.length===1)return`Neveljaven vnos: pričakovano ${z0(Q.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Preveliko: pričakovano, da bo ${Q.origin??"vrednost"} imelo ${Y}${Q.maximum.toString()} ${Z.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${Q.origin??"vrednost"} ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Premajhno: pričakovano, da bo ${Q.origin} imelo ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Premajhno: pričakovano, da bo ${Q.origin} ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Neveljaven niz: mora se začeti z "${Y.prefix}"`;if(Y.format==="ends_with")return`Neveljaven niz: mora se končati z "${Y.suffix}"`;if(Y.format==="includes")return`Neveljaven niz: mora vsebovati "${Y.includes}"`;if(Y.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${Y.pattern}`;return`Neveljaven ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${Q.divisor}`;case"unrecognized_keys":return`Neprepoznan${Q.keys.length>1?"i ključi":" ključ"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${Q.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${Q.origin}`;default:return"Neveljaven vnos"}}};var w90=a(()=>{h0()});function pI(){return{localeError:es0()}}var es0=()=>{let $={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function D(Q){return $[Q]??null}let J={regex:"reguljärt 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äng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},X={nan:"NaN",number:"antal",array:"lista"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Ogiltig inmatning: förväntat instanceof ${Q.expected}, fick ${F}`;return`Ogiltig inmatning: förväntat ${Y}, fick ${F}`}case"invalid_value":if(Q.values.length===1)return`Ogiltig inmatning: förväntat ${z0(Q.values[0])}`;return`Ogiltigt val: förväntade en av ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`För stor(t): förväntade ${Q.origin??"värdet"} att ha ${Y}${Q.maximum.toString()} ${Z.unit??"element"}`;return`För stor(t): förväntat ${Q.origin??"värdet"} att ha ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`För lite(t): förväntade ${Q.origin??"värdet"} att ha ${Y}${Q.minimum.toString()} ${Z.unit}`;return`För lite(t): förväntade ${Q.origin??"värdet"} att ha ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ogiltig sträng: måste börja med "${Y.prefix}"`;if(Y.format==="ends_with")return`Ogiltig sträng: måste sluta med "${Y.suffix}"`;if(Y.format==="includes")return`Ogiltig sträng: måste innehålla "${Y.includes}"`;if(Y.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${Y.pattern}"`;return`Ogiltig(t) ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${Q.divisor}`;case"unrecognized_keys":return`${Q.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${Q.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${Q.origin??"värdet"}`;default:return"Ogiltig input"}}};var B90=a(()=>{h0()});function rI(){return{localeError:$e0()}}var $e0=()=>{let $={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function D(Q){return $[Q]??null}let J={regex:"உள்ளீடு",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:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${Q.expected}, பெறப்பட்டது ${F}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Y}, பெறப்பட்டது ${F}`}case"invalid_value":if(Q.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${z0(Q.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J0(Q.values,"|")} இல் ஒன்று`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Q.origin??"மதிப்பு"} ${Y}${Q.maximum.toString()} ${Z.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Q.origin??"மதிப்பு"} ${Y}${Q.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Q.origin} ${Y}${Q.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`தவறான சரம்: "${Y.prefix}" இல் தொடங்க வேண்டும்`;if(Y.format==="ends_with")return`தவறான சரம்: "${Y.suffix}" இல் முடிவடைய வேண்டும்`;if(Y.format==="includes")return`தவறான சரம்: "${Y.includes}" ஐ உள்ளடக்க வேண்டும்`;if(Y.format==="regex")return`தவறான சரம்: ${Y.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${J[Y.format]??Q.format}`}case"not_multiple_of":return`தவறான எண்: ${Q.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${Q.keys.length>1?"கள்":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`${Q.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${Q.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};var E90=a(()=>{h0()});function oI(){return{localeError:De0()}}var De0=()=>{let $={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function D(Q){return $[Q]??null}let J={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},X={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${Q.expected} แต่ได้รับ ${F}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${Y} แต่ได้รับ ${F}`}case"invalid_value":if(Q.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${z0(Q.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"ไม่เกิน":"น้อยกว่า",Z=D(Q.origin);if(Z)return`เกินกำหนด: ${Q.origin??"ค่า"} ควรมี${Y} ${Q.maximum.toString()} ${Z.unit??"รายการ"}`;return`เกินกำหนด: ${Q.origin??"ค่า"} ควรมี${Y} ${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?"อย่างน้อย":"มากกว่า",Z=D(Q.origin);if(Z)return`น้อยกว่ากำหนด: ${Q.origin} ควรมี${Y} ${Q.minimum.toString()} ${Z.unit}`;return`น้อยกว่ากำหนด: ${Q.origin} ควรมี${Y} ${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${Y.prefix}"`;if(Y.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${Y.suffix}"`;if(Y.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${Y.includes}" อยู่ในข้อความ`;if(Y.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${Y.pattern}`;return`รูปแบบไม่ถูกต้อง: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${Q.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${J0(Q.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${Q.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${Q.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};var R90=a(()=>{h0()});function aI(){return{localeError:Je0()}}var Je0=()=>{let $={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function D(Q){return $[Q]??null}let J={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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Geçersiz değer: beklenen instanceof ${Q.expected}, alınan ${F}`;return`Geçersiz değer: beklenen ${Y}, alınan ${F}`}case"invalid_value":if(Q.values.length===1)return`Geçersiz değer: beklenen ${z0(Q.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Çok büyük: beklenen ${Q.origin??"değer"} ${Y}${Q.maximum.toString()} ${Z.unit??"öğe"}`;return`Çok büyük: beklenen ${Q.origin??"değer"} ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Çok küçük: beklenen ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Çok küçük: beklenen ${Q.origin} ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Geçersiz metin: "${Y.prefix}" ile başlamalı`;if(Y.format==="ends_with")return`Geçersiz metin: "${Y.suffix}" ile bitmeli`;if(Y.format==="includes")return`Geçersiz metin: "${Y.includes}" içermeli`;if(Y.format==="regex")return`Geçersiz metin: ${Y.pattern} desenine uymalı`;return`Geçersiz ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Geçersiz sayı: ${Q.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${Q.keys.length>1?"lar":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`${Q.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${Q.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};var A90=a(()=>{h0()});function yU(){return{localeError:Xe0()}}var Xe0=()=>{let $={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function D(Q){return $[Q]??null}let J={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},X={nan:"NaN",number:"число",array:"масив"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Неправильні вхідні дані: очікується instanceof ${Q.expected}, отримано ${F}`;return`Неправильні вхідні дані: очікується ${Y}, отримано ${F}`}case"invalid_value":if(Q.values.length===1)return`Неправильні вхідні дані: очікується ${z0(Q.values[0])}`;return`Неправильна опція: очікується одне з ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Занадто велике: очікується, що ${Q.origin??"значення"} ${Z.verb} ${Y}${Q.maximum.toString()} ${Z.unit??"елементів"}`;return`Занадто велике: очікується, що ${Q.origin??"значення"} буде ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Занадто мале: очікується, що ${Q.origin} ${Z.verb} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Занадто мале: очікується, що ${Q.origin} буде ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Неправильний рядок: повинен починатися з "${Y.prefix}"`;if(Y.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${Y.suffix}"`;if(Y.format==="includes")return`Неправильний рядок: повинен містити "${Y.includes}"`;if(Y.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${Y.pattern}`;return`Неправильний ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${Q.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${Q.keys.length>1?"і":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${Q.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${Q.origin}`;default:return"Неправильні вхідні дані"}}};var tI=a(()=>{h0()});function sI(){return yU()}var I90=a(()=>{tI()});function eI(){return{localeError:Qe0()}}var Qe0=()=>{let $={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function D(Q){return $[Q]??null}let J={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},X={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`غلط ان پٹ: instanceof ${Q.expected} متوقع تھا، ${F} موصول ہوا`;return`غلط ان پٹ: ${Y} متوقع تھا، ${F} موصول ہوا`}case"invalid_value":if(Q.values.length===1)return`غلط ان پٹ: ${z0(Q.values[0])} متوقع تھا`;return`غلط آپشن: ${J0(Q.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`بہت بڑا: ${Q.origin??"ویلیو"} کے ${Y}${Q.maximum.toString()} ${Z.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${Q.origin??"ویلیو"} کا ${Y}${Q.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`بہت چھوٹا: ${Q.origin} کے ${Y}${Q.minimum.toString()} ${Z.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${Q.origin} کا ${Y}${Q.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`غلط سٹرنگ: "${Y.prefix}" سے شروع ہونا چاہیے`;if(Y.format==="ends_with")return`غلط سٹرنگ: "${Y.suffix}" پر ختم ہونا چاہیے`;if(Y.format==="includes")return`غلط سٹرنگ: "${Y.includes}" شامل ہونا چاہیے`;if(Y.format==="regex")return`غلط سٹرنگ: پیٹرن ${Y.pattern} سے میچ ہونا چاہیے`;return`غلط ${J[Y.format]??Q.format}`}case"not_multiple_of":return`غلط نمبر: ${Q.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${Q.keys.length>1?"ز":""}: ${J0(Q.keys,"، ")}`;case"invalid_key":return`${Q.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${Q.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};var j90=a(()=>{h0()});function $j(){return{localeError:Ye0()}}var Ye0=()=>{let $={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function D(Q){return $[Q]??null}let J={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},X={nan:"NaN",number:"raqam",array:"massiv"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${Q.expected}, qabul qilingan ${F}`;return`Noto‘g‘ri kirish: kutilgan ${Y}, qabul qilingan ${F}`}case"invalid_value":if(Q.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${z0(Q.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Juda katta: kutilgan ${Q.origin??"qiymat"} ${Y}${Q.maximum.toString()} ${Z.unit} ${Z.verb}`;return`Juda katta: kutilgan ${Q.origin??"qiymat"} ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Juda kichik: kutilgan ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit} ${Z.verb}`;return`Juda kichik: kutilgan ${Q.origin} ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Noto‘g‘ri satr: "${Y.prefix}" bilan boshlanishi kerak`;if(Y.format==="ends_with")return`Noto‘g‘ri satr: "${Y.suffix}" bilan tugashi kerak`;if(Y.format==="includes")return`Noto‘g‘ri satr: "${Y.includes}" ni o‘z ichiga olishi kerak`;if(Y.format==="regex")return`Noto‘g‘ri satr: ${Y.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${Q.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${Q.keys.length>1?"lar":""}: ${J0(Q.keys,", ")}`;case"invalid_key":return`${Q.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${Q.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};var T90=a(()=>{h0()});function Dj(){return{localeError:Ze0()}}var Ze0=()=>{let $={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function D(Q){return $[Q]??null}let J={regex:"đầu vào",email:"địa chỉ 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ày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},X={nan:"NaN",number:"số",array:"mảng"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${Q.expected}, nhận được ${F}`;return`Đầu vào không hợp lệ: mong đợi ${Y}, nhận được ${F}`}case"invalid_value":if(Q.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${z0(Q.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Quá lớn: mong đợi ${Q.origin??"giá trị"} ${Z.verb} ${Y}${Q.maximum.toString()} ${Z.unit??"phần tử"}`;return`Quá lớn: mong đợi ${Q.origin??"giá trị"} ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Quá nhỏ: mong đợi ${Q.origin} ${Z.verb} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`Quá nhỏ: mong đợi ${Q.origin} ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${Y.prefix}"`;if(Y.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${Y.suffix}"`;if(Y.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${Y.includes}"`;if(Y.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${Y.pattern}`;return`${J[Y.format]??Q.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${Q.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${J0(Q.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${Q.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${Q.origin}`;default:return"Đầu vào không hợp lệ"}}};var C90=a(()=>{h0()});function Jj(){return{localeError:Fe0()}}var Fe0=()=>{let $={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function D(Q){return $[Q]??null}let J={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},X={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`无效输入:期望 instanceof ${Q.expected},实际接收 ${F}`;return`无效输入:期望 ${Y},实际接收 ${F}`}case"invalid_value":if(Q.values.length===1)return`无效输入:期望 ${z0(Q.values[0])}`;return`无效选项:期望以下之一 ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`数值过大:期望 ${Q.origin??"值"} ${Y}${Q.maximum.toString()} ${Z.unit??"个元素"}`;return`数值过大:期望 ${Q.origin??"值"} ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`数值过小:期望 ${Q.origin} ${Y}${Q.minimum.toString()} ${Z.unit}`;return`数值过小:期望 ${Q.origin} ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`无效字符串:必须以 "${Y.prefix}" 开头`;if(Y.format==="ends_with")return`无效字符串:必须以 "${Y.suffix}" 结尾`;if(Y.format==="includes")return`无效字符串:必须包含 "${Y.includes}"`;if(Y.format==="regex")return`无效字符串:必须满足正则表达式 ${Y.pattern}`;return`无效${J[Y.format]??Q.format}`}case"not_multiple_of":return`无效数字:必须是 ${Q.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${J0(Q.keys,", ")}`;case"invalid_key":return`${Q.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${Q.origin} 中包含无效值(value)`;default:return"无效输入"}}};var P90=a(()=>{h0()});function Xj(){return{localeError:Ue0()}}var Ue0=()=>{let $={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function D(Q){return $[Q]??null}let J={regex:"輸入",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:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},X={nan:"NaN"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`無效的輸入值:預期為 instanceof ${Q.expected},但收到 ${F}`;return`無效的輸入值:預期為 ${Y},但收到 ${F}`}case"invalid_value":if(Q.values.length===1)return`無效的輸入值:預期為 ${z0(Q.values[0])}`;return`無效的選項:預期為以下其中之一 ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`數值過大:預期 ${Q.origin??"值"} 應為 ${Y}${Q.maximum.toString()} ${Z.unit??"個元素"}`;return`數值過大:預期 ${Q.origin??"值"} 應為 ${Y}${Q.maximum.toString()}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`數值過小:預期 ${Q.origin} 應為 ${Y}${Q.minimum.toString()} ${Z.unit}`;return`數值過小:預期 ${Q.origin} 應為 ${Y}${Q.minimum.toString()}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`無效的字串:必須以 "${Y.prefix}" 開頭`;if(Y.format==="ends_with")return`無效的字串:必須以 "${Y.suffix}" 結尾`;if(Y.format==="includes")return`無效的字串:必須包含 "${Y.includes}"`;if(Y.format==="regex")return`無效的字串:必須符合格式 ${Y.pattern}`;return`無效的 ${J[Y.format]??Q.format}`}case"not_multiple_of":return`無效的數字:必須為 ${Q.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${Q.keys.length>1?"們":""}:${J0(Q.keys,"、")}`;case"invalid_key":return`${Q.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${Q.origin} 中有無效的值`;default:return"無效的輸入值"}}};var S90=a(()=>{h0()});function Qj(){return{localeError:Ge0()}}var Ge0=()=>{let $={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function D(Q){return $[Q]??null}let J={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},X={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(Q)=>{switch(Q.code){case"invalid_type":{let Y=X[Q.expected]??Q.expected,Z=H0(Q.input),F=X[Z]??Z;if(/^[A-Z]/.test(Q.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${Q.expected}, àmọ̀ a rí ${F}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${Y}, àmọ̀ a rí ${F}`}case"invalid_value":if(Q.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${z0(Q.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J0(Q.values,"|")}`;case"too_big":{let Y=Q.inclusive?"<=":"<",Z=D(Q.origin);if(Z)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${Q.origin??"iye"} ${Z.verb} ${Y}${Q.maximum} ${Z.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${Y}${Q.maximum}`}case"too_small":{let Y=Q.inclusive?">=":">",Z=D(Q.origin);if(Z)return`Kéré ju: a ní láti jẹ́ pé ${Q.origin} ${Z.verb} ${Y}${Q.minimum} ${Z.unit}`;return`Kéré ju: a ní láti jẹ́ ${Y}${Q.minimum}`}case"invalid_format":{let Y=Q;if(Y.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${Y.prefix}"`;if(Y.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${Y.suffix}"`;if(Y.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${Y.includes}"`;if(Y.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${Y.pattern}`;return`Aṣìṣe: ${J[Y.format]??Q.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${Q.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${J0(Q.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${Q.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${Q.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};var x90=a(()=>{h0()});var fU={};kD(fU,{zhTW:()=>Xj,zhCN:()=>Jj,yo:()=>Qj,vi:()=>Dj,uz:()=>$j,ur:()=>eI,uk:()=>yU,ua:()=>sI,tr:()=>aI,th:()=>oI,ta:()=>rI,sv:()=>pI,sl:()=>iI,ru:()=>nI,ro:()=>lI,pt:()=>cI,ps:()=>mI,pl:()=>dI,ota:()=>gI,no:()=>bI,nl:()=>hI,ms:()=>fI,mk:()=>yI,lt:()=>uI,ko:()=>kI,km:()=>kU,kh:()=>_I,ka:()=>xI,ja:()=>SI,it:()=>PI,is:()=>CI,id:()=>TI,hy:()=>jI,hu:()=>II,hr:()=>AI,he:()=>RI,frCA:()=>EI,fr:()=>BI,fi:()=>wI,fa:()=>LI,es:()=>MI,eo:()=>NI,en:()=>_U,el:()=>VI,de:()=>OI,da:()=>HI,cs:()=>zI,ca:()=>WI,bg:()=>qI,be:()=>GI,az:()=>UI,ar:()=>FI});var Yj=a(()=>{_80();k80();y80();f80();h80();b80();g80();m80();d80();KI();c80();l80();n80();i80();p80();r80();o80();a80();t80();e80();$90();D90();J90();X90();Q90();Y90();vI();Z90();U90();G90();q90();W90();z90();H90();O90();V90();K90();N90();L90();w90();B90();E90();R90();A90();I90();tI();j90();T90();C90();P90();S90();x90()});class Uj{constructor(){this._map=new WeakMap,this._idmap=new Map}add($,...D){let J=D[0];if(this._map.set($,J),J&&typeof J==="object"&&"id"in J)this._idmap.set(J.id,$);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove($){let D=this._map.get($);if(D&&typeof D==="object"&&"id"in D)this._idmap.delete(D.id);return this._map.delete($),this}get($){let D=$._zod.parent;if(D){let J={...this.get(D)??{}};delete J.id;let X={...J,...this._map.get($)};return Object.keys(X).length?X:void 0}return this._map.get($)}has($){return this._map.has($)}}function pH(){return new Uj}var v90,Zj,Fj,ND;var hU=a(()=>{Zj=Symbol("ZodOutput"),Fj=Symbol("ZodInput");(v90=globalThis).__zod_globalRegistry??(v90.__zod_globalRegistry=pH());ND=globalThis.__zod_globalRegistry});function Gj($,D){return new $({type:"string",...M0(D)})}function qj($,D){return new $({type:"string",coerce:!0,...M0(D)})}function rH($,D){return new $({type:"string",format:"email",check:"string_format",abort:!1,...M0(D)})}function bU($,D){return new $({type:"string",format:"guid",check:"string_format",abort:!1,...M0(D)})}function oH($,D){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,...M0(D)})}function aH($,D){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M0(D)})}function tH($,D){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M0(D)})}function sH($,D){return new $({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M0(D)})}function gU($,D){return new $({type:"string",format:"url",check:"string_format",abort:!1,...M0(D)})}function eH($,D){return new $({type:"string",format:"emoji",check:"string_format",abort:!1,...M0(D)})}function $O($,D){return new $({type:"string",format:"nanoid",check:"string_format",abort:!1,...M0(D)})}function DO($,D){return new $({type:"string",format:"cuid",check:"string_format",abort:!1,...M0(D)})}function JO($,D){return new $({type:"string",format:"cuid2",check:"string_format",abort:!1,...M0(D)})}function XO($,D){return new $({type:"string",format:"ulid",check:"string_format",abort:!1,...M0(D)})}function QO($,D){return new $({type:"string",format:"xid",check:"string_format",abort:!1,...M0(D)})}function YO($,D){return new $({type:"string",format:"ksuid",check:"string_format",abort:!1,...M0(D)})}function ZO($,D){return new $({type:"string",format:"ipv4",check:"string_format",abort:!1,...M0(D)})}function FO($,D){return new $({type:"string",format:"ipv6",check:"string_format",abort:!1,...M0(D)})}function Wj($,D){return new $({type:"string",format:"mac",check:"string_format",abort:!1,...M0(D)})}function UO($,D){return new $({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M0(D)})}function GO($,D){return new $({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M0(D)})}function qO($,D){return new $({type:"string",format:"base64",check:"string_format",abort:!1,...M0(D)})}function WO($,D){return new $({type:"string",format:"base64url",check:"string_format",abort:!1,...M0(D)})}function zO($,D){return new $({type:"string",format:"e164",check:"string_format",abort:!1,...M0(D)})}function HO($,D){return new $({type:"string",format:"jwt",check:"string_format",abort:!1,...M0(D)})}function Hj($,D){return new $({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M0(D)})}function Oj($,D){return new $({type:"string",format:"date",check:"string_format",...M0(D)})}function Vj($,D){return new $({type:"string",format:"time",check:"string_format",precision:null,...M0(D)})}function Kj($,D){return new $({type:"string",format:"duration",check:"string_format",...M0(D)})}function Nj($,D){return new $({type:"number",checks:[],...M0(D)})}function Mj($,D){return new $({type:"number",coerce:!0,checks:[],...M0(D)})}function Lj($,D){return new $({type:"number",check:"number_format",abort:!1,format:"safeint",...M0(D)})}function wj($,D){return new $({type:"number",check:"number_format",abort:!1,format:"float32",...M0(D)})}function Bj($,D){return new $({type:"number",check:"number_format",abort:!1,format:"float64",...M0(D)})}function Ej($,D){return new $({type:"number",check:"number_format",abort:!1,format:"int32",...M0(D)})}function Rj($,D){return new $({type:"number",check:"number_format",abort:!1,format:"uint32",...M0(D)})}function Aj($,D){return new $({type:"boolean",...M0(D)})}function Ij($,D){return new $({type:"boolean",coerce:!0,...M0(D)})}function jj($,D){return new $({type:"bigint",...M0(D)})}function Tj($,D){return new $({type:"bigint",coerce:!0,...M0(D)})}function Cj($,D){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M0(D)})}function Pj($,D){return new $({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M0(D)})}function Sj($,D){return new $({type:"symbol",...M0(D)})}function xj($,D){return new $({type:"undefined",...M0(D)})}function vj($,D){return new $({type:"null",...M0(D)})}function _j($){return new $({type:"any"})}function kj($){return new $({type:"unknown"})}function uj($,D){return new $({type:"never",...M0(D)})}function yj($,D){return new $({type:"void",...M0(D)})}function fj($,D){return new $({type:"date",...M0(D)})}function hj($,D){return new $({type:"date",coerce:!0,...M0(D)})}function bj($,D){return new $({type:"nan",...M0(D)})}function W8($,D){return new kH({check:"less_than",...M0(D),value:$,inclusive:!1})}function x6($,D){return new kH({check:"less_than",...M0(D),value:$,inclusive:!0})}function z8($,D){return new uH({check:"greater_than",...M0(D),value:$,inclusive:!1})}function oD($,D){return new uH({check:"greater_than",...M0(D),value:$,inclusive:!0})}function OO($){return z8(0,$)}function VO($){return W8(0,$)}function KO($){return x6(0,$)}function NO($){return oD(0,$)}function K7($,D){return new SR({check:"multiple_of",...M0(D),value:$})}function N7($,D){return new _R({check:"max_size",...M0(D),maximum:$})}function H8($,D){return new kR({check:"min_size",...M0(D),minimum:$})}function rJ($,D){return new uR({check:"size_equals",...M0(D),size:$})}function oJ($,D){return new yR({check:"max_length",...M0(D),maximum:$})}function G9($,D){return new fR({check:"min_length",...M0(D),minimum:$})}function aJ($,D){return new hR({check:"length_equals",...M0(D),length:$})}function AQ($,D){return new bR({check:"string_format",format:"regex",...M0(D),pattern:$})}function IQ($){return new gR({check:"string_format",format:"lowercase",...M0($)})}function jQ($){return new mR({check:"string_format",format:"uppercase",...M0($)})}function TQ($,D){return new dR({check:"string_format",format:"includes",...M0(D),includes:$})}function CQ($,D){return new cR({check:"string_format",format:"starts_with",...M0(D),prefix:$})}function PQ($,D){return new lR({check:"string_format",format:"ends_with",...M0(D),suffix:$})}function MO($,D,J){return new nR({check:"property",property:$,schema:D,...M0(J)})}function SQ($,D){return new iR({check:"mime_type",mime:$,...M0(D)})}function x4($){return new pR({check:"overwrite",tx:$})}function xQ($){return x4((D)=>D.normalize($))}function vQ(){return x4(($)=>$.trim())}function _Q(){return x4(($)=>$.toLowerCase())}function kQ(){return x4(($)=>$.toUpperCase())}function uQ(){return x4(($)=>mE($))}function gj($,D,J){return new $({type:"array",element:D,...M0(J)})}function We0($,D,J){return new $({type:"union",options:D,...M0(J)})}function ze0($,D,J){return new $({type:"union",options:D,inclusive:!1,...M0(J)})}function He0($,D,J,X){return new $({type:"union",options:J,discriminator:D,...M0(X)})}function Oe0($,D,J){return new $({type:"intersection",left:D,right:J})}function Ve0($,D,J,X){let Q=J instanceof Y$;return new $({type:"tuple",items:D,rest:Q?J:null,...M0(Q?X:J)})}function Ke0($,D,J,X){return new $({type:"record",keyType:D,valueType:J,...M0(X)})}function Ne0($,D,J,X){return new $({type:"map",keyType:D,valueType:J,...M0(X)})}function Me0($,D,J){return new $({type:"set",valueType:D,...M0(J)})}function Le0($,D,J){let X=Array.isArray(D)?Object.fromEntries(D.map((Q)=>[Q,Q])):D;return new $({type:"enum",entries:X,...M0(J)})}function we0($,D,J){return new $({type:"enum",entries:D,...M0(J)})}function Be0($,D,J){return new $({type:"literal",values:Array.isArray(D)?D:[D],...M0(J)})}function mj($,D){return new $({type:"file",...M0(D)})}function Ee0($,D){return new $({type:"transform",transform:D})}function Re0($,D){return new $({type:"optional",innerType:D})}function Ae0($,D){return new $({type:"nullable",innerType:D})}function Ie0($,D,J){return new $({type:"default",innerType:D,get defaultValue(){return typeof J==="function"?J():cE(J)}})}function je0($,D,J){return new $({type:"nonoptional",innerType:D,...M0(J)})}function Te0($,D){return new $({type:"success",innerType:D})}function Ce0($,D,J){return new $({type:"catch",innerType:D,catchValue:typeof J==="function"?J:()=>J})}function Pe0($,D,J){return new $({type:"pipe",in:D,out:J})}function Se0($,D){return new $({type:"readonly",innerType:D})}function xe0($,D,J){return new $({type:"template_literal",parts:D,...M0(J)})}function ve0($,D){return new $({type:"lazy",getter:D})}function _e0($,D){return new $({type:"promise",innerType:D})}function dj($,D,J){let X=M0(J);return X.abort??(X.abort=!0),new $({type:"custom",check:"custom",fn:D,...X})}function cj($,D,J){return new $({type:"custom",check:"custom",fn:D,...M0(J)})}function lj($,D){let J=_90((X)=>{return X.addIssue=(Q)=>{if(typeof Q==="string")X.issues.push(NQ(Q,X.value,J._zod.def));else{let Y=Q;if(Y.fatal)Y.continue=!1;Y.code??(Y.code="custom"),Y.input??(Y.input=X.value),Y.inst??(Y.inst=J),Y.continue??(Y.continue=!J._zod.def.abort),X.issues.push(NQ(Y))}},$(X.value,X)},D);return J}function _90($,D){let J=new D1({check:"custom",...M0(D)});return J._zod.check=$,J}function nj($){let D=new D1({check:"describe"});return D._zod.onattach=[(J)=>{let X=ND.get(J)??{};ND.add(J,{...X,description:$})}],D._zod.check=()=>{},D}function ij($){let D=new D1({check:"meta"});return D._zod.onattach=[(J)=>{let X=ND.get(J)??{};ND.add(J,{...X,...$})}],D._zod.check=()=>{},D}function pj($,D){let J=M0(D),X=J.truthy??["true","1","yes","on","y","enabled"],Q=J.falsy??["false","0","no","off","n","disabled"];if(J.case!=="sensitive")X=X.map((H)=>typeof H==="string"?H.toLowerCase():H),Q=Q.map((H)=>typeof H==="string"?H.toLowerCase():H);let Y=new Set(X),Z=new Set(Q),F=$.Codec??vU,U=$.Boolean??SU,q=new($.String??pJ)({type:"string",error:J.error}),W=new U({type:"boolean",error:J.error}),z=new F({type:"pipe",in:q,out:W,transform:(H,O)=>{let V=H;if(J.case!=="sensitive")V=V.toLowerCase();if(Y.has(V))return!0;else if(Z.has(V))return!1;else return O.issues.push({code:"invalid_value",expected:"stringbool",values:[...Y,...Z],input:O.value,inst:z,continue:!1}),{}},reverseTransform:(H,O)=>{if(H===!0)return X[0]||"true";else return Q[0]||"false"},error:J.error});return z}function yQ($,D,J,X={}){let Q=M0(X),Y={...M0(X),check:"string_format",type:"string",format:D,fn:typeof J==="function"?J:(F)=>J.test(F),...Q};if(J instanceof RegExp)Y.pattern=J;return new $(Y)}var zj;var k90=a(()=>{yH();hU();ZI();h0();zj={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function M7($){let D=$?.target??"draft-2020-12";if(D==="draft-4")D="draft-04";if(D==="draft-7")D="draft-07";return{processors:$.processors??{},metadataRegistry:$?.metadata??ND,target:D,unrepresentable:$?.unrepresentable??"throw",override:$?.override??(()=>{}),io:$?.io??"output",counter:0,seen:new Map,cycles:$?.cycles??"ref",reused:$?.reused??"inline",external:$?.external??void 0}}function m$($,D,J={path:[],schemaPath:[]}){var X;let Q=$._zod.def,Y=D.seen.get($);if(Y){if(Y.count++,J.schemaPath.includes($))Y.cycle=J.path;return Y.schema}let Z={schema:{},count:1,cycle:void 0,path:J.path};D.seen.set($,Z);let F=$._zod.toJSONSchema?.();if(F)Z.schema=F;else{let q={...J,schemaPath:[...J.schemaPath,$],path:J.path};if($._zod.processJSONSchema)$._zod.processJSONSchema(D,Z.schema,q);else{let z=Z.schema,H=D.processors[Q.type];if(!H)throw Error(`[toJSONSchema]: Non-representable type encountered: ${Q.type}`);H($,D,z,q)}let W=$._zod.parent;if(W){if(!Z.ref)Z.ref=W;m$(W,D,q),D.seen.get(W).isParent=!0}}let U=D.metadataRegistry.get($);if(U)Object.assign(Z.schema,U);if(D.io==="input"&&aD($))delete Z.schema.examples,delete Z.schema.default;if(D.io==="input"&&"_prefault"in Z.schema)(X=Z.schema).default??(X.default=Z.schema._prefault);return delete Z.schema._prefault,D.seen.get($).schema}function L7($,D){let J=$.seen.get(D);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");let X=new Map;for(let Z of $.seen.entries()){let F=$.metadataRegistry.get(Z[0])?.id;if(F){let U=X.get(F);if(U&&U!==Z[0])throw Error(`Duplicate schema id "${F}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);X.set(F,Z[0])}}let Q=(Z)=>{let F=$.target==="draft-2020-12"?"$defs":"definitions";if($.external){let W=$.external.registry.get(Z[0])?.id,z=$.external.uri??((O)=>O);if(W)return{ref:z(W)};let H=Z[1].defId??Z[1].schema.id??`schema${$.counter++}`;return Z[1].defId=H,{defId:H,ref:`${z("__shared")}#/${F}/${H}`}}if(Z[1]===J)return{ref:"#"};let G=`${"#"}/${F}/`,q=Z[1].schema.id??`__schema${$.counter++}`;return{defId:q,ref:G+q}},Y=(Z)=>{if(Z[1].schema.$ref)return;let F=Z[1],{ref:U,defId:G}=Q(Z);if(F.def={...F.schema},G)F.defId=G;let q=F.schema;for(let W in q)delete q[W];q.$ref=U};if($.cycles==="throw")for(let Z of $.seen.entries()){let F=Z[1];if(F.cycle)throw Error(`Cycle detected: #/${F.cycle?.join("/")}/<root>
|
|
361
361
|
|
|
362
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let Z of $.seen.entries()){let F=Z[1];if(D===Z[0]){Y(Z);continue}if($.external){let G=$.external.registry.get(Z[0])?.id;if(D!==Z[0]&&G){Y(Z);continue}}if($.metadataRegistry.get(Z[0])?.id){Y(Z);continue}if(F.cycle){Y(Z);continue}if(F.count>1){if($.reused==="ref"){Y(Z);continue}}}}function w7($,D){let J=$.seen.get(D);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");let X=(F)=>{let U=$.seen.get(F);if(U.ref===null)return;let G=U.def??U.schema,q={...G},W=U.ref;if(U.ref=null,W){X(W);let H=$.seen.get(W),O=H.schema;if(O.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))G.allOf=G.allOf??[],G.allOf.push(O);else Object.assign(G,O);if(Object.assign(G,q),F._zod.parent===W)for(let K in G){if(K==="$ref"||K==="allOf")continue;if(!(K in q))delete G[K]}if(O.$ref&&H.def)for(let K in G){if(K==="$ref"||K==="allOf")continue;if(K in H.def&&JSON.stringify(G[K])===JSON.stringify(H.def[K]))delete G[K]}}let z=F._zod.parent;if(z&&z!==W){X(z);let H=$.seen.get(z);if(H?.schema.$ref){if(G.$ref=H.schema.$ref,H.def)for(let O in G){if(O==="$ref"||O==="allOf")continue;if(O in H.def&&JSON.stringify(G[O])===JSON.stringify(H.def[O]))delete G[O]}}}$.override({zodSchema:F,jsonSchema:G,path:U.path??[]})};for(let F of[...$.seen.entries()].reverse())X(F[0]);let Q={};if($.target==="draft-2020-12")Q.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")Q.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")Q.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let F=$.external.registry.get(D)?.id;if(!F)throw Error("Schema is missing an `id` property");Q.$id=$.external.uri(F)}Object.assign(Q,J.def??J.schema);let Y=$.metadataRegistry.get(D)?.id;if(Y!==void 0&&Q.id===Y)delete Q.id;let Z=$.external?.defs??{};for(let F of $.seen.entries()){let U=F[1];if(U.def&&U.defId){if(U.def.id===U.defId)delete U.def.id;Z[U.defId]=U.def}}if($.external);else if(Object.keys(Z).length>0)if($.target==="draft-2020-12")Q.$defs=Z;else Q.definitions=Z;try{let F=JSON.parse(JSON.stringify(Q));return Object.defineProperty(F,"~standard",{value:{...D["~standard"],jsonSchema:{input:fQ(D,"input",$.processors),output:fQ(D,"output",$.processors)}},enumerable:!1,writable:!1}),F}catch(F){throw Error("Error converting schema to JSON.")}}function aD($,D){let J=D??{seen:new Set};if(J.seen.has($))return!1;J.seen.add($);let X=$._zod.def;if(X.type==="transform")return!0;if(X.type==="array")return aD(X.element,J);if(X.type==="set")return aD(X.valueType,J);if(X.type==="lazy")return aD(X.getter(),J);if(X.type==="promise"||X.type==="optional"||X.type==="nonoptional"||X.type==="nullable"||X.type==="readonly"||X.type==="default"||X.type==="prefault")return aD(X.innerType,J);if(X.type==="intersection")return aD(X.left,J)||aD(X.right,J);if(X.type==="record"||X.type==="map")return aD(X.keyType,J)||aD(X.valueType,J);if(X.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return aD(X.in,J)||aD(X.out,J)}if(X.type==="object"){for(let Q in X.shape)if(aD(X.shape[Q],J))return!0;return!1}if(X.type==="union"){for(let Q of X.options)if(aD(Q,J))return!0;return!1}if(X.type==="tuple"){for(let Q of X.items)if(aD(Q,J))return!0;if(X.rest&&aD(X.rest,J))return!0;return!1}return!1}var rj=($,D={})=>(J)=>{let X=M7({...J,processors:D});return m$($,X),L7(X,$),w7(X,$)},fQ=($,D,J={})=>(X)=>{let{libraryOptions:Q,target:Y}=X??{},Z=M7({...Q??{},target:Y,io:D,processors:J});return m$($,Z),L7(Z,$),w7(Z,$)};var mU=a(()=>{hU()});function EO($,D){if("_idmap"in $){let X=$,Q=M7({...D,processors:LO}),Y={};for(let U of X._idmap.entries()){let[G,q]=U;m$(q,Q)}let Z={},F={registry:X,uri:D?.uri,defs:Y};Q.external=F;for(let U of X._idmap.entries()){let[G,q]=U;L7(Q,q),Z[G]=w7(Q,q)}if(Object.keys(Y).length>0){let U=Q.target==="draft-2020-12"?"$defs":"definitions";Z.__shared={[U]:Y}}return{schemas:Z}}let J=M7({...D,processors:LO});return m$($,J),L7(J,$),w7(J,$)}var ke0,oj=($,D,J,X)=>{let Q=J;Q.type="string";let{minimum:Y,maximum:Z,format:F,patterns:U,contentEncoding:G}=$._zod.bag;if(typeof Y==="number")Q.minLength=Y;if(typeof Z==="number")Q.maxLength=Z;if(F){if(Q.format=ke0[F]??F,Q.format==="")delete Q.format;if(F==="time")delete Q.format}if(G)Q.contentEncoding=G;if(U&&U.size>0){let q=[...U];if(q.length===1)Q.pattern=q[0].source;else if(q.length>1)Q.allOf=[...q.map((W)=>({...D.target==="draft-07"||D.target==="draft-04"||D.target==="openapi-3.0"?{type:"string"}:{},pattern:W.source}))]}},aj=($,D,J,X)=>{let Q=J,{minimum:Y,maximum:Z,format:F,multipleOf:U,exclusiveMaximum:G,exclusiveMinimum:q}=$._zod.bag;if(typeof F==="string"&&F.includes("int"))Q.type="integer";else Q.type="number";let W=typeof q==="number"&&q>=(Y??Number.NEGATIVE_INFINITY),z=typeof G==="number"&&G<=(Z??Number.POSITIVE_INFINITY),H=D.target==="draft-04"||D.target==="openapi-3.0";if(W)if(H)Q.minimum=q,Q.exclusiveMinimum=!0;else Q.exclusiveMinimum=q;else if(typeof Y==="number")Q.minimum=Y;if(z)if(H)Q.maximum=G,Q.exclusiveMaximum=!0;else Q.exclusiveMaximum=G;else if(typeof Z==="number")Q.maximum=Z;if(typeof U==="number")Q.multipleOf=U},tj=($,D,J,X)=>{J.type="boolean"},sj=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},ej=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},$T=($,D,J,X)=>{if(D.target==="openapi-3.0")J.type="string",J.nullable=!0,J.enum=[null];else J.type="null"},DT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},JT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},XT=($,D,J,X)=>{J.not={}},QT=($,D,J,X)=>{},YT=($,D,J,X)=>{},ZT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},FT=($,D,J,X)=>{let Q=$._zod.def,Y=LU(Q.entries);if(Y.every((Z)=>typeof Z==="number"))J.type="number";if(Y.every((Z)=>typeof Z==="string"))J.type="string";J.enum=Y},UT=($,D,J,X)=>{let Q=$._zod.def,Y=[];for(let Z of Q.values)if(Z===void 0){if(D.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Z==="bigint")if(D.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else Y.push(Number(Z));else Y.push(Z);if(Y.length===0);else if(Y.length===1){let Z=Y[0];if(J.type=Z===null?"null":typeof Z,D.target==="draft-04"||D.target==="openapi-3.0")J.enum=[Z];else J.const=Z}else{if(Y.every((Z)=>typeof Z==="number"))J.type="number";if(Y.every((Z)=>typeof Z==="string"))J.type="string";if(Y.every((Z)=>typeof Z==="boolean"))J.type="boolean";if(Y.every((Z)=>Z===null))J.type="null";J.enum=Y}},GT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},qT=($,D,J,X)=>{let Q=J,Y=$._zod.pattern;if(!Y)throw Error("Pattern not found in template literal");Q.type="string",Q.pattern=Y.source},WT=($,D,J,X)=>{let Q=J,Y={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Z,maximum:F,mime:U}=$._zod.bag;if(Z!==void 0)Y.minLength=Z;if(F!==void 0)Y.maxLength=F;if(U)if(U.length===1)Y.contentMediaType=U[0],Object.assign(Q,Y);else Object.assign(Q,Y),Q.anyOf=U.map((G)=>({contentMediaType:G}));else Object.assign(Q,Y)},zT=($,D,J,X)=>{J.type="boolean"},HT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},OT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},VT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},KT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},NT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},MT=($,D,J,X)=>{let Q=J,Y=$._zod.def,{minimum:Z,maximum:F}=$._zod.bag;if(typeof Z==="number")Q.minItems=Z;if(typeof F==="number")Q.maxItems=F;Q.type="array",Q.items=m$(Y.element,D,{...X,path:[...X.path,"items"]})},LT=($,D,J,X)=>{let Q=J,Y=$._zod.def;Q.type="object",Q.properties={};let Z=Y.shape;for(let G in Z)Q.properties[G]=m$(Z[G],D,{...X,path:[...X.path,"properties",G]});let F=new Set(Object.keys(Z)),U=new Set([...F].filter((G)=>{let q=Y.shape[G]._zod;if(D.io==="input")return q.optin===void 0;else return q.optout===void 0}));if(U.size>0)Q.required=Array.from(U);if(Y.catchall?._zod.def.type==="never")Q.additionalProperties=!1;else if(!Y.catchall){if(D.io==="output")Q.additionalProperties=!1}else if(Y.catchall)Q.additionalProperties=m$(Y.catchall,D,{...X,path:[...X.path,"additionalProperties"]})},wO=($,D,J,X)=>{let Q=$._zod.def,Y=Q.inclusive===!1,Z=Q.options.map((F,U)=>m$(F,D,{...X,path:[...X.path,Y?"oneOf":"anyOf",U]}));if(Y)J.oneOf=Z;else J.anyOf=Z},wT=($,D,J,X)=>{let Q=$._zod.def,Y=m$(Q.left,D,{...X,path:[...X.path,"allOf",0]}),Z=m$(Q.right,D,{...X,path:[...X.path,"allOf",1]}),F=(G)=>("allOf"in G)&&Object.keys(G).length===1,U=[...F(Y)?Y.allOf:[Y],...F(Z)?Z.allOf:[Z]];J.allOf=U},BT=($,D,J,X)=>{let Q=J,Y=$._zod.def;Q.type="array";let Z=D.target==="draft-2020-12"?"prefixItems":"items",F=D.target==="draft-2020-12"?"items":D.target==="openapi-3.0"?"items":"additionalItems",U=Y.items.map((z,H)=>m$(z,D,{...X,path:[...X.path,Z,H]})),G=Y.rest?m$(Y.rest,D,{...X,path:[...X.path,F,...D.target==="openapi-3.0"?[Y.items.length]:[]]}):null;if(D.target==="draft-2020-12"){if(Q.prefixItems=U,G)Q.items=G}else if(D.target==="openapi-3.0"){if(Q.items={anyOf:U},G)Q.items.anyOf.push(G);if(Q.minItems=U.length,!G)Q.maxItems=U.length}else if(Q.items=U,G)Q.additionalItems=G;let{minimum:q,maximum:W}=$._zod.bag;if(typeof q==="number")Q.minItems=q;if(typeof W==="number")Q.maxItems=W},ET=($,D,J,X)=>{let Q=J,Y=$._zod.def;Q.type="object";let Z=Y.keyType,U=Z._zod.bag?.patterns;if(Y.mode==="loose"&&U&&U.size>0){let q=m$(Y.valueType,D,{...X,path:[...X.path,"patternProperties","*"]});Q.patternProperties={};for(let W of U)Q.patternProperties[W.source]=q}else{if(D.target==="draft-07"||D.target==="draft-2020-12")Q.propertyNames=m$(Y.keyType,D,{...X,path:[...X.path,"propertyNames"]});Q.additionalProperties=m$(Y.valueType,D,{...X,path:[...X.path,"additionalProperties"]})}let G=Z._zod.values;if(G){let q=[...G].filter((W)=>typeof W==="string"||typeof W==="number");if(q.length>0)Q.required=q}},RT=($,D,J,X)=>{let Q=$._zod.def,Y=m$(Q.innerType,D,X),Z=D.seen.get($);if(D.target==="openapi-3.0")Z.ref=Q.innerType,J.nullable=!0;else J.anyOf=[Y,{type:"null"}]},AT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType},IT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType,J.default=JSON.parse(JSON.stringify(Q.defaultValue))},jT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);if(Y.ref=Q.innerType,D.io==="input")J._prefault=JSON.parse(JSON.stringify(Q.defaultValue))},TT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType;let Z;try{Z=Q.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}J.default=Z},CT=($,D,J,X)=>{let Q=$._zod.def,Y=Q.in._zod.traits.has("$ZodTransform"),Z=D.io==="input"?Y?Q.out:Q.in:Q.out;m$(Z,D,X);let F=D.seen.get($);F.ref=Z},PT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType,J.readOnly=!0},ST=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType},BO=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType},xT=($,D,J,X)=>{let Q=$._zod.innerType;m$(Q,D,X);let Y=D.seen.get($);Y.ref=Q},LO;var dU=a(()=>{mU();h0();ke0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LO={string:oj,number:aj,boolean:tj,bigint:sj,symbol:ej,null:$T,undefined:DT,void:JT,never:XT,any:QT,unknown:YT,date:ZT,enum:FT,literal:UT,nan:GT,template_literal:qT,file:WT,success:zT,custom:HT,function:OT,transform:VT,map:KT,set:NT,array:MT,object:LT,union:wO,intersection:wT,tuple:BT,record:ET,nullable:RT,nonoptional:AT,default:IT,prefault:jT,catch:TT,pipe:CT,readonly:PT,promise:ST,optional:BO,lazy:xT}});class vT{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter($){this.ctx.counter=$}get seen(){return this.ctx.seen}constructor($){let D=$?.target??"draft-2020-12";if(D==="draft-4")D="draft-04";if(D==="draft-7")D="draft-07";this.ctx=M7({processors:LO,target:D,...$?.metadata&&{metadata:$.metadata},...$?.unrepresentable&&{unrepresentable:$.unrepresentable},...$?.override&&{override:$.override},...$?.io&&{io:$.io}})}process($,D={path:[],schemaPath:[]}){return m$($,this.ctx,D)}emit($,D){if(D){if(D.cycles)this.ctx.cycles=D.cycles;if(D.reused)this.ctx.reused=D.reused;if(D.external)this.ctx.external=D.external}L7(this.ctx,$);let J=w7(this.ctx,$),{"~standard":X,...Q}=J;return Q}}var u90=a(()=>{dU();mU()});var y90={};var f90=()=>{};var q9={};kD(q9,{version:()=>rR,util:()=>K0,treeifyError:()=>oE,toJSONSchema:()=>EO,toDotPath:()=>F80,safeParseAsync:()=>eE,safeParse:()=>sE,safeEncodeAsync:()=>ht0,safeEncode:()=>yt0,safeDecodeAsync:()=>bt0,safeDecode:()=>ft0,registry:()=>pH,regexes:()=>S6,process:()=>m$,prettifyError:()=>aE,parseAsync:()=>RH,parse:()=>EH,meta:()=>ij,locales:()=>fU,isValidJWT:()=>P80,isValidBase64URL:()=>C80,isValidBase64:()=>NA,initializeContext:()=>M7,globalRegistry:()=>ND,globalConfig:()=>dJ,formatError:()=>jU,flattenError:()=>IU,finalize:()=>w7,extractDefs:()=>L7,encodeAsync:()=>kt0,encode:()=>vt0,describe:()=>nj,decodeAsync:()=>ut0,decode:()=>_t0,createToJSONSchemaMethod:()=>rj,createStandardJSONSchemaMethod:()=>fQ,config:()=>f1,clone:()=>pD,_xor:()=>ze0,_xid:()=>QO,_void:()=>yj,_uuidv7:()=>sH,_uuidv6:()=>tH,_uuidv4:()=>aH,_uuid:()=>oH,_url:()=>gU,_uppercase:()=>jQ,_unknown:()=>kj,_union:()=>We0,_undefined:()=>xj,_ulid:()=>XO,_uint64:()=>Pj,_uint32:()=>Rj,_tuple:()=>Ve0,_trim:()=>vQ,_transform:()=>Ee0,_toUpperCase:()=>kQ,_toLowerCase:()=>_Q,_templateLiteral:()=>xe0,_symbol:()=>Sj,_superRefine:()=>lj,_success:()=>Te0,_stringbool:()=>pj,_stringFormat:()=>yQ,_string:()=>Gj,_startsWith:()=>CQ,_slugify:()=>uQ,_size:()=>rJ,_set:()=>Me0,_safeParseAsync:()=>BQ,_safeParse:()=>wQ,_safeEncodeAsync:()=>SH,_safeEncode:()=>CH,_safeDecodeAsync:()=>xH,_safeDecode:()=>PH,_regex:()=>AQ,_refine:()=>cj,_record:()=>Ke0,_readonly:()=>Se0,_property:()=>MO,_promise:()=>_e0,_positive:()=>OO,_pipe:()=>Pe0,_parseAsync:()=>LQ,_parse:()=>MQ,_overwrite:()=>x4,_optional:()=>Re0,_number:()=>Nj,_nullable:()=>Ae0,_null:()=>vj,_normalize:()=>xQ,_nonpositive:()=>KO,_nonoptional:()=>je0,_nonnegative:()=>NO,_never:()=>uj,_negative:()=>VO,_nativeEnum:()=>we0,_nanoid:()=>$O,_nan:()=>bj,_multipleOf:()=>K7,_minSize:()=>H8,_minLength:()=>G9,_min:()=>oD,_mime:()=>SQ,_maxSize:()=>N7,_maxLength:()=>oJ,_max:()=>x6,_map:()=>Ne0,_mac:()=>Wj,_lte:()=>x6,_lt:()=>W8,_lowercase:()=>IQ,_literal:()=>Be0,_length:()=>aJ,_lazy:()=>ve0,_ksuid:()=>YO,_jwt:()=>HO,_isoTime:()=>Vj,_isoDuration:()=>Kj,_isoDateTime:()=>Hj,_isoDate:()=>Oj,_ipv6:()=>FO,_ipv4:()=>ZO,_intersection:()=>Oe0,_int64:()=>Cj,_int32:()=>Ej,_int:()=>Lj,_includes:()=>TQ,_guid:()=>bU,_gte:()=>oD,_gt:()=>z8,_float64:()=>Bj,_float32:()=>wj,_file:()=>mj,_enum:()=>Le0,_endsWith:()=>PQ,_encodeAsync:()=>jH,_encode:()=>AH,_emoji:()=>eH,_email:()=>rH,_e164:()=>zO,_discriminatedUnion:()=>He0,_default:()=>Ie0,_decodeAsync:()=>TH,_decode:()=>IH,_date:()=>fj,_custom:()=>dj,_cuid2:()=>JO,_cuid:()=>DO,_coercedString:()=>qj,_coercedNumber:()=>Mj,_coercedDate:()=>hj,_coercedBoolean:()=>Ij,_coercedBigint:()=>Tj,_cidrv6:()=>GO,_cidrv4:()=>UO,_check:()=>_90,_catch:()=>Ce0,_boolean:()=>Aj,_bigint:()=>jj,_base64url:()=>WO,_base64:()=>qO,_array:()=>gj,_any:()=>_j,TimePrecision:()=>zj,NEVER:()=>fE,JSONSchemaGenerator:()=>vT,JSONSchema:()=>y90,Doc:()=>fH,$output:()=>Zj,$input:()=>Fj,$constructor:()=>t,$brand:()=>hE,$ZodXor:()=>uA,$ZodXID:()=>ZA,$ZodVoid:()=>xA,$ZodUnknown:()=>PA,$ZodUnion:()=>xU,$ZodUndefined:()=>jA,$ZodUUID:()=>sR,$ZodURL:()=>$A,$ZodULID:()=>YA,$ZodType:()=>Y$,$ZodTuple:()=>lH,$ZodTransform:()=>lA,$ZodTemplateLiteral:()=>DI,$ZodSymbol:()=>IA,$ZodSuccess:()=>aA,$ZodStringFormat:()=>t$,$ZodString:()=>pJ,$ZodSet:()=>gA,$ZodRegistry:()=>Uj,$ZodRecord:()=>hA,$ZodRealError:()=>V6,$ZodReadonly:()=>$I,$ZodPromise:()=>XI,$ZodPreprocess:()=>eA,$ZodPrefault:()=>rA,$ZodPipe:()=>iH,$ZodOptional:()=>nH,$ZodObjectJIT:()=>kA,$ZodObject:()=>v80,$ZodNumberFormat:()=>RA,$ZodNumber:()=>dH,$ZodNullable:()=>iA,$ZodNull:()=>TA,$ZodNonOptional:()=>oA,$ZodNever:()=>SA,$ZodNanoID:()=>JA,$ZodNaN:()=>sA,$ZodMap:()=>bA,$ZodMAC:()=>OA,$ZodLiteral:()=>dA,$ZodLazy:()=>QI,$ZodKSUID:()=>FA,$ZodJWT:()=>BA,$ZodIntersection:()=>fA,$ZodISOTime:()=>qA,$ZodISODuration:()=>WA,$ZodISODateTime:()=>UA,$ZodISODate:()=>GA,$ZodIPv6:()=>HA,$ZodIPv4:()=>zA,$ZodGUID:()=>tR,$ZodFunction:()=>JI,$ZodFile:()=>cA,$ZodExactOptional:()=>nA,$ZodError:()=>AU,$ZodEnum:()=>mA,$ZodEncodeError:()=>cJ,$ZodEmoji:()=>DA,$ZodEmail:()=>eR,$ZodE164:()=>wA,$ZodDiscriminatedUnion:()=>yA,$ZodDefault:()=>pA,$ZodDate:()=>vA,$ZodCustomStringFormat:()=>EA,$ZodCustom:()=>YI,$ZodCodec:()=>vU,$ZodCheckUpperCase:()=>mR,$ZodCheckStringFormat:()=>EQ,$ZodCheckStartsWith:()=>cR,$ZodCheckSizeEquals:()=>uR,$ZodCheckRegex:()=>bR,$ZodCheckProperty:()=>nR,$ZodCheckOverwrite:()=>pR,$ZodCheckNumberFormat:()=>xR,$ZodCheckMultipleOf:()=>SR,$ZodCheckMinSize:()=>kR,$ZodCheckMinLength:()=>fR,$ZodCheckMimeType:()=>iR,$ZodCheckMaxSize:()=>_R,$ZodCheckMaxLength:()=>yR,$ZodCheckLowerCase:()=>gR,$ZodCheckLessThan:()=>kH,$ZodCheckLengthEquals:()=>hR,$ZodCheckIncludes:()=>dR,$ZodCheckGreaterThan:()=>uH,$ZodCheckEndsWith:()=>lR,$ZodCheckBigIntFormat:()=>vR,$ZodCheck:()=>D1,$ZodCatch:()=>tA,$ZodCUID2:()=>QA,$ZodCUID:()=>XA,$ZodCIDRv6:()=>KA,$ZodCIDRv4:()=>VA,$ZodBoolean:()=>SU,$ZodBigIntFormat:()=>AA,$ZodBigInt:()=>cH,$ZodBase64URL:()=>LA,$ZodBase64:()=>MA,$ZodAsyncError:()=>q8,$ZodArray:()=>_A,$ZodAny:()=>CA});var v6=a(()=>{h0();_H();Yj();dU();u90();f90();lJ();$R();tE();ZI();yH();oR();hU();k90();mU()});var RO={};kD(RO,{uppercase:()=>jQ,trim:()=>vQ,toUpperCase:()=>kQ,toLowerCase:()=>_Q,startsWith:()=>CQ,slugify:()=>uQ,size:()=>rJ,regex:()=>AQ,property:()=>MO,positive:()=>OO,overwrite:()=>x4,normalize:()=>xQ,nonpositive:()=>KO,nonnegative:()=>NO,negative:()=>VO,multipleOf:()=>K7,minSize:()=>H8,minLength:()=>G9,mime:()=>SQ,maxSize:()=>N7,maxLength:()=>oJ,lte:()=>x6,lt:()=>W8,lowercase:()=>IQ,length:()=>aJ,includes:()=>TQ,gte:()=>oD,gt:()=>z8,endsWith:()=>PQ});var AO=a(()=>{v6()});var hQ={};kD(hQ,{time:()=>uT,duration:()=>yT,datetime:()=>_T,date:()=>kT,ZodISOTime:()=>TO,ZodISODuration:()=>CO,ZodISODateTime:()=>IO,ZodISODate:()=>jO});function _T($){return Hj(IO,$)}function kT($){return Oj(jO,$)}function uT($){return Vj(TO,$)}function yT($){return Kj(CO,$)}var IO,jO,TO,CO;var cU=a(()=>{v6();nU();IO=t("ZodISODateTime",($,D)=>{UA.init($,D),s$.init($,D)});jO=t("ZodISODate",($,D)=>{GA.init($,D),s$.init($,D)});TO=t("ZodISOTime",($,D)=>{qA.init($,D),s$.init($,D)});CO=t("ZodISODuration",($,D)=>{WA.init($,D),s$.init($,D)})});var h90=($,D)=>{AU.init($,D),$.name="ZodError",Object.defineProperties($,{format:{value:(J)=>jU($,J)},flatten:{value:(J)=>IU($,J)},addIssue:{value:(J)=>{$.issues.push(J),$.message=JSON.stringify($.issues,VQ,2)}},addIssues:{value:(J)=>{$.issues.push(...J),$.message=JSON.stringify($.issues,VQ,2)}},isEmpty:{get(){return $.issues.length===0}}})},ye0,K6;var fT=a(()=>{v6();v6();h0();ye0=t("ZodError",h90),K6=t("ZodError",h90,{Parent:Error})});var hT,bT,gT,mT,dT,cT,lT,nT,iT,pT,rT,oT;var aT=a(()=>{v6();fT();hT=MQ(K6),bT=LQ(K6),gT=wQ(K6),mT=BQ(K6),dT=AH(K6),cT=IH(K6),lT=jH(K6),nT=TH(K6),iT=CH(K6),pT=PH(K6),rT=SH(K6),oT=xH(K6)});var lU={};kD(lU,{xor:()=>S70,xid:()=>e90,void:()=>A70,uuidv7:()=>n90,uuidv6:()=>l90,uuidv4:()=>c90,uuid:()=>d90,url:()=>i90,unknown:()=>tJ,union:()=>aO,undefined:()=>E70,ulid:()=>s90,uint64:()=>w70,uint32:()=>N70,tuple:()=>OC,transform:()=>sO,templateLiteral:()=>l70,symbol:()=>B70,superRefine:()=>dC,success:()=>g70,stringbool:()=>s70,stringFormat:()=>q70,string:()=>iU,strictObject:()=>C70,set:()=>u70,refine:()=>mC,record:()=>VC,readonly:()=>uC,promise:()=>n70,preprocess:()=>$J0,prefault:()=>TC,pipe:()=>SO,partialRecord:()=>v70,optional:()=>rU,object:()=>T70,number:()=>sT,nullish:()=>b70,nullable:()=>oU,null:()=>XC,nonoptional:()=>CC,never:()=>oO,nativeEnum:()=>y70,nanoid:()=>o90,nan:()=>m70,meta:()=>a70,map:()=>k70,mac:()=>J70,looseRecord:()=>_70,looseObject:()=>P70,literal:()=>f70,lazy:()=>hC,ksuid:()=>$70,keyof:()=>j70,jwt:()=>G70,json:()=>e70,ipv6:()=>X70,ipv4:()=>D70,invertCodec:()=>c70,intersection:()=>zC,int64:()=>L70,int32:()=>K70,int:()=>PO,instanceof:()=>t70,httpUrl:()=>p90,hostname:()=>W70,hex:()=>z70,hash:()=>H70,guid:()=>m90,function:()=>i70,float64:()=>V70,float32:()=>O70,file:()=>h70,exactOptional:()=>EC,enum:()=>tO,emoji:()=>r90,email:()=>g90,e164:()=>U70,discriminatedUnion:()=>x70,describe:()=>o70,date:()=>I70,custom:()=>r70,cuid2:()=>t90,cuid:()=>a90,codec:()=>d70,cidrv6:()=>Y70,cidrv4:()=>Q70,check:()=>p70,catch:()=>xC,boolean:()=>eT,bigint:()=>M70,base64url:()=>F70,base64:()=>Z70,array:()=>eU,any:()=>R70,_function:()=>i70,_default:()=>IC,_ZodString:()=>xO,ZodXor:()=>GC,ZodXID:()=>hO,ZodVoid:()=>FC,ZodUnknown:()=>YC,ZodUnion:()=>DG,ZodUndefined:()=>DC,ZodUUID:()=>O8,ZodURL:()=>tU,ZodULID:()=>fO,ZodType:()=>H$,ZodTuple:()=>HC,ZodTransform:()=>wC,ZodTemplateLiteral:()=>yC,ZodSymbol:()=>$C,ZodSuccess:()=>PC,ZodStringFormat:()=>s$,ZodString:()=>mQ,ZodSet:()=>NC,ZodRecord:()=>bQ,ZodReadonly:()=>kC,ZodPromise:()=>bC,ZodPreprocess:()=>_C,ZodPrefault:()=>jC,ZodPipe:()=>JG,ZodOptional:()=>eO,ZodObject:()=>$G,ZodNumberFormat:()=>sJ,ZodNumber:()=>cQ,ZodNullable:()=>RC,ZodNull:()=>JC,ZodNonOptional:()=>$V,ZodNever:()=>ZC,ZodNanoID:()=>kO,ZodNaN:()=>vC,ZodMap:()=>KC,ZodMAC:()=>tT,ZodLiteral:()=>MC,ZodLazy:()=>fC,ZodKSUID:()=>bO,ZodJWT:()=>pO,ZodIntersection:()=>WC,ZodIPv6:()=>mO,ZodIPv4:()=>gO,ZodGUID:()=>pU,ZodFunction:()=>gC,ZodFile:()=>LC,ZodExactOptional:()=>BC,ZodEnum:()=>gQ,ZodEmoji:()=>_O,ZodEmail:()=>vO,ZodE164:()=>iO,ZodDiscriminatedUnion:()=>qC,ZodDefault:()=>AC,ZodDate:()=>sU,ZodCustomStringFormat:()=>dQ,ZodCustom:()=>QG,ZodCodec:()=>XG,ZodCatch:()=>SC,ZodCUID2:()=>yO,ZodCUID:()=>uO,ZodCIDRv6:()=>cO,ZodCIDRv4:()=>dO,ZodBoolean:()=>lQ,ZodBigIntFormat:()=>rO,ZodBigInt:()=>nQ,ZodBase64URL:()=>nO,ZodBase64:()=>lO,ZodArray:()=>UC,ZodAny:()=>QC});function aU($,D,J){let X=Object.getPrototypeOf($),Q=b90.get(X);if(!Q)Q=new Set,b90.set(X,Q);if(Q.has(D))return;Q.add(D);for(let Y in J){let Z=J[Y];Object.defineProperty(X,Y,{configurable:!0,enumerable:!1,get(){let F=Z.bind(this);return Object.defineProperty(this,Y,{configurable:!0,writable:!0,enumerable:!0,value:F}),F},set(F){Object.defineProperty(this,Y,{configurable:!0,writable:!0,enumerable:!0,value:F})}})}}function iU($){return Gj(mQ,$)}function g90($){return rH(vO,$)}function m90($){return bU(pU,$)}function d90($){return oH(O8,$)}function c90($){return aH(O8,$)}function l90($){return tH(O8,$)}function n90($){return sH(O8,$)}function i90($){return gU(tU,$)}function p90($){return gU(tU,{protocol:S6.httpProtocol,hostname:S6.domain,...K0.normalizeParams($)})}function r90($){return eH(_O,$)}function o90($){return $O(kO,$)}function a90($){return DO(uO,$)}function t90($){return JO(yO,$)}function s90($){return XO(fO,$)}function e90($){return QO(hO,$)}function $70($){return YO(bO,$)}function D70($){return ZO(gO,$)}function J70($){return Wj(tT,$)}function X70($){return FO(mO,$)}function Q70($){return UO(dO,$)}function Y70($){return GO(cO,$)}function Z70($){return qO(lO,$)}function F70($){return WO(nO,$)}function U70($){return zO(iO,$)}function G70($){return HO(pO,$)}function q70($,D,J={}){return yQ(dQ,$,D,J)}function W70($){return yQ(dQ,"hostname",S6.hostname,$)}function z70($){return yQ(dQ,"hex",S6.hex,$)}function H70($,D){let J=D?.enc??"hex",X=`${$}_${J}`,Q=S6[X];if(!Q)throw Error(`Unrecognized hash format: ${X}`);return yQ(dQ,X,Q,D)}function sT($){return Nj(cQ,$)}function PO($){return Lj(sJ,$)}function O70($){return wj(sJ,$)}function V70($){return Bj(sJ,$)}function K70($){return Ej(sJ,$)}function N70($){return Rj(sJ,$)}function eT($){return Aj(lQ,$)}function M70($){return jj(nQ,$)}function L70($){return Cj(rO,$)}function w70($){return Pj(rO,$)}function B70($){return Sj($C,$)}function E70($){return xj(DC,$)}function XC($){return vj(JC,$)}function R70(){return _j(QC)}function tJ(){return kj(YC)}function oO($){return uj(ZC,$)}function A70($){return yj(FC,$)}function I70($){return fj(sU,$)}function eU($,D){return gj(UC,$,D)}function j70($){let D=$._zod.def.shape;return tO(Object.keys(D))}function T70($,D){let J={type:"object",shape:$??{},...K0.normalizeParams(D)};return new $G(J)}function C70($,D){return new $G({type:"object",shape:$,catchall:oO(),...K0.normalizeParams(D)})}function P70($,D){return new $G({type:"object",shape:$,catchall:tJ(),...K0.normalizeParams(D)})}function aO($,D){return new DG({type:"union",options:$,...K0.normalizeParams(D)})}function S70($,D){return new GC({type:"union",options:$,inclusive:!1,...K0.normalizeParams(D)})}function x70($,D,J){return new qC({type:"union",options:D,discriminator:$,...K0.normalizeParams(J)})}function zC($,D){return new WC({type:"intersection",left:$,right:D})}function OC($,D,J){let X=D instanceof Y$,Q=X?J:D;return new HC({type:"tuple",items:$,rest:X?D:null,...K0.normalizeParams(Q)})}function VC($,D,J){if(!D||!D._zod)return new bQ({type:"record",keyType:iU(),valueType:$,...K0.normalizeParams(D)});return new bQ({type:"record",keyType:$,valueType:D,...K0.normalizeParams(J)})}function v70($,D,J){let X=pD($);return X._zod.values=void 0,new bQ({type:"record",keyType:X,valueType:D,...K0.normalizeParams(J)})}function _70($,D,J){return new bQ({type:"record",keyType:$,valueType:D,mode:"loose",...K0.normalizeParams(J)})}function k70($,D,J){return new KC({type:"map",keyType:$,valueType:D,...K0.normalizeParams(J)})}function u70($,D){return new NC({type:"set",valueType:$,...K0.normalizeParams(D)})}function tO($,D){let J=Array.isArray($)?Object.fromEntries($.map((X)=>[X,X])):$;return new gQ({type:"enum",entries:J,...K0.normalizeParams(D)})}function y70($,D){return new gQ({type:"enum",entries:$,...K0.normalizeParams(D)})}function f70($,D){return new MC({type:"literal",values:Array.isArray($)?$:[$],...K0.normalizeParams(D)})}function h70($){return mj(LC,$)}function sO($){return new wC({type:"transform",transform:$})}function rU($){return new eO({type:"optional",innerType:$})}function EC($){return new BC({type:"optional",innerType:$})}function oU($){return new RC({type:"nullable",innerType:$})}function b70($){return rU(oU($))}function IC($,D){return new AC({type:"default",innerType:$,get defaultValue(){return typeof D==="function"?D():K0.shallowClone(D)}})}function TC($,D){return new jC({type:"prefault",innerType:$,get defaultValue(){return typeof D==="function"?D():K0.shallowClone(D)}})}function CC($,D){return new $V({type:"nonoptional",innerType:$,...K0.normalizeParams(D)})}function g70($){return new PC({type:"success",innerType:$})}function xC($,D){return new SC({type:"catch",innerType:$,catchValue:typeof D==="function"?D:()=>D})}function m70($){return bj(vC,$)}function SO($,D){return new JG({type:"pipe",in:$,out:D})}function d70($,D,J){return new XG({type:"pipe",in:$,out:D,transform:J.decode,reverseTransform:J.encode})}function c70($){let D=$._zod.def;return new XG({type:"pipe",in:D.out,out:D.in,transform:D.reverseTransform,reverseTransform:D.transform})}function uC($){return new kC({type:"readonly",innerType:$})}function l70($,D){return new yC({type:"template_literal",parts:$,...K0.normalizeParams(D)})}function hC($){return new fC({type:"lazy",getter:$})}function n70($){return new bC({type:"promise",innerType:$})}function i70($){return new gC({type:"function",input:Array.isArray($?.input)?OC($?.input):$?.input??eU(tJ()),output:$?.output??tJ()})}function p70($){let D=new D1({check:"custom"});return D._zod.check=$,D}function r70($,D){return dj(QG,$??(()=>!0),D)}function mC($,D={}){return cj(QG,$,D)}function dC($,D){return lj($,D)}function t70($,D={}){let J=new QG({type:"custom",check:"custom",fn:(X)=>X instanceof $,abort:!0,...K0.normalizeParams(D)});return J._zod.bag.Class=$,J._zod.check=(X)=>{if(!(X.value instanceof $))X.issues.push({code:"invalid_type",expected:$.name,input:X.value,inst:J,path:[...J._zod.def.path??[]]})},J}function e70($){let D=hC(()=>{return aO([iU($),sT(),eT(),XC(),eU(D),VC(iU(),D)])});return D}function $J0($,D){return new _C({type:"pipe",in:sO($),out:D})}var b90,H$,xO,mQ,s$,vO,pU,O8,tU,_O,kO,uO,yO,fO,hO,bO,gO,tT,mO,dO,cO,lO,nO,iO,pO,dQ,cQ,sJ,lQ,nQ,rO,$C,DC,JC,QC,YC,ZC,FC,sU,UC,$G,DG,GC,qC,WC,HC,bQ,KC,NC,gQ,MC,LC,wC,eO,BC,RC,AC,jC,$V,PC,SC,vC,JG,XG,_C,kC,yC,fC,bC,gC,QG,o70,a70,s70=(...$)=>pj({Codec:XG,Boolean:lQ,String:mQ},...$);var nU=a(()=>{v6();v6();dU();mU();AO();cU();aT();b90=new WeakMap;H$=t("ZodType",($,D)=>{return Y$.init($,D),Object.assign($["~standard"],{jsonSchema:{input:fQ($,"input"),output:fQ($,"output")}}),$.toJSONSchema=rj($,{}),$.def=D,$.type=D.type,Object.defineProperty($,"_def",{value:D}),$.parse=(J,X)=>hT($,J,X,{callee:$.parse}),$.safeParse=(J,X)=>gT($,J,X),$.parseAsync=async(J,X)=>bT($,J,X,{callee:$.parseAsync}),$.safeParseAsync=async(J,X)=>mT($,J,X),$.spa=$.safeParseAsync,$.encode=(J,X)=>dT($,J,X),$.decode=(J,X)=>cT($,J,X),$.encodeAsync=async(J,X)=>lT($,J,X),$.decodeAsync=async(J,X)=>nT($,J,X),$.safeEncode=(J,X)=>iT($,J,X),$.safeDecode=(J,X)=>pT($,J,X),$.safeEncodeAsync=async(J,X)=>rT($,J,X),$.safeDecodeAsync=async(J,X)=>oT($,J,X),aU($,"ZodType",{check(...J){let X=this.def;return this.clone(K0.mergeDefs(X,{checks:[...X.checks??[],...J.map((Q)=>typeof Q==="function"?{_zod:{check:Q,def:{check:"custom"},onattach:[]}}:Q)]}),{parent:!0})},with(...J){return this.check(...J)},clone(J,X){return pD(this,J,X)},brand(){return this},register(J,X){return J.add(this,X),this},refine(J,X){return this.check(mC(J,X))},superRefine(J,X){return this.check(dC(J,X))},overwrite(J){return this.check(x4(J))},optional(){return rU(this)},exactOptional(){return EC(this)},nullable(){return oU(this)},nullish(){return rU(oU(this))},nonoptional(J){return CC(this,J)},array(){return eU(this)},or(J){return aO([this,J])},and(J){return zC(this,J)},transform(J){return SO(this,sO(J))},default(J){return IC(this,J)},prefault(J){return TC(this,J)},catch(J){return xC(this,J)},pipe(J){return SO(this,J)},readonly(){return uC(this)},describe(J){let X=this.clone();return ND.add(X,{description:J}),X},meta(...J){if(J.length===0)return ND.get(this);let X=this.clone();return ND.add(X,J[0]),X},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(J){return J(this)}}),Object.defineProperty($,"description",{get(){return ND.get($)?.description},configurable:!0}),$}),xO=t("_ZodString",($,D)=>{pJ.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>oj($,X,Q,Y);let J=$._zod.bag;$.format=J.format??null,$.minLength=J.minimum??null,$.maxLength=J.maximum??null,aU($,"_ZodString",{regex(...X){return this.check(AQ(...X))},includes(...X){return this.check(TQ(...X))},startsWith(...X){return this.check(CQ(...X))},endsWith(...X){return this.check(PQ(...X))},min(...X){return this.check(G9(...X))},max(...X){return this.check(oJ(...X))},length(...X){return this.check(aJ(...X))},nonempty(...X){return this.check(G9(1,...X))},lowercase(X){return this.check(IQ(X))},uppercase(X){return this.check(jQ(X))},trim(){return this.check(vQ())},normalize(...X){return this.check(xQ(...X))},toLowerCase(){return this.check(_Q())},toUpperCase(){return this.check(kQ())},slugify(){return this.check(uQ())}})}),mQ=t("ZodString",($,D)=>{pJ.init($,D),xO.init($,D),$.email=(J)=>$.check(rH(vO,J)),$.url=(J)=>$.check(gU(tU,J)),$.jwt=(J)=>$.check(HO(pO,J)),$.emoji=(J)=>$.check(eH(_O,J)),$.guid=(J)=>$.check(bU(pU,J)),$.uuid=(J)=>$.check(oH(O8,J)),$.uuidv4=(J)=>$.check(aH(O8,J)),$.uuidv6=(J)=>$.check(tH(O8,J)),$.uuidv7=(J)=>$.check(sH(O8,J)),$.nanoid=(J)=>$.check($O(kO,J)),$.guid=(J)=>$.check(bU(pU,J)),$.cuid=(J)=>$.check(DO(uO,J)),$.cuid2=(J)=>$.check(JO(yO,J)),$.ulid=(J)=>$.check(XO(fO,J)),$.base64=(J)=>$.check(qO(lO,J)),$.base64url=(J)=>$.check(WO(nO,J)),$.xid=(J)=>$.check(QO(hO,J)),$.ksuid=(J)=>$.check(YO(bO,J)),$.ipv4=(J)=>$.check(ZO(gO,J)),$.ipv6=(J)=>$.check(FO(mO,J)),$.cidrv4=(J)=>$.check(UO(dO,J)),$.cidrv6=(J)=>$.check(GO(cO,J)),$.e164=(J)=>$.check(zO(iO,J)),$.datetime=(J)=>$.check(_T(J)),$.date=(J)=>$.check(kT(J)),$.time=(J)=>$.check(uT(J)),$.duration=(J)=>$.check(yT(J))});s$=t("ZodStringFormat",($,D)=>{t$.init($,D),xO.init($,D)}),vO=t("ZodEmail",($,D)=>{eR.init($,D),s$.init($,D)});pU=t("ZodGUID",($,D)=>{tR.init($,D),s$.init($,D)});O8=t("ZodUUID",($,D)=>{sR.init($,D),s$.init($,D)});tU=t("ZodURL",($,D)=>{$A.init($,D),s$.init($,D)});_O=t("ZodEmoji",($,D)=>{DA.init($,D),s$.init($,D)});kO=t("ZodNanoID",($,D)=>{JA.init($,D),s$.init($,D)});uO=t("ZodCUID",($,D)=>{XA.init($,D),s$.init($,D)});yO=t("ZodCUID2",($,D)=>{QA.init($,D),s$.init($,D)});fO=t("ZodULID",($,D)=>{YA.init($,D),s$.init($,D)});hO=t("ZodXID",($,D)=>{ZA.init($,D),s$.init($,D)});bO=t("ZodKSUID",($,D)=>{FA.init($,D),s$.init($,D)});gO=t("ZodIPv4",($,D)=>{zA.init($,D),s$.init($,D)});tT=t("ZodMAC",($,D)=>{OA.init($,D),s$.init($,D)});mO=t("ZodIPv6",($,D)=>{HA.init($,D),s$.init($,D)});dO=t("ZodCIDRv4",($,D)=>{VA.init($,D),s$.init($,D)});cO=t("ZodCIDRv6",($,D)=>{KA.init($,D),s$.init($,D)});lO=t("ZodBase64",($,D)=>{MA.init($,D),s$.init($,D)});nO=t("ZodBase64URL",($,D)=>{LA.init($,D),s$.init($,D)});iO=t("ZodE164",($,D)=>{wA.init($,D),s$.init($,D)});pO=t("ZodJWT",($,D)=>{BA.init($,D),s$.init($,D)});dQ=t("ZodCustomStringFormat",($,D)=>{EA.init($,D),s$.init($,D)});cQ=t("ZodNumber",($,D)=>{dH.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>aj($,X,Q,Y),aU($,"ZodNumber",{gt(X,Q){return this.check(z8(X,Q))},gte(X,Q){return this.check(oD(X,Q))},min(X,Q){return this.check(oD(X,Q))},lt(X,Q){return this.check(W8(X,Q))},lte(X,Q){return this.check(x6(X,Q))},max(X,Q){return this.check(x6(X,Q))},int(X){return this.check(PO(X))},safe(X){return this.check(PO(X))},positive(X){return this.check(z8(0,X))},nonnegative(X){return this.check(oD(0,X))},negative(X){return this.check(W8(0,X))},nonpositive(X){return this.check(x6(0,X))},multipleOf(X,Q){return this.check(K7(X,Q))},step(X,Q){return this.check(K7(X,Q))},finite(){return this}});let J=$._zod.bag;$.minValue=Math.max(J.minimum??Number.NEGATIVE_INFINITY,J.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,$.maxValue=Math.min(J.maximum??Number.POSITIVE_INFINITY,J.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,$.isInt=(J.format??"").includes("int")||Number.isSafeInteger(J.multipleOf??0.5),$.isFinite=!0,$.format=J.format??null});sJ=t("ZodNumberFormat",($,D)=>{RA.init($,D),cQ.init($,D)});lQ=t("ZodBoolean",($,D)=>{SU.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>tj($,J,X,Q)});nQ=t("ZodBigInt",($,D)=>{cH.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>sj($,X,Q,Y),$.gte=(X,Q)=>$.check(oD(X,Q)),$.min=(X,Q)=>$.check(oD(X,Q)),$.gt=(X,Q)=>$.check(z8(X,Q)),$.gte=(X,Q)=>$.check(oD(X,Q)),$.min=(X,Q)=>$.check(oD(X,Q)),$.lt=(X,Q)=>$.check(W8(X,Q)),$.lte=(X,Q)=>$.check(x6(X,Q)),$.max=(X,Q)=>$.check(x6(X,Q)),$.positive=(X)=>$.check(z8(BigInt(0),X)),$.negative=(X)=>$.check(W8(BigInt(0),X)),$.nonpositive=(X)=>$.check(x6(BigInt(0),X)),$.nonnegative=(X)=>$.check(oD(BigInt(0),X)),$.multipleOf=(X,Q)=>$.check(K7(X,Q));let J=$._zod.bag;$.minValue=J.minimum??null,$.maxValue=J.maximum??null,$.format=J.format??null});rO=t("ZodBigIntFormat",($,D)=>{AA.init($,D),nQ.init($,D)});$C=t("ZodSymbol",($,D)=>{IA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>ej($,J,X,Q)});DC=t("ZodUndefined",($,D)=>{jA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>DT($,J,X,Q)});JC=t("ZodNull",($,D)=>{TA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>$T($,J,X,Q)});QC=t("ZodAny",($,D)=>{CA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>QT($,J,X,Q)});YC=t("ZodUnknown",($,D)=>{PA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>YT($,J,X,Q)});ZC=t("ZodNever",($,D)=>{SA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>XT($,J,X,Q)});FC=t("ZodVoid",($,D)=>{xA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>JT($,J,X,Q)});sU=t("ZodDate",($,D)=>{vA.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>ZT($,X,Q,Y),$.min=(X,Q)=>$.check(oD(X,Q)),$.max=(X,Q)=>$.check(x6(X,Q));let J=$._zod.bag;$.minDate=J.minimum?new Date(J.minimum):null,$.maxDate=J.maximum?new Date(J.maximum):null});UC=t("ZodArray",($,D)=>{_A.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>MT($,J,X,Q),$.element=D.element,aU($,"ZodArray",{min(J,X){return this.check(G9(J,X))},nonempty(J){return this.check(G9(1,J))},max(J,X){return this.check(oJ(J,X))},length(J,X){return this.check(aJ(J,X))},unwrap(){return this.element}})});$G=t("ZodObject",($,D)=>{kA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>LT($,J,X,Q),K0.defineLazy($,"shape",()=>{return D.shape}),aU($,"ZodObject",{keyof(){return tO(Object.keys(this._zod.def.shape))},catchall(J){return this.clone({...this._zod.def,catchall:J})},passthrough(){return this.clone({...this._zod.def,catchall:tJ()})},loose(){return this.clone({...this._zod.def,catchall:tJ()})},strict(){return this.clone({...this._zod.def,catchall:oO()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(J){return K0.extend(this,J)},safeExtend(J){return K0.safeExtend(this,J)},merge(J){return K0.merge(this,J)},pick(J){return K0.pick(this,J)},omit(J){return K0.omit(this,J)},partial(...J){return K0.partial(eO,this,J[0])},required(...J){return K0.required($V,this,J[0])}})});DG=t("ZodUnion",($,D)=>{xU.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>wO($,J,X,Q),$.options=D.options});GC=t("ZodXor",($,D)=>{DG.init($,D),uA.init($,D),$._zod.processJSONSchema=(J,X,Q)=>wO($,J,X,Q),$.options=D.options});qC=t("ZodDiscriminatedUnion",($,D)=>{DG.init($,D),yA.init($,D)});WC=t("ZodIntersection",($,D)=>{fA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>wT($,J,X,Q)});HC=t("ZodTuple",($,D)=>{lH.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>BT($,J,X,Q),$.rest=(J)=>$.clone({...$._zod.def,rest:J})});bQ=t("ZodRecord",($,D)=>{hA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>ET($,J,X,Q),$.keyType=D.keyType,$.valueType=D.valueType});KC=t("ZodMap",($,D)=>{bA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>KT($,J,X,Q),$.keyType=D.keyType,$.valueType=D.valueType,$.min=(...J)=>$.check(H8(...J)),$.nonempty=(J)=>$.check(H8(1,J)),$.max=(...J)=>$.check(N7(...J)),$.size=(...J)=>$.check(rJ(...J))});NC=t("ZodSet",($,D)=>{gA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>NT($,J,X,Q),$.min=(...J)=>$.check(H8(...J)),$.nonempty=(J)=>$.check(H8(1,J)),$.max=(...J)=>$.check(N7(...J)),$.size=(...J)=>$.check(rJ(...J))});gQ=t("ZodEnum",($,D)=>{mA.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>FT($,X,Q,Y),$.enum=D.entries,$.options=Object.values(D.entries);let J=new Set(Object.keys(D.entries));$.extract=(X,Q)=>{let Y={};for(let Z of X)if(J.has(Z))Y[Z]=D.entries[Z];else throw Error(`Key ${Z} not found in enum`);return new gQ({...D,checks:[],...K0.normalizeParams(Q),entries:Y})},$.exclude=(X,Q)=>{let Y={...D.entries};for(let Z of X)if(J.has(Z))delete Y[Z];else throw Error(`Key ${Z} not found in enum`);return new gQ({...D,checks:[],...K0.normalizeParams(Q),entries:Y})}});MC=t("ZodLiteral",($,D)=>{dA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>UT($,J,X,Q),$.values=new Set(D.values),Object.defineProperty($,"value",{get(){if(D.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return D.values[0]}})});LC=t("ZodFile",($,D)=>{cA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>WT($,J,X,Q),$.min=(J,X)=>$.check(H8(J,X)),$.max=(J,X)=>$.check(N7(J,X)),$.mime=(J,X)=>$.check(SQ(Array.isArray(J)?J:[J],X))});wC=t("ZodTransform",($,D)=>{lA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>VT($,J,X,Q),$._zod.parse=(J,X)=>{if(X.direction==="backward")throw new cJ($.constructor.name);J.addIssue=(Y)=>{if(typeof Y==="string")J.issues.push(K0.issue(Y,J.value,D));else{let Z=Y;if(Z.fatal)Z.continue=!1;Z.code??(Z.code="custom"),Z.input??(Z.input=J.value),Z.inst??(Z.inst=$),J.issues.push(K0.issue(Z))}};let Q=D.transform(J.value,J);if(Q instanceof Promise)return Q.then((Y)=>{return J.value=Y,J.fallback=!0,J});return J.value=Q,J.fallback=!0,J}});eO=t("ZodOptional",($,D)=>{nH.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>BO($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});BC=t("ZodExactOptional",($,D)=>{nA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>BO($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});RC=t("ZodNullable",($,D)=>{iA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>RT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});AC=t("ZodDefault",($,D)=>{pA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>IT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType,$.removeDefault=$.unwrap});jC=t("ZodPrefault",($,D)=>{rA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>jT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});$V=t("ZodNonOptional",($,D)=>{oA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>AT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});PC=t("ZodSuccess",($,D)=>{aA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>zT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});SC=t("ZodCatch",($,D)=>{tA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>TT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType,$.removeCatch=$.unwrap});vC=t("ZodNaN",($,D)=>{sA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>GT($,J,X,Q)});JG=t("ZodPipe",($,D)=>{iH.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>CT($,J,X,Q),$.in=D.in,$.out=D.out});XG=t("ZodCodec",($,D)=>{JG.init($,D),vU.init($,D)});_C=t("ZodPreprocess",($,D)=>{JG.init($,D),eA.init($,D)}),kC=t("ZodReadonly",($,D)=>{$I.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>PT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});yC=t("ZodTemplateLiteral",($,D)=>{DI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>qT($,J,X,Q)});fC=t("ZodLazy",($,D)=>{QI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>xT($,J,X,Q),$.unwrap=()=>$._zod.def.getter()});bC=t("ZodPromise",($,D)=>{XI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>ST($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});gC=t("ZodFunction",($,D)=>{JI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>OT($,J,X,Q)});QG=t("ZodCustom",($,D)=>{YI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>HT($,J,X,Q)});o70=nj,a70=ij});function be0($){f1({customError:$})}function ge0(){return f1().customError}var he0,cC;var DJ0=a(()=>{v6();he0={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};(function($){})(cC||(cC={}))});function de0($,D){let J=$.$schema;if(J==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(J==="http://json-schema.org/draft-07/schema#")return"draft-7";if(J==="http://json-schema.org/draft-04/schema#")return"draft-4";return D??"draft-2020-12"}function ce0($,D){if(!$.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let J=$.slice(1).split("/").filter(Boolean);if(J.length===0)return D.rootSchema;let X=D.version==="draft-2020-12"?"$defs":"definitions";if(J[0]===X){let Q=J[1];if(!Q||!D.defs[Q])throw Error(`Reference not found: ${$}`);return D.defs[Q]}throw Error(`Reference not found: ${$}`)}function JJ0($,D){if($.not!==void 0){if(typeof $.not==="object"&&Object.keys($.not).length===0)return C0.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if($.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if($.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if($.if!==void 0||$.then!==void 0||$.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if($.dependentSchemas!==void 0||$.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if($.$ref){let Q=$.$ref;if(D.refs.has(Q))return D.refs.get(Q);if(D.processing.has(Q))return C0.lazy(()=>{if(!D.refs.has(Q))throw Error(`Circular reference not resolved: ${Q}`);return D.refs.get(Q)});D.processing.add(Q);let Y=ce0(Q,D),Z=SD(Y,D);return D.refs.set(Q,Z),D.processing.delete(Q),Z}if($.enum!==void 0){let Q=$.enum;if(D.version==="openapi-3.0"&&$.nullable===!0&&Q.length===1&&Q[0]===null)return C0.null();if(Q.length===0)return C0.never();if(Q.length===1)return C0.literal(Q[0]);if(Q.every((Z)=>typeof Z==="string"))return C0.enum(Q);let Y=Q.map((Z)=>C0.literal(Z));if(Y.length<2)return Y[0];return C0.union([Y[0],Y[1],...Y.slice(2)])}if($.const!==void 0)return C0.literal($.const);let J=$.type;if(Array.isArray(J)){let Q=J.map((Y)=>{let Z={...$,type:Y};return JJ0(Z,D)});if(Q.length===0)return C0.never();if(Q.length===1)return Q[0];return C0.union(Q)}if(!J)return C0.any();let X;switch(J){case"string":{let Q=C0.string();if($.format){let Y=$.format;if(Y==="email")Q=Q.check(C0.email());else if(Y==="uri"||Y==="uri-reference")Q=Q.check(C0.url());else if(Y==="uuid"||Y==="guid")Q=Q.check(C0.uuid());else if(Y==="date-time")Q=Q.check(C0.iso.datetime());else if(Y==="date")Q=Q.check(C0.iso.date());else if(Y==="time")Q=Q.check(C0.iso.time());else if(Y==="duration")Q=Q.check(C0.iso.duration());else if(Y==="ipv4")Q=Q.check(C0.ipv4());else if(Y==="ipv6")Q=Q.check(C0.ipv6());else if(Y==="mac")Q=Q.check(C0.mac());else if(Y==="cidr")Q=Q.check(C0.cidrv4());else if(Y==="cidr-v6")Q=Q.check(C0.cidrv6());else if(Y==="base64")Q=Q.check(C0.base64());else if(Y==="base64url")Q=Q.check(C0.base64url());else if(Y==="e164")Q=Q.check(C0.e164());else if(Y==="jwt")Q=Q.check(C0.jwt());else if(Y==="emoji")Q=Q.check(C0.emoji());else if(Y==="nanoid")Q=Q.check(C0.nanoid());else if(Y==="cuid")Q=Q.check(C0.cuid());else if(Y==="cuid2")Q=Q.check(C0.cuid2());else if(Y==="ulid")Q=Q.check(C0.ulid());else if(Y==="xid")Q=Q.check(C0.xid());else if(Y==="ksuid")Q=Q.check(C0.ksuid())}if(typeof $.minLength==="number")Q=Q.min($.minLength);if(typeof $.maxLength==="number")Q=Q.max($.maxLength);if($.pattern)Q=Q.regex(new RegExp($.pattern));X=Q;break}case"number":case"integer":{let Q=J==="integer"?C0.number().int():C0.number();if(typeof $.minimum==="number")Q=Q.min($.minimum);if(typeof $.maximum==="number")Q=Q.max($.maximum);if(typeof $.exclusiveMinimum==="number")Q=Q.gt($.exclusiveMinimum);else if($.exclusiveMinimum===!0&&typeof $.minimum==="number")Q=Q.gt($.minimum);if(typeof $.exclusiveMaximum==="number")Q=Q.lt($.exclusiveMaximum);else if($.exclusiveMaximum===!0&&typeof $.maximum==="number")Q=Q.lt($.maximum);if(typeof $.multipleOf==="number")Q=Q.multipleOf($.multipleOf);X=Q;break}case"boolean":{X=C0.boolean();break}case"null":{X=C0.null();break}case"object":{let Q={},Y=$.properties||{},Z=new Set($.required||[]);for(let[U,G]of Object.entries(Y)){let q=SD(G,D);Q[U]=Z.has(U)?q:q.optional()}if($.propertyNames){let U=SD($.propertyNames,D),G=$.additionalProperties&&typeof $.additionalProperties==="object"?SD($.additionalProperties,D):C0.any();if(Object.keys(Q).length===0){X=C0.record(U,G);break}let q=C0.object(Q).passthrough(),W=C0.looseRecord(U,G);X=C0.intersection(q,W);break}if($.patternProperties){let U=$.patternProperties,G=Object.keys(U),q=[];for(let z of G){let H=SD(U[z],D),O=C0.string().regex(new RegExp(z));q.push(C0.looseRecord(O,H))}let W=[];if(Object.keys(Q).length>0)W.push(C0.object(Q).passthrough());if(W.push(...q),W.length===0)X=C0.object({}).passthrough();else if(W.length===1)X=W[0];else{let z=C0.intersection(W[0],W[1]);for(let H=2;H<W.length;H++)z=C0.intersection(z,W[H]);X=z}break}let F=C0.object(Q);if($.additionalProperties===!1)X=F.strict();else if(typeof $.additionalProperties==="object")X=F.catchall(SD($.additionalProperties,D));else X=F.passthrough();break}case"array":{let{prefixItems:Q,items:Y}=$;if(Q&&Array.isArray(Q)){let Z=Q.map((U)=>SD(U,D)),F=Y&&typeof Y==="object"&&!Array.isArray(Y)?SD(Y,D):void 0;if(F)X=C0.tuple(Z).rest(F);else X=C0.tuple(Z);if(typeof $.minItems==="number")X=X.check(C0.minLength($.minItems));if(typeof $.maxItems==="number")X=X.check(C0.maxLength($.maxItems))}else if(Array.isArray(Y)){let Z=Y.map((U)=>SD(U,D)),F=$.additionalItems&&typeof $.additionalItems==="object"?SD($.additionalItems,D):void 0;if(F)X=C0.tuple(Z).rest(F);else X=C0.tuple(Z);if(typeof $.minItems==="number")X=X.check(C0.minLength($.minItems));if(typeof $.maxItems==="number")X=X.check(C0.maxLength($.maxItems))}else if(Y!==void 0){let Z=SD(Y,D),F=C0.array(Z);if(typeof $.minItems==="number")F=F.min($.minItems);if(typeof $.maxItems==="number")F=F.max($.maxItems);X=F}else X=C0.array(C0.any());break}default:throw Error(`Unsupported type: ${J}`)}return X}function SD($,D){if(typeof $==="boolean")return $?C0.any():C0.never();let J=JJ0($,D),X=$.type||$.enum!==void 0||$.const!==void 0;if($.anyOf&&Array.isArray($.anyOf)){let F=$.anyOf.map((G)=>SD(G,D)),U=C0.union(F);J=X?C0.intersection(J,U):U}if($.oneOf&&Array.isArray($.oneOf)){let F=$.oneOf.map((G)=>SD(G,D)),U=C0.xor(F);J=X?C0.intersection(J,U):U}if($.allOf&&Array.isArray($.allOf))if($.allOf.length===0)J=X?J:C0.any();else{let F=X?J:SD($.allOf[0],D),U=X?0:1;for(let G=U;G<$.allOf.length;G++)F=C0.intersection(F,SD($.allOf[G],D));J=F}if($.nullable===!0&&D.version==="openapi-3.0")J=C0.nullable(J);if($.readOnly===!0)J=C0.readonly(J);if($.default!==void 0)J=J.default($.default);let Q={},Y=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let F of Y)if(F in $)Q[F]=$[F];let Z=["contentEncoding","contentMediaType","contentSchema"];for(let F of Z)if(F in $)Q[F]=$[F];for(let F of Object.keys($))if(!me0.has(F))Q[F]=$[F];if(Object.keys(Q).length>0)D.registry.add(J,Q);if($.description)J=J.describe($.description);return J}function XJ0($,D){if(typeof $==="boolean")return $?C0.any():C0.never();let J;try{J=JSON.parse(JSON.stringify($))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let X=de0(J,D?.defaultTarget),Q=J.$defs||J.definitions||{},Y={version:X,defs:Q,refs:new Map,processing:new Set,rootSchema:J,registry:D?.registry??ND};return SD(J,Y)}var C0,me0;var QJ0=a(()=>{hU();AO();cU();nU();C0={...lU,...RO,iso:hQ},me0=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])});var lC={};kD(lC,{string:()=>le0,number:()=>ne0,date:()=>re0,boolean:()=>ie0,bigint:()=>pe0});function le0($){return qj(mQ,$)}function ne0($){return Mj(cQ,$)}function ie0($){return Ij(lQ,$)}function pe0($){return Tj(nQ,$)}function re0($){return hj(sU,$)}var YJ0=a(()=>{v6();nU()});var S$={};kD(S$,{xor:()=>S70,xid:()=>e90,void:()=>A70,uuidv7:()=>n90,uuidv6:()=>l90,uuidv4:()=>c90,uuid:()=>d90,util:()=>K0,url:()=>i90,uppercase:()=>jQ,unknown:()=>tJ,union:()=>aO,undefined:()=>E70,ulid:()=>s90,uint64:()=>w70,uint32:()=>N70,tuple:()=>OC,trim:()=>vQ,treeifyError:()=>oE,transform:()=>sO,toUpperCase:()=>kQ,toLowerCase:()=>_Q,toJSONSchema:()=>EO,templateLiteral:()=>l70,symbol:()=>B70,superRefine:()=>dC,success:()=>g70,stringbool:()=>s70,stringFormat:()=>q70,string:()=>iU,strictObject:()=>C70,startsWith:()=>CQ,slugify:()=>uQ,size:()=>rJ,setErrorMap:()=>be0,set:()=>u70,safeParseAsync:()=>mT,safeParse:()=>gT,safeEncodeAsync:()=>rT,safeEncode:()=>iT,safeDecodeAsync:()=>oT,safeDecode:()=>pT,registry:()=>pH,regexes:()=>S6,regex:()=>AQ,refine:()=>mC,record:()=>VC,readonly:()=>uC,property:()=>MO,promise:()=>n70,prettifyError:()=>aE,preprocess:()=>$J0,prefault:()=>TC,positive:()=>OO,pipe:()=>SO,partialRecord:()=>v70,parseAsync:()=>bT,parse:()=>hT,overwrite:()=>x4,optional:()=>rU,object:()=>T70,number:()=>sT,nullish:()=>b70,nullable:()=>oU,null:()=>XC,normalize:()=>xQ,nonpositive:()=>KO,nonoptional:()=>CC,nonnegative:()=>NO,never:()=>oO,negative:()=>VO,nativeEnum:()=>y70,nanoid:()=>o90,nan:()=>m70,multipleOf:()=>K7,minSize:()=>H8,minLength:()=>G9,mime:()=>SQ,meta:()=>a70,maxSize:()=>N7,maxLength:()=>oJ,map:()=>k70,mac:()=>J70,lte:()=>x6,lt:()=>W8,lowercase:()=>IQ,looseRecord:()=>_70,looseObject:()=>P70,locales:()=>fU,literal:()=>f70,length:()=>aJ,lazy:()=>hC,ksuid:()=>$70,keyof:()=>j70,jwt:()=>G70,json:()=>e70,iso:()=>hQ,ipv6:()=>X70,ipv4:()=>D70,invertCodec:()=>c70,intersection:()=>zC,int64:()=>L70,int32:()=>K70,int:()=>PO,instanceof:()=>t70,includes:()=>TQ,httpUrl:()=>p90,hostname:()=>W70,hex:()=>z70,hash:()=>H70,guid:()=>m90,gte:()=>oD,gt:()=>z8,globalRegistry:()=>ND,getErrorMap:()=>ge0,function:()=>i70,fromJSONSchema:()=>XJ0,formatError:()=>jU,float64:()=>V70,float32:()=>O70,flattenError:()=>IU,file:()=>h70,exactOptional:()=>EC,enum:()=>tO,endsWith:()=>PQ,encodeAsync:()=>lT,encode:()=>dT,emoji:()=>r90,email:()=>g90,e164:()=>U70,discriminatedUnion:()=>x70,describe:()=>o70,decodeAsync:()=>nT,decode:()=>cT,date:()=>I70,custom:()=>r70,cuid2:()=>t90,cuid:()=>a90,core:()=>q9,config:()=>f1,coerce:()=>lC,codec:()=>d70,clone:()=>pD,cidrv6:()=>Y70,cidrv4:()=>Q70,check:()=>p70,catch:()=>xC,boolean:()=>eT,bigint:()=>M70,base64url:()=>F70,base64:()=>Z70,array:()=>eU,any:()=>R70,_function:()=>i70,_default:()=>IC,_ZodString:()=>xO,ZodXor:()=>GC,ZodXID:()=>hO,ZodVoid:()=>FC,ZodUnknown:()=>YC,ZodUnion:()=>DG,ZodUndefined:()=>DC,ZodUUID:()=>O8,ZodURL:()=>tU,ZodULID:()=>fO,ZodType:()=>H$,ZodTuple:()=>HC,ZodTransform:()=>wC,ZodTemplateLiteral:()=>yC,ZodSymbol:()=>$C,ZodSuccess:()=>PC,ZodStringFormat:()=>s$,ZodString:()=>mQ,ZodSet:()=>NC,ZodRecord:()=>bQ,ZodRealError:()=>K6,ZodReadonly:()=>kC,ZodPromise:()=>bC,ZodPreprocess:()=>_C,ZodPrefault:()=>jC,ZodPipe:()=>JG,ZodOptional:()=>eO,ZodObject:()=>$G,ZodNumberFormat:()=>sJ,ZodNumber:()=>cQ,ZodNullable:()=>RC,ZodNull:()=>JC,ZodNonOptional:()=>$V,ZodNever:()=>ZC,ZodNanoID:()=>kO,ZodNaN:()=>vC,ZodMap:()=>KC,ZodMAC:()=>tT,ZodLiteral:()=>MC,ZodLazy:()=>fC,ZodKSUID:()=>bO,ZodJWT:()=>pO,ZodIssueCode:()=>he0,ZodIntersection:()=>WC,ZodISOTime:()=>TO,ZodISODuration:()=>CO,ZodISODateTime:()=>IO,ZodISODate:()=>jO,ZodIPv6:()=>mO,ZodIPv4:()=>gO,ZodGUID:()=>pU,ZodFunction:()=>gC,ZodFirstPartyTypeKind:()=>cC,ZodFile:()=>LC,ZodExactOptional:()=>BC,ZodError:()=>ye0,ZodEnum:()=>gQ,ZodEmoji:()=>_O,ZodEmail:()=>vO,ZodE164:()=>iO,ZodDiscriminatedUnion:()=>qC,ZodDefault:()=>AC,ZodDate:()=>sU,ZodCustomStringFormat:()=>dQ,ZodCustom:()=>QG,ZodCodec:()=>XG,ZodCatch:()=>SC,ZodCUID2:()=>yO,ZodCUID:()=>uO,ZodCIDRv6:()=>cO,ZodCIDRv4:()=>dO,ZodBoolean:()=>lQ,ZodBigIntFormat:()=>rO,ZodBigInt:()=>nQ,ZodBase64URL:()=>nO,ZodBase64:()=>lO,ZodArray:()=>UC,ZodAny:()=>QC,TimePrecision:()=>zj,NEVER:()=>fE,$output:()=>Zj,$input:()=>Fj,$brand:()=>hE});var nC=a(()=>{v6();v6();KI();v6();dU();QJ0();Yj();cU();cU();YJ0();nU();AO();fT();aT();DJ0();f1(_U())});var ZJ0=a(()=>{nC();nC()});var FJ0,oe0,fx$,hx$,bx$,gx$;var UJ0=a(()=>{ZJ0();FJ0=S$.object({name:S$.string().min(1),version:S$.string().min(1),requested_version:S$.string().optional(),ios_checksum:S$.string().optional(),android_checksum:S$.string().optional()}),oe0=S$.enum(["new_plugin","removed_plugin","version_mismatch","requested_version_changed","ios_code_changed","android_code_changed","both_platforms_changed"]),fx$=S$.object({name:S$.string(),localVersion:S$.string().optional(),remoteVersion:S$.string().optional(),localRequestedVersion:S$.string().optional(),remoteRequestedVersion:S$.string().optional(),localIosChecksum:S$.string().optional(),remoteIosChecksum:S$.string().optional(),localAndroidChecksum:S$.string().optional(),remoteAndroidChecksum:S$.string().optional()}),hx$=S$.object({compatible:S$.boolean(),reasons:oe0.array(),message:S$.string()}),bx$=S$.object({isSecurityPolicyError:S$.boolean(),errorCode:S$.string(),message:S$.string()}),gx$=S$.record(S$.string(),S$.string()).transform(($,D)=>{if($===null||typeof $!=="object"||Array.isArray($)||Object.getPrototypeOf($)!==Object.prototype)return D.addIssue({code:"custom",message:"a plain object of locale keys to release notes"}),S$.NEVER;let J=Object.create(null);for(let[X,Q]of Object.entries($)){let Y=X.trim(),Z=Q.trim();if(!Y)return D.addIssue({code:"custom",message:"a non-empty locale key"}),S$.NEVER;if(!Z)return D.addIssue({code:"custom",message:"a non-empty release note"}),S$.NEVER;if(Object.prototype.hasOwnProperty.call(J,Y))return D.addIssue({code:"custom",message:`a unique locale key (duplicate after trim: "${Y}")`}),S$.NEVER;J[Y]=Z}return J})});function GJ0($){return Object.values(YG).includes($)}function iQ($){let D="",J="";if(typeof $==="string")D=$,J=$;else if($&&typeof $==="object"){let X=$;D=String(X.error||X.code||X.errorCode||""),J=String(X.message||X.error||"")}if(GJ0(D))return{isSecurityPolicyError:!0,errorCode:D,message:DV[D]||J};for(let[X,Q]of Object.entries(DV))if(J.includes(X))return{isSecurityPolicyError:!0,errorCode:X,message:Q};return{isSecurityPolicyError:!1,errorCode:D,message:J}}function ae0($,D){return DV[$]||D||$}function iC($){let D=iQ($);if(D.isSecurityPolicyError)return`
|
|
362
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let Z of $.seen.entries()){let F=Z[1];if(D===Z[0]){Y(Z);continue}if($.external){let G=$.external.registry.get(Z[0])?.id;if(D!==Z[0]&&G){Y(Z);continue}}if($.metadataRegistry.get(Z[0])?.id){Y(Z);continue}if(F.cycle){Y(Z);continue}if(F.count>1){if($.reused==="ref"){Y(Z);continue}}}}function w7($,D){let J=$.seen.get(D);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");let X=(F)=>{let U=$.seen.get(F);if(U.ref===null)return;let G=U.def??U.schema,q={...G},W=U.ref;if(U.ref=null,W){X(W);let H=$.seen.get(W),O=H.schema;if(O.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))G.allOf=G.allOf??[],G.allOf.push(O);else Object.assign(G,O);if(Object.assign(G,q),F._zod.parent===W)for(let K in G){if(K==="$ref"||K==="allOf")continue;if(!(K in q))delete G[K]}if(O.$ref&&H.def)for(let K in G){if(K==="$ref"||K==="allOf")continue;if(K in H.def&&JSON.stringify(G[K])===JSON.stringify(H.def[K]))delete G[K]}}let z=F._zod.parent;if(z&&z!==W){X(z);let H=$.seen.get(z);if(H?.schema.$ref){if(G.$ref=H.schema.$ref,H.def)for(let O in G){if(O==="$ref"||O==="allOf")continue;if(O in H.def&&JSON.stringify(G[O])===JSON.stringify(H.def[O]))delete G[O]}}}$.override({zodSchema:F,jsonSchema:G,path:U.path??[]})};for(let F of[...$.seen.entries()].reverse())X(F[0]);let Q={};if($.target==="draft-2020-12")Q.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")Q.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")Q.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let F=$.external.registry.get(D)?.id;if(!F)throw Error("Schema is missing an `id` property");Q.$id=$.external.uri(F)}Object.assign(Q,J.def??J.schema);let Y=$.metadataRegistry.get(D)?.id;if(Y!==void 0&&Q.id===Y)delete Q.id;let Z=$.external?.defs??{};for(let F of $.seen.entries()){let U=F[1];if(U.def&&U.defId){if(U.def.id===U.defId)delete U.def.id;Z[U.defId]=U.def}}if($.external);else if(Object.keys(Z).length>0)if($.target==="draft-2020-12")Q.$defs=Z;else Q.definitions=Z;try{let F=JSON.parse(JSON.stringify(Q));return Object.defineProperty(F,"~standard",{value:{...D["~standard"],jsonSchema:{input:fQ(D,"input",$.processors),output:fQ(D,"output",$.processors)}},enumerable:!1,writable:!1}),F}catch(F){throw Error("Error converting schema to JSON.")}}function aD($,D){let J=D??{seen:new Set};if(J.seen.has($))return!1;J.seen.add($);let X=$._zod.def;if(X.type==="transform")return!0;if(X.type==="array")return aD(X.element,J);if(X.type==="set")return aD(X.valueType,J);if(X.type==="lazy")return aD(X.getter(),J);if(X.type==="promise"||X.type==="optional"||X.type==="nonoptional"||X.type==="nullable"||X.type==="readonly"||X.type==="default"||X.type==="prefault")return aD(X.innerType,J);if(X.type==="intersection")return aD(X.left,J)||aD(X.right,J);if(X.type==="record"||X.type==="map")return aD(X.keyType,J)||aD(X.valueType,J);if(X.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return aD(X.in,J)||aD(X.out,J)}if(X.type==="object"){for(let Q in X.shape)if(aD(X.shape[Q],J))return!0;return!1}if(X.type==="union"){for(let Q of X.options)if(aD(Q,J))return!0;return!1}if(X.type==="tuple"){for(let Q of X.items)if(aD(Q,J))return!0;if(X.rest&&aD(X.rest,J))return!0;return!1}return!1}var rj=($,D={})=>(J)=>{let X=M7({...J,processors:D});return m$($,X),L7(X,$),w7(X,$)},fQ=($,D,J={})=>(X)=>{let{libraryOptions:Q,target:Y}=X??{},Z=M7({...Q??{},target:Y,io:D,processors:J});return m$($,Z),L7(Z,$),w7(Z,$)};var mU=a(()=>{hU()});function EO($,D){if("_idmap"in $){let X=$,Q=M7({...D,processors:LO}),Y={};for(let U of X._idmap.entries()){let[G,q]=U;m$(q,Q)}let Z={},F={registry:X,uri:D?.uri,defs:Y};Q.external=F;for(let U of X._idmap.entries()){let[G,q]=U;L7(Q,q),Z[G]=w7(Q,q)}if(Object.keys(Y).length>0){let U=Q.target==="draft-2020-12"?"$defs":"definitions";Z.__shared={[U]:Y}}return{schemas:Z}}let J=M7({...D,processors:LO});return m$($,J),L7(J,$),w7(J,$)}var ke0,oj=($,D,J,X)=>{let Q=J;Q.type="string";let{minimum:Y,maximum:Z,format:F,patterns:U,contentEncoding:G}=$._zod.bag;if(typeof Y==="number")Q.minLength=Y;if(typeof Z==="number")Q.maxLength=Z;if(F){if(Q.format=ke0[F]??F,Q.format==="")delete Q.format;if(F==="time")delete Q.format}if(G)Q.contentEncoding=G;if(U&&U.size>0){let q=[...U];if(q.length===1)Q.pattern=q[0].source;else if(q.length>1)Q.allOf=[...q.map((W)=>({...D.target==="draft-07"||D.target==="draft-04"||D.target==="openapi-3.0"?{type:"string"}:{},pattern:W.source}))]}},aj=($,D,J,X)=>{let Q=J,{minimum:Y,maximum:Z,format:F,multipleOf:U,exclusiveMaximum:G,exclusiveMinimum:q}=$._zod.bag;if(typeof F==="string"&&F.includes("int"))Q.type="integer";else Q.type="number";let W=typeof q==="number"&&q>=(Y??Number.NEGATIVE_INFINITY),z=typeof G==="number"&&G<=(Z??Number.POSITIVE_INFINITY),H=D.target==="draft-04"||D.target==="openapi-3.0";if(W)if(H)Q.minimum=q,Q.exclusiveMinimum=!0;else Q.exclusiveMinimum=q;else if(typeof Y==="number")Q.minimum=Y;if(z)if(H)Q.maximum=G,Q.exclusiveMaximum=!0;else Q.exclusiveMaximum=G;else if(typeof Z==="number")Q.maximum=Z;if(typeof U==="number")Q.multipleOf=U},tj=($,D,J,X)=>{J.type="boolean"},sj=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},ej=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},$T=($,D,J,X)=>{if(D.target==="openapi-3.0")J.type="string",J.nullable=!0,J.enum=[null];else J.type="null"},DT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},JT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},XT=($,D,J,X)=>{J.not={}},QT=($,D,J,X)=>{},YT=($,D,J,X)=>{},ZT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},FT=($,D,J,X)=>{let Q=$._zod.def,Y=LU(Q.entries);if(Y.every((Z)=>typeof Z==="number"))J.type="number";if(Y.every((Z)=>typeof Z==="string"))J.type="string";J.enum=Y},UT=($,D,J,X)=>{let Q=$._zod.def,Y=[];for(let Z of Q.values)if(Z===void 0){if(D.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Z==="bigint")if(D.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else Y.push(Number(Z));else Y.push(Z);if(Y.length===0);else if(Y.length===1){let Z=Y[0];if(J.type=Z===null?"null":typeof Z,D.target==="draft-04"||D.target==="openapi-3.0")J.enum=[Z];else J.const=Z}else{if(Y.every((Z)=>typeof Z==="number"))J.type="number";if(Y.every((Z)=>typeof Z==="string"))J.type="string";if(Y.every((Z)=>typeof Z==="boolean"))J.type="boolean";if(Y.every((Z)=>Z===null))J.type="null";J.enum=Y}},GT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},qT=($,D,J,X)=>{let Q=J,Y=$._zod.pattern;if(!Y)throw Error("Pattern not found in template literal");Q.type="string",Q.pattern=Y.source},WT=($,D,J,X)=>{let Q=J,Y={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Z,maximum:F,mime:U}=$._zod.bag;if(Z!==void 0)Y.minLength=Z;if(F!==void 0)Y.maxLength=F;if(U)if(U.length===1)Y.contentMediaType=U[0],Object.assign(Q,Y);else Object.assign(Q,Y),Q.anyOf=U.map((G)=>({contentMediaType:G}));else Object.assign(Q,Y)},zT=($,D,J,X)=>{J.type="boolean"},HT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},OT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},VT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},KT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},NT=($,D,J,X)=>{if(D.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},MT=($,D,J,X)=>{let Q=J,Y=$._zod.def,{minimum:Z,maximum:F}=$._zod.bag;if(typeof Z==="number")Q.minItems=Z;if(typeof F==="number")Q.maxItems=F;Q.type="array",Q.items=m$(Y.element,D,{...X,path:[...X.path,"items"]})},LT=($,D,J,X)=>{let Q=J,Y=$._zod.def;Q.type="object",Q.properties={};let Z=Y.shape;for(let G in Z)Q.properties[G]=m$(Z[G],D,{...X,path:[...X.path,"properties",G]});let F=new Set(Object.keys(Z)),U=new Set([...F].filter((G)=>{let q=Y.shape[G]._zod;if(D.io==="input")return q.optin===void 0;else return q.optout===void 0}));if(U.size>0)Q.required=Array.from(U);if(Y.catchall?._zod.def.type==="never")Q.additionalProperties=!1;else if(!Y.catchall){if(D.io==="output")Q.additionalProperties=!1}else if(Y.catchall)Q.additionalProperties=m$(Y.catchall,D,{...X,path:[...X.path,"additionalProperties"]})},wO=($,D,J,X)=>{let Q=$._zod.def,Y=Q.inclusive===!1,Z=Q.options.map((F,U)=>m$(F,D,{...X,path:[...X.path,Y?"oneOf":"anyOf",U]}));if(Y)J.oneOf=Z;else J.anyOf=Z},wT=($,D,J,X)=>{let Q=$._zod.def,Y=m$(Q.left,D,{...X,path:[...X.path,"allOf",0]}),Z=m$(Q.right,D,{...X,path:[...X.path,"allOf",1]}),F=(G)=>("allOf"in G)&&Object.keys(G).length===1,U=[...F(Y)?Y.allOf:[Y],...F(Z)?Z.allOf:[Z]];J.allOf=U},BT=($,D,J,X)=>{let Q=J,Y=$._zod.def;Q.type="array";let Z=D.target==="draft-2020-12"?"prefixItems":"items",F=D.target==="draft-2020-12"?"items":D.target==="openapi-3.0"?"items":"additionalItems",U=Y.items.map((z,H)=>m$(z,D,{...X,path:[...X.path,Z,H]})),G=Y.rest?m$(Y.rest,D,{...X,path:[...X.path,F,...D.target==="openapi-3.0"?[Y.items.length]:[]]}):null;if(D.target==="draft-2020-12"){if(Q.prefixItems=U,G)Q.items=G}else if(D.target==="openapi-3.0"){if(Q.items={anyOf:U},G)Q.items.anyOf.push(G);if(Q.minItems=U.length,!G)Q.maxItems=U.length}else if(Q.items=U,G)Q.additionalItems=G;let{minimum:q,maximum:W}=$._zod.bag;if(typeof q==="number")Q.minItems=q;if(typeof W==="number")Q.maxItems=W},ET=($,D,J,X)=>{let Q=J,Y=$._zod.def;Q.type="object";let Z=Y.keyType,U=Z._zod.bag?.patterns;if(Y.mode==="loose"&&U&&U.size>0){let q=m$(Y.valueType,D,{...X,path:[...X.path,"patternProperties","*"]});Q.patternProperties={};for(let W of U)Q.patternProperties[W.source]=q}else{if(D.target==="draft-07"||D.target==="draft-2020-12")Q.propertyNames=m$(Y.keyType,D,{...X,path:[...X.path,"propertyNames"]});Q.additionalProperties=m$(Y.valueType,D,{...X,path:[...X.path,"additionalProperties"]})}let G=Z._zod.values;if(G){let q=[...G].filter((W)=>typeof W==="string"||typeof W==="number");if(q.length>0)Q.required=q}},RT=($,D,J,X)=>{let Q=$._zod.def,Y=m$(Q.innerType,D,X),Z=D.seen.get($);if(D.target==="openapi-3.0")Z.ref=Q.innerType,J.nullable=!0;else J.anyOf=[Y,{type:"null"}]},AT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType},IT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType,J.default=JSON.parse(JSON.stringify(Q.defaultValue))},jT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);if(Y.ref=Q.innerType,D.io==="input")J._prefault=JSON.parse(JSON.stringify(Q.defaultValue))},TT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType;let Z;try{Z=Q.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}J.default=Z},CT=($,D,J,X)=>{let Q=$._zod.def,Y=Q.in._zod.traits.has("$ZodTransform"),Z=D.io==="input"?Y?Q.out:Q.in:Q.out;m$(Z,D,X);let F=D.seen.get($);F.ref=Z},PT=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType,J.readOnly=!0},ST=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType},BO=($,D,J,X)=>{let Q=$._zod.def;m$(Q.innerType,D,X);let Y=D.seen.get($);Y.ref=Q.innerType},xT=($,D,J,X)=>{let Q=$._zod.innerType;m$(Q,D,X);let Y=D.seen.get($);Y.ref=Q},LO;var dU=a(()=>{mU();h0();ke0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LO={string:oj,number:aj,boolean:tj,bigint:sj,symbol:ej,null:$T,undefined:DT,void:JT,never:XT,any:QT,unknown:YT,date:ZT,enum:FT,literal:UT,nan:GT,template_literal:qT,file:WT,success:zT,custom:HT,function:OT,transform:VT,map:KT,set:NT,array:MT,object:LT,union:wO,intersection:wT,tuple:BT,record:ET,nullable:RT,nonoptional:AT,default:IT,prefault:jT,catch:TT,pipe:CT,readonly:PT,promise:ST,optional:BO,lazy:xT}});class vT{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter($){this.ctx.counter=$}get seen(){return this.ctx.seen}constructor($){let D=$?.target??"draft-2020-12";if(D==="draft-4")D="draft-04";if(D==="draft-7")D="draft-07";this.ctx=M7({processors:LO,target:D,...$?.metadata&&{metadata:$.metadata},...$?.unrepresentable&&{unrepresentable:$.unrepresentable},...$?.override&&{override:$.override},...$?.io&&{io:$.io}})}process($,D={path:[],schemaPath:[]}){return m$($,this.ctx,D)}emit($,D){if(D){if(D.cycles)this.ctx.cycles=D.cycles;if(D.reused)this.ctx.reused=D.reused;if(D.external)this.ctx.external=D.external}L7(this.ctx,$);let J=w7(this.ctx,$),{"~standard":X,...Q}=J;return Q}}var u90=a(()=>{dU();mU()});var y90={};var f90=()=>{};var q9={};kD(q9,{version:()=>rR,util:()=>K0,treeifyError:()=>oE,toJSONSchema:()=>EO,toDotPath:()=>F80,safeParseAsync:()=>eE,safeParse:()=>sE,safeEncodeAsync:()=>ht0,safeEncode:()=>yt0,safeDecodeAsync:()=>bt0,safeDecode:()=>ft0,registry:()=>pH,regexes:()=>S6,process:()=>m$,prettifyError:()=>aE,parseAsync:()=>RH,parse:()=>EH,meta:()=>ij,locales:()=>fU,isValidJWT:()=>P80,isValidBase64URL:()=>C80,isValidBase64:()=>NA,initializeContext:()=>M7,globalRegistry:()=>ND,globalConfig:()=>dJ,formatError:()=>jU,flattenError:()=>IU,finalize:()=>w7,extractDefs:()=>L7,encodeAsync:()=>kt0,encode:()=>vt0,describe:()=>nj,decodeAsync:()=>ut0,decode:()=>_t0,createToJSONSchemaMethod:()=>rj,createStandardJSONSchemaMethod:()=>fQ,config:()=>f1,clone:()=>pD,_xor:()=>ze0,_xid:()=>QO,_void:()=>yj,_uuidv7:()=>sH,_uuidv6:()=>tH,_uuidv4:()=>aH,_uuid:()=>oH,_url:()=>gU,_uppercase:()=>jQ,_unknown:()=>kj,_union:()=>We0,_undefined:()=>xj,_ulid:()=>XO,_uint64:()=>Pj,_uint32:()=>Rj,_tuple:()=>Ve0,_trim:()=>vQ,_transform:()=>Ee0,_toUpperCase:()=>kQ,_toLowerCase:()=>_Q,_templateLiteral:()=>xe0,_symbol:()=>Sj,_superRefine:()=>lj,_success:()=>Te0,_stringbool:()=>pj,_stringFormat:()=>yQ,_string:()=>Gj,_startsWith:()=>CQ,_slugify:()=>uQ,_size:()=>rJ,_set:()=>Me0,_safeParseAsync:()=>BQ,_safeParse:()=>wQ,_safeEncodeAsync:()=>SH,_safeEncode:()=>CH,_safeDecodeAsync:()=>xH,_safeDecode:()=>PH,_regex:()=>AQ,_refine:()=>cj,_record:()=>Ke0,_readonly:()=>Se0,_property:()=>MO,_promise:()=>_e0,_positive:()=>OO,_pipe:()=>Pe0,_parseAsync:()=>LQ,_parse:()=>MQ,_overwrite:()=>x4,_optional:()=>Re0,_number:()=>Nj,_nullable:()=>Ae0,_null:()=>vj,_normalize:()=>xQ,_nonpositive:()=>KO,_nonoptional:()=>je0,_nonnegative:()=>NO,_never:()=>uj,_negative:()=>VO,_nativeEnum:()=>we0,_nanoid:()=>$O,_nan:()=>bj,_multipleOf:()=>K7,_minSize:()=>H8,_minLength:()=>G9,_min:()=>oD,_mime:()=>SQ,_maxSize:()=>N7,_maxLength:()=>oJ,_max:()=>x6,_map:()=>Ne0,_mac:()=>Wj,_lte:()=>x6,_lt:()=>W8,_lowercase:()=>IQ,_literal:()=>Be0,_length:()=>aJ,_lazy:()=>ve0,_ksuid:()=>YO,_jwt:()=>HO,_isoTime:()=>Vj,_isoDuration:()=>Kj,_isoDateTime:()=>Hj,_isoDate:()=>Oj,_ipv6:()=>FO,_ipv4:()=>ZO,_intersection:()=>Oe0,_int64:()=>Cj,_int32:()=>Ej,_int:()=>Lj,_includes:()=>TQ,_guid:()=>bU,_gte:()=>oD,_gt:()=>z8,_float64:()=>Bj,_float32:()=>wj,_file:()=>mj,_enum:()=>Le0,_endsWith:()=>PQ,_encodeAsync:()=>jH,_encode:()=>AH,_emoji:()=>eH,_email:()=>rH,_e164:()=>zO,_discriminatedUnion:()=>He0,_default:()=>Ie0,_decodeAsync:()=>TH,_decode:()=>IH,_date:()=>fj,_custom:()=>dj,_cuid2:()=>JO,_cuid:()=>DO,_coercedString:()=>qj,_coercedNumber:()=>Mj,_coercedDate:()=>hj,_coercedBoolean:()=>Ij,_coercedBigint:()=>Tj,_cidrv6:()=>GO,_cidrv4:()=>UO,_check:()=>_90,_catch:()=>Ce0,_boolean:()=>Aj,_bigint:()=>jj,_base64url:()=>WO,_base64:()=>qO,_array:()=>gj,_any:()=>_j,TimePrecision:()=>zj,NEVER:()=>fE,JSONSchemaGenerator:()=>vT,JSONSchema:()=>y90,Doc:()=>fH,$output:()=>Zj,$input:()=>Fj,$constructor:()=>t,$brand:()=>hE,$ZodXor:()=>uA,$ZodXID:()=>ZA,$ZodVoid:()=>xA,$ZodUnknown:()=>PA,$ZodUnion:()=>xU,$ZodUndefined:()=>jA,$ZodUUID:()=>sR,$ZodURL:()=>$A,$ZodULID:()=>YA,$ZodType:()=>Y$,$ZodTuple:()=>lH,$ZodTransform:()=>lA,$ZodTemplateLiteral:()=>DI,$ZodSymbol:()=>IA,$ZodSuccess:()=>aA,$ZodStringFormat:()=>t$,$ZodString:()=>pJ,$ZodSet:()=>gA,$ZodRegistry:()=>Uj,$ZodRecord:()=>hA,$ZodRealError:()=>V6,$ZodReadonly:()=>$I,$ZodPromise:()=>XI,$ZodPreprocess:()=>eA,$ZodPrefault:()=>rA,$ZodPipe:()=>iH,$ZodOptional:()=>nH,$ZodObjectJIT:()=>kA,$ZodObject:()=>v80,$ZodNumberFormat:()=>RA,$ZodNumber:()=>dH,$ZodNullable:()=>iA,$ZodNull:()=>TA,$ZodNonOptional:()=>oA,$ZodNever:()=>SA,$ZodNanoID:()=>JA,$ZodNaN:()=>sA,$ZodMap:()=>bA,$ZodMAC:()=>OA,$ZodLiteral:()=>dA,$ZodLazy:()=>QI,$ZodKSUID:()=>FA,$ZodJWT:()=>BA,$ZodIntersection:()=>fA,$ZodISOTime:()=>qA,$ZodISODuration:()=>WA,$ZodISODateTime:()=>UA,$ZodISODate:()=>GA,$ZodIPv6:()=>HA,$ZodIPv4:()=>zA,$ZodGUID:()=>tR,$ZodFunction:()=>JI,$ZodFile:()=>cA,$ZodExactOptional:()=>nA,$ZodError:()=>AU,$ZodEnum:()=>mA,$ZodEncodeError:()=>cJ,$ZodEmoji:()=>DA,$ZodEmail:()=>eR,$ZodE164:()=>wA,$ZodDiscriminatedUnion:()=>yA,$ZodDefault:()=>pA,$ZodDate:()=>vA,$ZodCustomStringFormat:()=>EA,$ZodCustom:()=>YI,$ZodCodec:()=>vU,$ZodCheckUpperCase:()=>mR,$ZodCheckStringFormat:()=>EQ,$ZodCheckStartsWith:()=>cR,$ZodCheckSizeEquals:()=>uR,$ZodCheckRegex:()=>bR,$ZodCheckProperty:()=>nR,$ZodCheckOverwrite:()=>pR,$ZodCheckNumberFormat:()=>xR,$ZodCheckMultipleOf:()=>SR,$ZodCheckMinSize:()=>kR,$ZodCheckMinLength:()=>fR,$ZodCheckMimeType:()=>iR,$ZodCheckMaxSize:()=>_R,$ZodCheckMaxLength:()=>yR,$ZodCheckLowerCase:()=>gR,$ZodCheckLessThan:()=>kH,$ZodCheckLengthEquals:()=>hR,$ZodCheckIncludes:()=>dR,$ZodCheckGreaterThan:()=>uH,$ZodCheckEndsWith:()=>lR,$ZodCheckBigIntFormat:()=>vR,$ZodCheck:()=>D1,$ZodCatch:()=>tA,$ZodCUID2:()=>QA,$ZodCUID:()=>XA,$ZodCIDRv6:()=>KA,$ZodCIDRv4:()=>VA,$ZodBoolean:()=>SU,$ZodBigIntFormat:()=>AA,$ZodBigInt:()=>cH,$ZodBase64URL:()=>LA,$ZodBase64:()=>MA,$ZodAsyncError:()=>q8,$ZodArray:()=>_A,$ZodAny:()=>CA});var v6=a(()=>{h0();_H();Yj();dU();u90();f90();lJ();$R();tE();ZI();yH();oR();hU();k90();mU()});var RO={};kD(RO,{uppercase:()=>jQ,trim:()=>vQ,toUpperCase:()=>kQ,toLowerCase:()=>_Q,startsWith:()=>CQ,slugify:()=>uQ,size:()=>rJ,regex:()=>AQ,property:()=>MO,positive:()=>OO,overwrite:()=>x4,normalize:()=>xQ,nonpositive:()=>KO,nonnegative:()=>NO,negative:()=>VO,multipleOf:()=>K7,minSize:()=>H8,minLength:()=>G9,mime:()=>SQ,maxSize:()=>N7,maxLength:()=>oJ,lte:()=>x6,lt:()=>W8,lowercase:()=>IQ,length:()=>aJ,includes:()=>TQ,gte:()=>oD,gt:()=>z8,endsWith:()=>PQ});var AO=a(()=>{v6()});var hQ={};kD(hQ,{time:()=>uT,duration:()=>yT,datetime:()=>_T,date:()=>kT,ZodISOTime:()=>TO,ZodISODuration:()=>CO,ZodISODateTime:()=>IO,ZodISODate:()=>jO});function _T($){return Hj(IO,$)}function kT($){return Oj(jO,$)}function uT($){return Vj(TO,$)}function yT($){return Kj(CO,$)}var IO,jO,TO,CO;var cU=a(()=>{v6();nU();IO=t("ZodISODateTime",($,D)=>{UA.init($,D),s$.init($,D)});jO=t("ZodISODate",($,D)=>{GA.init($,D),s$.init($,D)});TO=t("ZodISOTime",($,D)=>{qA.init($,D),s$.init($,D)});CO=t("ZodISODuration",($,D)=>{WA.init($,D),s$.init($,D)})});var h90=($,D)=>{AU.init($,D),$.name="ZodError",Object.defineProperties($,{format:{value:(J)=>jU($,J)},flatten:{value:(J)=>IU($,J)},addIssue:{value:(J)=>{$.issues.push(J),$.message=JSON.stringify($.issues,VQ,2)}},addIssues:{value:(J)=>{$.issues.push(...J),$.message=JSON.stringify($.issues,VQ,2)}},isEmpty:{get(){return $.issues.length===0}}})},ye0,K6;var fT=a(()=>{v6();v6();h0();ye0=t("ZodError",h90),K6=t("ZodError",h90,{Parent:Error})});var hT,bT,gT,mT,dT,cT,lT,nT,iT,pT,rT,oT;var aT=a(()=>{v6();fT();hT=MQ(K6),bT=LQ(K6),gT=wQ(K6),mT=BQ(K6),dT=AH(K6),cT=IH(K6),lT=jH(K6),nT=TH(K6),iT=CH(K6),pT=PH(K6),rT=SH(K6),oT=xH(K6)});var lU={};kD(lU,{xor:()=>S70,xid:()=>e90,void:()=>A70,uuidv7:()=>n90,uuidv6:()=>l90,uuidv4:()=>c90,uuid:()=>d90,url:()=>i90,unknown:()=>tJ,union:()=>aO,undefined:()=>E70,ulid:()=>s90,uint64:()=>w70,uint32:()=>N70,tuple:()=>OC,transform:()=>sO,templateLiteral:()=>l70,symbol:()=>B70,superRefine:()=>dC,success:()=>g70,stringbool:()=>s70,stringFormat:()=>q70,string:()=>iU,strictObject:()=>C70,set:()=>u70,refine:()=>mC,record:()=>VC,readonly:()=>uC,promise:()=>n70,preprocess:()=>$J0,prefault:()=>TC,pipe:()=>SO,partialRecord:()=>v70,optional:()=>rU,object:()=>T70,number:()=>sT,nullish:()=>b70,nullable:()=>oU,null:()=>XC,nonoptional:()=>CC,never:()=>oO,nativeEnum:()=>y70,nanoid:()=>o90,nan:()=>m70,meta:()=>a70,map:()=>k70,mac:()=>J70,looseRecord:()=>_70,looseObject:()=>P70,literal:()=>f70,lazy:()=>hC,ksuid:()=>$70,keyof:()=>j70,jwt:()=>G70,json:()=>e70,ipv6:()=>X70,ipv4:()=>D70,invertCodec:()=>c70,intersection:()=>zC,int64:()=>L70,int32:()=>K70,int:()=>PO,instanceof:()=>t70,httpUrl:()=>p90,hostname:()=>W70,hex:()=>z70,hash:()=>H70,guid:()=>m90,function:()=>i70,float64:()=>V70,float32:()=>O70,file:()=>h70,exactOptional:()=>EC,enum:()=>tO,emoji:()=>r90,email:()=>g90,e164:()=>U70,discriminatedUnion:()=>x70,describe:()=>o70,date:()=>I70,custom:()=>r70,cuid2:()=>t90,cuid:()=>a90,codec:()=>d70,cidrv6:()=>Y70,cidrv4:()=>Q70,check:()=>p70,catch:()=>xC,boolean:()=>eT,bigint:()=>M70,base64url:()=>F70,base64:()=>Z70,array:()=>eU,any:()=>R70,_function:()=>i70,_default:()=>IC,_ZodString:()=>xO,ZodXor:()=>GC,ZodXID:()=>hO,ZodVoid:()=>FC,ZodUnknown:()=>YC,ZodUnion:()=>DG,ZodUndefined:()=>DC,ZodUUID:()=>O8,ZodURL:()=>tU,ZodULID:()=>fO,ZodType:()=>H$,ZodTuple:()=>HC,ZodTransform:()=>wC,ZodTemplateLiteral:()=>yC,ZodSymbol:()=>$C,ZodSuccess:()=>PC,ZodStringFormat:()=>s$,ZodString:()=>mQ,ZodSet:()=>NC,ZodRecord:()=>bQ,ZodReadonly:()=>kC,ZodPromise:()=>bC,ZodPreprocess:()=>_C,ZodPrefault:()=>jC,ZodPipe:()=>JG,ZodOptional:()=>eO,ZodObject:()=>$G,ZodNumberFormat:()=>sJ,ZodNumber:()=>cQ,ZodNullable:()=>RC,ZodNull:()=>JC,ZodNonOptional:()=>$V,ZodNever:()=>ZC,ZodNanoID:()=>kO,ZodNaN:()=>vC,ZodMap:()=>KC,ZodMAC:()=>tT,ZodLiteral:()=>MC,ZodLazy:()=>fC,ZodKSUID:()=>bO,ZodJWT:()=>pO,ZodIntersection:()=>WC,ZodIPv6:()=>mO,ZodIPv4:()=>gO,ZodGUID:()=>pU,ZodFunction:()=>gC,ZodFile:()=>LC,ZodExactOptional:()=>BC,ZodEnum:()=>gQ,ZodEmoji:()=>_O,ZodEmail:()=>vO,ZodE164:()=>iO,ZodDiscriminatedUnion:()=>qC,ZodDefault:()=>AC,ZodDate:()=>sU,ZodCustomStringFormat:()=>dQ,ZodCustom:()=>QG,ZodCodec:()=>XG,ZodCatch:()=>SC,ZodCUID2:()=>yO,ZodCUID:()=>uO,ZodCIDRv6:()=>cO,ZodCIDRv4:()=>dO,ZodBoolean:()=>lQ,ZodBigIntFormat:()=>rO,ZodBigInt:()=>nQ,ZodBase64URL:()=>nO,ZodBase64:()=>lO,ZodArray:()=>UC,ZodAny:()=>QC});function aU($,D,J){let X=Object.getPrototypeOf($),Q=b90.get(X);if(!Q)Q=new Set,b90.set(X,Q);if(Q.has(D))return;Q.add(D);for(let Y in J){let Z=J[Y];Object.defineProperty(X,Y,{configurable:!0,enumerable:!1,get(){let F=Z.bind(this);return Object.defineProperty(this,Y,{configurable:!0,writable:!0,enumerable:!0,value:F}),F},set(F){Object.defineProperty(this,Y,{configurable:!0,writable:!0,enumerable:!0,value:F})}})}}function iU($){return Gj(mQ,$)}function g90($){return rH(vO,$)}function m90($){return bU(pU,$)}function d90($){return oH(O8,$)}function c90($){return aH(O8,$)}function l90($){return tH(O8,$)}function n90($){return sH(O8,$)}function i90($){return gU(tU,$)}function p90($){return gU(tU,{protocol:S6.httpProtocol,hostname:S6.domain,...K0.normalizeParams($)})}function r90($){return eH(_O,$)}function o90($){return $O(kO,$)}function a90($){return DO(uO,$)}function t90($){return JO(yO,$)}function s90($){return XO(fO,$)}function e90($){return QO(hO,$)}function $70($){return YO(bO,$)}function D70($){return ZO(gO,$)}function J70($){return Wj(tT,$)}function X70($){return FO(mO,$)}function Q70($){return UO(dO,$)}function Y70($){return GO(cO,$)}function Z70($){return qO(lO,$)}function F70($){return WO(nO,$)}function U70($){return zO(iO,$)}function G70($){return HO(pO,$)}function q70($,D,J={}){return yQ(dQ,$,D,J)}function W70($){return yQ(dQ,"hostname",S6.hostname,$)}function z70($){return yQ(dQ,"hex",S6.hex,$)}function H70($,D){let J=D?.enc??"hex",X=`${$}_${J}`,Q=S6[X];if(!Q)throw Error(`Unrecognized hash format: ${X}`);return yQ(dQ,X,Q,D)}function sT($){return Nj(cQ,$)}function PO($){return Lj(sJ,$)}function O70($){return wj(sJ,$)}function V70($){return Bj(sJ,$)}function K70($){return Ej(sJ,$)}function N70($){return Rj(sJ,$)}function eT($){return Aj(lQ,$)}function M70($){return jj(nQ,$)}function L70($){return Cj(rO,$)}function w70($){return Pj(rO,$)}function B70($){return Sj($C,$)}function E70($){return xj(DC,$)}function XC($){return vj(JC,$)}function R70(){return _j(QC)}function tJ(){return kj(YC)}function oO($){return uj(ZC,$)}function A70($){return yj(FC,$)}function I70($){return fj(sU,$)}function eU($,D){return gj(UC,$,D)}function j70($){let D=$._zod.def.shape;return tO(Object.keys(D))}function T70($,D){let J={type:"object",shape:$??{},...K0.normalizeParams(D)};return new $G(J)}function C70($,D){return new $G({type:"object",shape:$,catchall:oO(),...K0.normalizeParams(D)})}function P70($,D){return new $G({type:"object",shape:$,catchall:tJ(),...K0.normalizeParams(D)})}function aO($,D){return new DG({type:"union",options:$,...K0.normalizeParams(D)})}function S70($,D){return new GC({type:"union",options:$,inclusive:!1,...K0.normalizeParams(D)})}function x70($,D,J){return new qC({type:"union",options:D,discriminator:$,...K0.normalizeParams(J)})}function zC($,D){return new WC({type:"intersection",left:$,right:D})}function OC($,D,J){let X=D instanceof Y$,Q=X?J:D;return new HC({type:"tuple",items:$,rest:X?D:null,...K0.normalizeParams(Q)})}function VC($,D,J){if(!D||!D._zod)return new bQ({type:"record",keyType:iU(),valueType:$,...K0.normalizeParams(D)});return new bQ({type:"record",keyType:$,valueType:D,...K0.normalizeParams(J)})}function v70($,D,J){let X=pD($);return X._zod.values=void 0,new bQ({type:"record",keyType:X,valueType:D,...K0.normalizeParams(J)})}function _70($,D,J){return new bQ({type:"record",keyType:$,valueType:D,mode:"loose",...K0.normalizeParams(J)})}function k70($,D,J){return new KC({type:"map",keyType:$,valueType:D,...K0.normalizeParams(J)})}function u70($,D){return new NC({type:"set",valueType:$,...K0.normalizeParams(D)})}function tO($,D){let J=Array.isArray($)?Object.fromEntries($.map((X)=>[X,X])):$;return new gQ({type:"enum",entries:J,...K0.normalizeParams(D)})}function y70($,D){return new gQ({type:"enum",entries:$,...K0.normalizeParams(D)})}function f70($,D){return new MC({type:"literal",values:Array.isArray($)?$:[$],...K0.normalizeParams(D)})}function h70($){return mj(LC,$)}function sO($){return new wC({type:"transform",transform:$})}function rU($){return new eO({type:"optional",innerType:$})}function EC($){return new BC({type:"optional",innerType:$})}function oU($){return new RC({type:"nullable",innerType:$})}function b70($){return rU(oU($))}function IC($,D){return new AC({type:"default",innerType:$,get defaultValue(){return typeof D==="function"?D():K0.shallowClone(D)}})}function TC($,D){return new jC({type:"prefault",innerType:$,get defaultValue(){return typeof D==="function"?D():K0.shallowClone(D)}})}function CC($,D){return new $V({type:"nonoptional",innerType:$,...K0.normalizeParams(D)})}function g70($){return new PC({type:"success",innerType:$})}function xC($,D){return new SC({type:"catch",innerType:$,catchValue:typeof D==="function"?D:()=>D})}function m70($){return bj(vC,$)}function SO($,D){return new JG({type:"pipe",in:$,out:D})}function d70($,D,J){return new XG({type:"pipe",in:$,out:D,transform:J.decode,reverseTransform:J.encode})}function c70($){let D=$._zod.def;return new XG({type:"pipe",in:D.out,out:D.in,transform:D.reverseTransform,reverseTransform:D.transform})}function uC($){return new kC({type:"readonly",innerType:$})}function l70($,D){return new yC({type:"template_literal",parts:$,...K0.normalizeParams(D)})}function hC($){return new fC({type:"lazy",getter:$})}function n70($){return new bC({type:"promise",innerType:$})}function i70($){return new gC({type:"function",input:Array.isArray($?.input)?OC($?.input):$?.input??eU(tJ()),output:$?.output??tJ()})}function p70($){let D=new D1({check:"custom"});return D._zod.check=$,D}function r70($,D){return dj(QG,$??(()=>!0),D)}function mC($,D={}){return cj(QG,$,D)}function dC($,D){return lj($,D)}function t70($,D={}){let J=new QG({type:"custom",check:"custom",fn:(X)=>X instanceof $,abort:!0,...K0.normalizeParams(D)});return J._zod.bag.Class=$,J._zod.check=(X)=>{if(!(X.value instanceof $))X.issues.push({code:"invalid_type",expected:$.name,input:X.value,inst:J,path:[...J._zod.def.path??[]]})},J}function e70($){let D=hC(()=>{return aO([iU($),sT(),eT(),XC(),eU(D),VC(iU(),D)])});return D}function $J0($,D){return new _C({type:"pipe",in:sO($),out:D})}var b90,H$,xO,mQ,s$,vO,pU,O8,tU,_O,kO,uO,yO,fO,hO,bO,gO,tT,mO,dO,cO,lO,nO,iO,pO,dQ,cQ,sJ,lQ,nQ,rO,$C,DC,JC,QC,YC,ZC,FC,sU,UC,$G,DG,GC,qC,WC,HC,bQ,KC,NC,gQ,MC,LC,wC,eO,BC,RC,AC,jC,$V,PC,SC,vC,JG,XG,_C,kC,yC,fC,bC,gC,QG,o70,a70,s70=(...$)=>pj({Codec:XG,Boolean:lQ,String:mQ},...$);var nU=a(()=>{v6();v6();dU();mU();AO();cU();aT();b90=new WeakMap;H$=t("ZodType",($,D)=>{return Y$.init($,D),Object.assign($["~standard"],{jsonSchema:{input:fQ($,"input"),output:fQ($,"output")}}),$.toJSONSchema=rj($,{}),$.def=D,$.type=D.type,Object.defineProperty($,"_def",{value:D}),$.parse=(J,X)=>hT($,J,X,{callee:$.parse}),$.safeParse=(J,X)=>gT($,J,X),$.parseAsync=async(J,X)=>bT($,J,X,{callee:$.parseAsync}),$.safeParseAsync=async(J,X)=>mT($,J,X),$.spa=$.safeParseAsync,$.encode=(J,X)=>dT($,J,X),$.decode=(J,X)=>cT($,J,X),$.encodeAsync=async(J,X)=>lT($,J,X),$.decodeAsync=async(J,X)=>nT($,J,X),$.safeEncode=(J,X)=>iT($,J,X),$.safeDecode=(J,X)=>pT($,J,X),$.safeEncodeAsync=async(J,X)=>rT($,J,X),$.safeDecodeAsync=async(J,X)=>oT($,J,X),aU($,"ZodType",{check(...J){let X=this.def;return this.clone(K0.mergeDefs(X,{checks:[...X.checks??[],...J.map((Q)=>typeof Q==="function"?{_zod:{check:Q,def:{check:"custom"},onattach:[]}}:Q)]}),{parent:!0})},with(...J){return this.check(...J)},clone(J,X){return pD(this,J,X)},brand(){return this},register(J,X){return J.add(this,X),this},refine(J,X){return this.check(mC(J,X))},superRefine(J,X){return this.check(dC(J,X))},overwrite(J){return this.check(x4(J))},optional(){return rU(this)},exactOptional(){return EC(this)},nullable(){return oU(this)},nullish(){return rU(oU(this))},nonoptional(J){return CC(this,J)},array(){return eU(this)},or(J){return aO([this,J])},and(J){return zC(this,J)},transform(J){return SO(this,sO(J))},default(J){return IC(this,J)},prefault(J){return TC(this,J)},catch(J){return xC(this,J)},pipe(J){return SO(this,J)},readonly(){return uC(this)},describe(J){let X=this.clone();return ND.add(X,{description:J}),X},meta(...J){if(J.length===0)return ND.get(this);let X=this.clone();return ND.add(X,J[0]),X},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(J){return J(this)}}),Object.defineProperty($,"description",{get(){return ND.get($)?.description},configurable:!0}),$}),xO=t("_ZodString",($,D)=>{pJ.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>oj($,X,Q,Y);let J=$._zod.bag;$.format=J.format??null,$.minLength=J.minimum??null,$.maxLength=J.maximum??null,aU($,"_ZodString",{regex(...X){return this.check(AQ(...X))},includes(...X){return this.check(TQ(...X))},startsWith(...X){return this.check(CQ(...X))},endsWith(...X){return this.check(PQ(...X))},min(...X){return this.check(G9(...X))},max(...X){return this.check(oJ(...X))},length(...X){return this.check(aJ(...X))},nonempty(...X){return this.check(G9(1,...X))},lowercase(X){return this.check(IQ(X))},uppercase(X){return this.check(jQ(X))},trim(){return this.check(vQ())},normalize(...X){return this.check(xQ(...X))},toLowerCase(){return this.check(_Q())},toUpperCase(){return this.check(kQ())},slugify(){return this.check(uQ())}})}),mQ=t("ZodString",($,D)=>{pJ.init($,D),xO.init($,D),$.email=(J)=>$.check(rH(vO,J)),$.url=(J)=>$.check(gU(tU,J)),$.jwt=(J)=>$.check(HO(pO,J)),$.emoji=(J)=>$.check(eH(_O,J)),$.guid=(J)=>$.check(bU(pU,J)),$.uuid=(J)=>$.check(oH(O8,J)),$.uuidv4=(J)=>$.check(aH(O8,J)),$.uuidv6=(J)=>$.check(tH(O8,J)),$.uuidv7=(J)=>$.check(sH(O8,J)),$.nanoid=(J)=>$.check($O(kO,J)),$.guid=(J)=>$.check(bU(pU,J)),$.cuid=(J)=>$.check(DO(uO,J)),$.cuid2=(J)=>$.check(JO(yO,J)),$.ulid=(J)=>$.check(XO(fO,J)),$.base64=(J)=>$.check(qO(lO,J)),$.base64url=(J)=>$.check(WO(nO,J)),$.xid=(J)=>$.check(QO(hO,J)),$.ksuid=(J)=>$.check(YO(bO,J)),$.ipv4=(J)=>$.check(ZO(gO,J)),$.ipv6=(J)=>$.check(FO(mO,J)),$.cidrv4=(J)=>$.check(UO(dO,J)),$.cidrv6=(J)=>$.check(GO(cO,J)),$.e164=(J)=>$.check(zO(iO,J)),$.datetime=(J)=>$.check(_T(J)),$.date=(J)=>$.check(kT(J)),$.time=(J)=>$.check(uT(J)),$.duration=(J)=>$.check(yT(J))});s$=t("ZodStringFormat",($,D)=>{t$.init($,D),xO.init($,D)}),vO=t("ZodEmail",($,D)=>{eR.init($,D),s$.init($,D)});pU=t("ZodGUID",($,D)=>{tR.init($,D),s$.init($,D)});O8=t("ZodUUID",($,D)=>{sR.init($,D),s$.init($,D)});tU=t("ZodURL",($,D)=>{$A.init($,D),s$.init($,D)});_O=t("ZodEmoji",($,D)=>{DA.init($,D),s$.init($,D)});kO=t("ZodNanoID",($,D)=>{JA.init($,D),s$.init($,D)});uO=t("ZodCUID",($,D)=>{XA.init($,D),s$.init($,D)});yO=t("ZodCUID2",($,D)=>{QA.init($,D),s$.init($,D)});fO=t("ZodULID",($,D)=>{YA.init($,D),s$.init($,D)});hO=t("ZodXID",($,D)=>{ZA.init($,D),s$.init($,D)});bO=t("ZodKSUID",($,D)=>{FA.init($,D),s$.init($,D)});gO=t("ZodIPv4",($,D)=>{zA.init($,D),s$.init($,D)});tT=t("ZodMAC",($,D)=>{OA.init($,D),s$.init($,D)});mO=t("ZodIPv6",($,D)=>{HA.init($,D),s$.init($,D)});dO=t("ZodCIDRv4",($,D)=>{VA.init($,D),s$.init($,D)});cO=t("ZodCIDRv6",($,D)=>{KA.init($,D),s$.init($,D)});lO=t("ZodBase64",($,D)=>{MA.init($,D),s$.init($,D)});nO=t("ZodBase64URL",($,D)=>{LA.init($,D),s$.init($,D)});iO=t("ZodE164",($,D)=>{wA.init($,D),s$.init($,D)});pO=t("ZodJWT",($,D)=>{BA.init($,D),s$.init($,D)});dQ=t("ZodCustomStringFormat",($,D)=>{EA.init($,D),s$.init($,D)});cQ=t("ZodNumber",($,D)=>{dH.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>aj($,X,Q,Y),aU($,"ZodNumber",{gt(X,Q){return this.check(z8(X,Q))},gte(X,Q){return this.check(oD(X,Q))},min(X,Q){return this.check(oD(X,Q))},lt(X,Q){return this.check(W8(X,Q))},lte(X,Q){return this.check(x6(X,Q))},max(X,Q){return this.check(x6(X,Q))},int(X){return this.check(PO(X))},safe(X){return this.check(PO(X))},positive(X){return this.check(z8(0,X))},nonnegative(X){return this.check(oD(0,X))},negative(X){return this.check(W8(0,X))},nonpositive(X){return this.check(x6(0,X))},multipleOf(X,Q){return this.check(K7(X,Q))},step(X,Q){return this.check(K7(X,Q))},finite(){return this}});let J=$._zod.bag;$.minValue=Math.max(J.minimum??Number.NEGATIVE_INFINITY,J.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,$.maxValue=Math.min(J.maximum??Number.POSITIVE_INFINITY,J.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,$.isInt=(J.format??"").includes("int")||Number.isSafeInteger(J.multipleOf??0.5),$.isFinite=!0,$.format=J.format??null});sJ=t("ZodNumberFormat",($,D)=>{RA.init($,D),cQ.init($,D)});lQ=t("ZodBoolean",($,D)=>{SU.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>tj($,J,X,Q)});nQ=t("ZodBigInt",($,D)=>{cH.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>sj($,X,Q,Y),$.gte=(X,Q)=>$.check(oD(X,Q)),$.min=(X,Q)=>$.check(oD(X,Q)),$.gt=(X,Q)=>$.check(z8(X,Q)),$.gte=(X,Q)=>$.check(oD(X,Q)),$.min=(X,Q)=>$.check(oD(X,Q)),$.lt=(X,Q)=>$.check(W8(X,Q)),$.lte=(X,Q)=>$.check(x6(X,Q)),$.max=(X,Q)=>$.check(x6(X,Q)),$.positive=(X)=>$.check(z8(BigInt(0),X)),$.negative=(X)=>$.check(W8(BigInt(0),X)),$.nonpositive=(X)=>$.check(x6(BigInt(0),X)),$.nonnegative=(X)=>$.check(oD(BigInt(0),X)),$.multipleOf=(X,Q)=>$.check(K7(X,Q));let J=$._zod.bag;$.minValue=J.minimum??null,$.maxValue=J.maximum??null,$.format=J.format??null});rO=t("ZodBigIntFormat",($,D)=>{AA.init($,D),nQ.init($,D)});$C=t("ZodSymbol",($,D)=>{IA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>ej($,J,X,Q)});DC=t("ZodUndefined",($,D)=>{jA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>DT($,J,X,Q)});JC=t("ZodNull",($,D)=>{TA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>$T($,J,X,Q)});QC=t("ZodAny",($,D)=>{CA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>QT($,J,X,Q)});YC=t("ZodUnknown",($,D)=>{PA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>YT($,J,X,Q)});ZC=t("ZodNever",($,D)=>{SA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>XT($,J,X,Q)});FC=t("ZodVoid",($,D)=>{xA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>JT($,J,X,Q)});sU=t("ZodDate",($,D)=>{vA.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>ZT($,X,Q,Y),$.min=(X,Q)=>$.check(oD(X,Q)),$.max=(X,Q)=>$.check(x6(X,Q));let J=$._zod.bag;$.minDate=J.minimum?new Date(J.minimum):null,$.maxDate=J.maximum?new Date(J.maximum):null});UC=t("ZodArray",($,D)=>{_A.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>MT($,J,X,Q),$.element=D.element,aU($,"ZodArray",{min(J,X){return this.check(G9(J,X))},nonempty(J){return this.check(G9(1,J))},max(J,X){return this.check(oJ(J,X))},length(J,X){return this.check(aJ(J,X))},unwrap(){return this.element}})});$G=t("ZodObject",($,D)=>{kA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>LT($,J,X,Q),K0.defineLazy($,"shape",()=>{return D.shape}),aU($,"ZodObject",{keyof(){return tO(Object.keys(this._zod.def.shape))},catchall(J){return this.clone({...this._zod.def,catchall:J})},passthrough(){return this.clone({...this._zod.def,catchall:tJ()})},loose(){return this.clone({...this._zod.def,catchall:tJ()})},strict(){return this.clone({...this._zod.def,catchall:oO()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(J){return K0.extend(this,J)},safeExtend(J){return K0.safeExtend(this,J)},merge(J){return K0.merge(this,J)},pick(J){return K0.pick(this,J)},omit(J){return K0.omit(this,J)},partial(...J){return K0.partial(eO,this,J[0])},required(...J){return K0.required($V,this,J[0])}})});DG=t("ZodUnion",($,D)=>{xU.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>wO($,J,X,Q),$.options=D.options});GC=t("ZodXor",($,D)=>{DG.init($,D),uA.init($,D),$._zod.processJSONSchema=(J,X,Q)=>wO($,J,X,Q),$.options=D.options});qC=t("ZodDiscriminatedUnion",($,D)=>{DG.init($,D),yA.init($,D)});WC=t("ZodIntersection",($,D)=>{fA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>wT($,J,X,Q)});HC=t("ZodTuple",($,D)=>{lH.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>BT($,J,X,Q),$.rest=(J)=>$.clone({...$._zod.def,rest:J})});bQ=t("ZodRecord",($,D)=>{hA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>ET($,J,X,Q),$.keyType=D.keyType,$.valueType=D.valueType});KC=t("ZodMap",($,D)=>{bA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>KT($,J,X,Q),$.keyType=D.keyType,$.valueType=D.valueType,$.min=(...J)=>$.check(H8(...J)),$.nonempty=(J)=>$.check(H8(1,J)),$.max=(...J)=>$.check(N7(...J)),$.size=(...J)=>$.check(rJ(...J))});NC=t("ZodSet",($,D)=>{gA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>NT($,J,X,Q),$.min=(...J)=>$.check(H8(...J)),$.nonempty=(J)=>$.check(H8(1,J)),$.max=(...J)=>$.check(N7(...J)),$.size=(...J)=>$.check(rJ(...J))});gQ=t("ZodEnum",($,D)=>{mA.init($,D),H$.init($,D),$._zod.processJSONSchema=(X,Q,Y)=>FT($,X,Q,Y),$.enum=D.entries,$.options=Object.values(D.entries);let J=new Set(Object.keys(D.entries));$.extract=(X,Q)=>{let Y={};for(let Z of X)if(J.has(Z))Y[Z]=D.entries[Z];else throw Error(`Key ${Z} not found in enum`);return new gQ({...D,checks:[],...K0.normalizeParams(Q),entries:Y})},$.exclude=(X,Q)=>{let Y={...D.entries};for(let Z of X)if(J.has(Z))delete Y[Z];else throw Error(`Key ${Z} not found in enum`);return new gQ({...D,checks:[],...K0.normalizeParams(Q),entries:Y})}});MC=t("ZodLiteral",($,D)=>{dA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>UT($,J,X,Q),$.values=new Set(D.values),Object.defineProperty($,"value",{get(){if(D.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return D.values[0]}})});LC=t("ZodFile",($,D)=>{cA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>WT($,J,X,Q),$.min=(J,X)=>$.check(H8(J,X)),$.max=(J,X)=>$.check(N7(J,X)),$.mime=(J,X)=>$.check(SQ(Array.isArray(J)?J:[J],X))});wC=t("ZodTransform",($,D)=>{lA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>VT($,J,X,Q),$._zod.parse=(J,X)=>{if(X.direction==="backward")throw new cJ($.constructor.name);J.addIssue=(Y)=>{if(typeof Y==="string")J.issues.push(K0.issue(Y,J.value,D));else{let Z=Y;if(Z.fatal)Z.continue=!1;Z.code??(Z.code="custom"),Z.input??(Z.input=J.value),Z.inst??(Z.inst=$),J.issues.push(K0.issue(Z))}};let Q=D.transform(J.value,J);if(Q instanceof Promise)return Q.then((Y)=>{return J.value=Y,J.fallback=!0,J});return J.value=Q,J.fallback=!0,J}});eO=t("ZodOptional",($,D)=>{nH.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>BO($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});BC=t("ZodExactOptional",($,D)=>{nA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>BO($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});RC=t("ZodNullable",($,D)=>{iA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>RT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});AC=t("ZodDefault",($,D)=>{pA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>IT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType,$.removeDefault=$.unwrap});jC=t("ZodPrefault",($,D)=>{rA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>jT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});$V=t("ZodNonOptional",($,D)=>{oA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>AT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});PC=t("ZodSuccess",($,D)=>{aA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>zT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});SC=t("ZodCatch",($,D)=>{tA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>TT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType,$.removeCatch=$.unwrap});vC=t("ZodNaN",($,D)=>{sA.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>GT($,J,X,Q)});JG=t("ZodPipe",($,D)=>{iH.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>CT($,J,X,Q),$.in=D.in,$.out=D.out});XG=t("ZodCodec",($,D)=>{JG.init($,D),vU.init($,D)});_C=t("ZodPreprocess",($,D)=>{JG.init($,D),eA.init($,D)}),kC=t("ZodReadonly",($,D)=>{$I.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>PT($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});yC=t("ZodTemplateLiteral",($,D)=>{DI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>qT($,J,X,Q)});fC=t("ZodLazy",($,D)=>{QI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>xT($,J,X,Q),$.unwrap=()=>$._zod.def.getter()});bC=t("ZodPromise",($,D)=>{XI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>ST($,J,X,Q),$.unwrap=()=>$._zod.def.innerType});gC=t("ZodFunction",($,D)=>{JI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>OT($,J,X,Q)});QG=t("ZodCustom",($,D)=>{YI.init($,D),H$.init($,D),$._zod.processJSONSchema=(J,X,Q)=>HT($,J,X,Q)});o70=nj,a70=ij});function be0($){f1({customError:$})}function ge0(){return f1().customError}var he0,cC;var DJ0=a(()=>{v6();he0={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};(function($){})(cC||(cC={}))});function de0($,D){let J=$.$schema;if(J==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(J==="http://json-schema.org/draft-07/schema#")return"draft-7";if(J==="http://json-schema.org/draft-04/schema#")return"draft-4";return D??"draft-2020-12"}function ce0($,D){if(!$.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let J=$.slice(1).split("/").filter(Boolean);if(J.length===0)return D.rootSchema;let X=D.version==="draft-2020-12"?"$defs":"definitions";if(J[0]===X){let Q=J[1];if(!Q||!D.defs[Q])throw Error(`Reference not found: ${$}`);return D.defs[Q]}throw Error(`Reference not found: ${$}`)}function JJ0($,D){if($.not!==void 0){if(typeof $.not==="object"&&Object.keys($.not).length===0)return C0.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if($.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if($.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if($.if!==void 0||$.then!==void 0||$.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if($.dependentSchemas!==void 0||$.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if($.$ref){let Q=$.$ref;if(D.refs.has(Q))return D.refs.get(Q);if(D.processing.has(Q))return C0.lazy(()=>{if(!D.refs.has(Q))throw Error(`Circular reference not resolved: ${Q}`);return D.refs.get(Q)});D.processing.add(Q);let Y=ce0(Q,D),Z=SD(Y,D);return D.refs.set(Q,Z),D.processing.delete(Q),Z}if($.enum!==void 0){let Q=$.enum;if(D.version==="openapi-3.0"&&$.nullable===!0&&Q.length===1&&Q[0]===null)return C0.null();if(Q.length===0)return C0.never();if(Q.length===1)return C0.literal(Q[0]);if(Q.every((Z)=>typeof Z==="string"))return C0.enum(Q);let Y=Q.map((Z)=>C0.literal(Z));if(Y.length<2)return Y[0];return C0.union([Y[0],Y[1],...Y.slice(2)])}if($.const!==void 0)return C0.literal($.const);let J=$.type;if(Array.isArray(J)){let Q=J.map((Y)=>{let Z={...$,type:Y};return JJ0(Z,D)});if(Q.length===0)return C0.never();if(Q.length===1)return Q[0];return C0.union(Q)}if(!J)return C0.any();let X;switch(J){case"string":{let Q=C0.string();if($.format){let Y=$.format;if(Y==="email")Q=Q.check(C0.email());else if(Y==="uri"||Y==="uri-reference")Q=Q.check(C0.url());else if(Y==="uuid"||Y==="guid")Q=Q.check(C0.uuid());else if(Y==="date-time")Q=Q.check(C0.iso.datetime());else if(Y==="date")Q=Q.check(C0.iso.date());else if(Y==="time")Q=Q.check(C0.iso.time());else if(Y==="duration")Q=Q.check(C0.iso.duration());else if(Y==="ipv4")Q=Q.check(C0.ipv4());else if(Y==="ipv6")Q=Q.check(C0.ipv6());else if(Y==="mac")Q=Q.check(C0.mac());else if(Y==="cidr")Q=Q.check(C0.cidrv4());else if(Y==="cidr-v6")Q=Q.check(C0.cidrv6());else if(Y==="base64")Q=Q.check(C0.base64());else if(Y==="base64url")Q=Q.check(C0.base64url());else if(Y==="e164")Q=Q.check(C0.e164());else if(Y==="jwt")Q=Q.check(C0.jwt());else if(Y==="emoji")Q=Q.check(C0.emoji());else if(Y==="nanoid")Q=Q.check(C0.nanoid());else if(Y==="cuid")Q=Q.check(C0.cuid());else if(Y==="cuid2")Q=Q.check(C0.cuid2());else if(Y==="ulid")Q=Q.check(C0.ulid());else if(Y==="xid")Q=Q.check(C0.xid());else if(Y==="ksuid")Q=Q.check(C0.ksuid())}if(typeof $.minLength==="number")Q=Q.min($.minLength);if(typeof $.maxLength==="number")Q=Q.max($.maxLength);if($.pattern)Q=Q.regex(new RegExp($.pattern));X=Q;break}case"number":case"integer":{let Q=J==="integer"?C0.number().int():C0.number();if(typeof $.minimum==="number")Q=Q.min($.minimum);if(typeof $.maximum==="number")Q=Q.max($.maximum);if(typeof $.exclusiveMinimum==="number")Q=Q.gt($.exclusiveMinimum);else if($.exclusiveMinimum===!0&&typeof $.minimum==="number")Q=Q.gt($.minimum);if(typeof $.exclusiveMaximum==="number")Q=Q.lt($.exclusiveMaximum);else if($.exclusiveMaximum===!0&&typeof $.maximum==="number")Q=Q.lt($.maximum);if(typeof $.multipleOf==="number")Q=Q.multipleOf($.multipleOf);X=Q;break}case"boolean":{X=C0.boolean();break}case"null":{X=C0.null();break}case"object":{let Q={},Y=$.properties||{},Z=new Set($.required||[]);for(let[U,G]of Object.entries(Y)){let q=SD(G,D);Q[U]=Z.has(U)?q:q.optional()}if($.propertyNames){let U=SD($.propertyNames,D),G=$.additionalProperties&&typeof $.additionalProperties==="object"?SD($.additionalProperties,D):C0.any();if(Object.keys(Q).length===0){X=C0.record(U,G);break}let q=C0.object(Q).passthrough(),W=C0.looseRecord(U,G);X=C0.intersection(q,W);break}if($.patternProperties){let U=$.patternProperties,G=Object.keys(U),q=[];for(let z of G){let H=SD(U[z],D),O=C0.string().regex(new RegExp(z));q.push(C0.looseRecord(O,H))}let W=[];if(Object.keys(Q).length>0)W.push(C0.object(Q).passthrough());if(W.push(...q),W.length===0)X=C0.object({}).passthrough();else if(W.length===1)X=W[0];else{let z=C0.intersection(W[0],W[1]);for(let H=2;H<W.length;H++)z=C0.intersection(z,W[H]);X=z}break}let F=C0.object(Q);if($.additionalProperties===!1)X=F.strict();else if(typeof $.additionalProperties==="object")X=F.catchall(SD($.additionalProperties,D));else X=F.passthrough();break}case"array":{let{prefixItems:Q,items:Y}=$;if(Q&&Array.isArray(Q)){let Z=Q.map((U)=>SD(U,D)),F=Y&&typeof Y==="object"&&!Array.isArray(Y)?SD(Y,D):void 0;if(F)X=C0.tuple(Z).rest(F);else X=C0.tuple(Z);if(typeof $.minItems==="number")X=X.check(C0.minLength($.minItems));if(typeof $.maxItems==="number")X=X.check(C0.maxLength($.maxItems))}else if(Array.isArray(Y)){let Z=Y.map((U)=>SD(U,D)),F=$.additionalItems&&typeof $.additionalItems==="object"?SD($.additionalItems,D):void 0;if(F)X=C0.tuple(Z).rest(F);else X=C0.tuple(Z);if(typeof $.minItems==="number")X=X.check(C0.minLength($.minItems));if(typeof $.maxItems==="number")X=X.check(C0.maxLength($.maxItems))}else if(Y!==void 0){let Z=SD(Y,D),F=C0.array(Z);if(typeof $.minItems==="number")F=F.min($.minItems);if(typeof $.maxItems==="number")F=F.max($.maxItems);X=F}else X=C0.array(C0.any());break}default:throw Error(`Unsupported type: ${J}`)}return X}function SD($,D){if(typeof $==="boolean")return $?C0.any():C0.never();let J=JJ0($,D),X=$.type||$.enum!==void 0||$.const!==void 0;if($.anyOf&&Array.isArray($.anyOf)){let F=$.anyOf.map((G)=>SD(G,D)),U=C0.union(F);J=X?C0.intersection(J,U):U}if($.oneOf&&Array.isArray($.oneOf)){let F=$.oneOf.map((G)=>SD(G,D)),U=C0.xor(F);J=X?C0.intersection(J,U):U}if($.allOf&&Array.isArray($.allOf))if($.allOf.length===0)J=X?J:C0.any();else{let F=X?J:SD($.allOf[0],D),U=X?0:1;for(let G=U;G<$.allOf.length;G++)F=C0.intersection(F,SD($.allOf[G],D));J=F}if($.nullable===!0&&D.version==="openapi-3.0")J=C0.nullable(J);if($.readOnly===!0)J=C0.readonly(J);if($.default!==void 0)J=J.default($.default);let Q={},Y=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let F of Y)if(F in $)Q[F]=$[F];let Z=["contentEncoding","contentMediaType","contentSchema"];for(let F of Z)if(F in $)Q[F]=$[F];for(let F of Object.keys($))if(!me0.has(F))Q[F]=$[F];if(Object.keys(Q).length>0)D.registry.add(J,Q);if($.description)J=J.describe($.description);return J}function XJ0($,D){if(typeof $==="boolean")return $?C0.any():C0.never();let J;try{J=JSON.parse(JSON.stringify($))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let X=de0(J,D?.defaultTarget),Q=J.$defs||J.definitions||{},Y={version:X,defs:Q,refs:new Map,processing:new Set,rootSchema:J,registry:D?.registry??ND};return SD(J,Y)}var C0,me0;var QJ0=a(()=>{hU();AO();cU();nU();C0={...lU,...RO,iso:hQ},me0=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])});var lC={};kD(lC,{string:()=>le0,number:()=>ne0,date:()=>re0,boolean:()=>ie0,bigint:()=>pe0});function le0($){return qj(mQ,$)}function ne0($){return Mj(cQ,$)}function ie0($){return Ij(lQ,$)}function pe0($){return Tj(nQ,$)}function re0($){return hj(sU,$)}var YJ0=a(()=>{v6();nU()});var S$={};kD(S$,{xor:()=>S70,xid:()=>e90,void:()=>A70,uuidv7:()=>n90,uuidv6:()=>l90,uuidv4:()=>c90,uuid:()=>d90,util:()=>K0,url:()=>i90,uppercase:()=>jQ,unknown:()=>tJ,union:()=>aO,undefined:()=>E70,ulid:()=>s90,uint64:()=>w70,uint32:()=>N70,tuple:()=>OC,trim:()=>vQ,treeifyError:()=>oE,transform:()=>sO,toUpperCase:()=>kQ,toLowerCase:()=>_Q,toJSONSchema:()=>EO,templateLiteral:()=>l70,symbol:()=>B70,superRefine:()=>dC,success:()=>g70,stringbool:()=>s70,stringFormat:()=>q70,string:()=>iU,strictObject:()=>C70,startsWith:()=>CQ,slugify:()=>uQ,size:()=>rJ,setErrorMap:()=>be0,set:()=>u70,safeParseAsync:()=>mT,safeParse:()=>gT,safeEncodeAsync:()=>rT,safeEncode:()=>iT,safeDecodeAsync:()=>oT,safeDecode:()=>pT,registry:()=>pH,regexes:()=>S6,regex:()=>AQ,refine:()=>mC,record:()=>VC,readonly:()=>uC,property:()=>MO,promise:()=>n70,prettifyError:()=>aE,preprocess:()=>$J0,prefault:()=>TC,positive:()=>OO,pipe:()=>SO,partialRecord:()=>v70,parseAsync:()=>bT,parse:()=>hT,overwrite:()=>x4,optional:()=>rU,object:()=>T70,number:()=>sT,nullish:()=>b70,nullable:()=>oU,null:()=>XC,normalize:()=>xQ,nonpositive:()=>KO,nonoptional:()=>CC,nonnegative:()=>NO,never:()=>oO,negative:()=>VO,nativeEnum:()=>y70,nanoid:()=>o90,nan:()=>m70,multipleOf:()=>K7,minSize:()=>H8,minLength:()=>G9,mime:()=>SQ,meta:()=>a70,maxSize:()=>N7,maxLength:()=>oJ,map:()=>k70,mac:()=>J70,lte:()=>x6,lt:()=>W8,lowercase:()=>IQ,looseRecord:()=>_70,looseObject:()=>P70,locales:()=>fU,literal:()=>f70,length:()=>aJ,lazy:()=>hC,ksuid:()=>$70,keyof:()=>j70,jwt:()=>G70,json:()=>e70,iso:()=>hQ,ipv6:()=>X70,ipv4:()=>D70,invertCodec:()=>c70,intersection:()=>zC,int64:()=>L70,int32:()=>K70,int:()=>PO,instanceof:()=>t70,includes:()=>TQ,httpUrl:()=>p90,hostname:()=>W70,hex:()=>z70,hash:()=>H70,guid:()=>m90,gte:()=>oD,gt:()=>z8,globalRegistry:()=>ND,getErrorMap:()=>ge0,function:()=>i70,fromJSONSchema:()=>XJ0,formatError:()=>jU,float64:()=>V70,float32:()=>O70,flattenError:()=>IU,file:()=>h70,exactOptional:()=>EC,enum:()=>tO,endsWith:()=>PQ,encodeAsync:()=>lT,encode:()=>dT,emoji:()=>r90,email:()=>g90,e164:()=>U70,discriminatedUnion:()=>x70,describe:()=>o70,decodeAsync:()=>nT,decode:()=>cT,date:()=>I70,custom:()=>r70,cuid2:()=>t90,cuid:()=>a90,core:()=>q9,config:()=>f1,coerce:()=>lC,codec:()=>d70,clone:()=>pD,cidrv6:()=>Y70,cidrv4:()=>Q70,check:()=>p70,catch:()=>xC,boolean:()=>eT,bigint:()=>M70,base64url:()=>F70,base64:()=>Z70,array:()=>eU,any:()=>R70,_function:()=>i70,_default:()=>IC,_ZodString:()=>xO,ZodXor:()=>GC,ZodXID:()=>hO,ZodVoid:()=>FC,ZodUnknown:()=>YC,ZodUnion:()=>DG,ZodUndefined:()=>DC,ZodUUID:()=>O8,ZodURL:()=>tU,ZodULID:()=>fO,ZodType:()=>H$,ZodTuple:()=>HC,ZodTransform:()=>wC,ZodTemplateLiteral:()=>yC,ZodSymbol:()=>$C,ZodSuccess:()=>PC,ZodStringFormat:()=>s$,ZodString:()=>mQ,ZodSet:()=>NC,ZodRecord:()=>bQ,ZodRealError:()=>K6,ZodReadonly:()=>kC,ZodPromise:()=>bC,ZodPreprocess:()=>_C,ZodPrefault:()=>jC,ZodPipe:()=>JG,ZodOptional:()=>eO,ZodObject:()=>$G,ZodNumberFormat:()=>sJ,ZodNumber:()=>cQ,ZodNullable:()=>RC,ZodNull:()=>JC,ZodNonOptional:()=>$V,ZodNever:()=>ZC,ZodNanoID:()=>kO,ZodNaN:()=>vC,ZodMap:()=>KC,ZodMAC:()=>tT,ZodLiteral:()=>MC,ZodLazy:()=>fC,ZodKSUID:()=>bO,ZodJWT:()=>pO,ZodIssueCode:()=>he0,ZodIntersection:()=>WC,ZodISOTime:()=>TO,ZodISODuration:()=>CO,ZodISODateTime:()=>IO,ZodISODate:()=>jO,ZodIPv6:()=>mO,ZodIPv4:()=>gO,ZodGUID:()=>pU,ZodFunction:()=>gC,ZodFirstPartyTypeKind:()=>cC,ZodFile:()=>LC,ZodExactOptional:()=>BC,ZodError:()=>ye0,ZodEnum:()=>gQ,ZodEmoji:()=>_O,ZodEmail:()=>vO,ZodE164:()=>iO,ZodDiscriminatedUnion:()=>qC,ZodDefault:()=>AC,ZodDate:()=>sU,ZodCustomStringFormat:()=>dQ,ZodCustom:()=>QG,ZodCodec:()=>XG,ZodCatch:()=>SC,ZodCUID2:()=>yO,ZodCUID:()=>uO,ZodCIDRv6:()=>cO,ZodCIDRv4:()=>dO,ZodBoolean:()=>lQ,ZodBigIntFormat:()=>rO,ZodBigInt:()=>nQ,ZodBase64URL:()=>nO,ZodBase64:()=>lO,ZodArray:()=>UC,ZodAny:()=>QC,TimePrecision:()=>zj,NEVER:()=>fE,$output:()=>Zj,$input:()=>Fj,$brand:()=>hE});var nC=a(()=>{v6();v6();KI();v6();dU();QJ0();Yj();cU();cU();YJ0();nU();AO();fT();aT();DJ0();f1(_U())});var ZJ0=a(()=>{nC();nC()});var FJ0,oe0,fx$,hx$,bx$,gx$;var UJ0=a(()=>{ZJ0();FJ0=S$.object({name:S$.string().min(1),version:S$.string().min(1),requested_version:S$.string().optional(),ios_checksum:S$.string().optional(),android_checksum:S$.string().optional()}),oe0=S$.enum(["new_plugin","removed_plugin","version_mismatch","requested_version_changed","ios_code_changed","android_code_changed","both_platforms_changed","platform_checksum_metadata_changed"]),fx$=S$.object({name:S$.string(),localVersion:S$.string().optional(),remoteVersion:S$.string().optional(),localRequestedVersion:S$.string().optional(),remoteRequestedVersion:S$.string().optional(),localIosChecksum:S$.string().optional(),remoteIosChecksum:S$.string().optional(),localAndroidChecksum:S$.string().optional(),remoteAndroidChecksum:S$.string().optional()}),hx$=S$.object({compatible:S$.boolean(),reasons:oe0.array(),message:S$.string()}),bx$=S$.object({isSecurityPolicyError:S$.boolean(),errorCode:S$.string(),message:S$.string()}),gx$=S$.record(S$.string(),S$.string()).transform(($,D)=>{if($===null||typeof $!=="object"||Array.isArray($)||Object.getPrototypeOf($)!==Object.prototype)return D.addIssue({code:"custom",message:"a plain object of locale keys to release notes"}),S$.NEVER;let J=Object.create(null);for(let[X,Q]of Object.entries($)){let Y=X.trim(),Z=Q.trim();if(!Y)return D.addIssue({code:"custom",message:"a non-empty locale key"}),S$.NEVER;if(!Z)return D.addIssue({code:"custom",message:"a non-empty release note"}),S$.NEVER;if(Object.prototype.hasOwnProperty.call(J,Y))return D.addIssue({code:"custom",message:`a unique locale key (duplicate after trim: "${Y}")`}),S$.NEVER;J[Y]=Z}return J})});function GJ0($){return Object.values(YG).includes($)}function iQ($){let D="",J="";if(typeof $==="string")D=$,J=$;else if($&&typeof $==="object"){let X=$;D=String(X.error||X.code||X.errorCode||""),J=String(X.message||X.error||"")}if(GJ0(D))return{isSecurityPolicyError:!0,errorCode:D,message:DV[D]||J};for(let[X,Q]of Object.entries(DV))if(J.includes(X))return{isSecurityPolicyError:!0,errorCode:X,message:Q};return{isSecurityPolicyError:!1,errorCode:D,message:J}}function ae0($,D){return DV[$]||D||$}function iC($){let D=iQ($);if(D.isSecurityPolicyError)return`
|
|
363
363
|
❌ Security Policy Error: ${D.errorCode}
|
|
364
364
|
|
|
365
365
|
${D.message}
|
|
@@ -403,7 +403,7 @@ To regain access:`),B.error(` 1. Go to ${HV("/settings/account")}`),B.error("
|
|
|
403
403
|
For more information, visit: https://capgo.app/docs/webapp/2fa-enforcement/
|
|
404
404
|
`),Error("2FA required for this organization")}async function o0$($,D,J,X){return(await Promise.all(J.map(async(Y)=>{return await XD($,D,X,{orgId:Y.gid})?Y:null}))).filter((Y)=>Y!==null)}async function a0$($,D,J){let{error:X,data:Q}=await $.rpc("get_orgs_v7");if(X)throw B.error("Cannot get the list of organizations - exiting"),B.error(Y0(X)),Error("Cannot get the list of organizations");if(Q.length===0)throw B.error("Could not get organization please create an organization first"),Error("No organizations available");let Y=await o0$($,D,Q,J);if(Y.length===0)throw B.error(`Could not find organization with permission: ${J}`),Error("Could not find organization with required permission");return{allOrganizations:Q,allowedOrganizations:Y}}async function W50($,D,J){let{allOrganizations:X,allowedOrganizations:Q}=await a0$($,D,J),Y=Q.length>1?await qD({message:"Please pick the organization that you want to insert to",options:Q.map((U)=>{let G=U.enforcing_2fa&&!U["2fa_has_access"]?" ⚠️ (2FA required)":"";return{value:U.gid,label:`${U.name}${G}`}})}):Q[0].gid;if(K$(Y))throw B.error("Canceled organization selection, exiting"),Error("Organization selection cancelled");let Z=Y,F=X.find((U)=>U.gid===Z);if(F.enforcing_2fa&&!F["2fa_has_access"])MP(F.name);return B.info(`Using the organization "${F.name}" as the app owner`),F}async function e$($,D,J=!1){let{data:X,error:Q}=await $.rpc("get_user_id",{apikey:D}).single(),Y=(X||"").toString();if(!Y||Q){if(!J)B.error("Invalid API key or insufficient permissions.");throw Error("Invalid API key or insufficient permissions.")}return Y}async function XD($,D,J,X={}){let{data:Q,error:Y}=await $.rpc("cli_check_permission",{apikey:D,permission_key:J,org_id:X.orgId??null,app_id:X.appId??null,channel_id:X.channelId??null});if(Y)throw B.error(`Cannot check permission ${J}`),B.error(Y0(Y)),Error(`Cannot check permission ${J}`);return!!Q}async function KG($,D,J,X={},Q={}){if(await XD($,D,J,X))return;let Z=Q.message||`Insufficient permissions for ${J}`;if(!Q.silent)B.error(Z);throw Error(Z)}async function RV($,D,J,X,Q,Y){await e$($,D,Y),await KG($,D,J,{orgId:X},{message:Q,silent:Y})}async function jD($,D){let{data:J,error:X}=await $.from("apps").select("owner_org").eq("app_id",D).single();if(!J||X)throw B.error(`Cannot get organization id for app id ${D}`),Y0(X),Error(`Cannot get organization id for app id ${D}`);return J.owner_org}function $Y($){return new Date($||"").toLocaleString()}function X5(){if(bJ0)return{pm:oQ,command:UG,installCommand:`${oQ} ${UG}`,runner:zP};let $=s1(e6());return oQ=NZ($,"npm"),UG=aq(oQ),bJ0=!0,zP=lk($),{pm:oQ,command:UG,installCommand:`${oQ} ${UG}`,runner:zP}}function t0$($,D){return{summary:`Best fix: recreate and sync ${D==="ios"?"iOS":"Android"} with this one-line command.`,command:`rm -rf ${D} && ${$} cap add ${D} && ${$} cap sync ${D}`}}function z50($){return qG($,{withFileTypes:!0}).flatMap((X)=>{let Q=N$($,X.name);if(X.isDirectory())return z50(Q);else return Q.split(`node_modules${dJ0}`)[1]||Q})}function H50($){if(!d$($))return[];try{return qG($,{withFileTypes:!0}).flatMap((X)=>{let Q=N$($,X.name);if(X.isDirectory())return H50(Q);else return Q})}catch{return[]}}function s0$($,D){let J=[];if(D==="ios"){try{let Y=qG($);for(let Z of Y)if(Z.endsWith(".podspec"))J.push(N$($,Z))}catch{}let X=N$($,"Package.swift"),Q=N$($,"ios","Package.swift");if(d$(X))J.push(X);if(d$(Q))J.push(Q)}else if(D==="android"){let X=N$($,"android"),Q=N$(X,"build.gradle"),Y=N$(X,"build.gradle.kts");if(d$(Q))J.push(Q);if(d$(Y))J.push(Y)}return J}async function e0$($){let D=N$($,"ios"),J=N$($,"android"),X=async(Z,F)=>{let U=d$(Z)?H50(Z).filter((H)=>pJ0.test(H)):[],G=s0$($,F),q=[...U,...G].sort((H,O)=>H.localeCompare(O));if(q.length===0)return;let{createHash:W}=await import("node:crypto"),z=W("sha256");for(let H of q)try{let O=mJ0($,H);z.update(O);let V=P1(H);z.update(V)}catch{}return z.digest("hex")},[Q,Y]=await Promise.all([X(D,"ios"),X(J,"android")]);return{ios_checksum:Q,android_checksum:Y}}async function LP($,D){let J=D?D.split(",").map((W)=>W.trim()).filter(Boolean):[],X;try{X=await KV("",$)}catch(W){throw B.error("Invalid package.json, JSON parsing failed"),B.error(`json parse error: ${Y0(W)}`),W instanceof Error?W:Error("Invalid package.json")}let Q=$?$.split(",")[0].trim():void 0,Y=!Q?s1(e6()):WG.resolve(Q).replace(v4,"");if(!X)throw B.error("Missing dependencies section in package.json"),Error("Missing dependencies section in package.json");for(let[W,z]of Object.entries(X))if(typeof z!=="string")throw B.error(`Invalid dependency ${W}: ${z}, expected string, got ${typeof z}`),Error(`Invalid dependency ${W}: expected string version`);let Z=J.length===0?[N$(e6(),"node_modules")]:J;if(!Z.some((W)=>d$(W))){let W=NZ(Y,"npm"),z=aq(W);throw B.error(`Missing node_modules folder at ${Z.join(", ")}, please run ${W} ${z}`),Error("Missing node_modules folder")}let U=!1,G=await c0$(s1(e6()),$),q=await Promise.all(Array.from(X.entries()).map(async([W,z])=>{let H=!1,O=!1,V=z,K=G.get(W)??z,L;for(let M of Z){let w=N$(M,W);if(d$(w)){H=!0,L=w;try{let R=N$(w,v4);if(d$(R)){let S=JSON.parse(P1(R,"utf-8"));if(S.version)V=S.version}}catch{}if(!i0$(w))continue;try{if(z50(w).some((S)=>pJ0.test(S))){O=!0;break}}catch(R){throw B.error(`Error reading node_modules files for ${W} package in ${M}`),B.error(Y0(R)),R instanceof Error?R:Error(`Error reading node_modules files for ${W}`)}}}if(!H){U=!0;let M=NZ(Y,"npm"),w=aq(M);return B.error(`Missing dependency ${W}, please run ${M} ${w}`),{name:W,version:V,requested_version:K}}let E,N;if(O&&L){let M=await e0$(L);E=M.ios_checksum,N=M.android_checksum}return{name:W,version:V,requested_version:K,native:O,ios_checksum:E,android_checksum:N}})).catch(()=>[]);if(U||q.some((W)=>W.native===void 0))throw B.error("Missing dependencies or invalid dependencies"),B.error("If you use monorepo, workspace or any special package manager you can use the --package-json [path,] and --node-modules [path,] options to make the command work properly"),Error("Missing dependencies or invalid dependencies");return q}async function O50($,D,J){let{data:X,error:Q}=await $.from("channels").select("version:app_versions!channels_version_fkey(checksum)").eq("name",J).eq("app_id",D).single(),Y=X;if(Q||Y===null||!Y.version||!Y.version.checksum)return null;return Y.version.checksum}function $$$($){if(!$)throw B.error("Error parsing native packages, perhaps the metadata does not exist in Capgo?"),Error("Error parsing native packages");for(let J of $){let X=e40(FJ0,J);if(!X.success){let Q=X.error.issues.map((Y)=>`${(Y.path??[]).join(".")}: ${Y.message}`).join(", ");throw B.error(`Invalid remote native package data: ${Q}`),Error(`Invalid remote native package data: ${Q}`)}}return new Map($.map((J)=>[J.name,J]))}async function V50($,D,J){let{data:X,error:Q}=await $.from("channels").select(`version:app_versions!channels_version_fkey(
|
|
405
405
|
native_packages
|
|
406
|
-
)`).eq("name",J).eq("app_id",D).single();if(Q)throw B.error(`Error fetching native packages: ${Q.message}`),Error(`Error fetching native packages: ${Q.message}`);return $$$(X.version?.native_packages??[])}function k$($,D){return $||D?.plugins?.CapacitorUpdater?.appId||D?.appId}function E7($){let D=[];if(!$.localVersion)return{compatible:!0,reasons:[],message:"Package only exists on remote (will be removed)"};if(!$.remoteVersion)return D.push("new_plugin"),{compatible:!1,reasons:D,message:"New native plugin added (requires app store update)"};let J=!1;try{let U=X3($.localVersion),G=X3($.remoteVersion);J=Fu(U,G)}catch{J=!1}if(!J)D.push("version_mismatch");if($.localRequestedVersion&&$.remoteRequestedVersion&&$.localRequestedVersion.trim()!==$.remoteRequestedVersion.trim())D.push("requested_version_changed");let X=$.localIosChecksum&&$.remoteIosChecksum&&$.localIosChecksum!==$.remoteIosChecksum,Q=$.localAndroidChecksum&&$.remoteAndroidChecksum&&$.localAndroidChecksum!==$.remoteAndroidChecksum;if(X&&Q)D.push("both_platforms_changed");else if(X)D.push("ios_code_changed");else if(Q)D.push("android_code_changed");let Y=[],Z=(U)=>U!=="requested_version_changed";for(let U of D)switch(U){case"version_mismatch":Y.push(`version changed: ${$.remoteVersion} → ${$.localVersion}`);break;case"requested_version_changed":Y.push(`requested version changed: ${$.remoteRequestedVersion??"unknown"} → ${$.localRequestedVersion??"unknown"}`);break;case"ios_code_changed":Y.push("iOS native code changed");break;case"android_code_changed":Y.push("Android native code changed");break;case"both_platforms_changed":Y.push("iOS and Android native code changed");break;case"new_plugin":Y.push("new plugin (requires app store update)");break;case"removed_plugin":Y.push("plugin removed");break}if(!D.some(Z))return{compatible:!0,reasons:D,message:Y.length>0?Y.join(", "):"Compatible"};return{compatible:!1,reasons:D,message:Y.join(", ")}}function J4($){return E7($).compatible}async function AV($,D,J,X,Q){let Y=await LP(X,Q),Z=await V50($,D,J),F=Y.filter((G)=>!!G.native).map((G)=>{let q=Z.get(G.name);if(q)return{name:G.name,localVersion:G.version,localRequestedVersion:G.requested_version,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,localIosChecksum:G.ios_checksum,remoteIosChecksum:q.ios_checksum,localAndroidChecksum:G.android_checksum,remoteAndroidChecksum:q.android_checksum};return{name:G.name,localVersion:G.version,localRequestedVersion:G.requested_version,remoteVersion:void 0,localIosChecksum:G.ios_checksum,localAndroidChecksum:G.android_checksum}}),U=[...Z].filter(([G])=>!Y.some((q)=>q.name===G)).map(([G,q])=>({name:G,localVersion:void 0,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,remoteIosChecksum:q.ios_checksum,remoteAndroidChecksum:q.android_checksum}));return F.push(...U),{finalCompatibility:F,localDependencies:Y}}async function NG($,D,J,X){let Q=await V50($,D,J),Y=X.map((F)=>{let U=Q.get(F.name);if(U)return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:U.version,remoteRequestedVersion:U.requested_version,localIosChecksum:F.ios_checksum,remoteIosChecksum:U.ios_checksum,localAndroidChecksum:F.android_checksum,remoteAndroidChecksum:U.android_checksum};return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:void 0,localIosChecksum:F.ios_checksum,localAndroidChecksum:F.android_checksum}}),Z=[...Q].filter(([F])=>!X.some((U)=>U.name===F)).map(([F,U])=>({name:F,localVersion:void 0,remoteVersion:U.version,remoteRequestedVersion:U.requested_version,remoteIosChecksum:U.ios_checksum,remoteAndroidChecksum:U.android_checksum}));return Y.push(...Z),{finalCompatibility:Y,localDependencies:X}}function K50($){if(!d$($))return null;try{return JSON.parse(P1($,"utf-8"))}catch{return null}}function FV($){if(!$)return!1;return/@capgo\/capacitor-updater|CapgoCapacitorUpdater|CapacitorUpdaterPlugin/.test($)}function D$$($){let D=K50($);if(!D)return!1;let J=D.packageClassList;return Array.isArray(J)&&J.includes("CapacitorUpdaterPlugin")}function J$$($,D){if(!D)return N$($,v4);return WG.isAbsolute(D)?D:aQ($,D)}function X$$($=e6(),D){let J=J$$($,D),X=WG.basename(J)===v4?GG(J):J,Q=[N$(X,"ios","App"),N$($,"ios","App")].find((R)=>d$(R));if(!Q)return{shouldCheck:!1,valid:!0,details:[]};let Y=K50(J),Z={...Y?.dependencies,...Y?.devDependencies,...Y?.optionalDependencies},F=Object.hasOwn(Z,"@capgo/capacitor-updater"),U=[X,$].some((R)=>d$(N$(R,"node_modules","@capgo","capacitor-updater"))),G=N$(Q,"Podfile"),q=N$(Q,"CapApp-SPM","Package.swift"),W=d$(G)?P1(G,"utf-8"):void 0,z=d$(q)?P1(q,"utf-8"):void 0,H=FV(W)||FV(z),O=N$(Q,"Podfile.lock"),V=N$(Q,"App","capacitor.plugins.json"),K=N$(Q,"App","capacitor.config.json"),L=d$(O)?P1(O,"utf-8"):void 0,E=d$(V)?P1(V,"utf-8"):void 0,N=FV(L)||FV(E)||D$$(K);if(!(F||U||H||N))return{shouldCheck:!1,valid:!0,details:[]};let w=[];if(!H)w.push(`Missing @capgo/capacitor-updater in iOS dependency files (${G} or ${q})`);if(!N)w.push(`Missing @capgo/capacitor-updater in iOS native project outputs (${O}, ${V}, or ${K})`);return{shouldCheck:!0,valid:H&&N,details:w}}async function N50($,D,J,X){let Q=await O1({message:"Would you like to sync your project with Capacitor now? This is recommended to ensure encrypted updates work properly."});if(K$(Q)){if($&&D&&J)await oc("onboarding-v2",D,J,"canceled",void 0,"\uD83E\uDD37");throw B.error("Canceled Capacitor sync"),Error("Capacitor sync cancelled")}if(Q){let Y=X5(),Z=n$();Z.start("Running the command...");let F;try{await new Promise((U,G)=>{let q=_0$(Y.runner,["cap","sync"],{stdio:"pipe"});q.on("close",(W)=>{if(W===0)U();else G(Error(`Command failed with exit code ${W}`))}),q.on("error",(W)=>{G(W)})})}catch(U){F=U,B.error(`Failed to run Capacitor sync: ${U}`),B.warn(`Please run "${Y.runner} cap sync" manually to ensure encrypted updates work properly`)}if(X?.validateIosUpdater){let U=X$$(e6(),X.packageJsonPath);if(U.shouldCheck&&!U.valid){let G=t0$(Y.runner,"ios");Z.stop("iOS sync check failed ❌"),B.error("Capgo iOS dependency sync verification failed.");for(let q of U.details)B.error(q);throw B.error("Stop here to avoid testing on a broken native iOS project."),B.warn(G.summary),B.info(G.command),Error("iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.")}}if(F){Z.stop("Error");return}Z.stop("Capacitor sync completed ✅")}else{let Y=X5();B.warn("⚠️ Important: If you upload encrypted bundles without syncing, updates will fail!"),B.info(`Remember to run "${Y.runner} cap sync" before uploading encrypted bundles`)}}var OP,cJ0,lJ0,WV,tQ=".capgo_key",$4=".capgo_key_v2",zV,z9,uJ0="https://capgo.app",yJ0="https://files.capgo.app",HP="https://api.capgo.app",GV="https://console.capgo.app",VP=120000,h0$=20971520,b0$=1073741824,g0$=103809024,zG,HG=1e4,v4="package.json",sQ,pJ0,MV="5.10.0",LV="6.25.0",VG="7.0.30",bJ0=!1,oQ="npm",UG="install",zP="npx";var D$=a(()=>{nk();F$();d8();th();aw();CW();ac();vE();KU();NU();yE();$80();UJ0();JV();OP=j$(uL(),1),cJ0=j$(hL(),1),lJ0=j$(Wg(),1),WV=j$(TW(),1),zV=`${tQ}.pub`,z9=`${$4}.pub`;zG=[0,1000,3000,5000,1e4];sQ=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*))*))?(?:\+([0-9a-z-]+(?:\.[0-9a-z-]+)*))?$/i;pJ0=/([A-Za-z0-9]+)\.(java|swift|kt|scala)$/});function C50($,D,J={},X){let Q=`${$}:${D}`,Y=T50.get(Q);if(Y)return Y;let Z=J.createClient??t0,F=(async()=>{try{let G=(await Z($,void 0,void 0,!0,!1)).from("apps").select("owner_org").eq("app_id",D);if(X)G=G.abortSignal(X);let{data:q}=await G.maybeSingle();return q?.owner_org??void 0}catch{return}})();return T50.set(Q,F),F}var T50;var P50=a(()=>{D$();T50=new Map});function Y$$($){if($&&typeof $==="object"&&"status"in $){let D=$.status;if(typeof D==="number")return D}return}function Z$$($){if($ instanceof Error)return $.message;if(typeof $==="string")return $;return""}function S50($){if($&&typeof $==="object"&&"code"in $){let X=$.code;if(typeof X==="string"&&X.startsWith("commander."))return"commander"}let D=Y$$($);if(D!==void 0){if(D===401)return"unauthorized";if(D===403)return"forbidden";if(D===404)return"not_found";if(D===413)return"payload_too_large";if(D>=500)return"server_error"}let J=Z$$($).toLowerCase();if(/econnrefused|enotfound|fetch failed|network|socket|dns/.test(J))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(J))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(J))return"validation_error";return"unknown"}function x50($){if($===401)return"unauthorized";if($===403)return"forbidden";if($===404)return"not_found";if($===408||$===504)return"timeout";if($===413)return"payload_too_large";if($===429)return"rate_limited";if($===400||$===422)return"validation_error";if($>=500)return"server_error";return"unknown"}import{AsyncLocalStorage as F$$}from"node:async_hooks";import{env as v50}from"node:process";function U$$(){return OQ(v50.CAPGO_DISABLE_TELEMETRY)||OQ(v50.CAPGO_DISABLE_POSTHOG)}function G$$($){_50.add($),$.finally(()=>_50.delete($))}function q$$($,D){let J=u50.get($);if(J)return J;let X=(async()=>{try{let Q=await Q$(!0).catch(()=>{return}),Y=k$("",Q?.config)||void 0;if(!Y)return{};let Z=await C50($,Y,{},D);return{appId:Y,orgId:Z}}catch{return{}}})();return u50.set($,X),X}function B$($){if(U$$())return Promise.resolve();let D=$.apikey??NV();if(!D)return Promise.resolve();let J=new AbortController;k50.add(J);let X=(async()=>{try{let{appId:Q,orgId:Y}=$;if(Q===void 0&&Y===void 0){let F=await q$$(D,J.signal);Q=F.appId,Y=F.orgId}let Z={...Q?{app_id:Q}:{},...$.tags??{}};await n0(D,{channel:$.channel,event:$.event,icon:$.icon??"\uD83D\uDCCA",notify:!1,tracking_version:2,...Y?{org_id:Y}:{},tags:Z},!1,J.signal).catch(()=>{})}catch{}finally{k50.delete(J)}})();return G$$(X),X}function O$$($){let D=$.durationMs>lc;if($.ok&&!D)return;let J=z$$.getStore()??W$$,X={operation:nc($.url,$.method),method:$.method,status_code:$.status,duration_ms:$.durationMs,ok:$.ok,slow:D};if($.source)X.source=$.source;if(J)X.command_path=J;if(!$.ok)X.error_category=$.error!==void 0?S50($.error):x50($.status);B$({apikey:$.apikey,channel:H$$,event:"Supabase Call",icon:"⏱️",tags:X})}var _50,k50,u50,W$$="",z$$,H$$="cli-perf";var MD=a(()=>{a8();yE();D$();P50();CW();aw();CW();_50=new Set,k50=new Set;u50=new Map;z$$=new F$$;cc(O$$)});var H9=A((_k$,$X0)=>{var s50=["nodebuffer","arraybuffer","fragments"],e50=typeof Blob<"u";if(e50)s50.push("blob");$X0.exports={BINARY_TYPES:s50,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:e50,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var LG=A((kk$,xV)=>{var{EMPTY_BUFFER:u$$}=H9(),AP=Buffer[Symbol.species];function y$$($,D){if($.length===0)return u$$;if($.length===1)return $[0];let J=Buffer.allocUnsafe(D),X=0;for(let Q=0;Q<$.length;Q++){let Y=$[Q];J.set(Y,X),X+=Y.length}if(X<D)return new AP(J.buffer,J.byteOffset,X);return J}function DX0($,D,J,X,Q){for(let Y=0;Y<Q;Y++)J[X+Y]=$[Y]^D[Y&3]}function JX0($,D){for(let J=0;J<$.length;J++)$[J]^=D[J&3]}function f$$($){if($.length===$.buffer.byteLength)return $.buffer;return $.buffer.slice($.byteOffset,$.byteOffset+$.length)}function IP($){if(IP.readOnly=!0,Buffer.isBuffer($))return $;let D;if($ instanceof ArrayBuffer)D=new AP($);else if(ArrayBuffer.isView($))D=new AP($.buffer,$.byteOffset,$.byteLength);else D=Buffer.from($),IP.readOnly=!1;return D}xV.exports={concat:y$$,mask:DX0,toArrayBuffer:f$$,toBuffer:IP,unmask:JX0};if(!process.env.WS_NO_BUFFER_UTIL)try{let $=(()=>{throw new Error("Cannot require module "+"bufferutil");})();xV.exports.mask=function(D,J,X,Q,Y){if(Y<48)DX0(D,J,X,Q,Y);else $.mask(D,J,X,Q,Y)},xV.exports.unmask=function(D,J){if(D.length<32)JX0(D,J);else $.unmask(D,J)}}catch($){}});var ZX0=A((uk$,YX0)=>{var XX0=Symbol("kDone"),jP=Symbol("kRun");class QX0{constructor($){this[XX0]=()=>{this.pending--,this[jP]()},this.concurrency=$||1/0,this.jobs=[],this.pending=0}add($){this.jobs.push($),this[jP]()}[jP](){if(this.pending===this.concurrency)return;if(this.jobs.length){let $=this.jobs.shift();this.pending++,$(this[XX0])}}}YX0.exports=QX0});var YY=A((yk$,WX0)=>{var wG=s("zlib"),FX0=LG(),h$$=ZX0(),{kStatusCode:UX0}=H9(),b$$=Buffer[Symbol.species],g$$=Buffer.from([0,0,255,255]),_V=Symbol("permessage-deflate"),O9=Symbol("total-length"),XY=Symbol("callback"),R7=Symbol("buffers"),QY=Symbol("error"),vV;class GX0{constructor($){if(this._options=$||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!vV){let D=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;vV=new h$$(D)}}static get extensionName(){return"permessage-deflate"}offer(){let $={};if(this._options.serverNoContextTakeover)$.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)$.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)$.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)$.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)$.client_max_window_bits=!0;return $}accept($){return $=this.normalizeParams($),this.params=this._isServer?this.acceptAsServer($):this.acceptAsClient($),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let $=this._deflate[XY];if(this._deflate.close(),this._deflate=null,$)$(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer($){let D=this._options,J=$.find((X)=>{if(D.serverNoContextTakeover===!1&&X.server_no_context_takeover||X.server_max_window_bits&&(D.serverMaxWindowBits===!1||typeof D.serverMaxWindowBits==="number"&&D.serverMaxWindowBits>X.server_max_window_bits)||typeof D.clientMaxWindowBits==="number"&&!X.client_max_window_bits)return!1;return!0});if(!J)throw Error("None of the extension offers can be accepted");if(D.serverNoContextTakeover)J.server_no_context_takeover=!0;if(D.clientNoContextTakeover)J.client_no_context_takeover=!0;if(typeof D.serverMaxWindowBits==="number")J.server_max_window_bits=D.serverMaxWindowBits;if(typeof D.clientMaxWindowBits==="number")J.client_max_window_bits=D.clientMaxWindowBits;else if(J.client_max_window_bits===!0||D.clientMaxWindowBits===!1)delete J.client_max_window_bits;return J}acceptAsClient($){let D=$[0];if(this._options.clientNoContextTakeover===!1&&D.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!D.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")D.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&D.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return D}normalizeParams($){return $.forEach((D)=>{Object.keys(D).forEach((J)=>{let X=D[J];if(X.length>1)throw Error(`Parameter "${J}" must have only a single value`);if(X=X[0],J==="client_max_window_bits"){if(X!==!0){let Q=+X;if(!Number.isInteger(Q)||Q<8||Q>15)throw TypeError(`Invalid value for parameter "${J}": ${X}`);X=Q}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${J}": ${X}`)}else if(J==="server_max_window_bits"){let Q=+X;if(!Number.isInteger(Q)||Q<8||Q>15)throw TypeError(`Invalid value for parameter "${J}": ${X}`);X=Q}else if(J==="client_no_context_takeover"||J==="server_no_context_takeover"){if(X!==!0)throw TypeError(`Invalid value for parameter "${J}": ${X}`)}else throw Error(`Unknown parameter "${J}"`);D[J]=X})}),$}decompress($,D,J){vV.add((X)=>{this._decompress($,D,(Q,Y)=>{X(),J(Q,Y)})})}compress($,D,J){vV.add((X)=>{this._compress($,D,(Q,Y)=>{X(),J(Q,Y)})})}_decompress($,D,J){let X=this._isServer?"client":"server";if(!this._inflate){let Q=`${X}_max_window_bits`,Y=typeof this.params[Q]!=="number"?wG.Z_DEFAULT_WINDOWBITS:this.params[Q];this._inflate=wG.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Y}),this._inflate[_V]=this,this._inflate[O9]=0,this._inflate[R7]=[],this._inflate.on("error",d$$),this._inflate.on("data",qX0)}if(this._inflate[XY]=J,this._inflate.write($),D)this._inflate.write(g$$);this._inflate.flush(()=>{let Q=this._inflate[QY];if(Q){this._inflate.close(),this._inflate=null,J(Q);return}let Y=FX0.concat(this._inflate[R7],this._inflate[O9]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[O9]=0,this._inflate[R7]=[],D&&this.params[`${X}_no_context_takeover`])this._inflate.reset();J(null,Y)})}_compress($,D,J){let X=this._isServer?"server":"client";if(!this._deflate){let Q=`${X}_max_window_bits`,Y=typeof this.params[Q]!=="number"?wG.Z_DEFAULT_WINDOWBITS:this.params[Q];this._deflate=wG.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Y}),this._deflate[O9]=0,this._deflate[R7]=[],this._deflate.on("data",m$$)}this._deflate[XY]=J,this._deflate.write($),this._deflate.flush(wG.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let Q=FX0.concat(this._deflate[R7],this._deflate[O9]);if(D)Q=new b$$(Q.buffer,Q.byteOffset,Q.length-4);if(this._deflate[XY]=null,this._deflate[O9]=0,this._deflate[R7]=[],D&&this.params[`${X}_no_context_takeover`])this._deflate.reset();J(null,Q)})}}WX0.exports=GX0;function m$$($){this[R7].push($),this[O9]+=$.length}function qX0($){if(this[O9]+=$.length,this[_V]._maxPayload<1||this[O9]<=this[_V]._maxPayload){this[R7].push($);return}this[QY]=RangeError("Max payload size exceeded"),this[QY].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[QY][UX0]=1009,this.removeListener("data",qX0),this.reset()}function d$$($){if(this[_V]._inflate=null,this[QY]){this[XY](this[QY]);return}$[UX0]=1007,this[XY]($)}});var ZY=A((fk$,kV)=>{var{isUtf8:zX0}=s("buffer"),{hasBlob:c$$}=H9(),l$$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function n$$($){return $>=1000&&$<=1014&&$!==1004&&$!==1005&&$!==1006||$>=3000&&$<=4999}function TP($){let D=$.length,J=0;while(J<D)if(($[J]&128)===0)J++;else if(($[J]&224)===192){if(J+1===D||($[J+1]&192)!==128||($[J]&254)===192)return!1;J+=2}else if(($[J]&240)===224){if(J+2>=D||($[J+1]&192)!==128||($[J+2]&192)!==128||$[J]===224&&($[J+1]&224)===128||$[J]===237&&($[J+1]&224)===160)return!1;J+=3}else if(($[J]&248)===240){if(J+3>=D||($[J+1]&192)!==128||($[J+2]&192)!==128||($[J+3]&192)!==128||$[J]===240&&($[J+1]&240)===128||$[J]===244&&$[J+1]>143||$[J]>244)return!1;J+=4}else return!1;return!0}function i$$($){return c$$&&typeof $==="object"&&typeof $.arrayBuffer==="function"&&typeof $.type==="string"&&typeof $.stream==="function"&&($[Symbol.toStringTag]==="Blob"||$[Symbol.toStringTag]==="File")}kV.exports={isBlob:i$$,isValidStatusCode:n$$,isValidUTF8:TP,tokenChars:l$$};if(zX0)kV.exports.isValidUTF8=function($){return $.length<24?TP($):zX0($)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let $=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();kV.exports.isValidUTF8=function(D){return D.length<32?TP(D):$(D)}}catch($){}});var PP=A((hk$,NX0)=>{var{Writable:p$$}=s("stream"),HX0=YY(),{BINARY_TYPES:r$$,EMPTY_BUFFER:OX0,kStatusCode:o$$,kWebSocket:a$$}=H9(),{concat:CP,toArrayBuffer:t$$,unmask:s$$}=LG(),{isValidStatusCode:e$$,isValidUTF8:VX0}=ZY(),uV=Buffer[Symbol.species];class KX0 extends p$${constructor($={}){super();this._allowSynchronousEvents=$.allowSynchronousEvents!==void 0?$.allowSynchronousEvents:!0,this._binaryType=$.binaryType||r$$[0],this._extensions=$.extensions||{},this._isServer=!!$.isServer,this._maxBufferedChunks=$.maxBufferedChunks|0,this._maxFragments=$.maxFragments|0,this._maxPayload=$.maxPayload|0,this._skipUTF8Validation=!!$.skipUTF8Validation,this[a$$]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write($,D,J){if(this._opcode===8&&this._state==0)return J();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){J(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=$.length,this._buffers.push($),this.startLoop(J)}consume($){if(this._bufferedBytes-=$,$===this._buffers[0].length)return this._buffers.shift();if($<this._buffers[0].length){let J=this._buffers[0];return this._buffers[0]=new uV(J.buffer,J.byteOffset+$,J.length-$),new uV(J.buffer,J.byteOffset,$)}let D=Buffer.allocUnsafe($);do{let J=this._buffers[0],X=D.length-$;if($>=J.length)D.set(this._buffers.shift(),X);else D.set(new Uint8Array(J.buffer,J.byteOffset,$),X),this._buffers[0]=new uV(J.buffer,J.byteOffset+$,J.length-$);$-=J.length}while($>0);return D}startLoop($){this._loop=!0;do switch(this._state){case 0:this.getInfo($);break;case 1:this.getPayloadLength16($);break;case 2:this.getPayloadLength64($);break;case 3:this.getMask();break;case 4:this.getData($);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)$()}getInfo($){if(this._bufferedBytes<2){this._loop=!1;return}let D=this.consume(2);if((D[0]&48)!==0){let X=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");$(X);return}let J=(D[0]&64)===64;if(J&&!this._extensions[HX0.extensionName]){let X=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(X);return}if(this._fin=(D[0]&128)===128,this._opcode=D[0]&15,this._payloadLength=D[1]&127,this._opcode===0){if(J){let X=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(X);return}if(!this._fragmented){let X=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");$(X);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let X=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(X);return}this._compressed=J}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let X=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");$(X);return}if(J){let X=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(X);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let X=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");$(X);return}}else{let X=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(X);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(D[1]&128)===128,this._isServer){if(!this._masked){let X=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");$(X);return}}else if(this._masked){let X=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");$(X);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength($)}getPayloadLength16($){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength($)}getPayloadLength64($){if(this._bufferedBytes<8){this._loop=!1;return}let D=this.consume(8),J=D.readUInt32BE(0);if(J>Math.pow(2,21)-1){let X=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");$(X);return}this._payloadLength=J*Math.pow(2,32)+D.readUInt32BE(4),this.haveLength($)}haveLength($){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let D=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");$(D);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData($){let D=OX0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(D=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)s$$(D,this._mask)}if(this._opcode>7){this.controlMessage(D,$);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let J=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");$(J);return}if(this._compressed){this._state=5,this.decompress(D,$);return}if(D.length)this._messageLength=this._totalPayloadLength,this._fragments.push(D);this.dataMessage($)}decompress($,D){this._extensions[HX0.extensionName].decompress($,this._fin,(X,Q)=>{if(X)return D(X);if(Q.length){if(this._messageLength+=Q.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Y=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");D(Y);return}this._fragments.push(Q)}if(this.dataMessage(D),this._state===0)this.startLoop(D)})}dataMessage($){if(!this._fin){this._state=0;return}let D=this._messageLength,J=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let X;if(this._binaryType==="nodebuffer")X=CP(J,D);else if(this._binaryType==="arraybuffer")X=t$$(CP(J,D));else if(this._binaryType==="blob")X=new Blob(J);else X=J;if(this._allowSynchronousEvents)this.emit("message",X,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",X,!0),this._state=0,this.startLoop($)})}else{let X=CP(J,D);if(!this._skipUTF8Validation&&!VX0(X)){let Q=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");$(Q);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",X,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",X,!1),this._state=0,this.startLoop($)})}}controlMessage($,D){if(this._opcode===8){if($.length===0)this._loop=!1,this.emit("conclude",1005,OX0),this.end();else{let J=$.readUInt16BE(0);if(!e$$(J)){let Q=this.createError(RangeError,`invalid status code ${J}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");D(Q);return}let X=new uV($.buffer,$.byteOffset+2,$.length-2);if(!this._skipUTF8Validation&&!VX0(X)){let Q=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");D(Q);return}this._loop=!1,this.emit("conclude",J,X),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",$),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",$),this._state=0,this.startLoop(D)})}createError($,D,J,X,Q){this._loop=!1,this._errored=!0;let Y=new $(J?`Invalid WebSocket frame: ${D}`:D);return Error.captureStackTrace(Y,this.createError),Y.code=Q,Y[o$$]=X,Y}}NX0.exports=KX0});var xP=A((gk$,wX0)=>{var{Duplex:bk$}=s("stream"),{randomFillSync:$1$}=s("crypto"),{types:{isUint8Array:D1$}}=s("util"),MX0=YY(),{EMPTY_BUFFER:J1$,kWebSocket:X1$,NOOP:Q1$}=H9(),{isBlob:FY,isValidStatusCode:Y1$}=ZY(),{mask:LX0,toBuffer:U5}=LG(),X4=Symbol("kByteLength"),Z1$=Buffer.alloc(4),G5,UY=8192,_4=0,F1$=1,U1$=2;class A7{constructor($,D,J){if(this._extensions=D||{},J)this._generateMask=J,this._maskBuffer=Buffer.alloc(4);this._socket=$,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=_4,this.onerror=Q1$,this[X1$]=void 0}static frame($,D){let J,X=!1,Q=2,Y=!1;if(D.mask){if(J=D.maskBuffer||Z1$,D.generateMask)D.generateMask(J);else{if(UY===8192){if(G5===void 0)G5=Buffer.alloc(8192);$1$(G5,0,8192),UY=0}J[0]=G5[UY++],J[1]=G5[UY++],J[2]=G5[UY++],J[3]=G5[UY++]}Y=(J[0]|J[1]|J[2]|J[3])===0,Q=6}let Z;if(typeof $==="string")if((!D.mask||Y)&&D[X4]!==void 0)Z=D[X4];else $=Buffer.from($),Z=$.length;else Z=$.length,X=D.mask&&D.readOnly&&!Y;let F=Z;if(Z>=65536)Q+=8,F=127;else if(Z>125)Q+=2,F=126;let U=Buffer.allocUnsafe(X?Z+Q:Q);if(U[0]=D.fin?D.opcode|128:D.opcode,D.rsv1)U[0]|=64;if(U[1]=F,F===126)U.writeUInt16BE(Z,2);else if(F===127)U[2]=U[3]=0,U.writeUIntBE(Z,4,6);if(!D.mask)return[U,$];if(U[1]|=128,U[Q-4]=J[0],U[Q-3]=J[1],U[Q-2]=J[2],U[Q-1]=J[3],Y)return[U,$];if(X)return LX0($,J,U,Q,Z),[U];return LX0($,J,$,0,Z),[U,$]}close($,D,J,X){let Q;if($===void 0)Q=J1$;else if(typeof $!=="number"||!Y1$($))throw TypeError("First argument must be a valid error code number");else if(D===void 0||!D.length)Q=Buffer.allocUnsafe(2),Q.writeUInt16BE($,0);else{let Z=Buffer.byteLength(D);if(Z>123)throw RangeError("The message must not be greater than 123 bytes");if(Q=Buffer.allocUnsafe(2+Z),Q.writeUInt16BE($,0),typeof D==="string")Q.write(D,2);else if(D1$(D))Q.set(D,2);else throw TypeError("Second argument must be a string or a Uint8Array")}let Y={[X4]:Q.length,fin:!0,generateMask:this._generateMask,mask:J,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==_4)this.enqueue([this.dispatch,Q,!1,Y,X]);else this.sendFrame(A7.frame(Q,Y),X)}ping($,D,J){let X,Q;if(typeof $==="string")X=Buffer.byteLength($),Q=!1;else if(FY($))X=$.size,Q=!1;else $=U5($),X=$.length,Q=U5.readOnly;if(X>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[X4]:X,fin:!0,generateMask:this._generateMask,mask:D,maskBuffer:this._maskBuffer,opcode:9,readOnly:Q,rsv1:!1};if(FY($))if(this._state!==_4)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==_4)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(A7.frame($,Y),J)}pong($,D,J){let X,Q;if(typeof $==="string")X=Buffer.byteLength($),Q=!1;else if(FY($))X=$.size,Q=!1;else $=U5($),X=$.length,Q=U5.readOnly;if(X>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[X4]:X,fin:!0,generateMask:this._generateMask,mask:D,maskBuffer:this._maskBuffer,opcode:10,readOnly:Q,rsv1:!1};if(FY($))if(this._state!==_4)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==_4)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(A7.frame($,Y),J)}send($,D,J){let X=this._extensions[MX0.extensionName],Q=D.binary?2:1,Y=D.compress,Z,F;if(typeof $==="string")Z=Buffer.byteLength($),F=!1;else if(FY($))Z=$.size,F=!1;else $=U5($),Z=$.length,F=U5.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Y&&X&&X.params[X._isServer?"server_no_context_takeover":"client_no_context_takeover"])Y=Z>=X._threshold;this._compress=Y}else Y=!1,Q=0;if(D.fin)this._firstFragment=!0;let U={[X4]:Z,fin:D.fin,generateMask:this._generateMask,mask:D.mask,maskBuffer:this._maskBuffer,opcode:Q,readOnly:F,rsv1:Y};if(FY($))if(this._state!==_4)this.enqueue([this.getBlobData,$,this._compress,U,J]);else this.getBlobData($,this._compress,U,J);else if(this._state!==_4)this.enqueue([this.dispatch,$,this._compress,U,J]);else this.dispatch($,this._compress,U,J)}getBlobData($,D,J,X){this._bufferedBytes+=J[X4],this._state=U1$,$.arrayBuffer().then((Q)=>{if(this._socket.destroyed){let Z=Error("The socket was closed while the blob was being read");process.nextTick(SP,this,Z,X);return}this._bufferedBytes-=J[X4];let Y=U5(Q);if(!D)this._state=_4,this.sendFrame(A7.frame(Y,J),X),this.dequeue();else this.dispatch(Y,D,J,X)}).catch((Q)=>{process.nextTick(G1$,this,Q,X)})}dispatch($,D,J,X){if(!D){this.sendFrame(A7.frame($,J),X);return}let Q=this._extensions[MX0.extensionName];this._bufferedBytes+=J[X4],this._state=F1$,Q.compress($,J.fin,(Y,Z)=>{if(this._socket.destroyed){let F=Error("The socket was closed while data was being compressed");SP(this,F,X);return}this._bufferedBytes-=J[X4],this._state=_4,J.readOnly=!1,this.sendFrame(A7.frame(Z,J),X),this.dequeue()})}dequeue(){while(this._state===_4&&this._queue.length){let $=this._queue.shift();this._bufferedBytes-=$[3][X4],Reflect.apply($[0],this,$.slice(1))}}enqueue($){this._bufferedBytes+=$[3][X4],this._queue.push($)}sendFrame($,D){if($.length===2)this._socket.cork(),this._socket.write($[0]),this._socket.write($[1],D),this._socket.uncork();else this._socket.write($[0],D)}}wX0.exports=A7;function SP($,D,J){if(typeof J==="function")J(D);for(let X=0;X<$._queue.length;X++){let Q=$._queue[X],Y=Q[Q.length-1];if(typeof Y==="function")Y(D)}}function G1$($,D,J){SP($,D,J),$.onerror(D)}});var PX0=A((mk$,CX0)=>{var{kForOnEventAttribute:BG,kListener:vP}=H9(),BX0=Symbol("kCode"),EX0=Symbol("kData"),RX0=Symbol("kError"),AX0=Symbol("kMessage"),IX0=Symbol("kReason"),GY=Symbol("kTarget"),jX0=Symbol("kType"),TX0=Symbol("kWasClean");class I7{constructor($){this[GY]=null,this[jX0]=$}get target(){return this[GY]}get type(){return this[jX0]}}Object.defineProperty(I7.prototype,"target",{enumerable:!0});Object.defineProperty(I7.prototype,"type",{enumerable:!0});class qY extends I7{constructor($,D={}){super($);this[BX0]=D.code===void 0?0:D.code,this[IX0]=D.reason===void 0?"":D.reason,this[TX0]=D.wasClean===void 0?!1:D.wasClean}get code(){return this[BX0]}get reason(){return this[IX0]}get wasClean(){return this[TX0]}}Object.defineProperty(qY.prototype,"code",{enumerable:!0});Object.defineProperty(qY.prototype,"reason",{enumerable:!0});Object.defineProperty(qY.prototype,"wasClean",{enumerable:!0});class EG extends I7{constructor($,D={}){super($);this[RX0]=D.error===void 0?null:D.error,this[AX0]=D.message===void 0?"":D.message}get error(){return this[RX0]}get message(){return this[AX0]}}Object.defineProperty(EG.prototype,"error",{enumerable:!0});Object.defineProperty(EG.prototype,"message",{enumerable:!0});class fV extends I7{constructor($,D={}){super($);this[EX0]=D.data===void 0?null:D.data}get data(){return this[EX0]}}Object.defineProperty(fV.prototype,"data",{enumerable:!0});var q1$={addEventListener($,D,J={}){for(let Q of this.listeners($))if(!J[BG]&&Q[vP]===D&&!Q[BG])return;let X;if($==="message")X=function(Y,Z){let F=new fV("message",{data:Z?Y:Y.toString()});F[GY]=this,yV(D,this,F)};else if($==="close")X=function(Y,Z){let F=new qY("close",{code:Y,reason:Z.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});F[GY]=this,yV(D,this,F)};else if($==="error")X=function(Y){let Z=new EG("error",{error:Y,message:Y.message});Z[GY]=this,yV(D,this,Z)};else if($==="open")X=function(){let Y=new I7("open");Y[GY]=this,yV(D,this,Y)};else return;if(X[BG]=!!J[BG],X[vP]=D,J.once)this.once($,X);else this.on($,X)},removeEventListener($,D){for(let J of this.listeners($))if(J[vP]===D&&!J[BG]){this.removeListener($,J);break}}};CX0.exports={CloseEvent:qY,ErrorEvent:EG,Event:I7,EventTarget:q1$,MessageEvent:fV};function yV($,D,J){if(typeof $==="object"&&$.handleEvent)$.handleEvent.call($,J);else $.call(D,J)}});var hV=A((dk$,SX0)=>{var{tokenChars:RG}=ZY();function V8($,D,J){if($[D]===void 0)$[D]=[J];else $[D].push(J)}function W1$($){let D=Object.create(null),J=Object.create(null),X=!1,Q=!1,Y=!1,Z,F,U=-1,G=-1,q=-1,W=0;for(;W<$.length;W++)if(G=$.charCodeAt(W),Z===void 0)if(q===-1&&RG[G]===1){if(U===-1)U=W}else if(W!==0&&(G===32||G===9)){if(q===-1&&U!==-1)q=W}else if(G===59||G===44){if(U===-1)throw SyntaxError(`Unexpected character at index ${W}`);if(q===-1)q=W;let H=$.slice(U,q);if(G===44)V8(D,H,J),J=Object.create(null);else Z=H;U=q=-1}else throw SyntaxError(`Unexpected character at index ${W}`);else if(F===void 0)if(q===-1&&RG[G]===1){if(U===-1)U=W}else if(G===32||G===9){if(q===-1&&U!==-1)q=W}else if(G===59||G===44){if(U===-1)throw SyntaxError(`Unexpected character at index ${W}`);if(q===-1)q=W;if(V8(J,$.slice(U,q),!0),G===44)V8(D,Z,J),J=Object.create(null),Z=void 0;U=q=-1}else if(G===61&&U!==-1&&q===-1)F=$.slice(U,W),U=q=-1;else throw SyntaxError(`Unexpected character at index ${W}`);else if(Q){if(RG[G]!==1)throw SyntaxError(`Unexpected character at index ${W}`);if(U===-1)U=W;else if(!X)X=!0;Q=!1}else if(Y)if(RG[G]===1){if(U===-1)U=W}else if(G===34&&U!==-1)Y=!1,q=W;else if(G===92)Q=!0;else throw SyntaxError(`Unexpected character at index ${W}`);else if(G===34&&$.charCodeAt(W-1)===61)Y=!0;else if(q===-1&&RG[G]===1){if(U===-1)U=W}else if(U!==-1&&(G===32||G===9)){if(q===-1)q=W}else if(G===59||G===44){if(U===-1)throw SyntaxError(`Unexpected character at index ${W}`);if(q===-1)q=W;let H=$.slice(U,q);if(X)H=H.replace(/\\/g,""),X=!1;if(V8(J,F,H),G===44)V8(D,Z,J),J=Object.create(null),Z=void 0;F=void 0,U=q=-1}else throw SyntaxError(`Unexpected character at index ${W}`);if(U===-1||Y||G===32||G===9)throw SyntaxError("Unexpected end of input");if(q===-1)q=W;let z=$.slice(U,q);if(Z===void 0)V8(D,z,J);else{if(F===void 0)V8(J,z,!0);else if(X)V8(J,F,z.replace(/\\/g,""));else V8(J,F,z);V8(D,Z,J)}return D}function z1$($){return Object.keys($).map((D)=>{let J=$[D];if(!Array.isArray(J))J=[J];return J.map((X)=>{return[D].concat(Object.keys(X).map((Q)=>{let Y=X[Q];if(!Array.isArray(Y))Y=[Y];return Y.map((Z)=>Z===!0?Q:`${Q}=${Z}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}SX0.exports={format:z1$,parse:W1$}});var dV=A((nk$,dX0)=>{var H1$=s("events"),O1$=s("https"),V1$=s("http"),_X0=s("net"),K1$=s("tls"),{randomBytes:N1$,createHash:M1$}=s("crypto"),{Duplex:ck$,Readable:lk$}=s("stream"),{URL:_P}=s("url"),j7=YY(),L1$=PP(),w1$=xP(),{isBlob:B1$}=ZY(),{BINARY_TYPES:xX0,CLOSE_TIMEOUT:E1$,EMPTY_BUFFER:bV,GUID:R1$,kForOnEventAttribute:kP,kListener:A1$,kStatusCode:I1$,kWebSocket:QD,NOOP:kX0}=H9(),{EventTarget:{addEventListener:j1$,removeEventListener:T1$}}=PX0(),{format:C1$,parse:P1$}=hV(),{toBuffer:S1$}=LG(),uX0=Symbol("kAborted"),uP=[8,13],V9=["CONNECTING","OPEN","CLOSING","CLOSED"],x1$=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class U$ extends H1${constructor($,D,J){super();if(this._binaryType=xX0[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=bV,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=U$.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,$!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,D===void 0)D=[];else if(!Array.isArray(D))if(typeof D==="object"&&D!==null)J=D,D=[];else D=[D];yX0(this,$,D,J)}else this._autoPong=J.autoPong,this._closeTimeout=J.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType($){if(!xX0.includes($))return;if(this._binaryType=$,this._receiver)this._receiver._binaryType=$}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket($,D,J){let X=new L1$({allowSynchronousEvents:J.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:J.maxBufferedChunks,maxFragments:J.maxFragments,maxPayload:J.maxPayload,skipUTF8Validation:J.skipUTF8Validation}),Q=new w1$($,this._extensions,J.generateMask);if(this._receiver=X,this._sender=Q,this._socket=$,X[QD]=this,Q[QD]=this,$[QD]=this,X.on("conclude",k1$),X.on("drain",u1$),X.on("error",y1$),X.on("message",f1$),X.on("ping",h1$),X.on("pong",b1$),Q.onerror=g1$,$.setTimeout)$.setTimeout(0);if($.setNoDelay)$.setNoDelay();if(D.length>0)$.unshift(D);$.on("close",bX0),$.on("data",mV),$.on("end",gX0),$.on("error",mX0),this._readyState=U$.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=U$.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[j7.extensionName])this._extensions[j7.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=U$.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close($,D){if(this.readyState===U$.CLOSED)return;if(this.readyState===U$.CONNECTING){k6(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===U$.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=U$.CLOSING,this._sender.close($,D,!this._isServer,(J)=>{if(J)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),hX0(this)}pause(){if(this.readyState===U$.CONNECTING||this.readyState===U$.CLOSED)return;this._paused=!0,this._socket.pause()}ping($,D,J){if(this.readyState===U$.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=D=void 0;else if(typeof D==="function")J=D,D=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==U$.OPEN){yP(this,$,J);return}if(D===void 0)D=!this._isServer;this._sender.ping($||bV,D,J)}pong($,D,J){if(this.readyState===U$.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=D=void 0;else if(typeof D==="function")J=D,D=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==U$.OPEN){yP(this,$,J);return}if(D===void 0)D=!this._isServer;this._sender.pong($||bV,D,J)}resume(){if(this.readyState===U$.CONNECTING||this.readyState===U$.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send($,D,J){if(this.readyState===U$.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof D==="function")J=D,D={};if(typeof $==="number")$=$.toString();if(this.readyState!==U$.OPEN){yP(this,$,J);return}let X={binary:typeof $!=="string",mask:!this._isServer,compress:!0,fin:!0,...D};if(!this._extensions[j7.extensionName])X.compress=!1;this._sender.send($||bV,X,J)}terminate(){if(this.readyState===U$.CLOSED)return;if(this.readyState===U$.CONNECTING){k6(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=U$.CLOSING,this._socket.destroy()}}Object.defineProperty(U$,"CONNECTING",{enumerable:!0,value:V9.indexOf("CONNECTING")});Object.defineProperty(U$.prototype,"CONNECTING",{enumerable:!0,value:V9.indexOf("CONNECTING")});Object.defineProperty(U$,"OPEN",{enumerable:!0,value:V9.indexOf("OPEN")});Object.defineProperty(U$.prototype,"OPEN",{enumerable:!0,value:V9.indexOf("OPEN")});Object.defineProperty(U$,"CLOSING",{enumerable:!0,value:V9.indexOf("CLOSING")});Object.defineProperty(U$.prototype,"CLOSING",{enumerable:!0,value:V9.indexOf("CLOSING")});Object.defineProperty(U$,"CLOSED",{enumerable:!0,value:V9.indexOf("CLOSED")});Object.defineProperty(U$.prototype,"CLOSED",{enumerable:!0,value:V9.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(($)=>{Object.defineProperty(U$.prototype,$,{enumerable:!0})});["open","error","close","message"].forEach(($)=>{Object.defineProperty(U$.prototype,`on${$}`,{enumerable:!0,get(){for(let D of this.listeners($))if(D[kP])return D[A1$];return null},set(D){for(let J of this.listeners($))if(J[kP]){this.removeListener($,J);break}if(typeof D!=="function")return;this.addEventListener($,D,{[kP]:!0})}})});U$.prototype.addEventListener=j1$;U$.prototype.removeEventListener=T1$;dX0.exports=U$;function yX0($,D,J,X){let Q={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:E1$,protocolVersion:uP[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...X,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if($._autoPong=Q.autoPong,$._closeTimeout=Q.closeTimeout,!uP.includes(Q.protocolVersion))throw RangeError(`Unsupported protocol version: ${Q.protocolVersion} (supported versions: ${uP.join(", ")})`);let Y;if(D instanceof _P)Y=D;else try{Y=new _P(D)}catch{throw SyntaxError(`Invalid URL: ${D}`)}if(Y.protocol==="http:")Y.protocol="ws:";else if(Y.protocol==="https:")Y.protocol="wss:";$._url=Y.href;let Z=Y.protocol==="wss:",F=Y.protocol==="ws+unix:",U;if(Y.protocol!=="ws:"&&!Z&&!F)U=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(F&&!Y.pathname)U="The URL's pathname is empty";else if(Y.hash)U="The URL contains a fragment identifier";if(U){let V=SyntaxError(U);if($._redirects===0)throw V;else{gV($,V);return}}let G=Z?443:80,q=N1$(16).toString("base64"),W=Z?O1$.request:V1$.request,z=new Set,H;if(Q.createConnection=Q.createConnection||(Z?_1$:v1$),Q.defaultPort=Q.defaultPort||G,Q.port=Y.port||G,Q.host=Y.hostname.startsWith("[")?Y.hostname.slice(1,-1):Y.hostname,Q.headers={...Q.headers,"Sec-WebSocket-Version":Q.protocolVersion,"Sec-WebSocket-Key":q,Connection:"Upgrade",Upgrade:"websocket"},Q.path=Y.pathname+Y.search,Q.timeout=Q.handshakeTimeout,Q.perMessageDeflate)H=new j7({...Q.perMessageDeflate,isServer:!1,maxPayload:Q.maxPayload}),Q.headers["Sec-WebSocket-Extensions"]=C1$({[j7.extensionName]:H.offer()});if(J.length){for(let V of J){if(typeof V!=="string"||!x1$.test(V)||z.has(V))throw SyntaxError("An invalid or duplicated subprotocol was specified");z.add(V)}Q.headers["Sec-WebSocket-Protocol"]=J.join(",")}if(Q.origin)if(Q.protocolVersion<13)Q.headers["Sec-WebSocket-Origin"]=Q.origin;else Q.headers.Origin=Q.origin;if(Y.username||Y.password)Q.auth=`${Y.username}:${Y.password}`;if(F){let V=Q.path.split(":");Q.socketPath=V[0],Q.path=V[1]}let O;if(Q.followRedirects){if($._redirects===0){$._originalIpc=F,$._originalSecure=Z,$._originalHostOrSocketPath=F?Q.socketPath:Y.host;let V=X&&X.headers;if(X={...X,headers:{}},V)for(let[K,L]of Object.entries(V))X.headers[K.toLowerCase()]=L}else if($.listenerCount("redirect")===0){let V=F?$._originalIpc?Q.socketPath===$._originalHostOrSocketPath:!1:$._originalIpc?!1:Y.host===$._originalHostOrSocketPath;if(!V||$._originalSecure&&!Z){if(delete Q.headers.authorization,delete Q.headers.cookie,!V)delete Q.headers.host;Q.auth=void 0}}if(Q.auth&&!X.headers.authorization)X.headers.authorization="Basic "+Buffer.from(Q.auth).toString("base64");if(O=$._req=W(Q),$._redirects)$.emit("redirect",$.url,O)}else O=$._req=W(Q);if(Q.timeout)O.on("timeout",()=>{k6($,O,"Opening handshake has timed out")});if(O.on("error",(V)=>{if(O===null||O[uX0])return;O=$._req=null,gV($,V)}),O.on("response",(V)=>{let K=V.headers.location,L=V.statusCode;if(K&&Q.followRedirects&&L>=300&&L<400){if(++$._redirects>Q.maxRedirects){k6($,O,"Maximum redirects exceeded");return}O.abort();let E;try{E=new _P(K,D)}catch(N){let M=SyntaxError(`Invalid URL: ${K}`);gV($,M);return}yX0($,E,J,X)}else if(!$.emit("unexpected-response",O,V))k6($,O,`Unexpected server response: ${V.statusCode}`)}),O.on("upgrade",(V,K,L)=>{if($.emit("upgrade",V),$.readyState!==U$.CONNECTING)return;O=$._req=null;let E=V.headers.upgrade;if(E===void 0||E.toLowerCase()!=="websocket"){k6($,K,"Invalid Upgrade header");return}let N=M1$("sha1").update(q+R1$).digest("base64");if(V.headers["sec-websocket-accept"]!==N){k6($,K,"Invalid Sec-WebSocket-Accept header");return}let M=V.headers["sec-websocket-protocol"],w;if(M!==void 0){if(!z.size)w="Server sent a subprotocol but none was requested";else if(!z.has(M))w="Server sent an invalid subprotocol"}else if(z.size)w="Server sent no subprotocol";if(w){k6($,K,w);return}if(M)$._protocol=M;let R=V.headers["sec-websocket-extensions"];if(R!==void 0){if(!H){k6($,K,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let S;try{S=P1$(R)}catch(I){k6($,K,"Invalid Sec-WebSocket-Extensions header");return}let v=Object.keys(S);if(v.length!==1||v[0]!==j7.extensionName){k6($,K,"Server indicated an extension that was not requested");return}try{H.accept(S[j7.extensionName])}catch(I){k6($,K,"Invalid Sec-WebSocket-Extensions header");return}$._extensions[j7.extensionName]=H}$.setSocket(K,L,{allowSynchronousEvents:Q.allowSynchronousEvents,generateMask:Q.generateMask,maxBufferedChunks:Q.maxBufferedChunks,maxFragments:Q.maxFragments,maxPayload:Q.maxPayload,skipUTF8Validation:Q.skipUTF8Validation})}),Q.finishRequest)Q.finishRequest(O,$);else O.end()}function gV($,D){$._readyState=U$.CLOSING,$._errorEmitted=!0,$.emit("error",D),$.emitClose()}function v1$($){return $.path=$.socketPath,_X0.connect($)}function _1$($){if($.path=void 0,!$.servername&&$.servername!=="")$.servername=_X0.isIP($.host)?"":$.host;return K1$.connect($)}function k6($,D,J){$._readyState=U$.CLOSING;let X=Error(J);if(Error.captureStackTrace(X,k6),D.setHeader){if(D[uX0]=!0,D.abort(),D.socket&&!D.socket.destroyed)D.socket.destroy();process.nextTick(gV,$,X)}else D.destroy(X),D.once("error",$.emit.bind($,"error")),D.once("close",$.emitClose.bind($))}function yP($,D,J){if(D){let X=B1$(D)?D.size:S1$(D).length;if($._socket)$._sender._bufferedBytes+=X;else $._bufferedAmount+=X}if(J){let X=Error(`WebSocket is not open: readyState ${$.readyState} (${V9[$.readyState]})`);process.nextTick(J,X)}}function k1$($,D){let J=this[QD];if(J._closeFrameReceived=!0,J._closeMessage=D,J._closeCode=$,J._socket[QD]===void 0)return;if(J._socket.removeListener("data",mV),process.nextTick(fX0,J._socket),$===1005)J.close();else J.close($,D)}function u1$(){let $=this[QD];if(!$.isPaused)$._socket.resume()}function y1$($){let D=this[QD];if(D._socket[QD]!==void 0)D._socket.removeListener("data",mV),process.nextTick(fX0,D._socket),D.close($[I1$]);if(!D._errorEmitted)D._errorEmitted=!0,D.emit("error",$)}function vX0(){this[QD].emitClose()}function f1$($,D){this[QD].emit("message",$,D)}function h1$($){let D=this[QD];if(D._autoPong)D.pong($,!this._isServer,kX0);D.emit("ping",$)}function b1$($){this[QD].emit("pong",$)}function fX0($){$.resume()}function g1$($){let D=this[QD];if(D.readyState===U$.CLOSED)return;if(D.readyState===U$.OPEN)D._readyState=U$.CLOSING,hX0(D);if(this._socket.end(),!D._errorEmitted)D._errorEmitted=!0,D.emit("error",$)}function hX0($){$._closeTimer=setTimeout($._socket.destroy.bind($._socket),$._closeTimeout)}function bX0(){let $=this[QD];if(this.removeListener("close",bX0),this.removeListener("data",mV),this.removeListener("end",gX0),$._readyState=U$.CLOSING,!this._readableState.endEmitted&&!$._closeFrameReceived&&!$._receiver._writableState.errorEmitted&&this._readableState.length!==0){let D=this.read(this._readableState.length);$._receiver.write(D)}if($._receiver.end(),this[QD]=void 0,clearTimeout($._closeTimer),$._receiver._writableState.finished||$._receiver._writableState.errorEmitted)$.emitClose();else $._receiver.on("error",vX0),$._receiver.on("finish",vX0)}function mV($){if(!this[QD]._receiver.write($))this.pause()}function gX0(){let $=this[QD];$._readyState=U$.CLOSING,$._receiver.end(),this.end()}function mX0(){let $=this[QD];if(this.removeListener("error",mX0),this.on("error",kX0),$)$._readyState=U$.CLOSING,this.destroy()}});var iX0=A((pk$,nX0)=>{var ik$=dV(),{Duplex:m1$}=s("stream");function cX0($){$.emit("close")}function d1$(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function lX0($){if(this.removeListener("error",lX0),this.destroy(),this.listenerCount("error")===0)this.emit("error",$)}function c1$($,D){let J=!0,X=new m1$({...D,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return $.on("message",function(Y,Z){let F=!Z&&X._readableState.objectMode?Y.toString():Y;if(!X.push(F))$.pause()}),$.once("error",function(Y){if(X.destroyed)return;J=!1,X.destroy(Y)}),$.once("close",function(){if(X.destroyed)return;X.push(null)}),X._destroy=function(Q,Y){if($.readyState===$.CLOSED){Y(Q),process.nextTick(cX0,X);return}let Z=!1;if($.once("error",function(U){Z=!0,Y(U)}),$.once("close",function(){if(!Z)Y(Q);process.nextTick(cX0,X)}),J)$.terminate()},X._final=function(Q){if($.readyState===$.CONNECTING){$.once("open",function(){X._final(Q)});return}if($._socket===null)return;if($._socket._writableState.finished){if(Q(),X._readableState.endEmitted)X.destroy()}else $._socket.once("finish",function(){Q()}),$.close()},X._read=function(){if($.isPaused)$.resume()},X._write=function(Q,Y,Z){if($.readyState===$.CONNECTING){$.once("open",function(){X._write(Q,Y,Z)});return}$.send(Q,Z)},X.on("end",d1$),X.on("error",lX0),X}nX0.exports=c1$});var fP=A((rk$,pX0)=>{var{tokenChars:l1$}=ZY();function n1$($){let D=new Set,J=-1,X=-1,Q=0;for(Q;Q<$.length;Q++){let Z=$.charCodeAt(Q);if(X===-1&&l1$[Z]===1){if(J===-1)J=Q}else if(Q!==0&&(Z===32||Z===9)){if(X===-1&&J!==-1)X=Q}else if(Z===44){if(J===-1)throw SyntaxError(`Unexpected character at index ${Q}`);if(X===-1)X=Q;let F=$.slice(J,X);if(D.has(F))throw SyntaxError(`The "${F}" subprotocol is duplicated`);D.add(F),J=X=-1}else throw SyntaxError(`Unexpected character at index ${Q}`)}if(J===-1||X!==-1)throw SyntaxError("Unexpected end of input");let Y=$.slice(J,Q);if(D.has(Y))throw SyntaxError(`The "${Y}" subprotocol is duplicated`);return D.add(Y),D}pX0.exports={parse:n1$}});var sX0=A((ak$,tX0)=>{var i1$=s("events"),cV=s("http"),{Duplex:ok$}=s("stream"),{createHash:p1$}=s("crypto"),rX0=hV(),q5=YY(),r1$=fP(),o1$=dV(),{CLOSE_TIMEOUT:a1$,GUID:t1$,kWebSocket:s1$}=H9(),e1$=/^[+/0-9A-Za-z]{22}==$/;class aX0 extends i1${constructor($,D){super();if($={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:a1$,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:o1$,...$},$.port==null&&!$.server&&!$.noServer||$.port!=null&&($.server||$.noServer)||$.server&&$.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if($.port!=null)this._server=cV.createServer((J,X)=>{let Q=cV.STATUS_CODES[426];X.writeHead(426,{"Content-Length":Q.length,"Content-Type":"text/plain"}),X.end(Q)}),this._server.listen($.port,$.host,$.backlog,D);else if($.server)this._server=$.server;if(this._server){let J=this.emit.bind(this,"connection");this._removeListeners=$D$(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(X,Q,Y)=>{this.handleUpgrade(X,Q,Y,J)}})}if($.perMessageDeflate===!0)$.perMessageDeflate={};if($.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=$,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close($){if(this._state===2){if($)this.once("close",()=>{$(Error("The server is not running"))});process.nextTick(AG,this);return}if($)this.once("close",$);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(AG,this);else this._shouldEmitClose=!0;else process.nextTick(AG,this)}else{let D=this._server;this._removeListeners(),this._removeListeners=this._server=null,D.close(()=>{AG(this)})}}shouldHandle($){if(this.options.path){let D=$.url.indexOf("?");if((D!==-1?$.url.slice(0,D):$.url)!==this.options.path)return!1}return!0}handleUpgrade($,D,J,X){D.on("error",oX0);let Q=$.headers["sec-websocket-key"],Y=$.headers.upgrade,Z=+$.headers["sec-websocket-version"];if($.method!=="GET"){W5(this,$,D,405,"Invalid HTTP method");return}if(Y===void 0||Y.toLowerCase()!=="websocket"){W5(this,$,D,400,"Invalid Upgrade header");return}if(Q===void 0||!e1$.test(Q)){W5(this,$,D,400,"Missing or invalid Sec-WebSocket-Key header");return}if(Z!==13&&Z!==8){W5(this,$,D,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle($)){IG(D,400);return}let F=$.headers["sec-websocket-protocol"],U=new Set;if(F!==void 0)try{U=r1$.parse(F)}catch(W){W5(this,$,D,400,"Invalid Sec-WebSocket-Protocol header");return}let G=$.headers["sec-websocket-extensions"],q={};if(this.options.perMessageDeflate&&G!==void 0){let W=new q5({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let z=rX0.parse(G);if(z[q5.extensionName])W.accept(z[q5.extensionName]),q[q5.extensionName]=W}catch(z){W5(this,$,D,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let W={origin:$.headers[`${Z===8?"sec-websocket-origin":"origin"}`],secure:!!($.socket.authorized||$.socket.encrypted),req:$};if(this.options.verifyClient.length===2){this.options.verifyClient(W,(z,H,O,V)=>{if(!z)return IG(D,H||401,O,V);this.completeUpgrade(q,Q,U,$,D,J,X)});return}if(!this.options.verifyClient(W))return IG(D,401)}this.completeUpgrade(q,Q,U,$,D,J,X)}completeUpgrade($,D,J,X,Q,Y,Z){if(!Q.readable||!Q.writable)return Q.destroy();if(Q[s1$])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return IG(Q,503);let U=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${p1$("sha1").update(D+t1$).digest("base64")}`],G=new this.options.WebSocket(null,void 0,this.options);if(J.size){let q=this.options.handleProtocols?this.options.handleProtocols(J,X):J.values().next().value;if(q)U.push(`Sec-WebSocket-Protocol: ${q}`),G._protocol=q}if($[q5.extensionName]){let q=$[q5.extensionName].params,W=rX0.format({[q5.extensionName]:[q]});U.push(`Sec-WebSocket-Extensions: ${W}`),G._extensions=$}if(this.emit("headers",U,X),Q.write(U.concat(`\r
|
|
406
|
+
)`).eq("name",J).eq("app_id",D).single();if(Q)throw B.error(`Error fetching native packages: ${Q.message}`),Error(`Error fetching native packages: ${Q.message}`);return $$$(X.version?.native_packages??[])}function k$($,D){return $||D?.plugins?.CapacitorUpdater?.appId||D?.appId}function E7($){let D=[];if(!$.localVersion)return{compatible:!0,reasons:[],message:"Package only exists on remote (will be removed)"};if(!$.remoteVersion)return D.push("new_plugin"),{compatible:!1,reasons:D,message:"New native plugin added (requires app store update)"};let J=!1;try{let W=X3($.localVersion),z=X3($.remoteVersion);J=Fu(W,z)}catch{J=!1}if(!J)D.push("version_mismatch");if($.localRequestedVersion&&$.remoteRequestedVersion&&$.localRequestedVersion.trim()!==$.remoteRequestedVersion.trim())D.push("requested_version_changed");let X=(W)=>typeof W==="string"&&W.trim().length>0,Q=X($.localIosChecksum)&&X($.remoteIosChecksum)&&$.localIosChecksum!==$.remoteIosChecksum,Y=X($.localAndroidChecksum)&&X($.remoteAndroidChecksum)&&$.localAndroidChecksum!==$.remoteAndroidChecksum;if(Q&&Y)D.push("both_platforms_changed");else if(Q)D.push("ios_code_changed");else if(Y)D.push("android_code_changed");let Z=X($.localIosChecksum)!==X($.remoteIosChecksum),F=X($.localAndroidChecksum)!==X($.remoteAndroidChecksum);if(Z||F)D.push("platform_checksum_metadata_changed");let U=[],G=(W)=>W!=="requested_version_changed";for(let W of D)switch(W){case"version_mismatch":U.push(`version changed: ${$.remoteVersion} → ${$.localVersion}`);break;case"requested_version_changed":U.push(`requested version changed: ${$.remoteRequestedVersion??"unknown"} → ${$.localRequestedVersion??"unknown"}`);break;case"ios_code_changed":U.push("iOS native code changed");break;case"android_code_changed":U.push("Android native code changed");break;case"both_platforms_changed":U.push("iOS and Android native code changed");break;case"platform_checksum_metadata_changed":U.push("iOS/Android checksum metadata appeared or disappeared (may be Capgo CLI change — verify native code)");break;case"new_plugin":U.push("new plugin (requires app store update)");break;case"removed_plugin":U.push("plugin removed");break}if(!D.some(G))return{compatible:!0,reasons:D,message:U.length>0?U.join(", "):"Compatible"};return{compatible:!1,reasons:D,message:U.join(", ")}}function J4($){return E7($).compatible}async function AV($,D,J,X,Q){let Y=await LP(X,Q),Z=await V50($,D,J),F=Y.filter((G)=>!!G.native).map((G)=>{let q=Z.get(G.name);if(q)return{name:G.name,localVersion:G.version,localRequestedVersion:G.requested_version,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,localIosChecksum:G.ios_checksum,remoteIosChecksum:q.ios_checksum,localAndroidChecksum:G.android_checksum,remoteAndroidChecksum:q.android_checksum};return{name:G.name,localVersion:G.version,localRequestedVersion:G.requested_version,remoteVersion:void 0,localIosChecksum:G.ios_checksum,localAndroidChecksum:G.android_checksum}}),U=[...Z].filter(([G])=>!Y.some((q)=>q.name===G)).map(([G,q])=>({name:G,localVersion:void 0,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,remoteIosChecksum:q.ios_checksum,remoteAndroidChecksum:q.android_checksum}));return F.push(...U),{finalCompatibility:F,localDependencies:Y}}async function NG($,D,J,X){let Q=await V50($,D,J),Y=X.map((F)=>{let U=Q.get(F.name);if(U)return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:U.version,remoteRequestedVersion:U.requested_version,localIosChecksum:F.ios_checksum,remoteIosChecksum:U.ios_checksum,localAndroidChecksum:F.android_checksum,remoteAndroidChecksum:U.android_checksum};return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:void 0,localIosChecksum:F.ios_checksum,localAndroidChecksum:F.android_checksum}}),Z=[...Q].filter(([F])=>!X.some((U)=>U.name===F)).map(([F,U])=>({name:F,localVersion:void 0,remoteVersion:U.version,remoteRequestedVersion:U.requested_version,remoteIosChecksum:U.ios_checksum,remoteAndroidChecksum:U.android_checksum}));return Y.push(...Z),{finalCompatibility:Y,localDependencies:X}}function K50($){if(!d$($))return null;try{return JSON.parse(P1($,"utf-8"))}catch{return null}}function FV($){if(!$)return!1;return/@capgo\/capacitor-updater|CapgoCapacitorUpdater|CapacitorUpdaterPlugin/.test($)}function D$$($){let D=K50($);if(!D)return!1;let J=D.packageClassList;return Array.isArray(J)&&J.includes("CapacitorUpdaterPlugin")}function J$$($,D){if(!D)return N$($,v4);return WG.isAbsolute(D)?D:aQ($,D)}function X$$($=e6(),D){let J=J$$($,D),X=WG.basename(J)===v4?GG(J):J,Q=[N$(X,"ios","App"),N$($,"ios","App")].find((R)=>d$(R));if(!Q)return{shouldCheck:!1,valid:!0,details:[]};let Y=K50(J),Z={...Y?.dependencies,...Y?.devDependencies,...Y?.optionalDependencies},F=Object.hasOwn(Z,"@capgo/capacitor-updater"),U=[X,$].some((R)=>d$(N$(R,"node_modules","@capgo","capacitor-updater"))),G=N$(Q,"Podfile"),q=N$(Q,"CapApp-SPM","Package.swift"),W=d$(G)?P1(G,"utf-8"):void 0,z=d$(q)?P1(q,"utf-8"):void 0,H=FV(W)||FV(z),O=N$(Q,"Podfile.lock"),V=N$(Q,"App","capacitor.plugins.json"),K=N$(Q,"App","capacitor.config.json"),L=d$(O)?P1(O,"utf-8"):void 0,E=d$(V)?P1(V,"utf-8"):void 0,N=FV(L)||FV(E)||D$$(K);if(!(F||U||H||N))return{shouldCheck:!1,valid:!0,details:[]};let w=[];if(!H)w.push(`Missing @capgo/capacitor-updater in iOS dependency files (${G} or ${q})`);if(!N)w.push(`Missing @capgo/capacitor-updater in iOS native project outputs (${O}, ${V}, or ${K})`);return{shouldCheck:!0,valid:H&&N,details:w}}async function N50($,D,J,X){let Q=await O1({message:"Would you like to sync your project with Capacitor now? This is recommended to ensure encrypted updates work properly."});if(K$(Q)){if($&&D&&J)await oc("onboarding-v2",D,J,"canceled",void 0,"\uD83E\uDD37");throw B.error("Canceled Capacitor sync"),Error("Capacitor sync cancelled")}if(Q){let Y=X5(),Z=n$();Z.start("Running the command...");let F;try{await new Promise((U,G)=>{let q=_0$(Y.runner,["cap","sync"],{stdio:"pipe"});q.on("close",(W)=>{if(W===0)U();else G(Error(`Command failed with exit code ${W}`))}),q.on("error",(W)=>{G(W)})})}catch(U){F=U,B.error(`Failed to run Capacitor sync: ${U}`),B.warn(`Please run "${Y.runner} cap sync" manually to ensure encrypted updates work properly`)}if(X?.validateIosUpdater){let U=X$$(e6(),X.packageJsonPath);if(U.shouldCheck&&!U.valid){let G=t0$(Y.runner,"ios");Z.stop("iOS sync check failed ❌"),B.error("Capgo iOS dependency sync verification failed.");for(let q of U.details)B.error(q);throw B.error("Stop here to avoid testing on a broken native iOS project."),B.warn(G.summary),B.info(G.command),Error("iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.")}}if(F){Z.stop("Error");return}Z.stop("Capacitor sync completed ✅")}else{let Y=X5();B.warn("⚠️ Important: If you upload encrypted bundles without syncing, updates will fail!"),B.info(`Remember to run "${Y.runner} cap sync" before uploading encrypted bundles`)}}var OP,cJ0,lJ0,WV,tQ=".capgo_key",$4=".capgo_key_v2",zV,z9,uJ0="https://capgo.app",yJ0="https://files.capgo.app",HP="https://api.capgo.app",GV="https://console.capgo.app",VP=120000,h0$=20971520,b0$=1073741824,g0$=103809024,zG,HG=1e4,v4="package.json",sQ,pJ0,MV="5.10.0",LV="6.25.0",VG="7.0.30",bJ0=!1,oQ="npm",UG="install",zP="npx";var D$=a(()=>{nk();F$();d8();th();aw();CW();ac();vE();KU();NU();yE();$80();UJ0();JV();OP=j$(uL(),1),cJ0=j$(hL(),1),lJ0=j$(Wg(),1),WV=j$(TW(),1),zV=`${tQ}.pub`,z9=`${$4}.pub`;zG=[0,1000,3000,5000,1e4];sQ=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*))*))?(?:\+([0-9a-z-]+(?:\.[0-9a-z-]+)*))?$/i;pJ0=/([A-Za-z0-9]+)\.(java|swift|kt|scala)$/});function C50($,D,J={},X){let Q=`${$}:${D}`,Y=T50.get(Q);if(Y)return Y;let Z=J.createClient??t0,F=(async()=>{try{let G=(await Z($,void 0,void 0,!0,!1)).from("apps").select("owner_org").eq("app_id",D);if(X)G=G.abortSignal(X);let{data:q}=await G.maybeSingle();return q?.owner_org??void 0}catch{return}})();return T50.set(Q,F),F}var T50;var P50=a(()=>{D$();T50=new Map});function Y$$($){if($&&typeof $==="object"&&"status"in $){let D=$.status;if(typeof D==="number")return D}return}function Z$$($){if($ instanceof Error)return $.message;if(typeof $==="string")return $;return""}function S50($){if($&&typeof $==="object"&&"code"in $){let X=$.code;if(typeof X==="string"&&X.startsWith("commander."))return"commander"}let D=Y$$($);if(D!==void 0){if(D===401)return"unauthorized";if(D===403)return"forbidden";if(D===404)return"not_found";if(D===413)return"payload_too_large";if(D>=500)return"server_error"}let J=Z$$($).toLowerCase();if(/econnrefused|enotfound|fetch failed|network|socket|dns/.test(J))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(J))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(J))return"validation_error";return"unknown"}function x50($){if($===401)return"unauthorized";if($===403)return"forbidden";if($===404)return"not_found";if($===408||$===504)return"timeout";if($===413)return"payload_too_large";if($===429)return"rate_limited";if($===400||$===422)return"validation_error";if($>=500)return"server_error";return"unknown"}import{AsyncLocalStorage as F$$}from"node:async_hooks";import{env as v50}from"node:process";function U$$(){return OQ(v50.CAPGO_DISABLE_TELEMETRY)||OQ(v50.CAPGO_DISABLE_POSTHOG)}function G$$($){_50.add($),$.finally(()=>_50.delete($))}function q$$($,D){let J=u50.get($);if(J)return J;let X=(async()=>{try{let Q=await Q$(!0).catch(()=>{return}),Y=k$("",Q?.config)||void 0;if(!Y)return{};let Z=await C50($,Y,{},D);return{appId:Y,orgId:Z}}catch{return{}}})();return u50.set($,X),X}function B$($){if(U$$())return Promise.resolve();let D=$.apikey??NV();if(!D)return Promise.resolve();let J=new AbortController;k50.add(J);let X=(async()=>{try{let{appId:Q,orgId:Y}=$;if(Q===void 0&&Y===void 0){let F=await q$$(D,J.signal);Q=F.appId,Y=F.orgId}let Z={...Q?{app_id:Q}:{},...$.tags??{}};await n0(D,{channel:$.channel,event:$.event,icon:$.icon??"\uD83D\uDCCA",notify:!1,tracking_version:2,...Y?{org_id:Y}:{},tags:Z},!1,J.signal).catch(()=>{})}catch{}finally{k50.delete(J)}})();return G$$(X),X}function O$$($){let D=$.durationMs>lc;if($.ok&&!D)return;let J=z$$.getStore()??W$$,X={operation:nc($.url,$.method),method:$.method,status_code:$.status,duration_ms:$.durationMs,ok:$.ok,slow:D};if($.source)X.source=$.source;if(J)X.command_path=J;if(!$.ok)X.error_category=$.error!==void 0?S50($.error):x50($.status);B$({apikey:$.apikey,channel:H$$,event:"Supabase Call",icon:"⏱️",tags:X})}var _50,k50,u50,W$$="",z$$,H$$="cli-perf";var MD=a(()=>{a8();yE();D$();P50();CW();aw();CW();_50=new Set,k50=new Set;u50=new Map;z$$=new F$$;cc(O$$)});var H9=A((_k$,$X0)=>{var s50=["nodebuffer","arraybuffer","fragments"],e50=typeof Blob<"u";if(e50)s50.push("blob");$X0.exports={BINARY_TYPES:s50,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:e50,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var LG=A((kk$,xV)=>{var{EMPTY_BUFFER:u$$}=H9(),AP=Buffer[Symbol.species];function y$$($,D){if($.length===0)return u$$;if($.length===1)return $[0];let J=Buffer.allocUnsafe(D),X=0;for(let Q=0;Q<$.length;Q++){let Y=$[Q];J.set(Y,X),X+=Y.length}if(X<D)return new AP(J.buffer,J.byteOffset,X);return J}function DX0($,D,J,X,Q){for(let Y=0;Y<Q;Y++)J[X+Y]=$[Y]^D[Y&3]}function JX0($,D){for(let J=0;J<$.length;J++)$[J]^=D[J&3]}function f$$($){if($.length===$.buffer.byteLength)return $.buffer;return $.buffer.slice($.byteOffset,$.byteOffset+$.length)}function IP($){if(IP.readOnly=!0,Buffer.isBuffer($))return $;let D;if($ instanceof ArrayBuffer)D=new AP($);else if(ArrayBuffer.isView($))D=new AP($.buffer,$.byteOffset,$.byteLength);else D=Buffer.from($),IP.readOnly=!1;return D}xV.exports={concat:y$$,mask:DX0,toArrayBuffer:f$$,toBuffer:IP,unmask:JX0};if(!process.env.WS_NO_BUFFER_UTIL)try{let $=(()=>{throw new Error("Cannot require module "+"bufferutil");})();xV.exports.mask=function(D,J,X,Q,Y){if(Y<48)DX0(D,J,X,Q,Y);else $.mask(D,J,X,Q,Y)},xV.exports.unmask=function(D,J){if(D.length<32)JX0(D,J);else $.unmask(D,J)}}catch($){}});var ZX0=A((uk$,YX0)=>{var XX0=Symbol("kDone"),jP=Symbol("kRun");class QX0{constructor($){this[XX0]=()=>{this.pending--,this[jP]()},this.concurrency=$||1/0,this.jobs=[],this.pending=0}add($){this.jobs.push($),this[jP]()}[jP](){if(this.pending===this.concurrency)return;if(this.jobs.length){let $=this.jobs.shift();this.pending++,$(this[XX0])}}}YX0.exports=QX0});var YY=A((yk$,WX0)=>{var wG=s("zlib"),FX0=LG(),h$$=ZX0(),{kStatusCode:UX0}=H9(),b$$=Buffer[Symbol.species],g$$=Buffer.from([0,0,255,255]),_V=Symbol("permessage-deflate"),O9=Symbol("total-length"),XY=Symbol("callback"),R7=Symbol("buffers"),QY=Symbol("error"),vV;class GX0{constructor($){if(this._options=$||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!vV){let D=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;vV=new h$$(D)}}static get extensionName(){return"permessage-deflate"}offer(){let $={};if(this._options.serverNoContextTakeover)$.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)$.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)$.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)$.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)$.client_max_window_bits=!0;return $}accept($){return $=this.normalizeParams($),this.params=this._isServer?this.acceptAsServer($):this.acceptAsClient($),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let $=this._deflate[XY];if(this._deflate.close(),this._deflate=null,$)$(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer($){let D=this._options,J=$.find((X)=>{if(D.serverNoContextTakeover===!1&&X.server_no_context_takeover||X.server_max_window_bits&&(D.serverMaxWindowBits===!1||typeof D.serverMaxWindowBits==="number"&&D.serverMaxWindowBits>X.server_max_window_bits)||typeof D.clientMaxWindowBits==="number"&&!X.client_max_window_bits)return!1;return!0});if(!J)throw Error("None of the extension offers can be accepted");if(D.serverNoContextTakeover)J.server_no_context_takeover=!0;if(D.clientNoContextTakeover)J.client_no_context_takeover=!0;if(typeof D.serverMaxWindowBits==="number")J.server_max_window_bits=D.serverMaxWindowBits;if(typeof D.clientMaxWindowBits==="number")J.client_max_window_bits=D.clientMaxWindowBits;else if(J.client_max_window_bits===!0||D.clientMaxWindowBits===!1)delete J.client_max_window_bits;return J}acceptAsClient($){let D=$[0];if(this._options.clientNoContextTakeover===!1&&D.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!D.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")D.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&D.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return D}normalizeParams($){return $.forEach((D)=>{Object.keys(D).forEach((J)=>{let X=D[J];if(X.length>1)throw Error(`Parameter "${J}" must have only a single value`);if(X=X[0],J==="client_max_window_bits"){if(X!==!0){let Q=+X;if(!Number.isInteger(Q)||Q<8||Q>15)throw TypeError(`Invalid value for parameter "${J}": ${X}`);X=Q}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${J}": ${X}`)}else if(J==="server_max_window_bits"){let Q=+X;if(!Number.isInteger(Q)||Q<8||Q>15)throw TypeError(`Invalid value for parameter "${J}": ${X}`);X=Q}else if(J==="client_no_context_takeover"||J==="server_no_context_takeover"){if(X!==!0)throw TypeError(`Invalid value for parameter "${J}": ${X}`)}else throw Error(`Unknown parameter "${J}"`);D[J]=X})}),$}decompress($,D,J){vV.add((X)=>{this._decompress($,D,(Q,Y)=>{X(),J(Q,Y)})})}compress($,D,J){vV.add((X)=>{this._compress($,D,(Q,Y)=>{X(),J(Q,Y)})})}_decompress($,D,J){let X=this._isServer?"client":"server";if(!this._inflate){let Q=`${X}_max_window_bits`,Y=typeof this.params[Q]!=="number"?wG.Z_DEFAULT_WINDOWBITS:this.params[Q];this._inflate=wG.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Y}),this._inflate[_V]=this,this._inflate[O9]=0,this._inflate[R7]=[],this._inflate.on("error",d$$),this._inflate.on("data",qX0)}if(this._inflate[XY]=J,this._inflate.write($),D)this._inflate.write(g$$);this._inflate.flush(()=>{let Q=this._inflate[QY];if(Q){this._inflate.close(),this._inflate=null,J(Q);return}let Y=FX0.concat(this._inflate[R7],this._inflate[O9]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[O9]=0,this._inflate[R7]=[],D&&this.params[`${X}_no_context_takeover`])this._inflate.reset();J(null,Y)})}_compress($,D,J){let X=this._isServer?"server":"client";if(!this._deflate){let Q=`${X}_max_window_bits`,Y=typeof this.params[Q]!=="number"?wG.Z_DEFAULT_WINDOWBITS:this.params[Q];this._deflate=wG.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Y}),this._deflate[O9]=0,this._deflate[R7]=[],this._deflate.on("data",m$$)}this._deflate[XY]=J,this._deflate.write($),this._deflate.flush(wG.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let Q=FX0.concat(this._deflate[R7],this._deflate[O9]);if(D)Q=new b$$(Q.buffer,Q.byteOffset,Q.length-4);if(this._deflate[XY]=null,this._deflate[O9]=0,this._deflate[R7]=[],D&&this.params[`${X}_no_context_takeover`])this._deflate.reset();J(null,Q)})}}WX0.exports=GX0;function m$$($){this[R7].push($),this[O9]+=$.length}function qX0($){if(this[O9]+=$.length,this[_V]._maxPayload<1||this[O9]<=this[_V]._maxPayload){this[R7].push($);return}this[QY]=RangeError("Max payload size exceeded"),this[QY].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[QY][UX0]=1009,this.removeListener("data",qX0),this.reset()}function d$$($){if(this[_V]._inflate=null,this[QY]){this[XY](this[QY]);return}$[UX0]=1007,this[XY]($)}});var ZY=A((fk$,kV)=>{var{isUtf8:zX0}=s("buffer"),{hasBlob:c$$}=H9(),l$$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function n$$($){return $>=1000&&$<=1014&&$!==1004&&$!==1005&&$!==1006||$>=3000&&$<=4999}function TP($){let D=$.length,J=0;while(J<D)if(($[J]&128)===0)J++;else if(($[J]&224)===192){if(J+1===D||($[J+1]&192)!==128||($[J]&254)===192)return!1;J+=2}else if(($[J]&240)===224){if(J+2>=D||($[J+1]&192)!==128||($[J+2]&192)!==128||$[J]===224&&($[J+1]&224)===128||$[J]===237&&($[J+1]&224)===160)return!1;J+=3}else if(($[J]&248)===240){if(J+3>=D||($[J+1]&192)!==128||($[J+2]&192)!==128||($[J+3]&192)!==128||$[J]===240&&($[J+1]&240)===128||$[J]===244&&$[J+1]>143||$[J]>244)return!1;J+=4}else return!1;return!0}function i$$($){return c$$&&typeof $==="object"&&typeof $.arrayBuffer==="function"&&typeof $.type==="string"&&typeof $.stream==="function"&&($[Symbol.toStringTag]==="Blob"||$[Symbol.toStringTag]==="File")}kV.exports={isBlob:i$$,isValidStatusCode:n$$,isValidUTF8:TP,tokenChars:l$$};if(zX0)kV.exports.isValidUTF8=function($){return $.length<24?TP($):zX0($)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let $=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();kV.exports.isValidUTF8=function(D){return D.length<32?TP(D):$(D)}}catch($){}});var PP=A((hk$,NX0)=>{var{Writable:p$$}=s("stream"),HX0=YY(),{BINARY_TYPES:r$$,EMPTY_BUFFER:OX0,kStatusCode:o$$,kWebSocket:a$$}=H9(),{concat:CP,toArrayBuffer:t$$,unmask:s$$}=LG(),{isValidStatusCode:e$$,isValidUTF8:VX0}=ZY(),uV=Buffer[Symbol.species];class KX0 extends p$${constructor($={}){super();this._allowSynchronousEvents=$.allowSynchronousEvents!==void 0?$.allowSynchronousEvents:!0,this._binaryType=$.binaryType||r$$[0],this._extensions=$.extensions||{},this._isServer=!!$.isServer,this._maxBufferedChunks=$.maxBufferedChunks|0,this._maxFragments=$.maxFragments|0,this._maxPayload=$.maxPayload|0,this._skipUTF8Validation=!!$.skipUTF8Validation,this[a$$]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write($,D,J){if(this._opcode===8&&this._state==0)return J();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){J(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=$.length,this._buffers.push($),this.startLoop(J)}consume($){if(this._bufferedBytes-=$,$===this._buffers[0].length)return this._buffers.shift();if($<this._buffers[0].length){let J=this._buffers[0];return this._buffers[0]=new uV(J.buffer,J.byteOffset+$,J.length-$),new uV(J.buffer,J.byteOffset,$)}let D=Buffer.allocUnsafe($);do{let J=this._buffers[0],X=D.length-$;if($>=J.length)D.set(this._buffers.shift(),X);else D.set(new Uint8Array(J.buffer,J.byteOffset,$),X),this._buffers[0]=new uV(J.buffer,J.byteOffset+$,J.length-$);$-=J.length}while($>0);return D}startLoop($){this._loop=!0;do switch(this._state){case 0:this.getInfo($);break;case 1:this.getPayloadLength16($);break;case 2:this.getPayloadLength64($);break;case 3:this.getMask();break;case 4:this.getData($);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)$()}getInfo($){if(this._bufferedBytes<2){this._loop=!1;return}let D=this.consume(2);if((D[0]&48)!==0){let X=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");$(X);return}let J=(D[0]&64)===64;if(J&&!this._extensions[HX0.extensionName]){let X=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(X);return}if(this._fin=(D[0]&128)===128,this._opcode=D[0]&15,this._payloadLength=D[1]&127,this._opcode===0){if(J){let X=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(X);return}if(!this._fragmented){let X=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");$(X);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let X=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(X);return}this._compressed=J}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let X=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");$(X);return}if(J){let X=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(X);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let X=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");$(X);return}}else{let X=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(X);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(D[1]&128)===128,this._isServer){if(!this._masked){let X=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");$(X);return}}else if(this._masked){let X=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");$(X);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength($)}getPayloadLength16($){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength($)}getPayloadLength64($){if(this._bufferedBytes<8){this._loop=!1;return}let D=this.consume(8),J=D.readUInt32BE(0);if(J>Math.pow(2,21)-1){let X=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");$(X);return}this._payloadLength=J*Math.pow(2,32)+D.readUInt32BE(4),this.haveLength($)}haveLength($){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let D=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");$(D);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData($){let D=OX0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(D=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)s$$(D,this._mask)}if(this._opcode>7){this.controlMessage(D,$);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let J=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");$(J);return}if(this._compressed){this._state=5,this.decompress(D,$);return}if(D.length)this._messageLength=this._totalPayloadLength,this._fragments.push(D);this.dataMessage($)}decompress($,D){this._extensions[HX0.extensionName].decompress($,this._fin,(X,Q)=>{if(X)return D(X);if(Q.length){if(this._messageLength+=Q.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Y=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");D(Y);return}this._fragments.push(Q)}if(this.dataMessage(D),this._state===0)this.startLoop(D)})}dataMessage($){if(!this._fin){this._state=0;return}let D=this._messageLength,J=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let X;if(this._binaryType==="nodebuffer")X=CP(J,D);else if(this._binaryType==="arraybuffer")X=t$$(CP(J,D));else if(this._binaryType==="blob")X=new Blob(J);else X=J;if(this._allowSynchronousEvents)this.emit("message",X,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",X,!0),this._state=0,this.startLoop($)})}else{let X=CP(J,D);if(!this._skipUTF8Validation&&!VX0(X)){let Q=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");$(Q);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",X,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",X,!1),this._state=0,this.startLoop($)})}}controlMessage($,D){if(this._opcode===8){if($.length===0)this._loop=!1,this.emit("conclude",1005,OX0),this.end();else{let J=$.readUInt16BE(0);if(!e$$(J)){let Q=this.createError(RangeError,`invalid status code ${J}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");D(Q);return}let X=new uV($.buffer,$.byteOffset+2,$.length-2);if(!this._skipUTF8Validation&&!VX0(X)){let Q=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");D(Q);return}this._loop=!1,this.emit("conclude",J,X),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",$),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",$),this._state=0,this.startLoop(D)})}createError($,D,J,X,Q){this._loop=!1,this._errored=!0;let Y=new $(J?`Invalid WebSocket frame: ${D}`:D);return Error.captureStackTrace(Y,this.createError),Y.code=Q,Y[o$$]=X,Y}}NX0.exports=KX0});var xP=A((gk$,wX0)=>{var{Duplex:bk$}=s("stream"),{randomFillSync:$1$}=s("crypto"),{types:{isUint8Array:D1$}}=s("util"),MX0=YY(),{EMPTY_BUFFER:J1$,kWebSocket:X1$,NOOP:Q1$}=H9(),{isBlob:FY,isValidStatusCode:Y1$}=ZY(),{mask:LX0,toBuffer:U5}=LG(),X4=Symbol("kByteLength"),Z1$=Buffer.alloc(4),G5,UY=8192,_4=0,F1$=1,U1$=2;class A7{constructor($,D,J){if(this._extensions=D||{},J)this._generateMask=J,this._maskBuffer=Buffer.alloc(4);this._socket=$,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=_4,this.onerror=Q1$,this[X1$]=void 0}static frame($,D){let J,X=!1,Q=2,Y=!1;if(D.mask){if(J=D.maskBuffer||Z1$,D.generateMask)D.generateMask(J);else{if(UY===8192){if(G5===void 0)G5=Buffer.alloc(8192);$1$(G5,0,8192),UY=0}J[0]=G5[UY++],J[1]=G5[UY++],J[2]=G5[UY++],J[3]=G5[UY++]}Y=(J[0]|J[1]|J[2]|J[3])===0,Q=6}let Z;if(typeof $==="string")if((!D.mask||Y)&&D[X4]!==void 0)Z=D[X4];else $=Buffer.from($),Z=$.length;else Z=$.length,X=D.mask&&D.readOnly&&!Y;let F=Z;if(Z>=65536)Q+=8,F=127;else if(Z>125)Q+=2,F=126;let U=Buffer.allocUnsafe(X?Z+Q:Q);if(U[0]=D.fin?D.opcode|128:D.opcode,D.rsv1)U[0]|=64;if(U[1]=F,F===126)U.writeUInt16BE(Z,2);else if(F===127)U[2]=U[3]=0,U.writeUIntBE(Z,4,6);if(!D.mask)return[U,$];if(U[1]|=128,U[Q-4]=J[0],U[Q-3]=J[1],U[Q-2]=J[2],U[Q-1]=J[3],Y)return[U,$];if(X)return LX0($,J,U,Q,Z),[U];return LX0($,J,$,0,Z),[U,$]}close($,D,J,X){let Q;if($===void 0)Q=J1$;else if(typeof $!=="number"||!Y1$($))throw TypeError("First argument must be a valid error code number");else if(D===void 0||!D.length)Q=Buffer.allocUnsafe(2),Q.writeUInt16BE($,0);else{let Z=Buffer.byteLength(D);if(Z>123)throw RangeError("The message must not be greater than 123 bytes");if(Q=Buffer.allocUnsafe(2+Z),Q.writeUInt16BE($,0),typeof D==="string")Q.write(D,2);else if(D1$(D))Q.set(D,2);else throw TypeError("Second argument must be a string or a Uint8Array")}let Y={[X4]:Q.length,fin:!0,generateMask:this._generateMask,mask:J,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==_4)this.enqueue([this.dispatch,Q,!1,Y,X]);else this.sendFrame(A7.frame(Q,Y),X)}ping($,D,J){let X,Q;if(typeof $==="string")X=Buffer.byteLength($),Q=!1;else if(FY($))X=$.size,Q=!1;else $=U5($),X=$.length,Q=U5.readOnly;if(X>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[X4]:X,fin:!0,generateMask:this._generateMask,mask:D,maskBuffer:this._maskBuffer,opcode:9,readOnly:Q,rsv1:!1};if(FY($))if(this._state!==_4)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==_4)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(A7.frame($,Y),J)}pong($,D,J){let X,Q;if(typeof $==="string")X=Buffer.byteLength($),Q=!1;else if(FY($))X=$.size,Q=!1;else $=U5($),X=$.length,Q=U5.readOnly;if(X>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[X4]:X,fin:!0,generateMask:this._generateMask,mask:D,maskBuffer:this._maskBuffer,opcode:10,readOnly:Q,rsv1:!1};if(FY($))if(this._state!==_4)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==_4)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(A7.frame($,Y),J)}send($,D,J){let X=this._extensions[MX0.extensionName],Q=D.binary?2:1,Y=D.compress,Z,F;if(typeof $==="string")Z=Buffer.byteLength($),F=!1;else if(FY($))Z=$.size,F=!1;else $=U5($),Z=$.length,F=U5.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Y&&X&&X.params[X._isServer?"server_no_context_takeover":"client_no_context_takeover"])Y=Z>=X._threshold;this._compress=Y}else Y=!1,Q=0;if(D.fin)this._firstFragment=!0;let U={[X4]:Z,fin:D.fin,generateMask:this._generateMask,mask:D.mask,maskBuffer:this._maskBuffer,opcode:Q,readOnly:F,rsv1:Y};if(FY($))if(this._state!==_4)this.enqueue([this.getBlobData,$,this._compress,U,J]);else this.getBlobData($,this._compress,U,J);else if(this._state!==_4)this.enqueue([this.dispatch,$,this._compress,U,J]);else this.dispatch($,this._compress,U,J)}getBlobData($,D,J,X){this._bufferedBytes+=J[X4],this._state=U1$,$.arrayBuffer().then((Q)=>{if(this._socket.destroyed){let Z=Error("The socket was closed while the blob was being read");process.nextTick(SP,this,Z,X);return}this._bufferedBytes-=J[X4];let Y=U5(Q);if(!D)this._state=_4,this.sendFrame(A7.frame(Y,J),X),this.dequeue();else this.dispatch(Y,D,J,X)}).catch((Q)=>{process.nextTick(G1$,this,Q,X)})}dispatch($,D,J,X){if(!D){this.sendFrame(A7.frame($,J),X);return}let Q=this._extensions[MX0.extensionName];this._bufferedBytes+=J[X4],this._state=F1$,Q.compress($,J.fin,(Y,Z)=>{if(this._socket.destroyed){let F=Error("The socket was closed while data was being compressed");SP(this,F,X);return}this._bufferedBytes-=J[X4],this._state=_4,J.readOnly=!1,this.sendFrame(A7.frame(Z,J),X),this.dequeue()})}dequeue(){while(this._state===_4&&this._queue.length){let $=this._queue.shift();this._bufferedBytes-=$[3][X4],Reflect.apply($[0],this,$.slice(1))}}enqueue($){this._bufferedBytes+=$[3][X4],this._queue.push($)}sendFrame($,D){if($.length===2)this._socket.cork(),this._socket.write($[0]),this._socket.write($[1],D),this._socket.uncork();else this._socket.write($[0],D)}}wX0.exports=A7;function SP($,D,J){if(typeof J==="function")J(D);for(let X=0;X<$._queue.length;X++){let Q=$._queue[X],Y=Q[Q.length-1];if(typeof Y==="function")Y(D)}}function G1$($,D,J){SP($,D,J),$.onerror(D)}});var PX0=A((mk$,CX0)=>{var{kForOnEventAttribute:BG,kListener:vP}=H9(),BX0=Symbol("kCode"),EX0=Symbol("kData"),RX0=Symbol("kError"),AX0=Symbol("kMessage"),IX0=Symbol("kReason"),GY=Symbol("kTarget"),jX0=Symbol("kType"),TX0=Symbol("kWasClean");class I7{constructor($){this[GY]=null,this[jX0]=$}get target(){return this[GY]}get type(){return this[jX0]}}Object.defineProperty(I7.prototype,"target",{enumerable:!0});Object.defineProperty(I7.prototype,"type",{enumerable:!0});class qY extends I7{constructor($,D={}){super($);this[BX0]=D.code===void 0?0:D.code,this[IX0]=D.reason===void 0?"":D.reason,this[TX0]=D.wasClean===void 0?!1:D.wasClean}get code(){return this[BX0]}get reason(){return this[IX0]}get wasClean(){return this[TX0]}}Object.defineProperty(qY.prototype,"code",{enumerable:!0});Object.defineProperty(qY.prototype,"reason",{enumerable:!0});Object.defineProperty(qY.prototype,"wasClean",{enumerable:!0});class EG extends I7{constructor($,D={}){super($);this[RX0]=D.error===void 0?null:D.error,this[AX0]=D.message===void 0?"":D.message}get error(){return this[RX0]}get message(){return this[AX0]}}Object.defineProperty(EG.prototype,"error",{enumerable:!0});Object.defineProperty(EG.prototype,"message",{enumerable:!0});class fV extends I7{constructor($,D={}){super($);this[EX0]=D.data===void 0?null:D.data}get data(){return this[EX0]}}Object.defineProperty(fV.prototype,"data",{enumerable:!0});var q1$={addEventListener($,D,J={}){for(let Q of this.listeners($))if(!J[BG]&&Q[vP]===D&&!Q[BG])return;let X;if($==="message")X=function(Y,Z){let F=new fV("message",{data:Z?Y:Y.toString()});F[GY]=this,yV(D,this,F)};else if($==="close")X=function(Y,Z){let F=new qY("close",{code:Y,reason:Z.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});F[GY]=this,yV(D,this,F)};else if($==="error")X=function(Y){let Z=new EG("error",{error:Y,message:Y.message});Z[GY]=this,yV(D,this,Z)};else if($==="open")X=function(){let Y=new I7("open");Y[GY]=this,yV(D,this,Y)};else return;if(X[BG]=!!J[BG],X[vP]=D,J.once)this.once($,X);else this.on($,X)},removeEventListener($,D){for(let J of this.listeners($))if(J[vP]===D&&!J[BG]){this.removeListener($,J);break}}};CX0.exports={CloseEvent:qY,ErrorEvent:EG,Event:I7,EventTarget:q1$,MessageEvent:fV};function yV($,D,J){if(typeof $==="object"&&$.handleEvent)$.handleEvent.call($,J);else $.call(D,J)}});var hV=A((dk$,SX0)=>{var{tokenChars:RG}=ZY();function V8($,D,J){if($[D]===void 0)$[D]=[J];else $[D].push(J)}function W1$($){let D=Object.create(null),J=Object.create(null),X=!1,Q=!1,Y=!1,Z,F,U=-1,G=-1,q=-1,W=0;for(;W<$.length;W++)if(G=$.charCodeAt(W),Z===void 0)if(q===-1&&RG[G]===1){if(U===-1)U=W}else if(W!==0&&(G===32||G===9)){if(q===-1&&U!==-1)q=W}else if(G===59||G===44){if(U===-1)throw SyntaxError(`Unexpected character at index ${W}`);if(q===-1)q=W;let H=$.slice(U,q);if(G===44)V8(D,H,J),J=Object.create(null);else Z=H;U=q=-1}else throw SyntaxError(`Unexpected character at index ${W}`);else if(F===void 0)if(q===-1&&RG[G]===1){if(U===-1)U=W}else if(G===32||G===9){if(q===-1&&U!==-1)q=W}else if(G===59||G===44){if(U===-1)throw SyntaxError(`Unexpected character at index ${W}`);if(q===-1)q=W;if(V8(J,$.slice(U,q),!0),G===44)V8(D,Z,J),J=Object.create(null),Z=void 0;U=q=-1}else if(G===61&&U!==-1&&q===-1)F=$.slice(U,W),U=q=-1;else throw SyntaxError(`Unexpected character at index ${W}`);else if(Q){if(RG[G]!==1)throw SyntaxError(`Unexpected character at index ${W}`);if(U===-1)U=W;else if(!X)X=!0;Q=!1}else if(Y)if(RG[G]===1){if(U===-1)U=W}else if(G===34&&U!==-1)Y=!1,q=W;else if(G===92)Q=!0;else throw SyntaxError(`Unexpected character at index ${W}`);else if(G===34&&$.charCodeAt(W-1)===61)Y=!0;else if(q===-1&&RG[G]===1){if(U===-1)U=W}else if(U!==-1&&(G===32||G===9)){if(q===-1)q=W}else if(G===59||G===44){if(U===-1)throw SyntaxError(`Unexpected character at index ${W}`);if(q===-1)q=W;let H=$.slice(U,q);if(X)H=H.replace(/\\/g,""),X=!1;if(V8(J,F,H),G===44)V8(D,Z,J),J=Object.create(null),Z=void 0;F=void 0,U=q=-1}else throw SyntaxError(`Unexpected character at index ${W}`);if(U===-1||Y||G===32||G===9)throw SyntaxError("Unexpected end of input");if(q===-1)q=W;let z=$.slice(U,q);if(Z===void 0)V8(D,z,J);else{if(F===void 0)V8(J,z,!0);else if(X)V8(J,F,z.replace(/\\/g,""));else V8(J,F,z);V8(D,Z,J)}return D}function z1$($){return Object.keys($).map((D)=>{let J=$[D];if(!Array.isArray(J))J=[J];return J.map((X)=>{return[D].concat(Object.keys(X).map((Q)=>{let Y=X[Q];if(!Array.isArray(Y))Y=[Y];return Y.map((Z)=>Z===!0?Q:`${Q}=${Z}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}SX0.exports={format:z1$,parse:W1$}});var dV=A((nk$,dX0)=>{var H1$=s("events"),O1$=s("https"),V1$=s("http"),_X0=s("net"),K1$=s("tls"),{randomBytes:N1$,createHash:M1$}=s("crypto"),{Duplex:ck$,Readable:lk$}=s("stream"),{URL:_P}=s("url"),j7=YY(),L1$=PP(),w1$=xP(),{isBlob:B1$}=ZY(),{BINARY_TYPES:xX0,CLOSE_TIMEOUT:E1$,EMPTY_BUFFER:bV,GUID:R1$,kForOnEventAttribute:kP,kListener:A1$,kStatusCode:I1$,kWebSocket:QD,NOOP:kX0}=H9(),{EventTarget:{addEventListener:j1$,removeEventListener:T1$}}=PX0(),{format:C1$,parse:P1$}=hV(),{toBuffer:S1$}=LG(),uX0=Symbol("kAborted"),uP=[8,13],V9=["CONNECTING","OPEN","CLOSING","CLOSED"],x1$=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class U$ extends H1${constructor($,D,J){super();if(this._binaryType=xX0[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=bV,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=U$.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,$!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,D===void 0)D=[];else if(!Array.isArray(D))if(typeof D==="object"&&D!==null)J=D,D=[];else D=[D];yX0(this,$,D,J)}else this._autoPong=J.autoPong,this._closeTimeout=J.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType($){if(!xX0.includes($))return;if(this._binaryType=$,this._receiver)this._receiver._binaryType=$}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket($,D,J){let X=new L1$({allowSynchronousEvents:J.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:J.maxBufferedChunks,maxFragments:J.maxFragments,maxPayload:J.maxPayload,skipUTF8Validation:J.skipUTF8Validation}),Q=new w1$($,this._extensions,J.generateMask);if(this._receiver=X,this._sender=Q,this._socket=$,X[QD]=this,Q[QD]=this,$[QD]=this,X.on("conclude",k1$),X.on("drain",u1$),X.on("error",y1$),X.on("message",f1$),X.on("ping",h1$),X.on("pong",b1$),Q.onerror=g1$,$.setTimeout)$.setTimeout(0);if($.setNoDelay)$.setNoDelay();if(D.length>0)$.unshift(D);$.on("close",bX0),$.on("data",mV),$.on("end",gX0),$.on("error",mX0),this._readyState=U$.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=U$.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[j7.extensionName])this._extensions[j7.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=U$.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close($,D){if(this.readyState===U$.CLOSED)return;if(this.readyState===U$.CONNECTING){k6(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===U$.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=U$.CLOSING,this._sender.close($,D,!this._isServer,(J)=>{if(J)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),hX0(this)}pause(){if(this.readyState===U$.CONNECTING||this.readyState===U$.CLOSED)return;this._paused=!0,this._socket.pause()}ping($,D,J){if(this.readyState===U$.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=D=void 0;else if(typeof D==="function")J=D,D=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==U$.OPEN){yP(this,$,J);return}if(D===void 0)D=!this._isServer;this._sender.ping($||bV,D,J)}pong($,D,J){if(this.readyState===U$.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=D=void 0;else if(typeof D==="function")J=D,D=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==U$.OPEN){yP(this,$,J);return}if(D===void 0)D=!this._isServer;this._sender.pong($||bV,D,J)}resume(){if(this.readyState===U$.CONNECTING||this.readyState===U$.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send($,D,J){if(this.readyState===U$.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof D==="function")J=D,D={};if(typeof $==="number")$=$.toString();if(this.readyState!==U$.OPEN){yP(this,$,J);return}let X={binary:typeof $!=="string",mask:!this._isServer,compress:!0,fin:!0,...D};if(!this._extensions[j7.extensionName])X.compress=!1;this._sender.send($||bV,X,J)}terminate(){if(this.readyState===U$.CLOSED)return;if(this.readyState===U$.CONNECTING){k6(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=U$.CLOSING,this._socket.destroy()}}Object.defineProperty(U$,"CONNECTING",{enumerable:!0,value:V9.indexOf("CONNECTING")});Object.defineProperty(U$.prototype,"CONNECTING",{enumerable:!0,value:V9.indexOf("CONNECTING")});Object.defineProperty(U$,"OPEN",{enumerable:!0,value:V9.indexOf("OPEN")});Object.defineProperty(U$.prototype,"OPEN",{enumerable:!0,value:V9.indexOf("OPEN")});Object.defineProperty(U$,"CLOSING",{enumerable:!0,value:V9.indexOf("CLOSING")});Object.defineProperty(U$.prototype,"CLOSING",{enumerable:!0,value:V9.indexOf("CLOSING")});Object.defineProperty(U$,"CLOSED",{enumerable:!0,value:V9.indexOf("CLOSED")});Object.defineProperty(U$.prototype,"CLOSED",{enumerable:!0,value:V9.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(($)=>{Object.defineProperty(U$.prototype,$,{enumerable:!0})});["open","error","close","message"].forEach(($)=>{Object.defineProperty(U$.prototype,`on${$}`,{enumerable:!0,get(){for(let D of this.listeners($))if(D[kP])return D[A1$];return null},set(D){for(let J of this.listeners($))if(J[kP]){this.removeListener($,J);break}if(typeof D!=="function")return;this.addEventListener($,D,{[kP]:!0})}})});U$.prototype.addEventListener=j1$;U$.prototype.removeEventListener=T1$;dX0.exports=U$;function yX0($,D,J,X){let Q={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:E1$,protocolVersion:uP[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...X,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if($._autoPong=Q.autoPong,$._closeTimeout=Q.closeTimeout,!uP.includes(Q.protocolVersion))throw RangeError(`Unsupported protocol version: ${Q.protocolVersion} (supported versions: ${uP.join(", ")})`);let Y;if(D instanceof _P)Y=D;else try{Y=new _P(D)}catch{throw SyntaxError(`Invalid URL: ${D}`)}if(Y.protocol==="http:")Y.protocol="ws:";else if(Y.protocol==="https:")Y.protocol="wss:";$._url=Y.href;let Z=Y.protocol==="wss:",F=Y.protocol==="ws+unix:",U;if(Y.protocol!=="ws:"&&!Z&&!F)U=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(F&&!Y.pathname)U="The URL's pathname is empty";else if(Y.hash)U="The URL contains a fragment identifier";if(U){let V=SyntaxError(U);if($._redirects===0)throw V;else{gV($,V);return}}let G=Z?443:80,q=N1$(16).toString("base64"),W=Z?O1$.request:V1$.request,z=new Set,H;if(Q.createConnection=Q.createConnection||(Z?_1$:v1$),Q.defaultPort=Q.defaultPort||G,Q.port=Y.port||G,Q.host=Y.hostname.startsWith("[")?Y.hostname.slice(1,-1):Y.hostname,Q.headers={...Q.headers,"Sec-WebSocket-Version":Q.protocolVersion,"Sec-WebSocket-Key":q,Connection:"Upgrade",Upgrade:"websocket"},Q.path=Y.pathname+Y.search,Q.timeout=Q.handshakeTimeout,Q.perMessageDeflate)H=new j7({...Q.perMessageDeflate,isServer:!1,maxPayload:Q.maxPayload}),Q.headers["Sec-WebSocket-Extensions"]=C1$({[j7.extensionName]:H.offer()});if(J.length){for(let V of J){if(typeof V!=="string"||!x1$.test(V)||z.has(V))throw SyntaxError("An invalid or duplicated subprotocol was specified");z.add(V)}Q.headers["Sec-WebSocket-Protocol"]=J.join(",")}if(Q.origin)if(Q.protocolVersion<13)Q.headers["Sec-WebSocket-Origin"]=Q.origin;else Q.headers.Origin=Q.origin;if(Y.username||Y.password)Q.auth=`${Y.username}:${Y.password}`;if(F){let V=Q.path.split(":");Q.socketPath=V[0],Q.path=V[1]}let O;if(Q.followRedirects){if($._redirects===0){$._originalIpc=F,$._originalSecure=Z,$._originalHostOrSocketPath=F?Q.socketPath:Y.host;let V=X&&X.headers;if(X={...X,headers:{}},V)for(let[K,L]of Object.entries(V))X.headers[K.toLowerCase()]=L}else if($.listenerCount("redirect")===0){let V=F?$._originalIpc?Q.socketPath===$._originalHostOrSocketPath:!1:$._originalIpc?!1:Y.host===$._originalHostOrSocketPath;if(!V||$._originalSecure&&!Z){if(delete Q.headers.authorization,delete Q.headers.cookie,!V)delete Q.headers.host;Q.auth=void 0}}if(Q.auth&&!X.headers.authorization)X.headers.authorization="Basic "+Buffer.from(Q.auth).toString("base64");if(O=$._req=W(Q),$._redirects)$.emit("redirect",$.url,O)}else O=$._req=W(Q);if(Q.timeout)O.on("timeout",()=>{k6($,O,"Opening handshake has timed out")});if(O.on("error",(V)=>{if(O===null||O[uX0])return;O=$._req=null,gV($,V)}),O.on("response",(V)=>{let K=V.headers.location,L=V.statusCode;if(K&&Q.followRedirects&&L>=300&&L<400){if(++$._redirects>Q.maxRedirects){k6($,O,"Maximum redirects exceeded");return}O.abort();let E;try{E=new _P(K,D)}catch(N){let M=SyntaxError(`Invalid URL: ${K}`);gV($,M);return}yX0($,E,J,X)}else if(!$.emit("unexpected-response",O,V))k6($,O,`Unexpected server response: ${V.statusCode}`)}),O.on("upgrade",(V,K,L)=>{if($.emit("upgrade",V),$.readyState!==U$.CONNECTING)return;O=$._req=null;let E=V.headers.upgrade;if(E===void 0||E.toLowerCase()!=="websocket"){k6($,K,"Invalid Upgrade header");return}let N=M1$("sha1").update(q+R1$).digest("base64");if(V.headers["sec-websocket-accept"]!==N){k6($,K,"Invalid Sec-WebSocket-Accept header");return}let M=V.headers["sec-websocket-protocol"],w;if(M!==void 0){if(!z.size)w="Server sent a subprotocol but none was requested";else if(!z.has(M))w="Server sent an invalid subprotocol"}else if(z.size)w="Server sent no subprotocol";if(w){k6($,K,w);return}if(M)$._protocol=M;let R=V.headers["sec-websocket-extensions"];if(R!==void 0){if(!H){k6($,K,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let S;try{S=P1$(R)}catch(I){k6($,K,"Invalid Sec-WebSocket-Extensions header");return}let v=Object.keys(S);if(v.length!==1||v[0]!==j7.extensionName){k6($,K,"Server indicated an extension that was not requested");return}try{H.accept(S[j7.extensionName])}catch(I){k6($,K,"Invalid Sec-WebSocket-Extensions header");return}$._extensions[j7.extensionName]=H}$.setSocket(K,L,{allowSynchronousEvents:Q.allowSynchronousEvents,generateMask:Q.generateMask,maxBufferedChunks:Q.maxBufferedChunks,maxFragments:Q.maxFragments,maxPayload:Q.maxPayload,skipUTF8Validation:Q.skipUTF8Validation})}),Q.finishRequest)Q.finishRequest(O,$);else O.end()}function gV($,D){$._readyState=U$.CLOSING,$._errorEmitted=!0,$.emit("error",D),$.emitClose()}function v1$($){return $.path=$.socketPath,_X0.connect($)}function _1$($){if($.path=void 0,!$.servername&&$.servername!=="")$.servername=_X0.isIP($.host)?"":$.host;return K1$.connect($)}function k6($,D,J){$._readyState=U$.CLOSING;let X=Error(J);if(Error.captureStackTrace(X,k6),D.setHeader){if(D[uX0]=!0,D.abort(),D.socket&&!D.socket.destroyed)D.socket.destroy();process.nextTick(gV,$,X)}else D.destroy(X),D.once("error",$.emit.bind($,"error")),D.once("close",$.emitClose.bind($))}function yP($,D,J){if(D){let X=B1$(D)?D.size:S1$(D).length;if($._socket)$._sender._bufferedBytes+=X;else $._bufferedAmount+=X}if(J){let X=Error(`WebSocket is not open: readyState ${$.readyState} (${V9[$.readyState]})`);process.nextTick(J,X)}}function k1$($,D){let J=this[QD];if(J._closeFrameReceived=!0,J._closeMessage=D,J._closeCode=$,J._socket[QD]===void 0)return;if(J._socket.removeListener("data",mV),process.nextTick(fX0,J._socket),$===1005)J.close();else J.close($,D)}function u1$(){let $=this[QD];if(!$.isPaused)$._socket.resume()}function y1$($){let D=this[QD];if(D._socket[QD]!==void 0)D._socket.removeListener("data",mV),process.nextTick(fX0,D._socket),D.close($[I1$]);if(!D._errorEmitted)D._errorEmitted=!0,D.emit("error",$)}function vX0(){this[QD].emitClose()}function f1$($,D){this[QD].emit("message",$,D)}function h1$($){let D=this[QD];if(D._autoPong)D.pong($,!this._isServer,kX0);D.emit("ping",$)}function b1$($){this[QD].emit("pong",$)}function fX0($){$.resume()}function g1$($){let D=this[QD];if(D.readyState===U$.CLOSED)return;if(D.readyState===U$.OPEN)D._readyState=U$.CLOSING,hX0(D);if(this._socket.end(),!D._errorEmitted)D._errorEmitted=!0,D.emit("error",$)}function hX0($){$._closeTimer=setTimeout($._socket.destroy.bind($._socket),$._closeTimeout)}function bX0(){let $=this[QD];if(this.removeListener("close",bX0),this.removeListener("data",mV),this.removeListener("end",gX0),$._readyState=U$.CLOSING,!this._readableState.endEmitted&&!$._closeFrameReceived&&!$._receiver._writableState.errorEmitted&&this._readableState.length!==0){let D=this.read(this._readableState.length);$._receiver.write(D)}if($._receiver.end(),this[QD]=void 0,clearTimeout($._closeTimer),$._receiver._writableState.finished||$._receiver._writableState.errorEmitted)$.emitClose();else $._receiver.on("error",vX0),$._receiver.on("finish",vX0)}function mV($){if(!this[QD]._receiver.write($))this.pause()}function gX0(){let $=this[QD];$._readyState=U$.CLOSING,$._receiver.end(),this.end()}function mX0(){let $=this[QD];if(this.removeListener("error",mX0),this.on("error",kX0),$)$._readyState=U$.CLOSING,this.destroy()}});var iX0=A((pk$,nX0)=>{var ik$=dV(),{Duplex:m1$}=s("stream");function cX0($){$.emit("close")}function d1$(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function lX0($){if(this.removeListener("error",lX0),this.destroy(),this.listenerCount("error")===0)this.emit("error",$)}function c1$($,D){let J=!0,X=new m1$({...D,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return $.on("message",function(Y,Z){let F=!Z&&X._readableState.objectMode?Y.toString():Y;if(!X.push(F))$.pause()}),$.once("error",function(Y){if(X.destroyed)return;J=!1,X.destroy(Y)}),$.once("close",function(){if(X.destroyed)return;X.push(null)}),X._destroy=function(Q,Y){if($.readyState===$.CLOSED){Y(Q),process.nextTick(cX0,X);return}let Z=!1;if($.once("error",function(U){Z=!0,Y(U)}),$.once("close",function(){if(!Z)Y(Q);process.nextTick(cX0,X)}),J)$.terminate()},X._final=function(Q){if($.readyState===$.CONNECTING){$.once("open",function(){X._final(Q)});return}if($._socket===null)return;if($._socket._writableState.finished){if(Q(),X._readableState.endEmitted)X.destroy()}else $._socket.once("finish",function(){Q()}),$.close()},X._read=function(){if($.isPaused)$.resume()},X._write=function(Q,Y,Z){if($.readyState===$.CONNECTING){$.once("open",function(){X._write(Q,Y,Z)});return}$.send(Q,Z)},X.on("end",d1$),X.on("error",lX0),X}nX0.exports=c1$});var fP=A((rk$,pX0)=>{var{tokenChars:l1$}=ZY();function n1$($){let D=new Set,J=-1,X=-1,Q=0;for(Q;Q<$.length;Q++){let Z=$.charCodeAt(Q);if(X===-1&&l1$[Z]===1){if(J===-1)J=Q}else if(Q!==0&&(Z===32||Z===9)){if(X===-1&&J!==-1)X=Q}else if(Z===44){if(J===-1)throw SyntaxError(`Unexpected character at index ${Q}`);if(X===-1)X=Q;let F=$.slice(J,X);if(D.has(F))throw SyntaxError(`The "${F}" subprotocol is duplicated`);D.add(F),J=X=-1}else throw SyntaxError(`Unexpected character at index ${Q}`)}if(J===-1||X!==-1)throw SyntaxError("Unexpected end of input");let Y=$.slice(J,Q);if(D.has(Y))throw SyntaxError(`The "${Y}" subprotocol is duplicated`);return D.add(Y),D}pX0.exports={parse:n1$}});var sX0=A((ak$,tX0)=>{var i1$=s("events"),cV=s("http"),{Duplex:ok$}=s("stream"),{createHash:p1$}=s("crypto"),rX0=hV(),q5=YY(),r1$=fP(),o1$=dV(),{CLOSE_TIMEOUT:a1$,GUID:t1$,kWebSocket:s1$}=H9(),e1$=/^[+/0-9A-Za-z]{22}==$/;class aX0 extends i1${constructor($,D){super();if($={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:a1$,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:o1$,...$},$.port==null&&!$.server&&!$.noServer||$.port!=null&&($.server||$.noServer)||$.server&&$.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if($.port!=null)this._server=cV.createServer((J,X)=>{let Q=cV.STATUS_CODES[426];X.writeHead(426,{"Content-Length":Q.length,"Content-Type":"text/plain"}),X.end(Q)}),this._server.listen($.port,$.host,$.backlog,D);else if($.server)this._server=$.server;if(this._server){let J=this.emit.bind(this,"connection");this._removeListeners=$D$(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(X,Q,Y)=>{this.handleUpgrade(X,Q,Y,J)}})}if($.perMessageDeflate===!0)$.perMessageDeflate={};if($.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=$,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close($){if(this._state===2){if($)this.once("close",()=>{$(Error("The server is not running"))});process.nextTick(AG,this);return}if($)this.once("close",$);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(AG,this);else this._shouldEmitClose=!0;else process.nextTick(AG,this)}else{let D=this._server;this._removeListeners(),this._removeListeners=this._server=null,D.close(()=>{AG(this)})}}shouldHandle($){if(this.options.path){let D=$.url.indexOf("?");if((D!==-1?$.url.slice(0,D):$.url)!==this.options.path)return!1}return!0}handleUpgrade($,D,J,X){D.on("error",oX0);let Q=$.headers["sec-websocket-key"],Y=$.headers.upgrade,Z=+$.headers["sec-websocket-version"];if($.method!=="GET"){W5(this,$,D,405,"Invalid HTTP method");return}if(Y===void 0||Y.toLowerCase()!=="websocket"){W5(this,$,D,400,"Invalid Upgrade header");return}if(Q===void 0||!e1$.test(Q)){W5(this,$,D,400,"Missing or invalid Sec-WebSocket-Key header");return}if(Z!==13&&Z!==8){W5(this,$,D,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle($)){IG(D,400);return}let F=$.headers["sec-websocket-protocol"],U=new Set;if(F!==void 0)try{U=r1$.parse(F)}catch(W){W5(this,$,D,400,"Invalid Sec-WebSocket-Protocol header");return}let G=$.headers["sec-websocket-extensions"],q={};if(this.options.perMessageDeflate&&G!==void 0){let W=new q5({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let z=rX0.parse(G);if(z[q5.extensionName])W.accept(z[q5.extensionName]),q[q5.extensionName]=W}catch(z){W5(this,$,D,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let W={origin:$.headers[`${Z===8?"sec-websocket-origin":"origin"}`],secure:!!($.socket.authorized||$.socket.encrypted),req:$};if(this.options.verifyClient.length===2){this.options.verifyClient(W,(z,H,O,V)=>{if(!z)return IG(D,H||401,O,V);this.completeUpgrade(q,Q,U,$,D,J,X)});return}if(!this.options.verifyClient(W))return IG(D,401)}this.completeUpgrade(q,Q,U,$,D,J,X)}completeUpgrade($,D,J,X,Q,Y,Z){if(!Q.readable||!Q.writable)return Q.destroy();if(Q[s1$])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return IG(Q,503);let U=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${p1$("sha1").update(D+t1$).digest("base64")}`],G=new this.options.WebSocket(null,void 0,this.options);if(J.size){let q=this.options.handleProtocols?this.options.handleProtocols(J,X):J.values().next().value;if(q)U.push(`Sec-WebSocket-Protocol: ${q}`),G._protocol=q}if($[q5.extensionName]){let q=$[q5.extensionName].params,W=rX0.format({[q5.extensionName]:[q]});U.push(`Sec-WebSocket-Extensions: ${W}`),G._extensions=$}if(this.emit("headers",U,X),Q.write(U.concat(`\r
|
|
407
407
|
`).join(`\r
|
|
408
408
|
`)),Q.removeListener("error",oX0),G.setSocket(Q,Y,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(G),G.on("close",()=>{if(this.clients.delete(G),this._shouldEmitClose&&!this.clients.size)process.nextTick(AG,this)});Z(G,X)}}tX0.exports=aX0;function $D$($,D){for(let J of Object.keys(D))$.on(J,D[J]);return function(){for(let X of Object.keys(D))$.removeListener(X,D[X])}}function AG($){$._state=2,$.emit("close")}function oX0(){this.destroy()}function IG($,D,J,X){J=J||cV.STATUS_CODES[D],X={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(J),...X},$.once("finish",$.destroy),$.end(`HTTP/1.1 ${D} ${cV.STATUS_CODES[D]}\r
|
|
409
409
|
`+Object.keys(X).map((Q)=>`${Q}: ${X[Q]}`).join(`\r
|
|
@@ -450,7 +450,7 @@ Private-MAC: `+E.digest().toHex()+`\r
|
|
|
450
450
|
`||Y===";"))X=Q+1}return D}function Fq($){let D=f4($);return D===null?null:L5(D)}function Zq0($){let D=Fq($);if(D===null)return null;let J=JN(D,"productFlavors");if(J===null)return null;let X=Hq0(J).filter((Q)=>Q!=="dimension");if(X.length===0)return null;return{gradle:D,block:J,flavors:X}}function AY$($){let D=Fq($);if(D===null)return!1;let J=D.match(RY$);if(J?.index===void 0)return!1;let X=0;for(let Q=0;Q<J.index;Q++)if(D[Q]==="{")X++;else if(D[Q]==="}")X=Math.max(0,X-1);return X===0}function jY$($){return $.startsWith("/")||/^[A-Za-z]:\\/.test($)}function PY$($){return TY$[$]??CY$}function SY$($){let D=Fq($);if(D===null)return{code:!1,name:!1};return{code:/versionCode\s*[=\s]\s*\S/.test(D),name:/versionName\s*[=\s]\s*["']/.test(D)||/versionName\s*[=\s]\s*\w/.test(D)}}function xY$($){let D=S1(E9($,"android","app","src","main","AndroidManifest.xml"));if(D===null)return{code:!1,name:!1};return{code:/android:versionCode\s*=\s*"/.test(D),name:/android:versionName\s*=\s*"/.test(D)}}var qq0,Yq0=30,BY$=2048,Wq0,zq0,Oq0,Vq0,Kq0,Nq0,Mq0,Lq0,RY$,wq0,IY$,Bq0,Fq0,Eq0,Uq0=34,DN=35,Gq0="https://developer.android.com/google/play/requirements/target-sdk",Rq0,TY$,CY$=24,Aq0,Iq0;var jq0=a(()=>{k7();Xx();Uv();qq0={id:"android/cordova-vars-present",platforms:["android"],appliesTo:wY$,async run($){let D=E9($.projectDir,"android","capacitor-cordova-android-plugins","cordova.variables.gradle");if(Zq(D))return[];return[{id:"android/cordova-vars-present",severity:"error",title:"cordova.variables.gradle is missing — the cloud build cannot compile your Cordova plugins",detail:"This generated file is gitignored; `cap copy` does not create it, only `cap sync` does",fix:"Run `npx cap sync android` before requesting the build"}]}};Wq0={id:"android/gradle-props-heuristics",platforms:["android"],async run($){let D=MF0($.projectDir),J=NF0($.projectDir),X=[],Q=J["org.gradle.parallel"]==="true";if(D>Yq0&&!Q)X.push({id:"android/gradle-props-heuristics",severity:"warning",title:`${D} Gradle modules build serially — org.gradle.parallel is not enabled`,fix:"Add `org.gradle.parallel=true` (and `org.gradle.caching=true`) to android/gradle.properties"});if(Q&&J["org.gradle.workers.max"]==="1")X.push({id:"android/gradle-props-heuristics",severity:"warning",title:"org.gradle.workers.max=1 makes org.gradle.parallel=true a no-op",fix:"Remove the workers.max cap (or raise it) so parallel project execution can work"});let Y=EY$(J["org.gradle.jvmargs"]);if(D>Yq0&&Y!==null&&Y<BY$)X.push({id:"android/gradle-props-heuristics",severity:"warning",title:`Gradle heap -Xmx${Y}m is small for ${D} modules — D8/R8 may stall or OOM`,fix:"Raise org.gradle.jvmargs, e.g. `-Xmx4096m -XX:MaxMetaspaceSize=1024m`"});return X}},zq0={id:"android/play-sa-json",platforms:["android"],appliesTo:($)=>Boolean($.credentials?.PLAY_CONFIG_JSON),async run($){let D;try{D=JSON.parse(Buffer.from($.credentials.PLAY_CONFIG_JSON,"base64").toString("utf8"))}catch{D=void 0}if(!D||typeof D!=="object"||Array.isArray(D))return[{id:"android/play-sa-json",severity:"error",title:"PLAY_CONFIG_JSON does not decode to valid JSON",fix:"Base64-encode the raw service-account .json file"}];let J=D;if(J.type!=="service_account")return[{id:"android/play-sa-json",severity:"error",title:"PLAY_CONFIG_JSON is not a service-account key",detail:`type: ${String(J.type)}`,fix:"Create a service-account key in Google Cloud Console (IAM → Service Accounts → Keys)"}];let X=["private_key","client_email"].filter((Q)=>!J[Q]);if(X.length>0)return[{id:"android/play-sa-json",severity:"error",title:"Service-account JSON is incomplete",detail:`missing: ${X.join(", ")}`,fix:"Re-download the key file — it must contain private_key and client_email"}];return[]}};Oq0={id:"android/flavor-exists",platforms:["android"],appliesTo:($)=>Boolean($.androidFlavor),async run($){let D=f4($.projectDir);if(!D)return[];let J=JN(D,"productFlavors");if(J===null)return[{id:"android/flavor-exists",severity:"error",title:`--android-flavor "${$.androidFlavor}" passed but build.gradle declares no productFlavors`,fix:"Drop the flag or add the flavor to android/app/build.gradle"}];let X=Hq0(J).filter((Q)=>Q!=="dimension");if(X.length===0)return[];if(!X.includes($.androidFlavor))return[{id:"android/flavor-exists",severity:"error",title:`Product flavor "${$.androidFlavor}" not found in build.gradle`,detail:`declared flavors: ${X.join(", ")}`,fix:"Use one of the declared flavors or add the missing one"}];return[]}},Vq0={id:"android/agp8-package-attr",platforms:["android"],async run($){let D=B5($.projectDir),J=f4($.projectDir);if(!D||!J)return[];let X=gG(D.raw),Q=/<manifest[^>]*\spackage\s*=\s*"/.test(X),Y=/namespace\s*[=( ]\s*["']/.test(L5(J));if(Q&&Y)return[{id:"android/agp8-package-attr",severity:"error",title:"AndroidManifest.xml still has a package= attribute — AGP 8+ fails the build",detail:"build.gradle declares `namespace`, so the manifest attribute is forbidden",fix:'Delete the package="…" attribute from android/app/src/main/AndroidManifest.xml'}];return[]}};Kq0={id:"android/applicationid-present",platforms:["android"],appliesTo:($)=>f4($.projectDir)!==null,async run($){let D=Fq($.projectDir);if(D===null)return[];if(/(?:^|[\s;{(])applicationId\s*[=(\s]\s*["'][\w.]+["']/.test(D))return[];let J=JN(D,"productFlavors");if(J!==null&&/applicationId(?:Suffix)?/.test(J))return[];return[{id:"android/applicationid-present",severity:"error",title:"No applicationId is declared in android/app/build.gradle",detail:"Capacitor needs a defaultConfig (or per-flavor) applicationId to assemble the APK/AAB",fix:'Add `applicationId "your.app.id"` to defaultConfig (or per flavor); it must match the Capacitor appId'}]}},Nq0={id:"android/capacitor-build-gradle-applied",platforms:["android"],appliesTo:($)=>f4($.projectDir)!==null,async run($){let D=Fq($.projectDir);if(D===null)return[];let J=/apply\s+from:\s*["']capacitor\.build\.gradle["']/.test(D),X=Zq(E9($.projectDir,"android","app","capacitor.build.gradle"));if(J&&X)return[];if(J&&!X)return[{id:"android/capacitor-build-gradle-applied",severity:"error",title:"app/build.gradle applies capacitor.build.gradle but the file is missing",detail:"This generated file is created by `cap sync`, not `cap copy`",fix:"Run `npx cap sync android` to regenerate android/app/capacitor.build.gradle"}];return[{id:"android/capacitor-build-gradle-applied",severity:"error",title:"app/build.gradle never applies capacitor.build.gradle",detail:'Without `apply from: "capacitor.build.gradle"` the Capacitor plugin dependencies are not wired in',fix:"Run `npx cap sync android`; ensure app/build.gradle has `apply from: 'capacitor.build.gradle'`"}]}},Mq0={id:"android/gradle-wrapper-present",platforms:["android"],appliesTo:($)=>Zq(E9($.projectDir,"android")),async run($){let D=S1(E9($.projectDir,"android","gradle","wrapper","gradle-wrapper.properties"));if(D===null)return[{id:"android/gradle-wrapper-present",severity:"error",title:"The Gradle wrapper is missing — android/gradle/wrapper/gradle-wrapper.properties not found",detail:"The cloud builder runs `./gradlew`, which needs the committed wrapper",fix:"Restore it: `npx cap sync android` or `gradle wrapper`; commit android/gradle/wrapper/ + android/gradlew"}];if(!/^distributionUrl=\S+/m.test(D))return[{id:"android/gradle-wrapper-present",severity:"error",title:"gradle-wrapper.properties has no distributionUrl — Gradle cannot bootstrap",fix:"Add a distributionUrl line (e.g. via `gradle wrapper`) or re-run `npx cap sync android`"}];return[]}};Lq0={id:"android/flavor-dimensions",platforms:["android"],appliesTo:($)=>Zq0($.projectDir)!==null,async run($){let D=Zq0($.projectDir);if(D===null)return[];if(/flavorDimensions?\s*[=(\s]\s*["']/.test(D.gradle))return[];let J=D.flavors.filter((X)=>{let Q=JN(D.block,X);return Q===null||!/(?:^|[\s;{])dimension\s+["']/.test(Q)});if(J.length===0)return[];return[{id:"android/flavor-dimensions",severity:"error",title:"Product flavors are missing a dimension and no top-level flavorDimensions is declared",detail:`flavors without a dimension: ${J.join(", ")}`,fix:'Add `flavorDimensions "default"` and give every flavor `dimension "default"`'}]}},RY$=/(?:apply\s+plugin:\s*["']com\.google\.gms\.google-services["']|id\s*[("']+com\.google\.gms\.google-services)/;wq0={id:"android/google-services-file",platforms:["android"],appliesTo:($)=>f4($.projectDir)!==null&&AY$($.projectDir),async run($){if(Zq(E9($.projectDir,"android","app","google-services.json")))return[];return[{id:"android/google-services-file",severity:"error",title:"com.google.gms.google-services is applied unconditionally but google-services.json is missing",detail:"The unguarded plugin apply fails the build when the config file is absent",fix:"Supply android/app/google-services.json to the cloud build (it is gitignored), or guard/remove the gms apply"}]}},IY$=/^(sdk|ndk)\.dir\s*=\s*(.+)$/gm;Bq0={id:"android/local-properties-committed",platforms:["android"],appliesTo:($)=>Zq(E9($.projectDir,"android","local.properties")),async run($){let D=S1(E9($.projectDir,"android","local.properties"));if(D===null)return[];let J=[];for(let X of D.matchAll(IY$)){let Q=`${X[1]}.dir`;if(jY$(X[2].trim()))J.push({id:"android/local-properties-committed",severity:"warning",title:"android/local.properties is committed with a machine-specific SDK path",detail:`local.properties pins an absolute ${Q}`,fix:"Remove android/local.properties from VCS and gitignore it; the cloud builder sets its own SDK location"})}return J}},Fq0=[{dim:"compileSdk",label:"compileSdkVersion",floor:34},{dim:"targetSdk",label:"targetSdkVersion",floor:34},{dim:"minSdk",label:"minSdkVersion",floor:23}],Eq0={id:"android/sdk-floors",platforms:["android"],appliesTo:($)=>Fq0.some(({dim:D})=>w8($.projectDir,D)!==null),async run($){let D=[];for(let{dim:J,label:X,floor:Q}of Fq0){let Y=w8($.projectDir,J);if(Y===null||Y>=Q)continue;D.push({id:"android/sdk-floors",severity:"warning",title:`${J} ${Y} is below the recommended floor (${Q})`,fix:`Raise ${X} to at least ${Q} in android/variables.gradle`})}return D}},Rq0={id:"android/target-sdk-play",platforms:["android"],appliesTo:($)=>w8($.projectDir,"targetSdk")!==null,async run($){let D=w8($.projectDir,"targetSdk");if(D===null||D>=DN)return[];if(D<Uq0)return[{id:"android/target-sdk-play",severity:"error",title:`targetSdk ${D} is below Play's minimum (${Uq0}) — you cannot publish or stay available`,fix:`Set targetSdkVersion = ${DN} in android/variables.gradle`,docsUrl:Gq0}];let J=Yq($);return[{id:"android/target-sdk-play",severity:J?"error":"warning",title:`targetSdk ${D} is behind Play's submission requirement (${DN})`,detail:J?"Play rejects new apps and updates below this target":"Approaching enforcement — raise before your next submission",fix:`Set targetSdkVersion = ${DN} in android/variables.gradle`,docsUrl:Gq0}]}},TY$={6:22,7:23,8:24};Aq0={id:"android/min-sdk-capacitor",platforms:["android"],appliesTo:($)=>cY($.projectDir)!==null&&w8($.projectDir,"minSdk")!==null,async run($){let D=cY($.projectDir),J=w8($.projectDir,"minSdk");if(D===null||J===null)return[];let X=PY$(D);if(J>=X)return[];return[{id:"android/min-sdk-capacitor",severity:"error",title:`minSdk ${J} is below the Capacitor ${D} floor`,detail:`Capacitor ${D} requires minSdkVersion >= ${X}`,fix:`Raise minSdkVersion to at least ${X} in android/variables.gradle`}]}};Iq0={id:"android/version-fields",platforms:["android"],appliesTo:($)=>f4($.projectDir)!==null,async run($){let D=SY$($.projectDir),J=xY$($.projectDir),X=D.code||J.code,Q=D.name||J.name,Y=[];if(!X){let Z=Yq($);Y.push({id:"android/version-fields",severity:Z?"error":"warning",title:"No versionCode found in app/build.gradle or AndroidManifest.xml",detail:Z?"Google Play rejects an upload without an integer versionCode":"A versionCode is required to assemble a release artifact",fix:"Set versionCode (integer) in android/app/build.gradle defaultConfig (or via the CLI build-number bump)"})}if(!Q)Y.push({id:"android/version-fields",severity:"warning",title:"No versionName found in app/build.gradle or AndroidManifest.xml",fix:"Set versionName in android/app/build.gradle defaultConfig"});return Y}}});var vY$,Tq0;var Cq0=a(()=>{vY$={ios:["BUILD_CERTIFICATE_BASE64","CAPGO_IOS_PROVISIONING_MAP","APP_STORE_CONNECT_TEAM_ID"],android:["ANDROID_KEYSTORE_FILE","KEYSTORE_KEY_ALIAS"]},Tq0={id:"shared/credentials-saved",platforms:["ios","android"],async run($){let D=$.credentials;if(!D||Object.keys(D).length===0)return[{id:"shared/credentials-saved",severity:"error",title:`No ${$.platform} build credentials found`,fix:`Save them first: npx @capgo/cli build credentials save --appId ${$.appId} --platform ${$.platform}`}];let J=vY$[$.platform].filter((X)=>!D[X]);if($.platform==="android"&&!D.KEYSTORE_STORE_PASSWORD&&!D.KEYSTORE_KEY_PASSWORD)J.push("KEYSTORE_STORE_PASSWORD (or KEYSTORE_KEY_PASSWORD)");if(J.length>0)return[{id:"shared/credentials-saved",severity:"error",title:`Incomplete ${$.platform} credentials`,detail:`missing: ${J.join(", ")}`,fix:"Re-run `build credentials save` with the missing values"}];return[]}}});function lY($){return $&&Array.isArray($.value)?$.value:[]}function XN($){if(!$||$.type!==x1.default.asn1.Type.OID||typeof $.value!=="string")return null;try{return x1.default.asn1.derToOid($.value)}catch{return null}}function fY$($){let D=lY($);if(XN(D[0])!==x1.default.pki.oids.pkcs8ShroudedKeyBag)return null;let J=lY(D[1])[0],X=lY(J)[0],Q=lY(X),Y=XN(Q[0]);if(!Y)return null;let Z=lY(Q[1]),F=lY(Z[1]);return{algorithmOid:Y,encryptionSchemeOid:XN(F[0])}}function Gv($,D,J=0){if(J>32)return;let X=fY$($);if(X){D.push(X);return}if(Array.isArray($.value))for(let Q of $.value)Gv(Q,D,J+1);else if($.type===x1.default.asn1.Type.OCTETSTRING&&$.value.length>0)try{Gv(x1.default.asn1.fromDer($.value),D,J+1)}catch{}}function hY$($){if(!Array.isArray($.value))return null;let D=$.value[2];if(!D||!Array.isArray(D.value))return null;let J=D.value[0];if(!J||!Array.isArray(J.value))return null;let X=J.value[0];if(!X||!Array.isArray(X.value))return null;return XN(X.value[0])}function bY$($){try{return x1.default.asn1.fromDer(x1.default.util.decode64($))}catch{throw new qv}}function gY$($){Xq($,"certificate");let D=bY$($),J=[];Gv(D,J);let X=new Set,Q=hY$(D);if(Q!==_Y$)X.add(Q===x1.default.pki.oids.sha256?"SHA-256 MAC":"non-SHA-1 MAC");if(J.length===0)X.add("missing PBESv1 SHA-1/3DES private-key encryption");for(let Y of J){if(Y.algorithmOid===uY$)continue;if(Y.algorithmOid===kY$)X.add(yY$.has(Y.encryptionSchemeOid??"")?"PBES2/AES private-key encryption":"PBES2 private-key encryption");else X.add("unsupported private-key encryption")}return[...X]}function Pq0($){let D=$.attributes?.localKeyId?.[0];return typeof D==="string"?x1.default.util.bytesToHex(D):null}function mY$($,D){let J=[...$.getBags({bagType:x1.default.pki.oids.pkcs8ShroudedKeyBag})[x1.default.pki.oids.pkcs8ShroudedKeyBag]??[],...$.getBags({bagType:x1.default.pki.oids.keyBag})[x1.default.pki.oids.keyBag]??[]],X=new Set(J.map((Y)=>Pq0(Y)).filter((Y)=>Y!==null));if(X.size>0){let Y=D.find((Z)=>{let F=Pq0(Z);return F!==null&&X.has(F)});if(Y?.cert)return Y.cert}let Q=D.find((Y)=>{if(!Y.cert)return!1;return!Y.cert.getExtension("basicConstraints")?.cA});if(Q?.cert)return Q.cert;return D[0]?.cert}function QN($,D){let J=`${D}\x00${$}`,X=Uq.get(J);if(X){if(X.error!==void 0)throw X.error;return X.value}try{let Q=cY$($,D);return Sq0(J,{value:Q}),Q}catch(Q){throw Sq0(J,{error:Q}),Q}}function Sq0($,D){if(Uq.size>=dY$)Uq.delete(Uq.keys().next().value);Uq.set($,D)}function cY$($,D){Xq($,"certificate");let J=x1.default.util.decode64($),X=x1.default.asn1.fromDer(J),Q=x1.default.pkcs12.pkcs12FromAsn1(X,D),Y=Q.getBags({bagType:x1.default.pki.oids.certBag})[x1.default.pki.oids.certBag]??[],Z=mY$(Q,Y);if(!Z)throw Error("no certificate inside the P12");let F=x1.default.asn1.toDer(x1.default.pki.certificateToAsn1(Z)).getBytes(),U=x1.default.md.sha1.create();return U.update(F),{cert:Z,sha1:U.digest().toHex().toLowerCase()}}var x1,_Y$="1.3.14.3.2.26",kY$="1.2.840.113549.1.5.13",uY$="1.2.840.113549.1.12.1.3",yY$,qv,dY$=4,Uq,nY=($,D)=>Boolean($.credentials?.[D]),xq0,vq0,lY$=2592000000,_q0,nY$,iY$,kq0;var Wv=a(()=>{x1=j$(Jq(),1),yY$=new Set(["2.16.840.1.101.3.4.1.2","2.16.840.1.101.3.4.1.22","2.16.840.1.101.3.4.1.42"]);qv=class qv extends Error{constructor(){super("malformed PKCS12 ASN.1");this.name="MalformedP12Error"}};Uq=new Map;xq0={id:"ios/p12-opens",platforms:["ios"],appliesTo:($)=>nY($,"BUILD_CERTIFICATE_BASE64"),async run($){try{return QN($.credentials.BUILD_CERTIFICATE_BASE64,$.credentials.P12_PASSWORD??""),[]}catch(D){let J=D instanceof Error?D.message:String(D);return[{id:"ios/p12-opens",severity:"error",title:/mac|hmac|password|invalid/i.test(J)?"The P12 certificate cannot be opened with the saved password":"The saved certificate is not a valid P12 file",detail:J,fix:"Re-export the .p12 and re-run `build credentials save` with the correct --p12-password"}]}}},vq0={id:"ios/p12-legacy-encryption",platforms:["ios"],appliesTo:($)=>nY($,"BUILD_CERTIFICATE_BASE64"),async run($){let D;try{D=gY$($.credentials.BUILD_CERTIFICATE_BASE64)}catch(J){if(J instanceof qv)return[];throw J}if(D.length===0)return[];return[{id:"ios/p12-legacy-encryption",severity:"error",title:"The P12 certificate uses encryption that the macOS build runner cannot import",detail:`Detected ${D.join(" and ")}. Fastlane security import may report a wrong password even when the password is correct.`,fix:"Re-export the .p12 with PBESv1 SHA-1/3DES encryption and a SHA-1 MAC, then re-run `build credentials save`."}]}},_q0={id:"ios/p12-expiry",platforms:["ios"],appliesTo:($)=>nY($,"BUILD_CERTIFICATE_BASE64"),async run($){let D;try{D=QN($.credentials.BUILD_CERTIFICATE_BASE64,$.credentials.P12_PASSWORD??"")}catch{return[]}let J=D.cert.validity.notAfter,X=J.getTime()-Date.now();if(X<=0)return[{id:"ios/p12-expiry",severity:"error",title:`Signing certificate expired on ${J.toISOString().slice(0,10)}`,fix:"Create a new distribution certificate in the Apple Developer portal and re-save credentials"}];if(X<lY$)return[{id:"ios/p12-expiry",severity:"warning",title:`Signing certificate expires in ${Math.ceil(X/86400000)} day(s) (${J.toISOString().slice(0,10)})`,fix:"Renew it soon to avoid build interruptions"}];return[]}},nY$=/^[A-Z0-9]{10}$/,iY$=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,kq0={id:"ios/asc-key-valid",platforms:["ios"],appliesTo:($)=>nY($,"APPLE_KEY_CONTENT")||nY($,"APPLE_KEY_ID")||nY($,"APPLE_ISSUER_ID"),async run($){let D=[],{APPLE_KEY_ID:J,APPLE_ISSUER_ID:X,APPLE_KEY_CONTENT:Q}=$.credentials??{};if(J&&!nY$.test(J))D.push({id:"ios/asc-key-valid",severity:"error",title:"APPLE_KEY_ID is not a 10-char App Store Connect key ID",detail:`got a ${J.length}-char value (expected 10 uppercase letters/digits)`});if(X&&!iY$.test(X))D.push({id:"ios/asc-key-valid",severity:"error",title:"APPLE_ISSUER_ID is not a UUID",detail:`got a ${X.length}-char value (expected a UUID like 12345678-1234-1234-1234-123456789012)`,fix:"Copy the Issuer ID from App Store Connect → Users and Access → Integrations"});if(Q){let Y="";try{Y=x1.default.util.decode64(Q)}catch{}if(!Y.includes("-----BEGIN PRIVATE KEY-----"))D.push({id:"ios/asc-key-valid",severity:"error",title:"APPLE_KEY_CONTENT does not decode to a .p8 private key PEM",fix:"Base64-encode the raw AuthKey_XXXX.p8 file content"})}return D}}});function x8($){let D=$.credentials?.CAPGO_IOS_PROVISIONING_MAP;if(!D)return[];try{let J=JSON.parse(D);if(!J||typeof J!=="object"||Array.isArray(J))return[];let X=[];for(let[Q,Y]of Object.entries(J))if(typeof Y==="string")X.push({bundleId:Q,base64:Y});else if(Y&&typeof Y==="object"&&typeof Y.profile==="string"){let Z=Y;X.push({bundleId:Q,base64:Z.profile,name:Z.name})}return X}catch{return[]}}function YN($){try{return QK($)}catch{return null}}function yq0($,D){if($==="*")return!0;if($.endsWith(".*"))return D.startsWith($.slice(0,-1));return $===D}var pY$=2592000000,Gq=($)=>x8($).length>0,uq0,fq0,hq0,bq0,gq0;var ZN=a(()=>{YK();Wv();uq0={id:"ios/profile-expiry",platforms:["ios"],appliesTo:Gq,async run($){let D=[];for(let{bundleId:J,base64:X}of x8($)){let Q=YN(X);if(!Q?.expirationDate)continue;let Y=new Date(Q.expirationDate).getTime()-Date.now();if(Y<=0)D.push({id:"ios/profile-expiry",severity:"error",title:`Provisioning profile for "${J}" expired on ${Q.expirationDate.slice(0,10)}`,fix:"Regenerate the profile in the Apple Developer portal and re-save credentials"});else if(Y<pY$)D.push({id:"ios/profile-expiry",severity:"warning",title:`Provisioning profile for "${J}" expires in ${Math.ceil(Y/86400000)} day(s)`})}return D}};fq0={id:"ios/profile-bundle-match",platforms:["ios"],appliesTo:Gq,async run($){let D=[];for(let{bundleId:J,base64:X}of x8($)){let Q=YN(X);if(Q?.bundleId&&!yq0(Q.bundleId,J))D.push({id:"ios/profile-bundle-match",severity:"error",title:`Provisioning profile mapped to "${J}" is for a different bundle id`,detail:`profile: ${Q.bundleId} — assigned to: ${J}`,fix:"Use a profile generated for this bundle id (or a wildcard profile)"})}return D}},hq0={id:"ios/profile-type-vs-mode",platforms:["ios"],appliesTo:($)=>Gq($)&&Boolean($.distributionMode),async run($){let D=[];for(let{bundleId:J,base64:X}of x8($)){let Q=YN(X);if(!Q||Q.profileType==="unknown")continue;if(Q.profileType!==$.distributionMode)D.push({id:"ios/profile-type-vs-mode",severity:"error",title:`Profile for "${J}" is ${Q.profileType} but the build requests ${$.distributionMode}`,fix:$.distributionMode==="app_store"?"Generate an App Store distribution profile, or build with --ios-distribution ad_hoc":"Generate an Ad Hoc profile, or switch --ios-distribution"})}return D}},bq0={id:"ios/cert-profile-pairing",platforms:["ios"],appliesTo:($)=>Gq($)&&Boolean($.credentials?.BUILD_CERTIFICATE_BASE64),async run($){let D;try{D=QN($.credentials.BUILD_CERTIFICATE_BASE64,$.credentials.P12_PASSWORD??"").sha1}catch{return[]}let J=[];for(let{bundleId:X,base64:Q}of x8($)){let Y=YN(Q);if(!Y||Y.certificateSha1s.length===0)continue;if(!Y.certificateSha1s.includes(D))J.push({id:"ios/cert-profile-pairing",severity:"error",title:`Your signing certificate is not included in the provisioning profile for "${X}"`,detail:`cert sha1 ${D} not in [${Y.certificateSha1s.join(", ")}]`,fix:"Regenerate the profile selecting this distribution certificate, then re-save credentials"})}return J}},gq0={id:"ios/targets-covered",platforms:["ios"],appliesTo:Gq,async run($){let{findSignableTargets:D,readPbxproj:J}=await Promise.resolve().then(() => (u4(),ZK)),X=J($.projectDir);if(!X)return[];let Q=D(X),Y=x8($),Z=Q.filter((F)=>F.bundleId&&!Y.some((U)=>yq0(U.bundleId,F.bundleId)));if(Z.length===0)return[];return[{id:"ios/targets-covered",severity:"error",title:`${Z.length} signable target(s) have no provisioning profile mapped`,detail:`uncovered: ${Z.map((F)=>`${F.name} (${F.bundleId})`).join(", ")}`,fix:'Add --ios-provisioning-profile "bundleId=/path/to/profile.mobileprovision" for each and re-save credentials'}]}}});function FN($){return $.config?.server}function zv($){let D=FN($)?.url;return typeof D==="string"&&D!==""?D:null}function tY$($){if(oY$.test($))return"points at localhost / 127.0.0.1";if(rY$.test($))return"points at a private LAN IP (live-reload)";if(aY$.test($))return"points at a dev tunnel host (ngrok / cloudflare / localtunnel)";if(/^http:\/\//i.test($))return"uses cleartext http://";return null}function sY$($){if($==="*")return!0;return/^\*\.[a-z0-9-]+$/i.test($)}function mq0($){let D=FN($)?.allowNavigation;if(!Array.isArray(D))return[];return D.filter((J)=>typeof J==="string"&&sY$(J))}var rY$,oY$,aY$,dq0,cq0,lq0;var nq0=a(()=>{rY$=/^https?:\/\/(?:10\.|172\.(?:1[6-9]|2\d|3[01])\.|192\.168\.)/i,oY$=/^https?:\/\/(?:localhost|127\.0\.0\.1)(?:[:/]|$)/i,aY$=/^https?:\/\/[^/]*\.(?:ngrok\.io|ngrok-free\.app|trycloudflare\.com|loca\.lt)(?:[:/]|$)/i;dq0={id:"ios/capacitor-server-url-shipped",platforms:["ios"],appliesTo:($)=>zv($)!==null,async run($){let D=zv($);if(D===null)return[];let J=S8($),X=tY$(D),Q=X?`server.url ${X} — this ships a live-reload/remote endpoint into the build`:"server.url ships a remote endpoint into the build instead of the bundled web assets";return[{id:"ios/capacitor-server-url-shipped",severity:J?"error":"warning",title:"capacitor.config server.url is set — the build will load a remote URL instead of bundled assets",detail:Q,fix:"Remove the server.url live-reload block before a production build; build web assets and run `npx cap sync`"}]}},cq0={id:"ios/capacitor-server-cleartext",platforms:["ios"],appliesTo:($)=>FN($)?.cleartext===!0,async run($){if(FN($)?.cleartext!==!0)return[];let D=zv($),J=D!==null&&/^http:\/\//i.test(D);return[{id:"ios/capacitor-server-cleartext",severity:J?"error":"warning",title:"capacitor.config server.cleartext is enabled — arbitrary cleartext HTTP traffic is allowed",detail:J?"paired with a cleartext http:// server.url":void 0,fix:"Remove server.cleartext (or set it false) for production; use https or a scoped ATS exception"}]}};lq0={id:"ios/capacitor-allow-navigation-wildcard",platforms:["ios"],appliesTo:($)=>mq0($).length>0,async run($){let D=mq0($);if(D.length===0)return[];return[{id:"ios/capacitor-allow-navigation-wildcard",severity:"warning",title:"capacitor.config server.allowNavigation contains a blanket wildcard",detail:`wildcard entr(y/ies): ${D.join(", ")}`,fix:'Restrict allowNavigation to specific hosts; remove blanket "*" / "*.<tld>" entries'}]}}});function $Z$($){return $.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function DZ$($){return $.match(/buildSettings\s*=\s*\{([\s\S]*?)\n\s*\};/)?.[1]??""}function JZ$($){let D={};for(let J of $.split(`
|
|
451
451
|
`)){let X=J.match(/^\s*([A-Z0-9_]+(?:\[[^\]]*\])?)\s*=\s*(.+?);\s*$/i);if(!X)continue;let Q=X[1],Y=X[2].trim();if(Y.startsWith("("))continue;if(Y.length>=2&&Y.startsWith('"')&&Y.endsWith('"'))Y=Y.slice(1,-1);D[Q]=Y}return D}function Hv($){if(!$)return[];let D=/(\w+)\s*\/\*[^*]*\*\/\s*=\s*\{[^{}]*isa\s*=\s*XCBuildConfiguration;(?:[^{}]*\{[^}]*\})*[^}]*\}/g,J=[];for(let X of $.matchAll(D)){let Q=X[0],Y=X[1],Z=Q.match(/\bname\s*=\s*("[^"]*"|[^;\s]+)\s*;/),F=Z?Z[1].replace(/^"|"$/g,""):"";J.push({id:Y,name:F,settings:JZ$(DZ$(Q))})}return J}function XZ$($){let D=$.match(/isa\s*=\s*PBXProject;[\s\S]*?buildConfigurationList\s*=\s*(\w+)/)?.[1];if(!D)return new Set;return iq0($,D)}function iq0($,D){let J=new RegExp(`${$Z$(D)}\\s*\\/\\*[^*]*\\*\\/\\s*=\\s*\\{[^}]*isa\\s*=\\s*XCConfigurationList;[^}]*\\}`),X=$.match(J)?.[0];if(!X)return new Set;let Q=X.match(/buildConfigurations\s*=\s*\(([^)]*)\)/);if(!Q)return new Set;return new Set(Array.from(Q[1].matchAll(/(\w+)/g),(Y)=>Y[1]))}function Ov($){let D=XZ$($);return Hv($).map((J)=>({name:J.name,settings:J.settings,isProjectLevel:D.has(J.id)}))}function qq($,D){let J=null;for(let X of Hv($)){let Q=X.settings[D];if(Q===void 0)continue;if(X.name==="Release")return Q;if(J===null)J=Q}return J}function Wq($,D){let J=$.match(/^\$\(([A-Z0-9_]+)\)$/i),X=$.match(/^\$\{([A-Z0-9_]+)\}$/i),Q=J?.[1]??X?.[1];if(!Q)return $;return qq(D,Q)??$}function R9($){if(!$)return[];let D=V5($);if(D.length===0)return[];let J=new Map,X=/\w+\s*\/\*[^*]*\*\/\s*=\s*\{[^}]*isa\s*=\s*PBXNativeTarget;[^}]*\}/g;for(let Z of $.matchAll(X)){let F=Z[0],U=F.match(/\bname\s*=\s*("[^"]*"|[^;\s]+)\s*;/),G=F.match(/buildConfigurationList\s*=\s*(\w+)/);if(!U||!G)continue;J.set(U[1].replace(/^"|"$/g,""),G[1])}let Q=Hv($),Y=new Map(Q.map((Z)=>[Z.id,Z]));return D.map((Z)=>{let F=J.get(Z.name),U=F?iq0($,F):new Set,G=Array.from(U).map((q)=>Y.get(q)).filter((q)=>q!==void 0).map((q)=>({name:q.name,settings:q.settings}));return{target:Z,configs:G}})}function zq($){let D=[],J=(X)=>{if(X===void 0)return;let Q=Number.parseFloat(X);if(!Number.isNaN(Q))D.push(Q)};for(let X of Ov($))if(X.isProjectLevel)J(X.settings.IPHONEOS_DEPLOYMENT_TARGET);for(let{target:X,configs:Q}of R9($)){if(X.productType!==eY$)continue;for(let Y of Q)J(Y.settings.IPHONEOS_DEPLOYMENT_TARGET)}return D.length>0?Math.min(...D):null}var eY$="com.apple.product-type.application";var iY=a(()=>{u4()});import{existsSync as QZ$,readFileSync as rq0}from"node:fs";import{dirname as pq0,isAbsolute as YZ$,join as ZZ$,resolve as FZ$}from"node:path";function GZ$($,D){return $.find((J)=>J.name==="Release")?.settings[D]??$.find((J)=>J.name==="Debug")?.settings[D]??$.find((J)=>J.settings[D]!==void 0)?.settings[D]}function qZ$($,D){let J=T7($);if(!J)return;let X;try{X=rq0(J,"utf8")}catch{return}let Q=R9(X).filter(({target:G})=>G.productType===UZ$),Y=Q.find(({target:G,configs:q})=>G.bundleId===D||q.some((W)=>W.settings.PRODUCT_BUNDLE_IDENTIFIER===D))??Q[0],Z=Y?GZ$(Y.configs,"CODE_SIGN_ENTITLEMENTS"):void 0;if(Z===void 0)return;let F=pq0(pq0(J)),U=Z.replace(/\$\((?:SRCROOT|SOURCE_ROOT|PROJECT_DIR)\)|\$\{(?:SRCROOT|SOURCE_ROOT|PROJECT_DIR)\}/g,F);if(/\$\([^)]+\)|\$\{[^}]+\}/.test(U))return null;return YZ$(U)?U:FZ$(F,U)}function A9($,D){let J=qZ$($,D);if(J===null)return null;let X=J??ZZ$($,"ios","App","App","App.entitlements");if(!QZ$(X))return null;try{return{raw:rq0(X,"utf8")}}catch{return null}}function Vv($,D){return K9($,D)}function pY($,D){return N9($,D)}var UZ$="com.apple.product-type.application";var oq0=a(()=>{u4();iY()});import{existsSync as WZ$,readFileSync as zZ$}from"node:fs";import{join as HZ$}from"node:path";function Kv($){return x8($).find((D)=>D.bundleId===$.appId)}function KZ$($){let D=HZ$($,"ios","App","App","Info.plist");if(!WZ$(D))return!1;try{return N9(zZ$(D,"utf8"),"UIBackgroundModes").includes("remote-notification")}catch{return!1}}function D30($){try{return QK($).profileEntitlements}catch{return{}}}function MZ$($){return NZ$.has($)||$.endsWith(".team-identifier")}function LZ$($){return $==="*"||$==="$(AppIdentifierPrefix)*"||/^\$\(\w+\)\*$/.test($)||/^[A-Z0-9]{10}\.\*$/.test($)}function sq0($){if(aq0.test($))return $.replace(aq0,"");if(tq0.test($))return $.replace(tq0,"");return $}function wZ$($){let D=[],J=/<key>([\s\S]*?)<\/key>\s*<(array|string|true|false|dict|integer|real|data|date)(\/)?\s*>/g,X=J.exec($);while(X!==null){let Q=X[1].trim(),Y=X[2],Z=X[3]==="/";if(D.push({key:Q,isArray:Y==="array"}),!Z&&(Y==="dict"||Y==="array")){let F=BZ$($,Y,X.index+X[0].length);if(F>J.lastIndex)J.lastIndex=F}X=J.exec($)}return D}function BZ$($,D,J){let X=new RegExp(`<${D}>|</${D}>`,"g");X.lastIndex=J;let Q=1;for(let Y=X.exec($);Y!==null;Y=X.exec($))if(Y[0]===`<${D}>`)Q++;else if(--Q===0)return X.lastIndex;return $.length}var OZ$=($)=>Kv($)!==void 0,VZ$=($)=>A9($.projectDir,$.appId)!==null,NZ$,aq0,tq0,J30,X30,EZ$,eq0="com.apple.developer.associated-domains",Q30,$30="com.apple.security.application-groups",RZ$,Y30;var Z30=a(()=>{YK();oq0();ZN();NZ$=new Set(["aps-environment","get-task-allow","application-identifier"]);aq0=/^\$\((?:AppIdentifierPrefix|TeamIdentifierPrefix)\)/,tq0=/^[A-Z0-9]{10}\./;J30={id:"ios/entitlements-vs-profile-capability",platforms:["ios"],appliesTo:($)=>OZ$($)&&VZ$($),async run($){let D=A9($.projectDir,$.appId),J=Kv($);if(!D||!J)return[];let X=wZ$(D.raw).filter((Y)=>!MZ$(Y.key));if(X.length===0)return[];let Q=[];for(let{bundleId:Y,base64:Z}of[J]){let F=D30(Z);for(let{key:U,isArray:G}of X)if(G){let q=pY(D.raw,U),W=F[U],z=Array.isArray(W)?W:typeof W==="string"?[W]:[];if(z.some(LZ$))continue;let H=new Set(z.map(sq0)),O=q.filter((V)=>!H.has(sq0(V)));if(O.length>0)Q.push({id:"ios/entitlements-vs-profile-capability",severity:"error",title:`Entitlement "${U}" is not fully covered by the provisioning profile for "${Y}"`,detail:`uncovered ${U} value(s): ${O.join(", ")}`,fix:"Enable the capability for this App ID in the Apple Developer portal, regenerate the profile, and re-save credentials (or remove the unused entitlement)"})}else if(!(U in F))Q.push({id:"ios/entitlements-vs-profile-capability",severity:"error",title:`Entitlement "${U}" is declared by the app but not granted by the provisioning profile for "${Y}"`,detail:`missing capability: ${U}`,fix:"Enable the capability for this App ID in the Apple Developer portal, regenerate the profile, and re-save credentials (or remove the unused entitlement)"})}return Q}},X30={id:"ios/entitlements-aps-environment-vs-mode",platforms:["ios"],appliesTo:($)=>{let D=A9($.projectDir,$.appId);return D!==null&&Vv(D.raw,"aps-environment")!==null&&Boolean($.distributionMode)},async run($){let D=A9($.projectDir,$.appId);if(!D)return[];let J=Vv(D.raw,"aps-environment");if(J===null)return[];let X=Kv($),Q=X?D30(X.base64)["aps-environment"]:void 0,Y=typeof Q==="string"&&Q!==J,Z=[];if($.distributionMode==="app_store"&&J==="development"&&!Y){let F=KZ$($.projectDir);Z.push({id:"ios/entitlements-aps-environment-vs-mode",severity:F?"error":"warning",title:'aps-environment is "development" but the build distributes to the App Store / TestFlight',detail:F?"The app declares the remote-notification background mode, so it needs a production push environment for App Store / TestFlight":"App Store and TestFlight push needs a production environment; this is the default Capacitor leftover and is harmless unless the app uses push notifications",fix:"Set aps-environment=production in App.entitlements and use a production push profile (or remove aps-environment if the app does not use push)"})}else if($.distributionMode==="ad_hoc"&&J==="production"&&!Y)Z.push({id:"ios/entitlements-aps-environment-vs-mode",severity:"warning",title:'aps-environment is "production" for an ad_hoc build',detail:"ad_hoc builds usually use the development push environment (production is valid but uncommon)",fix:"Use aps-environment=development for ad_hoc unless you intend production APNs"});if(X&&Y)Z.push({id:"ios/entitlements-aps-environment-vs-mode",severity:"error",title:`aps-environment differs between App.entitlements and the provisioning profile for "${X.bundleId}"`,detail:`app: ${J} — profile: ${Q}`,fix:"Align aps-environment in App.entitlements with the push profile (or regenerate the profile)"});return Z}},EZ$=/^(?:applinks|webcredentials|activitycontinuation|appclips):[a-z0-9.-]+(?:\?mode=(?:developer|managed))?$/i,Q30={id:"ios/entitlements-associated-domains-format",platforms:["ios"],appliesTo:($)=>{let D=A9($.projectDir,$.appId);return D!==null&&pY(D.raw,eq0).length>0},async run($){let D=A9($.projectDir,$.appId);if(!D)return[];let J=[];for(let X of pY(D.raw,eq0)){if(/^(?:applinks|webcredentials|activitycontinuation|appclips):\*$/i.test(X))continue;if(!EZ$.test(X))J.push(X)}if(J.length===0)return[];return[{id:"ios/entitlements-associated-domains-format",severity:"warning",title:`${J.length} associated-domains entr(y/ies) have an invalid format`,detail:`invalid: ${J.join(", ")}`,fix:'Use the "service:domain" form (e.g. applinks:example.com) — no scheme, path, or trailing slash'}]}},RZ$=/^group\.[a-z0-9.-]+$/,Y30={id:"ios/entitlements-app-groups-format",platforms:["ios"],appliesTo:($)=>{let D=A9($.projectDir,$.appId);return D!==null&&pY(D.raw,$30).length>0},async run($){let D=A9($.projectDir,$.appId);if(!D)return[];let J=pY(D.raw,$30).filter((X)=>!RZ$.test(X));if(J.length===0)return[];return[{id:"ios/entitlements-app-groups-format",severity:"warning",title:`${J.length} app group identifier(s) have an invalid format`,detail:`invalid: ${J.join(", ")}`,fix:'Name app groups "group.<reverse-dns>" (lowercase, no whitespace) and register them in the portal'}]}}});import{existsSync as AZ$,readFileSync as IZ$}from"node:fs";import{join as jZ$}from"node:path";function F30($){let D=jZ$($,...TZ$);return AZ$(D)?D:null}function O4($){let D=F30($);if(!D)return null;try{return IZ$(D,"utf8")}catch{return null}}function Hq($){return k4($)??""}function UN($){return $.startsWith("$(")||$.startsWith("${")}function CZ$($){let D=$.config?.server;if(D===null||typeof D!=="object")return!1;let J=D;return J.cleartext===!0||typeof J.url==="string"&&J.url.length>0}var TZ$,v8=($)=>F30($.projectDir)!==null,PZ$,SZ$,xZ$,U30,vZ$,_Z$,G30,q30,W30,z30,H30,O30,V30,K30,N30,kZ$,M30;var L30=a(()=>{u4();iY();TZ$=["ios","App","App","Info.plist"];PZ$=/^\d+\.\d+(?:\.\d+)?$/,SZ$=/^\d+(?:\.\d+){0,2}$/,xZ$=/^[a-z0-9][a-z0-9-]*(?:\.[a-z0-9-]+)+$/i,U30=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"],vZ$=new Set(U30),_Z$=new Set(["audio","location","voip","fetch","remote-notification","processing","bluetooth-central","bluetooth-peripheral","external-accessory","newsstand-content"]),G30={id:"ios/plist-bundle-id-format",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];let J=K9(D,"CFBundleIdentifier");if(J===null)return[{id:"ios/plist-bundle-id-format",severity:"error",title:"Info.plist has no CFBundleIdentifier",fix:"Set a valid reverse-DNS PRODUCT_BUNDLE_IDENTIFIER (no spaces, underscores, or wildcards)."}];let X=Wq(J,Hq($.projectDir));if(UN(X))return[];if(!xZ$.test(X))return[{id:"ios/plist-bundle-id-format",severity:"error",title:`Invalid bundle identifier "${X}"`,detail:"Bundle ids must be reverse-DNS (≥2 dot-separated segments) with no spaces, underscores, or wildcards.",fix:"Set a valid reverse-DNS PRODUCT_BUNDLE_IDENTIFIER (no spaces, underscores, or wildcards)."}];return[]}},q30={id:"ios/plist-version-short-format",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];let J=K9(D,"CFBundleShortVersionString");if(J===null)return[];let X=Wq(J,Hq($.projectDir));if(UN(X))return[];if(!PZ$.test(X))return[{id:"ios/plist-version-short-format",severity:"error",title:`CFBundleShortVersionString "${X}" is not a valid version (ITMS-90060)`,detail:"The marketing version must be two or three dot-separated integers (e.g. 1.4 or 1.4.2) — no letters or pre-release suffixes.",fix:"Set CFBundleShortVersionString or its build setting to two or three dot-separated integers (e.g. 1.4.2)."}];return[]}},W30={id:"ios/plist-version-build-format",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];let J=K9(D,"CFBundleVersion");if(J===null)return[];let X=Wq(J,Hq($.projectDir));if(UN(X))return[];if(!SZ$.test(X))return[{id:"ios/plist-version-build-format",severity:"error",title:`CFBundleVersion "${X}" is not a valid build number`,detail:"The build number must be numeric, ≤3 dot-separated integers (e.g. 42 or 1.4.42).",fix:"Set CURRENT_PROJECT_VERSION numeric, ≤3 integers (e.g. 42 or 1.4.42)."}];return[]}},z30={id:"ios/plist-encryption-compliance",platforms:["ios"],appliesTo:($)=>v8($)&&S8($),async run($){let D=O4($.projectDir);if(D===null)return[];if(w5(D,"ITSAppUsesNonExemptEncryption"))return[];return[{id:"ios/plist-encryption-compliance",severity:"warning",title:"Info.plist is missing ITSAppUsesNonExemptEncryption",detail:'Without this key, App Store Connect shows a "Missing Compliance" prompt on every upload.',fix:"Add ITSAppUsesNonExemptEncryption=<false/> (correct for most Capacitor apps) to stop the per-upload Missing Compliance prompt."}]}},H30={id:"ios/plist-ats-arbitrary-loads",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];let J=wF0(D,"NSAppTransportSecurity");if(J===null)return[];if(wK(J,"NSAllowsArbitraryLoads")!==!0)return[];let X=S8($)&&CZ$($);return[{id:"ios/plist-ats-arbitrary-loads",severity:X?"error":"warning",title:"NSAllowsArbitraryLoads is enabled (App Transport Security disabled)",detail:X?"Uploading with arbitrary loads enabled and a dev server (cleartext / server.url) still configured ships an insecure release.":"NSAllowsArbitraryLoads disables App Transport Security for all hosts.",fix:"Remove NSAllowsArbitraryLoads (or set <false/>); use scoped NSExceptionDomains; remove server.url/cleartext before release."}]}},O30={id:"ios/plist-launch-storyboard",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];if(w5(D,"UILaunchStoryboardName")||w5(D,"UILaunchScreen"))return[];return[{id:"ios/plist-launch-storyboard",severity:"error",title:"Info.plist declares no launch screen (ITMS-90475/90096)",detail:"App Store upload requires a launch storyboard or a UILaunchScreen dictionary.",fix:"Add UILaunchStoryboardName=LaunchScreen (Capacitor default) or a UILaunchScreen dict."}]}},V30={id:"ios/plist-orientations-multitasking",platforms:["ios"],appliesTo($){if(!v8($))return!1;let D=O4($.projectDir);if(D===null)return!1;if(wK(D,"UIRequiresFullScreen")===!0)return!1;let J=qq(Hq($.projectDir),"TARGETED_DEVICE_FAMILY");if(J===null)return!1;return J.split(",").map((X)=>X.trim()).includes("2")},async run($){let D=O4($.projectDir);if(D===null)return[];let J=N9(D,"UISupportedInterfaceOrientations~ipad");if(!w5(D,"UISupportedInterfaceOrientations~ipad"))J=N9(D,"UISupportedInterfaceOrientations");let X=new Set(J),Q=U30.filter((Y)=>!X.has(Y));if(Q.length===0)return[];return[{id:"ios/plist-orientations-multitasking",severity:"warning",title:`iPad multitasking requires all four orientations — missing ${Q.join(", ")} (ITMS-90474)`,detail:"An iPad-capable app that supports multitasking must declare all four interface orientations for iPad.",fix:"Add all four orientations to UISupportedInterfaceOrientations~ipad, or add UIRequiresFullScreen=<true/>."}]}},K30={id:"ios/plist-orientations-present",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];let J=N9(D,"UISupportedInterfaceOrientations");if(J.length===0)return[{id:"ios/plist-orientations-present",severity:"warning",title:"Info.plist declares no UISupportedInterfaceOrientations",detail:"Declare at least one supported interface orientation for iPhone.",fix:"Declare ≥1 valid UIInterfaceOrientation* value."}];let X=J.find((Q)=>!vZ$.has(Q));if(X!==void 0)return[{id:"ios/plist-orientations-present",severity:"warning",title:`Invalid interface orientation "${X}"`,detail:"Each entry must be one of UIInterfaceOrientationPortrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight.",fix:"Declare ≥1 valid UIInterfaceOrientation* value."}];return[]}},N30={id:"ios/plist-display-name",platforms:["ios"],appliesTo:v8,async run($){let D=O4($.projectDir);if(D===null)return[];let J=Hq($.projectDir),X=(Q)=>{let Y=K9(D,Q);if(Y===null)return null;let Z=Wq(Y,J);if(UN(Z)||Z.trim()==="")return null;return Z};if(X("CFBundleDisplayName")!==null||X("CFBundleName")!==null)return[];return[{id:"ios/plist-display-name",severity:"warning",title:"Info.plist has no resolvable app display name",detail:"Neither CFBundleDisplayName nor CFBundleName resolves to a non-empty value.",fix:"Set CFBundleDisplayName or ensure PRODUCT_NAME resolves."}]}},kZ$=["NSLocationWhenInUseUsageDescription","NSLocationAlwaysAndWhenInUseUsageDescription","NSLocationAlwaysUsageDescription","NSLocationUsageDescription"],M30={id:"ios/plist-background-modes-sanity",platforms:["ios"],appliesTo($){if(!v8($))return!1;let D=O4($.projectDir);return D!==null&&w5(D,"UIBackgroundModes")},async run($){let D=O4($.projectDir);if(D===null)return[];let J=N9(D,"UIBackgroundModes"),X=[],Q=J.filter((Y)=>!_Z$.has(Y));if(Q.length>0)X.push({id:"ios/plist-background-modes-sanity",severity:"warning",title:`Unknown UIBackgroundModes value(s): ${Q.join(", ")}`,detail:"Background modes must be one of Apple's documented UIBackgroundModes tokens.",fix:"Remove unused background modes; add matching usage strings/capabilities."});if(J.includes("location")&&S8($)){if(!kZ$.some((Z)=>w5(D,Z)))X.push({id:"ios/plist-background-modes-sanity",severity:"warning",title:'UIBackgroundModes declares "location" without a location usage description (Guideline 2.5.4)',detail:"App Review rejects background location without an NSLocation*UsageDescription string.",fix:"Add the matching NSLocation*UsageDescription, or remove the location background mode."})}return X}}});import{readFileSync as uZ$}from"node:fs";import{join as yZ$}from"node:path";function Oq($){try{return JSON.parse(uZ$($,"utf8"))}catch{return null}}function Vq($,D){let J=(D?qq(D,"ASSETCATALOG_COMPILER_APPICON_NAME"):null)??"AppIcon";return yZ$($,"ios","App","App","Assets.xcassets",`${J}.appiconset`)}function fZ$($){return($??"").trim()}function w30($){return($?.images??[]).some((D)=>fZ$(D.size)==="1024x1024"||D.role==="marketing")}var B30=a(()=>{iY()});import{existsSync as i7}from"node:fs";import{join as b6}from"node:path";function E30($){return b6($,"ios","App","Podfile")}function Mv($){return b6($,"ios","App","CapApp-SPM","Package.swift")}function R30($){return i7(E30($.projectDir))}function A30($){return $.hostPlatform==="darwin"&&R30($)}function Lv($){return i7(Mv($.projectDir))}function GN($){return k4($.projectDir)}function Nv($){if($.platform!=="ios")return!1;if(($.distributionMode??"app_store")!=="app_store")return!1;let J=$.credentials;return Boolean(J?.APPLE_KEY_ID&&J?.APPLE_ISSUER_ID&&J?.APPLE_KEY_CONTENT)}var I30,j30,T30,C30,P30,S30,x30,v30,hZ$,_30;var k30=a(()=>{B30();iY();u4();k7();I30={id:"ios/pods-not-installed",platforms:["ios"],appliesTo:A30,async run($){let D=b6($.projectDir,"ios","App"),J=i7(b6(D,"Pods")),X=i7(b6(D,"App.xcworkspace"));if(J&&X)return[];let Q=[];if(!J)Q.push("ios/App/Pods");if(!X)Q.push("ios/App/App.xcworkspace");return[{id:"ios/pods-not-installed",severity:"warning",title:"CocoaPods is not installed (missing Pods/ or App.xcworkspace)",detail:`A Podfile exists but ${Q.join(" and ")} ${Q.length>1?"are":"is"} missing. The cloud build runs pod install and recovers, but local Xcode builds will fail.`,fix:"Run `npx cap sync ios` (or `pod install`) and commit Pods/ + App.xcworkspace."}]}},j30={id:"ios/pods-lock-missing",platforms:["ios"],appliesTo:A30,async run($){if(S1(b6($.projectDir,"ios","App","Podfile.lock"))!==null)return[];return[{id:"ios/pods-lock-missing",severity:"warning",title:"Podfile.lock is missing - pod versions are not pinned",detail:"Without Podfile.lock the cloud build resolves pod versions fresh, which can drift from your local versions.",fix:"Run `pod install` and commit Podfile.lock."}]}},T30={id:"ios/pods-capacitor-missing",platforms:["ios"],appliesTo:R30,async run($){let D=S1(E30($.projectDir));if(D===null)return[];if(/pod\s+['"]Capacitor['"]/.test(D)||/capacitor_pods/.test(D)||/@capacitor\/ios/.test(D))return[];return[{id:"ios/pods-capacitor-missing",severity:"warning",title:"Podfile does not appear to wire the Capacitor pod",detail:"No `pod 'Capacitor'`, `capacitor_pods` helper, or `@capacitor/ios` reference was found. If this is intentional (custom pod names) you can ignore this.",fix:"Run `npx cap sync ios` then `pod install`."}]}},C30={id:"ios/spm-package-resolved-missing",platforms:["ios"],appliesTo:Lv,async run($){let D=b6($.projectDir,"ios","App","App.xcodeproj","project.xcworkspace","xcshareddata","swiftpm","Package.resolved"),J=b6($.projectDir,"ios","App","CapApp-SPM","Package.resolved");if(i7(D)||i7(J))return[];return[{id:"ios/spm-package-resolved-missing",severity:"warning",title:"Swift Package Manager Package.resolved is missing",detail:"No Package.resolved found under the xcodeproj or CapApp-SPM. The cloud build resolves packages during build_app, but committing Package.resolved pins versions for reproducible builds.",fix:"Run `xcodebuild -resolvePackageDependencies` (or open in Xcode) and commit Package.resolved."}]}},P30={id:"ios/spm-capacitor-dependency-missing",platforms:["ios"],appliesTo:Lv,async run($){let D=S1(Mv($.projectDir));if(D===null)return[];let J=/capacitor-swift-pm/.test(D),X=/\.product\(\s*name:\s*['"]Capacitor['"]/.test(D);if(J&&X)return[];return[{id:"ios/spm-capacitor-dependency-missing",severity:"warning",title:"Package.swift does not declare the Capacitor SPM dependency",detail:'Expected a capacitor-swift-pm package dependency and a `.product(name: "Capacitor", ...)` target dependency. If your project uses a non-standard layout you can ignore this.',fix:"Run `npx cap sync ios` to regenerate Package.swift."}]}},S30={id:"ios/appicon-empty-or-placeholder",platforms:["ios"],async run($){let D=Vq($.projectDir,GN($)??void 0);if(!i7(D))return[{id:"ios/appicon-empty-or-placeholder",severity:"error",title:"AppIcon.appiconset is missing",detail:`Expected an app-icon asset set at ${D.replace($.projectDir,".")} but the directory does not exist.`,fix:"Run `npx @capacitor/assets generate` (or add the icon set in Xcode)."}];let J=Oq(b6(D,"Contents.json"));if(J===null)return[{id:"ios/appicon-empty-or-placeholder",severity:"error",title:"AppIcon Contents.json is missing or malformed",detail:"The app-icon Contents.json could not be parsed as JSON.",fix:"Regenerate the icon set (`npx @capacitor/assets generate`) or fix the malformed Contents.json."}];if((J.images??[]).some((Q)=>Q.filename?.trim()))return[];return[{id:"ios/appicon-empty-or-placeholder",severity:Nv($)?"error":"warning",title:"AppIcon.appiconset declares no icon images",detail:Nv($)?"The icon set has no images - App Store upload will reject it (ITMS-90704).":"The icon set has no images. The build tolerates this for ad_hoc/development, but App Store upload would reject it.",fix:"Run `npx @capacitor/assets generate` so the set has at least the 1024x1024 icon."}]}},x30={id:"ios/appicon-referenced-file-missing",platforms:["ios"],appliesTo($){let D=Vq($.projectDir,k4($.projectDir)??void 0);return Oq(b6(D,"Contents.json"))!==null},async run($){let D=Vq($.projectDir,GN($)??void 0),J=Oq(b6(D,"Contents.json"));if(J===null)return[];let X=[];for(let Q of J.images??[]){let Y=Q.filename?.trim();if(!Y)continue;if(!i7(b6(D,Y)))X.push(Y)}if(X.length===0)return[];return[{id:"ios/appicon-referenced-file-missing",severity:"error",title:"AppIcon Contents.json references icon file(s) missing from disk",detail:`actool will fail the build: missing ${X.join(", ")}.`,fix:"Regenerate the icons (`npx @capacitor/assets generate`) or commit the referenced PNG(s)."}]}},v30={id:"ios/appicon-marketing-missing",platforms:["ios"],appliesTo:Nv,async run($){let D=Vq($.projectDir,GN($)??void 0),J=Oq(b6(D,"Contents.json"));if(J===null)return[];if(w30(J))return[];return[{id:"ios/appicon-marketing-missing",severity:"error",title:"App Store marketing icon (1024x1024) is missing",detail:"App Store upload requires a 1024x1024 marketing icon in the AppIcon set (ITMS-90704).",fix:"Add a 1024x1024 PNG (no alpha) marketing icon and reference it in Contents.json."}]}},hZ$=/\.iOS\(\.v(\d+)\)/,_30={id:"ios/spm-deployment-target-consistency",platforms:["ios"],appliesTo($){if(!Lv($))return!1;let D=k4($.projectDir);if(D===null)return!1;return zq(D)!==null},async run($){let D=GN($);if(D===null)return[];let J=zq(D);if(J===null)return[];let X=S1(Mv($.projectDir));if(X===null)return[];let Q=X.match(hZ$);if(!Q)return[];let Y=Number.parseFloat(Q[1]);if(Number.isNaN(Y)||J>=Y)return[];return[{id:"ios/spm-deployment-target-consistency",severity:"warning",title:"IPHONEOS_DEPLOYMENT_TARGET is below the Package.swift iOS minimum",detail:`The Xcode app target builds for iOS ${J} but Package.swift requires iOS ${Y} (.iOS(.v${Y})).`,fix:`Raise IPHONEOS_DEPLOYMENT_TARGET to >= ${Y}, or run \`npx cap sync ios\`.`}]}}});function B6($){return k4($.projectDir)}function wv($){return V5($).filter((D)=>D.productType===bZ$)}function dZ$($){return gZ$[$]??mZ$}function u30($){return zq($)}function qN($,D){let J=$.find((Q)=>Q.name==="Release")?.settings[D];if(J!==void 0)return J;let X=$.find((Q)=>Q.name==="Debug")?.settings[D];if(X!==void 0)return X;for(let Q of $)if(Q.settings[D]!==void 0)return Q.settings[D];return}function f30($){let D=[];for(let{target:J,configs:X}of R9($)){if(qN(X,"CODE_SIGN_STYLE")===void 0)continue;let Y=qN(X,"DEVELOPMENT_TEAM");if(Y===void 0||Y.trim()==="")D.push(J.name)}return D}function cZ$($){let D=[];for(let{target:J,configs:X}of R9($)){let Q=X.map((Z)=>Z.settings.PRODUCT_BUNDLE_IDENTIFIER).filter((Z)=>Z!==void 0);if(Q.length<2)continue;let Y=Array.from(new Set(Q));if(Y.length>=2)D.push({name:J.name,values:Y})}return D}function h30($){return Ov($).filter((D)=>D.settings.ENABLE_BITCODE==="YES").map((D)=>D.isProjectLevel?`project ${D.name}`:D.name)}function lZ$($){let D=[];for(let{target:J,configs:X}of R9($)){let Q=qN(X,"SWIFT_VERSION");if(Q===void 0)continue;let Y=Q.match(/^\s*(\d+(?:\.\d+)?)/),Z=Y?Number.parseFloat(Y[1]):Number.NaN;if(Number.isNaN(Z)||Z<5)D.push({name:J.name,value:Q})}return D}var bZ$="com.apple.product-type.application",gZ$,mZ$=14,b30,y30=($)=>x8($).length>0,g30,m30,d30,c30,l30,n30;var i30=a(()=>{u4();Uv();iY();ZN();gZ$={5:13,6:13,7:14,8:14};b30={id:"ios/xcode-deployment-target-capacitor",platforms:["ios"],appliesTo:($)=>{if(cY($.projectDir)===null)return!1;let D=B6($);return D!==null&&u30(D)!==null},async run($){let D=B6($);if(!D)return[];let J=cY($.projectDir),X=u30(D);if(J===null||X===null)return[];let Q=dZ$(J);if(X>=Q)return[];return[{id:"ios/xcode-deployment-target-capacitor",severity:"error",title:`IPHONEOS_DEPLOYMENT_TARGET ${X} is below the Capacitor ${J} floor (${Q})`,detail:`Capacitor ${J} requires iOS deployment target >= ${Q}; the build will fail otherwise.`,fix:`Raise IPHONEOS_DEPLOYMENT_TARGET to >= ${Q} (project + app target) and the Podfile platform line if present.`}]}};g30={id:"ios/xcode-signing-team",platforms:["ios"],appliesTo:($)=>{if(y30($))return!1;let D=B6($);return D!==null&&f30(D).length>0},async run($){if(y30($))return[];let D=B6($);if(!D)return[];let J=f30(D);if(J.length===0)return[];return[{id:"ios/xcode-signing-team",severity:S8($)?"error":"warning",title:`${J.length} signable target(s) set a code-signing style but no DEVELOPMENT_TEAM`,detail:`targets without a team: ${J.join(", ")}`,fix:"Set DEVELOPMENT_TEAM in Xcode (Signing & Capabilities), or supply signing creds/profiles to the cloud build so it switches to managed-manual signing."}]}};m30={id:"ios/xcode-bundle-id-mismatch-across-configs",platforms:["ios"],appliesTo:($)=>{let D=B6($);return D!==null&&R9(D).some((J)=>{return J.configs.map((Q)=>Q.settings.PRODUCT_BUNDLE_IDENTIFIER).filter((Q)=>Q!==void 0).length>=2})},async run($){let D=B6($);if(!D)return[];let J=cZ$(D);if(J.length===0)return[];return[{id:"ios/xcode-bundle-id-mismatch-across-configs",severity:"warning",title:`PRODUCT_BUNDLE_IDENTIFIER differs across build configs in ${J.length} target(s)`,detail:J.map((X)=>`${X.name}: ${X.values.join(" vs ")}`).join("; "),fix:"Align PRODUCT_BUNDLE_IDENTIFIER across Debug/Release (or ignore if a Debug suffix is intentional)."}]}};d30={id:"ios/xcode-enable-bitcode-leftover",platforms:["ios"],appliesTo:($)=>{let D=B6($);return D!==null&&h30(D).length>0},async run($){let D=B6($);if(!D)return[];let J=h30(D);if(J.length===0)return[];return[{id:"ios/xcode-enable-bitcode-leftover",severity:"warning",title:"ENABLE_BITCODE = YES is set (deprecated since Xcode 14)",detail:`present in: ${J.join(", ")}`,fix:"Set ENABLE_BITCODE = NO or delete it — Xcode 14+ ignores bitcode and Apple no longer accepts it."}]}};c30={id:"ios/xcode-swift-version-sanity",platforms:["ios"],appliesTo:($)=>{let D=B6($);return D!==null&&R9(D).some((J)=>qN(J.configs,"SWIFT_VERSION")!==void 0)},async run($){let D=B6($);if(!D)return[];let J=lZ$(D);if(J.length===0)return[];return[{id:"ios/xcode-swift-version-sanity",severity:"warning",title:`SWIFT_VERSION is below 5 (or unparseable) in ${J.length} target(s)`,detail:J.map((X)=>`${X.name}: ${X.value}`).join("; "),fix:"Set SWIFT_VERSION = 5.0 (or your intended Swift >= 5) for the affected target(s)."}]}},l30={id:"ios/xcode-no-app-target",platforms:["ios"],appliesTo:($)=>B6($)!==null,async run($){let D=B6($);if(!D)return[];if(wv(D).length>0)return[];return[{id:"ios/xcode-no-app-target",severity:"error",title:"No application target found in the Xcode project",detail:"The pbxproj parsed but contains no com.apple.product-type.application target — the build has nothing to archive.",fix:"Run `npx cap sync ios`, or restore the application target in Xcode."}]}},n30={id:"ios/xcode-multiple-app-targets",platforms:["ios"],appliesTo:($)=>{let D=B6($);return D!==null&&wv(D).length>1},async run($){let D=B6($);if(!D)return[];let J=wv(D);if(J.length<=1)return[];return[{id:"ios/xcode-multiple-app-targets",severity:"warning",title:`${J.length} application targets found — the build may sign/archive the wrong one`,detail:`app targets: ${J.map((X)=>`${X.name} (${X.bundleId})`).join(", ")}`,fix:"Keep a single application target, remove the duplicate, or pass the intended scheme to the build."}]}}});import{createRequire as nZ$}from"node:module";import{existsSync as rY}from"node:fs";import{dirname as iZ$,join as _8}from"node:path";function pZ$($){let D=S1(_8($,"package.json"));if(!D)return[];let J;try{J=JSON.parse(D)}catch{return[]}let X=new Set(["@capacitor/core","@capacitor/cli","@capacitor/ios","@capacitor/android","@capacitor/assets","@capacitor/synapse"]);return Object.keys(J.dependencies??{}).filter((Q)=>Q.startsWith("@capacitor/")&&!X.has(Q))}function rZ$($){return $.replace(/^@/,"").replace(/\//g,"-")}function oZ$($,D){try{let X=nZ$(_8($,"package.json")).resolve(`${D}/package.json`);return rY(_8(iZ$(X),"android"))}catch{return!1}}var p30,r30,o30;var a30=a(()=>{k7();p30={id:"shared/cap-sync-stale",platforms:["ios","android"],async run($){let D=[],J=$.config?.webDir??"dist";if(!rY(_8($.projectDir,J)))return D.push({id:"shared/cap-sync-stale",severity:"error",title:`webDir "${J}" does not exist — web assets were never built`,fix:"Run your web build (e.g. `npm run build`) then `npx cap sync` before requesting a build"}),D;let X=pZ$($.projectDir),Q=X.filter((Z)=>oZ$($.projectDir,Z)),Y=M5($.config,$.platform);if($.platform==="android"&&Q.length>0){let Z=S1(_8($.projectDir,Y,"capacitor.settings.gradle"));if(Z===null)D.push({id:"shared/cap-sync-stale",severity:"error",title:`${Y}/capacitor.settings.gradle is missing — \`npx cap sync android\` was never run`,fix:"Run `npx cap sync android`"});else{let F=Q.filter((U)=>!Z.includes(`:${rZ$(U)}`));if(F.length>0)D.push({id:"shared/cap-sync-stale",severity:"error",title:`${F.length} Capacitor plugin(s) not synced into the Android project`,detail:`missing from capacitor.settings.gradle: ${F.join(", ")}`,fix:"Run `npx cap sync android` (sync, not copy — copy does not regenerate plugin projects)"})}}if($.platform==="ios"&&X.length>0){let Z=rY(_8($.projectDir,Y,"App","Podfile")),F=rY(_8($.projectDir,Y,"App","CapApp-SPM","Package.swift"));if(!Z&&!F)D.push({id:"shared/cap-sync-stale",severity:"error",title:`${Y}/App sync artifacts are missing — \`npx cap sync ios\` was never run`,detail:`expected ${Y}/App/Podfile (CocoaPods) or ${Y}/App/CapApp-SPM/Package.swift (SPM)`,fix:"Run `npx cap sync ios`"})}return D}},r30={id:"shared/node-linker-layout",platforms:["ios","android"],async run($){let D=_8($.projectDir,"node_modules");if(rY(_8(D,".bun")))return[{id:"shared/node-linker-layout",severity:"error",title:'bun isolated node_modules layout detected — Capacitor Gradle/Pod paths will not resolve ("No variants exist")',fix:"Reinstall with `bun install --linker=hoisted`"}];if(rY(_8(D,".pnpm")))return[{id:"shared/node-linker-layout",severity:"warning",title:"pnpm symlinked node_modules layout detected — Capacitor native builds often need a hoisted layout",fix:"If the build fails resolving @capacitor/* paths, set `node-linker=hoisted` in .npmrc and reinstall"}];return[]}},o30={id:"shared/bundle-id-consistency",platforms:["ios","android"],async run($){let D=$.config?.appId??$.appId;if($.platform==="android"){let Z=bG($.projectDir);if(Z&&Z!==D)return[{id:"shared/bundle-id-consistency",severity:"warning",title:"Gradle applicationId differs from the Capacitor appId",detail:`capacitor.config appId: ${D} — android/app/build.gradle applicationId: ${Z}`,fix:"Align them (or pass the intended appId explicitly to `build request`)"}];return[]}let{findSignableTargets:J,readPbxproj:X}=await Promise.resolve().then(() => (u4(),ZK)),Q=X($.projectDir);if(!Q)return[];let Y=J(Q);if(Y.length>0&&!Y.some((Z)=>Z.bundleId===D))return[{id:"shared/bundle-id-consistency",severity:"warning",title:"No Xcode target uses the Capacitor appId as its bundle identifier",detail:`capacitor appId: ${D} — targets: ${Y.map((Z)=>`${Z.name}=${Z.bundleId}`).join(", ")}`,fix:"Align PRODUCT_BUNDLE_IDENTIFIER with the appId, or build with the intended appId"}];return[]}}});var t30,s30;var e30=a(()=>{t30={id:"shared/apikey-permission",platforms:["ios","android"],remote:!0,async run($){let{data:D,error:J}=await $.supabase.rpc("cli_check_permission",{apikey:$.apikey??"",permission_key:"app.build_native",org_id:null,app_id:$.appId,channel_id:null});if(J)return[{id:"shared/apikey-permission",severity:"info",title:"Could not verify build permission (network/API error)",detail:J.message}];if(D!==!0)return[{id:"shared/apikey-permission",severity:"error",title:`This apikey lacks the app.build_native permission for ${$.appId}`,fix:"Use an apikey from the org that owns the app (role with native-build rights), or fix the appId"}];return[]}},s30={id:"shared/app-exists",platforms:["ios","android"],remote:!0,async run($){let{data:D,error:J}=await $.supabase.from("apps").select("app_id").eq("app_id",$.appId).maybeSingle();if(J)return[{id:"shared/app-exists",severity:"info",title:"Could not verify app existence (network/API error)",detail:J.message}];if(!D)return[{id:"shared/app-exists",severity:"error",title:`App ${$.appId} is not visible to this apikey`,detail:"Either the app does not exist or it belongs to an org this key cannot access",fix:`Create it (npx @capgo/cli app add ${$.appId}) or pass the right appId / apikey`}];return[]}}});var oY=A((Bv,DW0)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var WN=s("buffer"),k8=WN.Buffer;function $W0($,D){for(var J in $)D[J]=$[J]}if(k8.from&&k8.alloc&&k8.allocUnsafe&&k8.allocUnsafeSlow)DW0.exports=WN;else $W0(WN,Bv),Bv.Buffer=v5;function v5($,D,J){return k8($,D,J)}v5.prototype=Object.create(k8.prototype);$W0(k8,v5);v5.from=function($,D,J){if(typeof $==="number")throw TypeError("Argument must not be a number");return k8($,D,J)};v5.alloc=function($,D,J){if(typeof $!=="number")throw TypeError("Argument must be a number");var X=k8($);if(D!==void 0)if(typeof J==="string")X.fill(D,J);else X.fill(D);else X.fill(0);return X};v5.allocUnsafe=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return k8($)};v5.allocUnsafeSlow=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return WN.SlowBuffer($)}});var Ev=A((Kg$,JW0)=>{var zN=oY().Buffer,aZ$=s("stream"),tZ$=s("util");function HN($){if(this.buffer=null,this.writable=!0,this.readable=!0,!$)return this.buffer=zN.alloc(0),this;if(typeof $.pipe==="function")return this.buffer=zN.alloc(0),$.pipe(this),this;if($.length||typeof $==="object")return this.buffer=$,this.writable=!1,process.nextTick(function(){this.emit("end",$),this.readable=!1,this.emit("close")}.bind(this)),this;throw TypeError("Unexpected data type ("+typeof $+")")}tZ$.inherits(HN,aZ$);HN.prototype.write=function(D){this.buffer=zN.concat([this.buffer,zN.from(D)]),this.emit("data",D)};HN.prototype.end=function(D){if(D)this.write(D);this.emit("end",D),this.emit("close"),this.writable=!1,this.readable=!1};JW0.exports=HN});var QW0=A((Ng$,XW0)=>{function Rv($){var D=($/8|0)+($%8===0?0:1);return D}var sZ$={ES256:Rv(256),ES384:Rv(384),ES512:Rv(521)};function eZ$($){var D=sZ$[$];if(D)return D;throw Error('Unknown algorithm "'+$+'"')}XW0.exports=eZ$});var WW0=A((Mg$,qW0)=>{var ON=oY().Buffer,ZW0=QW0(),VN=128,FW0=0,$F$=32,DF$=16,JF$=2,UW0=DF$|$F$|FW0<<6,KN=JF$|FW0<<6;function XF$($){return $.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function GW0($){if(ON.isBuffer($))return $;else if(typeof $==="string")return ON.from($,"base64");throw TypeError("ECDSA signature must be a Base64 string or a Buffer")}function QF$($,D){$=GW0($);var J=ZW0(D),X=J+1,Q=$.length,Y=0;if($[Y++]!==UW0)throw Error('Could not find expected "seq"');var Z=$[Y++];if(Z===(VN|1))Z=$[Y++];if(Q-Y<Z)throw Error('"seq" specified length of "'+Z+'", only "'+(Q-Y)+'" remaining');if($[Y++]!==KN)throw Error('Could not find expected "int" for "r"');var F=$[Y++];if(Q-Y-2<F)throw Error('"r" specified length of "'+F+'", only "'+(Q-Y-2)+'" available');if(X<F)throw Error('"r" specified length of "'+F+'", max of "'+X+'" is acceptable');var U=Y;if(Y+=F,$[Y++]!==KN)throw Error('Could not find expected "int" for "s"');var G=$[Y++];if(Q-Y!==G)throw Error('"s" specified length of "'+G+'", expected "'+(Q-Y)+'"');if(X<G)throw Error('"s" specified length of "'+G+'", max of "'+X+'" is acceptable');var q=Y;if(Y+=G,Y!==Q)throw Error('Expected to consume entire buffer, but "'+(Q-Y)+'" bytes remain');var W=J-F,z=J-G,H=ON.allocUnsafe(W+F+z+G);for(Y=0;Y<W;++Y)H[Y]=0;$.copy(H,Y,U+Math.max(-W,0),U+F),Y=J;for(var O=Y;Y<O+z;++Y)H[Y]=0;return $.copy(H,Y,q+Math.max(-z,0),q+G),H=H.toString("base64"),H=XF$(H),H}function YW0($,D,J){var X=0;while(D+X<J&&$[D+X]===0)++X;var Q=$[D+X]>=VN;if(Q)--X;return X}function YF$($,D){$=GW0($);var J=ZW0(D),X=$.length;if(X!==J*2)throw TypeError('"'+D+'" signatures must be "'+J*2+'" bytes, saw "'+X+'"');var Q=YW0($,0,J),Y=YW0($,J,$.length),Z=J-Q,F=J-Y,U=2+Z+1+1+F,G=U<VN,q=ON.allocUnsafe((G?2:3)+U),W=0;if(q[W++]=UW0,G)q[W++]=U;else q[W++]=VN|1,q[W++]=U&255;if(q[W++]=KN,q[W++]=Z,Q<0)q[W++]=0,W+=$.copy(q,W,0,J);else W+=$.copy(q,W,Q,J);if(q[W++]=KN,q[W++]=F,Y<0)q[W++]=0,$.copy(q,W,J);else $.copy(q,W,J+Y);return q}qW0.exports={derToJose:QF$,joseToDer:YF$}});var HW0=A((Lg$,zW0)=>{var Kq=s("buffer").Buffer,Av=s("buffer").SlowBuffer;zW0.exports=NN;function NN($,D){if(!Kq.isBuffer($)||!Kq.isBuffer(D))return!1;if($.length!==D.length)return!1;var J=0;for(var X=0;X<$.length;X++)J|=$[X]^D[X];return J===0}NN.install=function(){Kq.prototype.equal=Av.prototype.equal=function(D){return NN(this,D)}};var ZF$=Kq.prototype.equal,FF$=Av.prototype.equal;NN.restore=function(){Kq.prototype.equal=ZF$,Av.prototype.equal=FF$}});var Cv=A((wg$,EW0)=>{var tY=oY().Buffer,V4=s("crypto"),VW0=WW0(),OW0=s("util"),UF$=`"%s" is not a valid algorithm.
|
|
452
452
|
Supported algorithms are:
|
|
453
|
-
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,Nq="secret must be a string or buffer",aY="key must be a string or a buffer",GF$="key must be a string, a buffer or an object",jv=typeof V4.createPublicKey==="function";if(jv)aY+=" or a KeyObject",Nq+="or a KeyObject";function KW0($){if(tY.isBuffer($))return;if(typeof $==="string")return;if(!jv)throw d4(aY);if(typeof $!=="object")throw d4(aY);if(typeof $.type!=="string")throw d4(aY);if(typeof $.asymmetricKeyType!=="string")throw d4(aY);if(typeof $.export!=="function")throw d4(aY)}function NW0($){if(tY.isBuffer($))return;if(typeof $==="string")return;if(typeof $==="object")return;throw d4(GF$)}function qF$($){if(tY.isBuffer($))return;if(typeof $==="string")return $;if(!jv)throw d4(Nq);if(typeof $!=="object")throw d4(Nq);if($.type!=="secret")throw d4(Nq);if(typeof $.export!=="function")throw d4(Nq)}function Tv($){return $.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function MW0($){$=$.toString();var D=4-$.length%4;if(D!==4)for(var J=0;J<D;++J)$+="=";return $.replace(/\-/g,"+").replace(/_/g,"/")}function d4($){var D=[].slice.call(arguments,1),J=OW0.format.bind(OW0,$).apply(null,D);return TypeError(J)}function WF$($){return tY.isBuffer($)||typeof $==="string"}function Mq($){if(!WF$($))$=JSON.stringify($);return $}function LW0($){return function(J,X){qF$(X),J=Mq(J);var Q=V4.createHmac("sha"+$,X),Y=(Q.update(J),Q.digest("base64"));return Tv(Y)}}var Iv,zF$="timingSafeEqual"in V4?function(D,J){if(D.byteLength!==J.byteLength)return!1;return V4.timingSafeEqual(D,J)}:function(D,J){if(!Iv)Iv=HW0();return Iv(D,J)};function HF$($){return function(J,X,Q){var Y=LW0($)(J,Q);return zF$(tY.from(X),tY.from(Y))}}function wW0($){return function(J,X){NW0(X),J=Mq(J);var Q=V4.createSign("RSA-SHA"+$),Y=(Q.update(J),Q.sign(X,"base64"));return Tv(Y)}}function BW0($){return function(J,X,Q){KW0(Q),J=Mq(J),X=MW0(X);var Y=V4.createVerify("RSA-SHA"+$);return Y.update(J),Y.verify(Q,X,"base64")}}function OF$($){return function(J,X){NW0(X),J=Mq(J);var Q=V4.createSign("RSA-SHA"+$),Y=(Q.update(J),Q.sign({key:X,padding:V4.constants.RSA_PKCS1_PSS_PADDING,saltLength:V4.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return Tv(Y)}}function VF$($){return function(J,X,Q){KW0(Q),J=Mq(J),X=MW0(X);var Y=V4.createVerify("RSA-SHA"+$);return Y.update(J),Y.verify({key:Q,padding:V4.constants.RSA_PKCS1_PSS_PADDING,saltLength:V4.constants.RSA_PSS_SALTLEN_DIGEST},X,"base64")}}function KF$($){var D=wW0($);return function(){var X=D.apply(null,arguments);return X=VW0.derToJose(X,"ES"+$),X}}function NF$($){var D=BW0($);return function(X,Q,Y){Q=VW0.joseToDer(Q,"ES"+$).toString("base64");var Z=D(X,Q,Y);return Z}}function MF$(){return function(){return""}}function LF$(){return function(D,J){return J===""}}EW0.exports=function(D){var J={hs:LW0,rs:wW0,ps:OF$,es:KF$,none:MF$},X={hs:HF$,rs:BW0,ps:VF$,es:NF$,none:LF$},Q=D.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!Q)throw d4(UF$,D);var Y=(Q[1]||Q[3]).toLowerCase(),Z=Q[2];return{sign:J[Y](Z),verify:X[Y](Z)}}});var Pv=A((Bg$,RW0)=>{var wF$=s("buffer").Buffer;RW0.exports=function(D){if(typeof D==="string")return D;if(typeof D==="number"||wF$.isBuffer(D))return D.toString();return JSON.stringify(D)}});var PW0=A((Eg$,CW0)=>{var BF$=oY().Buffer,AW0=Ev(),EF$=Cv(),RF$=s("stream"),IW0=Pv(),Sv=s("util");function jW0($,D){return BF$.from($,D).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function AF$($,D,J){J=J||"utf8";var X=jW0(IW0($),"binary"),Q=jW0(IW0(D),J);return Sv.format("%s.%s",X,Q)}function TW0($){var{header:D,payload:J}=$,X=$.secret||$.privateKey,Q=$.encoding,Y=EF$(D.alg),Z=AF$(D,J,Q),F=Y.sign(Z,X);return Sv.format("%s.%s",Z,F)}function MN($){var D=$.secret;if(D=D==null?$.privateKey:D,D=D==null?$.key:D,/^hs/i.test($.header.alg)===!0&&D==null)throw TypeError("secret must be a string or buffer or a KeyObject");var J=new AW0(D);this.readable=!0,this.header=$.header,this.encoding=$.encoding,this.secret=this.privateKey=this.key=J,this.payload=new AW0($.payload),this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this)),this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}Sv.inherits(MN,RF$);MN.prototype.sign=function(){try{var D=TW0({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",D),this.emit("data",D),this.emit("end"),this.readable=!1,D}catch(J){this.readable=!1,this.emit("error",J),this.emit("close")}};MN.sign=TW0;CW0.exports=MN});var bW0=A((Rg$,hW0)=>{var xW0=oY().Buffer,SW0=Ev(),IF$=Cv(),jF$=s("stream"),vW0=Pv(),TF$=s("util"),CF$=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function PF$($){return Object.prototype.toString.call($)==="[object Object]"}function SF$($){if(PF$($))return $;try{return JSON.parse($)}catch(D){return}}function _W0($){var D=$.split(".",1)[0];return SF$(xW0.from(D,"base64").toString("binary"))}function xF$($){return $.split(".",2).join(".")}function kW0($){return $.split(".")[2]}function vF$($,D){D=D||"utf8";var J=$.split(".")[1];return xW0.from(J,"base64").toString(D)}function uW0($){return CF$.test($)&&!!_W0($)}function yW0($,D,J){if(!D){var X=Error("Missing algorithm parameter for jws.verify");throw X.code="MISSING_ALGORITHM",X}$=vW0($);var Q=kW0($),Y=xF$($),Z=IF$(D);return Z.verify(Y,Q,J)}function fW0($,D){if(D=D||{},$=vW0($),!uW0($))return null;var J=_W0($);if(!J)return null;var X=vF$($);if(J.typ==="JWT"||D.json)X=JSON.parse(X,D.encoding);return{header:J,payload:X,signature:kW0($)}}function sY($){$=$||{};var D=$.secret;if(D=D==null?$.publicKey:D,D=D==null?$.key:D,/^hs/i.test($.algorithm)===!0&&D==null)throw TypeError("secret must be a string or buffer or a KeyObject");var J=new SW0(D);this.readable=!0,this.algorithm=$.algorithm,this.encoding=$.encoding,this.secret=this.publicKey=this.key=J,this.signature=new SW0($.signature),this.secret.once("close",function(){if(!this.signature.writable&&this.readable)this.verify()}.bind(this)),this.signature.once("close",function(){if(!this.secret.writable&&this.readable)this.verify()}.bind(this))}TF$.inherits(sY,jF$);sY.prototype.verify=function(){try{var D=yW0(this.signature.buffer,this.algorithm,this.key.buffer),J=fW0(this.signature.buffer,this.encoding);return this.emit("done",D,J),this.emit("data",D),this.emit("end"),this.readable=!1,D}catch(X){this.readable=!1,this.emit("error",X),this.emit("close")}};sY.decode=fW0;sY.isValid=uW0;sY.verify=yW0;hW0.exports=sY});var wN=A((kF$)=>{var gW0=PW0(),LN=bW0(),_F$=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];kF$.ALGORITHMS=_F$;kF$.sign=gW0.sign;kF$.verify=LN.verify;kF$.decode=LN.decode;kF$.isValid=LN.isValid;kF$.createSign=function(D){return new gW0(D)};kF$.createVerify=function(D){return new LN(D)}});var xv=A((Ig$,mW0)=>{var dF$=wN();mW0.exports=function($,D){D=D||{};var J=dF$.decode($,D);if(!J)return null;var X=J.payload;if(typeof X==="string")try{var Q=JSON.parse(X);if(Q!==null&&typeof Q==="object")X=Q}catch(Y){}if(D.complete===!0)return{header:J.header,payload:X,signature:J.signature};return X}});var Lq=A((jg$,dW0)=>{var BN=function($,D){if(Error.call(this,$),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);if(this.name="JsonWebTokenError",this.message=$,D)this.inner=D};BN.prototype=Object.create(Error.prototype);BN.prototype.constructor=BN;dW0.exports=BN});var vv=A((Tg$,lW0)=>{var cW0=Lq(),EN=function($,D){cW0.call(this,$),this.name="NotBeforeError",this.date=D};EN.prototype=Object.create(cW0.prototype);EN.prototype.constructor=EN;lW0.exports=EN});var _v=A((Cg$,iW0)=>{var nW0=Lq(),RN=function($,D){nW0.call(this,$),this.name="TokenExpiredError",this.expiredAt=D};RN.prototype=Object.create(nW0.prototype);RN.prototype.constructor=RN;iW0.exports=RN});var kv=A((Pg$,pW0)=>{var cF$=tw();pW0.exports=function($,D){var J=D||Math.floor(Date.now()/1000);if(typeof $==="string"){var X=cF$($);if(typeof X>"u")return;return Math.floor(J+X/1000)}else if(typeof $==="number")return J+$;else return}});var eY=A((Sg$,rW0)=>{var lF$=Number.MAX_SAFE_INTEGER||9007199254740991,nF$=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rW0.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:lF$,RELEASE_TYPES:nF$,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var wq=A((xg$,oW0)=>{var iF$=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...$)=>console.error("SEMVER",...$):()=>{};oW0.exports=iF$});var $Z=A((u8,aW0)=>{var{MAX_SAFE_COMPONENT_LENGTH:uv,MAX_SAFE_BUILD_LENGTH:pF$,MAX_LENGTH:rF$}=eY(),oF$=wq();u8=aW0.exports={};var aF$=u8.re=[],tF$=u8.safeRe=[],u0=u8.src=[],sF$=u8.safeSrc=[],y0=u8.t={},eF$=0,yv="[a-zA-Z0-9-]",$U$=[["\\s",1],["\\d",rF$],[yv,pF$]],DU$=($)=>{for(let[D,J]of $U$)$=$.split(`${D}*`).join(`${D}{0,${J}}`).split(`${D}+`).join(`${D}{1,${J}}`);return $},z$=($,D,J)=>{let X=DU$(D),Q=eF$++;oF$($,Q,D),y0[$]=Q,u0[Q]=D,sF$[Q]=X,aF$[Q]=new RegExp(D,J?"g":void 0),tF$[Q]=new RegExp(X,J?"g":void 0)};z$("NUMERICIDENTIFIER","0|[1-9]\\d*");z$("NUMERICIDENTIFIERLOOSE","\\d+");z$("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${yv}*`);z$("MAINVERSION",`(${u0[y0.NUMERICIDENTIFIER]})\\.(${u0[y0.NUMERICIDENTIFIER]})\\.(${u0[y0.NUMERICIDENTIFIER]})`);z$("MAINVERSIONLOOSE",`(${u0[y0.NUMERICIDENTIFIERLOOSE]})\\.(${u0[y0.NUMERICIDENTIFIERLOOSE]})\\.(${u0[y0.NUMERICIDENTIFIERLOOSE]})`);z$("PRERELEASEIDENTIFIER",`(?:${u0[y0.NONNUMERICIDENTIFIER]}|${u0[y0.NUMERICIDENTIFIER]})`);z$("PRERELEASEIDENTIFIERLOOSE",`(?:${u0[y0.NONNUMERICIDENTIFIER]}|${u0[y0.NUMERICIDENTIFIERLOOSE]})`);z$("PRERELEASE",`(?:-(${u0[y0.PRERELEASEIDENTIFIER]}(?:\\.${u0[y0.PRERELEASEIDENTIFIER]})*))`);z$("PRERELEASELOOSE",`(?:-?(${u0[y0.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u0[y0.PRERELEASEIDENTIFIERLOOSE]})*))`);z$("BUILDIDENTIFIER",`${yv}+`);z$("BUILD",`(?:\\+(${u0[y0.BUILDIDENTIFIER]}(?:\\.${u0[y0.BUILDIDENTIFIER]})*))`);z$("FULLPLAIN",`v?${u0[y0.MAINVERSION]}${u0[y0.PRERELEASE]}?${u0[y0.BUILD]}?`);z$("FULL",`^${u0[y0.FULLPLAIN]}$`);z$("LOOSEPLAIN",`[v=\\s]*${u0[y0.MAINVERSIONLOOSE]}${u0[y0.PRERELEASELOOSE]}?${u0[y0.BUILD]}?`);z$("LOOSE",`^${u0[y0.LOOSEPLAIN]}$`);z$("GTLT","((?:<|>)?=?)");z$("XRANGEIDENTIFIERLOOSE",`${u0[y0.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);z$("XRANGEIDENTIFIER",`${u0[y0.NUMERICIDENTIFIER]}|x|X|\\*`);z$("XRANGEPLAIN",`[v=\\s]*(${u0[y0.XRANGEIDENTIFIER]})(?:\\.(${u0[y0.XRANGEIDENTIFIER]})(?:\\.(${u0[y0.XRANGEIDENTIFIER]})(?:${u0[y0.PRERELEASE]})?${u0[y0.BUILD]}?)?)?`);z$("XRANGEPLAINLOOSE",`[v=\\s]*(${u0[y0.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u0[y0.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u0[y0.XRANGEIDENTIFIERLOOSE]})(?:${u0[y0.PRERELEASELOOSE]})?${u0[y0.BUILD]}?)?)?`);z$("XRANGE",`^${u0[y0.GTLT]}\\s*${u0[y0.XRANGEPLAIN]}$`);z$("XRANGELOOSE",`^${u0[y0.GTLT]}\\s*${u0[y0.XRANGEPLAINLOOSE]}$`);z$("COERCEPLAIN",`(^|[^\\d])(\\d{1,${uv}})(?:\\.(\\d{1,${uv}}))?(?:\\.(\\d{1,${uv}}))?`);z$("COERCE",`${u0[y0.COERCEPLAIN]}(?:$|[^\\d])`);z$("COERCEFULL",u0[y0.COERCEPLAIN]+`(?:${u0[y0.PRERELEASE]})?(?:${u0[y0.BUILD]})?(?:$|[^\\d])`);z$("COERCERTL",u0[y0.COERCE],!0);z$("COERCERTLFULL",u0[y0.COERCEFULL],!0);z$("LONETILDE","(?:~>?)");z$("TILDETRIM",`(\\s*)${u0[y0.LONETILDE]}\\s+`,!0);u8.tildeTrimReplace="$1~";z$("TILDE",`^${u0[y0.LONETILDE]}${u0[y0.XRANGEPLAIN]}$`);z$("TILDELOOSE",`^${u0[y0.LONETILDE]}${u0[y0.XRANGEPLAINLOOSE]}$`);z$("LONECARET","(?:\\^)");z$("CARETTRIM",`(\\s*)${u0[y0.LONECARET]}\\s+`,!0);u8.caretTrimReplace="$1^";z$("CARET",`^${u0[y0.LONECARET]}${u0[y0.XRANGEPLAIN]}$`);z$("CARETLOOSE",`^${u0[y0.LONECARET]}${u0[y0.XRANGEPLAINLOOSE]}$`);z$("COMPARATORLOOSE",`^${u0[y0.GTLT]}\\s*(${u0[y0.LOOSEPLAIN]})$|^$`);z$("COMPARATOR",`^${u0[y0.GTLT]}\\s*(${u0[y0.FULLPLAIN]})$|^$`);z$("COMPARATORTRIM",`(\\s*)${u0[y0.GTLT]}\\s*(${u0[y0.LOOSEPLAIN]}|${u0[y0.XRANGEPLAIN]})`,!0);u8.comparatorTrimReplace="$1$2$3";z$("HYPHENRANGE",`^\\s*(${u0[y0.XRANGEPLAIN]})\\s+-\\s+(${u0[y0.XRANGEPLAIN]})\\s*$`);z$("HYPHENRANGELOOSE",`^\\s*(${u0[y0.XRANGEPLAINLOOSE]})\\s+-\\s+(${u0[y0.XRANGEPLAINLOOSE]})\\s*$`);z$("STAR","(<|>)?=?\\s*\\*");z$("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");z$("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var AN=A((vg$,tW0)=>{var JU$=Object.freeze({loose:!0}),XU$=Object.freeze({}),QU$=($)=>{if(!$)return XU$;if(typeof $!=="object")return JU$;return $};tW0.exports=QU$});var fv=A((_g$,$z0)=>{var sW0=/^[0-9]+$/,eW0=($,D)=>{if(typeof $==="number"&&typeof D==="number")return $===D?0:$<D?-1:1;let J=sW0.test($),X=sW0.test(D);if(J&&X)$=+$,D=+D;return $===D?0:J&&!X?-1:X&&!J?1:$<D?-1:1},YU$=($,D)=>eW0(D,$);$z0.exports={compareIdentifiers:eW0,rcompareIdentifiers:YU$}});var ED=A((kg$,Jz0)=>{var IN=wq(),{MAX_LENGTH:Dz0,MAX_SAFE_INTEGER:jN}=eY(),{safeRe:TN,t:CN}=$Z(),ZU$=AN(),{compareIdentifiers:hv}=fv();class c4{constructor($,D){if(D=ZU$(D),$ instanceof c4)if($.loose===!!D.loose&&$.includePrerelease===!!D.includePrerelease)return $;else $=$.version;else if(typeof $!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof $}".`);if($.length>Dz0)throw TypeError(`version is longer than ${Dz0} characters`);IN("SemVer",$,D),this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease;let J=$.trim().match(D.loose?TN[CN.LOOSE]:TN[CN.FULL]);if(!J)throw TypeError(`Invalid Version: ${$}`);if(this.raw=$,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>jN||this.major<0)throw TypeError("Invalid major version");if(this.minor>jN||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>jN||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((X)=>{if(/^[0-9]+$/.test(X)){let Q=+X;if(Q>=0&&Q<jN)return Q}return X});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare($){if(IN("SemVer.compare",this.version,this.options,$),!($ instanceof c4)){if(typeof $==="string"&&$===this.version)return 0;$=new c4($,this.options)}if($.version===this.version)return 0;return this.compareMain($)||this.comparePre($)}compareMain($){if(!($ instanceof c4))$=new c4($,this.options);if(this.major<$.major)return-1;if(this.major>$.major)return 1;if(this.minor<$.minor)return-1;if(this.minor>$.minor)return 1;if(this.patch<$.patch)return-1;if(this.patch>$.patch)return 1;return 0}comparePre($){if(!($ instanceof c4))$=new c4($,this.options);if(this.prerelease.length&&!$.prerelease.length)return-1;else if(!this.prerelease.length&&$.prerelease.length)return 1;else if(!this.prerelease.length&&!$.prerelease.length)return 0;let D=0;do{let J=this.prerelease[D],X=$.prerelease[D];if(IN("prerelease compare",D,J,X),J===void 0&&X===void 0)return 0;else if(X===void 0)return 1;else if(J===void 0)return-1;else if(J===X)continue;else return hv(J,X)}while(++D)}compareBuild($){if(!($ instanceof c4))$=new c4($,this.options);let D=0;do{let J=this.build[D],X=$.build[D];if(IN("build compare",D,J,X),J===void 0&&X===void 0)return 0;else if(X===void 0)return 1;else if(J===void 0)return-1;else if(J===X)continue;else return hv(J,X)}while(++D)}inc($,D,J){if($.startsWith("pre")){if(!D&&J===!1)throw Error("invalid increment argument: identifier is empty");if(D){let X=`-${D}`.match(this.options.loose?TN[CN.PRERELEASELOOSE]:TN[CN.PRERELEASE]);if(!X||X[1]!==D)throw Error(`invalid identifier: ${D}`)}}switch($){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",D,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",D,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",D,J),this.inc("pre",D,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",D,J);this.inc("pre",D,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let X=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[X];else{let Q=this.prerelease.length;while(--Q>=0)if(typeof this.prerelease[Q]==="number")this.prerelease[Q]++,Q=-2;if(Q===-1){if(D===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(X)}}if(D){let Q=[D,X];if(J===!1)Q=[D];if(hv(this.prerelease[0],D)===0){if(isNaN(this.prerelease[1]))this.prerelease=Q}else this.prerelease=Q}break}default:throw Error(`invalid increment argument: ${$}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Jz0.exports=c4});var p7=A((ug$,Qz0)=>{var Xz0=ED(),FU$=($,D,J=!1)=>{if($ instanceof Xz0)return $;try{return new Xz0($,D)}catch(X){if(!J)return null;throw X}};Qz0.exports=FU$});var Zz0=A((yg$,Yz0)=>{var UU$=p7(),GU$=($,D)=>{let J=UU$($,D);return J?J.version:null};Yz0.exports=GU$});var Uz0=A((fg$,Fz0)=>{var qU$=p7(),WU$=($,D)=>{let J=qU$($.trim().replace(/^[=v]+/,""),D);return J?J.version:null};Fz0.exports=WU$});var Wz0=A((hg$,qz0)=>{var Gz0=ED(),zU$=($,D,J,X,Q)=>{if(typeof J==="string")Q=X,X=J,J=void 0;try{return new Gz0($ instanceof Gz0?$.version:$,J).inc(D,X,Q).version}catch(Y){return null}};qz0.exports=zU$});var Oz0=A((bg$,Hz0)=>{var zz0=p7(),HU$=($,D)=>{let J=zz0($,null,!0),X=zz0(D,null,!0),Q=J.compare(X);if(Q===0)return null;let Y=Q>0,Z=Y?J:X,F=Y?X:J,U=!!Z.prerelease.length;if(!!F.prerelease.length&&!U){if(!F.patch&&!F.minor)return"major";if(F.compareMain(Z)===0){if(F.minor&&!F.patch)return"minor";return"patch"}}let q=U?"pre":"";if(J.major!==X.major)return q+"major";if(J.minor!==X.minor)return q+"minor";if(J.patch!==X.patch)return q+"patch";return"prerelease"};Hz0.exports=HU$});var Kz0=A((gg$,Vz0)=>{var OU$=ED(),VU$=($,D)=>new OU$($,D).major;Vz0.exports=VU$});var Mz0=A((mg$,Nz0)=>{var KU$=ED(),NU$=($,D)=>new KU$($,D).minor;Nz0.exports=NU$});var wz0=A((dg$,Lz0)=>{var MU$=ED(),LU$=($,D)=>new MU$($,D).patch;Lz0.exports=LU$});var Ez0=A((cg$,Bz0)=>{var wU$=p7(),BU$=($,D)=>{let J=wU$($,D);return J&&J.prerelease.length?J.prerelease:null};Bz0.exports=BU$});var K4=A((lg$,Az0)=>{var Rz0=ED(),EU$=($,D,J)=>new Rz0($,J).compare(new Rz0(D,J));Az0.exports=EU$});var jz0=A((ng$,Iz0)=>{var RU$=K4(),AU$=($,D,J)=>RU$(D,$,J);Iz0.exports=AU$});var Cz0=A((ig$,Tz0)=>{var IU$=K4(),jU$=($,D)=>IU$($,D,!0);Tz0.exports=jU$});var PN=A((pg$,Sz0)=>{var Pz0=ED(),TU$=($,D,J)=>{let X=new Pz0($,J),Q=new Pz0(D,J);return X.compare(Q)||X.compareBuild(Q)};Sz0.exports=TU$});var vz0=A((rg$,xz0)=>{var CU$=PN(),PU$=($,D)=>$.sort((J,X)=>CU$(J,X,D));xz0.exports=PU$});var kz0=A((og$,_z0)=>{var SU$=PN(),xU$=($,D)=>$.sort((J,X)=>SU$(X,J,D));_z0.exports=xU$});var Bq=A((ag$,uz0)=>{var vU$=K4(),_U$=($,D,J)=>vU$($,D,J)>0;uz0.exports=_U$});var SN=A((tg$,yz0)=>{var kU$=K4(),uU$=($,D,J)=>kU$($,D,J)<0;yz0.exports=uU$});var bv=A((sg$,fz0)=>{var yU$=K4(),fU$=($,D,J)=>yU$($,D,J)===0;fz0.exports=fU$});var gv=A((eg$,hz0)=>{var hU$=K4(),bU$=($,D,J)=>hU$($,D,J)!==0;hz0.exports=bU$});var xN=A(($m$,bz0)=>{var gU$=K4(),mU$=($,D,J)=>gU$($,D,J)>=0;bz0.exports=mU$});var vN=A((Dm$,gz0)=>{var dU$=K4(),cU$=($,D,J)=>dU$($,D,J)<=0;gz0.exports=cU$});var mv=A((Jm$,mz0)=>{var lU$=bv(),nU$=gv(),iU$=Bq(),pU$=xN(),rU$=SN(),oU$=vN(),aU$=($,D,J,X)=>{switch(D){case"===":if(typeof $==="object")$=$.version;if(typeof J==="object")J=J.version;return $===J;case"!==":if(typeof $==="object")$=$.version;if(typeof J==="object")J=J.version;return $!==J;case"":case"=":case"==":return lU$($,J,X);case"!=":return nU$($,J,X);case">":return iU$($,J,X);case">=":return pU$($,J,X);case"<":return rU$($,J,X);case"<=":return oU$($,J,X);default:throw TypeError(`Invalid operator: ${D}`)}};mz0.exports=aU$});var cz0=A((Xm$,dz0)=>{var tU$=ED(),sU$=p7(),{safeRe:_N,t:kN}=$Z(),eU$=($,D)=>{if($ instanceof tU$)return $;if(typeof $==="number")$=String($);if(typeof $!=="string")return null;D=D||{};let J=null;if(!D.rtl)J=$.match(D.includePrerelease?_N[kN.COERCEFULL]:_N[kN.COERCE]);else{let U=D.includePrerelease?_N[kN.COERCERTLFULL]:_N[kN.COERCERTL],G;while((G=U.exec($))&&(!J||J.index+J[0].length!==$.length)){if(!J||G.index+G[0].length!==J.index+J[0].length)J=G;U.lastIndex=G.index+G[1].length+G[2].length}U.lastIndex=-1}if(J===null)return null;let X=J[2],Q=J[3]||"0",Y=J[4]||"0",Z=D.includePrerelease&&J[5]?`-${J[5]}`:"",F=D.includePrerelease&&J[6]?`+${J[6]}`:"";return sU$(`${X}.${Q}.${Y}${Z}${F}`,D)};dz0.exports=eU$});var nz0=A((Qm$,lz0)=>{var $G$=p7(),DG$=eY(),JG$=ED(),XG$=($,D,J)=>{if(!DG$.RELEASE_TYPES.includes(D))return null;let X=QG$($,J);return X&&YG$(X,D)},QG$=($,D)=>{let J=$ instanceof JG$?$.version:$;return $G$(J,D)},YG$=($,D)=>{if(ZG$(D))return $.version;switch($.prerelease=[],D){case"major":$.minor=0,$.patch=0;break;case"minor":$.patch=0;break}return $.format()},ZG$=($)=>{return $.startsWith("pre")};lz0.exports=XG$});var rz0=A((Ym$,pz0)=>{class iz0{constructor(){this.max=1000,this.map=new Map}get($){let D=this.map.get($);if(D===void 0)return;else return this.map.delete($),this.map.set($,D),D}delete($){return this.map.delete($)}set($,D){if(!this.delete($)&&D!==void 0){if(this.map.size>=this.max){let X=this.map.keys().next().value;this.delete(X)}this.map.set($,D)}return this}}pz0.exports=iz0});var N4=A((Zm$,sz0)=>{var FG$=/\s+/g;class Eq{constructor($,D){if(D=GG$(D),$ instanceof Eq)if($.loose===!!D.loose&&$.includePrerelease===!!D.includePrerelease)return $;else return new Eq($.raw,D);if($ instanceof dv)return this.raw=$.value,this.set=[[$]],this.formatted=void 0,this;if(this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease,this.raw=$.trim().replace(FG$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((X)=>!az0(X[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let X of this.set)if(X.length===1&&MG$(X[0])){this.set=[X];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let $=0;$<this.set.length;$++){if($>0)this.formatted+="||";let D=this.set[$];for(let J=0;J<D.length;J++){if(J>0)this.formatted+=" ";this.formatted+=D[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange($){$=$.replace(NG$,"");let J=((this.options.includePrerelease&&VG$)|(this.options.loose&&KG$))+":"+$,X=oz0.get(J);if(X)return X;let Q=this.options.loose,Y=Q?J6[RD.HYPHENRANGELOOSE]:J6[RD.HYPHENRANGE];$=$.replace(Y,CG$(this.options.includePrerelease)),L1("hyphen replace",$),$=$.replace(J6[RD.COMPARATORTRIM],zG$),L1("comparator trim",$),$=$.replace(J6[RD.TILDETRIM],HG$),L1("tilde trim",$),$=$.replace(J6[RD.CARETTRIM],OG$),L1("caret trim",$);let Z=$.split(" ").map((q)=>LG$(q,this.options)).join(" ").split(/\s+/).map((q)=>TG$(q,this.options));if(Q)Z=Z.filter((q)=>{return L1("loose invalid filter",q,this.options),!!q.match(J6[RD.COMPARATORLOOSE])});L1("range list",Z);let F=new Map,U=Z.map((q)=>new dv(q,this.options));for(let q of U){if(az0(q))return[q];F.set(q.value,q)}if(F.size>1&&F.has(""))F.delete("");let G=[...F.values()];return oz0.set(J,G),G}intersects($,D){if(!($ instanceof Eq))throw TypeError("a Range is required");return this.set.some((J)=>{return tz0(J,D)&&$.set.some((X)=>{return tz0(X,D)&&J.every((Q)=>{return X.every((Y)=>{return Q.intersects(Y,D)})})})})}test($){if(!$)return!1;if(typeof $==="string")try{$=new qG$($,this.options)}catch(D){return!1}for(let D=0;D<this.set.length;D++)if(PG$(this.set[D],$,this.options))return!0;return!1}}sz0.exports=Eq;var UG$=rz0(),oz0=new UG$,GG$=AN(),dv=Rq(),L1=wq(),qG$=ED(),{safeRe:J6,src:WG$,t:RD,comparatorTrimReplace:zG$,tildeTrimReplace:HG$,caretTrimReplace:OG$}=$Z(),{FLAG_INCLUDE_PRERELEASE:VG$,FLAG_LOOSE:KG$}=eY(),NG$=new RegExp(WG$[RD.BUILD],"g"),az0=($)=>$.value==="<0.0.0-0",MG$=($)=>$.value==="",tz0=($,D)=>{let J=!0,X=$.slice(),Q=X.pop();while(J&&X.length)J=X.every((Y)=>{return Q.intersects(Y,D)}),Q=X.pop();return J},LG$=($,D)=>{return $=$.replace(J6[RD.BUILD],""),L1("comp",$,D),$=EG$($,D),L1("caret",$),$=wG$($,D),L1("tildes",$),$=AG$($,D),L1("xrange",$),$=jG$($,D),L1("stars",$),$},X6=($)=>!$||$.toLowerCase()==="x"||$==="*",wG$=($,D)=>{return $.trim().split(/\s+/).map((J)=>BG$(J,D)).join(" ")},BG$=($,D)=>{let J=D.loose?J6[RD.TILDELOOSE]:J6[RD.TILDE];return $.replace(J,(X,Q,Y,Z,F)=>{L1("tilde",$,X,Q,Y,Z,F);let U;if(X6(Q))U="";else if(X6(Y))U=`>=${Q}.0.0 <${+Q+1}.0.0-0`;else if(X6(Z))U=`>=${Q}.${Y}.0 <${Q}.${+Y+1}.0-0`;else if(F)L1("replaceTilde pr",F),U=`>=${Q}.${Y}.${Z}-${F} <${Q}.${+Y+1}.0-0`;else U=`>=${Q}.${Y}.${Z} <${Q}.${+Y+1}.0-0`;return L1("tilde return",U),U})},EG$=($,D)=>{return $.trim().split(/\s+/).map((J)=>RG$(J,D)).join(" ")},RG$=($,D)=>{L1("caret",$,D);let J=D.loose?J6[RD.CARETLOOSE]:J6[RD.CARET],X=D.includePrerelease?"-0":"";return $.replace(J,(Q,Y,Z,F,U)=>{L1("caret",$,Q,Y,Z,F,U);let G;if(X6(Y))G="";else if(X6(Z))G=`>=${Y}.0.0${X} <${+Y+1}.0.0-0`;else if(X6(F))if(Y==="0")G=`>=${Y}.${Z}.0${X} <${Y}.${+Z+1}.0-0`;else G=`>=${Y}.${Z}.0${X} <${+Y+1}.0.0-0`;else if(U)if(L1("replaceCaret pr",U),Y==="0")if(Z==="0")G=`>=${Y}.${Z}.${F}-${U} <${Y}.${Z}.${+F+1}-0`;else G=`>=${Y}.${Z}.${F}-${U} <${Y}.${+Z+1}.0-0`;else G=`>=${Y}.${Z}.${F}-${U} <${+Y+1}.0.0-0`;else if(L1("no pr"),Y==="0")if(Z==="0")G=`>=${Y}.${Z}.${F}${X} <${Y}.${Z}.${+F+1}-0`;else G=`>=${Y}.${Z}.${F}${X} <${Y}.${+Z+1}.0-0`;else G=`>=${Y}.${Z}.${F} <${+Y+1}.0.0-0`;return L1("caret return",G),G})},AG$=($,D)=>{return L1("replaceXRanges",$,D),$.split(/\s+/).map((J)=>IG$(J,D)).join(" ")},IG$=($,D)=>{$=$.trim();let J=D.loose?J6[RD.XRANGELOOSE]:J6[RD.XRANGE];return $.replace(J,(X,Q,Y,Z,F,U)=>{L1("xRange",$,X,Q,Y,Z,F,U);let G=X6(Y),q=G||X6(Z),W=q||X6(F),z=W;if(Q==="="&&z)Q="";if(U=D.includePrerelease?"-0":"",G)if(Q===">"||Q==="<")X="<0.0.0-0";else X="*";else if(Q&&z){if(q)Z=0;if(F=0,Q===">")if(Q=">=",q)Y=+Y+1,Z=0,F=0;else Z=+Z+1,F=0;else if(Q==="<=")if(Q="<",q)Y=+Y+1;else Z=+Z+1;if(Q==="<")U="-0";X=`${Q+Y}.${Z}.${F}${U}`}else if(q)X=`>=${Y}.0.0${U} <${+Y+1}.0.0-0`;else if(W)X=`>=${Y}.${Z}.0${U} <${Y}.${+Z+1}.0-0`;return L1("xRange return",X),X})},jG$=($,D)=>{return L1("replaceStars",$,D),$.trim().replace(J6[RD.STAR],"")},TG$=($,D)=>{return L1("replaceGTE0",$,D),$.trim().replace(J6[D.includePrerelease?RD.GTE0PRE:RD.GTE0],"")},CG$=($)=>(D,J,X,Q,Y,Z,F,U,G,q,W,z)=>{if(X6(X))J="";else if(X6(Q))J=`>=${X}.0.0${$?"-0":""}`;else if(X6(Y))J=`>=${X}.${Q}.0${$?"-0":""}`;else if(Z)J=`>=${J}`;else J=`>=${J}${$?"-0":""}`;if(X6(G))U="";else if(X6(q))U=`<${+G+1}.0.0-0`;else if(X6(W))U=`<${G}.${+q+1}.0-0`;else if(z)U=`<=${G}.${q}.${W}-${z}`;else if($)U=`<${G}.${q}.${+W+1}-0`;else U=`<=${U}`;return`${J} ${U}`.trim()},PG$=($,D,J)=>{for(let X=0;X<$.length;X++)if(!$[X].test(D))return!1;if(D.prerelease.length&&!J.includePrerelease){for(let X=0;X<$.length;X++){if(L1($[X].semver),$[X].semver===dv.ANY)continue;if($[X].semver.prerelease.length>0){let Q=$[X].semver;if(Q.major===D.major&&Q.minor===D.minor&&Q.patch===D.patch)return!0}}return!1}return!0}});var Rq=A((Fm$,QH0)=>{var Aq=Symbol("SemVer ANY");class uN{static get ANY(){return Aq}constructor($,D){if(D=ez0(D),$ instanceof uN)if($.loose===!!D.loose)return $;else $=$.value;if($=$.trim().split(/\s+/).join(" "),lv("comparator",$,D),this.options=D,this.loose=!!D.loose,this.parse($),this.semver===Aq)this.value="";else this.value=this.operator+this.semver.version;lv("comp",this)}parse($){let D=this.options.loose?$H0[DH0.COMPARATORLOOSE]:$H0[DH0.COMPARATOR],J=$.match(D);if(!J)throw TypeError(`Invalid comparator: ${$}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=Aq;else this.semver=new JH0(J[2],this.options.loose)}toString(){return this.value}test($){if(lv("Comparator.test",$,this.options.loose),this.semver===Aq||$===Aq)return!0;if(typeof $==="string")try{$=new JH0($,this.options)}catch(D){return!1}return cv($,this.operator,this.semver,this.options)}intersects($,D){if(!($ instanceof uN))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new XH0($.value,D).test(this.value)}else if($.operator===""){if($.value==="")return!0;return new XH0(this.value,D).test($.semver)}if(D=ez0(D),D.includePrerelease&&(this.value==="<0.0.0-0"||$.value==="<0.0.0-0"))return!1;if(!D.includePrerelease&&(this.value.startsWith("<0.0.0")||$.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&$.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&$.operator.startsWith("<"))return!0;if(this.semver.version===$.semver.version&&this.operator.includes("=")&&$.operator.includes("="))return!0;if(cv(this.semver,"<",$.semver,D)&&this.operator.startsWith(">")&&$.operator.startsWith("<"))return!0;if(cv(this.semver,">",$.semver,D)&&this.operator.startsWith("<")&&$.operator.startsWith(">"))return!0;return!1}}QH0.exports=uN;var ez0=AN(),{safeRe:$H0,t:DH0}=$Z(),cv=mv(),lv=wq(),JH0=ED(),XH0=N4()});var Iq=A((Um$,YH0)=>{var SG$=N4(),xG$=($,D,J)=>{try{D=new SG$(D,J)}catch(X){return!1}return D.test($)};YH0.exports=xG$});var FH0=A((Gm$,ZH0)=>{var vG$=N4(),_G$=($,D)=>new vG$($,D).set.map((J)=>J.map((X)=>X.value).join(" ").trim().split(" "));ZH0.exports=_G$});var GH0=A((qm$,UH0)=>{var kG$=ED(),uG$=N4(),yG$=($,D,J)=>{let X=null,Q=null,Y=null;try{Y=new uG$(D,J)}catch(Z){return null}return $.forEach((Z)=>{if(Y.test(Z)){if(!X||Q.compare(Z)===-1)X=Z,Q=new kG$(X,J)}}),X};UH0.exports=yG$});var WH0=A((Wm$,qH0)=>{var fG$=ED(),hG$=N4(),bG$=($,D,J)=>{let X=null,Q=null,Y=null;try{Y=new hG$(D,J)}catch(Z){return null}return $.forEach((Z)=>{if(Y.test(Z)){if(!X||Q.compare(Z)===1)X=Z,Q=new fG$(X,J)}}),X};qH0.exports=bG$});var OH0=A((zm$,HH0)=>{var nv=ED(),gG$=N4(),zH0=Bq(),mG$=($,D)=>{$=new gG$($,D);let J=new nv("0.0.0");if($.test(J))return J;if(J=new nv("0.0.0-0"),$.test(J))return J;J=null;for(let X=0;X<$.set.length;++X){let Q=$.set[X],Y=null;if(Q.forEach((Z)=>{let F=new nv(Z.semver.version);switch(Z.operator){case">":if(F.prerelease.length===0)F.patch++;else F.prerelease.push(0);F.raw=F.format();case"":case">=":if(!Y||zH0(F,Y))Y=F;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${Z.operator}`)}}),Y&&(!J||zH0(J,Y)))J=Y}if(J&&$.test(J))return J;return null};HH0.exports=mG$});var KH0=A((Hm$,VH0)=>{var dG$=N4(),cG$=($,D)=>{try{return new dG$($,D).range||"*"}catch(J){return null}};VH0.exports=cG$});var yN=A((Om$,wH0)=>{var lG$=ED(),LH0=Rq(),{ANY:nG$}=LH0,iG$=N4(),pG$=Iq(),NH0=Bq(),MH0=SN(),rG$=vN(),oG$=xN(),aG$=($,D,J,X)=>{$=new lG$($,X),D=new iG$(D,X);let Q,Y,Z,F,U;switch(J){case">":Q=NH0,Y=rG$,Z=MH0,F=">",U=">=";break;case"<":Q=MH0,Y=oG$,Z=NH0,F="<",U="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(pG$($,D,X))return!1;for(let G=0;G<D.set.length;++G){let q=D.set[G],W=null,z=null;if(q.forEach((H)=>{if(H.semver===nG$)H=new LH0(">=0.0.0");if(W=W||H,z=z||H,Q(H.semver,W.semver,X))W=H;else if(Z(H.semver,z.semver,X))z=H}),W.operator===F||W.operator===U)return!1;if((!z.operator||z.operator===F)&&Y($,z.semver))return!1;else if(z.operator===U&&Z($,z.semver))return!1}return!0};wH0.exports=aG$});var EH0=A((Vm$,BH0)=>{var tG$=yN(),sG$=($,D,J)=>tG$($,D,">",J);BH0.exports=sG$});var AH0=A((Km$,RH0)=>{var eG$=yN(),$q$=($,D,J)=>eG$($,D,"<",J);RH0.exports=$q$});var TH0=A((Nm$,jH0)=>{var IH0=N4(),Dq$=($,D,J)=>{return $=new IH0($,J),D=new IH0(D,J),$.intersects(D,J)};jH0.exports=Dq$});var PH0=A((Mm$,CH0)=>{var Jq$=Iq(),Xq$=K4();CH0.exports=($,D,J)=>{let X=[],Q=null,Y=null,Z=$.sort((q,W)=>Xq$(q,W,J));for(let q of Z)if(Jq$(q,D,J)){if(Y=q,!Q)Q=q}else{if(Y)X.push([Q,Y]);Y=null,Q=null}if(Q)X.push([Q,null]);let F=[];for(let[q,W]of X)if(q===W)F.push(q);else if(!W&&q===Z[0])F.push("*");else if(!W)F.push(`>=${q}`);else if(q===Z[0])F.push(`<=${W}`);else F.push(`${q} - ${W}`);let U=F.join(" || "),G=typeof D.raw==="string"?D.raw:String(D);return U.length<G.length?U:D}});var uH0=A((Lm$,kH0)=>{var SH0=N4(),rv=Rq(),{ANY:iv}=rv,pv=Iq(),ov=K4(),Qq$=($,D,J={})=>{if($===D)return!0;$=new SH0($,J),D=new SH0(D,J);let X=!1;$:for(let Q of $.set){for(let Y of D.set){let Z=Zq$(Q,Y,J);if(X=X||Z!==null,Z)continue $}if(X)return!1}return!0},Yq$=[new rv(">=0.0.0-0")],xH0=[new rv(">=0.0.0")],Zq$=($,D,J)=>{if($===D)return!0;if($.length===1&&$[0].semver===iv)if(D.length===1&&D[0].semver===iv)return!0;else if(J.includePrerelease)$=Yq$;else $=xH0;if(D.length===1&&D[0].semver===iv)if(J.includePrerelease)return!0;else D=xH0;let X=new Set,Q,Y;for(let H of $)if(H.operator===">"||H.operator===">=")Q=vH0(Q,H,J);else if(H.operator==="<"||H.operator==="<=")Y=_H0(Y,H,J);else X.add(H.semver);if(X.size>1)return null;let Z;if(Q&&Y){if(Z=ov(Q.semver,Y.semver,J),Z>0)return null;else if(Z===0&&(Q.operator!==">="||Y.operator!=="<="))return null}for(let H of X){if(Q&&!pv(H,String(Q),J))return null;if(Y&&!pv(H,String(Y),J))return null;for(let O of D)if(!pv(H,String(O),J))return!1;return!0}let F,U,G,q,W=Y&&!J.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,z=Q&&!J.includePrerelease&&Q.semver.prerelease.length?Q.semver:!1;if(W&&W.prerelease.length===1&&Y.operator==="<"&&W.prerelease[0]===0)W=!1;for(let H of D){if(q=q||H.operator===">"||H.operator===">=",G=G||H.operator==="<"||H.operator==="<=",Q){if(z){if(H.semver.prerelease&&H.semver.prerelease.length&&H.semver.major===z.major&&H.semver.minor===z.minor&&H.semver.patch===z.patch)z=!1}if(H.operator===">"||H.operator===">="){if(F=vH0(Q,H,J),F===H&&F!==Q)return!1}else if(Q.operator===">="&&!H.test(Q.semver))return!1}if(Y){if(W){if(H.semver.prerelease&&H.semver.prerelease.length&&H.semver.major===W.major&&H.semver.minor===W.minor&&H.semver.patch===W.patch)W=!1}if(H.operator==="<"||H.operator==="<="){if(U=_H0(Y,H,J),U===H&&U!==Y)return!1}else if(Y.operator==="<="&&!H.test(Y.semver))return!1}if(!H.operator&&(Y||Q)&&Z!==0)return!1}if(Q&&G&&!Y&&Z!==0)return!1;if(Y&&q&&!Q&&Z!==0)return!1;if(z||W)return!1;return!0},vH0=($,D,J)=>{if(!$)return D;let X=ov($.semver,D.semver,J);return X>0?$:X<0?D:D.operator===">"&&$.operator===">="?D:$},_H0=($,D,J)=>{if(!$)return D;let X=ov($.semver,D.semver,J);return X<0?$:X>0?D:D.operator==="<"&&$.operator==="<="?D:$};kH0.exports=Qq$});var fN=A((wm$,hH0)=>{var av=$Z(),yH0=eY(),Fq$=ED(),fH0=fv(),Uq$=p7(),Gq$=Zz0(),qq$=Uz0(),Wq$=Wz0(),zq$=Oz0(),Hq$=Kz0(),Oq$=Mz0(),Vq$=wz0(),Kq$=Ez0(),Nq$=K4(),Mq$=jz0(),Lq$=Cz0(),wq$=PN(),Bq$=vz0(),Eq$=kz0(),Rq$=Bq(),Aq$=SN(),Iq$=bv(),jq$=gv(),Tq$=xN(),Cq$=vN(),Pq$=mv(),Sq$=cz0(),xq$=nz0(),vq$=Rq(),_q$=N4(),kq$=Iq(),uq$=FH0(),yq$=GH0(),fq$=WH0(),hq$=OH0(),bq$=KH0(),gq$=yN(),mq$=EH0(),dq$=AH0(),cq$=TH0(),lq$=PH0(),nq$=uH0();hH0.exports={parse:Uq$,valid:Gq$,clean:qq$,inc:Wq$,diff:zq$,major:Hq$,minor:Oq$,patch:Vq$,prerelease:Kq$,compare:Nq$,rcompare:Mq$,compareLoose:Lq$,compareBuild:wq$,sort:Bq$,rsort:Eq$,gt:Rq$,lt:Aq$,eq:Iq$,neq:jq$,gte:Tq$,lte:Cq$,cmp:Pq$,coerce:Sq$,truncate:xq$,Comparator:vq$,Range:_q$,satisfies:kq$,toComparators:uq$,maxSatisfying:yq$,minSatisfying:fq$,minVersion:hq$,validRange:bq$,outside:gq$,gtr:mq$,ltr:dq$,intersects:cq$,simplifyRange:lq$,subset:nq$,SemVer:Fq$,re:av.re,src:av.src,tokens:av.t,SEMVER_SPEC_VERSION:yH0.SEMVER_SPEC_VERSION,RELEASE_TYPES:yH0.RELEASE_TYPES,compareIdentifiers:fH0.compareIdentifiers,rcompareIdentifiers:fH0.rcompareIdentifiers}});var gH0=A((Bm$,bH0)=>{var iq$=fN();bH0.exports=iq$.satisfies(process.version,">=15.7.0")});var dH0=A((Em$,mH0)=>{var pq$=fN();mH0.exports=pq$.satisfies(process.version,">=16.9.0")});var tv=A((Rm$,cH0)=>{var rq$=gH0(),oq$=dH0(),aq$={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},tq$={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};cH0.exports=function($,D){if(!$||!D)return;let J=D.asymmetricKeyType;if(!J)return;let X=aq$[J];if(!X)throw Error(`Unknown key type "${J}".`);if(!X.includes($))throw Error(`"alg" parameter for "${J}" key type must be one of: ${X.join(", ")}.`);if(rq$)switch(J){case"ec":let Q=D.asymmetricKeyDetails.namedCurve,Y=tq$[$];if(Q!==Y)throw Error(`"alg" parameter "${$}" requires curve "${Y}".`);break;case"rsa-pss":if(oq$){let Z=parseInt($.slice(-3),10),{hashAlgorithm:F,mgf1HashAlgorithm:U,saltLength:G}=D.asymmetricKeyDetails;if(F!==`sha${Z}`||U!==F)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${$}.`);if(G!==void 0&&G>Z>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${$}.`)}break}}});var sv=A((Am$,lH0)=>{var sq$=fN();lH0.exports=sq$.satisfies(process.version,"^6.12.0 || >=8.0.0")});var pH0=A((Im$,iH0)=>{var W1=Lq(),eq$=vv(),nH0=_v(),$3$=xv(),D3$=kv(),J3$=tv(),X3$=sv(),Q3$=wN(),{KeyObject:Y3$,createSecretKey:Z3$,createPublicKey:F3$}=s("crypto"),ev=["RS256","RS384","RS512"],U3$=["ES256","ES384","ES512"],$_=["RS256","RS384","RS512"],G3$=["HS256","HS384","HS512"];if(X3$)ev.splice(ev.length,0,"PS256","PS384","PS512"),$_.splice($_.length,0,"PS256","PS384","PS512");iH0.exports=function($,D,J,X){if(typeof J==="function"&&!X)X=J,J={};if(!J)J={};J=Object.assign({},J);let Q;if(X)Q=X;else Q=function(q,W){if(q)throw q;return W};if(J.clockTimestamp&&typeof J.clockTimestamp!=="number")return Q(new W1("clockTimestamp must be a number"));if(J.nonce!==void 0&&(typeof J.nonce!=="string"||J.nonce.trim()===""))return Q(new W1("nonce must be a non-empty string"));if(J.allowInvalidAsymmetricKeyTypes!==void 0&&typeof J.allowInvalidAsymmetricKeyTypes!=="boolean")return Q(new W1("allowInvalidAsymmetricKeyTypes must be a boolean"));let Y=J.clockTimestamp||Math.floor(Date.now()/1000);if(!$)return Q(new W1("jwt must be provided"));if(typeof $!=="string")return Q(new W1("jwt must be a string"));let Z=$.split(".");if(Z.length!==3)return Q(new W1("jwt malformed"));let F;try{F=$3$($,{complete:!0})}catch(q){return Q(q)}if(!F)return Q(new W1("invalid token"));let U=F.header,G;if(typeof D==="function"){if(!X)return Q(new W1("verify must be called asynchronous if secret or public key is provided as a callback"));G=D}else G=function(q,W){return W(null,D)};return G(U,function(q,W){if(q)return Q(new W1("error in secret or public key callback: "+q.message));let z=Z[2].trim()!=="";if(!z&&W)return Q(new W1("jwt signature is required"));if(z&&!W)return Q(new W1("secret or public key must be provided"));if(!z&&!J.algorithms)return Q(new W1('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof Y3$))try{W=F3$(W)}catch(V){try{W=Z3$(typeof W==="string"?Buffer.from(W):W)}catch(K){return Q(new W1("secretOrPublicKey is not valid key material"))}}if(!J.algorithms)if(W.type==="secret")J.algorithms=G3$;else if(["rsa","rsa-pss"].includes(W.asymmetricKeyType))J.algorithms=$_;else if(W.asymmetricKeyType==="ec")J.algorithms=U3$;else J.algorithms=ev;if(J.algorithms.indexOf(F.header.alg)===-1)return Q(new W1("invalid algorithm"));if(U.alg.startsWith("HS")&&W.type!=="secret")return Q(new W1(`secretOrPublicKey must be a symmetric key when using ${U.alg}`));else if(/^(?:RS|PS|ES)/.test(U.alg)&&W.type!=="public")return Q(new W1(`secretOrPublicKey must be an asymmetric key when using ${U.alg}`));if(!J.allowInvalidAsymmetricKeyTypes)try{J3$(U.alg,W)}catch(V){return Q(V)}let H;try{H=Q3$.verify($,F.header.alg,W)}catch(V){return Q(V)}if(!H)return Q(new W1("invalid signature"));let O=F.payload;if(typeof O.nbf<"u"&&!J.ignoreNotBefore){if(typeof O.nbf!=="number")return Q(new W1("invalid nbf value"));if(O.nbf>Y+(J.clockTolerance||0))return Q(new eq$("jwt not active",new Date(O.nbf*1000)))}if(typeof O.exp<"u"&&!J.ignoreExpiration){if(typeof O.exp!=="number")return Q(new W1("invalid exp value"));if(Y>=O.exp+(J.clockTolerance||0))return Q(new nH0("jwt expired",new Date(O.exp*1000)))}if(J.audience){let V=Array.isArray(J.audience)?J.audience:[J.audience];if(!(Array.isArray(O.aud)?O.aud:[O.aud]).some(function(E){return V.some(function(N){return N instanceof RegExp?N.test(E):N===E})}))return Q(new W1("jwt audience invalid. expected: "+V.join(" or ")))}if(J.issuer){if(typeof J.issuer==="string"&&O.iss!==J.issuer||Array.isArray(J.issuer)&&J.issuer.indexOf(O.iss)===-1)return Q(new W1("jwt issuer invalid. expected: "+J.issuer))}if(J.subject){if(O.sub!==J.subject)return Q(new W1("jwt subject invalid. expected: "+J.subject))}if(J.jwtid){if(O.jti!==J.jwtid)return Q(new W1("jwt jwtid invalid. expected: "+J.jwtid))}if(J.nonce){if(O.nonce!==J.nonce)return Q(new W1("jwt nonce invalid. expected: "+J.nonce))}if(J.maxAge){if(typeof O.iat!=="number")return Q(new W1("iat required when maxAge is specified"));let V=D3$(J.maxAge,O.iat);if(typeof V>"u")return Q(new W1('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(Y>=V+(J.clockTolerance||0))return Q(new nH0("maxAge exceeded",new Date(V*1000)))}if(J.complete===!0){let V=F.signature;return Q(null,{header:U,payload:O,signature:V})}return Q(null,O)})}});var eH0=A((jm$,sH0)=>{var rH0=1/0,aH0=9007199254740991,q3$=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,oH0=NaN,W3$="[object Arguments]",z3$="[object Function]",H3$="[object GeneratorFunction]",O3$="[object String]",V3$="[object Symbol]",K3$=/^\s+|\s+$/g,N3$=/^[-+]0x[0-9a-f]+$/i,M3$=/^0b[01]+$/i,L3$=/^0o[0-7]+$/i,w3$=/^(?:0|[1-9]\d*)$/,B3$=parseInt;function E3$($,D){var J=-1,X=$?$.length:0,Q=Array(X);while(++J<X)Q[J]=D($[J],J,$);return Q}function R3$($,D,J,X){var Q=$.length,Y=J+(X?1:-1);while(X?Y--:++Y<Q)if(D($[Y],Y,$))return Y;return-1}function A3$($,D,J){if(D!==D)return R3$($,I3$,J);var X=J-1,Q=$.length;while(++X<Q)if($[X]===D)return X;return-1}function I3$($){return $!==$}function j3$($,D){var J=-1,X=Array($);while(++J<$)X[J]=D(J);return X}function T3$($,D){return E3$(D,function(J){return $[J]})}function C3$($,D){return function(J){return $(D(J))}}var hN=Object.prototype,J_=hN.hasOwnProperty,bN=hN.toString,P3$=hN.propertyIsEnumerable,S3$=C3$(Object.keys,Object),x3$=Math.max;function v3$($,D){var J=tH0($)||f3$($)?j3$($.length,String):[],X=J.length,Q=!!X;for(var Y in $)if((D||J_.call($,Y))&&!(Q&&(Y=="length"||k3$(Y,X))))J.push(Y);return J}function _3$($){if(!u3$($))return S3$($);var D=[];for(var J in Object($))if(J_.call($,J)&&J!="constructor")D.push(J);return D}function k3$($,D){return D=D==null?aH0:D,!!D&&(typeof $=="number"||w3$.test($))&&($>-1&&$%1==0&&$<D)}function u3$($){var D=$&&$.constructor,J=typeof D=="function"&&D.prototype||hN;return $===J}function y3$($,D,J,X){$=X_($)?$:p3$($),J=J&&!X?l3$(J):0;var Q=$.length;if(J<0)J=x3$(Q+J,0);return m3$($)?J<=Q&&$.indexOf(D,J)>-1:!!Q&&A3$($,D,J)>-1}function f3$($){return h3$($)&&J_.call($,"callee")&&(!P3$.call($,"callee")||bN.call($)==W3$)}var tH0=Array.isArray;function X_($){return $!=null&&g3$($.length)&&!b3$($)}function h3$($){return Q_($)&&X_($)}function b3$($){var D=D_($)?bN.call($):"";return D==z3$||D==H3$}function g3$($){return typeof $=="number"&&$>-1&&$%1==0&&$<=aH0}function D_($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function Q_($){return!!$&&typeof $=="object"}function m3$($){return typeof $=="string"||!tH0($)&&Q_($)&&bN.call($)==O3$}function d3$($){return typeof $=="symbol"||Q_($)&&bN.call($)==V3$}function c3$($){if(!$)return $===0?$:0;if($=n3$($),$===rH0||$===-rH0){var D=$<0?-1:1;return D*q3$}return $===$?$:0}function l3$($){var D=c3$($),J=D%1;return D===D?J?D-J:D:0}function n3$($){if(typeof $=="number")return $;if(d3$($))return oH0;if(D_($)){var D=typeof $.valueOf=="function"?$.valueOf():$;$=D_(D)?D+"":D}if(typeof $!="string")return $===0?$:+$;$=$.replace(K3$,"");var J=M3$.test($);return J||L3$.test($)?B3$($.slice(2),J?2:8):N3$.test($)?oH0:+$}function i3$($){return X_($)?v3$($):_3$($)}function p3$($){return $?T3$($,i3$($)):[]}sH0.exports=y3$});var DO0=A((Tm$,$O0)=>{var r3$="[object Boolean]",o3$=Object.prototype,a3$=o3$.toString;function t3$($){return $===!0||$===!1||s3$($)&&a3$.call($)==r3$}function s3$($){return!!$&&typeof $=="object"}$O0.exports=t3$});var ZO0=A((Cm$,YO0)=>{var JO0=1/0,e3$=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,XO0=NaN,$W$="[object Symbol]",DW$=/^\s+|\s+$/g,JW$=/^[-+]0x[0-9a-f]+$/i,XW$=/^0b[01]+$/i,QW$=/^0o[0-7]+$/i,YW$=parseInt,ZW$=Object.prototype,FW$=ZW$.toString;function UW$($){return typeof $=="number"&&$==zW$($)}function QO0($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function GW$($){return!!$&&typeof $=="object"}function qW$($){return typeof $=="symbol"||GW$($)&&FW$.call($)==$W$}function WW$($){if(!$)return $===0?$:0;if($=HW$($),$===JO0||$===-JO0){var D=$<0?-1:1;return D*e3$}return $===$?$:0}function zW$($){var D=WW$($),J=D%1;return D===D?J?D-J:D:0}function HW$($){if(typeof $=="number")return $;if(qW$($))return XO0;if(QO0($)){var D=typeof $.valueOf=="function"?$.valueOf():$;$=QO0(D)?D+"":D}if(typeof $!="string")return $===0?$:+$;$=$.replace(DW$,"");var J=XW$.test($);return J||QW$.test($)?YW$($.slice(2),J?2:8):JW$.test($)?XO0:+$}YO0.exports=UW$});var UO0=A((Pm$,FO0)=>{var OW$="[object Number]",VW$=Object.prototype,KW$=VW$.toString;function NW$($){return!!$&&typeof $=="object"}function MW$($){return typeof $=="number"||NW$($)&&KW$.call($)==OW$}FO0.exports=MW$});var zO0=A((Sm$,WO0)=>{var LW$="[object Object]";function wW$($){var D=!1;if($!=null&&typeof $.toString!="function")try{D=!!($+"")}catch(J){}return D}function BW$($,D){return function(J){return $(D(J))}}var EW$=Function.prototype,GO0=Object.prototype,qO0=EW$.toString,RW$=GO0.hasOwnProperty,AW$=qO0.call(Object),IW$=GO0.toString,jW$=BW$(Object.getPrototypeOf,Object);function TW$($){return!!$&&typeof $=="object"}function CW$($){if(!TW$($)||IW$.call($)!=LW$||wW$($))return!1;var D=jW$($);if(D===null)return!0;var J=RW$.call(D,"constructor")&&D.constructor;return typeof J=="function"&&J instanceof J&&qO0.call(J)==AW$}WO0.exports=CW$});var OO0=A((xm$,HO0)=>{var PW$="[object String]",SW$=Object.prototype,xW$=SW$.toString,vW$=Array.isArray;function _W$($){return!!$&&typeof $=="object"}function kW$($){return typeof $=="string"||!vW$($)&&_W$($)&&xW$.call($)==PW$}HO0.exports=kW$});var LO0=A((vm$,MO0)=>{var uW$="Expected a function",VO0=1/0,yW$=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,KO0=NaN,fW$="[object Symbol]",hW$=/^\s+|\s+$/g,bW$=/^[-+]0x[0-9a-f]+$/i,gW$=/^0b[01]+$/i,mW$=/^0o[0-7]+$/i,dW$=parseInt,cW$=Object.prototype,lW$=cW$.toString;function nW$($,D){var J;if(typeof D!="function")throw TypeError(uW$);return $=aW$($),function(){if(--$>0)J=D.apply(this,arguments);if($<=1)D=void 0;return J}}function iW$($){return nW$(2,$)}function NO0($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function pW$($){return!!$&&typeof $=="object"}function rW$($){return typeof $=="symbol"||pW$($)&&lW$.call($)==fW$}function oW$($){if(!$)return $===0?$:0;if($=tW$($),$===VO0||$===-VO0){var D=$<0?-1:1;return D*yW$}return $===$?$:0}function aW$($){var D=oW$($),J=D%1;return D===D?J?D-J:D:0}function tW$($){if(typeof $=="number")return $;if(rW$($))return KO0;if(NO0($)){var D=typeof $.valueOf=="function"?$.valueOf():$;$=NO0(D)?D+"":D}if(typeof $!="string")return $===0?$:+$;$=$.replace(hW$,"");var J=gW$.test($);return J||mW$.test($)?dW$($.slice(2),J?2:8):bW$.test($)?KO0:+$}MO0.exports=iW$});var CO0=A((_m$,TO0)=>{var wO0=kv(),sW$=sv(),eW$=tv(),BO0=wN(),$z$=eH0(),gN=DO0(),EO0=ZO0(),Y_=UO0(),AO0=zO0(),r7=OO0(),Dz$=LO0(),{KeyObject:Jz$,createSecretKey:Xz$,createPrivateKey:Qz$}=s("crypto"),IO0=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];if(sW$)IO0.splice(3,0,"PS256","PS384","PS512");var Yz$={expiresIn:{isValid:function($){return EO0($)||r7($)&&$},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function($){return EO0($)||r7($)&&$},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function($){return r7($)||Array.isArray($)},message:'"audience" must be a string or array'},algorithm:{isValid:$z$.bind(null,IO0),message:'"algorithm" must be a valid string enum value'},header:{isValid:AO0,message:'"header" must be an object'},encoding:{isValid:r7,message:'"encoding" must be a string'},issuer:{isValid:r7,message:'"issuer" must be a string'},subject:{isValid:r7,message:'"subject" must be a string'},jwtid:{isValid:r7,message:'"jwtid" must be a string'},noTimestamp:{isValid:gN,message:'"noTimestamp" must be a boolean'},keyid:{isValid:r7,message:'"keyid" must be a string'},mutatePayload:{isValid:gN,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:gN,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:gN,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},Zz$={iat:{isValid:Y_,message:'"iat" should be a number of seconds'},exp:{isValid:Y_,message:'"exp" should be a number of seconds'},nbf:{isValid:Y_,message:'"nbf" should be a number of seconds'}};function jO0($,D,J,X){if(!AO0(J))throw Error('Expected "'+X+'" to be a plain object.');Object.keys(J).forEach(function(Q){let Y=$[Q];if(!Y){if(!D)throw Error('"'+Q+'" is not allowed in "'+X+'"');return}if(!Y.isValid(J[Q]))throw Error(Y.message)})}function Fz$($){return jO0(Yz$,!1,$,"options")}function Uz$($){return jO0(Zz$,!0,$,"payload")}var RO0={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},Gz$=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];TO0.exports=function($,D,J,X){if(typeof J==="function")X=J,J={};else J=J||{};let Q=typeof $==="object"&&!Buffer.isBuffer($),Y=Object.assign({alg:J.algorithm||"HS256",typ:Q?"JWT":void 0,kid:J.keyid},J.header);function Z(G){if(X)return X(G);throw G}if(!D&&J.algorithm!=="none")return Z(Error("secretOrPrivateKey must have a value"));if(D!=null&&!(D instanceof Jz$))try{D=Qz$(D)}catch(G){try{D=Xz$(typeof D==="string"?Buffer.from(D):D)}catch(q){return Z(Error("secretOrPrivateKey is not valid key material"))}}if(Y.alg.startsWith("HS")&&D.type!=="secret")return Z(Error(`secretOrPrivateKey must be a symmetric key when using ${Y.alg}`));else if(/^(?:RS|PS|ES)/.test(Y.alg)){if(D.type!=="private")return Z(Error(`secretOrPrivateKey must be an asymmetric key when using ${Y.alg}`));if(!J.allowInsecureKeySizes&&!Y.alg.startsWith("ES")&&D.asymmetricKeyDetails!==void 0&&D.asymmetricKeyDetails.modulusLength<2048)return Z(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`))}if(typeof $>"u")return Z(Error("payload is required"));else if(Q){try{Uz$($)}catch(G){return Z(G)}if(!J.mutatePayload)$=Object.assign({},$)}else{let G=Gz$.filter(function(q){return typeof J[q]<"u"});if(G.length>0)return Z(Error("invalid "+G.join(",")+" option for "+typeof $+" payload"))}if(typeof $.exp<"u"&&typeof J.expiresIn<"u")return Z(Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof $.nbf<"u"&&typeof J.notBefore<"u")return Z(Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{Fz$(J)}catch(G){return Z(G)}if(!J.allowInvalidAsymmetricKeyTypes)try{eW$(Y.alg,D)}catch(G){return Z(G)}let F=$.iat||Math.floor(Date.now()/1000);if(J.noTimestamp)delete $.iat;else if(Q)$.iat=F;if(typeof J.notBefore<"u"){try{$.nbf=wO0(J.notBefore,F)}catch(G){return Z(G)}if(typeof $.nbf>"u")return Z(Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof J.expiresIn<"u"&&typeof $==="object"){try{$.exp=wO0(J.expiresIn,F)}catch(G){return Z(G)}if(typeof $.exp>"u")return Z(Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(RO0).forEach(function(G){let q=RO0[G];if(typeof J[G]<"u"){if(typeof $[q]<"u")return Z(Error('Bad "options.'+G+'" option. The payload already has an "'+q+'" property.'));$[q]=J[G]}});let U=J.encoding||"utf8";if(typeof X==="function")X=X&&Dz$(X),BO0.createSign({header:Y,privateKey:D,payload:$,encoding:U}).once("error",X).once("done",function(G){if(!J.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&G.length<256)return X(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`));X(null,G)});else{let G=BO0.sign({header:Y,payload:$,secret:D,encoding:U});if(!J.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&G.length<256)throw Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`);return G}}});var Z_=A((km$,PO0)=>{PO0.exports={decode:xv(),verify:pH0(),sign:CO0(),JsonWebTokenError:Lq(),NotBeforeError:vv(),TokenExpiredError:_v()}});function Oz$($){let D;try{D=JSON.parse($.toString("utf-8"))}catch(Q){throw Error(`Service account file is not valid JSON: ${Q instanceof Error?Q.message:String(Q)}`)}if(!D||typeof D!=="object")throw Error("Service account file is not a JSON object.");let J=D;if(J.type!=="service_account")throw Error(`Expected "type": "service_account" — found ${JSON.stringify(J.type)}. This file is not a service account key.`);let X=["client_email","private_key","project_id","token_uri"];for(let Q of X){let Y=J[Q];if(typeof Y!=="string"||Y.length===0)throw Error(`Service account JSON is missing required field "${Q}".`)}if(!Hz$.has(J.token_uri))throw Error("Service account JSON has an unsupported token_uri. Expected a Google OAuth token endpoint.");return{type:"service_account",client_email:J.client_email,private_key:J.private_key,project_id:J.project_id,token_uri:J.token_uri,private_key_id:typeof J.private_key_id==="string"?J.private_key_id:void 0,client_id:typeof J.client_id==="string"?J.client_id:void 0}}function Vz$($){let D=Math.floor(Date.now()/1000);return xO0.default.sign({iss:$.client_email,scope:qz$,aud:$.token_uri,exp:D+Wz$,iat:D},$.private_key,{algorithm:"RS256",header:{alg:"RS256",typ:"JWT",kid:$.private_key_id??""}})}async function Kz$($){let D=new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:$.assertion}),J=await F_({url:$.key.token_uri,init:{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:D.toString()},signal:$.signal,timeoutMs:$.timeoutMs,fetchImpl:$.fetchImpl}),X=await J.text();if(!J.ok){let Y=`${J.status} ${J.statusText}`;try{let Z=JSON.parse(X);if(Z.error)Y=Z.error_description?`${Z.error}: ${Z.error_description}`:Z.error}catch{}if(J.status>=500||J.status<400)throw new jq(`Google's token endpoint returned ${Y}. Try again in a moment.`);throw Error(`Google rejected the service account credentials (${Y}). The private key may be revoked or invalid.`)}let Q;try{Q=JSON.parse(X)}catch{throw new jq(`Google's token endpoint returned a non-JSON response (${J.status}).`)}if(typeof Q.access_token!=="string"||Q.access_token.length===0)throw new jq("Google's token response was missing an access_token field.");return Q.access_token}async function F_($){let D=new AbortController,J=setTimeout(()=>D.abort(),$.timeoutMs),X,Q=null;if($.signal){let Y=new AbortController;if(Q=()=>Y.abort(),$.signal.addEventListener("abort",Q,{once:!0}),D.signal.addEventListener("abort",Q,{once:!0}),$.signal.aborted||D.signal.aborted)Y.abort();X=Y.signal}else X=D.signal;try{return await $.fetchImpl($.url,{...$.init,signal:X})}finally{if(clearTimeout(J),Q)$.signal?.removeEventListener("abort",Q),D.signal.removeEventListener("abort",Q)}}async function Nz$($){let D=`${SO0}/applications/${encodeURIComponent($.packageName)}/edits`,J;try{J=await F_({url:D,init:{method:"POST",headers:{Authorization:`Bearer ${$.accessToken}`,"Content-Type":"application/json",Accept:"application/json"},body:"{}"},signal:$.signal,timeoutMs:$.timeoutMs,fetchImpl:$.fetchImpl})}catch(Z){return{kind:"network",detail:Z instanceof Error?Z.message:String(Z)}}let X=await J.text();if(u6(`probeAppAccess: POST ${D} → HTTP ${J.status} ${J.statusText}${J.ok?"":` :: ${X.slice(0,300)}`}`),J.status===401||J.status===403||J.status===404)return{kind:"no-access",detail:Mz$(X)??`${J.status} ${J.statusText}`};if(!J.ok)return{kind:"network",detail:`${J.status} ${J.statusText}: ${X.slice(0,200)}`};let Q;try{Q=JSON.parse(X)}catch{return{kind:"network",detail:"Play API returned non-JSON on edits.insert"}}if(typeof Q.id!=="string"||Q.id.length===0)return{kind:"network",detail:"Play API returned no edit id"};let Y=`${SO0}/applications/${encodeURIComponent($.packageName)}/edits/${encodeURIComponent(Q.id)}`;try{await F_({url:Y,init:{method:"DELETE",headers:{Authorization:`Bearer ${$.accessToken}`}},signal:$.signal,timeoutMs:$.timeoutMs,fetchImpl:$.fetchImpl})}catch{}return{kind:"ok"}}function Mz$($){try{let D=JSON.parse($);if(D.error?.message)return D.error.status?`${D.error.status}: ${D.error.message}`:D.error.message}catch{}return null}async function vO0($){let D=$.timeoutMs??zz$,J=$.fetchImpl??globalThis.fetch.bind(globalThis),X;try{X=Oz$($.jsonBytes)}catch(Z){return{ok:!1,kind:"shape-error",message:Z instanceof Error?Z.message:String(Z)}}if($.signal?.aborted)return{ok:!1,kind:"network-error",message:"Validation cancelled."};let Q;try{let Z=Vz$(X);Q=await Kz$({key:X,assertion:Z,signal:$.signal,timeoutMs:D,fetchImpl:J})}catch(Z){let F=Z instanceof Error?Z.message:String(Z),U=Z?.name==="AbortError",G=Z instanceof jq,q=/timeout|timed out|network|fetch failed|ENOTFOUND|EAI_AGAIN|ECONNRESET|ECONNREFUSED/i.test(F);if(U||G||q)return{ok:!1,kind:"network-error",message:F};return{ok:!1,kind:"token-error",message:F}}if($.signal?.aborted)return{ok:!1,kind:"network-error",message:"Validation cancelled."};let Y=await Nz$({accessToken:Q,packageName:$.packageName,signal:$.signal,timeoutMs:D,fetchImpl:J});if(Y.kind==="ok")return{ok:!0,serviceAccountEmail:X.client_email,projectId:X.project_id};if(Y.kind==="no-access")return{ok:!1,kind:"no-app-access",serviceAccountEmail:X.client_email,message:`Service account "${X.client_email}" cannot access package "${$.packageName}" on Google Play (${Y.detail}). Open Play Console → Users and permissions, invite the service account email, and grant access to this app.`};return{ok:!1,kind:"network-error",message:Y.detail}}var xO0,qz$="https://www.googleapis.com/auth/androidpublisher",SO0="https://androidpublisher.googleapis.com/androidpublisher/v3",Wz$=3600,zz$=30000,Hz$,jq;var _O0=a(()=>{OY();xO0=j$(Z_(),1),Hz$=new Set(["https://oauth2.googleapis.com/token","https://accounts.google.com/o/oauth2/token","https://www.googleapis.com/oauth2/v4/token"]);jq=class jq extends Error{constructor($){super($);this.name="TokenExchangeTransientError"}}});var Lz$;var kO0=a(()=>{Lz$=j$(Jq(),1)});function yO0($,D,J){let X=Math.floor(Date.now()/1000);return uO0.default.sign({iss:D,exp:X+1199,aud:"appstoreconnect-v1"},J,{algorithm:"ES256",header:{alg:"ES256",kid:$,typ:"JWT"}})}function fO0($){let D=typeof $?.status==="number"?$.status:void 0,J=typeof $?.code==="string"?$.code:void 0,X=D===401,Q=D===403,Y=Boolean(Q&&(J==="FORBIDDEN.REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED"||J==="FORBIDDEN_ERROR.PLA_NOT_ACCEPTED"||/\bPLA_NOT_ACCEPTED\b|required agreement|program license agreement/i.test($?.message??"")));return{is401or403:Boolean(X||Q),isAgreements:Y,status:D,code:J,message:Y?wz$:Bz$}}function hO0($){return($?.data||[]).map((D)=>({id:D?.id||"",bundleId:D?.attributes?.bundleId||"",name:D?.attributes?.name||""}))}var uO0,U_,wz$,Bz$=`API key verification failed. Please check:
|
|
453
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,Nq="secret must be a string or buffer",aY="key must be a string or a buffer",GF$="key must be a string, a buffer or an object",jv=typeof V4.createPublicKey==="function";if(jv)aY+=" or a KeyObject",Nq+="or a KeyObject";function KW0($){if(tY.isBuffer($))return;if(typeof $==="string")return;if(!jv)throw d4(aY);if(typeof $!=="object")throw d4(aY);if(typeof $.type!=="string")throw d4(aY);if(typeof $.asymmetricKeyType!=="string")throw d4(aY);if(typeof $.export!=="function")throw d4(aY)}function NW0($){if(tY.isBuffer($))return;if(typeof $==="string")return;if(typeof $==="object")return;throw d4(GF$)}function qF$($){if(tY.isBuffer($))return;if(typeof $==="string")return $;if(!jv)throw d4(Nq);if(typeof $!=="object")throw d4(Nq);if($.type!=="secret")throw d4(Nq);if(typeof $.export!=="function")throw d4(Nq)}function Tv($){return $.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function MW0($){$=$.toString();var D=4-$.length%4;if(D!==4)for(var J=0;J<D;++J)$+="=";return $.replace(/\-/g,"+").replace(/_/g,"/")}function d4($){var D=[].slice.call(arguments,1),J=OW0.format.bind(OW0,$).apply(null,D);return TypeError(J)}function WF$($){return tY.isBuffer($)||typeof $==="string"}function Mq($){if(!WF$($))$=JSON.stringify($);return $}function LW0($){return function(J,X){qF$(X),J=Mq(J);var Q=V4.createHmac("sha"+$,X),Y=(Q.update(J),Q.digest("base64"));return Tv(Y)}}var Iv,zF$="timingSafeEqual"in V4?function(D,J){if(D.byteLength!==J.byteLength)return!1;return V4.timingSafeEqual(D,J)}:function(D,J){if(!Iv)Iv=HW0();return Iv(D,J)};function HF$($){return function(J,X,Q){var Y=LW0($)(J,Q);return zF$(tY.from(X),tY.from(Y))}}function wW0($){return function(J,X){NW0(X),J=Mq(J);var Q=V4.createSign("RSA-SHA"+$),Y=(Q.update(J),Q.sign(X,"base64"));return Tv(Y)}}function BW0($){return function(J,X,Q){KW0(Q),J=Mq(J),X=MW0(X);var Y=V4.createVerify("RSA-SHA"+$);return Y.update(J),Y.verify(Q,X,"base64")}}function OF$($){return function(J,X){NW0(X),J=Mq(J);var Q=V4.createSign("RSA-SHA"+$),Y=(Q.update(J),Q.sign({key:X,padding:V4.constants.RSA_PKCS1_PSS_PADDING,saltLength:V4.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return Tv(Y)}}function VF$($){return function(J,X,Q){KW0(Q),J=Mq(J),X=MW0(X);var Y=V4.createVerify("RSA-SHA"+$);return Y.update(J),Y.verify({key:Q,padding:V4.constants.RSA_PKCS1_PSS_PADDING,saltLength:V4.constants.RSA_PSS_SALTLEN_DIGEST},X,"base64")}}function KF$($){var D=wW0($);return function(){var X=D.apply(null,arguments);return X=VW0.derToJose(X,"ES"+$),X}}function NF$($){var D=BW0($);return function(X,Q,Y){Q=VW0.joseToDer(Q,"ES"+$).toString("base64");var Z=D(X,Q,Y);return Z}}function MF$(){return function(){return""}}function LF$(){return function(D,J){return J===""}}EW0.exports=function(D){var J={hs:LW0,rs:wW0,ps:OF$,es:KF$,none:MF$},X={hs:HF$,rs:BW0,ps:VF$,es:NF$,none:LF$},Q=D.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!Q)throw d4(UF$,D);var Y=(Q[1]||Q[3]).toLowerCase(),Z=Q[2];return{sign:J[Y](Z),verify:X[Y](Z)}}});var Pv=A((Bg$,RW0)=>{var wF$=s("buffer").Buffer;RW0.exports=function(D){if(typeof D==="string")return D;if(typeof D==="number"||wF$.isBuffer(D))return D.toString();return JSON.stringify(D)}});var PW0=A((Eg$,CW0)=>{var BF$=oY().Buffer,AW0=Ev(),EF$=Cv(),RF$=s("stream"),IW0=Pv(),Sv=s("util");function jW0($,D){return BF$.from($,D).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function AF$($,D,J){J=J||"utf8";var X=jW0(IW0($),"binary"),Q=jW0(IW0(D),J);return Sv.format("%s.%s",X,Q)}function TW0($){var{header:D,payload:J}=$,X=$.secret||$.privateKey,Q=$.encoding,Y=EF$(D.alg),Z=AF$(D,J,Q),F=Y.sign(Z,X);return Sv.format("%s.%s",Z,F)}function MN($){var D=$.secret;if(D=D==null?$.privateKey:D,D=D==null?$.key:D,/^hs/i.test($.header.alg)===!0&&D==null)throw TypeError("secret must be a string or buffer or a KeyObject");var J=new AW0(D);this.readable=!0,this.header=$.header,this.encoding=$.encoding,this.secret=this.privateKey=this.key=J,this.payload=new AW0($.payload),this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this)),this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}Sv.inherits(MN,RF$);MN.prototype.sign=function(){try{var D=TW0({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",D),this.emit("data",D),this.emit("end"),this.readable=!1,D}catch(J){this.readable=!1,this.emit("error",J),this.emit("close")}};MN.sign=TW0;CW0.exports=MN});var bW0=A((Rg$,hW0)=>{var xW0=oY().Buffer,SW0=Ev(),IF$=Cv(),jF$=s("stream"),vW0=Pv(),TF$=s("util"),CF$=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function PF$($){return Object.prototype.toString.call($)==="[object Object]"}function SF$($){if(PF$($))return $;try{return JSON.parse($)}catch(D){return}}function _W0($){var D=$.split(".",1)[0];return SF$(xW0.from(D,"base64").toString("binary"))}function xF$($){return $.split(".",2).join(".")}function kW0($){return $.split(".")[2]}function vF$($,D){D=D||"utf8";var J=$.split(".")[1];return xW0.from(J,"base64").toString(D)}function uW0($){return CF$.test($)&&!!_W0($)}function yW0($,D,J){if(!D){var X=Error("Missing algorithm parameter for jws.verify");throw X.code="MISSING_ALGORITHM",X}$=vW0($);var Q=kW0($),Y=xF$($),Z=IF$(D);return Z.verify(Y,Q,J)}function fW0($,D){if(D=D||{},$=vW0($),!uW0($))return null;var J=_W0($);if(!J)return null;var X=vF$($);if(J.typ==="JWT"||D.json)X=JSON.parse(X,D.encoding);return{header:J,payload:X,signature:kW0($)}}function sY($){$=$||{};var D=$.secret;if(D=D==null?$.publicKey:D,D=D==null?$.key:D,/^hs/i.test($.algorithm)===!0&&D==null)throw TypeError("secret must be a string or buffer or a KeyObject");var J=new SW0(D);this.readable=!0,this.algorithm=$.algorithm,this.encoding=$.encoding,this.secret=this.publicKey=this.key=J,this.signature=new SW0($.signature),this.secret.once("close",function(){if(!this.signature.writable&&this.readable)this.verify()}.bind(this)),this.signature.once("close",function(){if(!this.secret.writable&&this.readable)this.verify()}.bind(this))}TF$.inherits(sY,jF$);sY.prototype.verify=function(){try{var D=yW0(this.signature.buffer,this.algorithm,this.key.buffer),J=fW0(this.signature.buffer,this.encoding);return this.emit("done",D,J),this.emit("data",D),this.emit("end"),this.readable=!1,D}catch(X){this.readable=!1,this.emit("error",X),this.emit("close")}};sY.decode=fW0;sY.isValid=uW0;sY.verify=yW0;hW0.exports=sY});var wN=A((kF$)=>{var gW0=PW0(),LN=bW0(),_F$=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];kF$.ALGORITHMS=_F$;kF$.sign=gW0.sign;kF$.verify=LN.verify;kF$.decode=LN.decode;kF$.isValid=LN.isValid;kF$.createSign=function(D){return new gW0(D)};kF$.createVerify=function(D){return new LN(D)}});var xv=A((Ig$,mW0)=>{var dF$=wN();mW0.exports=function($,D){D=D||{};var J=dF$.decode($,D);if(!J)return null;var X=J.payload;if(typeof X==="string")try{var Q=JSON.parse(X);if(Q!==null&&typeof Q==="object")X=Q}catch(Y){}if(D.complete===!0)return{header:J.header,payload:X,signature:J.signature};return X}});var Lq=A((jg$,dW0)=>{var BN=function($,D){if(Error.call(this,$),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);if(this.name="JsonWebTokenError",this.message=$,D)this.inner=D};BN.prototype=Object.create(Error.prototype);BN.prototype.constructor=BN;dW0.exports=BN});var vv=A((Tg$,lW0)=>{var cW0=Lq(),EN=function($,D){cW0.call(this,$),this.name="NotBeforeError",this.date=D};EN.prototype=Object.create(cW0.prototype);EN.prototype.constructor=EN;lW0.exports=EN});var _v=A((Cg$,iW0)=>{var nW0=Lq(),RN=function($,D){nW0.call(this,$),this.name="TokenExpiredError",this.expiredAt=D};RN.prototype=Object.create(nW0.prototype);RN.prototype.constructor=RN;iW0.exports=RN});var kv=A((Pg$,pW0)=>{var cF$=tw();pW0.exports=function($,D){var J=D||Math.floor(Date.now()/1000);if(typeof $==="string"){var X=cF$($);if(typeof X>"u")return;return Math.floor(J+X/1000)}else if(typeof $==="number")return J+$;else return}});var eY=A((Sg$,rW0)=>{var lF$=Number.MAX_SAFE_INTEGER||9007199254740991,nF$=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rW0.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:lF$,RELEASE_TYPES:nF$,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var wq=A((xg$,oW0)=>{var iF$=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...$)=>console.error("SEMVER",...$):()=>{};oW0.exports=iF$});var $Z=A((u8,aW0)=>{var{MAX_SAFE_COMPONENT_LENGTH:uv,MAX_SAFE_BUILD_LENGTH:pF$,MAX_LENGTH:rF$}=eY(),oF$=wq();u8=aW0.exports={};var aF$=u8.re=[],tF$=u8.safeRe=[],u0=u8.src=[],sF$=u8.safeSrc=[],y0=u8.t={},eF$=0,yv="[a-zA-Z0-9-]",$U$=[["\\s",1],["\\d",rF$],[yv,pF$]],DU$=($)=>{for(let[D,J]of $U$)$=$.split(`${D}*`).join(`${D}{0,${J}}`).split(`${D}+`).join(`${D}{1,${J}}`);return $},z$=($,D,J)=>{let X=DU$(D),Q=eF$++;oF$($,Q,D),y0[$]=Q,u0[Q]=D,sF$[Q]=X,aF$[Q]=new RegExp(D,J?"g":void 0),tF$[Q]=new RegExp(X,J?"g":void 0)};z$("NUMERICIDENTIFIER","0|[1-9]\\d*");z$("NUMERICIDENTIFIERLOOSE","\\d+");z$("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${yv}*`);z$("MAINVERSION",`(${u0[y0.NUMERICIDENTIFIER]})\\.(${u0[y0.NUMERICIDENTIFIER]})\\.(${u0[y0.NUMERICIDENTIFIER]})`);z$("MAINVERSIONLOOSE",`(${u0[y0.NUMERICIDENTIFIERLOOSE]})\\.(${u0[y0.NUMERICIDENTIFIERLOOSE]})\\.(${u0[y0.NUMERICIDENTIFIERLOOSE]})`);z$("PRERELEASEIDENTIFIER",`(?:${u0[y0.NONNUMERICIDENTIFIER]}|${u0[y0.NUMERICIDENTIFIER]})`);z$("PRERELEASEIDENTIFIERLOOSE",`(?:${u0[y0.NONNUMERICIDENTIFIER]}|${u0[y0.NUMERICIDENTIFIERLOOSE]})`);z$("PRERELEASE",`(?:-(${u0[y0.PRERELEASEIDENTIFIER]}(?:\\.${u0[y0.PRERELEASEIDENTIFIER]})*))`);z$("PRERELEASELOOSE",`(?:-?(${u0[y0.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u0[y0.PRERELEASEIDENTIFIERLOOSE]})*))`);z$("BUILDIDENTIFIER",`${yv}+`);z$("BUILD",`(?:\\+(${u0[y0.BUILDIDENTIFIER]}(?:\\.${u0[y0.BUILDIDENTIFIER]})*))`);z$("FULLPLAIN",`v?${u0[y0.MAINVERSION]}${u0[y0.PRERELEASE]}?${u0[y0.BUILD]}?`);z$("FULL",`^${u0[y0.FULLPLAIN]}$`);z$("LOOSEPLAIN",`[v=\\s]*${u0[y0.MAINVERSIONLOOSE]}${u0[y0.PRERELEASELOOSE]}?${u0[y0.BUILD]}?`);z$("LOOSE",`^${u0[y0.LOOSEPLAIN]}$`);z$("GTLT","((?:<|>)?=?)");z$("XRANGEIDENTIFIERLOOSE",`${u0[y0.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);z$("XRANGEIDENTIFIER",`${u0[y0.NUMERICIDENTIFIER]}|x|X|\\*`);z$("XRANGEPLAIN",`[v=\\s]*(${u0[y0.XRANGEIDENTIFIER]})(?:\\.(${u0[y0.XRANGEIDENTIFIER]})(?:\\.(${u0[y0.XRANGEIDENTIFIER]})(?:${u0[y0.PRERELEASE]})?${u0[y0.BUILD]}?)?)?`);z$("XRANGEPLAINLOOSE",`[v=\\s]*(${u0[y0.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u0[y0.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u0[y0.XRANGEIDENTIFIERLOOSE]})(?:${u0[y0.PRERELEASELOOSE]})?${u0[y0.BUILD]}?)?)?`);z$("XRANGE",`^${u0[y0.GTLT]}\\s*${u0[y0.XRANGEPLAIN]}$`);z$("XRANGELOOSE",`^${u0[y0.GTLT]}\\s*${u0[y0.XRANGEPLAINLOOSE]}$`);z$("COERCEPLAIN",`(^|[^\\d])(\\d{1,${uv}})(?:\\.(\\d{1,${uv}}))?(?:\\.(\\d{1,${uv}}))?`);z$("COERCE",`${u0[y0.COERCEPLAIN]}(?:$|[^\\d])`);z$("COERCEFULL",u0[y0.COERCEPLAIN]+`(?:${u0[y0.PRERELEASE]})?(?:${u0[y0.BUILD]})?(?:$|[^\\d])`);z$("COERCERTL",u0[y0.COERCE],!0);z$("COERCERTLFULL",u0[y0.COERCEFULL],!0);z$("LONETILDE","(?:~>?)");z$("TILDETRIM",`(\\s*)${u0[y0.LONETILDE]}\\s+`,!0);u8.tildeTrimReplace="$1~";z$("TILDE",`^${u0[y0.LONETILDE]}${u0[y0.XRANGEPLAIN]}$`);z$("TILDELOOSE",`^${u0[y0.LONETILDE]}${u0[y0.XRANGEPLAINLOOSE]}$`);z$("LONECARET","(?:\\^)");z$("CARETTRIM",`(\\s*)${u0[y0.LONECARET]}\\s+`,!0);u8.caretTrimReplace="$1^";z$("CARET",`^${u0[y0.LONECARET]}${u0[y0.XRANGEPLAIN]}$`);z$("CARETLOOSE",`^${u0[y0.LONECARET]}${u0[y0.XRANGEPLAINLOOSE]}$`);z$("COMPARATORLOOSE",`^${u0[y0.GTLT]}\\s*(${u0[y0.LOOSEPLAIN]})$|^$`);z$("COMPARATOR",`^${u0[y0.GTLT]}\\s*(${u0[y0.FULLPLAIN]})$|^$`);z$("COMPARATORTRIM",`(\\s*)${u0[y0.GTLT]}\\s*(${u0[y0.LOOSEPLAIN]}|${u0[y0.XRANGEPLAIN]})`,!0);u8.comparatorTrimReplace="$1$2$3";z$("HYPHENRANGE",`^\\s*(${u0[y0.XRANGEPLAIN]})\\s+-\\s+(${u0[y0.XRANGEPLAIN]})\\s*$`);z$("HYPHENRANGELOOSE",`^\\s*(${u0[y0.XRANGEPLAINLOOSE]})\\s+-\\s+(${u0[y0.XRANGEPLAINLOOSE]})\\s*$`);z$("STAR","(<|>)?=?\\s*\\*");z$("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");z$("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var AN=A((vg$,tW0)=>{var JU$=Object.freeze({loose:!0}),XU$=Object.freeze({}),QU$=($)=>{if(!$)return XU$;if(typeof $!=="object")return JU$;return $};tW0.exports=QU$});var fv=A((_g$,$z0)=>{var sW0=/^[0-9]+$/,eW0=($,D)=>{if(typeof $==="number"&&typeof D==="number")return $===D?0:$<D?-1:1;let J=sW0.test($),X=sW0.test(D);if(J&&X)$=+$,D=+D;return $===D?0:J&&!X?-1:X&&!J?1:$<D?-1:1},YU$=($,D)=>eW0(D,$);$z0.exports={compareIdentifiers:eW0,rcompareIdentifiers:YU$}});var ED=A((kg$,Jz0)=>{var IN=wq(),{MAX_LENGTH:Dz0,MAX_SAFE_INTEGER:jN}=eY(),{safeRe:TN,t:CN}=$Z(),ZU$=AN(),{compareIdentifiers:hv}=fv();class c4{constructor($,D){if(D=ZU$(D),$ instanceof c4)if($.loose===!!D.loose&&$.includePrerelease===!!D.includePrerelease)return $;else $=$.version;else if(typeof $!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof $}".`);if($.length>Dz0)throw TypeError(`version is longer than ${Dz0} characters`);IN("SemVer",$,D),this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease;let J=$.trim().match(D.loose?TN[CN.LOOSE]:TN[CN.FULL]);if(!J)throw TypeError(`Invalid Version: ${$}`);if(this.raw=$,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>jN||this.major<0)throw TypeError("Invalid major version");if(this.minor>jN||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>jN||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((X)=>{if(/^[0-9]+$/.test(X)){let Q=+X;if(Q>=0&&Q<jN)return Q}return X});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare($){if(IN("SemVer.compare",this.version,this.options,$),!($ instanceof c4)){if(typeof $==="string"&&$===this.version)return 0;$=new c4($,this.options)}if($.version===this.version)return 0;return this.compareMain($)||this.comparePre($)}compareMain($){if(!($ instanceof c4))$=new c4($,this.options);if(this.major<$.major)return-1;if(this.major>$.major)return 1;if(this.minor<$.minor)return-1;if(this.minor>$.minor)return 1;if(this.patch<$.patch)return-1;if(this.patch>$.patch)return 1;return 0}comparePre($){if(!($ instanceof c4))$=new c4($,this.options);if(this.prerelease.length&&!$.prerelease.length)return-1;else if(!this.prerelease.length&&$.prerelease.length)return 1;else if(!this.prerelease.length&&!$.prerelease.length)return 0;let D=0;do{let J=this.prerelease[D],X=$.prerelease[D];if(IN("prerelease compare",D,J,X),J===void 0&&X===void 0)return 0;else if(X===void 0)return 1;else if(J===void 0)return-1;else if(J===X)continue;else return hv(J,X)}while(++D)}compareBuild($){if(!($ instanceof c4))$=new c4($,this.options);let D=0;do{let J=this.build[D],X=$.build[D];if(IN("build compare",D,J,X),J===void 0&&X===void 0)return 0;else if(X===void 0)return 1;else if(J===void 0)return-1;else if(J===X)continue;else return hv(J,X)}while(++D)}inc($,D,J){if($.startsWith("pre")){if(!D&&J===!1)throw Error("invalid increment argument: identifier is empty");if(D){let X=`-${D}`.match(this.options.loose?TN[CN.PRERELEASELOOSE]:TN[CN.PRERELEASE]);if(!X||X[1]!==D)throw Error(`invalid identifier: ${D}`)}}switch($){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",D,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",D,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",D,J),this.inc("pre",D,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",D,J);this.inc("pre",D,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let X=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[X];else{let Q=this.prerelease.length;while(--Q>=0)if(typeof this.prerelease[Q]==="number")this.prerelease[Q]++,Q=-2;if(Q===-1){if(D===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(X)}}if(D){let Q=[D,X];if(J===!1)Q=[D];if(hv(this.prerelease[0],D)===0){if(isNaN(this.prerelease[1]))this.prerelease=Q}else this.prerelease=Q}break}default:throw Error(`invalid increment argument: ${$}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Jz0.exports=c4});var p7=A((ug$,Qz0)=>{var Xz0=ED(),FU$=($,D,J=!1)=>{if($ instanceof Xz0)return $;try{return new Xz0($,D)}catch(X){if(!J)return null;throw X}};Qz0.exports=FU$});var Zz0=A((yg$,Yz0)=>{var UU$=p7(),GU$=($,D)=>{let J=UU$($,D);return J?J.version:null};Yz0.exports=GU$});var Uz0=A((fg$,Fz0)=>{var qU$=p7(),WU$=($,D)=>{let J=qU$($.trim().replace(/^[=v]+/,""),D);return J?J.version:null};Fz0.exports=WU$});var Wz0=A((hg$,qz0)=>{var Gz0=ED(),zU$=($,D,J,X,Q)=>{if(typeof J==="string")Q=X,X=J,J=void 0;try{return new Gz0($ instanceof Gz0?$.version:$,J).inc(D,X,Q).version}catch(Y){return null}};qz0.exports=zU$});var Oz0=A((bg$,Hz0)=>{var zz0=p7(),HU$=($,D)=>{let J=zz0($,null,!0),X=zz0(D,null,!0),Q=J.compare(X);if(Q===0)return null;let Y=Q>0,Z=Y?J:X,F=Y?X:J,U=!!Z.prerelease.length;if(!!F.prerelease.length&&!U){if(!F.patch&&!F.minor)return"major";if(F.compareMain(Z)===0){if(F.minor&&!F.patch)return"minor";return"patch"}}let q=U?"pre":"";if(J.major!==X.major)return q+"major";if(J.minor!==X.minor)return q+"minor";if(J.patch!==X.patch)return q+"patch";return"prerelease"};Hz0.exports=HU$});var Kz0=A((gg$,Vz0)=>{var OU$=ED(),VU$=($,D)=>new OU$($,D).major;Vz0.exports=VU$});var Mz0=A((mg$,Nz0)=>{var KU$=ED(),NU$=($,D)=>new KU$($,D).minor;Nz0.exports=NU$});var wz0=A((dg$,Lz0)=>{var MU$=ED(),LU$=($,D)=>new MU$($,D).patch;Lz0.exports=LU$});var Ez0=A((cg$,Bz0)=>{var wU$=p7(),BU$=($,D)=>{let J=wU$($,D);return J&&J.prerelease.length?J.prerelease:null};Bz0.exports=BU$});var K4=A((lg$,Az0)=>{var Rz0=ED(),EU$=($,D,J)=>new Rz0($,J).compare(new Rz0(D,J));Az0.exports=EU$});var jz0=A((ng$,Iz0)=>{var RU$=K4(),AU$=($,D,J)=>RU$(D,$,J);Iz0.exports=AU$});var Cz0=A((ig$,Tz0)=>{var IU$=K4(),jU$=($,D)=>IU$($,D,!0);Tz0.exports=jU$});var PN=A((pg$,Sz0)=>{var Pz0=ED(),TU$=($,D,J)=>{let X=new Pz0($,J),Q=new Pz0(D,J);return X.compare(Q)||X.compareBuild(Q)};Sz0.exports=TU$});var vz0=A((rg$,xz0)=>{var CU$=PN(),PU$=($,D)=>$.sort((J,X)=>CU$(J,X,D));xz0.exports=PU$});var kz0=A((og$,_z0)=>{var SU$=PN(),xU$=($,D)=>$.sort((J,X)=>SU$(X,J,D));_z0.exports=xU$});var Bq=A((ag$,uz0)=>{var vU$=K4(),_U$=($,D,J)=>vU$($,D,J)>0;uz0.exports=_U$});var SN=A((tg$,yz0)=>{var kU$=K4(),uU$=($,D,J)=>kU$($,D,J)<0;yz0.exports=uU$});var bv=A((sg$,fz0)=>{var yU$=K4(),fU$=($,D,J)=>yU$($,D,J)===0;fz0.exports=fU$});var gv=A((eg$,hz0)=>{var hU$=K4(),bU$=($,D,J)=>hU$($,D,J)!==0;hz0.exports=bU$});var xN=A(($m$,bz0)=>{var gU$=K4(),mU$=($,D,J)=>gU$($,D,J)>=0;bz0.exports=mU$});var vN=A((Dm$,gz0)=>{var dU$=K4(),cU$=($,D,J)=>dU$($,D,J)<=0;gz0.exports=cU$});var mv=A((Jm$,mz0)=>{var lU$=bv(),nU$=gv(),iU$=Bq(),pU$=xN(),rU$=SN(),oU$=vN(),aU$=($,D,J,X)=>{switch(D){case"===":if(typeof $==="object")$=$.version;if(typeof J==="object")J=J.version;return $===J;case"!==":if(typeof $==="object")$=$.version;if(typeof J==="object")J=J.version;return $!==J;case"":case"=":case"==":return lU$($,J,X);case"!=":return nU$($,J,X);case">":return iU$($,J,X);case">=":return pU$($,J,X);case"<":return rU$($,J,X);case"<=":return oU$($,J,X);default:throw TypeError(`Invalid operator: ${D}`)}};mz0.exports=aU$});var cz0=A((Xm$,dz0)=>{var tU$=ED(),sU$=p7(),{safeRe:_N,t:kN}=$Z(),eU$=($,D)=>{if($ instanceof tU$)return $;if(typeof $==="number")$=String($);if(typeof $!=="string")return null;D=D||{};let J=null;if(!D.rtl)J=$.match(D.includePrerelease?_N[kN.COERCEFULL]:_N[kN.COERCE]);else{let U=D.includePrerelease?_N[kN.COERCERTLFULL]:_N[kN.COERCERTL],G;while((G=U.exec($))&&(!J||J.index+J[0].length!==$.length)){if(!J||G.index+G[0].length!==J.index+J[0].length)J=G;U.lastIndex=G.index+G[1].length+G[2].length}U.lastIndex=-1}if(J===null)return null;let X=J[2],Q=J[3]||"0",Y=J[4]||"0",Z=D.includePrerelease&&J[5]?`-${J[5]}`:"",F=D.includePrerelease&&J[6]?`+${J[6]}`:"";return sU$(`${X}.${Q}.${Y}${Z}${F}`,D)};dz0.exports=eU$});var nz0=A((Qm$,lz0)=>{var $G$=p7(),DG$=eY(),JG$=ED(),XG$=($,D,J)=>{if(!DG$.RELEASE_TYPES.includes(D))return null;let X=QG$($,J);return X&&YG$(X,D)},QG$=($,D)=>{let J=$ instanceof JG$?$.version:$;return $G$(J,D)},YG$=($,D)=>{if(ZG$(D))return $.version;switch($.prerelease=[],D){case"major":$.minor=0,$.patch=0;break;case"minor":$.patch=0;break}return $.format()},ZG$=($)=>{return $.startsWith("pre")};lz0.exports=XG$});var rz0=A((Ym$,pz0)=>{class iz0{constructor(){this.max=1000,this.map=new Map}get($){let D=this.map.get($);if(D===void 0)return;else return this.map.delete($),this.map.set($,D),D}delete($){return this.map.delete($)}set($,D){if(!this.delete($)&&D!==void 0){if(this.map.size>=this.max){let X=this.map.keys().next().value;this.delete(X)}this.map.set($,D)}return this}}pz0.exports=iz0});var N4=A((Zm$,sz0)=>{var FG$=/\s+/g;class Eq{constructor($,D){if(D=GG$(D),$ instanceof Eq)if($.loose===!!D.loose&&$.includePrerelease===!!D.includePrerelease)return $;else return new Eq($.raw,D);if($ instanceof dv)return this.raw=$.value,this.set=[[$]],this.formatted=void 0,this;if(this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease,this.raw=$.trim().replace(FG$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((X)=>!az0(X[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let X of this.set)if(X.length===1&&MG$(X[0])){this.set=[X];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let $=0;$<this.set.length;$++){if($>0)this.formatted+="||";let D=this.set[$];for(let J=0;J<D.length;J++){if(J>0)this.formatted+=" ";this.formatted+=D[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange($){$=$.replace(NG$,"");let J=((this.options.includePrerelease&&VG$)|(this.options.loose&&KG$))+":"+$,X=oz0.get(J);if(X)return X;let Q=this.options.loose,Y=Q?J6[RD.HYPHENRANGELOOSE]:J6[RD.HYPHENRANGE];$=$.replace(Y,CG$(this.options.includePrerelease)),L1("hyphen replace",$),$=$.replace(J6[RD.COMPARATORTRIM],zG$),L1("comparator trim",$),$=$.replace(J6[RD.TILDETRIM],HG$),L1("tilde trim",$),$=$.replace(J6[RD.CARETTRIM],OG$),L1("caret trim",$);let Z=$.split(" ").map((q)=>LG$(q,this.options)).join(" ").split(/\s+/).map((q)=>TG$(q,this.options));if(Q)Z=Z.filter((q)=>{return L1("loose invalid filter",q,this.options),!!q.match(J6[RD.COMPARATORLOOSE])});L1("range list",Z);let F=new Map,U=Z.map((q)=>new dv(q,this.options));for(let q of U){if(az0(q))return[q];F.set(q.value,q)}if(F.size>1&&F.has(""))F.delete("");let G=[...F.values()];return oz0.set(J,G),G}intersects($,D){if(!($ instanceof Eq))throw TypeError("a Range is required");return this.set.some((J)=>{return tz0(J,D)&&$.set.some((X)=>{return tz0(X,D)&&J.every((Q)=>{return X.every((Y)=>{return Q.intersects(Y,D)})})})})}test($){if(!$)return!1;if(typeof $==="string")try{$=new qG$($,this.options)}catch(D){return!1}for(let D=0;D<this.set.length;D++)if(PG$(this.set[D],$,this.options))return!0;return!1}}sz0.exports=Eq;var UG$=rz0(),oz0=new UG$,GG$=AN(),dv=Rq(),L1=wq(),qG$=ED(),{safeRe:J6,src:WG$,t:RD,comparatorTrimReplace:zG$,tildeTrimReplace:HG$,caretTrimReplace:OG$}=$Z(),{FLAG_INCLUDE_PRERELEASE:VG$,FLAG_LOOSE:KG$}=eY(),NG$=new RegExp(WG$[RD.BUILD],"g"),az0=($)=>$.value==="<0.0.0-0",MG$=($)=>$.value==="",tz0=($,D)=>{let J=!0,X=$.slice(),Q=X.pop();while(J&&X.length)J=X.every((Y)=>{return Q.intersects(Y,D)}),Q=X.pop();return J},LG$=($,D)=>{return $=$.replace(J6[RD.BUILD],""),L1("comp",$,D),$=EG$($,D),L1("caret",$),$=wG$($,D),L1("tildes",$),$=AG$($,D),L1("xrange",$),$=jG$($,D),L1("stars",$),$},X6=($)=>!$||$.toLowerCase()==="x"||$==="*",wG$=($,D)=>{return $.trim().split(/\s+/).map((J)=>BG$(J,D)).join(" ")},BG$=($,D)=>{let J=D.loose?J6[RD.TILDELOOSE]:J6[RD.TILDE];return $.replace(J,(X,Q,Y,Z,F)=>{L1("tilde",$,X,Q,Y,Z,F);let U;if(X6(Q))U="";else if(X6(Y))U=`>=${Q}.0.0 <${+Q+1}.0.0-0`;else if(X6(Z))U=`>=${Q}.${Y}.0 <${Q}.${+Y+1}.0-0`;else if(F)L1("replaceTilde pr",F),U=`>=${Q}.${Y}.${Z}-${F} <${Q}.${+Y+1}.0-0`;else U=`>=${Q}.${Y}.${Z} <${Q}.${+Y+1}.0-0`;return L1("tilde return",U),U})},EG$=($,D)=>{return $.trim().split(/\s+/).map((J)=>RG$(J,D)).join(" ")},RG$=($,D)=>{L1("caret",$,D);let J=D.loose?J6[RD.CARETLOOSE]:J6[RD.CARET],X=D.includePrerelease?"-0":"";return $.replace(J,(Q,Y,Z,F,U)=>{L1("caret",$,Q,Y,Z,F,U);let G;if(X6(Y))G="";else if(X6(Z))G=`>=${Y}.0.0${X} <${+Y+1}.0.0-0`;else if(X6(F))if(Y==="0")G=`>=${Y}.${Z}.0${X} <${Y}.${+Z+1}.0-0`;else G=`>=${Y}.${Z}.0${X} <${+Y+1}.0.0-0`;else if(U)if(L1("replaceCaret pr",U),Y==="0")if(Z==="0")G=`>=${Y}.${Z}.${F}-${U} <${Y}.${Z}.${+F+1}-0`;else G=`>=${Y}.${Z}.${F}-${U} <${Y}.${+Z+1}.0-0`;else G=`>=${Y}.${Z}.${F}-${U} <${+Y+1}.0.0-0`;else if(L1("no pr"),Y==="0")if(Z==="0")G=`>=${Y}.${Z}.${F}${X} <${Y}.${Z}.${+F+1}-0`;else G=`>=${Y}.${Z}.${F}${X} <${Y}.${+Z+1}.0-0`;else G=`>=${Y}.${Z}.${F} <${+Y+1}.0.0-0`;return L1("caret return",G),G})},AG$=($,D)=>{return L1("replaceXRanges",$,D),$.split(/\s+/).map((J)=>IG$(J,D)).join(" ")},IG$=($,D)=>{$=$.trim();let J=D.loose?J6[RD.XRANGELOOSE]:J6[RD.XRANGE];return $.replace(J,(X,Q,Y,Z,F,U)=>{L1("xRange",$,X,Q,Y,Z,F,U);let G=X6(Y),q=G||X6(Z),W=q||X6(F),z=W;if(Q==="="&&z)Q="";if(U=D.includePrerelease?"-0":"",G)if(Q===">"||Q==="<")X="<0.0.0-0";else X="*";else if(Q&&z){if(q)Z=0;if(F=0,Q===">")if(Q=">=",q)Y=+Y+1,Z=0,F=0;else Z=+Z+1,F=0;else if(Q==="<=")if(Q="<",q)Y=+Y+1;else Z=+Z+1;if(Q==="<")U="-0";X=`${Q+Y}.${Z}.${F}${U}`}else if(q)X=`>=${Y}.0.0${U} <${+Y+1}.0.0-0`;else if(W)X=`>=${Y}.${Z}.0${U} <${Y}.${+Z+1}.0-0`;return L1("xRange return",X),X})},jG$=($,D)=>{return L1("replaceStars",$,D),$.trim().replace(J6[RD.STAR],"")},TG$=($,D)=>{return L1("replaceGTE0",$,D),$.trim().replace(J6[D.includePrerelease?RD.GTE0PRE:RD.GTE0],"")},CG$=($)=>(D,J,X,Q,Y,Z,F,U,G,q,W,z)=>{if(X6(X))J="";else if(X6(Q))J=`>=${X}.0.0${$?"-0":""}`;else if(X6(Y))J=`>=${X}.${Q}.0${$?"-0":""}`;else if(Z)J=`>=${J}`;else J=`>=${J}${$?"-0":""}`;if(X6(G))U="";else if(X6(q))U=`<${+G+1}.0.0-0`;else if(X6(W))U=`<${G}.${+q+1}.0-0`;else if(z)U=`<=${G}.${q}.${W}-${z}`;else if($)U=`<${G}.${q}.${+W+1}-0`;else U=`<=${U}`;return`${J} ${U}`.trim()},PG$=($,D,J)=>{for(let X=0;X<$.length;X++)if(!$[X].test(D))return!1;if(D.prerelease.length&&!J.includePrerelease){for(let X=0;X<$.length;X++){if(L1($[X].semver),$[X].semver===dv.ANY)continue;if($[X].semver.prerelease.length>0){let Q=$[X].semver;if(Q.major===D.major&&Q.minor===D.minor&&Q.patch===D.patch)return!0}}return!1}return!0}});var Rq=A((Fm$,QH0)=>{var Aq=Symbol("SemVer ANY");class uN{static get ANY(){return Aq}constructor($,D){if(D=ez0(D),$ instanceof uN)if($.loose===!!D.loose)return $;else $=$.value;if($=$.trim().split(/\s+/).join(" "),lv("comparator",$,D),this.options=D,this.loose=!!D.loose,this.parse($),this.semver===Aq)this.value="";else this.value=this.operator+this.semver.version;lv("comp",this)}parse($){let D=this.options.loose?$H0[DH0.COMPARATORLOOSE]:$H0[DH0.COMPARATOR],J=$.match(D);if(!J)throw TypeError(`Invalid comparator: ${$}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=Aq;else this.semver=new JH0(J[2],this.options.loose)}toString(){return this.value}test($){if(lv("Comparator.test",$,this.options.loose),this.semver===Aq||$===Aq)return!0;if(typeof $==="string")try{$=new JH0($,this.options)}catch(D){return!1}return cv($,this.operator,this.semver,this.options)}intersects($,D){if(!($ instanceof uN))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new XH0($.value,D).test(this.value)}else if($.operator===""){if($.value==="")return!0;return new XH0(this.value,D).test($.semver)}if(D=ez0(D),D.includePrerelease&&(this.value==="<0.0.0-0"||$.value==="<0.0.0-0"))return!1;if(!D.includePrerelease&&(this.value.startsWith("<0.0.0")||$.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&$.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&$.operator.startsWith("<"))return!0;if(this.semver.version===$.semver.version&&this.operator.includes("=")&&$.operator.includes("="))return!0;if(cv(this.semver,"<",$.semver,D)&&this.operator.startsWith(">")&&$.operator.startsWith("<"))return!0;if(cv(this.semver,">",$.semver,D)&&this.operator.startsWith("<")&&$.operator.startsWith(">"))return!0;return!1}}QH0.exports=uN;var ez0=AN(),{safeRe:$H0,t:DH0}=$Z(),cv=mv(),lv=wq(),JH0=ED(),XH0=N4()});var Iq=A((Um$,YH0)=>{var SG$=N4(),xG$=($,D,J)=>{try{D=new SG$(D,J)}catch(X){return!1}return D.test($)};YH0.exports=xG$});var FH0=A((Gm$,ZH0)=>{var vG$=N4(),_G$=($,D)=>new vG$($,D).set.map((J)=>J.map((X)=>X.value).join(" ").trim().split(" "));ZH0.exports=_G$});var GH0=A((qm$,UH0)=>{var kG$=ED(),uG$=N4(),yG$=($,D,J)=>{let X=null,Q=null,Y=null;try{Y=new uG$(D,J)}catch(Z){return null}return $.forEach((Z)=>{if(Y.test(Z)){if(!X||Q.compare(Z)===-1)X=Z,Q=new kG$(X,J)}}),X};UH0.exports=yG$});var WH0=A((Wm$,qH0)=>{var fG$=ED(),hG$=N4(),bG$=($,D,J)=>{let X=null,Q=null,Y=null;try{Y=new hG$(D,J)}catch(Z){return null}return $.forEach((Z)=>{if(Y.test(Z)){if(!X||Q.compare(Z)===1)X=Z,Q=new fG$(X,J)}}),X};qH0.exports=bG$});var OH0=A((zm$,HH0)=>{var nv=ED(),gG$=N4(),zH0=Bq(),mG$=($,D)=>{$=new gG$($,D);let J=new nv("0.0.0");if($.test(J))return J;if(J=new nv("0.0.0-0"),$.test(J))return J;J=null;for(let X=0;X<$.set.length;++X){let Q=$.set[X],Y=null;if(Q.forEach((Z)=>{let F=new nv(Z.semver.version);switch(Z.operator){case">":if(F.prerelease.length===0)F.patch++;else F.prerelease.push(0);F.raw=F.format();case"":case">=":if(!Y||zH0(F,Y))Y=F;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${Z.operator}`)}}),Y&&(!J||zH0(J,Y)))J=Y}if(J&&$.test(J))return J;return null};HH0.exports=mG$});var KH0=A((Hm$,VH0)=>{var dG$=N4(),cG$=($,D)=>{try{return new dG$($,D).range||"*"}catch(J){return null}};VH0.exports=cG$});var yN=A((Om$,wH0)=>{var lG$=ED(),LH0=Rq(),{ANY:nG$}=LH0,iG$=N4(),pG$=Iq(),NH0=Bq(),MH0=SN(),rG$=vN(),oG$=xN(),aG$=($,D,J,X)=>{$=new lG$($,X),D=new iG$(D,X);let Q,Y,Z,F,U;switch(J){case">":Q=NH0,Y=rG$,Z=MH0,F=">",U=">=";break;case"<":Q=MH0,Y=oG$,Z=NH0,F="<",U="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(pG$($,D,X))return!1;for(let G=0;G<D.set.length;++G){let q=D.set[G],W=null,z=null;if(q.forEach((H)=>{if(H.semver===nG$)H=new LH0(">=0.0.0");if(W=W||H,z=z||H,Q(H.semver,W.semver,X))W=H;else if(Z(H.semver,z.semver,X))z=H}),W.operator===F||W.operator===U)return!1;if((!z.operator||z.operator===F)&&Y($,z.semver))return!1;else if(z.operator===U&&Z($,z.semver))return!1}return!0};wH0.exports=aG$});var EH0=A((Vm$,BH0)=>{var tG$=yN(),sG$=($,D,J)=>tG$($,D,">",J);BH0.exports=sG$});var AH0=A((Km$,RH0)=>{var eG$=yN(),$q$=($,D,J)=>eG$($,D,"<",J);RH0.exports=$q$});var TH0=A((Nm$,jH0)=>{var IH0=N4(),Dq$=($,D,J)=>{return $=new IH0($,J),D=new IH0(D,J),$.intersects(D,J)};jH0.exports=Dq$});var PH0=A((Mm$,CH0)=>{var Jq$=Iq(),Xq$=K4();CH0.exports=($,D,J)=>{let X=[],Q=null,Y=null,Z=$.sort((q,W)=>Xq$(q,W,J));for(let q of Z)if(Jq$(q,D,J)){if(Y=q,!Q)Q=q}else{if(Y)X.push([Q,Y]);Y=null,Q=null}if(Q)X.push([Q,null]);let F=[];for(let[q,W]of X)if(q===W)F.push(q);else if(!W&&q===Z[0])F.push("*");else if(!W)F.push(`>=${q}`);else if(q===Z[0])F.push(`<=${W}`);else F.push(`${q} - ${W}`);let U=F.join(" || "),G=typeof D.raw==="string"?D.raw:String(D);return U.length<G.length?U:D}});var uH0=A((Lm$,kH0)=>{var SH0=N4(),rv=Rq(),{ANY:iv}=rv,pv=Iq(),ov=K4(),Qq$=($,D,J={})=>{if($===D)return!0;$=new SH0($,J),D=new SH0(D,J);let X=!1;$:for(let Q of $.set){for(let Y of D.set){let Z=Zq$(Q,Y,J);if(X=X||Z!==null,Z)continue $}if(X)return!1}return!0},Yq$=[new rv(">=0.0.0-0")],xH0=[new rv(">=0.0.0")],Zq$=($,D,J)=>{if($===D)return!0;if($.length===1&&$[0].semver===iv)if(D.length===1&&D[0].semver===iv)return!0;else if(J.includePrerelease)$=Yq$;else $=xH0;if(D.length===1&&D[0].semver===iv)if(J.includePrerelease)return!0;else D=xH0;let X=new Set,Q,Y;for(let H of $)if(H.operator===">"||H.operator===">=")Q=vH0(Q,H,J);else if(H.operator==="<"||H.operator==="<=")Y=_H0(Y,H,J);else X.add(H.semver);if(X.size>1)return null;let Z;if(Q&&Y){if(Z=ov(Q.semver,Y.semver,J),Z>0)return null;else if(Z===0&&(Q.operator!==">="||Y.operator!=="<="))return null}for(let H of X){if(Q&&!pv(H,String(Q),J))return null;if(Y&&!pv(H,String(Y),J))return null;for(let O of D)if(!pv(H,String(O),J))return!1;return!0}let F,U,G,q,W=Y&&!J.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,z=Q&&!J.includePrerelease&&Q.semver.prerelease.length?Q.semver:!1;if(W&&W.prerelease.length===1&&Y.operator==="<"&&W.prerelease[0]===0)W=!1;for(let H of D){if(q=q||H.operator===">"||H.operator===">=",G=G||H.operator==="<"||H.operator==="<=",Q){if(z){if(H.semver.prerelease&&H.semver.prerelease.length&&H.semver.major===z.major&&H.semver.minor===z.minor&&H.semver.patch===z.patch)z=!1}if(H.operator===">"||H.operator===">="){if(F=vH0(Q,H,J),F===H&&F!==Q)return!1}else if(Q.operator===">="&&!H.test(Q.semver))return!1}if(Y){if(W){if(H.semver.prerelease&&H.semver.prerelease.length&&H.semver.major===W.major&&H.semver.minor===W.minor&&H.semver.patch===W.patch)W=!1}if(H.operator==="<"||H.operator==="<="){if(U=_H0(Y,H,J),U===H&&U!==Y)return!1}else if(Y.operator==="<="&&!H.test(Y.semver))return!1}if(!H.operator&&(Y||Q)&&Z!==0)return!1}if(Q&&G&&!Y&&Z!==0)return!1;if(Y&&q&&!Q&&Z!==0)return!1;if(z||W)return!1;return!0},vH0=($,D,J)=>{if(!$)return D;let X=ov($.semver,D.semver,J);return X>0?$:X<0?D:D.operator===">"&&$.operator===">="?D:$},_H0=($,D,J)=>{if(!$)return D;let X=ov($.semver,D.semver,J);return X<0?$:X>0?D:D.operator==="<"&&$.operator==="<="?D:$};kH0.exports=Qq$});var fN=A((wm$,hH0)=>{var av=$Z(),yH0=eY(),Fq$=ED(),fH0=fv(),Uq$=p7(),Gq$=Zz0(),qq$=Uz0(),Wq$=Wz0(),zq$=Oz0(),Hq$=Kz0(),Oq$=Mz0(),Vq$=wz0(),Kq$=Ez0(),Nq$=K4(),Mq$=jz0(),Lq$=Cz0(),wq$=PN(),Bq$=vz0(),Eq$=kz0(),Rq$=Bq(),Aq$=SN(),Iq$=bv(),jq$=gv(),Tq$=xN(),Cq$=vN(),Pq$=mv(),Sq$=cz0(),xq$=nz0(),vq$=Rq(),_q$=N4(),kq$=Iq(),uq$=FH0(),yq$=GH0(),fq$=WH0(),hq$=OH0(),bq$=KH0(),gq$=yN(),mq$=EH0(),dq$=AH0(),cq$=TH0(),lq$=PH0(),nq$=uH0();hH0.exports={parse:Uq$,valid:Gq$,clean:qq$,inc:Wq$,diff:zq$,major:Hq$,minor:Oq$,patch:Vq$,prerelease:Kq$,compare:Nq$,rcompare:Mq$,compareLoose:Lq$,compareBuild:wq$,sort:Bq$,rsort:Eq$,gt:Rq$,lt:Aq$,eq:Iq$,neq:jq$,gte:Tq$,lte:Cq$,cmp:Pq$,coerce:Sq$,truncate:xq$,Comparator:vq$,Range:_q$,satisfies:kq$,toComparators:uq$,maxSatisfying:yq$,minSatisfying:fq$,minVersion:hq$,validRange:bq$,outside:gq$,gtr:mq$,ltr:dq$,intersects:cq$,simplifyRange:lq$,subset:nq$,SemVer:Fq$,re:av.re,src:av.src,tokens:av.t,SEMVER_SPEC_VERSION:yH0.SEMVER_SPEC_VERSION,RELEASE_TYPES:yH0.RELEASE_TYPES,compareIdentifiers:fH0.compareIdentifiers,rcompareIdentifiers:fH0.rcompareIdentifiers}});var gH0=A((Bm$,bH0)=>{var iq$=fN();bH0.exports=iq$.satisfies(process.version,">=15.7.0")});var dH0=A((Em$,mH0)=>{var pq$=fN();mH0.exports=pq$.satisfies(process.version,">=16.9.0")});var tv=A((Rm$,cH0)=>{var rq$=gH0(),oq$=dH0(),aq$={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},tq$={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};cH0.exports=function($,D){if(!$||!D)return;let J=D.asymmetricKeyType;if(!J)return;let X=aq$[J];if(!X)throw Error(`Unknown key type "${J}".`);if(!X.includes($))throw Error(`"alg" parameter for "${J}" key type must be one of: ${X.join(", ")}.`);if(rq$)switch(J){case"ec":let Q=D.asymmetricKeyDetails.namedCurve,Y=tq$[$];if(Q!==Y)throw Error(`"alg" parameter "${$}" requires curve "${Y}".`);break;case"rsa-pss":if(oq$){let Z=parseInt($.slice(-3),10),{hashAlgorithm:F,mgf1HashAlgorithm:U,saltLength:G}=D.asymmetricKeyDetails;if(F!==`sha${Z}`||U!==F)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${$}.`);if(G!==void 0&&G>Z>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${$}.`)}break}}});var sv=A((Am$,lH0)=>{var sq$=fN();lH0.exports=sq$.satisfies(process.version,"^6.12.0 || >=8.0.0")});var pH0=A((Im$,iH0)=>{var W1=Lq(),eq$=vv(),nH0=_v(),$3$=xv(),D3$=kv(),J3$=tv(),X3$=sv(),Q3$=wN(),{KeyObject:Y3$,createSecretKey:Z3$,createPublicKey:F3$}=s("crypto"),ev=["RS256","RS384","RS512"],U3$=["ES256","ES384","ES512"],$_=["RS256","RS384","RS512"],G3$=["HS256","HS384","HS512"];if(X3$)ev.splice(ev.length,0,"PS256","PS384","PS512"),$_.splice($_.length,0,"PS256","PS384","PS512");iH0.exports=function($,D,J,X){if(typeof J==="function"&&!X)X=J,J={};if(!J)J={};J=Object.assign({},J);let Q;if(X)Q=X;else Q=function(q,W){if(q)throw q;return W};if(J.clockTimestamp&&typeof J.clockTimestamp!=="number")return Q(new W1("clockTimestamp must be a number"));if(J.nonce!==void 0&&(typeof J.nonce!=="string"||J.nonce.trim()===""))return Q(new W1("nonce must be a non-empty string"));if(J.allowInvalidAsymmetricKeyTypes!==void 0&&typeof J.allowInvalidAsymmetricKeyTypes!=="boolean")return Q(new W1("allowInvalidAsymmetricKeyTypes must be a boolean"));let Y=J.clockTimestamp||Math.floor(Date.now()/1000);if(!$)return Q(new W1("jwt must be provided"));if(typeof $!=="string")return Q(new W1("jwt must be a string"));let Z=$.split(".");if(Z.length!==3)return Q(new W1("jwt malformed"));let F;try{F=$3$($,{complete:!0})}catch(q){return Q(q)}if(!F)return Q(new W1("invalid token"));let U=F.header,G;if(typeof D==="function"){if(!X)return Q(new W1("verify must be called asynchronous if secret or public key is provided as a callback"));G=D}else G=function(q,W){return W(null,D)};return G(U,function(q,W){if(q)return Q(new W1("error in secret or public key callback: "+q.message));let z=Z[2].trim()!=="";if(!z&&W)return Q(new W1("jwt signature is required"));if(z&&!W)return Q(new W1("secret or public key must be provided"));if(!z&&!J.algorithms)return Q(new W1('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof Y3$))try{W=F3$(W)}catch(V){try{W=Z3$(typeof W==="string"?Buffer.from(W):W)}catch(K){return Q(new W1("secretOrPublicKey is not valid key material"))}}if(!J.algorithms)if(W.type==="secret")J.algorithms=G3$;else if(["rsa","rsa-pss"].includes(W.asymmetricKeyType))J.algorithms=$_;else if(W.asymmetricKeyType==="ec")J.algorithms=U3$;else J.algorithms=ev;if(J.algorithms.indexOf(F.header.alg)===-1)return Q(new W1("invalid algorithm"));if(U.alg.startsWith("HS")&&W.type!=="secret")return Q(new W1(`secretOrPublicKey must be a symmetric key when using ${U.alg}`));else if(/^(?:RS|PS|ES)/.test(U.alg)&&W.type!=="public")return Q(new W1(`secretOrPublicKey must be an asymmetric key when using ${U.alg}`));if(!J.allowInvalidAsymmetricKeyTypes)try{J3$(U.alg,W)}catch(V){return Q(V)}let H;try{H=Q3$.verify($,F.header.alg,W)}catch(V){return Q(V)}if(!H)return Q(new W1("invalid signature"));let O=F.payload;if(typeof O.nbf<"u"&&!J.ignoreNotBefore){if(typeof O.nbf!=="number")return Q(new W1("invalid nbf value"));if(O.nbf>Y+(J.clockTolerance||0))return Q(new eq$("jwt not active",new Date(O.nbf*1000)))}if(typeof O.exp<"u"&&!J.ignoreExpiration){if(typeof O.exp!=="number")return Q(new W1("invalid exp value"));if(Y>=O.exp+(J.clockTolerance||0))return Q(new nH0("jwt expired",new Date(O.exp*1000)))}if(J.audience){let V=Array.isArray(J.audience)?J.audience:[J.audience];if(!(Array.isArray(O.aud)?O.aud:[O.aud]).some(function(E){return V.some(function(N){return N instanceof RegExp?N.test(E):N===E})}))return Q(new W1("jwt audience invalid. expected: "+V.join(" or ")))}if(J.issuer){if(typeof J.issuer==="string"&&O.iss!==J.issuer||Array.isArray(J.issuer)&&J.issuer.indexOf(O.iss)===-1)return Q(new W1("jwt issuer invalid. expected: "+J.issuer))}if(J.subject){if(O.sub!==J.subject)return Q(new W1("jwt subject invalid. expected: "+J.subject))}if(J.jwtid){if(O.jti!==J.jwtid)return Q(new W1("jwt jwtid invalid. expected: "+J.jwtid))}if(J.nonce){if(O.nonce!==J.nonce)return Q(new W1("jwt nonce invalid. expected: "+J.nonce))}if(J.maxAge){if(typeof O.iat!=="number")return Q(new W1("iat required when maxAge is specified"));let V=D3$(J.maxAge,O.iat);if(typeof V>"u")return Q(new W1('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(Y>=V+(J.clockTolerance||0))return Q(new nH0("maxAge exceeded",new Date(V*1000)))}if(J.complete===!0){let V=F.signature;return Q(null,{header:U,payload:O,signature:V})}return Q(null,O)})}});var eH0=A((jm$,sH0)=>{var rH0=1/0,aH0=9007199254740991,q3$=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,oH0=NaN,W3$="[object Arguments]",z3$="[object Function]",H3$="[object GeneratorFunction]",O3$="[object String]",V3$="[object Symbol]",K3$=/^\s+|\s+$/g,N3$=/^[-+]0x[0-9a-f]+$/i,M3$=/^0b[01]+$/i,L3$=/^0o[0-7]+$/i,w3$=/^(?:0|[1-9]\d*)$/,B3$=parseInt;function E3$($,D){var J=-1,X=$?$.length:0,Q=Array(X);while(++J<X)Q[J]=D($[J],J,$);return Q}function R3$($,D,J,X){var Q=$.length,Y=J+(X?1:-1);while(X?Y--:++Y<Q)if(D($[Y],Y,$))return Y;return-1}function A3$($,D,J){if(D!==D)return R3$($,I3$,J);var X=J-1,Q=$.length;while(++X<Q)if($[X]===D)return X;return-1}function I3$($){return $!==$}function j3$($,D){var J=-1,X=Array($);while(++J<$)X[J]=D(J);return X}function T3$($,D){return E3$(D,function(J){return $[J]})}function C3$($,D){return function(J){return $(D(J))}}var hN=Object.prototype,J_=hN.hasOwnProperty,bN=hN.toString,P3$=hN.propertyIsEnumerable,S3$=C3$(Object.keys,Object),x3$=Math.max;function v3$($,D){var J=tH0($)||f3$($)?j3$($.length,String):[],X=J.length,Q=!!X;for(var Y in $)if((D||J_.call($,Y))&&!(Q&&(Y=="length"||k3$(Y,X))))J.push(Y);return J}function _3$($){if(!u3$($))return S3$($);var D=[];for(var J in Object($))if(J_.call($,J)&&J!="constructor")D.push(J);return D}function k3$($,D){return D=D==null?aH0:D,!!D&&(typeof $=="number"||w3$.test($))&&($>-1&&$%1==0&&$<D)}function u3$($){var D=$&&$.constructor,J=typeof D=="function"&&D.prototype||hN;return $===J}function y3$($,D,J,X){$=X_($)?$:p3$($),J=J&&!X?l3$(J):0;var Q=$.length;if(J<0)J=x3$(Q+J,0);return m3$($)?J<=Q&&$.indexOf(D,J)>-1:!!Q&&A3$($,D,J)>-1}function f3$($){return h3$($)&&J_.call($,"callee")&&(!P3$.call($,"callee")||bN.call($)==W3$)}var tH0=Array.isArray;function X_($){return $!=null&&g3$($.length)&&!b3$($)}function h3$($){return Q_($)&&X_($)}function b3$($){var D=D_($)?bN.call($):"";return D==z3$||D==H3$}function g3$($){return typeof $=="number"&&$>-1&&$%1==0&&$<=aH0}function D_($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function Q_($){return!!$&&typeof $=="object"}function m3$($){return typeof $=="string"||!tH0($)&&Q_($)&&bN.call($)==O3$}function d3$($){return typeof $=="symbol"||Q_($)&&bN.call($)==V3$}function c3$($){if(!$)return $===0?$:0;if($=n3$($),$===rH0||$===-rH0){var D=$<0?-1:1;return D*q3$}return $===$?$:0}function l3$($){var D=c3$($),J=D%1;return D===D?J?D-J:D:0}function n3$($){if(typeof $=="number")return $;if(d3$($))return oH0;if(D_($)){var D=typeof $.valueOf=="function"?$.valueOf():$;$=D_(D)?D+"":D}if(typeof $!="string")return $===0?$:+$;$=$.replace(K3$,"");var J=M3$.test($);return J||L3$.test($)?B3$($.slice(2),J?2:8):N3$.test($)?oH0:+$}function i3$($){return X_($)?v3$($):_3$($)}function p3$($){return $?T3$($,i3$($)):[]}sH0.exports=y3$});var DO0=A((Tm$,$O0)=>{var r3$="[object Boolean]",o3$=Object.prototype,a3$=o3$.toString;function t3$($){return $===!0||$===!1||s3$($)&&a3$.call($)==r3$}function s3$($){return!!$&&typeof $=="object"}$O0.exports=t3$});var ZO0=A((Cm$,YO0)=>{var JO0=1/0,e3$=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,XO0=NaN,$W$="[object Symbol]",DW$=/^\s+|\s+$/g,JW$=/^[-+]0x[0-9a-f]+$/i,XW$=/^0b[01]+$/i,QW$=/^0o[0-7]+$/i,YW$=parseInt,ZW$=Object.prototype,FW$=ZW$.toString;function UW$($){return typeof $=="number"&&$==zW$($)}function QO0($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function GW$($){return!!$&&typeof $=="object"}function qW$($){return typeof $=="symbol"||GW$($)&&FW$.call($)==$W$}function WW$($){if(!$)return $===0?$:0;if($=HW$($),$===JO0||$===-JO0){var D=$<0?-1:1;return D*e3$}return $===$?$:0}function zW$($){var D=WW$($),J=D%1;return D===D?J?D-J:D:0}function HW$($){if(typeof $=="number")return $;if(qW$($))return XO0;if(QO0($)){var D=typeof $.valueOf=="function"?$.valueOf():$;$=QO0(D)?D+"":D}if(typeof $!="string")return $===0?$:+$;$=$.replace(DW$,"");var J=XW$.test($);return J||QW$.test($)?YW$($.slice(2),J?2:8):JW$.test($)?XO0:+$}YO0.exports=UW$});var UO0=A((Pm$,FO0)=>{var OW$="[object Number]",VW$=Object.prototype,KW$=VW$.toString;function NW$($){return!!$&&typeof $=="object"}function MW$($){return typeof $=="number"||NW$($)&&KW$.call($)==OW$}FO0.exports=MW$});var zO0=A((Sm$,WO0)=>{var LW$="[object Object]";function wW$($){var D=!1;if($!=null&&typeof $.toString!="function")try{D=!!($+"")}catch(J){}return D}function BW$($,D){return function(J){return $(D(J))}}var EW$=Function.prototype,GO0=Object.prototype,qO0=EW$.toString,RW$=GO0.hasOwnProperty,AW$=qO0.call(Object),IW$=GO0.toString,jW$=BW$(Object.getPrototypeOf,Object);function TW$($){return!!$&&typeof $=="object"}function CW$($){if(!TW$($)||IW$.call($)!=LW$||wW$($))return!1;var D=jW$($);if(D===null)return!0;var J=RW$.call(D,"constructor")&&D.constructor;return typeof J=="function"&&J instanceof J&&qO0.call(J)==AW$}WO0.exports=CW$});var OO0=A((xm$,HO0)=>{var PW$="[object String]",SW$=Object.prototype,xW$=SW$.toString,vW$=Array.isArray;function _W$($){return!!$&&typeof $=="object"}function kW$($){return typeof $=="string"||!vW$($)&&_W$($)&&xW$.call($)==PW$}HO0.exports=kW$});var LO0=A((vm$,MO0)=>{var uW$="Expected a function",VO0=1/0,yW$=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,KO0=NaN,fW$="[object Symbol]",hW$=/^\s+|\s+$/g,bW$=/^[-+]0x[0-9a-f]+$/i,gW$=/^0b[01]+$/i,mW$=/^0o[0-7]+$/i,dW$=parseInt,cW$=Object.prototype,lW$=cW$.toString;function nW$($,D){var J;if(typeof D!="function")throw TypeError(uW$);return $=aW$($),function(){if(--$>0)J=D.apply(this,arguments);if($<=1)D=void 0;return J}}function iW$($){return nW$(2,$)}function NO0($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function pW$($){return!!$&&typeof $=="object"}function rW$($){return typeof $=="symbol"||pW$($)&&lW$.call($)==fW$}function oW$($){if(!$)return $===0?$:0;if($=tW$($),$===VO0||$===-VO0){var D=$<0?-1:1;return D*yW$}return $===$?$:0}function aW$($){var D=oW$($),J=D%1;return D===D?J?D-J:D:0}function tW$($){if(typeof $=="number")return $;if(rW$($))return KO0;if(NO0($)){var D=typeof $.valueOf=="function"?$.valueOf():$;$=NO0(D)?D+"":D}if(typeof $!="string")return $===0?$:+$;$=$.replace(hW$,"");var J=gW$.test($);return J||mW$.test($)?dW$($.slice(2),J?2:8):bW$.test($)?KO0:+$}MO0.exports=iW$});var CO0=A((_m$,TO0)=>{var wO0=kv(),sW$=sv(),eW$=tv(),BO0=wN(),$z$=eH0(),gN=DO0(),EO0=ZO0(),Y_=UO0(),AO0=zO0(),r7=OO0(),Dz$=LO0(),{KeyObject:Jz$,createSecretKey:Xz$,createPrivateKey:Qz$}=s("crypto"),IO0=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];if(sW$)IO0.splice(3,0,"PS256","PS384","PS512");var Yz$={expiresIn:{isValid:function($){return EO0($)||r7($)&&$},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function($){return EO0($)||r7($)&&$},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function($){return r7($)||Array.isArray($)},message:'"audience" must be a string or array'},algorithm:{isValid:$z$.bind(null,IO0),message:'"algorithm" must be a valid string enum value'},header:{isValid:AO0,message:'"header" must be an object'},encoding:{isValid:r7,message:'"encoding" must be a string'},issuer:{isValid:r7,message:'"issuer" must be a string'},subject:{isValid:r7,message:'"subject" must be a string'},jwtid:{isValid:r7,message:'"jwtid" must be a string'},noTimestamp:{isValid:gN,message:'"noTimestamp" must be a boolean'},keyid:{isValid:r7,message:'"keyid" must be a string'},mutatePayload:{isValid:gN,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:gN,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:gN,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},Zz$={iat:{isValid:Y_,message:'"iat" should be a number of seconds'},exp:{isValid:Y_,message:'"exp" should be a number of seconds'},nbf:{isValid:Y_,message:'"nbf" should be a number of seconds'}};function jO0($,D,J,X){if(!AO0(J))throw Error('Expected "'+X+'" to be a plain object.');Object.keys(J).forEach(function(Q){let Y=$[Q];if(!Y){if(!D)throw Error('"'+Q+'" is not allowed in "'+X+'"');return}if(!Y.isValid(J[Q]))throw Error(Y.message)})}function Fz$($){return jO0(Yz$,!1,$,"options")}function Uz$($){return jO0(Zz$,!0,$,"payload")}var RO0={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},Gz$=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];TO0.exports=function($,D,J,X){if(typeof J==="function")X=J,J={};else J=J||{};let Q=typeof $==="object"&&!Buffer.isBuffer($),Y=Object.assign({alg:J.algorithm||"HS256",typ:Q?"JWT":void 0,kid:J.keyid},J.header);function Z(G){if(X)return X(G);throw G}if(!D&&J.algorithm!=="none")return Z(Error("secretOrPrivateKey must have a value"));if(D!=null&&!(D instanceof Jz$))try{D=Qz$(D)}catch(G){try{D=Xz$(typeof D==="string"?Buffer.from(D):D)}catch(q){return Z(Error("secretOrPrivateKey is not valid key material"))}}if(Y.alg.startsWith("HS")&&D.type!=="secret")return Z(Error(`secretOrPrivateKey must be a symmetric key when using ${Y.alg}`));else if(/^(?:RS|PS|ES)/.test(Y.alg)){if(D.type!=="private")return Z(Error(`secretOrPrivateKey must be an asymmetric key when using ${Y.alg}`));if(!J.allowInsecureKeySizes&&!Y.alg.startsWith("ES")&&D.asymmetricKeyDetails!==void 0&&D.asymmetricKeyDetails.modulusLength<2048)return Z(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`))}if(typeof $>"u")return Z(Error("payload is required"));else if(Q){try{Uz$($)}catch(G){return Z(G)}if(!J.mutatePayload)$=Object.assign({},$)}else{let G=Gz$.filter(function(q){return typeof J[q]<"u"});if(G.length>0)return Z(Error("invalid "+G.join(",")+" option for "+typeof $+" payload"))}if(typeof $.exp<"u"&&typeof J.expiresIn<"u")return Z(Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof $.nbf<"u"&&typeof J.notBefore<"u")return Z(Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{Fz$(J)}catch(G){return Z(G)}if(!J.allowInvalidAsymmetricKeyTypes)try{eW$(Y.alg,D)}catch(G){return Z(G)}let F=$.iat||Math.floor(Date.now()/1000);if(J.noTimestamp)delete $.iat;else if(Q)$.iat=F;if(typeof J.notBefore<"u"){try{$.nbf=wO0(J.notBefore,F)}catch(G){return Z(G)}if(typeof $.nbf>"u")return Z(Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof J.expiresIn<"u"&&typeof $==="object"){try{$.exp=wO0(J.expiresIn,F)}catch(G){return Z(G)}if(typeof $.exp>"u")return Z(Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(RO0).forEach(function(G){let q=RO0[G];if(typeof J[G]<"u"){if(typeof $[q]<"u")return Z(Error('Bad "options.'+G+'" option. The payload already has an "'+q+'" property.'));$[q]=J[G]}});let U=J.encoding||"utf8";if(typeof X==="function")X=X&&Dz$(X),BO0.createSign({header:Y,privateKey:D,payload:$,encoding:U}).once("error",X).once("done",function(G){if(!J.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&G.length<256)return X(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`));X(null,G)});else{let G=BO0.sign({header:Y,payload:$,secret:D,encoding:U});if(!J.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&G.length<256)throw Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`);return G}}});var Z_=A((km$,PO0)=>{PO0.exports={decode:xv(),verify:pH0(),sign:CO0(),JsonWebTokenError:Lq(),NotBeforeError:vv(),TokenExpiredError:_v()}});function Oz$($){let D;try{D=JSON.parse($.toString("utf-8"))}catch(Q){throw Error(`Service account file is not valid JSON: ${Q instanceof Error?Q.message:String(Q)}`)}if(!D||typeof D!=="object")throw Error("Service account file is not a JSON object.");let J=D;if(J.type!=="service_account")throw Error(`Expected "type": "service_account" — found ${JSON.stringify(J.type)}. This file is not a service account key.`);let X=["client_email","private_key","project_id","token_uri"];for(let Q of X){let Y=J[Q];if(typeof Y!=="string"||Y.length===0)throw Error(`Service account JSON is missing required field "${Q}".`)}if(!Hz$.has(J.token_uri))throw Error("Service account JSON has an unsupported token_uri. Expected a Google OAuth token endpoint.");return{type:"service_account",client_email:J.client_email,private_key:J.private_key,project_id:J.project_id,token_uri:J.token_uri,private_key_id:typeof J.private_key_id==="string"?J.private_key_id:void 0,client_id:typeof J.client_id==="string"?J.client_id:void 0}}function Vz$($){let D=Math.floor(Date.now()/1000);return xO0.default.sign({iss:$.client_email,scope:qz$,aud:$.token_uri,exp:D+Wz$,iat:D},$.private_key,{algorithm:"RS256",header:{alg:"RS256",typ:"JWT",kid:$.private_key_id??""}})}async function Kz$($){let D=new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:$.assertion}),J=await F_({url:$.key.token_uri,init:{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:D.toString()},signal:$.signal,timeoutMs:$.timeoutMs,fetchImpl:$.fetchImpl}),X=await J.text();if(!J.ok){let Y=`${J.status} ${J.statusText}`;try{let Z=JSON.parse(X);if(Z.error)Y=Z.error_description?`${Z.error}: ${Z.error_description}`:Z.error}catch{}if(J.status>=500||J.status<400)throw new jq(`Google's token endpoint returned ${Y}. Try again in a moment.`);throw Error(`Google rejected the service account credentials (${Y}). The private key may be revoked or invalid.`)}let Q;try{Q=JSON.parse(X)}catch{throw new jq(`Google's token endpoint returned a non-JSON response (${J.status}).`)}if(typeof Q.access_token!=="string"||Q.access_token.length===0)throw new jq("Google's token response was missing an access_token field.");return Q.access_token}async function F_($){let D=new AbortController,J=setTimeout(()=>D.abort(),$.timeoutMs),X,Q=null;if($.signal){let Y=new AbortController;if(Q=()=>Y.abort(),$.signal.addEventListener("abort",Q,{once:!0}),D.signal.addEventListener("abort",Q,{once:!0}),$.signal.aborted||D.signal.aborted)Y.abort();X=Y.signal}else X=D.signal;try{return await $.fetchImpl($.url,{...$.init,signal:X})}finally{if(clearTimeout(J),Q)$.signal?.removeEventListener("abort",Q),D.signal.removeEventListener("abort",Q)}}async function Nz$($){let D=`${SO0}/applications/${encodeURIComponent($.packageName)}/edits`,J;try{J=await F_({url:D,init:{method:"POST",headers:{Authorization:`Bearer ${$.accessToken}`,"Content-Type":"application/json",Accept:"application/json"},body:"{}"},signal:$.signal,timeoutMs:$.timeoutMs,fetchImpl:$.fetchImpl})}catch(Z){return{kind:"network",detail:Z instanceof Error?Z.message:String(Z)}}let X=await J.text();if(u6(`probeAppAccess: POST ${D} → HTTP ${J.status} ${J.statusText}${J.ok?"":` :: ${X.slice(0,300)}`}`),J.status===401||J.status===403||J.status===404)return{kind:"no-access",detail:Mz$(X)??`${J.status} ${J.statusText}`};if(!J.ok)return{kind:"network",detail:`${J.status} ${J.statusText}: ${X.slice(0,200)}`};let Q;try{Q=JSON.parse(X)}catch{return{kind:"network",detail:"Play API returned non-JSON on edits.insert"}}if(typeof Q.id!=="string"||Q.id.length===0)return{kind:"network",detail:"Play API returned no edit id"};let Y=`${SO0}/applications/${encodeURIComponent($.packageName)}/edits/${encodeURIComponent(Q.id)}`;try{await F_({url:Y,init:{method:"DELETE",headers:{Authorization:`Bearer ${$.accessToken}`}},signal:$.signal,timeoutMs:$.timeoutMs,fetchImpl:$.fetchImpl})}catch{}return{kind:"ok"}}function Mz$($){try{let D=JSON.parse($);if(D.error?.message)return D.error.status?`${D.error.status}: ${D.error.message}`:D.error.message}catch{}return null}async function vO0($){let D=$.timeoutMs??zz$,J=$.fetchImpl??globalThis.fetch.bind(globalThis),X;try{X=Oz$($.jsonBytes)}catch(Z){return{ok:!1,kind:"shape-error",message:Z instanceof Error?Z.message:String(Z)}}if($.signal?.aborted)return{ok:!1,kind:"network-error",message:"Validation cancelled."};let Q;try{let Z=Vz$(X);Q=await Kz$({key:X,assertion:Z,signal:$.signal,timeoutMs:D,fetchImpl:J})}catch(Z){let F=Z instanceof Error?Z.message:String(Z),U=Z?.name==="AbortError",G=Z instanceof jq,q=/timeout|timed out|network|fetch failed|ENOTFOUND|EAI_AGAIN|ECONNRESET|ECONNREFUSED/i.test(F);if(U||G||q)return{ok:!1,kind:"network-error",message:F};return{ok:!1,kind:"token-error",message:F}}if($.signal?.aborted)return{ok:!1,kind:"network-error",message:"Validation cancelled."};let Y=await Nz$({accessToken:Q,packageName:$.packageName,signal:$.signal,timeoutMs:D,fetchImpl:J});if(Y.kind==="ok")return{ok:!0,serviceAccountEmail:X.client_email,projectId:X.project_id};if(Y.kind==="no-access")return{ok:!1,kind:"no-app-access",serviceAccountEmail:X.client_email,message:`Service account "${X.client_email}" cannot access package "${$.packageName}" on Google Play (${Y.detail}). Open Play Console → Users and permissions, invite the service account email, and grant access to this app.`};return{ok:!1,kind:"network-error",message:Y.detail}}var xO0,qz$="https://www.googleapis.com/auth/androidpublisher",SO0="https://androidpublisher.googleapis.com/androidpublisher/v3",Wz$=3600,zz$=30000,Hz$,jq;var _O0=a(()=>{OY();xO0=j$(Z_(),1),Hz$=new Set(["https://oauth2.googleapis.com/token","https://accounts.google.com/o/oauth2/token","https://www.googleapis.com/oauth2/v4/token"]);jq=class jq extends Error{constructor($){super($);this.name="TokenExchangeTransientError"}}});var Lz$;var kO0=a(()=>{Lz$=j$(Jq(),1)});function yO0($,D,J){let X=Math.floor(Date.now()/1000);return uO0.default.sign({iss:D,iat:X,exp:X+900,aud:"appstoreconnect-v1"},J,{algorithm:"ES256",header:{alg:"ES256",kid:$,typ:"JWT"}})}function fO0($){let D=typeof $?.status==="number"?$.status:void 0,J=typeof $?.code==="string"?$.code:void 0,X=D===401,Q=D===403,Y=Boolean(Q&&(J==="FORBIDDEN.REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED"||J==="FORBIDDEN_ERROR.PLA_NOT_ACCEPTED"||/\bPLA_NOT_ACCEPTED\b|required agreement|program license agreement/i.test($?.message??"")));return{is401or403:Boolean(X||Q),isAgreements:Y,status:D,code:J,message:Y?wz$:Bz$}}function hO0($){return($?.data||[]).map((D)=>({id:D?.id||"",bundleId:D?.attributes?.bundleId||"",name:D?.attributes?.name||""}))}var uO0,U_,wz$,Bz$=`API key verification failed. Please check:
|
|
454
454
|
- The .p8 file is correct and hasn't been modified
|
|
455
455
|
- The Key ID matches the key shown in App Store Connect
|
|
456
456
|
- The Issuer ID is correct (shown at the top of the API keys page)
|