@reticlehq/browser 3.10.1 → 3.10.2

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.
@@ -54,7 +54,7 @@ ${n.join(`
54
54
 
55
55
  `)}return x.write("payload.value = newResult;"),x.write("return payload;"),x.compile()},s,a=Ms,l=!nn.jitless,d=l&&zE.value,f=t.catchall,m;e._zod.parse=(h,g)=>{m!=null||(m=r.value);let b=h.value;return a(b)?l&&d&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=i(t.shape)),h=s(h,g),f?Ov([],b,h,g,m,e,(g==null?void 0:g.abortEarly)===!0):h):n(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});ib=I("$ZodUnion",(e,t)=>{De.init(e,t),Te(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Te(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Te(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),Te(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>vu(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let l=a._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(a=>zw(a,r,e,o)):zw(s,r,e,o)}});Cv=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ib.init(e,t);let n=e._zod.parse;Te(e,"propValues",o=>{var a,l;let i={},s=0;for(let u of o.def.options){let d=u._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(u)}"`);(a=d[o.def.discriminator])!=null&&a.has(void 0)&&s++;for(let[f,m]of Object.entries(d)){Object.prototype.hasOwnProperty.call(i,f)||zn(i,f,new Set);for(let h of m)i[f].add(h)}}return!o.def.unionFallback&&s>1&&((l=i[o.def.discriminator])==null||l.delete(void 0)),i}),t.options.forEach((o,i)=>{let s=ac(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=sc(()=>wF(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Ms(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s==null?void 0:s[t.discriminator],l=r.value.get(a);return l&&(a!==void 0||i.direction!=="backward")?l._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),Lv=I("$ZodIntersection",(e,t)=>{De.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,u])=>Pw(n,l,u)):Pw(n,i,s)}});$v=I("$ZodTuple",(e,t)=>{De.init(e,t);let n=t.items,r=nn.memoizer;r==null||r.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],l=Mw(n,"optin"),u=Mw(n,"optout");if(!t.rest){if(s.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let d=new Array(n.length),f=t.rest?i==null?void 0:i.abortEarly:void 0,m=!1;for(let h=0;h<n.length;h++){let g=n[h]._zod.run({value:s[h],issues:[]},i);g instanceof Promise?a.push(g.then(b=>{d[h]=b})):(d[h]=g,f&&!m&&g.issues.length&&(m=Pn(g)))}if(t.rest&&!m){let h=n.length-1,g=s.slice(n.length),b=o.issues.length;for(let x of g){if(f&&o.issues.length!==b){if(Pn(o,b))break;b=o.issues.length}h++;let w=t.rest._zod.run({value:x,issues:[]},i);w instanceof Promise?a.push(w.then(N=>Uw(N,o,h))):Uw(w,o,h)}}return a.length?Promise.all(a).then(()=>Hw(d,o,n,s,u)):Hw(d,o,n,s,u)}});kv=I("$ZodRecord",(e,t)=>{De.init(e,t);let n=nn.memoizer;n==null||n.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Di(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let l=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){if(l.add(typeof d=="number"?d.toString():d),d==="__proto__")continue;let f=t.keyType._zod.run({value:d,issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(g=>$r(g,o,Mn())),input:d,path:[d],inst:e});continue}let m=f.value;if(m==="__proto__")continue;let h=t.valueType._zod.run({value:i[d],issues:[]},o);h instanceof Promise?s.push(h.then(g=>{g.issues.length&&r.issues.push(...Lr(d,g.issues)),r.value[m]=g.value})):(h.issues.length&&r.issues.push(...Lr(d,h.issues)),r.value[m]=h.value)}let u;for(let d in i)if(!l.has(d))if(t.mode==="loose"){if(d==="__proto__")continue;r.value[d]=i[d]}else u=u!=null?u:[],u.push(d);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let l;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let d=t.keyType._zod.run({value:u,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Cu.test(u)&&d.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},o);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(d=g)}if(d.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(l=l!=null?l:[],l.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>$r(g,o,Mn())),input:u,path:[u],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let h=t.valueType._zod.run({value:i[u],issues:[]},o);h instanceof Promise?s.push(h.then(g=>{g.issues.length&&r.issues.push(...Lr(u,g.issues)),r.value[m]=g.value})):(h.issues.length&&r.issues.push(...Lr(u,h.issues)),r.value[m]=h.value)}l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),Dv=I("$ZodEnum",(e,t)=>{De.init(e,t);let n=oc(t.entries),r=new Set(n);e._zod.values=r,Te(e,"pattern",o=>{let i=oc(o.def.entries).filter(s=>PE.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>jo(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),zv=I("$ZodLiteral",(e,t)=>{De.init(e,t);let n=new Set(t.values);e._zod.values=n,Te(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?jo(i):i?jo(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),Pv=I("$ZodTransform",(e,t)=>{var n;De.init(e,t),e._zod.optin="optional",(n=nn.memoizer)==null||n.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new lc(e.constructor.name);let i=t.transform(r.value,r);if(o.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(r.value=a,r));if(i instanceof Promise)throw new kr;return r.value=i,r}});sb=I("$ZodOptional",(e,t)=>{De.init(e,t),Te(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Te(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Te(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${vu(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>Fw(n,i)):Fw(n,o)}return t.innerType._zod.run(n,r)}}),Mv=I("$ZodExactOptional",(e,t)=>{sb.init(e,t),Te(e,"values",n=>n.def.innerType._zod.values),Te(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Uv=I("$ZodNullable",(e,t)=>{De.init(e,t),Te(e,"optin",n=>n.def.innerType._zod.optin),Te(e,"optout",n=>n.def.innerType._zod.optout),Te(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${vu(r.source)}|null)$`):void 0}),Te(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Hv=I("$ZodDefault",(e,t)=>{De.init(e,t),e._zod.optin="defaulted",Te(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Bw(i,t)):Bw(o,t)}});Fv=I("$ZodPrefault",(e,t)=>{De.init(e,t),e._zod.optin="defaulted",Te(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Bv=I("$ZodNonOptional",(e,t)=>{De.init(e,t),Te(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Gw(i,e)):Gw(o,e)}});Gv=I("$ZodCatch",(e,t)=>{De.init(e,t),Te(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Te(e,"optout",n=>n.def.innerType._zod.optout),Te(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>Vw(n,i,t,r)):Vw(n,o,t,r)}}),ab=I("$ZodPipe",(e,t)=>{De.init(e,t),Te(e,"values",n=>n.def.in._zod.values),Te(e,"optin",n=>n.def.in._zod.optin),Te(e,"optout",n=>n.def.out._zod.optout),Te(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>kf(s,t.in,r)):kf(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>kf(i,t.out,r)):kf(o,t.out,r)}});Vv=I("$ZodPreprocess",(e,t)=>{ab.init(e,t)}),jv=I("$ZodReadonly",(e,t)=>{De.init(e,t),Te(e,"propValues",n=>n.def.innerType._zod.propValues),Te(e,"values",n=>n.def.innerType._zod.values),Te(e,"optin",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optin}),Te(e,"optout",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(jw):jw(o)}});Kv=I("$ZodLazy",(e,t)=>{De.init(e,t),$E(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Te(e,"pattern",n=>{var r,o;return(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.pattern}),Te(e,"propValues",n=>{var r,o;return(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.propValues}),Te(e,"optin",n=>{var r,o,i;return(i=(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.optin)!=null?i:void 0}),Te(e,"optout",n=>{var r,o,i;return(i=(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.optout)!=null?i:void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Wv=I("$ZodCustom",(e,t)=>{Dt.init(e,t),De.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>Kw(i,n,r,e));Kw(o,n,r,e)}})});function Yv(e){return e!==null&&typeof e=="object"}function lb(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}function Bf(e,t,n){var d;let r=Xv.get(e);if(r!==void 0)return r?ku:$u;if(t.has(e))return ku;t.add(e);let o=$u,i=f=>{if(o!==ku&&(f!=null&&f._zod)){let m=Bf(f,t,n);m>o&&(o=m)}},s=(f,m)=>{var g;let h=$u;for(let b of Reflect.ownKeys(f)){let x=Object.getOwnPropertyDescriptor(f,b);if(m&&!x.enumerable)continue;let w=x.get?Ff:(g=x.value)!=null&&g._zod?Bf(x.value,t,n):$u;w>h&&(h=w)}return h},a=f=>{f>o&&(o=f)},l=e._zod.def,u=l.type;switch(u){case"object":{let f=ac(l);a(f?s(f,!0):Ff),i(l.catchall);break}case"array":i(l.element);break;case"tuple":for(let f of l.items)i(f);i(l.rest);break;case"record":case"map":i(l.keyType),i(l.valueType);break;case"set":i(l.valueType);break;case"union":for(let f of l.options)i(f);break;case"intersection":i(l.left),i(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(l.innerType);break;case"pipe":i(l.in),i(l.out);break;case"function":i(l.input),i(l.output);break;case"lazy":{let f=(d=l._cachedInner)!=null?d:n?e._zod.innerType:void 0;a(f?Bf(f,t,!1):Ff);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let f in l){let m=Object.getOwnPropertyDescriptor(l,f);if(!m||m.get)continue;let h=m.value;if(!(!h||typeof h!="object")){if(h._zod)i(h);else if(Array.isArray(h))for(let g of h)i(g)}}}return t.delete(e),vF(e,o)}function vF(e,t){return t!==Ff&&Xv.set(e,t===ku),t}function NF(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function qv(){return RF}function OF(e,t){var r;let n=(r=e[db])==null?void 0:r.backEdges;return n!==void 0&&Yv(t)&&n.has(t)}var ub,db,Zv,Xv,$u,Ff,ku,Uf,Hf,RF,Jv=y(()=>{Sn();ub=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},db="~memo",Zv=[];Xv=new WeakMap,$u=0,Ff=1,ku=2;Hf=[],RF={alloc(e,t,n){let r=Uf;if(!r)return n;Uf=void 0;let o={value:n,issues:null};return r.set(t.value,o),Hf.push(o),n},guard(e){var n;var t;(n=(t=e._zod).deferred)!=null||(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,o=(i,s)=>{if(s.direction!=="backward"&&OF(s,i.value))throw new ub;return r(i,s)};e._zod.parse=o,e._zod.run===r&&(e._zod.run=o)})},attach(e){var s;var t;let n,r=!1,o,i;(s=(t=e._zod).deferred)!=null||(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,l=(u,d)=>{var N;if(n===void 0){let C=Bf(e,new Set,!1);if(C===$u)return e._zod.parse=a,e._zod.run===l&&(e._zod.run=a),a(u,d);C===ku||r?n=!0:r=!0}let f=u.value;if(!Yv(f))return a(u,d);let m=d[db];m||(m={buckets:new WeakMap,backEdges:void 0},d[db]=m);let h;o===d?h=i:(h=NF(m,e),o=d,i=h);let g=h.get(f);if(g)return u.value=g.value,g.issues?g.issues.length&&u.issues.push(...lb(g.issues)):(u.memo=!0,(N=m.backEdges)!=null||(m.backEdges=new WeakSet),m.backEdges.add(g.value)),u;Uf=h;let b=Hf.length,x=a(u,d);Uf=void 0;let w=Hf.length>b?Hf.pop():void 0;return x instanceof Promise?x.then(C=>(w&&(w.issues=C.issues.length?lb(C.issues):Zv),C)):(w&&(w.issues=x.issues.length?lb(x.issues):Zv),x)};e._zod.parse=l,e._zod.run===a&&(e._zod.run=l)})}}});function Qv(){return{localeError:IF()}}var IF,eN=y(()=>{Sn();IF=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){var s;return(s=e[i])!=null?s:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){var a;return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):(a=r[i])!=null?a:i}return i=>{var s,a,l,u;switch(i.code){case"invalid_type":{let d=o(i.expected),f=HE(i.input),m=o(f,i.input);return`Invalid input: expected ${d}, received ${m}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${_f(i.values[0])}`:`Invalid option: expected one of ${Ef(i.values,"|")}`;case"too_big":{let d=i.exact?"exactly ":i.inclusive?"<=":"<",f=t(i.origin);return f?`Too big: expected ${(s=i.origin)!=null?s:"value"} to have ${d}${i.maximum.toString()} ${(a=f.unit)!=null?a:"elements"}`:`Too big: expected ${(l=i.origin)!=null?l:"value"} to be ${d}${i.maximum.toString()}`}case"too_small":{let d=i.exact?"exactly ":i.inclusive?">=":">",f=t(i.origin);return f?`Too small: expected ${i.origin} to have ${d}${i.minimum.toString()} ${f.unit}`:`Too small: expected ${i.origin} to be ${d}${i.minimum.toString()}`}case"invalid_format":{let d=i;return d.format==="starts_with"?`Invalid string: must start with "${d.prefix}"`:d.format==="ends_with"?`Invalid string: must end with "${d.suffix}"`:d.format==="includes"?`Invalid string: must include "${d.includes}"`:d.format==="regex"?`Invalid string: must match pattern ${d.pattern}`:`Invalid ${(u=n[d.format])!=null?u:i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Ef(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(f=>`'${f}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}}});function CF(){return new pb}var tN,pb,nN,Hs,fb=y(()=>{pb=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var r;let n=t._zod.parent;if(n){let o={...(r=this.get(n))!=null?r:{}};delete o.id;let i={...o,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};(nN=(tN=globalThis).__zod_globalRegistry)!=null||(tN.__zod_globalRegistry=CF());Hs=globalThis.__zod_globalRegistry});var rN=y(()=>{});function oN(e){return e.checks&&(e.checks=[...e.checks]),e}function iN(e,t){return new e(oN({type:"string",...re(t)}))}function sN(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...re(t)})}function aN(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...re(t)})}function cN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...re(t)})}function lN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...re(t)})}function uN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...re(t)})}function dN(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...re(t)})}function pN(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...re(t)})}function fN(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...re(t)})}function hN(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...re(t)})}function mN(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...re(t)})}function gN(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...re(t)})}function EN(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...re(t)})}function bN(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...re(t)})}function _N(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...re(t)})}function TN(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...re(t)})}function SN(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...re(t)})}function AN(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...re(t)})}function xN(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...re(t)})}function yN(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...re(t)})}function wN(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...re(t)})}function vN(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...re(t)})}function NN(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...re(t)})}function RN(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...re(t)})}function ON(e,t){return new e({type:"string",format:"date",check:"string_format",...re(t)})}function IN(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...re(t)})}function CN(e,t){return new e({type:"string",format:"duration",check:"string_format",...re(t)})}function LN(e,t){return new e(oN({type:"number",checks:[],...re(t)}))}function $N(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...re(t)})}function kN(e,t){return new e({type:"boolean",...re(t)})}function DN(e,t){return new e({type:"undefined",...re(t)})}function zN(e,t){return new e({type:"null",...re(t)})}function PN(e){return new e({type:"unknown"})}function MN(e,t){return new e({type:"never",...re(t)})}function Gf(e,t){return new qE({check:"less_than",...re(t),value:e,inclusive:!1})}function Du(e,t){return new qE({check:"less_than",...re(t),value:e,inclusive:!0})}function Vf(e,t){return new JE({check:"greater_than",...re(t),value:e,inclusive:!1})}function zu(e,t){return new JE({check:"greater_than",...re(t),value:e,inclusive:!0})}function jf(e,t){return new Tw({check:"multiple_of",...re(t),value:e})}function Kf(e,t){return new Aw({check:"max_length",...re(t),maximum:e})}function uc(e,t){return new xw({check:"min_length",...re(t),minimum:e})}function Wf(e,t){return new yw({check:"length_equals",...re(t),length:e})}function hb(e,t){return new ww({check:"string_format",format:"regex",...re(t),pattern:e})}function mb(e){return new vw({check:"string_format",format:"lowercase",...re(e)})}function gb(e){return new Nw({check:"string_format",format:"uppercase",...re(e)})}function Eb(e,t){return new Rw({check:"string_format",format:"includes",...re(t),includes:e})}function bb(e,t){return new Ow({check:"string_format",format:"starts_with",...re(t),prefix:e})}function _b(e,t){return new Iw({check:"string_format",format:"ends_with",...re(t),suffix:e})}function zi(e){return new Cw({check:"overwrite",tx:e})}function Tb(e){return zi(t=>t.normalize(e))}function Sb(){return zi(e=>e.trim())}function Ab(){return zi(e=>e.toLowerCase())}function xb(){return zi(e=>e.toUpperCase())}function yb(){return zi(e=>DE(e))}function UN(e,t,n){return new e({type:"array",element:t,...re(n)})}function HN(e,t,n){return new e({type:"custom",check:"custom",fn:t,...re(n)})}function FN(e,t){let n=LF(r=>(r.addIssue=o=>{var i,s,a;if(typeof o=="string")r.issues.push(cc(o,r.value,n._zod.def));else{let l=o;l.fatal&&(l.continue=!1),(i=l.code)!=null||(l.code="custom"),"input"in l||(l.input=r.value),(s=l.inst)!=null||(l.inst=n),(a=l.continue)!=null||(l.continue=!n._zod.def.abort),r.issues.push(cc(l))}},e(r.value,r)),t);return n}function LF(e,t){let n=new Dt({check:"custom",...re(t)});return n._zod.check=e,n}var BN=y(()=>{Lf();Sn()});function Pu(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&zn(e,r,n[r]);return e}function vb(e){var n,r,o,i,s,a,l,u,d;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(r=e.processors)!=null?r:{},metadataRegistry:(o=e==null?void 0:e.metadata)!=null?o:Hs,target:t,unrepresentable:(i=e==null?void 0:e.unrepresentable)!=null?i:"throw",override:(s=e==null?void 0:e.override)!=null?s:(()=>{}),io:(a=e==null?void 0:e.io)!=null?a:"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(l=e==null?void 0:e.cycles)!=null?l:"ref",reused:(u=e==null?void 0:e.reused)!=null?u:"inline",intersections:[],deferred:[],external:(d=e==null?void 0:e.external)!=null?d:void 0}}function lo(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function We(e,t,n={path:[],schemaPath:[]}){var d,f,m;var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=(f=(d=e._zod).toJSONSchema)==null?void 0:f.call(d);if(a)s.schema=a;else{let h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,h);else{let b=s.schema,x=t.processors[o.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);x(e,t,b,h)}let g=e._zod.parent;g&&(s.ref||(s.ref=g),We(g,t,h),t.seen.get(g).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Pu(s.schema,l),t.io==="input"&&rn(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((m=(r=s.schema).default)!=null||(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function GN(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Nb(e,t){var s,a,l,u;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let d of e.seen.entries()){let f=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(f){let m=r.get(f);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,d[0])}}let o=d=>{var b,x,w,N,C;let f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let D=(b=e.external.registry.get(d[0]))==null?void 0:b.id,z=(x=e.external.uri)!=null?x:(Z=>Z);if(D)return{ref:z(D)};let K=(N=(w=d[1].defId)!=null?w:d[1].schema.id)!=null?N:`schema${e.counter++}`;return d[1].defId=K,{defId:K,ref:`${z("__shared")}#/${f}/${GN(K)}`}}let m="#",h=`${m}/${f}/`;if(d[1]===n&&!d[1].schema.id)return{ref:m};let g=(C=d[1].schema.id)!=null?C:`__schema${e.counter++}`;return{defId:g,ref:h+GN(g)}},i=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:m,defId:h}=o(d);f.def={...f.schema},h&&(f.defId=h);let g=f.schema;for(let b in g)delete g[b];g.$ref=m};if(e.cycles==="throw")for(let d of e.seen.entries()){let f=d[1];if(f.cycle)throw new Error(`Cycle detected: #/${(a=f.cycle)==null?void 0:a.join("/")}/<root>
56
56
 
57
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let f=d[1];if(t===d[0]){i(d);continue}if(e.external){let h=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&h){i(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){i(d);continue}if(f.cycle){i(d);continue}f.count>1&&e.reused==="ref"&&i(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function KN(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;KN(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function jN(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function wb(e){var i,s,a,l;let t=[];for(let u of e){if(typeof u!="object"||u.type!=="object")return null;for(let d in u)if(!WN.has(d))return null;t.push(u)}let n={},r=new Set;for(let u of t){for(let d in u.properties){if(Object.prototype.hasOwnProperty.call(n,d))continue;let f=[];for(let h of t){let g=(s=(i=h.properties)==null?void 0:i[d])!=null?s:jN(h);g!=null&&(f.some(b=>JSON.stringify(b)===JSON.stringify(g))||f.push(g))}let m=f.length===1?f[0]:(a=wb(f))!=null?a:{allOf:f};zn(n,d,m)}for(let d of(l=u.required)!=null?l:[])r.add(d)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(u=>u.additionalProperties===!1))o.additionalProperties=!1;else{let u=[];for(let d of t){let f=jN(d);f&&!u.some(m=>JSON.stringify(m)===JSON.stringify(f))&&u.push(f)}u.length===1?o.additionalProperties=u[0]:u.length>1&&(o.additionalProperties={allOf:u})}return o}function $F(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of WN)if(o in e)return;let n=t.filter(o=>VN.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=wb(t);else{let o=n[0],i=VN.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;let s=t.filter(l=>l!==o),a=o[i].map(l=>wb([...s,l]));if(a.some(l=>!l))return;r={[i]:a}}r&&(delete e.allOf,Pu(e,r))}function Rb(e,t){var a,l,u,d,f,m,h,g;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=b=>{var z,K,Z;let x=e.seen.get(b);if(x.ref===null)return;let w=(z=x.def)!=null?z:x.schema,N={...w},C=x.ref;if(x.ref=null,C){r(C);let F=e.seen.get(C),J=F.schema;if(J.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(w.allOf=(K=w.allOf)!=null?K:[],w.allOf.push(J)):Pu(w,J),Pu(w,N),b._zod.parent===C)for(let q in w)q==="$ref"||q==="allOf"||q in N||delete w[q];if(J.$ref&&F.def)for(let q in w)q==="$ref"||q==="allOf"||q in F.def&&JSON.stringify(w[q])===JSON.stringify(F.def[q])&&delete w[q]}let D=b._zod.parent;if(D&&D!==C){r(D);let F=e.seen.get(D);if(F!=null&&F.schema.$ref&&(w.$ref=F.schema.$ref,F.def))for(let J in w)J==="$ref"||J==="allOf"||J in F.def&&JSON.stringify(w[J])===JSON.stringify(F.def[J])&&delete w[J]}e.override({zodSchema:b,jsonSchema:w,path:(Z=x.path)!=null?Z:[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let b of[...e.seen.entries()].reverse())r(b[0]);if(e.target!=="openapi-3.0")for(let b of e.seen.entries())KN((a=b[1].def)!=null?a:b[1].schema);for(let b of e.deferred)b();if(e.intersections.length){let b=new Map;for(let x of e.seen.values())for(let w of[x.schema,x.def]){let N=w==null?void 0:w.allOf;if(!Array.isArray(N))continue;let C=b.get(N);C?C.push(w):b.set(N,[w])}for(let x of e.intersections)for(let w of(l=b.get(x))!=null?l:[])$F(w)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){let b=(d=e.external.registry.get(t))==null?void 0:d.id;if(!b)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(b)}Pu(o,n.defId?n.schema:(f=n.def)!=null?f:n.schema);let i=(m=e.metadataRegistry.get(t))==null?void 0:m.id;i!==void 0&&o.id===i&&delete o.id;let s=(g=(h=e.external)==null?void 0:h.defs)!=null?g:{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let b of e.seen.entries()){let x=b[1];x.def&&x.defId&&(x.def.id===x.defId&&delete x.def.id,zn(s,x.defId,x.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let b=JSON.parse(JSON.stringify(o));return Object.defineProperty(b,"~standard",{value:{...t["~standard"],jsonSchema:{input:Mu(t,"input",e.processors),output:Mu(t,"output",e.processors)}},enumerable:!1,writable:!1}),b}catch{throw new Error("Error converting schema to JSON.")}}function rn(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return rn(r.element,n);if(r.type==="set")return rn(r.valueType,n);if(r.type==="lazy")return rn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return rn(r.innerType,n);if(r.type==="intersection")return rn(r.left,n)||rn(r.right,n);if(r.type==="record"||r.type==="map")return rn(r.keyType,n)||rn(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:rn(r.in,n)||rn(r.out,n);if(r.type==="object"){for(let o in r.shape)if(rn(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(rn(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(rn(o,n))return!0;return!!(r.rest&&rn(r.rest,n))}return!1}var WN,VN,ZN,Mu,Zf=y(()=>{fb();Sn();WN=new Set(["type","properties","required","additionalProperties"]),VN=["oneOf","anyOf"];ZN=(e,t={})=>n=>{let r=vb({...n,processors:t});return We(e,r),Nb(r,e),Rb(r,e)},Mu=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r!=null?r:{},s=vb({...o!=null?o:{},target:i,io:t,processors:n});return We(e,s),Nb(s,e),Rb(s,e)}});function Un(e){var i,s,a,l,u;let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...(i=n.checks)!=null?i:[]]:(s=n.checks)!=null?s:[];for(let d of r)(a=Ob[d._zod.def.check])==null||a.call(Ob,t,d._zod.def);let o=e._zod.bag;o.minimum!==void 0&&dc(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&dc(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&pc(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&pc(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&QN(t,o.multipleOf),o.format!==void 0&&((l=t.format)!=null||(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&tR(t,o.mime);for(let d of(u=o.patterns)!=null?u:[])eR(t,d);return t}function Uu(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Uu(t.out):t.type==="catch"?Uu(t.innerType):e._zod.optin}function Ib(e,t,n){var g,b;if(t.$ref){if(n.has(t))return t;n.add(t);let x=(g=e.get(t))==null?void 0:g.def;if(!x)return t;let w=Ib(e,x,n);return w===x?t:w}for(let x of["anyOf","oneOf"]){let w=t[x];if(!Array.isArray(w))continue;let N=w.map(C=>Ib(e,C,n));N.some((C,D)=>C!==w[D])&&(t={...t,[x]:N})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(x=>x==="number"||x==="integer"),i=(b=t.enum)!=null?b:t.const!==void 0?[t.const]:void 0;if(!o&&!(i!=null&&i.some(x=>typeof x=="number")))return t;let{minimum:s,maximum:a,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:f,id:m,...h}=t;return h.enum?h.enum=h.enum.map(x=>typeof x=="number"?String(x):x):typeof h.const=="number"&&(h.const=String(h.const)),o&&(h.type="string",i||(h.pattern=(r.includes("number")?Cu:YE).source)),h}function zF(e){var r,o,i;let t=new Map;for(let s of e.seen.values())s.def&&!t.has(s.schema)&&t.set(s.schema,s);let n=new Map;for(let s of(r=Cb.get(e))!=null?r:[]){let a=e.seen.get(s),l=(i=(o=a==null?void 0:a.def)!=null?o:a==null?void 0:a.schema)==null?void 0:i.propertyNames;if(!l||l===!0||n.has(l))continue;let u=Ib(t,l,new Set);u!==l&&n.set(l,u)}if(n.size)for(let s of e.seen.values())for(let a of[s.schema,s.def]){let l=a&&n.get(a.propertyNames);l&&(a.propertyNames=l)}}function xR(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,l)=>typeof l!="bigint"?l:(i=!0,null));return i?(lo(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Lb):JSON.parse(s)}var dc,pc,YN,QN,eR,tR,nR,XN,qN,JN,Ob,kF,DF,rR,oR,iR,sR,aR,cR,lR,uR,dR,pR,fR,hR,mR,gR,ER,bR,_R,Cb,TR,SR,AR,Lb,yR,wR,vR,NR,RR,$b,OR,IR=y(()=>{If();cb();Zf();Sn();dc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},pc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},YN=(e,t)=>{dc(e,"minimum",t),pc(e,"maximum",t)},QN=(e,t)=>{var n;(n=e.multipleOf)!=null||(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},eR=(e,t)=>{var n;(n=e.patterns)!=null||(e.patterns=new Set),e.patterns.add(t)},tR=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},nR=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},XN=(e,t)=>dc(e,"minimum",t.minimum),qN=(e,t)=>pc(e,"maximum",t.maximum),JN=e=>(t,n)=>{nR(t,n.format);let[r,o]=e[n.format];dc(t,"minimum",r),pc(t,"maximum",o)},Ob={greater_than:(e,t)=>dc(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>pc(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>QN(e,t.value),number_format:JN(Nu),bigint_format:JN(Tf),min_length:XN,max_length:qN,length_equals:(e,t)=>YN(e,t.length),min_size:XN,max_size:qN,size_equals:(e,t)=>YN(e,t.size),string_format:(e,t)=>{nR(e,t.format),t.pattern&&eR(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>tR(e,t.mime)};kF={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},DF=new Map([[rb,sw],[Mf,aw]]),rR=e=>{var t;return(t=DF.get(e))!=null?t:e},oR=(e,t,n,r)=>{var f;let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:l,contentEncoding:u,laxFormat:d}=Un(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=(f=kF[a])!=null?f:a,o.format===""&&delete o.format,(a==="time"||d)&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){let m=[...l].map(rR);m.length===1?o.pattern=m[0].source:m.length>1&&(o.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},iR=(e,t,n,r)=>{var g;let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=Un(e);o.type=d?"integer":"number";let f=typeof u=="number"&&u>=(i!=null?i:Number.NEGATIVE_INFINITY),m=typeof l=="number"&&l<=(s!=null?s:Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";if(f?h?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?h?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:typeof s=="number"&&(o.maximum=s),a){let b=new Set;for(let N of a)Number.isFinite(N)&&N!==0?b.add(Math.abs(N)):lo(e,t,o,r,`A multipleOf divisor of ${N} cannot be represented in JSON Schema`);let[x,...w]=b;x!==void 0&&(o.multipleOf=x),w.length&&(o.allOf=[...(g=o.allOf)!=null?g:[],...w.map(N=>({multipleOf:N}))])}},sR=(e,t,n,r)=>{n.type="boolean"},aR=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},cR=(e,t,n,r)=>{lo(e,t,n,r,"Undefined cannot be represented in JSON Schema")},lR=(e,t,n,r)=>{n.not={}},uR=(e,t,n,r)=>{},dR=(e,t,n,r)=>{let o=e._zod.def,i=oc(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},pR=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(lo(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(lo(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},fR=(e,t,n,r)=>{lo(e,t,n,r,"Custom types cannot be represented in JSON Schema")},hR=(e,t,n,r)=>{lo(e,t,n,r,"Transforms cannot be represented in JSON Schema")},mR=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Un(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=We(i.element,t,{...r,path:[...r.path,"items"]})};gR=(e,t,n,r)=>{var u;let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&lo(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let d in s)zn(o.properties,d,We(s[d],t,{...r,path:[...r.path,"properties",d]}));let l=[];for(let d of Object.keys(s)){let f=i.shape[d];(t.io==="input"?Uu(f)===void 0:f._zod.optout===void 0)&&l.push(d)}l.length>0&&(o.required=l),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=We(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},ER=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,l)=>We(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},bR=(e,t,n,r)=>{let o=e._zod.def,i=We(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=We(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l,t.intersections.push(l)},_R=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((b,x)=>We(b,t,{...r,path:[...r.path,s,x]})),u=i.rest?We(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,d=i.items.length;for(;d>0;){let b=i.items[d-1];if(!(t.io==="input"?Uu(b)!==void 0:b._zod.optout==="optional"))break;d--}let f=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=l,m?o.items=!1:u&&(o.items=u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):t.target==="openapi-3.0"?(o.items={anyOf:l},u&&o.items.anyOf.push(u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):(o.items=l,m?o.additionalItems=!1:u&&(o.additionalItems=u),d>0&&(o.minItems=d),m&&(o.maxItems=f));let{minimum:h,maximum:g}=Un(e);typeof h=="number"&&(o.minItems=h),typeof g=="number"&&(o.maxItems=g)};Cb=new WeakMap;TR=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Un(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let d=We(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let f of a)zn(o.patternProperties,rR(f).source,d)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=We(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let d=Cb.get(t);d||(d=[],Cb.set(t,d),t.deferred.push(()=>zF(t))),d.push(e)}o.additionalProperties=We(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let l=s._zod.values,u=t.io==="input"&&Uu(i.valueType)!==void 0;if(l&&!i.partial&&!u){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d.map(String))}},SR=(e,t,n,r)=>{let o=e._zod.def,i=We(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},AR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Lb=Symbol();yR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=xR(o.defaultValue,e,t,n,r);s!==Lb&&(n.default=s)},wR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=xR(o.defaultValue,e,t,n,r);s!==Lb&&(n._prefault=s)},vR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{lo(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},NR=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;We(s,t,r);let a=t.seen.get(e);a.ref=s},RR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},$b=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},OR=(e,t,n,r)=>{let o=e._zod.innerType;We(o,t,r);let i=t.seen.get(e);i.ref=o}});var Pi=y(()=>{Us();Vy();ky();cb();Jv();Lf();eb();Sn();fb();QE();rN();BN();Zf()});var Db=y(()=>{Pi()});function Yf(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var CR,VF,Hn,zb=y(()=>{Pi();Pi();Sn();CR=new WeakSet([Object.prototype,Error.prototype]);VF=(e,t)=>{Cy.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);CR.has(n)||(CR.add(n),Yf(n,"format",r=>o=>$y(r,o)),Yf(n,"flatten",r=>o=>Ly(r,o)),Yf(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,ic,2)}),Yf(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,ic,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Hn=I("ZodError",VF,void 0,{Parent:Error})});var LR,$R,kR,DR,zR,PR,MR,UR,HR,FR,BR,GR,Pb=y(()=>{Pi();zb();Pi();LR=wf(Hn),$R=vf(Hn),kR=Nf(Hn),DR=Rf(Hn),zR=zy(Hn),PR=Py(Hn),MR=My(Hn),UR=Uy(Hn),HR=Hy(Hn),FR=Fy(Hn),BR=By(Hn),GR=Gy(Hn)});function KF(){nn.localeError||Mn(Qv())}function Hu(){nn.memoizer||Mn({memoizer:qv()})}function p(e){return iN(WF,e)}function T(e){return LN(YR,e)}function VR(e){return $N(gB,e)}function L(e){return kN(EB,e)}function Fu(e){return DN(bB,e)}function XR(e){return zN(_B,e)}function Q(){return PN(TB)}function AB(e){return MN(SB,e)}function O(e,t){return UN(xB,e,t)}function _(e,t){let n={type:"object",shape:e!=null?e:{},...oe.normalizeParams(t)};return new yB(n)}function bt(e,t){return new qR({type:"union",options:e,...oe.normalizeParams(t)})}function Rt(e,t,n){return new wB({type:"union",options:t,discriminator:e,...oe.normalizeParams(n)})}function NB(e,t){return new vB({type:"intersection",left:e,right:t})}function Jf(e,t,n){let r=t instanceof De,o=r?n:t,i=r?t:null;return new RB({type:"tuple",items:e,rest:i,...oe.normalizeParams(o)})}function se(e,t,n){return!t||!t._zod?new Mb({type:"record",keyType:p(),valueType:e,...oe.normalizeParams(t)}):new Mb({type:"record",keyType:e,valueType:t,...oe.normalizeParams(n)})}function Ub(e,t,n){return new Mb({type:"record",keyType:e,valueType:t,...oe.normalizeParams(n),partial:!0})}function fe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new qf({type:"enum",entries:n,...oe.normalizeParams(t)})}function R(e,t){return new qf({type:"enum",entries:e,...oe.normalizeParams(t)})}function H(e,t){return new JR({type:"literal",values:Array.isArray(e)?e:[e],...oe.normalizeParams(t)})}function QR(e){return new OB({type:"transform",transform:e})}function jR(e){return new Hb({type:"optional",innerType:e})}function IB(e){return new eO({type:"optional",innerType:e})}function KR(e){return new CB({type:"nullable",innerType:e})}function $B(e,t){return new LB({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oe.shallowClone(t)}})}function DB(e,t){return new kB({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oe.shallowClone(t)}})}function zB(e,t){return new tO({type:"nonoptional",innerType:e,...oe.normalizeParams(t)})}function MB(e,t){return new PB({type:"catch",innerType:e,catchValue:typeof t=="function"?t:oe.constantCatch(t)})}function WR(e,t){return new nO({type:"pipe",in:e,out:t})}function FB(e){return new HB({type:"readonly",innerType:e})}function Qf(e){return new BB({type:"lazy",getter:e})}function VB(e,t={}){return HN(GB,e,t)}function jB(e,t){return FN(e,t)}function Bu(e,t){return new UB({type:"pipe",in:QR(e),out:t})}var Me,ZR,WF,Je,ZF,YF,XF,qF,JF,QF,Xf,eB,tB,nB,rB,oB,iB,sB,aB,cB,lB,uB,dB,pB,fB,hB,mB,YR,gB,EB,bB,_B,TB,SB,xB,yB,qR,wB,vB,RB,Mb,qf,JR,OB,Hb,eO,CB,LB,kB,tO,PB,nO,UB,HB,BB,GB,rO=y(()=>{Pi();Pi();IR();Zf();eN();Db();Pb();Me=I("ZodType",(e,t)=>(KF(),De.init(e,t),e.def=t,e.type=t.type,e),{check(...e){var n;let t=this.def;return this.clone(oe.mergeDefs(t,{checks:[...(n=t.checks)!=null?n:[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Cr(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(VB(e,t))},superRefine(e,t){return this.check(jB(e,t))},overwrite(e){return this.check(zi(e))},optional(){return jR(this)},exactOptional(){return IB(this)},nullable(){return KR(this)},nullish(){return jR(KR(this))},nonoptional(e){return zB(this,e)},array(){return O(this)},or(e){return bt([this,e])},and(e){return NB(this,e)},transform(e){return WR(this,QR(e))},default(e){return $B(this,e)},prefault(e){return DB(this,e)},catch(e){return MB(this,e)},pipe(e){return WR(this,e)},readonly(){return FB(this)},describe(e){let t=this.clone();return Hs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Hs.get(this);let t=this.clone();return Hs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return oe.hide(this,"~standard",{...nb(this),jsonSchema:{input:Mu(this,"input"),output:Mu(this,"output")}})},set"~standard"(e){oe.own(this,"~standard",e)},parse:function e(t,n){return LR(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $R(this,t,n,{callee:e})},safeParse(e,t){return kR(this,e,t)},async safeParseAsync(e,t){return DR(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){oe.own(this,"spa",e)},validate(e,t){return jE(this,e,t)},validateAsync(e,t){return KE(this,e,t)},encode:function e(t,n){return zR(this,t,n,{callee:e})},decode:function e(t,n){return PR(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await MR(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await UR(this,t,n,{callee:e})},safeEncode(e,t){return HR(this,e,t)},safeDecode(e,t){return FR(this,e,t)},async safeEncodeAsync(e,t){return BR(this,e,t)},async safeDecodeAsync(e,t){return GR(this,e,t)},toJSONSchema(e){return ZN(this,{})(e)},get description(){var e;return(e=Hs.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),ZR=I("_ZodString",(e,t)=>{Pf.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>oR(e,n,r,o)},oe.derived({format:e=>{var t;return(t=Un(e).format)!=null?t:null},minLength:e=>{var t;return(t=Un(e).minimum)!=null?t:null},maxLength:e=>{var t;return(t=Un(e).maximum)!=null?t:null}},{regex(...e){return this.check(hb(...e))},includes(...e){return this.check(Eb(...e))},startsWith(...e){return this.check(bb(...e))},endsWith(...e){return this.check(_b(...e))},min(...e){return this.check(uc(...e))},max(...e){return this.check(Kf(...e))},length(...e){return this.check(Wf(...e))},nonempty(...e){return this.check(uc(1,...e))},lowercase(e){return this.check(mb(e))},uppercase(e){return this.check(gb(e))},trim(){return this.check(Sb())},normalize(...e){return this.check(Tb(...e))},toLowerCase(){return this.check(Ab())},toUpperCase(){return this.check(xb())},slugify(){return this.check(yb())}})),WF=I("ZodString",(e,t)=>{Pf.init(e,t),ZR.init(e,t)},{email(e){return this.check(sN(JF,e))},url(e){return this.check(pN(eB,e))},jwt(e){return this.check(NN(mB,e))},emoji(e){return this.check(fN(tB,e))},guid(e){return this.check(aN(QF,e))},uuid(e){return this.check(cN(Xf,e))},uuidv4(e){return this.check(lN(Xf,e))},uuidv6(e){return this.check(uN(Xf,e))},uuidv7(e){return this.check(dN(Xf,e))},nanoid(e){return this.check(hN(nB,e))},cuid(e){return this.check(mN(rB,e))},cuid2(e){return this.check(gN(oB,e))},ulid(e){return this.check(EN(iB,e))},base64(e){return this.check(yN(pB,e))},base64url(e){return this.check(wN(fB,e))},xid(e){return this.check(bN(sB,e))},ksuid(e){return this.check(_N(aB,e))},ipv4(e){return this.check(TN(cB,e))},ipv6(e){return this.check(SN(lB,e))},cidrv4(e){return this.check(AN(uB,e))},cidrv6(e){return this.check(xN(dB,e))},e164(e){return this.check(vN(hB,e))},datetime(e){return this.check(RN(ZF,e))},date(e){return this.check(ON(YF,e))},time(e){return this.check(IN(XF,e))},duration(e){return this.check(CN(qF,e))}});Je=I("ZodStringFormat",(e,t)=>{Ve.init(e,t),ZR.init(e,t)}),ZF=I("ZodISODateTime",(e,t)=>{av.init(e,t),Je.init(e,t)}),YF=I("ZodISODate",(e,t)=>{cv.init(e,t),Je.init(e,t)}),XF=I("ZodISOTime",(e,t)=>{lv.init(e,t),Je.init(e,t)}),qF=I("ZodISODuration",(e,t)=>{uv.init(e,t),Je.init(e,t)}),JF=I("ZodEmail",(e,t)=>{Xw.init(e,t),Je.init(e,t)}),QF=I("ZodGUID",(e,t)=>{Zw.init(e,t),Je.init(e,t)}),Xf=I("ZodUUID",(e,t)=>{Yw.init(e,t),Je.init(e,t)}),eB=I("ZodURL",(e,t)=>{Qw.init(e,t),Je.init(e,t)}),tB=I("ZodEmoji",(e,t)=>{ev.init(e,t),Je.init(e,t)}),nB=I("ZodNanoID",(e,t)=>{tv.init(e,t),Je.init(e,t)}),rB=I("ZodCUID",(e,t)=>{nv.init(e,t),Je.init(e,t)}),oB=I("ZodCUID2",(e,t)=>{rv.init(e,t),Je.init(e,t)}),iB=I("ZodULID",(e,t)=>{ov.init(e,t),Je.init(e,t)}),sB=I("ZodXID",(e,t)=>{iv.init(e,t),Je.init(e,t)}),aB=I("ZodKSUID",(e,t)=>{sv.init(e,t),Je.init(e,t)}),cB=I("ZodIPv4",(e,t)=>{dv.init(e,t),Je.init(e,t)}),lB=I("ZodIPv6",(e,t)=>{fv.init(e,t),Je.init(e,t)}),uB=I("ZodCIDRv4",(e,t)=>{hv.init(e,t),Je.init(e,t)}),dB=I("ZodCIDRv6",(e,t)=>{mv.init(e,t),Je.init(e,t)}),pB=I("ZodBase64",(e,t)=>{Ev.init(e,t),Je.init(e,t)}),fB=I("ZodBase64URL",(e,t)=>{bv.init(e,t),Je.init(e,t)}),hB=I("ZodE164",(e,t)=>{_v.init(e,t),Je.init(e,t)}),mB=I("ZodJWT",(e,t)=>{Tv.init(e,t),Je.init(e,t)}),YR=I("ZodNumber",(e,t)=>{ob.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>iR(e,n,r,o),e.isFinite=!0},oe.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Un(e);return Math.max(t!=null?t:Number.NEGATIVE_INFINITY,n!=null?n:Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Un(e);return Math.min(t!=null?t:Number.POSITIVE_INFINITY,n!=null?n:Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Un(e);return!!t||!!(n!=null&&n.some(Number.isSafeInteger))},format:e=>{var t;return(t=Un(e).format)!=null?t:null}},{gt(e,t){return this.check(Vf(e,t))},gte(e,t){return this.check(zu(e,t))},min(e,t){return this.check(zu(e,t))},lt(e,t){return this.check(Gf(e,t))},lte(e,t){return this.check(Du(e,t))},max(e,t){return this.check(Du(e,t))},int(e){return this.check(VR(e))},safe(e){return this.check(VR(e))},positive(e){return this.check(Vf(0,e))},nonnegative(e){return this.check(zu(0,e))},negative(e){return this.check(Gf(0,e))},nonpositive(e){return this.check(Du(0,e))},multipleOf(e,t){return this.check(jf(e,t))},step(e,t){return this.check(jf(e,t))},finite(){return this}}));gB=I("ZodNumberFormat",(e,t)=>{Sv.init(e,t),YR.init(e,t)});EB=I("ZodBoolean",(e,t)=>{Av.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sR(e,n,r,o)});bB=I("ZodUndefined",(e,t)=>{xv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cR(e,n,r,o)});_B=I("ZodNull",(e,t)=>{yv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>aR(e,n,r,o)});TB=I("ZodUnknown",(e,t)=>{wv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uR(e,n,r,o)});SB=I("ZodNever",(e,t)=>{vv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lR(e,n,r,o)});xB=I("ZodArray",(e,t)=>{Hu(),Nv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mR(e,n,r,o),e.element=t.element},{min(e,t){return this.check(uc(e,t))},nonempty(e){return this.check(uc(1,e))},max(e,t){return this.check(Kf(e,t))},length(e,t){return this.check(Wf(e,t))},unwrap(){return this.element}});yB=I("ZodObject",(e,t)=>{Hu(),Iv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gR(e,n,r,o),oe.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return fe(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(oe.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:Q()}))},loose(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:Q()}))},strict(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:AB()}))},strip(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return oe.extend(this,e)},safeExtend(e){return oe.safeExtend(this,e)},merge(e){return oe.merge(this,e)},pick(e){return oe.pick(this,e)},omit(e){return oe.omit(this,e)},partial(...e){return oe.partial(Hb,this,e[0])},exactPartial(...e){return oe.partial(eO,this,e[0],"exactPartial")},required(...e){return oe.required(tO,this,e[0])}});qR=I("ZodUnion",(e,t)=>{ib.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ER(e,n,r,o),e.options=t.options});wB=I("ZodDiscriminatedUnion",(e,t)=>{qR.init(e,t),Cv.init(e,t)});vB=I("ZodIntersection",(e,t)=>{Lv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bR(e,n,r,o)});RB=I("ZodTuple",(e,t)=>{Hu(),$v.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_R(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){var t;let e=this._zod.def;if((t=e.checks)!=null&&t.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(n=>new Hb({type:"optional",innerType:n}))})}});Mb=I("ZodRecord",(e,t)=>{Hu(),kv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TR(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});qf=I("ZodEnum",(e,t)=>{Dv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(r,o,i)=>dR(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new qf({...t,checks:[],...oe.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new qf({...t,checks:[],...oe.normalizeParams(o),entries:i})}});JR=I("ZodLiteral",(e,t)=>{zv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pR(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});OB=I("ZodTransform",(e,t)=>{Hu(),Pv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hR(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new lc(e.constructor.name);n.addIssue=i=>{var s,a;if(typeof i=="string")n.issues.push(oe.issue(i,n.value,t));else{let l=i;l.fatal&&(l.continue=!1),(s=l.code)!=null||(l.code="custom"),"input"in l||(l.input=n.value),(a=l.inst)!=null||(l.inst=e),n.issues.push(oe.issue(l))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});Hb=I("ZodOptional",(e,t)=>{sb.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$b(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});eO=I("ZodExactOptional",(e,t)=>{Mv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$b(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});CB=I("ZodNullable",(e,t)=>{Uv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>SR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});LB=I("ZodDefault",(e,t)=>{Hv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});kB=I("ZodPrefault",(e,t)=>{Fv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});tO=I("ZodNonOptional",(e,t)=>{Bv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>AR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});PB=I("ZodCatch",(e,t)=>{Gv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});nO=I("ZodPipe",(e,t)=>{ab.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NR(e,n,r,o),e.in=t.in,e.out=t.out});UB=I("ZodPreprocess",(e,t)=>{nO.init(e,t),Vv.init(e,t)}),HB=I("ZodReadonly",(e,t)=>{jv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>RR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});BB=I("ZodLazy",(e,t)=>{Kv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>OR(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});GB=I("ZodCustom",(e,t)=>{Wv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fR(e,n,r,o)})});var uo,oO,iO=y(()=>{uo={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};oO||(oO={})});var sO=y(()=>{rO();Db();zb();Pb();iO()});var ce=y(()=>{sO()});var Fb,eh,Bb=y(()=>{"use strict";Fb="reticle_act",eh={ACT:Fb,ACT_SEQUENCE:"reticle_act_sequence",ACT_AND_WAIT:"reticle_act_and_wait",INVOKE:"reticle_invoke",NAVIGATE:"reticle_navigate",REQUEST:"reticle_request"}});var th,Gb,Vb,P,AQ,KB,xQ,Ko=y(()=>{"use strict";th={SIGNAL:"signal",NET:"net",STATE:"state"},Gb={ELEMENT:"element",TEXT:"text"},Vb={NETWORK:"network",APP:"app"},P={ELEMENT:Gb.ELEMENT,TEXT:Gb.TEXT,SIGNAL:th.SIGNAL,NET:th.NET,STATE:th.STATE,ROUTE:"route",CONSOLE:"console",ANIMATION:"animation",SETTLED:"settled",COMPARE:"compare",ALL_OF:"allOf",ANY_OF:"anyOf",NOT:"not"},AQ=new Set(Object.values(th)),KB=new Set(Object.values(Gb)),xQ=new Set([...KB,P.ROUTE])});var aO,cO,lO,jb,WB,uO,Dr,dO,Ze,on,nh,Gu=y(()=>{"use strict";aO=1,cO={FLOW_REPLAY:"flow_replay",MANUAL:"manual"},lO={PASS:"pass",DRIFT:"drift",ERROR:"error",FAIL:"fail"},jb=2,WB=3,uO=new Set([1,jb,WB]),Dr={TESTID:"testid",ROLE:"role",SIGNAL:"signal",COMPONENT:"component"},dO="unresolved",Ze={ASSERT_SIGNAL:"assert-signal",ASSERT_VISIBLE:"assert-visible",ASSERT_STATE:"assert-state",ASSERT_NET:"assert-net",MARK_DYNAMIC:"mark-dynamic",SUCCESS_STATE:"success-state",INTENT:"intent"},on={IDLE:"idle",RECORDING:"recording",ANNOTATING:"annotating"},nh={ACTIVE:"active",QUARANTINED:"quarantined",DRAFT:"draft"}});var pO,Kb=y(()=>{"use strict";pO={READ:"read",IDEMPOTENT:"idempotent",COMMITS:"commits"}});var fO=y(()=>{"use strict"});var v,Vu,Fs,sr,ar,fc,Mi,Bs,ju,Gs,_t,Wo,rh=y(()=>{"use strict";v={DOM_ADDED:"dom.added",DOM_REMOVED:"dom.removed",DOM_ATTR:"dom.attr",DOM_TEXT:"dom.text",NET_REQUEST:"net.request",NET_PENDING:"net.pending",NET_UNPATCHED:"net.unpatched",NET_STREAM:"net.stream",PERF:"perf",ROUTE_CHANGE:"route.change",CONSOLE_LOG:"console.log",CONSOLE_WARN:"console.warn",CONSOLE_ERROR:"console.error",CONSOLE_INFO:"console.info",CONSOLE_DEBUG:"console.debug",ERROR_UNCAUGHT:"error.uncaught",VISIBLE_SHOWN:"visible.shown",ANIM_START:"anim.start",ANIM_END:"anim.end",SCROLL_POSITION:"scroll.position",REVEAL_SHOWN:"reveal.shown",SIGNAL:"signal",STATE_CHANGE:"state.change",STORAGE_CHANGE:"storage.change",PAGE_HEALTH:"page.health",CONTEXT_OPENED:"context.opened",DIALOG_OPENED:"dialog.opened",RENDER_COMMIT:"render.commit",FOCUS_CHANGE:"focus.change",FIELD_CHANGE:"field.change",FLOW_RECORDED:"flow.recorded",TRANSPORT_OVERFLOW:"transport.overflow",TRUNCATED:"truncated",BLIND_SPOT:"blind-spot",SDK_FAILED:"sdk.failed",NET_DETAIL:"net.detail",NET_RESPONSE_BODY:"net.response-body",HUMAN_CONTROL:"human.control",HUMAN_MARK:"human.mark",DOWNLOAD:"download",HUD_USED:"hud.used",MEDIA_STATE:"media.state",CANVAS_DIGEST:"canvas.digest"},Vu={PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEKED:"seeked",ENDED:"ended",LOADED_DATA:"loadeddata",CAN_PLAY:"canplay",WAITING:"waiting",ERROR:"error"},Fs={POLL:"poll",ACT:"act"},sr={SSE:"sse",WS:"ws",FETCH:"fetch"},ar={OPEN:"open",IN:"in",OUT:"out",CLOSE:"close"},fc={UP:"up",DOWN:"down"},Mi={ASSERTIVE:"assertive",POLITE:"polite"},Bs={PUSH:"push",REPLACE:"replace",POP:"pop"},ju="how",Gs={INPUT:"input",CHANGE:"change",SETTLED:"settled"},_t={FIELD:"field",KIND:"kind",LENGTH:"length",VALUE:"value",REDACTED:"redacted",CHECKED:"checked",PREVIOUS:"previous",PREVIOUS_CHECKED:"previousChecked"},Wo={LOCAL:"local",SESSION:"session",COOKIE:"cookies"}});function mO(e=Wb,t=ZB){return`ws://${t}:${String(e)}${Ui}`}var Wb,Ui,oh,hO,ZB,Fn,gO,ih,OQ,W,Ne,sh,EO,bO,_O,hc,IQ,TO,LQ,Ku,ah,ch,SO,mc,Wu,YB,$Q,k,AO,xO,ge,je,B,ct,gc,sn,Gt=y(()=>{"use strict";fO();rh();rh();Wb=4400,Ui="/reticle",oh=1,hO=1,ZB="localhost";Fn={SESSION:"__reticle_session",PROJECT:"__reticle_project",OPENED:"__reticle_opened",HUD:"__reticle_hud"},gO="__reticle_session",ih="https://app.reticle.sh",OQ={MAX_RUNS:50,MAX_BYTES:4*1024*1024},W={MAX_MESSAGE_BYTES:1024*1024,MAX_MESSAGES_PER_SECOND:2e4,MAX_SESSIONS:32,MAX_PENDING_CONNECTIONS:16,HELLO_TIMEOUT_MS:5e3,MAX_BUFFER_BYTES:8*1024*1024,MAX_SESSION_ID_LENGTH:128,MAX_URL_LENGTH:4096,MAX_TITLE_LENGTH:512,MAX_ADAPTERS:32,MAX_CONTRACT_NAMES:128,MAX_ADAPTER_NAME_LENGTH:128,MAX_TOKEN_LENGTH:512,MAX_COMMAND_ID_LENGTH:128,MAX_COMMAND_NAME_LENGTH:128,MAX_REF_LENGTH:128,MAX_ERROR_LENGTH:4096,MAX_STACK_LENGTH:4e3,MAX_SERIALIZE_DEPTH:8,MAX_COLLECTION_ITEMS:200,MAX_DESCRIBED_TEXT:80,MAX_FULL_TEXT:4e3,MAX_FULL_TEXT_ELEMENTS:32,MAX_OBJECT_KEYS:200,MAX_STRING_LENGTH:64*1024,MAX_MARK_NOTE_LENGTH:2e3,MAX_MARK_LABEL_LENGTH:256},Ne="[REDACTED]",sh="confirmDangerous",EO="native",bO="reveal",_O="inViewport",hc={NO_PROVIDER:"no-visual-provider",CAPTURE_FAILED:"capture-failed",BASELINE_MISSING:"baseline-missing",DIMENSION_MISMATCH:"dimension-mismatch",FULL_PAGE_UNSUPPORTED:"full-page-unsupported",CROP_UNSUPPORTED:"crop-unsupported",NOT_COMPOSITED:"window-not-composited"},IQ=1440*60*1e3,TO=1,LQ={MAX_EVENTS:2e3,MAX_AGE_MS:6e4,MAX_BYTES:W.MAX_BUFFER_BYTES},Ku="reticle:busy",ah="__reticle_renders",ch={DOM:"dom",JOURNAL:"journal"},SO={WINDOW:"window"},mc={LCP:"lcp",CLS:"cls",LONGTASK:"longtask"},Wu={HOVER_NATIVE_ENTER_LEAVE:"target has enter/leave handlers; synthetic hover may not trigger them \u2014 expect no state change",REAL_INPUT_FELL_BACK:"real-input provider was available but failed; fell back to synthetic dispatch",CLICK_OCCLUDED:"target is visually occluded by another element; a real user could not click it (synthetic dispatch still delivered the event) \u2014 dismiss the overlay or scroll the target clear",GLOBAL_PRESS:"press landed on the focused element or document \u2014 no named target was given, so this effect does not claim one",CLICK_NOT_A_CONTROL:"target is not a control and sits inside none (no button/link/input role, onclick, tabindex or pointer cursor), so a click on it may do nothing \u2014 if nothing happened, target the control inside it by role"},YB="console.",$Q=[v.CONSOLE_LOG,v.CONSOLE_WARN,v.CONSOLE_ERROR,v.CONSOLE_INFO].map(e=>e.slice(YB.length)),k={CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",FOCUS:"focus",BLUR:"blur",FILL:"fill",TYPE:"type",CLEAR:"clear",SELECT:"select",CHECK:"check",UNCHECK:"uncheck",SUBMIT:"submit",PRESS:"press",UPLOAD:"upload",SCROLL_INTO_VIEW:"scrollIntoView",SCROLL:"scroll",DRAG:"drag",INSERT_TEXT:"insertText",TAP:"tap",ZOOM:"zoom"},AO={TIMEOUT:"timeout",THROTTLED:"throttled"},xO={UNAVAILABLE:"component-state-unavailable"},ge={VISIBLE:"visible",HIDDEN:"hidden",ENABLED:"enabled",DISABLED:"disabled",CHECKED:"checked",EXPANDED:"expanded",PRESSED:"pressed",FOCUSED:"focused",PRESENT:"present",IN_VIEWPORT:"inViewport",RECEIVES_POINTER:"receivesPointer"},je={ROLE:"role",TEXT:"text",LABEL:"label",PLACEHOLDER:"placeholder",TESTID:"testid",ALT:"alt",COMPONENT:"component"},B={SNAPSHOT:"snapshot",QUERY:"query",MATCH:"match",INSPECT:"inspect",ACT:"act",ACT_SEQUENCE:"act_sequence",ANIMATIONS:"animations",NARRATE:"narrate",CLOCK:"clock",CAPABILITIES:"capabilities",STATE_READ:"state_read",STORAGE_READ:"storage_read",SCROLL:"scroll",SESSION_CONFIG:"session_config",PRESENTER:"presenter",IMPACT:"impact",CAPTURE:"capture",RENDER:"render",NAVIGATE:"navigate",REFRESH:"refresh",FLOWS:"flows",FLOW_PROGRESS:"flow.progress",PLAN:"plan",MARKERS:"markers"},ct={IDLE:"idle",READING:"reading",ACTING:"acting"},gc={FULL:"full",INTERACTIVE:"interactive",STATUS:"status"},sn={HELLO:"hello",COMMAND:"command",COMMAND_RESULT:"command_result",EVENT:"event"}});var cr,XB,lr,PQ,Vs=y(()=>{"use strict";ce();cr={WEB:"web",DESKTOP:"desktop",MOBILE:"mobile",SERVICE:"service",GAME:"game",DEVICE:"device"},XB=bt([R(cr),p().regex(/^x-[a-z0-9-]+$/,"a surface this specification does not name must start with x-")]),lr=_({surface:XB,instance:p().min(1),epoch:T().int().nonnegative().optional(),locator:p().optional(),revision:p().optional()}),PQ=_({kind:fe(["instance","epoch"]),from:p(),to:p()})});var $,Bn,An,an,Zb,Yb,zr=y(()=>{"use strict";ce();$={UI:"ui",NET:"net",STATE:"state",SIGNAL:"signal",LOG:"log",ROUTE:"route",STORAGE:"storage",TIME:"time",VISUAL:"visual"},Bn=bt([R($),p().regex(/^x-[a-z0-9-]+$/,"a channel this specification does not name must start with x-")]),An={INDEPENDENT:"independent",ACTUATION_DERIVED:"actuation-derived"},an={CONSEQUENCE:"consequence",PRESENCE:"presence",CONTEXT:"context"},Zb=_({id:Bn,independence:R(An),grade:R(an),note:p().optional()}),Yb={[$.UI]:{independence:An.ACTUATION_DERIVED,grade:an.PRESENCE},[$.NET]:{independence:An.INDEPENDENT,grade:an.CONSEQUENCE},[$.STATE]:{independence:An.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.SIGNAL]:{independence:An.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.LOG]:{independence:An.INDEPENDENT,grade:an.CONTEXT},[$.ROUTE]:{independence:An.ACTUATION_DERIVED,grade:an.PRESENCE},[$.STORAGE]:{independence:An.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.TIME]:{independence:An.INDEPENDENT,grade:an.CONTEXT},[$.VISUAL]:{independence:An.ACTUATION_DERIVED,grade:an.PRESENCE}}});var yO=y(()=>{"use strict"});var BQ,wO=y(()=>{"use strict";ce();Vs();BQ=_({id:p().min(1),subject:lr,capturedAt:T().int(),payload:Q().optional()})});var VQ,vO=y(()=>{"use strict";ce();VQ=_({mutation:p().min(1)})});var qB,Xb,JB,QB,NO,RO,qb,OO,IO,Zu=y(()=>{"use strict";ce();zr();qB={USER:"user",DEVELOPER:"developer",AGENT:"agent",SYSTEM:"system",WORKFLOW:"workflow",DERIVED:"derived"},Xb={DECLARED:"declared",BOUND:"bound",ABANDONED:"abandoned"},JB=_({id:p().min(1),statement:p().min(1),origin:R(qB),claims:O(p()).default([]),declaredAt:T().int().optional()}),QB=Rt("status",[_({status:H(Xb.ABANDONED),abandonedBecause:p().trim().min(1)}),_({status:H(Xb.DECLARED),abandonedBecause:Fu().optional()}),_({status:H(Xb.BOUND),abandonedBecause:Fu().optional()})]),NO=JB.and(QB),RO={BEFORE_ACTION:"before-action",AFTER_ACTION:"after-action"},qb=_({id:p().min(1),predicate:Q().optional(),reads:p().min(1),channels:O(Bn).min(1)}),OO=_({id:p().min(1),intent:p().optional(),statement:p().min(1),declaredAt:R(RO),assertions:O(qb).default([])}),IO=_({id:p().min(1),statement:p().min(1),predicate:Q().optional(),channels:O(Bn).min(1),severity:fe(["blocking","advisory"]).default("blocking")})});var eG,Ec,XQ,Jb,CO,LO,tG,$O,Hi=y(()=>{"use strict";ce();zr();Vs();eG=_({id:p().min(1),window:p().min(1),channel:Bn,at:T().int(),value:Q().optional(),summary:p().min(1)}),Ec={AUTHORITATIVE:"authoritative",DERIVED:"derived",OBSERVED:"observed",LEARNED:"learned"},XQ={[Ec.LEARNED]:0,[Ec.OBSERVED]:1,[Ec.DERIVED]:2,[Ec.AUTHORITATIVE]:3},Jb=_({class:R(Ec),source:p().min(1),method:p().min(1),subject:lr,at:T().int(),confidence:T().min(0).max(1).optional()}),CO=_({observation:eG,provenance:Jb,independence:R(An),grade:R(an)}),LO={CHANNEL_UNOBSERVED:"channel-unobserved",BOUNDARY_UNCROSSABLE:"boundary-uncrossable",BUFFER_TRUNCATED:"buffer-truncated",REDACTED:"redacted",STILL_IN_FLIGHT:"still-in-flight",EFFECT_ELSEWHERE:"effect-elsewhere"},tG=_({kind:R(LO),channel:Bn.optional(),detail:p().min(1),impeaching:L(),remedy:p().optional()}),$O=_({window:p().min(1),observed:O(Bn),blindSpots:O(tG)})});var rG,oG,lh,iG,uh,Qb,eee,kO=y(()=>{"use strict";ce();zr();Hi();rG=_({channel:Bn}),oG=bt([_({summary:p().min(1),valueContains:p().min(1)}),_({summary:p().min(1).optional(),valueContains:Fu().optional()})]),lh=rG.and(oG),iG={EXACTLY:"exactly",AT_LEAST:"at-least",AT_MOST:"at-most"},uh={COUNT:"count",PRESENT:"present",ABSENT:"absent",MEASURE:"measure"},Qb={EQUALS:"equals",AT_LEAST:"at-least",AT_MOST:"at-most"},eee=Rt("kind",[_({kind:H(uh.COUNT),match:lh,op:R(iG),value:T().int().nonnegative()}),_({kind:H(uh.PRESENT),match:lh}),_({kind:H(uh.ABSENT),match:lh}),_({kind:H(uh.MEASURE),match:lh,op:R(Qb),value:T().finite(),tolerance:T().nonnegative().finite().default(0)})])});var ree,e_,oee,dh,DO,Yu,zO,iee,js=y(()=>{"use strict";ce();Vs();ree=_({name:p().min(1),meaning:p().min(1),parameters:Q().optional(),mutating:L()}),e_={UNDECLARED:"undeclared",UNSUPPORTED:"unsupported",UNRESOLVED:"unresolved",UNAVAILABLE:"unavailable",GUARDED:"guarded",MALFORMED:"malformed"},oee=_({ref:p().min(1),describes:p().min(1),at:p().optional()}),dh=_({id:p().min(1),actor:p().min(1),capability:p().min(1),target:p().optional(),parameters:Q().optional(),at:T().int()}),DO=_({action:p().min(1),dispatched:L(),refused:_({reason:R(e_),detail:p().min(1)}).optional(),subject:lr,at:T().int()}),Yu={QUIESCENCE:"quiescence",TICKS:"ticks",ACK:"ack",SIGNAL:"signal",SETTLED_PHYSICAL:"settled-physical",EXIT:"exit",TERMINATED:"terminated",BUDGET_EXHAUSTED:"budget-exhausted"},zO=_({id:p().min(1),openedAt:T().int(),closedAt:T().int().optional(),budgetMs:T().int().positive(),closes:R(Yu),closedBy:R(Yu).optional(),subject:lr}),iee=new Set([Yu.BUDGET_EXHAUSTED,Yu.TERMINATED])});var ph,sG,PO,aG,t_,n_,MO,bc=y(()=>{"use strict";ce();zr();ph={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},sG=p().min(1),PO={ADVANCED_OVER_FAILURE:"advanced-over-failure",CLAIMED_OVER_FAILURE:"claimed-over-failure",EFFECT_DISCARDED:"effect-discarded",CLAIM_UNCORROBORATED:"claim-uncorroborated",FAILURE_INSIDE_SUCCESS:"failure-inside-success",VALUE_NOT_APPLIED:"value-not-applied",DUPLICATED_EFFECT:"duplicated-effect",STALE_APPLIED:"stale-applied",NO_EFFECT:"no-effect",FAULT_MISATTRIBUTED:"fault-misattributed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit"},aG=bt([R(PO),p().regex(/^x-[a-z0-9-]+$/,"an anomaly this specification does not name must start with x-")]),t_={OBSERVED:"observed",ABSENCE_DERIVED:"absence-derived",ADVISORY:"advisory"},n_=_({kind:aG,tier:R(t_),claim:p().min(1),counter:p().min(1),between:Jf([Bn,Bn]),evidence:O(p()).default([])}),MO=_({id:p().min(1),claim:p().min(1),window:p().min(1),verdict:R(ph),grade:R(an).optional(),reasons:O(sG).default([]),evidence:O(p()).default([]),anomalies:O(n_).default([]),supersedes:p().optional(),at:T().int()})});var cG,lG,uG,fee,UO,dG,hee,r_=y(()=>{"use strict";ce();js();Zu();Hi();bc();cG=p().min(1).regex(/^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[^/]+(?:\/[^/]+)*$/,{message:"a flow name is `/`-separated segments: no empty segment, no leading or trailing slash, no `.` or `..`"}),lG=_({id:p().min(1),invoke:cG,with:Q().optional(),at:T().int()}),uG=bt([dh,lG]),fee=_({name:p().min(1),version:T().int().positive(),startState:Q().optional(),requires:Q().optional(),ensures:Q().optional(),claim:p().min(1),steps:O(uG),expects:O(qb).default([]),mayRebind:L().default(!1)}),UO=_({verdict:p().min(1),expected:p().min(1),actual:p().min(1),evidence:O(p()).min(1),location:_({file:p(),line:T().int().optional(),symbol:p().optional()}).optional(),instruction:p().min(1)}),dG={INVARIANT:"invariant",FAILURE_MODE:"failure-mode",GAP:"gap",REPAIR_OUTCOME:"repair-outcome"},hee=_({id:p().min(1),kind:R(dG),statement:p().min(1),provenance:Jb,observations:T().int().nonnegative().default(0),promotedBy:p().optional(),promotedAt:T().int().optional()})});var pG,fG,xee,HO=y(()=>{"use strict";ce();zr();Zu();js();Hi();bc();r_();Vs();pG="1.0",fG=_({constraint:p().min(1),at:T().int(),detail:p().min(1),evidence:O(p()).default([])}),xee=_({ovp:H(pG),id:p().min(1),verifier:_({name:p().min(1),version:p().min(1),profile:p().optional()}),subject:lr,channels:O(Zb),witnesses:O(_({name:p().min(1),subject:lr,channels:O(Zb)})).default([]),intents:O(NO).default([]),claims:O(OO).default([]),constraints:O(IO).default([]),actions:O(dh).default([]),receipts:O(DO).default([]),windows:O(zO).default([]),evidence:O(CO).default([]),coverage:O($O).default([]),anomalies:O(n_).default([]),verdicts:O(MO).default([]),violations:O(fG).default([]),repairs:O(UO).default([]),startedAt:T().int(),endedAt:T().int()})});var o_=y(()=>{"use strict";bc()});var i_=y(()=>{"use strict";Zu();zr();Hi();js();bc()});var s_=y(()=>{"use strict";js();zr();o_();Hi();i_()});var a_=y(()=>{"use strict"});var FO=y(()=>{"use strict";a_()});var Ks,Wee,Zee,Yee,BO=y(()=>{"use strict";ce();zr();Ks={EFFECT:"effect",IN_REALM:"in-realm",SURFACE:"surface"},Wee=[Ks.EFFECT,Ks.IN_REALM,Ks.SURFACE],Zee={[Ks.EFFECT]:[$.NET,$.LOG],[Ks.IN_REALM]:[$.NET,$.LOG,$.STATE,$.SIGNAL],[Ks.SURFACE]:[$.NET,$.LOG,$.STATE,$.SIGNAL,$.UI]},Yee=_({name:p().min(1),version:p().min(1),platform:p().min(1),claims:R(Ks),homepage:p().optional()})});var GO=y(()=>{"use strict";s_();zr();js();Hi();Vs()});var _c=y(()=>{"use strict";Vs();zr();yO();wO();vO();Zu();kO();js();Hi();bc();r_();HO();s_();o_();a_();FO();i_();BO();GO()});var Gn,ot,VO,cn,Zo=y(()=>{"use strict";Gn={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},ot={VERSION_SKEW:"version_skew",CAPABILITY_ABSENT:"capability-absent",INCONCLUSIVE:"inconclusive",OBSERVATION_LOST:"observation_lost",WINDOW_CLOSED_EARLY:"window_closed_early",DIALOG_DECLINED:"dialog_declined",ASSERTION_FAILED:"assertion_failed",CONTRADICTED:"contradicted",ALREADY_TRUE:"already_true",HIDDEN_MATCH:"hidden_match",UNCLEAN_CAPTURE:"unclean_capture",VACUOUS_GRADE:"vacuous_grade",NOTHING_DECLARED:"nothing_declared",OUTCOME_PENDING:"outcome_pending",OUTCOME_UNREAD:"outcome_unread",UNSETTLED:"unsettled",EVIDENCE_INCOMPLETE:"evidence_incomplete",PROVED:"proved",ABSENCE_BLIND_SPOT:"absence_blind_spot"},VO={BUFFER_LOSS:"buffer_loss",TRANSPORT_GAP:"transport_gap",BLIND_SPOT:"blind_spot",JOURNAL_LOSS:"journal_loss",OTHER:"other"},cn={CLOSED_SHADOW_ROOT:"closed-shadow-root",RATE_LIMITED:"rate-limited",CROSS_ORIGIN_IFRAME:"cross-origin-iframe",UNINSTRUMENTED_FRAME:"uninstrumented-frame",VIRTUALIZED_UNMOUNTED:"virtualized-unmounted",WRAPPED_NETWORK:"wrapped-network",UNOBSERVED_IPC:"unobserved-ipc",VERDICTLESS_SEND:"verdictless-send",UNWATCHED_STATE:"unwatched-state",CANVAS_PAINT_UNOBSERVED:"canvas-paint-unobserved"}});var gG,EG,jO,c_=y(()=>{"use strict";ce();Zo();gG={FINDABLE:"findable",DISCOVERABILITY:"discoverability",AGENT_ASSUMPTION:"agent_assumption",DEFECT:"defect"},EG=20,jO=_({goal:p().min(1).max(500),kind:R(gG),agent:_({verified:R(Gn),claim:p().max(2e3)}),harness:_({verified:R(Gn),found:L(),searched:O(p().max(500)).max(EG),gaveUpAt:p().max(500).optional()})})});var bG,_G,TG,SG,AG,xG,KO,yG,fh,wG,vG,NG,RG,OG,IG,CG,LG,$G,kG,Lte,DG,l_,u_,zG,PG,MG,UG,HG,FG,BG,GG,VG,jG,$te,d_=y(()=>{"use strict";ce();_c();Ko();Zo();c_();bG=3,_G=1,TG=2,SG={pass:Gn.YES,fail:Gn.NO},AG={network:P.NET,layout:P.ELEMENT},xG=p().brand(),KO={PASS:"pass",FAIL:"fail",PARTIAL:"partial",UNKNOWN:"unknown"},yG={PASS:"pass",FAIL:"fail",SKIPPED:"skipped",HEALED:"healed"},fh={AUTH:"auth",PAYMENT:"payment",DB:"db",MIGRATION:"migration",RLS:"rls",SECRETS:"secrets",DESTRUCTIVE:"destructive",EXTERNAL:"external"},wG={LOW:"low",MEDIUM:"medium",HIGH:"high",CRITICAL:"critical"},vG={EDIT:"edit",CI:"ci",MANUAL:"manual",OEM:"oem"},NG={ADDED:"added",MODIFIED:"modified",DELETED:"deleted"},RG={CODING_AGENT:"coding-agent",OEM_PIPELINE:"oem-pipeline",HUMAN:"human"},OG={REACT:"react",NEXT:"next",VITE:"vite",OTHER:"other"},IG={PREVIEW:"preview",CI:"ci",LOCAL:"local"},CG={HIGH:"high",MEDIUM:"medium",LOW:"low"},LG={DEV:"dev",PROD_PREVIEW:"prod-preview"},$G=_({file:p(),line:T().optional(),component:p().optional()}),kG=_({path:p(),changeKind:R(NG),risk:O(R(fh)).default([])}),Lte=64*1024,DG={BROWSER:"browser",RENDERED:"rendered"},l_={RUNS_DIR:"runs",MANIFEST_FILE:"shots.jsonl",JPEG_QUALITY:.7,MAX_SIDE_PX:1600,MAX_PER_RUN:300,MAX_BYTES:1.5*1024*1024,FRAME_TOOL:"frame"},u_=_({file:p(),source:R(DG),width:T(),height:T(),sha256:p()}),zG=u_.extend({seq:T(),tool:p(),step:p().optional(),verdict:L().optional(),checkId:p().optional(),actionId:p().optional()}),PG=_({step:T(),anchor:p(),ok:L(),page:p().optional(),endPage:p().optional(),consequence:p().optional(),error:p().optional(),drift:p().optional(),screenshot:u_.optional()}),MG=_({startPath:p().optional(),steps:O(Q())}),UG=_({name:p(),template:p().optional(),status:R(yG),steps:T(),durationMs:T(),oracle:p().optional(),healed:_({from:p(),to:p(),consequenceVerified:L()}).optional(),evidenceRef:p().optional(),failureReason:p().optional(),stepResults:O(PG).optional(),recording:MG.optional(),recordingOmitted:L().optional()}),HG=_({kind:Bu(e=>{var t;return typeof e=="string"&&(t=AG[e])!=null?t:e},R(P).optional()),predicate:p(),status:Bu(e=>{var t;return typeof e=="string"&&(t=SG[e])!=null?t:e},R(Gn)),evidence:Q().optional(),declaredBeforeActing:L().optional(),expected:p().optional(),observed:p().optional(),grade:p().optional(),couldNotSee:O(p()).optional(),reason:p().optional(),checkId:p().optional(),actionId:p().optional(),intent:p().optional(),intentDerived:L().optional(),failedPart:T().int().min(0).optional(),screenshot:u_.optional(),supersedes:p().optional()}),FG=_({surface:R(fh),severity:R(wG),detail:p(),evidence:_({file:p().optional(),line:T().optional(),network:p().optional()}).optional(),gated:L().default(!1)}),BG=_({consoleErrors:O(_({level:p(),message:p(),at:T()})).default([]),networkAnomalies:O(_({method:p(),url:p(),status:T().optional(),issue:p()})).default([]),stateAssertions:O(_({store:p(),path:p(),expected:Q().optional(),actual:Q().optional(),ok:L()})).default([]),timeline:O(_({at:T(),kind:p(),summary:p()})).default([])}),GG=_({flow:p().optional(),step:T().optional(),expected:p(),actual:p(),sourceLocation:$G.optional(),suggestedPrompt:p()}),VG=_({status:R(KO),reasons:O(p()).default([]),confidence:R(CG),blockingRisks:T().default(0),checkId:p().optional(),supersedes:p().optional()}),jG=_({alg:p(),value:p(),signedAt:T()}),$te=_({schemaVersion:bt([H(bG),H(TG),H(_G)]),runId:xG,createdAt:T(),durationMs:T(),profile:R(LG),project:_({name:p(),framework:R(OG),commit:p().optional(),branch:p().optional(),env:R(IG).optional(),previewUrl:p().optional()}),agent:_({id:p(),kind:R(RG),model:p().optional()}),episodeId:p().optional(),agentSession:p().optional(),trigger:_({kind:R(vG),diffRef:p().optional(),note:p().optional()}),editEpoch:T().optional(),subject:lr.optional(),context:se(p(),Q()).optional(),changedFiles:O(kG).default([]),flows:O(UG).default([]),checks:O(HG).default([]),risks:O(FG).default([]),evidence:BG,repair:_({failurePackets:O(GG).default([])}).optional(),screenshots:O(zG).optional(),verdict:VG,signature:jG.optional(),disparity:O(jO).optional(),agentClaim:R(KO).optional()})});var KG,Xu,Ute,WG,ZG,YG,XG,Hte,qG,JG,QG,Fte,Bte,p_=y(()=>{"use strict";ce();Gt();Gu();d_();KG=O(p().refine(e=>!e.includes("="),{error:e=>`\`attrs\` takes attribute NAMES only, not \`name=value\` \u2014 got ${JSON.stringify(e.input)}. It PROJECTS each attribute onto the match, it does not filter on it. Drop the \`=value\` half and read the returned \`attrs\` map, or assert the value with an \`element\` predicate carrying \`value\`.`})),Xu=_({by:R(je).optional(),value:p().optional(),role:p().optional(),name:p().optional(),text:p().optional(),label:p().optional(),placeholder:p().optional(),testid:p().optional(),alt:p().optional(),component:p().optional(),attrs:KG.optional(),source:_({file:p(),line:T(),column:T().optional()}).strict().optional(),scope:p().optional(),self:L().optional(),matchCase:L().optional()}).strict(),Ute=_({ref:p(),role:p(),name:p(),nameTruncated:H(!0).optional()}),WG=_({name:p(),steps:O(p())}),ZG=_({surface:R(fh),paths:O(p()).optional(),note:p().optional()}),YG=_({owner:p().optional(),safety:O(p()).optional(),scope:O(p()).optional(),redact:O(p()).optional(),risk:O(ZG).optional()}),XG=_({testids:O(p()),signals:O(p()),stores:O(p()),flows:O(WG),governance:YG.optional()}),Hte=_({version:H(TO),generatedAt:T(),capabilities:XG}),qG=_({consoleErrors:T().optional(),networkErrors:T().optional(),driftSteps:T().optional()}),JG=_({kind:R(cO),name:p(),status:R(lO),at:T(),summary:p().optional(),evidence:qG.optional(),durationMs:T().optional()}),QG=_({flows:O(p()).optional(),routes:O(p()).optional(),bestObservability:_({percent:T(),at:T()}).optional()}),Fte=_({version:H(aO),learned:QG.optional(),runs:O(JG)}),Bte=Rt("kind",[_({kind:H(Ze.ASSERT_SIGNAL),name:p().min(1),dataMatches:se(p(),Q()).optional()}),_({kind:H(Ze.ASSERT_VISIBLE),testid:p().min(1)}),_({kind:H(Ze.ASSERT_STATE),statePath:p().min(1),store:p().min(1).optional(),equals:Q().optional()}),_({kind:H(Ze.ASSERT_NET),net:_({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:T().optional(),count:T().int().nonnegative().optional()})}),_({kind:H(Ze.MARK_DYNAMIC),testid:p().min(1)}),_({kind:H(Ze.SUCCESS_STATE),signal:p().min(1).optional(),testid:p().min(1).optional(),statePath:p().min(1).optional(),store:p().min(1).optional(),equals:Q().optional(),hold:L().optional(),net:_({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:T().optional(),count:T().int().nonnegative().optional()}).optional(),console:_({level:p().min(1).optional(),absent:L().optional()}).optional(),text:_({contains:p().min(1),scope:p().min(1).optional(),absent:L().optional(),visible:L().optional()}).optional()}),_({kind:H(Ze.INTENT),text:p().min(1)})])});function ZO(e,t){let n=WO(e),r=WO(t);return[...new Set([...Object.keys(n),...Object.keys(r)])].every(i=>n[i]===r[i])}function WO(e){var t,n;return P.NET===e.from?{...e,body:(t=e.body)!=null?t:h_.RESPONSE,method:(n=e.method)==null?void 0:n.toUpperCase()}:{...e}}var h_,hh,f_,m_,g_=y(()=>{"use strict";ce();Ko();h_={RESPONSE:"response",REQUEST:"request"},hh={VALUE:"value",NUMBER:"number"},f_=p().min(1),m_=Rt("from",[_({from:H(P.NET),urlContains:p().min(1),method:p().optional(),body:fe([h_.RESPONSE,h_.REQUEST]).optional(),path:f_}).strict(),_({from:H(P.SIGNAL),name:p().min(1),path:f_}).strict(),_({from:H(P.STATE),store:p().optional(),path:f_}).strict(),_({from:H(P.TEXT),scope:p().min(1)}).strict()])});var YO,E_,b_=y(()=>{"use strict";ce();_c();YO=_({op:R(Qb),value:T().finite(),tolerance:T().finite().nonnegative().optional()}).strict(),E_=Rt("property",[_({property:H("nonEmpty")}).strict(),_({property:H("oneOf"),values:O(Q()).min(1)}).strict(),_({property:H("withinTolerance"),of:T().finite(),tolerance:T().finite().nonnegative()}).strict(),_({property:H("matchesPattern"),pattern:p().min(1)}).strict(),_({property:H("type"),is:fe(["string","number","boolean","array","object"])}).strict(),_({property:H("changed")}).strict(),_({property:H("unchanged")}).strict(),_({property:H("increased"),by:YO.optional()}).strict(),_({property:H("decreased"),by:YO.optional()}).strict()])});function S_(e){if(e.kind!==void 0||typeof e[__]!="string")return e;let t={...e,kind:e[__]};return delete t[__],t}function A_(){var t;if(T_!==void 0)return T_;let e=new Map;for(let n of eI().options){let r=n.shape,o=String(r.kind.value),i=P.ELEMENT===o?qO:[];e.set(o,new Set([...Object.keys(r).filter(s=>s!=="kind"),...Object.keys((t=XO[o])!=null?t:{}),...i]))}return T_=e,e}function JO(e){let t=mh(e);if(t.length===0)return;let n=A_(),r=a=>{let l=n.get(a);return l!==void 0&&t.every(u=>l.has(u))},o=t.flatMap(a=>{let l=eV[a];return l===void 0?[]:[l]});if(1<o.length)return;let[i]=o;if(i!==void 0)return r(i)?i:void 0;let s=[...n.keys()].filter(r);return s.length===1?s[0]:void 0}function tV(e){let t=S_(e);return t.kind===void 0?JO(t):void 0}function nV(e){let t=S_(e),n=tV(e);return n===void 0?t:{...t,kind:n}}function iV(e){let t=JSON.stringify(e);if(e.trim().length===0)return{value:e,refusal:'an empty string names no check: empty text is on every page. Write the text the page must show: { kind: "text", contains: "Saved", visible: true }'};if(oV.test(e))return{value:e,refusal:`the string ${t} reads as a description of the outcome, so it was not checked as text. Write the exact text the page shows: { kind: "text", contains: "Saved" }, or the consequence by its kind (signal, net, route, state)`};let n=rV.find(r=>r.test.test(e));return n!==void 0?{value:e,refusal:`the string ${t} has two readings, so it was not guessed. Write the one you mean: ${n.example(t)} or { kind: "text", contains: ${t} }`}:{value:{kind:P.TEXT,contains:e,visible:!0},note:`${t} \u2192 { kind: "text", contains: ${t}, visible: true }`}}function aV(e){let t=mh(e),n=e[P.TEXT];if(t.length!==1||!gh(n))return;let r=mh(n);if(!(!r.includes("contains")||!r.every(o=>sV.has(o))))return{value:{...n,kind:P.TEXT},note:'{ text: { ... } } \u2192 { kind: "text", ... }'}}function cV(e){var r;if(Ws!==e.kind||e[Ws]===!1)return;let t={...e};delete t.kind,delete t[Ws];let n=JO(t);if(!(n===void 0||((r=A_().get(n))==null?void 0:r.has(Ws))!==!0))return{value:{...t,kind:n,[Ws]:!0},note:`kind: "${Ws}" \u2192 kind: "${n}", ${Ws}: true`}}function lV(e){let t;try{t=JSON.parse(e)}catch{t=void 0}if(!gh(t))return{value:e,refusal:'this string starts with { but is not a JSON object, so it was not read as text. Send the predicate as an object: { kind: "text", contains: "Saved" }'};let n=QO(t),r="a JSON string \u2192 the object it holds";return{...n,note:n.note===void 0?r:`${r}; ${n.note}`}}function QO(e){var n,r;if(typeof e=="string")return e.trimStart().startsWith("{")?lV(e):iV(e);if(!gh(e))return{value:e};let t=S_(e);return(r=(n=aV(t))!=null?n:cV(t))!=null?r:{value:e}}function uV(e){let t=mh(e).map(n=>`\`${n}\``);return`this predicate has no \`kind\`, and its keys (${t.length>0?t.join(", "):"none"}) do not fit exactly one kind. Add \`kind\`: one of ${[...A_().keys()].join(", ")}`}function dV(e,t){let n=QO(e);if(n.refusal!==void 0)return t.addIssue({code:uo.custom,message:n.refusal}),e;if(!gh(n.value))return n.value;let r=n.value,o=nV(r);o.kind===void 0&&t.addIssue({code:uo.custom,message:uV(o)});let i=typeof o.kind=="string"?o.kind:"",s=XO[i],a=o;if(s!==void 0){a={...o};for(let[l,u]of Object.entries(s))a[l]!==void 0&&(a[u]===void 0&&(a[u]=a[l]),delete a[l])}return P.ELEMENT===i?pV(a):a}function pV(e){if(e.query!==void 0)return e;let t=qO.filter(o=>e[o]!==void 0);if(t.length===0)return e;let n={...e},r={};for(let o of t)r[o]=n[o],delete n[o];return n.query=r,n}function eI(){return Rt("kind",[_({kind:H(P.ELEMENT),query:Xu,state:R(ge).optional(),absent:L().optional()}).strict(),_({kind:H(P.TEXT),contains:p().optional(),visible:L().optional(),absent:L().optional(),scope:p().optional(),self:L().optional(),satisfies:E_.optional(),ignoreCase:L().optional()}).strict(),_({kind:H(P.NET),method:p().optional(),urlContains:p().optional(),status:T().optional(),ok:L().optional(),since:T().optional(),count:T().int().nonnegative().optional(),bodyContains:p().min(1).optional(),bodyMatches:se(p(),Q()).optional(),requestBodyContains:p().min(1).optional(),requestBodyMatches:se(p(),Q()).optional(),repeatable:L().optional()}).strict(),_({kind:H(P.ROUTE),pathname:p().optional(),contains:p().optional(),since:T().optional()}).strict(),_({kind:H(P.CONSOLE),level:p().optional(),contains:p().min(1).optional(),absent:L().optional(),since:T().optional()}).strict(),_({kind:H(P.ANIMATION),name:p().optional(),target:p().optional(),completed:L().optional(),since:T().optional()}).strict(),_({kind:H(P.SIGNAL),name:p().optional(),dataMatches:se(p(),Q()).optional(),count:T().int().nonnegative().optional(),since:T().optional()}).strict(),_({kind:H(P.STATE),store:p().optional(),path:p(),equals:Q().optional(),satisfies:E_.optional()}).strict(),_({kind:H(P.SETTLED),quietMs:T().positive().optional(),channel:fe([Vb.NETWORK,Vb.APP]).optional()}).strict(),_({kind:H(P.COMPARE),left:m_,right:m_,as:fe([hh.VALUE,hh.NUMBER]).optional(),tolerance:T().finite().nonnegative().optional()}).strict(),_({kind:H(P.ALL_OF),predicates:O(qu).min(1)}).strict(),_({kind:H(P.ANY_OF),predicates:O(qu).min(1)}).strict(),_({kind:H(P.NOT),predicate:qu}).strict()])}function fV(e,t){if(typeof e!="object"||e===null)return;let n=e;if(P.NET===n.kind){hV(n.repeatable,n.urlContains,t);return}if(P.COMPARE===n.kind){mV(e,t);return}P.TEXT===n.kind&&(n.contains===void 0&&n.satisfies===void 0&&t.addIssue({code:uo.custom,message:"a text predicate must say WHAT about the text: `contains` for a substring, `satisfies` for a property of it. With neither it matches any element with any text and cannot fail"}),n.satisfies!==void 0&&n.contains===void 0&&n.scope===void 0&&t.addIssue({code:uo.custom,message:"`satisfies` needs a subject: add `scope` (the element whose text is tested, with `self: true` to read the scope root itself) or a `contains` that selects one. Without either, the locator is every element on the page and the property would run against whichever one happened to match first"}))}function hV(e,t,n){e===!0&&(typeof t=="string"&&t.trim().length>0||n.addIssue({code:uo.custom,message:'`repeatable: true` needs a non-empty `urlContains` naming the read endpoint, for example `{ kind: "net", method: "POST", urlContains: "/graphql", repeatable: true }`. Without one it would excuse every request in the window from duplicate-request, a real double submit included'}))}function mV(e,t){ZO(e.left,e.right)&&t.addIssue({code:uo.custom,message:"`left` and `right` read the same value, so this comparison agrees with itself on every page and cannot fail. Compare two different readings: what the page shows against what the server answered, or what was sent against what came back"}),e.tolerance!==void 0&&hh.NUMBER!==e.as&&t.addIssue({code:uo.custom,message:'`tolerance` applies to a numeric comparison only: add `as: "number"`'})}var XO,__,qO,eV,T_,mh,Ws,rV,oV,gh,sV,qu,x_=y(()=>{"use strict";ce();p_();Gt();g_();Ko();b_();XO={[P.TEXT]:{text:"contains",value:"contains",query:"contains"},[P.ROUTE]:{path:"pathname",urlContains:"contains",url:"contains",pathContains:"contains"},[P.NET]:{url:"urlContains",responseBodyMatches:"bodyMatches",pathContains:"urlContains"},[P.CONSOLE]:{textContains:"contains"},[P.SIGNAL]:{data:"dataMatches"},[P.ALL_OF]:{of:"predicates",allOf:"predicates"},[P.ANY_OF]:{of:"predicates",anyOf:"predicates"},[P.NOT]:{of:"predicate",not:"predicate"}},__="type",qO=Object.keys(Xu.shape);eV={text:P.TEXT,allOf:P.ALL_OF,anyOf:P.ANY_OF,not:P.NOT};mh=e=>Object.keys(e).filter(t=>e[t]!==void 0);Ws="absent",rV=[{test:/:\/\//,example:e=>`{ kind: "route", contains: ${e} }`},{test:/^\//,example:e=>`{ kind: "route", pathname: ${e} }`},{test:/^[#.[]/,example:e=>`{ kind: "element", query: { scope: ${e}, self: true } }`},{test:/^[\w-]+:[\w:.-]+$/,example:e=>`{ kind: "signal", name: ${e} }`}],oV=/\b(should|must|appears?|shown|shows|displays|displayed|navigates|redirects|succeeds|expect(ed)?)\b/i,gh=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);sV=new Set(["contains","scope","visible"]);qu=Qf(()=>Bu(dV,eI()).superRefine(fV))});function tI(e){return`${e} is an element ref, which only exists in the session that minted it \u2014 scope by a CSS selector or a testid so the flow can check it again`}function Eh(e){let t=(n,r)=>r!==void 0&&y_.test(r)?`${n} "${r}"`:void 0;switch(e.kind){case P.ALL_OF:case P.ANY_OF:for(let n of e.predicates){let r=Eh(n);if(r!==void 0)return r}return;case P.NOT:return Eh(e.predicate);case P.TEXT:return t("text.scope",e.scope);case P.ELEMENT:return t("element.query.scope",e.query.scope);case P.ANIMATION:return t("animation.target",e.target);case P.COMPARE:for(let[n,r]of[["left",e.left],["right",e.right]]){if(P.TEXT!==r.from)continue;let o=t(`compare.${n}.scope`,r.scope);if(o!==void 0)return o}return;default:return}}var y_,w_=y(()=>{"use strict";Ko();y_=/^e\d+$/});function rI(e){let t=[];if(e.signal!==void 0){let s={kind:P.SIGNAL,name:e.signal};e.signalData!==void 0&&(s.dataMatches=e.signalData),e.signalCount!==void 0&&(s.count=e.signalCount,t.push({kind:P.SETTLED})),t.push(s)}if(e.route!==void 0){let s={kind:P.ROUTE};return e.route.pathname!==void 0&&(s.pathname=e.route.pathname),e.route.contains!==void 0&&(s.contains=e.route.contains),s}if(e.net!==void 0){let s={kind:P.NET};e.net.method!==void 0&&(s.method=e.net.method),e.net.urlContains!==void 0&&(s.urlContains=e.net.urlContains),e.net.status!==void 0&&(s.status=e.net.status),e.net.count!==void 0&&(s.count=e.net.count,t.push({kind:P.SETTLED})),t.push(s)}if(e.console!==void 0){let s={kind:P.CONSOLE};e.console.level!==void 0&&(s.level=e.console.level),e.console.absent!==void 0&&(s.absent=e.console.absent,e.console.absent&&t.push({kind:P.SETTLED})),t.push(s)}let n=e.state;if(n!==void 0){let s={kind:P.STATE,path:n.path};n.store!==void 0&&(s.store=n.store),n.equals!==void 0&&(s.equals=n.equals),n.hold===!0&&t.push({kind:P.SETTLED}),t.push(s)}let r=e.element;if(r!==void 0){let s={};r.testid!==void 0&&(s.testid=r.testid),r.role!==void 0&&(s.role=r.role),r.name!==void 0&&(s.name=r.name),Object.keys(s).length>0&&t.push({kind:P.ELEMENT,query:s})}let o=e.text;if(o!==void 0){let s={kind:P.TEXT,contains:o.contains};o.scope!==void 0&&(s.scope=o.scope),o.visible!==void 0&&(s.visible=o.visible),o.absent===!0&&(s.absent=!0,t.push({kind:P.SETTLED})),t.push(s)}let[i]=t;if(t.length!==0)return t.length===1&&i!==void 0?i:{kind:P.ALL_OF,predicates:t}}var nI,v_=y(()=>{"use strict";ce();Ko();nI=_({route:_({pathname:p().optional(),contains:p().optional()}).optional(),signal:p().optional(),signalData:se(p(),Q()).optional(),signalCount:T().int().nonnegative().optional(),net:_({method:p().optional(),urlContains:p().optional(),status:T().optional(),count:T().int().nonnegative().optional()}).strict().optional(),console:_({level:p().optional(),absent:L().optional()}).strict().optional(),element:_({testid:p().optional(),role:p().optional(),name:p().optional()}).strict().optional(),text:_({contains:p().min(1),scope:p().optional(),absent:L().optional(),visible:L().optional()}).strict().optional(),state:_({store:p().optional(),path:p(),equals:Q().optional(),hold:L().optional()}).strict().optional()}).strict()});var oI=y(()=>{"use strict"});var sI,gV,N_,iI,EV,aI,bV,pne,cI=y(()=>{"use strict";ce();Gu();Kb();Gt();x_();w_();v_();Gu();oI();sI=Rt("kind",[_({kind:H(Dr.TESTID),value:p().min(1),of:T().int().min(2).optional(),nth:T().int().min(0).optional(),source:_({file:p(),line:T(),column:T().optional()}).optional()}),_({kind:H(Dr.ROLE),role:p().min(1),name:p().optional(),nth:T().int().min(0).optional(),of:T().int().min(2).optional(),alsoRoles:O(p().min(1)).min(1).optional(),within:O(p().min(1)).min(1).max(3).optional()}).refine(e=>e.alsoRoles===void 0||e.nth===void 0,{error:"`alsoRoles` cannot be used with `nth`: a position counts the controls of one role only."}),_({kind:H(Dr.SIGNAL),name:p().min(1)}),_({kind:H(Dr.COMPONENT),component:p().optional(),source:_({file:p(),line:T(),column:T().optional()}).optional(),role:p().optional(),name:p().optional(),nth:T().int().min(0).optional(),of:T().int().min(2).optional(),text:p().min(1).max(200).optional()})]),gV=qu.superRefine((e,t)=>{let n=Eh(e);n!==void 0&&t.addIssue({code:uo.custom,message:tI(n)})}),N_=bt([gV,nI.transform(e=>rI(e))]),iI=O(N_).transform(e=>e.filter(t=>t!==void 0)),EV=_({tool:p(),anchor:sI,source:_({file:p().min(1),line:T().int().positive().optional()}).optional(),id:p().min(1).optional(),effect:R(pO).optional(),healed:_({from:p(),at:T()}).optional(),writes:L().optional(),action:R(k).optional(),args:se(p(),Q()).optional(),expect:N_.optional(),degraded:L().optional(),timeoutMs:T().int().nonnegative().optional(),burstMs:T().nonnegative().optional(),invoke:p().min(1).optional(),navigate:p().min(1).optional(),request:_({method:p().min(1),url:p().min(1),body:p().optional(),contentType:p().optional(),anonymous:L().optional(),as:p().min(1).optional()}).optional(),response:_({status:bt([T().int(),O(T().int()).min(1)]).optional(),contains:p().optional(),absent:p().optional()}).optional(),page:p().optional(),endPage:p().optional()}),aI=EV.extend({steps:Qf(()=>O(aI).optional())}),bV=_({version:T().int().refine(e=>uO.has(e)),name:p(),intent:p().optional(),intentDerived:L().optional(),intentId:p().optional(),projectId:p().optional(),startPath:p().optional(),template:p().min(1).optional(),fixture:p().optional(),requires:iI.optional(),ensures:iI.optional(),author:_({agent:p().min(1).optional(),person:p().min(1).optional()}).optional(),createdAt:T(),steps:O(aI),signalTimeoutMs:T().int().positive().optional(),success:N_.optional(),dynamic:O(sI).optional(),labels:O(p().min(1)).optional(),needs:O(p().min(1)).optional(),status:fe([nh.ACTIVE,nh.QUARANTINED,nh.DRAFT]).optional(),learned:O(_({kind:p().min(1),step:T().int().min(-1),state:fe(["open","guarded"]),cleanRuns:T().int().nonnegative().optional()})).optional(),knownBugs:O(_({id:p().min(1),summary:p().min(1),assertions:O(p())})).optional(),quarantine:_({reason:p().min(1),since:p().min(1),owner:p().min(1),until:p().optional()}).optional()}),pne=_({name:p(),flow:bV})});var lI=y(()=>{"use strict"});var uI=y(()=>{"use strict"});var dI=y(()=>{"use strict"});var xn,R_,Ju,_V,bne,pI,Qu,fI,O_,bh,_h,ed=y(()=>{"use strict";xn={FETCH:"fetch",XHR:"xhr",BEACON:"beacon",IPC:"ipc",DOCUMENT:"document",DOWNLOAD:"download",NAVIGATION:"navigation"},R_="ipc://",Ju={OK:200,ERROR:500},_V={NEXT_DEV_OVERLAY:"/__nextjs",NEXT_HMR:"/_next/webpack-hmr",NEXT_HMR_CHUNKS:"/_next/static/webpack/",WEBPACK_HOT_UPDATE:".hot-update.",VITE_CLIENT:"/@vite/",VITE_REACT_REFRESH:"/@react-refresh",VITE_PING:"/__vite_ping"},bne=Object.values(_V),pI="urlRaw",Qu="requestShape",fI="none",O_="Next-Action",bh="nextAction",_h={FROM_DEPARTED_DOCUMENT:"fromDepartedDocument",PAGE_UNLOADED:"pageUnloaded"}});var Ane,hI=y(()=>{"use strict";ed();Ane=new Set([xn.FETCH,xn.XHR])});var mI,gI=y(()=>{"use strict";mI="target"});var ur,I_=y(()=>{"use strict";ur={ERROR_STATUS:"error-status",STREAMING:"streaming",NOT_TEXT:"not-text",UNREADABLE:"unreadable"}});var EI,bI,_I,TI=y(()=>{"use strict";EI="preAttach",bI="droppedPreAttach",_I="__reticlePreAttach"});var Tc,Th,SI,AI=y(()=>{"use strict";Tc="data-reticle-source",Th="__RETICLE_ROOT__",SI="__RETICLE_SDK_VERSION__"});var Zs,xI,yI,wI=y(()=>{"use strict";Zs="data-testid",xI=["data-test-subj","data-cy","data-test","data-qa","data-e2e"],yI=/^[a-zA-Z_][\w-]*$/});var TV,One,vI=y(()=>{"use strict";TV="3.10.1",One=`reticlehq/reticle/action@v${TV}`});var NI,RI=y(()=>{"use strict";Gt();NI=new Set([v.DOM_TEXT,v.ANIM_START,v.ANIM_END,v.RENDER_COMMIT,v.PAGE_HEALTH,v.SCROLL_POSITION])});function Sh(e){let t=e.text;if(typeof t=="string"&&0<t.length)return t;let n=e.key;return typeof n=="string"&&0<n.length?n:SV}function C_(e){let t=e.keys;if(!Array.isArray(t))return[];let n=[];for(let r of t)typeof r=="string"&&0<r.length&&n.push(r);return n}function II(e){let t=e.modifiers;if(!Array.isArray(t))return[];let n=new Set;for(let r of t){if(typeof r!="string")continue;let o=wV[r.toLowerCase()];o!==void 0&&n.add(o)}return yV.filter(r=>n.has(r))}function vV(e){let t=e.modifiers;return Array.isArray(t)&&0<t.length}function CI(e){if(e[AV]===!0||vV(e))return!0;let t=C_(e);if(1<t.length)return!0;if(t.length===1){let n=t[0];return n!==void 0&&OI.has(n.toLowerCase())}return OI.has(Sh(e).toLowerCase())}var SV,AV,xV,OI,yV,wV,L_=y(()=>{"use strict";SV="Enter",AV="document",xV=["Escape","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OI=new Set(xV.map(e=>e.toLowerCase()));yV=["Alt","Control","Meta","Shift"],wV={alt:"Alt",option:"Alt",opt:"Alt",control:"Control",ctrl:"Control",meta:"Meta",cmd:"Meta",command:"Meta",super:"Meta",win:"Meta",shift:"Shift"}});function $_(e){let t=e.button;if(t===void 0)return dr.LEFT;if(typeof t!="string")return;let n=t.toLowerCase();return DI.find(r=>r===n)}function zI(e,t){let n=$_(t);if(n===void 0)return`unsupported click button ${JSON.stringify(t.button)}: use ${DI.join(", ")}`;if(e===k.DBLCLICK&&n!==dr.LEFT)return"a dblclick uses the left button only: a browser sends no dblclick for another button";let r=t.modifiers;if(Array.isArray(r)){let o=r.filter(i=>II({modifiers:[i]}).length===0);if(0<o.length)return`unsupported click modifier ${JSON.stringify(o[0])}: use Meta, Control, Shift or Alt`}}function PI(e){if(typeof e!="object"||e===null||Array.isArray(e))return;let{x:t,y:n}=e;return $I(t)&&$I(n)?{x:t,y:n}:void 0}function Ys(e,t){let n=PI(e[t]);return n===void 0?void 0:{x:kI(n.x),y:kI(n.y)}}function MI(e,t){return{x:e.x+e.width*t.x,y:e.y+e.height*t.y}}function UI(e,t){for(let n of[Fi,Ah])if(t[n]!==void 0){if(Ah===n&&k.DRAG!==e)return`\`${n}\` is the end point of a drag only: use \`${Fi}\` for a point of a ${e}`;if(!LI.has(e))return`\`${n}\` is a point for a pointer action (${[...LI].join(", ")}), not for a ${e}`;if(PI(t[n])===void 0)return`\`${n}\` must be { x, y }: two numbers, each a fraction of the element's box from 0 to 1`}}var dr,DI,Fi,Ah,LI,$I,kI,HI=y(()=>{"use strict";Gt();L_();dr={LEFT:"left",MIDDLE:"middle",RIGHT:"right"},DI=Object.values(dr);Fi="at",Ah="to",LI=new Set([k.CLICK,k.DBLCLICK,k.HOVER,k.TAP,k.DRAG]),$I=e=>typeof e=="number"&&Number.isFinite(e);kI=e=>Math.min(1,Math.max(0,e))});function Sc(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?0:Math.min(e,3e4)}var FI=y(()=>{"use strict"});var NV,Une,RV,Hne,BI=y(()=>{"use strict";ce();Zo();NV="https://app.reticle.sh",Une=`Reticle Cloud (not linked): keeps this history across runs and agents, adds a team view and the hosted Harness. Plans and prices: ${NV}`,RV=_({claim:p(),verified:R(Gn),evidence:p().optional()}),Hne=_({verified:R(Gn),claims:O(RV),caught:O(p()),flows:_({saved:O(p()),replayed:O(_({name:p(),verified:R(Gn)}))}),memory:_({written:T().int().min(0),read:T().int().min(0)}),wallMs:T().int().min(0),firstVerdictMs:T().int().min(0).optional(),cloud:p().optional()})});var Tt,Gne,GI=y(()=>{"use strict";Zo();Tt={CODE:"code",ENVIRONMENT:"environment",HARNESS:"harness",COULD_NOT_SEE:"could-not-see",NONE:"none"},Gne={[ot.ASSERTION_FAILED]:Tt.CODE,[ot.CONTRADICTED]:Tt.CODE,[ot.OUTCOME_PENDING]:Tt.ENVIRONMENT,[ot.UNSETTLED]:Tt.ENVIRONMENT,[ot.VERSION_SKEW]:Tt.HARNESS,[ot.WINDOW_CLOSED_EARLY]:Tt.HARNESS,[ot.DIALOG_DECLINED]:Tt.HARNESS,[ot.NOTHING_DECLARED]:Tt.HARNESS,[ot.VACUOUS_GRADE]:Tt.HARNESS,[ot.ALREADY_TRUE]:Tt.HARNESS,[ot.HIDDEN_MATCH]:Tt.HARNESS,[ot.CAPABILITY_ABSENT]:Tt.COULD_NOT_SEE,[ot.OBSERVATION_LOST]:Tt.COULD_NOT_SEE,[ot.UNCLEAN_CAPTURE]:Tt.COULD_NOT_SEE,[ot.EVIDENCE_INCOMPLETE]:Tt.COULD_NOT_SEE,[ot.ABSENCE_BLIND_SPOT]:Tt.COULD_NOT_SEE,[ot.OUTCOME_UNREAD]:Tt.COULD_NOT_SEE,[ot.INCONCLUSIVE]:Tt.COULD_NOT_SEE,[ot.PROVED]:Tt.NONE}});var Xs,OV,IV,CV,jne,VI=y(()=>{"use strict";ce();Xs={CONNECTING:"connecting",WAITING_FOR_APP:"waiting_for_app",FLOWS_FOUND:"flows_found",FLOW_STARTED:"flow_started",FLOW_FINISHED:"flow_finished",GRADING:"grading",PUSHED:"pushed"},OV=120,IV=200,CV=_({phase:fe([Xs.CONNECTING,Xs.WAITING_FOR_APP,Xs.FLOWS_FOUND,Xs.FLOW_STARTED,Xs.FLOW_FINISHED,Xs.GRADING,Xs.PUSHED]),index:T().int().nonnegative().optional(),total:T().int().nonnegative().optional(),name:p().max(OV).optional(),ok:L().optional(),at:T().int().nonnegative()}),jne=_({runId:p().min(1).max(200),events:O(CV).max(IV)})});function jI(e){return e===Qe.ACTIVE||e===Qe.PAUSED||e===Qe.ENDED}var Qe,td,ln,qs,KI,WI,Js,k_=y(()=>{"use strict";Qe={ACTIVE:"active",PAUSED:"paused",ENDED:"ended"};td="auto",ln={PAUSE:"pause",RESUME:"resume",END:"end",MESSAGE:"message",REPLAY:"replay",SYNC:"sync",SIGNIN:"signin",HARNESS:"harness",HARNESS_RUN:"harness-run",HARNESS_STOP:"harness-stop",HARNESS_LINK:"harness-link"},qs={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"},KI={HEARTBEAT_MS:5e3,STALE_THRESHOLD_MS:12e3,LEDGER_NOTICE_FRACTION:.25},WI={IDLE_END_MS:3e5,IDLE_END_MIN_MS:5e3,REAP_INTERVAL_MS:5e3,BRIDGE_LOST_MS:15e3,DAEMON_IDLE_SHUTDOWN_MS:3e5,DAEMON_IDLE_CHECK_MS:3e4,DAEMON_AGENT_RECENT_MS:18e5},Js={VISIBILITY:"visibilitychange",FOCUS:"focus",BLUR:"blur",HEARTBEAT:"heartbeat",INITIAL:"initial"}});var Vn,zt,Bi,nd,yn,ZI,xh,Ac,wn,rd=y(()=>{"use strict";Vn={BUBBLE:"bubble",COLLAPSED:"collapsed",EXPANDED:"expanded"},zt={CHAT:"chat",FLOWS:"flows",NOTES:"notes",HARNESS:"harness",SETTINGS:"settings",REPORT:"report",ACCOUNT:"account",NONE:"none"},Bi={RAIL:"rail",HARNESS:"harness",HEADER:"header"},nd={ON:"on",OFF:"off"},yn={SHOWN:"shown",HIDDEN:"hidden",REMOVED:"removed"},ZI="reload to restore",xh={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},Ac={PLAYING:"playing",PASSED:"passed",FAILED:"failed"},wn={PENDING:"pending",RUNNING:"running",PASSED:"passed",FAILED:"failed",BLOCKED:"blocked",NOT_TAKEN:"not-taken",UNDECIDED:"undecided"}});var Gi,Yne,D_,Xne,qne,YI=y(()=>{"use strict";Gi="[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]",Yne=`${Gi}{display:none !important}`,D_="__reticlePointerHeld",Xne=`(() => { const held = []; const seen = new Set(); for (const host of document.querySelectorAll(${JSON.stringify(Gi)})) { for (const el of [host, ...host.querySelectorAll('*')]) { if (seen.has(el) || !el.style) continue; seen.add(el); held.push([el, el.style.getPropertyValue('pointer-events'), el.style.getPropertyPriority('pointer-events')]); el.style.setProperty('pointer-events', 'none', 'important'); } } window.${D_} = held; })()`,qne=`(() => { for (const [el, value, priority] of window.${D_} ?? []) { if (value) el.style.setProperty('pointer-events', value, priority); else el.style.removeProperty('pointer-events'); } delete window.${D_}; })()`});var z_,XI,LV,$V,kV,ere,tre,Qs,yh,P_=y(()=>{"use strict";ce();rd();z_={TAB:"tab",HEADLESS:"headless",HEADED:"headed"},XI={LOCAL:"local",PLATFORM:"platform"},LV=2e3,$V=128,kV=500,ere={target:fe([z_.TAB,z_.HEADLESS,z_.HEADED]),mode:fe([XI.LOCAL,XI.PLATFORM]),url:p().url().refine(e=>/^https?:/i.test(e)),hud:fe([yn.SHOWN,yn.HIDDEN,yn.REMOVED]),persona:p().min(1).max(LV),maxSteps:T().int().min(1).max(kV),record:L(),plan:p().min(1).max($V),confirmDangerous:L()},tre=_({seq:T().int().nonnegative(),tool:p().min(1).max(100),args:se(p(),Q()).default({})}),Qs={SOURCE:"source",TESTID:"testid"},yh="file:line source mapping"});var qI,JI=y(()=>{"use strict";qI={FULL_TEXT:"fullText"}});var wh,e0,t0,QI,ore,n0=y(()=>{"use strict";wh="https://calendar.app.google/h9NRDbBBQetyTzWM6",e0="hey@reticle.sh",t0="mailto:hey@reticle.sh?subject=Reticle%20feedback",QI='npx @reticlehq/server feedback --contact you@company.com "what you are building"',ore={HUMAN:`Stuck, or want Reticle to work differently? Talk to the founder: ${wh} \xB7 or send a note with your email: ${QI}`,AGENT:`If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (${wh}) or a note with their email (${QI}). Offer it; never book a call or submit an email for them.`}});var r0,sre,o0=y(()=>{"use strict";r0="reticle.determinism",sre=Date.UTC(2026,0,1)});function i0(e){let t="";for(let n=0;n<8;n++){let r=Math.floor(e()*M_.length);t+=M_[Math.min(Math.max(r,0),M_.length-1)]}return t}var M_,s0=y(()=>{"use strict";M_="0123456789abcdefghijklmnopqrstuvwxyz"});var a0=y(()=>{"use strict"});function U_(e){return DV.test(e)}function MV(e){let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/[\s-]+/g,"[\\s_-]+");return PV.test(e)?t:`(?<!${c0})${t}(?!${c0})`}function l0(e){let t=new Set;for(let n of e!=null?e:[]){let r=n.trim().toLowerCase();r.length>0&&t.add(r)}return t}function u0(e,t){var s,a;let n=l0((s=e==null?void 0:e.keys)==null?void 0:s.filter(l=>typeof l=="string")),r=((a=e==null?void 0:e.keys)!=null?a:[]).filter(l=>l instanceof RegExp),o=l0(e==null?void 0:e.allow),i=[...o].filter(l=>U_(l)&&!n.has(l));return i.length>0&&t!==void 0&&t(`[reticle] redact.allow is exempting ${i.join(", ")} from redaction. The default rule treats ${i.length===1?"that key":"those keys"} as a credential, so ${i.length===1?"its value":"their values"} will now reach the agent transcript and the on-disk journal in cleartext.`),{isSensitiveKey:l=>{let u=l.toLowerCase();if(n.has(u))return!0;for(let d of r)if(d.lastIndex=0,d.test(l))return!0;return o.has(u)?!1:U_(l)}}}function d0(e){H_=e}function St(e){return H_===void 0?U_(e):H_.isSensitiveKey(e)}function FV(e){return new TextEncoder().encode(e).byteLength}function BV(e){if(!/^data:/i.test(e))return;let t=e.indexOf(","),n=t===-1?e.slice(5):e.slice(5,t),[r="",...o]=n.split(";"),i=/^[\w.+-]+\/[\w.+-]+$/.test(r)?r:"text/plain",s=o.some(l=>l.toLowerCase()==="base64")?";base64":"",a=t===-1?"":e.slice(t+1);return`data:${i}${s},<\u2026${String(FV(a))} bytes\u2026>`}function pr(e,t=St){var x;let n=BV(e);if(n!==void 0)return n;let r=e.indexOf("#"),o=r===-1?"":e.slice(r),i=r===-1?e:e.slice(0,r),s=i.indexOf("?"),a=s===-1?i:i.slice(0,s),l=s===-1?"":i.slice(s+1),u=!1,d=a,f=/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i.exec(a);f!==null&&(d=`${(x=f[1])!=null?x:""}${Ne}@${a.slice(f[0].length)}`,u=!0);let m=l;if(l!==""){let w=new URLSearchParams(l),N=!1;for(let C of[...w.keys()])t(C)&&(w.set(C,Ne),N=!0);N&&(m=w.toString(),u=!0)}let h=d.split("/");for(let w=0;w+1<h.length;w++){let N=h[w],C=h[w+1];N!==void 0&&C!==void 0&&C.length>=HV&&UV.test(N)&&(h[w+1]=Ne,u=!0)}let g=o;if(o.length>1&&(g=o.replace(/(^|[#&?/])([A-Za-z0-9_.-]+)=([^&\s]+)/g,(w,N,C)=>t(C)?`${N}${C}=${Ne}`:w),g!==o&&(u=!0)),!u)return e;let b=s===-1?"":`?${m}`;return`${h.join("/")}${b}${g}`}function fr(e,t=St){let n=pr(e,t);return n===e?{url:n}:{url:n,[pI]:e}}function p0(e){var r;let t=new Set,n=[];for(let o of(r=e==null?void 0:e.keys)!=null?r:[]){if(typeof o!="string")continue;let i=o.trim();if(i.length===0||i.length>B_)continue;let s=i.toLowerCase();if(!t.has(s)&&(t.add(s),n.push(i),n.length>=F_))break}return n}function po(e){return e.replace(GV,Ne)}var DV,zV,PV,c0,pre,H_,UV,HV,F_,B_,GV,G_=y(()=>{"use strict";Gt();ed();DV=/password|passwd|passcode|pass[-_]?phrase|(?:otp|totp|mfa|recovery|backup)[-_]?codes?|(?:^|[-_])(?:otp|totp)(?=$|[-_])|secret|(?:(?:access|refresh|auth|bearer|api|id|session|csrf|client)[-_]?tokens?|(?:^|[-_])tokens?(?=$|[-_]))|session[-_]?id|(?:^|[-_])(?:sid|pwd|jwt)(?=$|[-_])|authorization|(?:^|[-_])(?:set[-_])?cookie(?=$|[-_])|api[-_]?key|access[-_]?key|private[-_]?key|client[-_]?secret|credit[-_]?card|card[-_]?(?:number|num|no|pan)(?=$|[-_])|(?:^|[-_])(?:card|pan)(?=$|[-_])|cvv|cvc|ssn|(?:^|[-_])(?:signature|sig)$|(?:^|[-_])credential$|x-(?:amz|goog)-(?:signature|credential|security-token)$/i;zV=["\u043F\u0430\u0440\u043E\u043B\u044C","\u0433\u0430\u0441\u043B\u043E","contrase\xF1a","contrasena","mot de passe","passwort","kennwort","senha","palavra-passe","wachtwoord","has\u0142o","haslo","heslo","jelsz\xF3","\u015Fifre","sifre","parola","l\xF6senord","losenord","adgangskode","passord","salasana","\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2","\u05E1\u05D9\u05E1\u05DE\u05D4","\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631","\u0915\u0942\u091F\u0936\u092C\u094D\u0926","\u092A\u093E\u0938\u0935\u0930\u094D\u0921","\u09AA\u09BE\u09B8\u0993\u09AF\u09BC\u09BE\u09B0\u09CD\u09A1","\u30D1\u30B9\u30EF\u30FC\u30C9","\u5BC6\u7801","\u5BC6\u78BC","\uBE44\uBC00\uBC88\uD638","m\u1EADt kh\u1EA9u","kata sandi","katalaluan","\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19","pin","otp","\u043A\u043E\u0434","c\xF3digo"],PV=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Hebrew}]/u,c0="[\\p{L}\\p{M}\\p{N}]";pre=new RegExp(zV.map(MV).join("|"),"iu");UV=/^(reset|verify|verification|confirm|activate|invite|magic|magiclink|token|key|oauth|unsubscribe|password)$/i,HV=12;F_=64,B_=128;GV=/eyJ[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}|(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}|sk-(?:ant|proj|svcacct|admin)-[A-Za-z0-9_-]{20,}|(?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,}|AIza[0-9A-Za-z_-]{35}|xox[baprs]-[A-Za-z0-9-]{10,}|ya29\.[A-Za-z0-9._-]{20,}/g});var fo,vh=y(()=>{"use strict";fo={WEB:"web",WEBVIEW:"webview",NATIVE:"native",SERVICE:"service"}});function V_(){return[$.UI,$.NET,$.STATE,$.SIGNAL,$.LOG,$.ROUTE,$.TIME]}var Ere,bre,Nh=y(()=>{"use strict";_c();Ko();Ere={[P.ELEMENT]:[$.UI],[P.TEXT]:[$.UI],[P.SIGNAL]:[$.SIGNAL],[P.NET]:[$.NET],[P.STATE]:[$.STATE],[P.ROUTE]:[$.ROUTE],[P.CONSOLE]:[$.LOG],[P.ANIMATION]:[$.UI,$.TIME],[P.SETTLED]:[$.TIME,$.NET],[P.COMPARE]:[$.UI,$.NET,$.STATE,$.SIGNAL],[P.ALL_OF]:V_(),[P.ANY_OF]:V_(),[P.NOT]:V_()};bre=Object.fromEntries(Object.entries(Yb).map(([e,t])=>[e,t.independence]))});var f0,Rh,Oh,Ih=y(()=>{"use strict";f0={DEVELOPMENT:"development",PRODUCTION:"production"},Rh={OBSERVE:"observe",ACT:"act"},Oh={INSTALLED:"installed",INJECTED:"injected"}});function j_(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");if(WV.includes(t))return!0;let n=t.split(".");return YV===n.length&&ZV===n[0]&&n.every(r=>{if(!/^\d{1,3}$/.test(r))return!1;let o=Number(r);return o>=0&&o<=XV})}function qV(e){let t=e.toLowerCase();return t.endsWith(h0)&&t.length>h0.length&&!t.startsWith(".")}function b0(e,t){return j_(t)||qV(t)?!0:JV.includes(e.toLowerCase())}function n4(e){for(let t=e.lastIndexOf(".");1<=t;t=e.lastIndexOf(".",t-1)){let n=t+1,r="";for(;n<e.length&&t4.test(e.charAt(n));)r+=e.charAt(n).toLowerCase(),n+=1;if(!QV.has(r))continue;let o=e.charAt(n);if(o===""||o==="."||o==="-")return n}return 0}function od(e){return e.replace(e4,t=>{let n=n4(t);return n===0?t:` ${t.slice(n)}`})}function _0(e,t){return t!==void 0&&E0.has(t.trim().toLowerCase())?!1:jV.test(e.replace(g0," "))}function T0(e){return r4.test(e)}function S0(e){return A0(e)||KV.test(e.replace(g0," "))}function A0(e){let t;try{t=new URL(e).hostname.toLowerCase()}catch{return!1}return i4.some(n=>t===n||t.endsWith(`.${n}`))}function x0(e){var n;if(s4.test((n=e.autocomplete)!=null?n:""))return!0;let t=[e.name,e.id,e.label].map(r=>(r!=null?r:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ")).join(" ");return a4.test(t)}function y0(e,t){var r;if(t!==void 0&&E0.has(t.trim().toLowerCase()))return;if(e.split(/\s+/).some(A0))return At.PAY;let n=e.replace(/[_-]+/g," ");return(r=o4.find(([o,i])=>o!==At.PAY&&i.test(n)))==null?void 0:r[0]}var m0,VV,jV,KV,g0,E0,WV,h0,ZV,YV,XV,JV,QV,e4,t4,r4,At,o4,i4,s4,a4,K_,W_=y(()=>{"use strict";m0="delete|remove|destroy|erase|drop|terminate|revoke|reset|close account|cancel subscription",VV="purchase|buy|pay|payment|place order|confirm order|send money|send funds|transfer|withdraw|refund",jV=new RegExp(`\\b(${m0}|${VV})\\b`,"i"),KV=new RegExp(`\\b(${m0})\\b`,"i"),g0=/[_-]+/g,E0=new Set(["option","radio"]),WV=["localhost","::1","0:0:0:0:0:0:0:1"],h0=".localhost",ZV="127",YV=4,XV=255;JV=["file:","app:","tauri:"];QV=new Set(["webm","mp4","mov","mkv","avi","mp3","wav","ogg","flac","png","jpg","jpeg","gif","webp","svg","avif","bmp","pdf","zip","tar","gz","txt","csv","json","xml","doc","docx","xls","xlsx","ppt","pptx"]),e4=/[\w.-]+/g,t4=/[a-zA-Z0-9]/;r4=/^\s*(#.*|javascript:.*)?$/i;At={INVITE:"invite",SEND:"send",SHARE:"share",DELETE:"delete",PAY:"pay",PUBLISH:"publish",REVOKE:"revoke",TRANSFER:"transfer",SIGN_OUT:"sign out",CHANGE_ROLE:"change role",CREATE_KEY:"create key",CHANGE_STATE:"change state"},o4=[[At.INVITE,/\binvit(?:e|es|ed|ing|ation|ations)\b|\/invit/i],[At.TRANSFER,/\b(?:transfer|send money|send funds|withdraw)\b/i],[At.SEND,/\b(?:send|sends|sending|resend|email (?:it|them|the))\b/i],[At.SHARE,/\b(?:share|shares|sharing)\b/i],[At.DELETE,/\b(?:delete|deletes|deleting|remove|removes|removing|destroy|erase|drop)\b/i],[At.PAY,/\b(?:pay|pays|paying|payment|purchase|buy|checkout|check out|subscribe|upgrade|place order|confirm order|refund|add (?:a )?card|start (?:the |your |a )?(?:\d+-day |free )?trial)\b|\/(?:billing|checkout)\b/i],[At.PUBLISH,/\b(?:publish|publishes|deploy|deploys|go live)\b/i],[At.REVOKE,/\b(?:revoke|revokes|deactivate|suspend)\b/i],[At.SIGN_OUT,/\b(?:sign ?out|log ?out|sign off)\b/i],[At.CHANGE_ROLE,/\b(?:change (?:the |their |his |her )?role|make (?:an? )?(?:admin|owner)|promote|demote|set role)\b/i],[At.CREATE_KEY,/\b(?:create|generate|new|mint)(?: an?)?(?: api)? key\b|\/keys\b/i],[At.CHANGE_STATE,/\b(?:reassign|reassigns|reopen|reopens|re-open|archive|archives|unarchive|approve|approves|reject|rejects|mark as (?:fixed|resolved|done|closed))\b/i]],i4=["stripe.com","checkout.dodopayments.com","paddle.com","lemonsqueezy.com","paypal.com","razorpay.com","braintreegateway.com"];s4=/\bcc-(?:number|csc|exp(?:-month|-year)?)\b/i,a4=/card ?(?:number|no\b)|\bcc ?num|\b(?:cvc|cvv|csc|cvc2|cvv2)\b|security code|card ?code|\bexpir(?:y|ation|es)\b|\bexp ?date\b|\bmm ?\/ ?yy\b|\biban\b|account ?number|routing ?number|sort ?code/i;K_=e=>`would need to ${e} \u2014 not done (outward action): the journey does not ask for it`});var Ch,w0,c4,v0,N0,R0,l4,u4,id,Y_,d4,p4,Cre,X_=y(()=>{"use strict";ce();rd();Gt();k_();G_();vh();Nh();Ih();W_();Ch=p().min(1).max(W.MAX_SESSION_ID_LENGTH),w0=p().max(W.MAX_REF_LENGTH),c4=p().min(1).max(8),v0=_({kind:R(ln),text:p().optional()}),N0=_({control:p().max(48).regex(/^[a-z][a-zA-Z-]*(\.[a-zA-Z-]+)?$/).optional(),toggle:R(nd).optional(),view:R(Vn).optional(),panel:R(zt).optional(),slide:p().max(56).optional(),prompt:R(Bi).optional()}),R0=_({note:p().min(1).max(W.MAX_MARK_NOTE_LENGTH),anchor:p().max(W.MAX_REF_LENGTH),strategy:R(qs),label:p().max(W.MAX_MARK_LABEL_LENGTH).optional(),source:_({file:p().max(W.MAX_URL_LENGTH),line:T().int().min(0)}).optional(),route:p().max(W.MAX_URL_LENGTH).optional()}),l4=_({t:T(),type:R(v),sessionId:Ch,ref:w0.optional(),seq:T().int().min(0).optional(),actionId:w0.optional(),attribution:R(SO).optional(),documentId:c4.optional(),editEpoch:T().int().min(0).optional(),data:se(p(),Q()).default({})}),u4=_({kind:H(sn.HELLO),protocolVersion:T().int().min(hO).max(oh),sessionId:Ch,url:p().max(W.MAX_URL_LENGTH),title:p().max(W.MAX_TITLE_LENGTH),projectId:Ch.optional(),adapters:O(p().max(W.MAX_ADAPTER_NAME_LENGTH)).max(W.MAX_ADAPTERS),token:p().max(W.MAX_TOKEN_LENGTH).optional(),env:R(f0).optional(),scope:R(Rh).optional(),platform:R(fo).optional(),channels:O(R($)).max(W.MAX_ADAPTERS).optional(),commands:O(p().max(W.MAX_TOKEN_LENGTH)).max(W.MAX_ADAPTERS).optional(),contractParts:_({commands:O(p()).max(W.MAX_CONTRACT_NAMES),events:O(p()).max(W.MAX_CONTRACT_NAMES),actions:O(p()).max(W.MAX_CONTRACT_NAMES)}).optional(),hasCapabilities:L().optional(),captureBodies:L().optional(),sourceMapping:L().optional(),instrumentation:R(Oh).optional(),sdkVersion:p().max(W.MAX_ADAPTER_NAME_LENGTH).optional(),contract:p().max(W.MAX_ADAPTER_NAME_LENGTH).optional(),redactKeys:O(p().min(1).max(B_)).max(F_).optional()}),id={HARNESS:"harness"},Y_=_({kind:H(sn.COMMAND),id:p().min(1).max(W.MAX_COMMAND_ID_LENGTH),sessionId:Ch.optional(),name:p().min(1).max(W.MAX_COMMAND_NAME_LENGTH),args:se(p(),Q()).default({}),by:R(id).optional(),outward:_({allowed:O(R(At)).max(16)}).optional()}),d4=_({kind:H(sn.COMMAND_RESULT),id:p().min(1).max(W.MAX_COMMAND_ID_LENGTH),ok:L(),result:Q().optional(),error:p().max(W.MAX_ERROR_LENGTH).optional()}),p4=_({kind:H(sn.EVENT),event:l4}),Cre=Rt("kind",[u4,Y_,d4,p4])});var vn,f4,h4,m4,g4,E4,kre,Dre,zre,O0=y(()=>{"use strict";ce();Ih();vn={PAYMENT:"payment or checkout",DELETE_WORKSPACE:"delete a workspace or project",REVOKE_KEY:"revoke or rotate a key",SEND_INVITE:"send an invite or email",CANCEL_SUBSCRIPTION:"cancel a subscription",CHANGE_ROLE:"change a member's role",OBSERVE_ONLY:"the session scope is observe, so it does not act",OFF_ORIGIN:"leave the activated origin",EXPIRED:"the session nonce expired"},f4=[vn.PAYMENT,vn.DELETE_WORKSPACE,vn.REVOKE_KEY,vn.SEND_INVITE,vn.CANCEL_SUBSCRIPTION,vn.CHANGE_ROLE],h4=64,m4=256,g4=_({rule:fe(f4),methods:O(p().min(1).max(16)).min(1).max(8),path:p().min(1).max(m4).refine(e=>{try{return new RegExp(e,"i"),!0}catch{return!1}},"not a valid regular expression")}),E4=O(g4).max(h4),kre=[{rule:vn.CANCEL_SUBSCRIPTION,methods:["DELETE"],path:"/subscriptions?(/[^/]+)?/?$"},{rule:vn.CANCEL_SUBSCRIPTION,methods:["POST","PUT","PATCH"],path:"/subscriptions?(/[^/]+)?/cancel"},{rule:vn.PAYMENT,methods:["POST","PUT","PATCH"],path:"/(billing|checkout|payments?|subscriptions?|purchases?|orders?)(/|$)"},{rule:vn.DELETE_WORKSPACE,methods:["DELETE"],path:"/(workspaces?|orgs?|organi[sz]ations?|projects?)/[^/]+/?$"},{rule:vn.REVOKE_KEY,methods:["DELETE"],path:"/(api-?)?keys?/[^/]+/?$"},{rule:vn.REVOKE_KEY,methods:["POST","PUT","PATCH"],path:"/(api-?keys?|keys?|tokens?|secrets?)(/[^/]+)?/(rotate|revoke|regenerate|roll)"},{rule:vn.SEND_INVITE,methods:["POST","PUT"],path:"/(invites?|invitations?|emails?|mail)(/|$)"},{rule:vn.CHANGE_ROLE,methods:["PATCH","PUT","POST"],path:"/members?/[^/]+(/role)?/?$"}],Dre=_({workspaceId:p().min(1).max(128),nonce:p().min(1).max(256),bridgePort:T().int().min(1).max(65535),scope:R(Rh),origin:p().url().max(2048).optional(),bridge:p().url().max(2048).optional()}),zre=_({ticket:p().min(1).max(4096),expiresAt:p().max(64).optional(),policy:E4.optional()})});var I0=y(()=>{"use strict"});function N4(e){return e.length<=L0&&v4.test(e)}var b4,C0,Ure,Vi,_4,et,T4,S4,A4,x4,y4,w4,q_,L0,v4,$0,R4,k0,xc=y(()=>{"use strict";ce();b4={AGENT:"agent",HUMAN:"human"},C0={BUG:"bug",GAP:"gap",AMBIGUITY:"ambiguity",FEATURE_REQUEST:"feature_request",IMPROVEMENT:"improvement",EXPERIENCE:"experience"},Ure=`<${Object.values(C0).join("|")}>`,Vi={WEB:"web",ELECTRON:"electron",TAURI:"tauri"},_4={BLINK:"blink",GECKO:"gecko",WEBKIT:"webkit"},et={CHROME:"chrome",EDGE:"edge",ARC:"arc",DIA:"dia",BRAVE:"brave",OPERA:"opera",FIREFOX:"firefox",SAFARI:"safari",OTHER:"other"},T4={CDP:"cdp",SDK:"sdk"},S4={USER:"user",PROJECT:"project"},A4=4e3,x4=8e3,y4=1,w4=5,q_=1e3,L0=254,v4=/^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>]+$/;$0=_({source:R(b4),kind:R(C0),text:p().min(1).max(A4),trace:p().max(x4).optional(),rating:T().int().min(y4).max(w4).optional(),need:p().max(q_).optional(),impact:p().max(q_).optional(),currentApproach:p().max(q_).optional(),model:p().min(1).max(64).optional(),clientVersion:p().min(1).max(32).optional(),stack:p().min(1).max(64).optional(),stackMajor:T().int().nonnegative().optional(),runtime:R(Vi).optional(),engine:R(_4).optional(),driver:R(T4).optional(),client:p().min(1).max(64).optional(),mcpScope:R(S4).optional(),contact:p().max(L0).refine(N4).optional()}),R4={COMPANY:"company",SIDE_PROJECT:"side_project",OPEN_SOURCE:"open_source",LEARNING:"learning"},k0=_({context:R(R4),company:p().min(1).max(128).optional(),email:p().min(3).max(254).optional()})});var O4,I4,Zre,Lh,C4,L4,$4,sd,Yre,D0=y(()=>{"use strict";ce();Gt();rh();I_();Zo();xc();X_();ed();O4=_({name:p().describe("Cookie name."),value:p().describe("Cookie value."),domain:p().optional().describe("Cookie domain. Defaults to the navigation URL domain."),path:p().optional().describe('Cookie path. Defaults to "/".'),url:p().optional().describe("Cookie URL. Defaults to the navigation URL."),httpOnly:L().optional().describe("Whether the cookie is httpOnly."),secure:L().optional().describe("Whether the cookie is secure."),sameSite:fe(["Strict","Lax","None"]).optional().describe("SameSite policy."),expires:T().optional().describe("Unix timestamp in seconds for cookie expiration.")}),I4=bt([se(p(),p()),O(O4)]),Zre=_({local:se(p(),p()).optional().describe("Key-value pairs to seed into window.localStorage before first navigation."),session:se(p(),p()).optional().describe("Key-value pairs to seed into window.sessionStorage before first navigation."),cookies:I4.optional().describe("Cookies to seed before first navigation: a name-value record scoped to the lease URL or an array of cookie objects.")}).strict(),Lh=_({role:p().optional(),name:p().optional()}),C4=_({mimeType:p(),bytes:T(),filename:p().optional(),lines:T().optional(),preview:p().optional(),previewTruncated:L().optional()}).passthrough(),L4=_({transport:R(sr),direction:R(ar),url:p(),urlRaw:p().optional()}).passthrough(),$4=_({id:p(),method:p(),url:p(),status:T(),ok:L(),durationMs:T(),initiator:p(),urlRaw:p().optional(),[bh]:p().optional(),[Qu]:p().optional(),[_h.FROM_DEPARTED_DOCUMENT]:L().optional()}).passthrough(),sd=_({message:p()}).passthrough(),Yre={[v.DOM_ADDED]:Lh,[v.DOM_REMOVED]:Lh,[v.DOM_ATTR]:_({attr:p(),value:p().optional(),old:p().optional()}).passthrough(),[v.DOM_TEXT]:_({text:p(),old:p().optional(),testid:p().optional(),initial:L().optional(),live:R(Mi).optional()}),[v.NET_REQUEST]:$4,[v.NET_PENDING]:_({id:p(),method:p(),url:p(),initiator:p(),urlRaw:p().optional(),[_h.FROM_DEPARTED_DOCUMENT]:L().optional(),[_h.PAGE_UNLOADED]:L().optional()}),[v.NET_UNPATCHED]:_({url:p(),urlRaw:p().optional(),initiator:p(),status:T().optional()}).passthrough(),[v.NET_STREAM]:L4,[v.DOWNLOAD]:C4,[v.PERF]:_({metric:R(mc),value:T(),at:T(),shift:T().optional(),shifted:_({ref:p(),selector:p()}).optional()}),[v.ROUTE_CHANGE]:_({from:p(),to:p(),pathname:p(),search:p(),hash:p(),[ju]:R(Bs),pattern:p().optional()}),[v.CONSOLE_LOG]:sd,[v.CONSOLE_WARN]:sd,[v.CONSOLE_ERROR]:sd,[v.CONSOLE_INFO]:sd,[v.CONSOLE_DEBUG]:sd,[v.ERROR_UNCAUGHT]:_({message:p(),source:p().optional(),line:T().optional(),kind:p().optional()}).passthrough(),[v.VISIBLE_SHOWN]:Lh,[v.ANIM_START]:_({name:p()}),[v.ANIM_END]:_({name:p()}),[v.SCROLL_POSITION]:_({x:T(),y:T(),percent:T(),direction:R(fc)}),[v.REVEAL_SHOWN]:Lh.passthrough(),[v.SIGNAL]:_({name:p(),data:Q().optional()}),[v.STATE_CHANGE]:_({name:p(),value:Q().optional()}).passthrough(),[v.STORAGE_CHANGE]:_({area:R(Wo),key:p(),old:p().optional(),new:p().optional()}),[v.PAGE_HEALTH]:_({hidden:L(),focused:L(),reason:p().optional(),brand:R(et).optional(),runtime:p().optional(),engine:p().optional(),windowLabel:p().optional(),documentStatus:T().int().optional()}).passthrough(),[v.CONTEXT_OPENED]:_({href:p().optional()}).passthrough(),[v.DIALOG_OPENED]:_({kind:fe(["alert","confirm","prompt"]),message:p().optional(),answered:bt([L(),XR()]).optional()}).passthrough(),[v.RENDER_COMMIT]:_({commits:T()}),[v.FOCUS_CHANGE]:_({to:p().optional(),from:p().optional(),toBody:L()}),[v.FIELD_CHANGE]:_({[_t.FIELD]:p(),[_t.KIND]:R(Gs),[_t.LENGTH]:T().int().nonnegative(),[_t.VALUE]:p().optional(),[_t.REDACTED]:H(!0).optional(),[_t.CHECKED]:L().optional(),[_t.PREVIOUS]:p().optional(),[_t.PREVIOUS_CHECKED]:L().optional()}),[v.FLOW_RECORDED]:_({name:p(),flow:Q().optional()}),[v.TRANSPORT_OVERFLOW]:_({dropped:T()}),[v.TRUNCATED]:_({channel:p(),dropped:T()}),[v.BLIND_SPOT]:_({kind:R(cn),count:T()}),[v.SDK_FAILED]:_({site:p().max(64),message:p().max(500),errorType:p().max(64).optional()}),[v.NET_DETAIL]:_({url:p(),method:p().optional(),status:T(),headers:se(p(),p()),resourceType:p().optional()}).passthrough(),[v.NET_RESPONSE_BODY]:_({id:p(),method:p(),url:p(),urlRaw:p().optional(),responseBody:p(),responseBodyTruncated:L().optional(),responseBodyReason:R(ur).optional()}).passthrough(),[v.HUMAN_CONTROL]:v0,[v.HUMAN_MARK]:R0,[v.HUD_USED]:N0,[v.MEDIA_STATE]:_({event:R(Vu),tag:fe(["video","audio"]),currentTime:T(),duration:T().optional(),readyState:T().int().min(0).max(4),paused:L()}),[v.CANVAS_DIGEST]:_({digest:p(),width:T().int().nonnegative(),height:T().int().nonnegative(),mean:Jf([T(),T(),T()]),trigger:R(Fs).optional(),visible:L().optional()})}});var Jre,z0=y(()=>{"use strict";Gt();Jre=new Set([v.NET_REQUEST,v.NET_PENDING,v.NET_UNPATCHED,v.NET_STREAM,v.NET_DETAIL,v.NET_RESPONSE_BODY,v.CONSOLE_ERROR,v.CONSOLE_WARN,v.ERROR_UNCAUGHT,v.ROUTE_CHANGE,v.SIGNAL,v.STORAGE_CHANGE,v.FLOW_RECORDED,v.TRANSPORT_OVERFLOW,v.TRUNCATED,v.BLIND_SPOT])});var P0=y(()=>{"use strict"});var M0,U0=y(()=>{"use strict";M0=e=>e});var Se,ooe,ioe,soe,H0=y(()=>{"use strict";Nh();Se={UI_ADVANCED_REQUEST_FAILED:"ui-advanced-request-failed",UI_ADVANCED_UNSIGNALLED:"ui-advanced-unsignalled",SIGNAL_CONTRADICTED:"signal-contradicted",RESPONSE_IGNORED:"response-ignored",SIGNAL_WITHOUT_CONSEQUENCE:"signal-without-consequence",STATE_VS_RENDER:"state-vs-render",CONSEQUENCE_ELSEWHERE:"consequence-elsewhere",DUPLICATE_REQUEST:"duplicate-request",DUPLICATE_REQUEST_UNRELATED:"duplicate-request-unrelated",SCREEN_REQUEST_MISMATCH:"screen-request-mismatch",STALE_RESPONSE_APPLIED:"stale-response-applied",PARTIAL_FAILURE_IN_OK_RESPONSE:"partial-failure-in-ok-response",UNIT_MISMATCH:"unit-mismatch",PAGINATION_NOT_FETCHED:"pagination-not-fetched",WRITE_FIELD_IGNORED:"write-field-ignored",REQUEST_NEVER_SETTLED:"request-never-settled",FAILURE_MISATTRIBUTED:"failure-misattributed",ACTION_HAD_NO_EFFECT:"action-had-no-effect",ROUTE_RENDERED_NOTHING:"route-rendered-nothing",ROUTE_RENDERED_NOTHING_CRASHED:"route-rendered-nothing-crashed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit",READ_SERVER_FAULT:"read-server-fault"},ooe=new Set([Se.REQUEST_NEVER_SETTLED,Se.UI_ADVANCED_UNSIGNALLED,Se.RESPONSE_IGNORED,Se.SIGNAL_WITHOUT_CONSEQUENCE,Se.STATE_VS_RENDER,Se.CONSEQUENCE_ELSEWHERE,Se.ROUTE_RENDERED_NOTHING,Se.ACTION_HAD_NO_EFFECT,Se.DUPLICATE_REQUEST,Se.EVIDENCE_SUPERSEDED,Se.EVIDENCE_PREDATES_EDIT,Se.READ_SERVER_FAULT]),ioe=new Set([Se.DUPLICATE_REQUEST_UNRELATED,Se.SCREEN_REQUEST_MISMATCH]),soe={[Se.UI_ADVANCED_REQUEST_FAILED]:[$.UI,$.NET],[Se.UI_ADVANCED_UNSIGNALLED]:[$.UI,$.NET],[Se.SIGNAL_CONTRADICTED]:[$.SIGNAL,$.NET],[Se.RESPONSE_IGNORED]:[$.NET,$.UI],[Se.SIGNAL_WITHOUT_CONSEQUENCE]:[$.SIGNAL,$.NET],[Se.STATE_VS_RENDER]:[$.STATE,$.UI],[Se.CONSEQUENCE_ELSEWHERE]:[$.NET,$.UI],[Se.DUPLICATE_REQUEST]:[$.NET,$.NET],[Se.DUPLICATE_REQUEST_UNRELATED]:[$.NET,$.NET],[Se.SCREEN_REQUEST_MISMATCH]:[$.UI,$.NET],[Se.STALE_RESPONSE_APPLIED]:[$.NET,$.UI],[Se.PARTIAL_FAILURE_IN_OK_RESPONSE]:[$.NET,$.NET],[Se.UNIT_MISMATCH]:[$.UI,$.NET],[Se.PAGINATION_NOT_FETCHED]:[$.UI,$.NET],[Se.WRITE_FIELD_IGNORED]:[$.NET,$.NET],[Se.REQUEST_NEVER_SETTLED]:[$.TIME,$.NET],[Se.FAILURE_MISATTRIBUTED]:[$.UI,$.NET],[Se.ACTION_HAD_NO_EFFECT]:[$.NET,$.UI],[Se.ROUTE_RENDERED_NOTHING]:[$.ROUTE,$.NET],[Se.ROUTE_RENDERED_NOTHING_CRASHED]:[$.ROUTE,$.LOG],[Se.EVIDENCE_SUPERSEDED]:[$.TIME,$.UI],[Se.EVIDENCE_PREDATES_EDIT]:[$.TIME,$.UI],[Se.READ_SERVER_FAULT]:[$.UI,$.NET]}});var Yo,$h,loe,uoe,F0=y(()=>{"use strict";Gt();Yo="__reticleIpc",$h="reticle_capture",loe=hc.FULL_PAGE_UNSUPPORTED,uoe=hc.NOT_COMPOSITED});var B0=y(()=>{"use strict"});var G0=y(()=>{"use strict"});var V0=y(()=>{"use strict"});function j0(e){return e===yc.CALM||e===yc.WAITING||e===yc.ASK||e===yc.WARN}var yc,K0,moe,goe,W0=y(()=>{"use strict";yc={CALM:"calm",WAITING:"waiting",ASK:"ask",WARN:"warn"};K0="note that a lease is a SEPARATE context: the human watching this tab sees nothing of what you do there, so prefer this tab while someone is following along",moe='tab hidden and may be un-focusable from here; timers and rAF are clamped in a background tab, so an action can land on a page that never advances. Refocus it, or acquire a guaranteed scriptable context yourself with `reticle_run { tool: "reticle_lease", args: { action: "acquire", url } }` (a human can equivalently run `reticle drive <url>`) \u2014 '+K0,goe="tab is not hidden but has not reported health recently \u2014 usually a quiet page rather than a stuck one, and very often still driveable. This is also the tab a human can see, so try it first. Timing-sensitive work (animations, debounces, gestures) is what degrades: pass `refuseWhenThrottled: true` to refuse rather than act over events that may not land. Lease a separate context only if a drive here actually fails; "+K0});var Z0,k4,Soe,Aoe,xoe,Y0=y(()=>{"use strict";ce();Gt();Zo();Ko();Z0=1,k4=_({harness:p().min(1).max(W.MAX_REF_LENGTH),driver:p().min(1).max(W.MAX_COMMAND_NAME_LENGTH),persona:p().max(1e3).optional()}),Soe=_({v:H(Z0),actionId:p().min(1).max(W.MAX_REF_LENGTH),tool:p().min(1).max(W.MAX_COMMAND_NAME_LENGTH),args:se(p(),Q()).default({}),effect:Q().optional(),settled:L().optional(),settledInMs:T().int().min(0).optional(),seqRange:_({from:T().int().min(0),to:T().int().min(0)}).optional(),tRange:_({from:T().int().min(0),to:T().int().min(0)}),at:T().int().min(0),drivenBy:k4.optional(),agent:p().min(1).max(W.MAX_REF_LENGTH).optional()}),Aoe=_({v:H(Z0),channel:H(ch.JOURNAL),capBytes:T().int().min(1).optional(),bytesOnDisk:T().int().min(0).optional(),droppedInBatch:T().int().min(0).optional(),at:T().optional()}),xoe=_({claim:p().min(1).max(W.MAX_STRING_LENGTH),verified:R(Gn),source:p().max(W.MAX_URL_LENGTH).optional(),observed:p().max(W.MAX_STRING_LENGTH).optional(),expected:p().max(W.MAX_STRING_LENGTH).optional(),kind:R(P).optional(),declaredBeforeActing:L().optional(),net:O(_({method:p().max(W.MAX_COMMAND_NAME_LENGTH),url:p().max(W.MAX_URL_LENGTH),status:T().optional(),body:p().max(W.MAX_STRING_LENGTH).optional()})).max(5).optional(),grade:p().max(W.MAX_STRING_LENGTH).optional(),couldNotSee:O(p().max(W.MAX_STRING_LENGTH)).optional(),reason:p().max(W.MAX_STRING_LENGTH).optional(),intent:p().max(W.MAX_STRING_LENGTH).optional(),intentDerived:L().optional(),failedPart:T().int().min(0).optional()})});var X0=y(()=>{"use strict"});var voe,q0=y(()=>{"use strict";ce();voe=_({port:T(),pid:T(),cwd:p(),projectId:p().optional(),startedAt:T()})});var Roe,J0=y(()=>{"use strict";ce();Roe=_({port:T(),pid:T(),root:p(),url:p(),sdkVersion:p().min(1).optional(),startedAt:T(),projectId:p().optional()})});var D4,Ioe,Q0=y(()=>{"use strict";ce();D4=_({directory:p().min(1),lastSeenAt:T()}),Ioe=_({version:H(1),projects:se(p(),D4)})});var z4,J_,P4,M4,U4,Loe,eC=y(()=>{"use strict";ce();z4=1,J_={DECLARED:"declared",BOUND:"bound",PROVED:"proved"},P4=_({route:p().optional(),flow:p().optional(),files:O(p()).optional()}),M4=_({verdictId:p(),grade:p(),at:T(),runId:p().optional()}),U4=_({id:p().min(1),statement:p().min(1),state:fe([J_.DECLARED,J_.BOUND,J_.PROVED]),declaredAt:T(),binding:Q().optional(),surface:P4.optional(),provenBy:M4.optional(),amended:O(_({statement:p(),at:T()})).optional()}),Loe=_({version:H(z4),intents:se(p(),U4)})});var tC=y(()=>{"use strict"});function ad(e){return H4[e]}var mt,H4,F4,Doe,Q_=y(()=>{"use strict";ce();mt={NO_SOURCE_MAPPING:"no-source-mapping",NO_STORE_REGISTERED:"no-store-registered",NO_SIGNAL_ON_MUTATION:"no-signal-on-mutation",UNDECLARED_CONTROL:"undeclared-control",MISSING_TESTID:"missing-testid",UNDECLARED_CHANGE:"undeclared-change",INTENT_UNDISCHARGED:"intent-undischarged",NO_FLOW_INTENT:"no-flow-intent",SOURCE_MAPPING_OFF:"source-mapping-off"},H4={[mt.NO_SOURCE_MAPPING]:"add the Reticle build plugin (@reticlehq/vite-plugin, @reticlehq/next, or the babel plugin) so elements carry data-reticle-source",[mt.NO_STORE_REGISTERED]:"import { registerStore } from '@reticlehq/browser' and call registerStore(name, store) with a subscribable store so its changes are observed; a bare getter is readable but does not report changes. For component-local React state, import { useReticleStore } from '@reticlehq/react/store' and call useReticleStore(name, value), assert the DOM, or read it with reticle_look { action: 'state', ref: '...' }",[mt.NO_SIGNAL_ON_MUTATION]:"fire reticle.signal(name, data) where this state is committed \u2014 commitAndSignal binds the two so they cannot drift",[mt.UNDECLARED_CONTROL]:"add this control to reticle.describe() so the capability contract matches what the app actually exposes",[mt.MISSING_TESTID]:'add data-testid="..." on this control so the flow can name it after a refactor',[mt.UNDECLARED_CHANGE]:'declare it with reticle_intent { action: "declare", intents: [{ id, statement }] } \u2014 the statement is prose, in your own words: which user does what, and what should become true',[mt.INTENT_UNDISCHARGED]:'draw a verdict whose `until` asserts the intent itself, then it discharges \u2014 or call reticle_run({ tool: "reticle_context" }) to see exactly what is still owed',[mt.SOURCE_MAPPING_OFF]:"nothing to install \u2014 this build has sourceMapping turned off, so no element carries data-reticle-source. Re-enable it in the Reticle plugin options unless this app renders through a non-DOM reconciler (react-three-fiber, react-pdf, ink), where the stamp is what would break it",[mt.NO_FLOW_INTENT]:'save it again with intent: "<which user does what, and what should become true>" \u2014 prose, in your own words \u2014 or set intentId to an intent already in the ledger'};F4={PIXELS_UNOBSERVED:"pixels-unobserved",CLAIM_ARITHMETIC_UNCHECKED:"claim-arithmetic-unchecked"},Doe=_({kind:R(F4),detail:p().min(1)})});var Xo,nC,Hoe,Foe,rC=y(()=>{"use strict";ce();_c();Q_();P_();Xo={PAGE_CONNECTED:"page connected",DOM_ACTIONS:"DOM actions",NETWORK:"network",CONSOLE:"console",APP_STATE:"app state (store registered)",SIGNALS:"signals on mutation",SOURCE_MAPPING:yh,TEST_IDS:"stable test ids"},nC="run `npx @reticlehq/server init` in the app so its pages connect to Reticle in development",Hoe=[{capability:Xo.PAGE_CONNECTED,gaps:[],cost:"no page has connected, so nothing can be verified",fix:nC},{capability:Xo.DOM_ACTIONS,channel:$.UI,always:!0,gaps:[],cost:"controls cannot be driven or read",fix:nC},{capability:Xo.NETWORK,channel:$.NET,always:!0,gaps:[],cost:"requests cannot be asserted, so a save that never reached the server can pass",fix:"update @reticlehq/browser so the page reports its network channel"},{capability:Xo.CONSOLE,channel:$.LOG,always:!0,gaps:[],cost:"errors thrown in the page are invisible to a verdict",fix:"update @reticlehq/browser so the page reports its console channel"},{capability:Xo.APP_STATE,channel:$.STATE,gaps:[mt.NO_STORE_REGISTERED],cost:"state predicates fall back to reading the DOM",fix:ad(mt.NO_STORE_REGISTERED)},{capability:Xo.SIGNALS,channel:$.SIGNAL,gaps:[mt.NO_SIGNAL_ON_MUTATION],cost:"the app never says it succeeded, so every verdict infers success from the DOM",fix:ad(mt.NO_SIGNAL_ON_MUTATION)},{capability:Xo.SOURCE_MAPPING,channel:Qs.SOURCE,gaps:[mt.NO_SOURCE_MAPPING,mt.SOURCE_MAPPING_OFF],perControl:[mt.NO_SOURCE_MAPPING],cost:"a broken control is named, never the line that renders it",fix:ad(mt.NO_SOURCE_MAPPING)},{capability:Xo.TEST_IDS,channel:Qs.TESTID,gaps:[mt.MISSING_TESTID],cost:"a saved flow loses its controls after a refactor",fix:ad(mt.MISSING_TESTID)}],Foe=O(R(Xo)).max(8)});var oC=y(()=>{"use strict"});function B4(e){return Array.isArray(e)||typeof e=="string"}function G4(e){if(Array.isArray(e))return{keys:[...e.slice(0,49).map((n,r)=>String(r)),eT],total:e.length+1};if(typeof e=="string")return{keys:[eT],total:1};if(e instanceof Map){let t=[],n=0;for(let r of e.keys())n+=1,typeof r=="string"&&t.length<49&&t.push(r);return e.has(cd)?{keys:t,total:n}:{keys:[...t,cd],total:n+1}}if(e instanceof Set){let t=[];for(let n of e)typeof n=="string"&&t.length<49&&t.push(n);return{keys:[...t,cd],total:e.size+1}}if(typeof e=="object"&&e!==null){let t=Object.keys(e);return{keys:t.slice(0,50),total:t.length}}return{keys:[],total:0}}function kh(e){let{keys:t,total:n}=G4(e);return{found:!1,value:null,availableKeys:t,...n>t.length?{totalKeys:n}:{}}}function iC(e,t){let n=t.split(".").filter(o=>o.length>0),r=e;for(let o of n){if(eT===o&&B4(r)){r=r.length;continue}if(Array.isArray(r)){let i=Number(o);if(!Number.isInteger(i)||i<0||String(i)!==o||i>=r.length)return kh(r);r=r[i];continue}if(r instanceof Map){if(r.has(o)){r=r.get(o);continue}if(cd===o){r=r.size;continue}return kh(r)}if(r instanceof Set){if(cd===o){r=r.size;continue}if(r.has(o)){r=!0;continue}return kh(r)}if(typeof r=="object"&&r!==null&&Object.hasOwn(r,o)){r=r[o];continue}return kh(r)}return{found:!0,value:r}}function wc(e,t){if(t<0)return e;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Set)return t===0?`[Set(${String(e.size)})]`:[...e].map(n=>wc(n,t-1));if(e instanceof Map){if(t===0)return`{Map(${String(e.size)})}`;let n=Object.create(null);for(let[r,o]of e)n[String(r)]=wc(o,t-1);return n}if(Array.isArray(e))return t===0?`[Array(${String(e.length)})]`:e.map(n=>wc(n,t-1));if(typeof e=="object"&&e!==null){let n=Object.keys(e);if(t===0)return`{\u2026${String(n.length)} keys}`;let r=Object.create(null);for(let o of n)r[o]=wc(e[o],t-1);return r}return e}var eT,cd,sC=y(()=>{"use strict";eT="length";cd="size"});var Koe,Woe,aC=y(()=>{"use strict";Gt();Koe={[ge.ENABLED]:"en",[ge.DISABLED]:"dis",[ge.CHECKED]:"chk",[ge.EXPANDED]:"exp",[ge.PRESSED]:"prs",[ge.FOCUSED]:"focus"},Woe=new Set([ge.PRESENT,ge.VISIBLE,ge.HIDDEN])});var ea,Yoe,Xoe,cC=y(()=>{"use strict";ce();ea={SHARE_PROOF:"share_proof",RUN_HISTORY:"run_history",TEAM_REVIEW:"team_review",CORPUS_HEAL:"corpus_heal",CI_GATE:"ci_gate",HOSTED_RUNNER:"hosted_runner"},Yoe=_({capability:R(ea),reason:p(),unlockedBy:p(),learnMoreUrl:p().url()}),Xoe={[ea.SHARE_PROOF]:{reason:"Sharing a verification result with a teammate needs a hosted, linkable proof page.",unlockedBy:"Link a free Reticle Cloud account (reticle connect), then share the run."},[ea.RUN_HISTORY]:{reason:"Run history beyond this session lives in the hosted dashboard; local keeps only a buffer.",unlockedBy:"Link a free Reticle Cloud account to keep run history and trends."},[ea.TEAM_REVIEW]:{reason:"A shared review queue of pinned mistakes is a team feature \u2014 it needs a hosted store.",unlockedBy:"Add your team to Reticle Cloud to share a review queue."},[ea.CORPUS_HEAL]:{reason:"Corpus-ranked heal uses refactor outcomes learned across the fleet, served from the cloud.",unlockedBy:"Enable the hosted heal service on Reticle Cloud."},[ea.CI_GATE]:{reason:"Verify-before-merge is a governance gate that runs in your CI against a hosted policy.",unlockedBy:"Configure the Reticle Cloud CI gate for your repository."},[ea.HOSTED_RUNNER]:{reason:"Verifying without a local browser (CI, a background agent, or a deployed URL) needs a browser we run for you.",unlockedBy:"Link a Reticle Cloud account to run verifications on hosted browsers."}}});var ld,lC,uC,dC,pC,V4,fC,hC=y(()=>{"use strict";ce();ld={INSTALL:"install",ONBOARD:"onboard",FIRST_RUN:"first_run"},lC={STARTED:"started",COMPLETED:"completed",FAILED:"failed",ABANDONED:"abandoned",SKIPPED:"skipped"},uC={[ld.INSTALL]:["script_started","runtime_ready","cli_installed","agents_detected","mcp_registered"],[ld.ONBOARD]:["tour_started","concept_shown","first_look","first_act","first_verdict"],[ld.FIRST_RUN]:["project_detected","next_step_offered","instrumented","app_connected","driven","flow_recorded","verdict_produced"]},dC={LEASE:"lease",INIT_CONSENT:"init_consent"},pC={NO_NODE:"no_node",NODE_TOO_OLD:"node_too_old",CLI_INSTALL_FAILED:"cli_install_failed",MCP_NOT_REGISTERED:"mcp_not_registered",NO_WEB_APP:"no_web_app",SETUP_FAILED:"setup_failed",DEV_SERVER_FAILED:"dev_server_failed",APP_NOT_CONNECTED:"app_not_connected",INTERRUPTED:"interrupted",AGENT_NOT_RESTARTED:"agent_not_restarted",CHROMIUM_UNAVAILABLE:"chromium_unavailable",UNCLASSIFIED:"unclassified"},V4=Object.values(uC).flatMap(e=>[...e]),fC=_({phase:R(ld),step:fe(V4),status:R(lC),elapsedMs:T().int().nonnegative().optional(),reason:p().max(64).optional(),stack:p().max(64).optional(),unattended:L().optional(),firstEver:L().optional(),offered:R(dC).optional(),nextFollowed:L().optional(),stop:R(pC).optional()})});var mC,tT=y(()=>{"use strict";mC={AUTH_REFUSED:"auth_refused",LEASE_EXPIRED:"lease_expired",TAB_GONE:"tab_gone",NAVIGATED_AWAY:"navigated_away",ROUTE_SERVER_ERROR:"route_server_error",APP_NOT_REOPENED:"app_not_reopened",CONFIG_ELSEWHERE:"config_elsewhere",NO_LISTENER_NO_CONFIG:"no_listener_no_config",NO_LISTENER:"no_listener",NO_CONFIG:"no_config",SDK_NOT_REACHING_DAEMON:"sdk_not_reaching_daemon"}});var j4,K4,gC,nT=y(()=>{"use strict";ce();tT();j4={NO_SESSION:"no_session",NO_MATCH:"no_match",UNSUPPORTED:"unsupported",BAD_ARGS:"bad_args",NOT_READY:"not_ready",OTHER:"other"},K4={NO_SESSION:"no_session",MULTIPLE_SESSIONS:"multiple_sessions",UNKNOWN_SESSION:"unknown_session",SCOPE_MISMATCH:"scope_mismatch",SESSION_GONE:"session_gone",THROTTLED:"throttled",COMMAND_TIMEOUT:"command_timeout",POOL_UNAVAILABLE:"pool_unavailable",POOL_SHUT_DOWN:"pool_shut_down",CHROMIUM_MISSING:"chromium_missing",CHROMIUM_PATH:"chromium_path",TOKEN_REQUIRED:"token_required",MISSING_BASELINE:"missing_baseline",MISSING_RECORDING:"missing_recording",STALE_REF:"stale_ref",STALE_REF_AFTER_EDIT:"stale_ref_after_edit",UNISSUED_REF:"unissued_ref",NO_SUCH_OPTION:"no_such_option",TARGET_MISSED:"target_missed",AMBIGUOUS_TARGET:"ambiguous_target",FLOW_STEP_MISSING:"flow_step_missing",UNSUPPORTED_SURFACE:"unsupported_surface",HOVER_NEEDS_POINTER:"hover_needs_pointer",NOT_EDITABLE:"not_editable",CONFIRM_DANGEROUS:"confirm_dangerous",WRONG_TARGET:"wrong_target",PRODUCTION_POLICY:"production_policy",BAD_ARGUMENTS:"bad_arguments",INVALID_NAME:"invalid_name",HARNESS_OFF:"harness_off",HARNESS_LOCKED:"harness_locked"},gC=_({tool:p().min(1).max(64),reason:R(j4),noSessionReason:R(mC).optional(),detail:R(K4).optional(),retried:L(),params:O(p().min(1).max(64)).max(16).optional()})});var W4,bC,nie,EC,Z4,Y4,rT,X4,q4,_C,J4,Q4,TC,oT=y(()=>{"use strict";ce();W4={CONNECT:"connect",CLOSE_GAPS:"close_gaps",SWITCH_ON:"switch_on",EXPLORE:"explore"},bC={B0:"0-19",B20:"20-39",B40:"40-59",B60:"60-79",B80:"80-100"},nie=Object.values(bC),EC=_({fingerprint:p().min(1).max(64),count:T().int().nonnegative(),message:p().max(300),tool:p().max(64).optional()}),Z4={NONE:"none",LOCAL_ONLY:"local_only",REMOTE:"remote"},Y4={GITHUB:"github",GITLAB:"gitlab",BITBUCKET:"bitbucket",AZURE:"azure",SOURCEHUT:"sourcehut",CODEBERG:"codeberg",SELF_HOSTED:"self_hosted"},rT=_({rssMb:T().int().nonnegative(),heapUsedMb:T().int().nonnegative(),freeMemMb:T().int().nonnegative(),totalMemMb:T().int().nonnegative(),load1x100:T().int().nonnegative(),cpuCount:T().int().nonnegative()}),X4=_({totalMs:T().int().nonnegative(),maxMs:T().int().nonnegative()}),q4=_({attempts:T().int().nonnegative(),successes:T().int().nonnegative(),failures:se(p(),T().int().nonnegative()).optional()}),_C=_({durationMs:T().int().nonnegative(),toolCalls:T().int().nonnegative(),toolCounts:se(p(),T().int().nonnegative()),toolErrors:T().int().nonnegative(),errors:O(EC).max(40).optional(),sdkFailures:T().int().nonnegative().optional(),sdkErrors:O(EC).max(40).optional(),verifications:T().int().nonnegative(),bugsFound:T().int().nonnegative().optional(),bugKinds:se(p(),T().int().nonnegative()).optional(),toolParams:se(p(),se(p(),T().int().nonnegative())).optional(),connections:se(p(),q4).optional(),toolTiming:se(p(),X4).optional(),busyMs:T().int().nonnegative().optional(),browserMs:T().int().nonnegative().optional(),browserCommands:T().int().nonnegative().optional(),peakConcurrentTools:T().int().nonnegative().optional(),unknownToolCalls:T().int().nonnegative().optional(),unknownTools:se(p().max(64),T().int().nonnegative()).optional(),noSessionErrors:T().int().nonnegative().optional(),postSocketFailures:T().int().nonnegative().optional(),postRetriesSaved:T().int().nonnegative().optional(),consecutiveRepeats:se(p(),T().int().positive()).optional(),abandonedActions:T().int().nonnegative().optional(),machine:rT.optional(),clients:O(p().max(64)).max(8).optional(),clientVersions:se(p().max(64),p().max(32)).optional(),surface:p().max(32).optional(),appConnects:T().int().nonnegative().optional(),msToFirstApp:T().int().nonnegative().optional(),sdkVersion:p().min(1).max(32).optional(),toolCallsBeforeApp:T().int().nonnegative().optional(),endReason:fe(["never_used","explored","abandoned","verified","client_left"]).optional(),feedbackPrompted:T().int().nonnegative().optional(),errorClasses:se(p().max(16),T().int().nonnegative()).optional(),errorsRecovered:T().int().nonnegative().optional(),errorsRepeated:T().int().nonnegative().optional(),endedWithVerdict:L().optional(),lifetimeToolCalls:T().int().nonnegative().optional(),lifetimeVerifications:T().int().nonnegative().optional(),lifetimeBugsFound:T().int().nonnegative().optional(),updateNudged:L().optional(),updateOffered:p().max(32).optional(),hudControls:se(p(),T()).optional(),hudViewMs:se(p(),T()).optional(),hudPanelMs:se(p(),T()).optional(),hudSlides:se(p(),T()).optional(),hudJourney:O(p().max(64)).max(60).optional(),hudJourneyCut:H(!0).optional(),nudgesShown:Ub(R(W4),T().int().positive()).optional(),harnessRefusedCoverage:Ub(R(bC),T().int().positive()).optional(),final:L(),exit:fe(["idle","signal","unknown"]).optional()}),J4={TINY:"tiny",SMALL:"small",MEDIUM:"medium",LARGE:"large",HUGE:"huge"},Q4={NO_APP_FOUND:"no_app_found",MANIFEST_UNRECOGNISED:"manifest_unrecognised",WORKSPACE_APPS_UNRECOGNISED:"workspace_apps_unrecognised",WORKSPACE_ROOT_NO_APPS:"workspace_root_no_apps",DISCOVERY_FAILED:"discovery_failed"},TC=_({stack:p().min(1).max(64).optional(),stackSource:fe(["cwd","workspace"]).optional(),stackUnknownReason:R(Q4).optional(),stackMajor:T().int().nonnegative().optional(),size:R(J4).optional(),monorepo:L().optional(),git:R(Z4),forge:R(Y4).optional(),ageWeeks:T().int().nonnegative().optional(),flowCount:T().int().nonnegative(),baselineCount:T().int().nonnegative(),visualBaselineCount:T().int().nonnegative(),runCount:T().int().nonnegative(),hasContract:L(),initialized:L().optional(),appConnectedBefore:L().optional(),capsuleCount:T().int().nonnegative(),featuresUsed:O(p().max(32)).max(24),featureDepth:T().min(0).max(1)})});var SC,iT=y(()=>{"use strict";SC={ACTIVE:"active",MISSING:"missing",INVALID:"invalid",EXPIRED:"expired",EVAL:"eval"}});var ej,tj,nj,sT,rj,oj,ij,sj,aj,cj,lj,uj,dj,pj,AC,xC,fj,hj,mj,gj,Ej,bj,_j,Tj,Sj,Aj,yC,aT=y(()=>{"use strict";ce();rd();ej={SIGNED_OUT:"signed_out",SIGNED_IN:"signed_in",LINKED:"linked"},tj={CLAUDE_CODE:"claude_code",CLAUDE_DESKTOP:"claude_desktop",CODEX:"codex",CURSOR:"cursor",GEMINI_CLI:"gemini_cli",ANTIGRAVITY:"antigravity",WINDSURF:"windsurf",CLINE:"cline",OPENCODE:"opencode",ZED:"zed",VSCODE:"vscode",OTHER:"other"},nj={NPX:"npx",GLOBAL:"global",PROJECT:"project",OTHER:"other"},sT={ZERO:"0",ONE:"1",TWO_THREE:"2-3",FOUR_NINE:"4-9",TEN_PLUS:"10+"},rj=_({view:R(zt).optional(),surface:R(Bi).optional(),tabs:R(sT).optional()}),oj={CONNECT:"connect",HUD:"hud",LINK:"link"},ij=_({via:R(oj)}),sj={STARTED:"started",COMPLETED:"completed"},aj={PROVED:"proved",NOT_PROVED:"not_proved",FAILED:"failed",BLOCKED:"blocked",STOPPED:"stopped"},cj={NOT_LINKED:"not_linked",PLATFORM_UNREACHABLE:"platform_unreachable",HARNESS_OFF:"harness_off",NO_CREDITS:"no_credits",NOT_ENTITLED:"not_entitled",COVERAGE_GATE:"coverage_gate",VERSION_SKEW:"version_skew",BROKEN:"broken",OTHER:"other"},lj={AGENT:"agent",HUD:"hud",DASHBOARD:"dashboard",CLI_TRY:"cli_try",PLAN:"plan"},uj=_({phase:R(sj),source:R(lj),hosted:L(),outcome:R(aj).optional(),journeys:R(sT).optional(),replayed:R(sT).optional(),reason:R(cj).optional()}),dj={PASS:"pass",FAIL:"fail",NOTHING_TO_CHECK:"nothing_to_check",REGRESSION:"regression",ERROR:"error"},pj=_({outcome:R(dj),flowsChecked:T().int().nonnegative().optional()}),AC={accountState:R(ej).optional(),linked:L().optional(),workspaceId:p().min(1).max(128).optional(),client:R(tj).optional(),launch:R(nj).optional(),hud:rj.optional(),link:ij.optional(),harness:uj.optional(),gate:pj.optional()},xC={ECONNRESET:"ECONNRESET",ECONNREFUSED:"ECONNREFUSED",EPIPE:"EPIPE",ETIMEDOUT:"ETIMEDOUT",OTHER:"other"},fj={STDIN_END:"stdin_end",IDLE:"idle",CLIENT_GONE_STORM:"client_gone_storm",WAKE_FAILED:"wake_failed"},hj=_({reason:R(fj),uptimeMs:T().int().nonnegative(),drops:T().int().nonnegative(),toolCalls:T().int().nonnegative(),proxyId:p().min(1).max(64).optional()}),mj={ALIVE:"alive",CLEAN:"clean",SIGNALLED:"signalled",DIED_SILENTLY:"died_silently",START_FAILED:"start_failed",UNKNOWN:"unknown"},gj={LISTEN:"listen",START:"start",UNCAUGHT_EXCEPTION:"uncaught_exception",UNHANDLED_REJECTION:"unhandled_rejection",BEFORE_LOG:"before_log"},Ej=/^SIG[A-Z0-9]{1,12}$/,bj=/^(E[A-Z0-9]{2,30}|ERR_[A-Z0-9_]{2,60})$/,_j=_({ageMs:T().int().nonnegative(),end:R(mj).optional(),silentMs:T().int().nonnegative().optional(),signal:p().regex(Ej).optional(),sessions:T().int().nonnegative().optional(),served:L().optional(),rssMb:T().int().nonnegative().optional(),error:p().regex(bj).optional(),startupError:R(gj).optional()}),Tj={DETACHED:"detached",WMI:"wmi",WMI_FALLBACK:"wmi_fallback"},Sj={FOREIGN:"foreign",OTHER_PROJECT:"other_project"},Aj=_({presence:R(Sj)}),yC={proxyExit:hj.optional(),daemonDeath:_j.optional(),wakeRefusal:Aj.optional(),spawnMethod:R(Tj).optional()}});var xj,yj,wC,cT=y(()=>{"use strict";ce();xj={CONTRADICTION:"contradiction",CRAWL:"crawl",REPLAY:"replay",ASSERTION:"assertion"},yj={APP:"app",REQUEST:"request",RETICLE:"reticle",UNCLASSIFIED:"unclassified"},wC=_({source:R(xj),kind:p().min(1).max(64),falseGreen:L(),tool:p().min(1).max(64).optional(),repeat:L(),attribution:R(yj),fingerprint:p().max(16).optional(),occurrence:T().int().positive().optional()})});var wj,un,Eie,vj,Nj,Rj,Oj,Ij,vC,Cj,Lj,$j,kj,Dj,zj,Pj,Mj,Uj,Hj,Fj,bie,NC=y(()=>{"use strict";ce();hC();nT();oT();xc();Zo();xc();iT();aT();cT();cT();wj=3,un={RETICLE_INSTALLED:"reticle_installed",CLI_COMMAND_RUN:"cli_command_run",DAEMON_STARTED:"daemon_started",DAEMON_STOPPED:"daemon_stopped",SESSION_PROGRESS:"session_progress",VERIFICATION_COMPLETED:"verification_completed",PROJECT_PROFILED:"project_profiled",VERSION_CHANGED:"version_changed",RUNTIME_CRASHED:"runtime_crashed",FEEDBACK_SUBMITTED:"feedback_submitted",IDENTIFIED:"identified",MCP_CLIENT_CONNECTED:"mcp_client_connected",APP_INSTRUMENTED:"app_instrumented",MCP_CONNECTION_LOST:"mcp_connection_lost",MCP_PROXY_EXITED:"mcp_proxy_exited",DAEMON_DIED_UNCLEAN:"daemon_died_unclean",WAKE_REFUSED:"wake_refused",INIT_COMPLETED:"init_completed",ONBOARDING_STEP:"onboarding_step",BUG_FOUND:"bug_found",TOOL_REFUSED:"tool_refused",HUD_VIEWED:"hud_viewed",HUD_SIGNIN_PROMPTED:"hud_signin_prompted",PLATFORM_LINKED:"platform_linked",HARNESS_RUN:"harness_run",GATE_COMPLETED:"gate_completed"},Eie=new Set([un.DAEMON_STARTED,un.DAEMON_STOPPED,un.SESSION_PROGRESS,un.MCP_CLIENT_CONNECTED,un.APP_INSTRUMENTED,un.PROJECT_PROFILED,un.VERIFICATION_COMPLETED,un.BUG_FOUND,un.RUNTIME_CRASHED,un.FEEDBACK_SUBMITTED,un.TOOL_REFUSED,un.HUD_VIEWED,un.HUD_SIGNIN_PROMPTED,un.HARNESS_RUN]),vj={HUMAN:"human",AGENT:"agent"},Nj={GIT_ORIGIN:"git_origin",GIT_ROOT:"git_root",PACKAGE_ROOT:"package_root",CWD:"cwd"},Rj={HARNESS:"harness"},Oj=_({via:p().min(1).max(64),verified:p().min(1).max(16),passed:L(),falseGreenCaught:L(),durationMs:T().int().nonnegative().optional(),browser:p().min(1).max(16).optional(),brand:R(et).optional(),reason:R(ot).optional(),uncleanLoss:R(VO).optional(),driven:R(Rj).optional(),sdkVersion:p().min(1).max(32).optional()}),Ij=_({from:p().min(1).max(64),to:p().min(1).max(64),nudged:L().optional(),direction:p().min(1).max(16)}),vC={RETICLE:"reticle",OTHER:"other"},Cj=_({kind:p().min(1).max(32),errorType:p().min(1).max(64).optional(),fingerprint:p().min(1).max(64).optional(),message:p().max(300).optional(),frames:O(p().max(120)).max(12).optional(),tool:p().min(1).max(64).optional(),breadcrumb:O(p().max(64)).max(12).optional(),nodeVersion:p().max(24).optional(),arch:p().max(16).optional(),machine:rT.optional(),syscall:p().max(32).optional(),errno:p().max(32).optional(),loopback:L().optional(),port:fe([vC.RETICLE,vC.OTHER]).optional(),internalFrame:p().max(64).optional()}),Lj=_({reconnect:L(),daemonAgeMs:T().int().nonnegative(),client:p().min(1).max(64).optional(),appConnected:L().optional(),proxyId:p().min(1).max(64).optional()}),$j=_({initialized:L(),agentAttached:L(),msToFirstApp:T().int().nonnegative(),firstEver:L().optional()}),kj={FIRST:"first",BUDGET_SPENT:"budget_spent",RECOVERED:"recovered"},Dj={SSE_ENDED:"sse_ended",DAEMON_SHUTDOWN:"daemon_shutdown",SSE_ERROR:"sse_error",SSE_ABORTED:"sse_aborted",SSE_CLOSED:"sse_closed",CONNECT_ERROR:"connect_error",SSE_RESET:"sse_reset",OTHER:"other"},zj=_({stage:R(kj),reason:R(Dj),attempts:T().int().nonnegative(),pendingLost:T().int().nonnegative().optional(),errCode:R(xC).optional(),responded:L().optional(),proxyId:p().min(1).max(64).optional()}),Pj={SKILL_FILE:"skill_file",NPX_SKILL:"npx_skill",PLUGIN:"plugin",INSTALL_SCRIPT:"install_script",DOCS_SITE:"docs_site",README:"readme",BLOG:"blog",CLI_DIRECT:"cli_direct",UNKNOWN:"unknown"},Mj={CONTAINER:"container",HOSTED_WORKSPACE:"hosted_workspace",CI_RUNNER:"ci_runner",AGENT_SANDBOX:"agent_sandbox"},Uj={CONNECTED:"connected",NO_DAEMON:"no_daemon",NO_SESSION:"no_session",NO_PAGE:"no_page",DEV_SERVER_NOT_STARTED:"dev_server_not_started"},Hj={NO_DEV_COMMAND:"no_dev_command",SPLIT_LOOPBACK:"split_loopback",PORT_BUSY:"port_busy",DEV_SERVER_EXITED:"dev_server_exited",NO_URL:"no_url",NOT_READY:"not_ready",PAGE_NOT_SERVED:"page_not_served",PAGE_TLS_REFUSED:"page_tls_refused",SDK_MISSING:"sdk_missing",NO_SESSION:"no_session",DESKTOP_NO_SESSION:"desktop_no_session"},Fj=_({ok:L(),reason:p().max(64).optional(),stack:p().max(64).optional(),mcpRegistered:L().optional(),confirmation:R(Uj).optional(),stop:R(Hj).optional()}),bie=_({v:H(wj),anonymousId:p().min(1).max(128),projectId:p().min(1).max(128).optional(),sessionId:p().min(1).max(64).optional(),event:R(un),ts:T().int().nonnegative(),version:p().min(1).max(64),ci:L(),automation:R(Mj).optional(),projectIdSource:R(Nj).optional(),os:p().min(1).max(32),tzOffsetMin:T().int().min(-900).max(900).optional(),internal:L().optional(),idEphemeral:L().optional(),feedback:$0.optional(),actor:R(vj).optional(),command:p().min(1).max(32).optional(),flags:O(p().max(32)).max(16).optional(),session:_C.optional(),project:TC.optional(),verification:Oj.optional(),versionChange:Ij.optional(),crash:Cj.optional(),identity:k0.optional(),connection:Lj.optional(),init:Fj.optional(),onboarding:fC.optional(),bug:wC.optional(),refusal:gC.optional(),outage:zj.optional(),instrumentation:$j.optional(),installSource:R(Pj).optional(),licenseId:p().min(1).max(64).optional(),licenseStatus:R(SC).optional(),licenseKeyPresent:L().optional(),...AC,...yC})});var RC=y(()=>{"use strict"});var OC,lT=y(()=>{"use strict";Bb();OC={SESSIONS:"reticle_sessions",LOOK:"reticle_look",SNAPSHOT:"reticle_snapshot",QUERY:"reticle_query",INSPECT:"reticle_inspect",ACT:eh.ACT,ACT_SEQUENCE:eh.ACT_SEQUENCE,ACT_AND_WAIT:eh.ACT_AND_WAIT,OBSERVE:"reticle_observe",LINEAGE:"reticle_lineage",WAIT_FOR:"reticle_wait_for",NETWORK:"reticle_network",CONSOLE:"reticle_console",ANIMATIONS:"reticle_animations",ASSERT:"reticle_assert",RECONCILE:"reticle_reconcile",BASELINE_SAVE:"reticle_baseline_save",BASELINE_LIST:"reticle_baseline_list",DIFF:"reticle_diff",RECORD_START:"reticle_record_start",RECORD_STOP:"reticle_record_stop",REPLAY:"reticle_replay",EXPLORE:"reticle_explore",NARRATE:"reticle_narrate",CLOCK:"reticle_clock",STATE:"reticle_state",STORAGE:"reticle_storage",CAPABILITIES:"reticle_capabilities",CONTRACT_SAVE:"reticle_contract_save",DOMAIN:"reticle_domain",FLOW_SAVE:"reticle_flow_save",FLOW_LIST:"reticle_flow_list",FLOW_LOAD:"reticle_flow_load",FLOW_DELETE:"reticle_flow_delete",FLOW_REPLAY:"reticle_flow_replay",FLOW_VERIFY:"reticle_flow_verify",FLOW_SAVE_RECORDED:"reticle_flow_save_recorded",FLOW_HEAL:"reticle_flow_heal",FLOW_MUTATE:"reticle_flow_mutate",ANNOTATE:"reticle_annotate",AFFECTED:"reticle_affected",COVERAGE:"reticle_coverage",VERIFY_CHANGE:"reticle_verify_change",VERIFY_EXPLORE:"reticle_verify_explore",VERIFY_COMPARE:"reticle_verify_compare",INTENT:"reticle_intent",CONTEXT:"reticle_context",MAP:"reticle_map",VERIFY:"reticle_verify",PROJECT:"reticle_project",ACCOUNT:"reticle_account",MEMORY:"reticle_memory",RUN_RECORD:"reticle_run_record",SCREENSHOT:"reticle_screenshot",NETWORK_MOCK:"reticle_network_mock",VIEWPORT:"reticle_viewport",VISUAL_DIFF:"reticle_visual_diff",CRAWL:"reticle_crawl",SCROLL_TO:"reticle_scroll_to",SESSION_TUNE:"reticle_session_tune",END_SESSION:"reticle_end_session",YIELD:"reticle_yield",RESUME:"reticle_resume",MESSAGES:"reticle_messages",REVIEW:"reticle_review",WAIT_READY:"reticle_wait_ready",NAVIGATE:"reticle_navigate",REFRESH:"reticle_refresh",RUN_EXPORT:"reticle_run_export",BASELINE:"reticle_baseline",SESSION:"reticle_session",RECORD:"reticle_record",FLOW:"reticle_flow",LEASE:"reticle_lease",LEASE_ACQUIRE:"reticle_lease_acquire",LEASE_RELEASE:"reticle_lease_release",LEASE_COVERAGE:"reticle_lease_coverage",TOOLS:"reticle_tools",RUN:"reticle_run",FEEDBACK:"reticle_feedback"}});var IC,Bj,Dh,Gj,wie,vie,Nie,CC=y(()=>{"use strict";ce();lT();IC="reticle connect",Bj={HARNESS_NOT_LINKED:"harness_not_linked"},Dh={HUMAN:"human",AGENT:"agent"},Gj=Rt("who",[_({who:H(Dh.HUMAN),run:p()}),_({who:H(Dh.AGENT),tool:p()})]),wie=_({code:fe([Bj.HARNESS_NOT_LINKED]),next:O(Gj)}),vie=[{who:Dh.HUMAN,run:IC},{who:Dh.AGENT,tool:OC.ACT_AND_WAIT}],Nie=`Connect your Reticle account to run the Harness: \`${IC}\`.`});var LC=y(()=>{"use strict"});var $C=y(()=>{"use strict"});var Die,zie,Pie,Mie,kC=y(()=>{"use strict";_c();xc();vh();Gt();Die={[Vi.WEB]:{surface:cr.WEB,isDesktopShell:!1,usesWebKit:!1,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!1},[Vi.ELECTRON]:{surface:cr.DESKTOP,isDesktopShell:!0,projectMarker:{dependency:"electron"},usesWebKit:!1,ownsCoverageKinds:!0,hasOwnBaselineDirectory:!0},[Vi.TAURI]:{surface:cr.DESKTOP,isDesktopShell:!0,projectMarker:{file:"src-tauri/tauri.conf.json"},usesWebKit:!0,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!0}},zie=new Set(Object.values(Fn)),Pie={[Vi.WEB]:fo.WEB,[Vi.ELECTRON]:fo.WEBVIEW,[Vi.TAURI]:fo.WEBVIEW},Mie={[cr.WEB]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[cr.DESKTOP]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[cr.MOBILE]:{reset:"costly",replayPrefix:"costly",time:"wall",observation:"exact",actions:"reversible"},[cr.SERVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"exact",actions:"irreversible"},[cr.GAME]:{reset:"cheap",replayPrefix:"free",time:"stepped",observation:"exact",actions:"reversible"},[cr.DEVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"sampled",actions:"irreversible"}}});var PC,Vj,jj,DC,Kj,MC,Wj,zC,Zj,xt,Yj,Xj,qj,Jj,Qj,e6,UC,t6,n6,HC,uT=y(()=>{"use strict";ce();PC=_({calls:T().int().nonnegative(),verdicts:T().int().nonnegative(),passed:T().int().nonnegative(),failed:T().int().nonnegative(),unknown:T().int().nonnegative(),refusals:T().int().nonnegative(),marks:T().int().nonnegative(),sessions:T().int().nonnegative(),tokensReturned:T().int().nonnegative(),drivingMs:T().int().nonnegative()}),Vj=_({date:p(),counts:PC}),jj=_({longestRunMs:T().int().nonnegative(),bestVerdictDay:T().int().nonnegative(),bestDefectDay:T().int().nonnegative(),streakDays:T().int().nonnegative(),bestStreakDays:T().int().nonnegative()}),DC=_({value:T().nonnegative(),basis:p()}),Kj=_({tokens:DC,minutes:DC}),MC=10,Wj=_({at:T().int().nonnegative(),title:p(),detail:p().optional(),source:p().optional()}),zC=_({counts:PC,days:O(Vj),records:jj,savings:Kj,since:T().int().nonnegative(),defects:O(Wj).default([])}),Zj=_({signedIn:L(),org:p().optional(),email:p().optional(),host:p().optional()}),xt={FREE:"free",TRIAL:"trial",PAID:"paid"},Yj=_({provider:p(),harnessEnabled:L(),harnessEntitled:L(),providerReady:L().optional(),credits:_({used:T().min(0),limit:T().min(0),kind:fe([xt.FREE,xt.TRIAL,xt.PAID]).optional(),daysLeft:T().int().min(0).optional()}).optional(),platformUrl:p().optional(),planUrl:p().optional(),plan:_({kind:fe([xt.FREE,xt.TRIAL,xt.PAID]),daysLeft:T().int().min(0).optional(),seats:T().int().min(0).optional()}).optional(),harnessRuns:T().int().min(0).optional(),memoryEntries:T().int().min(0).optional()}),Xj=60,qj=_({runId:p(),steps:T().int().min(0),lines:O(p()).max(Xj).optional()}),Jj=_({runUrl:p().optional(),said:p().optional(),seq:T().int().min(0).optional()}),Qj=500,e6=5,UC=64,t6=_({text:p().max(Qj),seen:L(),by:p().max(UC).optional()}),n6=_({agents:O(p().max(UC)).max(8),notes:O(t6).max(e6)}),HC=_({schemaVersion:T().int().positive(),project:zC,global:zC,projectName:p().optional(),dashboardUrl:p().optional(),account:Zj.optional(),harnessConfig:Yj.optional(),harnessDrive:qj.optional(),lastDrive:Jj.optional(),agent:n6.optional(),notices:O(Q()).max(8).optional(),coverage:se(p(),T()).optional(),sync:se(p(),Q()).optional(),instrumentation:se(p(),Q()).optional()})});var FC=y(()=>{"use strict"});function vc(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(16).padStart(8,"0")}function BC(e){let t=Object.keys(e).sort().map(n=>{var r;return`${n}:${[...(r=e[n])!=null?r:[]].sort().join(",")}`}).join("|");return vc(t)}var dT,ud,GC=y(()=>{"use strict";Gt();dT=BC({messageKinds:Object.values(sn),commands:Object.values(B),actions:Object.values(k),events:Object.values(v)}),ud={commands:Object.values(B),events:Object.values(v),actions:Object.values(k)}});var VC,jC=y(()=>{"use strict";VC="[Reticle] this page could not open a websocket to "});var KC=y(()=>{"use strict"});var M=y(()=>{"use strict";hy();lI();uI();dI();hI();Gt();gI();I_();TI();AI();wI();vI();RI();HI();L_();FI();Zo();BI();GI();VI();k_();rd();YI();P_();JI();n0();o0();s0();a0();X_();Ih();O0();I0();D0();z0();Gu();Bb();cI();Kb();P0();d_();c_();p_();U0();ed();H0();F0();Ko();b_();g_();x_();w_();v_();B0();G0();V0();W0();Y0();X0();q0();J0();Q0();eC();tC();Q_();rC();oC();W_();G_();sC();aC();cC();NC();tT();nT();RC();lT();CC();LC();vh();Nh();$C();kC();oT();aT();iT();xc();uT();FC();GC();jC();KC()});function $e(e,t){return e[t]}function WC(e){let t=Object.getOwnPropertyDescriptor(e,"value");return t===void 0?void 0:$e(t,"set")}var qo=y(()=>{"use strict"});function i6(){for(let e of ji)e.deref()===void 0&&ji.delete(e);for(;ji.size>r6;){let e=ji.values().next();if(e.done===!0)break;ji.delete(e.value)}}function XC(){let e=[];for(let t of ji){let n=t.deref();n!==void 0&&e.push(n)}return e}function YC(e,t){if(!ZC.has(e)){ZC.add(e),ji.add(new WeakRef(e)),fT+=1,fT>=o6&&(fT=0,i6()),hT.add(t);for(let n of zh)n(e)}}function qC(){return XC()}function JC(e){return hT.has(e)}function ta(e){if(!hT.has(e))return null;for(let t of XC())if(t.host===e)return t;return null}function QC(e){return zh.add(e),()=>zh.delete(e)}function eL(){let e=Element.prototype,t=$e(e,"attachShadow");if(typeof t!="function")return()=>{};pT+=1;let n=function(i){let s=t.call(this,i);return YC(s,this),s};e.attachShadow=n;let r=o=>{for(let i of o.querySelectorAll("*")){let s=i.shadowRoot;s!==null&&(YC(s,i),r(s))}};return document.documentElement!==null&&r(document.documentElement),()=>{$e(e,"attachShadow")===n&&(e.attachShadow=t),pT-=1,!(pT>0)&&(ji.clear(),zh.clear())}}function s6(e){let t=e.parentElement;if(t===null||t.shadowRoot!==null)return null;let n=ta(t);if(n===null)return null;for(let r of Array.from(n.querySelectorAll("slot")))if(r.assignedElements().includes(e))return r;return null}function Pr(e){var r;let t=(r=e.assignedSlot)!=null?r:s6(e);if(t!==null)return t;if(e.parentElement!==null)return e.parentElement;let n=e.getRootNode().host;return n!=null?n:null}var pT,ji,ZC,hT,r6,o6,fT,zh,Jo=y(()=>{"use strict";qo();pT=0,ji=new Set,ZC=new WeakSet,hT=new WeakSet,r6=4e3,o6=250,fT=0;zh=new Set});function tL(e,t){var o;if(e===null||typeof e!="object")return;let r=((o=e.ownerDocument)!=null?o:e).defaultView;if(r!=null)return r[t]}function jn(e,t,n){var o;let r=(o=tL(e,t))!=null?o:n;return typeof r=="function"&&e instanceof r}function sL(e){let t=Vt(e)?"HTMLTextAreaElement":"HTMLInputElement",n=tL(e,t);if(typeof n!="function")return;let r=n.prototype;return typeof r=="object"&&r!==null?r:void 0}var dn,mT,lt,a6,Qo,Fe,Vt,Mr,dd,nL,rL,oL,iL,Ph,jt=y(()=>{"use strict";dn=e=>jn(e,"Element",typeof Element=="undefined"?void 0:Element),mT=e=>jn(e,"HTMLImageElement",typeof HTMLImageElement=="undefined"?void 0:HTMLImageElement),lt=e=>jn(e,"HTMLElement",typeof HTMLElement=="undefined"?void 0:HTMLElement),a6=e=>jn(e,"SVGElement",typeof SVGElement=="undefined"?void 0:SVGElement),Qo=e=>lt(e)||a6(e),Fe=e=>jn(e,"HTMLInputElement",typeof HTMLInputElement=="undefined"?void 0:HTMLInputElement),Vt=e=>jn(e,"HTMLTextAreaElement",typeof HTMLTextAreaElement=="undefined"?void 0:HTMLTextAreaElement),Mr=e=>jn(e,"HTMLSelectElement",typeof HTMLSelectElement=="undefined"?void 0:HTMLSelectElement),dd=e=>jn(e,"HTMLButtonElement",typeof HTMLButtonElement=="undefined"?void 0:HTMLButtonElement),nL=e=>jn(e,"HTMLMeterElement",typeof HTMLMeterElement=="undefined"?void 0:HTMLMeterElement),rL=e=>jn(e,"HTMLOutputElement",typeof HTMLOutputElement=="undefined"?void 0:HTMLOutputElement),oL=e=>jn(e,"HTMLProgressElement",typeof HTMLProgressElement=="undefined"?void 0:HTMLProgressElement),iL=e=>jn(e,"HTMLFormElement",typeof HTMLFormElement=="undefined"?void 0:HTMLFormElement),Ph=e=>jn(e,"HTMLIFrameElement",typeof HTMLIFrameElement=="undefined"?void 0:HTMLIFrameElement)});function u6(e){if(e.id.length>0)return`#${e.id}`;let t=e.getAttribute("class");return t!==null&&t.trim().length>0?`.${t.trim().split(/\s+/).join(".")}`:e.tagName.toLowerCase()}function aL(e){let t=e.ownerDocument.defaultView;if(t===null)return[];let n=[];for(let r=e;r!==null&&r!==e.ownerDocument.documentElement;r=r.parentElement){let o=t.getComputedStyle(r);for(let i of c6){let s=o.getPropertyValue(i);s.length>0&&s!==l6[i]&&n.push({on:u6(r),property:i,value:s})}}return n}function Mh(e){var o;let t=(o=e==null?void 0:e.overflow)!=null?o:"",[n="visible",r=n]=(t===""?"visible":t).split(/\s+/);return[e===null||e.overflowX===""?n:e.overflowX,e===null||e.overflowY===""?r:e.overflowY]}function gT(e,t){var K;if(t.clipBox!==void 0)return t.clipBox;let n=e.getBoundingClientRect(),r=t.style,o=Z=>Number.parseFloat(Z!=null?Z:"")||0,i=(Z,F)=>F===void 0||F===""||F==="none"||F==="hidden"?0:o(Z),s=lt(e)&&e.offsetWidth>0?n.width/e.offsetWidth:1,a=lt(e)&&e.offsetHeight>0?n.height/e.offsetHeight:1,l=lt(e)&&e.offsetWidth>0?n.left+e.clientLeft*s:n.left+i(r==null?void 0:r.borderLeftWidth,r==null?void 0:r.borderLeftStyle),u=lt(e)&&e.offsetHeight>0?n.top+e.clientTop*a:n.top+i(r==null?void 0:r.borderTopWidth,r==null?void 0:r.borderTopStyle),d=lt(e)&&e.offsetWidth>0?l+e.clientWidth*s:n.right-i(r==null?void 0:r.borderRightWidth,r==null?void 0:r.borderRightStyle),f=lt(e)&&e.offsetHeight>0?u+e.clientHeight*a:n.bottom-i(r==null?void 0:r.borderBottomWidth,r==null?void 0:r.borderBottomStyle),m=((K=r==null?void 0:r.overflowClipMargin)!=null?K:"").split(/\s+/),h=o(m.at(-1)),g=m.includes("border-box"),b=m.includes("content-box"),[x,w]=Mh(r),N=x==="clip"?(g?n.left:l+(b?o(r==null?void 0:r.paddingLeft)*s:0))-h*s:l,C=x==="clip"?(g?n.right:d-(b?o(r==null?void 0:r.paddingRight)*s:0))+h*s:d,D=w==="clip"?(g?n.top:u+(b?o(r==null?void 0:r.paddingTop)*a:0))-h*a:u,z=w==="clip"?(g?n.bottom:f-(b?o(r==null?void 0:r.paddingBottom)*a:0))+h*a:f;return t.clipBox={left:N,right:C,top:D,bottom:z,width:C-N,height:z-D},t.clipBox}function cL(e,t,n,r){let o=(u,d,f,m,h)=>{if(d>m&&u<h)return[u,d];let g=Math.min(f,h-m);return u>=h?[h-g,h]:[m,m+g]},[i,s]=n?o(e.left,e.right,e.width,t.left,t.right):[e.left,e.right],[a,l]=r?o(e.top,e.bottom,e.height,t.top,t.bottom):[e.top,e.bottom];return{left:i,right:s,top:a,bottom:l,width:s-i,height:l-a}}var c6,l6,ET=y(()=>{"use strict";jt();c6=["filter","opacity","transform","mix-blend-mode","backdrop-filter"],l6={filter:"none",opacity:"1",transform:"none","mix-blend-mode":"normal","backdrop-filter":"none"}});function d6(e){let t=e.parentElement;if(t===null)return!1;let n=t.closest(bT);if(n===null||n.hasAttribute(_T))return!1;let r=Array.from(n.children).find(o=>Uh===o.localName);return r===void 0||!r.contains(e)}function TT(e){return!e.ownerDocument.hidden||!("getAnimations"in e)?!1:e.getAnimations().some(t=>t.playState==="running"||t.pending)}function Nc(e){return f6.includes(e.tagName.toLowerCase())}function m6(e){return e.hasAttribute(p6)?!0:g6(e)}function g6(e){let t=e.ownerDocument.body;if(e.parentElement!==t)return!1;let r=Array.from(t.children).filter(i=>i!==e&&!h6.has(i.localName)&&!i.matches(Gi)).filter(i=>i.getAttribute("aria-hidden")!=="true"),o=r[0];return r.length===1&&o!==void 0&&E6(o)}function E6(e){var n,r;let t=e.matches(lL)?e:e.querySelector(lL);for(let o=t;o!==null;o=o.parentElement){let i=(r=(n=o.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(o))!=null?r:null;if(Hh(o,i))return!1;if(o===e)return!0}return!1}function Hh(e,t,n=!0){return!!(lt(e)&&e.hidden||d6(e)||t!==null&&(t.display==="none"||n&&mL(t)||Number.parseFloat(t.opacity||"1")===0&&!TT(e)||b6(t)))}function mL(e){return(e==null?void 0:e.visibility)==="hidden"||(e==null?void 0:e.visibility)==="collapse"}function b6(e){var u,d,f,m;let t=/^rect\((.*)\)$/.exec(e.getPropertyValue("clip").trim());if(t!==null&&(e.position==="absolute"||e.position==="fixed")){let[h,g,b,x]=((u=t[1])!=null?u:"").split(/[\s,]+/).map(Number.parseFloat);if(g!==void 0&&x!==void 0&&g<=x||b!==void 0&&h!==void 0&&b<=h)return!0}let n=/^inset\(([^)]*)\)$/.exec(e.getPropertyValue("clip-path").trim()),r=(m=(f=(d=n==null?void 0:n[1])==null?void 0:d.split(/\s+round\s/)[0])==null?void 0:f.trim().split(/\s+/))!=null?m:[],o=h=>h.endsWith("%")||Number.parseFloat(h)===0;if(r.length===0||!r.every(o))return!1;let[i=0,s=i,a=i,l=s]=r.map(Number.parseFloat);return i+a>=100||l+s>=100}function _6(e,t){return e.getAttribute("aria-hidden")==="true"&&!m6(e)?!0:Hh(e,t,!1)}function gL(e){var r,o;let t=!1,n=e;for(;n!==null;){n.getAttribute("aria-hidden")==="true"&&(t=!0);let i=(o=(r=n.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(n))!=null?o:null;if(Hh(n,i,n===e))return!1;n=Pr(n)}return t}function EL(e){var n,r;let t=e;for(;t!==null;){if(t.getAttribute("aria-hidden")==="true")return!1;let o=(r=(n=t.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(t))!=null?r:null;if(Hh(t,o,t===e))return!1;t=Pr(t)}return!0}function T6(e){if(typeof DOMMatrix=="undefined")return null;try{let t=e==null?void 0:e.transform;return t===void 0||t===""||t==="none"?new DOMMatrix:new DOMMatrix(t)}catch{return null}}function S6(e){return Number.isFinite(e.m33)&&0>e.m33}function A6(e,t){let n=[],r=!1;for(let i=e;i!==null;i=Pr(i)){let s=Nn(i,t).style;uL===(s==null?void 0:s.backfaceVisibility)&&(r=!0),n.push(i)}if(!r)return!1;let o=null;for(let i=n.length-1;i>=0;i-=1){let s=n[i];if(s===void 0)return!1;let a=Nn(s,t).style,l=T6(a);if(l===null)return!1;if(o=o===null?l:o.multiply(l),uL===(a==null?void 0:a.backfaceVisibility)&&S6(o))return!0}return!1}function ST(e){if(e===void 0)return new Map;let t=hL.get(e);return t===void 0&&(t=new Map,hL.set(e,t)),t}function w6(e,t){for(let n=Pr(e);n!==null;n=Pr(n)){let r=t.get(n);if(r!==void 0)return r.hidden}return!1}function Nn(e,t){var r,o,i;let n=t.get(e);if(n===void 0){if(w6(e,t))return n={hidden:!0,style:null,parent:null,clipX:!1,clipY:!1,scrollX:!1,scrollY:!1,hasClipping:!1},t.set(e,n),n;let s=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e))!=null?o:null;if(_6(e,s))return n={hidden:!0,style:s,parent:null,clipX:!1,clipY:!1,scrollX:!1,scrollY:!1,hasClipping:!1},t.set(e,n),n;let a=Pr(e),l=a===null?void 0:Nn(a,t),[u,d]=Mh(s),f=e.ownerDocument.documentElement,h=!(e===f||e===e.ownerDocument.body&&Mh(Nn(f,t).style).every(x=>x==="visible"))&&!bL.has((i=s==null?void 0:s.display)!=null?i:"")&&!(lt(e)&&(s==null?void 0:s.display)==="inline"),g=h&&dL.has(u),b=h&&dL.has(d);n={hidden:(l==null?void 0:l.hidden)===!0,style:s,parent:a,clipX:g,clipY:b,scrollX:h&&pL.has(u),scrollY:h&&pL.has(d),hasClipping:g||b||(l==null?void 0:l.hasClipping)===!0},t.set(e,n)}return n}function v6(e,t,n){for(let r=Nn(e,n).parent;r!==null;r=Nn(r,n).parent){let o=Nn(r,n).style;if(o===null||o.display==="contents")continue;if(!t&&o.position!==""&&o.position!=="static")return r;let i=!(o.display==="inline"&&lt(r)&&!y6.has(r.localName))&&o.display!=="table-column"&&o.display!=="table-column-group",s=a=>i||!_L.has(a);if([...fL].some(a=>{let l=o.getPropertyValue(a);return s(a)&&l!==""&&l!=="none"})||o.willChange.split(",").some(a=>fL.has(a.trim())&&s(a.trim()))||i&&!bL.has(o.display)&&(o.contain.split(/\s+/).some(a=>x6.has(a))||o.contentVisibility==="auto"))return r}return null}function TL(e,t,n,r=!1){let o=n,i=Nn(e,t);if(i.hidden)return null;if(i.parent===null||!Nn(i.parent,t).hasClipping)return o;let s;for(let a=e;a!==null;a=Nn(a,t).parent){let l=Nn(a,t);if(l.hidden)return null;a===s&&(s=void 0);let u=l.style;if(r&&a!==e&&s===void 0&&(l.scrollX||l.scrollY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0&&(o=cL(o,gT(a,l),l.scrollX,l.scrollY))),a!==e&&s===void 0&&(l.clipX||l.clipY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0)){let d=gT(a,l),f=l.clipX?Math.max(o.left,d.left):o.left,m=l.clipX?Math.min(o.right,d.right):o.right,h=l.clipY?Math.max(o.top,d.top):o.top,g=l.clipY?Math.min(o.bottom,d.bottom):o.bottom;if(m<=f||g<=h)return null;o={left:f,right:m,top:h,bottom:g,width:m-f,height:g-h}}s===void 0&&((u==null?void 0:u.position)==="absolute"||(u==null?void 0:u.position)==="fixed")&&(s=v6(a,(u==null?void 0:u.position)==="fixed",t))}return o}function Ki(e,t){if(!Ue(e,t))return!1;let n=e.ownerDocument.defaultView;if(n===null)return!1;let r=TL(e,ST(t),e.getBoundingClientRect());return r==null||r.width<=0||r.height<=0?!1:r.bottom>0&&r.right>0&&r.top<n.innerHeight&&r.left<n.innerWidth}function N6(e,t){let n=Nn(e,t);if(!n.clipX&&!n.clipY)return!1;let r=Array.from(e.getClientRects());return r.length>0&&r.every(o=>n.clipX&&o.width===0||n.clipY&&o.height===0||n.clipX&&n.clipY&&o.width<=1&&o.height<=1)}function AT(e,t){return Nn(e,ST(t)).hidden}function Ue(e,t){if(!e.isConnected)return!1;let n=t==null?void 0:t.get(e);if(n!==void 0)return n;let r=ST(t),o=!mL(Nn(e,r).style)&&TL(e,r,void 0,!0)!==null&&!N6(e,r)&&!A6(e,r);return t!==void 0&&t.set(e,o),o}var bT,_T,Uh,p6,lL,f6,h6,uL,dL,pL,bL,_L,fL,x6,y6,hL,Kn=y(()=>{"use strict";M();jt();Jo();ET();bT="details",_T="open",Uh="summary";p6="data-aria-hidden",lL='[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"], dialog[open], [aria-modal="true"]',f6=["script","style","template","noscript"];h6=new Set(["script","style","template","noscript","link","meta"]);uL="hidden";dL=new Set(["hidden","clip"]),pL=new Set(["auto","scroll"]),bL=new Set(["contents","table-row","table-row-group","table-header-group","table-footer-group","table-column","table-column-group"]),_L=new Set(["transform","translate","rotate","scale","perspective"]),fL=new Set([..._L,"filter","backdrop-filter"]),x6=new Set(["layout","paint","strict","content"]),y6=new Set(["img","video","audio","canvas","iframe","embed","object","input","textarea","select"]),hL=new WeakMap});function xL(e){yT=e}function wT(e){yL=e}function vL(){return yT}function NL(e){AL=e.join(",")}function yt(e){return e.closest(Wi)!==null}function ho(e){return yt(e)?!wL()||e.closest(O6)===null:!1}function Wn(e){return e!==null&&e.closest(Wi)!==null}function Ot(e){let n=[wL()?I6:Wi,R6,AL].filter(r=>r.length>0).join(",");return e.closest(n)!==null}function pd(e){return Ot(e)||yt(e)}function $6(e){var r;let t=e.querySelector(L6);if(t!==null)return{name:xT.VITE,host:t};for(let o of Array.from(e.querySelectorAll(C6))){let i=(r=o.shadowRoot)!=null?r:ta(o),s=(i!=null?i:o).querySelector(SL);if(s!==null&&Ue(s))return{name:xT.NEXT,host:o}}let n=e.querySelector(SL);if(!(n===null||!Ue(n)))return{name:xT.NEXT,host:n}}function RL(e){let t=e[0];if(t===void 0)return;let n=$6(t.ownerDocument);if(n!==void 0)return e.some(r=>!k6(r,n.host))?n.name:void 0}function k6(e,t){var n;for(let r=e;r!==null;){if(r===t)return!0;let o=r.getRootNode();r=(n=r.parentNode)!=null?n:o instanceof ShadowRoot?o.host:null}return!1}function Fh(e){for(let t of Array.from(e.querySelectorAll(D6)))if(t.closest(Wi)===null&&!(t instanceof HTMLElement&&(t.hidden||t.closest("[hidden]")!==null))&&!(t instanceof HTMLElement&&getComputedStyle(t).display==="none"))return!0;return!1}var Wi,R6,AL,yT,yL,wL,O6,I6,xT,C6,SL,L6,D6,it=y(()=>{"use strict";M();Jo();Kn();Wi=Gi,R6="[data-agentation],#__next-build-watcher,nextjs-portal,[data-nextjs-dialog],[data-nextjs-toast]",AL="",yT=!1;yL=!1;wL=()=>yT&&!yL;O6="[data-reticle-dock]";I6="[data-reticle-log],[data-reticle-harness-log],[data-reticle-chat-pill-text],[data-reticle-agent-said],[data-reticle-agent-note],[data-reticle-act-line]";xT={NEXT:"Next.js error dialog",VITE:"Vite error overlay"},C6="nextjs-portal",SL="[data-nextjs-dialog]",L6="vite-error-overlay";D6='dialog[open], [aria-modal="true"]'});function Zi(){return Bh}function Zn(){return`[${Bh}]`}function we(e){return e.getAttribute(Bh)}function kL(e){Bh=e!==void 0&&yI.test(e)?e:Zs}var Bh,It=y(()=>{"use strict";M();Bh=Zs});function Kh(e){return H6.has(e)||e.startsWith(Gh)||e.startsWith(Vh)||e.startsWith(jh)}var wt,Gh,Vh,jh,H6,mo=y(()=>{"use strict";M();wt={SESSION:gO,REF_BASE:"__reticle_ref_base",PRESENTER_LOG:"reticle-presenter-log",PRESENTER_LOG_OWNER:"reticle-presenter-log-owner",PRESENTER_SETTINGS:"reticle-presenter-settings",PRESENTER_MINIMISED:"reticle-presenter-minimised",PRESENTER_OPEN:"reticle-presenter-open",PRESENTER_VIEW:"reticle-presenter-view",CAROUSEL_DISMISSED:"reticle.carousel.dismissed",ANNOTATION_HISTORY:"reticle.annotations.history.v1"},Gh="reticle.tour.seen.",Vh="reticle.harness.persona.",jh="reticle.impact.seen.",H6=new Set(Object.values(wt))});function Ur(e){let t=W.MAX_REF_LENGTH;return t>=e.length?e:`${e.slice(0,t)}${F6}`}function V6(e){try{let t=e==null?void 0:e.getItem(zL),n=t==null?Number.NaN:Number(t);return Number.isSafeInteger(n)&&n>0?n:0}catch{return 0}}var DL,F6,vT,B6,zL,G6,hd,Ct,md,ei,Rc,Oc,Ic,ti,PL,NT,ML,fd,ee,ut=y(()=>{"use strict";M();mo();DL=1e4,F6="\u2026",vT="e";B6=1e3,zL=wt.REF_BASE,G6=100;fd=class{constructor(t=()=>globalThis.sessionStorage){A(this,ti);A(this,hd,new WeakMap);A(this,Ct,new Map);A(this,md);A(this,ei,0);A(this,Rc,0);A(this,Oc,0);A(this,Ic,0);E(this,md,t)}get size(){return c(this,Ct).size}markEdited(){E(this,Ic,c(this,ei))}mintedBeforeLastEdit(t){if(c(this,Ic)===0||!t.startsWith(vT))return!1;let n=Number(t.slice(vT.length));return Number.isSafeInteger(n)&&n>0&&n<=c(this,Ic)}refFor(t){let n=c(this,hd).get(t);if(n!==void 0){let o=c(this,Ct).get(n);return c(this,Ct).delete(n),c(this,Ct).set(n,o!=null?o:new WeakRef(t)),n}c(this,ei)>=c(this,Rc)&&S(this,ti,PL).call(this),E(this,ei,c(this,ei)+1);let r=M0(`${vT}${String(c(this,ei))}`);return c(this,hd).set(t,r),c(this,Ct).set(r,new WeakRef(t)),E(this,Oc,c(this,Oc)+1),c(this,Oc)>=B6?(E(this,Oc,0),S(this,ti,ML).call(this)):c(this,Ct).size>DL&&S(this,ti,NT).call(this),r}resolve(t){let n=c(this,Ct).get(t);if(n===void 0)return null;let r=n.deref();return r===void 0||!r.isConnected?(c(this,Ct).delete(t),null):(c(this,Ct).delete(t),c(this,Ct).set(t,n),r)}};hd=new WeakMap,Ct=new WeakMap,md=new WeakMap,ei=new WeakMap,Rc=new WeakMap,Oc=new WeakMap,Ic=new WeakMap,ti=new WeakSet,PL=function(){let t;try{t=c(this,md).call(this)}catch{t=void 0}let n=Math.max(V6(t),c(this,ei));E(this,Rc,n+G6);try{t==null||t.setItem(zL,String(c(this,Rc)))}catch{}E(this,ei,n)},NT=function(){let t=c(this,Ct).keys().next();t.done!==!0&&c(this,Ct).delete(t.value)},ML=function(){for(let[t,n]of c(this,Ct)){let r=n.deref();(r===void 0||!r.isConnected)&&c(this,Ct).delete(t)}for(;c(this,Ct).size>DL;)S(this,ti,NT).call(this)};ee=new fd});function UL(e){var n;return((n=e.match(/-?\d*\.?\d+(?:e[-+]?\d+)?|NaN|Infinity|-Infinity/gi))!=null?n:[]).map(r=>Number(r))}function W6(e){return/NaN|Infinity/i.test(e)?!0:UL(e).some(t=>!Number.isFinite(t))}function Z6(e){let t=UL(e).filter(i=>Number.isFinite(i));if(t.length===0)return!0;let n=t.filter((i,s)=>s%2===0),r=t.filter((i,s)=>s%2===1),o=i=>i.every(s=>s===i[0]);return n.length>1&&o(n)&&o(r)}function Wh(e){let t=[],n=0;for(let o of j6)for(let i of Array.from(e.querySelectorAll(o)))for(let s of K6){let a=i.getAttribute(s);if(a===null)continue;n+=1;let l=a.length>120?`${a.slice(0,120)}\u2026`:a;W6(a)?t.push({kind:"non-finite-coordinates",tag:o,attr:s,sample:l}):a.trim().length===0?t.push({kind:"empty-geometry",tag:o,attr:s,sample:l}):Z6(a)&&t.push({kind:"degenerate-geometry",tag:o,attr:s,sample:l})}let r=e.querySelectorAll("canvas").length>0;return{examined:n,findings:t,canvas:r}}function HL(e,t){var i,s,a,l,u,d,f;let n=t,r=(s=(i=n.Chart)==null?void 0:i.getChart)==null?void 0:s.call(i,e);if(r!=null)return{library:"chartjs",data:(a=r.data)!=null?a:null};let o=(u=(l=n.echarts)==null?void 0:l.getInstanceByDom)==null?void 0:u.call(l,e);return o!=null?{library:"echarts",data:(f=(d=o.getOption)==null?void 0:d.call(o))!=null?f:null}:null}var j6,K6,RT=y(()=>{"use strict";j6=["path","polyline","polygon"],K6=["d","points"]});function Lc(e,t,n){let r=Math.max(0,Math.min(n,t.remainingCharacters));if(e.length<=r)return t.remainingCharacters-=e.length,e;t.truncatedValues+=1;let o=r<=gd.length?gd.slice(0,r):`${e.slice(0,r-gd.length)}${gd}`;return t.remainingCharacters-=o.length,o}function tK(e){var t;try{let n=(t=Q6.exec(Object.prototype.toString.call(e)))==null?void 0:t[1];if(X6===n)return Y6;if(q6===n)return FL;if(n!==void 0&&J6!==n){let r=e;if(typeof r.nodeType=="number"&&typeof r.nodeName=="string")return`[${n}]`}if(typeof e.then=="function")return FL}catch{return}}function Ed(e,t,n,r){if(r!==void 0&&St(r))return Ne;if(n>W.MAX_SERIALIZE_DEPTH||t.nodes>=Cc)return t.truncatedValues+=1,gd;if(t.nodes+=1,e===null||typeof e=="boolean")return e;if(typeof e=="string")return Lc(po(e),t,(r==null?void 0:r.toLowerCase())==="error"?W.MAX_ERROR_LENGTH:W.MAX_STRING_LENGTH);if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="bigint")return e.toString();if(typeof e=="undefined"||typeof e=="function"||typeof e=="symbol")return $c;let o=tK(e);if(o!==void 0)return t.truncatedValues+=1,Lc(o,t,OT);if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Map){let i=Object.create(null),s=0;for(let[a,l]of e){if(t.nodes>=Cc||s>=W.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-s;break}let u=Lc(typeof a=="string"?a:String(a),t,OT),d=Ed(l,t,n+1,u);d!==$c&&(i[u]=d),s+=1}return i}if(e instanceof Set){let i=[],s=0;for(let a of e){if(t.nodes>=Cc||s>=W.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-s;break}let l=Ed(a,t,n+1);i.push(l===$c?null:l),s+=1}return i}if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let i=e.length,s=[],a=0;for(let l of e){if(t.nodes>=Cc||a>=W.MAX_COLLECTION_ITEMS){t.droppedItems+=i-a;break}s.push(l),t.nodes+=1,a+=1}return s}if(e instanceof Error)return{name:Lc(e.name,t,256),message:Lc(e.message,t,W.MAX_ERROR_LENGTH)};if(t.seen.has(e))return"[CIRCULAR]";t.seen.add(e);try{if(Array.isArray(e)){let u=[],d=e.slice(0,W.MAX_COLLECTION_ITEMS);t.droppedItems+=Math.max(0,e.length-d.length);for(let f of d){if(t.nodes>=Cc){t.droppedItems+=1;continue}let m=Ed(f,t,n+1);if(t.nodes>=Cc){t.droppedItems+=1;continue}u.push(m===$c?null:m)}return u}let i=Object.create(null),s=Object.keys(e),a=s.slice(0,W.MAX_OBJECT_KEYS);t.droppedItems+=Math.max(0,s.length-a.length);let l=a.map(u=>{try{let d=e[u];return{key:u,value:d,scalar:d===null||typeof d!="object",ok:!0}}catch{return{key:u,value:void 0,scalar:!0,ok:!1}}});for(let u of[...l.filter(d=>d.scalar),...l.filter(d=>!d.scalar)]){let d=Lc(u.key,t,OT);if(!u.ok){i[d]=IT;continue}try{let f=Ed(u.value,t,n+1,u.key);f!==$c&&(i[d]=f)}catch{i[d]=IT}}return i}finally{t.seen.delete(e)}}function bd(e){return na(e).value}function na(e){let t={seen:new WeakSet,remainingCharacters:eK,nodes:0,droppedItems:0,truncatedValues:0},n=Ed(e,t,0),r=n===$c?null:n;if(t.droppedItems===0&&t.truncatedValues===0)return{value:r};let o=[];return t.droppedItems>0&&o.push(`${t.droppedItems} item(s) dropped`),t.truncatedValues>0&&o.push(`${t.truncatedValues} value(s) truncated`),{value:r,truncation:{droppedItems:t.droppedItems,truncatedValues:t.truncatedValues,note:`partial \u2014 ${o.join(", ")}; this is NOT the whole value. Scope the read with \`path\`/\`depth\` to see the rest.`}}}function go(e){try{return JSON.stringify(bd(e))}catch{return JSON.stringify(IT)}}var gd,IT,$c,FL,Y6,X6,q6,J6,Q6,OT,eK,Cc,hr=y(()=>{"use strict";M();gd="[TRUNCATED]",IT="[UNSERIALIZABLE]",$c=Symbol("omit"),FL="[Promise]",Y6="[Window]",X6="Window",q6="Promise",J6="Object",Q6=/^\[object (\w+)\]$/,OT=256,eK=Math.floor(W.MAX_MESSAGE_BYTES/4),Cc=W.MAX_COLLECTION_ITEMS*5});function nK(e){if(e===null)return;let t=/^(.*):(\d+):(\d+)$/.exec(e);if(t===null)return;let n=t[1],r=Number(t[2]);if(!(n===void 0||n.length===0||!Number.isFinite(r)))return{file:n,line:r}}function _d(e){let t=e.closest(`[${CT}]`);return t!==null?nK(t.getAttribute(CT)):void 0}function Zh(e,t){return t!==void 0?{file:t.file,line:t.line}:_d(e)}function BL(e){return e.querySelector(`[${CT}]`)!==null}function Yh(e){return e===void 0?void 0:`${e.file}:${String(e.line)}`}var CT,Td=y(()=>{"use strict";M();CT=Tc});function sK(e){let t=e.type.toLowerCase();return t==="search"?"searchbox":oK.has(t)?"textbox":t==="checkbox"?"checkbox":t==="radio"?"radio":t==="range"?"slider":t==="number"?"spinbutton":iK.has(t)?"button":"textbox"}function aK(e){let t=e.getAttribute("aria-label");if(t!==null&&t.trim().length>0)return!0;let n=e.getAttribute("aria-labelledby");if(n!==null&&n.trim().length>0)return!0;let r=e.getAttribute("title");return r!==null&&r.trim().length>0}function ve(e){var r;let t=e.getAttribute("role");if(t!==null&&t.trim().length>0)return t.trim();switch(e.tagName.toLowerCase()){case"a":return e.hasAttribute("href")?"link":"generic";case"button":return"button";case"input":return sK(e);case"textarea":return"textbox";case"select":return e.multiple?"listbox":"combobox";case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"heading";case"ul":case"ol":return"list";case"li":return"listitem";case"nav":return"navigation";case"main":return"main";case"aside":return"complementary";case"dialog":return"dialog";case"img":return"img";case"table":return"table";case"tr":return"row";case"tbody":case"thead":case"tfoot":return"rowgroup";case"td":return e.closest('[role~="grid"], [role~="treegrid"]')!==null?"gridcell":"cell";case"th":{let o=((r=e.getAttribute("scope"))!=null?r:"").toLowerCase();return o==="row"||o==="rowgroup"?"rowheader":"columnheader"}case"option":return"option";case"optgroup":return"group";case"section":return aK(e)?"region":"generic";case"article":return"article";case"fieldset":return"group";case"details":return"group";case"summary":return"button";case"progress":return"progressbar";case"meter":return"meter";case"output":return"status";case"hr":return"separator";case"area":return e.hasAttribute("href")?"link":"generic";case"form":return"form";case"p":return"paragraph";case"header":return"banner";case"footer":return"contentinfo";default:return"generic"}}function Yi(e){return e.replace(/\s+/g," ").trim()}function cK(e){let t=e.getAttribute("aria-labelledby");if(t===null)return null;let n=[];for(let o of t.split(/\s+/)){let i=e.ownerDocument.getElementById(o);i!==null&&n.push(Yi(ra(i)))}let r=n.join(" ").trim();return r.length>0?r:null}function ra(e){var o;if(e.nodeType===Node.TEXT_NODE)return(o=e.textContent)!=null?o:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let t=e;if(t.getAttribute("aria-hidden")==="true"||Nc(t))return"";if(mT(t)){let i=t.getAttribute("alt");return i===null?"":i}let n="",r=!1;for(let i of t.childNodes){let s=ra(i);if(s.length===0)continue;let a=Node.ELEMENT_NODE===i.nodeType;n.length>0&&(a||r)&&(n+=" "),n+=s,r=a}return n}function be(e){let t=cK(e);if(t!==null)return t;let n=e.getAttribute("aria-label");if(n!==null&&n.trim().length>0)return n.trim();if(mT(e)){let i=e.getAttribute("alt");if(i!==null)return i.trim()}if(Fe(e)||Vt(e)||Mr(e)||dd(e)||nL(e)||rL(e)||oL(e)){let i=e.labels;if(i!==null&&i.length>0){let s=[...i].map(a=>Yi(ra(a))).join(" ").trim();if(s.length>0)return s}}if(e.tagName.toLowerCase()==="fieldset"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="legend");if(i!==void 0){let s=Yi(ra(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="table"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="caption");if(i!==void 0){let s=Yi(ra(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="figure"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="figcaption");if(i!==void 0){let s=Yi(ra(i));if(s.length>0)return s}}if(Fe(e)||Vt(e)||Mr(e)){if(Fe(e)){let i=e.type.toLowerCase();if(i==="submit"||i==="button"||i==="reset"){let s=Yi(e.value);if(s.length>0)return s}}if(Fe(e)||Vt(e)){let i=e.getAttribute("placeholder");if(i!==null&&i.trim().length>0)return i.trim()}}if(rK.has(ve(e))){let i=Yi(ra(e));if(i.length>0)return i}let o=e.getAttribute("title");return o!==null&&o.trim().length>0?o.trim():""}function Xh(e,t){let n=e.getAttribute(t);if(n!==null)return n==="true"}function ni(e,t=Ue(e)){let n=[ge.PRESENT];n.push(t?ge.VISIBLE:ge.HIDDEN);let r=e.matches(":disabled")||Xh(e,"aria-disabled")===!0;return n.push(r?ge.DISABLED:ge.ENABLED),(Fe(e)&&(e.type==="checkbox"||e.type==="radio")&&e.checked||Xh(e,"aria-checked")===!0)&&n.push(ge.CHECKED),(Xh(e,"aria-expanded")===!0||lK(e))&&n.push(ge.EXPANDED),Xh(e,"aria-pressed")===!0&&n.push(ge.PRESSED),e.ownerDocument.activeElement===e&&n.push(ge.FOCUSED),n}function lK(e){let t=e.parentElement;return Uh!==e.localName||t===null||bT!==t.localName?!1:Array.from(t.children).find(r=>Uh===r.localName)===e&&t.hasAttribute(_T)}function pn(e){var o,i,s,a,l;if(!Fe(e)&&!Vt(e)&&!Mr(e))return!1;let t=(o=e.getAttribute("autocomplete"))!=null?o:"",n=[(i=e.getAttribute("name"))!=null?i:"",e.id,(s=we(e))!=null?s:"",(a=e.getAttribute(Zs))!=null?a:"",(l=e.getAttribute("aria-label"))!=null?l:""],r=uK.test(t);return Fe(e)&&e.type.toLowerCase()==="password"||r||n.some(St)}function LT(e){if(Fe(e)||Vt(e)||Mr(e))return pn(e)?e.value===""?"":Ne:e.value;let t=e.getAttribute("aria-valuenow");return t!=null?t:void 0}function dK(e,t){var o;let n=Yi((o=e.textContent)!=null?o:""),r=t?W.MAX_FULL_TEXT:W.MAX_DESCRIBED_TEXT;return n.length>r?`${n.slice(0,r)}\u2026`:n}function Eo(e,t,n=!1){let r=LT(e),o=dK(e,n),i=be(e),s=Ue(e,t),a={ref:ee.refFor(e),role:ve(e),name:i,states:ni(e,s),visible:s};r!==void 0&&r.length>0&&(a.value=r),o.length>0&&(n||o!==i)&&(a.text=o);let l=Yh(_d(e));if(l!==void 0&&(a.source=l),e.querySelector("path, polyline, polygon")!==null){let u=Wh(e).findings;u.length>0&&(a.chart=u)}return a}var rK,oK,iK,uK,gt=y(()=>{"use strict";It();M();jt();ut();RT();hr();Td();Kn();rK=new Set(["button","link","heading","option","listitem","cell","checkbox","columnheader","radio","row","rowheader","tab","tooltip","menuitem","menuitemcheckbox","menuitemradio","treeitem","gridcell","switch","status","alert"]),oK=new Set(["text","email","tel","url","password",""]),iK=new Set(["submit","button","reset","file","image"]);uK=/\b(cc-|current-password|new-password|one-time-code)/i});function t$(e){zc.some(t=>t.name===e.name)||zc.push(e)}function mr(e){for(let t of zc){let n;try{n=t.identify(e)}catch{continue}if(n!=null)return n}return null}function Jh(e){for(let t of zc){if(t.readState===void 0)continue;let n=t.readState(e);if(n!==void 0)return n}}function Qh(e){for(let t of zc)if(t.hasHoverHandlers!==void 0&&t.hasHoverHandlers(e))return!0;return!1}function yd(){return zc.map(e=>e.name)}var zT,e$,zc,ri=y(()=>{"use strict";zT=globalThis,zc=(e$=zT.__reticleAdapters)!=null?e$:zT.__reticleAdapters=[]});function h$(e=document.body){let t=[],n=(o,i,s)=>{t.length<MT&&t.push({kind:o,ref:ee.refFor(i),what:a$(i),...s})};for(let o of e.querySelectorAll("*")){if(t.length>=MT)break;if(Ot(o)||IK(o)==="")continue;let i=s$(o);if(i===null||!f$(i.left+i.width/2,i.top+i.height/2,o))continue;let s=CK(o);s!==null&&n(PT.CLIPPED,o,s);let a=kK(o);a!==null&&a.ratio<a.min&&n(PT.CONTRAST,o,{detail:`contrast ${a.ratio.toFixed(2)}:1, under ${String(a.min)}:1`,value:Math.round(a.ratio*100)/100,bound:a.min})}let r=[...e.querySelectorAll(OK)].filter(o=>!Ot(o)).slice(0,AK).flatMap(o=>{let i=s$(o);return i===null?[]:[{el:o,rect:i}]});for(let[o,i]of r.entries())for(let s of r.slice(o+1)){if(t.length>=MT)return t;if(i.el.contains(s.el)||s.el.contains(i.el))continue;let a=DK(i.rect,s.rect);a>=r$&&u$(i.el,i.rect)&&u$(s.el,s.rect)&&n(PT.OVERLAP,i.el,{detail:`drawn over "${a$(s.el)}" (${ee.refFor(s.el)})`,value:Math.round(a*100)/100,bound:r$})}return t}var PT,MT,AK,xK,n$,r$,yK,wK,vK,NK,RK,OK,o$,i$,s$,a$,IK,c$,CK,LK,d$,l$,p$,$K,kK,f$,Xi,u$,DK,m$=y(()=>{"use strict";ut();gt();it();PT={CLIPPED:"clipped",OVERLAP:"overlap",CONTRAST:"contrast"},MT=20,AK=300,xK=60,n$=1,r$=.25,yK=4.5,wK=3,vK=24,NK=18.66,RK=700,OK='button, a[href], input:not([type="hidden"]), select, textarea, [role="button"], [role="link"], [role="tab"], [role="menuitem"]',o$=/rect\(\s*0(px)?[\s,]+0(px)?[\s,]+0(px)?[\s,]+0(px)?\s*\)|inset\(\s*50%/,i$=4,s$=e=>{let t=e.getBoundingClientRect();if(t.width<i$||t.height<i$)return null;let n=getComputedStyle(e);return n.visibility==="hidden"||n.display==="none"||n.opacity==="0"||o$.test(n.clip)||o$.test(n.clipPath)?null:t},a$=e=>{var t;return(be(e)||((t=e.textContent)!=null?t:"")).replace(/\s+/g," ").trim().slice(0,xK)},IK=e=>[...e.childNodes].filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("").trim(),c$=new Set(["hidden","clip"]),CK=e=>{let t=getComputedStyle(e),n=e.scrollWidth>e.clientWidth+n$&&c$.has(t.overflowX),r=e.scrollHeight>e.clientHeight+n$&&c$.has(t.overflowY);return t.textOverflow==="ellipsis"||t.getPropertyValue("-webkit-line-clamp")!==""&&t.getPropertyValue("-webkit-line-clamp")!=="none"||!n&&!r?null:n?{detail:`${String(e.scrollWidth)}px of text in a ${String(e.clientWidth)}px box, cut with no ellipsis`,value:e.scrollWidth,bound:e.clientWidth}:{detail:`${String(e.scrollHeight)}px of text in a ${String(e.clientHeight)}px box, cut with no line clamp`,value:e.scrollHeight,bound:e.clientHeight}},LK=/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+%?))?\s*\)/,d$=e=>{let t=LK.exec(e);if(t===null)return null;let n=t[4],r=1;return n!==void 0&&(r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n)),[Number(t[1]),Number(t[2]),Number(t[3]),r]},l$=([e,t,n])=>{let r=o=>{let i=o/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)},p$=(e,t)=>{let n=e[3];return[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n),1]},$K=e=>{let t=[];for(let n=e;n!==null;n=n.parentElement){let r=getComputedStyle(n);if(r.backgroundImage!=="none"&&r.backgroundImage!=="")return null;let o=d$(r.backgroundColor);if(o!==null&&o[3]>0&&(t.push(o),o[3]===1))break}return t.reduceRight((n,r)=>p$(r,n),[255,255,255,1])},kK=e=>{let t=getComputedStyle(e),n=d$(t.color),r=$K(e);if(n===null||r===null)return null;let o=p$(n,r),[i,s]=[l$(o),l$(r)].sort((d,f)=>f-d),a=Number.parseFloat(t.fontSize),l=Number.parseInt(t.fontWeight,10),u=a>=vK||a>=NK&&l>=RK;return{ratio:(i+.05)/(s+.05),min:u?wK:yK}},f$=(e,t,...n)=>{if(typeof document.elementFromPoint!="function")return!0;let r=document.elementFromPoint(e,t);return r!==null&&n.some(o=>o===r||o.contains(r))},Xi=2,u$=(e,t)=>[[t.left+t.width/2,t.top+t.height/2],[t.left+Xi,t.top+Xi],[t.right-Xi,t.top+Xi],[t.left+Xi,t.bottom-Xi],[t.right-Xi,t.bottom-Xi]].some(([n=0,r=0])=>f$(n,r,e)),DK=(e,t)=>{let n=Math.min(e.right,t.right)-Math.max(e.left,t.left),r=Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top);return n<=0||r<=0?0:n*r/Math.min(e.width*e.height,t.width*t.height)}});function g$(e){var r;let t=[],n=Array.from(e.querySelectorAll("svg")).filter(o=>{var i;return((i=o.parentElement)==null?void 0:i.closest("svg"))===null});for(let o of n){let i=o.getBoundingClientRect();if(i.width<120||i.height<60)continue;let s=Array.from(o.querySelectorAll(zK.join(","))).filter(d=>d.closest(PK)===null),a=[];for(let d of s){let f=d.getBoundingClientRect();if(f.width===0&&f.height===0)continue;let m=em(f.left-i.left,i.width),h=em(f.top-i.top,i.height);a.push(`${d.tagName.toLowerCase()} ${m} ${h} ${em(f.width,i.width)} ${em(f.height,i.height)}`)}if(a.length===0)continue;let l=(r=o.getAttribute("aria-label"))!=null?r:`chart ${String(t.length+1)}`,u=a.slice(0,120);t.push(a.length>120?{label:l,shapes:u,cut:a.length-120}:{label:l,shapes:u})}return t}var zK,PK,em,E$=y(()=>{"use strict";zK=["rect","circle","ellipse","line","polyline","polygon","path"],PK="defs, clipPath, mask, pattern, marker, symbol",em=(e,t)=>{let n=Math.round(e/t*1e3)/10;return Object.is(n,-0)?"0":String(n)}});function tm(){return pr(location.href)}function nm(e=!0){return pr(`${location.pathname}${location.search}${e?location.hash:""}`)}var wd=y(()=>{"use strict";M()});function S$(e,t){if(UK.has(t))return!0;let n=e.getAttribute("aria-live");return n!==null&&n!=="off"}function HK(e){let t=A$(e),n=(t.own?t.text:"").replace(/\s+/g," ").trim();return n.length>b$?`${n.slice(0,b$)}\u2026`:n}function FK(e,t){return 0<t.length&&_$(e)===_$(t)?"":e}function A$(e){var r,o;let t="",n=!1;for(let i of e.childNodes)if(i.nodeType===3)t+=(r=i.textContent)!=null?r:"",n||(n=0<((o=i.textContent)!=null?o:"").trim().length);else if(dn(i)&&y$(i)){let s=A$(i);t+=s.text,n||(n=s.own)}else dn(i)&&x$(i)&&qi.has(ve(i))&&(t+=be(i));return{text:t,own:n}}function x$(e){let t=e.ownerDocument.defaultView,n=e.parentElement;if(t===null||n===null)return!1;let r=t.getComputedStyle(n).display;return r.includes("flex")||r.includes("grid")?!1:t.getComputedStyle(e).display==="inline"}function y$(e){if(v$(e)||!x$(e))return!1;let t=ve(e);return!qi.has(t)&&!S$(e,t)&&be(e).length===0}function w$(e){return e.getAttribute("aria-hidden")==="true"?!0:e instanceof HTMLElement&&e.hidden}function v$(e){return MK.has(e.tagName.toLowerCase())||Ot(e)?!0:w$(e)}function GK(e){let t=ni(e).filter(n=>n===ge.DISABLED||n===ge.CHECKED||n===ge.EXPANDED||n===ge.PRESSED||n===ge.FOCUSED);return t.length>0?` [${t.join(",")}]`:""}function VK(e,t,n,r,o,i="",s=!1){let a=" ".repeat(t),l=LT(e),u=r,d=u.length>0?` "${u}"`:"",f=qi.has(n)||u.length>0?` (ref=${ee.refFor(e)})`:"",m=l!==void 0&&l.length>0?` [value="${l}"]`:"",h=o.length>0?` [${o}]`:"",g=i.length>0?` [text="${i}"]`:"",b=s?we(e):null,x=s?mr(e):null,w=b===null?x==null?void 0:x.componentStack[0]:void 0,N=x==null?void 0:x.source,C="";b!==null?C=` [testid=${b}]`:w!==void 0&&(C=` [component=${w}]`);let D=`${C}${N===void 0?"":` [src=${N.file}:${String(N.line)}]`}`;return`${a}- ${n}${d}${f}${m}${g}${h}${GK(e)}${D}`}function jK(e,t){return`${" ".repeat(e)}- text "${t}"`}function KK(e){if(e===null)return"";let t=e.display;if(t==="grid"||t==="inline-grid"){let n=e.gridTemplateColumns;return n!==""&&n!=="none"?`grid-cols:${n}`:"grid"}return""}function T$(e,t){for(let n of e){if(t.unread.length>=BK){t.unreadOverflow=!0;return}t.unread.push(ee.refFor(n))}}function WK(e){var r,o;let t=[...e.children],n=(r=e.shadowRoot)!=null?r:ta(e);if(n!==null&&t.push(...n.children),Ph(e))try{let i=(o=e.contentDocument)==null?void 0:o.body;i!=null&&t.push(...i.children)}catch{}return t}function UT(e,t,n,r){if(!(n.throughOverlay===!0&&N$(e)&&!Ot(e)&&!(e instanceof HTMLElement&&e.hidden))&&v$(e)){w$(e)&&(n.hiddenSkipped+=1);return}let i=e.ownerDocument.defaultView,s=i!==null?i.getComputedStyle(e):null;if(s!==null&&s.display==="none"){n.hiddenSkipped+=1;return}if(s!==null&&s.display==="inline"&&!r&&y$(e)){rm(e,t,n,r);return}let a=ve(e),l=be(e),u=qi.has(a),d=r||S$(e,a),f=n.mode===gc.INTERACTIVE&&!d,m=f||u&&0<l.length?"":HK(e),h=FK(m,l),g=f?"":KK(s),b=u,x=b||a!=="generic"||l.length>0||h.length>0||g.length>0,w=f?b:x;f&&!w&&x&&(n.leanSkipped+=1),w?(n.nodes+=1,n.lines.push(a==="generic"&&l.length===0&&h.length>0&&g.length===0?jK(t,h):VK(e,t,a,l,g,h,n.ids===!0)),rm(e,t+1,n,d)):rm(e,t,n,d)}function rm(e,t,n,r=!1){let o=WK(e);if(t>n.maxDepth){o.length>0&&(n.truncated=!0,T$([e],n));return}for(let i=0;i<o.length;i+=1){if(n.nodes>=n.maxNodes){n.truncated=!0,T$(o.slice(i),n);return}let s=o[i];s!==void 0&&UT(s,t,n,r)}}function ZK(e){let t=e.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n=[];for(let r of t)yt(r)||Ue(r)&&n.push(be(r)||"(unnamed dialog)");return n}function XK(e){if(e!==document.body)return;let t=document.body.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n,r;for(let s of t)if(!yt(s)){if(Ue(s)){n=s;break}r!=null||(r=s)}if(n!=null||(n=r),n===void 0)return;let o=n,i=Array.from(document.body.children).filter(s=>!s.contains(o));if(i.length!==0&&i.every(s=>s.getAttribute("aria-hidden")==="true"))return"the rest of the page is aria-hidden behind an open overlay (a focus-trap modal), so this snapshot shows only the overlay. If it will not close its cleanup may be stuck on a throttled tab: dismiss the overlay, or snapshot with { scope } inside it."}function qK(e){let t=ZK(e),n=XK(e);return{route:nm(),title:document.title,...t.length>0?{visibleDialogs:t}:{},...n!==void 0?{overlayHidingPage:n}:{}}}function om(e={}){var l,u,d,f;let t=(l=e.mode)!=null?l:gc.FULL,n=(u=e.scope)==null?void 0:u.trim(),r=document.body;if(n!==void 0&&n!==""&&(r=ee.resolve(n),r===null))try{r=document.querySelector(n)}catch{}let o=r===null,i=r!=null?r:document.body,s=qK(i);if(o)return{tree:"",status:s,nodes:0,truncated:!1,scopeMissing:!0};if(t===gc.STATUS)return{tree:"",status:s,nodes:0,truncated:!1};let a={lines:[],nodes:0,leanSkipped:0,hiddenSkipped:0,truncated:!1,mode:t,maxNodes:(d=e.maxNodes)!=null?d:400,maxDepth:(f=e.maxDepth)!=null?f:20,unread:[],unreadOverflow:!1,...e.ids===!0?{ids:!0}:{}};if(e.includeRoot===!0?UT(i,0,a,!1):rm(i,0,a),a.nodes===0&&i===document.body){a.throughOverlay=!0;for(let m of Array.from(i.children))N$(m)&&m.querySelector(YK)!==null&&UT(m,0,a,!1);a.throughOverlay=!1}return{tree:a.lines.join(`
57
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let f=d[1];if(t===d[0]){i(d);continue}if(e.external){let h=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&h){i(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){i(d);continue}if(f.cycle){i(d);continue}f.count>1&&e.reused==="ref"&&i(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function KN(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;KN(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function jN(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function wb(e){var i,s,a,l;let t=[];for(let u of e){if(typeof u!="object"||u.type!=="object")return null;for(let d in u)if(!WN.has(d))return null;t.push(u)}let n={},r=new Set;for(let u of t){for(let d in u.properties){if(Object.prototype.hasOwnProperty.call(n,d))continue;let f=[];for(let h of t){let g=(s=(i=h.properties)==null?void 0:i[d])!=null?s:jN(h);g!=null&&(f.some(b=>JSON.stringify(b)===JSON.stringify(g))||f.push(g))}let m=f.length===1?f[0]:(a=wb(f))!=null?a:{allOf:f};zn(n,d,m)}for(let d of(l=u.required)!=null?l:[])r.add(d)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(u=>u.additionalProperties===!1))o.additionalProperties=!1;else{let u=[];for(let d of t){let f=jN(d);f&&!u.some(m=>JSON.stringify(m)===JSON.stringify(f))&&u.push(f)}u.length===1?o.additionalProperties=u[0]:u.length>1&&(o.additionalProperties={allOf:u})}return o}function $F(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of WN)if(o in e)return;let n=t.filter(o=>VN.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=wb(t);else{let o=n[0],i=VN.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;let s=t.filter(l=>l!==o),a=o[i].map(l=>wb([...s,l]));if(a.some(l=>!l))return;r={[i]:a}}r&&(delete e.allOf,Pu(e,r))}function Rb(e,t){var a,l,u,d,f,m,h,g;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=b=>{var z,K,Z;let x=e.seen.get(b);if(x.ref===null)return;let w=(z=x.def)!=null?z:x.schema,N={...w},C=x.ref;if(x.ref=null,C){r(C);let F=e.seen.get(C),J=F.schema;if(J.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(w.allOf=(K=w.allOf)!=null?K:[],w.allOf.push(J)):Pu(w,J),Pu(w,N),b._zod.parent===C)for(let q in w)q==="$ref"||q==="allOf"||q in N||delete w[q];if(J.$ref&&F.def)for(let q in w)q==="$ref"||q==="allOf"||q in F.def&&JSON.stringify(w[q])===JSON.stringify(F.def[q])&&delete w[q]}let D=b._zod.parent;if(D&&D!==C){r(D);let F=e.seen.get(D);if(F!=null&&F.schema.$ref&&(w.$ref=F.schema.$ref,F.def))for(let J in w)J==="$ref"||J==="allOf"||J in F.def&&JSON.stringify(w[J])===JSON.stringify(F.def[J])&&delete w[J]}e.override({zodSchema:b,jsonSchema:w,path:(Z=x.path)!=null?Z:[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let b of[...e.seen.entries()].reverse())r(b[0]);if(e.target!=="openapi-3.0")for(let b of e.seen.entries())KN((a=b[1].def)!=null?a:b[1].schema);for(let b of e.deferred)b();if(e.intersections.length){let b=new Map;for(let x of e.seen.values())for(let w of[x.schema,x.def]){let N=w==null?void 0:w.allOf;if(!Array.isArray(N))continue;let C=b.get(N);C?C.push(w):b.set(N,[w])}for(let x of e.intersections)for(let w of(l=b.get(x))!=null?l:[])$F(w)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){let b=(d=e.external.registry.get(t))==null?void 0:d.id;if(!b)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(b)}Pu(o,n.defId?n.schema:(f=n.def)!=null?f:n.schema);let i=(m=e.metadataRegistry.get(t))==null?void 0:m.id;i!==void 0&&o.id===i&&delete o.id;let s=(g=(h=e.external)==null?void 0:h.defs)!=null?g:{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let b of e.seen.entries()){let x=b[1];x.def&&x.defId&&(x.def.id===x.defId&&delete x.def.id,zn(s,x.defId,x.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let b=JSON.parse(JSON.stringify(o));return Object.defineProperty(b,"~standard",{value:{...t["~standard"],jsonSchema:{input:Mu(t,"input",e.processors),output:Mu(t,"output",e.processors)}},enumerable:!1,writable:!1}),b}catch{throw new Error("Error converting schema to JSON.")}}function rn(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return rn(r.element,n);if(r.type==="set")return rn(r.valueType,n);if(r.type==="lazy")return rn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return rn(r.innerType,n);if(r.type==="intersection")return rn(r.left,n)||rn(r.right,n);if(r.type==="record"||r.type==="map")return rn(r.keyType,n)||rn(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:rn(r.in,n)||rn(r.out,n);if(r.type==="object"){for(let o in r.shape)if(rn(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(rn(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(rn(o,n))return!0;return!!(r.rest&&rn(r.rest,n))}return!1}var WN,VN,ZN,Mu,Zf=y(()=>{fb();Sn();WN=new Set(["type","properties","required","additionalProperties"]),VN=["oneOf","anyOf"];ZN=(e,t={})=>n=>{let r=vb({...n,processors:t});return We(e,r),Nb(r,e),Rb(r,e)},Mu=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r!=null?r:{},s=vb({...o!=null?o:{},target:i,io:t,processors:n});return We(e,s),Nb(s,e),Rb(s,e)}});function Un(e){var i,s,a,l,u;let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...(i=n.checks)!=null?i:[]]:(s=n.checks)!=null?s:[];for(let d of r)(a=Ob[d._zod.def.check])==null||a.call(Ob,t,d._zod.def);let o=e._zod.bag;o.minimum!==void 0&&dc(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&dc(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&pc(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&pc(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&QN(t,o.multipleOf),o.format!==void 0&&((l=t.format)!=null||(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&tR(t,o.mime);for(let d of(u=o.patterns)!=null?u:[])eR(t,d);return t}function Uu(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Uu(t.out):t.type==="catch"?Uu(t.innerType):e._zod.optin}function Ib(e,t,n){var g,b;if(t.$ref){if(n.has(t))return t;n.add(t);let x=(g=e.get(t))==null?void 0:g.def;if(!x)return t;let w=Ib(e,x,n);return w===x?t:w}for(let x of["anyOf","oneOf"]){let w=t[x];if(!Array.isArray(w))continue;let N=w.map(C=>Ib(e,C,n));N.some((C,D)=>C!==w[D])&&(t={...t,[x]:N})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(x=>x==="number"||x==="integer"),i=(b=t.enum)!=null?b:t.const!==void 0?[t.const]:void 0;if(!o&&!(i!=null&&i.some(x=>typeof x=="number")))return t;let{minimum:s,maximum:a,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:f,id:m,...h}=t;return h.enum?h.enum=h.enum.map(x=>typeof x=="number"?String(x):x):typeof h.const=="number"&&(h.const=String(h.const)),o&&(h.type="string",i||(h.pattern=(r.includes("number")?Cu:YE).source)),h}function zF(e){var r,o,i;let t=new Map;for(let s of e.seen.values())s.def&&!t.has(s.schema)&&t.set(s.schema,s);let n=new Map;for(let s of(r=Cb.get(e))!=null?r:[]){let a=e.seen.get(s),l=(i=(o=a==null?void 0:a.def)!=null?o:a==null?void 0:a.schema)==null?void 0:i.propertyNames;if(!l||l===!0||n.has(l))continue;let u=Ib(t,l,new Set);u!==l&&n.set(l,u)}if(n.size)for(let s of e.seen.values())for(let a of[s.schema,s.def]){let l=a&&n.get(a.propertyNames);l&&(a.propertyNames=l)}}function xR(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,l)=>typeof l!="bigint"?l:(i=!0,null));return i?(lo(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Lb):JSON.parse(s)}var dc,pc,YN,QN,eR,tR,nR,XN,qN,JN,Ob,kF,DF,rR,oR,iR,sR,aR,cR,lR,uR,dR,pR,fR,hR,mR,gR,ER,bR,_R,Cb,TR,SR,AR,Lb,yR,wR,vR,NR,RR,$b,OR,IR=y(()=>{If();cb();Zf();Sn();dc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},pc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},YN=(e,t)=>{dc(e,"minimum",t),pc(e,"maximum",t)},QN=(e,t)=>{var n;(n=e.multipleOf)!=null||(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},eR=(e,t)=>{var n;(n=e.patterns)!=null||(e.patterns=new Set),e.patterns.add(t)},tR=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},nR=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},XN=(e,t)=>dc(e,"minimum",t.minimum),qN=(e,t)=>pc(e,"maximum",t.maximum),JN=e=>(t,n)=>{nR(t,n.format);let[r,o]=e[n.format];dc(t,"minimum",r),pc(t,"maximum",o)},Ob={greater_than:(e,t)=>dc(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>pc(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>QN(e,t.value),number_format:JN(Nu),bigint_format:JN(Tf),min_length:XN,max_length:qN,length_equals:(e,t)=>YN(e,t.length),min_size:XN,max_size:qN,size_equals:(e,t)=>YN(e,t.size),string_format:(e,t)=>{nR(e,t.format),t.pattern&&eR(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>tR(e,t.mime)};kF={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},DF=new Map([[rb,sw],[Mf,aw]]),rR=e=>{var t;return(t=DF.get(e))!=null?t:e},oR=(e,t,n,r)=>{var f;let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:l,contentEncoding:u,laxFormat:d}=Un(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=(f=kF[a])!=null?f:a,o.format===""&&delete o.format,(a==="time"||d)&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){let m=[...l].map(rR);m.length===1?o.pattern=m[0].source:m.length>1&&(o.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},iR=(e,t,n,r)=>{var g;let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=Un(e);o.type=d?"integer":"number";let f=typeof u=="number"&&u>=(i!=null?i:Number.NEGATIVE_INFINITY),m=typeof l=="number"&&l<=(s!=null?s:Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";if(f?h?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?h?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:typeof s=="number"&&(o.maximum=s),a){let b=new Set;for(let N of a)Number.isFinite(N)&&N!==0?b.add(Math.abs(N)):lo(e,t,o,r,`A multipleOf divisor of ${N} cannot be represented in JSON Schema`);let[x,...w]=b;x!==void 0&&(o.multipleOf=x),w.length&&(o.allOf=[...(g=o.allOf)!=null?g:[],...w.map(N=>({multipleOf:N}))])}},sR=(e,t,n,r)=>{n.type="boolean"},aR=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},cR=(e,t,n,r)=>{lo(e,t,n,r,"Undefined cannot be represented in JSON Schema")},lR=(e,t,n,r)=>{n.not={}},uR=(e,t,n,r)=>{},dR=(e,t,n,r)=>{let o=e._zod.def,i=oc(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},pR=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(lo(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(lo(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},fR=(e,t,n,r)=>{lo(e,t,n,r,"Custom types cannot be represented in JSON Schema")},hR=(e,t,n,r)=>{lo(e,t,n,r,"Transforms cannot be represented in JSON Schema")},mR=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Un(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=We(i.element,t,{...r,path:[...r.path,"items"]})};gR=(e,t,n,r)=>{var u;let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&lo(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let d in s)zn(o.properties,d,We(s[d],t,{...r,path:[...r.path,"properties",d]}));let l=[];for(let d of Object.keys(s)){let f=i.shape[d];(t.io==="input"?Uu(f)===void 0:f._zod.optout===void 0)&&l.push(d)}l.length>0&&(o.required=l),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=We(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},ER=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,l)=>We(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},bR=(e,t,n,r)=>{let o=e._zod.def,i=We(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=We(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l,t.intersections.push(l)},_R=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((b,x)=>We(b,t,{...r,path:[...r.path,s,x]})),u=i.rest?We(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,d=i.items.length;for(;d>0;){let b=i.items[d-1];if(!(t.io==="input"?Uu(b)!==void 0:b._zod.optout==="optional"))break;d--}let f=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=l,m?o.items=!1:u&&(o.items=u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):t.target==="openapi-3.0"?(o.items={anyOf:l},u&&o.items.anyOf.push(u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):(o.items=l,m?o.additionalItems=!1:u&&(o.additionalItems=u),d>0&&(o.minItems=d),m&&(o.maxItems=f));let{minimum:h,maximum:g}=Un(e);typeof h=="number"&&(o.minItems=h),typeof g=="number"&&(o.maxItems=g)};Cb=new WeakMap;TR=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Un(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let d=We(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let f of a)zn(o.patternProperties,rR(f).source,d)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=We(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let d=Cb.get(t);d||(d=[],Cb.set(t,d),t.deferred.push(()=>zF(t))),d.push(e)}o.additionalProperties=We(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let l=s._zod.values,u=t.io==="input"&&Uu(i.valueType)!==void 0;if(l&&!i.partial&&!u){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d.map(String))}},SR=(e,t,n,r)=>{let o=e._zod.def,i=We(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},AR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Lb=Symbol();yR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=xR(o.defaultValue,e,t,n,r);s!==Lb&&(n.default=s)},wR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=xR(o.defaultValue,e,t,n,r);s!==Lb&&(n._prefault=s)},vR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{lo(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},NR=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;We(s,t,r);let a=t.seen.get(e);a.ref=s},RR=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},$b=(e,t,n,r)=>{let o=e._zod.def;We(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},OR=(e,t,n,r)=>{let o=e._zod.innerType;We(o,t,r);let i=t.seen.get(e);i.ref=o}});var Pi=y(()=>{Us();Vy();ky();cb();Jv();Lf();eb();Sn();fb();QE();rN();BN();Zf()});var Db=y(()=>{Pi()});function Yf(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var CR,VF,Hn,zb=y(()=>{Pi();Pi();Sn();CR=new WeakSet([Object.prototype,Error.prototype]);VF=(e,t)=>{Cy.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);CR.has(n)||(CR.add(n),Yf(n,"format",r=>o=>$y(r,o)),Yf(n,"flatten",r=>o=>Ly(r,o)),Yf(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,ic,2)}),Yf(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,ic,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Hn=I("ZodError",VF,void 0,{Parent:Error})});var LR,$R,kR,DR,zR,PR,MR,UR,HR,FR,BR,GR,Pb=y(()=>{Pi();zb();Pi();LR=wf(Hn),$R=vf(Hn),kR=Nf(Hn),DR=Rf(Hn),zR=zy(Hn),PR=Py(Hn),MR=My(Hn),UR=Uy(Hn),HR=Hy(Hn),FR=Fy(Hn),BR=By(Hn),GR=Gy(Hn)});function KF(){nn.localeError||Mn(Qv())}function Hu(){nn.memoizer||Mn({memoizer:qv()})}function p(e){return iN(WF,e)}function T(e){return LN(YR,e)}function VR(e){return $N(gB,e)}function L(e){return kN(EB,e)}function Fu(e){return DN(bB,e)}function XR(e){return zN(_B,e)}function Q(){return PN(TB)}function AB(e){return MN(SB,e)}function O(e,t){return UN(xB,e,t)}function _(e,t){let n={type:"object",shape:e!=null?e:{},...oe.normalizeParams(t)};return new yB(n)}function bt(e,t){return new qR({type:"union",options:e,...oe.normalizeParams(t)})}function Rt(e,t,n){return new wB({type:"union",options:t,discriminator:e,...oe.normalizeParams(n)})}function NB(e,t){return new vB({type:"intersection",left:e,right:t})}function Jf(e,t,n){let r=t instanceof De,o=r?n:t,i=r?t:null;return new RB({type:"tuple",items:e,rest:i,...oe.normalizeParams(o)})}function se(e,t,n){return!t||!t._zod?new Mb({type:"record",keyType:p(),valueType:e,...oe.normalizeParams(t)}):new Mb({type:"record",keyType:e,valueType:t,...oe.normalizeParams(n)})}function Ub(e,t,n){return new Mb({type:"record",keyType:e,valueType:t,...oe.normalizeParams(n),partial:!0})}function fe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new qf({type:"enum",entries:n,...oe.normalizeParams(t)})}function R(e,t){return new qf({type:"enum",entries:e,...oe.normalizeParams(t)})}function H(e,t){return new JR({type:"literal",values:Array.isArray(e)?e:[e],...oe.normalizeParams(t)})}function QR(e){return new OB({type:"transform",transform:e})}function jR(e){return new Hb({type:"optional",innerType:e})}function IB(e){return new eO({type:"optional",innerType:e})}function KR(e){return new CB({type:"nullable",innerType:e})}function $B(e,t){return new LB({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oe.shallowClone(t)}})}function DB(e,t){return new kB({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oe.shallowClone(t)}})}function zB(e,t){return new tO({type:"nonoptional",innerType:e,...oe.normalizeParams(t)})}function MB(e,t){return new PB({type:"catch",innerType:e,catchValue:typeof t=="function"?t:oe.constantCatch(t)})}function WR(e,t){return new nO({type:"pipe",in:e,out:t})}function FB(e){return new HB({type:"readonly",innerType:e})}function Qf(e){return new BB({type:"lazy",getter:e})}function VB(e,t={}){return HN(GB,e,t)}function jB(e,t){return FN(e,t)}function Bu(e,t){return new UB({type:"pipe",in:QR(e),out:t})}var Me,ZR,WF,Je,ZF,YF,XF,qF,JF,QF,Xf,eB,tB,nB,rB,oB,iB,sB,aB,cB,lB,uB,dB,pB,fB,hB,mB,YR,gB,EB,bB,_B,TB,SB,xB,yB,qR,wB,vB,RB,Mb,qf,JR,OB,Hb,eO,CB,LB,kB,tO,PB,nO,UB,HB,BB,GB,rO=y(()=>{Pi();Pi();IR();Zf();eN();Db();Pb();Me=I("ZodType",(e,t)=>(KF(),De.init(e,t),e.def=t,e.type=t.type,e),{check(...e){var n;let t=this.def;return this.clone(oe.mergeDefs(t,{checks:[...(n=t.checks)!=null?n:[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Cr(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(VB(e,t))},superRefine(e,t){return this.check(jB(e,t))},overwrite(e){return this.check(zi(e))},optional(){return jR(this)},exactOptional(){return IB(this)},nullable(){return KR(this)},nullish(){return jR(KR(this))},nonoptional(e){return zB(this,e)},array(){return O(this)},or(e){return bt([this,e])},and(e){return NB(this,e)},transform(e){return WR(this,QR(e))},default(e){return $B(this,e)},prefault(e){return DB(this,e)},catch(e){return MB(this,e)},pipe(e){return WR(this,e)},readonly(){return FB(this)},describe(e){let t=this.clone();return Hs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Hs.get(this);let t=this.clone();return Hs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return oe.hide(this,"~standard",{...nb(this),jsonSchema:{input:Mu(this,"input"),output:Mu(this,"output")}})},set"~standard"(e){oe.own(this,"~standard",e)},parse:function e(t,n){return LR(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $R(this,t,n,{callee:e})},safeParse(e,t){return kR(this,e,t)},async safeParseAsync(e,t){return DR(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){oe.own(this,"spa",e)},validate(e,t){return jE(this,e,t)},validateAsync(e,t){return KE(this,e,t)},encode:function e(t,n){return zR(this,t,n,{callee:e})},decode:function e(t,n){return PR(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await MR(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await UR(this,t,n,{callee:e})},safeEncode(e,t){return HR(this,e,t)},safeDecode(e,t){return FR(this,e,t)},async safeEncodeAsync(e,t){return BR(this,e,t)},async safeDecodeAsync(e,t){return GR(this,e,t)},toJSONSchema(e){return ZN(this,{})(e)},get description(){var e;return(e=Hs.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),ZR=I("_ZodString",(e,t)=>{Pf.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>oR(e,n,r,o)},oe.derived({format:e=>{var t;return(t=Un(e).format)!=null?t:null},minLength:e=>{var t;return(t=Un(e).minimum)!=null?t:null},maxLength:e=>{var t;return(t=Un(e).maximum)!=null?t:null}},{regex(...e){return this.check(hb(...e))},includes(...e){return this.check(Eb(...e))},startsWith(...e){return this.check(bb(...e))},endsWith(...e){return this.check(_b(...e))},min(...e){return this.check(uc(...e))},max(...e){return this.check(Kf(...e))},length(...e){return this.check(Wf(...e))},nonempty(...e){return this.check(uc(1,...e))},lowercase(e){return this.check(mb(e))},uppercase(e){return this.check(gb(e))},trim(){return this.check(Sb())},normalize(...e){return this.check(Tb(...e))},toLowerCase(){return this.check(Ab())},toUpperCase(){return this.check(xb())},slugify(){return this.check(yb())}})),WF=I("ZodString",(e,t)=>{Pf.init(e,t),ZR.init(e,t)},{email(e){return this.check(sN(JF,e))},url(e){return this.check(pN(eB,e))},jwt(e){return this.check(NN(mB,e))},emoji(e){return this.check(fN(tB,e))},guid(e){return this.check(aN(QF,e))},uuid(e){return this.check(cN(Xf,e))},uuidv4(e){return this.check(lN(Xf,e))},uuidv6(e){return this.check(uN(Xf,e))},uuidv7(e){return this.check(dN(Xf,e))},nanoid(e){return this.check(hN(nB,e))},cuid(e){return this.check(mN(rB,e))},cuid2(e){return this.check(gN(oB,e))},ulid(e){return this.check(EN(iB,e))},base64(e){return this.check(yN(pB,e))},base64url(e){return this.check(wN(fB,e))},xid(e){return this.check(bN(sB,e))},ksuid(e){return this.check(_N(aB,e))},ipv4(e){return this.check(TN(cB,e))},ipv6(e){return this.check(SN(lB,e))},cidrv4(e){return this.check(AN(uB,e))},cidrv6(e){return this.check(xN(dB,e))},e164(e){return this.check(vN(hB,e))},datetime(e){return this.check(RN(ZF,e))},date(e){return this.check(ON(YF,e))},time(e){return this.check(IN(XF,e))},duration(e){return this.check(CN(qF,e))}});Je=I("ZodStringFormat",(e,t)=>{Ve.init(e,t),ZR.init(e,t)}),ZF=I("ZodISODateTime",(e,t)=>{av.init(e,t),Je.init(e,t)}),YF=I("ZodISODate",(e,t)=>{cv.init(e,t),Je.init(e,t)}),XF=I("ZodISOTime",(e,t)=>{lv.init(e,t),Je.init(e,t)}),qF=I("ZodISODuration",(e,t)=>{uv.init(e,t),Je.init(e,t)}),JF=I("ZodEmail",(e,t)=>{Xw.init(e,t),Je.init(e,t)}),QF=I("ZodGUID",(e,t)=>{Zw.init(e,t),Je.init(e,t)}),Xf=I("ZodUUID",(e,t)=>{Yw.init(e,t),Je.init(e,t)}),eB=I("ZodURL",(e,t)=>{Qw.init(e,t),Je.init(e,t)}),tB=I("ZodEmoji",(e,t)=>{ev.init(e,t),Je.init(e,t)}),nB=I("ZodNanoID",(e,t)=>{tv.init(e,t),Je.init(e,t)}),rB=I("ZodCUID",(e,t)=>{nv.init(e,t),Je.init(e,t)}),oB=I("ZodCUID2",(e,t)=>{rv.init(e,t),Je.init(e,t)}),iB=I("ZodULID",(e,t)=>{ov.init(e,t),Je.init(e,t)}),sB=I("ZodXID",(e,t)=>{iv.init(e,t),Je.init(e,t)}),aB=I("ZodKSUID",(e,t)=>{sv.init(e,t),Je.init(e,t)}),cB=I("ZodIPv4",(e,t)=>{dv.init(e,t),Je.init(e,t)}),lB=I("ZodIPv6",(e,t)=>{fv.init(e,t),Je.init(e,t)}),uB=I("ZodCIDRv4",(e,t)=>{hv.init(e,t),Je.init(e,t)}),dB=I("ZodCIDRv6",(e,t)=>{mv.init(e,t),Je.init(e,t)}),pB=I("ZodBase64",(e,t)=>{Ev.init(e,t),Je.init(e,t)}),fB=I("ZodBase64URL",(e,t)=>{bv.init(e,t),Je.init(e,t)}),hB=I("ZodE164",(e,t)=>{_v.init(e,t),Je.init(e,t)}),mB=I("ZodJWT",(e,t)=>{Tv.init(e,t),Je.init(e,t)}),YR=I("ZodNumber",(e,t)=>{ob.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>iR(e,n,r,o),e.isFinite=!0},oe.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Un(e);return Math.max(t!=null?t:Number.NEGATIVE_INFINITY,n!=null?n:Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Un(e);return Math.min(t!=null?t:Number.POSITIVE_INFINITY,n!=null?n:Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Un(e);return!!t||!!(n!=null&&n.some(Number.isSafeInteger))},format:e=>{var t;return(t=Un(e).format)!=null?t:null}},{gt(e,t){return this.check(Vf(e,t))},gte(e,t){return this.check(zu(e,t))},min(e,t){return this.check(zu(e,t))},lt(e,t){return this.check(Gf(e,t))},lte(e,t){return this.check(Du(e,t))},max(e,t){return this.check(Du(e,t))},int(e){return this.check(VR(e))},safe(e){return this.check(VR(e))},positive(e){return this.check(Vf(0,e))},nonnegative(e){return this.check(zu(0,e))},negative(e){return this.check(Gf(0,e))},nonpositive(e){return this.check(Du(0,e))},multipleOf(e,t){return this.check(jf(e,t))},step(e,t){return this.check(jf(e,t))},finite(){return this}}));gB=I("ZodNumberFormat",(e,t)=>{Sv.init(e,t),YR.init(e,t)});EB=I("ZodBoolean",(e,t)=>{Av.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sR(e,n,r,o)});bB=I("ZodUndefined",(e,t)=>{xv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cR(e,n,r,o)});_B=I("ZodNull",(e,t)=>{yv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>aR(e,n,r,o)});TB=I("ZodUnknown",(e,t)=>{wv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uR(e,n,r,o)});SB=I("ZodNever",(e,t)=>{vv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lR(e,n,r,o)});xB=I("ZodArray",(e,t)=>{Hu(),Nv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mR(e,n,r,o),e.element=t.element},{min(e,t){return this.check(uc(e,t))},nonempty(e){return this.check(uc(1,e))},max(e,t){return this.check(Kf(e,t))},length(e,t){return this.check(Wf(e,t))},unwrap(){return this.element}});yB=I("ZodObject",(e,t)=>{Hu(),Iv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gR(e,n,r,o),oe.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return fe(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(oe.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:Q()}))},loose(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:Q()}))},strict(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:AB()}))},strip(){return this.clone(oe.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return oe.extend(this,e)},safeExtend(e){return oe.safeExtend(this,e)},merge(e){return oe.merge(this,e)},pick(e){return oe.pick(this,e)},omit(e){return oe.omit(this,e)},partial(...e){return oe.partial(Hb,this,e[0])},exactPartial(...e){return oe.partial(eO,this,e[0],"exactPartial")},required(...e){return oe.required(tO,this,e[0])}});qR=I("ZodUnion",(e,t)=>{ib.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ER(e,n,r,o),e.options=t.options});wB=I("ZodDiscriminatedUnion",(e,t)=>{qR.init(e,t),Cv.init(e,t)});vB=I("ZodIntersection",(e,t)=>{Lv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bR(e,n,r,o)});RB=I("ZodTuple",(e,t)=>{Hu(),$v.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_R(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){var t;let e=this._zod.def;if((t=e.checks)!=null&&t.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(n=>new Hb({type:"optional",innerType:n}))})}});Mb=I("ZodRecord",(e,t)=>{Hu(),kv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TR(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});qf=I("ZodEnum",(e,t)=>{Dv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(r,o,i)=>dR(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new qf({...t,checks:[],...oe.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new qf({...t,checks:[],...oe.normalizeParams(o),entries:i})}});JR=I("ZodLiteral",(e,t)=>{zv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pR(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});OB=I("ZodTransform",(e,t)=>{Hu(),Pv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hR(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new lc(e.constructor.name);n.addIssue=i=>{var s,a;if(typeof i=="string")n.issues.push(oe.issue(i,n.value,t));else{let l=i;l.fatal&&(l.continue=!1),(s=l.code)!=null||(l.code="custom"),"input"in l||(l.input=n.value),(a=l.inst)!=null||(l.inst=e),n.issues.push(oe.issue(l))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});Hb=I("ZodOptional",(e,t)=>{sb.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$b(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});eO=I("ZodExactOptional",(e,t)=>{Mv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$b(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});CB=I("ZodNullable",(e,t)=>{Uv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>SR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});LB=I("ZodDefault",(e,t)=>{Hv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});kB=I("ZodPrefault",(e,t)=>{Fv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});tO=I("ZodNonOptional",(e,t)=>{Bv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>AR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});PB=I("ZodCatch",(e,t)=>{Gv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});nO=I("ZodPipe",(e,t)=>{ab.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NR(e,n,r,o),e.in=t.in,e.out=t.out});UB=I("ZodPreprocess",(e,t)=>{nO.init(e,t),Vv.init(e,t)}),HB=I("ZodReadonly",(e,t)=>{jv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>RR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});BB=I("ZodLazy",(e,t)=>{Kv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>OR(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});GB=I("ZodCustom",(e,t)=>{Wv.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fR(e,n,r,o)})});var uo,oO,iO=y(()=>{uo={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};oO||(oO={})});var sO=y(()=>{rO();Db();zb();Pb();iO()});var ce=y(()=>{sO()});var Fb,eh,Bb=y(()=>{"use strict";Fb="reticle_act",eh={ACT:Fb,ACT_SEQUENCE:"reticle_act_sequence",ACT_AND_WAIT:"reticle_act_and_wait",INVOKE:"reticle_invoke",NAVIGATE:"reticle_navigate",REQUEST:"reticle_request"}});var th,Gb,Vb,P,AQ,KB,xQ,Ko=y(()=>{"use strict";th={SIGNAL:"signal",NET:"net",STATE:"state"},Gb={ELEMENT:"element",TEXT:"text"},Vb={NETWORK:"network",APP:"app"},P={ELEMENT:Gb.ELEMENT,TEXT:Gb.TEXT,SIGNAL:th.SIGNAL,NET:th.NET,STATE:th.STATE,ROUTE:"route",CONSOLE:"console",ANIMATION:"animation",SETTLED:"settled",COMPARE:"compare",ALL_OF:"allOf",ANY_OF:"anyOf",NOT:"not"},AQ=new Set(Object.values(th)),KB=new Set(Object.values(Gb)),xQ=new Set([...KB,P.ROUTE])});var aO,cO,lO,jb,WB,uO,Dr,dO,Ze,on,nh,Gu=y(()=>{"use strict";aO=1,cO={FLOW_REPLAY:"flow_replay",MANUAL:"manual"},lO={PASS:"pass",DRIFT:"drift",ERROR:"error",FAIL:"fail"},jb=2,WB=3,uO=new Set([1,jb,WB]),Dr={TESTID:"testid",ROLE:"role",SIGNAL:"signal",COMPONENT:"component"},dO="unresolved",Ze={ASSERT_SIGNAL:"assert-signal",ASSERT_VISIBLE:"assert-visible",ASSERT_STATE:"assert-state",ASSERT_NET:"assert-net",MARK_DYNAMIC:"mark-dynamic",SUCCESS_STATE:"success-state",INTENT:"intent"},on={IDLE:"idle",RECORDING:"recording",ANNOTATING:"annotating"},nh={ACTIVE:"active",QUARANTINED:"quarantined",DRAFT:"draft"}});var pO,Kb=y(()=>{"use strict";pO={READ:"read",IDEMPOTENT:"idempotent",COMMITS:"commits"}});var fO=y(()=>{"use strict"});var v,Vu,Fs,sr,ar,fc,Mi,Bs,ju,Gs,_t,Wo,rh=y(()=>{"use strict";v={DOM_ADDED:"dom.added",DOM_REMOVED:"dom.removed",DOM_ATTR:"dom.attr",DOM_TEXT:"dom.text",NET_REQUEST:"net.request",NET_PENDING:"net.pending",NET_UNPATCHED:"net.unpatched",NET_STREAM:"net.stream",PERF:"perf",ROUTE_CHANGE:"route.change",CONSOLE_LOG:"console.log",CONSOLE_WARN:"console.warn",CONSOLE_ERROR:"console.error",CONSOLE_INFO:"console.info",CONSOLE_DEBUG:"console.debug",ERROR_UNCAUGHT:"error.uncaught",VISIBLE_SHOWN:"visible.shown",ANIM_START:"anim.start",ANIM_END:"anim.end",SCROLL_POSITION:"scroll.position",REVEAL_SHOWN:"reveal.shown",SIGNAL:"signal",STATE_CHANGE:"state.change",STORAGE_CHANGE:"storage.change",PAGE_HEALTH:"page.health",CONTEXT_OPENED:"context.opened",DIALOG_OPENED:"dialog.opened",RENDER_COMMIT:"render.commit",FOCUS_CHANGE:"focus.change",FIELD_CHANGE:"field.change",FLOW_RECORDED:"flow.recorded",TRANSPORT_OVERFLOW:"transport.overflow",TRUNCATED:"truncated",BLIND_SPOT:"blind-spot",SDK_FAILED:"sdk.failed",NET_DETAIL:"net.detail",NET_RESPONSE_BODY:"net.response-body",HUMAN_CONTROL:"human.control",HUMAN_MARK:"human.mark",DOWNLOAD:"download",HUD_USED:"hud.used",MEDIA_STATE:"media.state",CANVAS_DIGEST:"canvas.digest"},Vu={PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEKED:"seeked",ENDED:"ended",LOADED_DATA:"loadeddata",CAN_PLAY:"canplay",WAITING:"waiting",ERROR:"error"},Fs={POLL:"poll",ACT:"act"},sr={SSE:"sse",WS:"ws",FETCH:"fetch"},ar={OPEN:"open",IN:"in",OUT:"out",CLOSE:"close"},fc={UP:"up",DOWN:"down"},Mi={ASSERTIVE:"assertive",POLITE:"polite"},Bs={PUSH:"push",REPLACE:"replace",POP:"pop"},ju="how",Gs={INPUT:"input",CHANGE:"change",SETTLED:"settled"},_t={FIELD:"field",KIND:"kind",LENGTH:"length",VALUE:"value",REDACTED:"redacted",CHECKED:"checked",PREVIOUS:"previous",PREVIOUS_CHECKED:"previousChecked"},Wo={LOCAL:"local",SESSION:"session",COOKIE:"cookies"}});function mO(e=Wb,t=ZB){return`ws://${t}:${String(e)}${Ui}`}var Wb,Ui,oh,hO,ZB,Fn,gO,ih,OQ,W,Ne,sh,EO,bO,_O,hc,IQ,TO,LQ,Ku,ah,ch,SO,mc,Wu,YB,$Q,k,AO,xO,ge,je,B,ct,gc,sn,Gt=y(()=>{"use strict";fO();rh();rh();Wb=4400,Ui="/reticle",oh=1,hO=1,ZB="localhost";Fn={SESSION:"__reticle_session",PROJECT:"__reticle_project",OPENED:"__reticle_opened",HUD:"__reticle_hud"},gO="__reticle_session",ih="https://app.reticle.sh",OQ={MAX_RUNS:50,MAX_BYTES:4*1024*1024},W={MAX_MESSAGE_BYTES:1024*1024,MAX_MESSAGES_PER_SECOND:2e4,MAX_SESSIONS:32,MAX_PENDING_CONNECTIONS:16,HELLO_TIMEOUT_MS:5e3,MAX_BUFFER_BYTES:8*1024*1024,MAX_SESSION_ID_LENGTH:128,MAX_URL_LENGTH:4096,MAX_TITLE_LENGTH:512,MAX_ADAPTERS:32,MAX_CONTRACT_NAMES:128,MAX_ADAPTER_NAME_LENGTH:128,MAX_TOKEN_LENGTH:512,MAX_COMMAND_ID_LENGTH:128,MAX_COMMAND_NAME_LENGTH:128,MAX_REF_LENGTH:128,MAX_ERROR_LENGTH:4096,MAX_STACK_LENGTH:4e3,MAX_SERIALIZE_DEPTH:8,MAX_COLLECTION_ITEMS:200,MAX_DESCRIBED_TEXT:80,MAX_FULL_TEXT:4e3,MAX_FULL_TEXT_ELEMENTS:32,MAX_OBJECT_KEYS:200,MAX_STRING_LENGTH:64*1024,MAX_MARK_NOTE_LENGTH:2e3,MAX_MARK_LABEL_LENGTH:256},Ne="[REDACTED]",sh="confirmDangerous",EO="native",bO="reveal",_O="inViewport",hc={NO_PROVIDER:"no-visual-provider",CAPTURE_FAILED:"capture-failed",BASELINE_MISSING:"baseline-missing",DIMENSION_MISMATCH:"dimension-mismatch",FULL_PAGE_UNSUPPORTED:"full-page-unsupported",CROP_UNSUPPORTED:"crop-unsupported",NOT_COMPOSITED:"window-not-composited"},IQ=1440*60*1e3,TO=1,LQ={MAX_EVENTS:2e3,MAX_AGE_MS:6e4,MAX_BYTES:W.MAX_BUFFER_BYTES},Ku="reticle:busy",ah="__reticle_renders",ch={DOM:"dom",JOURNAL:"journal"},SO={WINDOW:"window"},mc={LCP:"lcp",CLS:"cls",LONGTASK:"longtask"},Wu={HOVER_NATIVE_ENTER_LEAVE:"target has enter/leave handlers; synthetic hover may not trigger them \u2014 expect no state change",REAL_INPUT_FELL_BACK:"real-input provider was available but failed; fell back to synthetic dispatch",CLICK_OCCLUDED:"target is visually occluded by another element; a real user could not click it (synthetic dispatch still delivered the event) \u2014 dismiss the overlay or scroll the target clear",GLOBAL_PRESS:"press landed on the focused element or document \u2014 no named target was given, so this effect does not claim one",CLICK_NOT_A_CONTROL:"target is not a control and sits inside none (no button/link/input role, onclick, tabindex or pointer cursor), so a click on it may do nothing \u2014 if nothing happened, target the control inside it by role"},YB="console.",$Q=[v.CONSOLE_LOG,v.CONSOLE_WARN,v.CONSOLE_ERROR,v.CONSOLE_INFO].map(e=>e.slice(YB.length)),k={CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",FOCUS:"focus",BLUR:"blur",FILL:"fill",TYPE:"type",CLEAR:"clear",SELECT:"select",CHECK:"check",UNCHECK:"uncheck",SUBMIT:"submit",PRESS:"press",UPLOAD:"upload",SCROLL_INTO_VIEW:"scrollIntoView",SCROLL:"scroll",DRAG:"drag",INSERT_TEXT:"insertText",TAP:"tap",ZOOM:"zoom"},AO={TIMEOUT:"timeout",THROTTLED:"throttled"},xO={UNAVAILABLE:"component-state-unavailable"},ge={VISIBLE:"visible",HIDDEN:"hidden",ENABLED:"enabled",DISABLED:"disabled",CHECKED:"checked",EXPANDED:"expanded",PRESSED:"pressed",FOCUSED:"focused",PRESENT:"present",IN_VIEWPORT:"inViewport",RECEIVES_POINTER:"receivesPointer"},je={ROLE:"role",TEXT:"text",LABEL:"label",PLACEHOLDER:"placeholder",TESTID:"testid",ALT:"alt",COMPONENT:"component"},B={SNAPSHOT:"snapshot",QUERY:"query",MATCH:"match",INSPECT:"inspect",ACT:"act",ACT_SEQUENCE:"act_sequence",ANIMATIONS:"animations",NARRATE:"narrate",CLOCK:"clock",CAPABILITIES:"capabilities",STATE_READ:"state_read",STORAGE_READ:"storage_read",SCROLL:"scroll",SESSION_CONFIG:"session_config",PRESENTER:"presenter",IMPACT:"impact",CAPTURE:"capture",RENDER:"render",NAVIGATE:"navigate",REFRESH:"refresh",FLOWS:"flows",FLOW_PROGRESS:"flow.progress",PLAN:"plan",MARKERS:"markers"},ct={IDLE:"idle",READING:"reading",ACTING:"acting"},gc={FULL:"full",INTERACTIVE:"interactive",STATUS:"status"},sn={HELLO:"hello",COMMAND:"command",COMMAND_RESULT:"command_result",EVENT:"event"}});var cr,XB,lr,PQ,Vs=y(()=>{"use strict";ce();cr={WEB:"web",DESKTOP:"desktop",MOBILE:"mobile",SERVICE:"service",GAME:"game",DEVICE:"device"},XB=bt([R(cr),p().regex(/^x-[a-z0-9-]+$/,"a surface this specification does not name must start with x-")]),lr=_({surface:XB,instance:p().min(1),epoch:T().int().nonnegative().optional(),locator:p().optional(),revision:p().optional()}),PQ=_({kind:fe(["instance","epoch"]),from:p(),to:p()})});var $,Bn,An,an,Zb,Yb,zr=y(()=>{"use strict";ce();$={UI:"ui",NET:"net",STATE:"state",SIGNAL:"signal",LOG:"log",ROUTE:"route",STORAGE:"storage",TIME:"time",VISUAL:"visual"},Bn=bt([R($),p().regex(/^x-[a-z0-9-]+$/,"a channel this specification does not name must start with x-")]),An={INDEPENDENT:"independent",ACTUATION_DERIVED:"actuation-derived"},an={CONSEQUENCE:"consequence",PRESENCE:"presence",CONTEXT:"context"},Zb=_({id:Bn,independence:R(An),grade:R(an),note:p().optional()}),Yb={[$.UI]:{independence:An.ACTUATION_DERIVED,grade:an.PRESENCE},[$.NET]:{independence:An.INDEPENDENT,grade:an.CONSEQUENCE},[$.STATE]:{independence:An.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.SIGNAL]:{independence:An.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.LOG]:{independence:An.INDEPENDENT,grade:an.CONTEXT},[$.ROUTE]:{independence:An.ACTUATION_DERIVED,grade:an.PRESENCE},[$.STORAGE]:{independence:An.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.TIME]:{independence:An.INDEPENDENT,grade:an.CONTEXT},[$.VISUAL]:{independence:An.ACTUATION_DERIVED,grade:an.PRESENCE}}});var yO=y(()=>{"use strict"});var BQ,wO=y(()=>{"use strict";ce();Vs();BQ=_({id:p().min(1),subject:lr,capturedAt:T().int(),payload:Q().optional()})});var VQ,vO=y(()=>{"use strict";ce();VQ=_({mutation:p().min(1)})});var qB,Xb,JB,QB,NO,RO,qb,OO,IO,Zu=y(()=>{"use strict";ce();zr();qB={USER:"user",DEVELOPER:"developer",AGENT:"agent",SYSTEM:"system",WORKFLOW:"workflow",DERIVED:"derived"},Xb={DECLARED:"declared",BOUND:"bound",ABANDONED:"abandoned"},JB=_({id:p().min(1),statement:p().min(1),origin:R(qB),claims:O(p()).default([]),declaredAt:T().int().optional()}),QB=Rt("status",[_({status:H(Xb.ABANDONED),abandonedBecause:p().trim().min(1)}),_({status:H(Xb.DECLARED),abandonedBecause:Fu().optional()}),_({status:H(Xb.BOUND),abandonedBecause:Fu().optional()})]),NO=JB.and(QB),RO={BEFORE_ACTION:"before-action",AFTER_ACTION:"after-action"},qb=_({id:p().min(1),predicate:Q().optional(),reads:p().min(1),channels:O(Bn).min(1)}),OO=_({id:p().min(1),intent:p().optional(),statement:p().min(1),declaredAt:R(RO),assertions:O(qb).default([])}),IO=_({id:p().min(1),statement:p().min(1),predicate:Q().optional(),channels:O(Bn).min(1),severity:fe(["blocking","advisory"]).default("blocking")})});var eG,Ec,XQ,Jb,CO,LO,tG,$O,Hi=y(()=>{"use strict";ce();zr();Vs();eG=_({id:p().min(1),window:p().min(1),channel:Bn,at:T().int(),value:Q().optional(),summary:p().min(1)}),Ec={AUTHORITATIVE:"authoritative",DERIVED:"derived",OBSERVED:"observed",LEARNED:"learned"},XQ={[Ec.LEARNED]:0,[Ec.OBSERVED]:1,[Ec.DERIVED]:2,[Ec.AUTHORITATIVE]:3},Jb=_({class:R(Ec),source:p().min(1),method:p().min(1),subject:lr,at:T().int(),confidence:T().min(0).max(1).optional()}),CO=_({observation:eG,provenance:Jb,independence:R(An),grade:R(an)}),LO={CHANNEL_UNOBSERVED:"channel-unobserved",BOUNDARY_UNCROSSABLE:"boundary-uncrossable",BUFFER_TRUNCATED:"buffer-truncated",REDACTED:"redacted",STILL_IN_FLIGHT:"still-in-flight",EFFECT_ELSEWHERE:"effect-elsewhere"},tG=_({kind:R(LO),channel:Bn.optional(),detail:p().min(1),impeaching:L(),remedy:p().optional()}),$O=_({window:p().min(1),observed:O(Bn),blindSpots:O(tG)})});var rG,oG,lh,iG,uh,Qb,eee,kO=y(()=>{"use strict";ce();zr();Hi();rG=_({channel:Bn}),oG=bt([_({summary:p().min(1),valueContains:p().min(1)}),_({summary:p().min(1).optional(),valueContains:Fu().optional()})]),lh=rG.and(oG),iG={EXACTLY:"exactly",AT_LEAST:"at-least",AT_MOST:"at-most"},uh={COUNT:"count",PRESENT:"present",ABSENT:"absent",MEASURE:"measure"},Qb={EQUALS:"equals",AT_LEAST:"at-least",AT_MOST:"at-most"},eee=Rt("kind",[_({kind:H(uh.COUNT),match:lh,op:R(iG),value:T().int().nonnegative()}),_({kind:H(uh.PRESENT),match:lh}),_({kind:H(uh.ABSENT),match:lh}),_({kind:H(uh.MEASURE),match:lh,op:R(Qb),value:T().finite(),tolerance:T().nonnegative().finite().default(0)})])});var ree,e_,oee,dh,DO,Yu,zO,iee,js=y(()=>{"use strict";ce();Vs();ree=_({name:p().min(1),meaning:p().min(1),parameters:Q().optional(),mutating:L()}),e_={UNDECLARED:"undeclared",UNSUPPORTED:"unsupported",UNRESOLVED:"unresolved",UNAVAILABLE:"unavailable",GUARDED:"guarded",MALFORMED:"malformed"},oee=_({ref:p().min(1),describes:p().min(1),at:p().optional()}),dh=_({id:p().min(1),actor:p().min(1),capability:p().min(1),target:p().optional(),parameters:Q().optional(),at:T().int()}),DO=_({action:p().min(1),dispatched:L(),refused:_({reason:R(e_),detail:p().min(1)}).optional(),subject:lr,at:T().int()}),Yu={QUIESCENCE:"quiescence",TICKS:"ticks",ACK:"ack",SIGNAL:"signal",SETTLED_PHYSICAL:"settled-physical",EXIT:"exit",TERMINATED:"terminated",BUDGET_EXHAUSTED:"budget-exhausted"},zO=_({id:p().min(1),openedAt:T().int(),closedAt:T().int().optional(),budgetMs:T().int().positive(),closes:R(Yu),closedBy:R(Yu).optional(),subject:lr}),iee=new Set([Yu.BUDGET_EXHAUSTED,Yu.TERMINATED])});var ph,sG,PO,aG,t_,n_,MO,bc=y(()=>{"use strict";ce();zr();ph={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},sG=p().min(1),PO={ADVANCED_OVER_FAILURE:"advanced-over-failure",CLAIMED_OVER_FAILURE:"claimed-over-failure",EFFECT_DISCARDED:"effect-discarded",CLAIM_UNCORROBORATED:"claim-uncorroborated",FAILURE_INSIDE_SUCCESS:"failure-inside-success",VALUE_NOT_APPLIED:"value-not-applied",DUPLICATED_EFFECT:"duplicated-effect",STALE_APPLIED:"stale-applied",NO_EFFECT:"no-effect",FAULT_MISATTRIBUTED:"fault-misattributed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit"},aG=bt([R(PO),p().regex(/^x-[a-z0-9-]+$/,"an anomaly this specification does not name must start with x-")]),t_={OBSERVED:"observed",ABSENCE_DERIVED:"absence-derived",ADVISORY:"advisory"},n_=_({kind:aG,tier:R(t_),claim:p().min(1),counter:p().min(1),between:Jf([Bn,Bn]),evidence:O(p()).default([])}),MO=_({id:p().min(1),claim:p().min(1),window:p().min(1),verdict:R(ph),grade:R(an).optional(),reasons:O(sG).default([]),evidence:O(p()).default([]),anomalies:O(n_).default([]),supersedes:p().optional(),at:T().int()})});var cG,lG,uG,fee,UO,dG,hee,r_=y(()=>{"use strict";ce();js();Zu();Hi();bc();cG=p().min(1).regex(/^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[^/]+(?:\/[^/]+)*$/,{message:"a flow name is `/`-separated segments: no empty segment, no leading or trailing slash, no `.` or `..`"}),lG=_({id:p().min(1),invoke:cG,with:Q().optional(),at:T().int()}),uG=bt([dh,lG]),fee=_({name:p().min(1),version:T().int().positive(),startState:Q().optional(),requires:Q().optional(),ensures:Q().optional(),claim:p().min(1),steps:O(uG),expects:O(qb).default([]),mayRebind:L().default(!1)}),UO=_({verdict:p().min(1),expected:p().min(1),actual:p().min(1),evidence:O(p()).min(1),location:_({file:p(),line:T().int().optional(),symbol:p().optional()}).optional(),instruction:p().min(1)}),dG={INVARIANT:"invariant",FAILURE_MODE:"failure-mode",GAP:"gap",REPAIR_OUTCOME:"repair-outcome"},hee=_({id:p().min(1),kind:R(dG),statement:p().min(1),provenance:Jb,observations:T().int().nonnegative().default(0),promotedBy:p().optional(),promotedAt:T().int().optional()})});var pG,fG,xee,HO=y(()=>{"use strict";ce();zr();Zu();js();Hi();bc();r_();Vs();pG="1.0",fG=_({constraint:p().min(1),at:T().int(),detail:p().min(1),evidence:O(p()).default([])}),xee=_({ovp:H(pG),id:p().min(1),verifier:_({name:p().min(1),version:p().min(1),profile:p().optional()}),subject:lr,channels:O(Zb),witnesses:O(_({name:p().min(1),subject:lr,channels:O(Zb)})).default([]),intents:O(NO).default([]),claims:O(OO).default([]),constraints:O(IO).default([]),actions:O(dh).default([]),receipts:O(DO).default([]),windows:O(zO).default([]),evidence:O(CO).default([]),coverage:O($O).default([]),anomalies:O(n_).default([]),verdicts:O(MO).default([]),violations:O(fG).default([]),repairs:O(UO).default([]),startedAt:T().int(),endedAt:T().int()})});var o_=y(()=>{"use strict";bc()});var i_=y(()=>{"use strict";Zu();zr();Hi();js();bc()});var s_=y(()=>{"use strict";js();zr();o_();Hi();i_()});var a_=y(()=>{"use strict"});var FO=y(()=>{"use strict";a_()});var Ks,Wee,Zee,Yee,BO=y(()=>{"use strict";ce();zr();Ks={EFFECT:"effect",IN_REALM:"in-realm",SURFACE:"surface"},Wee=[Ks.EFFECT,Ks.IN_REALM,Ks.SURFACE],Zee={[Ks.EFFECT]:[$.NET,$.LOG],[Ks.IN_REALM]:[$.NET,$.LOG,$.STATE,$.SIGNAL],[Ks.SURFACE]:[$.NET,$.LOG,$.STATE,$.SIGNAL,$.UI]},Yee=_({name:p().min(1),version:p().min(1),platform:p().min(1),claims:R(Ks),homepage:p().optional()})});var GO=y(()=>{"use strict";s_();zr();js();Hi();Vs()});var _c=y(()=>{"use strict";Vs();zr();yO();wO();vO();Zu();kO();js();Hi();bc();r_();HO();s_();o_();a_();FO();i_();BO();GO()});var Gn,ot,VO,cn,Zo=y(()=>{"use strict";Gn={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},ot={VERSION_SKEW:"version_skew",CAPABILITY_ABSENT:"capability-absent",INCONCLUSIVE:"inconclusive",OBSERVATION_LOST:"observation_lost",WINDOW_CLOSED_EARLY:"window_closed_early",DIALOG_DECLINED:"dialog_declined",ASSERTION_FAILED:"assertion_failed",CONTRADICTED:"contradicted",ALREADY_TRUE:"already_true",HIDDEN_MATCH:"hidden_match",UNCLEAN_CAPTURE:"unclean_capture",VACUOUS_GRADE:"vacuous_grade",NOTHING_DECLARED:"nothing_declared",OUTCOME_PENDING:"outcome_pending",OUTCOME_UNREAD:"outcome_unread",UNSETTLED:"unsettled",EVIDENCE_INCOMPLETE:"evidence_incomplete",PROVED:"proved",ABSENCE_BLIND_SPOT:"absence_blind_spot"},VO={BUFFER_LOSS:"buffer_loss",TRANSPORT_GAP:"transport_gap",BLIND_SPOT:"blind_spot",JOURNAL_LOSS:"journal_loss",OTHER:"other"},cn={CLOSED_SHADOW_ROOT:"closed-shadow-root",RATE_LIMITED:"rate-limited",CROSS_ORIGIN_IFRAME:"cross-origin-iframe",UNINSTRUMENTED_FRAME:"uninstrumented-frame",VIRTUALIZED_UNMOUNTED:"virtualized-unmounted",WRAPPED_NETWORK:"wrapped-network",UNOBSERVED_IPC:"unobserved-ipc",VERDICTLESS_SEND:"verdictless-send",UNWATCHED_STATE:"unwatched-state",CANVAS_PAINT_UNOBSERVED:"canvas-paint-unobserved"}});var gG,EG,jO,c_=y(()=>{"use strict";ce();Zo();gG={FINDABLE:"findable",DISCOVERABILITY:"discoverability",AGENT_ASSUMPTION:"agent_assumption",DEFECT:"defect"},EG=20,jO=_({goal:p().min(1).max(500),kind:R(gG),agent:_({verified:R(Gn),claim:p().max(2e3)}),harness:_({verified:R(Gn),found:L(),searched:O(p().max(500)).max(EG),gaveUpAt:p().max(500).optional()})})});var bG,_G,TG,SG,AG,xG,KO,yG,fh,wG,vG,NG,RG,OG,IG,CG,LG,$G,kG,Lte,DG,l_,u_,zG,PG,MG,UG,HG,FG,BG,GG,VG,jG,$te,d_=y(()=>{"use strict";ce();_c();Ko();Zo();c_();bG=3,_G=1,TG=2,SG={pass:Gn.YES,fail:Gn.NO},AG={network:P.NET,layout:P.ELEMENT},xG=p().brand(),KO={PASS:"pass",FAIL:"fail",PARTIAL:"partial",UNKNOWN:"unknown"},yG={PASS:"pass",FAIL:"fail",SKIPPED:"skipped",HEALED:"healed"},fh={AUTH:"auth",PAYMENT:"payment",DB:"db",MIGRATION:"migration",RLS:"rls",SECRETS:"secrets",DESTRUCTIVE:"destructive",EXTERNAL:"external"},wG={LOW:"low",MEDIUM:"medium",HIGH:"high",CRITICAL:"critical"},vG={EDIT:"edit",CI:"ci",MANUAL:"manual",OEM:"oem"},NG={ADDED:"added",MODIFIED:"modified",DELETED:"deleted"},RG={CODING_AGENT:"coding-agent",OEM_PIPELINE:"oem-pipeline",HUMAN:"human"},OG={REACT:"react",NEXT:"next",VITE:"vite",OTHER:"other"},IG={PREVIEW:"preview",CI:"ci",LOCAL:"local"},CG={HIGH:"high",MEDIUM:"medium",LOW:"low"},LG={DEV:"dev",PROD_PREVIEW:"prod-preview"},$G=_({file:p(),line:T().optional(),component:p().optional()}),kG=_({path:p(),changeKind:R(NG),risk:O(R(fh)).default([])}),Lte=64*1024,DG={BROWSER:"browser",RENDERED:"rendered"},l_={RUNS_DIR:"runs",MANIFEST_FILE:"shots.jsonl",JPEG_QUALITY:.7,MAX_SIDE_PX:1600,MAX_PER_RUN:300,MAX_BYTES:1.5*1024*1024,FRAME_TOOL:"frame"},u_=_({file:p(),source:R(DG),width:T(),height:T(),sha256:p()}),zG=u_.extend({seq:T(),tool:p(),step:p().optional(),verdict:L().optional(),checkId:p().optional(),actionId:p().optional()}),PG=_({step:T(),anchor:p(),ok:L(),page:p().optional(),endPage:p().optional(),consequence:p().optional(),error:p().optional(),drift:p().optional(),screenshot:u_.optional()}),MG=_({startPath:p().optional(),steps:O(Q())}),UG=_({name:p(),template:p().optional(),status:R(yG),steps:T(),durationMs:T(),oracle:p().optional(),healed:_({from:p(),to:p(),consequenceVerified:L()}).optional(),evidenceRef:p().optional(),failureReason:p().optional(),stepResults:O(PG).optional(),recording:MG.optional(),recordingOmitted:L().optional()}),HG=_({kind:Bu(e=>{var t;return typeof e=="string"&&(t=AG[e])!=null?t:e},R(P).optional()),predicate:p(),status:Bu(e=>{var t;return typeof e=="string"&&(t=SG[e])!=null?t:e},R(Gn)),evidence:Q().optional(),declaredBeforeActing:L().optional(),expected:p().optional(),observed:p().optional(),grade:p().optional(),couldNotSee:O(p()).optional(),reason:p().optional(),checkId:p().optional(),actionId:p().optional(),intent:p().optional(),intentDerived:L().optional(),failedPart:T().int().min(0).optional(),screenshot:u_.optional(),supersedes:p().optional()}),FG=_({surface:R(fh),severity:R(wG),detail:p(),evidence:_({file:p().optional(),line:T().optional(),network:p().optional()}).optional(),gated:L().default(!1)}),BG=_({consoleErrors:O(_({level:p(),message:p(),at:T()})).default([]),networkAnomalies:O(_({method:p(),url:p(),status:T().optional(),issue:p()})).default([]),stateAssertions:O(_({store:p(),path:p(),expected:Q().optional(),actual:Q().optional(),ok:L()})).default([]),timeline:O(_({at:T(),kind:p(),summary:p()})).default([])}),GG=_({flow:p().optional(),step:T().optional(),expected:p(),actual:p(),sourceLocation:$G.optional(),suggestedPrompt:p()}),VG=_({status:R(KO),reasons:O(p()).default([]),confidence:R(CG),blockingRisks:T().default(0),checkId:p().optional(),supersedes:p().optional()}),jG=_({alg:p(),value:p(),signedAt:T()}),$te=_({schemaVersion:bt([H(bG),H(TG),H(_G)]),runId:xG,createdAt:T(),durationMs:T(),profile:R(LG),project:_({name:p(),framework:R(OG),commit:p().optional(),branch:p().optional(),env:R(IG).optional(),previewUrl:p().optional()}),agent:_({id:p(),kind:R(RG),model:p().optional()}),episodeId:p().optional(),agentSession:p().optional(),trigger:_({kind:R(vG),diffRef:p().optional(),note:p().optional()}),editEpoch:T().optional(),subject:lr.optional(),context:se(p(),Q()).optional(),changedFiles:O(kG).default([]),flows:O(UG).default([]),checks:O(HG).default([]),risks:O(FG).default([]),evidence:BG,repair:_({failurePackets:O(GG).default([])}).optional(),screenshots:O(zG).optional(),verdict:VG,signature:jG.optional(),disparity:O(jO).optional(),agentClaim:R(KO).optional()})});var KG,Xu,Ute,WG,ZG,YG,XG,Hte,qG,JG,QG,Fte,Bte,p_=y(()=>{"use strict";ce();Gt();Gu();d_();KG=O(p().refine(e=>!e.includes("="),{error:e=>`\`attrs\` takes attribute NAMES only, not \`name=value\` \u2014 got ${JSON.stringify(e.input)}. It PROJECTS each attribute onto the match, it does not filter on it. Drop the \`=value\` half and read the returned \`attrs\` map, or assert the value with an \`element\` predicate carrying \`value\`.`})),Xu=_({by:R(je).optional(),value:p().optional(),role:p().optional(),name:p().optional(),text:p().optional(),label:p().optional(),placeholder:p().optional(),testid:p().optional(),alt:p().optional(),component:p().optional(),attrs:KG.optional(),source:_({file:p(),line:T(),column:T().optional()}).strict().optional(),scope:p().optional(),self:L().optional(),matchCase:L().optional()}).strict(),Ute=_({ref:p(),role:p(),name:p(),nameTruncated:H(!0).optional()}),WG=_({name:p(),steps:O(p())}),ZG=_({surface:R(fh),paths:O(p()).optional(),note:p().optional()}),YG=_({owner:p().optional(),safety:O(p()).optional(),scope:O(p()).optional(),redact:O(p()).optional(),risk:O(ZG).optional()}),XG=_({testids:O(p()),signals:O(p()),stores:O(p()),flows:O(WG),governance:YG.optional()}),Hte=_({version:H(TO),generatedAt:T(),capabilities:XG}),qG=_({consoleErrors:T().optional(),networkErrors:T().optional(),driftSteps:T().optional()}),JG=_({kind:R(cO),name:p(),status:R(lO),at:T(),summary:p().optional(),evidence:qG.optional(),durationMs:T().optional()}),QG=_({flows:O(p()).optional(),routes:O(p()).optional(),bestObservability:_({percent:T(),at:T()}).optional()}),Fte=_({version:H(aO),learned:QG.optional(),runs:O(JG)}),Bte=Rt("kind",[_({kind:H(Ze.ASSERT_SIGNAL),name:p().min(1),dataMatches:se(p(),Q()).optional()}),_({kind:H(Ze.ASSERT_VISIBLE),testid:p().min(1)}),_({kind:H(Ze.ASSERT_STATE),statePath:p().min(1),store:p().min(1).optional(),equals:Q().optional()}),_({kind:H(Ze.ASSERT_NET),net:_({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:T().optional(),count:T().int().nonnegative().optional()})}),_({kind:H(Ze.MARK_DYNAMIC),testid:p().min(1)}),_({kind:H(Ze.SUCCESS_STATE),signal:p().min(1).optional(),testid:p().min(1).optional(),statePath:p().min(1).optional(),store:p().min(1).optional(),equals:Q().optional(),hold:L().optional(),net:_({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:T().optional(),count:T().int().nonnegative().optional()}).optional(),console:_({level:p().min(1).optional(),absent:L().optional()}).optional(),text:_({contains:p().min(1),scope:p().min(1).optional(),absent:L().optional(),visible:L().optional()}).optional()}),_({kind:H(Ze.INTENT),text:p().min(1)})])});function ZO(e,t){let n=WO(e),r=WO(t);return[...new Set([...Object.keys(n),...Object.keys(r)])].every(i=>n[i]===r[i])}function WO(e){var t,n;return P.NET===e.from?{...e,body:(t=e.body)!=null?t:h_.RESPONSE,method:(n=e.method)==null?void 0:n.toUpperCase()}:{...e}}var h_,hh,f_,m_,g_=y(()=>{"use strict";ce();Ko();h_={RESPONSE:"response",REQUEST:"request"},hh={VALUE:"value",NUMBER:"number"},f_=p().min(1),m_=Rt("from",[_({from:H(P.NET),urlContains:p().min(1),method:p().optional(),body:fe([h_.RESPONSE,h_.REQUEST]).optional(),path:f_}).strict(),_({from:H(P.SIGNAL),name:p().min(1),path:f_}).strict(),_({from:H(P.STATE),store:p().optional(),path:f_}).strict(),_({from:H(P.TEXT),scope:p().min(1)}).strict()])});var YO,E_,b_=y(()=>{"use strict";ce();_c();YO=_({op:R(Qb),value:T().finite(),tolerance:T().finite().nonnegative().optional()}).strict(),E_=Rt("property",[_({property:H("nonEmpty")}).strict(),_({property:H("oneOf"),values:O(Q()).min(1)}).strict(),_({property:H("withinTolerance"),of:T().finite(),tolerance:T().finite().nonnegative()}).strict(),_({property:H("matchesPattern"),pattern:p().min(1)}).strict(),_({property:H("type"),is:fe(["string","number","boolean","array","object"])}).strict(),_({property:H("changed")}).strict(),_({property:H("unchanged")}).strict(),_({property:H("increased"),by:YO.optional()}).strict(),_({property:H("decreased"),by:YO.optional()}).strict()])});function S_(e){if(e.kind!==void 0||typeof e[__]!="string")return e;let t={...e,kind:e[__]};return delete t[__],t}function A_(){var t;if(T_!==void 0)return T_;let e=new Map;for(let n of eI().options){let r=n.shape,o=String(r.kind.value),i=P.ELEMENT===o?qO:[];e.set(o,new Set([...Object.keys(r).filter(s=>s!=="kind"),...Object.keys((t=XO[o])!=null?t:{}),...i]))}return T_=e,e}function JO(e){let t=mh(e);if(t.length===0)return;let n=A_(),r=a=>{let l=n.get(a);return l!==void 0&&t.every(u=>l.has(u))},o=t.flatMap(a=>{let l=eV[a];return l===void 0?[]:[l]});if(1<o.length)return;let[i]=o;if(i!==void 0)return r(i)?i:void 0;let s=[...n.keys()].filter(r);return s.length===1?s[0]:void 0}function tV(e){let t=S_(e);return t.kind===void 0?JO(t):void 0}function nV(e){let t=S_(e),n=tV(e);return n===void 0?t:{...t,kind:n}}function iV(e){let t=JSON.stringify(e);if(e.trim().length===0)return{value:e,refusal:'an empty string names no check: empty text is on every page. Write the text the page must show: { kind: "text", contains: "Saved", visible: true }'};if(oV.test(e))return{value:e,refusal:`the string ${t} reads as a description of the outcome, so it was not checked as text. Write the exact text the page shows: { kind: "text", contains: "Saved" }, or the consequence by its kind (signal, net, route, state)`};let n=rV.find(r=>r.test.test(e));return n!==void 0?{value:e,refusal:`the string ${t} has two readings, so it was not guessed. Write the one you mean: ${n.example(t)} or { kind: "text", contains: ${t} }`}:{value:{kind:P.TEXT,contains:e,visible:!0},note:`${t} \u2192 { kind: "text", contains: ${t}, visible: true }`}}function aV(e){let t=mh(e),n=e[P.TEXT];if(t.length!==1||!gh(n))return;let r=mh(n);if(!(!r.includes("contains")||!r.every(o=>sV.has(o))))return{value:{...n,kind:P.TEXT},note:'{ text: { ... } } \u2192 { kind: "text", ... }'}}function cV(e){var r;if(Ws!==e.kind||e[Ws]===!1)return;let t={...e};delete t.kind,delete t[Ws];let n=JO(t);if(!(n===void 0||((r=A_().get(n))==null?void 0:r.has(Ws))!==!0))return{value:{...t,kind:n,[Ws]:!0},note:`kind: "${Ws}" \u2192 kind: "${n}", ${Ws}: true`}}function lV(e){let t;try{t=JSON.parse(e)}catch{t=void 0}if(!gh(t))return{value:e,refusal:'this string starts with { but is not a JSON object, so it was not read as text. Send the predicate as an object: { kind: "text", contains: "Saved" }'};let n=QO(t),r="a JSON string \u2192 the object it holds";return{...n,note:n.note===void 0?r:`${r}; ${n.note}`}}function QO(e){var n,r;if(typeof e=="string")return e.trimStart().startsWith("{")?lV(e):iV(e);if(!gh(e))return{value:e};let t=S_(e);return(r=(n=aV(t))!=null?n:cV(t))!=null?r:{value:e}}function uV(e){let t=mh(e).map(n=>`\`${n}\``);return`this predicate has no \`kind\`, and its keys (${t.length>0?t.join(", "):"none"}) do not fit exactly one kind. Add \`kind\`: one of ${[...A_().keys()].join(", ")}`}function dV(e,t){let n=QO(e);if(n.refusal!==void 0)return t.addIssue({code:uo.custom,message:n.refusal}),e;if(!gh(n.value))return n.value;let r=n.value,o=nV(r);o.kind===void 0&&t.addIssue({code:uo.custom,message:uV(o)});let i=typeof o.kind=="string"?o.kind:"",s=XO[i],a=o;if(s!==void 0){a={...o};for(let[l,u]of Object.entries(s))a[l]!==void 0&&(a[u]===void 0&&(a[u]=a[l]),delete a[l])}return P.ELEMENT===i?pV(a):a}function pV(e){if(e.query!==void 0)return e;let t=qO.filter(o=>e[o]!==void 0);if(t.length===0)return e;let n={...e},r={};for(let o of t)r[o]=n[o],delete n[o];return n.query=r,n}function eI(){return Rt("kind",[_({kind:H(P.ELEMENT),query:Xu,state:R(ge).optional(),absent:L().optional()}).strict(),_({kind:H(P.TEXT),contains:p().optional(),visible:L().optional(),absent:L().optional(),scope:p().optional(),self:L().optional(),satisfies:E_.optional(),ignoreCase:L().optional()}).strict(),_({kind:H(P.NET),method:p().optional(),urlContains:p().optional(),status:T().optional(),ok:L().optional(),since:T().optional(),count:T().int().nonnegative().optional(),bodyContains:p().min(1).optional(),bodyMatches:se(p(),Q()).optional(),requestBodyContains:p().min(1).optional(),requestBodyMatches:se(p(),Q()).optional(),repeatable:L().optional()}).strict(),_({kind:H(P.ROUTE),pathname:p().optional(),contains:p().optional(),since:T().optional()}).strict(),_({kind:H(P.CONSOLE),level:p().optional(),contains:p().min(1).optional(),absent:L().optional(),since:T().optional()}).strict(),_({kind:H(P.ANIMATION),name:p().optional(),target:p().optional(),completed:L().optional(),since:T().optional()}).strict(),_({kind:H(P.SIGNAL),name:p().optional(),dataMatches:se(p(),Q()).optional(),count:T().int().nonnegative().optional(),since:T().optional()}).strict(),_({kind:H(P.STATE),store:p().optional(),path:p(),equals:Q().optional(),satisfies:E_.optional()}).strict(),_({kind:H(P.SETTLED),quietMs:T().positive().optional(),channel:fe([Vb.NETWORK,Vb.APP]).optional()}).strict(),_({kind:H(P.COMPARE),left:m_,right:m_,as:fe([hh.VALUE,hh.NUMBER]).optional(),tolerance:T().finite().nonnegative().optional()}).strict(),_({kind:H(P.ALL_OF),predicates:O(qu).min(1)}).strict(),_({kind:H(P.ANY_OF),predicates:O(qu).min(1)}).strict(),_({kind:H(P.NOT),predicate:qu}).strict()])}function fV(e,t){if(typeof e!="object"||e===null)return;let n=e;if(P.NET===n.kind){hV(n.repeatable,n.urlContains,t);return}if(P.COMPARE===n.kind){mV(e,t);return}P.TEXT===n.kind&&(n.contains===void 0&&n.satisfies===void 0&&t.addIssue({code:uo.custom,message:"a text predicate must say WHAT about the text: `contains` for a substring, `satisfies` for a property of it. With neither it matches any element with any text and cannot fail"}),n.satisfies!==void 0&&n.contains===void 0&&n.scope===void 0&&t.addIssue({code:uo.custom,message:"`satisfies` needs a subject: add `scope` (the element whose text is tested, with `self: true` to read the scope root itself) or a `contains` that selects one. Without either, the locator is every element on the page and the property would run against whichever one happened to match first"}))}function hV(e,t,n){e===!0&&(typeof t=="string"&&t.trim().length>0||n.addIssue({code:uo.custom,message:'`repeatable: true` needs a non-empty `urlContains` naming the read endpoint, for example `{ kind: "net", method: "POST", urlContains: "/graphql", repeatable: true }`. Without one it would excuse every request in the window from duplicate-request, a real double submit included'}))}function mV(e,t){ZO(e.left,e.right)&&t.addIssue({code:uo.custom,message:"`left` and `right` read the same value, so this comparison agrees with itself on every page and cannot fail. Compare two different readings: what the page shows against what the server answered, or what was sent against what came back"}),e.tolerance!==void 0&&hh.NUMBER!==e.as&&t.addIssue({code:uo.custom,message:'`tolerance` applies to a numeric comparison only: add `as: "number"`'})}var XO,__,qO,eV,T_,mh,Ws,rV,oV,gh,sV,qu,x_=y(()=>{"use strict";ce();p_();Gt();g_();Ko();b_();XO={[P.TEXT]:{text:"contains",value:"contains",query:"contains"},[P.ROUTE]:{path:"pathname",urlContains:"contains",url:"contains",pathContains:"contains"},[P.NET]:{url:"urlContains",responseBodyMatches:"bodyMatches",pathContains:"urlContains"},[P.CONSOLE]:{textContains:"contains"},[P.SIGNAL]:{data:"dataMatches"},[P.ALL_OF]:{of:"predicates",allOf:"predicates"},[P.ANY_OF]:{of:"predicates",anyOf:"predicates"},[P.NOT]:{of:"predicate",not:"predicate"}},__="type",qO=Object.keys(Xu.shape);eV={text:P.TEXT,allOf:P.ALL_OF,anyOf:P.ANY_OF,not:P.NOT};mh=e=>Object.keys(e).filter(t=>e[t]!==void 0);Ws="absent",rV=[{test:/:\/\//,example:e=>`{ kind: "route", contains: ${e} }`},{test:/^\//,example:e=>`{ kind: "route", pathname: ${e} }`},{test:/^[#.[]/,example:e=>`{ kind: "element", query: { scope: ${e}, self: true } }`},{test:/^[\w-]+:[\w:.-]+$/,example:e=>`{ kind: "signal", name: ${e} }`}],oV=/\b(should|must|appears?|shown|shows|displays|displayed|navigates|redirects|succeeds|expect(ed)?)\b/i,gh=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);sV=new Set(["contains","scope","visible"]);qu=Qf(()=>Bu(dV,eI()).superRefine(fV))});function tI(e){return`${e} is an element ref, which only exists in the session that minted it \u2014 scope by a CSS selector or a testid so the flow can check it again`}function Eh(e){let t=(n,r)=>r!==void 0&&y_.test(r)?`${n} "${r}"`:void 0;switch(e.kind){case P.ALL_OF:case P.ANY_OF:for(let n of e.predicates){let r=Eh(n);if(r!==void 0)return r}return;case P.NOT:return Eh(e.predicate);case P.TEXT:return t("text.scope",e.scope);case P.ELEMENT:return t("element.query.scope",e.query.scope);case P.ANIMATION:return t("animation.target",e.target);case P.COMPARE:for(let[n,r]of[["left",e.left],["right",e.right]]){if(P.TEXT!==r.from)continue;let o=t(`compare.${n}.scope`,r.scope);if(o!==void 0)return o}return;default:return}}var y_,w_=y(()=>{"use strict";Ko();y_=/^e\d+$/});function rI(e){let t=[];if(e.signal!==void 0){let s={kind:P.SIGNAL,name:e.signal};e.signalData!==void 0&&(s.dataMatches=e.signalData),e.signalCount!==void 0&&(s.count=e.signalCount,t.push({kind:P.SETTLED})),t.push(s)}if(e.route!==void 0){let s={kind:P.ROUTE};return e.route.pathname!==void 0&&(s.pathname=e.route.pathname),e.route.contains!==void 0&&(s.contains=e.route.contains),s}if(e.net!==void 0){let s={kind:P.NET};e.net.method!==void 0&&(s.method=e.net.method),e.net.urlContains!==void 0&&(s.urlContains=e.net.urlContains),e.net.status!==void 0&&(s.status=e.net.status),e.net.count!==void 0&&(s.count=e.net.count,t.push({kind:P.SETTLED})),t.push(s)}if(e.console!==void 0){let s={kind:P.CONSOLE};e.console.level!==void 0&&(s.level=e.console.level),e.console.absent!==void 0&&(s.absent=e.console.absent,e.console.absent&&t.push({kind:P.SETTLED})),t.push(s)}let n=e.state;if(n!==void 0){let s={kind:P.STATE,path:n.path};n.store!==void 0&&(s.store=n.store),n.equals!==void 0&&(s.equals=n.equals),n.hold===!0&&t.push({kind:P.SETTLED}),t.push(s)}let r=e.element;if(r!==void 0){let s={};r.testid!==void 0&&(s.testid=r.testid),r.role!==void 0&&(s.role=r.role),r.name!==void 0&&(s.name=r.name),Object.keys(s).length>0&&t.push({kind:P.ELEMENT,query:s})}let o=e.text;if(o!==void 0){let s={kind:P.TEXT,contains:o.contains};o.scope!==void 0&&(s.scope=o.scope),o.visible!==void 0&&(s.visible=o.visible),o.absent===!0&&(s.absent=!0,t.push({kind:P.SETTLED})),t.push(s)}let[i]=t;if(t.length!==0)return t.length===1&&i!==void 0?i:{kind:P.ALL_OF,predicates:t}}var nI,v_=y(()=>{"use strict";ce();Ko();nI=_({route:_({pathname:p().optional(),contains:p().optional()}).optional(),signal:p().optional(),signalData:se(p(),Q()).optional(),signalCount:T().int().nonnegative().optional(),net:_({method:p().optional(),urlContains:p().optional(),status:T().optional(),count:T().int().nonnegative().optional()}).strict().optional(),console:_({level:p().optional(),absent:L().optional()}).strict().optional(),element:_({testid:p().optional(),role:p().optional(),name:p().optional()}).strict().optional(),text:_({contains:p().min(1),scope:p().optional(),absent:L().optional(),visible:L().optional()}).strict().optional(),state:_({store:p().optional(),path:p(),equals:Q().optional(),hold:L().optional()}).strict().optional()}).strict()});var oI=y(()=>{"use strict"});var sI,gV,N_,iI,EV,aI,bV,pne,cI=y(()=>{"use strict";ce();Gu();Kb();Gt();x_();w_();v_();Gu();oI();sI=Rt("kind",[_({kind:H(Dr.TESTID),value:p().min(1),of:T().int().min(2).optional(),nth:T().int().min(0).optional(),source:_({file:p(),line:T(),column:T().optional()}).optional()}),_({kind:H(Dr.ROLE),role:p().min(1),name:p().optional(),nth:T().int().min(0).optional(),of:T().int().min(2).optional(),alsoRoles:O(p().min(1)).min(1).optional(),within:O(p().min(1)).min(1).max(3).optional()}).refine(e=>e.alsoRoles===void 0||e.nth===void 0,{error:"`alsoRoles` cannot be used with `nth`: a position counts the controls of one role only."}),_({kind:H(Dr.SIGNAL),name:p().min(1)}),_({kind:H(Dr.COMPONENT),component:p().optional(),source:_({file:p(),line:T(),column:T().optional()}).optional(),role:p().optional(),name:p().optional(),nth:T().int().min(0).optional(),of:T().int().min(2).optional(),text:p().min(1).max(200).optional()})]),gV=qu.superRefine((e,t)=>{let n=Eh(e);n!==void 0&&t.addIssue({code:uo.custom,message:tI(n)})}),N_=bt([gV,nI.transform(e=>rI(e))]),iI=O(N_).transform(e=>e.filter(t=>t!==void 0)),EV=_({tool:p(),anchor:sI,source:_({file:p().min(1),line:T().int().positive().optional()}).optional(),id:p().min(1).optional(),effect:R(pO).optional(),healed:_({from:p(),at:T()}).optional(),writes:L().optional(),action:R(k).optional(),args:se(p(),Q()).optional(),expect:N_.optional(),degraded:L().optional(),timeoutMs:T().int().nonnegative().optional(),burstMs:T().nonnegative().optional(),invoke:p().min(1).optional(),navigate:p().min(1).optional(),request:_({method:p().min(1),url:p().min(1),body:p().optional(),contentType:p().optional(),anonymous:L().optional(),as:p().min(1).optional()}).optional(),response:_({status:bt([T().int(),O(T().int()).min(1)]).optional(),contains:p().optional(),absent:p().optional()}).optional(),page:p().optional(),endPage:p().optional()}),aI=EV.extend({steps:Qf(()=>O(aI).optional())}),bV=_({version:T().int().refine(e=>uO.has(e)),name:p(),intent:p().optional(),intentDerived:L().optional(),intentId:p().optional(),projectId:p().optional(),startPath:p().optional(),template:p().min(1).optional(),fixture:p().optional(),requires:iI.optional(),ensures:iI.optional(),author:_({agent:p().min(1).optional(),person:p().min(1).optional()}).optional(),createdAt:T(),steps:O(aI),signalTimeoutMs:T().int().positive().optional(),success:N_.optional(),dynamic:O(sI).optional(),labels:O(p().min(1)).optional(),needs:O(p().min(1)).optional(),status:fe([nh.ACTIVE,nh.QUARANTINED,nh.DRAFT]).optional(),learned:O(_({kind:p().min(1),step:T().int().min(-1),state:fe(["open","guarded"]),cleanRuns:T().int().nonnegative().optional()})).optional(),knownBugs:O(_({id:p().min(1),summary:p().min(1),assertions:O(p())})).optional(),quarantine:_({reason:p().min(1),since:p().min(1),owner:p().min(1),until:p().optional()}).optional()}),pne=_({name:p(),flow:bV})});var lI=y(()=>{"use strict"});var uI=y(()=>{"use strict"});var dI=y(()=>{"use strict"});var xn,R_,Ju,_V,bne,pI,Qu,fI,O_,bh,_h,ed=y(()=>{"use strict";xn={FETCH:"fetch",XHR:"xhr",BEACON:"beacon",IPC:"ipc",DOCUMENT:"document",DOWNLOAD:"download",NAVIGATION:"navigation"},R_="ipc://",Ju={OK:200,ERROR:500},_V={NEXT_DEV_OVERLAY:"/__nextjs",NEXT_HMR:"/_next/webpack-hmr",NEXT_HMR_CHUNKS:"/_next/static/webpack/",WEBPACK_HOT_UPDATE:".hot-update.",VITE_CLIENT:"/@vite/",VITE_REACT_REFRESH:"/@react-refresh",VITE_PING:"/__vite_ping"},bne=Object.values(_V),pI="urlRaw",Qu="requestShape",fI="none",O_="Next-Action",bh="nextAction",_h={FROM_DEPARTED_DOCUMENT:"fromDepartedDocument",PAGE_UNLOADED:"pageUnloaded"}});var Ane,hI=y(()=>{"use strict";ed();Ane=new Set([xn.FETCH,xn.XHR])});var mI,gI=y(()=>{"use strict";mI="target"});var ur,I_=y(()=>{"use strict";ur={ERROR_STATUS:"error-status",STREAMING:"streaming",NOT_TEXT:"not-text",UNREADABLE:"unreadable"}});var EI,bI,_I,TI=y(()=>{"use strict";EI="preAttach",bI="droppedPreAttach",_I="__reticlePreAttach"});var Tc,Th,SI,AI=y(()=>{"use strict";Tc="data-reticle-source",Th="__RETICLE_ROOT__",SI="__RETICLE_SDK_VERSION__"});var Zs,xI,yI,wI=y(()=>{"use strict";Zs="data-testid",xI=["data-test-subj","data-cy","data-test","data-qa","data-e2e"],yI=/^[a-zA-Z_][\w-]*$/});var TV,One,vI=y(()=>{"use strict";TV="3.10.2",One=`reticlehq/reticle/action@v${TV}`});var NI,RI=y(()=>{"use strict";Gt();NI=new Set([v.DOM_TEXT,v.ANIM_START,v.ANIM_END,v.RENDER_COMMIT,v.PAGE_HEALTH,v.SCROLL_POSITION])});function Sh(e){let t=e.text;if(typeof t=="string"&&0<t.length)return t;let n=e.key;return typeof n=="string"&&0<n.length?n:SV}function C_(e){let t=e.keys;if(!Array.isArray(t))return[];let n=[];for(let r of t)typeof r=="string"&&0<r.length&&n.push(r);return n}function II(e){let t=e.modifiers;if(!Array.isArray(t))return[];let n=new Set;for(let r of t){if(typeof r!="string")continue;let o=wV[r.toLowerCase()];o!==void 0&&n.add(o)}return yV.filter(r=>n.has(r))}function vV(e){let t=e.modifiers;return Array.isArray(t)&&0<t.length}function CI(e){if(e[AV]===!0||vV(e))return!0;let t=C_(e);if(1<t.length)return!0;if(t.length===1){let n=t[0];return n!==void 0&&OI.has(n.toLowerCase())}return OI.has(Sh(e).toLowerCase())}var SV,AV,xV,OI,yV,wV,L_=y(()=>{"use strict";SV="Enter",AV="document",xV=["Escape","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OI=new Set(xV.map(e=>e.toLowerCase()));yV=["Alt","Control","Meta","Shift"],wV={alt:"Alt",option:"Alt",opt:"Alt",control:"Control",ctrl:"Control",meta:"Meta",cmd:"Meta",command:"Meta",super:"Meta",win:"Meta",shift:"Shift"}});function $_(e){let t=e.button;if(t===void 0)return dr.LEFT;if(typeof t!="string")return;let n=t.toLowerCase();return DI.find(r=>r===n)}function zI(e,t){let n=$_(t);if(n===void 0)return`unsupported click button ${JSON.stringify(t.button)}: use ${DI.join(", ")}`;if(e===k.DBLCLICK&&n!==dr.LEFT)return"a dblclick uses the left button only: a browser sends no dblclick for another button";let r=t.modifiers;if(Array.isArray(r)){let o=r.filter(i=>II({modifiers:[i]}).length===0);if(0<o.length)return`unsupported click modifier ${JSON.stringify(o[0])}: use Meta, Control, Shift or Alt`}}function PI(e){if(typeof e!="object"||e===null||Array.isArray(e))return;let{x:t,y:n}=e;return $I(t)&&$I(n)?{x:t,y:n}:void 0}function Ys(e,t){let n=PI(e[t]);return n===void 0?void 0:{x:kI(n.x),y:kI(n.y)}}function MI(e,t){return{x:e.x+e.width*t.x,y:e.y+e.height*t.y}}function UI(e,t){for(let n of[Fi,Ah])if(t[n]!==void 0){if(Ah===n&&k.DRAG!==e)return`\`${n}\` is the end point of a drag only: use \`${Fi}\` for a point of a ${e}`;if(!LI.has(e))return`\`${n}\` is a point for a pointer action (${[...LI].join(", ")}), not for a ${e}`;if(PI(t[n])===void 0)return`\`${n}\` must be { x, y }: two numbers, each a fraction of the element's box from 0 to 1`}}var dr,DI,Fi,Ah,LI,$I,kI,HI=y(()=>{"use strict";Gt();L_();dr={LEFT:"left",MIDDLE:"middle",RIGHT:"right"},DI=Object.values(dr);Fi="at",Ah="to",LI=new Set([k.CLICK,k.DBLCLICK,k.HOVER,k.TAP,k.DRAG]),$I=e=>typeof e=="number"&&Number.isFinite(e);kI=e=>Math.min(1,Math.max(0,e))});function Sc(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?0:Math.min(e,3e4)}var FI=y(()=>{"use strict"});var NV,Une,RV,Hne,BI=y(()=>{"use strict";ce();Zo();NV="https://app.reticle.sh",Une=`Reticle Cloud (not linked): keeps this history across runs and agents, adds a team view and the hosted Harness. Plans and prices: ${NV}`,RV=_({claim:p(),verified:R(Gn),evidence:p().optional()}),Hne=_({verified:R(Gn),claims:O(RV),caught:O(p()),flows:_({saved:O(p()),replayed:O(_({name:p(),verified:R(Gn)}))}),memory:_({written:T().int().min(0),read:T().int().min(0)}),wallMs:T().int().min(0),firstVerdictMs:T().int().min(0).optional(),cloud:p().optional()})});var Tt,Gne,GI=y(()=>{"use strict";Zo();Tt={CODE:"code",ENVIRONMENT:"environment",HARNESS:"harness",COULD_NOT_SEE:"could-not-see",NONE:"none"},Gne={[ot.ASSERTION_FAILED]:Tt.CODE,[ot.CONTRADICTED]:Tt.CODE,[ot.OUTCOME_PENDING]:Tt.ENVIRONMENT,[ot.UNSETTLED]:Tt.ENVIRONMENT,[ot.VERSION_SKEW]:Tt.HARNESS,[ot.WINDOW_CLOSED_EARLY]:Tt.HARNESS,[ot.DIALOG_DECLINED]:Tt.HARNESS,[ot.NOTHING_DECLARED]:Tt.HARNESS,[ot.VACUOUS_GRADE]:Tt.HARNESS,[ot.ALREADY_TRUE]:Tt.HARNESS,[ot.HIDDEN_MATCH]:Tt.HARNESS,[ot.CAPABILITY_ABSENT]:Tt.COULD_NOT_SEE,[ot.OBSERVATION_LOST]:Tt.COULD_NOT_SEE,[ot.UNCLEAN_CAPTURE]:Tt.COULD_NOT_SEE,[ot.EVIDENCE_INCOMPLETE]:Tt.COULD_NOT_SEE,[ot.ABSENCE_BLIND_SPOT]:Tt.COULD_NOT_SEE,[ot.OUTCOME_UNREAD]:Tt.COULD_NOT_SEE,[ot.INCONCLUSIVE]:Tt.COULD_NOT_SEE,[ot.PROVED]:Tt.NONE}});var Xs,OV,IV,CV,jne,VI=y(()=>{"use strict";ce();Xs={CONNECTING:"connecting",WAITING_FOR_APP:"waiting_for_app",FLOWS_FOUND:"flows_found",FLOW_STARTED:"flow_started",FLOW_FINISHED:"flow_finished",GRADING:"grading",PUSHED:"pushed"},OV=120,IV=200,CV=_({phase:fe([Xs.CONNECTING,Xs.WAITING_FOR_APP,Xs.FLOWS_FOUND,Xs.FLOW_STARTED,Xs.FLOW_FINISHED,Xs.GRADING,Xs.PUSHED]),index:T().int().nonnegative().optional(),total:T().int().nonnegative().optional(),name:p().max(OV).optional(),ok:L().optional(),at:T().int().nonnegative()}),jne=_({runId:p().min(1).max(200),events:O(CV).max(IV)})});function jI(e){return e===Qe.ACTIVE||e===Qe.PAUSED||e===Qe.ENDED}var Qe,td,ln,qs,KI,WI,Js,k_=y(()=>{"use strict";Qe={ACTIVE:"active",PAUSED:"paused",ENDED:"ended"};td="auto",ln={PAUSE:"pause",RESUME:"resume",END:"end",MESSAGE:"message",REPLAY:"replay",SYNC:"sync",SIGNIN:"signin",HARNESS:"harness",HARNESS_RUN:"harness-run",HARNESS_STOP:"harness-stop",HARNESS_LINK:"harness-link"},qs={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"},KI={HEARTBEAT_MS:5e3,STALE_THRESHOLD_MS:12e3,LEDGER_NOTICE_FRACTION:.25},WI={IDLE_END_MS:3e5,IDLE_END_MIN_MS:5e3,REAP_INTERVAL_MS:5e3,BRIDGE_LOST_MS:15e3,DAEMON_IDLE_SHUTDOWN_MS:3e5,DAEMON_IDLE_CHECK_MS:3e4,DAEMON_AGENT_RECENT_MS:18e5},Js={VISIBILITY:"visibilitychange",FOCUS:"focus",BLUR:"blur",HEARTBEAT:"heartbeat",INITIAL:"initial"}});var Vn,zt,Bi,nd,yn,ZI,xh,Ac,wn,rd=y(()=>{"use strict";Vn={BUBBLE:"bubble",COLLAPSED:"collapsed",EXPANDED:"expanded"},zt={CHAT:"chat",FLOWS:"flows",NOTES:"notes",HARNESS:"harness",SETTINGS:"settings",REPORT:"report",ACCOUNT:"account",NONE:"none"},Bi={RAIL:"rail",HARNESS:"harness",HEADER:"header"},nd={ON:"on",OFF:"off"},yn={SHOWN:"shown",HIDDEN:"hidden",REMOVED:"removed"},ZI="reload to restore",xh={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},Ac={PLAYING:"playing",PASSED:"passed",FAILED:"failed"},wn={PENDING:"pending",RUNNING:"running",PASSED:"passed",FAILED:"failed",BLOCKED:"blocked",NOT_TAKEN:"not-taken",UNDECIDED:"undecided"}});var Gi,Yne,D_,Xne,qne,YI=y(()=>{"use strict";Gi="[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]",Yne=`${Gi}{display:none !important}`,D_="__reticlePointerHeld",Xne=`(() => { const held = []; const seen = new Set(); for (const host of document.querySelectorAll(${JSON.stringify(Gi)})) { for (const el of [host, ...host.querySelectorAll('*')]) { if (seen.has(el) || !el.style) continue; seen.add(el); held.push([el, el.style.getPropertyValue('pointer-events'), el.style.getPropertyPriority('pointer-events')]); el.style.setProperty('pointer-events', 'none', 'important'); } } window.${D_} = held; })()`,qne=`(() => { for (const [el, value, priority] of window.${D_} ?? []) { if (value) el.style.setProperty('pointer-events', value, priority); else el.style.removeProperty('pointer-events'); } delete window.${D_}; })()`});var z_,XI,LV,$V,kV,ere,tre,Qs,yh,P_=y(()=>{"use strict";ce();rd();z_={TAB:"tab",HEADLESS:"headless",HEADED:"headed"},XI={LOCAL:"local",PLATFORM:"platform"},LV=2e3,$V=128,kV=500,ere={target:fe([z_.TAB,z_.HEADLESS,z_.HEADED]),mode:fe([XI.LOCAL,XI.PLATFORM]),url:p().url().refine(e=>/^https?:/i.test(e)),hud:fe([yn.SHOWN,yn.HIDDEN,yn.REMOVED]),persona:p().min(1).max(LV),maxSteps:T().int().min(1).max(kV),record:L(),plan:p().min(1).max($V),confirmDangerous:L()},tre=_({seq:T().int().nonnegative(),tool:p().min(1).max(100),args:se(p(),Q()).default({})}),Qs={SOURCE:"source",TESTID:"testid"},yh="file:line source mapping"});var qI,JI=y(()=>{"use strict";qI={FULL_TEXT:"fullText"}});var wh,e0,t0,QI,ore,n0=y(()=>{"use strict";wh="https://calendar.app.google/h9NRDbBBQetyTzWM6",e0="hey@reticle.sh",t0="mailto:hey@reticle.sh?subject=Reticle%20feedback",QI='npx @reticlehq/server feedback --contact you@company.com "what you are building"',ore={HUMAN:`Stuck, or want Reticle to work differently? Talk to the founder: ${wh} \xB7 or send a note with your email: ${QI}`,AGENT:`If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (${wh}) or a note with their email (${QI}). Offer it; never book a call or submit an email for them.`}});var r0,sre,o0=y(()=>{"use strict";r0="reticle.determinism",sre=Date.UTC(2026,0,1)});function i0(e){let t="";for(let n=0;n<8;n++){let r=Math.floor(e()*M_.length);t+=M_[Math.min(Math.max(r,0),M_.length-1)]}return t}var M_,s0=y(()=>{"use strict";M_="0123456789abcdefghijklmnopqrstuvwxyz"});var a0=y(()=>{"use strict"});function U_(e){return DV.test(e)}function MV(e){let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/[\s-]+/g,"[\\s_-]+");return PV.test(e)?t:`(?<!${c0})${t}(?!${c0})`}function l0(e){let t=new Set;for(let n of e!=null?e:[]){let r=n.trim().toLowerCase();r.length>0&&t.add(r)}return t}function u0(e,t){var s,a;let n=l0((s=e==null?void 0:e.keys)==null?void 0:s.filter(l=>typeof l=="string")),r=((a=e==null?void 0:e.keys)!=null?a:[]).filter(l=>l instanceof RegExp),o=l0(e==null?void 0:e.allow),i=[...o].filter(l=>U_(l)&&!n.has(l));return i.length>0&&t!==void 0&&t(`[reticle] redact.allow is exempting ${i.join(", ")} from redaction. The default rule treats ${i.length===1?"that key":"those keys"} as a credential, so ${i.length===1?"its value":"their values"} will now reach the agent transcript and the on-disk journal in cleartext.`),{isSensitiveKey:l=>{let u=l.toLowerCase();if(n.has(u))return!0;for(let d of r)if(d.lastIndex=0,d.test(l))return!0;return o.has(u)?!1:U_(l)}}}function d0(e){H_=e}function St(e){return H_===void 0?U_(e):H_.isSensitiveKey(e)}function FV(e){return new TextEncoder().encode(e).byteLength}function BV(e){if(!/^data:/i.test(e))return;let t=e.indexOf(","),n=t===-1?e.slice(5):e.slice(5,t),[r="",...o]=n.split(";"),i=/^[\w.+-]+\/[\w.+-]+$/.test(r)?r:"text/plain",s=o.some(l=>l.toLowerCase()==="base64")?";base64":"",a=t===-1?"":e.slice(t+1);return`data:${i}${s},<\u2026${String(FV(a))} bytes\u2026>`}function pr(e,t=St){var x;let n=BV(e);if(n!==void 0)return n;let r=e.indexOf("#"),o=r===-1?"":e.slice(r),i=r===-1?e:e.slice(0,r),s=i.indexOf("?"),a=s===-1?i:i.slice(0,s),l=s===-1?"":i.slice(s+1),u=!1,d=a,f=/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i.exec(a);f!==null&&(d=`${(x=f[1])!=null?x:""}${Ne}@${a.slice(f[0].length)}`,u=!0);let m=l;if(l!==""){let w=new URLSearchParams(l),N=!1;for(let C of[...w.keys()])t(C)&&(w.set(C,Ne),N=!0);N&&(m=w.toString(),u=!0)}let h=d.split("/");for(let w=0;w+1<h.length;w++){let N=h[w],C=h[w+1];N!==void 0&&C!==void 0&&C.length>=HV&&UV.test(N)&&(h[w+1]=Ne,u=!0)}let g=o;if(o.length>1&&(g=o.replace(/(^|[#&?/])([A-Za-z0-9_.-]+)=([^&\s]+)/g,(w,N,C)=>t(C)?`${N}${C}=${Ne}`:w),g!==o&&(u=!0)),!u)return e;let b=s===-1?"":`?${m}`;return`${h.join("/")}${b}${g}`}function fr(e,t=St){let n=pr(e,t);return n===e?{url:n}:{url:n,[pI]:e}}function p0(e){var r;let t=new Set,n=[];for(let o of(r=e==null?void 0:e.keys)!=null?r:[]){if(typeof o!="string")continue;let i=o.trim();if(i.length===0||i.length>B_)continue;let s=i.toLowerCase();if(!t.has(s)&&(t.add(s),n.push(i),n.length>=F_))break}return n}function po(e){return e.replace(GV,Ne)}var DV,zV,PV,c0,pre,H_,UV,HV,F_,B_,GV,G_=y(()=>{"use strict";Gt();ed();DV=/password|passwd|passcode|pass[-_]?phrase|(?:otp|totp|mfa|recovery|backup)[-_]?codes?|(?:^|[-_])(?:otp|totp)(?=$|[-_])|secret|(?:(?:access|refresh|auth|bearer|api|id|session|csrf|client)[-_]?tokens?|(?:^|[-_])tokens?(?=$|[-_]))|session[-_]?id|(?:^|[-_])(?:sid|pwd|jwt)(?=$|[-_])|authorization|(?:^|[-_])(?:set[-_])?cookie(?=$|[-_])|api[-_]?key|access[-_]?key|private[-_]?key|client[-_]?secret|credit[-_]?card|card[-_]?(?:number|num|no|pan)(?=$|[-_])|(?:^|[-_])(?:card|pan)(?=$|[-_])|cvv|cvc|ssn|(?:^|[-_])(?:signature|sig)$|(?:^|[-_])credential$|x-(?:amz|goog)-(?:signature|credential|security-token)$/i;zV=["\u043F\u0430\u0440\u043E\u043B\u044C","\u0433\u0430\u0441\u043B\u043E","contrase\xF1a","contrasena","mot de passe","passwort","kennwort","senha","palavra-passe","wachtwoord","has\u0142o","haslo","heslo","jelsz\xF3","\u015Fifre","sifre","parola","l\xF6senord","losenord","adgangskode","passord","salasana","\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2","\u05E1\u05D9\u05E1\u05DE\u05D4","\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631","\u0915\u0942\u091F\u0936\u092C\u094D\u0926","\u092A\u093E\u0938\u0935\u0930\u094D\u0921","\u09AA\u09BE\u09B8\u0993\u09AF\u09BC\u09BE\u09B0\u09CD\u09A1","\u30D1\u30B9\u30EF\u30FC\u30C9","\u5BC6\u7801","\u5BC6\u78BC","\uBE44\uBC00\uBC88\uD638","m\u1EADt kh\u1EA9u","kata sandi","katalaluan","\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19","pin","otp","\u043A\u043E\u0434","c\xF3digo"],PV=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Hebrew}]/u,c0="[\\p{L}\\p{M}\\p{N}]";pre=new RegExp(zV.map(MV).join("|"),"iu");UV=/^(reset|verify|verification|confirm|activate|invite|magic|magiclink|token|key|oauth|unsubscribe|password)$/i,HV=12;F_=64,B_=128;GV=/eyJ[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}|(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}|sk-(?:ant|proj|svcacct|admin)-[A-Za-z0-9_-]{20,}|(?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,}|AIza[0-9A-Za-z_-]{35}|xox[baprs]-[A-Za-z0-9-]{10,}|ya29\.[A-Za-z0-9._-]{20,}/g});var fo,vh=y(()=>{"use strict";fo={WEB:"web",WEBVIEW:"webview",NATIVE:"native",SERVICE:"service"}});function V_(){return[$.UI,$.NET,$.STATE,$.SIGNAL,$.LOG,$.ROUTE,$.TIME]}var Ere,bre,Nh=y(()=>{"use strict";_c();Ko();Ere={[P.ELEMENT]:[$.UI],[P.TEXT]:[$.UI],[P.SIGNAL]:[$.SIGNAL],[P.NET]:[$.NET],[P.STATE]:[$.STATE],[P.ROUTE]:[$.ROUTE],[P.CONSOLE]:[$.LOG],[P.ANIMATION]:[$.UI,$.TIME],[P.SETTLED]:[$.TIME,$.NET],[P.COMPARE]:[$.UI,$.NET,$.STATE,$.SIGNAL],[P.ALL_OF]:V_(),[P.ANY_OF]:V_(),[P.NOT]:V_()};bre=Object.fromEntries(Object.entries(Yb).map(([e,t])=>[e,t.independence]))});var f0,Rh,Oh,Ih=y(()=>{"use strict";f0={DEVELOPMENT:"development",PRODUCTION:"production"},Rh={OBSERVE:"observe",ACT:"act"},Oh={INSTALLED:"installed",INJECTED:"injected"}});function j_(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");if(WV.includes(t))return!0;let n=t.split(".");return YV===n.length&&ZV===n[0]&&n.every(r=>{if(!/^\d{1,3}$/.test(r))return!1;let o=Number(r);return o>=0&&o<=XV})}function qV(e){let t=e.toLowerCase();return t.endsWith(h0)&&t.length>h0.length&&!t.startsWith(".")}function b0(e,t){return j_(t)||qV(t)?!0:JV.includes(e.toLowerCase())}function n4(e){for(let t=e.lastIndexOf(".");1<=t;t=e.lastIndexOf(".",t-1)){let n=t+1,r="";for(;n<e.length&&t4.test(e.charAt(n));)r+=e.charAt(n).toLowerCase(),n+=1;if(!QV.has(r))continue;let o=e.charAt(n);if(o===""||o==="."||o==="-")return n}return 0}function od(e){return e.replace(e4,t=>{let n=n4(t);return n===0?t:` ${t.slice(n)}`})}function _0(e,t){return t!==void 0&&E0.has(t.trim().toLowerCase())?!1:jV.test(e.replace(g0," "))}function T0(e){return r4.test(e)}function S0(e){return A0(e)||KV.test(e.replace(g0," "))}function A0(e){let t;try{t=new URL(e).hostname.toLowerCase()}catch{return!1}return i4.some(n=>t===n||t.endsWith(`.${n}`))}function x0(e){var n;if(s4.test((n=e.autocomplete)!=null?n:""))return!0;let t=[e.name,e.id,e.label].map(r=>(r!=null?r:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ")).join(" ");return a4.test(t)}function y0(e,t){var r;if(t!==void 0&&E0.has(t.trim().toLowerCase()))return;if(e.split(/\s+/).some(A0))return At.PAY;let n=e.replace(/[_-]+/g," ");return(r=o4.find(([o,i])=>o!==At.PAY&&i.test(n)))==null?void 0:r[0]}var m0,VV,jV,KV,g0,E0,WV,h0,ZV,YV,XV,JV,QV,e4,t4,r4,At,o4,i4,s4,a4,K_,W_=y(()=>{"use strict";m0="delete|remove|destroy|erase|drop|terminate|revoke|reset|close account|cancel subscription",VV="purchase|buy|pay|payment|place order|confirm order|send money|send funds|transfer|withdraw|refund",jV=new RegExp(`\\b(${m0}|${VV})\\b`,"i"),KV=new RegExp(`\\b(${m0})\\b`,"i"),g0=/[_-]+/g,E0=new Set(["option","radio"]),WV=["localhost","::1","0:0:0:0:0:0:0:1"],h0=".localhost",ZV="127",YV=4,XV=255;JV=["file:","app:","tauri:"];QV=new Set(["webm","mp4","mov","mkv","avi","mp3","wav","ogg","flac","png","jpg","jpeg","gif","webp","svg","avif","bmp","pdf","zip","tar","gz","txt","csv","json","xml","doc","docx","xls","xlsx","ppt","pptx"]),e4=/[\w.-]+/g,t4=/[a-zA-Z0-9]/;r4=/^\s*(#.*|javascript:.*)?$/i;At={INVITE:"invite",SEND:"send",SHARE:"share",DELETE:"delete",PAY:"pay",PUBLISH:"publish",REVOKE:"revoke",TRANSFER:"transfer",SIGN_OUT:"sign out",CHANGE_ROLE:"change role",CREATE_KEY:"create key",CHANGE_STATE:"change state"},o4=[[At.INVITE,/\binvit(?:e|es|ed|ing|ation|ations)\b|\/invit/i],[At.TRANSFER,/\b(?:transfer|send money|send funds|withdraw)\b/i],[At.SEND,/\b(?:send|sends|sending|resend|email (?:it|them|the))\b/i],[At.SHARE,/\b(?:share|shares|sharing)\b/i],[At.DELETE,/\b(?:delete|deletes|deleting|remove|removes|removing|destroy|erase|drop)\b/i],[At.PAY,/\b(?:pay|pays|paying|payment|purchase|buy|checkout|check out|subscribe|upgrade|place order|confirm order|refund|add (?:a )?card|start (?:the |your |a )?(?:\d+-day |free )?trial)\b|\/(?:billing|checkout)\b/i],[At.PUBLISH,/\b(?:publish|publishes|deploy|deploys|go live)\b/i],[At.REVOKE,/\b(?:revoke|revokes|deactivate|suspend)\b/i],[At.SIGN_OUT,/\b(?:sign ?out|log ?out|sign off)\b/i],[At.CHANGE_ROLE,/\b(?:change (?:the |their |his |her )?role|make (?:an? )?(?:admin|owner)|promote|demote|set role)\b/i],[At.CREATE_KEY,/\b(?:create|generate|new|mint)(?: an?)?(?: api)? key\b|\/keys\b/i],[At.CHANGE_STATE,/\b(?:reassign|reassigns|reopen|reopens|re-open|archive|archives|unarchive|approve|approves|reject|rejects|mark as (?:fixed|resolved|done|closed))\b/i]],i4=["stripe.com","checkout.dodopayments.com","paddle.com","lemonsqueezy.com","paypal.com","razorpay.com","braintreegateway.com"];s4=/\bcc-(?:number|csc|exp(?:-month|-year)?)\b/i,a4=/card ?(?:number|no\b)|\bcc ?num|\b(?:cvc|cvv|csc|cvc2|cvv2)\b|security code|card ?code|\bexpir(?:y|ation|es)\b|\bexp ?date\b|\bmm ?\/ ?yy\b|\biban\b|account ?number|routing ?number|sort ?code/i;K_=e=>`would need to ${e} \u2014 not done (outward action): the journey does not ask for it`});var Ch,w0,c4,v0,N0,R0,l4,u4,id,Y_,d4,p4,Cre,X_=y(()=>{"use strict";ce();rd();Gt();k_();G_();vh();Nh();Ih();W_();Ch=p().min(1).max(W.MAX_SESSION_ID_LENGTH),w0=p().max(W.MAX_REF_LENGTH),c4=p().min(1).max(8),v0=_({kind:R(ln),text:p().optional()}),N0=_({control:p().max(48).regex(/^[a-z][a-zA-Z-]*(\.[a-zA-Z-]+)?$/).optional(),toggle:R(nd).optional(),view:R(Vn).optional(),panel:R(zt).optional(),slide:p().max(56).optional(),prompt:R(Bi).optional()}),R0=_({note:p().min(1).max(W.MAX_MARK_NOTE_LENGTH),anchor:p().max(W.MAX_REF_LENGTH),strategy:R(qs),label:p().max(W.MAX_MARK_LABEL_LENGTH).optional(),source:_({file:p().max(W.MAX_URL_LENGTH),line:T().int().min(0)}).optional(),route:p().max(W.MAX_URL_LENGTH).optional()}),l4=_({t:T(),type:R(v),sessionId:Ch,ref:w0.optional(),seq:T().int().min(0).optional(),actionId:w0.optional(),attribution:R(SO).optional(),documentId:c4.optional(),editEpoch:T().int().min(0).optional(),data:se(p(),Q()).default({})}),u4=_({kind:H(sn.HELLO),protocolVersion:T().int().min(hO).max(oh),sessionId:Ch,url:p().max(W.MAX_URL_LENGTH),title:p().max(W.MAX_TITLE_LENGTH),projectId:Ch.optional(),adapters:O(p().max(W.MAX_ADAPTER_NAME_LENGTH)).max(W.MAX_ADAPTERS),token:p().max(W.MAX_TOKEN_LENGTH).optional(),env:R(f0).optional(),scope:R(Rh).optional(),platform:R(fo).optional(),channels:O(R($)).max(W.MAX_ADAPTERS).optional(),commands:O(p().max(W.MAX_TOKEN_LENGTH)).max(W.MAX_ADAPTERS).optional(),contractParts:_({commands:O(p()).max(W.MAX_CONTRACT_NAMES),events:O(p()).max(W.MAX_CONTRACT_NAMES),actions:O(p()).max(W.MAX_CONTRACT_NAMES)}).optional(),hasCapabilities:L().optional(),captureBodies:L().optional(),sourceMapping:L().optional(),instrumentation:R(Oh).optional(),sdkVersion:p().max(W.MAX_ADAPTER_NAME_LENGTH).optional(),contract:p().max(W.MAX_ADAPTER_NAME_LENGTH).optional(),redactKeys:O(p().min(1).max(B_)).max(F_).optional()}),id={HARNESS:"harness"},Y_=_({kind:H(sn.COMMAND),id:p().min(1).max(W.MAX_COMMAND_ID_LENGTH),sessionId:Ch.optional(),name:p().min(1).max(W.MAX_COMMAND_NAME_LENGTH),args:se(p(),Q()).default({}),by:R(id).optional(),outward:_({allowed:O(R(At)).max(16)}).optional()}),d4=_({kind:H(sn.COMMAND_RESULT),id:p().min(1).max(W.MAX_COMMAND_ID_LENGTH),ok:L(),result:Q().optional(),error:p().max(W.MAX_ERROR_LENGTH).optional()}),p4=_({kind:H(sn.EVENT),event:l4}),Cre=Rt("kind",[u4,Y_,d4,p4])});var vn,f4,h4,m4,g4,E4,kre,Dre,zre,O0=y(()=>{"use strict";ce();Ih();vn={PAYMENT:"payment or checkout",DELETE_WORKSPACE:"delete a workspace or project",REVOKE_KEY:"revoke or rotate a key",SEND_INVITE:"send an invite or email",CANCEL_SUBSCRIPTION:"cancel a subscription",CHANGE_ROLE:"change a member's role",OBSERVE_ONLY:"the session scope is observe, so it does not act",OFF_ORIGIN:"leave the activated origin",EXPIRED:"the session nonce expired"},f4=[vn.PAYMENT,vn.DELETE_WORKSPACE,vn.REVOKE_KEY,vn.SEND_INVITE,vn.CANCEL_SUBSCRIPTION,vn.CHANGE_ROLE],h4=64,m4=256,g4=_({rule:fe(f4),methods:O(p().min(1).max(16)).min(1).max(8),path:p().min(1).max(m4).refine(e=>{try{return new RegExp(e,"i"),!0}catch{return!1}},"not a valid regular expression")}),E4=O(g4).max(h4),kre=[{rule:vn.CANCEL_SUBSCRIPTION,methods:["DELETE"],path:"/subscriptions?(/[^/]+)?/?$"},{rule:vn.CANCEL_SUBSCRIPTION,methods:["POST","PUT","PATCH"],path:"/subscriptions?(/[^/]+)?/cancel"},{rule:vn.PAYMENT,methods:["POST","PUT","PATCH"],path:"/(billing|checkout|payments?|subscriptions?|purchases?|orders?)(/|$)"},{rule:vn.DELETE_WORKSPACE,methods:["DELETE"],path:"/(workspaces?|orgs?|organi[sz]ations?|projects?)/[^/]+/?$"},{rule:vn.REVOKE_KEY,methods:["DELETE"],path:"/(api-?)?keys?/[^/]+/?$"},{rule:vn.REVOKE_KEY,methods:["POST","PUT","PATCH"],path:"/(api-?keys?|keys?|tokens?|secrets?)(/[^/]+)?/(rotate|revoke|regenerate|roll)"},{rule:vn.SEND_INVITE,methods:["POST","PUT"],path:"/(invites?|invitations?|emails?|mail)(/|$)"},{rule:vn.CHANGE_ROLE,methods:["PATCH","PUT","POST"],path:"/members?/[^/]+(/role)?/?$"}],Dre=_({workspaceId:p().min(1).max(128),nonce:p().min(1).max(256),bridgePort:T().int().min(1).max(65535),scope:R(Rh),origin:p().url().max(2048).optional(),bridge:p().url().max(2048).optional()}),zre=_({ticket:p().min(1).max(4096),expiresAt:p().max(64).optional(),policy:E4.optional()})});var I0=y(()=>{"use strict"});function N4(e){return e.length<=L0&&v4.test(e)}var b4,C0,Ure,Vi,_4,et,T4,S4,A4,x4,y4,w4,q_,L0,v4,$0,R4,k0,xc=y(()=>{"use strict";ce();b4={AGENT:"agent",HUMAN:"human"},C0={BUG:"bug",GAP:"gap",AMBIGUITY:"ambiguity",FEATURE_REQUEST:"feature_request",IMPROVEMENT:"improvement",EXPERIENCE:"experience"},Ure=`<${Object.values(C0).join("|")}>`,Vi={WEB:"web",ELECTRON:"electron",TAURI:"tauri"},_4={BLINK:"blink",GECKO:"gecko",WEBKIT:"webkit"},et={CHROME:"chrome",EDGE:"edge",ARC:"arc",DIA:"dia",BRAVE:"brave",OPERA:"opera",FIREFOX:"firefox",SAFARI:"safari",OTHER:"other"},T4={CDP:"cdp",SDK:"sdk"},S4={USER:"user",PROJECT:"project"},A4=4e3,x4=8e3,y4=1,w4=5,q_=1e3,L0=254,v4=/^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>]+$/;$0=_({source:R(b4),kind:R(C0),text:p().min(1).max(A4),trace:p().max(x4).optional(),rating:T().int().min(y4).max(w4).optional(),need:p().max(q_).optional(),impact:p().max(q_).optional(),currentApproach:p().max(q_).optional(),model:p().min(1).max(64).optional(),clientVersion:p().min(1).max(32).optional(),stack:p().min(1).max(64).optional(),stackMajor:T().int().nonnegative().optional(),runtime:R(Vi).optional(),engine:R(_4).optional(),driver:R(T4).optional(),client:p().min(1).max(64).optional(),mcpScope:R(S4).optional(),contact:p().max(L0).refine(N4).optional()}),R4={COMPANY:"company",SIDE_PROJECT:"side_project",OPEN_SOURCE:"open_source",LEARNING:"learning"},k0=_({context:R(R4),company:p().min(1).max(128).optional(),email:p().min(3).max(254).optional()})});var O4,I4,Zre,Lh,C4,L4,$4,sd,Yre,D0=y(()=>{"use strict";ce();Gt();rh();I_();Zo();xc();X_();ed();O4=_({name:p().describe("Cookie name."),value:p().describe("Cookie value."),domain:p().optional().describe("Cookie domain. Defaults to the navigation URL domain."),path:p().optional().describe('Cookie path. Defaults to "/".'),url:p().optional().describe("Cookie URL. Defaults to the navigation URL."),httpOnly:L().optional().describe("Whether the cookie is httpOnly."),secure:L().optional().describe("Whether the cookie is secure."),sameSite:fe(["Strict","Lax","None"]).optional().describe("SameSite policy."),expires:T().optional().describe("Unix timestamp in seconds for cookie expiration.")}),I4=bt([se(p(),p()),O(O4)]),Zre=_({local:se(p(),p()).optional().describe("Key-value pairs to seed into window.localStorage before first navigation."),session:se(p(),p()).optional().describe("Key-value pairs to seed into window.sessionStorage before first navigation."),cookies:I4.optional().describe("Cookies to seed before first navigation: a name-value record scoped to the lease URL or an array of cookie objects.")}).strict(),Lh=_({role:p().optional(),name:p().optional()}),C4=_({mimeType:p(),bytes:T(),filename:p().optional(),lines:T().optional(),preview:p().optional(),previewTruncated:L().optional()}).passthrough(),L4=_({transport:R(sr),direction:R(ar),url:p(),urlRaw:p().optional()}).passthrough(),$4=_({id:p(),method:p(),url:p(),status:T(),ok:L(),durationMs:T(),initiator:p(),urlRaw:p().optional(),[bh]:p().optional(),[Qu]:p().optional(),[_h.FROM_DEPARTED_DOCUMENT]:L().optional()}).passthrough(),sd=_({message:p()}).passthrough(),Yre={[v.DOM_ADDED]:Lh,[v.DOM_REMOVED]:Lh,[v.DOM_ATTR]:_({attr:p(),value:p().optional(),old:p().optional()}).passthrough(),[v.DOM_TEXT]:_({text:p(),old:p().optional(),testid:p().optional(),initial:L().optional(),live:R(Mi).optional()}),[v.NET_REQUEST]:$4,[v.NET_PENDING]:_({id:p(),method:p(),url:p(),initiator:p(),urlRaw:p().optional(),[_h.FROM_DEPARTED_DOCUMENT]:L().optional(),[_h.PAGE_UNLOADED]:L().optional()}),[v.NET_UNPATCHED]:_({url:p(),urlRaw:p().optional(),initiator:p(),status:T().optional()}).passthrough(),[v.NET_STREAM]:L4,[v.DOWNLOAD]:C4,[v.PERF]:_({metric:R(mc),value:T(),at:T(),shift:T().optional(),shifted:_({ref:p(),selector:p()}).optional()}),[v.ROUTE_CHANGE]:_({from:p(),to:p(),pathname:p(),search:p(),hash:p(),[ju]:R(Bs),pattern:p().optional()}),[v.CONSOLE_LOG]:sd,[v.CONSOLE_WARN]:sd,[v.CONSOLE_ERROR]:sd,[v.CONSOLE_INFO]:sd,[v.CONSOLE_DEBUG]:sd,[v.ERROR_UNCAUGHT]:_({message:p(),source:p().optional(),line:T().optional(),kind:p().optional()}).passthrough(),[v.VISIBLE_SHOWN]:Lh,[v.ANIM_START]:_({name:p()}),[v.ANIM_END]:_({name:p()}),[v.SCROLL_POSITION]:_({x:T(),y:T(),percent:T(),direction:R(fc)}),[v.REVEAL_SHOWN]:Lh.passthrough(),[v.SIGNAL]:_({name:p(),data:Q().optional()}),[v.STATE_CHANGE]:_({name:p(),value:Q().optional()}).passthrough(),[v.STORAGE_CHANGE]:_({area:R(Wo),key:p(),old:p().optional(),new:p().optional()}),[v.PAGE_HEALTH]:_({hidden:L(),focused:L(),reason:p().optional(),brand:R(et).optional(),runtime:p().optional(),engine:p().optional(),windowLabel:p().optional(),documentStatus:T().int().optional()}).passthrough(),[v.CONTEXT_OPENED]:_({href:p().optional()}).passthrough(),[v.DIALOG_OPENED]:_({kind:fe(["alert","confirm","prompt"]),message:p().optional(),answered:bt([L(),XR()]).optional()}).passthrough(),[v.RENDER_COMMIT]:_({commits:T()}),[v.FOCUS_CHANGE]:_({to:p().optional(),from:p().optional(),toBody:L()}),[v.FIELD_CHANGE]:_({[_t.FIELD]:p(),[_t.KIND]:R(Gs),[_t.LENGTH]:T().int().nonnegative(),[_t.VALUE]:p().optional(),[_t.REDACTED]:H(!0).optional(),[_t.CHECKED]:L().optional(),[_t.PREVIOUS]:p().optional(),[_t.PREVIOUS_CHECKED]:L().optional()}),[v.FLOW_RECORDED]:_({name:p(),flow:Q().optional()}),[v.TRANSPORT_OVERFLOW]:_({dropped:T()}),[v.TRUNCATED]:_({channel:p(),dropped:T()}),[v.BLIND_SPOT]:_({kind:R(cn),count:T()}),[v.SDK_FAILED]:_({site:p().max(64),message:p().max(500),errorType:p().max(64).optional()}),[v.NET_DETAIL]:_({url:p(),method:p().optional(),status:T(),headers:se(p(),p()),resourceType:p().optional()}).passthrough(),[v.NET_RESPONSE_BODY]:_({id:p(),method:p(),url:p(),urlRaw:p().optional(),responseBody:p(),responseBodyTruncated:L().optional(),responseBodyReason:R(ur).optional()}).passthrough(),[v.HUMAN_CONTROL]:v0,[v.HUMAN_MARK]:R0,[v.HUD_USED]:N0,[v.MEDIA_STATE]:_({event:R(Vu),tag:fe(["video","audio"]),currentTime:T(),duration:T().optional(),readyState:T().int().min(0).max(4),paused:L()}),[v.CANVAS_DIGEST]:_({digest:p(),width:T().int().nonnegative(),height:T().int().nonnegative(),mean:Jf([T(),T(),T()]),trigger:R(Fs).optional(),visible:L().optional()})}});var Jre,z0=y(()=>{"use strict";Gt();Jre=new Set([v.NET_REQUEST,v.NET_PENDING,v.NET_UNPATCHED,v.NET_STREAM,v.NET_DETAIL,v.NET_RESPONSE_BODY,v.CONSOLE_ERROR,v.CONSOLE_WARN,v.ERROR_UNCAUGHT,v.ROUTE_CHANGE,v.SIGNAL,v.STORAGE_CHANGE,v.FLOW_RECORDED,v.TRANSPORT_OVERFLOW,v.TRUNCATED,v.BLIND_SPOT])});var P0=y(()=>{"use strict"});var M0,U0=y(()=>{"use strict";M0=e=>e});var Se,ooe,ioe,soe,H0=y(()=>{"use strict";Nh();Se={UI_ADVANCED_REQUEST_FAILED:"ui-advanced-request-failed",UI_ADVANCED_UNSIGNALLED:"ui-advanced-unsignalled",SIGNAL_CONTRADICTED:"signal-contradicted",RESPONSE_IGNORED:"response-ignored",SIGNAL_WITHOUT_CONSEQUENCE:"signal-without-consequence",STATE_VS_RENDER:"state-vs-render",CONSEQUENCE_ELSEWHERE:"consequence-elsewhere",DUPLICATE_REQUEST:"duplicate-request",DUPLICATE_REQUEST_UNRELATED:"duplicate-request-unrelated",SCREEN_REQUEST_MISMATCH:"screen-request-mismatch",STALE_RESPONSE_APPLIED:"stale-response-applied",PARTIAL_FAILURE_IN_OK_RESPONSE:"partial-failure-in-ok-response",UNIT_MISMATCH:"unit-mismatch",PAGINATION_NOT_FETCHED:"pagination-not-fetched",WRITE_FIELD_IGNORED:"write-field-ignored",REQUEST_NEVER_SETTLED:"request-never-settled",FAILURE_MISATTRIBUTED:"failure-misattributed",ACTION_HAD_NO_EFFECT:"action-had-no-effect",ROUTE_RENDERED_NOTHING:"route-rendered-nothing",ROUTE_RENDERED_NOTHING_CRASHED:"route-rendered-nothing-crashed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit",READ_SERVER_FAULT:"read-server-fault"},ooe=new Set([Se.REQUEST_NEVER_SETTLED,Se.UI_ADVANCED_UNSIGNALLED,Se.RESPONSE_IGNORED,Se.SIGNAL_WITHOUT_CONSEQUENCE,Se.STATE_VS_RENDER,Se.CONSEQUENCE_ELSEWHERE,Se.ROUTE_RENDERED_NOTHING,Se.ACTION_HAD_NO_EFFECT,Se.DUPLICATE_REQUEST,Se.EVIDENCE_SUPERSEDED,Se.EVIDENCE_PREDATES_EDIT,Se.READ_SERVER_FAULT]),ioe=new Set([Se.DUPLICATE_REQUEST_UNRELATED,Se.SCREEN_REQUEST_MISMATCH]),soe={[Se.UI_ADVANCED_REQUEST_FAILED]:[$.UI,$.NET],[Se.UI_ADVANCED_UNSIGNALLED]:[$.UI,$.NET],[Se.SIGNAL_CONTRADICTED]:[$.SIGNAL,$.NET],[Se.RESPONSE_IGNORED]:[$.NET,$.UI],[Se.SIGNAL_WITHOUT_CONSEQUENCE]:[$.SIGNAL,$.NET],[Se.STATE_VS_RENDER]:[$.STATE,$.UI],[Se.CONSEQUENCE_ELSEWHERE]:[$.NET,$.UI],[Se.DUPLICATE_REQUEST]:[$.NET,$.NET],[Se.DUPLICATE_REQUEST_UNRELATED]:[$.NET,$.NET],[Se.SCREEN_REQUEST_MISMATCH]:[$.UI,$.NET],[Se.STALE_RESPONSE_APPLIED]:[$.NET,$.UI],[Se.PARTIAL_FAILURE_IN_OK_RESPONSE]:[$.NET,$.NET],[Se.UNIT_MISMATCH]:[$.UI,$.NET],[Se.PAGINATION_NOT_FETCHED]:[$.UI,$.NET],[Se.WRITE_FIELD_IGNORED]:[$.NET,$.NET],[Se.REQUEST_NEVER_SETTLED]:[$.TIME,$.NET],[Se.FAILURE_MISATTRIBUTED]:[$.UI,$.NET],[Se.ACTION_HAD_NO_EFFECT]:[$.NET,$.UI],[Se.ROUTE_RENDERED_NOTHING]:[$.ROUTE,$.NET],[Se.ROUTE_RENDERED_NOTHING_CRASHED]:[$.ROUTE,$.LOG],[Se.EVIDENCE_SUPERSEDED]:[$.TIME,$.UI],[Se.EVIDENCE_PREDATES_EDIT]:[$.TIME,$.UI],[Se.READ_SERVER_FAULT]:[$.UI,$.NET]}});var Yo,$h,loe,uoe,F0=y(()=>{"use strict";Gt();Yo="__reticleIpc",$h="reticle_capture",loe=hc.FULL_PAGE_UNSUPPORTED,uoe=hc.NOT_COMPOSITED});var B0=y(()=>{"use strict"});var G0=y(()=>{"use strict"});var V0=y(()=>{"use strict"});function j0(e){return e===yc.CALM||e===yc.WAITING||e===yc.ASK||e===yc.WARN}var yc,K0,moe,goe,W0=y(()=>{"use strict";yc={CALM:"calm",WAITING:"waiting",ASK:"ask",WARN:"warn"};K0="note that a lease is a SEPARATE context: the human watching this tab sees nothing of what you do there, so prefer this tab while someone is following along",moe='tab hidden and may be un-focusable from here; timers and rAF are clamped in a background tab, so an action can land on a page that never advances. Refocus it, or acquire a guaranteed scriptable context yourself with `reticle_run { tool: "reticle_lease", args: { action: "acquire", url } }` (a human can equivalently run `reticle drive <url>`) \u2014 '+K0,goe="tab is not hidden but has not reported health recently \u2014 usually a quiet page rather than a stuck one, and very often still driveable. This is also the tab a human can see, so try it first. Timing-sensitive work (animations, debounces, gestures) is what degrades: pass `refuseWhenThrottled: true` to refuse rather than act over events that may not land. Lease a separate context only if a drive here actually fails; "+K0});var Z0,k4,Soe,Aoe,xoe,Y0=y(()=>{"use strict";ce();Gt();Zo();Ko();Z0=1,k4=_({harness:p().min(1).max(W.MAX_REF_LENGTH),driver:p().min(1).max(W.MAX_COMMAND_NAME_LENGTH),persona:p().max(1e3).optional()}),Soe=_({v:H(Z0),actionId:p().min(1).max(W.MAX_REF_LENGTH),tool:p().min(1).max(W.MAX_COMMAND_NAME_LENGTH),args:se(p(),Q()).default({}),effect:Q().optional(),settled:L().optional(),settledInMs:T().int().min(0).optional(),seqRange:_({from:T().int().min(0),to:T().int().min(0)}).optional(),tRange:_({from:T().int().min(0),to:T().int().min(0)}),at:T().int().min(0),drivenBy:k4.optional(),agent:p().min(1).max(W.MAX_REF_LENGTH).optional()}),Aoe=_({v:H(Z0),channel:H(ch.JOURNAL),capBytes:T().int().min(1).optional(),bytesOnDisk:T().int().min(0).optional(),droppedInBatch:T().int().min(0).optional(),at:T().optional()}),xoe=_({claim:p().min(1).max(W.MAX_STRING_LENGTH),verified:R(Gn),source:p().max(W.MAX_URL_LENGTH).optional(),observed:p().max(W.MAX_STRING_LENGTH).optional(),expected:p().max(W.MAX_STRING_LENGTH).optional(),kind:R(P).optional(),declaredBeforeActing:L().optional(),net:O(_({method:p().max(W.MAX_COMMAND_NAME_LENGTH),url:p().max(W.MAX_URL_LENGTH),status:T().optional(),body:p().max(W.MAX_STRING_LENGTH).optional()})).max(5).optional(),grade:p().max(W.MAX_STRING_LENGTH).optional(),couldNotSee:O(p().max(W.MAX_STRING_LENGTH)).optional(),reason:p().max(W.MAX_STRING_LENGTH).optional(),intent:p().max(W.MAX_STRING_LENGTH).optional(),intentDerived:L().optional(),failedPart:T().int().min(0).optional()})});var X0=y(()=>{"use strict"});var voe,q0=y(()=>{"use strict";ce();voe=_({port:T(),pid:T(),cwd:p(),projectId:p().optional(),startedAt:T()})});var Roe,J0=y(()=>{"use strict";ce();Roe=_({port:T(),pid:T(),root:p(),url:p(),sdkVersion:p().min(1).optional(),startedAt:T(),projectId:p().optional()})});var D4,Ioe,Q0=y(()=>{"use strict";ce();D4=_({directory:p().min(1),lastSeenAt:T()}),Ioe=_({version:H(1),projects:se(p(),D4)})});var z4,J_,P4,M4,U4,Loe,eC=y(()=>{"use strict";ce();z4=1,J_={DECLARED:"declared",BOUND:"bound",PROVED:"proved"},P4=_({route:p().optional(),flow:p().optional(),files:O(p()).optional()}),M4=_({verdictId:p(),grade:p(),at:T(),runId:p().optional()}),U4=_({id:p().min(1),statement:p().min(1),state:fe([J_.DECLARED,J_.BOUND,J_.PROVED]),declaredAt:T(),binding:Q().optional(),surface:P4.optional(),provenBy:M4.optional(),amended:O(_({statement:p(),at:T()})).optional()}),Loe=_({version:H(z4),intents:se(p(),U4)})});var tC=y(()=>{"use strict"});function ad(e){return H4[e]}var mt,H4,F4,Doe,Q_=y(()=>{"use strict";ce();mt={NO_SOURCE_MAPPING:"no-source-mapping",NO_STORE_REGISTERED:"no-store-registered",NO_SIGNAL_ON_MUTATION:"no-signal-on-mutation",UNDECLARED_CONTROL:"undeclared-control",MISSING_TESTID:"missing-testid",UNDECLARED_CHANGE:"undeclared-change",INTENT_UNDISCHARGED:"intent-undischarged",NO_FLOW_INTENT:"no-flow-intent",SOURCE_MAPPING_OFF:"source-mapping-off"},H4={[mt.NO_SOURCE_MAPPING]:"add the Reticle build plugin (@reticlehq/vite-plugin, @reticlehq/next, or the babel plugin) so elements carry data-reticle-source",[mt.NO_STORE_REGISTERED]:"import { registerStore } from '@reticlehq/browser' and call registerStore(name, store) with a subscribable store so its changes are observed; a bare getter is readable but does not report changes. For component-local React state, import { useReticleStore } from '@reticlehq/react/store' and call useReticleStore(name, value), assert the DOM, or read it with reticle_look { action: 'state', ref: '...' }",[mt.NO_SIGNAL_ON_MUTATION]:"fire reticle.signal(name, data) where this state is committed \u2014 commitAndSignal binds the two so they cannot drift",[mt.UNDECLARED_CONTROL]:"add this control to reticle.describe() so the capability contract matches what the app actually exposes",[mt.MISSING_TESTID]:'add data-testid="..." on this control so the flow can name it after a refactor',[mt.UNDECLARED_CHANGE]:'declare it with reticle_intent { action: "declare", intents: [{ id, statement }] } \u2014 the statement is prose, in your own words: which user does what, and what should become true',[mt.INTENT_UNDISCHARGED]:'draw a verdict whose `until` asserts the intent itself, then it discharges \u2014 or call reticle_run({ tool: "reticle_context" }) to see exactly what is still owed',[mt.SOURCE_MAPPING_OFF]:"nothing to install \u2014 this build has sourceMapping turned off, so no element carries data-reticle-source. Re-enable it in the Reticle plugin options unless this app renders through a non-DOM reconciler (react-three-fiber, react-pdf, ink), where the stamp is what would break it",[mt.NO_FLOW_INTENT]:'save it again with intent: "<which user does what, and what should become true>" \u2014 prose, in your own words \u2014 or set intentId to an intent already in the ledger'};F4={PIXELS_UNOBSERVED:"pixels-unobserved",CLAIM_ARITHMETIC_UNCHECKED:"claim-arithmetic-unchecked"},Doe=_({kind:R(F4),detail:p().min(1)})});var Xo,nC,Hoe,Foe,rC=y(()=>{"use strict";ce();_c();Q_();P_();Xo={PAGE_CONNECTED:"page connected",DOM_ACTIONS:"DOM actions",NETWORK:"network",CONSOLE:"console",APP_STATE:"app state (store registered)",SIGNALS:"signals on mutation",SOURCE_MAPPING:yh,TEST_IDS:"stable test ids"},nC="run `npx @reticlehq/server init` in the app so its pages connect to Reticle in development",Hoe=[{capability:Xo.PAGE_CONNECTED,gaps:[],cost:"no page has connected, so nothing can be verified",fix:nC},{capability:Xo.DOM_ACTIONS,channel:$.UI,always:!0,gaps:[],cost:"controls cannot be driven or read",fix:nC},{capability:Xo.NETWORK,channel:$.NET,always:!0,gaps:[],cost:"requests cannot be asserted, so a save that never reached the server can pass",fix:"update @reticlehq/browser so the page reports its network channel"},{capability:Xo.CONSOLE,channel:$.LOG,always:!0,gaps:[],cost:"errors thrown in the page are invisible to a verdict",fix:"update @reticlehq/browser so the page reports its console channel"},{capability:Xo.APP_STATE,channel:$.STATE,gaps:[mt.NO_STORE_REGISTERED],cost:"state predicates fall back to reading the DOM",fix:ad(mt.NO_STORE_REGISTERED)},{capability:Xo.SIGNALS,channel:$.SIGNAL,gaps:[mt.NO_SIGNAL_ON_MUTATION],cost:"the app never says it succeeded, so every verdict infers success from the DOM",fix:ad(mt.NO_SIGNAL_ON_MUTATION)},{capability:Xo.SOURCE_MAPPING,channel:Qs.SOURCE,gaps:[mt.NO_SOURCE_MAPPING,mt.SOURCE_MAPPING_OFF],perControl:[mt.NO_SOURCE_MAPPING],cost:"a broken control is named, never the line that renders it",fix:ad(mt.NO_SOURCE_MAPPING)},{capability:Xo.TEST_IDS,channel:Qs.TESTID,gaps:[mt.MISSING_TESTID],cost:"a saved flow loses its controls after a refactor",fix:ad(mt.MISSING_TESTID)}],Foe=O(R(Xo)).max(8)});var oC=y(()=>{"use strict"});function B4(e){return Array.isArray(e)||typeof e=="string"}function G4(e){if(Array.isArray(e))return{keys:[...e.slice(0,49).map((n,r)=>String(r)),eT],total:e.length+1};if(typeof e=="string")return{keys:[eT],total:1};if(e instanceof Map){let t=[],n=0;for(let r of e.keys())n+=1,typeof r=="string"&&t.length<49&&t.push(r);return e.has(cd)?{keys:t,total:n}:{keys:[...t,cd],total:n+1}}if(e instanceof Set){let t=[];for(let n of e)typeof n=="string"&&t.length<49&&t.push(n);return{keys:[...t,cd],total:e.size+1}}if(typeof e=="object"&&e!==null){let t=Object.keys(e);return{keys:t.slice(0,50),total:t.length}}return{keys:[],total:0}}function kh(e){let{keys:t,total:n}=G4(e);return{found:!1,value:null,availableKeys:t,...n>t.length?{totalKeys:n}:{}}}function iC(e,t){let n=t.split(".").filter(o=>o.length>0),r=e;for(let o of n){if(eT===o&&B4(r)){r=r.length;continue}if(Array.isArray(r)){let i=Number(o);if(!Number.isInteger(i)||i<0||String(i)!==o||i>=r.length)return kh(r);r=r[i];continue}if(r instanceof Map){if(r.has(o)){r=r.get(o);continue}if(cd===o){r=r.size;continue}return kh(r)}if(r instanceof Set){if(cd===o){r=r.size;continue}if(r.has(o)){r=!0;continue}return kh(r)}if(typeof r=="object"&&r!==null&&Object.hasOwn(r,o)){r=r[o];continue}return kh(r)}return{found:!0,value:r}}function wc(e,t){if(t<0)return e;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Set)return t===0?`[Set(${String(e.size)})]`:[...e].map(n=>wc(n,t-1));if(e instanceof Map){if(t===0)return`{Map(${String(e.size)})}`;let n=Object.create(null);for(let[r,o]of e)n[String(r)]=wc(o,t-1);return n}if(Array.isArray(e))return t===0?`[Array(${String(e.length)})]`:e.map(n=>wc(n,t-1));if(typeof e=="object"&&e!==null){let n=Object.keys(e);if(t===0)return`{\u2026${String(n.length)} keys}`;let r=Object.create(null);for(let o of n)r[o]=wc(e[o],t-1);return r}return e}var eT,cd,sC=y(()=>{"use strict";eT="length";cd="size"});var Koe,Woe,aC=y(()=>{"use strict";Gt();Koe={[ge.ENABLED]:"en",[ge.DISABLED]:"dis",[ge.CHECKED]:"chk",[ge.EXPANDED]:"exp",[ge.PRESSED]:"prs",[ge.FOCUSED]:"focus"},Woe=new Set([ge.PRESENT,ge.VISIBLE,ge.HIDDEN])});var ea,Yoe,Xoe,cC=y(()=>{"use strict";ce();ea={SHARE_PROOF:"share_proof",RUN_HISTORY:"run_history",TEAM_REVIEW:"team_review",CORPUS_HEAL:"corpus_heal",CI_GATE:"ci_gate",HOSTED_RUNNER:"hosted_runner"},Yoe=_({capability:R(ea),reason:p(),unlockedBy:p(),learnMoreUrl:p().url()}),Xoe={[ea.SHARE_PROOF]:{reason:"Sharing a verification result with a teammate needs a hosted, linkable proof page.",unlockedBy:"Link a free Reticle Cloud account (reticle connect), then share the run."},[ea.RUN_HISTORY]:{reason:"Run history beyond this session lives in the hosted dashboard; local keeps only a buffer.",unlockedBy:"Link a free Reticle Cloud account to keep run history and trends."},[ea.TEAM_REVIEW]:{reason:"A shared review queue of pinned mistakes is a team feature \u2014 it needs a hosted store.",unlockedBy:"Add your team to Reticle Cloud to share a review queue."},[ea.CORPUS_HEAL]:{reason:"Corpus-ranked heal uses refactor outcomes learned across the fleet, served from the cloud.",unlockedBy:"Enable the hosted heal service on Reticle Cloud."},[ea.CI_GATE]:{reason:"Verify-before-merge is a governance gate that runs in your CI against a hosted policy.",unlockedBy:"Configure the Reticle Cloud CI gate for your repository."},[ea.HOSTED_RUNNER]:{reason:"Verifying without a local browser (CI, a background agent, or a deployed URL) needs a browser we run for you.",unlockedBy:"Link a Reticle Cloud account to run verifications on hosted browsers."}}});var ld,lC,uC,dC,pC,V4,fC,hC=y(()=>{"use strict";ce();ld={INSTALL:"install",ONBOARD:"onboard",FIRST_RUN:"first_run"},lC={STARTED:"started",COMPLETED:"completed",FAILED:"failed",ABANDONED:"abandoned",SKIPPED:"skipped"},uC={[ld.INSTALL]:["script_started","runtime_ready","cli_installed","agents_detected","mcp_registered"],[ld.ONBOARD]:["tour_started","concept_shown","first_look","first_act","first_verdict"],[ld.FIRST_RUN]:["project_detected","next_step_offered","instrumented","app_connected","driven","flow_recorded","verdict_produced"]},dC={LEASE:"lease",INIT_CONSENT:"init_consent"},pC={NO_NODE:"no_node",NODE_TOO_OLD:"node_too_old",CLI_INSTALL_FAILED:"cli_install_failed",MCP_NOT_REGISTERED:"mcp_not_registered",NO_WEB_APP:"no_web_app",SETUP_FAILED:"setup_failed",DEV_SERVER_FAILED:"dev_server_failed",APP_NOT_CONNECTED:"app_not_connected",INTERRUPTED:"interrupted",AGENT_NOT_RESTARTED:"agent_not_restarted",CHROMIUM_UNAVAILABLE:"chromium_unavailable",UNCLASSIFIED:"unclassified"},V4=Object.values(uC).flatMap(e=>[...e]),fC=_({phase:R(ld),step:fe(V4),status:R(lC),elapsedMs:T().int().nonnegative().optional(),reason:p().max(64).optional(),stack:p().max(64).optional(),unattended:L().optional(),firstEver:L().optional(),offered:R(dC).optional(),nextFollowed:L().optional(),stop:R(pC).optional()})});var mC,tT=y(()=>{"use strict";mC={AUTH_REFUSED:"auth_refused",LEASE_EXPIRED:"lease_expired",TAB_GONE:"tab_gone",NAVIGATED_AWAY:"navigated_away",ROUTE_SERVER_ERROR:"route_server_error",APP_NOT_REOPENED:"app_not_reopened",CONFIG_ELSEWHERE:"config_elsewhere",NO_LISTENER_NO_CONFIG:"no_listener_no_config",NO_LISTENER:"no_listener",NO_CONFIG:"no_config",SDK_NOT_REACHING_DAEMON:"sdk_not_reaching_daemon"}});var j4,K4,gC,nT=y(()=>{"use strict";ce();tT();j4={NO_SESSION:"no_session",NO_MATCH:"no_match",UNSUPPORTED:"unsupported",BAD_ARGS:"bad_args",NOT_READY:"not_ready",OTHER:"other"},K4={NO_SESSION:"no_session",MULTIPLE_SESSIONS:"multiple_sessions",UNKNOWN_SESSION:"unknown_session",SCOPE_MISMATCH:"scope_mismatch",SESSION_GONE:"session_gone",THROTTLED:"throttled",COMMAND_TIMEOUT:"command_timeout",POOL_UNAVAILABLE:"pool_unavailable",POOL_SHUT_DOWN:"pool_shut_down",CHROMIUM_MISSING:"chromium_missing",CHROMIUM_PATH:"chromium_path",TOKEN_REQUIRED:"token_required",MISSING_BASELINE:"missing_baseline",MISSING_RECORDING:"missing_recording",STALE_REF:"stale_ref",STALE_REF_AFTER_EDIT:"stale_ref_after_edit",UNISSUED_REF:"unissued_ref",NO_SUCH_OPTION:"no_such_option",TARGET_MISSED:"target_missed",AMBIGUOUS_TARGET:"ambiguous_target",FLOW_STEP_MISSING:"flow_step_missing",UNSUPPORTED_SURFACE:"unsupported_surface",HOVER_NEEDS_POINTER:"hover_needs_pointer",NOT_EDITABLE:"not_editable",CONFIRM_DANGEROUS:"confirm_dangerous",WRONG_TARGET:"wrong_target",PRODUCTION_POLICY:"production_policy",BAD_ARGUMENTS:"bad_arguments",INVALID_NAME:"invalid_name",HARNESS_OFF:"harness_off",HARNESS_LOCKED:"harness_locked"},gC=_({tool:p().min(1).max(64),reason:R(j4),noSessionReason:R(mC).optional(),detail:R(K4).optional(),retried:L(),params:O(p().min(1).max(64)).max(16).optional()})});var W4,bC,nie,EC,Z4,Y4,rT,X4,q4,_C,J4,Q4,TC,oT=y(()=>{"use strict";ce();W4={CONNECT:"connect",CLOSE_GAPS:"close_gaps",SWITCH_ON:"switch_on",EXPLORE:"explore"},bC={B0:"0-19",B20:"20-39",B40:"40-59",B60:"60-79",B80:"80-100"},nie=Object.values(bC),EC=_({fingerprint:p().min(1).max(64),count:T().int().nonnegative(),message:p().max(300),tool:p().max(64).optional()}),Z4={NONE:"none",LOCAL_ONLY:"local_only",REMOTE:"remote"},Y4={GITHUB:"github",GITLAB:"gitlab",BITBUCKET:"bitbucket",AZURE:"azure",SOURCEHUT:"sourcehut",CODEBERG:"codeberg",SELF_HOSTED:"self_hosted"},rT=_({rssMb:T().int().nonnegative(),heapUsedMb:T().int().nonnegative(),freeMemMb:T().int().nonnegative(),totalMemMb:T().int().nonnegative(),load1x100:T().int().nonnegative(),cpuCount:T().int().nonnegative()}),X4=_({totalMs:T().int().nonnegative(),maxMs:T().int().nonnegative()}),q4=_({attempts:T().int().nonnegative(),successes:T().int().nonnegative(),failures:se(p(),T().int().nonnegative()).optional()}),_C=_({durationMs:T().int().nonnegative(),toolCalls:T().int().nonnegative(),toolCounts:se(p(),T().int().nonnegative()),toolErrors:T().int().nonnegative(),errors:O(EC).max(40).optional(),sdkFailures:T().int().nonnegative().optional(),sdkErrors:O(EC).max(40).optional(),verifications:T().int().nonnegative(),bugsFound:T().int().nonnegative().optional(),bugKinds:se(p(),T().int().nonnegative()).optional(),toolParams:se(p(),se(p(),T().int().nonnegative())).optional(),connections:se(p(),q4).optional(),toolTiming:se(p(),X4).optional(),busyMs:T().int().nonnegative().optional(),browserMs:T().int().nonnegative().optional(),browserCommands:T().int().nonnegative().optional(),peakConcurrentTools:T().int().nonnegative().optional(),unknownToolCalls:T().int().nonnegative().optional(),unknownTools:se(p().max(64),T().int().nonnegative()).optional(),noSessionErrors:T().int().nonnegative().optional(),postSocketFailures:T().int().nonnegative().optional(),postRetriesSaved:T().int().nonnegative().optional(),consecutiveRepeats:se(p(),T().int().positive()).optional(),abandonedActions:T().int().nonnegative().optional(),machine:rT.optional(),clients:O(p().max(64)).max(8).optional(),clientVersions:se(p().max(64),p().max(32)).optional(),surface:p().max(32).optional(),appConnects:T().int().nonnegative().optional(),msToFirstApp:T().int().nonnegative().optional(),sdkVersion:p().min(1).max(32).optional(),toolCallsBeforeApp:T().int().nonnegative().optional(),endReason:fe(["never_used","explored","abandoned","verified","client_left"]).optional(),feedbackPrompted:T().int().nonnegative().optional(),errorClasses:se(p().max(16),T().int().nonnegative()).optional(),errorsRecovered:T().int().nonnegative().optional(),errorsRepeated:T().int().nonnegative().optional(),endedWithVerdict:L().optional(),lifetimeToolCalls:T().int().nonnegative().optional(),lifetimeVerifications:T().int().nonnegative().optional(),lifetimeBugsFound:T().int().nonnegative().optional(),updateNudged:L().optional(),updateOffered:p().max(32).optional(),hudControls:se(p(),T()).optional(),hudViewMs:se(p(),T()).optional(),hudPanelMs:se(p(),T()).optional(),hudSlides:se(p(),T()).optional(),hudJourney:O(p().max(64)).max(60).optional(),hudJourneyCut:H(!0).optional(),nudgesShown:Ub(R(W4),T().int().positive()).optional(),harnessRefusedCoverage:Ub(R(bC),T().int().positive()).optional(),final:L(),exit:fe(["idle","signal","unknown"]).optional()}),J4={TINY:"tiny",SMALL:"small",MEDIUM:"medium",LARGE:"large",HUGE:"huge"},Q4={NO_APP_FOUND:"no_app_found",MANIFEST_UNRECOGNISED:"manifest_unrecognised",WORKSPACE_APPS_UNRECOGNISED:"workspace_apps_unrecognised",WORKSPACE_ROOT_NO_APPS:"workspace_root_no_apps",DISCOVERY_FAILED:"discovery_failed"},TC=_({stack:p().min(1).max(64).optional(),stackSource:fe(["cwd","workspace"]).optional(),stackUnknownReason:R(Q4).optional(),stackMajor:T().int().nonnegative().optional(),size:R(J4).optional(),monorepo:L().optional(),git:R(Z4),forge:R(Y4).optional(),ageWeeks:T().int().nonnegative().optional(),flowCount:T().int().nonnegative(),baselineCount:T().int().nonnegative(),visualBaselineCount:T().int().nonnegative(),runCount:T().int().nonnegative(),hasContract:L(),initialized:L().optional(),appConnectedBefore:L().optional(),capsuleCount:T().int().nonnegative(),featuresUsed:O(p().max(32)).max(24),featureDepth:T().min(0).max(1)})});var SC,iT=y(()=>{"use strict";SC={ACTIVE:"active",MISSING:"missing",INVALID:"invalid",EXPIRED:"expired",EVAL:"eval"}});var ej,tj,nj,sT,rj,oj,ij,sj,aj,cj,lj,uj,dj,pj,AC,xC,fj,hj,mj,gj,Ej,bj,_j,Tj,Sj,Aj,yC,aT=y(()=>{"use strict";ce();rd();ej={SIGNED_OUT:"signed_out",SIGNED_IN:"signed_in",LINKED:"linked"},tj={CLAUDE_CODE:"claude_code",CLAUDE_DESKTOP:"claude_desktop",CODEX:"codex",CURSOR:"cursor",GEMINI_CLI:"gemini_cli",ANTIGRAVITY:"antigravity",WINDSURF:"windsurf",CLINE:"cline",OPENCODE:"opencode",ZED:"zed",VSCODE:"vscode",OTHER:"other"},nj={NPX:"npx",GLOBAL:"global",PROJECT:"project",OTHER:"other"},sT={ZERO:"0",ONE:"1",TWO_THREE:"2-3",FOUR_NINE:"4-9",TEN_PLUS:"10+"},rj=_({view:R(zt).optional(),surface:R(Bi).optional(),tabs:R(sT).optional()}),oj={CONNECT:"connect",HUD:"hud",LINK:"link"},ij=_({via:R(oj)}),sj={STARTED:"started",COMPLETED:"completed"},aj={PROVED:"proved",NOT_PROVED:"not_proved",FAILED:"failed",BLOCKED:"blocked",STOPPED:"stopped"},cj={NOT_LINKED:"not_linked",PLATFORM_UNREACHABLE:"platform_unreachable",HARNESS_OFF:"harness_off",NO_CREDITS:"no_credits",NOT_ENTITLED:"not_entitled",COVERAGE_GATE:"coverage_gate",VERSION_SKEW:"version_skew",BROKEN:"broken",OTHER:"other"},lj={AGENT:"agent",HUD:"hud",DASHBOARD:"dashboard",CLI_TRY:"cli_try",PLAN:"plan"},uj=_({phase:R(sj),source:R(lj),hosted:L(),outcome:R(aj).optional(),journeys:R(sT).optional(),replayed:R(sT).optional(),reason:R(cj).optional()}),dj={PASS:"pass",FAIL:"fail",NOTHING_TO_CHECK:"nothing_to_check",REGRESSION:"regression",ERROR:"error"},pj=_({outcome:R(dj),flowsChecked:T().int().nonnegative().optional()}),AC={accountState:R(ej).optional(),linked:L().optional(),workspaceId:p().min(1).max(128).optional(),client:R(tj).optional(),launch:R(nj).optional(),hud:rj.optional(),link:ij.optional(),harness:uj.optional(),gate:pj.optional()},xC={ECONNRESET:"ECONNRESET",ECONNREFUSED:"ECONNREFUSED",EPIPE:"EPIPE",ETIMEDOUT:"ETIMEDOUT",OTHER:"other"},fj={STDIN_END:"stdin_end",IDLE:"idle",CLIENT_GONE_STORM:"client_gone_storm",WAKE_FAILED:"wake_failed"},hj=_({reason:R(fj),uptimeMs:T().int().nonnegative(),drops:T().int().nonnegative(),toolCalls:T().int().nonnegative(),proxyId:p().min(1).max(64).optional()}),mj={ALIVE:"alive",CLEAN:"clean",SIGNALLED:"signalled",DIED_SILENTLY:"died_silently",START_FAILED:"start_failed",UNKNOWN:"unknown"},gj={LISTEN:"listen",START:"start",UNCAUGHT_EXCEPTION:"uncaught_exception",UNHANDLED_REJECTION:"unhandled_rejection",BEFORE_LOG:"before_log"},Ej=/^SIG[A-Z0-9]{1,12}$/,bj=/^(E[A-Z0-9]{2,30}|ERR_[A-Z0-9_]{2,60})$/,_j=_({ageMs:T().int().nonnegative(),end:R(mj).optional(),silentMs:T().int().nonnegative().optional(),signal:p().regex(Ej).optional(),sessions:T().int().nonnegative().optional(),served:L().optional(),rssMb:T().int().nonnegative().optional(),error:p().regex(bj).optional(),startupError:R(gj).optional()}),Tj={DETACHED:"detached",WMI:"wmi",WMI_FALLBACK:"wmi_fallback"},Sj={FOREIGN:"foreign",OTHER_PROJECT:"other_project"},Aj=_({presence:R(Sj)}),yC={proxyExit:hj.optional(),daemonDeath:_j.optional(),wakeRefusal:Aj.optional(),spawnMethod:R(Tj).optional()}});var xj,yj,wC,cT=y(()=>{"use strict";ce();xj={CONTRADICTION:"contradiction",CRAWL:"crawl",REPLAY:"replay",ASSERTION:"assertion"},yj={APP:"app",REQUEST:"request",RETICLE:"reticle",UNCLASSIFIED:"unclassified"},wC=_({source:R(xj),kind:p().min(1).max(64),falseGreen:L(),tool:p().min(1).max(64).optional(),repeat:L(),attribution:R(yj),fingerprint:p().max(16).optional(),occurrence:T().int().positive().optional()})});var wj,un,Eie,vj,Nj,Rj,Oj,Ij,vC,Cj,Lj,$j,kj,Dj,zj,Pj,Mj,Uj,Hj,Fj,bie,NC=y(()=>{"use strict";ce();hC();nT();oT();xc();Zo();xc();iT();aT();cT();cT();wj=3,un={RETICLE_INSTALLED:"reticle_installed",CLI_COMMAND_RUN:"cli_command_run",DAEMON_STARTED:"daemon_started",DAEMON_STOPPED:"daemon_stopped",SESSION_PROGRESS:"session_progress",VERIFICATION_COMPLETED:"verification_completed",PROJECT_PROFILED:"project_profiled",VERSION_CHANGED:"version_changed",RUNTIME_CRASHED:"runtime_crashed",FEEDBACK_SUBMITTED:"feedback_submitted",IDENTIFIED:"identified",MCP_CLIENT_CONNECTED:"mcp_client_connected",APP_INSTRUMENTED:"app_instrumented",MCP_CONNECTION_LOST:"mcp_connection_lost",MCP_PROXY_EXITED:"mcp_proxy_exited",DAEMON_DIED_UNCLEAN:"daemon_died_unclean",WAKE_REFUSED:"wake_refused",INIT_COMPLETED:"init_completed",ONBOARDING_STEP:"onboarding_step",BUG_FOUND:"bug_found",TOOL_REFUSED:"tool_refused",HUD_VIEWED:"hud_viewed",HUD_SIGNIN_PROMPTED:"hud_signin_prompted",PLATFORM_LINKED:"platform_linked",HARNESS_RUN:"harness_run",GATE_COMPLETED:"gate_completed"},Eie=new Set([un.DAEMON_STARTED,un.DAEMON_STOPPED,un.SESSION_PROGRESS,un.MCP_CLIENT_CONNECTED,un.APP_INSTRUMENTED,un.PROJECT_PROFILED,un.VERIFICATION_COMPLETED,un.BUG_FOUND,un.RUNTIME_CRASHED,un.FEEDBACK_SUBMITTED,un.TOOL_REFUSED,un.HUD_VIEWED,un.HUD_SIGNIN_PROMPTED,un.HARNESS_RUN]),vj={HUMAN:"human",AGENT:"agent"},Nj={GIT_ORIGIN:"git_origin",GIT_ROOT:"git_root",PACKAGE_ROOT:"package_root",CWD:"cwd"},Rj={HARNESS:"harness"},Oj=_({via:p().min(1).max(64),verified:p().min(1).max(16),passed:L(),falseGreenCaught:L(),durationMs:T().int().nonnegative().optional(),browser:p().min(1).max(16).optional(),brand:R(et).optional(),reason:R(ot).optional(),uncleanLoss:R(VO).optional(),driven:R(Rj).optional(),sdkVersion:p().min(1).max(32).optional()}),Ij=_({from:p().min(1).max(64),to:p().min(1).max(64),nudged:L().optional(),direction:p().min(1).max(16)}),vC={RETICLE:"reticle",OTHER:"other"},Cj=_({kind:p().min(1).max(32),errorType:p().min(1).max(64).optional(),fingerprint:p().min(1).max(64).optional(),message:p().max(300).optional(),frames:O(p().max(120)).max(12).optional(),tool:p().min(1).max(64).optional(),breadcrumb:O(p().max(64)).max(12).optional(),nodeVersion:p().max(24).optional(),arch:p().max(16).optional(),machine:rT.optional(),syscall:p().max(32).optional(),errno:p().max(32).optional(),loopback:L().optional(),port:fe([vC.RETICLE,vC.OTHER]).optional(),internalFrame:p().max(64).optional()}),Lj=_({reconnect:L(),daemonAgeMs:T().int().nonnegative(),client:p().min(1).max(64).optional(),appConnected:L().optional(),proxyId:p().min(1).max(64).optional()}),$j=_({initialized:L(),agentAttached:L(),msToFirstApp:T().int().nonnegative(),firstEver:L().optional()}),kj={FIRST:"first",BUDGET_SPENT:"budget_spent",RECOVERED:"recovered"},Dj={SSE_ENDED:"sse_ended",DAEMON_SHUTDOWN:"daemon_shutdown",SSE_ERROR:"sse_error",SSE_ABORTED:"sse_aborted",SSE_CLOSED:"sse_closed",CONNECT_ERROR:"connect_error",SSE_RESET:"sse_reset",OTHER:"other"},zj=_({stage:R(kj),reason:R(Dj),attempts:T().int().nonnegative(),pendingLost:T().int().nonnegative().optional(),errCode:R(xC).optional(),responded:L().optional(),proxyId:p().min(1).max(64).optional()}),Pj={SKILL_FILE:"skill_file",NPX_SKILL:"npx_skill",PLUGIN:"plugin",INSTALL_SCRIPT:"install_script",DOCS_SITE:"docs_site",README:"readme",BLOG:"blog",CLI_DIRECT:"cli_direct",UNKNOWN:"unknown"},Mj={CONTAINER:"container",HOSTED_WORKSPACE:"hosted_workspace",CI_RUNNER:"ci_runner",AGENT_SANDBOX:"agent_sandbox"},Uj={CONNECTED:"connected",NO_DAEMON:"no_daemon",NO_SESSION:"no_session",NO_PAGE:"no_page",DEV_SERVER_NOT_STARTED:"dev_server_not_started"},Hj={NO_DEV_COMMAND:"no_dev_command",SPLIT_LOOPBACK:"split_loopback",PORT_BUSY:"port_busy",DEV_SERVER_EXITED:"dev_server_exited",NO_URL:"no_url",NOT_READY:"not_ready",PAGE_NOT_SERVED:"page_not_served",PAGE_TLS_REFUSED:"page_tls_refused",SDK_MISSING:"sdk_missing",NO_SESSION:"no_session",DESKTOP_NO_SESSION:"desktop_no_session"},Fj=_({ok:L(),reason:p().max(64).optional(),stack:p().max(64).optional(),mcpRegistered:L().optional(),confirmation:R(Uj).optional(),stop:R(Hj).optional()}),bie=_({v:H(wj),anonymousId:p().min(1).max(128),projectId:p().min(1).max(128).optional(),sessionId:p().min(1).max(64).optional(),event:R(un),ts:T().int().nonnegative(),version:p().min(1).max(64),ci:L(),automation:R(Mj).optional(),projectIdSource:R(Nj).optional(),os:p().min(1).max(32),tzOffsetMin:T().int().min(-900).max(900).optional(),internal:L().optional(),idEphemeral:L().optional(),feedback:$0.optional(),actor:R(vj).optional(),command:p().min(1).max(32).optional(),flags:O(p().max(32)).max(16).optional(),session:_C.optional(),project:TC.optional(),verification:Oj.optional(),versionChange:Ij.optional(),crash:Cj.optional(),identity:k0.optional(),connection:Lj.optional(),init:Fj.optional(),onboarding:fC.optional(),bug:wC.optional(),refusal:gC.optional(),outage:zj.optional(),instrumentation:$j.optional(),installSource:R(Pj).optional(),licenseId:p().min(1).max(64).optional(),licenseStatus:R(SC).optional(),licenseKeyPresent:L().optional(),...AC,...yC})});var RC=y(()=>{"use strict"});var OC,lT=y(()=>{"use strict";Bb();OC={SESSIONS:"reticle_sessions",LOOK:"reticle_look",SNAPSHOT:"reticle_snapshot",QUERY:"reticle_query",INSPECT:"reticle_inspect",ACT:eh.ACT,ACT_SEQUENCE:eh.ACT_SEQUENCE,ACT_AND_WAIT:eh.ACT_AND_WAIT,OBSERVE:"reticle_observe",LINEAGE:"reticle_lineage",WAIT_FOR:"reticle_wait_for",NETWORK:"reticle_network",CONSOLE:"reticle_console",ANIMATIONS:"reticle_animations",ASSERT:"reticle_assert",RECONCILE:"reticle_reconcile",BASELINE_SAVE:"reticle_baseline_save",BASELINE_LIST:"reticle_baseline_list",DIFF:"reticle_diff",RECORD_START:"reticle_record_start",RECORD_STOP:"reticle_record_stop",REPLAY:"reticle_replay",EXPLORE:"reticle_explore",NARRATE:"reticle_narrate",CLOCK:"reticle_clock",STATE:"reticle_state",STORAGE:"reticle_storage",CAPABILITIES:"reticle_capabilities",CONTRACT_SAVE:"reticle_contract_save",DOMAIN:"reticle_domain",FLOW_SAVE:"reticle_flow_save",FLOW_LIST:"reticle_flow_list",FLOW_LOAD:"reticle_flow_load",FLOW_DELETE:"reticle_flow_delete",FLOW_REPLAY:"reticle_flow_replay",FLOW_VERIFY:"reticle_flow_verify",FLOW_SAVE_RECORDED:"reticle_flow_save_recorded",FLOW_HEAL:"reticle_flow_heal",FLOW_MUTATE:"reticle_flow_mutate",ANNOTATE:"reticle_annotate",AFFECTED:"reticle_affected",COVERAGE:"reticle_coverage",VERIFY_CHANGE:"reticle_verify_change",VERIFY_EXPLORE:"reticle_verify_explore",VERIFY_COMPARE:"reticle_verify_compare",INTENT:"reticle_intent",CONTEXT:"reticle_context",MAP:"reticle_map",VERIFY:"reticle_verify",PROJECT:"reticle_project",ACCOUNT:"reticle_account",MEMORY:"reticle_memory",RUN_RECORD:"reticle_run_record",SCREENSHOT:"reticle_screenshot",NETWORK_MOCK:"reticle_network_mock",VIEWPORT:"reticle_viewport",VISUAL_DIFF:"reticle_visual_diff",CRAWL:"reticle_crawl",SCROLL_TO:"reticle_scroll_to",SESSION_TUNE:"reticle_session_tune",END_SESSION:"reticle_end_session",YIELD:"reticle_yield",RESUME:"reticle_resume",MESSAGES:"reticle_messages",REVIEW:"reticle_review",WAIT_READY:"reticle_wait_ready",NAVIGATE:"reticle_navigate",REFRESH:"reticle_refresh",RUN_EXPORT:"reticle_run_export",BASELINE:"reticle_baseline",SESSION:"reticle_session",RECORD:"reticle_record",FLOW:"reticle_flow",LEASE:"reticle_lease",LEASE_ACQUIRE:"reticle_lease_acquire",LEASE_RELEASE:"reticle_lease_release",LEASE_COVERAGE:"reticle_lease_coverage",TOOLS:"reticle_tools",RUN:"reticle_run",FEEDBACK:"reticle_feedback"}});var IC,Bj,Dh,Gj,wie,vie,Nie,CC=y(()=>{"use strict";ce();lT();IC="reticle connect",Bj={HARNESS_NOT_LINKED:"harness_not_linked"},Dh={HUMAN:"human",AGENT:"agent"},Gj=Rt("who",[_({who:H(Dh.HUMAN),run:p()}),_({who:H(Dh.AGENT),tool:p()})]),wie=_({code:fe([Bj.HARNESS_NOT_LINKED]),next:O(Gj)}),vie=[{who:Dh.HUMAN,run:IC},{who:Dh.AGENT,tool:OC.ACT_AND_WAIT}],Nie=`Connect your Reticle account to run the Harness: \`${IC}\`.`});var LC=y(()=>{"use strict"});var $C=y(()=>{"use strict"});var Die,zie,Pie,Mie,kC=y(()=>{"use strict";_c();xc();vh();Gt();Die={[Vi.WEB]:{surface:cr.WEB,isDesktopShell:!1,usesWebKit:!1,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!1},[Vi.ELECTRON]:{surface:cr.DESKTOP,isDesktopShell:!0,projectMarker:{dependency:"electron"},usesWebKit:!1,ownsCoverageKinds:!0,hasOwnBaselineDirectory:!0},[Vi.TAURI]:{surface:cr.DESKTOP,isDesktopShell:!0,projectMarker:{file:"src-tauri/tauri.conf.json"},usesWebKit:!0,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!0}},zie=new Set(Object.values(Fn)),Pie={[Vi.WEB]:fo.WEB,[Vi.ELECTRON]:fo.WEBVIEW,[Vi.TAURI]:fo.WEBVIEW},Mie={[cr.WEB]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[cr.DESKTOP]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[cr.MOBILE]:{reset:"costly",replayPrefix:"costly",time:"wall",observation:"exact",actions:"reversible"},[cr.SERVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"exact",actions:"irreversible"},[cr.GAME]:{reset:"cheap",replayPrefix:"free",time:"stepped",observation:"exact",actions:"reversible"},[cr.DEVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"sampled",actions:"irreversible"}}});var PC,Vj,jj,DC,Kj,MC,Wj,zC,Zj,xt,Yj,Xj,qj,Jj,Qj,e6,UC,t6,n6,HC,uT=y(()=>{"use strict";ce();PC=_({calls:T().int().nonnegative(),verdicts:T().int().nonnegative(),passed:T().int().nonnegative(),failed:T().int().nonnegative(),unknown:T().int().nonnegative(),refusals:T().int().nonnegative(),marks:T().int().nonnegative(),sessions:T().int().nonnegative(),tokensReturned:T().int().nonnegative(),drivingMs:T().int().nonnegative()}),Vj=_({date:p(),counts:PC}),jj=_({longestRunMs:T().int().nonnegative(),bestVerdictDay:T().int().nonnegative(),bestDefectDay:T().int().nonnegative(),streakDays:T().int().nonnegative(),bestStreakDays:T().int().nonnegative()}),DC=_({value:T().nonnegative(),basis:p()}),Kj=_({tokens:DC,minutes:DC}),MC=10,Wj=_({at:T().int().nonnegative(),title:p(),detail:p().optional(),source:p().optional()}),zC=_({counts:PC,days:O(Vj),records:jj,savings:Kj,since:T().int().nonnegative(),defects:O(Wj).default([])}),Zj=_({signedIn:L(),org:p().optional(),email:p().optional(),host:p().optional()}),xt={FREE:"free",TRIAL:"trial",PAID:"paid"},Yj=_({provider:p(),harnessEnabled:L(),harnessEntitled:L(),providerReady:L().optional(),credits:_({used:T().min(0),limit:T().min(0),kind:fe([xt.FREE,xt.TRIAL,xt.PAID]).optional(),daysLeft:T().int().min(0).optional()}).optional(),platformUrl:p().optional(),planUrl:p().optional(),plan:_({kind:fe([xt.FREE,xt.TRIAL,xt.PAID]),daysLeft:T().int().min(0).optional(),seats:T().int().min(0).optional()}).optional(),harnessRuns:T().int().min(0).optional(),memoryEntries:T().int().min(0).optional()}),Xj=60,qj=_({runId:p(),steps:T().int().min(0),lines:O(p()).max(Xj).optional()}),Jj=_({runUrl:p().optional(),said:p().optional(),seq:T().int().min(0).optional()}),Qj=500,e6=5,UC=64,t6=_({text:p().max(Qj),seen:L(),by:p().max(UC).optional()}),n6=_({agents:O(p().max(UC)).max(8),notes:O(t6).max(e6)}),HC=_({schemaVersion:T().int().positive(),project:zC,global:zC,projectName:p().optional(),dashboardUrl:p().optional(),account:Zj.optional(),harnessConfig:Yj.optional(),harnessDrive:qj.optional(),lastDrive:Jj.optional(),agent:n6.optional(),notices:O(Q()).max(8).optional(),coverage:se(p(),T()).optional(),sync:se(p(),Q()).optional(),instrumentation:se(p(),Q()).optional()})});var FC=y(()=>{"use strict"});function vc(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(16).padStart(8,"0")}function BC(e){let t=Object.keys(e).sort().map(n=>{var r;return`${n}:${[...(r=e[n])!=null?r:[]].sort().join(",")}`}).join("|");return vc(t)}var dT,ud,GC=y(()=>{"use strict";Gt();dT=BC({messageKinds:Object.values(sn),commands:Object.values(B),actions:Object.values(k),events:Object.values(v)}),ud={commands:Object.values(B),events:Object.values(v),actions:Object.values(k)}});var VC,jC=y(()=>{"use strict";VC="[Reticle] this page could not open a websocket to "});var KC=y(()=>{"use strict"});var M=y(()=>{"use strict";hy();lI();uI();dI();hI();Gt();gI();I_();TI();AI();wI();vI();RI();HI();L_();FI();Zo();BI();GI();VI();k_();rd();YI();P_();JI();n0();o0();s0();a0();X_();Ih();O0();I0();D0();z0();Gu();Bb();cI();Kb();P0();d_();c_();p_();U0();ed();H0();F0();Ko();b_();g_();x_();w_();v_();B0();G0();V0();W0();Y0();X0();q0();J0();Q0();eC();tC();Q_();rC();oC();W_();G_();sC();aC();cC();NC();tT();nT();RC();lT();CC();LC();vh();Nh();$C();kC();oT();aT();iT();xc();uT();FC();GC();jC();KC()});function $e(e,t){return e[t]}function WC(e){let t=Object.getOwnPropertyDescriptor(e,"value");return t===void 0?void 0:$e(t,"set")}var qo=y(()=>{"use strict"});function i6(){for(let e of ji)e.deref()===void 0&&ji.delete(e);for(;ji.size>r6;){let e=ji.values().next();if(e.done===!0)break;ji.delete(e.value)}}function XC(){let e=[];for(let t of ji){let n=t.deref();n!==void 0&&e.push(n)}return e}function YC(e,t){if(!ZC.has(e)){ZC.add(e),ji.add(new WeakRef(e)),fT+=1,fT>=o6&&(fT=0,i6()),hT.add(t);for(let n of zh)n(e)}}function qC(){return XC()}function JC(e){return hT.has(e)}function ta(e){if(!hT.has(e))return null;for(let t of XC())if(t.host===e)return t;return null}function QC(e){return zh.add(e),()=>zh.delete(e)}function eL(){let e=Element.prototype,t=$e(e,"attachShadow");if(typeof t!="function")return()=>{};pT+=1;let n=function(i){let s=t.call(this,i);return YC(s,this),s};e.attachShadow=n;let r=o=>{for(let i of o.querySelectorAll("*")){let s=i.shadowRoot;s!==null&&(YC(s,i),r(s))}};return document.documentElement!==null&&r(document.documentElement),()=>{$e(e,"attachShadow")===n&&(e.attachShadow=t),pT-=1,!(pT>0)&&(ji.clear(),zh.clear())}}function s6(e){let t=e.parentElement;if(t===null||t.shadowRoot!==null)return null;let n=ta(t);if(n===null)return null;for(let r of Array.from(n.querySelectorAll("slot")))if(r.assignedElements().includes(e))return r;return null}function Pr(e){var r;let t=(r=e.assignedSlot)!=null?r:s6(e);if(t!==null)return t;if(e.parentElement!==null)return e.parentElement;let n=e.getRootNode().host;return n!=null?n:null}var pT,ji,ZC,hT,r6,o6,fT,zh,Jo=y(()=>{"use strict";qo();pT=0,ji=new Set,ZC=new WeakSet,hT=new WeakSet,r6=4e3,o6=250,fT=0;zh=new Set});function tL(e,t){var o;if(e===null||typeof e!="object")return;let r=((o=e.ownerDocument)!=null?o:e).defaultView;if(r!=null)return r[t]}function jn(e,t,n){var o;let r=(o=tL(e,t))!=null?o:n;return typeof r=="function"&&e instanceof r}function sL(e){let t=Vt(e)?"HTMLTextAreaElement":"HTMLInputElement",n=tL(e,t);if(typeof n!="function")return;let r=n.prototype;return typeof r=="object"&&r!==null?r:void 0}var dn,mT,lt,a6,Qo,Fe,Vt,Mr,dd,nL,rL,oL,iL,Ph,jt=y(()=>{"use strict";dn=e=>jn(e,"Element",typeof Element=="undefined"?void 0:Element),mT=e=>jn(e,"HTMLImageElement",typeof HTMLImageElement=="undefined"?void 0:HTMLImageElement),lt=e=>jn(e,"HTMLElement",typeof HTMLElement=="undefined"?void 0:HTMLElement),a6=e=>jn(e,"SVGElement",typeof SVGElement=="undefined"?void 0:SVGElement),Qo=e=>lt(e)||a6(e),Fe=e=>jn(e,"HTMLInputElement",typeof HTMLInputElement=="undefined"?void 0:HTMLInputElement),Vt=e=>jn(e,"HTMLTextAreaElement",typeof HTMLTextAreaElement=="undefined"?void 0:HTMLTextAreaElement),Mr=e=>jn(e,"HTMLSelectElement",typeof HTMLSelectElement=="undefined"?void 0:HTMLSelectElement),dd=e=>jn(e,"HTMLButtonElement",typeof HTMLButtonElement=="undefined"?void 0:HTMLButtonElement),nL=e=>jn(e,"HTMLMeterElement",typeof HTMLMeterElement=="undefined"?void 0:HTMLMeterElement),rL=e=>jn(e,"HTMLOutputElement",typeof HTMLOutputElement=="undefined"?void 0:HTMLOutputElement),oL=e=>jn(e,"HTMLProgressElement",typeof HTMLProgressElement=="undefined"?void 0:HTMLProgressElement),iL=e=>jn(e,"HTMLFormElement",typeof HTMLFormElement=="undefined"?void 0:HTMLFormElement),Ph=e=>jn(e,"HTMLIFrameElement",typeof HTMLIFrameElement=="undefined"?void 0:HTMLIFrameElement)});function u6(e){if(e.id.length>0)return`#${e.id}`;let t=e.getAttribute("class");return t!==null&&t.trim().length>0?`.${t.trim().split(/\s+/).join(".")}`:e.tagName.toLowerCase()}function aL(e){let t=e.ownerDocument.defaultView;if(t===null)return[];let n=[];for(let r=e;r!==null&&r!==e.ownerDocument.documentElement;r=r.parentElement){let o=t.getComputedStyle(r);for(let i of c6){let s=o.getPropertyValue(i);s.length>0&&s!==l6[i]&&n.push({on:u6(r),property:i,value:s})}}return n}function Mh(e){var o;let t=(o=e==null?void 0:e.overflow)!=null?o:"",[n="visible",r=n]=(t===""?"visible":t).split(/\s+/);return[e===null||e.overflowX===""?n:e.overflowX,e===null||e.overflowY===""?r:e.overflowY]}function gT(e,t){var K;if(t.clipBox!==void 0)return t.clipBox;let n=e.getBoundingClientRect(),r=t.style,o=Z=>Number.parseFloat(Z!=null?Z:"")||0,i=(Z,F)=>F===void 0||F===""||F==="none"||F==="hidden"?0:o(Z),s=lt(e)&&e.offsetWidth>0?n.width/e.offsetWidth:1,a=lt(e)&&e.offsetHeight>0?n.height/e.offsetHeight:1,l=lt(e)&&e.offsetWidth>0?n.left+e.clientLeft*s:n.left+i(r==null?void 0:r.borderLeftWidth,r==null?void 0:r.borderLeftStyle),u=lt(e)&&e.offsetHeight>0?n.top+e.clientTop*a:n.top+i(r==null?void 0:r.borderTopWidth,r==null?void 0:r.borderTopStyle),d=lt(e)&&e.offsetWidth>0?l+e.clientWidth*s:n.right-i(r==null?void 0:r.borderRightWidth,r==null?void 0:r.borderRightStyle),f=lt(e)&&e.offsetHeight>0?u+e.clientHeight*a:n.bottom-i(r==null?void 0:r.borderBottomWidth,r==null?void 0:r.borderBottomStyle),m=((K=r==null?void 0:r.overflowClipMargin)!=null?K:"").split(/\s+/),h=o(m.at(-1)),g=m.includes("border-box"),b=m.includes("content-box"),[x,w]=Mh(r),N=x==="clip"?(g?n.left:l+(b?o(r==null?void 0:r.paddingLeft)*s:0))-h*s:l,C=x==="clip"?(g?n.right:d-(b?o(r==null?void 0:r.paddingRight)*s:0))+h*s:d,D=w==="clip"?(g?n.top:u+(b?o(r==null?void 0:r.paddingTop)*a:0))-h*a:u,z=w==="clip"?(g?n.bottom:f-(b?o(r==null?void 0:r.paddingBottom)*a:0))+h*a:f;return t.clipBox={left:N,right:C,top:D,bottom:z,width:C-N,height:z-D},t.clipBox}function cL(e,t,n,r){let o=(u,d,f,m,h)=>{if(d>m&&u<h)return[u,d];let g=Math.min(f,h-m);return u>=h?[h-g,h]:[m,m+g]},[i,s]=n?o(e.left,e.right,e.width,t.left,t.right):[e.left,e.right],[a,l]=r?o(e.top,e.bottom,e.height,t.top,t.bottom):[e.top,e.bottom];return{left:i,right:s,top:a,bottom:l,width:s-i,height:l-a}}var c6,l6,ET=y(()=>{"use strict";jt();c6=["filter","opacity","transform","mix-blend-mode","backdrop-filter"],l6={filter:"none",opacity:"1",transform:"none","mix-blend-mode":"normal","backdrop-filter":"none"}});function d6(e){let t=e.parentElement;if(t===null)return!1;let n=t.closest(bT);if(n===null||n.hasAttribute(_T))return!1;let r=Array.from(n.children).find(o=>Uh===o.localName);return r===void 0||!r.contains(e)}function TT(e){return!e.ownerDocument.hidden||!("getAnimations"in e)?!1:e.getAnimations().some(t=>t.playState==="running"||t.pending)}function Nc(e){return f6.includes(e.tagName.toLowerCase())}function m6(e){return e.hasAttribute(p6)?!0:g6(e)}function g6(e){let t=e.ownerDocument.body;if(e.parentElement!==t)return!1;let r=Array.from(t.children).filter(i=>i!==e&&!h6.has(i.localName)&&!i.matches(Gi)).filter(i=>i.getAttribute("aria-hidden")!=="true"),o=r[0];return r.length===1&&o!==void 0&&E6(o)}function E6(e){var n,r;let t=e.matches(lL)?e:e.querySelector(lL);for(let o=t;o!==null;o=o.parentElement){let i=(r=(n=o.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(o))!=null?r:null;if(Hh(o,i))return!1;if(o===e)return!0}return!1}function Hh(e,t,n=!0){return!!(lt(e)&&e.hidden||d6(e)||t!==null&&(t.display==="none"||n&&mL(t)||Number.parseFloat(t.opacity||"1")===0&&!TT(e)||b6(t)))}function mL(e){return(e==null?void 0:e.visibility)==="hidden"||(e==null?void 0:e.visibility)==="collapse"}function b6(e){var u,d,f,m;let t=/^rect\((.*)\)$/.exec(e.getPropertyValue("clip").trim());if(t!==null&&(e.position==="absolute"||e.position==="fixed")){let[h,g,b,x]=((u=t[1])!=null?u:"").split(/[\s,]+/).map(Number.parseFloat);if(g!==void 0&&x!==void 0&&g<=x||b!==void 0&&h!==void 0&&b<=h)return!0}let n=/^inset\(([^)]*)\)$/.exec(e.getPropertyValue("clip-path").trim()),r=(m=(f=(d=n==null?void 0:n[1])==null?void 0:d.split(/\s+round\s/)[0])==null?void 0:f.trim().split(/\s+/))!=null?m:[],o=h=>h.endsWith("%")||Number.parseFloat(h)===0;if(r.length===0||!r.every(o))return!1;let[i=0,s=i,a=i,l=s]=r.map(Number.parseFloat);return i+a>=100||l+s>=100}function _6(e,t){return e.getAttribute("aria-hidden")==="true"&&!m6(e)?!0:Hh(e,t,!1)}function gL(e){var r,o;let t=!1,n=e;for(;n!==null;){n.getAttribute("aria-hidden")==="true"&&(t=!0);let i=(o=(r=n.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(n))!=null?o:null;if(Hh(n,i,n===e))return!1;n=Pr(n)}return t}function EL(e){var n,r;let t=e;for(;t!==null;){if(t.getAttribute("aria-hidden")==="true")return!1;let o=(r=(n=t.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(t))!=null?r:null;if(Hh(t,o,t===e))return!1;t=Pr(t)}return!0}function T6(e){if(typeof DOMMatrix=="undefined")return null;try{let t=e==null?void 0:e.transform;return t===void 0||t===""||t==="none"?new DOMMatrix:new DOMMatrix(t)}catch{return null}}function S6(e){return Number.isFinite(e.m33)&&0>e.m33}function A6(e,t){let n=[],r=!1;for(let i=e;i!==null;i=Pr(i)){let s=Nn(i,t).style;uL===(s==null?void 0:s.backfaceVisibility)&&(r=!0),n.push(i)}if(!r)return!1;let o=null;for(let i=n.length-1;i>=0;i-=1){let s=n[i];if(s===void 0)return!1;let a=Nn(s,t).style,l=T6(a);if(l===null)return!1;if(o=o===null?l:o.multiply(l),uL===(a==null?void 0:a.backfaceVisibility)&&S6(o))return!0}return!1}function ST(e){if(e===void 0)return new Map;let t=hL.get(e);return t===void 0&&(t=new Map,hL.set(e,t)),t}function w6(e,t){for(let n=Pr(e);n!==null;n=Pr(n)){let r=t.get(n);if(r!==void 0)return r.hidden}return!1}function Nn(e,t){var r,o,i;let n=t.get(e);if(n===void 0){if(w6(e,t))return n={hidden:!0,style:null,parent:null,clipX:!1,clipY:!1,scrollX:!1,scrollY:!1,hasClipping:!1},t.set(e,n),n;let s=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e))!=null?o:null;if(_6(e,s))return n={hidden:!0,style:s,parent:null,clipX:!1,clipY:!1,scrollX:!1,scrollY:!1,hasClipping:!1},t.set(e,n),n;let a=Pr(e),l=a===null?void 0:Nn(a,t),[u,d]=Mh(s),f=e.ownerDocument.documentElement,h=!(e===f||e===e.ownerDocument.body&&Mh(Nn(f,t).style).every(x=>x==="visible"))&&!bL.has((i=s==null?void 0:s.display)!=null?i:"")&&!(lt(e)&&(s==null?void 0:s.display)==="inline"),g=h&&dL.has(u),b=h&&dL.has(d);n={hidden:(l==null?void 0:l.hidden)===!0,style:s,parent:a,clipX:g,clipY:b,scrollX:h&&pL.has(u),scrollY:h&&pL.has(d),hasClipping:g||b||(l==null?void 0:l.hasClipping)===!0},t.set(e,n)}return n}function v6(e,t,n){for(let r=Nn(e,n).parent;r!==null;r=Nn(r,n).parent){let o=Nn(r,n).style;if(o===null||o.display==="contents")continue;if(!t&&o.position!==""&&o.position!=="static")return r;let i=!(o.display==="inline"&&lt(r)&&!y6.has(r.localName))&&o.display!=="table-column"&&o.display!=="table-column-group",s=a=>i||!_L.has(a);if([...fL].some(a=>{let l=o.getPropertyValue(a);return s(a)&&l!==""&&l!=="none"})||o.willChange.split(",").some(a=>fL.has(a.trim())&&s(a.trim()))||i&&!bL.has(o.display)&&(o.contain.split(/\s+/).some(a=>x6.has(a))||o.contentVisibility==="auto"))return r}return null}function TL(e,t,n,r=!1){let o=n,i=Nn(e,t);if(i.hidden)return null;if(i.parent===null||!Nn(i.parent,t).hasClipping)return o;let s;for(let a=e;a!==null;a=Nn(a,t).parent){let l=Nn(a,t);if(l.hidden)return null;a===s&&(s=void 0);let u=l.style;if(r&&a!==e&&s===void 0&&(l.scrollX||l.scrollY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0&&(o=cL(o,gT(a,l),l.scrollX,l.scrollY))),a!==e&&s===void 0&&(l.clipX||l.clipY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0)){let d=gT(a,l),f=l.clipX?Math.max(o.left,d.left):o.left,m=l.clipX?Math.min(o.right,d.right):o.right,h=l.clipY?Math.max(o.top,d.top):o.top,g=l.clipY?Math.min(o.bottom,d.bottom):o.bottom;if(m<=f||g<=h)return null;o={left:f,right:m,top:h,bottom:g,width:m-f,height:g-h}}s===void 0&&((u==null?void 0:u.position)==="absolute"||(u==null?void 0:u.position)==="fixed")&&(s=v6(a,(u==null?void 0:u.position)==="fixed",t))}return o}function Ki(e,t){if(!Ue(e,t))return!1;let n=e.ownerDocument.defaultView;if(n===null)return!1;let r=TL(e,ST(t),e.getBoundingClientRect());return r==null||r.width<=0||r.height<=0?!1:r.bottom>0&&r.right>0&&r.top<n.innerHeight&&r.left<n.innerWidth}function N6(e,t){let n=Nn(e,t);if(!n.clipX&&!n.clipY)return!1;let r=Array.from(e.getClientRects());return r.length>0&&r.every(o=>n.clipX&&o.width===0||n.clipY&&o.height===0||n.clipX&&n.clipY&&o.width<=1&&o.height<=1)}function AT(e,t){return Nn(e,ST(t)).hidden}function Ue(e,t){if(!e.isConnected)return!1;let n=t==null?void 0:t.get(e);if(n!==void 0)return n;let r=ST(t),o=!mL(Nn(e,r).style)&&TL(e,r,void 0,!0)!==null&&!N6(e,r)&&!A6(e,r);return t!==void 0&&t.set(e,o),o}var bT,_T,Uh,p6,lL,f6,h6,uL,dL,pL,bL,_L,fL,x6,y6,hL,Kn=y(()=>{"use strict";M();jt();Jo();ET();bT="details",_T="open",Uh="summary";p6="data-aria-hidden",lL='[role="dialog"], [role="alertdialog"], [role="menu"], [role="listbox"], dialog[open], [aria-modal="true"]',f6=["script","style","template","noscript"];h6=new Set(["script","style","template","noscript","link","meta"]);uL="hidden";dL=new Set(["hidden","clip"]),pL=new Set(["auto","scroll"]),bL=new Set(["contents","table-row","table-row-group","table-header-group","table-footer-group","table-column","table-column-group"]),_L=new Set(["transform","translate","rotate","scale","perspective"]),fL=new Set([..._L,"filter","backdrop-filter"]),x6=new Set(["layout","paint","strict","content"]),y6=new Set(["img","video","audio","canvas","iframe","embed","object","input","textarea","select"]),hL=new WeakMap});function xL(e){yT=e}function wT(e){yL=e}function vL(){return yT}function NL(e){AL=e.join(",")}function yt(e){return e.closest(Wi)!==null}function ho(e){return yt(e)?!wL()||e.closest(O6)===null:!1}function Wn(e){return e!==null&&e.closest(Wi)!==null}function Ot(e){let n=[wL()?I6:Wi,R6,AL].filter(r=>r.length>0).join(",");return e.closest(n)!==null}function pd(e){return Ot(e)||yt(e)}function $6(e){var r;let t=e.querySelector(L6);if(t!==null)return{name:xT.VITE,host:t};for(let o of Array.from(e.querySelectorAll(C6))){let i=(r=o.shadowRoot)!=null?r:ta(o),s=(i!=null?i:o).querySelector(SL);if(s!==null&&Ue(s))return{name:xT.NEXT,host:o}}let n=e.querySelector(SL);if(!(n===null||!Ue(n)))return{name:xT.NEXT,host:n}}function RL(e){let t=e[0];if(t===void 0)return;let n=$6(t.ownerDocument);if(n!==void 0)return e.some(r=>!k6(r,n.host))?n.name:void 0}function k6(e,t){var n;for(let r=e;r!==null;){if(r===t)return!0;let o=r.getRootNode();r=(n=r.parentNode)!=null?n:o instanceof ShadowRoot?o.host:null}return!1}function Fh(e){for(let t of Array.from(e.querySelectorAll(D6)))if(t.closest(Wi)===null&&!(t instanceof HTMLElement&&(t.hidden||t.closest("[hidden]")!==null))&&!(t instanceof HTMLElement&&getComputedStyle(t).display==="none"))return!0;return!1}var Wi,R6,AL,yT,yL,wL,O6,I6,xT,C6,SL,L6,D6,it=y(()=>{"use strict";M();Jo();Kn();Wi=Gi,R6="[data-agentation],#__next-build-watcher,nextjs-portal,[data-nextjs-dialog],[data-nextjs-toast]",AL="",yT=!1;yL=!1;wL=()=>yT&&!yL;O6="[data-reticle-dock]";I6="[data-reticle-log],[data-reticle-harness-log],[data-reticle-chat-pill-text],[data-reticle-agent-said],[data-reticle-agent-note],[data-reticle-act-line]";xT={NEXT:"Next.js error dialog",VITE:"Vite error overlay"},C6="nextjs-portal",SL="[data-nextjs-dialog]",L6="vite-error-overlay";D6='dialog[open], [aria-modal="true"]'});function Zi(){return Bh}function Zn(){return`[${Bh}]`}function we(e){return e.getAttribute(Bh)}function kL(e){Bh=e!==void 0&&yI.test(e)?e:Zs}var Bh,It=y(()=>{"use strict";M();Bh=Zs});function Kh(e){return H6.has(e)||e.startsWith(Gh)||e.startsWith(Vh)||e.startsWith(jh)}var wt,Gh,Vh,jh,H6,mo=y(()=>{"use strict";M();wt={SESSION:gO,REF_BASE:"__reticle_ref_base",PRESENTER_LOG:"reticle-presenter-log",PRESENTER_LOG_OWNER:"reticle-presenter-log-owner",PRESENTER_SETTINGS:"reticle-presenter-settings",PRESENTER_MINIMISED:"reticle-presenter-minimised",PRESENTER_OPEN:"reticle-presenter-open",PRESENTER_VIEW:"reticle-presenter-view",CAROUSEL_DISMISSED:"reticle.carousel.dismissed",ANNOTATION_HISTORY:"reticle.annotations.history.v1"},Gh="reticle.tour.seen.",Vh="reticle.harness.persona.",jh="reticle.impact.seen.",H6=new Set(Object.values(wt))});function Ur(e){let t=W.MAX_REF_LENGTH;return t>=e.length?e:`${e.slice(0,t)}${F6}`}function V6(e){try{let t=e==null?void 0:e.getItem(zL),n=t==null?Number.NaN:Number(t);return Number.isSafeInteger(n)&&n>0?n:0}catch{return 0}}var DL,F6,vT,B6,zL,G6,hd,Ct,md,ei,Rc,Oc,Ic,ti,PL,NT,ML,fd,ee,ut=y(()=>{"use strict";M();mo();DL=1e4,F6="\u2026",vT="e";B6=1e3,zL=wt.REF_BASE,G6=100;fd=class{constructor(t=()=>globalThis.sessionStorage){A(this,ti);A(this,hd,new WeakMap);A(this,Ct,new Map);A(this,md);A(this,ei,0);A(this,Rc,0);A(this,Oc,0);A(this,Ic,0);E(this,md,t)}get size(){return c(this,Ct).size}markEdited(){E(this,Ic,c(this,ei))}mintedBeforeLastEdit(t){if(c(this,Ic)===0||!t.startsWith(vT))return!1;let n=Number(t.slice(vT.length));return Number.isSafeInteger(n)&&n>0&&n<=c(this,Ic)}refFor(t){let n=c(this,hd).get(t);if(n!==void 0){let o=c(this,Ct).get(n);return c(this,Ct).delete(n),c(this,Ct).set(n,o!=null?o:new WeakRef(t)),n}c(this,ei)>=c(this,Rc)&&S(this,ti,PL).call(this),E(this,ei,c(this,ei)+1);let r=M0(`${vT}${String(c(this,ei))}`);return c(this,hd).set(t,r),c(this,Ct).set(r,new WeakRef(t)),E(this,Oc,c(this,Oc)+1),c(this,Oc)>=B6?(E(this,Oc,0),S(this,ti,ML).call(this)):c(this,Ct).size>DL&&S(this,ti,NT).call(this),r}resolve(t){let n=c(this,Ct).get(t);if(n===void 0)return null;let r=n.deref();return r===void 0||!r.isConnected?(c(this,Ct).delete(t),null):(c(this,Ct).delete(t),c(this,Ct).set(t,n),r)}};hd=new WeakMap,Ct=new WeakMap,md=new WeakMap,ei=new WeakMap,Rc=new WeakMap,Oc=new WeakMap,Ic=new WeakMap,ti=new WeakSet,PL=function(){let t;try{t=c(this,md).call(this)}catch{t=void 0}let n=Math.max(V6(t),c(this,ei));E(this,Rc,n+G6);try{t==null||t.setItem(zL,String(c(this,Rc)))}catch{}E(this,ei,n)},NT=function(){let t=c(this,Ct).keys().next();t.done!==!0&&c(this,Ct).delete(t.value)},ML=function(){for(let[t,n]of c(this,Ct)){let r=n.deref();(r===void 0||!r.isConnected)&&c(this,Ct).delete(t)}for(;c(this,Ct).size>DL;)S(this,ti,NT).call(this)};ee=new fd});function UL(e){var n;return((n=e.match(/-?\d*\.?\d+(?:e[-+]?\d+)?|NaN|Infinity|-Infinity/gi))!=null?n:[]).map(r=>Number(r))}function W6(e){return/NaN|Infinity/i.test(e)?!0:UL(e).some(t=>!Number.isFinite(t))}function Z6(e){let t=UL(e).filter(i=>Number.isFinite(i));if(t.length===0)return!0;let n=t.filter((i,s)=>s%2===0),r=t.filter((i,s)=>s%2===1),o=i=>i.every(s=>s===i[0]);return n.length>1&&o(n)&&o(r)}function Wh(e){let t=[],n=0;for(let o of j6)for(let i of Array.from(e.querySelectorAll(o)))for(let s of K6){let a=i.getAttribute(s);if(a===null)continue;n+=1;let l=a.length>120?`${a.slice(0,120)}\u2026`:a;W6(a)?t.push({kind:"non-finite-coordinates",tag:o,attr:s,sample:l}):a.trim().length===0?t.push({kind:"empty-geometry",tag:o,attr:s,sample:l}):Z6(a)&&t.push({kind:"degenerate-geometry",tag:o,attr:s,sample:l})}let r=e.querySelectorAll("canvas").length>0;return{examined:n,findings:t,canvas:r}}function HL(e,t){var i,s,a,l,u,d,f;let n=t,r=(s=(i=n.Chart)==null?void 0:i.getChart)==null?void 0:s.call(i,e);if(r!=null)return{library:"chartjs",data:(a=r.data)!=null?a:null};let o=(u=(l=n.echarts)==null?void 0:l.getInstanceByDom)==null?void 0:u.call(l,e);return o!=null?{library:"echarts",data:(f=(d=o.getOption)==null?void 0:d.call(o))!=null?f:null}:null}var j6,K6,RT=y(()=>{"use strict";j6=["path","polyline","polygon"],K6=["d","points"]});function Lc(e,t,n){let r=Math.max(0,Math.min(n,t.remainingCharacters));if(e.length<=r)return t.remainingCharacters-=e.length,e;t.truncatedValues+=1;let o=r<=gd.length?gd.slice(0,r):`${e.slice(0,r-gd.length)}${gd}`;return t.remainingCharacters-=o.length,o}function tK(e){var t;try{let n=(t=Q6.exec(Object.prototype.toString.call(e)))==null?void 0:t[1];if(X6===n)return Y6;if(q6===n)return FL;if(n!==void 0&&J6!==n){let r=e;if(typeof r.nodeType=="number"&&typeof r.nodeName=="string")return`[${n}]`}if(typeof e.then=="function")return FL}catch{return}}function Ed(e,t,n,r){if(r!==void 0&&St(r))return Ne;if(n>W.MAX_SERIALIZE_DEPTH||t.nodes>=Cc)return t.truncatedValues+=1,gd;if(t.nodes+=1,e===null||typeof e=="boolean")return e;if(typeof e=="string")return Lc(po(e),t,(r==null?void 0:r.toLowerCase())==="error"?W.MAX_ERROR_LENGTH:W.MAX_STRING_LENGTH);if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="bigint")return e.toString();if(typeof e=="undefined"||typeof e=="function"||typeof e=="symbol")return $c;let o=tK(e);if(o!==void 0)return t.truncatedValues+=1,Lc(o,t,OT);if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Map){let i=Object.create(null),s=0;for(let[a,l]of e){if(t.nodes>=Cc||s>=W.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-s;break}let u=Lc(typeof a=="string"?a:String(a),t,OT),d=Ed(l,t,n+1,u);d!==$c&&(i[u]=d),s+=1}return i}if(e instanceof Set){let i=[],s=0;for(let a of e){if(t.nodes>=Cc||s>=W.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-s;break}let l=Ed(a,t,n+1);i.push(l===$c?null:l),s+=1}return i}if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let i=e.length,s=[],a=0;for(let l of e){if(t.nodes>=Cc||a>=W.MAX_COLLECTION_ITEMS){t.droppedItems+=i-a;break}s.push(l),t.nodes+=1,a+=1}return s}if(e instanceof Error)return{name:Lc(e.name,t,256),message:Lc(e.message,t,W.MAX_ERROR_LENGTH)};if(t.seen.has(e))return"[CIRCULAR]";t.seen.add(e);try{if(Array.isArray(e)){let u=[],d=e.slice(0,W.MAX_COLLECTION_ITEMS);t.droppedItems+=Math.max(0,e.length-d.length);for(let f of d){if(t.nodes>=Cc){t.droppedItems+=1;continue}let m=Ed(f,t,n+1);if(t.nodes>=Cc){t.droppedItems+=1;continue}u.push(m===$c?null:m)}return u}let i=Object.create(null),s=Object.keys(e),a=s.slice(0,W.MAX_OBJECT_KEYS);t.droppedItems+=Math.max(0,s.length-a.length);let l=a.map(u=>{try{let d=e[u];return{key:u,value:d,scalar:d===null||typeof d!="object",ok:!0}}catch{return{key:u,value:void 0,scalar:!0,ok:!1}}});for(let u of[...l.filter(d=>d.scalar),...l.filter(d=>!d.scalar)]){let d=Lc(u.key,t,OT);if(!u.ok){i[d]=IT;continue}try{let f=Ed(u.value,t,n+1,u.key);f!==$c&&(i[d]=f)}catch{i[d]=IT}}return i}finally{t.seen.delete(e)}}function bd(e){return na(e).value}function na(e){let t={seen:new WeakSet,remainingCharacters:eK,nodes:0,droppedItems:0,truncatedValues:0},n=Ed(e,t,0),r=n===$c?null:n;if(t.droppedItems===0&&t.truncatedValues===0)return{value:r};let o=[];return t.droppedItems>0&&o.push(`${t.droppedItems} item(s) dropped`),t.truncatedValues>0&&o.push(`${t.truncatedValues} value(s) truncated`),{value:r,truncation:{droppedItems:t.droppedItems,truncatedValues:t.truncatedValues,note:`partial \u2014 ${o.join(", ")}; this is NOT the whole value. Scope the read with \`path\`/\`depth\` to see the rest.`}}}function go(e){try{return JSON.stringify(bd(e))}catch{return JSON.stringify(IT)}}var gd,IT,$c,FL,Y6,X6,q6,J6,Q6,OT,eK,Cc,hr=y(()=>{"use strict";M();gd="[TRUNCATED]",IT="[UNSERIALIZABLE]",$c=Symbol("omit"),FL="[Promise]",Y6="[Window]",X6="Window",q6="Promise",J6="Object",Q6=/^\[object (\w+)\]$/,OT=256,eK=Math.floor(W.MAX_MESSAGE_BYTES/4),Cc=W.MAX_COLLECTION_ITEMS*5});function nK(e){if(e===null)return;let t=/^(.*):(\d+):(\d+)$/.exec(e);if(t===null)return;let n=t[1],r=Number(t[2]);if(!(n===void 0||n.length===0||!Number.isFinite(r)))return{file:n,line:r}}function _d(e){let t=e.closest(`[${CT}]`);return t!==null?nK(t.getAttribute(CT)):void 0}function Zh(e,t){return t!==void 0?{file:t.file,line:t.line}:_d(e)}function BL(e){return e.querySelector(`[${CT}]`)!==null}function Yh(e){return e===void 0?void 0:`${e.file}:${String(e.line)}`}var CT,Td=y(()=>{"use strict";M();CT=Tc});function sK(e){let t=e.type.toLowerCase();return t==="search"?"searchbox":oK.has(t)?"textbox":t==="checkbox"?"checkbox":t==="radio"?"radio":t==="range"?"slider":t==="number"?"spinbutton":iK.has(t)?"button":"textbox"}function aK(e){let t=e.getAttribute("aria-label");if(t!==null&&t.trim().length>0)return!0;let n=e.getAttribute("aria-labelledby");if(n!==null&&n.trim().length>0)return!0;let r=e.getAttribute("title");return r!==null&&r.trim().length>0}function ve(e){var r;let t=e.getAttribute("role");if(t!==null&&t.trim().length>0)return t.trim();switch(e.tagName.toLowerCase()){case"a":return e.hasAttribute("href")?"link":"generic";case"button":return"button";case"input":return sK(e);case"textarea":return"textbox";case"select":return e.multiple?"listbox":"combobox";case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"heading";case"ul":case"ol":return"list";case"li":return"listitem";case"nav":return"navigation";case"main":return"main";case"aside":return"complementary";case"dialog":return"dialog";case"img":return"img";case"table":return"table";case"tr":return"row";case"tbody":case"thead":case"tfoot":return"rowgroup";case"td":return e.closest('[role~="grid"], [role~="treegrid"]')!==null?"gridcell":"cell";case"th":{let o=((r=e.getAttribute("scope"))!=null?r:"").toLowerCase();return o==="row"||o==="rowgroup"?"rowheader":"columnheader"}case"option":return"option";case"optgroup":return"group";case"section":return aK(e)?"region":"generic";case"article":return"article";case"fieldset":return"group";case"details":return"group";case"summary":return"button";case"progress":return"progressbar";case"meter":return"meter";case"output":return"status";case"hr":return"separator";case"area":return e.hasAttribute("href")?"link":"generic";case"form":return"form";case"p":return"paragraph";case"header":return"banner";case"footer":return"contentinfo";default:return"generic"}}function Yi(e){return e.replace(/\s+/g," ").trim()}function cK(e){let t=e.getAttribute("aria-labelledby");if(t===null)return null;let n=[];for(let o of t.split(/\s+/)){let i=e.ownerDocument.getElementById(o);i!==null&&n.push(Yi(ra(i)))}let r=n.join(" ").trim();return r.length>0?r:null}function ra(e){var o;if(e.nodeType===Node.TEXT_NODE)return(o=e.textContent)!=null?o:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let t=e;if(t.getAttribute("aria-hidden")==="true"||Nc(t))return"";if(mT(t)){let i=t.getAttribute("alt");return i===null?"":i}let n="",r=!1;for(let i of t.childNodes){let s=ra(i);if(s.length===0)continue;let a=Node.ELEMENT_NODE===i.nodeType;n.length>0&&(a||r)&&(n+=" "),n+=s,r=a}return n}function be(e){let t=cK(e);if(t!==null)return t;let n=e.getAttribute("aria-label");if(n!==null&&n.trim().length>0)return n.trim();if(mT(e)){let i=e.getAttribute("alt");if(i!==null)return i.trim()}if(Fe(e)||Vt(e)||Mr(e)||dd(e)||nL(e)||rL(e)||oL(e)){let i=e.labels;if(i!==null&&i.length>0){let s=[...i].map(a=>Yi(ra(a))).join(" ").trim();if(s.length>0)return s}}if(e.tagName.toLowerCase()==="fieldset"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="legend");if(i!==void 0){let s=Yi(ra(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="table"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="caption");if(i!==void 0){let s=Yi(ra(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="figure"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="figcaption");if(i!==void 0){let s=Yi(ra(i));if(s.length>0)return s}}if(Fe(e)||Vt(e)||Mr(e)){if(Fe(e)){let i=e.type.toLowerCase();if(i==="submit"||i==="button"||i==="reset"){let s=Yi(e.value);if(s.length>0)return s}}if(Fe(e)||Vt(e)){let i=e.getAttribute("placeholder");if(i!==null&&i.trim().length>0)return i.trim()}}if(rK.has(ve(e))){let i=Yi(ra(e));if(i.length>0)return i}let o=e.getAttribute("title");return o!==null&&o.trim().length>0?o.trim():""}function Xh(e,t){let n=e.getAttribute(t);if(n!==null)return n==="true"}function ni(e,t=Ue(e)){let n=[ge.PRESENT];n.push(t?ge.VISIBLE:ge.HIDDEN);let r=e.matches(":disabled")||Xh(e,"aria-disabled")===!0;return n.push(r?ge.DISABLED:ge.ENABLED),(Fe(e)&&(e.type==="checkbox"||e.type==="radio")&&e.checked||Xh(e,"aria-checked")===!0)&&n.push(ge.CHECKED),(Xh(e,"aria-expanded")===!0||lK(e))&&n.push(ge.EXPANDED),Xh(e,"aria-pressed")===!0&&n.push(ge.PRESSED),e.ownerDocument.activeElement===e&&n.push(ge.FOCUSED),n}function lK(e){let t=e.parentElement;return Uh!==e.localName||t===null||bT!==t.localName?!1:Array.from(t.children).find(r=>Uh===r.localName)===e&&t.hasAttribute(_T)}function pn(e){var o,i,s,a,l;if(!Fe(e)&&!Vt(e)&&!Mr(e))return!1;let t=(o=e.getAttribute("autocomplete"))!=null?o:"",n=[(i=e.getAttribute("name"))!=null?i:"",e.id,(s=we(e))!=null?s:"",(a=e.getAttribute(Zs))!=null?a:"",(l=e.getAttribute("aria-label"))!=null?l:""],r=uK.test(t);return Fe(e)&&e.type.toLowerCase()==="password"||r||n.some(St)}function LT(e){if(Fe(e)||Vt(e)||Mr(e))return pn(e)?e.value===""?"":Ne:e.value;let t=e.getAttribute("aria-valuenow");return t!=null?t:void 0}function dK(e,t){var o;let n=Yi((o=e.textContent)!=null?o:""),r=t?W.MAX_FULL_TEXT:W.MAX_DESCRIBED_TEXT;return n.length>r?`${n.slice(0,r)}\u2026`:n}function Eo(e,t,n=!1){let r=LT(e),o=dK(e,n),i=be(e),s=Ue(e,t),a={ref:ee.refFor(e),role:ve(e),name:i,states:ni(e,s),visible:s};r!==void 0&&r.length>0&&(a.value=r),o.length>0&&(n||o!==i)&&(a.text=o);let l=Yh(_d(e));if(l!==void 0&&(a.source=l),e.querySelector("path, polyline, polygon")!==null){let u=Wh(e).findings;u.length>0&&(a.chart=u)}return a}var rK,oK,iK,uK,gt=y(()=>{"use strict";It();M();jt();ut();RT();hr();Td();Kn();rK=new Set(["button","link","heading","option","listitem","cell","checkbox","columnheader","radio","row","rowheader","tab","tooltip","menuitem","menuitemcheckbox","menuitemradio","treeitem","gridcell","switch","status","alert"]),oK=new Set(["text","email","tel","url","password",""]),iK=new Set(["submit","button","reset","file","image"]);uK=/\b(cc-|current-password|new-password|one-time-code)/i});function t$(e){zc.some(t=>t.name===e.name)||zc.push(e)}function mr(e){for(let t of zc){let n;try{n=t.identify(e)}catch{continue}if(n!=null)return n}return null}function Jh(e){for(let t of zc){if(t.readState===void 0)continue;let n=t.readState(e);if(n!==void 0)return n}}function Qh(e){for(let t of zc)if(t.hasHoverHandlers!==void 0&&t.hasHoverHandlers(e))return!0;return!1}function yd(){return zc.map(e=>e.name)}var zT,e$,zc,ri=y(()=>{"use strict";zT=globalThis,zc=(e$=zT.__reticleAdapters)!=null?e$:zT.__reticleAdapters=[]});function h$(e=document.body){let t=[],n=(o,i,s)=>{t.length<MT&&t.push({kind:o,ref:ee.refFor(i),what:a$(i),...s})};for(let o of e.querySelectorAll("*")){if(t.length>=MT)break;if(Ot(o)||IK(o)==="")continue;let i=s$(o);if(i===null||!f$(i.left+i.width/2,i.top+i.height/2,o))continue;let s=CK(o);s!==null&&n(PT.CLIPPED,o,s);let a=kK(o);a!==null&&a.ratio<a.min&&n(PT.CONTRAST,o,{detail:`contrast ${a.ratio.toFixed(2)}:1, under ${String(a.min)}:1`,value:Math.round(a.ratio*100)/100,bound:a.min})}let r=[...e.querySelectorAll(OK)].filter(o=>!Ot(o)).slice(0,AK).flatMap(o=>{let i=s$(o);return i===null?[]:[{el:o,rect:i}]});for(let[o,i]of r.entries())for(let s of r.slice(o+1)){if(t.length>=MT)return t;if(i.el.contains(s.el)||s.el.contains(i.el))continue;let a=DK(i.rect,s.rect);a>=r$&&u$(i.el,i.rect)&&u$(s.el,s.rect)&&n(PT.OVERLAP,i.el,{detail:`drawn over "${a$(s.el)}" (${ee.refFor(s.el)})`,value:Math.round(a*100)/100,bound:r$})}return t}var PT,MT,AK,xK,n$,r$,yK,wK,vK,NK,RK,OK,o$,i$,s$,a$,IK,c$,CK,LK,d$,l$,p$,$K,kK,f$,Xi,u$,DK,m$=y(()=>{"use strict";ut();gt();it();PT={CLIPPED:"clipped",OVERLAP:"overlap",CONTRAST:"contrast"},MT=20,AK=300,xK=60,n$=1,r$=.25,yK=4.5,wK=3,vK=24,NK=18.66,RK=700,OK='button, a[href], input:not([type="hidden"]), select, textarea, [role="button"], [role="link"], [role="tab"], [role="menuitem"]',o$=/rect\(\s*0(px)?[\s,]+0(px)?[\s,]+0(px)?[\s,]+0(px)?\s*\)|inset\(\s*50%/,i$=4,s$=e=>{let t=e.getBoundingClientRect();if(t.width<i$||t.height<i$)return null;let n=getComputedStyle(e);return n.visibility==="hidden"||n.display==="none"||n.opacity==="0"||o$.test(n.clip)||o$.test(n.clipPath)?null:t},a$=e=>{var t;return(be(e)||((t=e.textContent)!=null?t:"")).replace(/\s+/g," ").trim().slice(0,xK)},IK=e=>[...e.childNodes].filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("").trim(),c$=new Set(["hidden","clip"]),CK=e=>{let t=getComputedStyle(e),n=e.scrollWidth>e.clientWidth+n$&&c$.has(t.overflowX),r=e.scrollHeight>e.clientHeight+n$&&c$.has(t.overflowY);return t.textOverflow==="ellipsis"||t.getPropertyValue("-webkit-line-clamp")!==""&&t.getPropertyValue("-webkit-line-clamp")!=="none"||!n&&!r?null:n?{detail:`${String(e.scrollWidth)}px of text in a ${String(e.clientWidth)}px box, cut with no ellipsis`,value:e.scrollWidth,bound:e.clientWidth}:{detail:`${String(e.scrollHeight)}px of text in a ${String(e.clientHeight)}px box, cut with no line clamp`,value:e.scrollHeight,bound:e.clientHeight}},LK=/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+%?))?\s*\)/,d$=e=>{let t=LK.exec(e);if(t===null)return null;let n=t[4],r=1;return n!==void 0&&(r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n)),[Number(t[1]),Number(t[2]),Number(t[3]),r]},l$=([e,t,n])=>{let r=o=>{let i=o/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)},p$=(e,t)=>{let n=e[3];return[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n),1]},$K=e=>{let t=[];for(let n=e;n!==null;n=n.parentElement){let r=getComputedStyle(n);if(r.backgroundImage!=="none"&&r.backgroundImage!=="")return null;let o=d$(r.backgroundColor);if(o!==null&&o[3]>0&&(t.push(o),o[3]===1))break}return t.reduceRight((n,r)=>p$(r,n),[255,255,255,1])},kK=e=>{let t=getComputedStyle(e),n=d$(t.color),r=$K(e);if(n===null||r===null)return null;let o=p$(n,r),[i,s]=[l$(o),l$(r)].sort((d,f)=>f-d),a=Number.parseFloat(t.fontSize),l=Number.parseInt(t.fontWeight,10),u=a>=vK||a>=NK&&l>=RK;return{ratio:(i+.05)/(s+.05),min:u?wK:yK}},f$=(e,t,...n)=>{if(typeof document.elementFromPoint!="function")return!0;let r=document.elementFromPoint(e,t);return r!==null&&n.some(o=>o===r||o.contains(r))},Xi=2,u$=(e,t)=>[[t.left+t.width/2,t.top+t.height/2],[t.left+Xi,t.top+Xi],[t.right-Xi,t.top+Xi],[t.left+Xi,t.bottom-Xi],[t.right-Xi,t.bottom-Xi]].some(([n=0,r=0])=>f$(n,r,e)),DK=(e,t)=>{let n=Math.min(e.right,t.right)-Math.max(e.left,t.left),r=Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top);return n<=0||r<=0?0:n*r/Math.min(e.width*e.height,t.width*t.height)}});function g$(e){var r;let t=[],n=Array.from(e.querySelectorAll("svg")).filter(o=>{var i;return((i=o.parentElement)==null?void 0:i.closest("svg"))===null});for(let o of n){let i=o.getBoundingClientRect();if(i.width<120||i.height<60)continue;let s=Array.from(o.querySelectorAll(zK.join(","))).filter(d=>d.closest(PK)===null),a=[];for(let d of s){let f=d.getBoundingClientRect();if(f.width===0&&f.height===0)continue;let m=em(f.left-i.left,i.width),h=em(f.top-i.top,i.height);a.push(`${d.tagName.toLowerCase()} ${m} ${h} ${em(f.width,i.width)} ${em(f.height,i.height)}`)}if(a.length===0)continue;let l=(r=o.getAttribute("aria-label"))!=null?r:`chart ${String(t.length+1)}`,u=a.slice(0,120);t.push(a.length>120?{label:l,shapes:u,cut:a.length-120}:{label:l,shapes:u})}return t}var zK,PK,em,E$=y(()=>{"use strict";zK=["rect","circle","ellipse","line","polyline","polygon","path"],PK="defs, clipPath, mask, pattern, marker, symbol",em=(e,t)=>{let n=Math.round(e/t*1e3)/10;return Object.is(n,-0)?"0":String(n)}});function tm(){return pr(location.href)}function nm(e=!0){return pr(`${location.pathname}${location.search}${e?location.hash:""}`)}var wd=y(()=>{"use strict";M()});function S$(e,t){if(UK.has(t))return!0;let n=e.getAttribute("aria-live");return n!==null&&n!=="off"}function HK(e){let t=A$(e),n=(t.own?t.text:"").replace(/\s+/g," ").trim();return n.length>b$?`${n.slice(0,b$)}\u2026`:n}function FK(e,t){return 0<t.length&&_$(e)===_$(t)?"":e}function A$(e){var r,o;let t="",n=!1;for(let i of e.childNodes)if(i.nodeType===3)t+=(r=i.textContent)!=null?r:"",n||(n=0<((o=i.textContent)!=null?o:"").trim().length);else if(dn(i)&&y$(i)){let s=A$(i);t+=s.text,n||(n=s.own)}else dn(i)&&x$(i)&&qi.has(ve(i))&&(t+=be(i));return{text:t,own:n}}function x$(e){let t=e.ownerDocument.defaultView,n=e.parentElement;if(t===null||n===null)return!1;let r=t.getComputedStyle(n).display;return r.includes("flex")||r.includes("grid")?!1:t.getComputedStyle(e).display==="inline"}function y$(e){if(v$(e)||!x$(e))return!1;let t=ve(e);return!qi.has(t)&&!S$(e,t)&&be(e).length===0}function w$(e){return e.getAttribute("aria-hidden")==="true"?!0:e instanceof HTMLElement&&e.hidden}function v$(e){return MK.has(e.tagName.toLowerCase())||Ot(e)?!0:w$(e)}function GK(e){let t=ni(e).filter(n=>n===ge.DISABLED||n===ge.CHECKED||n===ge.EXPANDED||n===ge.PRESSED||n===ge.FOCUSED);return t.length>0?` [${t.join(",")}]`:""}function VK(e,t,n,r,o,i="",s=!1){let a=" ".repeat(t),l=LT(e),u=r,d=u.length>0?` "${u}"`:"",f=qi.has(n)||u.length>0?` (ref=${ee.refFor(e)})`:"",m=l!==void 0&&l.length>0?` [value="${l}"]`:"",h=o.length>0?` [${o}]`:"",g=i.length>0?` [text="${i}"]`:"",b=s?we(e):null,x=s?mr(e):null,w=b===null?x==null?void 0:x.componentStack[0]:void 0,N=x==null?void 0:x.source,C="";b!==null?C=` [testid=${b}]`:w!==void 0&&(C=` [component=${w}]`);let D=`${C}${N===void 0?"":` [src=${N.file}:${String(N.line)}]`}`;return`${a}- ${n}${d}${f}${m}${g}${h}${GK(e)}${D}`}function jK(e,t){return`${" ".repeat(e)}- text "${t}"`}function KK(e){if(e===null)return"";let t=e.display;if(t==="grid"||t==="inline-grid"){let n=e.gridTemplateColumns;return n!==""&&n!=="none"?`grid-cols:${n}`:"grid"}return""}function T$(e,t){for(let n of e){if(t.unread.length>=BK){t.unreadOverflow=!0;return}t.unread.push(ee.refFor(n))}}function WK(e){var r,o;let t=[...e.children],n=(r=e.shadowRoot)!=null?r:ta(e);if(n!==null&&t.push(...n.children),Ph(e))try{let i=(o=e.contentDocument)==null?void 0:o.body;i!=null&&t.push(...i.children)}catch{}return t}function UT(e,t,n,r){if(!(n.throughOverlay===!0&&N$(e)&&!Ot(e)&&!(e instanceof HTMLElement&&e.hidden))&&v$(e)){w$(e)&&(n.hiddenSkipped+=1);return}let i=e.ownerDocument.defaultView,s=i!==null?i.getComputedStyle(e):null;if(s!==null&&s.display==="none"){n.hiddenSkipped+=1;return}if(s!==null&&s.display==="inline"&&!r&&y$(e)){rm(e,t,n,r);return}let a=ve(e),l=be(e),u=qi.has(a),d=r||S$(e,a),f=n.mode===gc.INTERACTIVE&&!d,m=f||u&&0<l.length?"":HK(e),h=FK(m,l),g=f?"":KK(s),b=u,x=b||a!=="generic"||l.length>0||h.length>0||g.length>0,w=f?b:x;f&&!w&&x&&(n.leanSkipped+=1),w?(n.nodes+=1,n.lines.push(a==="generic"&&l.length===0&&h.length>0&&g.length===0?jK(t,h):VK(e,t,a,l,g,h,n.ids===!0)),rm(e,t+1,n,d)):rm(e,t,n,d)}function rm(e,t,n,r=!1){let o=WK(e);if(t>n.maxDepth){o.length>0&&(n.truncated=!0,T$([e],n));return}for(let i=0;i<o.length;i+=1){if(n.nodes>=n.maxNodes){n.truncated=!0,T$(o.slice(i),n);return}let s=o[i];s!==void 0&&UT(s,t,n,r)}}function ZK(e){let t=e.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n=[];for(let r of t)yt(r)||Ue(r)&&n.push(be(r)||"(unnamed dialog)");return n}function XK(e){if(e!==document.body)return;let t=document.body.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n,r;for(let s of t)if(!yt(s)){if(Ue(s)){n=s;break}r!=null||(r=s)}if(n!=null||(n=r),n===void 0)return;let o=n,i=Array.from(document.body.children).filter(s=>!s.contains(o));if(i.length!==0&&i.every(s=>s.getAttribute("aria-hidden")==="true"))return"the rest of the page is aria-hidden behind an open overlay (a focus-trap modal), so this snapshot shows only the overlay. If it will not close its cleanup may be stuck on a throttled tab: dismiss the overlay, or snapshot with { scope } inside it."}function qK(e){let t=ZK(e),n=XK(e);return{route:nm(),title:document.title,...t.length>0?{visibleDialogs:t}:{},...n!==void 0?{overlayHidingPage:n}:{}}}function om(e={}){var l,u,d,f;let t=(l=e.mode)!=null?l:gc.FULL,n=(u=e.scope)==null?void 0:u.trim(),r=document.body;if(n!==void 0&&n!==""&&(r=ee.resolve(n),r===null))try{r=document.querySelector(n)}catch{}let o=r===null,i=r!=null?r:document.body,s=qK(i);if(o)return{tree:"",status:s,nodes:0,truncated:!1,scopeMissing:!0};if(t===gc.STATUS)return{tree:"",status:s,nodes:0,truncated:!1};let a={lines:[],nodes:0,leanSkipped:0,hiddenSkipped:0,truncated:!1,mode:t,maxNodes:(d=e.maxNodes)!=null?d:400,maxDepth:(f=e.maxDepth)!=null?f:20,unread:[],unreadOverflow:!1,...e.ids===!0?{ids:!0}:{}};if(e.includeRoot===!0?UT(i,0,a,!1):rm(i,0,a),a.nodes===0&&i===document.body){a.throughOverlay=!0;for(let m of Array.from(i.children))N$(m)&&m.querySelector(YK)!==null&&UT(m,0,a,!1);a.throughOverlay=!1}return{tree:a.lines.join(`
58
58
  `),status:s,nodes:a.nodes,truncated:a.truncated,...a.nodes===0?{domElements:i.querySelectorAll("*").length}:{},...a.leanSkipped>0?{leanSkipped:a.leanSkipped}:{},...a.hiddenSkipped>0?{hiddenSkipped:a.hiddenSkipped}:{},...a.unread.length>0?{unread:a.unread}:{},...a.unreadOverflow?{unreadOverflow:!0}:{},...e.audit===!0?{audit:h$(i)}:{},...e.charts===!0?{charts:g$(i)}:{}}}var qi,MK,UK,b$,_$,BK,N$,YK,vd=y(()=>{"use strict";M();Jo();jt();gt();Kn();ut();It();ri();m$();E$();wd();it();qi=new Set(["button","link","textbox","searchbox","checkbox","radio","combobox","listbox","slider","spinbutton","switch","tab","menuitem","option"]),MK=new Set(["script","style","noscript","template","head","meta","link"]),UK=new Set(["alert","status"]);b$=80;_$=e=>e.toLowerCase().replace(/\s+/g," ").trim();BK=50;N$=e=>e.hasAttribute("data-aria-hidden")&&e.getAttribute("aria-hidden")==="true";YK='[role="dialog"], [role="alertdialog"], dialog[open], [aria-modal="true"]'});function Pc(e,t){var d;if(t.width===0||t.height===0)return null;let n=e.ownerDocument;if(typeof n.elementFromPoint!="function")return null;let r=e3(e,t);if(r!==void 0)return r;let o=n,i=f=>Wn(f)&&f!==e&&!e.contains(f)&&!f.contains(e),s=(f,m)=>{var g,b,x;return(x=((b=(g=o.elementsFromPoint)==null?void 0:g.call(o,f,m))!=null?b:[n.elementFromPoint(f,m)]).find(w=>w!==null&&!i(w)))!=null?x:null},a=new Map;for(let[f,m]of JK){let h=s(t.left+t.width*f,t.top+t.height*m);h!==null&&(h===e||e.contains(h)||h.contains(e)||a.set(h,((d=a.get(h))!=null?d:0)+1))}let l=null,u=0;for(let[f,m]of a)m>u&&(l=f,u=m);return u>=QK?l:null}function e3(e,t){let n=e.ownerDocument.defaultView;if(n===null||n.getComputedStyle(e).pointerEvents!=="none")return;let r=e.ownerDocument.elementFromPoint(t.left+t.width/2,t.top+t.height/2);if(r===null||e.contains(r)||Wn(r))return null;let o="labels"in e?e.labels:null;for(let i of o!=null?o:[])if(i===r||i.contains(r))return null;return r}var JK,QK,im=y(()=>{"use strict";it();JK=[[.5,.5],[.25,.25],[.75,.25],[.25,.75],[.75,.75]],QK=3});function R$(e){var o;let t=[],n=new Set,r;try{r=e.querySelectorAll(Zn())}catch{return t}for(let i=0;i<r.length&&t.length<t3;i+=1){let s=(o=r[i])==null?void 0:o.getAttribute(Zi());if(s==null)continue;let a=s.trim();a.length===0||n.has(a)||a.startsWith(n3)||(n.add(a),t.push(a))}return t}var t3,n3,O$=y(()=>{"use strict";It();t3=200,n3="reticle-"});var HT,I$,FT,Hr,Nd=y(()=>{"use strict";HT=globalThis,FT=typeof((I$=HT.console)==null?void 0:I$.warn)=="function"?HT.console.warn.bind(HT.console):null,Hr=(...e)=>{FT==null||FT(...e)}});function z$(e){return BT.add(e),()=>BT.delete(e)}function r3(e){if(e===null||typeof e!="object"&&typeof e!="function")return!1;let t=e;return typeof t.getState=="function"&&typeof t.subscribe=="function"}function P$(e,t,n){if(s3(e,t),r3(t)){let r=()=>t.getState(),o=i=>t.subscribe(i);Mc.set(e,r),sm.set(e,o),C$(e,r,o);return}if(typeof t!="function"){let r=typeof t=="object"&&t!==null&&"subscribe"in t;Hr(`[reticle] store "${e}" is neither a getter function nor a {getState, subscribe} store`+(r?" \u2014 it has subscribe but no getState. Wrap it with an adapter or add getState.":"."));return}if(Mc.set(e,t),n!==void 0){sm.set(e,n),C$(e,t,n);return}i3(e)}function C$(e,t,n){for(let r of BT)try{r([e,t,n])}catch{}}function M$(e){Mc.delete(e),sm.delete(e)}function Ji(){return[...Mc.keys()]}function U$(){let e=[];for(let[t,n]of sm){let r=Mc.get(t);r!==void 0&&e.push([t,r,n])}return e}function VT(e){let t={};for(let[n,r]of Mc)if(!(e!==void 0&&n!==e))try{t[n]=r()}catch(o){t[n]={__error:o instanceof Error?o.message:String(o)}}return t}function H$(e){return Rd(e).stores}function Rd(e){let t={},n={};for(let[r,o]of Object.entries(VT(e))){let i=na(o);t[r]=i.value,i.truncation!==void 0&&(n[r]=i.truncation)}return Object.keys(n).length>0?{stores:t,truncation:n}:{stores:t}}function i3(e){o3.has(e)||L$.has(e)||(L$.add(e),Hr(`[reticle] store "${e}" was registered without a subscribe function. It can be READ, but its changes are invisible: no STATE_CHANGE events, no state diffs in causal summaries, and a state predicate will never see it update. Pass the store object (or a subscribe callback) to fix.`))}function am(e,t){F$.set(e,t)}function s3(e,t){if(t===null||typeof t!="object"&&typeof t!="function")return;GT.set(t,e);let n=F$.get(t);n!==void 0&&GT.set(n,e)}function B$(e){if(!(e===null||typeof e!="object"&&typeof e!="function"))return GT.get(e)}var oi,$$,Mc,k$,sm,D$,BT,L$,o3,GT,F$,oa=y(()=>{"use strict";M();Nd();hr();oi=globalThis,Mc=($$=oi.__reticleStores)!=null?$$:oi.__reticleStores=new Map,sm=(k$=oi.__reticleStoreSubs)!=null?k$:oi.__reticleStoreSubs=new Map,BT=(D$=oi.__reticleStoreListeners)!=null?D$:oi.__reticleStoreListeners=new Set;L$=new Set,o3=new Set([ah]);GT=new WeakMap,F$=new WeakMap});function V$(){return typeof document=="undefined"?[]:R$(document)}function j$(){return Ji().filter(e=>ah!==e)}function lm(e,t){let n=[...e];for(let r of t)n.includes(r)||n.push(r);return n}function a3(){return{testids:[],signals:[],stores:[],flows:[]}}function KT(e,t){if(t!==void 0)for(let n of t)e.includes(n)||e.push(n)}function um(e){cm=e}function Uc(e){if(KT(Rn.testids,e.testids),KT(Rn.signals,e.signals),KT(Rn.stores,e.stores),e.flows!==void 0)for(let t of e.flows){let n=Rn.flows.find(r=>r.name===t.name);n===void 0?Rn.flows.push({name:t.name,steps:[...t.steps]}):n.steps=[...t.steps]}cm==null||cm()}function Qi(){return{testids:lm(Rn.testids,V$()),signals:[...Rn.signals],stores:lm(Rn.stores,j$()),flows:Rn.flows.map(e=>({name:e.name,steps:[...e.steps]})),...vL()?{presenterExposed:!0}:{}}}function K$(){return[...Rn.testids]}function dm(){return Rn.signals.length>0||Rn.flows.length>0||lm(Rn.testids,V$()).length>0||lm(Rn.stores,j$()).length>0}var jT,G$,Rn,cm,es=y(()=>{"use strict";M();it();O$();oa();jT=globalThis;Rn=(G$=jT.__reticleCapabilities)!=null?G$:jT.__reticleCapabilities=a3()});function pm(e){let t=[];if(e===void 0)t=[document.documentElement];else{let n=ee.resolve(e);if(Qo(n))t=[n];else try{t=Array.from(document.querySelectorAll(e)).filter(Qo)}catch{}}return{containers:t,scopeMissing:t.length===0}}function WT(e){let{containers:t}=pm(e);return t.length>0?t:[document.body]}function Hc(e,t){for(let n of e){let r=t(n);if(r!==void 0)return r}}function ZT(e,t){var n;return(n=Hc(e,r=>{let o=t(r);return o.length>0?o:void 0}))!=null?n:[]}function Od(e,t){return t!==void 0||!e.closest("head")}var W$=y(()=>{"use strict";jt();ut()});function Z$(e){let t=c3(e);if(t===void 0)return;let n=e.ownerDocument.querySelectorAll(t);return n.length===1&&n[0]===e?t:void 0}function c3(e){let t=we(e);if(t!==null&&0<t.length){let r=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');return`[${Zi()}="${r}"]`}let n=e.getAttribute("id");if(n!==null&&/^[A-Za-z_][A-Za-z0-9_-]*$/.test(n))return`#${n}`}var Y$=y(()=>{"use strict";It()});function Fc(e){return e.replace(/\s+/g," ").trim().normalize("NFC")}function Bc(e){return e.replace(l3,"'").replace(u3,'"').replace(d3,"-")}function gr(e){return Bc(Fc(e.replace(p3,"")))}function ts(e,t){return gr(e).toLowerCase().includes(gr(t).toLowerCase())}function Gc(e,t,n){return t.matchCase!==!0?ts(e,n):gr(e).includes(gr(n))}function ek(e,t){return gr(e)===gr(t)}function tk(e,t){var r,o,i;let n=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e).textTransform)!=null?o:"";return(i=YT[n])==null?void 0:i.call(YT,t)}function X$(e){let t=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+))?\s*\)$/.exec(e);if(t!==null)return[Number(t[1]),Number(t[2]),Number(t[3]),t[4]===void 0?1:Number(t[4])]}function q$(e,t){let n=e[3],r=(o,i)=>o*n+i*(1-n);return[r(e[0],t[0]),r(e[1],t[1]),r(e[2],t[2]),1]}function XT(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function J$(e){return .2126*XT(e[0])+.7152*XT(e[1])+.0722*XT(e[2])}function g3(e,t){let n=J$(e),r=J$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Q$(e){return`rgb(${[e[0],e[1],e[2]].map(t=>String(Math.round(t))).join(", ")})`}function E3(e){let t=Number.parseFloat(e.getPropertyValue("-webkit-text-stroke-width"));return/\dpx/.test(e.textShadow)||t>0}function b3(e){let t=e.ownerDocument.defaultView;if(t===null)return;let n=t.getComputedStyle(e),r=X$(n.color);if(r===void 0||E3(n))return;let o=1,i=[],s=!1;for(let d=e;d!==null;d=Pr(d)){let f=t.getComputedStyle(d),m=TT(d)?1:Number.parseFloat(f.opacity);if(o*=Number.isNaN(m)?1:m,s)continue;if(f.backgroundImage!==""&&f.backgroundImage!=="none")return;let h=X$(f.backgroundColor);if(h===void 0)return;h[3]>0&&i.push(h),s=h[3]>=1}if(o<h3)return`the composed opacity is ${o.toFixed(2)}`;let a=i.reduceRight((d,f)=>q$(f,d),m3),l=q$(r,a),u=g3(l,a);if(!(u>=f3))return`text ${Q$(l)} on ${Q$(a)}: contrast ${u.toFixed(2)}:1`}function nk(e){let t=e.map(b3);return t.length>0&&t.every(n=>n!==void 0)?t[0]:void 0}var l3,u3,d3,p3,YT,f3,h3,m3,qT=y(()=>{"use strict";Jo();Kn();l3=/[\u2018-\u201b]/g,u3=/[\u201c-\u201f]/g,d3=/[\u2013\u2014]/g;p3=/[\u00ad\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u2069\ufeff]/g;YT={uppercase:e=>e.toUpperCase(),lowercase:e=>e.toLowerCase(),capitalize:e=>e.replace(/(^|\s)(\p{L})/gu,(t,n,r)=>n+r.toUpperCase())};f3=1.5,h3=.05,m3=[255,255,255,1]});function On(e){return[...Node.ELEMENT_NODE===e.nodeType?[e]:[],...Array.from(e.querySelectorAll("*"))]}function S3(e){if(Fe(e)){let t=e.type.toLowerCase();if(t==="submit"||t==="button"||t==="reset")return e.value}return Nc(e)?"":Array.from(e.childNodes).filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("")}function A3(e){if(Fe(e)||Vt(e)||Mr(e))return!0;let t=e.tagName.toLowerCase();return t==="button"||t==="meter"||t==="output"||t==="progress"||e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}function x3(e,t){let n=`${t.file}:${t.line}:`.replace(/\\/g,"\\\\").replace(/"/g,'\\"');try{return Array.from(e.querySelectorAll(`[${uk}^="${n}"]`))}catch{return[]}}function y3(e,t){let n=[],r=0;for(let o of Array.from(e.querySelectorAll(T3()))){if(r>=_3)break;r+=1;let i=mr(o);i!==null&&i.componentStack[0]===t&&n.push(o)}return n}function JT(e){var t;return((t=e.textContent)!=null?t:"").replace(/\s+/g," ").trim()}function rk(e,t){let n=t.text===void 0?void 0:t.text.replace(/\s+/g," ").trim(),r=t.role,o=i=>i.filter(s=>(n===void 0||JT(s)===n)&&(r===void 0||dk(ve(s),r)));if(t.source!==void 0){let i=o(x3(e,t.source));if(i.length>0)return i}return t.component!==void 0&&t.component.length>0?o(y3(e,t.component)):[]}function dk(e,t){return e===t||t==="textbox"&&e==="searchbox"}function QT(e){if(v3!==e.localName)return!1;let t=e.closest(N3);return Mr(t)?Ue(t)?R3(t):!0:!1}function R3(e){let t=e.getBoundingClientRect();return t.width>0&&t.height>0&&t.width<=ok&&t.height<=ok}function O3(e,t){if(w3!==e)return t;let n=t.filter(r=>!QT(r));return n.length===t.length?t:n}function fm(e,t,n){let r=On(e).filter(o=>dk(ve(o),t)&&(n===void 0||ek(be(o),n)));return O3(t,r)}function ik(e,t,n){return On(e).filter(r=>{let o=S3(r);if(Gc(o,n,t))return!0;if(n.matchCase!==!0||!ts(o,t))return!1;let i=tk(r,o);return i!==void 0&&Gc(i,n,t)})}function sk(e,t){let n=gr(t).toLowerCase(),r=[],o=[];for(let i of On(e)){if(!A3(i))continue;let s=gr(be(i)).toLowerCase();s.includes(n)&&(s===n?r:o).push(i)}return r.length>0?r:o}function ak(e,t){return On(e).filter(n=>{let r=n.getAttribute("placeholder");return r!==null&&ts(r,t)})}function ck(e,t){return On(e).filter(n=>we(n)===t)}function lk(e,t){return On(e).filter(n=>{let r=n.getAttribute("alt");return r!==null&&ts(r,t)})}function eS(e,t){var o;let n=t.by,r=t.value;if(n!==void 0&&r!==void 0)switch(n){case je.ROLE:return fm(e,r,t.name);case je.TEXT:return ik(e,r,t);case je.LABEL:return sk(e,r);case je.PLACEHOLDER:return ak(e,r);case je.TESTID:return ck(e,r);case je.ALT:return lk(e,r);case je.COMPONENT:return rk(e,{...t,component:(o=t.component)!=null?o:r});default:throw new Error(`unsupported query strategy '${String(n)}' - use one of: ${Object.values(je).join(", ")}`)}return t.component!==void 0||t.source!==void 0?rk(e,t):t.role!==void 0?fm(e,t.role,t.name):t.text!==void 0?ik(e,t.text,t):t.label!==void 0?sk(e,t.label):t.placeholder!==void 0?ak(e,t.placeholder):t.testid!==void 0?ck(e,t.testid):t.alt!==void 0?lk(e,t.alt):[]}var uk,_3,T3,w3,v3,N3,ok,hm=y(()=>{"use strict";M();jt();gt();Kn();ri();It();qT();uk=Tc,_3=2e3,T3=()=>`[${uk}], ${Zn()}, button, a, input, select, textarea, [role]`;w3="option",v3="option",N3="select",ok=1});function Id(e,t){var i;if(AT(e,t)||Nc(e)||pd(e))return"";let n=Ue(e,t),r=C3(e),o="";for(let s of Array.from(e.childNodes))if(Node.TEXT_NODE===s.nodeType&&n)o+=(i=s.textContent)!=null?i:"";else if(dn(s)){if(AT(s,t))continue;let a=Id(s,t);o+=r||L3(s)?` ${a} `:a}return o}function C3(e){var n,r;let t=(r=(n=e.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(e).display)!=null?r:"";return t.includes("flex")||t.includes("grid")}function L3(e){var n,r;let t=(r=(n=e.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(e).display)!=null?r:"inline";return!t.startsWith("inline")&&t!=="contents"}function $3(e){var t,n;try{return(n=(t=e.contentDocument)==null?void 0:t.body)!=null?n:null}catch{return null}}function nS(e){let t=[],n=(r,o)=>{var i;for(let s of r.querySelectorAll("*")){let a=(i=s.shadowRoot)!=null?i:ta(s);if(a!==null){t.push(a),n(a,o);continue}if(o>=k3||!Ph(s))continue;let l=$3(s);l!==null&&(t.push(l),n(l,o+1))}};return n(e,0),t}function hk(e){let{containers:t,scopeMissing:n}=pm(e.scope),r=t.length;if(r===0)return{candidates:[],scopeMissing:!0,scopeMatches:r};if(e.self===!0){if(e.scope===void 0)return{candidates:[],scopeMissing:n,scopeMatches:r};let l=new Map;return{candidates:t.filter(d=>!Ot(d)&&(e.text===void 0||Gc(Id(d,l),e,e.text))),scopeMissing:n,scopeMatches:r}}let o=new Set,i=[],s=mm(e)===void 0?Ot:pd,a=l=>{for(let u of l)o.has(u)||Od(u,e.scope)&&(s(u)||(o.add(u),i.push(u)))};for(let l of t){a(eS(l,e));for(let u of nS(l))a(eS(u,e))}return{candidates:i,scopeMissing:n,scopeMatches:r}}function P3(e,t){let n={};for(let r of t.slice(0,z3)){let o=e.getAttribute(r);o!==null&&(n[r]=St(r)?Ne:o.slice(0,D3))}return Object.keys(n).length>0?n:void 0}function M3(e,t){if(!Ue(e,t))return!1;let n=e.getBoundingClientRect();return n.width===0||n.height===0?!0:Ki(e,t)&&Pc(e,n)===null}function U3(e,t,n){return ge.IN_VIEWPORT===t?Ki(e,n):ge.RECEIVES_POINTER===t?M3(e,n):ge.VISIBLE===t?Ue(e,n):ge.HIDDEN===t?!Ue(e,n):ni(e,Ue(e,n)).includes(t)}function Cd(e,t,n=tS,r=!0,o=!0,i=!1){let s=hk(e),a=s.scopeMissing,l=r&&V3(e)?mm(e):void 0,u=s.candidates.length===0?pm(e.scope).containers:[],d=l===void 0?void 0:Hc(u,z=>mk(z,l,e)),f=d===void 0?s.candidates:[d],m=new Map,h=t===void 0?f:f.filter(z=>U3(z,t,m)),g=e.attrs,b=i?Math.min(tS,W.MAX_FULL_TEXT_ELEMENTS):tS,x=h.slice(0,Math.max(0,Math.min(n,b))),w=x.length>1||ge.IN_VIEWPORT===t,N=x.map(z=>{let K=Eo(z,m,i);if(w&&Ki(z,m)&&!K.states.includes(ge.IN_VIEWPORT)&&(K={...K,states:[...K.states,ge.IN_VIEWPORT]}),g===void 0||g.length===0)return K;let Z=P3(z,g);return Z===void 0?K:{...K,attrs:Z}}),C=RL(h),D=mm(e)===void 0?void 0:nk(x);return{matched:h.length>0,count:h.length,elements:N,...i?{fullText:!0}:{},...a?{scopeMissing:!0}:{},...s.scopeMatches>1?{scopeMatches:s.scopeMatches}:{},...C===void 0?{}:{coveredBy:C},...D===void 0?{}:{unreadable:D},...h.length===0?{hint:gk(e,t,o)}:{}}}function H3(e){let t=e.getAttribute("aria-labelledby");if(t===null)return;let n=t.split(/\s+/).map(r=>{var o,i,s;return r.length>0&&(s=(i=(o=e.ownerDocument.getElementById(r))==null?void 0:o.textContent)==null?void 0:i.trim())!=null?s:""}).filter(r=>r.length>0).join(" ");return n.length>0?n:void 0}function F3(e){var o,i,s,a,l,u,d;let t=WT(e.scope),n=[],r=["list","listbox","grid","table","tree","treegrid","dialog","alertdialog","navigation","main","banner","form","search","menu","menubar","tablist"];for(let f of r){let m=t.flatMap(h=>fm(h,f,void 0));for(let h of m){if(yt(h))continue;let g=(s=(i=(o=h.getAttribute("aria-label"))!=null?o:H3(h))!=null?i:we(h))!=null?s:void 0,b=h.querySelectorAll("[role]"),x=[];for(let N of Array.from(b)){if(x.length>=3)break;let C=N.getAttribute("role"),D=(d=(u=(a=N.getAttribute("aria-label"))!=null?a:we(N))!=null?u:(l=N.textContent)==null?void 0:l.trim().slice(0,40))!=null?d:"";C!==null&&D.length>0&&x.push(`${C}[${D}]`)}let w={role:f,childCount:b.length,sample:x};if(g!==void 0&&g.length>0&&(w.name=g),n.push(w),n.length>=10)return n}}return n}function mk(e,t,n){let r,o=-1,i=new Map;for(let s of On(e)){if(Ot(s)||!Od(s,n.scope)||!Gc(Id(s,i),n,t))continue;let a=0;for(let l=s.parentElement;l!==null;l=l.parentElement)a++;a>o&&(r=s,o=a)}return r}function B3(e,t,n){let r=gr(t).toLowerCase();if(r.length===0)return;let o=new Map;for(let i of On(e)){if(Ot(i)||!Od(i,n))continue;let s=Fc(Id(i,o)),a=Bc(s).toLowerCase().indexOf(r);if(a!==-1)return s.slice(a,a+r.length)}}function V3(e){return(e.by===void 0||je.TEXT===e.by)&&Object.keys(e).every(t=>G3.has(t))}function mm(e){return e.text!==void 0?e.text:je.TEXT===e.by?e.value:void 0}function K3(e,t){let n=je.ROLE===t.by?t.value:t.role,r=t.name;if(n===void 0||r===void 0||r.length===0)return[];let o=gr(r).toLowerCase();if(o.length===0)return[];let i=[];for(let s of On(e)){if(Ot(s)||ve(s)!==n)continue;let a=Fc(be(s));if(a.length===0)continue;let l=Bc(a).toLowerCase();if(!(!l.includes(o)&&!o.includes(l))&&(i.includes(a)||i.push(a),i.length>=j3))break}return i}function fk(e){let t=` ${e} `,n=new Set;for(let r=0;r<t.length-1;r+=1)n.add(t.slice(r,r+2));return n}function Z3(e,t){let n=fk(Bc(e).toLowerCase()),r=fk(Bc(t).toLowerCase()),o=0;for(let i of n)r.has(i)&&(o+=1);return 2*o/(n.size+r.size)}function Y3(e){return je.ROLE===e.by?e.value:e.role}function X3(e){var r,o,i,s,a,l;let t=je.ROLE===e.by?void 0:e.value,n=(l=(a=(s=(i=(o=(r=e.name)!=null?r:t)!=null?o:e.text)!=null?i:e.label)!=null?s:e.placeholder)!=null?a:e.testid)!=null?l:e.alt;return n===void 0?"":Fc(n)}function q3(e,t){let n=Y3(t),r=X3(t);if(n===void 0&&r.length===0)return[];let o=new Map,i=[];for(let s of On(e)){let a=ve(s),l=n!==void 0&&a===n;if(!l&&!qi.has(a)||Ot(s)||!Ue(s,o))continue;let u=Fc(be(s));if(u.length===0)continue;let d=r.length===0?0:Z3(r,u);!l&&d===0||i.push({el:s,role:a,name:u,roleMatch:l,score:d})}return i.sort((s,a)=>Number(a.roleMatch)-Number(s.roleMatch)||a.score-s.score),i.slice(0,W3).map(s=>{let a={ref:ee.refFor(s.el),role:s.role,name:s.name.slice(0,pk)};return s.name.length>pk&&(a.nameTruncated=!0),a})}function J3(e,t){if(je.TESTID!==t.by||t.value===void 0)return;let n=Zi();for(let r of[Zs,...xI]){if(r===n)continue;if(On(e).some(i=>i.getAttribute(r)===t.value&&!Ot(i)))return r}}function Q3(e,t){var o;let n=!1;for(let i of On(e))if(!Ot(i)&&gL(i)&&ts((o=i.textContent)!=null?o:"",t)){n=!0;break}if(!n)return!1;let r=new Map;for(let i of On(e))if(!Ot(i)&&EL(i)&&ts(Id(i,r),t))return!1;return!0}function gk(e,t,n=!0){let r=WT(e.scope),o=r.flatMap(b=>Array.from(b.querySelectorAll(Zn()))),i=[],s=new Set;for(let b of o){if(Ot(b)||!Od(b,e.scope))continue;let x=we(b);x===null||x.length===0||s.has(x)||(s.add(x),i.length<I3&&i.push(x))}let a=K$(),l=i.some(b=>a.includes(b)),d={route:nm(!1),presentTestids:i,...s.size>i.length?{presentTestidsTotal:s.size}:{},presentRegions:F3(e),knownEmptyState:l},f=mm(e);if(f!==void 0){let b=Hc(r,x=>mk(x,f,e));if(b!==void 0){let x=Eo(b),w=Z$(b);d.splitText=w===void 0?x:{...x,selector:w}}else if(e.matchCase===!0){let x=Hc(r,w=>B3(w,f,e.scope));x!==void 0&&(d.caseMiss=x)}}n&&f!==void 0&&d.splitText===void 0&&(t===void 0||ge.VISIBLE===t||ge.IN_VIEWPORT===t)&&r.some(b=>Q3(b,f))&&(d.ariaHiddenMatch=!0);let m=ZT(r,b=>K3(b,e));m.length>0&&(d.nameNearMiss=m);let h=Hc(r,b=>J3(b,e));h!==void 0&&(d.testidFoundUnder=h);let g=n?ZT(r,b=>q3(b,e)):[];return g.length>0&&(d.nearest=g),d}function Ld(e){return hk(e).candidates}function gm(e,t){var o;let n=Cd(e,void 0,t,!1),r={...n.scopeMissing===!0?{scopeMissing:!0}:{},...n.scopeMatches===void 0?{}:{scopeMatches:n.scopeMatches}};return n.elements.length===0?{elements:n.elements,count:n.count,hint:(o=n.hint)!=null?o:gk(e),...r}:{elements:n.elements,count:n.count,...r}}var I3,k3,D3,z3,tS,G3,j3,W3,pk,Em=y(()=>{"use strict";M();jt();Jo();gt();Kn();it();im();hr();es();ut();W$();It();Y$();qT();wd();hm();vd();I3=12;k3=3;D3=512,z3=12;tS=W.MAX_COLLECTION_ITEMS;G3=new Set(["text","matchCase","scope","by","value"]);j3=5;W3=3,pk=60});function bm(){return rS>0}function st(e){rS+=1;try{return e()}finally{rS-=1}}var rS,Vc=y(()=>{"use strict";rS=0});function oS(e,t=navigator.userAgent){var r,o,i;return!(e instanceof HTMLInputElement)||!(e.type.toLowerCase()==="password"||e8.test((r=e.getAttribute("autocomplete"))!=null?r:""))||t8.test(t)?!1:600<=Number((i=(o=/AppleWebKit\/(\d+)/.exec(t))==null?void 0:o[1])!=null?i:0)}function _m(e,t){let n=sL(e),r=n===void 0?void 0:WC(n);r!==void 0?r.call(e,t):e.value=t;let o=e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}));return e.dispatchEvent(new Event("change",{bubbles:!0})),!o}function $d(e){let t=e.getAttribute("contenteditable");if(lt(e)&&e.isContentEditable||t!==null&&t!=="false"||e.getAttribute("role")==="textbox")return!0;if(!("editContext"in e))return!1;let n=e;return n.editContext!==null&&n.editContext!==void 0}function r8(e){return Vt(e)?e.getAttribute("role")==="textbox"||e.closest(n8)!==null:!1}function Ek(e){throw new Error(`cannot ${e} a contenteditable or EditContext editor; use insertText, or press for a key`)}function iS(e,t){$d(e)&&Ek(t)}function Tm(e,t){r8(e)&&Ek(t)}function sS(e,t){if(e.disabled)throw new Error(`cannot ${t} a disabled <${e.tagName.toLowerCase()}> \u2014 a user could not edit it, so forcing the value would put the app in a state nobody can reach`);if(e.readOnly)throw new Error(`cannot ${t} a readonly <${e.tagName.toLowerCase()}> \u2014 a user could not edit it, so forcing the value would put the app in a state nobody can reach`)}var e8,t8,n8,aS=y(()=>{"use strict";qo();jt();e8=/\b(current|new)-password\b/,t8=/Chrome|Chromium|Edg\/|Firefox|Gecko\//;n8=".monaco-editor, .CodeMirror, .cm-editor"});function Sm(e){let t=Yn[Symbol.for(r0)];if(typeof t!="object"||t===null)return;let n=t.natives;if(typeof n!="object"||n===null)return;let r=n[e];return typeof r=="function"?r:void 0}function Rk(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.max(0,Math.min(e,lS))}var Yn,Sk,bk,Ak,cS,xk,_k,yk,wk,Tk,Am,de,Re,xm,lS,vk,bo,Nk,dt=y(()=>{"use strict";M();Yn=globalThis;bk=(Sk=Sm("setTimeout"))!=null?Sk:typeof Yn.setTimeout=="function"?Yn.setTimeout.bind(Yn):null,cS=(Ak=Sm("clearTimeout"))!=null?Ak:typeof Yn.clearTimeout=="function"?Yn.clearTimeout.bind(Yn):null,_k=(xk=Sm("requestAnimationFrame"))!=null?xk:typeof Yn.requestAnimationFrame=="function"?Yn.requestAnimationFrame.bind(Yn):null,Tk=(wk=Sm("performanceNow"))!=null?wk:typeof((yk=Yn.performance)==null?void 0:yk.now)=="function"?Yn.performance.now.bind(Yn.performance):null,Am=()=>Tk?Tk():0,de=(e,t=0)=>bk?bk(e,t):0,Re=e=>{cS==null||cS(e)},xm=(e,t)=>{let n=!1,r=0,o=()=>{n||(e(),!n&&(r=de(o,t)))};return r=de(o,t),()=>{n=!0,Re(r)}},lS=200,vk=(e=lS)=>new Promise(t=>{let n=!1,r=i=>{n||(n=!0,Re(o),t({settled:i}))},o=de(()=>r(!1),e);_k?_k(()=>r(!0)):de(()=>r(!0),0)}),bo=()=>vk().then(()=>{}),Nk=async(e=lS)=>(await Promise.resolve(),vk(e))});function tD(e){return Array.from(e.querySelectorAll(j8)).filter(t=>!Wn(t)&&Ki(t)).length}function _S(e,t,n){let r=n.length>0?Ld({by:je.ROLE,value:t,name:n}):Ld({by:je.ROLE,value:t}).filter(i=>be(i).length===0),o=r.indexOf(e);return 1<r.length&&0<=o?{nth:o,of:r.length}:null}function K8(e,t,n,r){if(t===void 0&&n===void 0)return null;let o=Ld({by:je.COMPONENT,value:t!=null?t:"",...t===void 0?{}:{component:t},...n===void 0?{}:{source:n},...r.length>0?{role:r}:{}}),i=o.indexOf(e);return 1<o.length&&0<=i?{nth:i,of:o.length}:null}function Y8(e){let t=[];for(let n=e.parentElement;n!==null&&t.length<Z8;n=n.parentElement){let r=ve(n),o=r==="form"||r==="region";W8.has(r)&&(!o||be(n).length>0)&&t.push(r)}return t.length>0?t:void 0}function nD(e){var l;let t=(l=we(e))!=null?l:void 0,n=mr(e),r={};if(t!==void 0){r.testid=t;let u=Ld({by:je.TESTID,value:t});1<u.length&&(r.testidOf=u.length,r.testidNth=u.findIndex(d=>d===e))}let o=n==null?void 0:n.componentStack[0];o!==void 0&&(r.component=o),(n==null?void 0:n.source)!==void 0&&(r.source=n.source);let i=ve(e),s=be(e),a=K8(e,r.component,r.source,i);if(a!==null&&(r.componentNth=a.nth,r.componentOf=a.of),i.length>0&&(r.role=i),s.length>0){r.name=s;let u=Y8(e);u!==void 0&&(r.within=u)}else if(r.component!==void 0||r.source!==void 0){let u=JT(e);0<u.length&&u.length<=X8&&(r.ownText=u)}if(pn(e)&&(r.secret=!0),i.length>0){let u=_S(e,i,s);u!==null&&(r.nth=u.nth,r.of=u.of)}return r}var j8,W8,Z8,X8,rD,TS=y(()=>{"use strict";It();M();Em();hm();gt();ri();it();Kn();j8="canvas";W8=new Set(["alert","alertdialog","dialog","form","region","navigation","menu","menubar","listbox","list","listitem","tabpanel","table","grid","row","group","toolbar","tree","search"]),Z8=2;X8=80;rD=(e,t,n,r,o,i,s)=>{let a={ok:!0,ref:e,action:t,dispatched:!0,settled:r,settleReason:o,effect:n};return i.testid!==void 0&&(a.testid=i.testid),i.testidOf!==void 0&&(a.testidOf=i.testidOf),i.testidNth!==void 0&&(a.testidNth=i.testidNth),i.component!==void 0&&(a.component=i.component),i.source!==void 0&&(a.source=i.source),i.componentNth!==void 0&&(a.componentNth=i.componentNth),i.componentOf!==void 0&&(a.componentOf=i.componentOf),i.ownText!==void 0&&(a.ownText=i.ownText),i.within!==void 0&&(a.within=i.within),i.role!==void 0&&(a.role=i.role),i.name!==void 0&&(a.name=i.name),i.nth!==void 0&&(a.nth=i.nth),i.of!==void 0&&(a.of=i.of),i.secret!==void 0&&(a.secret=i.secret),s!==void 0&&(a.warning=s),a}});var bD={};Li(bD,{insertText:()=>fW,insertTextInto:()=>ED});function fW(e,t){if(typeof t!="string")throw new Error("insertText requires a string `text` \u2014 pass it nested, as args: { text: '\u2026' }.");if(!$d(e))throw new Error(`cannot insertText into a <${e.tagName.toLowerCase()}> \u2014 insertText needs a contenteditable rich-text editor (Tiptap, ProseMirror, Quill), not this surface`);if(hW(e))throw new Error("cannot insertText into an EditContext editor (Monaco, CodeMirror 6): code that calls updateText does not fire textupdate, so the editor model would keep the old text. Use press for a key.");return ED(e,t)}function hW(e){if(!("editContext"in e))return!1;let t=e;return t.editContext!==null&&t.editContext!==void 0}function ED(e,t){e.focus();let n=window.getSelection();if(n!==null&&!gW(n,e)){let s=document.createRange();s.selectNodeContents(e),s.collapse(!1),n.removeAllRanges(),n.addRange(s)}let r=new InputEvent("beforeinput",{inputType:"insertText",data:t,bubbles:!0,cancelable:!0});if(!e.dispatchEvent(r))return!0;if(typeof e.ownerDocument.execCommand!="function"){mW(e,t);let s=new InputEvent("input",{inputType:"insertText",data:t,bubbles:!0,cancelable:!0});return!e.dispatchEvent(s)}let o=!1,i=s=>{s.type==="input"&&(o=!0)};window.addEventListener("input",i,!1);try{if(e.ownerDocument.execCommand("insertText",!1,t))return!1}catch{}finally{window.removeEventListener("input",i,!1)}if(o)return!1;throw new Error("the editor did not accept the text: the native insertText command failed, so the editor model is unchanged. Check that the surface is editable and focused.")}function mW(e,t){let n=window.getSelection(),r=n!==null&&0<n.rangeCount?n.getRangeAt(0):null;if(r!==null&&e.contains(r.commonAncestorContainer)){r.deleteContents();let o=e.ownerDocument.createTextNode(t);r.insertNode(o),r.setStartAfter(o),r.collapse(!0),n==null||n.removeAllRanges(),n==null||n.addRange(r);return}e.appendChild(e.ownerDocument.createTextNode(t))}function gW(e,t){let n=e.anchorNode;return n!==null&&t.contains(n)}var _D=y(()=>{"use strict";aS()});var VD={};Li(VD,{MASK:()=>BD,cloneForRender:()=>GD,renderPage:()=>pZ});function sZ(e){var t;return e instanceof HTMLInputElement&&e.type==="password"?!0:[e.name,e.id,(t=e.getAttribute("autocomplete"))!=null?t:""].some(n=>n.length>0&&St(n))}function aZ(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){let n=sZ(e)&&e.value.length>0?BD:e.value;e instanceof HTMLTextAreaElement?t.textContent=n:t.setAttribute("value",n)}e instanceof HTMLInputElement&&(e.checked?t.setAttribute("checked",""):t.removeAttribute("checked")),e instanceof HTMLOptionElement&&(e.selected?t.setAttribute("selected",""):t.removeAttribute("selected"))}function cZ(e){var r;let t=[...Array.from(e.styleSheets),...(r=e.adoptedStyleSheets)!=null?r:[]],n=[];for(let o of t)try{for(let i of Array.from(o.cssRules))n.push(i.cssText)}catch{}return n.join(`
59
59
  `)}function GD(e){var a;let t=e.documentElement,n=t.cloneNode(!0),r=t.querySelectorAll("*"),o=n.querySelectorAll("*");r.forEach((l,u)=>{let d=o[u];d!==void 0&&aZ(l,d)});let i=[Wi,"script","noscript",'link[rel~="stylesheet"]',"style"];n.querySelectorAll(i.join(",")).forEach(l=>l.remove());let s=e.createElement("style");return s.textContent=cZ(e),((a=n.querySelector("head"))!=null?a:n).append(s),n}function lZ(e){let t=e.defaultView;for(let n of[e.body,e.documentElement]){if(t===null||n===null)continue;let r=t.getComputedStyle(n).backgroundColor;if(r.length>0&&r!=="transparent"&&r!=="rgba(0, 0, 0, 0)")return r}return rZ}function uZ(e){return new Promise((t,n)=>{let r=new Image,o=setTimeout(()=>n(new Error("the page did not render in time")),tZ);r.onload=()=>{clearTimeout(o),t(r)},r.onerror=()=>{clearTimeout(o),n(new Error("the page could not be drawn as an image"))},r.src=e})}function dZ(e){let t=[];for(let n=0;n<e.length;n+=FD)t.push(e.slice(n,n+FD));return t}async function pZ(){try{let e=Math.max(1,window.innerWidth),t=Math.max(1,window.innerHeight),n=GD(document);n.style.transform=`translate(${String(-window.scrollX)}px, ${String(-window.scrollY)}px)`;let r=new XMLSerializer().serializeToString(n),o=`<svg xmlns="${nZ}" width="${String(e)}" height="${String(t)}"><foreignObject x="0" y="0" width="100%" height="100%">${r}</foreignObject></svg>`,i=await uZ(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(o)}`),s=lZ(document),a=Math.min(1,l_.MAX_SIDE_PX/Math.max(e,t));for(let l=0;l<eZ;l+=1,a*=QW){let u=document.createElement("canvas");u.width=Math.max(1,Math.round(e*a)),u.height=Math.max(1,Math.round(t*a));let d=u.getContext("2d");if(d===null)return{ok:!1,reason:"this page has no 2D canvas to draw into"};d.fillStyle=s,d.fillRect(0,0,u.width,u.height),d.drawImage(i,0,0,u.width,u.height);let f=u.toDataURL(oZ,l_.JPEG_QUALITY).replace(iZ,"");if(f.length<=JW)return{ok:!0,width:u.width,height:u.height,chunks:dZ(f)}}return{ok:!1,reason:"the rendered page was too large to send, even scaled down"}}catch(e){return{ok:!1,reason:e instanceof Error?e.message:String(e)}}}var BD,JW,FD,QW,eZ,tZ,nZ,rZ,oZ,iZ,jD=y(()=>{"use strict";M();it();BD="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",JW=24e4,FD=6e4,QW=.75,eZ=4,tZ=5e3,nZ="http://www.w3.org/2000/svg",rZ="#ffffff",oZ="image/jpeg",iZ=/^data:[^,]*,/});function Fm(e,t){return`${VC}${e}. ${String(t)} attempts, all failed. That is everything the page can see: from inside the browser it cannot tell a daemon that is not there from one it is not allowed to reach, so this is not evidence about the daemon. What answers it: run \`npx @reticlehq/server status\` to see whether one is listening and on which port. If your app runs in a container, devcontainer or WSL, the daemon is on a different host, so point the page at it: RETICLE_PORT or reticle({ port }) with the Vite plugin, reticle.connect({ url }) by hand. An https page cannot open a ws:// socket. Still retrying\u2026`}var ez,kS=y(()=>{"use strict";M();ez="Can't reach Reticle from this page. Run reticle status to check, or reticle serve to start it."});var Ke,Xn,hn,ZS=y(()=>{"use strict";Ke={READ:"read",ACT:"act",NARRATION:"narration",HUMAN:"human"},Xn={PASS:"pass",FAIL:"fail"},hn={AGENT:"agent",HARNESS:"harness"}});function Jd(e){switch(e){case k.CLICK:case k.DBLCLICK:return"Clicking";case k.FILL:case k.TYPE:case k.INSERT_TEXT:return"Typing into";case k.HOVER:return"Hovering";case k.SELECT:return"Selecting";case k.SUBMIT:return"Submitting";case k.CHECK:case k.UNCHECK:return"Toggling";case k.UPLOAD:return"Uploading to";case k.DRAG:return"Dragging";default:return e}}var YS=y(()=>{"use strict";M()});function li(e){return typeof e=="string"&&e.length>0}function SY(e){var n;return`${(n=e.file.split("/").pop())!=null?n:e.file}:${e.line}`}function g1(e){var t;if(li(e.testid))return{strategy:Br.TESTID,value:e.testid,stable:!0};if(li(e.component)&&e.source!==void 0)return{strategy:Br.COMPONENT,value:`${e.component}@${SY(e.source)}`,stable:!0};if(li(e.component)&&(li(e.role)||li(e.name))){let n=li(e.name)?e.name:e.role;return{strategy:Br.COMPONENT,value:`${e.component}[${n!=null?n:""}]`,stable:!0}}if(li(e.role)&&li(e.name))return{strategy:Br.ROLE,value:`${e.role}:${e.name}`,stable:!1};if(li(e.role)){let n=e.nth!==void 0?`#${e.nth}`:"";return{strategy:Br.ROLE,value:`${e.role}${n}`,stable:!1}}return{strategy:Br.POSITION,value:`el#${(t=e.nth)!=null?t:0}`,stable:!1}}var Br,E1=y(()=>{"use strict";Br={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"}});function xY(e,t,n){return n.length>0?t.length>0?`${t} "${n}"`:`"${n}"`:t.length>0?t:e.tagName.toLowerCase()}function Qd(e){var d;let t=(d=we(e))!=null?d:void 0,n=mr(e),r=n==null?void 0:n.componentStack[0],o=Zh(e,n==null?void 0:n.source),i=ve(e),s=be(e),a={};t!==void 0&&(a.testid=t),r!==void 0&&(a.component=r),o!==void 0&&(a.source=o),i.length>0&&(a.role=i),s.length>0&&(a.name=s);let l=g1(a),u={anchor:l.value,strategy:AY[l.strategy],label:xY(e,i,s)};return o!==void 0&&(u.source=o),u}var AY,XS=y(()=>{"use strict";It();M();E1();gt();ri();Td();AY={[Br.TESTID]:qs.TESTID,[Br.COMPONENT]:qs.COMPONENT,[Br.ROLE]:qs.ROLE,[Br.POSITION]:qs.POSITION}});function b1(e){return`${String(e)} ${e===1?"note":"notes"} on this page`}function Xm(e,t){let n=e.length,r=`I marked ${String(n)} ${n===1?"issue":"issues"} on ${t} with Reticle. Fix each one, then verify it in the running app:`,o=e.map((i,s)=>{let a=i.source===void 0?i.anchor:`${i.anchor}, ${i.source}`;return`${String(s+1)}. ${i.note}
60
60
  ${i.label} (${a}) on ${i.route}`});return[r,"",...o].join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reticlehq/browser",
3
- "version": "3.10.1",
3
+ "version": "3.10.2",
4
4
  "description": "Reticle browser SDK — installs observers, builds semantic snapshots, executes actions, talks to the bridge.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@reticlehq/core": "3.10.1"
25
+ "@reticlehq/core": "3.10.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@iconify-json/heroicons-outline": "^1.2.1",