@skyramp/testbot-core 0.13.0-v3.293 → 0.13.0-v3.294
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/VERSION.json +1 -1
- package/dist/main.js +3 -3
- package/dist/post.js +1 -1
- package/dist/runner-client.cjs +1 -1
- package/dist/runner-client.d.cts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -172,7 +172,7 @@ Errors can be temporary, so please try again and optionally run the action with
|
|
|
172
172
|
|
|
173
173
|
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}}});var zXe=v(()=>{});var SG={};Sg(SG,{ArtifactNotFoundError:()=>td,DefaultArtifactClient:()=>hN,FilesNotFoundError:()=>qy,GHESNotSupportedError:()=>Zp,InvalidResponseError:()=>ed,NetworkError:()=>rd,UsageError:()=>Em,default:()=>Qrr});var Orr,Qrr,CG=v(()=>{gae();zXe();ef();gae();Orr=new hN,Qrr=Orr});zt();var bg=X(require("fs")),Gf=X(require("path"));var Ap=X(require("fs")),js=X(require("path"));function Vbt(e){try{return Ap.lstatSync(e),!0}catch{return!1}}function vb(e){let t=js.resolve(e),r=[];for(;!Vbt(t);){let s=js.dirname(t);if(s===t)break;r.unshift(js.basename(t)),t=s}let n=t;try{n=Ap.realpathSync(t)}catch{try{Ap.lstatSync(t).isSymbolicLink()&&(n=js.resolve(js.dirname(t),Ap.readlinkSync(t)))}catch{}}return r.length?js.join(n,...r):n}function xb(e,t){let r=vb(e),n=vb(js.resolve(e,t)),s=js.relative(r,n);if(s==="")return".";if(!(s===".."||s.startsWith(`..${js.sep}`)||js.isAbsolute(s)))return s}function Hs(e,t){return xb(e,t)!==void 0}function Eu(e,t){return Hs(e,t)&&Ap.existsSync(js.resolve(e,t))}function wu(e){let t=e.split(/[\\/]/)[0];return t===".skyramp"||t===".testbot"}var mwe=X(require("path"));var y={};Sg(y,{BRAND:()=>ESt,DIRTY:()=>Xg,EMPTY_PATH:()=>Kbt,INVALID:()=>gt,NEVER:()=>nCt,OK:()=>Ki,ParseStatus:()=>Ai,Schema:()=>Ft,ZodAny:()=>gh,ZodArray:()=>bp,ZodBigInt:()=>eA,ZodBoolean:()=>tA,ZodBranded:()=>dR,ZodCatch:()=>pA,ZodDate:()=>rA,ZodDefault:()=>dA,ZodDiscriminatedUnion:()=>MD,ZodEffects:()=>Ec,ZodEnum:()=>lA,ZodError:()=>Yo,ZodFirstPartyTypeKind:()=>Ct,ZodFunction:()=>LD,ZodIntersection:()=>oA,ZodIssueCode:()=>Te,ZodLazy:()=>aA,ZodLiteral:()=>cA,ZodMap:()=>Nb,ZodNaN:()=>Pb,ZodNativeEnum:()=>uA,ZodNever:()=>vl,ZodNull:()=>sA,ZodNullable:()=>Cu,ZodNumber:()=>Zg,ZodObject:()=>Ko,ZodOptional:()=>Ac,ZodParsedType:()=>We,ZodPipeline:()=>pR,ZodPromise:()=>Ah,ZodReadonly:()=>fA,ZodRecord:()=>FD,ZodSchema:()=>Ft,ZodSet:()=>_b,ZodString:()=>mh,ZodSymbol:()=>kb,ZodTransformer:()=>Ec,ZodTuple:()=>Su,ZodType:()=>Ft,ZodUndefined:()=>nA,ZodUnion:()=>iA,ZodUnknown:()=>wp,ZodVoid:()=>Bb,addIssueToContext:()=>Qe,any:()=>TSt,array:()=>_St,bigint:()=>CSt,boolean:()=>hwe,coerce:()=>rCt,custom:()=>dwe,date:()=>vSt,datetimeRegex:()=>lwe,defaultErrorMap:()=>yp,discriminatedUnion:()=>QSt,effect:()=>WSt,enum:()=>HSt,function:()=>qSt,getErrorMap:()=>Ib,getParsedType:()=>bu,instanceof:()=>bSt,intersection:()=>MSt,isAborted:()=>OD,isAsync:()=>Rb,isDirty:()=>QD,isValid:()=>hh,late:()=>wSt,lazy:()=>GSt,literal:()=>jSt,makeIssue:()=>uR,map:()=>USt,nan:()=>SSt,nativeEnum:()=>zSt,never:()=>BSt,null:()=>RSt,nullable:()=>YSt,number:()=>fwe,object:()=>PSt,objectUtil:()=>NW,oboolean:()=>tCt,onumber:()=>eCt,optional:()=>JSt,ostring:()=>ZSt,pipeline:()=>XSt,preprocess:()=>KSt,promise:()=>VSt,quotelessJson:()=>Wbt,record:()=>LSt,set:()=>$St,setErrorMap:()=>Ybt,strictObject:()=>DSt,string:()=>pwe,symbol:()=>xSt,transformer:()=>WSt,tuple:()=>FSt,undefined:()=>ISt,union:()=>OSt,unknown:()=>kSt,util:()=>Zt,void:()=>NSt});var Zt;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{let i={};for(let o of s)i[o]=o;return i},e.getValidEnumValues=s=>{let i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(let a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let i=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(let o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Zt||(Zt={}));var NW;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(NW||(NW={}));var We=Zt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bu=e=>{switch(typeof e){case"undefined":return We.undefined;case"string":return We.string;case"number":return Number.isNaN(e)?We.nan:We.number;case"boolean":return We.boolean;case"function":return We.function;case"bigint":return We.bigint;case"symbol":return We.symbol;case"object":return Array.isArray(e)?We.array:e===null?We.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?We.promise:typeof Map<"u"&&e instanceof Map?We.map:typeof Set<"u"&&e instanceof Set?We.set:typeof Date<"u"&&e instanceof Date?We.date:We.object;default:return We.unknown}};var Te=Zt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Wbt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Yo=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_errors:[]},s=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let l=o.path[c],u=c===o.path.length-1;if(l==="_errors"){u&&a._errors.push(r(o)),c++;continue}Object.prototype.hasOwnProperty.call(a,l)||(l==="__proto__"?Object.defineProperty(a,l,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):a[l]={_errors:[]}),a=a[l],u&&a._errors.push(r(o)),c++}}};return s(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Zt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),n=[];for(let s of this.issues)if(s.path.length>0){let i=s.path[0];r[i]=r[i]||[],r[i].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Yo.create=e=>new Yo(e);var Jbt=(e,t)=>{let r;switch(e.code){case Te.invalid_type:e.received===We.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Te.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Zt.jsonStringifyReplacer)}`;break;case Te.unrecognized_keys:r=`Unrecognized key(s) in object: ${Zt.joinValues(e.keys,", ")}`;break;case Te.invalid_union:r="Invalid input";break;case Te.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Zt.joinValues(e.options)}`;break;case Te.invalid_enum_value:r=`Invalid enum value. Expected ${Zt.joinValues(e.options)}, received '${e.received}'`;break;case Te.invalid_arguments:r="Invalid function arguments";break;case Te.invalid_return_type:r="Invalid function return type";break;case Te.invalid_date:r="Invalid date";break;case Te.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Zt.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Te.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Te.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Te.custom:r="Invalid input";break;case Te.invalid_intersection_types:r="Intersection results could not be merged";break;case Te.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Te.not_finite:r="Number must be finite";break;default:r=t.defaultError,Zt.assertNever(e)}return{message:r}},yp=Jbt;var swe=yp;function Ybt(e){swe=e}function Ib(){return swe}var uR=e=>{let{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="",c=n.filter(l=>!!l).slice().reverse();for(let l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},Kbt=[];function Qe(e,t){let r=Ib(),n=uR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===yp?void 0:yp].filter(s=>!!s)});e.common.issues.push(n)}var Ai=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let s of r){if(s.status==="aborted")return gt;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let s of r){let i=await s.key,o=await s.value;n.push({key:i,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let s of r){let{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return gt;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}},gt=Object.freeze({status:"aborted"}),Xg=e=>({status:"dirty",value:e}),Ki=e=>({status:"valid",value:e}),OD=e=>e.status==="aborted",QD=e=>e.status==="dirty",hh=e=>e.status==="valid",Rb=e=>typeof Promise<"u"&&e instanceof Promise;var tt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(tt||(tt={}));var yc=class{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},iwe=(e,t)=>{if(hh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Yo(e.common.issues);return this._error=r,this._error}}};function Pt(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:s}}var Ft=class{get description(){return this._def.description}_getType(t){return bu(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:bu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ai,ctx:{common:t.parent.common,data:t.data,parsedType:bu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Rb(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bu(t)},s=this._parseSync({data:t,path:n.path,parent:n});return iwe(n,s)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bu(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return hh(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>hh(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bu(t)},s=this._parse({data:t,path:n.path,parent:n}),i=await(Rb(s)?s:Promise.resolve(s));return iwe(n,i)}refine(t,r){let n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{let o=t(s),a=()=>i.addIssue({code:Te.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new Ec({schema:this,typeName:Ct.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ac.create(this,this._def)}nullable(){return Cu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bp.create(this)}promise(){return Ah.create(this,this._def)}or(t){return iA.create([this,t],this._def)}and(t){return oA.create(this,t,this._def)}transform(t){return new Ec({...Pt(this._def),schema:this,typeName:Ct.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new dA({...Pt(this._def),innerType:this,defaultValue:r,typeName:Ct.ZodDefault})}brand(){return new dR({typeName:Ct.ZodBranded,type:this,...Pt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new pA({...Pt(this._def),innerType:this,catchValue:r,typeName:Ct.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return pR.create(this,t)}readonly(){return fA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Xbt=/^c[^\s-]{8,}$/i,Zbt=/^[0-9a-z]+$/,eSt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tSt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rSt=/^[a-z0-9_-]{21}$/i,nSt=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sSt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,iSt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,oSt="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",_W,aSt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cSt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,lSt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,uSt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dSt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,pSt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,awe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",fSt=new RegExp(`^${awe}$`);function cwe(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function hSt(e){return new RegExp(`^${cwe(e)}$`)}function lwe(e){let t=`${awe}T${cwe(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function mSt(e,t){return!!((t==="v4"||!t)&&aSt.test(e)||(t==="v6"||!t)&&lSt.test(e))}function gSt(e,t){if(!nSt.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function ASt(e,t){return!!((t==="v4"||!t)&&cSt.test(e)||(t==="v6"||!t)&&uSt.test(e))}var mh=class e extends Ft{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==We.string){let i=this._getOrReturnCtx(t);return Qe(i,{code:Te.invalid_type,expected:We.string,received:i.parsedType}),gt}let n=new Ai,s;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?Qe(s,{code:Te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Qe(s,{code:Te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")iSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"email",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")_W||(_W=new RegExp(oSt,"u")),_W.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"emoji",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")tSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"uuid",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")rSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"nanoid",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Xbt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"cuid",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Zbt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"cuid2",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")eSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"ulid",code:Te.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),Qe(s,{validation:"url",code:Te.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"regex",code:Te.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?lwe(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?fSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?hSt(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?sSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"duration",code:Te.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?mSt(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"ip",code:Te.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?gSt(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"jwt",code:Te.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?ASt(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"cidr",code:Te.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?dSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"base64",code:Te.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?pSt.test(t.data)||(s=this._getOrReturnCtx(t,s),Qe(s,{validation:"base64url",code:Te.invalid_string,message:i.message}),n.dirty()):Zt.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:Te.invalid_string,...tt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...tt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...tt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...tt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...tt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...tt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...tt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...tt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...tt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...tt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...tt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...tt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...tt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...tt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...tt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...tt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...tt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...tt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...tt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...tt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...tt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...tt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...tt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...tt.errToObj(r)})}nonempty(t){return this.min(1,tt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};mh.create=e=>new mh({checks:[],typeName:Ct.ZodString,coerce:e?.coerce??!1,...Pt(e)});function ySt(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}var Zg=class e extends Ft{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==We.number){let i=this._getOrReturnCtx(t);return Qe(i,{code:Te.invalid_type,expected:We.number,received:i.parsedType}),gt}let n,s=new Ai;for(let i of this._def.checks)i.kind==="int"?Zt.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?ySt(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.not_finite,message:i.message}),s.dirty()):Zt.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,tt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,tt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,tt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,tt.toString(r))}setLimit(t,r,n,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:tt.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:tt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:tt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:tt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Zt.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Zg.create=e=>new Zg({checks:[],typeName:Ct.ZodNumber,coerce:e?.coerce||!1,...Pt(e)});var eA=class e extends Ft{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==We.bigint)return this._getInvalidInput(t);let n,s=new Ai;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Qe(n,{code:Te.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Zt.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return Qe(r,{code:Te.invalid_type,expected:We.bigint,received:r.parsedType}),gt}gte(t,r){return this.setLimit("min",t,!0,tt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,tt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,tt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,tt.toString(r))}setLimit(t,r,n,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:tt.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:tt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};eA.create=e=>new eA({checks:[],typeName:Ct.ZodBigInt,coerce:e?.coerce??!1,...Pt(e)});var tA=class extends Ft{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==We.boolean){let n=this._getOrReturnCtx(t);return Qe(n,{code:Te.invalid_type,expected:We.boolean,received:n.parsedType}),gt}return Ki(t.data)}};tA.create=e=>new tA({typeName:Ct.ZodBoolean,coerce:e?.coerce||!1,...Pt(e)});var rA=class e extends Ft{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==We.date){let i=this._getOrReturnCtx(t);return Qe(i,{code:Te.invalid_type,expected:We.date,received:i.parsedType}),gt}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return Qe(i,{code:Te.invalid_date}),gt}let n=new Ai,s;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),Qe(s,{code:Te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Zt.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:tt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:tt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};rA.create=e=>new rA({checks:[],coerce:e?.coerce||!1,typeName:Ct.ZodDate,...Pt(e)});var kb=class extends Ft{_parse(t){if(this._getType(t)!==We.symbol){let n=this._getOrReturnCtx(t);return Qe(n,{code:Te.invalid_type,expected:We.symbol,received:n.parsedType}),gt}return Ki(t.data)}};kb.create=e=>new kb({typeName:Ct.ZodSymbol,...Pt(e)});var nA=class extends Ft{_parse(t){if(this._getType(t)!==We.undefined){let n=this._getOrReturnCtx(t);return Qe(n,{code:Te.invalid_type,expected:We.undefined,received:n.parsedType}),gt}return Ki(t.data)}};nA.create=e=>new nA({typeName:Ct.ZodUndefined,...Pt(e)});var sA=class extends Ft{_parse(t){if(this._getType(t)!==We.null){let n=this._getOrReturnCtx(t);return Qe(n,{code:Te.invalid_type,expected:We.null,received:n.parsedType}),gt}return Ki(t.data)}};sA.create=e=>new sA({typeName:Ct.ZodNull,...Pt(e)});var gh=class extends Ft{constructor(){super(...arguments),this._any=!0}_parse(t){return Ki(t.data)}};gh.create=e=>new gh({typeName:Ct.ZodAny,...Pt(e)});var wp=class extends Ft{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ki(t.data)}};wp.create=e=>new wp({typeName:Ct.ZodUnknown,...Pt(e)});var vl=class extends Ft{_parse(t){let r=this._getOrReturnCtx(t);return Qe(r,{code:Te.invalid_type,expected:We.never,received:r.parsedType}),gt}};vl.create=e=>new vl({typeName:Ct.ZodNever,...Pt(e)});var Bb=class extends Ft{_parse(t){if(this._getType(t)!==We.undefined){let n=this._getOrReturnCtx(t);return Qe(n,{code:Te.invalid_type,expected:We.void,received:n.parsedType}),gt}return Ki(t.data)}};Bb.create=e=>new Bb({typeName:Ct.ZodVoid,...Pt(e)});var bp=class e extends Ft{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==We.array)return Qe(r,{code:Te.invalid_type,expected:We.array,received:r.parsedType}),gt;if(s.exactLength!==null){let o=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(o||a)&&(Qe(r,{code:o?Te.too_big:Te.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(Qe(r,{code:Te.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(Qe(r,{code:Te.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>s.type._parseAsync(new yc(r,o,r.path,a)))).then(o=>Ai.mergeArray(n,o));let i=[...r.data].map((o,a)=>s.type._parseSync(new yc(r,o,r.path,a)));return Ai.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:tt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:tt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:tt.toString(r)}})}nonempty(t){return this.min(1,t)}};bp.create=(e,t)=>new bp({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ct.ZodArray,...Pt(t)});function Tb(e){if(e instanceof Ko){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Ac.create(Tb(n))}return new Ko({...e._def,shape:()=>t})}else return e instanceof bp?new bp({...e._def,type:Tb(e.element)}):e instanceof Ac?Ac.create(Tb(e.unwrap())):e instanceof Cu?Cu.create(Tb(e.unwrap())):e instanceof Su?Su.create(e.items.map(t=>Tb(t))):e}var Ko=class e extends Ft{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Zt.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==We.object){let l=this._getOrReturnCtx(t);return Qe(l,{code:Te.invalid_type,expected:We.object,received:l.parsedType}),gt}let{status:n,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof vl&&this._def.unknownKeys==="strip"))for(let l in s.data)o.includes(l)||a.push(l);let c=[];for(let l of o){let u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new yc(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof vl){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(Qe(s,{code:Te.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let u of a){let d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new yc(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let d=await u.key,p=await u.value;l.push({key:d,value:p,alwaysSet:u.alwaysSet})}return l}).then(l=>Ai.mergeObjectSync(n,l)):Ai.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return tt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let s=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:tt.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ct.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of Zt.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of Zt.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return Tb(this)}partial(t){let r={};for(let n of Zt.objectKeys(this.shape)){let s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of Zt.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Ac;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return uwe(Zt.objectKeys(this.shape))}};Ko.create=(e,t)=>new Ko({shape:()=>e,unknownKeys:"strip",catchall:vl.create(),typeName:Ct.ZodObject,...Pt(t)});Ko.strictCreate=(e,t)=>new Ko({shape:()=>e,unknownKeys:"strict",catchall:vl.create(),typeName:Ct.ZodObject,...Pt(t)});Ko.lazycreate=(e,t)=>new Ko({shape:e,unknownKeys:"strip",catchall:vl.create(),typeName:Ct.ZodObject,...Pt(t)});var iA=class extends Ft{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function s(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new Yo(a.ctx.common.issues));return Qe(r,{code:Te.invalid_union,unionErrors:o}),gt}if(r.common.async)return Promise.all(n.map(async i=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i,o=[];for(let c of n){let l={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new Yo(c));return Qe(r,{code:Te.invalid_union,unionErrors:a}),gt}}get options(){return this._def.options}};iA.create=(e,t)=>new iA({options:e,typeName:Ct.ZodUnion,...Pt(t)});var Ep=e=>e instanceof aA?Ep(e.schema):e instanceof Ec?Ep(e.innerType()):e instanceof cA?[e.value]:e instanceof lA?e.options:e instanceof uA?Zt.objectValues(e.enum):e instanceof dA?Ep(e._def.innerType):e instanceof nA?[void 0]:e instanceof sA?[null]:e instanceof Ac?[void 0,...Ep(e.unwrap())]:e instanceof Cu?[null,...Ep(e.unwrap())]:e instanceof dR||e instanceof fA?Ep(e.unwrap()):e instanceof pA?Ep(e._def.innerType):[],MD=class e extends Ft{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.object)return Qe(r,{code:Te.invalid_type,expected:We.object,received:r.parsedType}),gt;let n=this.discriminator,s=r.data[n],i=this.optionsMap.get(s);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(Qe(r,{code:Te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),gt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let s=new Map;for(let i of r){let o=Ep(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new e({typeName:Ct.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...Pt(n)})}};function PW(e,t){let r=bu(e),n=bu(t);if(e===t)return{valid:!0,data:e};if(r===We.object&&n===We.object){let s=Zt.objectKeys(t),i=Zt.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let a of i){if(a==="__proto__")continue;let c=PW(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===We.array&&n===We.array){if(e.length!==t.length)return{valid:!1};let s=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=PW(o,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===We.date&&n===We.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var oA=class extends Ft{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),s=(i,o)=>{if(OD(i)||OD(o))return gt;let a=PW(i.value,o.value);return a.valid?((QD(i)||QD(o))&&r.dirty(),{status:r.value,value:a.data}):(Qe(n,{code:Te.invalid_intersection_types}),gt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};oA.create=(e,t,r)=>new oA({left:e,right:t,typeName:Ct.ZodIntersection,...Pt(r)});var Su=class e extends Ft{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.array)return Qe(n,{code:Te.invalid_type,expected:We.array,received:n.parsedType}),gt;if(n.data.length<this._def.items.length)return Qe(n,{code:Te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),gt;!this._def.rest&&n.data.length>this._def.items.length&&(Qe(n,{code:Te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new yc(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>Ai.mergeArray(r,o)):Ai.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Su.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Su({items:e,typeName:Ct.ZodTuple,rest:null,...Pt(t)})};var FD=class e extends Ft{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.object)return Qe(n,{code:Te.invalid_type,expected:We.object,received:n.parsedType}),gt;let s=[],i=this._def.keyType,o=this._def.valueType;for(let a in n.data)s.push({key:i._parse(new yc(n,a,n.path,a)),value:o._parse(new yc(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Ai.mergeObjectAsync(r,s):Ai.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ft?new e({keyType:t,valueType:r,typeName:Ct.ZodRecord,...Pt(n)}):new e({keyType:mh.create(),valueType:t,typeName:Ct.ZodRecord,...Pt(r)})}},Nb=class extends Ft{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.map)return Qe(n,{code:Te.invalid_type,expected:We.map,received:n.parsedType}),gt;let s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([a,c],l)=>({key:s._parse(new yc(n,a,n.path,[l,"key"])),value:i._parse(new yc(n,c,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return gt;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return gt;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}}}};Nb.create=(e,t,r)=>new Nb({valueType:t,keyType:e,typeName:Ct.ZodMap,...Pt(r)});var _b=class e extends Ft{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.set)return Qe(n,{code:Te.invalid_type,expected:We.set,received:n.parsedType}),gt;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(Qe(n,{code:Te.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(Qe(n,{code:Te.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let i=this._def.valueType;function o(c){let l=new Set;for(let u of c){if(u.status==="aborted")return gt;u.status==="dirty"&&r.dirty(),l.add(u.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((c,l)=>i._parse(new yc(n,c,n.path,l)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:tt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:tt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};_b.create=(e,t)=>new _b({valueType:e,minSize:null,maxSize:null,typeName:Ct.ZodSet,...Pt(t)});var LD=class e extends Ft{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.function)return Qe(r,{code:Te.invalid_type,expected:We.function,received:r.parsedType}),gt;function n(a,c){return uR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ib(),yp].filter(l=>!!l),issueData:{code:Te.invalid_arguments,argumentsError:c}})}function s(a,c){return uR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ib(),yp].filter(l=>!!l),issueData:{code:Te.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ah){let a=this;return Ki(async function(...c){let l=new Yo([]),u=await a._def.args.parseAsync(c,i).catch(f=>{throw l.addIssue(n(c,f)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(f=>{throw l.addIssue(s(d,f)),l})})}else{let a=this;return Ki(function(...c){let l=a._def.args.safeParse(c,i);if(!l.success)throw new Yo([n(c,l.error)]);let u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Yo([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Su.create(t).rest(wp.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Su.create([]).rest(wp.create()),returns:r||wp.create(),typeName:Ct.ZodFunction,...Pt(n)})}},aA=class extends Ft{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};aA.create=(e,t)=>new aA({getter:e,typeName:Ct.ZodLazy,...Pt(t)});var cA=class extends Ft{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return Qe(r,{received:r.data,code:Te.invalid_literal,expected:this._def.value}),gt}return{status:"valid",value:t.data}}get value(){return this._def.value}};cA.create=(e,t)=>new cA({value:e,typeName:Ct.ZodLiteral,...Pt(t)});function uwe(e,t){return new lA({values:e,typeName:Ct.ZodEnum,...Pt(t)})}var lA=class e extends Ft{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return Qe(r,{expected:Zt.joinValues(n),received:r.parsedType,code:Te.invalid_type}),gt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return Qe(r,{received:r.data,code:Te.invalid_enum_value,options:n}),gt}return Ki(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};lA.create=uwe;var uA=class extends Ft{_parse(t){let r=Zt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==We.string&&n.parsedType!==We.number){let s=Zt.objectValues(r);return Qe(n,{expected:Zt.joinValues(s),received:n.parsedType,code:Te.invalid_type}),gt}if(this._cache||(this._cache=new Set(Zt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let s=Zt.objectValues(r);return Qe(n,{received:n.data,code:Te.invalid_enum_value,options:s}),gt}return Ki(t.data)}get enum(){return this._def.values}};uA.create=(e,t)=>new uA({values:e,typeName:Ct.ZodNativeEnum,...Pt(t)});var Ah=class extends Ft{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.promise&&r.common.async===!1)return Qe(r,{code:Te.invalid_type,expected:We.promise,received:r.parsedType}),gt;let n=r.parsedType===We.promise?r.data:Promise.resolve(r.data);return Ki(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ah.create=(e,t)=>new Ah({type:e,typeName:Ct.ZodPromise,...Pt(t)});var Ec=class extends Ft{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ct.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{Qe(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){let o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return gt;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?gt:c.status==="dirty"?Xg(c.value):r.value==="dirty"?Xg(c.value):c});{if(r.value==="aborted")return gt;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?gt:a.status==="dirty"?Xg(a.value):r.value==="dirty"?Xg(a.value):a}}if(s.type==="refinement"){let o=a=>{let c=s.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?gt:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?gt:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!hh(o))return gt;let a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>hh(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:r.value,value:a})):gt);Zt.assertNever(s)}};Ec.create=(e,t,r)=>new Ec({schema:e,typeName:Ct.ZodEffects,effect:t,...Pt(r)});Ec.createWithPreprocess=(e,t,r)=>new Ec({schema:t,effect:{type:"preprocess",transform:e},typeName:Ct.ZodEffects,...Pt(r)});var Ac=class extends Ft{_parse(t){return this._getType(t)===We.undefined?Ki(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ac.create=(e,t)=>new Ac({innerType:e,typeName:Ct.ZodOptional,...Pt(t)});var Cu=class extends Ft{_parse(t){return this._getType(t)===We.null?Ki(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Cu.create=(e,t)=>new Cu({innerType:e,typeName:Ct.ZodNullable,...Pt(t)});var dA=class extends Ft{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===We.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};dA.create=(e,t)=>new dA({innerType:e,typeName:Ct.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Pt(t)});var pA=class extends Ft{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Rb(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Yo(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Yo(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};pA.create=(e,t)=>new pA({innerType:e,typeName:Ct.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Pt(t)});var Pb=class extends Ft{_parse(t){if(this._getType(t)!==We.nan){let n=this._getOrReturnCtx(t);return Qe(n,{code:Te.invalid_type,expected:We.nan,received:n.parsedType}),gt}return{status:"valid",value:t.data}}};Pb.create=e=>new Pb({typeName:Ct.ZodNaN,...Pt(e)});var ESt=Symbol("zod_brand"),dR=class extends Ft{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},pR=class e extends Ft{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?gt:i.status==="dirty"?(r.dirty(),Xg(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?gt:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:Ct.ZodPipeline})}},fA=class extends Ft{_parse(t){let r=this._def.innerType._parse(t),n=s=>(hh(s)&&(s.value=Object.freeze(s.value)),s);return Rb(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}};fA.create=(e,t)=>new fA({innerType:e,typeName:Ct.ZodReadonly,...Pt(t)});function owe(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function dwe(e,t={},r){return e?gh.create().superRefine((n,s)=>{let i=e(n);if(i instanceof Promise)return i.then(o=>{if(!o){let a=owe(t,n),c=a.fatal??r??!0;s.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=owe(t,n),a=o.fatal??r??!0;s.addIssue({code:"custom",...o,fatal:a})}}):gh.create()}var wSt={object:Ko.lazycreate},Ct;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ct||(Ct={}));var bSt=(e,t={message:`Input not instance of ${e.name}`})=>dwe(r=>r instanceof e,t),pwe=mh.create,fwe=Zg.create,SSt=Pb.create,CSt=eA.create,hwe=tA.create,vSt=rA.create,xSt=kb.create,ISt=nA.create,RSt=sA.create,TSt=gh.create,kSt=wp.create,BSt=vl.create,NSt=Bb.create,_St=bp.create,PSt=Ko.create,DSt=Ko.strictCreate,OSt=iA.create,QSt=MD.create,MSt=oA.create,FSt=Su.create,LSt=FD.create,USt=Nb.create,$St=_b.create,qSt=LD.create,GSt=aA.create,jSt=cA.create,HSt=lA.create,zSt=uA.create,VSt=Ah.create,WSt=Ec.create,JSt=Ac.create,YSt=Cu.create,KSt=Ec.createWithPreprocess,XSt=pR.create,ZSt=()=>pwe().optional(),eCt=()=>fwe().optional(),tCt=()=>hwe().optional(),rCt={string:(e=>mh.create({...e,coerce:!0})),number:(e=>Zg.create({...e,coerce:!0})),boolean:(e=>tA.create({...e,coerce:!0})),bigint:(e=>eA.create({...e,coerce:!0})),date:(e=>rA.create({...e,coerce:!0}))};var nCt=gt;var yh=(r=>(r.Ready="ready",r.Blocked="blocked",r))(yh||{}),Ln=y.string().trim().min(1),sCt=y.object({action:y.enum(["start","run","wait"]),text:Ln,source:y.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:Ln.nullable().describe("the file the step came from, relative to the component's repository; null unless source is file")}).strict().refine(e=>e.source==="file"==(e.file!==null),{path:["file"],message:"a file exactly when the step came from one"}),iCt=/^[A-Za-z_][A-Za-z0-9_]*$/,Sp=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,Db=(o=>(o.VersionEndpoint="version_endpoint",o.DeployWorkflow="deploy_workflow",o.KubernetesLabels="kubernetes_labels",o.Command="command",o.Api="api",o.NotTracked="not_tracked",o))(Db||{}),Fr="shared",oCt=Ln.refine(e=>{try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},"an http(s) URL with no login in it"),Ob=y.object({address:oCt,readyWhen:Ln.nullable(),credentials:y.array(y.string().regex(Sp)).max(50),revisionSources:y.array(y.object({method:y.nativeEnum(Db),detail:Ln.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:y.array(Ln).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),DW={steps:y.array(sCt).max(20).optional().describe("how it starts, in order"),kind:y.enum(["web_app","service","database","external_service"]).optional(),from:y.object({file:Ln,service:Ln.nullable()}).strict().optional(),credentials:y.array(y.string().max(100).regex(iCt)).max(50).optional().describe("the Target's credentials this component's recipe uses: a sign-in (a test user, password or token) or an API key, which the workflow supplies from a GitHub Actions secret as the environment variable of the credential's name; give each name exactly as the recipe reads it. Names only, never a value, and not a secret the recipe generates itself")},aCt=y.object({name:Ln,repository:Ln.describe("owner/repo of the Target repository the component is built or started from, such as the one whose compose file starts its database"),healthy:y.boolean(),...DW,deployed:Ln.nullable().optional().describe('only with "environment": the revision the component runs, as you read it from its revision source, or null when you could not tell')}),cCt=y.object({component:Ln,problem:Ln,evidence:Ln.describe("the exact command and output that shows it"),fix:Ln.describe("what the user must provide, and where")}),lCt=y.object({framework:Ln,file:Ln.describe("the test file run, relative to its repository root"),result:y.enum(["pass","fail","error"])}),uCt=y.object({input:Ln.describe("the part of the user's SUT input, as given"),reason:Ln}),fR=y.object({schemaVersion:y.literal(1),status:y.nativeEnum(yh).describe("ready only if every component came up healthy and the recipe is written"),components:y.array(aCt),suites:y.array(lCt).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:y.array(Ln).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:y.array(y.object({input:Ln.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:Ln.describe("what the recipe did with it")})).optional(),inputsNotUsed:y.array(uCt).default([]).describe("the parts it did not use, and why. A part that is wrong goes here, with what was wrong, even when the recipe does something like it instead: one the repositories or the app show is wrong, such as a file, command, port, route or setting that is not there. Something outside them that does not answer is not one: that is a blocker"),blockers:y.array(cCt).describe("required (non-empty) when status is blocked"),environment:Ob.optional().describe("only when the whole SUT is an existing deployment you tested where it runs, building and starting nothing: its address, what says it is ready, the credentials that reach it, and how to read what each component runs. Leave it out when any part was built or started on the runner, or reaching it needed something there (a tunnel, port-forward, proxy or client certificate)")});function OW(e){let t=dCt(e);if(t.length>0)return t;if(e.status==="blocked"&&!(Array.isArray(e.blockers)&&e.blockers.length>0))return['status "blocked" requires at least one blocker { component, problem, evidence, fix } \u2014 say what stopped the bring-up'];if(e.status==="ready"){let r=Array.isArray(e.components)?e.components:[];if(r.length===0)return['status "ready" requires at least one component \u2014 name each component the recipe brought up healthy'];let n=r.filter(s=>s?.healthy!==!0).map(s=>String(s?.name??"?"));if(n.length>0)return[`status "ready" requires every component healthy; not healthy: ${n.join(", ")} \u2014 answer "blocked" with a blocker for each, or bring them up and answer "ready" again`]}return[]}function dCt(e){let t=Array.isArray(e.components)?e.components:[],r=e.environment;if(!r){let a=t.filter(c=>c?.deployed!==void 0||c?.repository===Fr).map(c=>String(c?.name??"?"));return a.length>0?[`"deployed" and a "${Fr}" repository belong only to an answer with "environment"; remove them from: ${a.join(", ")}`]:[]}let n=[],s=t.filter(a=>a?.deployed===void 0).map(a=>String(a?.name??"?"));s.length>0&&n.push(`with "environment", every component says what it runs in "deployed" (null when you could not tell); missing for: ${s.join(", ")}`);let i=new Set(t.map(a=>a?.name)),o=(r.revisionSources??[]).flatMap(a=>a?.components??[]).filter(a=>!i.has(a));return o.length>0&&n.push(`each revision source names components of this answer; not one of them: ${o.map(String).join(", ")}`),n}var hA=64*1024,mA=512*1024,UD=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var Il=(s=>(s.Clean="clean",s.RecipeDrift="recipe-drift",s.ChangeBrokeBringup="change-broke-bringup",s.BringupFailed="bringup-failed",s))(Il||{}),xl=y.string().trim().min(1),pCt=y.object({url:y.string().optional().describe("the URL probed, if the check is an HTTP request"),command:y.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:y.record(y.string()).optional(),status:y.union([y.number(),y.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:xl.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),QW=y.array(y.object({component:xl.describe("a shared component listed above"),url:xl.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:xl.describe("what the URL returned, VERBATIM; this gate FETCHES each url")})).describe("only when shared components are listed above: one check per component whose deployed commit you found"),fCt=y.object({name:xl.describe("the credential's environment variable name, as listed above; never its value"),component:xl.describe("the component that refused it"),status:y.number().int().min(400).max(599).optional().describe("the HTTP status it got, such as 401 or 403; leave it out when the refusal was not an HTTP answer"),evidence:xl.describe("the request or command you tested it with and what came back, never the value")}),hR=y.object({schemaVersion:y.literal(1),baseUrls:y.record(y.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:pCt.optional(),teardown:xl.describe("command that tears the SUT down"),dependencies:y.record(y.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:y.nativeEnum(Il).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:y.array(y.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:y.object({command:xl,output:xl}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:y.array(y.string()).optional().describe("required for change-broke-bringup: files THIS PR changed that the failure points at, relative to your working directory (a file in another checkout of the run: its absolute path)"),seeded:y.boolean(),startedAt:xl.describe("ISO timestamp"),revisions:QW.optional(),credentialsRefused:y.array(fCt).optional().describe("only for credentials the prompt lists to test: each that was refused when you tested it, such as with a 401 or 403; leave it out when none was, or when none is listed"),recipeRecorded:y.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});function MW(e){let t=[],r=s=>!!s&&typeof s=="object"&&!Array.isArray(s);return e.outcome!=="change-broke-bringup"&&e.outcome!=="bringup-failed"?(!r(e.baseUrls)||Object.keys(e.baseUrls).length===0?t.push("baseUrls must be a non-empty object of service \u2192 url"):Object.values(e.baseUrls).every(s=>typeof s=="string"&&s.trim())||t.push("every baseUrls value must be a non-empty url string"),r(e.health)?!(typeof e.health.url=="string"&&e.health.url.trim())&&!(typeof e.health.command=="string"&&e.health.command.trim())&&t.push("health must record a url or a command (what you actually ran)"):t.push("health must be an object"),(!r(e.dependencies)||Object.keys(e.dependencies).length===0)&&t.push("dependencies must be a non-empty object of name \u2192 boolean (real vs mocked) when the SUT came up \u2014 account for every backing service so a mocked one can't be hidden behind a green run")):(r(e.bringupError)||t.push(`outcome "${String(e.outcome)}" requires bringupError { command, output } \u2014 the exact failing bring-up command and what it printed`),e.outcome==="change-broke-bringup"&&!(Array.isArray(e.suspectFiles)&&e.suspectFiles.length>0&&e.suspectFiles.every(s=>typeof s=="string"&&s.trim()))&&t.push("change-broke-bringup requires non-empty suspectFiles[] \u2014 the changed file(s) the failure points at; if you cannot point at a file this PR changed, the outcome is bringup-failed (environment/harness), not the PR's fault")),e.outcome==="recipe-drift"&&!(Array.isArray(e.recipeFixes)&&e.recipeFixes.length>0)&&t.push("recipe-drift outcome requires a non-empty recipeFixes[] describing what was corrected"),t}var yi=y.string().trim().min(1),$D=yi,FW=(r=>(r.TestbotManaged="testbot_managed",r.CustomerDeployed="customer_deployed",r))(FW||{}),Qb=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],qD=y.object({schemaVersion:y.literal(1),type:y.nativeEnum(FW).optional(),repository:$D.optional().describe("namespace/name of the source whose checkout the recipe was written and proven in (SKYR-5380); a run replays it from there. Never on a customer_deployed plan"),status:y.enum(["ready","blocked"]),environment:Ob.optional(),components:y.array(y.object({name:yi,repository:yi.describe(`owner/repo, or "${Fr}" for a customer-deployed component no repository builds`),healthy:y.boolean(),url:y.string().min(1).nullable(),...DW,credentials:y.array(y.string().regex(Sp)).max(50).optional(),deployed:yi.nullable().optional().describe("customer_deployed only: the revision the component runs, as setup read it (WF-SETUP-22's Deployed now), or null when it could not tell")}).strict()),suites:y.array(y.object({framework:yi,file:yi,result:y.enum(["pass","fail","error"])}).strict()),inputsUsed:y.array(yi),inputsUsedHow:y.array(y.object({input:yi,how:yi}).strict()).optional(),inputsNotUsed:y.array(y.object({input:yi,reason:yi}).strict()),blockers:y.array(y.object({component:yi,problem:yi,evidence:yi,fix:yi}).strict()),replay:y.object({outcome:yi,durationSeconds:y.number().nonnegative().nullable()}).strict().nullable(),files:y.array(y.object({path:yi,content:y.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((s,i)=>{e.inputsUsed.includes(s.input)||t.addIssue({code:y.ZodIssueCode.custom,path:["inputsUsedHow",i,"input"],message:"not one of inputsUsed"})}),e.components.forEach((s,i)=>{s.credentials&&new Set(s.credentials).size!==s.credentials.length&&t.addIssue({code:y.ZodIssueCode.custom,path:["components",i,"credentials"],message:"names a credential twice"})});let r=e.type==="customer_deployed";r!==(e.environment!==void 0)&&t.addIssue({code:y.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),r&&e.repository!==void 0&&t.addIssue({code:y.ZodIssueCode.custom,path:["repository"],message:"a customer_deployed plan names no repository"}),e.environment&&new Set(e.environment.credentials).size!==e.environment.credentials.length&&t.addIssue({code:y.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let n=new Set(e.components.map(s=>s.name));if(e.environment?.revisionSources.forEach((s,i)=>{s.components.forEach((o,a)=>{n.has(o)||t.addIssue({code:y.ZodIssueCode.custom,path:["environment","revisionSources",i,"components",a],message:"not one of components"})})}),e.components.forEach((s,i)=>{s.deployed!==void 0!==r&&t.addIssue({code:y.ZodIssueCode.custom,path:["components",i,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),s.repository===Fr&&!r&&t.addIssue({code:y.ZodIssueCode.custom,path:["components",i,"repository"],message:`only a customer_deployed component is ${Fr}`})}),r&&(e.components.forEach((s,i)=>{e.components.findIndex(o=>o.name===s.name)!==i&&t.addIssue({code:y.ZodIssueCode.custom,path:["components",i,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:y.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((s,i)=>{Qb.includes(s.path)&&t.addIssue({code:y.ZodIssueCode.custom,path:["files",i,"path"],message:"a customer_deployed plan has no script that starts or stops the system"})})),r&&e.status==="ready"){let s=new Set(e.environment?.revisionSources.flatMap(i=>i.components));e.components.forEach((i,o)=>{i.repository!==Fr&&!s.has(i.name)&&t.addIssue({code:y.ZodIssueCode.custom,path:["components",o,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}}),LW="awaits_credential_check",Cp="Time limit reached",gwe="time_limit";var hCt=["clean","recipe-drift"];function Eh(e){let t=mwe.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}function mCt(e,t,r,n){let s=t.bringupError;if(e.environment)return{component:e.components.map(o=>o.name).join(", ")||"SUT",problem:`onboard reached the deployment, but deploy's fresh check of it ended ${t.outcome}`,evidence:s?`$ ${s.command}
|
|
174
174
|
${s.output}`:`deploy reported ${t.outcome} without the failing command`,fix:n?"make sure the deployment answers and is ready, then Check again; if .skyramp/sut/health.json's check itself is wrong, Run setup again":"make .skyramp/sut/health.json's check pass from a fresh session (its address, sign-in and ready route), then set it up again"};let i=t.suspectFiles?.length?` \u2014 it points at ${t.suspectFiles.join(", ")}`:"";return{component:e.components.map(o=>o.name).join(", ")||"SUT",problem:`the recipe worked once but not from nothing: deploy's fresh replay of .skyramp/sut/setup.sh ended ${t.outcome}`,evidence:s?`$ ${s.command}
|
|
175
|
-
${s.output}`:`deploy reported ${t.outcome} without the failing command`,fix:t.outcome==="change-broke-bringup"?`fix the change that broke bring-up${i}, then ${n?"Run setup again":"onboard again"}`:r.length>0?ACt(r):n?"if it failed for a reason that has passed, such as a service that was down, Check again; otherwise make .skyramp/sut/setup.sh bring the SUT up from a clean checkout, then Run setup again":"make .skyramp/sut/setup.sh bring the SUT up from a clean checkout (what onboard's session had that a fresh run lacks), then onboard again"}}function mR(e){return[...new Set([...e.components.flatMap(t=>t.credentials??[]),...e.environment?.credentials??[]])].filter(t=>Sp.test(t))}function gCt(e,t,r){let n=new Set(mR(e)),s=new Map;for(let i of t?.credentialsRefused??[]){let o=`${i.name}\0${i.component}`;n.has(i.name)&&!s.has(o)&&s.set(o,i)}return[...s.values()].map(({name:i,component:o,status:a,evidence:c})=>({component:o,problem:`${i} was refused${a?` (${a})`:""} by ${o}`,evidence:c,fix:`Fix ${i}'s value in its secret on the workflow host (${Mb}), or pick another secret for it under Credentials, then ${r?"Check again":"Retry"}.`}))}var Mb="a GitHub Actions secret, or on Azure DevOps a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library";function ACt(e){let t=e.length===1;return`add ${t?"a secret":"secrets"} named ${e.join(", ")} on the workflow host, ${t?"as":"each as"} ${Mb}, then Retry: Skyramp adds ${t?"it":"them"} to the Target's credentials, and the replay gets ${t?"its value":"their values"}. If it still fails, make .skyramp/sut/setup.sh bring the SUT up from a clean checkout`}function yCt(e){return e.environment?{component:e.components.map(t=>t.name).join(", ")||"SUT",problem:"the deployment was never checked from a fresh session: deploy did not run or wrote no deploy.json",evidence:"outputs/deploy.json is missing from this run",fix:"run deploy after onboard in the same run so it checks the deployment is ready; if deploy ran, its stage log says why it wrote no deploy.json"}:{component:e.components.map(t=>t.name).join(", ")||"SUT",problem:"the recipe was never replayed: deploy did not run or wrote no deploy.json",evidence:"outputs/deploy.json is missing from this run",fix:"run deploy after onboard in the same run so it replays .skyramp/sut/setup.sh from a clean start; if deploy ran, its stage log says why it wrote no deploy.json"}}function ECt(e){return{component:e.components.map(t=>t.name).join(", ")||"SUT",problem:`${Cp}: setup ran out of time while checking ${e.environment?"that the deployment is ready":"that the app comes up from a clean start"}. Every component was up before that.`,evidence:"The check from a fresh session didn't finish.",fix:"Retry: setup carries on from what this one found and finishes checking."}}function wCt(e){return{component:"SUT recipe",problem:"deploy fixed recipe drift, but the recipe it fixed was not collected \u2014 onboard's copy is the recipe from before the fix",evidence:`deploy reported recipe-drift: ${(e.recipeFixes??[]).join("; ")||"no fixes listed"}`,fix:"collect .skyramp/sut/ and .skyramp/workspace.yml after deploy (collectRecipeFiles) and build the plan from that collection"}}var UW=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh",".skyramp/sut/health.json",".skyramp/workspace.yml"],$W=[".skyramp/sut/health.json",".skyramp/workspace.yml"];function bCt(e){return`Onboard again so it leaves the whole recipe in the checkout: ${e.map(r=>r===".skyramp/workspace.yml"?"create .skyramp/workspace.yml with skyramp_init_scan and skyramp_init_workspace":`write ${r} as a regular file (a symlink is not uploaded)`).join("; ")}.`}function qW(e,t,r){return t&&r||e}function GW(e,t,r={}){let n=t!==void 0&&!hCt.includes(t.outcome),s=qW(e,t,r.recipeFiles),i=t?.outcome==="recipe-drift"&&!r.recipeFiles,o=(s.recipeFilesOmitted??[]).filter(T=>Eh(T.path)),a=o.length?[{component:"SUT recipe",problem:`The recipe could not be uploaded whole: ${o.map(T=>T.path).join(", ")} left out.`,evidence:o.map(T=>`${T.path}: ${T.reason}`).join("; "),fix:"Keep each recipe file text-only and under 64 KiB, and the recipe under 512 KiB in total \u2014 move large generated content out of .skyramp/sut/ and have setup.sh produce it."}]:[],c=e.status==="ready",l=e.environment,u=new Set(s.recipeFiles.map(T=>T.path)),d=c?(l?$W:UW).filter(T=>!u.has(T)):[],p=d.length?[{component:"SUT recipe",problem:`The recipe is missing ${d.join(", ")}, so it cannot be replayed.`,evidence:`collected: ${[...u].sort().join(", ")||"nothing"}`,fix:bCt(d)}]:[],f=c&&!l&&(r.awaitsCredentialCheck?.length??0)>0,m=gCt(e,t,r.recheck??!1),A=t&&n?mCt(e,t,r.unsupplied??[],r.recheck??!1):void 0,E=(r.unsupplied?.length??0)>0||t?.outcome==="change-broke-bringup",g=m.length>0?[...m,...A&&E?[A]:[]]:A?[A]:t?[]:c&&!f?[r.timeLimit?ECt(e):yCt(e)]:[],w=new Set(l?.revisionSources.flatMap(T=>T.components)),S=l&&c?e.components.filter(T=>T.repository!==Fr&&!w.has(T.name)).map(T=>T.name):[],x=S.length?[{component:S.join(", "),problem:`Testbot cannot tell which revision ${S.join(" and ")} ${S.length>1?"run":"runs"}, so a run could not say which changes it tested.`,evidence:`revision sources: ${l.revisionSources.map(T=>`${T.detail} (${T.components.join(", ")})`).join("; ")||"none"}`,fix:"Say in the Test Environment's notes how to tell what is deployed, such as a version route (GET /version), then set it up again."}]:[],R=(c?l?.revisionSources??[]:[]).filter(T=>T.method==="not_tracked").map(T=>({component:T.components.join(", "),problem:`Testbot can't tell which commit ${T.components.join(" and ")} ${T.components.length>1?"run":"runs"}, so a run can't say which of ${T.components.length>1?"their":"its"} changes it tested.`,evidence:T.detail,fix:`Say in the Test Environment's notes how to tell what ${T.components.join(" and ")} ${T.components.length>1?"run":"runs"}, such as a version route (GET /version) or a deploy workflow, then set it up again.`})),I=[...e.blockers,...g,...i&&t?[wCt(t)]:[],...a,...p,...x,...R,...r.revisionCheck?.blockers??[],...r.credentialBlockers??[]],B=t?.baseUrls??{};return{schemaVersion:1,...l?{type:"customer_deployed",environment:Awe(l)}:{},...!l&&r.repository?{repository:r.repository}:{},status:c&&(t!==void 0||f)&&!n&&!i&&o.length===0&&d.length===0&&S.length===0&&!r.credentialBlockers?.length&&m.length===0?"ready":"blocked",components:e.components.map(T=>({name:T.name,repository:T.repository,healthy:T.healthy&&!n,url:Object.hasOwn(B,T.name)&&B[T.name]||null,...T.steps?{steps:T.steps.map(Q=>({action:Q.action,text:Q.text,source:Q.source,file:Q.file}))}:{},...T.kind?{kind:T.kind}:{},...T.from?{from:{file:T.from.file,service:T.from.service}}:{},...T.credentials?{credentials:[...new Set(T.credentials)].filter(Q=>Sp.test(Q))}:{},...l?{deployed:SCt(T,r)}:{}})),suites:e.suites.map(T=>({framework:T.framework,file:T.file,result:T.result})),inputsUsed:[...e.inputsUsed],...e.inputsUsedHow?{inputsUsedHow:e.inputsUsedHow.filter(T=>e.inputsUsed.includes(T.input)).map(T=>({input:T.input,how:T.how}))}:{},inputsNotUsed:e.inputsNotUsed.map(T=>({input:T.input,reason:T.reason})),blockers:I.map(T=>({component:T.component,problem:T.problem,evidence:T.evidence,fix:T.fix})),replay:t&&!l?{outcome:t.outcome,durationSeconds:r.deployDurationSeconds??null}:f?{outcome:LW,durationSeconds:null}:!l&&I.some(T=>T.problem.startsWith(Cp))?{outcome:gwe,durationSeconds:null}:null,files:s.recipeFiles.filter(T=>Eh(T.path)&&!(l&&Qb.includes(T.path))).map(T=>({path:T.path,content:T.content}))}}function SCt(e,t){return e.repository===Fr?null:t.revisionCheck?t.revisionCheck.deployed[e.name]??null:t.deployed?.[e.name]??e.deployed??null}function Awe(e){return{address:e.address,readyWhen:e.readyWhen,credentials:[...new Set(e.credentials)],revisionSources:e.revisionSources.map(t=>({method:t.method,detail:t.detail,components:[...t.components]}))}}function ywe(e){return{schemaVersion:1,status:"ready",components:e.components.map(({url:t,deployed:r,...n})=>({...n,healthy:!0})),suites:e.suites,inputsUsed:e.inputsUsed,...e.inputsUsedHow?{inputsUsedHow:e.inputsUsedHow}:{},inputsNotUsed:e.inputsNotUsed,blockers:[],recipeFiles:e.files,recipeFilesOmitted:[],...e.environment?{environment:Awe(e.environment)}:{}}}zt();var vu=X(require("fs")),zD=X(require("path"));var Ewe=X(require("path")),ms="Skyramp Testbot",Ei="test-bot@skyramp.dev",jW="skyramp-testbot[bot]";function Fb(){return Ewe.join(process.env.RUNNER_TEMP??"/tmp","skyramp")}var vp=X(require("fs")),jD=X(require("path"));var wwe=X(require("fs")),GD=X(require("path"));function Lb(e,t,r={}){let n=r.maxDepth??1/0,s=!1,i=(o,a)=>{let c;try{c=wwe.readdirSync(o,{withFileTypes:!0})}catch{return}for(let l of c){if(s)return;let u=GD.join(o,l.name);if(l.isDirectory())!r.skip?.has(l.name)&&a<n&&i(u,a+1);else if(t(u,GD.relative(e,u))===!1){s=!0;return}}};i(e,0)}var zW=4,gA="\xABredacted\xBB";function zs(e){let t=new Set;for(let r of e){let n=(r??"").trim();n.length>=zW&&t.add(n)}return[...t].sort((r,n)=>n.length-r.length)}function CCt(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}function yr(e,t){if(!e||t.length===0)return e;let r=e;for(let n of t)!n||!r.includes(n)||(r=r.split(n).join(gA));return r}function HD(e,t){return yr(CCt(e),t)}function vCt(e,t){let r=n=>typeof n=="string"?t(n):Array.isArray(n)?n.map(r):n&&typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[s,r(i)])):n;return r(e)}function _r(e,t){return t.length===0?e:vCt(e,r=>yr(r,t))}function HW(e,t){return/\.(json|txt|md)$/.test(e)||t&&e.endsWith(".ndjson")}function Swe(e,t){let r=[];return Lb(e,n=>{try{HW(jD.basename(n),t)&&vp.lstatSync(n).isFile()&&r.push(n)}catch{}}),r}function xCt(e){return e.length>=2&&(e[0]===255&&e[1]===254||e[0]===254&&e[1]===255)}var ICt=new TextDecoder("utf-8",{fatal:!0});function RCt(e){return e.includes(0)||xCt(e)||!Cwe(e)}function Cwe(e){try{return ICt.decode(e),!0}catch{return!1}}function TCt(e,t){let r=Buffer.from(e,"utf16le"),n=Buffer.from("*".repeat(r.length/2),"utf16le"),s=Buffer.from(e),i=[{needle:s,mask:Buffer.alloc(s.length,"*")},{needle:r,mask:n},{needle:Buffer.from(r).swap16(),mask:Buffer.from(n).swap16()}];return t&&/^[\x00-\xff]*$/.test(e)&&/[\x80-\xff]/.test(e)&&i.push({needle:Buffer.from(e,"latin1"),mask:Buffer.alloc(e.length,"*")}),i}function bwe(e,t){let r=Cwe(e),n=r&&!e.includes(0),s=!1;for(let i of t)if(i)for(let{needle:o,mask:a}of TCt(i,!r))for(let c=e.indexOf(o);c!==-1;c=e.indexOf(o,c+o.length))(n?Buffer.alloc(o.length,"*"):a).copy(e,c),s=!0;return s}function VW(e,t){if(t.length===0)return;let r;try{r=vp.readdirSync(e,{withFileTypes:!0})}catch{return}for(let n of r){let s=jD.join(e,n.name);if(n.isDirectory()){VW(s,t);continue}if(n.isFile())try{let i=vp.readFileSync(s);if(RCt(i)){HW(n.name,!0)&&bwe(i,t)&&vp.writeFileSync(s,i);continue}let o=i.toString("utf-8"),a=yr(o,t),c=a===o?i:Buffer.from(a),l=HW(n.name,!0)&&bwe(c,t);(a!==o||l)&&vp.writeFileSync(s,c)}catch{}}}var VD=()=>zD.join(Fb(),"relayed-credentials","credentials.json"),gR=new Map,JW=new Set,WW=new Set;function vwe(e,t,r=VD()){gR.set(e,t),JW.add(t);for(let s of WW)s(t);vu.mkdirSync(zD.dirname(r),{recursive:!0,mode:448});let n=`${r}.tmp`;vu.writeFileSync(n,JSON.stringify(Object.fromEntries(gR)),{mode:384}),vu.chmodSync(n,384),vu.renameSync(n,r)}function wc(){return Object.fromEntries(gR)}function xwe(e){return[...new Set([...e,...gR.keys()])]}function WD(){return[...JW]}function Iwe(e){return WW.add(e),()=>{WW.delete(e)}}function Rwe(e=VD()){gR.clear(),JW.clear(),vu.rmSync(e,{force:!0})}function Twe(e,t){let r=t.trim();!e||r.length<zW||e.includes(r)||(e.push(r),e.sort((n,s)=>s.length-n.length))}zt();zt();var YW;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(YW||(YW={}));var kwe;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(kwe||(kwe={}));var Bwe;(function(e){e.Skyramp="skyramp",e.External="external"})(Bwe||(Bwe={}));var KW;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(KW||(KW={}));var Nwe;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(Nwe||(Nwe={}));var Ie={};Sg(Ie,{BRAND:()=>evt,DIRTY:()=>AA,EMPTY_PATH:()=>_Ct,INVALID:()=>At,NEVER:()=>Fvt,OK:()=>Xi,ParseStatus:()=>wi,Schema:()=>Lt,ZodAny:()=>Sh,ZodArray:()=>Tp,ZodBigInt:()=>EA,ZodBoolean:()=>wA,ZodBranded:()=>yR,ZodCatch:()=>NA,ZodDate:()=>bA,ZodDefault:()=>BA,ZodDiscriminatedUnion:()=>KD,ZodEffects:()=>Cc,ZodEnum:()=>TA,ZodError:()=>Xo,ZodFirstPartyTypeKind:()=>vt,ZodFunction:()=>ZD,ZodIntersection:()=>xA,ZodIssueCode:()=>ke,ZodLazy:()=>IA,ZodLiteral:()=>RA,ZodMap:()=>Hb,ZodNaN:()=>Vb,ZodNativeEnum:()=>kA,ZodNever:()=>Rl,ZodNull:()=>CA,ZodNullable:()=>Ru,ZodNumber:()=>yA,ZodObject:()=>Zo,ZodOptional:()=>bc,ZodParsedType:()=>Je,ZodPipeline:()=>ER,ZodPromise:()=>Ch,ZodReadonly:()=>_A,ZodRecord:()=>XD,ZodSchema:()=>Lt,ZodSet:()=>zb,ZodString:()=>bh,ZodSymbol:()=>Gb,ZodTransformer:()=>Cc,ZodTuple:()=>Iu,ZodType:()=>Lt,ZodUndefined:()=>SA,ZodUnion:()=>vA,ZodUnknown:()=>Rp,ZodVoid:()=>jb,addIssueToContext:()=>Me,any:()=>lvt,array:()=>fvt,bigint:()=>svt,boolean:()=>qwe,coerce:()=>Mvt,custom:()=>Lwe,date:()=>ivt,datetimeRegex:()=>Mwe,defaultErrorMap:()=>xp,discriminatedUnion:()=>Avt,effect:()=>kvt,enum:()=>Ivt,function:()=>Cvt,getErrorMap:()=>Ub,getParsedType:()=>xu,instanceof:()=>rvt,intersection:()=>yvt,isAborted:()=>JD,isAsync:()=>$b,isDirty:()=>YD,isValid:()=>wh,late:()=>tvt,lazy:()=>vvt,literal:()=>xvt,makeIssue:()=>AR,map:()=>bvt,nan:()=>nvt,nativeEnum:()=>Rvt,never:()=>dvt,null:()=>cvt,nullable:()=>Nvt,number:()=>$we,object:()=>hvt,objectUtil:()=>XW,oboolean:()=>Qvt,onumber:()=>Ovt,optional:()=>Bvt,ostring:()=>Dvt,pipeline:()=>Pvt,preprocess:()=>_vt,promise:()=>Tvt,quotelessJson:()=>kCt,record:()=>wvt,set:()=>Svt,setErrorMap:()=>NCt,strictObject:()=>mvt,string:()=>Uwe,symbol:()=>ovt,transformer:()=>kvt,tuple:()=>Evt,undefined:()=>avt,union:()=>gvt,unknown:()=>uvt,util:()=>er,void:()=>pvt});var er;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{let i={};for(let o of s)i[o]=o;return i},e.getValidEnumValues=s=>{let i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(let a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let i=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(let o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(er||(er={}));var XW;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(XW||(XW={}));var Je=er.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xu=e=>{switch(typeof e){case"undefined":return Je.undefined;case"string":return Je.string;case"number":return Number.isNaN(e)?Je.nan:Je.number;case"boolean":return Je.boolean;case"function":return Je.function;case"bigint":return Je.bigint;case"symbol":return Je.symbol;case"object":return Array.isArray(e)?Je.array:e===null?Je.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Je.promise:typeof Map<"u"&&e instanceof Map?Je.map:typeof Set<"u"&&e instanceof Set?Je.set:typeof Date<"u"&&e instanceof Date?Je.date:Je.object;default:return Je.unknown}};var ke=er.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kCt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Xo=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_errors:[]},s=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let l=o.path[c];c===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return s(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,er.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let s of this.issues)if(s.path.length>0){let i=s.path[0];r[i]=r[i]||[],r[i].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Xo.create=e=>new Xo(e);var BCt=(e,t)=>{let r;switch(e.code){case ke.invalid_type:e.received===Je.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ke.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,er.jsonStringifyReplacer)}`;break;case ke.unrecognized_keys:r=`Unrecognized key(s) in object: ${er.joinValues(e.keys,", ")}`;break;case ke.invalid_union:r="Invalid input";break;case ke.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${er.joinValues(e.options)}`;break;case ke.invalid_enum_value:r=`Invalid enum value. Expected ${er.joinValues(e.options)}, received '${e.received}'`;break;case ke.invalid_arguments:r="Invalid function arguments";break;case ke.invalid_return_type:r="Invalid function return type";break;case ke.invalid_date:r="Invalid date";break;case ke.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:er.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ke.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ke.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ke.custom:r="Invalid input";break;case ke.invalid_intersection_types:r="Intersection results could not be merged";break;case ke.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ke.not_finite:r="Number must be finite";break;default:r=t.defaultError,er.assertNever(e)}return{message:r}},xp=BCt;var _we=xp;function NCt(e){_we=e}function Ub(){return _we}var AR=e=>{let{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="",c=n.filter(l=>!!l).slice().reverse();for(let l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},_Ct=[];function Me(e,t){let r=Ub(),n=AR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===xp?void 0:xp].filter(s=>!!s)});e.common.issues.push(n)}var wi=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let s of r){if(s.status==="aborted")return At;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let s of r){let i=await s.key,o=await s.value;n.push({key:i,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let s of r){let{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return At;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}},At=Object.freeze({status:"aborted"}),AA=e=>({status:"dirty",value:e}),Xi=e=>({status:"valid",value:e}),JD=e=>e.status==="aborted",YD=e=>e.status==="dirty",wh=e=>e.status==="valid",$b=e=>typeof Promise<"u"&&e instanceof Promise;var rt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(rt||(rt={}));var Sc=class{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Pwe=(e,t)=>{if(wh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Xo(e.common.issues);return this._error=r,this._error}}};function Dt(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:s}}var Lt=class{get description(){return this._def.description}_getType(t){return xu(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:xu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wi,ctx:{common:t.parent.common,data:t.data,parsedType:xu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if($b(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xu(t)},s=this._parseSync({data:t,path:n.path,parent:n});return Pwe(n,s)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xu(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return wh(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>wh(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xu(t)},s=this._parse({data:t,path:n.path,parent:n}),i=await($b(s)?s:Promise.resolve(s));return Pwe(n,i)}refine(t,r){let n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{let o=t(s),a=()=>i.addIssue({code:ke.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new Cc({schema:this,typeName:vt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return bc.create(this,this._def)}nullable(){return Ru.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tp.create(this)}promise(){return Ch.create(this,this._def)}or(t){return vA.create([this,t],this._def)}and(t){return xA.create(this,t,this._def)}transform(t){return new Cc({...Dt(this._def),schema:this,typeName:vt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new BA({...Dt(this._def),innerType:this,defaultValue:r,typeName:vt.ZodDefault})}brand(){return new yR({typeName:vt.ZodBranded,type:this,...Dt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new NA({...Dt(this._def),innerType:this,catchValue:r,typeName:vt.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ER.create(this,t)}readonly(){return _A.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},PCt=/^c[^\s-]{8,}$/i,DCt=/^[0-9a-z]+$/,OCt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,QCt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,MCt=/^[a-z0-9_-]{21}$/i,FCt=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LCt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,UCt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$Ct="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ZW,qCt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,GCt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,jCt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,HCt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zCt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,VCt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Owe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",WCt=new RegExp(`^${Owe}$`);function Qwe(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function JCt(e){return new RegExp(`^${Qwe(e)}$`)}function Mwe(e){let t=`${Owe}T${Qwe(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function YCt(e,t){return!!((t==="v4"||!t)&&qCt.test(e)||(t==="v6"||!t)&&jCt.test(e))}function KCt(e,t){if(!FCt.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function XCt(e,t){return!!((t==="v4"||!t)&&GCt.test(e)||(t==="v6"||!t)&&HCt.test(e))}var bh=class e extends Lt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Je.string){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_type,expected:Je.string,received:i.parsedType}),At}let n=new wi,s;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?Me(s,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Me(s,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")UCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"email",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")ZW||(ZW=new RegExp($Ct,"u")),ZW.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"emoji",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")QCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"uuid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")MCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"nanoid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")PCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"cuid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")DCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"cuid2",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")OCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"ulid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),Me(s,{validation:"url",code:ke.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"regex",code:ke.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?Mwe(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?WCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?JCt(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?LCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"duration",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?YCt(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"ip",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?KCt(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"jwt",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?XCt(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"cidr",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?zCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"base64",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?VCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"base64url",code:ke.invalid_string,message:i.message}),n.dirty()):er.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:ke.invalid_string,...rt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...rt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...rt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...rt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...rt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...rt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...rt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...rt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...rt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...rt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...rt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...rt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...rt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...rt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...rt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...rt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...rt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...rt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...rt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...rt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...rt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...rt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...rt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...rt.errToObj(r)})}nonempty(t){return this.min(1,rt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};bh.create=e=>new bh({checks:[],typeName:vt.ZodString,coerce:e?.coerce??!1,...Dt(e)});function ZCt(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}var yA=class e extends Lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Je.number){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_type,expected:Je.number,received:i.parsedType}),At}let n,s=new wi;for(let i of this._def.checks)i.kind==="int"?er.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?ZCt(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.not_finite,message:i.message}),s.dirty()):er.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,rt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,rt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,rt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,rt.toString(r))}setLimit(t,r,n,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:rt.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:rt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:rt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:rt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:rt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:rt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&er.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};yA.create=e=>new yA({checks:[],typeName:vt.ZodNumber,coerce:e?.coerce||!1,...Dt(e)});var EA=class e extends Lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Je.bigint)return this._getInvalidInput(t);let n,s=new wi;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):er.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return Me(r,{code:ke.invalid_type,expected:Je.bigint,received:r.parsedType}),At}gte(t,r){return this.setLimit("min",t,!0,rt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,rt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,rt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,rt.toString(r))}setLimit(t,r,n,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:rt.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};EA.create=e=>new EA({checks:[],typeName:vt.ZodBigInt,coerce:e?.coerce??!1,...Dt(e)});var wA=class extends Lt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Je.boolean){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.boolean,received:n.parsedType}),At}return Xi(t.data)}};wA.create=e=>new wA({typeName:vt.ZodBoolean,coerce:e?.coerce||!1,...Dt(e)});var bA=class e extends Lt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Je.date){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_type,expected:Je.date,received:i.parsedType}),At}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_date}),At}let n=new wi,s;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):er.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:rt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:rt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};bA.create=e=>new bA({checks:[],coerce:e?.coerce||!1,typeName:vt.ZodDate,...Dt(e)});var Gb=class extends Lt{_parse(t){if(this._getType(t)!==Je.symbol){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.symbol,received:n.parsedType}),At}return Xi(t.data)}};Gb.create=e=>new Gb({typeName:vt.ZodSymbol,...Dt(e)});var SA=class extends Lt{_parse(t){if(this._getType(t)!==Je.undefined){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.undefined,received:n.parsedType}),At}return Xi(t.data)}};SA.create=e=>new SA({typeName:vt.ZodUndefined,...Dt(e)});var CA=class extends Lt{_parse(t){if(this._getType(t)!==Je.null){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.null,received:n.parsedType}),At}return Xi(t.data)}};CA.create=e=>new CA({typeName:vt.ZodNull,...Dt(e)});var Sh=class extends Lt{constructor(){super(...arguments),this._any=!0}_parse(t){return Xi(t.data)}};Sh.create=e=>new Sh({typeName:vt.ZodAny,...Dt(e)});var Rp=class extends Lt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xi(t.data)}};Rp.create=e=>new Rp({typeName:vt.ZodUnknown,...Dt(e)});var Rl=class extends Lt{_parse(t){let r=this._getOrReturnCtx(t);return Me(r,{code:ke.invalid_type,expected:Je.never,received:r.parsedType}),At}};Rl.create=e=>new Rl({typeName:vt.ZodNever,...Dt(e)});var jb=class extends Lt{_parse(t){if(this._getType(t)!==Je.undefined){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.void,received:n.parsedType}),At}return Xi(t.data)}};jb.create=e=>new jb({typeName:vt.ZodVoid,...Dt(e)});var Tp=class e extends Lt{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==Je.array)return Me(r,{code:ke.invalid_type,expected:Je.array,received:r.parsedType}),At;if(s.exactLength!==null){let o=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(o||a)&&(Me(r,{code:o?ke.too_big:ke.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(Me(r,{code:ke.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(Me(r,{code:ke.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>s.type._parseAsync(new Sc(r,o,r.path,a)))).then(o=>wi.mergeArray(n,o));let i=[...r.data].map((o,a)=>s.type._parseSync(new Sc(r,o,r.path,a)));return wi.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:rt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:rt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:rt.toString(r)}})}nonempty(t){return this.min(1,t)}};Tp.create=(e,t)=>new Tp({type:e,minLength:null,maxLength:null,exactLength:null,typeName:vt.ZodArray,...Dt(t)});function qb(e){if(e instanceof Zo){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=bc.create(qb(n))}return new Zo({...e._def,shape:()=>t})}else return e instanceof Tp?new Tp({...e._def,type:qb(e.element)}):e instanceof bc?bc.create(qb(e.unwrap())):e instanceof Ru?Ru.create(qb(e.unwrap())):e instanceof Iu?Iu.create(e.items.map(t=>qb(t))):e}var Zo=class e extends Lt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=er.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Je.object){let l=this._getOrReturnCtx(t);return Me(l,{code:ke.invalid_type,expected:Je.object,received:l.parsedType}),At}let{status:n,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Rl&&this._def.unknownKeys==="strip"))for(let l in s.data)o.includes(l)||a.push(l);let c=[];for(let l of o){let u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Sc(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Rl){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(Me(s,{code:ke.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let u of a){let d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Sc(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let d=await u.key,p=await u.value;l.push({key:d,value:p,alwaysSet:u.alwaysSet})}return l}).then(l=>wi.mergeObjectSync(n,l)):wi.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return rt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let s=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:rt.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:vt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of er.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of er.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return qb(this)}partial(t){let r={};for(let n of er.objectKeys(this.shape)){let s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of er.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof bc;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return Fwe(er.objectKeys(this.shape))}};Zo.create=(e,t)=>new Zo({shape:()=>e,unknownKeys:"strip",catchall:Rl.create(),typeName:vt.ZodObject,...Dt(t)});Zo.strictCreate=(e,t)=>new Zo({shape:()=>e,unknownKeys:"strict",catchall:Rl.create(),typeName:vt.ZodObject,...Dt(t)});Zo.lazycreate=(e,t)=>new Zo({shape:e,unknownKeys:"strip",catchall:Rl.create(),typeName:vt.ZodObject,...Dt(t)});var vA=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function s(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new Xo(a.ctx.common.issues));return Me(r,{code:ke.invalid_union,unionErrors:o}),At}if(r.common.async)return Promise.all(n.map(async i=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i,o=[];for(let c of n){let l={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new Xo(c));return Me(r,{code:ke.invalid_union,unionErrors:a}),At}}get options(){return this._def.options}};vA.create=(e,t)=>new vA({options:e,typeName:vt.ZodUnion,...Dt(t)});var Ip=e=>e instanceof IA?Ip(e.schema):e instanceof Cc?Ip(e.innerType()):e instanceof RA?[e.value]:e instanceof TA?e.options:e instanceof kA?er.objectValues(e.enum):e instanceof BA?Ip(e._def.innerType):e instanceof SA?[void 0]:e instanceof CA?[null]:e instanceof bc?[void 0,...Ip(e.unwrap())]:e instanceof Ru?[null,...Ip(e.unwrap())]:e instanceof yR||e instanceof _A?Ip(e.unwrap()):e instanceof NA?Ip(e._def.innerType):[],KD=class e extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Je.object)return Me(r,{code:ke.invalid_type,expected:Je.object,received:r.parsedType}),At;let n=this.discriminator,s=r.data[n],i=this.optionsMap.get(s);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(Me(r,{code:ke.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),At)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let s=new Map;for(let i of r){let o=Ip(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new e({typeName:vt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...Dt(n)})}};function e3(e,t){let r=xu(e),n=xu(t);if(e===t)return{valid:!0,data:e};if(r===Je.object&&n===Je.object){let s=er.objectKeys(t),i=er.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(let a of i){let c=e3(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===Je.array&&n===Je.array){if(e.length!==t.length)return{valid:!1};let s=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=e3(o,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===Je.date&&n===Je.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var xA=class extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),s=(i,o)=>{if(JD(i)||JD(o))return At;let a=e3(i.value,o.value);return a.valid?((YD(i)||YD(o))&&r.dirty(),{status:r.value,value:a.data}):(Me(n,{code:ke.invalid_intersection_types}),At)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};xA.create=(e,t,r)=>new xA({left:e,right:t,typeName:vt.ZodIntersection,...Dt(r)});var Iu=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.array)return Me(n,{code:ke.invalid_type,expected:Je.array,received:n.parsedType}),At;if(n.data.length<this._def.items.length)return Me(n,{code:ke.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),At;!this._def.rest&&n.data.length>this._def.items.length&&(Me(n,{code:ke.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Sc(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>wi.mergeArray(r,o)):wi.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Iu.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Iu({items:e,typeName:vt.ZodTuple,rest:null,...Dt(t)})};var XD=class e extends Lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.object)return Me(n,{code:ke.invalid_type,expected:Je.object,received:n.parsedType}),At;let s=[],i=this._def.keyType,o=this._def.valueType;for(let a in n.data)s.push({key:i._parse(new Sc(n,a,n.path,a)),value:o._parse(new Sc(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?wi.mergeObjectAsync(r,s):wi.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Lt?new e({keyType:t,valueType:r,typeName:vt.ZodRecord,...Dt(n)}):new e({keyType:bh.create(),valueType:t,typeName:vt.ZodRecord,...Dt(r)})}},Hb=class extends Lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.map)return Me(n,{code:ke.invalid_type,expected:Je.map,received:n.parsedType}),At;let s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([a,c],l)=>({key:s._parse(new Sc(n,a,n.path,[l,"key"])),value:i._parse(new Sc(n,c,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return At;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return At;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}}}};Hb.create=(e,t,r)=>new Hb({valueType:t,keyType:e,typeName:vt.ZodMap,...Dt(r)});var zb=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.set)return Me(n,{code:ke.invalid_type,expected:Je.set,received:n.parsedType}),At;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(Me(n,{code:ke.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(Me(n,{code:ke.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let i=this._def.valueType;function o(c){let l=new Set;for(let u of c){if(u.status==="aborted")return At;u.status==="dirty"&&r.dirty(),l.add(u.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((c,l)=>i._parse(new Sc(n,c,n.path,l)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:rt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:rt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};zb.create=(e,t)=>new zb({valueType:e,minSize:null,maxSize:null,typeName:vt.ZodSet,...Dt(t)});var ZD=class e extends Lt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Je.function)return Me(r,{code:ke.invalid_type,expected:Je.function,received:r.parsedType}),At;function n(a,c){return AR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ub(),xp].filter(l=>!!l),issueData:{code:ke.invalid_arguments,argumentsError:c}})}function s(a,c){return AR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ub(),xp].filter(l=>!!l),issueData:{code:ke.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ch){let a=this;return Xi(async function(...c){let l=new Xo([]),u=await a._def.args.parseAsync(c,i).catch(f=>{throw l.addIssue(n(c,f)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(f=>{throw l.addIssue(s(d,f)),l})})}else{let a=this;return Xi(function(...c){let l=a._def.args.safeParse(c,i);if(!l.success)throw new Xo([n(c,l.error)]);let u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Xo([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Iu.create(t).rest(Rp.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Iu.create([]).rest(Rp.create()),returns:r||Rp.create(),typeName:vt.ZodFunction,...Dt(n)})}},IA=class extends Lt{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};IA.create=(e,t)=>new IA({getter:e,typeName:vt.ZodLazy,...Dt(t)});var RA=class extends Lt{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return Me(r,{received:r.data,code:ke.invalid_literal,expected:this._def.value}),At}return{status:"valid",value:t.data}}get value(){return this._def.value}};RA.create=(e,t)=>new RA({value:e,typeName:vt.ZodLiteral,...Dt(t)});function Fwe(e,t){return new TA({values:e,typeName:vt.ZodEnum,...Dt(t)})}var TA=class e extends Lt{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return Me(r,{expected:er.joinValues(n),received:r.parsedType,code:ke.invalid_type}),At}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return Me(r,{received:r.data,code:ke.invalid_enum_value,options:n}),At}return Xi(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};TA.create=Fwe;var kA=class extends Lt{_parse(t){let r=er.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Je.string&&n.parsedType!==Je.number){let s=er.objectValues(r);return Me(n,{expected:er.joinValues(s),received:n.parsedType,code:ke.invalid_type}),At}if(this._cache||(this._cache=new Set(er.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let s=er.objectValues(r);return Me(n,{received:n.data,code:ke.invalid_enum_value,options:s}),At}return Xi(t.data)}get enum(){return this._def.values}};kA.create=(e,t)=>new kA({values:e,typeName:vt.ZodNativeEnum,...Dt(t)});var Ch=class extends Lt{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Je.promise&&r.common.async===!1)return Me(r,{code:ke.invalid_type,expected:Je.promise,received:r.parsedType}),At;let n=r.parsedType===Je.promise?r.data:Promise.resolve(r.data);return Xi(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ch.create=(e,t)=>new Ch({type:e,typeName:vt.ZodPromise,...Dt(t)});var Cc=class extends Lt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===vt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{Me(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){let o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return At;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?At:c.status==="dirty"?AA(c.value):r.value==="dirty"?AA(c.value):c});{if(r.value==="aborted")return At;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?At:a.status==="dirty"?AA(a.value):r.value==="dirty"?AA(a.value):a}}if(s.type==="refinement"){let o=a=>{let c=s.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?At:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?At:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!wh(o))return At;let a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>wh(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:r.value,value:a})):At);er.assertNever(s)}};Cc.create=(e,t,r)=>new Cc({schema:e,typeName:vt.ZodEffects,effect:t,...Dt(r)});Cc.createWithPreprocess=(e,t,r)=>new Cc({schema:t,effect:{type:"preprocess",transform:e},typeName:vt.ZodEffects,...Dt(r)});var bc=class extends Lt{_parse(t){return this._getType(t)===Je.undefined?Xi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};bc.create=(e,t)=>new bc({innerType:e,typeName:vt.ZodOptional,...Dt(t)});var Ru=class extends Lt{_parse(t){return this._getType(t)===Je.null?Xi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ru.create=(e,t)=>new Ru({innerType:e,typeName:vt.ZodNullable,...Dt(t)});var BA=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===Je.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};BA.create=(e,t)=>new BA({innerType:e,typeName:vt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Dt(t)});var NA=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return $b(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Xo(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Xo(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};NA.create=(e,t)=>new NA({innerType:e,typeName:vt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Dt(t)});var Vb=class extends Lt{_parse(t){if(this._getType(t)!==Je.nan){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.nan,received:n.parsedType}),At}return{status:"valid",value:t.data}}};Vb.create=e=>new Vb({typeName:vt.ZodNaN,...Dt(e)});var evt=Symbol("zod_brand"),yR=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},ER=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?At:i.status==="dirty"?(r.dirty(),AA(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?At:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:vt.ZodPipeline})}},_A=class extends Lt{_parse(t){let r=this._def.innerType._parse(t),n=s=>(wh(s)&&(s.value=Object.freeze(s.value)),s);return $b(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}};_A.create=(e,t)=>new _A({innerType:e,typeName:vt.ZodReadonly,...Dt(t)});function Dwe(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function Lwe(e,t={},r){return e?Sh.create().superRefine((n,s)=>{let i=e(n);if(i instanceof Promise)return i.then(o=>{if(!o){let a=Dwe(t,n),c=a.fatal??r??!0;s.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=Dwe(t,n),a=o.fatal??r??!0;s.addIssue({code:"custom",...o,fatal:a})}}):Sh.create()}var tvt={object:Zo.lazycreate},vt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(vt||(vt={}));var rvt=(e,t={message:`Input not instance of ${e.name}`})=>Lwe(r=>r instanceof e,t),Uwe=bh.create,$we=yA.create,nvt=Vb.create,svt=EA.create,qwe=wA.create,ivt=bA.create,ovt=Gb.create,avt=SA.create,cvt=CA.create,lvt=Sh.create,uvt=Rp.create,dvt=Rl.create,pvt=jb.create,fvt=Tp.create,hvt=Zo.create,mvt=Zo.strictCreate,gvt=vA.create,Avt=KD.create,yvt=xA.create,Evt=Iu.create,wvt=XD.create,bvt=Hb.create,Svt=zb.create,Cvt=ZD.create,vvt=IA.create,xvt=RA.create,Ivt=TA.create,Rvt=kA.create,Tvt=Ch.create,kvt=Cc.create,Bvt=bc.create,Nvt=Ru.create,_vt=Cc.createWithPreprocess,Pvt=ER.create,Dvt=()=>Uwe().optional(),Ovt=()=>$we().optional(),Qvt=()=>qwe().optional(),Mvt={string:(e=>bh.create({...e,coerce:!0})),number:(e=>yA.create({...e,coerce:!0})),boolean:(e=>wA.create({...e,coerce:!0})),bigint:(e=>EA.create({...e,coerce:!0})),date:(e=>bA.create({...e,coerce:!0}))};var Fvt=At;var Wb=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var Gwe="skyramp_session_storage.json";var t3;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(t3||(t3={}));var Tu;(function(e){e.SMOKE="smoke",e.FUZZ="fuzz",e.CONTRACT="contract",e.LOAD="load",e.INTEGRATION="integration",e.E2E="e2e",e.UI="ui",e.UNIT="unit",e.UNKNOWN="unknown"})(Tu||(Tu={}));var Qwr=[Tu.CONTRACT,Tu.INTEGRATION,Tu.E2E,Tu.UI];var jwe;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(jwe||(jwe={}));var eO;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(eO||(eO={}));var wR;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(wR||(wR={}));var Lvt=Ie.nativeEnum(wR),r3=Ie.preprocess(e=>e==="kubernetes"?wR.KUBERNETES:e,Lvt);var Uvt=Ie.object({language:Ie.nativeEnum(t3).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:Ie.string().describe(`Testing framework to use. Supported: ${Wb.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),Hwe=Ie.object({...Uvt.shape,deployDashboard:Ie.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:r3.default(wR.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:Ie.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:Ie.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:Ie.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:Ie.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:Ie.string().default("").describe("Kubernetes context to use"),authHeader:Ie.string().default("").describe("Name of the HTTP header that carries the auth credential. Common values: 'Authorization' (Bearer/Basic/Token auth), 'X-Api-Key', 'X-Auth-Token', 'Cookie'. Other accepted values: 'X-Access-Token', 'X-OAuth-Token', 'X-Client-ID', 'X-Client-Secret', 'X-Client-Token', 'X-GitHub-Token', 'X-Firebase-AppCheck', 'Proxy-Authorization', 'Fastly-Key', 'Heroku-Bearer'. Pass empty string to document an unauthenticated endpoint in the generated test's assertions. This is the header KEY name (e.g., 'X-Api-Key'), NOT the token value."),authScheme:Ie.string().default("").describe("Only for Authorization headers. The literal prefix before the token (e.g., 'Bearer' produces 'Authorization: Bearer <token>'). Common values: 'Bearer', 'Basic', 'Token'. If the API sends raw tokens with no prefix (e.g., 'Authorization: eyJ...'), leave empty or omit. Ignored when authHeader is not 'Authorization'."),insecure:Ie.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:Ie.string().optional().refine(e=>!e||e===""?!0:[".py",".ts",".js",".java"].some(r=>e.endsWith(r)),{message:"Output file must have one of these extensions: .py, .ts, .js, .java"}).describe("Name of the output test file. For Playwright, name the file the way the repository names its tests: read the test files already in outputDir and match their spelling. Use *.test.ts where they use it, *.spec.ts otherwise (e.g. contract_math_add.spec.ts, fuzz_orders.test.ts). For other frameworks (pytest, junit), standard extensions are fine (.py, .java). Optional \u2014 when omitted, Skyramp generates a default name."),outputDir:Ie.string().describe("MUST be absolute path to the directory where test files will be generated. If not provided, the CURRENT WORKING DIRECTORY will be used WITHOUT ANY SUBDIRECTORIES"),force:Ie.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:Ie.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:Ie.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:Ie.string().describe("The prompt user provided to generate the test")}),Mwr=Ie.object({playwrightInput:Ie.string().describe("MUST be absolute path to the playwright input file like /path/to/playwright-ui-test.zip and MUST be a zip file captured using start_trace_collection tool"),playwrightStoragePath:Ie.string().optional().describe("Path to LOAD existing playwright session storage for trace collection with playwright enabled. THE PATH MUST BE AN ABSOLUTE PATH LIKE /Users/<path>/<filename>.json"),playwrightSaveStoragePath:Ie.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${Gwe}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${Gwe}'. SAVES authentication state (cookies, localStorage, sessionStorage) when the browser closes. To LOAD existing auth state, use playwrightStoragePath instead. Can be a bare filename (joined with outputDir), a relative path, or an absolute path.`),playwrightViewportSize:Ie.union([Ie.enum(["","hd","full-hd","2k"]),Ie.string().regex(/^\d+,\d+$/,"Custom viewport must be 'WIDTH,HEIGHT' format (e.g., '1920,1080')")]).default("").describe("Viewport size for playwright browser. THE VALUE MUST BE IN THE FORMAT ['', 'hd', 'full-hd', '2k', 'x,y' e.g. '1920,1080' for 1920x1080 resolution]. DEFAULT VALUE IS ''. If set to '', the browser will use its default viewport size."),browser:Ie.enum(["chromium","firefox","webkit"]).default("chromium").describe("Browser to use for Playwright trace collection. Supported browsers: 'chromium' (default), 'firefox', 'webkit'. Choose based on your testing requirements and target browser compatibility."),device:Ie.string().default("").describe("Device to emulate for Playwright trace collection. Supported devices include: 'iPhone 13', 'iPhone 13 Pro', 'Pixel 5', 'Galaxy S9+', 'iPad Pro', etc. Leave empty for no device emulation (desktop). Use specific device names for mobile/tablet testing.")}),Fwr=Ie.object({trace:Ie.string().describe("Absolute path to the trace file in JSON format (e.g., /path/to/trace.json). Must use .json extension only. Do not use .jsonl files."),include:Ie.array(Ie.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:Ie.array(Ie.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...Hwe.shape}),Lwr={endpointURL:Ie.string().describe("The full endpoint URL to test including base URL and path (e.g., https://demoshop.skyramp.dev/api/v1/products). MUST include both the base URL and the endpoint path \u2014 never just the base URL alone."),method:Ie.union([Ie.nativeEnum(eO),Ie.literal("")]).default("").describe('HTTP method to use. DEFAULT: Use empty string ("") to test ALL available methods from OpenAPI schema (recommended). Only specify a specific method (GET, POST, PUT, DELETE, etc.) if user explicitly requests testing a single method only.'),apiSchema:Ie.string().default("").describe("MUST be absolute path(/path/to/openapi.json) to the OpenAPI/Swagger schema file or a URL to the OpenAPI/Swagger schema file(e.g. https://demoshop.skyramp.dev/openapi.json). DO NOT TRY TO ASSUME THE OPENAPI SCHEMA IF NOT PROVIDED. NOTE TO AI ASSISTANTS: You do not need to read the contents of this file - simply pass the file path as the backend will read and process it."),pathParams:Ie.string().default("").describe("Comma-separated path parameter values in the form 'key=value,key2=value2' (e.g., 'id=1,name=John'). DO NOT populate this field unless the user has explicitly provided path parameter values. For contract tests, parent path parameters are automatically handled via the parent provisioning mechanism (parentRequestData) \u2014 do NOT invent or guess values for those here. Only supply this field if the user explicitly states specific path parameter values to use."),queryParams:Ie.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for URL query parameters. Workspace-configured api.defaultQueryParams (if set) are merged in automatically, with any api.queryParamOverrides entry whose pathPattern matches this endpoint layered on top \u2014 no need to repeat them here. An explicit value for the same key here overrides both."),formParams:Ie.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:Ie.string().default("").refine(e=>{if(!e||e===""||e.startsWith("@"))return!0;try{return JSON.parse(e),!0}catch{}let t=e.trim();return!!(t.startsWith("---")||/^\w[\w\s]*:/.test(t)||t.startsWith("-"))},{message:"requestData must be valid JSON, YAML, or an absolute file path prefixed with '@'. Received what appears to be plain text. Provide the actual request body as a JSON object."}).describe("Sample request body data, provided either as an inline JSON/YAML string or as an absolute file path prefixed with '@' (e.g., @/absolute/path/to/file). MUST be valid JSON or YAML \u2014 do NOT pass natural language descriptions."),responseStatusCode:Ie.string().default("").refine(e=>!e||/^[1-5]\d{2}$/.test(e),{message:"Must be a valid HTTP status code in 100-599 (e.g., '200', '404') or empty string"}).describe("Expected HTTP response status code (e.g., '200', '201', '404'). DO NOT ASSUME STATUS CODE IF NOT PROVIDED"),...Hwe.shape},Uwr=Ie.object({codeReuse:Ie.boolean().default(!1).describe("Reuse existing code in the generated test \u2014 consolidates helper functions shared with sibling Skyramp-generated tests into a SkyrampUtils file; for TS/JS Playwright tests with POM reuse enabled it instead refactors the test to use the repo's existing Page Object Model"),modularizeCode:Ie.boolean().default(!1).describe("Whether to modularize the code")}),$wr=[Tu.INTEGRATION,Tu.CONTRACT,Tu.UI];var tO;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})(tO||(tO={}));var rO;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(rO||(rO={}));var nO;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(nO||(nO={}));var n3;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(n3||(n3={}));zt();var sO=e=>`${e} POM call${e===1?"":"s"}`,Gt={testRecommendationsImplementedHeader:e=>`\u{1F4A1} Test Recommendations Implemented (${e})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${sO(e)} reused and verified`,reusedThenVerified:(e,t)=>`${sO(e)} reused, ${t} of them verified`,reused:e=>`${sO(e)} reused`,verified:e=>`${sO(e)} verified`,unresolved:e=>`${e} not resolvable to POM source (informational, not declines)`,candidates:e=>`${e} candidate POM file${e===1?"":"s"} detected`,verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:e=>`kept inline: ${e}`,gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:e=>`\u2705 Test Maintenance (${e})`,maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:e=>`\u{1F9EA} Test Results (${e})`,columnVideo:"Video",videoDownloadLink:e=>`[\u{1F4F9} download](${e})`,videosArtifactFallback:e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F Issues Found (${e})`,configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:e=>e?"passed against the running app":"passed",notRun:e=>e?"not run against a live app this run":"not run this run",failedBug:e=>e?"failed against the running app":"failed",executedOf:(e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,noneExecuted:e=>e?"; none were executed against a live app this run.":"; none were executed this run."},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,finalizeNotReady:e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,analysisUnverified:e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,unitTestsNotRun:e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,componentsNotTested:e=>`Not tested: changed parts of the code the plan did not test. ${e}`,componentsWithoutReason:e=>`The plan gave no reason for leaving out: ${e}.`,testSettingsDiffer:e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,downstreamNotChecked:e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,browserBuildNotDeclared:(e,t,r)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${r}\` there.`,testsCouldNotRunHere:(e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,modelProviderDenied:(e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,modelProviderUnavailable:(e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`},nextSteps:{componentMismatch:(e,t,r,n)=>`${e} (${t}) in the Test Environment runs ${r}, which does not contain ${n}, the commit this run validates.`,componentUnverified:(e,t,r,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it reports ${r}.`,componentUnread:(e,t,r)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${r}, the commit this run validates: it has no record of which commit that component runs.`,deployCommit:(e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`},providerOutageHeadline:(e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,providerOutageActionStatusPage:e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,providerRateLimitHeadline:e=>`Testbot was rate-limited by ${e} (HTTP 429).`,providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:e=>`The account behind ${e} has reached its usage limit.`,providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:e=>`Tests for source pull request ${e}`,requestedByPerson:e=>`Requested by ${e}`,requestedByPolicy:e=>`Started by the Validation Policy ${e}`,notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,unitTestsInFile:(e,t,r)=>`**${e}**: ${t} unit test${t===1?"":"s"}${r?` for ${r}`:""}`,addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:(e,t)=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config. Run it with \`${t}\`; to run it on every pull request, add that one command to CI.`,appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:(e,t,r)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${r?`: ${r}`:""}`,testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:(e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:(e,t,r)=>`${e}/${t} passed${r?`, ${r} skipped`:""}`,behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:(e,t,r,n)=>` (${e} generated \xB7 ${t} modified \xB7 ${r} verified \xB7 ${n} executed)`,coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:(e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:e=>e?`${e} hook`:"commit hook",commitRefusedByHook:(e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,commitHookCouldNotRun:(e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,maintenanceActions:{},stoppedEarly:(e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,viewInSkyramp:e=>` [View in Skyramp](${e})`,descriptionCut:(e,t,r)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${r?` [Full report](${r})`:""}_`,testsReplaced:(e,t,r)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,r?`The tests of [the earlier run](${r}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:e=>`Unable to contact the mothership ${e}. Please try again later.`,couldNotStart:e=>`Skyramp Testbot could not start: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,testbotPrLine:(e,t,r)=>`Testbot PR${e?` (${e})`:""} : [${t}](${r})`,viewRun:e=>`_[View run](${e})_`,testsPrNotOpened:(e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,testsNotDelivered:e=>`The tests could not be delivered: ${e}`,testsNotPushed:(e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,testsPrRetargeted:e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:e=>`The tests were committed but no PR was opened: ${e}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var zwe={testRecommendationsImplementedHeader:e=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08${e}\u4EF6\uFF09`,testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,reusedThenVerified:(e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,reused:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,verified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,unresolved:e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,candidates:e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,videosArtifactFallback:e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F",notRun:e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",failedBug:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F",executedOf:(e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,noneExecuted:e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,finalizeNotReady:e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,ciUnconfirmed:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,analysisUnverified:e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,unitTestsNotRun:e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,componentsNotTested:e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,componentsWithoutReason:e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,testSettingsDiffer:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,downstreamNotChecked:e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,browserBuildNotDeclared:(e,t,r)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${r}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,testsCouldNotRunHere:(e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,modelProviderDenied:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,modelProviderUnavailable:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`},nextSteps:{componentMismatch:(e,t,r,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${r} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,r,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${r}\u3002`,componentUnread:(e,t,r)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${r} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,deployCommit:(e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`},providerOutageHeadline:(e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,providerOutageActionStatusPage:e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,providerRateLimitHeadline:e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,requestedByPerson:e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,requestedByPolicy:e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,unitTestsInFile:(e,t,r)=>`**${e}**: ${r?`${r} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:(e,t)=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002\`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092 CI \u306B\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:(e,t,r)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${r?`: ${r}`:""}`,testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:(e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:(e,t,r)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${r?`\u3001${r} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:(e,t,r,n)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${r} \xB7 \u5B9F\u884C ${n}\uFF09`,coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:(e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF",commitRefusedByHook:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,commitHookCouldNotRun:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,stoppedEarly:(e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,viewInSkyramp:e=>` [Skyramp \u3067\u8868\u793A](${e})`,descriptionCut:(e,t,r)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${r?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${r})`:""}_`,testsReplaced:(e,t,r)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,r?`[\u4EE5\u524D\u306E\u5B9F\u884C](${r})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,couldNotStart:e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,testbotPrLine:(e,t,r)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${r})`,viewRun:e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,testsPrNotOpened:(e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,testsNotDelivered:e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,testsNotPushed:(e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,testsPrRetargeted:e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var Jb=(r=>(r.En="en",r.Ja="ja",r))(Jb||{}),$vt={en:Gt,ja:zwe},s3="en";function iO(e){let t=e.trim().toLowerCase();if(t==="")return"en";let r=Object.values(Jb);return r.includes(t)?t:(Re(`Invalid language '${e}'. Supported: ${r.join(", ")}. Falling back to 'en'.`),"en")}function i3(e){s3=e}function PA(){return s3}function kp(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function Be(){return $vt[s3]}var oO=(a=>(a.ProviderOutage="provider_outage",a.ProviderRateLimit="provider_rate_limit",a.ProviderUsageLimit="provider_usage_limit",a.ProviderAuthExpired="provider_auth_expired",a.Timeout="timeout",a.NoReport="no_report",a.RenderFailure="render_failure",a))(oO||{});(t=>{function e(r,n){switch(r){case"provider_outage":return{headline:Be().providerOutageHeadline(n.provider.name,n.maxRetries),action:Be().providerOutageActionStatusPage(n.provider.statusUrl)};case"provider_rate_limit":return{headline:Be().providerRateLimitHeadline(n.provider.name),action:Be().providerRateLimitAction};case"provider_usage_limit":return{headline:Be().providerUsageLimitHeadline(n.provider.name),action:Be().providerUsageLimitAction};case"provider_auth_expired":return{headline:Be().providerAuthExpiredHeadline(n.provider.name),action:Be().providerAuthExpiredAction};case"timeout":return{headline:Be().providerTimeoutHeadline(n.timeoutMinutes),action:Be().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(oO||={});var o3=(r=>(r.SameBranch="same-branch",r.SeparateBranch="separate-branch",r))(o3||{}),bR=class{supportsNdjsonLog=!1;reusesPreinstalledCli=!0;setupAgentEnv(t,r){let n=t[this.apiKeyField];n&&dh(this.envVar,n)}};MTe();var FTe=e=>E4({...e});var w4=(r=>(r.Sonnet="sonnet",r.Opus="opus",r))(w4||{}),$Rt="opus",qRt={sonnet:"anthropic.claude-sonnet-5[1m]",opus:"anthropic.claude-opus-5-5[1m]"};function p0(e){return Object.values(w4).includes(e)}function LTe(e){let t=(e??"").trim();if(t==="")return $Rt;let r=t.toLowerCase();return p0(r)?r:t}function GRt(e){let t=(e??"").trim().toLowerCase();return t.startsWith("us-gov-")?"us-gov":t.startsWith("eu-")?"eu":t.startsWith("ap-")?"apac":"us"}function b4(e,t){return`${GRt(t)}.${qRt[e]}`}function UTe(e){return e||process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||""}async function $Te(e){return FTe({roleArn:e.roleArn,webIdentityToken:e.webIdentityToken,roleSessionName:e.roleSessionName,durationSeconds:e.durationSeconds,clientConfig:{region:e.region}})()}var jRt=28800;async function qTe(e){let t=e.env??process.env;if(!e.roleArn.trim())throw new Error("useBedrock on Azure Pipelines needs the awsRoleArn input: the role Testbot assumes with the job's OIDC token");if(!e.region.trim())throw new Error("useBedrock needs the awsRegion input");let r=await(e.assumeRole??$Te)({roleArn:e.roleArn.trim(),webIdentityToken:await e.token("sts.amazonaws.com"),roleSessionName:`testbot-${e.runId}`.replace(/[^A-Za-z0-9=,.@_-]/g,"").slice(0,64),region:e.region.trim(),durationSeconds:jRt});if(!r.accessKeyId||!r.secretAccessKey||!r.sessionToken)throw new Error("assume-role returned an incomplete credential triple");e.setSecret(r.accessKeyId),e.setSecret(r.secretAccessKey),e.setSecret(r.sessionToken),t.AWS_ACCESS_KEY_ID=r.accessKeyId,t.AWS_SECRET_ACCESS_KEY=r.secretAccessKey,t.AWS_SESSION_TOKEN=r.sessionToken}var d0=3600,HRt=43200,zRt=15;function VRt(e){let t=Math.ceil((e+zRt)*60);return Math.min(HRt,Math.max(d0,t))}function WRt(e){return e instanceof Error?e.name==="ValidationError"&&/MaxSessionDuration|DurationSeconds/i.test(e.message):!1}async function GTe(e){let t=e.env??process.env,r=t.AWS_ROLE_ARN?.trim(),n=t.AWS_REGION?.trim()||t.AWS_DEFAULT_REGION?.trim();if(t.SKYRAMP_REFRESH_BEDROCK_SESSION!=="1"||t.CLAUDE_CODE_USE_BEDROCK!=="1")return!1;let s=e.identity;if(!r||!s||!n)return e.debug("Bedrock session refresh skipped: needs AWS_ROLE_ARN, AWS_REGION (or AWS_DEFAULT_REGION) and a web identity from the job"),!1;try{let i=await s.token("sts.amazonaws.com");if(!i)throw new Error("OIDC response carried no token value");let o=`testbot-agent-${s.runId??"local"}`.replace(/[^A-Za-z0-9=,.@_-]/g,"").slice(0,64),a=e.assumeRole??$Te,c={roleArn:r,webIdentityToken:i,roleSessionName:o,region:n},l=VRt(e.timeoutMinutes),u,d=d0;try{u=await a({...c,durationSeconds:l}),d=l}catch(p){if(l<=d0||!WRt(p))throw p;e.warning(`The Bedrock role rejected a ${l}s session (its MaxSessionDuration is lower). Minting a ${d0}s session instead, which is shorter than the ${e.timeoutMinutes}m testbotTimeout; raise MaxSessionDuration on ${r} to at least ${l}s or the agent can lose its credentials mid-run.`),u=await a({...c,durationSeconds:d0})}if(!u.accessKeyId||!u.secretAccessKey||!u.sessionToken)throw new Error("assume-role returned an incomplete credential triple");return e.setSecret(u.accessKeyId),e.setSecret(u.secretAccessKey),e.setSecret(u.sessionToken),t.AWS_ACCESS_KEY_ID=u.accessKeyId,t.AWS_SECRET_ACCESS_KEY=u.secretAccessKey,t.AWS_SESSION_TOKEN=u.sessionToken,e.debug(`Minted a fresh Bedrock session for this agent attempt (${d}s)`),e.onMinted?.(u.expiration?.getTime()??Date.now()+d*1e3),!0}catch(i){return e.warning(`Could not refresh the Bedrock session; continuing with existing credentials: ${i instanceof Error?i.message:String(i)}`),!1}}var FQ=(i=>(i.Low="low",i.Medium="medium",i.High="high",i.XHigh="xhigh",i.Max="max",i))(FQ||{}),wS="high",jTe="medium";function HTe(e){return Object.values(FQ).includes(e)}var zTe=5;function JRt(e){let t=e.split(/\r?\n/).map(r=>r.trim()).filter(Boolean);if(t.length>zTe)throw new Error(`relatedRepoPaths supports at most ${zTe} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function YRt(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(o3).includes(t)?t:(Re(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function KRt(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);Re(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function XRt(e){let t=(e??"").trim().toLowerCase();return t===""?wS:HTe(t)?t:(Re(`Ignoring effort="${e}": expected one of ${Object.values(FQ).join(", ")}; using "${wS}"`),wS)}function VTe(){let e=LTe(Ve("model"));return p0(e)||Re(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:Ve("skyrampLicenseFile"),cursorApiKey:Ve("cursorApiKey"),copilotApiKey:Ve("copilotApiKey"),anthropicApiKey:Ve("anthropicApiKey"),useBedrock:ph("useBedrock"),awsRegion:Ve("awsRegion"),useLocalAuth:Ve("useLocalAuth").toLowerCase()==="true",model:e,effort:XRt(Ve("effort")),targetSetupCommand:Ve("targetSetupCommand"),authTokenCommand:Ve("authTokenCommand"),uiCredentials:Ve("uiCredentials"),targetTeardownCommand:Ve("targetTeardownCommand"),skipTargetTeardown:ph("skipTargetTeardown"),skyrampExecutorVersion:Ve("skyrampExecutorVersion"),skyrampMcpVersion:Ve("skyrampMcpVersion"),skyrampMcpSource:Ve("skyrampMcpSource"),skyrampMcpGithubToken:Ve("skyrampMcpGithubToken"),skyrampMcpGithubRef:Ve("skyrampMcpGithubRef"),nodeVersion:Ve("nodeVersion"),skipTargetSetup:ph("skipTargetSetup"),targetReadyCheckCommand:Ve("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let r=parseInt(Ve("targetReadyCheckTimeout"),10)||1800;return r<1?(Re(`targetReadyCheckTimeout must be at least 1 second, got ${r}. Using 1s.`),1):r})(),targetReadyCheckInterval:(()=>{let r=parseInt(Ve("targetReadyCheckInterval"),10),n=isNaN(r)?30:r;return n<1?(Re(`targetReadyCheckInterval must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckDiagnosticsCommand:(()=>{let r=Ve("targetReadyCheckDiagnosticsCommand");return r.trim().toLowerCase()==="none"?"":r})(),workingDirectory:Ve("workingDirectory"),autoCommit:ph("autoCommit"),commitMessage:Ve("commitMessage"),generatedTestsMode:YRt(Ve("generatedTestsMode")),postPrComment:ph("postPrComment"),testExecutionTimeout:parseInt(Ve("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let r=parseInt(Ve("maxRecommendations"),10);return isNaN(r)?void 0:Math.max(0,r)})(),maxGenerate:(()=>{let r=parseInt(Ve("maxGenerate"),10);return isNaN(r)?void 0:Math.max(0,r)})(),perTestMaxFixAttempts:KRt(Ve("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(Ve("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(Ve("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(Ve("testbotTimeout"),10)||60,targetSetupRetries:parseInt(Ve("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(Ve("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let r=parseInt(Ve("authTokenRetries"),10);return Number.isFinite(r)&&r>=1?r:6})(),authTokenRetryDelay:(()=>{let r=parseInt(Ve("authTokenRetryDelay"),10);return Number.isFinite(r)&&r>=0?r:10})(),reportCollapsed:ph("reportCollapsed"),language:iO(Ve("language")),enableDebug:ph("enableDebug"),testRepoPath:Ve("testRepoPath")||void 0,relatedRepoPaths:JRt(Ve("relatedRepoPaths")),allowedAuthors:Ve("allowedAuthors").split(/\r?\n/).map(r=>r.trim()).filter(Boolean)}}zt();RW();var YTe=X(require("child_process")),S4=class extends Error{constructor(t){super(t),this.name="ExecTimeoutError"}},LQ=class extends Error{constructor(t){super(t),this.name="ExecAbortedError"}};function WTe(e,t){if(!(!e||e.destroyed||e.writableEnded))try{e.write(t)}catch(r){Re(`stream write failed: ${r instanceof Error?r.message:String(r)}`)}}async function vs(e,t=[],r={}){let n="",s="",i={cwd:r.cwd,silent:r.silent??!1,ignoreReturnCode:r.ignoreReturnCode??!1,env:r.env?{...process.env,...r.env}:void 0,input:r.input,listeners:{stdout:a=>{n+=a.toString(),WTe(r.stdoutStream,a)},stderr:a=>{s+=a.toString()}}};if(r.timeout||r.signal){let a=r.signal;return a?.aborted?Promise.reject(new LQ(`Command aborted before start: ${e}`)):new Promise((c,l)=>{let u=YTe.spawn(e,t,{cwd:r.cwd,env:r.env?{...process.env,...r.env}:process.env,stdio:["pipe","pipe","pipe"],shell:!1});u.stdout?.on("data",A=>{n+=A.toString(),r.silent||process.stdout.write(A),WTe(r.stdoutStream,A)}),u.stderr?.on("data",A=>{s+=A.toString(),r.silent||process.stderr.write(A)}),r.input&&u.stdin?.end(r.input);let d=()=>{m&&clearTimeout(m),a?.removeEventListener("abort",f)},p=A=>{d();try{u.kill("SIGTERM")}catch{}l(A)},f=()=>p(new LQ(`Command aborted: ${e}`)),m=r.timeout?setTimeout(()=>p(new S4(`Command timed out after ${Math.round(r.timeout/6e4)}m: ${e}`)),r.timeout):void 0;a?.addEventListener("abort",f,{once:!0}),u.on("close",A=>{d();let E=A??1;E!==0&&!r.ignoreReturnCode?l(new Error(`The process '${e}' failed with exit code ${E}`)):c({exitCode:E,stdout:n,stderr:s})}),u.on("error",A=>{d(),l(A)})})}return{exitCode:await ewe(e,t,i),stdout:n,stderr:s}}function ZRt(e){return new Promise(t=>setTimeout(t,e*1e3))}async function cy(e,t){for(let r=1;r<=t.retries;r++)try{return await e()}catch(n){if(r<t.retries)Re(`${t.label} failed, retrying (${r}/${t.retries})...`),await ZRt(t.delay);else throw n}throw new Error("unreachable")}async function f0(e,t){Sb(e);try{return await t()}finally{Cb()}}var e0t=1e3;function ly(e){return e*e0t}function h0(e){let t=e.split("/");return t.length===2&&t[0]&&t[1]?{owner:t[0],repo:t[1]}:null}var JTe=/^[A-Za-z_][A-Za-z0-9_.-]*$/;function KTe(e){if(e.startsWith("{"))try{let o=JSON.parse(e);return{username:typeof o.username=="string"?o.username:void 0,password:typeof o.password=="string"?o.password:void 0,role:typeof o.role=="string"?o.role:void 0}}catch{return{}}let t=e.indexOf(":"),n=!(t>=0&&!/[=;]/.test(e.slice(0,t)))&&/(^|;)\s*role\s*=/.test(e);if(/(^|;)\s*(username|password)\s*=/.test(e)||n){let o=new Map;for(let a of e.split(";")){let c=a.indexOf("=");c>0&&JTe.test(a.slice(0,c).trim())&&o.set(a.slice(0,c).trim(),a.slice(c+1).trim())}return{username:o.get("username"),password:o.get("password"),role:o.get("role")}}if(e==="")return{};if(!e.includes(":"))for(let o of e.split(";")){let a=o.indexOf("=");if(a>0&&JTe.test(o.slice(0,a).trim()))return{}}let[s,...i]=e.split(":");return{username:s,password:i.join(":")}}function t0t(e){let t=e.split(/\r?\n/).map(s=>s.trim()).find(s=>s!=="")??"",{username:r,password:n}=KTe(t);return{username:r,password:n}}function r0t(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}function n0t(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(n=>n!==""),r=new Set;return t.map((n,s)=>{let{username:i,password:o,role:a}=KTe(n),c=s+1,l=a?r0t(a):"";for(l||(l=String(c));r.has(l);)l=`${l}_${c}`;return r.add(l),{key:l,username:i,password:o}})}function s0t(e){let t=n0t(e);if(t.length<2)return[];let r=[];for(let{key:n,username:s,password:i}of t)s!==void 0&&r.push({envName:`SKYRAMP_UI_USERNAME_${n}`,value:s}),i!==void 0&&r.push({envName:`SKYRAMP_UI_PASSWORD_${n}`,value:i});return r}var UQ="SKYRAMP_UI_USERNAME",bS="SKYRAMP_UI_PASSWORD";function XTe(e){let{username:t,password:r}=t0t(e);return[...t!==void 0?[{envName:UQ,value:t}]:[],...r!==void 0?[{envName:bS,value:r}]:[],...s0t(e)]}var ZTe=e=>e.replace(/[.[\]^$*+?(){}|\\]/g,"\\$&");async function C4(e){try{let{stdout:t,exitCode:r}=await vs("git",["remote","get-url","origin"],{cwd:e,silent:!0,ignoreReturnCode:!0});if(r!==0)return;let n=t.trim();if(!n)return;let i=n.replace(/\/+$/,"").replace(/\.git$/,"").match(/[/:]([^/:]+)\/([^/]+)$/);if(!i)return;let o=`${i[1]}/${i[2]}`;return h0(o)?o:void 0}catch{return}}zt();var qBe=X(require("path"));var SS=require("fs"),Mp=X(require("path"),1),zke=require("child_process"),Vke=require("util");function i0t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var eo={},$Q={},Fh={},eke;function m0(){if(eke)return Fh;eke=1;function e(o){return typeof o>"u"||o===null}function t(o){return typeof o=="object"&&o!==null}function r(o){return Array.isArray(o)?o:e(o)?[]:[o]}function n(o,a){if(a){let c=Object.keys(a);for(let l=0,u=c.length;l<u;l+=1){let d=c[l];o[d]=a[d]}}return o}function s(o,a){let c="";for(let l=0;l<a;l+=1)c+=o;return c}function i(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}return Fh.isNothing=e,Fh.isObject=t,Fh.toArray=r,Fh.repeat=s,Fh.isNegativeZero=i,Fh.extend=n,Fh}var v4,tke;function g0(){if(tke)return v4;tke=1;function e(r,n){let s="",i=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!n&&r.mark.snippet&&(s+=`
|
|
175
|
+
${s.output}`:`deploy reported ${t.outcome} without the failing command`,fix:t.outcome==="change-broke-bringup"?`fix the change that broke bring-up${i}, then ${n?"Run setup again":"onboard again"}`:r.length>0?ACt(r):n?"if it failed for a reason that has passed, such as a service that was down, Check again; otherwise make .skyramp/sut/setup.sh bring the SUT up from a clean checkout, then Run setup again":"make .skyramp/sut/setup.sh bring the SUT up from a clean checkout (what onboard's session had that a fresh run lacks), then onboard again"}}function mR(e){return[...new Set([...e.components.flatMap(t=>t.credentials??[]),...e.environment?.credentials??[]])].filter(t=>Sp.test(t))}function gCt(e,t,r){let n=new Set(mR(e)),s=new Map;for(let i of t?.credentialsRefused??[]){let o=`${i.name}\0${i.component}`;n.has(i.name)&&!s.has(o)&&s.set(o,i)}return[...s.values()].map(({name:i,component:o,status:a,evidence:c})=>({component:o,problem:`${i} was refused${a?` (${a})`:""} by ${o}`,evidence:c,fix:`Fix ${i}'s value in its secret on the workflow host (${Mb}), or pick another secret for it under Credentials, then ${r?"Check again":"Retry"}.`}))}var Mb="a GitHub Actions secret, or on Azure DevOps a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library";function ACt(e){let t=e.length===1;return`add ${t?"a secret":"secrets"} named ${e.join(", ")} on the workflow host, ${t?"as":"each as"} ${Mb}, then Retry: Skyramp adds ${t?"it":"them"} to the Target's credentials, and the replay gets ${t?"its value":"their values"}. If it still fails, make .skyramp/sut/setup.sh bring the SUT up from a clean checkout`}function yCt(e){return e.environment?{component:e.components.map(t=>t.name).join(", ")||"SUT",problem:"the deployment was never checked from a fresh session: deploy did not run or wrote no deploy.json",evidence:"outputs/deploy.json is missing from this run",fix:"run deploy after onboard in the same run so it checks the deployment is ready; if deploy ran, its stage log says why it wrote no deploy.json"}:{component:e.components.map(t=>t.name).join(", ")||"SUT",problem:"the recipe was never replayed: deploy did not run or wrote no deploy.json",evidence:"outputs/deploy.json is missing from this run",fix:"run deploy after onboard in the same run so it replays .skyramp/sut/setup.sh from a clean start; if deploy ran, its stage log says why it wrote no deploy.json"}}function ECt(e){return{component:e.components.map(t=>t.name).join(", ")||"SUT",problem:`${Cp}: setup ran out of time while checking ${e.environment?"that the deployment is ready":"that the app comes up from a clean start"}. Every component was up before that.`,evidence:"The check from a fresh session didn't finish.",fix:"Retry: setup carries on from what this one found and finishes checking."}}function wCt(e){return{component:"SUT recipe",problem:"deploy fixed recipe drift, but the recipe it fixed was not collected \u2014 onboard's copy is the recipe from before the fix",evidence:`deploy reported recipe-drift: ${(e.recipeFixes??[]).join("; ")||"no fixes listed"}`,fix:"collect .skyramp/sut/ and .skyramp/workspace.yml after deploy (collectRecipeFiles) and build the plan from that collection"}}var UW=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh",".skyramp/sut/health.json",".skyramp/workspace.yml"],$W=[".skyramp/sut/health.json",".skyramp/workspace.yml"];function bCt(e){return`Onboard again so it leaves the whole recipe in the checkout: ${e.map(r=>r===".skyramp/workspace.yml"?"create .skyramp/workspace.yml with skyramp_init_scan and skyramp_init_workspace":`write ${r} as a regular file (a symlink is not uploaded)`).join("; ")}.`}function qW(e,t,r){return t&&r||e}function GW(e,t,r={}){let n=t!==void 0&&!hCt.includes(t.outcome),s=qW(e,t,r.recipeFiles),i=t?.outcome==="recipe-drift"&&!r.recipeFiles,o=(s.recipeFilesOmitted??[]).filter(T=>Eh(T.path)),a=o.length?[{component:"SUT recipe",problem:`The recipe could not be uploaded whole: ${o.map(T=>T.path).join(", ")} left out.`,evidence:o.map(T=>`${T.path}: ${T.reason}`).join("; "),fix:"Keep each recipe file text-only and under 64 KiB, and the recipe under 512 KiB in total \u2014 move large generated content out of .skyramp/sut/ and have setup.sh produce it."}]:[],c=e.status==="ready",l=e.environment,u=new Set(s.recipeFiles.map(T=>T.path)),d=c?(l?$W:UW).filter(T=>!u.has(T)):[],p=d.length?[{component:"SUT recipe",problem:`The recipe is missing ${d.join(", ")}, so it cannot be replayed.`,evidence:`collected: ${[...u].sort().join(", ")||"nothing"}`,fix:bCt(d)}]:[],f=c&&!l&&(r.awaitsCredentialCheck?.length??0)>0,m=gCt(e,t,r.recheck??!1),A=t&&n?mCt(e,t,r.unsupplied??[],r.recheck??!1):void 0,E=(r.unsupplied?.length??0)>0||t?.outcome==="change-broke-bringup",g=m.length>0?[...m,...A&&E?[A]:[]]:A?[A]:t?[]:c&&!f?[r.timeLimit?ECt(e):yCt(e)]:[],w=new Set(l?.revisionSources.flatMap(T=>T.components)),S=l&&c?e.components.filter(T=>T.repository!==Fr&&!w.has(T.name)).map(T=>T.name):[],x=S.length?[{component:S.join(", "),problem:`Testbot cannot tell which revision ${S.join(" and ")} ${S.length>1?"run":"runs"}, so a run could not say which changes it tested.`,evidence:`revision sources: ${l.revisionSources.map(T=>`${T.detail} (${T.components.join(", ")})`).join("; ")||"none"}`,fix:"Say in the Test Environment's notes how to tell what is deployed, such as a version route (GET /version), then set it up again."}]:[],R=(c?l?.revisionSources??[]:[]).filter(T=>T.method==="not_tracked").map(T=>({component:T.components.join(", "),problem:`Testbot can't tell which commit ${T.components.join(" and ")} ${T.components.length>1?"run":"runs"}, so a run can't say which of ${T.components.length>1?"their":"its"} changes it tested.`,evidence:T.detail,fix:`Say in the Test Environment's notes how to tell what ${T.components.join(" and ")} ${T.components.length>1?"run":"runs"}, such as a version route (GET /version) or a deploy workflow, then set it up again.`})),I=[...e.blockers,...g,...i&&t?[wCt(t)]:[],...a,...p,...x,...R,...r.revisionCheck?.blockers??[],...r.credentialBlockers??[]],B=t?.baseUrls??{};return{schemaVersion:1,...l?{type:"customer_deployed",environment:Awe(l)}:{},...!l&&r.repository?{repository:r.repository}:{},status:c&&(t!==void 0||f)&&!n&&!i&&o.length===0&&d.length===0&&S.length===0&&!r.credentialBlockers?.length&&m.length===0?"ready":"blocked",components:e.components.map(T=>({name:T.name,repository:T.repository,healthy:T.healthy&&!n,url:Object.hasOwn(B,T.name)&&B[T.name]||null,...T.steps?{steps:T.steps.map(Q=>({action:Q.action,text:Q.text,source:Q.source,file:Q.file}))}:{},...T.kind?{kind:T.kind}:{},...T.from?{from:{file:T.from.file,service:T.from.service}}:{},...T.credentials?{credentials:[...new Set(T.credentials)].filter(Q=>Sp.test(Q))}:{},...l?{deployed:SCt(T,r)}:{}})),suites:e.suites.map(T=>({framework:T.framework,file:T.file,result:T.result})),inputsUsed:[...e.inputsUsed],...e.inputsUsedHow?{inputsUsedHow:e.inputsUsedHow.filter(T=>e.inputsUsed.includes(T.input)).map(T=>({input:T.input,how:T.how}))}:{},inputsNotUsed:e.inputsNotUsed.map(T=>({input:T.input,reason:T.reason})),blockers:I.map(T=>({component:T.component,problem:T.problem,evidence:T.evidence,fix:T.fix})),replay:t&&!l?{outcome:t.outcome,durationSeconds:r.deployDurationSeconds??null}:f?{outcome:LW,durationSeconds:null}:!l&&I.some(T=>T.problem.startsWith(Cp))?{outcome:gwe,durationSeconds:null}:null,files:s.recipeFiles.filter(T=>Eh(T.path)&&!(l&&Qb.includes(T.path))).map(T=>({path:T.path,content:T.content}))}}function SCt(e,t){return e.repository===Fr?null:t.revisionCheck?t.revisionCheck.deployed[e.name]??null:t.deployed?.[e.name]??e.deployed??null}function Awe(e){return{address:e.address,readyWhen:e.readyWhen,credentials:[...new Set(e.credentials)],revisionSources:e.revisionSources.map(t=>({method:t.method,detail:t.detail,components:[...t.components]}))}}function ywe(e){return{schemaVersion:1,status:"ready",components:e.components.map(({url:t,deployed:r,...n})=>({...n,healthy:!0})),suites:e.suites,inputsUsed:e.inputsUsed,...e.inputsUsedHow?{inputsUsedHow:e.inputsUsedHow}:{},inputsNotUsed:e.inputsNotUsed,blockers:[],recipeFiles:e.files,recipeFilesOmitted:[],...e.environment?{environment:Awe(e.environment)}:{}}}zt();var vu=X(require("fs")),zD=X(require("path"));var Ewe=X(require("path")),ms="Skyramp Testbot",Ei="test-bot@skyramp.dev",jW="skyramp-testbot[bot]";function Fb(){return Ewe.join(process.env.RUNNER_TEMP??"/tmp","skyramp")}var vp=X(require("fs")),jD=X(require("path"));var wwe=X(require("fs")),GD=X(require("path"));function Lb(e,t,r={}){let n=r.maxDepth??1/0,s=!1,i=(o,a)=>{let c;try{c=wwe.readdirSync(o,{withFileTypes:!0})}catch{return}for(let l of c){if(s)return;let u=GD.join(o,l.name);if(l.isDirectory())!r.skip?.has(l.name)&&a<n&&i(u,a+1);else if(t(u,GD.relative(e,u))===!1){s=!0;return}}};i(e,0)}var zW=4,gA="\xABredacted\xBB";function zs(e){let t=new Set;for(let r of e){let n=(r??"").trim();n.length>=zW&&t.add(n)}return[...t].sort((r,n)=>n.length-r.length)}function CCt(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}function yr(e,t){if(!e||t.length===0)return e;let r=e;for(let n of t)!n||!r.includes(n)||(r=r.split(n).join(gA));return r}function HD(e,t){return yr(CCt(e),t)}function vCt(e,t){let r=n=>typeof n=="string"?t(n):Array.isArray(n)?n.map(r):n&&typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[s,r(i)])):n;return r(e)}function _r(e,t){return t.length===0?e:vCt(e,r=>yr(r,t))}function HW(e,t){return/\.(json|txt|md)$/.test(e)||t&&e.endsWith(".ndjson")}function Swe(e,t){let r=[];return Lb(e,n=>{try{HW(jD.basename(n),t)&&vp.lstatSync(n).isFile()&&r.push(n)}catch{}}),r}function xCt(e){return e.length>=2&&(e[0]===255&&e[1]===254||e[0]===254&&e[1]===255)}var ICt=new TextDecoder("utf-8",{fatal:!0});function RCt(e){return e.includes(0)||xCt(e)||!Cwe(e)}function Cwe(e){try{return ICt.decode(e),!0}catch{return!1}}function TCt(e,t){let r=Buffer.from(e,"utf16le"),n=Buffer.from("*".repeat(r.length/2),"utf16le"),s=Buffer.from(e),i=[{needle:s,mask:Buffer.alloc(s.length,"*")},{needle:r,mask:n},{needle:Buffer.from(r).swap16(),mask:Buffer.from(n).swap16()}];return t&&/^[\x00-\xff]*$/.test(e)&&/[\x80-\xff]/.test(e)&&i.push({needle:Buffer.from(e,"latin1"),mask:Buffer.alloc(e.length,"*")}),i}function bwe(e,t){let r=Cwe(e),n=r&&!e.includes(0),s=!1;for(let i of t)if(i)for(let{needle:o,mask:a}of TCt(i,!r))for(let c=e.indexOf(o);c!==-1;c=e.indexOf(o,c+o.length))(n?Buffer.alloc(o.length,"*"):a).copy(e,c),s=!0;return s}function VW(e,t){if(t.length===0)return;let r;try{r=vp.readdirSync(e,{withFileTypes:!0})}catch{return}for(let n of r){let s=jD.join(e,n.name);if(n.isDirectory()){VW(s,t);continue}if(n.isFile())try{let i=vp.readFileSync(s);if(RCt(i)){HW(n.name,!0)&&bwe(i,t)&&vp.writeFileSync(s,i);continue}let o=i.toString("utf-8"),a=yr(o,t),c=a===o?i:Buffer.from(a),l=HW(n.name,!0)&&bwe(c,t);(a!==o||l)&&vp.writeFileSync(s,c)}catch{}}}var VD=()=>zD.join(Fb(),"relayed-credentials","credentials.json"),gR=new Map,JW=new Set,WW=new Set;function vwe(e,t,r=VD()){gR.set(e,t),JW.add(t);for(let s of WW)s(t);vu.mkdirSync(zD.dirname(r),{recursive:!0,mode:448});let n=`${r}.tmp`;vu.writeFileSync(n,JSON.stringify(Object.fromEntries(gR)),{mode:384}),vu.chmodSync(n,384),vu.renameSync(n,r)}function wc(){return Object.fromEntries(gR)}function xwe(e){return[...new Set([...e,...gR.keys()])]}function WD(){return[...JW]}function Iwe(e){return WW.add(e),()=>{WW.delete(e)}}function Rwe(e=VD()){gR.clear(),JW.clear(),vu.rmSync(e,{force:!0})}function Twe(e,t){let r=t.trim();!e||r.length<zW||e.includes(r)||(e.push(r),e.sort((n,s)=>s.length-n.length))}zt();zt();var YW;(function(e){e.Pass="Pass",e.Fail="Fail",e.Error="Error",e.Skipped="Skipped",e.Unknown="Unknown"})(YW||(YW={}));var kwe;(function(e){e.High="high",e.Medium="medium",e.Low="low"})(kwe||(kwe={}));var Bwe;(function(e){e.Skyramp="skyramp",e.External="external"})(Bwe||(Bwe={}));var KW;(function(e){e.Update="UPDATE",e.Regenerate="REGENERATE",e.Delete="DELETE",e.Verify="VERIFY",e.Ignore="IGNORE"})(KW||(KW={}));var Nwe;(function(e){e.Small="Small",e.Medium="Medium",e.Large="Large"})(Nwe||(Nwe={}));var Ie={};Sg(Ie,{BRAND:()=>evt,DIRTY:()=>AA,EMPTY_PATH:()=>_Ct,INVALID:()=>At,NEVER:()=>Fvt,OK:()=>Xi,ParseStatus:()=>wi,Schema:()=>Lt,ZodAny:()=>Sh,ZodArray:()=>Tp,ZodBigInt:()=>EA,ZodBoolean:()=>wA,ZodBranded:()=>yR,ZodCatch:()=>NA,ZodDate:()=>bA,ZodDefault:()=>BA,ZodDiscriminatedUnion:()=>KD,ZodEffects:()=>Cc,ZodEnum:()=>TA,ZodError:()=>Xo,ZodFirstPartyTypeKind:()=>vt,ZodFunction:()=>ZD,ZodIntersection:()=>xA,ZodIssueCode:()=>ke,ZodLazy:()=>IA,ZodLiteral:()=>RA,ZodMap:()=>Hb,ZodNaN:()=>Vb,ZodNativeEnum:()=>kA,ZodNever:()=>Rl,ZodNull:()=>CA,ZodNullable:()=>Ru,ZodNumber:()=>yA,ZodObject:()=>Zo,ZodOptional:()=>bc,ZodParsedType:()=>Je,ZodPipeline:()=>ER,ZodPromise:()=>Ch,ZodReadonly:()=>_A,ZodRecord:()=>XD,ZodSchema:()=>Lt,ZodSet:()=>zb,ZodString:()=>bh,ZodSymbol:()=>Gb,ZodTransformer:()=>Cc,ZodTuple:()=>Iu,ZodType:()=>Lt,ZodUndefined:()=>SA,ZodUnion:()=>vA,ZodUnknown:()=>Rp,ZodVoid:()=>jb,addIssueToContext:()=>Me,any:()=>lvt,array:()=>fvt,bigint:()=>svt,boolean:()=>qwe,coerce:()=>Mvt,custom:()=>Lwe,date:()=>ivt,datetimeRegex:()=>Mwe,defaultErrorMap:()=>xp,discriminatedUnion:()=>Avt,effect:()=>kvt,enum:()=>Ivt,function:()=>Cvt,getErrorMap:()=>Ub,getParsedType:()=>xu,instanceof:()=>rvt,intersection:()=>yvt,isAborted:()=>JD,isAsync:()=>$b,isDirty:()=>YD,isValid:()=>wh,late:()=>tvt,lazy:()=>vvt,literal:()=>xvt,makeIssue:()=>AR,map:()=>bvt,nan:()=>nvt,nativeEnum:()=>Rvt,never:()=>dvt,null:()=>cvt,nullable:()=>Nvt,number:()=>$we,object:()=>hvt,objectUtil:()=>XW,oboolean:()=>Qvt,onumber:()=>Ovt,optional:()=>Bvt,ostring:()=>Dvt,pipeline:()=>Pvt,preprocess:()=>_vt,promise:()=>Tvt,quotelessJson:()=>kCt,record:()=>wvt,set:()=>Svt,setErrorMap:()=>NCt,strictObject:()=>mvt,string:()=>Uwe,symbol:()=>ovt,transformer:()=>kvt,tuple:()=>Evt,undefined:()=>avt,union:()=>gvt,unknown:()=>uvt,util:()=>er,void:()=>pvt});var er;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{let i={};for(let o of s)i[o]=o;return i},e.getValidEnumValues=s=>{let i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(let a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let i=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(let o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(er||(er={}));var XW;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(XW||(XW={}));var Je=er.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xu=e=>{switch(typeof e){case"undefined":return Je.undefined;case"string":return Je.string;case"number":return Number.isNaN(e)?Je.nan:Je.number;case"boolean":return Je.boolean;case"function":return Je.function;case"bigint":return Je.bigint;case"symbol":return Je.symbol;case"object":return Array.isArray(e)?Je.array:e===null?Je.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Je.promise:typeof Map<"u"&&e instanceof Map?Je.map:typeof Set<"u"&&e instanceof Set?Je.set:typeof Date<"u"&&e instanceof Date?Je.date:Je.object;default:return Je.unknown}};var ke=er.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kCt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Xo=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_errors:[]},s=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let l=o.path[c];c===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return s(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,er.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let s of this.issues)if(s.path.length>0){let i=s.path[0];r[i]=r[i]||[],r[i].push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Xo.create=e=>new Xo(e);var BCt=(e,t)=>{let r;switch(e.code){case ke.invalid_type:e.received===Je.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ke.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,er.jsonStringifyReplacer)}`;break;case ke.unrecognized_keys:r=`Unrecognized key(s) in object: ${er.joinValues(e.keys,", ")}`;break;case ke.invalid_union:r="Invalid input";break;case ke.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${er.joinValues(e.options)}`;break;case ke.invalid_enum_value:r=`Invalid enum value. Expected ${er.joinValues(e.options)}, received '${e.received}'`;break;case ke.invalid_arguments:r="Invalid function arguments";break;case ke.invalid_return_type:r="Invalid function return type";break;case ke.invalid_date:r="Invalid date";break;case ke.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:er.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ke.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ke.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ke.custom:r="Invalid input";break;case ke.invalid_intersection_types:r="Intersection results could not be merged";break;case ke.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ke.not_finite:r="Number must be finite";break;default:r=t.defaultError,er.assertNever(e)}return{message:r}},xp=BCt;var _we=xp;function NCt(e){_we=e}function Ub(){return _we}var AR=e=>{let{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="",c=n.filter(l=>!!l).slice().reverse();for(let l of c)a=l(o,{data:t,defaultError:a}).message;return{...s,path:i,message:a}},_Ct=[];function Me(e,t){let r=Ub(),n=AR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===xp?void 0:xp].filter(s=>!!s)});e.common.issues.push(n)}var wi=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let s of r){if(s.status==="aborted")return At;s.status==="dirty"&&t.dirty(),n.push(s.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let s of r){let i=await s.key,o=await s.value;n.push({key:i,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let s of r){let{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return At;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:t.value,value:n}}},At=Object.freeze({status:"aborted"}),AA=e=>({status:"dirty",value:e}),Xi=e=>({status:"valid",value:e}),JD=e=>e.status==="aborted",YD=e=>e.status==="dirty",wh=e=>e.status==="valid",$b=e=>typeof Promise<"u"&&e instanceof Promise;var rt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(rt||(rt={}));var Sc=class{constructor(t,r,n,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Pwe=(e,t)=>{if(wh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Xo(e.common.issues);return this._error=r,this._error}}};function Dt(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>{let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:s}}var Lt=class{get description(){return this._def.description}_getType(t){return xu(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:xu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wi,ctx:{common:t.parent.common,data:t.data,parsedType:xu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if($b(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xu(t)},s=this._parseSync({data:t,path:n.path,parent:n});return Pwe(n,s)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xu(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return wh(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>wh(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xu(t)},s=this._parse({data:t,path:n.path,parent:n}),i=await($b(s)?s:Promise.resolve(s));return Pwe(n,i)}refine(t,r){let n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{let o=t(s),a=()=>i.addIssue({code:ke.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,s)=>t(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(t){return new Cc({schema:this,typeName:vt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return bc.create(this,this._def)}nullable(){return Ru.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tp.create(this)}promise(){return Ch.create(this,this._def)}or(t){return vA.create([this,t],this._def)}and(t){return xA.create(this,t,this._def)}transform(t){return new Cc({...Dt(this._def),schema:this,typeName:vt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new BA({...Dt(this._def),innerType:this,defaultValue:r,typeName:vt.ZodDefault})}brand(){return new yR({typeName:vt.ZodBranded,type:this,...Dt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new NA({...Dt(this._def),innerType:this,catchValue:r,typeName:vt.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ER.create(this,t)}readonly(){return _A.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},PCt=/^c[^\s-]{8,}$/i,DCt=/^[0-9a-z]+$/,OCt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,QCt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,MCt=/^[a-z0-9_-]{21}$/i,FCt=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LCt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,UCt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$Ct="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ZW,qCt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,GCt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,jCt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,HCt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zCt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,VCt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Owe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",WCt=new RegExp(`^${Owe}$`);function Qwe(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function JCt(e){return new RegExp(`^${Qwe(e)}$`)}function Mwe(e){let t=`${Owe}T${Qwe(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function YCt(e,t){return!!((t==="v4"||!t)&&qCt.test(e)||(t==="v6"||!t)&&jCt.test(e))}function KCt(e,t){if(!FCt.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function XCt(e,t){return!!((t==="v4"||!t)&&GCt.test(e)||(t==="v6"||!t)&&HCt.test(e))}var bh=class e extends Lt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Je.string){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_type,expected:Je.string,received:i.parsedType}),At}let n=new wi,s;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(t,s),o?Me(s,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&Me(s,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")UCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"email",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")ZW||(ZW=new RegExp($Ct,"u")),ZW.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"emoji",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")QCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"uuid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")MCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"nanoid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")PCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"cuid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")DCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"cuid2",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")OCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"ulid",code:ke.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),Me(s,{validation:"url",code:ke.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"regex",code:ke.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?Mwe(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?WCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?JCt(i).test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?LCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"duration",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?YCt(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"ip",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?KCt(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"jwt",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?XCt(t.data,i.version)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"cidr",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?zCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"base64",code:ke.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?VCt.test(t.data)||(s=this._getOrReturnCtx(t,s),Me(s,{validation:"base64url",code:ke.invalid_string,message:i.message}),n.dirty()):er.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(s=>t.test(s),{validation:r,code:ke.invalid_string,...rt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...rt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...rt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...rt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...rt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...rt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...rt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...rt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...rt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...rt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...rt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...rt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...rt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...rt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...rt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...rt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...rt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...rt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...rt.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...rt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...rt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...rt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...rt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...rt.errToObj(r)})}nonempty(t){return this.min(1,rt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};bh.create=e=>new bh({checks:[],typeName:vt.ZodString,coerce:e?.coerce??!1,...Dt(e)});function ZCt(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return i%o/10**s}var yA=class e extends Lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Je.number){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_type,expected:Je.number,received:i.parsedType}),At}let n,s=new wi;for(let i of this._def.checks)i.kind==="int"?er.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?ZCt(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.not_finite,message:i.message}),s.dirty()):er.assertNever(i);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,rt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,rt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,rt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,rt.toString(r))}setLimit(t,r,n,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:rt.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:rt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:rt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:rt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:rt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:rt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&er.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};yA.create=e=>new yA({checks:[],typeName:vt.ZodNumber,coerce:e?.coerce||!1,...Dt(e)});var EA=class e extends Lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Je.bigint)return this._getInvalidInput(t);let n,s=new wi;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Me(n,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):er.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return Me(r,{code:ke.invalid_type,expected:Je.bigint,received:r.parsedType}),At}gte(t,r){return this.setLimit("min",t,!0,rt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,rt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,rt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,rt.toString(r))}setLimit(t,r,n,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:rt.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:rt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:rt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};EA.create=e=>new EA({checks:[],typeName:vt.ZodBigInt,coerce:e?.coerce??!1,...Dt(e)});var wA=class extends Lt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Je.boolean){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.boolean,received:n.parsedType}),At}return Xi(t.data)}};wA.create=e=>new wA({typeName:vt.ZodBoolean,coerce:e?.coerce||!1,...Dt(e)});var bA=class e extends Lt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Je.date){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_type,expected:Je.date,received:i.parsedType}),At}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return Me(i,{code:ke.invalid_date}),At}let n=new wi,s;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),Me(s,{code:ke.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):er.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:rt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:rt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};bA.create=e=>new bA({checks:[],coerce:e?.coerce||!1,typeName:vt.ZodDate,...Dt(e)});var Gb=class extends Lt{_parse(t){if(this._getType(t)!==Je.symbol){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.symbol,received:n.parsedType}),At}return Xi(t.data)}};Gb.create=e=>new Gb({typeName:vt.ZodSymbol,...Dt(e)});var SA=class extends Lt{_parse(t){if(this._getType(t)!==Je.undefined){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.undefined,received:n.parsedType}),At}return Xi(t.data)}};SA.create=e=>new SA({typeName:vt.ZodUndefined,...Dt(e)});var CA=class extends Lt{_parse(t){if(this._getType(t)!==Je.null){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.null,received:n.parsedType}),At}return Xi(t.data)}};CA.create=e=>new CA({typeName:vt.ZodNull,...Dt(e)});var Sh=class extends Lt{constructor(){super(...arguments),this._any=!0}_parse(t){return Xi(t.data)}};Sh.create=e=>new Sh({typeName:vt.ZodAny,...Dt(e)});var Rp=class extends Lt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xi(t.data)}};Rp.create=e=>new Rp({typeName:vt.ZodUnknown,...Dt(e)});var Rl=class extends Lt{_parse(t){let r=this._getOrReturnCtx(t);return Me(r,{code:ke.invalid_type,expected:Je.never,received:r.parsedType}),At}};Rl.create=e=>new Rl({typeName:vt.ZodNever,...Dt(e)});var jb=class extends Lt{_parse(t){if(this._getType(t)!==Je.undefined){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.void,received:n.parsedType}),At}return Xi(t.data)}};jb.create=e=>new jb({typeName:vt.ZodVoid,...Dt(e)});var Tp=class e extends Lt{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),s=this._def;if(r.parsedType!==Je.array)return Me(r,{code:ke.invalid_type,expected:Je.array,received:r.parsedType}),At;if(s.exactLength!==null){let o=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(o||a)&&(Me(r,{code:o?ke.too_big:ke.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(Me(r,{code:ke.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(Me(r,{code:ke.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>s.type._parseAsync(new Sc(r,o,r.path,a)))).then(o=>wi.mergeArray(n,o));let i=[...r.data].map((o,a)=>s.type._parseSync(new Sc(r,o,r.path,a)));return wi.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:rt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:rt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:rt.toString(r)}})}nonempty(t){return this.min(1,t)}};Tp.create=(e,t)=>new Tp({type:e,minLength:null,maxLength:null,exactLength:null,typeName:vt.ZodArray,...Dt(t)});function qb(e){if(e instanceof Zo){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=bc.create(qb(n))}return new Zo({...e._def,shape:()=>t})}else return e instanceof Tp?new Tp({...e._def,type:qb(e.element)}):e instanceof bc?bc.create(qb(e.unwrap())):e instanceof Ru?Ru.create(qb(e.unwrap())):e instanceof Iu?Iu.create(e.items.map(t=>qb(t))):e}var Zo=class e extends Lt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=er.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Je.object){let l=this._getOrReturnCtx(t);return Me(l,{code:ke.invalid_type,expected:Je.object,received:l.parsedType}),At}let{status:n,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Rl&&this._def.unknownKeys==="strip"))for(let l in s.data)o.includes(l)||a.push(l);let c=[];for(let l of o){let u=i[l],d=s.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Sc(s,d,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Rl){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(l==="strict")a.length>0&&(Me(s,{code:ke.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let u of a){let d=s.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Sc(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let d=await u.key,p=await u.value;l.push({key:d,value:p,alwaysSet:u.alwaysSet})}return l}).then(l=>wi.mergeObjectSync(n,l)):wi.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return rt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let s=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:rt.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:vt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of er.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of er.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return qb(this)}partial(t){let r={};for(let n of er.objectKeys(this.shape)){let s=this.shape[n];t&&!t[n]?r[n]=s:r[n]=s.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of er.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof bc;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return Fwe(er.objectKeys(this.shape))}};Zo.create=(e,t)=>new Zo({shape:()=>e,unknownKeys:"strip",catchall:Rl.create(),typeName:vt.ZodObject,...Dt(t)});Zo.strictCreate=(e,t)=>new Zo({shape:()=>e,unknownKeys:"strict",catchall:Rl.create(),typeName:vt.ZodObject,...Dt(t)});Zo.lazycreate=(e,t)=>new Zo({shape:e,unknownKeys:"strip",catchall:Rl.create(),typeName:vt.ZodObject,...Dt(t)});var vA=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function s(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new Xo(a.ctx.common.issues));return Me(r,{code:ke.invalid_union,unionErrors:o}),At}if(r.common.async)return Promise.all(n.map(async i=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i,o=[];for(let c of n){let l={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new Xo(c));return Me(r,{code:ke.invalid_union,unionErrors:a}),At}}get options(){return this._def.options}};vA.create=(e,t)=>new vA({options:e,typeName:vt.ZodUnion,...Dt(t)});var Ip=e=>e instanceof IA?Ip(e.schema):e instanceof Cc?Ip(e.innerType()):e instanceof RA?[e.value]:e instanceof TA?e.options:e instanceof kA?er.objectValues(e.enum):e instanceof BA?Ip(e._def.innerType):e instanceof SA?[void 0]:e instanceof CA?[null]:e instanceof bc?[void 0,...Ip(e.unwrap())]:e instanceof Ru?[null,...Ip(e.unwrap())]:e instanceof yR||e instanceof _A?Ip(e.unwrap()):e instanceof NA?Ip(e._def.innerType):[],KD=class e extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Je.object)return Me(r,{code:ke.invalid_type,expected:Je.object,received:r.parsedType}),At;let n=this.discriminator,s=r.data[n],i=this.optionsMap.get(s);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(Me(r,{code:ke.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),At)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let s=new Map;for(let i of r){let o=Ip(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new e({typeName:vt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...Dt(n)})}};function e3(e,t){let r=xu(e),n=xu(t);if(e===t)return{valid:!0,data:e};if(r===Je.object&&n===Je.object){let s=er.objectKeys(t),i=er.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(let a of i){let c=e3(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===Je.array&&n===Je.array){if(e.length!==t.length)return{valid:!1};let s=[];for(let i=0;i<e.length;i++){let o=e[i],a=t[i],c=e3(o,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===Je.date&&n===Je.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var xA=class extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),s=(i,o)=>{if(JD(i)||JD(o))return At;let a=e3(i.value,o.value);return a.valid?((YD(i)||YD(o))&&r.dirty(),{status:r.value,value:a.data}):(Me(n,{code:ke.invalid_intersection_types}),At)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};xA.create=(e,t,r)=>new xA({left:e,right:t,typeName:vt.ZodIntersection,...Dt(r)});var Iu=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.array)return Me(n,{code:ke.invalid_type,expected:Je.array,received:n.parsedType}),At;if(n.data.length<this._def.items.length)return Me(n,{code:ke.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),At;!this._def.rest&&n.data.length>this._def.items.length&&(Me(n,{code:ke.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new Sc(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>wi.mergeArray(r,o)):wi.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Iu.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Iu({items:e,typeName:vt.ZodTuple,rest:null,...Dt(t)})};var XD=class e extends Lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.object)return Me(n,{code:ke.invalid_type,expected:Je.object,received:n.parsedType}),At;let s=[],i=this._def.keyType,o=this._def.valueType;for(let a in n.data)s.push({key:i._parse(new Sc(n,a,n.path,a)),value:o._parse(new Sc(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?wi.mergeObjectAsync(r,s):wi.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Lt?new e({keyType:t,valueType:r,typeName:vt.ZodRecord,...Dt(n)}):new e({keyType:bh.create(),valueType:t,typeName:vt.ZodRecord,...Dt(r)})}},Hb=class extends Lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.map)return Me(n,{code:ke.invalid_type,expected:Je.map,received:n.parsedType}),At;let s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([a,c],l)=>({key:s._parse(new Sc(n,a,n.path,[l,"key"])),value:i._parse(new Sc(n,c,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return At;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return At;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(l.value,u.value)}return{status:r.value,value:a}}}};Hb.create=(e,t,r)=>new Hb({valueType:t,keyType:e,typeName:vt.ZodMap,...Dt(r)});var zb=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Je.set)return Me(n,{code:ke.invalid_type,expected:Je.set,received:n.parsedType}),At;let s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(Me(n,{code:ke.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(Me(n,{code:ke.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let i=this._def.valueType;function o(c){let l=new Set;for(let u of c){if(u.status==="aborted")return At;u.status==="dirty"&&r.dirty(),l.add(u.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((c,l)=>i._parse(new Sc(n,c,n.path,l)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:rt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:rt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};zb.create=(e,t)=>new zb({valueType:e,minSize:null,maxSize:null,typeName:vt.ZodSet,...Dt(t)});var ZD=class e extends Lt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Je.function)return Me(r,{code:ke.invalid_type,expected:Je.function,received:r.parsedType}),At;function n(a,c){return AR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ub(),xp].filter(l=>!!l),issueData:{code:ke.invalid_arguments,argumentsError:c}})}function s(a,c){return AR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Ub(),xp].filter(l=>!!l),issueData:{code:ke.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ch){let a=this;return Xi(async function(...c){let l=new Xo([]),u=await a._def.args.parseAsync(c,i).catch(f=>{throw l.addIssue(n(c,f)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(f=>{throw l.addIssue(s(d,f)),l})})}else{let a=this;return Xi(function(...c){let l=a._def.args.safeParse(c,i);if(!l.success)throw new Xo([n(c,l.error)]);let u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Xo([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Iu.create(t).rest(Rp.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Iu.create([]).rest(Rp.create()),returns:r||Rp.create(),typeName:vt.ZodFunction,...Dt(n)})}},IA=class extends Lt{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};IA.create=(e,t)=>new IA({getter:e,typeName:vt.ZodLazy,...Dt(t)});var RA=class extends Lt{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return Me(r,{received:r.data,code:ke.invalid_literal,expected:this._def.value}),At}return{status:"valid",value:t.data}}get value(){return this._def.value}};RA.create=(e,t)=>new RA({value:e,typeName:vt.ZodLiteral,...Dt(t)});function Fwe(e,t){return new TA({values:e,typeName:vt.ZodEnum,...Dt(t)})}var TA=class e extends Lt{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return Me(r,{expected:er.joinValues(n),received:r.parsedType,code:ke.invalid_type}),At}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return Me(r,{received:r.data,code:ke.invalid_enum_value,options:n}),At}return Xi(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};TA.create=Fwe;var kA=class extends Lt{_parse(t){let r=er.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Je.string&&n.parsedType!==Je.number){let s=er.objectValues(r);return Me(n,{expected:er.joinValues(s),received:n.parsedType,code:ke.invalid_type}),At}if(this._cache||(this._cache=new Set(er.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let s=er.objectValues(r);return Me(n,{received:n.data,code:ke.invalid_enum_value,options:s}),At}return Xi(t.data)}get enum(){return this._def.values}};kA.create=(e,t)=>new kA({values:e,typeName:vt.ZodNativeEnum,...Dt(t)});var Ch=class extends Lt{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Je.promise&&r.common.async===!1)return Me(r,{code:ke.invalid_type,expected:Je.promise,received:r.parsedType}),At;let n=r.parsedType===Je.promise?r.data:Promise.resolve(r.data);return Xi(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ch.create=(e,t)=>new Ch({type:e,typeName:vt.ZodPromise,...Dt(t)});var Cc=class extends Lt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===vt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{Me(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){let o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return At;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?At:c.status==="dirty"?AA(c.value):r.value==="dirty"?AA(c.value):c});{if(r.value==="aborted")return At;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?At:a.status==="dirty"?AA(a.value):r.value==="dirty"?AA(a.value):a}}if(s.type==="refinement"){let o=a=>{let c=s.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?At:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?At:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!wh(o))return At;let a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>wh(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:r.value,value:a})):At);er.assertNever(s)}};Cc.create=(e,t,r)=>new Cc({schema:e,typeName:vt.ZodEffects,effect:t,...Dt(r)});Cc.createWithPreprocess=(e,t,r)=>new Cc({schema:t,effect:{type:"preprocess",transform:e},typeName:vt.ZodEffects,...Dt(r)});var bc=class extends Lt{_parse(t){return this._getType(t)===Je.undefined?Xi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};bc.create=(e,t)=>new bc({innerType:e,typeName:vt.ZodOptional,...Dt(t)});var Ru=class extends Lt{_parse(t){return this._getType(t)===Je.null?Xi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ru.create=(e,t)=>new Ru({innerType:e,typeName:vt.ZodNullable,...Dt(t)});var BA=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===Je.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};BA.create=(e,t)=>new BA({innerType:e,typeName:vt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Dt(t)});var NA=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return $b(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Xo(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Xo(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};NA.create=(e,t)=>new NA({innerType:e,typeName:vt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Dt(t)});var Vb=class extends Lt{_parse(t){if(this._getType(t)!==Je.nan){let n=this._getOrReturnCtx(t);return Me(n,{code:ke.invalid_type,expected:Je.nan,received:n.parsedType}),At}return{status:"valid",value:t.data}}};Vb.create=e=>new Vb({typeName:vt.ZodNaN,...Dt(e)});var evt=Symbol("zod_brand"),yR=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},ER=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?At:i.status==="dirty"?(r.dirty(),AA(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?At:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:vt.ZodPipeline})}},_A=class extends Lt{_parse(t){let r=this._def.innerType._parse(t),n=s=>(wh(s)&&(s.value=Object.freeze(s.value)),s);return $b(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}};_A.create=(e,t)=>new _A({innerType:e,typeName:vt.ZodReadonly,...Dt(t)});function Dwe(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function Lwe(e,t={},r){return e?Sh.create().superRefine((n,s)=>{let i=e(n);if(i instanceof Promise)return i.then(o=>{if(!o){let a=Dwe(t,n),c=a.fatal??r??!0;s.addIssue({code:"custom",...a,fatal:c})}});if(!i){let o=Dwe(t,n),a=o.fatal??r??!0;s.addIssue({code:"custom",...o,fatal:a})}}):Sh.create()}var tvt={object:Zo.lazycreate},vt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(vt||(vt={}));var rvt=(e,t={message:`Input not instance of ${e.name}`})=>Lwe(r=>r instanceof e,t),Uwe=bh.create,$we=yA.create,nvt=Vb.create,svt=EA.create,qwe=wA.create,ivt=bA.create,ovt=Gb.create,avt=SA.create,cvt=CA.create,lvt=Sh.create,uvt=Rp.create,dvt=Rl.create,pvt=jb.create,fvt=Tp.create,hvt=Zo.create,mvt=Zo.strictCreate,gvt=vA.create,Avt=KD.create,yvt=xA.create,Evt=Iu.create,wvt=XD.create,bvt=Hb.create,Svt=zb.create,Cvt=ZD.create,vvt=IA.create,xvt=RA.create,Ivt=TA.create,Rvt=kA.create,Tvt=Ch.create,kvt=Cc.create,Bvt=bc.create,Nvt=Ru.create,_vt=Cc.createWithPreprocess,Pvt=ER.create,Dvt=()=>Uwe().optional(),Ovt=()=>$we().optional(),Qvt=()=>qwe().optional(),Mvt={string:(e=>bh.create({...e,coerce:!0})),number:(e=>yA.create({...e,coerce:!0})),boolean:(e=>wA.create({...e,coerce:!0})),bigint:(e=>EA.create({...e,coerce:!0})),date:(e=>bA.create({...e,coerce:!0}))};var Fvt=At;var Wb=["playwright","pytest","robot","junit","vitest","jest","mocha","go","rspec","jasmine"];var Gwe="skyramp_session_storage.json";var t3;(function(e){e.PYTHON="python",e.TYPESCRIPT="typescript",e.JAVASCRIPT="javascript",e.JAVA="java"})(t3||(t3={}));var Tu;(function(e){e.SMOKE="smoke",e.FUZZ="fuzz",e.CONTRACT="contract",e.LOAD="load",e.INTEGRATION="integration",e.E2E="e2e",e.UI="ui",e.UNIT="unit",e.UNKNOWN="unknown"})(Tu||(Tu={}));var Qwr=[Tu.CONTRACT,Tu.INTEGRATION,Tu.E2E,Tu.UI];var jwe;(function(e){e.Rest="rest",e.Grpc="grpc",e.Kafka="kafka"})(jwe||(jwe={}));var eO;(function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS"})(eO||(eO={}));var wR;(function(e){e.LOCAL="local",e.DOCKER="docker",e.KUBERNETES="k8s"})(wR||(wR={}));var Lvt=Ie.nativeEnum(wR),r3=Ie.preprocess(e=>e==="kubernetes"?wR.KUBERNETES:e,Lvt);var Uvt=Ie.object({language:Ie.nativeEnum(t3).describe("Programming language for the generated test (default: python). Must be one of: python, typescript, javascript, java"),framework:Ie.string().describe(`Testing framework to use. Supported: ${Wb.join(", ")} (e.g. pytest for python, playwright/vitest/jest for js/ts, junit for java).`)}),Hwe=Ie.object({...Uvt.shape,deployDashboard:Ie.boolean().default(!1).describe("Whether to deploy the Skyramp dashboard for test monitoring"),runtime:r3.default(wR.LOCAL).describe("Runtime environment (local, docker, or k8s; accepts kubernetes as an alias)"),dockerNetwork:Ie.string().default("").describe("Docker network name to use for containerized testing"),dockerWorkerPort:Ie.number().int().min(0).max(65535).default(0).describe("Port number for the Docker worker service"),k8sNamespace:Ie.string().default("").describe("Kubernetes namespace for deployment"),k8sConfig:Ie.string().default("").describe("Path to Kubernetes configuration file"),k8sContext:Ie.string().default("").describe("Kubernetes context to use"),authHeader:Ie.string().default("").describe("Name of the HTTP header that carries the auth credential. Common values: 'Authorization' (Bearer/Basic/Token auth), 'X-Api-Key', 'X-Auth-Token', 'Cookie'. Other accepted values: 'X-Access-Token', 'X-OAuth-Token', 'X-Client-ID', 'X-Client-Secret', 'X-Client-Token', 'X-GitHub-Token', 'X-Firebase-AppCheck', 'Proxy-Authorization', 'Fastly-Key', 'Heroku-Bearer'. Pass empty string to document an unauthenticated endpoint in the generated test's assertions. This is the header KEY name (e.g., 'X-Api-Key'), NOT the token value."),authScheme:Ie.string().default("").describe("Only for Authorization headers. The literal prefix before the token (e.g., 'Bearer' produces 'Authorization: Bearer <token>'). Common values: 'Bearer', 'Basic', 'Token'. If the API sends raw tokens with no prefix (e.g., 'Authorization: eyJ...'), leave empty or omit. Ignored when authHeader is not 'Authorization'."),insecure:Ie.boolean().default(!1).describe("Whether to allow insecure SSL connections for HTTPS endpoints"),output:Ie.string().optional().refine(e=>!e||e===""?!0:[".py",".ts",".js",".java"].some(r=>e.endsWith(r)),{message:"Output file must have one of these extensions: .py, .ts, .js, .java"}).describe("Name of the output test file. For Playwright, name the file the way the repository names its tests: read the test files already in outputDir and match their spelling. Use *.test.ts where they use it, *.spec.ts otherwise (e.g. contract_math_add.spec.ts, fuzz_orders.test.ts). For other frameworks (pytest, junit), standard extensions are fine (.py, .java). Optional \u2014 when omitted, Skyramp generates a default name."),outputDir:Ie.string().describe("MUST be absolute path to the directory where test files will be generated. If not provided, the CURRENT WORKING DIRECTORY will be used WITHOUT ANY SUBDIRECTORIES"),force:Ie.boolean().default(!0).describe("Whether to overwrite existing files in the output directory"),mockPort:Ie.number().int().min(0).max(65535).default(0).describe("Port number for the mock server"),optionalFields:Ie.boolean().default(!1).describe("Whether to include optional fields in the generated test/mock"),prompt:Ie.string().describe("The prompt user provided to generate the test")}),Mwr=Ie.object({playwrightInput:Ie.string().describe("MUST be absolute path to the playwright input file like /path/to/playwright-ui-test.zip and MUST be a zip file captured using start_trace_collection tool"),playwrightStoragePath:Ie.string().optional().describe("Path to LOAD existing playwright session storage for trace collection with playwright enabled. THE PATH MUST BE AN ABSOLUTE PATH LIKE /Users/<path>/<filename>.json"),playwrightSaveStoragePath:Ie.string().optional().describe(`Path to SAVE Playwright session storage after trace collection. Omit this argument to use the default \u2014 \`${Gwe}\` resolved against the active outputDir, which produces an absolute path like '/abs/outputDir/${Gwe}'. SAVES authentication state (cookies, localStorage, sessionStorage) when the browser closes. To LOAD existing auth state, use playwrightStoragePath instead. Can be a bare filename (joined with outputDir), a relative path, or an absolute path.`),playwrightViewportSize:Ie.union([Ie.enum(["","hd","full-hd","2k"]),Ie.string().regex(/^\d+,\d+$/,"Custom viewport must be 'WIDTH,HEIGHT' format (e.g., '1920,1080')")]).default("").describe("Viewport size for playwright browser. THE VALUE MUST BE IN THE FORMAT ['', 'hd', 'full-hd', '2k', 'x,y' e.g. '1920,1080' for 1920x1080 resolution]. DEFAULT VALUE IS ''. If set to '', the browser will use its default viewport size."),browser:Ie.enum(["chromium","firefox","webkit"]).default("chromium").describe("Browser to use for Playwright trace collection. Supported browsers: 'chromium' (default), 'firefox', 'webkit'. Choose based on your testing requirements and target browser compatibility."),device:Ie.string().default("").describe("Device to emulate for Playwright trace collection. Supported devices include: 'iPhone 13', 'iPhone 13 Pro', 'Pixel 5', 'Galaxy S9+', 'iPad Pro', etc. Leave empty for no device emulation (desktop). Use specific device names for mobile/tablet testing.")}),Fwr=Ie.object({trace:Ie.string().describe("Absolute path to the trace file in JSON format (e.g., /path/to/trace.json). Must use .json extension only. Do not use .jsonl files."),include:Ie.array(Ie.string()).default([]).describe("List of endpoints or patterns to include in test generation."),exclude:Ie.array(Ie.string()).default([]).describe("List of endpoints or patterns to exclude from test generation."),...Hwe.shape}),Lwr={endpointURL:Ie.string().describe("The full endpoint URL to test including base URL and path (e.g., https://demoshop.skyramp.dev/api/v1/products). MUST include both the base URL and the endpoint path \u2014 never just the base URL alone."),method:Ie.union([Ie.nativeEnum(eO),Ie.literal("")]).default("").describe('HTTP method to use. DEFAULT: Use empty string ("") to test ALL available methods from OpenAPI schema (recommended). Only specify a specific method (GET, POST, PUT, DELETE, etc.) if user explicitly requests testing a single method only.'),apiSchema:Ie.string().default("").describe("MUST be absolute path(/path/to/openapi.json) to the OpenAPI/Swagger schema file or a URL to the OpenAPI/Swagger schema file(e.g. https://demoshop.skyramp.dev/openapi.json). DO NOT TRY TO ASSUME THE OPENAPI SCHEMA IF NOT PROVIDED. NOTE TO AI ASSISTANTS: You do not need to read the contents of this file - simply pass the file path as the backend will read and process it."),pathParams:Ie.string().default("").describe("Comma-separated path parameter values in the form 'key=value,key2=value2' (e.g., 'id=1,name=John'). DO NOT populate this field unless the user has explicitly provided path parameter values. For contract tests, parent path parameters are automatically handled via the parent provisioning mechanism (parentRequestData) \u2014 do NOT invent or guess values for those here. Only supply this field if the user explicitly states specific path parameter values to use."),queryParams:Ie.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for URL query parameters. Workspace-configured api.defaultQueryParams (if set) are merged in automatically, with any api.queryParamOverrides entry whose pathPattern matches this endpoint layered on top \u2014 no need to repeat them here. An explicit value for the same key here overrides both."),formParams:Ie.string().default("").describe("MUST be string of comma separated values like 'id=1,name=John' for form data parameters"),requestData:Ie.string().default("").refine(e=>{if(!e||e===""||e.startsWith("@"))return!0;try{return JSON.parse(e),!0}catch{}let t=e.trim();return!!(t.startsWith("---")||/^\w[\w\s]*:/.test(t)||t.startsWith("-"))},{message:"requestData must be valid JSON, YAML, or an absolute file path prefixed with '@'. Received what appears to be plain text. Provide the actual request body as a JSON object."}).describe("Sample request body data, provided either as an inline JSON/YAML string or as an absolute file path prefixed with '@' (e.g., @/absolute/path/to/file). MUST be valid JSON or YAML \u2014 do NOT pass natural language descriptions."),responseStatusCode:Ie.string().default("").refine(e=>!e||/^[1-5]\d{2}$/.test(e),{message:"Must be a valid HTTP status code in 100-599 (e.g., '200', '404') or empty string"}).describe("Expected HTTP response status code (e.g., '200', '201', '404'). DO NOT ASSUME STATUS CODE IF NOT PROVIDED"),...Hwe.shape},Uwr=Ie.object({codeReuse:Ie.boolean().default(!1).describe("Reuse existing code in the generated test \u2014 consolidates helper functions shared with sibling Skyramp-generated tests into a SkyrampUtils file; for TS/JS Playwright tests with POM reuse enabled it instead refactors the test to use the repo's existing Page Object Model"),modularizeCode:Ie.boolean().default(!1).describe("Whether to modularize the code")}),$wr=[Tu.INTEGRATION,Tu.CONTRACT,Tu.UI];var tO;(function(e){e.Bug="bug",e.Lint="lint",e.Type="type",e.Config="config"})(tO||(tO={}));var rO;(function(e){e.NotMapped="not-mapped",e.DemotedByVerify="demoted-by-verify"})(rO||(rO={}));var nO;(function(e){e.Passed="passed",e.Failed="failed",e.SkippedNoPom="skipped-no-pom"})(nO||(nO={}));var n3;(function(e){e.Passed="passed",e.Failed="failed",e.NoUtilsFile="no-utils-file"})(n3||(n3={}));zt();var sO=e=>`${e} POM call${e===1?"":"s"}`,Gt={testRecommendationsImplementedHeader:e=>`\u{1F4A1} Test Recommendations Implemented (${e})`,testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:e=>`${sO(e)} reused and verified`,reusedThenVerified:(e,t)=>`${sO(e)} reused, ${t} of them verified`,reused:e=>`${sO(e)} reused`,verified:e=>`${sO(e)} verified`,unresolved:e=>`${e} not resolvable to POM source (informational, not declines)`,candidates:e=>`${e} candidate POM file${e===1?"":"s"} detected`,verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:e=>`kept inline: ${e}`,gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:e=>`\u2705 Test Maintenance (${e})`,maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:e=>`\u{1F9EA} Test Results (${e})`,columnVideo:"Video",videoDownloadLink:e=>`[\u{1F4F9} download](${e})`,videosArtifactFallback:e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F Issues Found (${e})`,configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:e=>e?"passed against the running app":"passed",notRun:e=>e?"not run against a live app this run":"not run this run",failedBug:e=>e?"failed against the running app":"failed",executedOf:(e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,noneExecuted:e=>e?"; none were executed against a live app this run.":"; none were executed this run."},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,finalizeNotReady:e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,ciUnconfirmed:e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,analysisUnverified:e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,unitTestsNotRun:e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,componentsNotTested:e=>`Not tested: changed parts of the code the plan did not test. ${e}`,componentsWithoutReason:e=>`The plan gave no reason for leaving out: ${e}.`,testSettingsDiffer:e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,downstreamNotChecked:e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,browserBuildNotDeclared:(e,t,r)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${r}\` there.`,testsCouldNotRunHere:(e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,modelProviderDenied:(e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,modelProviderUnavailable:(e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`},nextSteps:{componentMismatch:(e,t,r,n)=>`${e} (${t}) in the Test Environment runs ${r}, which does not contain ${n}, the commit this run validates.`,componentUnverified:(e,t,r,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it reports ${r}.`,componentUnread:(e,t,r)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${r}, the commit this run validates: it has no record of which commit that component runs.`,deployCommit:(e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`},providerOutageHeadline:(e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,providerOutageActionStatusPage:e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,providerRateLimitHeadline:e=>`Testbot was rate-limited by ${e} (HTTP 429).`,providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:e=>`The account behind ${e} has reached its usage limit.`,providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:e=>`Tests for source pull request ${e}`,requestedByPerson:e=>`Requested by ${e}`,requestedByPolicy:e=>`Started by the Validation Policy ${e}`,notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,unitTestsInFile:(e,t,r)=>`**${e}**: ${t} unit test${t===1?"":"s"}${r?` for ${r}`:""}`,addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:(e,t)=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config. Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:(e,t,r)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${r?`: ${r}`:""}`,testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:(e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:(e,t,r)=>`${e}/${t} passed${r?`, ${r} skipped`:""}`,behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:(e,t,r,n)=>` (${e} generated \xB7 ${t} modified \xB7 ${r} verified \xB7 ${n} executed)`,coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:(e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:e=>e?`${e} hook`:"commit hook",commitRefusedByHook:(e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,commitHookCouldNotRun:(e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,maintenanceActions:{},stoppedEarly:(e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,viewInSkyramp:e=>` [View in Skyramp](${e})`,descriptionCut:(e,t,r)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${r?` [Full report](${r})`:""}_`,testsReplaced:(e,t,r)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,r?`The tests of [the earlier run](${r}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:e=>`Unable to contact the mothership ${e}. Please try again later.`,couldNotStart:e=>`Skyramp Testbot could not start: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,testbotPrLine:(e,t,r)=>`Testbot PR${e?` (${e})`:""} : [${t}](${r})`,viewRun:e=>`_[View run](${e})_`,testsPrNotOpened:(e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,testsNotDelivered:e=>`The tests could not be delivered: ${e}`,testsNotPushed:(e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,testsPrRetargeted:e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:e=>`The tests were committed but no PR was opened: ${e}.`,testsNotProposed:e=>`The tests were not proposed in a pull request: ${e}.`}};var zwe={testRecommendationsImplementedHeader:e=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08${e}\u4EF6\uFF09`,testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,reusedThenVerified:(e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,reused:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,verified:e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,unresolved:e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,candidates:e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,videosArtifactFallback:e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,issuesFoundHeader:e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F",notRun:e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",failedBug:e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F",executedOf:(e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,noneExecuted:e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,finalizeNotReady:e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,ciUnconfirmed:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,analysisUnverified:e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,unitTestsNotRun:e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,componentsNotTested:e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,componentsWithoutReason:e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,testSettingsDiffer:e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,downstreamNotChecked:e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,browserBuildNotDeclared:(e,t,r)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${r}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,testsCouldNotRunHere:(e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,modelProviderDenied:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,modelProviderUnavailable:(e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`},nextSteps:{componentMismatch:(e,t,r,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${r} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,componentUnverified:(e,t,r,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${r}\u3002`,componentUnread:(e,t,r)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${r} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,deployCommit:(e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`},providerOutageHeadline:(e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,providerOutageActionStatusPage:e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,providerRateLimitHeadline:e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,requestedByPerson:e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,requestedByPolicy:e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,unitTestsInFile:(e,t,r)=>`**${e}**: ${r?`${r} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:(e,t)=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:(e,t,r)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${r?`: ${r}`:""}`,testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:(e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:(e,t,r)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${r?`\u3001${r} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:(e,t,r,n)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${r} \xB7 \u5B9F\u884C ${n}\uFF09`,coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:(e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF",commitRefusedByHook:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,commitHookCouldNotRun:(e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,stoppedEarly:(e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,viewInSkyramp:e=>` [Skyramp \u3067\u8868\u793A](${e})`,descriptionCut:(e,t,r)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${r?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${r})`:""}_`,testsReplaced:(e,t,r)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,r?`[\u4EE5\u524D\u306E\u5B9F\u884C](${r})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,couldNotStart:e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,assembledAfterFailedChecks:e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,testbotPrLine:(e,t,r)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${r})`,viewRun:e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,testsPrNotOpened:(e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,testsNotDelivered:e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,testsNotPushed:(e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,testsPrRetargeted:e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,testsNotProposed:e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`}};var Jb=(r=>(r.En="en",r.Ja="ja",r))(Jb||{}),$vt={en:Gt,ja:zwe},s3="en";function iO(e){let t=e.trim().toLowerCase();if(t==="")return"en";let r=Object.values(Jb);return r.includes(t)?t:(Re(`Invalid language '${e}'. Supported: ${r.join(", ")}. Falling back to 'en'.`),"en")}function i3(e){s3=e}function PA(){return s3}function kp(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}function Be(){return $vt[s3]}var oO=(a=>(a.ProviderOutage="provider_outage",a.ProviderRateLimit="provider_rate_limit",a.ProviderUsageLimit="provider_usage_limit",a.ProviderAuthExpired="provider_auth_expired",a.Timeout="timeout",a.NoReport="no_report",a.RenderFailure="render_failure",a))(oO||{});(t=>{function e(r,n){switch(r){case"provider_outage":return{headline:Be().providerOutageHeadline(n.provider.name,n.maxRetries),action:Be().providerOutageActionStatusPage(n.provider.statusUrl)};case"provider_rate_limit":return{headline:Be().providerRateLimitHeadline(n.provider.name),action:Be().providerRateLimitAction};case"provider_usage_limit":return{headline:Be().providerUsageLimitHeadline(n.provider.name),action:Be().providerUsageLimitAction};case"provider_auth_expired":return{headline:Be().providerAuthExpiredHeadline(n.provider.name),action:Be().providerAuthExpiredAction};case"timeout":return{headline:Be().providerTimeoutHeadline(n.timeoutMinutes),action:Be().providerTimeoutAction};case"no_report":case"render_failure":return}}t.buildNotice=e})(oO||={});var o3=(r=>(r.SameBranch="same-branch",r.SeparateBranch="separate-branch",r))(o3||{}),bR=class{supportsNdjsonLog=!1;reusesPreinstalledCli=!0;setupAgentEnv(t,r){let n=t[this.apiKeyField];n&&dh(this.envVar,n)}};MTe();var FTe=e=>E4({...e});var w4=(r=>(r.Sonnet="sonnet",r.Opus="opus",r))(w4||{}),$Rt="opus",qRt={sonnet:"anthropic.claude-sonnet-5[1m]",opus:"anthropic.claude-opus-5-5[1m]"};function p0(e){return Object.values(w4).includes(e)}function LTe(e){let t=(e??"").trim();if(t==="")return $Rt;let r=t.toLowerCase();return p0(r)?r:t}function GRt(e){let t=(e??"").trim().toLowerCase();return t.startsWith("us-gov-")?"us-gov":t.startsWith("eu-")?"eu":t.startsWith("ap-")?"apac":"us"}function b4(e,t){return`${GRt(t)}.${qRt[e]}`}function UTe(e){return e||process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||""}async function $Te(e){return FTe({roleArn:e.roleArn,webIdentityToken:e.webIdentityToken,roleSessionName:e.roleSessionName,durationSeconds:e.durationSeconds,clientConfig:{region:e.region}})()}var jRt=28800;async function qTe(e){let t=e.env??process.env;if(!e.roleArn.trim())throw new Error("useBedrock on Azure Pipelines needs the awsRoleArn input: the role Testbot assumes with the job's OIDC token");if(!e.region.trim())throw new Error("useBedrock needs the awsRegion input");let r=await(e.assumeRole??$Te)({roleArn:e.roleArn.trim(),webIdentityToken:await e.token("sts.amazonaws.com"),roleSessionName:`testbot-${e.runId}`.replace(/[^A-Za-z0-9=,.@_-]/g,"").slice(0,64),region:e.region.trim(),durationSeconds:jRt});if(!r.accessKeyId||!r.secretAccessKey||!r.sessionToken)throw new Error("assume-role returned an incomplete credential triple");e.setSecret(r.accessKeyId),e.setSecret(r.secretAccessKey),e.setSecret(r.sessionToken),t.AWS_ACCESS_KEY_ID=r.accessKeyId,t.AWS_SECRET_ACCESS_KEY=r.secretAccessKey,t.AWS_SESSION_TOKEN=r.sessionToken}var d0=3600,HRt=43200,zRt=15;function VRt(e){let t=Math.ceil((e+zRt)*60);return Math.min(HRt,Math.max(d0,t))}function WRt(e){return e instanceof Error?e.name==="ValidationError"&&/MaxSessionDuration|DurationSeconds/i.test(e.message):!1}async function GTe(e){let t=e.env??process.env,r=t.AWS_ROLE_ARN?.trim(),n=t.AWS_REGION?.trim()||t.AWS_DEFAULT_REGION?.trim();if(t.SKYRAMP_REFRESH_BEDROCK_SESSION!=="1"||t.CLAUDE_CODE_USE_BEDROCK!=="1")return!1;let s=e.identity;if(!r||!s||!n)return e.debug("Bedrock session refresh skipped: needs AWS_ROLE_ARN, AWS_REGION (or AWS_DEFAULT_REGION) and a web identity from the job"),!1;try{let i=await s.token("sts.amazonaws.com");if(!i)throw new Error("OIDC response carried no token value");let o=`testbot-agent-${s.runId??"local"}`.replace(/[^A-Za-z0-9=,.@_-]/g,"").slice(0,64),a=e.assumeRole??$Te,c={roleArn:r,webIdentityToken:i,roleSessionName:o,region:n},l=VRt(e.timeoutMinutes),u,d=d0;try{u=await a({...c,durationSeconds:l}),d=l}catch(p){if(l<=d0||!WRt(p))throw p;e.warning(`The Bedrock role rejected a ${l}s session (its MaxSessionDuration is lower). Minting a ${d0}s session instead, which is shorter than the ${e.timeoutMinutes}m testbotTimeout; raise MaxSessionDuration on ${r} to at least ${l}s or the agent can lose its credentials mid-run.`),u=await a({...c,durationSeconds:d0})}if(!u.accessKeyId||!u.secretAccessKey||!u.sessionToken)throw new Error("assume-role returned an incomplete credential triple");return e.setSecret(u.accessKeyId),e.setSecret(u.secretAccessKey),e.setSecret(u.sessionToken),t.AWS_ACCESS_KEY_ID=u.accessKeyId,t.AWS_SECRET_ACCESS_KEY=u.secretAccessKey,t.AWS_SESSION_TOKEN=u.sessionToken,e.debug(`Minted a fresh Bedrock session for this agent attempt (${d}s)`),e.onMinted?.(u.expiration?.getTime()??Date.now()+d*1e3),!0}catch(i){return e.warning(`Could not refresh the Bedrock session; continuing with existing credentials: ${i instanceof Error?i.message:String(i)}`),!1}}var FQ=(i=>(i.Low="low",i.Medium="medium",i.High="high",i.XHigh="xhigh",i.Max="max",i))(FQ||{}),wS="high",jTe="medium";function HTe(e){return Object.values(FQ).includes(e)}var zTe=5;function JRt(e){let t=e.split(/\r?\n/).map(r=>r.trim()).filter(Boolean);if(t.length>zTe)throw new Error(`relatedRepoPaths supports at most ${zTe} entries (got ${t.length}); the cap limits how much cross-repo context is loaded to avoid overflowing Testbot's context window.`);return t}function YRt(e){let t=e.trim().toLowerCase();return t===""?"separate-branch":Object.values(o3).includes(t)?t:(Re(`Invalid generatedTestsMode '${e}'. Falling back to 'separate-branch'.`),"separate-branch")}function KRt(e){let t=(e??"").trim();if(t!==""){if(/^(?:[1-9]|10)$/.test(t))return Number(t);Re(`Ignoring perTestMaxFixAttempts="${e}": expected a whole number from 1 to 10; the Skyramp MCP default applies`)}}function XRt(e){let t=(e??"").trim().toLowerCase();return t===""?wS:HTe(t)?t:(Re(`Ignoring effort="${e}": expected one of ${Object.values(FQ).join(", ")}; using "${wS}"`),wS)}function VTe(){let e=LTe(Ve("model"));return p0(e)||Re(`model '${e}' is not a tested alias (sonnet, opus); passing it to the agent verbatim as a raw model id.`),{skyrampLicenseFile:Ve("skyrampLicenseFile"),cursorApiKey:Ve("cursorApiKey"),copilotApiKey:Ve("copilotApiKey"),anthropicApiKey:Ve("anthropicApiKey"),useBedrock:ph("useBedrock"),awsRegion:Ve("awsRegion"),useLocalAuth:Ve("useLocalAuth").toLowerCase()==="true",model:e,effort:XRt(Ve("effort")),targetSetupCommand:Ve("targetSetupCommand"),authTokenCommand:Ve("authTokenCommand"),uiCredentials:Ve("uiCredentials"),targetTeardownCommand:Ve("targetTeardownCommand"),skipTargetTeardown:ph("skipTargetTeardown"),skyrampExecutorVersion:Ve("skyrampExecutorVersion"),skyrampMcpVersion:Ve("skyrampMcpVersion"),skyrampMcpSource:Ve("skyrampMcpSource"),skyrampMcpGithubToken:Ve("skyrampMcpGithubToken"),skyrampMcpGithubRef:Ve("skyrampMcpGithubRef"),nodeVersion:Ve("nodeVersion"),skipTargetSetup:ph("skipTargetSetup"),targetReadyCheckCommand:Ve("targetReadyCheckCommand"),targetReadyCheckTimeout:(()=>{let r=parseInt(Ve("targetReadyCheckTimeout"),10)||1800;return r<1?(Re(`targetReadyCheckTimeout must be at least 1 second, got ${r}. Using 1s.`),1):r})(),targetReadyCheckInterval:(()=>{let r=parseInt(Ve("targetReadyCheckInterval"),10),n=isNaN(r)?30:r;return n<1?(Re(`targetReadyCheckInterval must be at least 1 second, got ${n}. Using 1s.`),1):n})(),targetReadyCheckDiagnosticsCommand:(()=>{let r=Ve("targetReadyCheckDiagnosticsCommand");return r.trim().toLowerCase()==="none"?"":r})(),workingDirectory:Ve("workingDirectory"),autoCommit:ph("autoCommit"),commitMessage:Ve("commitMessage"),generatedTestsMode:YRt(Ve("generatedTestsMode")),postPrComment:ph("postPrComment"),testExecutionTimeout:parseInt(Ve("testExecutionTimeout"),10)||300,maxRecommendations:(()=>{let r=parseInt(Ve("maxRecommendations"),10);return isNaN(r)?void 0:Math.max(0,r)})(),maxGenerate:(()=>{let r=parseInt(Ve("maxGenerate"),10);return isNaN(r)?void 0:Math.max(0,r)})(),perTestMaxFixAttempts:KRt(Ve("perTestMaxFixAttempts")),testbotMaxRetries:parseInt(Ve("testbotMaxRetries"),10)||3,testbotRetryDelay:parseInt(Ve("testbotRetryDelay"),10)||10,testbotTimeout:parseInt(Ve("testbotTimeout"),10)||60,targetSetupRetries:parseInt(Ve("targetSetupRetries"),10)||3,targetSetupRetryDelay:parseInt(Ve("targetSetupRetryDelay"),10)||10,authTokenRetries:(()=>{let r=parseInt(Ve("authTokenRetries"),10);return Number.isFinite(r)&&r>=1?r:6})(),authTokenRetryDelay:(()=>{let r=parseInt(Ve("authTokenRetryDelay"),10);return Number.isFinite(r)&&r>=0?r:10})(),reportCollapsed:ph("reportCollapsed"),language:iO(Ve("language")),enableDebug:ph("enableDebug"),testRepoPath:Ve("testRepoPath")||void 0,relatedRepoPaths:JRt(Ve("relatedRepoPaths")),allowedAuthors:Ve("allowedAuthors").split(/\r?\n/).map(r=>r.trim()).filter(Boolean)}}zt();RW();var YTe=X(require("child_process")),S4=class extends Error{constructor(t){super(t),this.name="ExecTimeoutError"}},LQ=class extends Error{constructor(t){super(t),this.name="ExecAbortedError"}};function WTe(e,t){if(!(!e||e.destroyed||e.writableEnded))try{e.write(t)}catch(r){Re(`stream write failed: ${r instanceof Error?r.message:String(r)}`)}}async function vs(e,t=[],r={}){let n="",s="",i={cwd:r.cwd,silent:r.silent??!1,ignoreReturnCode:r.ignoreReturnCode??!1,env:r.env?{...process.env,...r.env}:void 0,input:r.input,listeners:{stdout:a=>{n+=a.toString(),WTe(r.stdoutStream,a)},stderr:a=>{s+=a.toString()}}};if(r.timeout||r.signal){let a=r.signal;return a?.aborted?Promise.reject(new LQ(`Command aborted before start: ${e}`)):new Promise((c,l)=>{let u=YTe.spawn(e,t,{cwd:r.cwd,env:r.env?{...process.env,...r.env}:process.env,stdio:["pipe","pipe","pipe"],shell:!1});u.stdout?.on("data",A=>{n+=A.toString(),r.silent||process.stdout.write(A),WTe(r.stdoutStream,A)}),u.stderr?.on("data",A=>{s+=A.toString(),r.silent||process.stderr.write(A)}),r.input&&u.stdin?.end(r.input);let d=()=>{m&&clearTimeout(m),a?.removeEventListener("abort",f)},p=A=>{d();try{u.kill("SIGTERM")}catch{}l(A)},f=()=>p(new LQ(`Command aborted: ${e}`)),m=r.timeout?setTimeout(()=>p(new S4(`Command timed out after ${Math.round(r.timeout/6e4)}m: ${e}`)),r.timeout):void 0;a?.addEventListener("abort",f,{once:!0}),u.on("close",A=>{d();let E=A??1;E!==0&&!r.ignoreReturnCode?l(new Error(`The process '${e}' failed with exit code ${E}`)):c({exitCode:E,stdout:n,stderr:s})}),u.on("error",A=>{d(),l(A)})})}return{exitCode:await ewe(e,t,i),stdout:n,stderr:s}}function ZRt(e){return new Promise(t=>setTimeout(t,e*1e3))}async function cy(e,t){for(let r=1;r<=t.retries;r++)try{return await e()}catch(n){if(r<t.retries)Re(`${t.label} failed, retrying (${r}/${t.retries})...`),await ZRt(t.delay);else throw n}throw new Error("unreachable")}async function f0(e,t){Sb(e);try{return await t()}finally{Cb()}}var e0t=1e3;function ly(e){return e*e0t}function h0(e){let t=e.split("/");return t.length===2&&t[0]&&t[1]?{owner:t[0],repo:t[1]}:null}var JTe=/^[A-Za-z_][A-Za-z0-9_.-]*$/;function KTe(e){if(e.startsWith("{"))try{let o=JSON.parse(e);return{username:typeof o.username=="string"?o.username:void 0,password:typeof o.password=="string"?o.password:void 0,role:typeof o.role=="string"?o.role:void 0}}catch{return{}}let t=e.indexOf(":"),n=!(t>=0&&!/[=;]/.test(e.slice(0,t)))&&/(^|;)\s*role\s*=/.test(e);if(/(^|;)\s*(username|password)\s*=/.test(e)||n){let o=new Map;for(let a of e.split(";")){let c=a.indexOf("=");c>0&&JTe.test(a.slice(0,c).trim())&&o.set(a.slice(0,c).trim(),a.slice(c+1).trim())}return{username:o.get("username"),password:o.get("password"),role:o.get("role")}}if(e==="")return{};if(!e.includes(":"))for(let o of e.split(";")){let a=o.indexOf("=");if(a>0&&JTe.test(o.slice(0,a).trim()))return{}}let[s,...i]=e.split(":");return{username:s,password:i.join(":")}}function t0t(e){let t=e.split(/\r?\n/).map(s=>s.trim()).find(s=>s!=="")??"",{username:r,password:n}=KTe(t);return{username:r,password:n}}function r0t(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}function n0t(e){let t=e.split(/\r?\n/).map(n=>n.trim()).filter(n=>n!==""),r=new Set;return t.map((n,s)=>{let{username:i,password:o,role:a}=KTe(n),c=s+1,l=a?r0t(a):"";for(l||(l=String(c));r.has(l);)l=`${l}_${c}`;return r.add(l),{key:l,username:i,password:o}})}function s0t(e){let t=n0t(e);if(t.length<2)return[];let r=[];for(let{key:n,username:s,password:i}of t)s!==void 0&&r.push({envName:`SKYRAMP_UI_USERNAME_${n}`,value:s}),i!==void 0&&r.push({envName:`SKYRAMP_UI_PASSWORD_${n}`,value:i});return r}var UQ="SKYRAMP_UI_USERNAME",bS="SKYRAMP_UI_PASSWORD";function XTe(e){let{username:t,password:r}=t0t(e);return[...t!==void 0?[{envName:UQ,value:t}]:[],...r!==void 0?[{envName:bS,value:r}]:[],...s0t(e)]}var ZTe=e=>e.replace(/[.[\]^$*+?(){}|\\]/g,"\\$&");async function C4(e){try{let{stdout:t,exitCode:r}=await vs("git",["remote","get-url","origin"],{cwd:e,silent:!0,ignoreReturnCode:!0});if(r!==0)return;let n=t.trim();if(!n)return;let i=n.replace(/\/+$/,"").replace(/\.git$/,"").match(/[/:]([^/:]+)\/([^/]+)$/);if(!i)return;let o=`${i[1]}/${i[2]}`;return h0(o)?o:void 0}catch{return}}zt();var qBe=X(require("path"));var SS=require("fs"),Mp=X(require("path"),1),zke=require("child_process"),Vke=require("util");function i0t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var eo={},$Q={},Fh={},eke;function m0(){if(eke)return Fh;eke=1;function e(o){return typeof o>"u"||o===null}function t(o){return typeof o=="object"&&o!==null}function r(o){return Array.isArray(o)?o:e(o)?[]:[o]}function n(o,a){if(a){let c=Object.keys(a);for(let l=0,u=c.length;l<u;l+=1){let d=c[l];o[d]=a[d]}}return o}function s(o,a){let c="";for(let l=0;l<a;l+=1)c+=o;return c}function i(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}return Fh.isNothing=e,Fh.isObject=t,Fh.toArray=r,Fh.repeat=s,Fh.isNegativeZero=i,Fh.extend=n,Fh}var v4,tke;function g0(){if(tke)return v4;tke=1;function e(r,n){let s="",i=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!n&&r.mark.snippet&&(s+=`
|
|
176
176
|
|
|
177
177
|
`+r.mark.snippet),i+" "+s):i}function t(r,n){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(n){return this.name+": "+e(this,n)},v4=t,v4}var x4,rke;function o0t(){if(rke)return x4;rke=1;let e=m0();function t(s,i,o,a,c){let l="",u="",d=Math.floor(c/2)-1;return a-i>d&&(l=" ... ",i=a-d+l.length),o-a>d&&(u=" ...",o=a+d-u.length),{str:l+s.slice(i,o).replace(/\t/g,"\u2192")+u,pos:a-i+l.length}}function r(s,i){return e.repeat(" ",i-s.length)+s}function n(s,i){if(i=Object.create(i||null),!s.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);let o=/\r?\n|\r|\0/g,a=[0],c=[],l,u=-1;for(;l=o.exec(s.buffer);)c.push(l.index),a.push(l.index+l[0].length),s.position<=l.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);let d="",p=Math.min(s.line+i.linesAfter,c.length).toString().length,f=i.maxLength-(i.indent+p+3);for(let A=1;A<=i.linesBefore&&!(u-A<0);A++){let E=t(s.buffer,a[u-A],c[u-A],s.position-(a[u]-a[u-A]),f);d=e.repeat(" ",i.indent)+r((s.line-A+1).toString(),p)+" | "+E.str+`
|
|
178
178
|
`+d}let m=t(s.buffer,a[u],c[u],s.position,f);d+=e.repeat(" ",i.indent)+r((s.line+1).toString(),p)+" | "+m.str+`
|
|
@@ -265,11 +265,11 @@ ${n.stderr??""}`.trim()}},j_t=[/^(python3?|py) -m pip install\b/,/^pip3? install
|
|
|
265
265
|
`),n=r.findIndex(a=>a.trim()==="[tool.uv.workspace]");if(n<0)return;let s=r.findIndex((a,c)=>c>n&&a.trim().startsWith("[")),i=r.slice(n+1,s<0?void 0:s).join(`
|
|
266
266
|
`),o=a=>{let c=i.match(new RegExp(`^\\s*${a}\\s*=\\s*\\[([^\\]]*)\\]`,"m"));return c?[...c[1].matchAll(/["']([^"']+)["']/g)].map(l=>l[1]):[]};return{members:o("members"),exclude:o("exclude")}}function oPt(e){return FK(LK(e))}function FK(e){try{return JSON.parse(e)}catch{return}}function SDe(e){try{return xo(e)}catch{return}}function aPt(e){try{return LBe(e)}catch{return[]}}function cPt(e){return SDe(LK(e))}function LK(e){try{return Y0.readFileSync(e,"utf-8")}catch{return""}}function Kh(e){try{return Y0.lstatSync(e).isFile()}catch{return!1}}var vDe={playwright:"tests/skyramp-e2e",pytest:"tests/skyramp-pytest"},Hu="run.sh",qa="test-package.json",xDe="skyrampTestbot",IDe="# skyramp-testbot-package: pytest",K0="tests",X0={playwright:"*.e2e.ts",pytest:"e2e_*.py"},WM=["node_modules",".venv","test-results","playwright-report","blob-report","__pycache__",".pytest_cache"],qK=e=>e.split(ot.sep).join("/"),Bc=e=>{try{return Sr.readFileSync(e,"utf-8")}catch{return}},nC=e=>{let t=Bc(e);if(t!==void 0)try{let r=JSON.parse(t);return r&&typeof r=="object"&&!Array.isArray(r)?r:void 0}catch{return}};function RDe(e){let t={...vDe},r=new Set,n=[];for(let s of(e??"").split(",").map(i=>i.trim()).filter(Boolean)){let i=s.match(/^(playwright|pytest)\s*=\s*(.+)$/),o=i?.[1]??"playwright",a=qK(ot.normalize((i?.[2]??s).trim())).replace(/\/+$/,"");!a||a==="."||ot.isAbsolute(a)||a===".."||a.startsWith("../")||wu(a)||a.split("/").some(c=>WM.includes(c))?n.push(`test package directory "${s}" is not a folder inside the checkout that ships; using ${t[o]}`):(t[o]=a,r.add(o))}return{dirs:t,configured:r,notes:n}}function Xh(e,t){let r=nC(ot.join(e,t,"package.json"))?.[xDe];if(r&&typeof r=="object")return r.runner==="pytest"?"pytest":"playwright";if((Bc(ot.join(e,t,"pytest.ini"))??"").split(/\r?\n/).some(n=>n.trim()===IDe))return"pytest"}function Z0(e){return[...new Set(iDe(e,["package.json","pytest.ini"]).map(r=>ot.posix.dirname(r)))].sort().flatMap(r=>{let n=r==="."?void 0:Xh(e,r);return n?[{runner:n,dir:r}]:[]})}function Nl(e,t){let r=qK(e);return t.some(n=>r===n||r.startsWith(`${n}/`))}function eT(e){return qK(e).split("/").some(t=>WM.includes(t))}function TDe(e){let t=e.split("||").map(r=>r.trim().match(/^(?:>=|\^|~|=|v)?\s*v?(\d+)/)).filter(r=>r!==null).map(r=>Number(r[1]));return t.length?Math.min(...t):void 0}function kDe(e){let t=ot.join(e,".github","workflows");try{return Sr.readdirSync(t).filter(r=>/\.ya?ml$/.test(r)).sort().map(r=>Bc(ot.join(t,r))??"")}catch{return[]}}function lPt(e){for(let s of[".nvmrc",".node-version"]){let i=(Bc(ot.join(e,s))??"").trim().match(/^v?(\d+)/);if(i)return{major:Number(i[1]),source:s}}let t=(Bc(ot.join(e,".tool-versions"))??"").match(/^nodejs\s+v?(\d+)/m);if(t)return{major:Number(t[1]),source:".tool-versions"};let r=nC(ot.join(e,"package.json"))?.engines?.node,n=typeof r=="string"?TDe(r):void 0;if(n!==void 0)return{major:n,source:"package.json engines.node"};for(let s of kDe(e)){let i=s.match(/node-version:\s*["']?v?(\d+)/);if(i)return{major:Number(i[1]),source:"the CI workflow's node-version"}}}function uPt(e){let t=(Bc(ot.join(e,".python-version"))??"").trim().match(/^(\d+\.\d+)/);if(t)return{version:t[1],source:".python-version"};let r=(Bc(ot.join(e,".tool-versions"))??"").match(/^python\s+(\d+\.\d+)/m);if(r)return{version:r[1],source:".tool-versions"};let n=(Bc(ot.join(e,"pyproject.toml"))??"").match(/^requires-python\s*=\s*["'][^"'\d]*(\d+\.\d+)/m);if(n)return{version:n[1],source:"pyproject.toml requires-python"};for(let s of kDe(e)){let i=s.match(/python-version:\s*["']?(\d+\.\d+)/);if(i)return{version:i[1],source:"the CI workflow's python-version"}}}function BDe(e,t){let r=e.split(/[.-]/).map(s=>Number(s)||0),n=t.split(/[.-]/).map(s=>Number(s)||0);for(let s=0;s<Math.max(r.length,n.length);s++)if((r[s]??0)!==(n[s]??0))return(r[s]??0)-(n[s]??0);return 0}function dPt(e,t){return e.filter(r=>!r.version.includes("-")).filter(r=>{let n=r.engines?.node?TDe(r.engines.node):void 0;return n===void 0||n<=t}).map(r=>r.version).sort(BDe).at(-1)}function pPt(e,t,r,n){let s=r(`npm view '${e}@>=0.0.0' version engines --json`,t,n);if(s.status!==0)return[];try{let i=JSON.parse(s.output.slice(s.output.search(/[[{]/)));return(Array.isArray(i)?i:[i]).filter(a=>a&&typeof a.version=="string")}catch{return[]}}var rC="Skyramp Testbot test package: Testbot owns and maintains everything in this folder.";function CDe(e,t){let n={name:ot.posix.basename(e).toLowerCase().replace(/[^a-z0-9._-]+/g,"-").replace(/^[._-]+/,"")||"skyramp-e2e",private:!0,description:`${rC} Run its tests with ./${Hu}.`,[xDe]:{schemaVersion:1,runner:"playwright"},...t?{engines:{node:t}}:{},scripts:{test:"playwright test"},devDependencies:{}};return{"package.json":JSON.stringify(n,null,2)+`
|
|
267
267
|
`,"playwright.config.ts":[`// ${rC}`,`// Run it with ./${Hu}; CI calls that same entrypoint.`,'import { defineConfig, devices } from "@playwright/test";',"","export default defineConfig({",` testDir: "./${K0}",`," // Not *.spec.ts: the repository's own unit runner would collect those.",` testMatch: "**/${X0.playwright}",`,' reporter: process.env.CI ? [["list"], ["junit", { outputFile: "test-results/junit.xml" }]] : "list",',' use: { baseURL: process.env.BASE_URL, trace: "retain-on-failure" },',' projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],',"});",""].join(`
|
|
268
|
-
`),[Hu]:["#!/usr/bin/env bash",`# ${rC}`,"#
|
|
268
|
+
`),[Hu]:["#!/usr/bin/env bash",`# ${rC}`,"# Runs these tests, for CI or by hand: installs exactly what package-lock.json pins, then runs them.",`# Arguments pass through to \`playwright test\` (e.g. ./${Hu} tests/checkout.e2e.ts).`,"set -euo pipefail",'cd "$(dirname "$0")"',"npm ci --no-audit --no-fund",'if [ "${CI:-}" = "true" ] && [ "$(uname -s)" = "Linux" ]; then'," npx playwright install --with-deps chromium","else"," npx playwright install chromium","fi",'npx playwright test "$@"',""].join(`
|
|
269
269
|
`),".gitignore":["node_modules/","test-results/","playwright-report/","blob-report/","!package-lock.json",""].join(`
|
|
270
270
|
`)}}function fPt(){return{"pytest.ini":[IDe,`# ${rC}`,`# Run it with ./${Hu}; CI calls that same entrypoint.`,"[pytest]",`testpaths = ${K0}`,"# Not test_*.py: the repository's own pytest would collect those.",`python_files = ${X0.pytest}`,""].join(`
|
|
271
271
|
`),"requirements.in":[`# ${rC}`,"# Direct dependencies; requirements.txt is the lock pip writes from them.","pytest",""].join(`
|
|
272
|
-
`),[Hu]:["#!/usr/bin/env bash",`# ${rC}`,"#
|
|
272
|
+
`),[Hu]:["#!/usr/bin/env bash",`# ${rC}`,"# Runs these tests, for CI or by hand: installs exactly what requirements.txt pins into the package's own","# virtualenv, then runs the tests. Arguments pass through to pytest.","set -euo pipefail",'cd "$(dirname "$0")"',"python3 -m venv .venv",".venv/bin/python -m pip install -q -r requirements.txt",'.venv/bin/python -m pytest "$@"',""].join(`
|
|
273
273
|
`),".gitignore":[".venv/","__pycache__/",".pytest_cache/","!requirements.txt",""].join(`
|
|
274
274
|
`)}}function UK(e,t,r){let n=ot.join(e,t);Sr.mkdirSync(ot.join(n,K0),{recursive:!0});let s=[];for(let[i,o]of Object.entries(r)){let a=ot.join(n,i);Sr.existsSync(a)||(Sr.writeFileSync(a,o,i===Hu?{mode:493}:void 0),s.push(`${t}/${i}`))}return s}var hPt=e=>e.split(`
|
|
275
275
|
`).filter(t=>t.trim()).slice(-3).join(" | ").slice(-300);function NDe(e){let t=e.run??by,r=pt(process.env,e.env),n=e.repo;try{let s=Z0(n).filter(p=>p.runner===e.runner),i=s.find(p=>p.dir===e.dir)??s[0]??(Xh(n,e.dir)===e.runner?{runner:e.runner,dir:e.dir}:void 0),o=i?.dir??APt(n,e.runner,e.dir,e.configured??!1);if(!Hs(n,o))return{notes:[`test package: ${o} resolves outside the checkout \u2014 no package`]};let a=ot.join(n,o);if(!i&&Sr.existsSync(a)&&(!Sr.statSync(a).isDirectory()||Sr.readdirSync(a).length>0))return{notes:[`test package: ${o} already holds files that are not a Testbot package \u2014 no package (set testPackageDir to another folder)`]};let c=e.runner==="playwright"?"package.json":"pytest.ini",l=!i||!z0(n,`${o}/${c}`),u={runner:e.runner,dir:o,created:l,entrypoint:`${o}/${Hu}`,dependencies:{},steps:[],ready:!1,notes:[]};Sr.mkdirSync(a,{recursive:!0});let d=p=>{let f=t(p,a,r);return u.steps.push({command:p,ok:f.status===0,...f.status===0?{}:{detail:hPt(f.output)}}),f};if(e.runner==="playwright"){let p=$K(n,o);if(p)return{notes:[`test package: ${o} is a member of the repository's workspace (${p}), so installing it would change the root lockfile \u2014 no package (set testPackageDir to a folder the workspace does not list)`]};EPt(n,u,t,r,d)}else wPt(n,u,t,r,d);return{pkg:u,notes:u.notes}}catch(s){return{notes:[`test package: setting up the ${e.runner} package threw (${s instanceof Error?s.message:String(s)})`]}}}var mPt=e=>new RegExp(`^${e.replace(/\/+$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"\0").replace(/\*/g,"[^/]*").replace(/\u0000/g,".*")}$`);function $K(e,t){let r=Sy(e,`${t}/package.json`).filter(s=>!Nl(s,[t]));if(r.length)return r.join(", ");let n=yPt(e,t);return n===void 0?void 0:`${n||"."}/package.json`}var gPt=["skyramp-e2e","testbot/skyramp-e2e"];function APt(e,t,r,n){if(n||t!=="playwright"||r!==vDe[t]||!$K(e,r))return r;let s=i=>!Sr.existsSync(ot.join(e,i))||Sr.statSync(ot.join(e,i)).isDirectory()&&Sr.readdirSync(ot.join(e,i)).length===0;return gPt.find(i=>s(i)&&!$K(e,i))??r}function yPt(e,t){let r=t.replace(/^\.\//,"").replace(/\/+$/,"");for(let n=ot.posix.dirname(r);;n=ot.posix.dirname(n)){let s=n==="."?"":n,i=s?r.slice(s.length+1):r,a=nC(ot.join(e,s,"package.json"))?.workspaces,c=Array.isArray(a)?a:a?.packages??[],l=[];try{l=xo(Sr.readFileSync(ot.join(e,s,"pnpm-workspace.yaml"),"utf-8"))?.packages??[]}catch{}if([...c,...l].some(u=>typeof u=="string"&&!u.startsWith("!")&&mPt(u.replace(/^\.\//,"")).test(i)))return s;if(n==="."||n==="/")return}}function EPt(e,t,r,n,s){let i=ot.join(e,t.dir),o=lPt(e),a=r("node --version",i,n).output.trim().match(/^v?(\d+)/),c=o?.major??(a?Number(a[1]):void 0);c!==void 0&&(t.runtimeVersion={version:String(c),source:o?.source??"the runner's node"}),o&&a&&Number(a[1])!==o.major&&t.notes.push(`test package: the repository runs Node ${o.major} (${o.source}), this runner has Node ${a[1]}; versions were chosen for Node ${o.major}`);let l=()=>nC(ot.join(i,"package.json"))??{},u=()=>({...l().dependencies??{},...l().devDependencies??{}});if(Sr.existsSync(ot.join(i,"package.json")))UK(e,t.dir,CDe(t.dir,void 0)),s(Sr.existsSync(ot.join(i,"package-lock.json"))?"npm ci --no-audit --no-fund":"npm install --no-audit --no-fund"),u()["@playwright/test"]||s("npm install --save-dev --save-exact --no-audit --no-fund @playwright/test");else{let p=c!==void 0?dPt(pPt("@playwright/test",i,r,n),c):void 0;c!==void 0&&!p&&t.notes.push(`test package: no @playwright/test release could be read for Node ${c}; installing the latest`);let f=p&&c!==void 0?`>=${c}`:void 0;UK(e,t.dir,CDe(t.dir,f)),s(`npm install --save-dev --save-exact --no-audit --no-fund @playwright/test${p?`@${p}`:""}`)}t.dependencies=u();let d=Sr.existsSync(ot.join(i,"node_modules","@playwright","test","package.json"))&&Sr.existsSync(ot.join(i,"package-lock.json"));d&&s("npx playwright install chromium"),t.ready=d&&t.steps.every(p=>p.ok),t.ready||t.notes.push(`test package: ${t.dir} is not installed (${t.steps.filter(p=>!p.ok).map(p=>`\`${p.command}\`: ${p.detail??"failed"}`).join("; ")||"no lockfile or @playwright/test after install"})`)}function wPt(e,t,r,n,s){let i=ot.join(e,t.dir),o=uPt(e),a=r("python3 --version",i,n).output.trim().match(/(\d+\.\d+)/);(o||a)&&(t.runtimeVersion=o??{version:a[1],source:"the runner's python3"}),o&&a&&a[1]!==o.version&&t.notes.push(`test package: the repository runs Python ${o.version} (${o.source}), this runner has Python ${a[1]}; pip resolved the lock on ${a[1]}`),UK(e,t.dir,fPt()),s("python3 -m venv .venv");let c=Sr.existsSync(ot.join(i,"requirements.txt"));s(`.venv/bin/python -m pip install -q -r ${c?"requirements.txt":"requirements.in"}`),c||s(".venv/bin/python -m pip freeze --exclude-editable > requirements.txt"),t.dependencies=Object.fromEntries((Bc(ot.join(i,"requirements.txt"))??"").split(/\r?\n/).map(l=>l.trim().match(/^([A-Za-z0-9._-]+)==(\S+)/)).filter(l=>l!==null).filter(l=>CPt(i).has(JM(l[1]))).map(l=>[l[1],l[2]])),t.ready=t.steps.every(l=>l.ok)&&Sr.existsSync(ot.join(i,".venv","bin","python")),t.ready||t.notes.push(`test package: ${t.dir} is not installed (${t.steps.filter(l=>!l.ok).map(l=>`\`${l.command}\`: ${l.detail??"failed"}`).join("; ")||"no virtualenv after install"})`)}var JM=e=>e.toLowerCase().replace(/[-_.]+/g,"-");function bPt(e){return new Map((Bc(ot.join(e,"requirements.in"))??"").split(/\r?\n/).map(t=>t.replace(/#.*/,"").replace(/;.*/,"").trim().match(/^([A-Za-z0-9._-]+)(?:\[[^\]]*\])?\s*(.*)$/)).filter(t=>!!t).map(t=>[JM(t[1]),t[2].replace(/\s+/g,"")]))}function SPt(e,t){return t.split(",").filter(Boolean).every(r=>{let n=r.match(/^(===|==|!=|~=|>=|<=|>|<)(.+)$/);if(!n)return!0;let[,s,i]=n;if(s==="===")return e===i;if((s==="=="||s==="!=")&&i.endsWith(".*")){let a=i.slice(0,-2),c=e===a||e.startsWith(`${a}.`);return s==="=="?c:!c}let o=BDe(e,i);switch(s){case"==":return o===0;case"!=":return o!==0;case">=":return o>=0;case"<=":return o<=0;case">":return o>0;case"<":return o<0;case"~=":{let a=i.split("."),c=a.slice(0,Math.max(1,a.length-1)).join(".");return o>=0&&(e===c||e.startsWith(`${c}.`))}}return!0})}function CPt(e){return new Set((Bc(ot.join(e,"requirements.in"))??"").split(/\r?\n/).map(t=>t.replace(/#.*/,"").trim().match(/^([A-Za-z0-9._-]+)/)?.[1]).filter(t=>!!t).map(JM))}function _De(e,t){let r=ot.join(e,t),n=Xh(e,t);if(!n)return[`${t} is no longer a Testbot test package (its marker is gone)`];let s=[];if(Sr.existsSync(ot.join(r,Hu))||s.push(`${t}/${Hu} is missing \u2014 the package's entrypoint must stay`),n==="playwright"){let c=nC(ot.join(r,"package.json"))??{},l=nC(ot.join(r,"package-lock.json")),u={...c.dependencies??{},...c.devDependencies??{}},d=l?.packages?.[""],p={...d?.dependencies??{},...d?.devDependencies??{}};if(!l)s.push(`${t}/package-lock.json is missing \u2014 run \`npm install\` in ${t}`);else for(let[f,m]of Object.entries(u))p[f]!==m&&s.push(`${t}/package-lock.json does not lock ${f}@${m} \u2014 run \`npm install\` in ${t} so the lockfile matches its package.json`)}else{let c=new Map((Bc(ot.join(r,"requirements.txt"))??"").split(/\r?\n/).map(u=>u.trim().match(/^([A-Za-z0-9._-]+)==([^\s;#]+)/)).filter(u=>!!u).map(u=>[JM(u[1]),u[2]])),l=`install requirements.in into ${t}/.venv and write the lock with \`.venv/bin/python -m pip freeze --exclude-editable > requirements.txt\``;for(let[u,d]of bPt(r)){let p=c.get(u);p?d&&!SPt(p,d)&&s.push(`${t}/requirements.txt pins ${u}==${p}, which requirements.in's ${u}${d} does not allow \u2014 ${l}`):s.push(`${t}/requirements.txt does not pin ${u} \u2014 ${l}`)}}let i=n==="playwright"?"package-lock.json":"requirements.txt",o=DK(e,`${t}/`),a=!o&&Sr.existsSync(ot.join(r,i))?DK(e,`${t}/${i}`):void 0;return o?s.push(`${t}/ is git-ignored (${o}), so the whole package would not ship \u2014 set testPackageDir to a folder the repository does not ignore`):a&&s.push(`${t}/${i} is git-ignored (${a}), so it would not ship \u2014 add \`!${i}\` to ${t}/.gitignore`),s}function PDe(e,t,r){if(!t.created||Xh(e,t.dir)!==t.runner||!Hs(e,t.dir)||t.dir==="."||!t.dir||r.some(i=>Nl(i,[t.dir])))return!1;let n=ot.join(e,t.dir,K0);return Sr.existsSync(n)&&Sr.readdirSync(n,{recursive:!0}).some(i=>!eT(String(i))&&Sr.statSync(ot.join(n,String(i))).isFile())?!1:(Sr.rmSync(ot.join(e,t.dir),{recursive:!0,force:!0}),!0)}function DDe(e,t={}){let r=[];for(let n of e.filter(s=>s.ready)){let s=X0[n.runner],i=n.runner==="playwright"?"Playwright":"pytest";r.push(`Testbot test package: ${n.dir}/ \u2014 a self-contained package Skyramp Testbot owns in this repo (${n.created?"set up for this run":"from an earlier run: reuse it, and maintain the tests already in it"}),`,`installed and ready. It has its own ${n.runner==="playwright"?"package.json, package-lock.json and playwright.config.ts":"requirements.in, requirements.txt (the lock) and pytest.ini"}, and ${n.entrypoint}, its one`,"entrypoint. Testbot does not edit CI, so the package runs in CI only where a CI step already calls it.",`- A test that needs ${i}, which the repo does not set up for its own tests, goes in ${n.dir}/${K0}/, named ${s} so the`,` repo's own test runners never collect it. Helpers those tests share stay inside ${n.dir}/.`,...n.runner==="playwright"&&t.nodeTests?["- The repo has no Node test runner, so its Node API and unit cases go there too, written with @playwright/test (its `request` fixture for HTTP calls)."]:[],`- Run them with \`${n.entrypoint}\`; arguments pass through to ${n.runner==="playwright"?"`playwright test`":"pytest"}.`,n.runner==="playwright"?`- A package a test there needs beyond what it has goes in that package only: \`npm install --save-dev --save-exact <pkg>\` run in ${n.dir}${t.skyrampVersion?` (the Skyramp SDK: @skyramp/skyramp@${t.skyrampVersion})`:""}.`:`- A package a test there needs beyond what it has goes in that package only: add it to ${n.dir}/requirements.in, then in ${n.dir} run \`.venv/bin/python -m pip install -r requirements.in && .venv/bin/python -m pip freeze --exclude-editable > requirements.txt\`${t.skyrampVersion?` (the Skyramp SDK: skyramp==${t.skyrampVersion})`:""}.`,"- Never add, upgrade or remove a package in the application's own manifests or lockfiles for these tests.","")}return r}var tT=(s=>(s.Pytest="pytest",s.Jest="jest",s.Vitest="vitest",s.NodeTest="node-test",s))(tT||{});function Vu(e){return Object.values(tT).includes(e)}var fn="(file)",vPt=/AppRegistryNotReady|Apps aren't loaded|ImproperlyConfigured|DJANGO_SETTINGS_MODULE|settings are not configured|ImportError while loading conftest|No module named '(?:pytest|_pytest|django)\b|Test environment .+ cannot be found|Cannot find module '(?:jest-environment-\S+|vitest\b[^']*)'/,FDe=e=>vPt.test(e),xPt=new Set(["node_modules",".git",".venv","venv","dist","build","__pycache__","site-packages"]);function IPt(e,t,r=5){let n=(s,i)=>{let o;try{o=ss.readdirSync(s,{withFileTypes:!0})}catch{return!1}for(let a of o){if(a.isFile()&&a.name===`${t}.py`)return!0;if(!(!a.isDirectory()||xPt.has(a.name)||a.name.startsWith("."))&&(a.name===t&&ss.existsSync(He.join(s,a.name,"__init__.py"))||i<r&&n(He.join(s,a.name),i+1)))return!0}return!1};return n(e,0)}function LDe(e,t){for(let r of t.matchAll(/ModuleNotFoundError: No module named '([A-Za-z_][\w]*)(?:\.[\w.]*)?'/g))if(!IPt(e,r[1]))return r[1]}function RPt(e){let t=[],r=n=>{typeof n=="string"?n.startsWith("./")&&!n.includes("*")&&t.push(n):n&&typeof n=="object"&&Object.values(n).forEach(r)};return[e.main,e.module,e.exports].forEach(n=>r(typeof n=="string"&&!n.startsWith("./")?`./${n}`:n)),[...new Set(t)]}function UDe(e,t,r){for(let n of r.matchAll(/Failed to resolve entry for package "([^"]+)"/g))for(let s of YM(e,He.dirname(He.resolve(e,t)))){let i=He.join(s,"node_modules",n[1]);if(!ss.existsSync(i))continue;let o,a;try{o=ss.realpathSync(i),a=RPt(JSON.parse(Zh(He.join(o,"package.json"))||"{}"))}catch{break}let c=u=>(0,MDe.spawnSync)("git",["check-ignore","-q",u],{cwd:e}).status===0,l=u=>{let d=He.join(o,u);return!ss.existsSync(d)&&(!d.startsWith(ss.realpathSync(e)+He.sep)||c(d))};if(a.length&&a.every(l))return n[1];break}}var $De=/\.[cm]?[jt]sx?$/,Zh=e=>{try{return ss.readFileSync(e,"utf-8")}catch{return""}};function TPt(e){return ss.existsSync(He.join(e,"pytest.ini"))||ss.existsSync(He.join(e,"conftest.py"))||/^\[tool\.pytest/m.test(Zh(He.join(e,"pyproject.toml")))||/^\[tool:pytest\]/m.test(Zh(He.join(e,"setup.cfg")))?!0:/^\[pytest\]/m.test(Zh(He.join(e,"tox.ini")))}function kPt(e){let t={};try{t=JSON.parse(Zh(He.join(e,"package.json"))||"{}")}catch{return}let r={...t.dependencies??{},...t.devDependencies??{}},n=s=>ss.readdirSync(e).some(i=>s.test(i));if(r.vitest||n(/^vitest\.config\.[cm]?[jt]s$/))return"vitest";if(r.jest||t.jest||n(/^jest\.config\.[cm]?[jt]s(on)?$/))return"jest";if(/(^|[;&|]\s*)node\s+(?:--\S+\s+)*--test\b/.test(t.scripts?.test??""))return"node-test"}function BPt(e,t){if(t!=="jest"&&t!=="vitest")return;let r=qDe(e);if(!Object.values(r).some(n=>GDe(n).some(s=>jDe(s,t))))return HDe(e,t).other}function NPt(e,t){let r=HDe(e,t).command,n=r&&/(?:^|\s)(?:--config|-c)(?:=|\s+)(["']?)([^\s"']+)\1/.exec(r)?.[2];return n&&ss.existsSync(He.resolve(e,n))?n:void 0}var _Pt=/^\s*echo\b[^;&|]*(?:(?:&&|;)\s*exit\s+\d+\s*)?$/,ODe=new Map;function qDe(e){let t=He.join(e,"package.json"),r;try{r=ss.statSync(t).mtimeMs}catch{return{}}let n=ODe.get(t);if(n?.mtimeMs===r)return n.scripts;let s={};try{s=JSON.parse(Zh(t)||"{}").scripts??{}}catch{}return ODe.set(t,{mtimeMs:r,scripts:s}),s}var GDe=e=>e.split(/&&|\|\||[;|]/).map(t=>t.trim()).filter(Boolean),jDe=(e,t)=>new RegExp(`(?:^|[\\s/'"])${t}(?:[\\s'"/]|\\.[cm]?js\\b|$)`).test(e),PPt=/^(?:npm|pnpm|yarn|bun)\s+(?:run(?:-script)?\s+)?(?:-\S+\s+)*([\w:.-]+)(?:\s|$)/,DPt=/(?:^|[\s:])test(?:s)?(?:[\s:]|$)/;function HDe(e,t){let r=qDe(e);if(!r.test?.trim()||_Pt.test(r.test))return{};let n=[],s=new Set,i=c=>{s.add(c);for(let l of GDe(r[c]??"")){if(jDe(l,t))return l;let u=PPt.exec(l)?.[1];if(u&&u in r){if(s.has(u))continue;let d=i(u);if(d)return d}else u||n.push(l)}},o=i("test");if(o)return{command:o};let a=n.find(c=>DPt.test(c))??n.at(-1);return a?{other:a}:{}}function zDe(e,t){let r=no(e,t);return!!r&&!r.wrappedBy}function*YM(e,t){let r=He.resolve(e),n=He.resolve(t);for(;;){if(yield n,n===r||!n.startsWith(r))return;n=He.dirname(n)}}function no(e,t){let r=He.resolve(e,t),n=s=>He.relative(He.resolve(e),s)||".";if(t.endsWith(".py")){for(let s of YM(e,He.dirname(r)))if(TPt(s))return{framework:"pytest",root:n(s)};return{framework:"pytest",root:"."}}if($De.test(t))for(let s of YM(e,He.dirname(r))){if(!ss.existsSync(He.join(s,"package.json")))continue;if(Xh(e,n(s))==="playwright")return;let i=kPt(s);if(!i)continue;let o=i==="node-test"?void 0:NPt(s,i),a=BPt(s,i);return{framework:i,root:n(s),...o?{config:o}:{},...a?{wrappedBy:a}:{}}}}function zu(e,t){let r=no(e,t)?.framework;if(r)return r;let n=He.extname(t);return n||void 0}var VDe=/([._-](?:test|tests|spec|specs))$/i,WDe=/[a-z0-9]((?:Test|Tests|Spec|Specs|IT))$/,JDe=/^((?:test|spec)[._-])/i,YDe=/^((?:Test|Spec)(?=[A-Z0-9_]))/,OPt=/(^|\/)(tests?|specs?|__tests__)\//,QPt=/(^|\/)(tests?|specs?|__tests__)\/[^/]+$/;function zK(e){let t=He.basename(e),r=He.extname(t);return{stem:r?t.slice(0,-r.length):t,ext:r}}function rT(e){let{stem:t,ext:r}=zK(e),n=VDe.exec(t)?.[1]??WDe.exec(t)?.[1];if(n)return`*${n}${r}`;let s=JDe.exec(t)?.[1]??YDe.exec(t)?.[1];return s?`${s}*${r}`:`*${r}`}function ZM(e){let t=He.extname(e);return!!t&&(rT(e)!==`*${t}`||QPt.test(e))}function Wu(e){let{stem:t,ext:r}=zK(e);return r?VDe.test(t)||WDe.test(t)||JDe.test(t)||YDe.test(t)||OPt.test(e):!1}function aC(e,t){if(!Vu(e))return He.extname(t)===e&&ZM(t);let r=e,n=He.basename(t);return r==="pytest"?/^test_.*\.py$/.test(n)||/_test\.py$/.test(n):r==="node-test"?/\.[cm]?js$/.test(n)&&(/(\.|-|_)test\.[cm]?js$/.test(n)||/^test(-.*)?\.[cm]?js$/.test(n)||/(^|\/)test\//.test(t)):/\.(test|spec)\.[cm]?[jt]sx?$/.test(n)||/(^|\/)__tests__\//.test(t)&&$De.test(n)}function em(e){let t=e.indexOf("::");if(t===-1)return{file:e};let r=e.slice(0,t);return{file:r,name:nT(r,e.slice(t+2))}}function nT(e,t){let r=t.indexOf("::");if(r===-1)return t;let n=t.slice(0,r).replace(/^\.\//,""),s=e.replace(/^\.\//,"");return/\.[A-Za-z]\w*$/.test(n)&&(n===s||s.endsWith(`/${n}`)||n.endsWith(`/${s}`))?nT(e,t.slice(r+2)):t}var KDe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),iC=/%[psdifjo#]|\$[A-Za-z_][\w.]*/g,MPt=[" > "," \u203A "],sT=/ (?:>|›) /;function oC(e){return e.split(iC).map(t=>t.split(sT).map(KDe).join("(?: > | \u203A | )")).join(".+?")}function XDe(e,t){return new RegExp(iC.source).test(t)?new RegExp(`^(?:.* )?${oC(t)}$`).test(e):!1}var ZDe=e=>e.split(sT).join(" ");function KM(e,t){if(e===t||sT.test(e)&&ZDe(e)===t)return!0;let r=iC.test(t);return iC.lastIndex=0,!r&&!MPt.some(n=>t.includes(n))?!1:new RegExp(`^${oC(t)}$`).test(e)}function XM(e,t){return e.endsWith(` ${t}`)||new RegExp(`(?:^| )${oC(t)}$`).test(e)||sT.test(e)&&ZDe(e).endsWith(` ${t}`)}function FPt(e,t){let r=e.suite.split(" > "),n=`${r.join(" ")} `;if(!e.name.startsWith(n))return KM(e.name,t)||XM(e.name,t);let s=e.name.slice(n.length),i=t.split(iC).map(a=>a.split(sT).map(KDe).join(" > ")).join("(?:(?! > ).)+?"),o=new RegExp(`^${i}$`);return r.some((a,c)=>o.test([...r.slice(c),s].join(" > ")))||o.test(s)}function cC(e,t,r){let n=e.filter(c=>c.file===t);if(!r)return n;let s=n.filter(c=>c.name!==fn),i=s.filter(c=>c.name===r||c.name.startsWith(`${r}[`)||c.name.startsWith(`${r}::`)||c.name.endsWith(` ${r}`)||c.name.endsWith(`::${r}`));if(i.length)return i;let o=s.filter(c=>c.suite?FPt(c,r):KM(c.name,r)||XM(c.name,r));if(o.length)return o;if(new RegExp(iC.source).test(r))return[];let a=new RegExp(`^${oC(r)}(?: > |$)`);return s.filter(c=>!!c.suite&&a.test(c.suite))}function eF(e,t,r,n,s="python3"){let i=He.resolve(e,t.root),o=d=>He.relative(i,He.resolve(e,d)).split(He.sep).join("/"),a=[...new Set(r.map(d=>o(d.file)))],c=r.every(d=>d.name)?[...new Set(r.map(d=>d.name))]:[];if(t.framework==="pytest"){let d=[...new Set(r.map(p=>p.name?`${o(p.file)}::${p.name}`:o(p.file)))];return{cwd:i,report:n,argv:[...typeof s=="string"?[s]:s,"-m","pytest","-q","-p","no:cacheprovider",`--junitxml=${n}`,...d]}}if(t.framework==="node-test")return{cwd:i,report:n,argv:["node","--test","--test-reporter=junit",`--test-reporter-destination=${n}`,...c.map(d=>`--test-name-pattern=^(?:.* )?${oC(d)}$`),...a]};let l=c.length?["-t",c.map(oC).join("|")]:[],u=t.config?["--config",t.config]:[];return t.framework==="vitest"?{cwd:i,report:n,argv:["npx","--no-install","vitest","run",...u,"--reporter=json",`--outputFile=${n}`,...l,...a]}:{cwd:i,report:n,argv:["npx","--no-install","jest",...u,"--ci","--runInBand","--json",`--outputFile=${n}`,...l,...a]}}var jK=e=>e.replace(/&#x([0-9a-f]+);/gi,(t,r)=>String.fromCodePoint(parseInt(r,16))).replace(/&#(\d+);/g,(t,r)=>String.fromCodePoint(Number(r))).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&"),_l=(e,t)=>{let r=new RegExp(`\\b${t}="([^"]*)"`).exec(e);return r?jK(r[1]):void 0};function eOe(e,t,r){let n=a=>{let c=He.relative(t,a).replace(/\.py$/,"").split(/[\\/]/),l=a.replace(/\.py$/,"").split(/[\\/]/).filter(d=>d&&d!=="."),u=[c.join(".")];for(let d=0;d<l.length-c.length;d++)u.push(l.slice(d).join("."));return[...new Set(u)]},s=r.flatMap(a=>n(a).map(c=>({file:a,module:c}))),i=[],o=/<testcase\b([^>]*?)(\/>|>([\s\S]*?)<\/testcase>)/g;for(let a=o.exec(e);a;a=o.exec(e)){let c=a[1],l=a[3]??"",u=_l(c,"classname")??"",d=_l(c,"name")??"",p=u?void 0:s.find(Q=>Q.module===d),f=p?fn:d,m=p??s.filter(Q=>u===Q.module||u.startsWith(`${Q.module}.`)).sort((Q,J)=>J.module.length-Q.module.length)[0],A=m?.file??(_l(c,"file")?He.join(t,_l(c,"file")):u),E=m&&!p&&u!==m.module?`${u.slice(m.module.length+1)}::`:"",g=/<(failure|error)\b([^>]*)>([\s\S]*?)<\/\1>|<(failure|error)\b([^>]*)\/>/.exec(l),w=/<skipped\b([^>]*)\/>|<skipped\b([^>]*)>([\s\S]*?)<\/skipped>/.exec(l),S=!!w,x=jK(w?.[3]??""),R=(/Skipped: ([\s\S]*?)["']\)\s*$/.exec(x)??/Skipped: (.*)/.exec(x))?.[1]?.trim()||_l(w?.[1]??w?.[2]??"","message")?.trim()||x.trim(),I=jK(g?.[3]??"").trim(),B=p?[...I.matchAll(/^E\s+(.+)$/gm)].pop()?.[1]?.trim():void 0,T=g?(B?`${_l(g[2]??g[5]??"","message")??"collection failure"}: ${B}`:void 0)??_l(g[2]??g[5]??"","message")??I:"";i.push({file:A.split(He.sep).join("/"),name:`${E}${f}`,status:g?"Fail":S?"Skipped":"Pass",details:g?T.split(`
|