@sentry/junior-dashboard 0.152.0 → 0.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -72,7 +72,7 @@ Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}
72
72
 
73
73
  `)}p.write("payload.value = newResult;"),p.write("return payload;");let b=p.compile();return(y,w)=>b(g,y,w)},r,i=Hs,A=!Gs.jitless,c=A&&p0.value,d=t.catchall,l;e._zod.parse=(g,p)=>{l??(l=o.value);let m=g.value;return i(m)?A&&c&&p?.async===!1&&p.jitless!==!0?(r||(r=a(t.shape)),g=r(g,p),d?pR([],m,g,p,l,e):g):n(g,p):(g.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),g)}});function ZL(e,t,n,o){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let a=e.filter(r=>!UA(r));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>la(i,o,Ht())))}),t)}var yp=k("$ZodUnion",(e,t)=>{ce.init(e,t),Be(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Be(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Be(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Be(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>cp(a.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,i=[];for(let A of t.options){let s=A._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)i.push(s),r=!0;else{if(s.issues.length===0)return s;i.push(s)}}return r?Promise.all(i).then(A=>ZL(A,o,e,a)):ZL(i,o,e,a)}});function VL(e,t,n,o){let a=e.filter(r=>r.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(i=>la(i,o,Ht())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var aI=k("$ZodXor",(e,t)=>{yp.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let r=!1,i=[];for(let A of t.options){let s=A._zod.run({value:o.value,issues:[]},a);s instanceof Promise?(i.push(s),r=!0):i.push(s)}return r?Promise.all(i).then(A=>VL(A,o,e,a)):VL(i,o,e,a)}}),oI=k("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,yp.init(e,t);let n=e._zod.parse;Be(e._zod,"propValues",()=>{let a={};for(let r of t.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[A,s]of Object.entries(i)){a[A]||(a[A]=new Set);for(let c of s)a[A].add(c)}}return a});let o=Hu(()=>{let a=t.options,r=new Map;for(let i of a){let A=i._zod.propValues?.[t.discriminator];if(!A||A.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of A){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,i)}}return r});e._zod.parse=(a,r)=>{let i=a.value;if(!Hs(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;let A=o.value.get(i?.[t.discriminator]);return A?A._zod.run(a,r):t.unionFallback||r.direction==="backward"?n(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:i,path:[t.discriminator],inst:e}),a)}}),rI=k("$ZodIntersection",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>{let a=n.value,r=t.left._zod.run({value:a,issues:[]},o),i=t.right._zod.run({value:a,issues:[]},o);return r instanceof Promise||i instanceof Promise?Promise.all([r,i]).then(([s,c])=>XL(n,s,c)):XL(n,r,i)}});function hQ(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(TA(e)&&TA(t)){let n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),a={...e,...t};for(let r of o){let i=hQ(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let a=e[o],r=t[o],i=hQ(a,r);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function XL(e,t,n){let o=new Map,a;for(let A of t.issues)if(A.code==="unrecognized_keys"){a??(a=A);for(let s of A.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(A);for(let A of n.issues)if(A.code==="unrecognized_keys")for(let s of A.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(A);let r=[...o].filter(([,A])=>A.l&&A.r).map(([A])=>A);if(r.length&&a&&e.issues.push({...a,keys:r}),UA(e))return e;let i=hQ(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Vb=k("$ZodTuple",(e,t)=>{ce.init(e,t);let n=t.items;e._zod.parse=(o,a)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({input:r,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let i=[],A=eR(n,"optin"),s=eR(n,"optout");if(!t.rest){if(r.length<A)return o.issues.push({code:"too_small",minimum:A,inclusive:!0,input:r,inst:e,origin:"array"}),o;r.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:r,inst:e,origin:"array"})}let c=new Array(n.length);for(let d=0;d<n.length;d++){let l=n[d]._zod.run({value:r[d],issues:[]},a);l instanceof Promise?i.push(l.then(g=>{c[d]=g})):c[d]=l}if(t.rest){let d=n.length-1,l=r.slice(n.length);for(let g of l){d++;let p=t.rest._zod.run({value:g,issues:[]},a);p instanceof Promise?i.push(p.then(m=>tR(m,o,d))):tR(p,o,d)}}return i.length?Promise.all(i).then(()=>nR(c,o,n,r,s)):nR(c,o,n,r,s)}});function eR(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function tR(e,t,n){e.issues.length&&t.issues.push(...Pa(n,e.issues)),t.value[n]=e.value}function nR(e,t,n,o,a){for(let r=0;r<n.length;r++){let i=e[r],A=r<o.length;if(i.issues.length){if(!A&&r>=a){t.value.length=r;break}t.issues.push(...Pa(r,i.issues))}t.value[r]=i.value}for(let r=t.value.length-1;r>=o.length&&(n[r]._zod.optout==="optional"&&t.value[r]===void 0);r--)t.value.length=r;return t}var iI=k("$ZodRecord",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!TA(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let r=[],i=t.keyType._zod.values;if(i){n.value={};let A=new Set;for(let c of i)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){A.add(typeof c=="number"?c.toString():c);let d=t.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(p=>la(p,o,Ht())),input:c,path:[c],inst:e});continue}let l=d.value,g=t.valueType._zod.run({value:a[c],issues:[]},o);g instanceof Promise?r.push(g.then(p=>{p.issues.length&&n.issues.push(...Pa(c,p.issues)),n.value[l]=p.value})):(g.issues.length&&n.issues.push(...Pa(c,g.issues)),n.value[l]=g.value)}let s;for(let c in a)A.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(let A of Reflect.ownKeys(a)){if(A==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,A))continue;let s=t.keyType._zod.run({value:A,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof A=="string"&&Ub.test(A)&&s.issues.length){let l=t.keyType._zod.run({value:Number(A),issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");l.issues.length===0&&(s=l)}if(s.issues.length){t.mode==="loose"?n.value[A]=a[A]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(l=>la(l,o,Ht())),input:A,path:[A],inst:e});continue}let d=t.valueType._zod.run({value:a[A],issues:[]},o);d instanceof Promise?r.push(d.then(l=>{l.issues.length&&n.issues.push(...Pa(A,l.issues)),n.value[s.value]=l.value})):(d.issues.length&&n.issues.push(...Pa(A,d.issues)),n.value[s.value]=d.value)}}return r.length?Promise.all(r).then(()=>n):n}}),AI=k("$ZodMap",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),n;let r=[];n.value=new Map;for(let[i,A]of a){let s=t.keyType._zod.run({value:i,issues:[]},o),c=t.valueType._zod.run({value:A,issues:[]},o);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([d,l])=>{aR(d,l,n,i,a,e,o)})):aR(s,c,n,i,a,e,o)}return r.length?Promise.all(r).then(()=>n):n}});function aR(e,t,n,o,a,r,i){e.issues.length&&(up.has(typeof o)?n.issues.push(...Pa(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:a,inst:r,issues:e.issues.map(A=>la(A,i,Ht()))})),t.issues.length&&(up.has(typeof o)?n.issues.push(...Pa(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:a,inst:r,key:o,issues:t.issues.map(A=>la(A,i,Ht()))})),n.value.set(e.value,t.value)}var sI=k("$ZodSet",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!(a instanceof Set))return n.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),n;let r=[];n.value=new Set;for(let i of a){let A=t.valueType._zod.run({value:i,issues:[]},o);A instanceof Promise?r.push(A.then(s=>oR(s,n))):oR(A,n)}return r.length?Promise.all(r).then(()=>n):n}});function oR(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var cI=k("$ZodEnum",(e,t)=>{ce.init(e,t);let n=sp(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>up.has(typeof a)).map(a=>typeof a=="string"?xo(a):a.toString()).join("|")})$`),e._zod.parse=(a,r)=>{let i=a.value;return o.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),uI=k("$ZodLiteral",(e,t)=>{if(ce.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?xo(o):o?xo(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{let r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),dI=k("$ZodFile",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;return a instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),n}}),lI=k("$ZodTransform",(e,t)=>{ce.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new PA(e.constructor.name);let a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n.fallback=!0,n));if(a instanceof Promise)throw new Xo;return n.value=a,n.fallback=!0,n}});function rR(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Xb=k("$ZodOptional",(e,t)=>{ce.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Be(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${cp(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let a=n.value,r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>rR(i,a)):rR(r,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),pI=k("$ZodExactOptional",(e,t)=>{Xb.init(e,t),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),gI=k("$ZodNullable",(e,t)=>{ce.init(e,t),Be(e._zod,"optin",()=>t.innerType._zod.optin),Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${cp(n.source)}|null)$`):void 0}),Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),mI=k("$ZodDefault",(e,t)=>{ce.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>iR(r,t)):iR(a,t)}});function iR(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var fI=k("$ZodPrefault",(e,t)=>{ce.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),bI=k("$ZodNonOptional",(e,t)=>{ce.init(e,t),Be(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>AR(r,e)):AR(a,e)}});function AR(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var hI=k("$ZodSuccess",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new PA("ZodSuccess");let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.issues.length===0,n)):(n.value=a.issues.length===0,n)}}),BI=k("$ZodCatch",(e,t)=>{ce.init(e,t),e._zod.optin="optional",Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>la(i,o,Ht()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(r=>la(r,o,Ht()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),yI=k("$ZodNaN",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),eh=k("$ZodPipe",(e,t)=>{ce.init(e,t),Be(e._zod,"values",()=>t.in._zod.values),Be(e._zod,"optin",()=>t.in._zod.optin),Be(e._zod,"optout",()=>t.out._zod.optout),Be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>zb(i,t.in,o)):zb(r,t.in,o)}let a=t.in._zod.run(n,o);return a instanceof Promise?a.then(r=>zb(r,t.out,o)):zb(a,t.out,o)}});function zb(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Cp=k("$ZodCodec",(e,t)=>{ce.init(e,t),Be(e._zod,"values",()=>t.in._zod.values),Be(e._zod,"optin",()=>t.in._zod.optin),Be(e._zod,"optout",()=>t.out._zod.optout),Be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Yb(i,t,o)):Yb(r,t,o)}else{let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>Yb(i,t,o)):Yb(r,t,o)}}});function Yb(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(r=>Kb(e,r,t.out,n)):Kb(e,a,t.out,n)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(r=>Kb(e,r,t.in,n)):Kb(e,a,t.in,n)}}function Kb(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var CI=k("$ZodPreprocess",(e,t)=>{eh.init(e,t)}),wI=k("$ZodReadonly",(e,t)=>{ce.init(e,t),Be(e._zod,"propValues",()=>t.innerType._zod.propValues),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"optin",()=>t.innerType?._zod?.optin),Be(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(sR):sR(a)}});function sR(e){return e.value=Object.freeze(e.value),e}var EI=k("$ZodTemplateLiteral",(e,t)=>{ce.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let a=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let r=a.startsWith("^")?1:0,i=a.endsWith("$")?a.length-1:a.length;n.push(a.slice(r,i))}else if(o===null||m0.has(typeof o))n.push(xo(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,a)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),kI=k("$ZodFunction",(e,t)=>(ce.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let a=e._def.input?Sb(e._def.input,o):o,r=Reflect.apply(n,this,a);return e._def.output?Sb(e._def.output,r):r}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let a=e._def.input?await Lb(e._def.input,o):o,r=await Reflect.apply(n,this,a);return e._def.output?await Lb(e._def.output,r):r}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Vb({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),QI=k("$ZodPromise",(e,t)=>{ce.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(a=>t.innerType._zod.run({value:a,issues:[]},o))}),II=k("$ZodLazy",(e,t)=>{ce.init(e,t),Be(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Be(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Be(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Be(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Be(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),_I=k("$ZodCustom",(e,t)=>{lt.init(e,t),ce.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(r=>cR(r,n,o,e));cR(a,n,o,e)}});function cR(e,t,n,o){if(!e){let a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(Tu(a))}}var Ep={};S(Ep,{ar:()=>mR,az:()=>fR,be:()=>hR,bg:()=>BR,ca:()=>yR,cs:()=>CR,da:()=>wR,de:()=>ER,el:()=>kR,en:()=>th,eo:()=>QR,es:()=>IR,fa:()=>_R,fi:()=>vR,fr:()=>xR,frCA:()=>DR,he:()=>FR,hr:()=>SR,hu:()=>LR,hy:()=>NR,id:()=>$R,is:()=>MR,it:()=>jR,ja:()=>PR,ka:()=>GR,kh:()=>HR,km:()=>nh,ko:()=>TR,lt:()=>OR,mk:()=>qR,ms:()=>zR,nl:()=>YR,no:()=>KR,ota:()=>JR,pl:()=>ZR,ps:()=>WR,pt:()=>VR,ro:()=>XR,ru:()=>tN,sl:()=>nN,sv:()=>aN,ta:()=>oN,th:()=>rN,tr:()=>iN,ua:()=>AN,uk:()=>ah,ur:()=>sN,uz:()=>cN,vi:()=>uN,yo:()=>pN,zhCN:()=>dN,zhTW:()=>lN});var fee=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(a){return e[a]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${a.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${A}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${A}`}case"invalid_value":return a.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${$(a.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${a.prefix}"`:r.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${r.suffix}"`:r.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${r.includes}"`:r.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${r.pattern}`:`${n[r.format]??a.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${a.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${a.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${a.keys.length>1?"\u0629":""}: ${_(a.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function mR(){return{localeError:fee()}}var bee=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${a.expected}, daxil olan ${A}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r}, daxil olan ${A}`}case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${$(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[r.format]??a.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${a.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${a.keys.length>1?"lar":""}: ${_(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${a.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function fR(){return{localeError:bee()}}function bR(e,t,n,o){let a=Math.abs(e),r=a%10,i=a%100;return i>=11&&i<=19?o:r===1?t:r>=2&&r<=4?n:o}var hee=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(a){return e[a]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${a.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${A}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${$(a.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=bR(A,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${r}${a.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=bR(A,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${r}${a.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${a.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(a.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${a.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function hR(){return{localeError:hee()}}var Bee=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${A}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${$(a.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${a.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;if(r.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${r.prefix}"`;if(r.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${r.suffix}"`;if(r.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${r.includes}"`;if(r.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${r.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return r.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),r.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${a.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u043E\u0432\u0435":""}: ${_(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function BR(){return{localeError:Bee()}}var yee=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(a){return e[a]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${a.expected}, s'ha rebut ${A}`:`Tipus inv\xE0lid: s'esperava ${r}, s'ha rebut ${A}`}case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${$(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(a.values," o ")}`;case"too_big":{let r=a.inclusive?"com a m\xE0xim":"menys de",i=t(a.origin);return i?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${r} ${a.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(a.origin);return i?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${r} ${a.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${a.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${a.origin}`;default:return"Entrada inv\xE0lida"}}};function yR(){return{localeError:yee()}}var Cee=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(a){return e[a]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${a.expected}, obdr\u017Eeno ${A}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r}, obdr\u017Eeno ${A}`}case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${$(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${n[r.format]??a.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${a.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(a.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${a.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${a.origin}`;default:return"Neplatn\xFD vstup"}}};function CR(){return{localeError:Cee()}}var wee=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(a){return e[a]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${A}`:`Ugyldigt input: forventede ${r}, fik ${A}`}case"invalid_value":return a.values.length===1?`Ugyldig v\xE6rdi: forventede ${$(a.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`For stor: forventede ${A??"value"} ${i.verb} ${r} ${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${A??"value"} havde ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`For lille: forventede ${A} ${i.verb} ${r} ${a.minimum.toString()} ${i.unit}`:`For lille: forventede ${A} havde ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: skal starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: skal ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: skal indeholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${_(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${a.origin}`;default:return"Ugyldigt input"}}};function wR(){return{localeError:wee()}}var Eee=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(a){return e[a]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${a.expected}, erhalten ${A}`:`Ung\xFCltige Eingabe: erwartet ${r}, erhalten ${A}`}case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${$(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ist`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ist`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(a.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${a.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${a.origin}`;default:return"Ung\xFCltige Eingabe"}}};function ER(){return{localeError:Eee()}}var kee=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(a){return e[a]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return typeof a.expected=="string"&&/^[A-Z]/.test(a.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${a.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${A}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${A}`}case"invalid_value":return a.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${$(a.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.maximum.toString()} ${i.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${a.minimum.toString()} ${i.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${r.prefix}"`:r.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${r.suffix}"`:r.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${r.includes}"`:r.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${r.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[r.format]??a.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${a.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${a.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${a.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${_(a.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${a.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${a.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function kR(){return{localeError:kee()}}var Qee=()=>{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(a){return e[a]??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",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return`Invalid input: expected ${r}, received ${A}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${$(a.values[0])}`:`Invalid option: expected one of ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${i.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(i=>`'${i}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function th(){return{localeError:Qee()}}var Iee=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${a.expected}, ricevi\u011Dis ${A}`:`Nevalida enigo: atendi\u011Dis ${r}, ricevi\u011Dis ${A}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${$(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${r}${a.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${a.origin} estu ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} \u015Dlosilo${a.keys.length>1?"j":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function QR(){return{localeError:Iee()}}var _ee=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${a.expected}, recibido ${A}`:`Entrada inv\xE1lida: se esperaba ${r}, recibido ${A}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${$(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Demasiado grande: se esperaba que ${A??"valor"} tuviera ${r}${a.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${A??"valor"} fuera ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Demasiado peque\xF1o: se esperaba que ${A} tuviera ${r}${a.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${A} fuera ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${n[r.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[a.origin]??a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[a.origin]??a.origin}`;default:return"Entrada inv\xE1lida"}}};function IR(){return{localeError:_ee()}}var vee=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(a){return e[a]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${a.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${A} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${A} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return a.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${$(a.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${_(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[r.format]??a.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${a.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${a.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(a.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${a.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${a.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function _R(){return{localeError:vee()}}var xee=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(a){return e[a]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${A}`:`Virheellinen tyyppi: odotettiin ${r}, oli ${A}`}case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${$(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${r}${a.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${r}${a.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${n[r.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(a.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function vR(){return{localeError:xee()}}var Dee=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : instanceof ${a.expected} attendu, ${A} re\xE7u`:`Entr\xE9e invalide : ${r} attendu, ${A} re\xE7u`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${$(a.values[0])} attendu`:`Option invalide : une valeur parmi ${_(a.values,"|")} attendue`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Trop grand : ${o[a.origin]??"valeur"} doit ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Trop petit : ${o[a.origin]??"valeur"} doit ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Trop petit : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${_(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function xR(){return{localeError:Dee()}}var Fee=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : attendu instanceof ${a.expected}, re\xE7u ${A}`:`Entr\xE9e invalide : attendu ${r}, re\xE7u ${A}`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${$(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u2264":"<",i=t(a.origin);return i?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${r}${a.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u2265":">",i=t(a.origin);return i?`Trop petit : attendu que ${a.origin} ait ${r}${a.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${a.origin} soit ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${n[r.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${_(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function DR(){return{localeError:Fee()}}var See=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=c=>c?e[c]:void 0,o=c=>{let d=n(c);return d?d.label:c??e.unknown.label},a=c=>`\u05D4${o(c)}`,r=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=c=>c?t[c]??null:null,A={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,l=s[d??""]??o(d),g=j(c.input),p=s[g]??e[g]?.label??g;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${l}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${$(c.values[0])}`;let d=c.values.map(p=>$(p));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let l=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${l}`}case"too_big":{let d=i(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let m=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(c.origin==="array"||c.origin==="set"){let m=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let g=c.inclusive?"<=":"<",p=r(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.maximum.toString()}`}case"too_small":{let d=i(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let m=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(c.origin==="array"||c.origin==="set"){let m=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let B=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`}let h=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let g=c.inclusive?">=":">",p=r(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${l} ${p} ${g}${c.minimum.toString()}`}case"invalid_format":{let d=c;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let l=A[d.format],g=l?.label??d.format,m=(l?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${_(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${a(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function FR(){return{localeError:See()}}var Lee=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(a){return e[a]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${a.expected}, a primljeno je ${A}`:`Neispravan unos: o\u010Dekuje se ${r}, a primljeno je ${A}`}case"invalid_value":return a.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${$(a.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Preveliko: o\u010Dekivano da ${A??"vrijednost"} ima ${r}${a.maximum.toString()} ${i.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${A??"vrijednost"} bude ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=o[a.origin]??a.origin;return i?`Premalo: o\u010Dekivano da ${A} ima ${r}${a.minimum.toString()} ${i.unit}`:`Premalo: o\u010Dekivano da ${A} bude ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${r.prefix}"`:r.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${r.suffix}"`:r.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${r.includes}"`:r.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${r.pattern}`:`Neispravna ${n[r.format]??a.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${a.divisor}`;case"unrecognized_keys":return`Neprepoznat${a.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${_(a.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[a.origin]??a.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[a.origin]??a.origin}`;default:return"Neispravan unos"}}};function SR(){return{localeError:Lee()}}var Ree=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${a.expected}, a kapott \xE9rt\xE9k ${A}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r}, a kapott \xE9rt\xE9k ${A}`}case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${$(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${a.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${a.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${r}${a.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} t\xFAl kicsi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[r.format]??a.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${a.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${a.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${a.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function LR(){return{localeError:Ree()}}function RR(e,t,n){return Math.abs(e)===1?t:n}function Ku(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var Nee=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(a){return e[a]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${a.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${A}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${r}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${A}`}case"invalid_value":return a.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${$(a.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=RR(A,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ku(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ku(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=RR(A,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ku(a.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${a.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ku(a.origin)} \u056C\u056B\u0576\u056B ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${r.prefix}"-\u0578\u057E`:r.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${r.suffix}"-\u0578\u057E`:r.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${r.includes}"`:r.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${r.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[r.format]??a.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${a.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${a.keys.length>1?"\u0576\u0565\u0580":""}. ${_(a.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ku(a.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Ku(a.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function NR(){return{localeError:Nee()}}var $ee=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${A}`:`Input tidak valid: diharapkan ${r}, diterima ${A}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${$(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${r}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: diharapkan ${a.origin} memiliki ${r}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${n[r.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function $R(){return{localeError:$ee()}}var Mee=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(a){return e[a]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${A} \xFEar sem \xE1 a\xF0 vera instanceof ${a.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${A} \xFEar sem \xE1 a\xF0 vera ${r}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${$(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${r}${a.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} s\xE9 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${r}${a.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} s\xE9 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${r.prefix}"`:r.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${r.suffix}"`:r.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${r.includes}"`:r.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${r.pattern}`:`Rangt ${n[r.format]??a.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${_(a.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${a.origin}`;default:return"Rangt gildi"}}};function MR(){return{localeError:Mee()}}var jee=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${A}`:`Input non valido: atteso ${r}, ricevuto ${A}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${$(a.values[0])}`:`Opzione non valida: atteso uno tra ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Troppo grande: ${a.origin??"valore"} deve avere ${r}${a.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Troppo piccolo: ${a.origin} deve avere ${r}${a.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${a.origin} deve essere ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Input non valido: ${n[r.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${_(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function jR(){return{localeError:jee()}}var Pee=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(a){return e[a]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${A}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${r}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${A}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${$(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(a.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let r=a.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(a.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${i.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let r=a.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(a.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${i.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${a.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${a.keys.length>1?"\u7FA4":""}: ${_(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function PR(){return{localeError:Pee()}}var Gee=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(a){return e[a]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${a.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${A}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${A}`}case"invalid_value":return a.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${$(a.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${_(a.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} \u10D8\u10E7\u10DD\u10E1 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${r.prefix}"-\u10D8\u10D7`:r.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${r.suffix}"-\u10D8\u10D7`:r.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${r.includes}"-\u10E1`:r.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${r.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${a.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${a.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${_(a.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${a.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${a.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function GR(){return{localeError:Gee()}}var Hee=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(a){return e[a]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${a.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${A}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${A}`}case"invalid_value":return a.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${$(a.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${r.prefix}"`:r.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${r.suffix}"`:r.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${r.includes}"`:r.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${a.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(a.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function nh(){return{localeError:Hee()}}function HR(){return nh()}var Tee=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(a){return e[a]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${A}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${A}\uC785\uB2C8\uB2E4`}case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${$(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let r=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",A=t(a.origin),s=A?.unit??"\uC694\uC18C";return A?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${s} ${r}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${r}${i}`}case"too_small":{let r=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",A=t(a.origin),s=A?.unit??"\uC694\uC18C";return A?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${s} ${r}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${r}${i}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[r.format]??a.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${a.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(a.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${a.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${a.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function TR(){return{localeError:Tee()}}var wp=e=>e.charAt(0).toUpperCase()+e.slice(1);function UR(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var Uee=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(a,r,i,A){let s=e[a]??null;return s===null?s:{unit:s.unit[r],verb:s.verb[A][i?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${A}, o tik\u0117tasi - instanceof ${a.expected}`:`Gautas tipas ${A}, o tik\u0117tasi - ${r}`}case"invalid_value":return a.values.length===1?`Privalo b\u016Bti ${$(a.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${_(a.values,"|")} pasirinkim\u0173`;case"too_big":{let r=o[a.origin]??a.origin,i=t(a.origin,UR(Number(a.maximum)),a.inclusive??!1,"smaller");if(i?.verb)return`${wp(r??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.maximum.toString()} ${i.unit??"element\u0173"}`;let A=a.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${wp(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${A} ${a.maximum.toString()} ${i?.unit}`}case"too_small":{let r=o[a.origin]??a.origin,i=t(a.origin,UR(Number(a.minimum)),a.inclusive??!1,"bigger");if(i?.verb)return`${wp(r??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.minimum.toString()} ${i.unit??"element\u0173"}`;let A=a.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${wp(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${A} ${a.minimum.toString()} ${i?.unit}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${r.prefix}"`:r.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${r.includes}"`:r.format==="regex"?`Eilut\u0117 privalo atitikti ${r.pattern}`:`Neteisingas ${n[r.format]??a.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${_(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let r=o[a.origin]??a.origin;return`${wp(r??a.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function OR(){return{localeError:Uee()}}var Oee=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(a){return e[a]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${a.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${A}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${$(a.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${r.pattern}`:`Invalid ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${_(a.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${a.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${a.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function qR(){return{localeError:Oee()}}var qee=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${A}`:`Input tidak sah: dijangka ${r}, diterima ${A}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${$(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: dijangka ${a.origin??"nilai"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: dijangka ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${n[r.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function zR(){return{localeError:qee()}}var zee=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(a){return e[a]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${A}`:`Ongeldige invoer: verwacht ${r}, ontving ${A}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${$(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin),A=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return i?`Te ${A}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${A}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} is`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin),A=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return i?`Te ${A}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${A}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} is`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${n[r.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function YR(){return{localeError:zee()}}var Yee=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(a){return e[a]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${A}`:`Ugyldig input: forventet ${r}, fikk ${A}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${$(a.values[0])}`:`Ugyldig valg: forventet en av ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${n[r.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function KR(){return{localeError:Yee()}}var Kee=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`F\xE2sit giren: umulan instanceof ${a.expected}, al\u0131nan ${A}`:`F\xE2sit giren: umulan ${r}, al\u0131nan ${A}`}case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${$(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let r=a;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[r.format]??a.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${a.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${a.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function JR(){return{localeError:Kee()}}var Jee=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(a){return e[a]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${a.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${A} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${A} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return a.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${$(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${_(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} \u0648\u064A`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} \u0648\u064A`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[r.format]??a.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${a.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${a.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${_(a.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${a.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${a.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function WR(){return{localeError:Jee()}}var Wee=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(a){return e[a]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${a.expected}, otrzymano ${A}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r}, otrzymano ${A}`}case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${$(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[r.format]??a.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${a.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${a.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function ZR(){return{localeError:Wee()}}var Zee=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Tipo inv\xE1lido: esperado instanceof ${a.expected}, recebido ${A}`:`Tipo inv\xE1lido: esperado ${r}, recebido ${A}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${$(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${r}${a.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Muito pequeno: esperado que ${a.origin} tivesse ${r}${a.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${n[r.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>1?"s":""} desconhecida${a.keys.length>1?"s":""}: ${_(a.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${a.origin}`;default:return"Campo inv\xE1lido"}}};function VR(){return{localeError:Zee()}}var Vee=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(a){return e[a]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return`Intrare invalid\u0103: a\u0219teptat ${r}, primit ${A}`}case"invalid_value":return a.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${$(a.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} s\u0103 fie ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Prea mic: a\u0219teptat ca ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Prea mic: a\u0219teptat ca ${a.origin} s\u0103 fie ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${r.prefix}"`:r.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${r.suffix}"`:r.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${r.includes}"`:r.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${r.pattern}`:`Format invalid: ${n[r.format]??a.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${a.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${_(a.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${a.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${a.origin}`;default:return"Intrare invalid\u0103"}}};function XR(){return{localeError:Vee()}}function eN(e,t,n,o){let a=Math.abs(e),r=a%10,i=a%100;return i>=11&&i<=19?o:r===1?t:r>=2&&r<=4?n:o}var Xee=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${A}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${$(a.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);if(i){let A=Number(a.maximum),s=eN(A,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);if(i){let A=Number(a.minimum),s=eN(A,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${a.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${a.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0438":""}: ${_(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function tN(){return{localeError:Xee()}}var ete=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${a.expected}, prejeto ${A}`:`Neveljaven vnos: pri\u010Dakovano ${r}, prejeto ${A}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${$(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${r}${a.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${r}${a.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${n[r.format]??a.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(a.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function nN(){return{localeError:ete()}}var tte=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(a){return e[a]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${a.expected}, fick ${A}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${r}, fick ${A}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${$(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${n[r.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${a.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function aN(){return{localeError:tte()}}var nte=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(a){return e[a]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${a.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${A}`}case"invalid_value":return a.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${$(a.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${a.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${a.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function oN(){return{localeError:nte()}}var ate=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(a){return e[a]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${a.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${A}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${A}`}case"invalid_value":return a.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${$(a.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${r.prefix}"`:r.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${r.suffix}"`:r.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[r.format]??a.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${a.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${_(a.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function rN(){return{localeError:ate()}}var ote=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(a){return e[a]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${a.expected}, al\u0131nan ${A}`:`Ge\xE7ersiz de\u011Fer: beklenen ${r}, al\u0131nan ${A}`}case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${$(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[r.format]??a.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${a.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${a.keys.length>1?"lar":""}: ${_(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${a.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function iN(){return{localeError:ote()}}var rte=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(a){return e[a]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${a.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${A}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${A}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${$(a.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} \u0431\u0443\u0434\u0435 ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0456":""}: ${_(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${a.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function ah(){return{localeError:rte()}}function AN(){return ah()}var ite=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(a){return e[a]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${a.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${A} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${A} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${$(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(a.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${a.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${r}${a.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u0627 ${r}${a.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${a.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${a.keys.length>1?"\u0632":""}: ${_(a.keys,"\u060C ")}`;case"invalid_key":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function sN(){return{localeError:ite()}}var Ate=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(a){return e[a]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${A}`:`Noto\u2018g\u2018ri kirish: kutilgan ${r}, qabul qilingan ${A}`}case"invalid_value":return a.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${$(a.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${r.prefix}" bilan boshlanishi kerak`:r.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${r.suffix}" bilan tugashi kerak`:r.format==="includes"?`Noto\u2018g\u2018ri satr: "${r.includes}" ni o\u2018z ichiga olishi kerak`:r.format==="regex"?`Noto\u2018g\u2018ri satr: ${r.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[r.format]??a.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${a.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${a.keys.length>1?"lar":""}: ${_(a.keys,", ")}`;case"invalid_key":return`${a.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${a.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function cN(){return{localeError:Ate()}}var ste=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(a){return e[a]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${a.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${A}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r}, nh\u1EADn \u0111\u01B0\u1EE3c ${A}`}case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${$(a.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${r}${a.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${i.verb} ${r}${a.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${n[r.format]??a.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${a.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(a.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function uN(){return{localeError:ste()}}var cte=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(a){return e[a]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${A}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r}\uFF0C\u5B9E\u9645\u63A5\u6536 ${A}`}case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${$(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${n[r.format]??a.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${a.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${a.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function dN(){return{localeError:cte()}}var ute=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(a){return e[a]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${a.expected}\uFF0C\u4F46\u6536\u5230 ${A}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r}\uFF0C\u4F46\u6536\u5230 ${A}`}case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${$(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${n[r.format]??a.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${a.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${a.keys.length>1?"\u5011":""}\uFF1A${_(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function lN(){return{localeError:ute()}}var dte=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(a){return e[a]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return a=>{switch(a.code){case"invalid_type":{let r=o[a.expected]??a.expected,i=j(a.input),A=o[i]??i;return/^[A-Z]/.test(a.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${a.expected}, \xE0m\u1ECD\u0300 a r\xED ${A}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${r}, \xE0m\u1ECD\u0300 a r\xED ${A}`}case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${$(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${_(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${i.verb} ${r}${a.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.maximum}`}case"too_small":{let r=a.inclusive?">=":">",i=t(a.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${i.verb} ${r}${a.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${a.minimum}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${r.prefix}"`:r.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${r.suffix}"`:r.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${r.includes}"`:r.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${r.pattern}`:`A\u1E63\xEC\u1E63e: ${n[r.format]??a.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${a.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${_(a.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function pN(){return{localeError:dte()}}var gN,vI=Symbol("ZodOutput"),xI=Symbol("ZodInput"),oh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function rh(){return new oh}(gN=globalThis).__zod_globalRegistry??(gN.__zod_globalRegistry=rh());var Pn=globalThis.__zod_globalRegistry;function DI(e,t){return new e({type:"string",...U(t)})}function FI(e,t){return new e({type:"string",coerce:!0,...U(t)})}function ih(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...U(t)})}function kp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...U(t)})}function Ah(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...U(t)})}function sh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(t)})}function ch(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(t)})}function uh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(t)})}function Qp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...U(t)})}function dh(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...U(t)})}function lh(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(t)})}function ph(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...U(t)})}function gh(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(t)})}function mh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...U(t)})}function fh(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...U(t)})}function bh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(t)})}function hh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(t)})}function Bh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(t)})}function SI(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...U(t)})}function yh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(t)})}function Ch(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(t)})}function wh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...U(t)})}function Eh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...U(t)})}function kh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...U(t)})}function Qh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...U(t)})}var LI={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function RI(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(t)})}function NI(e,t){return new e({type:"string",format:"date",check:"string_format",...U(t)})}function $I(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...U(t)})}function MI(e,t){return new e({type:"string",format:"duration",check:"string_format",...U(t)})}function jI(e,t){return new e({type:"number",checks:[],...U(t)})}function PI(e,t){return new e({type:"number",coerce:!0,checks:[],...U(t)})}function GI(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...U(t)})}function HI(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...U(t)})}function TI(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...U(t)})}function UI(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...U(t)})}function OI(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...U(t)})}function qI(e,t){return new e({type:"boolean",...U(t)})}function zI(e,t){return new e({type:"boolean",coerce:!0,...U(t)})}function YI(e,t){return new e({type:"bigint",...U(t)})}function KI(e,t){return new e({type:"bigint",coerce:!0,...U(t)})}function JI(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...U(t)})}function WI(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...U(t)})}function ZI(e,t){return new e({type:"symbol",...U(t)})}function VI(e,t){return new e({type:"undefined",...U(t)})}function XI(e,t){return new e({type:"null",...U(t)})}function e_(e){return new e({type:"any"})}function t_(e){return new e({type:"unknown"})}function n_(e,t){return new e({type:"never",...U(t)})}function a_(e,t){return new e({type:"void",...U(t)})}function o_(e,t){return new e({type:"date",...U(t)})}function r_(e,t){return new e({type:"date",coerce:!0,...U(t)})}function i_(e,t){return new e({type:"nan",...U(t)})}function Pr(e,t){return new Ob({check:"less_than",...U(t),value:e,inclusive:!1})}function io(e,t){return new Ob({check:"less_than",...U(t),value:e,inclusive:!0})}function Gr(e,t){return new qb({check:"greater_than",...U(t),value:e,inclusive:!1})}function pa(e,t){return new qb({check:"greater_than",...U(t),value:e,inclusive:!0})}function Ih(e){return Gr(0,e)}function _h(e){return Pr(0,e)}function vh(e){return io(0,e)}function xh(e){return pa(0,e)}function OA(e,t){return new X0({check:"multiple_of",...U(t),value:e})}function qA(e,t){return new nQ({check:"max_size",...U(t),maximum:e})}function Hr(e,t){return new aQ({check:"min_size",...U(t),minimum:e})}function Os(e,t){return new oQ({check:"size_equals",...U(t),size:e})}function qs(e,t){return new rQ({check:"max_length",...U(t),maximum:e})}function Hi(e,t){return new iQ({check:"min_length",...U(t),minimum:e})}function zs(e,t){return new AQ({check:"length_equals",...U(t),length:e})}function Ju(e,t){return new sQ({check:"string_format",format:"regex",...U(t),pattern:e})}function Wu(e){return new cQ({check:"string_format",format:"lowercase",...U(e)})}function Zu(e){return new uQ({check:"string_format",format:"uppercase",...U(e)})}function Vu(e,t){return new dQ({check:"string_format",format:"includes",...U(t),includes:e})}function Xu(e,t){return new lQ({check:"string_format",format:"starts_with",...U(t),prefix:e})}function ed(e,t){return new pQ({check:"string_format",format:"ends_with",...U(t),suffix:e})}function Dh(e,t,n){return new gQ({check:"property",property:e,schema:t,...U(n)})}function td(e,t){return new mQ({check:"mime_type",mime:e,...U(t)})}function er(e){return new fQ({check:"overwrite",tx:e})}function nd(e){return er(t=>t.normalize(e))}function ad(){return er(e=>e.trim())}function od(){return er(e=>e.toLowerCase())}function rd(){return er(e=>e.toUpperCase())}function id(){return er(e=>l0(e))}function A_(e,t,n){return new e({type:"array",element:t,...U(n)})}function pte(e,t,n){return new e({type:"union",options:t,...U(n)})}function gte(e,t,n){return new e({type:"union",options:t,inclusive:!1,...U(n)})}function mte(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...U(o)})}function fte(e,t,n){return new e({type:"intersection",left:t,right:n})}function bte(e,t,n,o){let a=n instanceof ce,r=a?o:n,i=a?n:null;return new e({type:"tuple",items:t,rest:i,...U(r)})}function hte(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...U(o)})}function Bte(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...U(o)})}function yte(e,t,n){return new e({type:"set",valueType:t,...U(n)})}function Cte(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:o,...U(n)})}function wte(e,t,n){return new e({type:"enum",entries:t,...U(n)})}function Ete(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...U(n)})}function s_(e,t){return new e({type:"file",...U(t)})}function kte(e,t){return new e({type:"transform",transform:t})}function Qte(e,t){return new e({type:"optional",innerType:t})}function Ite(e,t){return new e({type:"nullable",innerType:t})}function _te(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():g0(n)}})}function vte(e,t,n){return new e({type:"nonoptional",innerType:t,...U(n)})}function xte(e,t){return new e({type:"success",innerType:t})}function Dte(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function Fte(e,t,n){return new e({type:"pipe",in:t,out:n})}function Ste(e,t){return new e({type:"readonly",innerType:t})}function Lte(e,t,n){return new e({type:"template_literal",parts:t,...U(n)})}function Rte(e,t){return new e({type:"lazy",getter:t})}function Nte(e,t){return new e({type:"promise",innerType:t})}function c_(e,t,n){let o=U(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function u_(e,t,n){return new e({type:"custom",check:"custom",fn:t,...U(n)})}function d_(e,t){let n=mN(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(Tu(a,o.value,n._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),o.issues.push(Tu(r))}},e(o.value,o)),t);return n}function mN(e,t){let n=new lt({check:"custom",...U(t)});return n._zod.check=e,n}function l_(e){let t=new lt({check:"describe"});return t._zod.onattach=[n=>{let o=Pn.get(n)??{};Pn.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function p_(e){let t=new lt({check:"meta"});return t._zod.onattach=[n=>{let o=Pn.get(n)??{};Pn.add(n,{...o,...e})}],t._zod.check=()=>{},t}function g_(e,t){let n=U(t),o=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(p=>typeof p=="string"?p.toLowerCase():p),a=a.map(p=>typeof p=="string"?p.toLowerCase():p));let r=new Set(o),i=new Set(a),A=e.Codec??Cp,s=e.Boolean??Bp,c=e.String??Us,d=new c({type:"string",error:n.error}),l=new s({type:"boolean",error:n.error}),g=new A({type:"pipe",in:d,out:l,transform:((p,m)=>{let h=p;return n.case!=="sensitive"&&(h=h.toLowerCase()),r.has(h)?!0:i.has(h)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...i],input:m.value,inst:g,continue:!1}),{})}),reverseTransform:((p,m)=>p===!0?o[0]||"true":a[0]||"false"),error:n.error});return g}function Ad(e,t,n,o={}){let a=U(o),r={...U(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:A=>n.test(A),...a};return n instanceof RegExp&&(r.pattern=n),new e(r)}function zA(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Pn,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Te(e,t,n={path:[],schemaPath:[]}){var o;let a=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;let i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);let A=e._zod.toJSONSchema?.();if(A)i.schema=A;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{let g=i.schema,p=t.processors[a.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);p(e,t,g,d)}let l=e._zod.parent;l&&(i.ref||(i.ref=l),Te(l,t,d),t.seen.get(l).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&ga(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function YA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let i of e.seen.entries()){let A=e.metadataRegistry.get(i[0])?.id;if(A){let s=o.get(A);if(s&&s!==i[0])throw new Error(`Duplicate schema id "${A}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(A,i[0])}}let a=i=>{let A=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let l=e.external.registry.get(i[0])?.id,g=e.external.uri??(m=>m);if(l)return{ref:g(l)};let p=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=p,{defId:p,ref:`${g("__shared")}#/${A}/${p}`}}if(i[1]===n)return{ref:"#"};let c=`#/${A}/`,d=i[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},r=i=>{if(i[1].schema.$ref)return;let A=i[1],{ref:s,defId:c}=a(i);A.def={...A.schema},c&&(A.defId=c);let d=A.schema;for(let l in d)delete d[l];d.$ref=s};if(e.cycles==="throw")for(let i of e.seen.entries()){let A=i[1];if(A.cycle)throw new Error(`Cycle detected: #/${A.cycle?.join("/")}/<root>
74
74
 
75
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let A=i[1];if(t===i[0]){r(i);continue}if(e.external){let c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id){r(i);continue}if(A.cycle){r(i);continue}if(A.count>1&&e.reused==="ref"){r(i);continue}}}function KA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=A=>{let s=e.seen.get(A);if(s.ref===null)return;let c=s.def??s.schema,d={...c},l=s.ref;if(s.ref=null,l){o(l);let p=e.seen.get(l),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,d),A._zod.parent===l)for(let B in c)B==="$ref"||B==="allOf"||B in d||delete c[B];if(m.$ref&&p.def)for(let B in c)B==="$ref"||B==="allOf"||B in p.def&&JSON.stringify(c[B])===JSON.stringify(p.def[B])&&delete c[B]}let g=A._zod.parent;if(g&&g!==l){o(g);let p=e.seen.get(g);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let m in c)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(c[m])===JSON.stringify(p.def[m])&&delete c[m]}e.override({zodSchema:A,jsonSchema:c,path:s.path??[]})};for(let A of[...e.seen.entries()].reverse())o(A[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let A=e.external.registry.get(t)?.id;if(!A)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(A)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let i=e.external?.defs??{};for(let A of e.seen.entries()){let s=A[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{let A=JSON.parse(JSON.stringify(a));return Object.defineProperty(A,"~standard",{value:{...t["~standard"],jsonSchema:{input:sd(t,"input",e.processors),output:sd(t,"output",e.processors)}},enumerable:!1,writable:!1}),A}catch{throw new Error("Error converting schema to JSON.")}}function ga(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ga(o.element,n);if(o.type==="set")return ga(o.valueType,n);if(o.type==="lazy")return ga(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ga(o.innerType,n);if(o.type==="intersection")return ga(o.left,n)||ga(o.right,n);if(o.type==="record"||o.type==="map")return ga(o.keyType,n)||ga(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ga(o.in,n)||ga(o.out,n);if(o.type==="object"){for(let a in o.shape)if(ga(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(ga(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(ga(a,n))return!0;return!!(o.rest&&ga(o.rest,n))}return!1}var m_=(e,t={})=>n=>{let o=zA({...n,processors:t});return Te(e,o),YA(o,e),KA(o,e)},sd=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},i=zA({...a??{},target:r,io:t,processors:n});return Te(e,i),YA(i,e),KA(i,e)};var $te={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f_=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:i,format:A,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),A&&(a.format=$te[A]??A,a.format===""&&delete a.format,A==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},b_=(e,t,n,o)=>{let a=n,{minimum:r,maximum:i,format:A,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof A=="string"&&A.includes("int")?a.type="integer":a.type="number";let l=typeof d=="number"&&d>=(r??Number.NEGATIVE_INFINITY),g=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";l?p?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d:typeof r=="number"&&(a.minimum=r),g?p?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},h_=(e,t,n,o)=>{n.type="boolean"},B_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},y_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},C_=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},w_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},E_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},k_=(e,t,n,o)=>{n.not={}},Q_=(e,t,n,o)=>{},I_=(e,t,n,o)=>{},__=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},v_=(e,t,n,o)=>{let a=e._zod.def,r=sp(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},x_=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){let i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},D_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},F_=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},S_=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:A,mime:s}=e._zod.bag;i!==void 0&&(r.minLength=i),A!==void 0&&(r.maxLength=A),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},L_=(e,t,n,o)=>{n.type="boolean"},R_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},N_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},M_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},j_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},P_=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:i,maximum:A}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof A=="number"&&(a.maxItems=A),a.type="array",a.items=Te(r.element,t,{...o,path:[...o.path,"items"]})},G_=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let i=r.shape;for(let c in i)a.properties[c]=Te(i[c],t,{...o,path:[...o.path,"properties",c]});let A=new Set(Object.keys(i)),s=new Set([...A].filter(c=>{let d=r.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=Te(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Sh=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,i=a.options.map((A,s)=>Te(A,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},H_=(e,t,n,o)=>{let a=e._zod.def,r=Te(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=Te(a.right,t,{...o,path:[...o.path,"allOf",1]}),A=c=>"allOf"in c&&Object.keys(c).length===1,s=[...A(r)?r.allOf:[r],...A(i)?i.allOf:[i]];n.allOf=s},T_=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",A=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((g,p)=>Te(g,t,{...o,path:[...o.path,i,p]})),c=r.rest?Te(r.rest,t,{...o,path:[...o.path,A,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:d,maximum:l}=e._zod.bag;typeof d=="number"&&(a.minItems=d),typeof l=="number"&&(a.maxItems=l)},U_=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let i=r.keyType,s=i._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let d=Te(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Te(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=Te(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=i._zod.values;if(c){let d=[...c].filter(l=>typeof l=="string"||typeof l=="number");d.length>0&&(a.required=d)}},O_=(e,t,n,o)=>{let a=e._zod.def,r=Te(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},q_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},z_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Y_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},K_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},J_=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;Te(i,t,o);let A=t.seen.get(e);A.ref=i},W_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Z_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Lh=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},V_=(e,t,n,o)=>{let a=e._zod.innerType;Te(a,t,o);let r=t.seen.get(e);r.ref=a},Fh={string:f_,number:b_,boolean:h_,bigint:B_,symbol:y_,null:C_,undefined:w_,void:E_,never:k_,any:Q_,unknown:I_,date:__,enum:v_,literal:x_,nan:D_,template_literal:F_,file:S_,success:L_,custom:R_,function:N_,transform:$_,map:M_,set:j_,array:P_,object:G_,union:Sh,intersection:H_,tuple:T_,record:U_,nullable:O_,nonoptional:q_,default:z_,prefault:Y_,catch:K_,pipe:J_,readonly:W_,promise:Z_,optional:Lh,lazy:V_};function Rh(e,t){if("_idmap"in e){let o=e,a=zA({...t,processors:Fh}),r={};for(let s of o._idmap.entries()){let[c,d]=s;Te(d,a)}let i={},A={registry:o,uri:t?.uri,defs:r};a.external=A;for(let s of o._idmap.entries()){let[c,d]=s;YA(a,d),i[c]=KA(a,d)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}let n=zA({...t,processors:Fh});return Te(e,n),YA(n,e),KA(n,e)}var Nh=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=zA({processors:Fh,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Te(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),YA(this.ctx,t);let o=KA(this.ctx,t),{"~standard":a,...r}=o;return r}};var fN={};var Ip={};S(Ip,{ZodAny:()=>wv,ZodArray:()=>Iv,ZodBase64:()=>nB,ZodBase64URL:()=>aB,ZodBigInt:()=>fd,ZodBigIntFormat:()=>iB,ZodBoolean:()=>md,ZodCIDRv4:()=>eB,ZodCIDRv6:()=>tB,ZodCUID:()=>Yh,ZodCUID2:()=>Kh,ZodCatch:()=>Kv,ZodCodec:()=>jp,ZodCustom:()=>Pp,ZodCustomStringFormat:()=>pd,ZodDate:()=>Lp,ZodDefault:()=>Tv,ZodDiscriminatedUnion:()=>vv,ZodE164:()=>oB,ZodEmail:()=>Oh,ZodEmoji:()=>qh,ZodEnum:()=>dd,ZodExactOptional:()=>Pv,ZodFile:()=>Mv,ZodFunction:()=>ox,ZodGUID:()=>vp,ZodIPv4:()=>Vh,ZodIPv6:()=>Xh,ZodIntersection:()=>xv,ZodJWT:()=>rB,ZodKSUID:()=>Zh,ZodLazy:()=>tx,ZodLiteral:()=>$v,ZodMAC:()=>mv,ZodMap:()=>Rv,ZodNaN:()=>Wv,ZodNanoID:()=>zh,ZodNever:()=>kv,ZodNonOptional:()=>lB,ZodNull:()=>yv,ZodNullable:()=>Hv,ZodNumber:()=>gd,ZodNumberFormat:()=>Ks,ZodObject:()=>Np,ZodOptional:()=>dB,ZodPipe:()=>Mp,ZodPrefault:()=>Ov,ZodPreprocess:()=>Zv,ZodPromise:()=>ax,ZodReadonly:()=>Vv,ZodRecord:()=>ud,ZodSet:()=>Nv,ZodString:()=>ld,ZodStringFormat:()=>At,ZodSuccess:()=>Yv,ZodSymbol:()=>hv,ZodTemplateLiteral:()=>ex,ZodTransform:()=>jv,ZodTuple:()=>Fv,ZodType:()=>fe,ZodULID:()=>Jh,ZodURL:()=>Sp,ZodUUID:()=>Tr,ZodUndefined:()=>Bv,ZodUnion:()=>$p,ZodUnknown:()=>Ev,ZodVoid:()=>Qv,ZodXID:()=>Wh,ZodXor:()=>_v,_ZodString:()=>Uh,_default:()=>Uv,_function:()=>Q$,any:()=>n$,array:()=>Rp,base64:()=>PN,base64url:()=>GN,bigint:()=>ZN,boolean:()=>bv,catch:()=>Jv,check:()=>I$,cidrv4:()=>MN,cidrv6:()=>jN,codec:()=>C$,cuid:()=>xN,cuid2:()=>DN,custom:()=>_$,date:()=>o$,describe:()=>v$,discriminatedUnion:()=>u$,e164:()=>HN,email:()=>BN,emoji:()=>_N,enum:()=>cB,exactOptional:()=>Gv,file:()=>b$,float32:()=>YN,float64:()=>KN,function:()=>Q$,guid:()=>yN,hash:()=>zN,hex:()=>qN,hostname:()=>ON,httpUrl:()=>IN,instanceof:()=>D$,int:()=>Hh,int32:()=>JN,int64:()=>VN,intersection:()=>Dv,invertCodec:()=>w$,ipv4:()=>RN,ipv6:()=>$N,json:()=>S$,jwt:()=>TN,keyof:()=>r$,ksuid:()=>LN,lazy:()=>nx,literal:()=>f$,looseObject:()=>s$,looseRecord:()=>l$,mac:()=>NN,map:()=>p$,meta:()=>x$,nan:()=>y$,nanoid:()=>vN,nativeEnum:()=>m$,never:()=>AB,nonoptional:()=>zv,null:()=>Cv,nullable:()=>Dp,nullish:()=>h$,number:()=>fv,object:()=>i$,optional:()=>xp,partialRecord:()=>d$,pipe:()=>Th,prefault:()=>qv,preprocess:()=>L$,promise:()=>k$,readonly:()=>Xv,record:()=>Lv,refine:()=>rx,set:()=>g$,strictObject:()=>A$,string:()=>_p,stringFormat:()=>UN,stringbool:()=>F$,success:()=>B$,superRefine:()=>ix,symbol:()=>e$,templateLiteral:()=>E$,transform:()=>uB,tuple:()=>Sv,uint32:()=>WN,uint64:()=>XN,ulid:()=>FN,undefined:()=>t$,union:()=>sB,unknown:()=>Ys,url:()=>QN,uuid:()=>CN,uuidv4:()=>wN,uuidv6:()=>EN,uuidv7:()=>kN,void:()=>a$,xid:()=>SN,xor:()=>c$});var $h={};S($h,{endsWith:()=>ed,gt:()=>Gr,gte:()=>pa,includes:()=>Vu,length:()=>zs,lowercase:()=>Wu,lt:()=>Pr,lte:()=>io,maxLength:()=>qs,maxSize:()=>qA,mime:()=>td,minLength:()=>Hi,minSize:()=>Hr,multipleOf:()=>OA,negative:()=>_h,nonnegative:()=>xh,nonpositive:()=>vh,normalize:()=>nd,overwrite:()=>er,positive:()=>Ih,property:()=>Dh,regex:()=>Ju,size:()=>Os,slugify:()=>id,startsWith:()=>Xu,toLowerCase:()=>od,toUpperCase:()=>rd,trim:()=>ad,uppercase:()=>Zu});var cd={};S(cd,{ZodISODate:()=>jh,ZodISODateTime:()=>Mh,ZodISODuration:()=>Gh,ZodISOTime:()=>Ph,date:()=>ev,datetime:()=>X_,duration:()=>nv,time:()=>tv});var Mh=k("ZodISODateTime",(e,t)=>{DQ.init(e,t),At.init(e,t)});function X_(e){return RI(Mh,e)}var jh=k("ZodISODate",(e,t)=>{FQ.init(e,t),At.init(e,t)});function ev(e){return NI(jh,e)}var Ph=k("ZodISOTime",(e,t)=>{SQ.init(e,t),At.init(e,t)});function tv(e){return $I(Ph,e)}var Gh=k("ZodISODuration",(e,t)=>{LQ.init(e,t),At.init(e,t)});function nv(e){return MI(Gh,e)}var bN=(e,t)=>{pp.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>mp(e,n)},flatten:{value:n=>gp(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Gu,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Gu,2)}},isEmpty:{get(){return e.issues.length===0}}})},jte=k("ZodError",bN),Ha=k("ZodError",bN,{Parent:Error});var av=Uu(Ha),ov=Ou(Ha),rv=qu(Ha),iv=zu(Ha),Av=Rb(Ha),sv=Nb(Ha),cv=$b(Ha),uv=Mb(Ha),dv=jb(Ha),lv=Pb(Ha),pv=Gb(Ha),gv=Hb(Ha);var hN=new WeakMap;function Fp(e,t,n){let o=Object.getPrototypeOf(e),a=hN.get(o);if(a||(a=new Set,hN.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let A=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A}),A},set(A){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A})}})}}}var fe=k("ZodType",(e,t)=>(ce.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:sd(e,"input"),output:sd(e,"output")}}),e.toJSONSchema=m_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>av(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>rv(e,n,o),e.parseAsync=async(n,o)=>ov(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>iv(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Av(e,n,o),e.decode=(n,o)=>sv(e,n,o),e.encodeAsync=async(n,o)=>cv(e,n,o),e.decodeAsync=async(n,o)=>uv(e,n,o),e.safeEncode=(n,o)=>dv(e,n,o),e.safeDecode=(n,o)=>lv(e,n,o),e.safeEncodeAsync=async(n,o)=>pv(e,n,o),e.safeDecodeAsync=async(n,o)=>gv(e,n,o),Fp(e,"ZodType",{check(...n){let o=this.def;return this.clone(G.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return da(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(rx(n,o))},superRefine(n,o){return this.check(ix(n,o))},overwrite(n){return this.check(er(n))},optional(){return xp(this)},exactOptional(){return Gv(this)},nullable(){return Dp(this)},nullish(){return xp(Dp(this))},nonoptional(n){return zv(this,n)},array(){return Rp(this)},or(n){return sB([this,n])},and(n){return Dv(this,n)},transform(n){return Th(this,uB(n))},default(n){return Uv(this,n)},prefault(n){return qv(this,n)},catch(n){return Jv(this,n)},pipe(n){return Th(this,n)},readonly(){return Xv(this)},describe(n){let o=this.clone();return Pn.add(o,{description:n}),o},meta(...n){if(n.length===0)return Pn.get(this);let o=this.clone();return Pn.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Pn.get(e)?.description},configurable:!0}),e)),Uh=k("_ZodString",(e,t)=>{Us.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>f_(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Fp(e,"_ZodString",{regex(...o){return this.check(Ju(...o))},includes(...o){return this.check(Vu(...o))},startsWith(...o){return this.check(Xu(...o))},endsWith(...o){return this.check(ed(...o))},min(...o){return this.check(Hi(...o))},max(...o){return this.check(qs(...o))},length(...o){return this.check(zs(...o))},nonempty(...o){return this.check(Hi(1,...o))},lowercase(o){return this.check(Wu(o))},uppercase(o){return this.check(Zu(o))},trim(){return this.check(ad())},normalize(...o){return this.check(nd(...o))},toLowerCase(){return this.check(od())},toUpperCase(){return this.check(rd())},slugify(){return this.check(id())}})}),ld=k("ZodString",(e,t)=>{Us.init(e,t),Uh.init(e,t),e.email=n=>e.check(ih(Oh,n)),e.url=n=>e.check(Qp(Sp,n)),e.jwt=n=>e.check(Qh(rB,n)),e.emoji=n=>e.check(dh(qh,n)),e.guid=n=>e.check(kp(vp,n)),e.uuid=n=>e.check(Ah(Tr,n)),e.uuidv4=n=>e.check(sh(Tr,n)),e.uuidv6=n=>e.check(ch(Tr,n)),e.uuidv7=n=>e.check(uh(Tr,n)),e.nanoid=n=>e.check(lh(zh,n)),e.guid=n=>e.check(kp(vp,n)),e.cuid=n=>e.check(ph(Yh,n)),e.cuid2=n=>e.check(gh(Kh,n)),e.ulid=n=>e.check(mh(Jh,n)),e.base64=n=>e.check(wh(nB,n)),e.base64url=n=>e.check(Eh(aB,n)),e.xid=n=>e.check(fh(Wh,n)),e.ksuid=n=>e.check(bh(Zh,n)),e.ipv4=n=>e.check(hh(Vh,n)),e.ipv6=n=>e.check(Bh(Xh,n)),e.cidrv4=n=>e.check(yh(eB,n)),e.cidrv6=n=>e.check(Ch(tB,n)),e.e164=n=>e.check(kh(oB,n)),e.datetime=n=>e.check(X_(n)),e.date=n=>e.check(ev(n)),e.time=n=>e.check(tv(n)),e.duration=n=>e.check(nv(n))});function _p(e){return DI(ld,e)}var At=k("ZodStringFormat",(e,t)=>{it.init(e,t),Uh.init(e,t)}),Oh=k("ZodEmail",(e,t)=>{CQ.init(e,t),At.init(e,t)});function BN(e){return ih(Oh,e)}var vp=k("ZodGUID",(e,t)=>{BQ.init(e,t),At.init(e,t)});function yN(e){return kp(vp,e)}var Tr=k("ZodUUID",(e,t)=>{yQ.init(e,t),At.init(e,t)});function CN(e){return Ah(Tr,e)}function wN(e){return sh(Tr,e)}function EN(e){return ch(Tr,e)}function kN(e){return uh(Tr,e)}var Sp=k("ZodURL",(e,t)=>{wQ.init(e,t),At.init(e,t)});function QN(e){return Qp(Sp,e)}function IN(e){return Qp(Sp,{protocol:ro.httpProtocol,hostname:ro.domain,...G.normalizeParams(e)})}var qh=k("ZodEmoji",(e,t)=>{EQ.init(e,t),At.init(e,t)});function _N(e){return dh(qh,e)}var zh=k("ZodNanoID",(e,t)=>{kQ.init(e,t),At.init(e,t)});function vN(e){return lh(zh,e)}var Yh=k("ZodCUID",(e,t)=>{QQ.init(e,t),At.init(e,t)});function xN(e){return ph(Yh,e)}var Kh=k("ZodCUID2",(e,t)=>{IQ.init(e,t),At.init(e,t)});function DN(e){return gh(Kh,e)}var Jh=k("ZodULID",(e,t)=>{_Q.init(e,t),At.init(e,t)});function FN(e){return mh(Jh,e)}var Wh=k("ZodXID",(e,t)=>{vQ.init(e,t),At.init(e,t)});function SN(e){return fh(Wh,e)}var Zh=k("ZodKSUID",(e,t)=>{xQ.init(e,t),At.init(e,t)});function LN(e){return bh(Zh,e)}var Vh=k("ZodIPv4",(e,t)=>{RQ.init(e,t),At.init(e,t)});function RN(e){return hh(Vh,e)}var mv=k("ZodMAC",(e,t)=>{$Q.init(e,t),At.init(e,t)});function NN(e){return SI(mv,e)}var Xh=k("ZodIPv6",(e,t)=>{NQ.init(e,t),At.init(e,t)});function $N(e){return Bh(Xh,e)}var eB=k("ZodCIDRv4",(e,t)=>{MQ.init(e,t),At.init(e,t)});function MN(e){return yh(eB,e)}var tB=k("ZodCIDRv6",(e,t)=>{jQ.init(e,t),At.init(e,t)});function jN(e){return Ch(tB,e)}var nB=k("ZodBase64",(e,t)=>{GQ.init(e,t),At.init(e,t)});function PN(e){return wh(nB,e)}var aB=k("ZodBase64URL",(e,t)=>{HQ.init(e,t),At.init(e,t)});function GN(e){return Eh(aB,e)}var oB=k("ZodE164",(e,t)=>{TQ.init(e,t),At.init(e,t)});function HN(e){return kh(oB,e)}var rB=k("ZodJWT",(e,t)=>{UQ.init(e,t),At.init(e,t)});function TN(e){return Qh(rB,e)}var pd=k("ZodCustomStringFormat",(e,t)=>{OQ.init(e,t),At.init(e,t)});function UN(e,t,n={}){return Ad(pd,e,t,n)}function ON(e){return Ad(pd,"hostname",ro.hostname,e)}function qN(e){return Ad(pd,"hex",ro.hex,e)}function zN(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=ro[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return Ad(pd,o,a,t)}var gd=k("ZodNumber",(e,t)=>{Wb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>b_(e,o,a,r),Fp(e,"ZodNumber",{gt(o,a){return this.check(Gr(o,a))},gte(o,a){return this.check(pa(o,a))},min(o,a){return this.check(pa(o,a))},lt(o,a){return this.check(Pr(o,a))},lte(o,a){return this.check(io(o,a))},max(o,a){return this.check(io(o,a))},int(o){return this.check(Hh(o))},safe(o){return this.check(Hh(o))},positive(o){return this.check(Gr(0,o))},nonnegative(o){return this.check(pa(0,o))},negative(o){return this.check(Pr(0,o))},nonpositive(o){return this.check(io(0,o))},multipleOf(o,a){return this.check(OA(o,a))},step(o,a){return this.check(OA(o,a))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function fv(e){return jI(gd,e)}var Ks=k("ZodNumberFormat",(e,t)=>{qQ.init(e,t),gd.init(e,t)});function Hh(e){return GI(Ks,e)}function YN(e){return HI(Ks,e)}function KN(e){return TI(Ks,e)}function JN(e){return UI(Ks,e)}function WN(e){return OI(Ks,e)}var md=k("ZodBoolean",(e,t)=>{Bp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>h_(e,n,o,a)});function bv(e){return qI(md,e)}var fd=k("ZodBigInt",(e,t)=>{Zb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>B_(e,o,a,r),e.gte=(o,a)=>e.check(pa(o,a)),e.min=(o,a)=>e.check(pa(o,a)),e.gt=(o,a)=>e.check(Gr(o,a)),e.gte=(o,a)=>e.check(pa(o,a)),e.min=(o,a)=>e.check(pa(o,a)),e.lt=(o,a)=>e.check(Pr(o,a)),e.lte=(o,a)=>e.check(io(o,a)),e.max=(o,a)=>e.check(io(o,a)),e.positive=o=>e.check(Gr(BigInt(0),o)),e.negative=o=>e.check(Pr(BigInt(0),o)),e.nonpositive=o=>e.check(io(BigInt(0),o)),e.nonnegative=o=>e.check(pa(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(OA(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function ZN(e){return YI(fd,e)}var iB=k("ZodBigIntFormat",(e,t)=>{zQ.init(e,t),fd.init(e,t)});function VN(e){return JI(iB,e)}function XN(e){return WI(iB,e)}var hv=k("ZodSymbol",(e,t)=>{YQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>y_(e,n,o,a)});function e$(e){return ZI(hv,e)}var Bv=k("ZodUndefined",(e,t)=>{KQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>w_(e,n,o,a)});function t$(e){return VI(Bv,e)}var yv=k("ZodNull",(e,t)=>{JQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>C_(e,n,o,a)});function Cv(e){return XI(yv,e)}var wv=k("ZodAny",(e,t)=>{WQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Q_(e,n,o,a)});function n$(){return e_(wv)}var Ev=k("ZodUnknown",(e,t)=>{ZQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>I_(e,n,o,a)});function Ys(){return t_(Ev)}var kv=k("ZodNever",(e,t)=>{VQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>k_(e,n,o,a)});function AB(e){return n_(kv,e)}var Qv=k("ZodVoid",(e,t)=>{XQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>E_(e,n,o,a)});function a$(e){return a_(Qv,e)}var Lp=k("ZodDate",(e,t)=>{eI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>__(e,o,a,r),e.min=(o,a)=>e.check(pa(o,a)),e.max=(o,a)=>e.check(io(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function o$(e){return o_(Lp,e)}var Iv=k("ZodArray",(e,t)=>{tI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>P_(e,n,o,a),e.element=t.element,Fp(e,"ZodArray",{min(n,o){return this.check(Hi(n,o))},nonempty(n){return this.check(Hi(1,n))},max(n,o){return this.check(qs(n,o))},length(n,o){return this.check(zs(n,o))},unwrap(){return this.element}})});function Rp(e,t){return A_(Iv,e,t)}function r$(e){let t=e._zod.def.shape;return cB(Object.keys(t))}var Np=k("ZodObject",(e,t)=>{nI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>G_(e,n,o,a),G.defineLazy(e,"shape",()=>t.shape),Fp(e,"ZodObject",{keyof(){return cB(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ys()})},loose(){return this.clone({...this._zod.def,catchall:Ys()})},strict(){return this.clone({...this._zod.def,catchall:AB()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return G.extend(this,n)},safeExtend(n){return G.safeExtend(this,n)},merge(n){return G.merge(this,n)},pick(n){return G.pick(this,n)},omit(n){return G.omit(this,n)},partial(...n){return G.partial(dB,this,n[0])},required(...n){return G.required(lB,this,n[0])}})});function i$(e,t){let n={type:"object",shape:e??{},...G.normalizeParams(t)};return new Np(n)}function A$(e,t){return new Np({type:"object",shape:e,catchall:AB(),...G.normalizeParams(t)})}function s$(e,t){return new Np({type:"object",shape:e,catchall:Ys(),...G.normalizeParams(t)})}var $p=k("ZodUnion",(e,t)=>{yp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sh(e,n,o,a),e.options=t.options});function sB(e,t){return new $p({type:"union",options:e,...G.normalizeParams(t)})}var _v=k("ZodXor",(e,t)=>{$p.init(e,t),aI.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sh(e,n,o,a),e.options=t.options});function c$(e,t){return new _v({type:"union",options:e,inclusive:!1,...G.normalizeParams(t)})}var vv=k("ZodDiscriminatedUnion",(e,t)=>{$p.init(e,t),oI.init(e,t)});function u$(e,t,n){return new vv({type:"union",options:t,discriminator:e,...G.normalizeParams(n)})}var xv=k("ZodIntersection",(e,t)=>{rI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>H_(e,n,o,a)});function Dv(e,t){return new xv({type:"intersection",left:e,right:t})}var Fv=k("ZodTuple",(e,t)=>{Vb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>T_(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Sv(e,t,n){let o=t instanceof ce,a=o?n:t,r=o?t:null;return new Fv({type:"tuple",items:e,rest:r,...G.normalizeParams(a)})}var ud=k("ZodRecord",(e,t)=>{iI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>U_(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function Lv(e,t,n){return!t||!t._zod?new ud({type:"record",keyType:_p(),valueType:e,...G.normalizeParams(t)}):new ud({type:"record",keyType:e,valueType:t,...G.normalizeParams(n)})}function d$(e,t,n){let o=da(e);return o._zod.values=void 0,new ud({type:"record",keyType:o,valueType:t,...G.normalizeParams(n)})}function l$(e,t,n){return new ud({type:"record",keyType:e,valueType:t,mode:"loose",...G.normalizeParams(n)})}var Rv=k("ZodMap",(e,t)=>{AI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>M_(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(qA(...n)),e.size=(...n)=>e.check(Os(...n))});function p$(e,t,n){return new Rv({type:"map",keyType:e,valueType:t,...G.normalizeParams(n)})}var Nv=k("ZodSet",(e,t)=>{sI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>j_(e,n,o,a),e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(qA(...n)),e.size=(...n)=>e.check(Os(...n))});function g$(e,t){return new Nv({type:"set",valueType:e,...G.normalizeParams(t)})}var dd=k("ZodEnum",(e,t)=>{cI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>v_(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new dd({...t,checks:[],...G.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new dd({...t,checks:[],...G.normalizeParams(a),entries:r})}});function cB(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new dd({type:"enum",entries:n,...G.normalizeParams(t)})}function m$(e,t){return new dd({type:"enum",entries:e,...G.normalizeParams(t)})}var $v=k("ZodLiteral",(e,t)=>{uI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>x_(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function f$(e,t){return new $v({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(t)})}var Mv=k("ZodFile",(e,t)=>{dI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>S_(e,n,o,a),e.min=(n,o)=>e.check(Hr(n,o)),e.max=(n,o)=>e.check(qA(n,o)),e.mime=(n,o)=>e.check(td(Array.isArray(n)?n:[n],o))});function b$(e){return s_(Mv,e)}var jv=k("ZodTransform",(e,t)=>{lI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$_(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new PA(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(G.issue(r,n.value,t));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(G.issue(i))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function uB(e){return new jv({type:"transform",transform:e})}var dB=k("ZodOptional",(e,t)=>{Xb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function xp(e){return new dB({type:"optional",innerType:e})}var Pv=k("ZodExactOptional",(e,t)=>{pI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Gv(e){return new Pv({type:"optional",innerType:e})}var Hv=k("ZodNullable",(e,t)=>{gI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>O_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Dp(e){return new Hv({type:"nullable",innerType:e})}function h$(e){return xp(Dp(e))}var Tv=k("ZodDefault",(e,t)=>{mI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>z_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Uv(e,t){return new Tv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var Ov=k("ZodPrefault",(e,t)=>{fI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Y_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function qv(e,t){return new Ov({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var lB=k("ZodNonOptional",(e,t)=>{bI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>q_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function zv(e,t){return new lB({type:"nonoptional",innerType:e,...G.normalizeParams(t)})}var Yv=k("ZodSuccess",(e,t)=>{hI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>L_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function B$(e){return new Yv({type:"success",innerType:e})}var Kv=k("ZodCatch",(e,t)=>{BI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>K_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jv(e,t){return new Kv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Wv=k("ZodNaN",(e,t)=>{yI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>D_(e,n,o,a)});function y$(e){return i_(Wv,e)}var Mp=k("ZodPipe",(e,t)=>{eh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>J_(e,n,o,a),e.in=t.in,e.out=t.out});function Th(e,t){return new Mp({type:"pipe",in:e,out:t})}var jp=k("ZodCodec",(e,t)=>{Mp.init(e,t),Cp.init(e,t)});function C$(e,t,n){return new jp({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function w$(e){let t=e._zod.def;return new jp({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Zv=k("ZodPreprocess",(e,t)=>{Mp.init(e,t),CI.init(e,t)}),Vv=k("ZodReadonly",(e,t)=>{wI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>W_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Xv(e){return new Vv({type:"readonly",innerType:e})}var ex=k("ZodTemplateLiteral",(e,t)=>{EI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>F_(e,n,o,a)});function E$(e,t){return new ex({type:"template_literal",parts:e,...G.normalizeParams(t)})}var tx=k("ZodLazy",(e,t)=>{II.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>V_(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function nx(e){return new tx({type:"lazy",getter:e})}var ax=k("ZodPromise",(e,t)=>{QI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Z_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function k$(e){return new ax({type:"promise",innerType:e})}var ox=k("ZodFunction",(e,t)=>{kI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>N_(e,n,o,a)});function Q$(e){return new ox({type:"function",input:Array.isArray(e?.input)?Sv(e?.input):e?.input??Rp(Ys()),output:e?.output??Ys()})}var Pp=k("ZodCustom",(e,t)=>{_I.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>R_(e,n,o,a)});function I$(e){let t=new lt({check:"custom"});return t._zod.check=e,t}function _$(e,t){return c_(Pp,e??(()=>!0),t)}function rx(e,t={}){return u_(Pp,e,t)}function ix(e,t){return d_(e,t)}var v$=l_,x$=p_;function D$(e,t={}){let n=new Pp({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...G.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var F$=(...e)=>g_({Codec:jp,Boolean:md,String:ld},...e);function S$(e){let t=nx(()=>sB([_p(e),fv(),bv(),Cv(),Rp(t),Lv(_p(),t)]));return t}function L$(e,t){return new Zv({type:"pipe",in:uB(e),out:t})}var Gte={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Hte(e){Ht({customError:e})}function Tte(){return Ht().customError}var Ax;Ax||(Ax={});var W={...Ip,...$h,iso:cd},Ute=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Ote(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function qte(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function R$(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return W.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return W.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=qte(a,t),i=Xn(r,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return W.null();if(a.length===0)return W.never();if(a.length===1)return W.literal(a[0]);if(a.every(i=>typeof i=="string"))return W.enum(a);let r=a.map(i=>W.literal(i));return r.length<2?r[0]:W.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return W.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let i={...e,type:r};return R$(i,t)});return a.length===0?W.never():a.length===1?a[0]:W.union(a)}if(!n)return W.any();let o;switch(n){case"string":{let a=W.string();if(e.format){let r=e.format;r==="email"?a=a.check(W.email()):r==="uri"||r==="uri-reference"?a=a.check(W.url()):r==="uuid"||r==="guid"?a=a.check(W.uuid()):r==="date-time"?a=a.check(W.iso.datetime()):r==="date"?a=a.check(W.iso.date()):r==="time"?a=a.check(W.iso.time()):r==="duration"?a=a.check(W.iso.duration()):r==="ipv4"?a=a.check(W.ipv4()):r==="ipv6"?a=a.check(W.ipv6()):r==="mac"?a=a.check(W.mac()):r==="cidr"?a=a.check(W.cidrv4()):r==="cidr-v6"?a=a.check(W.cidrv6()):r==="base64"?a=a.check(W.base64()):r==="base64url"?a=a.check(W.base64url()):r==="e164"?a=a.check(W.e164()):r==="jwt"?a=a.check(W.jwt()):r==="emoji"?a=a.check(W.emoji()):r==="nanoid"?a=a.check(W.nanoid()):r==="cuid"?a=a.check(W.cuid()):r==="cuid2"?a=a.check(W.cuid2()):r==="ulid"?a=a.check(W.ulid()):r==="xid"?a=a.check(W.xid()):r==="ksuid"&&(a=a.check(W.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?W.number().int():W.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=W.boolean();break}case"null":{o=W.null();break}case"object":{let a={},r=e.properties||{},i=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let d=Xn(c,t);a[s]=i.has(s)?d:d.optional()}if(e.propertyNames){let s=Xn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Xn(e.additionalProperties,t):W.any();if(Object.keys(a).length===0){o=W.record(s,c);break}let d=W.object(a).passthrough(),l=W.looseRecord(s,c);o=W.intersection(d,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let g of c){let p=Xn(s[g],t),m=W.string().regex(new RegExp(g));d.push(W.looseRecord(m,p))}let l=[];if(Object.keys(a).length>0&&l.push(W.object(a).passthrough()),l.push(...d),l.length===0)o=W.object({}).passthrough();else if(l.length===1)o=l[0];else{let g=W.intersection(l[0],l[1]);for(let p=2;p<l.length;p++)g=W.intersection(g,l[p]);o=g}break}let A=W.object(a);e.additionalProperties===!1?o=A.strict():typeof e.additionalProperties=="object"?o=A.catchall(Xn(e.additionalProperties,t)):o=A.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let i=a.map(s=>Xn(s,t)),A=r&&typeof r=="object"&&!Array.isArray(r)?Xn(r,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(Array.isArray(r)){let i=r.map(s=>Xn(s,t)),A=e.additionalItems&&typeof e.additionalItems=="object"?Xn(e.additionalItems,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(r!==void 0){let i=Xn(r,t),A=W.array(i);typeof e.minItems=="number"&&(A=A.min(e.minItems)),typeof e.maxItems=="number"&&(A=A.max(e.maxItems)),o=A}else o=W.array(W.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function Xn(e,t){if(typeof e=="boolean")return e?W.any():W.never();let n=R$(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let A=e.anyOf.map(c=>Xn(c,t)),s=W.union(A);n=o?W.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let A=e.oneOf.map(c=>Xn(c,t)),s=W.xor(A);n=o?W.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:W.any();else{let A=o?n:Xn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)A=W.intersection(A,Xn(e.allOf[c],t));n=A}e.nullable===!0&&t.version==="openapi-3.0"&&(n=W.nullable(n)),e.readOnly===!0&&(n=W.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let A of r)A in e&&(a[A]=e[A]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let A of i)A in e&&(a[A]=e[A]);for(let A of Object.keys(e))Ute.has(A)||(a[A]=e[A]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function N$(e,t){if(typeof e=="boolean")return e?W.any():W.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Ote(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Pn};return Xn(n,r)}var sx={};S(sx,{bigint:()=>Jte,boolean:()=>Kte,date:()=>Wte,number:()=>Yte,string:()=>zte});function zte(e){return FI(ld,e)}function Yte(e){return PI(gd,e)}function Kte(e){return zI(md,e)}function Jte(e){return KI(fd,e)}function Wte(e){return r_(Lp,e)}Ht(th());var Zte=u.object({input:u.number().finite().nonnegative().optional(),output:u.number().finite().nonnegative().optional(),cacheRead:u.number().finite().nonnegative().optional(),cacheWrite:u.number().finite().nonnegative().optional(),total:u.number().finite().nonnegative().optional()}).strict(),$$=u.object({inputTokens:u.number().int().nonnegative().optional(),outputTokens:u.number().int().nonnegative().optional(),cachedInputTokens:u.number().int().nonnegative().optional(),cacheCreationTokens:u.number().int().nonnegative().optional(),reasoningTokens:u.number().int().nonnegative().optional(),totalTokens:u.number().int().nonnegative().optional(),cost:Zte.optional()}).strict();var I=Symbol.for("drizzle:entityKind");function cn(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,I))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(I in n&&n[I]===t[I])return!0;n=Object.getPrototypeOf(n)}return!1}var Js=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[I]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var pB=class{static[I]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var Ui=Symbol.for("drizzle:Name");var gB=class{static[I]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new cx(t,this)}},cx=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[I]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(A=>A.name),r=o.map(A=>A.name),i=[this.table[Ui],...a,o[0].table[Ui],...r];return t??`${i.join("_")}_fk`}};function mB(e,...t){return e(...t)}function lx(e,t){return`${e[Ui]}_${t.join("_")}_unique`}var ux=class{constructor(t,n){this.name=n,this.columns=t}static[I]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new dx(t,this.columns,this.nullsNotDistinctConfig,this.name)}},M$=class{static[I]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new ux(t,this.name)}},dx=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??lx(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[I]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function j$(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function P$(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=j$(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=P$(e,o+1);n.push(s),o=c;continue}let[i,A]=j$(e,o,!1);n.push(i),o=A}return[n,o]}function G$(e){let[t]=P$(e,1);return t}function px(e){return`{${e.map(t=>Array.isArray(t)?px(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var V=class extends pB{foreignKeyConfigs=[];static[I]="PgColumnBuilder";array(t){return new mx(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>mB((r,i)=>{let A=new gB(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return i.onUpdate&&A.onUpdate(i.onUpdate),i.onDelete&&A.onDelete(i.onDelete),A.build(n)},o,a))}buildExtraConfigColumn(t){return new gx(t,this.config)}},q=class extends Js{constructor(t,n){n.uniqueName||(n.uniqueName=lx(t,[n.name])),super(t,n),this.table=t}static[I]="PgColumn"},gx=class extends q{static[I]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},bd=class{static[I]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},mx=class extends V{static[I]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new fx(t,this.config,n)}},fx=class e extends q{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[I]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=G$(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:cn(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:px(o)}};var H$=class extends V{static[I]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new bx(t,this.config)}},bx=class extends q{static[I]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},T$=Symbol.for("drizzle:isPgEnum");function O$(e){return!!e&&typeof e=="function"&&T$ in e&&e[T$]===!0}var U$=class extends V{static[I]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new hx(t,this.config)}},hx=class extends q{static[I]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var hd=class{static[I]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},q$=class extends hd{static[I]="WithSubquery"};var z$="0.45.2";var Bx,yx,Y$={startActiveSpan(e,t){return Bx?(yx||(yx=Bx.trace.getTracer("drizzle-orm",z$)),mB((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),Bx,yx)):t()}};var Bd=Symbol.for("drizzle:ViewBaseConfig");var Cx=Symbol.for("drizzle:Schema"),K$=Symbol.for("drizzle:Columns"),J$=Symbol.for("drizzle:ExtraConfigColumns"),wx=Symbol.for("drizzle:OriginalName"),Ex=Symbol.for("drizzle:BaseName"),Gp=Symbol.for("drizzle:IsAlias"),W$=Symbol.for("drizzle:ExtraConfigBuilder"),Vte=Symbol.for("drizzle:IsDrizzleTable"),Kt=class{static[I]="Table";static Symbol={Name:Ui,Schema:Cx,OriginalName:wx,Columns:K$,ExtraConfigColumns:J$,BaseName:Ex,IsAlias:Gp,ExtraConfigBuilder:W$};[Ui];[wx];[Cx];[K$];[J$];[Ex];[Gp]=!1;[Vte]=!0;[W$]=void 0;constructor(t,n,o){this[Ui]=this[wx]=t,this[Cx]=n,this[Ex]=o}};var Z$=class{static[I]="FakePrimitiveParam"};function Xte(e){return e!=null&&typeof e.getSQL=="function"}function ene(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Ao=class{static[I]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new Jt([this])}},Jt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(cn(n,Kt)){let o=n[Kt.Symbol.Schema];this.usedTables.push(o===void 0?n[Kt.Symbol.Name]:o+"."+n[Kt.Symbol.Name])}}static[I]="SQL";decoder=V$;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return Y$.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:i,prepareTyping:A,inlineParams:s,paramStartIndex:c}=o;return ene(t.map(d=>{if(cn(d,Ao))return{sql:d.value.join(""),params:[]};if(cn(d,Hp))return{sql:r(d.value),params:[]};if(d===void 0)return{sql:"",params:[]};if(Array.isArray(d)){let l=[new Ao("(")];for(let[g,p]of d.entries())l.push(p),g<d.length-1&&l.push(new Ao(", "));return l.push(new Ao(")")),this.buildQueryFromSourceParams(l,o)}if(cn(d,e))return this.buildQueryFromSourceParams(d.queryChunks,{...o,inlineParams:s||d.shouldInlineParams});if(cn(d,Kt)){let l=d[Kt.Symbol.Schema],g=d[Kt.Symbol.Name];return{sql:l===void 0||d[Gp]?r(g):r(l)+"."+r(g),params:[]}}if(cn(d,Js)){let l=a.getColumnCasing(d);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let g=d.table[Kt.Symbol.Schema];return{sql:d.table[Gp]||g===void 0?r(d.table[Kt.Symbol.Name])+"."+r(l):r(g)+"."+r(d.table[Kt.Symbol.Name])+"."+r(l),params:[]}}if(cn(d,kx)){let l=d[Bd].schema,g=d[Bd].name;return{sql:l===void 0||d[Bd].isAlias?r(g):r(l)+"."+r(g),params:[]}}if(cn(d,fB)){if(cn(d.value,Tp))return{sql:i(c.value++,d),params:[d],typings:["none"]};let l=d.value===null?null:d.encoder.mapToDriverValue(d.value);if(cn(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let g=["none"];return A&&(g=[A(d.encoder)]),{sql:i(c.value++,l),params:[l],typings:g}}return cn(d,Tp)?{sql:i(c.value++,d),params:[d],typings:["none"]}:cn(d,e.Aliased)&&d.fieldAlias!==void 0?{sql:r(d.fieldAlias),params:[]}:cn(d,hd)?d._.isWith?{sql:r(d._.alias),params:[]}:this.buildQueryFromSourceParams([new Ao("("),d._.sql,new Ao(") "),new Hp(d._.alias)],o):O$(d)?d.schema?{sql:r(d.schema)+"."+r(d.enumName),params:[]}:{sql:r(d.enumName),params:[]}:Xte(d)?d.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([d.getSQL()],o):this.buildQueryFromSourceParams([new Ao("("),d.getSQL(),new Ao(")")],o):s?{sql:this.mapInlineParam(d,o),params:[]}:{sql:i(c.value++,d),params:[d],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},Hp=class{constructor(t){this.value=t}static[I]="Name";brand;getSQL(){return new Jt([this])}};var V$={mapFromDriverValue:e=>e},X$={mapToDriverValue:e=>e},E0e={...V$,...X$},fB=class{constructor(t,n=X$){this.value=t,this.encoder=n}static[I]="Param";brand;getSQL(){return new Jt([this])}};function yd(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Ao(e[0]));for(let[o,a]of t.entries())n.push(a,new Ao(e[o+1]));return new Jt(n)}(e=>{function t(){return new Jt([])}e.empty=t;function n(s){return new Jt(s)}e.fromList=n;function o(s){return new Jt([new Ao(s)])}e.raw=o;function a(s,c){let d=[];for(let[l,g]of s.entries())l>0&&c!==void 0&&d.push(c),d.push(g);return new Jt(d)}e.join=a;function r(s){return new Hp(s)}e.identifier=r;function i(s){return new Tp(s)}e.placeholder=i;function A(s,c){return new fB(s,c)}e.param=A})(yd||(yd={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[I]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Jt||(Jt={}));var Tp=class{constructor(t){this.name=t}static[I]="Placeholder";getSQL(){return new Jt([this])}};var tne=Symbol.for("drizzle:IsDrizzleView"),kx=class{static[I]="View";[Bd];[tne]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[Bd]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new Jt([this])}};Js.prototype.getSQL=function(){return new Jt([this])};Kt.prototype.getSQL=function(){return new Jt([this])};hd.prototype.getSQL=function(){return new Jt([this])};function Fe(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var Q0e=typeof TextDecoder>"u"?null:new TextDecoder;var Oi=class extends V{static[I]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var Qx=class extends Oi{static[I]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new Ix(t,this.config)}},Ix=class extends q{static[I]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},_x=class extends Oi{static[I]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new vx(t,this.config)}},vx=class extends q{static[I]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function eM(e,t){let{name:n,config:o}=Fe(e,t);return o.mode==="number"?new Qx(n):new _x(n)}var xx=class extends V{static[I]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new Dx(t,this.config)}},Dx=class extends q{static[I]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},Fx=class extends V{static[I]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new Sx(t,this.config)}},Sx=class extends q{static[I]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function tM(e,t){let{name:n,config:o}=Fe(e,t);return o.mode==="number"?new xx(n):new Fx(n)}var Lx=class extends V{static[I]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new Rx(t,this.config)}},Rx=class extends q{static[I]="PgBoolean";getSQLType(){return"boolean"}};function nM(e){return new Lx(e??"")}var Nx=class extends V{static[I]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new $x(t,this.config)}},$x=class extends q{static[I]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function aM(e,t={}){let{name:n,config:o}=Fe(e,t);return new Nx(n,o)}var Mx=class extends V{static[I]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new jx(t,this.config)}},jx=class extends q{static[I]="PgCidr";getSQLType(){return"cidr"}};function oM(e){return new Mx(e??"")}var Px=class extends V{static[I]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new Gx(t,this.config)}},Gx=class extends q{static[I]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function rM(e){return(t,n)=>{let{name:o,config:a}=Fe(t,n);return new Px(o,a,e)}}var Ur=class extends V{static[I]="PgDateColumnBaseBuilder";defaultNow(){return this.default(yd`now()`)}};var Hx=class extends Ur{static[I]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new Tx(t,this.config)}},Tx=class extends q{static[I]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},Ux=class extends Ur{static[I]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new Ox(t,this.config)}},Ox=class extends q{static[I]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function iM(e,t){let{name:n,config:o}=Fe(e,t);return o?.mode==="date"?new Hx(n):new Ux(n)}var qx=class extends V{static[I]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new zx(t,this.config)}},zx=class extends q{static[I]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function AM(e){return new qx(e??"")}var Yx=class extends V{static[I]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new Kx(t,this.config)}},Kx=class extends q{static[I]="PgInet";getSQLType(){return"inet"}};function sM(e){return new Yx(e??"")}var Jx=class extends Oi{static[I]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new Wx(t,this.config)}},Wx=class extends q{static[I]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function cM(e){return new Jx(e??"")}var Zx=class extends V{static[I]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new Vx(t,this.config)}},Vx=class extends q{static[I]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function uM(e,t={}){let{name:n,config:o}=Fe(e,t);return new Zx(n,o)}var Xx=class extends V{static[I]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new eD(t,this.config)}},eD=class extends q{static[I]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function dM(e){return new Xx(e??"")}var tD=class extends V{static[I]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new nD(t,this.config)}},nD=class extends q{static[I]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function bB(e){return new tD(e??"")}var aD=class extends V{static[I]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new oD(t,this.config)}},oD=class extends q{static[I]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},rD=class extends V{static[I]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new iD(t,this.config)}},iD=class extends q{static[I]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function lM(e,t){let{name:n,config:o}=Fe(e,t);return!o?.mode||o.mode==="tuple"?new aD(n):new rD(n)}var AD=class extends V{static[I]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new sD(t,this.config)}},sD=class extends q{static[I]="PgMacaddr";getSQLType(){return"macaddr"}};function pM(e){return new AD(e??"")}var cD=class extends V{static[I]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new uD(t,this.config)}},uD=class extends q{static[I]="PgMacaddr8";getSQLType(){return"macaddr8"}};function gM(e){return new cD(e??"")}var dD=class extends V{static[I]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new lD(t,this.config)}},lD=class extends q{static[I]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},pD=class extends V{static[I]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new gD(t,this.config)}},gD=class extends q{static[I]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},mD=class extends V{static[I]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new fD(t,this.config)}},fD=class extends q{static[I]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function mM(e,t){let{name:n,config:o}=Fe(e,t),a=o?.mode;return a==="number"?new pD(n,o?.precision,o?.scale):a==="bigint"?new mD(n,o?.precision,o?.scale):new dD(n,o?.precision,o?.scale)}var bD=class extends V{static[I]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new hD(t,this.config)}},hD=class extends q{static[I]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},BD=class extends V{static[I]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new yD(t,this.config)}},yD=class extends q{static[I]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function fM(e,t){let{name:n,config:o}=Fe(e,t);return!o?.mode||o.mode==="tuple"?new bD(n):new BD(n)}function nne(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function bM(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function CD(e){let t=nne(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let i;if(r&536870912&&(i=a.getUint32(n,o===1),n+=4),(r&65535)===1){let A=bM(t,n);n+=8;let s=bM(t,n);return n+=8,[A,s]}throw new Error("Unsupported geometry type")}var wD=class extends V{static[I]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new ED(t,this.config)}},ED=class extends q{static[I]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return CD(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},kD=class extends V{static[I]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new QD(t,this.config)}},QD=class extends q{static[I]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=CD(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function hM(e,t){let{name:n,config:o}=Fe(e,t);return!o?.mode||o.mode==="tuple"?new wD(n):new kD(n)}var ID=class extends V{static[I]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new _D(t,this.config)}},_D=class extends q{static[I]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function BM(e){return new ID(e??"")}var vD=class extends V{static[I]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new xD(t,this.config)}},xD=class extends q{static[I]="PgSerial";getSQLType(){return"serial"}};function yM(e){return new vD(e??"")}var DD=class extends Oi{static[I]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new FD(t,this.config)}},FD=class extends q{static[I]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function CM(e){return new DD(e??"")}var SD=class extends V{static[I]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new LD(t,this.config)}},LD=class extends q{static[I]="PgSmallSerial";getSQLType(){return"smallserial"}};function wM(e){return new SD(e??"")}var RD=class extends V{static[I]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new ND(t,this.config)}},ND=class extends q{static[I]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function tr(e,t={}){let{name:n,config:o}=Fe(e,t);return new RD(n,o)}var $D=class extends Ur{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[I]="PgTimeBuilder";build(t){return new MD(t,this.config)}},MD=class extends q{static[I]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function EM(e,t={}){let{name:n,config:o}=Fe(e,t);return new $D(n,o.withTimezone??!1,o.precision)}var jD=class extends Ur{static[I]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new PD(t,this.config)}},PD=class extends q{static[I]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},GD=class extends Ur{static[I]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new HD(t,this.config)}},HD=class extends q{static[I]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function hB(e,t={}){let{name:n,config:o}=Fe(e,t);return o?.mode==="string"?new GD(n,o.withTimezone??!1,o.precision):new jD(n,o?.withTimezone??!1,o?.precision)}var TD=class extends V{static[I]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(yd`gen_random_uuid()`)}build(t){return new UD(t,this.config)}},UD=class extends q{static[I]="PgUUID";getSQLType(){return"uuid"}};function kM(e){return new TD(e??"")}var OD=class extends V{static[I]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new qD(t,this.config)}},qD=class extends q{static[I]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function QM(e,t={}){let{name:n,config:o}=Fe(e,t);return new OD(n,o)}var zD=class extends V{static[I]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new YD(t,this.config)}},YD=class extends q{static[I]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function IM(e,t){let{name:n,config:o}=Fe(e,t);return new zD(n,o)}var KD=class extends V{static[I]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new JD(t,this.config)}},JD=class extends q{static[I]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function _M(e,t){let{name:n,config:o}=Fe(e,t);return new KD(n,o)}var WD=class extends V{static[I]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new ZD(t,this.config)}},ZD=class extends q{static[I]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function vM(e,t){let{name:n,config:o}=Fe(e,t);return new WD(n,o)}var VD=class extends V{static[I]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new XD(t,this.config)}},XD=class extends q{static[I]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function xM(e,t){let{name:n,config:o}=Fe(e,t);return new VD(n,o)}function DM(){return{bigint:eM,bigserial:tM,boolean:nM,char:aM,cidr:oM,customType:rM,date:iM,doublePrecision:AM,inet:sM,integer:cM,interval:uM,json:dM,jsonb:bB,line:lM,macaddr:pM,macaddr8:gM,numeric:mM,point:fM,geometry:hM,real:BM,serial:yM,smallint:CM,smallserial:wM,text:tr,time:EM,timestamp:hB,uuid:kM,varchar:QM,bit:IM,halfvec:_M,sparsevec:vM,vector:xM}}var e1=Symbol.for("drizzle:PgInlineForeignKeys"),FM=Symbol.for("drizzle:EnableRLS"),Up=class extends Kt{static[I]="PgTable";static Symbol=Object.assign({},Kt.Symbol,{InlineForeignKeys:e1,EnableRLS:FM});[e1]=[];[FM]=!1;[Kt.Symbol.ExtraConfigBuilder]=void 0;[Kt.Symbol.ExtraConfigColumns]={}};function ane(e,t,n,o,a=e){let r=new Up(e,o,a),i=typeof t=="function"?t(DM()):t,A=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.build(r);return r[e1].push(...g.buildForeignKeys(p,r)),[d,p]})),s=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.buildExtraConfigColumn(r);return[d,p]})),c=Object.assign(r,A);return c[Kt.Symbol.Columns]=A,c[Kt.Symbol.ExtraConfigColumns]=s,n&&(c[Up.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[Up.Symbol.EnableRLS]=!0,c)})}var SM=(e,t,n)=>ane(e,t,n,void 0);var BB=class{constructor(t,n){this.unique=t,this.name=n}static[I]="PgIndexBuilderOn";on(...t){return new Op(t.map(n=>{if(cn(n,Jt))return n;n=n;let o=new bd(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new Op(t.map(n=>{if(cn(n,Jt))return n;n=n;let o=new bd(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new Op(n.map(o=>{if(cn(o,Jt))return o;o=o;let a=new bd(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},Op=class{static[I]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new t1(this.config,t)}},t1=class{static[I]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function LM(e){return new BB(!1,e)}function RM(e){return new BB(!0,e)}var NM=e=>hB(e,{withTimezone:!0}),$M=u.enum(["channel","dm","group","local_conversation","thread","web_session"]),P_e=SM("junior_destinations",{id:tr("id").primaryKey(),provider:tr("provider").notNull(),providerTenantId:tr("provider_tenant_id").notNull().default(""),providerDestinationId:tr("provider_destination_id").notNull(),kind:tr("kind").$type().notNull(),parentDestinationId:tr("parent_destination_id"),displayName:tr("display_name"),visibility:tr("visibility").$type().notNull().default("unknown"),metadata:bB("metadata_json"),createdAt:NM("created_at").notNull(),updatedAt:NM("updated_at").notNull()},e=>[RM("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),LM("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function one(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var rne=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(one,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),PM=u.discriminatedUnion("kind",[rne]),U_e=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),ine=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),Ane=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),GM=u.object({details:u.array(Ane).max(100).optional(),icon:ine.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var HM=u.string().regex(/^T[A-Z0-9]+$/),sne=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),TM=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),yB=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),ie=u.string().refine(e=>e.trim().length>0),qi=ie.refine(e=>e===e.trim()),q_e=u.enum(["slack","local"]),UM=u.enum(["public","private"]),cne=u.enum(["public","private"]),OM=u.object({platform:u.literal("slack"),teamId:HM,channelId:sne}).strict(),qM=OM,une=u.object({platform:u.literal("local"),conversationId:TM}).strict(),dne=u.discriminatedUnion("platform",[qM,une]),lne=OM.extend({visibility:UM,messageTs:ie.optional(),threadTs:ie.optional()}).strict(),pne=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:TM}).strict(),gne=u.object({platform:u.literal("web"),visibility:UM,conversationId:qi}).strict(),zM=u.discriminatedUnion("platform",[lne,pne,gne]),mne=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:yB,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:yB,allowedWhen:u.literal("scheduled-task"),taskId:qi}).strict()]),a1={email:ie.optional(),fullName:ie.optional(),userId:yB,userName:ie.optional()},fne=u.object({...a1,platform:u.literal("slack"),teamId:HM}).strict(),bne=u.object({...a1,platform:u.literal("local")}).strict(),hne=u.object({...a1,platform:u.literal("web")}).strict(),Bne=u.object({platform:u.literal("system"),name:yB}).strict(),n1=u.discriminatedUnion("platform",[fne,bne,hne,Bne]),yne=u.object({displayName:ie.optional(),handle:ie.optional(),id:qi,provider:qi,providerSubjectId:qi,providerTenantId:qi.optional()}).strict(),z_e=u.object({displayName:ie.optional(),email:ie.max(320),id:qi,identities:u.array(yne).max(100)}).strict(),Cne=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),wne=u.object({label:qi.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:qi.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),Y_e=u.object({idempotencyKey:ie.pipe(u.string().max(512)),credentialSubject:mne.optional(),destination:qM,destinationVisibility:cne,input:ie.pipe(u.string().max(32e3)),metadata:Cne.optional(),replyAttribution:wne.optional(),source:zM}).strict();var Ene=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),J_e=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),W_e=u.object({kind:Ene,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var kne=4e3,Qne=8e3,MM=32,jM=4e3,Ine=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>MM&&t.addIssue({code:"custom",message:`Resource event data may include at most ${MM} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>jM&&t.addIssue({code:"custom",message:`Resource event data may be at most ${jM} JSON bytes.`})}),qp=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),YM=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),_ne=u.object({type:YM,supportedEvents:u.array(qp).min(1),suggestedEvents:u.array(qp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),V_e=u.object({resourceTypes:u.array(_ne).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var X_e=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(qp).optional(),supportedEvents:u.array(qp),type:YM}).strict(),vne=u.object({eventKey:u.string().min(1),eventType:qp,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,kne)),data:Ine.optional(),untrustedText:u.string().transform(e=>e.slice(0,Qne)).optional()}).strict(),eve=vne.extend({namespace:u.string().min(1)}),xne=u.object({authority:u.enum(["instruction","context"]),actor:n1.optional()}).strict(),Dne=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:xne.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),nve=u.object({completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:dne,actors:u.array(n1),actor:n1.optional(),runId:u.string().min(1),source:zM,transcript:u.array(Dne)}).strict();var ove=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),Fne=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),rve=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:Fne.optional()}).passthrough(),ive=u.enum(["auto","review","approve"]);var sve=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:ie}).strict(),Sne=u.string().regex(/^[a-z][a-z0-9-]*$/),Lne=u.string().regex(/^[a-z][a-z0-9.-]*$/),Rne=u.union([u.literal("read"),u.literal("write")]),KM=u.object({provider:Sne,scope:ie.optional(),type:u.literal("oauth")}).strict(),JM=u.object({displayName:ie.optional(),handle:ie.optional(),id:ie,label:ie.optional(),url:ie.optional()}).strict(),uve=u.object({account:JM.optional(),accessToken:ie,expiresAt:u.number().finite().optional(),refreshToken:ie,refreshTokenExpiresAt:u.number().finite().optional(),scope:ie.optional()}).strict(),dve=u.object({access:Rne,leaseScope:ie.optional(),name:Lne,reason:ie.optional(),requirements:u.array(ie).min(1).optional()}).strict(),Nne=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),$ne=u.object({account:JM.optional(),authorization:KM.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(Nne).min(1)}).strict(),lve=u.discriminatedUnion("type",[u.object({lease:$ne,type:u.literal("lease")}).strict(),u.object({authorization:KM.optional(),message:ie,type:u.literal("needed")}).strict(),u.object({message:ie,type:u.literal("unavailable")}).strict()]);var Mne=ie.max(64).regex(/^[a-z][a-z0-9-]*$/),jne=ie.max(80),Pne=ie.max(500),Gne=u.enum(["primary","profile"]),Hne=u.object({detail:ie.max(500).optional(),label:ie.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:ie.max(120)}).strict(),Tne=u.object({label:ie.max(80),value:ie.max(500)}).strict(),Une=u.object({confirmation:ie.max(500).optional(),href:ie.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:ie.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),One=u.object({actions:u.array(Une).max(4).optional(),description:ie.max(1e3).optional(),id:ie.max(128),metadata:u.array(Tne).max(8).optional(),title:ie.max(4e3)}).strict(),gve=u.object({emptyText:ie.max(500).optional(),metrics:u.array(Hne).max(6).optional(),nextCursor:ie.max(1e3).optional(),records:u.array(One).max(100),searchPlaceholder:ie.max(120).optional(),type:u.literal("list")}).strict(),qne=u.object({description:Pne,id:Mne,label:jne,navigation:Gne,pluginDisplayName:ie.max(200),pluginName:ie.max(100)}).strict(),mve=u.array(qne),fve=u.object({cursor:ie.max(1e3).optional(),filter:ie.max(64).optional(),limit:u.number().int().min(1).max(50),query:u.string().trim().max(200).optional()}).strict();var ZM=u.object({active:u.number(),conversations:u.number(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict();var zne=u.enum(["active","completed","failed"]),Yne=u.enum(["api","internal","scheduler","slack"]),VM=$$,Kne=u.object({conversationId:u.string().min(1)}).strict(),Jne=u.object({limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),Wne=u.object({before:u.string().min(1),limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),Zne=u.object({actorEmail:u.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),Vne=u.object({archived:u.boolean(),lastSeenAt:u.string().datetime()}).strict(),o1=u.object({archived:u.boolean()}).strict(),Xne=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3),visibility:u.enum(["private","public"]).optional()}).strict(),eae=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3)}).strict(),CB=u.object({conversationId:u.string().min(1),messageId:u.string().min(1),status:u.enum(["accepted","duplicate"])}).strict(),zp=u.object({email:u.string().optional(),fullName:u.string().optional(),slackUserId:u.string().optional(),slackUserName:u.string().optional()}).strict(),XM=u.enum(["defer","interrupt"]),ej=u.object({actorIdentity:zp.optional(),createdAt:u.string().datetime(),delivery:XM,inboundMessageId:u.string().min(1),messageId:u.string().min(1),receivedAt:u.string().datetime(),role:u.literal("user"),source:u.enum(["slack","web"]),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"pending message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted pending messages must not expose actor identity"})}),tj=u.object({authorizationUrl:u.string().url(),completionText:u.string().min(1),label:u.string().min(1)}).strict(),r1=u.object({authorization:tj.optional(),conversationId:u.string().min(1),generatedAt:u.string().datetime(),messages:u.array(ej)}).strict(),nj=u.object({costUsd:u.number().finite().nonnegative(),operations:u.array(u.object({costUsd:u.number().finite().nonnegative(),events:u.number().int().positive(),name:u.string().min(1),namespace:u.string().min(1)}).strict()).min(1)}).strict(),tae=u.object({id:u.string().min(1).optional(),kind:u.enum(["scheduled","event"]),label:u.string().min(1).optional(),title:u.string().min(1).optional()}).strict().superRefine((e,t)=>{!!e.id!=!!e.label&&t.addIssue({code:"custom",message:"sourceTask id and label must both be set or both omitted"})}),Yp=u.object({displayTitle:u.string(),cumulativeDurationMs:u.number(),cumulativeUsage:VM.optional(),auxiliaryCosts:nj.optional(),conversationId:u.string(),isParticipant:u.boolean(),visibility:u.enum(["private","public"]).optional(),status:zne,startedAt:u.string(),lastSeenAt:u.string(),lastProgressAt:u.string(),surface:Yne,actorIdentity:zp.optional(),archivedAt:u.string().optional(),channel:u.string().optional(),channelName:u.string().optional(),channelNameRedacted:u.boolean().optional(),locationId:u.string().optional(),sentryTraceUrl:u.string().optional(),sourceUrl:u.string().url().optional(),traceId:u.string().optional()}).strict(),nae=u.object({type:u.literal("message"),messageId:u.string().min(1),role:u.enum(["assistant","system","user"]),source:u.literal("web").optional(),actorIdentity:zp.optional(),eventType:u.string().min(1).optional(),explicitMention:u.boolean().optional(),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted messages must not expose actor identity"})}),aae=u.object({type:u.literal("message_handled"),messageId:u.string().min(1)}).strict(),oae=u.object({toolCallId:u.string().min(1),name:u.string().min(1),status:u.enum(["running","completed","error"]),startedAt:u.string().datetime().optional(),startedSeq:u.number().int().nonnegative().optional(),input:u.unknown().optional(),output:u.unknown().optional()}).strict().superRefine((e,t)=>{e.startedAt===void 0!=(e.startedSeq===void 0)&&t.addIssue({code:"custom",message:"tool start sequence and timestamp must be provided together"})}),aj=u.object({type:u.literal("reasoning"),text:u.string().min(1).optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"reasoning content must be text or explicitly redacted"})}),rae=u.object({type:u.literal("tool_call"),toolCallId:u.string().min(1)}).strict(),iae=u.object({parts:u.array(u.discriminatedUnion("type",[aj,rae])).min(1)}).strict(),Aae=u.object({type:u.literal("tool_calls"),calls:u.array(oae).min(1),assistant:iae.optional()}).strict().superRefine((e,t)=>{if(!e.assistant)return;let n=new Map;for(let a of e.calls)n.set(a.toolCallId,(n.get(a.toolCallId)??0)+1);let o=new Map;for(let a of e.assistant.parts)a.type==="tool_call"&&o.set(a.toolCallId,(o.get(a.toolCallId)??0)+1);(n.size!==o.size||[...n].some(([a,r])=>o.get(a)!==r))&&t.addIssue({code:"custom",path:["assistant","parts"],message:"assistant tool parts must reference every call exactly once"})}),sae=u.object({type:u.literal("assistant_message"),parts:u.array(aj).min(1)}).strict(),cae=u.discriminatedUnion("state",[u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.enum(["succeeded","no_reply"])}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("started"),inputMessageIds:u.array(u.string().min(1)).min(1).optional()}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("failed"),failureKind:u.enum(["agent","delivery"])}).strict()]),uae=u.object({type:u.literal("turn_routed"),turnId:u.string().min(1),modelProfile:u.string().min(1),modelId:u.string().min(1),costUsd:u.number().finite().nonnegative().optional(),reasoningLevel:u.string().min(1),confidence:u.number().min(0).max(1).optional(),source:u.enum(["configured","inherited","router"])}).strict(),dae=u.object({type:u.literal("guardian_action_reviewed"),turnId:u.string().min(1),toolCallId:u.string().min(1),toolName:u.string().min(1),decision:u.enum(["allow","ask","deny"]),riskLevel:u.enum(["low","medium","high","critical"]),userAuthorization:u.enum(["high","medium","low","unknown"])}).strict(),lae=u.object({type:u.literal("turn_context"),turnId:u.string().min(1),pluginName:u.string().min(1),kind:u.string().min(1),version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict(),pae=u.object({type:u.literal("structured_event"),namespace:u.string().min(1),name:u.string().min(1),version:u.number().int().positive(),turnId:u.string().min(1).optional(),presentation:GM}).strict(),gae=u.object({type:u.literal("compaction"),modelProfile:u.string().min(1).optional(),modelId:u.string().min(1).optional(),summary:u.string().min(1).optional(),details:u.object({reason:u.literal("capacity"),estimatedInputTokens:u.number().int().nonnegative(),replacementInputTokens:u.number().int().nonnegative().optional(),triggerTokens:u.number().int().nonnegative(),inputLimitTokens:u.number().int().positive(),inputMessageCount:u.number().int().nonnegative(),retainedMessageCount:u.number().int().nonnegative(),summaryChars:u.number().int().nonnegative()}).strict().optional()}).strict(),mae=u.object({type:u.literal("handoff"),modelProfile:u.string().min(1),modelId:u.string().min(1),reasoningLevel:u.string().min(1).optional(),triggeringToolCallId:u.string().min(1).optional(),summary:u.string().min(1).optional()}).strict(),fae=u.object({type:u.literal("subagent"),startedSeq:u.number().int().nonnegative(),startedAt:u.string().datetime(),childConversationId:u.string().min(1),subagentKind:u.string().min(1),parentToolCallId:u.string().min(1).optional(),status:u.enum(["running","completed","error","aborted"])}).strict(),oj=u.discriminatedUnion("type",[nae,aae,sae,Aae,cae,lae,pae,uae,dae,gae,mae,fae]),i1=u.object({seq:u.number().int().nonnegative(),createdAt:u.string().datetime(),data:oj}).strict(),A1=u.discriminatedUnion("status",[u.object({status:u.literal("available")}).strict(),u.object({status:u.literal("redacted"),reason:u.literal("non_public_conversation")}).strict(),u.object({status:u.literal("expired"),expiredAt:u.string().datetime()}).strict()]),bae=u.object({modelId:u.string(),usage:VM}).strict();function rj(e,t){e.eventHistory.status==="expired"&&e.events.length>0&&t.addIssue({code:"custom",path:["events"],message:"expired event history must not contain events"});for(let n=1;n<e.events.length;n+=1)e.events[n].seq<=e.events[n-1].seq&&t.addIssue({code:"custom",path:["events",n,"seq"],message:"report event sequences must be strictly increasing"});for(let[n,o]of e.events.entries())o.data.type==="message"&&(e.eventHistory.status==="redacted"&&o.data.redacted!==!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact messages"}),e.eventHistory.status==="available"&&o.data.redacted===!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose messages"})),e.eventHistory.status==="redacted"&&o.data.type==="tool_calls"&&o.data.calls.some(a=>a.input!==void 0||a.output!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact tool payloads"}),e.eventHistory.status==="redacted"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.text!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact assistant messages"}),e.eventHistory.status==="available"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.redacted===!0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose reasoning"}),o.data.type==="tool_calls"&&(e.eventHistory.status==="redacted"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.text!==void 0)||e.eventHistory.status==="available"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.redacted===!0))&&t.addIssue({code:"custom",path:["events",n,"data","assistant"],message:"assistant reasoning must match event history visibility"})}var s1=Yp.extend({annotations:u.array(PM.and(u.object({plugin:u.string().min(1),createdAt:u.string().datetime(),updatedAt:u.string().datetime()}))).optional(),modelUsage:u.array(bae).optional(),events:u.array(i1),eventHistory:A1,previousCursor:u.string().min(1).optional(),generatedAt:u.string(),sentryConversationUrl:u.string().optional(),sourceTask:tae.optional()}).strict().superRefine(rj),c1=u.object({events:u.array(i1),eventHistory:A1,previousCursor:u.string().min(1).optional(),generatedAt:u.string()}).strict().superRefine(rj),u1=u.object({conversations:u.array(Yp),source:u.literal("conversation_index"),generatedAt:u.string()}).strict(),Cd=u.object({active:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),label:u.string(),costUsd:u.number().optional(),tokens:u.number().optional()}).strict(),hae=u.object({cachedInputTokens:u.number().optional(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),inputTokens:u.number().optional(),tokens:u.number().optional()}).strict(),Bae=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),date:u.string(),deny:u.number(),requests:u.number()}).strict(),yae=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),deny:u.number(),metricDays:u.array(Bae),requests:u.number()}).strict(),d1=u.object({active:u.number(),cachedInputTokens:u.number().optional(),conversations:u.number(),durationMs:u.number(),failed:u.number(),generatedAt:u.string(),guardian:yae,metricDays:u.array(hae),locations:u.array(Cd),actors:u.array(Cd),source:u.literal("conversation_index"),costUsd:u.number().optional(),inputTokens:u.number().optional(),tokens:u.number().optional(),windowEnd:u.string(),windowStart:u.string()}).strict(),Cae=u.object({email:u.string().trim().min(1)}).strict(),WM=Cd.omit({costUsd:!0}),wae=u.object({active:u.number(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),Eae=u.object({activePeople:u.number(),conversations:u.number(),date:u.string()}).strict(),ij=u.object({active:u.number(),activeDays:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),Aj=zp.extend({email:u.string().min(1)}).strict(),kae=ij.extend({firstSeenAt:u.string(),lastSeenAt:u.string(),actor:Aj}).strict(),l1=u.object({activityDays:u.array(Eae),generatedAt:u.string(),people:u.array(kae),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),p1=u.object({activityDays:u.array(wae),generatedAt:u.string(),locations:u.array(WM),recentConversations:u.array(Yp),actor:Aj,source:u.literal("conversation_index"),surfaces:u.array(WM),totals:ij,windowEnd:u.string(),windowStart:u.string()}).strict(),g1=u.object({generatedAt:u.string(),sevenDaysUsd:u.number().finite().nonnegative(),source:u.literal("conversation_index"),thirtyDaysUsd:u.number().finite().nonnegative(),windowEnd:u.string(),windowStart:u.string()}).strict(),Qae=u.object({locationId:u.string().min(1)}).strict(),sj=Cd.extend({id:u.string(),firstSeenAt:u.string(),kind:$M,lastSeenAt:u.string(),provider:u.string(),providerDestinationId:u.string(),visibility:u.literal("public")}).strict(),Iae=Cd.extend({actor:zp}).strict(),cj=u.object({date:u.string(),privateConversations:u.number(),publicConversations:u.number()}).strict(),m1=u.object({activityDays:u.array(cj),generatedAt:u.string(),locations:u.array(sj),privateActivity:Cd,source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),f1=sj.extend({activityDays:u.array(ZM),actors:u.array(Iae),generatedAt:u.string(),recentConversations:u.array(Yp),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),_ae=u.object({error:u.string().min(1)}).strict(),b1=u.object({id:u.string().uuid(),name:u.string(),tokenSuffix:u.string(),createdAt:u.string().datetime(),expiresAt:u.string().datetime(),lastUsedAt:u.string().datetime().nullable()}).strict(),h1=u.object({tokens:u.array(b1)}).strict(),vae=u.object({name:u.string().trim().min(1).max(80)}).strict(),B1=b1.extend({token:u.string().startsWith("jr_pat_")}).strict(),xae=u.object({id:u.string().uuid()}).strict(),Dae=u.object({revoked:u.literal(!0)}).strict(),Fae=u.object({channelId:u.string().min(1),label:u.string().min(1),teamId:u.string().min(1),visibility:u.enum(["private","public"])}).strict(),uj=u.object({createdAt:u.string().datetime(),createdBy:u.string().min(1),createdByEmail:u.string().trim().email().optional(),destination:Fae,id:u.string().min(1),instruction:u.string().min(1),lastConversationId:u.string().min(1).optional(),lastRunAt:u.string().datetime().optional(),ownedByViewer:u.boolean(),runsLast7Days:u.number().int().nonnegative(),title:u.string().min(1),totalRuns:u.number().int().nonnegative()}),dj=uj.extend({kind:u.literal("scheduled"),nextRunAt:u.string().datetime().optional(),schedule:u.string().min(1),status:u.enum(["active","blocked","completed"])}).strict(),lj=uj.extend({events:u.array(u.string().min(1)).min(1),kind:u.literal("event"),resource:u.string().min(1),source:u.string().min(1),triggerAvailable:u.boolean()}).strict(),y1=u.discriminatedUnion("kind",[dj,lj]),Sae=u.object({date:u.string().min(1),event:u.number().int().nonnegative(),scheduled:u.number().int().nonnegative()}).strict(),C1=u.object({executionDays:u.array(Sae),tasks:u.array(y1),truncated:u.boolean()}).strict(),Lae=u.object({id:u.string().min(1),kind:u.enum(["scheduled","event"])}).strict(),pj=u.enum(["blocked","completed","failed"]),w1=u.object({conversationId:u.string().min(1).optional(),executedAt:u.string().datetime(),executionId:u.string().min(1),status:pj,title:u.string().min(1).optional()}).strict(),gj=u.object({blocked:u.number().int().nonnegative(),completed:u.number().int().nonnegative(),date:u.string().min(1),failed:u.number().int().nonnegative()}).strict(),E1=u.object({executionDays:u.array(gj),executions:u.array(w1),task:y1,truncated:u.boolean()}).strict(),mj=w1.extend({kind:u.enum(["scheduled","event"]),taskId:u.string().min(1),taskTitle:u.string().min(1)}).strict(),k1=u.object({runs:u.array(mj),truncated:u.boolean()}).strict(),fj=u.object({count:u.number().int().nonnegative(),date:u.string(),metric:u.string().min(1),name:u.string().min(1),namespace:u.string().min(1)}).strict(),Rae=u.object({generatedAt:u.string().datetime(),stats:u.array(fj),windowEnd:u.string(),windowStart:u.string()}).strict();var Nae=u.object({status:u.literal("ok"),service:u.string(),timestamp:u.string()}).strict(),bj=u.object({configKeys:u.array(u.string()),description:u.string(),displayName:u.string(),name:u.string()}).strict(),Q1=u.array(bj),I1=u.object({name:u.string(),pluginProvider:u.string().optional()}).strict(),_1=u.array(I1),hj=u.object({dir:u.string(),hasMigrationsDir:u.boolean(),hasSkillsDir:u.boolean(),packageName:u.string()}).strict(),Bj=u.object({packageNames:u.array(u.string()),packages:u.array(hj),manifestRoots:u.array(u.string()),skillRoots:u.array(u.string()),tracingIncludes:u.array(u.string())}).strict(),$ae=u.object({cwd:u.string(),homeDir:u.string(),descriptionText:u.string().optional(),providers:u.array(u.string()),skills:u.array(I1),packagedContent:Bj}).strict(),v1=u.enum(["danger","good","neutral","warning"]),Mae=u.object({label:u.string(),tone:v1.optional(),value:u.string()}).strict(),jae=u.object({key:u.string(),label:u.string()}).strict(),Pae=u.object({id:u.string(),tone:v1.optional(),values:u.record(u.string(),u.string())}).strict(),Gae=u.object({fields:u.array(jae).optional(),emptyText:u.string().optional(),records:u.array(Pae).optional(),title:u.string()}).strict(),Hae=u.object({categories:u.array(u.object({id:u.string().min(1),label:u.string().min(1),values:u.record(u.string(),u.number().finite())}).strict()).max(100),description:u.string().optional(),emptyText:u.string().optional(),id:u.string().min(1),series:u.array(u.object({format:u.literal("usd").optional(),key:u.string().min(1),label:u.string().min(1),tone:v1.optional()}).strict()).min(1).max(8),timeRangeDays:u.array(u.union([u.literal(7),u.literal(30),u.literal(90)])).min(1).max(3).optional(),title:u.string().min(1),type:u.literal("bar_chart")}).strict(),yj=u.object({generatedAt:u.string().optional(),metrics:u.array(Mae).optional(),recordSets:u.array(Gae).optional(),title:u.string().optional(),pluginName:u.string(),widgets:u.array(Hae).max(12).optional()}).strict(),x1=u.object({generatedAt:u.string(),reports:u.array(yj),source:u.literal("plugins")}).strict();function Tae(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var Uae=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(Tae,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),Gve=u.discriminatedUnion("kind",[Uae]),Tve=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),Oae=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),qae=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),Uve=u.object({details:u.array(qae).max(100).optional(),icon:Oae.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var Ej=u.string().regex(/^T[A-Z0-9]+$/),zae=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),kj=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),wB=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),Ae=u.string().refine(e=>e.trim().length>0),zi=Ae.refine(e=>e===e.trim()),qve=u.enum(["slack","local"]),Qj=u.enum(["public","private"]),Yae=u.enum(["public","private"]),Ij=u.object({platform:u.literal("slack"),teamId:Ej,channelId:zae}).strict(),_j=Ij,Kae=u.object({platform:u.literal("local"),conversationId:kj}).strict(),Jae=u.discriminatedUnion("platform",[_j,Kae]),Wae=Ij.extend({visibility:Qj,messageTs:Ae.optional(),threadTs:Ae.optional()}).strict(),Zae=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:kj}).strict(),Vae=u.object({platform:u.literal("web"),visibility:Qj,conversationId:zi}).strict(),vj=u.discriminatedUnion("platform",[Wae,Zae,Vae]),Xae=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:wB,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:wB,allowedWhen:u.literal("scheduled-task"),taskId:zi}).strict()]),F1={email:Ae.optional(),fullName:Ae.optional(),userId:wB,userName:Ae.optional()},eoe=u.object({...F1,platform:u.literal("slack"),teamId:Ej}).strict(),toe=u.object({...F1,platform:u.literal("local")}).strict(),noe=u.object({...F1,platform:u.literal("web")}).strict(),aoe=u.object({platform:u.literal("system"),name:wB}).strict(),D1=u.discriminatedUnion("platform",[eoe,toe,noe,aoe]),ooe=u.object({displayName:Ae.optional(),handle:Ae.optional(),id:zi,provider:zi,providerSubjectId:zi,providerTenantId:zi.optional()}).strict(),zve=u.object({displayName:Ae.optional(),email:Ae.max(320),id:zi,identities:u.array(ooe).max(100)}).strict(),roe=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),ioe=u.object({label:zi.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:zi.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),Yve=u.object({idempotencyKey:Ae.pipe(u.string().max(512)),credentialSubject:Xae.optional(),destination:_j,destinationVisibility:Yae,input:Ae.pipe(u.string().max(32e3)),metadata:roe.optional(),replyAttribution:ioe.optional(),source:vj}).strict();var Aoe=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),Jve=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),Wve=u.object({kind:Aoe,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var soe=4e3,coe=8e3,Cj=32,wj=4e3,uoe=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>Cj&&t.addIssue({code:"custom",message:`Resource event data may include at most ${Cj} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>wj&&t.addIssue({code:"custom",message:`Resource event data may be at most ${wj} JSON bytes.`})}),Kp=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),xj=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),doe=u.object({type:xj,supportedEvents:u.array(Kp).min(1),suggestedEvents:u.array(Kp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),Vve=u.object({resourceTypes:u.array(doe).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var Xve=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(Kp).optional(),supportedEvents:u.array(Kp),type:xj}).strict(),loe=u.object({eventKey:u.string().min(1),eventType:Kp,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,soe)),data:uoe.optional(),untrustedText:u.string().transform(e=>e.slice(0,coe)).optional()}).strict(),exe=loe.extend({namespace:u.string().min(1)}),poe=u.object({authority:u.enum(["instruction","context"]),actor:D1.optional()}).strict(),goe=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:poe.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),nxe=u.object({completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:Jae,actors:u.array(D1),actor:D1.optional(),runId:u.string().min(1),source:vj,transcript:u.array(goe)}).strict();var oxe=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),moe=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),rxe=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:moe.optional()}).passthrough(),ixe=u.enum(["auto","review","approve"]);var sxe=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:Ae}).strict(),foe=u.string().regex(/^[a-z][a-z0-9-]*$/),boe=u.string().regex(/^[a-z][a-z0-9.-]*$/),hoe=u.union([u.literal("read"),u.literal("write")]),Dj=u.object({provider:foe,scope:Ae.optional(),type:u.literal("oauth")}).strict(),Fj=u.object({displayName:Ae.optional(),handle:Ae.optional(),id:Ae,label:Ae.optional(),url:Ae.optional()}).strict(),uxe=u.object({account:Fj.optional(),accessToken:Ae,expiresAt:u.number().finite().optional(),refreshToken:Ae,refreshTokenExpiresAt:u.number().finite().optional(),scope:Ae.optional()}).strict(),dxe=u.object({access:hoe,leaseScope:Ae.optional(),name:boe,reason:Ae.optional(),requirements:u.array(Ae).min(1).optional()}).strict(),Boe=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),yoe=u.object({account:Fj.optional(),authorization:Dj.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(Boe).min(1)}).strict(),lxe=u.discriminatedUnion("type",[u.object({lease:yoe,type:u.literal("lease")}).strict(),u.object({authorization:Dj.optional(),message:Ae,type:u.literal("needed")}).strict(),u.object({message:Ae,type:u.literal("unavailable")}).strict()]);var Coe=Ae.max(64).regex(/^[a-z][a-z0-9-]*$/),woe=Ae.max(80),Eoe=Ae.max(500),koe=u.enum(["primary","profile"]),Qoe=u.object({detail:Ae.max(500).optional(),label:Ae.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:Ae.max(120)}).strict(),Ioe=u.object({label:Ae.max(80),value:Ae.max(500)}).strict(),_oe=u.object({confirmation:Ae.max(500).optional(),href:Ae.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:Ae.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),voe=u.object({actions:u.array(_oe).max(4).optional(),description:Ae.max(1e3).optional(),id:Ae.max(128),metadata:u.array(Ioe).max(8).optional(),title:Ae.max(4e3)}).strict(),Sj=u.object({emptyText:Ae.max(500).optional(),metrics:u.array(Qoe).max(6).optional(),nextCursor:Ae.max(1e3).optional(),records:u.array(voe).max(100),searchPlaceholder:Ae.max(120).optional(),type:u.literal("list")}).strict(),xoe=u.object({description:Eoe,id:Coe,label:woe,navigation:koe,pluginDisplayName:Ae.max(200),pluginName:Ae.max(100)}).strict(),Lj=u.array(xoe),gxe=u.object({cursor:Ae.max(1e3).optional(),filter:Ae.max(64).optional(),limit:u.number().int().min(1).max(50),query:u.string().trim().max(200).optional()}).strict();var EB=u.object({user:u.object({email:u.string().trim().email(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),bxe=u.object({displayName:u.string().trim().min(1).max(80)}).strict(),Rj=u.object({allowedEmailCount:u.number(),allowedGoogleDomainCount:u.number(),authRequired:u.boolean(),authPath:u.string(),basePath:u.string(),componentGallery:u.boolean(),sentryConversationLinks:u.boolean(),timeZone:u.string()}).strict();var nr=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function kB(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function QB(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});if(o.status===401&&kB(),!o.ok)throw new nr(t,o.status);return e.parse(await o.json())}async function Jp(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"POST"});if(o.status===401&&kB(),!o.ok)throw new nr(t,o.status);return e.parse(await o.json())}async function wd(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});if(t.status===401&&kB(),!t.ok)throw new nr(e,t.status)}async function Ze(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:{}});if(o.status===401)throw kB(),new nr(t,o.status);if(!o.ok)throw new nr(t,o.status);return e.parse(await o.json())}var IB=5*6e4,S1=5*6e4,Doe=1e3;function Foe(e,t=Date.now()){if(!e)return S1;let n=Date.parse(e);if(!Number.isFinite(n))return S1;let o=Math.max(0,t-n);return Math.max(Doe,S1-o)}function Nj(){return at({queryKey:["dashboard","core"],queryFn:async({signal:e})=>{let[t,n]=await Promise.all([Ze(EB,"/api/me",e),Ze(Rj,"/api/config",e)]);return{config:n,me:t}},retry:!1,staleTime:IB})}function Soe(){return at({queryKey:["dashboard","plugins"],queryFn:({signal:e})=>Ze(Q1,"/api/plugins",e),retry:!1,staleTime:IB})}function $j(){return at({queryKey:["dashboard","plugin-user-pages"],queryFn:({signal:e})=>Ze(Lj,"/api/user-pages",e),retry:!1,staleTime:IB})}function Mj(e){return at({queryKey:["dashboard","conversations",e??"all"],queryFn:({signal:t})=>{let n=new URLSearchParams;e&&n.set("actorEmail",e);let o=n.toString();return Ze(u1,`/api/conversations${o?`?${o}`:""}`,t)},retry:!1})}function jj(e){return at({enabled:e,queryKey:["dashboard","tasks"],queryFn:({signal:t})=>Ze(C1,"/api/tasks",t),retry:!1})}function Pj(e){return at({enabled:e,queryKey:["dashboard","tasks","runs"],queryFn:({signal:t})=>Ze(k1,"/api/tasks/runs",t),retry:!1})}function Gj(e,t,n){return at({enabled:e&&!!(t&&n),queryKey:["dashboard","tasks",t,n,"executions"],queryFn:({signal:o})=>Ze(E1,`/api/tasks/${t}/${encodeURIComponent(n)}/executions`,o),retry:!1})}function Hj(){return at({queryKey:["dashboard","people"],queryFn:({signal:e})=>Ze(l1,"/api/people",e),retry:!1})}function Tj(e){return at({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async({signal:t})=>Ze(p1,`/api/people/${encodeURIComponent(e)}`,t),retry:!1})}function Uj(e){return at({enabled:e,queryKey:["dashboard","personal-spend"],queryFn:({signal:t})=>Ze(g1,"/api/people/me/spend",t),refetchInterval:t=>Foe(t.state.data?.generatedAt),retry:!1,staleTime:0})}function Oj(){return at({queryKey:["dashboard","locations"],queryFn:({signal:e})=>Ze(m1,"/api/locations",e),retry:!1})}function qj(e){return at({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async({signal:t})=>Ze(f1,`/api/locations/${encodeURIComponent(e)}`,t),retry:!1})}function Loe(){return at({queryKey:["dashboard","skills"],queryFn:({signal:e})=>Ze(_1,"/api/skills",e),retry:!1,staleTime:IB})}function Roe(){return at({queryKey:["dashboard","plugin-reports"],queryFn:({signal:e})=>Ze(x1,"/api/plugin-reports",e),retry:!1})}function zj(e){let t=Soe(),n=at({queryKey:["dashboard","conversation-stats"],queryFn:({signal:i})=>Ze(d1,"/api/conversations/stats",i),retry:!1}),o=Loe(),a=Roe();return{data:t.data&&o.data?{...e,conversationStatsError:!!n.error,...n.data?{conversationStats:n.data}:{},conversationStatsLoading:n.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:{},pluginReportsLoading:a.isPending,plugins:t.data,skills:o.data}:void 0,error:t.error??o.error,isPending:t.isPending||o.isPending}}var Yj="Junior";function pt(){return typeof window>"u"?Yj:window.__JUNIOR_DASHBOARD_AGENT_NAME__?.trim()||Yj}function Kj(e=pt()){return e.endsWith("s")?`${e}'`:`${e}'s`}var L1=C(E(),1);function _B(){return(0,L1.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,L1.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var Jj=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function F(...e){return e.filter(Boolean).join(" ")}var In="mx-auto w-full min-w-0 max-w-screen-xl",JA="text-dashboard-text-muted hover:text-dashboard-text";var WA=C(E(),1);function be(e){return(0,WA.jsx)("div",{className:F(In,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,WA.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-white/15 bg-dashboard-surface-raised p-4",children:[(0,WA.jsx)(_B,{}),(0,WA.jsxs)("div",{children:[(0,WA.jsx)("div",{className:"font-bold",children:e.label}),(0,WA.jsx)("div",{"aria-label":e.label,className:`${Jj} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var DB=C(J(),1);var vB=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var Wj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Zj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var R1=e=>{let t=Zj(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Wp=C(J(),1);var xB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Vj=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Ed=C(J(),1);var Noe=(0,Ed.createContext)({});var Xj=()=>(0,Ed.useContext)(Noe);var e7=(0,Wp.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:i,...A},s)=>{let{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:l=!1,color:g="currentColor",className:p=""}=Xj()??{},m=o??l?Number(n??d)*24/Number(t??c):n??d;return(0,Wp.createElement)("svg",{ref:s,...xB,width:t??c??xB.width,height:t??c??xB.height,stroke:e??g,strokeWidth:m,className:vB("lucide",p,a),...!r&&!Vj(A)&&{"aria-hidden":"true"},...A},[...i.map(([h,B])=>(0,Wp.createElement)(h,B)),...Array.isArray(r)?r:[r]])});var L=(e,t)=>{let n=(0,DB.forwardRef)(({className:o,...a},r)=>(0,DB.createElement)(e7,{ref:r,iconNode:t,className:vB(`lucide-${Wj(R1(e))}`,`lucide-${e}`,o),...a}));return n.displayName=R1(e),n};var $oe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ar=L("activity",$oe);var Moe=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],Zp=L("archive-restore",Moe);var joe=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Ws=L("archive",joe);var Poe=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Vp=L("arrow-down-to-line",Poe);var Goe=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],or=L("arrow-left",Goe);var Hoe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Xp=L("arrow-right",Hoe);var Toe=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],eg=L("bookmark",Toe);var Uoe=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Or=L("bot",Uoe);var Ooe=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],so=L("boxes",Ooe);var qoe=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],qr=L("braces",qoe);var zoe=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Yi=L("brain-circuit",zoe);var Yoe=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Zs=L("brain",Yoe);var Koe=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],tg=L("calendar-clock",Koe);var Joe=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ng=L("calendar",Joe);var Woe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vs=L("check",Woe);var Zoe=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ag=L("chevron-down",Zoe);var Voe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],og=L("chevron-left",Voe);var Xoe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ma=L("chevron-right",Xoe);var ere=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],rr=L("circle-alert",ere);var tre=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],rg=L("circle-dashed",tre);var nre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],ig=L("circle-dollar-sign",nre);var are=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Ag=L("circle-dot",are);var ore=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ZA=L("circle-x",ore);var rre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],co=L("clock-3",rre);var ire=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],Xs=L("coins",ire);var Are=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ec=L("copy",Are);var sre=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],VA=L("database",sre);var cre=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],sg=L("diff",cre);var ure=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Gn=L("earth",ure);var dre=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],cg=L("external-link",dre);var lre=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],ug=L("gauge",lre);var pre=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],dg=L("git-merge",pre);var gre=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],lg=L("hash",gre);var mre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pg=L("info",mre);var fre=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ir=L("key-round",fre);var bre=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],XA=L("layers",bre);var hre=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],gg=L("lightbulb",hre);var Bre=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],mg=L("list-checks",Bre);var yre=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],fg=L("link",yre);var Cre=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],fa=L("lock-keyhole",Cre);var wre=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],bg=L("log-out",wre);var Ere=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],tc=L("map-pin",Ere);var kre=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],hg=L("map-pinned",kre);var Qre=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Bg=L("message-square-text",Qre);var Ire=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ba=L("message-square",Ire);var _re=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],yg=L("minimize-2",_re);var vre=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Cg=L("radio-tower",vre);var xre=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nc=L("search",xre);var Dre=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ac=L("send",Dre);var Fre=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],wg=L("settings",Fre);var Sre=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],Eg=L("sigma",Sre);var Lre=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],kg=L("skip-forward",Lre);var Rre=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ea=L("sparkles",Rre);var Nre=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ta=L("square-pen",Nre);var $re=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Qg=L("timer",$re);var Mre=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ar=L("trash-2",Mre);var jre=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ua=L("triangle-alert",jre);var Pre=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],ha=L("user-round",Pre);var Gre=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],oc=L("users",Gre);var Hre=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ki=L("x",Hre);var li=C(J(),1);var N1=Object.defineProperty,Tre=Object.getOwnPropertyDescriptor,Ure=Object.getOwnPropertyNames,Ore=Object.prototype.hasOwnProperty,n7=(e,t)=>{let n={};for(var o in e)N1(n,o,{get:e[o],enumerable:!0});return t||N1(n,Symbol.toStringTag,{value:"Module"}),n},t7=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Ure(t),r=0,i=a.length,A;r<i;r++)A=a[r],!Ore.call(e,A)&&A!==n&&N1(e,A,{get:(s=>t[s]).bind(null,A),enumerable:!(o=Tre(t,A))||o.enumerable});return e},a7=(e,t,n)=>(t7(e,t,"default"),n&&t7(n,t,"default"));var P1={};S(P1,{createOnigurumaEngine:()=>Aie,getDefaultWasmLoader:()=>iie,loadWasm:()=>r7,setDefaultWasmLoader:()=>rie});var j1=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function qre(){return 2147483648}function zre(){return typeof performance<"u"?performance.now():Date.now()}var Yre=(e,t)=>e+(t-e%t)%t;async function Kre(e){let t,n,o={};function a(p){n=p,o.HEAPU8=new Uint8Array(p),o.HEAPU32=new Uint32Array(p)}function r(p,m,h){o.HEAPU8.copyWithin(p,m,m+h)}function i(p){try{return t.grow(p-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function A(p){let m=o.HEAPU8.length;p=p>>>0;let h=qre();if(p>h)return!1;for(let B=1;B<=4;B*=2){let f=m*(1+.2/B);f=Math.min(f,p+100663296);let b=Math.min(h,Yre(Math.max(p,f),65536));if(i(b))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,m,h=1024){let B=m+h,f=m;for(;p[f]&&!(f>=B);)++f;if(f-m>16&&p.buffer&&s)return s.decode(p.subarray(m,f));let b="";for(;m<f;){let y=p[m++];if(!(y&128)){b+=String.fromCharCode(y);continue}let w=p[m++]&63;if((y&224)===192){b+=String.fromCharCode((y&31)<<6|w);continue}let Q=p[m++]&63;if((y&240)===224?y=(y&15)<<12|w<<6|Q:y=(y&7)<<18|w<<12|Q<<6|p[m++]&63,y<65536)b+=String.fromCharCode(y);else{let v=y-65536;b+=String.fromCharCode(55296|v>>10,56320|v&1023)}}return b}function d(p,m){return p?c(o.HEAPU8,p,m):""}let l={emscripten_get_now:zre,emscripten_memcpy_big:r,emscripten_resize_heap:A,fd_write:()=>0};async function g(){let m=await e({env:l,wasi_snapshot_preview1:l});t=m.memory,a(t.buffer),Object.assign(o,m),o.UTF8ToString=d}return await g(),o}var Jre=Object.defineProperty,Wre=(e,t,n)=>t in e?Jre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t,n)=>Wre(e,typeof t!="symbol"?t+"":t,n),_n=null;function Zre(e){throw new j1(e.UTF8ToString(e.getLastOnigError()))}var SB=class e{constructor(t){Bn(this,"utf16Length"),Bn(this,"utf8Length"),Bn(this,"utf16Value"),Bn(this,"utf8Value"),Bn(this,"utf16OffsetToUtf8"),Bn(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let i=a?new Uint32Array(o+1):null;a&&(i[o]=n);let A=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let d=t.charCodeAt(c),l=d,g=!1;if(d>=55296&&d<=56319&&c+1<n){let p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(l=(d-55296<<10)+65536|p-56320,g=!0)}a&&(r[c]=s,g&&(r[c+1]=s),l<=127?i[s+0]=c:l<=2047?(i[s+0]=c,i[s+1]=c):l<=65535?(i[s+0]=c,i[s+1]=c,i[s+2]=c):(i[s+0]=c,i[s+1]=c,i[s+2]=c,i[s+3]=c)),l<=127?A[s++]=l:l<=2047?(A[s++]=192|(l&1984)>>>6,A[s++]=128|(l&63)>>>0):l<=65535?(A[s++]=224|(l&61440)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0):(A[s++]=240|(l&1835008)>>>18,A[s++]=128|(l&258048)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0),g&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=A,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),i=r,A=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(r-55296<<10)+65536|s-56320,A=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,A&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},LB=class zr{constructor(t){if(Bn(this,"id",++zr.LAST_ID),Bn(this,"_onigBinding"),Bn(this,"content"),Bn(this,"utf16Length"),Bn(this,"utf8Length"),Bn(this,"utf16OffsetToUtf8"),Bn(this,"utf8OffsetToUtf16"),Bn(this,"ptr"),!_n)throw new j1("Must invoke loadWasm first.");this._onigBinding=_n,this.content=t;let n=new SB(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=_n.omalloc(1e4)),zr._sharedPtrInUse=!0,_n.HEAPU8.set(n.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=n.createString(_n)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Bn(LB,"LAST_ID",0);Bn(LB,"_sharedPtr",0);Bn(LB,"_sharedPtrInUse",!1);var o7=LB,M1=class{constructor(t){if(Bn(this,"_onigBinding"),Bn(this,"_ptr"),!_n)throw new j1("Must invoke loadWasm first.");let n=[],o=[];for(let A=0,s=t.length;A<s;A++){let c=new SB(t[A]);n[A]=c.createString(_n),o[A]=c.utf8Length}let a=_n.omalloc(4*t.length);_n.HEAPU32.set(n,a/4);let r=_n.omalloc(4*t.length);_n.HEAPU32.set(o,r/4);let i=_n.createOnigScanner(a,r,t.length);for(let A=0,s=t.length;A<s;A++)_n.ofree(n[A]);_n.ofree(r),_n.ofree(a),i===0&&Zre(_n),this._onigBinding=_n,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new o7(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,i=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;let A=r.HEAPU32,s=i/4,c=A[s++],d=A[s++],l=[];for(let g=0;g<d;g++){let p=t.convertUtf8OffsetToUtf16(A[s++]),m=t.convertUtf8OffsetToUtf16(A[s++]);l[g]={start:p,end:m,length:m-p}}return{index:c,captureIndices:l}}};function Vre(e){return typeof e.instantiator=="function"}function Xre(e){return typeof e.default=="function"}function eie(e){return typeof e.data<"u"}function tie(e){return typeof Response<"u"&&e instanceof Response}function nie(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var FB;function r7(e){if(FB)return FB;async function t(){_n=await Kre(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),Vre(o)?o=await o.instantiator(n):Xre(o)?o=await o.default(n):(eie(o)&&(o=o.data),tie(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await aie(o)(n):o=await oie(o)(n):nie(o)?o=await $1(o)(n):o instanceof WebAssembly.Module?o=await $1(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await $1(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return FB=t(),FB}function $1(e){return t=>WebAssembly.instantiate(e,t)}function aie(e){return t=>WebAssembly.instantiateStreaming(e,t)}function oie(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var i7;function rie(e){i7=e}function iie(){return i7}async function Aie(e){return e&&await r7(e),{createScanner(t){return new M1(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new o7(t)}}}var G1=n7({});a7(G1,P1);var xG=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(s7(),A7)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(u7(),c7)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(l7(),d7)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(g7(),p7)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(f7(),m7)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(h7(),b7)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(y7(),B7)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(w7(),C7)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(k7(),E7)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(I7(),Q7)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(v7(),_7)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(D7(),x7)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(S7(),F7)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(R7(),L7)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>($7(),N7)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(j7(),M7)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(G7(),P7)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(T7(),H7)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(O7(),U7)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(z7(),q7)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(K7(),Y7)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(W7(),J7)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(V7(),Z7)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(eP(),X7)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(nP(),tP)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(oP(),aP)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(iP(),rP)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(sP(),AP)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(uP(),cP)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(lP(),dP)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(gP(),pP)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(fP(),mP)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(hP(),bP)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(yP(),BP)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(wP(),CP)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(kP(),EP)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(IP(),QP)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(vP(),_P)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(DP(),xP)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(SP(),FP)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(RP(),LP)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>($P(),NP)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(jP(),MP)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(GP(),PP)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(TP(),HP)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(OP(),UP)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(zP(),qP)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(KP(),YP)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(WP(),JP)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(VP(),ZP)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(eG(),XP)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(nG(),tG)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(oG(),aG)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(iG(),rG)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(sG(),AG)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(uG(),cG)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(lG(),dG)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(gG(),pG)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(fG(),mG)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(hG(),bG)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(yG(),BG)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(wG(),CG)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(kG(),EG)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(IG(),QG)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(vG(),_G)))}],DG=Object.fromEntries(xG.map(e=>[e.id,e.import]));var Ve=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function BAe(e){return W1(e)}function W1(e){return Array.isArray(e)?yAe(e):e instanceof RegExp?e:typeof e=="object"?CAe(e):e}function yAe(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=W1(e[n]);return t}function CAe(e){let t={};for(let n in e)t[n]=W1(e[n]);return t}function PG(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function GG(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?GG(e.substring(0,e.length-1)):e.substr(~t+1)}var H1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,RB=class{static hasCaptures(e){return e===null?!1:(H1.lastIndex=0,H1.test(e))}static replaceCaptures(e,t,n){return e.replace(H1,(o,a,r,i)=>{let A=n[parseInt(a||r,10)];if(A){let s=t.substring(A.start,A.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function HG(e,t){return e<t?-1:e>t?1:0}function TG(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=HG(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function FG(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function UG(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var OG=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},vg=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(kAe(e),t)}static createFromParsedTheme(e,t){return IAe(e,t)}_cachedMatchRoot=new OG(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>wAe(e.parent,a.parentScopes));return o?new qG(o.fontStyle,o.foreground,o.background):null}},T1=class NB{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new NB(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new NB(n,t[o]);return n}push(t){return new NB(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function wAe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!EAe(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function EAe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qG=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function kAe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let i=t[a];if(!i.settings)continue;let A;if(typeof i.scope=="string"){let l=i.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),A=l.split(",")}else Array.isArray(i.scope)?A=i.scope:A=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let l=i.settings.fontStyle.split(" ");for(let g=0,p=l.length;g<p;g++)switch(l[g]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof i.settings.foreground=="string"&&FG(i.settings.foreground)&&(c=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&FG(i.settings.background)&&(d=i.settings.background);for(let l=0,g=A.length;l<g;l++){let m=A[l].trim().split(" "),h=m[m.length-1],B=null;m.length>1&&(B=m.slice(0,m.length-1),B.reverse()),n[o++]=new QAe(h,B,a,s,c,d)}}return n}var QAe=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},Hn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Hn||{});function IAe(e,t){e.sort((s,c)=>{let d=HG(s.scope,c.scope);return d!==0||(d=TG(s.parentScopes,c.parentScopes),d!==0)?d:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new _Ae(t),i=new qG(n,r.getId(o),r.getId(a)),A=new xAe(new O1(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let d=e[s];A.insert(0,d.scope,d.parentScopes,d.fontStyle,r.getId(d.foreground),r.getId(d.background))}return new vg(r,i,A)}var _Ae=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},vAe=Object.freeze([]),O1=class zG{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||vAe,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new zG(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},xAe=class q1{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(q1._cmpBySpecificity),n}insert(t,n,o,a,r,i){if(n===""){this._doInsertHere(t,o,a,r,i);return}let A=n.indexOf("."),s,c;A===-1?(s=n,c=""):(s=n.substring(0,A),c=n.substring(A+1));let d;this._children.hasOwnProperty(s)?d=this._children[s]:(d=new q1(this._mainRule.clone(),O1.cloneArr(this._rulesWithParentScopes)),this._children[s]=d),d.insert(t+1,c,o,a,r,i)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let i=0,A=this._rulesWithParentScopes.length;i<A;i++){let s=this._rulesWithParentScopes[i];if(TG(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new O1(t,n,o,a,r))}},ic=class Do{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=Do.getLanguageId(t),o=Do.getTokenType(t),a=Do.getFontStyle(t),r=Do.getForeground(t),i=Do.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,i,A){let s=Do.getLanguageId(t),c=Do.getTokenType(t),d=Do.containsBalancedBrackets(t)?1:0,l=Do.getFontStyle(t),g=Do.getForeground(t),p=Do.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(d=a?1:0),r!==-1&&(l=r),i!==0&&(g=i),A!==0&&(p=A),(s<<0|c<<8|d<<10|l<<11|g<<15|p<<24)>>>0}};function MB(e,t){let n=[],o=DAe(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=i();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=A();return a===")"&&(a=o.next()),s}if(SG(a)){let s=[];do s.push(a),a=o.next();while(SG(a));return c=>t(s,c)}return null}function i(){let s=[],c=r();for(;c;)s.push(c),c=r();return d=>s.every(l=>l(d))}function A(){let s=[],c=i();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=i()}return d=>s.some(l=>l(d))}}function SG(e){return!!e&&!!e.match(/[\w\.:]+/)}function DAe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function YG(e){typeof e.dispose=="function"&&e.dispose()}var xg=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},FAe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},SAe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},LAe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new xg(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new SAe;for(let n of e)RAe(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof xg){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function RAe(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof xg?$B({baseGrammar:r,selfGrammar:a},o):z1(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let i=n.injections(e.scopeName);if(i)for(let A of i)o.add(new xg(A))}function z1(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];jB([o],t,n)}}function $B(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&jB(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&jB(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function jB(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?PG({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&jB(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let i=KG(r);switch(i.kind){case 0:$B({...t,selfGrammar:t.baseGrammar},n);break;case 1:$B(t,n);break;case 2:z1(i.ruleName,{...t,repository:a},n);break;case 3:case 4:let A=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(A){let s={baseGrammar:t.baseGrammar,selfGrammar:A,repository:a};i.kind===4?z1(i.ruleName,s,n):$B(s,n)}else i.kind===4?n.add(new FAe(i.scopeName,i.ruleName)):n.add(new xg(i.scopeName));break}}}var NAe=class{kind=0},$Ae=class{kind=1},MAe=class{constructor(e){this.ruleName=e}kind=2},jAe=class{constructor(e){this.scopeName=e}kind=3},PAe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function KG(e){if(e==="$base")return new NAe;if(e==="$self")return new $Ae;let t=e.indexOf("#");if(t===-1)return new jAe(e);if(t===0)return new MAe(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new PAe(n,o)}}var GAe=/\\(\d+)/,LG=/\\(\d+)/g;var HAe=-1,JG=-2;var Sg=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=RB.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=RB.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${GG(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:RB.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:RB.replaceCaptures(this._contentName,e,t)}},TAe=class extends Sg{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},UAe=class extends Sg{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new Dg(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Fg,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},RG=class extends Sg{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Fg,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Y1=class extends Sg{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,i,A,s,c){super(e,t,n,o),this._begin=new Dg(a,this.id),this.beginCaptures=r,this._end=new Dg(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Fg;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},PB=class extends Sg{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,i,A,s){super(e,t,n,o),this._begin=new Dg(a,this.id),this.beginCaptures=r,this.whileCaptures=A,this._while=new Dg(i,JG),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Fg;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Fg,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},WG=class ta{static createCaptureRule(t,n,o,a,r){return t.registerRule(i=>new TAe(n,i,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new UAe(t.$vscodeTextmateLocation,t.id,t.name,t.match,ta._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=PG({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new RG(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ta._compilePatterns(r,n,o))}return t.while?new PB(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ta._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,ta._compileCaptures(t.whileCaptures||t.captures,n,o),ta._compilePatterns(t.patterns,n,o)):new Y1(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ta._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,ta._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,ta._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10);A>r&&(r=A)}for(let i=0;i<=r;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10),s=0;t[i].patterns&&(s=ta.getCompiledRuleId(t[i],n,o)),a[A]=ta.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,i=t.length;r<i;r++){let A=t[r],s=-1;if(A.include){let c=KG(A.include);switch(c.kind){case 0:case 1:s=ta.getCompiledRuleId(o[A.include],n,o);break;case 2:let d=o[c.ruleName];d&&(s=ta.getCompiledRuleId(d,n,o));break;case 3:case 4:let l=c.scopeName,g=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(l,o);if(p)if(g){let m=p.repository[g];m&&(s=ta.getCompiledRuleId(m,n,p.repository))}else s=ta.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else s=ta.getCompiledRuleId(A,n,o);if(s!==-1){let c=n.getRule(s),d=!1;if((c instanceof RG||c instanceof Y1||c instanceof PB)&&c.hasMissingPatterns&&c.patterns.length===0&&(d=!0),d)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Dg=class ZG{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],i=!1;for(let A=0;A<o;A++)if(t.charAt(A)==="\\"&&A+1<o){let c=t.charAt(A+1);c==="z"?(r.push(t.substring(a,A)),r.push("$(?!\\n)(?<!\\n)"),a=A+2):(c==="A"||c==="G")&&(i=!0),A++}this.hasAnchor=i,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=GAe.test(this.source):this.hasBackReferences=!1}clone(){return new ZG(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return LG.lastIndex=0,this.source.replace(LG,(a,r)=>UG(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,i,A,s;for(r=0,i=this.source.length;r<i;r++)A=this.source.charAt(r),t[r]=A,n[r]=A,o[r]=A,a[r]=A,A==="\\"&&r+1<i&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Fg=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new NG(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new NG(e,o,this._items.map(a=>a.ruleId))}},NG=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
75
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let A=i[1];if(t===i[0]){r(i);continue}if(e.external){let c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){r(i);continue}}if(e.metadataRegistry.get(i[0])?.id){r(i);continue}if(A.cycle){r(i);continue}if(A.count>1&&e.reused==="ref"){r(i);continue}}}function KA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=A=>{let s=e.seen.get(A);if(s.ref===null)return;let c=s.def??s.schema,d={...c},l=s.ref;if(s.ref=null,l){o(l);let p=e.seen.get(l),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,d),A._zod.parent===l)for(let B in c)B==="$ref"||B==="allOf"||B in d||delete c[B];if(m.$ref&&p.def)for(let B in c)B==="$ref"||B==="allOf"||B in p.def&&JSON.stringify(c[B])===JSON.stringify(p.def[B])&&delete c[B]}let g=A._zod.parent;if(g&&g!==l){o(g);let p=e.seen.get(g);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let m in c)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(c[m])===JSON.stringify(p.def[m])&&delete c[m]}e.override({zodSchema:A,jsonSchema:c,path:s.path??[]})};for(let A of[...e.seen.entries()].reverse())o(A[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let A=e.external.registry.get(t)?.id;if(!A)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(A)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let i=e.external?.defs??{};for(let A of e.seen.entries()){let s=A[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{let A=JSON.parse(JSON.stringify(a));return Object.defineProperty(A,"~standard",{value:{...t["~standard"],jsonSchema:{input:sd(t,"input",e.processors),output:sd(t,"output",e.processors)}},enumerable:!1,writable:!1}),A}catch{throw new Error("Error converting schema to JSON.")}}function ga(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ga(o.element,n);if(o.type==="set")return ga(o.valueType,n);if(o.type==="lazy")return ga(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ga(o.innerType,n);if(o.type==="intersection")return ga(o.left,n)||ga(o.right,n);if(o.type==="record"||o.type==="map")return ga(o.keyType,n)||ga(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ga(o.in,n)||ga(o.out,n);if(o.type==="object"){for(let a in o.shape)if(ga(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(ga(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(ga(a,n))return!0;return!!(o.rest&&ga(o.rest,n))}return!1}var m_=(e,t={})=>n=>{let o=zA({...n,processors:t});return Te(e,o),YA(o,e),KA(o,e)},sd=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},i=zA({...a??{},target:r,io:t,processors:n});return Te(e,i),YA(i,e),KA(i,e)};var $te={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f_=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:i,format:A,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),A&&(a.format=$te[A]??A,a.format===""&&delete a.format,A==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},b_=(e,t,n,o)=>{let a=n,{minimum:r,maximum:i,format:A,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof A=="string"&&A.includes("int")?a.type="integer":a.type="number";let l=typeof d=="number"&&d>=(r??Number.NEGATIVE_INFINITY),g=typeof c=="number"&&c<=(i??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";l?p?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d:typeof r=="number"&&(a.minimum=r),g?p?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},h_=(e,t,n,o)=>{n.type="boolean"},B_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},y_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},C_=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},w_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},E_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},k_=(e,t,n,o)=>{n.not={}},Q_=(e,t,n,o)=>{},I_=(e,t,n,o)=>{},__=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},v_=(e,t,n,o)=>{let a=e._zod.def,r=sp(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},x_=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){let i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},D_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},F_=(e,t,n,o)=>{let a=n,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},S_=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:A,mime:s}=e._zod.bag;i!==void 0&&(r.minLength=i),A!==void 0&&(r.maxLength=A),s?s.length===1?(r.contentMediaType=s[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(a,r)},L_=(e,t,n,o)=>{n.type="boolean"},R_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},N_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},M_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},j_=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},P_=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:i,maximum:A}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof A=="number"&&(a.maxItems=A),a.type="array",a.items=Te(r.element,t,{...o,path:[...o.path,"items"]})},G_=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let i=r.shape;for(let c in i)a.properties[c]=Te(i[c],t,{...o,path:[...o.path,"properties",c]});let A=new Set(Object.keys(i)),s=new Set([...A].filter(c=>{let d=r.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(a.required=Array.from(s)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=Te(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Sh=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,i=a.options.map((A,s)=>Te(A,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},H_=(e,t,n,o)=>{let a=e._zod.def,r=Te(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=Te(a.right,t,{...o,path:[...o.path,"allOf",1]}),A=c=>"allOf"in c&&Object.keys(c).length===1,s=[...A(r)?r.allOf:[r],...A(i)?i.allOf:[i]];n.allOf=s},T_=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",A=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((g,p)=>Te(g,t,{...o,path:[...o.path,i,p]})),c=r.rest?Te(r.rest,t,{...o,path:[...o.path,A,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));let{minimum:d,maximum:l}=e._zod.bag;typeof d=="number"&&(a.minItems=d),typeof l=="number"&&(a.maxItems=l)},U_=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let i=r.keyType,s=i._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let d=Te(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Te(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=Te(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=i._zod.values;if(c){let d=[...c].filter(l=>typeof l=="string"||typeof l=="number");d.length>0&&(a.required=d)}},O_=(e,t,n,o)=>{let a=e._zod.def,r=Te(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},q_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},z_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Y_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},K_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},J_=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;Te(i,t,o);let A=t.seen.get(e);A.ref=i},W_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Z_=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},Lh=(e,t,n,o)=>{let a=e._zod.def;Te(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},V_=(e,t,n,o)=>{let a=e._zod.innerType;Te(a,t,o);let r=t.seen.get(e);r.ref=a},Fh={string:f_,number:b_,boolean:h_,bigint:B_,symbol:y_,null:C_,undefined:w_,void:E_,never:k_,any:Q_,unknown:I_,date:__,enum:v_,literal:x_,nan:D_,template_literal:F_,file:S_,success:L_,custom:R_,function:N_,transform:$_,map:M_,set:j_,array:P_,object:G_,union:Sh,intersection:H_,tuple:T_,record:U_,nullable:O_,nonoptional:q_,default:z_,prefault:Y_,catch:K_,pipe:J_,readonly:W_,promise:Z_,optional:Lh,lazy:V_};function Rh(e,t){if("_idmap"in e){let o=e,a=zA({...t,processors:Fh}),r={};for(let s of o._idmap.entries()){let[c,d]=s;Te(d,a)}let i={},A={registry:o,uri:t?.uri,defs:r};a.external=A;for(let s of o._idmap.entries()){let[c,d]=s;YA(a,d),i[c]=KA(a,d)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:r}}return{schemas:i}}let n=zA({...t,processors:Fh});return Te(e,n),YA(n,e),KA(n,e)}var Nh=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=zA({processors:Fh,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Te(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),YA(this.ctx,t);let o=KA(this.ctx,t),{"~standard":a,...r}=o;return r}};var fN={};var Ip={};S(Ip,{ZodAny:()=>wv,ZodArray:()=>Iv,ZodBase64:()=>nB,ZodBase64URL:()=>aB,ZodBigInt:()=>fd,ZodBigIntFormat:()=>iB,ZodBoolean:()=>md,ZodCIDRv4:()=>eB,ZodCIDRv6:()=>tB,ZodCUID:()=>Yh,ZodCUID2:()=>Kh,ZodCatch:()=>Kv,ZodCodec:()=>jp,ZodCustom:()=>Pp,ZodCustomStringFormat:()=>pd,ZodDate:()=>Lp,ZodDefault:()=>Tv,ZodDiscriminatedUnion:()=>vv,ZodE164:()=>oB,ZodEmail:()=>Oh,ZodEmoji:()=>qh,ZodEnum:()=>dd,ZodExactOptional:()=>Pv,ZodFile:()=>Mv,ZodFunction:()=>ox,ZodGUID:()=>vp,ZodIPv4:()=>Vh,ZodIPv6:()=>Xh,ZodIntersection:()=>xv,ZodJWT:()=>rB,ZodKSUID:()=>Zh,ZodLazy:()=>tx,ZodLiteral:()=>$v,ZodMAC:()=>mv,ZodMap:()=>Rv,ZodNaN:()=>Wv,ZodNanoID:()=>zh,ZodNever:()=>kv,ZodNonOptional:()=>lB,ZodNull:()=>yv,ZodNullable:()=>Hv,ZodNumber:()=>gd,ZodNumberFormat:()=>Ks,ZodObject:()=>Np,ZodOptional:()=>dB,ZodPipe:()=>Mp,ZodPrefault:()=>Ov,ZodPreprocess:()=>Zv,ZodPromise:()=>ax,ZodReadonly:()=>Vv,ZodRecord:()=>ud,ZodSet:()=>Nv,ZodString:()=>ld,ZodStringFormat:()=>At,ZodSuccess:()=>Yv,ZodSymbol:()=>hv,ZodTemplateLiteral:()=>ex,ZodTransform:()=>jv,ZodTuple:()=>Fv,ZodType:()=>fe,ZodULID:()=>Jh,ZodURL:()=>Sp,ZodUUID:()=>Tr,ZodUndefined:()=>Bv,ZodUnion:()=>$p,ZodUnknown:()=>Ev,ZodVoid:()=>Qv,ZodXID:()=>Wh,ZodXor:()=>_v,_ZodString:()=>Uh,_default:()=>Uv,_function:()=>Q$,any:()=>n$,array:()=>Rp,base64:()=>PN,base64url:()=>GN,bigint:()=>ZN,boolean:()=>bv,catch:()=>Jv,check:()=>I$,cidrv4:()=>MN,cidrv6:()=>jN,codec:()=>C$,cuid:()=>xN,cuid2:()=>DN,custom:()=>_$,date:()=>o$,describe:()=>v$,discriminatedUnion:()=>u$,e164:()=>HN,email:()=>BN,emoji:()=>_N,enum:()=>cB,exactOptional:()=>Gv,file:()=>b$,float32:()=>YN,float64:()=>KN,function:()=>Q$,guid:()=>yN,hash:()=>zN,hex:()=>qN,hostname:()=>ON,httpUrl:()=>IN,instanceof:()=>D$,int:()=>Hh,int32:()=>JN,int64:()=>VN,intersection:()=>Dv,invertCodec:()=>w$,ipv4:()=>RN,ipv6:()=>$N,json:()=>S$,jwt:()=>TN,keyof:()=>r$,ksuid:()=>LN,lazy:()=>nx,literal:()=>f$,looseObject:()=>s$,looseRecord:()=>l$,mac:()=>NN,map:()=>p$,meta:()=>x$,nan:()=>y$,nanoid:()=>vN,nativeEnum:()=>m$,never:()=>AB,nonoptional:()=>zv,null:()=>Cv,nullable:()=>Dp,nullish:()=>h$,number:()=>fv,object:()=>i$,optional:()=>xp,partialRecord:()=>d$,pipe:()=>Th,prefault:()=>qv,preprocess:()=>L$,promise:()=>k$,readonly:()=>Xv,record:()=>Lv,refine:()=>rx,set:()=>g$,strictObject:()=>A$,string:()=>_p,stringFormat:()=>UN,stringbool:()=>F$,success:()=>B$,superRefine:()=>ix,symbol:()=>e$,templateLiteral:()=>E$,transform:()=>uB,tuple:()=>Sv,uint32:()=>WN,uint64:()=>XN,ulid:()=>FN,undefined:()=>t$,union:()=>sB,unknown:()=>Ys,url:()=>QN,uuid:()=>CN,uuidv4:()=>wN,uuidv6:()=>EN,uuidv7:()=>kN,void:()=>a$,xid:()=>SN,xor:()=>c$});var $h={};S($h,{endsWith:()=>ed,gt:()=>Gr,gte:()=>pa,includes:()=>Vu,length:()=>zs,lowercase:()=>Wu,lt:()=>Pr,lte:()=>io,maxLength:()=>qs,maxSize:()=>qA,mime:()=>td,minLength:()=>Hi,minSize:()=>Hr,multipleOf:()=>OA,negative:()=>_h,nonnegative:()=>xh,nonpositive:()=>vh,normalize:()=>nd,overwrite:()=>er,positive:()=>Ih,property:()=>Dh,regex:()=>Ju,size:()=>Os,slugify:()=>id,startsWith:()=>Xu,toLowerCase:()=>od,toUpperCase:()=>rd,trim:()=>ad,uppercase:()=>Zu});var cd={};S(cd,{ZodISODate:()=>jh,ZodISODateTime:()=>Mh,ZodISODuration:()=>Gh,ZodISOTime:()=>Ph,date:()=>ev,datetime:()=>X_,duration:()=>nv,time:()=>tv});var Mh=k("ZodISODateTime",(e,t)=>{DQ.init(e,t),At.init(e,t)});function X_(e){return RI(Mh,e)}var jh=k("ZodISODate",(e,t)=>{FQ.init(e,t),At.init(e,t)});function ev(e){return NI(jh,e)}var Ph=k("ZodISOTime",(e,t)=>{SQ.init(e,t),At.init(e,t)});function tv(e){return $I(Ph,e)}var Gh=k("ZodISODuration",(e,t)=>{LQ.init(e,t),At.init(e,t)});function nv(e){return MI(Gh,e)}var bN=(e,t)=>{pp.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>mp(e,n)},flatten:{value:n=>gp(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Gu,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Gu,2)}},isEmpty:{get(){return e.issues.length===0}}})},jte=k("ZodError",bN),Ha=k("ZodError",bN,{Parent:Error});var av=Uu(Ha),ov=Ou(Ha),rv=qu(Ha),iv=zu(Ha),Av=Rb(Ha),sv=Nb(Ha),cv=$b(Ha),uv=Mb(Ha),dv=jb(Ha),lv=Pb(Ha),pv=Gb(Ha),gv=Hb(Ha);var hN=new WeakMap;function Fp(e,t,n){let o=Object.getPrototypeOf(e),a=hN.get(o);if(a||(a=new Set,hN.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let A=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A}),A},set(A){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:A})}})}}}var fe=k("ZodType",(e,t)=>(ce.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:sd(e,"input"),output:sd(e,"output")}}),e.toJSONSchema=m_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>av(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>rv(e,n,o),e.parseAsync=async(n,o)=>ov(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>iv(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Av(e,n,o),e.decode=(n,o)=>sv(e,n,o),e.encodeAsync=async(n,o)=>cv(e,n,o),e.decodeAsync=async(n,o)=>uv(e,n,o),e.safeEncode=(n,o)=>dv(e,n,o),e.safeDecode=(n,o)=>lv(e,n,o),e.safeEncodeAsync=async(n,o)=>pv(e,n,o),e.safeDecodeAsync=async(n,o)=>gv(e,n,o),Fp(e,"ZodType",{check(...n){let o=this.def;return this.clone(G.mergeDefs(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return da(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(rx(n,o))},superRefine(n,o){return this.check(ix(n,o))},overwrite(n){return this.check(er(n))},optional(){return xp(this)},exactOptional(){return Gv(this)},nullable(){return Dp(this)},nullish(){return xp(Dp(this))},nonoptional(n){return zv(this,n)},array(){return Rp(this)},or(n){return sB([this,n])},and(n){return Dv(this,n)},transform(n){return Th(this,uB(n))},default(n){return Uv(this,n)},prefault(n){return qv(this,n)},catch(n){return Jv(this,n)},pipe(n){return Th(this,n)},readonly(){return Xv(this)},describe(n){let o=this.clone();return Pn.add(o,{description:n}),o},meta(...n){if(n.length===0)return Pn.get(this);let o=this.clone();return Pn.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Pn.get(e)?.description},configurable:!0}),e)),Uh=k("_ZodString",(e,t)=>{Us.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>f_(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Fp(e,"_ZodString",{regex(...o){return this.check(Ju(...o))},includes(...o){return this.check(Vu(...o))},startsWith(...o){return this.check(Xu(...o))},endsWith(...o){return this.check(ed(...o))},min(...o){return this.check(Hi(...o))},max(...o){return this.check(qs(...o))},length(...o){return this.check(zs(...o))},nonempty(...o){return this.check(Hi(1,...o))},lowercase(o){return this.check(Wu(o))},uppercase(o){return this.check(Zu(o))},trim(){return this.check(ad())},normalize(...o){return this.check(nd(...o))},toLowerCase(){return this.check(od())},toUpperCase(){return this.check(rd())},slugify(){return this.check(id())}})}),ld=k("ZodString",(e,t)=>{Us.init(e,t),Uh.init(e,t),e.email=n=>e.check(ih(Oh,n)),e.url=n=>e.check(Qp(Sp,n)),e.jwt=n=>e.check(Qh(rB,n)),e.emoji=n=>e.check(dh(qh,n)),e.guid=n=>e.check(kp(vp,n)),e.uuid=n=>e.check(Ah(Tr,n)),e.uuidv4=n=>e.check(sh(Tr,n)),e.uuidv6=n=>e.check(ch(Tr,n)),e.uuidv7=n=>e.check(uh(Tr,n)),e.nanoid=n=>e.check(lh(zh,n)),e.guid=n=>e.check(kp(vp,n)),e.cuid=n=>e.check(ph(Yh,n)),e.cuid2=n=>e.check(gh(Kh,n)),e.ulid=n=>e.check(mh(Jh,n)),e.base64=n=>e.check(wh(nB,n)),e.base64url=n=>e.check(Eh(aB,n)),e.xid=n=>e.check(fh(Wh,n)),e.ksuid=n=>e.check(bh(Zh,n)),e.ipv4=n=>e.check(hh(Vh,n)),e.ipv6=n=>e.check(Bh(Xh,n)),e.cidrv4=n=>e.check(yh(eB,n)),e.cidrv6=n=>e.check(Ch(tB,n)),e.e164=n=>e.check(kh(oB,n)),e.datetime=n=>e.check(X_(n)),e.date=n=>e.check(ev(n)),e.time=n=>e.check(tv(n)),e.duration=n=>e.check(nv(n))});function _p(e){return DI(ld,e)}var At=k("ZodStringFormat",(e,t)=>{it.init(e,t),Uh.init(e,t)}),Oh=k("ZodEmail",(e,t)=>{CQ.init(e,t),At.init(e,t)});function BN(e){return ih(Oh,e)}var vp=k("ZodGUID",(e,t)=>{BQ.init(e,t),At.init(e,t)});function yN(e){return kp(vp,e)}var Tr=k("ZodUUID",(e,t)=>{yQ.init(e,t),At.init(e,t)});function CN(e){return Ah(Tr,e)}function wN(e){return sh(Tr,e)}function EN(e){return ch(Tr,e)}function kN(e){return uh(Tr,e)}var Sp=k("ZodURL",(e,t)=>{wQ.init(e,t),At.init(e,t)});function QN(e){return Qp(Sp,e)}function IN(e){return Qp(Sp,{protocol:ro.httpProtocol,hostname:ro.domain,...G.normalizeParams(e)})}var qh=k("ZodEmoji",(e,t)=>{EQ.init(e,t),At.init(e,t)});function _N(e){return dh(qh,e)}var zh=k("ZodNanoID",(e,t)=>{kQ.init(e,t),At.init(e,t)});function vN(e){return lh(zh,e)}var Yh=k("ZodCUID",(e,t)=>{QQ.init(e,t),At.init(e,t)});function xN(e){return ph(Yh,e)}var Kh=k("ZodCUID2",(e,t)=>{IQ.init(e,t),At.init(e,t)});function DN(e){return gh(Kh,e)}var Jh=k("ZodULID",(e,t)=>{_Q.init(e,t),At.init(e,t)});function FN(e){return mh(Jh,e)}var Wh=k("ZodXID",(e,t)=>{vQ.init(e,t),At.init(e,t)});function SN(e){return fh(Wh,e)}var Zh=k("ZodKSUID",(e,t)=>{xQ.init(e,t),At.init(e,t)});function LN(e){return bh(Zh,e)}var Vh=k("ZodIPv4",(e,t)=>{RQ.init(e,t),At.init(e,t)});function RN(e){return hh(Vh,e)}var mv=k("ZodMAC",(e,t)=>{$Q.init(e,t),At.init(e,t)});function NN(e){return SI(mv,e)}var Xh=k("ZodIPv6",(e,t)=>{NQ.init(e,t),At.init(e,t)});function $N(e){return Bh(Xh,e)}var eB=k("ZodCIDRv4",(e,t)=>{MQ.init(e,t),At.init(e,t)});function MN(e){return yh(eB,e)}var tB=k("ZodCIDRv6",(e,t)=>{jQ.init(e,t),At.init(e,t)});function jN(e){return Ch(tB,e)}var nB=k("ZodBase64",(e,t)=>{GQ.init(e,t),At.init(e,t)});function PN(e){return wh(nB,e)}var aB=k("ZodBase64URL",(e,t)=>{HQ.init(e,t),At.init(e,t)});function GN(e){return Eh(aB,e)}var oB=k("ZodE164",(e,t)=>{TQ.init(e,t),At.init(e,t)});function HN(e){return kh(oB,e)}var rB=k("ZodJWT",(e,t)=>{UQ.init(e,t),At.init(e,t)});function TN(e){return Qh(rB,e)}var pd=k("ZodCustomStringFormat",(e,t)=>{OQ.init(e,t),At.init(e,t)});function UN(e,t,n={}){return Ad(pd,e,t,n)}function ON(e){return Ad(pd,"hostname",ro.hostname,e)}function qN(e){return Ad(pd,"hex",ro.hex,e)}function zN(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=ro[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return Ad(pd,o,a,t)}var gd=k("ZodNumber",(e,t)=>{Wb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>b_(e,o,a,r),Fp(e,"ZodNumber",{gt(o,a){return this.check(Gr(o,a))},gte(o,a){return this.check(pa(o,a))},min(o,a){return this.check(pa(o,a))},lt(o,a){return this.check(Pr(o,a))},lte(o,a){return this.check(io(o,a))},max(o,a){return this.check(io(o,a))},int(o){return this.check(Hh(o))},safe(o){return this.check(Hh(o))},positive(o){return this.check(Gr(0,o))},nonnegative(o){return this.check(pa(0,o))},negative(o){return this.check(Pr(0,o))},nonpositive(o){return this.check(io(0,o))},multipleOf(o,a){return this.check(OA(o,a))},step(o,a){return this.check(OA(o,a))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function fv(e){return jI(gd,e)}var Ks=k("ZodNumberFormat",(e,t)=>{qQ.init(e,t),gd.init(e,t)});function Hh(e){return GI(Ks,e)}function YN(e){return HI(Ks,e)}function KN(e){return TI(Ks,e)}function JN(e){return UI(Ks,e)}function WN(e){return OI(Ks,e)}var md=k("ZodBoolean",(e,t)=>{Bp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>h_(e,n,o,a)});function bv(e){return qI(md,e)}var fd=k("ZodBigInt",(e,t)=>{Zb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>B_(e,o,a,r),e.gte=(o,a)=>e.check(pa(o,a)),e.min=(o,a)=>e.check(pa(o,a)),e.gt=(o,a)=>e.check(Gr(o,a)),e.gte=(o,a)=>e.check(pa(o,a)),e.min=(o,a)=>e.check(pa(o,a)),e.lt=(o,a)=>e.check(Pr(o,a)),e.lte=(o,a)=>e.check(io(o,a)),e.max=(o,a)=>e.check(io(o,a)),e.positive=o=>e.check(Gr(BigInt(0),o)),e.negative=o=>e.check(Pr(BigInt(0),o)),e.nonpositive=o=>e.check(io(BigInt(0),o)),e.nonnegative=o=>e.check(pa(BigInt(0),o)),e.multipleOf=(o,a)=>e.check(OA(o,a));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function ZN(e){return YI(fd,e)}var iB=k("ZodBigIntFormat",(e,t)=>{zQ.init(e,t),fd.init(e,t)});function VN(e){return JI(iB,e)}function XN(e){return WI(iB,e)}var hv=k("ZodSymbol",(e,t)=>{YQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>y_(e,n,o,a)});function e$(e){return ZI(hv,e)}var Bv=k("ZodUndefined",(e,t)=>{KQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>w_(e,n,o,a)});function t$(e){return VI(Bv,e)}var yv=k("ZodNull",(e,t)=>{JQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>C_(e,n,o,a)});function Cv(e){return XI(yv,e)}var wv=k("ZodAny",(e,t)=>{WQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Q_(e,n,o,a)});function n$(){return e_(wv)}var Ev=k("ZodUnknown",(e,t)=>{ZQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>I_(e,n,o,a)});function Ys(){return t_(Ev)}var kv=k("ZodNever",(e,t)=>{VQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>k_(e,n,o,a)});function AB(e){return n_(kv,e)}var Qv=k("ZodVoid",(e,t)=>{XQ.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>E_(e,n,o,a)});function a$(e){return a_(Qv,e)}var Lp=k("ZodDate",(e,t)=>{eI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>__(e,o,a,r),e.min=(o,a)=>e.check(pa(o,a)),e.max=(o,a)=>e.check(io(o,a));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function o$(e){return o_(Lp,e)}var Iv=k("ZodArray",(e,t)=>{tI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>P_(e,n,o,a),e.element=t.element,Fp(e,"ZodArray",{min(n,o){return this.check(Hi(n,o))},nonempty(n){return this.check(Hi(1,n))},max(n,o){return this.check(qs(n,o))},length(n,o){return this.check(zs(n,o))},unwrap(){return this.element}})});function Rp(e,t){return A_(Iv,e,t)}function r$(e){let t=e._zod.def.shape;return cB(Object.keys(t))}var Np=k("ZodObject",(e,t)=>{nI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>G_(e,n,o,a),G.defineLazy(e,"shape",()=>t.shape),Fp(e,"ZodObject",{keyof(){return cB(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ys()})},loose(){return this.clone({...this._zod.def,catchall:Ys()})},strict(){return this.clone({...this._zod.def,catchall:AB()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return G.extend(this,n)},safeExtend(n){return G.safeExtend(this,n)},merge(n){return G.merge(this,n)},pick(n){return G.pick(this,n)},omit(n){return G.omit(this,n)},partial(...n){return G.partial(dB,this,n[0])},required(...n){return G.required(lB,this,n[0])}})});function i$(e,t){let n={type:"object",shape:e??{},...G.normalizeParams(t)};return new Np(n)}function A$(e,t){return new Np({type:"object",shape:e,catchall:AB(),...G.normalizeParams(t)})}function s$(e,t){return new Np({type:"object",shape:e,catchall:Ys(),...G.normalizeParams(t)})}var $p=k("ZodUnion",(e,t)=>{yp.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sh(e,n,o,a),e.options=t.options});function sB(e,t){return new $p({type:"union",options:e,...G.normalizeParams(t)})}var _v=k("ZodXor",(e,t)=>{$p.init(e,t),aI.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sh(e,n,o,a),e.options=t.options});function c$(e,t){return new _v({type:"union",options:e,inclusive:!1,...G.normalizeParams(t)})}var vv=k("ZodDiscriminatedUnion",(e,t)=>{$p.init(e,t),oI.init(e,t)});function u$(e,t,n){return new vv({type:"union",options:t,discriminator:e,...G.normalizeParams(n)})}var xv=k("ZodIntersection",(e,t)=>{rI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>H_(e,n,o,a)});function Dv(e,t){return new xv({type:"intersection",left:e,right:t})}var Fv=k("ZodTuple",(e,t)=>{Vb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>T_(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Sv(e,t,n){let o=t instanceof ce,a=o?n:t,r=o?t:null;return new Fv({type:"tuple",items:e,rest:r,...G.normalizeParams(a)})}var ud=k("ZodRecord",(e,t)=>{iI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>U_(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function Lv(e,t,n){return!t||!t._zod?new ud({type:"record",keyType:_p(),valueType:e,...G.normalizeParams(t)}):new ud({type:"record",keyType:e,valueType:t,...G.normalizeParams(n)})}function d$(e,t,n){let o=da(e);return o._zod.values=void 0,new ud({type:"record",keyType:o,valueType:t,...G.normalizeParams(n)})}function l$(e,t,n){return new ud({type:"record",keyType:e,valueType:t,mode:"loose",...G.normalizeParams(n)})}var Rv=k("ZodMap",(e,t)=>{AI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>M_(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(qA(...n)),e.size=(...n)=>e.check(Os(...n))});function p$(e,t,n){return new Rv({type:"map",keyType:e,valueType:t,...G.normalizeParams(n)})}var Nv=k("ZodSet",(e,t)=>{sI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>j_(e,n,o,a),e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(qA(...n)),e.size=(...n)=>e.check(Os(...n))});function g$(e,t){return new Nv({type:"set",valueType:e,...G.normalizeParams(t)})}var dd=k("ZodEnum",(e,t)=>{cI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(o,a,r)=>v_(e,o,a,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{let r={};for(let i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new dd({...t,checks:[],...G.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new dd({...t,checks:[],...G.normalizeParams(a),entries:r})}});function cB(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new dd({type:"enum",entries:n,...G.normalizeParams(t)})}function m$(e,t){return new dd({type:"enum",entries:e,...G.normalizeParams(t)})}var $v=k("ZodLiteral",(e,t)=>{uI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>x_(e,n,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function f$(e,t){return new $v({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(t)})}var Mv=k("ZodFile",(e,t)=>{dI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>S_(e,n,o,a),e.min=(n,o)=>e.check(Hr(n,o)),e.max=(n,o)=>e.check(qA(n,o)),e.mime=(n,o)=>e.check(td(Array.isArray(n)?n:[n],o))});function b$(e){return s_(Mv,e)}var jv=k("ZodTransform",(e,t)=>{lI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$_(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new PA(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(G.issue(r,n.value,t));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(G.issue(i))}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function uB(e){return new jv({type:"transform",transform:e})}var dB=k("ZodOptional",(e,t)=>{Xb.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function xp(e){return new dB({type:"optional",innerType:e})}var Pv=k("ZodExactOptional",(e,t)=>{pI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Lh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Gv(e){return new Pv({type:"optional",innerType:e})}var Hv=k("ZodNullable",(e,t)=>{gI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>O_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Dp(e){return new Hv({type:"nullable",innerType:e})}function h$(e){return xp(Dp(e))}var Tv=k("ZodDefault",(e,t)=>{mI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>z_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Uv(e,t){return new Tv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var Ov=k("ZodPrefault",(e,t)=>{fI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Y_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function qv(e,t){return new Ov({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var lB=k("ZodNonOptional",(e,t)=>{bI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>q_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function zv(e,t){return new lB({type:"nonoptional",innerType:e,...G.normalizeParams(t)})}var Yv=k("ZodSuccess",(e,t)=>{hI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>L_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function B$(e){return new Yv({type:"success",innerType:e})}var Kv=k("ZodCatch",(e,t)=>{BI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>K_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jv(e,t){return new Kv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Wv=k("ZodNaN",(e,t)=>{yI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>D_(e,n,o,a)});function y$(e){return i_(Wv,e)}var Mp=k("ZodPipe",(e,t)=>{eh.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>J_(e,n,o,a),e.in=t.in,e.out=t.out});function Th(e,t){return new Mp({type:"pipe",in:e,out:t})}var jp=k("ZodCodec",(e,t)=>{Mp.init(e,t),Cp.init(e,t)});function C$(e,t,n){return new jp({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function w$(e){let t=e._zod.def;return new jp({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Zv=k("ZodPreprocess",(e,t)=>{Mp.init(e,t),CI.init(e,t)}),Vv=k("ZodReadonly",(e,t)=>{wI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>W_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Xv(e){return new Vv({type:"readonly",innerType:e})}var ex=k("ZodTemplateLiteral",(e,t)=>{EI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>F_(e,n,o,a)});function E$(e,t){return new ex({type:"template_literal",parts:e,...G.normalizeParams(t)})}var tx=k("ZodLazy",(e,t)=>{II.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>V_(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function nx(e){return new tx({type:"lazy",getter:e})}var ax=k("ZodPromise",(e,t)=>{QI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Z_(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function k$(e){return new ax({type:"promise",innerType:e})}var ox=k("ZodFunction",(e,t)=>{kI.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>N_(e,n,o,a)});function Q$(e){return new ox({type:"function",input:Array.isArray(e?.input)?Sv(e?.input):e?.input??Rp(Ys()),output:e?.output??Ys()})}var Pp=k("ZodCustom",(e,t)=>{_I.init(e,t),fe.init(e,t),e._zod.processJSONSchema=(n,o,a)=>R_(e,n,o,a)});function I$(e){let t=new lt({check:"custom"});return t._zod.check=e,t}function _$(e,t){return c_(Pp,e??(()=>!0),t)}function rx(e,t={}){return u_(Pp,e,t)}function ix(e,t){return d_(e,t)}var v$=l_,x$=p_;function D$(e,t={}){let n=new Pp({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...G.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var F$=(...e)=>g_({Codec:jp,Boolean:md,String:ld},...e);function S$(e){let t=nx(()=>sB([_p(e),fv(),bv(),Cv(),Rp(t),Lv(_p(),t)]));return t}function L$(e,t){return new Zv({type:"pipe",in:uB(e),out:t})}var Gte={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Hte(e){Ht({customError:e})}function Tte(){return Ht().customError}var Ax;Ax||(Ax={});var W={...Ip,...$h,iso:cd},Ute=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Ote(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function qte(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let a=n[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function R$(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return W.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return W.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let r=qte(a,t),i=Xn(r,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return W.null();if(a.length===0)return W.never();if(a.length===1)return W.literal(a[0]);if(a.every(i=>typeof i=="string"))return W.enum(a);let r=a.map(i=>W.literal(i));return r.length<2?r[0]:W.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return W.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let i={...e,type:r};return R$(i,t)});return a.length===0?W.never():a.length===1?a[0]:W.union(a)}if(!n)return W.any();let o;switch(n){case"string":{let a=W.string();if(e.format){let r=e.format;r==="email"?a=a.check(W.email()):r==="uri"||r==="uri-reference"?a=a.check(W.url()):r==="uuid"||r==="guid"?a=a.check(W.uuid()):r==="date-time"?a=a.check(W.iso.datetime()):r==="date"?a=a.check(W.iso.date()):r==="time"?a=a.check(W.iso.time()):r==="duration"?a=a.check(W.iso.duration()):r==="ipv4"?a=a.check(W.ipv4()):r==="ipv6"?a=a.check(W.ipv6()):r==="mac"?a=a.check(W.mac()):r==="cidr"?a=a.check(W.cidrv4()):r==="cidr-v6"?a=a.check(W.cidrv6()):r==="base64"?a=a.check(W.base64()):r==="base64url"?a=a.check(W.base64url()):r==="e164"?a=a.check(W.e164()):r==="jwt"?a=a.check(W.jwt()):r==="emoji"?a=a.check(W.emoji()):r==="nanoid"?a=a.check(W.nanoid()):r==="cuid"?a=a.check(W.cuid()):r==="cuid2"?a=a.check(W.cuid2()):r==="ulid"?a=a.check(W.ulid()):r==="xid"?a=a.check(W.xid()):r==="ksuid"&&(a=a.check(W.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),o=a;break}case"number":case"integer":{let a=n==="integer"?W.number().int():W.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),o=a;break}case"boolean":{o=W.boolean();break}case"null":{o=W.null();break}case"object":{let a={},r=e.properties||{},i=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let d=Xn(c,t);a[s]=i.has(s)?d:d.optional()}if(e.propertyNames){let s=Xn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Xn(e.additionalProperties,t):W.any();if(Object.keys(a).length===0){o=W.record(s,c);break}let d=W.object(a).passthrough(),l=W.looseRecord(s,c);o=W.intersection(d,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let g of c){let p=Xn(s[g],t),m=W.string().regex(new RegExp(g));d.push(W.looseRecord(m,p))}let l=[];if(Object.keys(a).length>0&&l.push(W.object(a).passthrough()),l.push(...d),l.length===0)o=W.object({}).passthrough();else if(l.length===1)o=l[0];else{let g=W.intersection(l[0],l[1]);for(let p=2;p<l.length;p++)g=W.intersection(g,l[p]);o=g}break}let A=W.object(a);e.additionalProperties===!1?o=A.strict():typeof e.additionalProperties=="object"?o=A.catchall(Xn(e.additionalProperties,t)):o=A.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let i=a.map(s=>Xn(s,t)),A=r&&typeof r=="object"&&!Array.isArray(r)?Xn(r,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(Array.isArray(r)){let i=r.map(s=>Xn(s,t)),A=e.additionalItems&&typeof e.additionalItems=="object"?Xn(e.additionalItems,t):void 0;A?o=W.tuple(i).rest(A):o=W.tuple(i),typeof e.minItems=="number"&&(o=o.check(W.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(W.maxLength(e.maxItems)))}else if(r!==void 0){let i=Xn(r,t),A=W.array(i);typeof e.minItems=="number"&&(A=A.min(e.minItems)),typeof e.maxItems=="number"&&(A=A.max(e.maxItems)),o=A}else o=W.array(W.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function Xn(e,t){if(typeof e=="boolean")return e?W.any():W.never();let n=R$(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let A=e.anyOf.map(c=>Xn(c,t)),s=W.union(A);n=o?W.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let A=e.oneOf.map(c=>Xn(c,t)),s=W.xor(A);n=o?W.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:W.any();else{let A=o?n:Xn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)A=W.intersection(A,Xn(e.allOf[c],t));n=A}e.nullable===!0&&t.version==="openapi-3.0"&&(n=W.nullable(n)),e.readOnly===!0&&(n=W.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let A of r)A in e&&(a[A]=e[A]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let A of i)A in e&&(a[A]=e[A]);for(let A of Object.keys(e))Ute.has(A)||(a[A]=e[A]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function N$(e,t){if(typeof e=="boolean")return e?W.any():W.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Ote(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Pn};return Xn(n,r)}var sx={};S(sx,{bigint:()=>Jte,boolean:()=>Kte,date:()=>Wte,number:()=>Yte,string:()=>zte});function zte(e){return FI(ld,e)}function Yte(e){return PI(gd,e)}function Kte(e){return zI(md,e)}function Jte(e){return KI(fd,e)}function Wte(e){return r_(Lp,e)}Ht(th());var Zte=u.object({input:u.number().finite().nonnegative().optional(),output:u.number().finite().nonnegative().optional(),cacheRead:u.number().finite().nonnegative().optional(),cacheWrite:u.number().finite().nonnegative().optional(),total:u.number().finite().nonnegative().optional()}).strict(),$$=u.object({inputTokens:u.number().int().nonnegative().optional(),outputTokens:u.number().int().nonnegative().optional(),cachedInputTokens:u.number().int().nonnegative().optional(),cacheCreationTokens:u.number().int().nonnegative().optional(),reasoningTokens:u.number().int().nonnegative().optional(),totalTokens:u.number().int().nonnegative().optional(),cost:Zte.optional()}).strict();var I=Symbol.for("drizzle:entityKind");function cn(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,I))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(I in n&&n[I]===t[I])return!0;n=Object.getPrototypeOf(n)}return!1}var Js=class{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[I]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}};var pB=class{static[I]="ColumnBuilder";config;constructor(t,n,o){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:o,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}};var Ui=Symbol.for("drizzle:Name");var gB=class{static[I]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{let{name:o,columns:a,foreignColumns:r}=t();return{name:o,columns:a,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new cx(t,this)}},cx=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[I]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(A=>A.name),r=o.map(A=>A.name),i=[this.table[Ui],...a,o[0].table[Ui],...r];return t??`${i.join("_")}_fk`}};function mB(e,...t){return e(...t)}function lx(e,t){return`${e[Ui]}_${t.join("_")}_unique`}var ux=class{constructor(t,n){this.name=n,this.columns=t}static[I]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new dx(t,this.columns,this.nullsNotDistinctConfig,this.name)}},M$=class{static[I]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new ux(t,this.name)}},dx=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??lx(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[I]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function j$(e,t,n){for(let o=t;o<e.length;o++){let a=e[o];if(a==="\\"){o++;continue}if(a==='"')return[e.slice(t,o).replace(/\\/g,""),o+1];if(!n&&(a===","||a==="}"))return[e.slice(t,o).replace(/\\/g,""),o]}return[e.slice(t).replace(/\\/g,""),e.length]}function P$(e,t=0){let n=[],o=t,a=!1;for(;o<e.length;){let r=e[o];if(r===","){(a||o===t)&&n.push(""),a=!0,o++;continue}if(a=!1,r==="\\"){o+=2;continue}if(r==='"'){let[s,c]=j$(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=P$(e,o+1);n.push(s),o=c;continue}let[i,A]=j$(e,o,!1);n.push(i),o=A}return[n,o]}function G$(e){let[t]=P$(e,1);return t}function px(e){return`{${e.map(t=>Array.isArray(t)?px(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var V=class extends pB{foreignKeyConfigs=[];static[I]="PgColumnBuilder";array(t){return new mx(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:o,actions:a})=>mB((r,i)=>{let A=new gB(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return i.onUpdate&&A.onUpdate(i.onUpdate),i.onDelete&&A.onDelete(i.onDelete),A.build(n)},o,a))}buildExtraConfigColumn(t){return new gx(t,this.config)}},q=class extends Js{constructor(t,n){n.uniqueName||(n.uniqueName=lx(t,[n.name])),super(t,n),this.table=t}static[I]="PgColumn"},gx=class extends q{static[I]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}},bd=class{static[I]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},mx=class extends V{static[I]="PgArrayBuilder";constructor(t,n,o){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=o}build(t){let n=this.config.baseBuilder.build(t);return new fx(t,this.config,n)}},fx=class e extends q{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[I]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=G$(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:cn(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:px(o)}};var H$=class extends V{static[I]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new bx(t,this.config)}},bx=class extends q{static[I]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},T$=Symbol.for("drizzle:isPgEnum");function O$(e){return!!e&&typeof e=="function"&&T$ in e&&e[T$]===!0}var U$=class extends V{static[I]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new hx(t,this.config)}},hx=class extends q{static[I]="PgEnumColumn";enum=this.config.enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}};var hd=class{static[I]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},q$=class extends hd{static[I]="WithSubquery"};var z$="0.45.2";var Bx,yx,Y$={startActiveSpan(e,t){return Bx?(yx||(yx=Bx.trace.getTracer("drizzle-orm",z$)),mB((n,o)=>o.startActiveSpan(e,a=>{try{return t(a)}catch(r){throw a.setStatus({code:n.SpanStatusCode.ERROR,message:r instanceof Error?r.message:"Unknown error"}),r}finally{a.end()}}),Bx,yx)):t()}};var Bd=Symbol.for("drizzle:ViewBaseConfig");var Cx=Symbol.for("drizzle:Schema"),K$=Symbol.for("drizzle:Columns"),J$=Symbol.for("drizzle:ExtraConfigColumns"),wx=Symbol.for("drizzle:OriginalName"),Ex=Symbol.for("drizzle:BaseName"),Gp=Symbol.for("drizzle:IsAlias"),W$=Symbol.for("drizzle:ExtraConfigBuilder"),Vte=Symbol.for("drizzle:IsDrizzleTable"),Kt=class{static[I]="Table";static Symbol={Name:Ui,Schema:Cx,OriginalName:wx,Columns:K$,ExtraConfigColumns:J$,BaseName:Ex,IsAlias:Gp,ExtraConfigBuilder:W$};[Ui];[wx];[Cx];[K$];[J$];[Ex];[Gp]=!1;[Vte]=!0;[W$]=void 0;constructor(t,n,o){this[Ui]=this[wx]=t,this[Cx]=n,this[Ex]=o}};var Z$=class{static[I]="FakePrimitiveParam"};function Xte(e){return e!=null&&typeof e.getSQL=="function"}function ene(e){let t={sql:"",params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}var Ao=class{static[I]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new Jt([this])}},Jt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(cn(n,Kt)){let o=n[Kt.Symbol.Schema];this.usedTables.push(o===void 0?n[Kt.Symbol.Name]:o+"."+n[Kt.Symbol.Name])}}static[I]="SQL";decoder=V$;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return Y$.startActiveSpan("drizzle.buildSQL",n=>{let o=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":o.sql,"drizzle.query.params":JSON.stringify(o.params)}),o})}buildQueryFromSourceParams(t,n){let o=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:a,escapeName:r,escapeParam:i,prepareTyping:A,inlineParams:s,paramStartIndex:c}=o;return ene(t.map(d=>{if(cn(d,Ao))return{sql:d.value.join(""),params:[]};if(cn(d,Hp))return{sql:r(d.value),params:[]};if(d===void 0)return{sql:"",params:[]};if(Array.isArray(d)){let l=[new Ao("(")];for(let[g,p]of d.entries())l.push(p),g<d.length-1&&l.push(new Ao(", "));return l.push(new Ao(")")),this.buildQueryFromSourceParams(l,o)}if(cn(d,e))return this.buildQueryFromSourceParams(d.queryChunks,{...o,inlineParams:s||d.shouldInlineParams});if(cn(d,Kt)){let l=d[Kt.Symbol.Schema],g=d[Kt.Symbol.Name];return{sql:l===void 0||d[Gp]?r(g):r(l)+"."+r(g),params:[]}}if(cn(d,Js)){let l=a.getColumnCasing(d);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let g=d.table[Kt.Symbol.Schema];return{sql:d.table[Gp]||g===void 0?r(d.table[Kt.Symbol.Name])+"."+r(l):r(g)+"."+r(d.table[Kt.Symbol.Name])+"."+r(l),params:[]}}if(cn(d,kx)){let l=d[Bd].schema,g=d[Bd].name;return{sql:l===void 0||d[Bd].isAlias?r(g):r(l)+"."+r(g),params:[]}}if(cn(d,fB)){if(cn(d.value,Tp))return{sql:i(c.value++,d),params:[d],typings:["none"]};let l=d.value===null?null:d.encoder.mapToDriverValue(d.value);if(cn(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let g=["none"];return A&&(g=[A(d.encoder)]),{sql:i(c.value++,l),params:[l],typings:g}}return cn(d,Tp)?{sql:i(c.value++,d),params:[d],typings:["none"]}:cn(d,e.Aliased)&&d.fieldAlias!==void 0?{sql:r(d.fieldAlias),params:[]}:cn(d,hd)?d._.isWith?{sql:r(d._.alias),params:[]}:this.buildQueryFromSourceParams([new Ao("("),d._.sql,new Ao(") "),new Hp(d._.alias)],o):O$(d)?d.schema?{sql:r(d.schema)+"."+r(d.enumName),params:[]}:{sql:r(d.enumName),params:[]}:Xte(d)?d.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([d.getSQL()],o):this.buildQueryFromSourceParams([new Ao("("),d.getSQL(),new Ao(")")],o):s?{sql:this.mapInlineParam(d,o),params:[]}:{sql:i(c.value++,d),params:[d],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){let o=t.toString();return n(o==="[object Object]"?JSON.stringify(t):o)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new e.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}},Hp=class{constructor(t){this.value=t}static[I]="Name";brand;getSQL(){return new Jt([this])}};var V$={mapFromDriverValue:e=>e},X$={mapToDriverValue:e=>e},E0e={...V$,...X$},fB=class{constructor(t,n=X$){this.value=t,this.encoder=n}static[I]="Param";brand;getSQL(){return new Jt([this])}};function yd(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Ao(e[0]));for(let[o,a]of t.entries())n.push(a,new Ao(e[o+1]));return new Jt(n)}(e=>{function t(){return new Jt([])}e.empty=t;function n(s){return new Jt(s)}e.fromList=n;function o(s){return new Jt([new Ao(s)])}e.raw=o;function a(s,c){let d=[];for(let[l,g]of s.entries())l>0&&c!==void 0&&d.push(c),d.push(g);return new Jt(d)}e.join=a;function r(s){return new Hp(s)}e.identifier=r;function i(s){return new Tp(s)}e.placeholder=i;function A(s,c){return new fB(s,c)}e.param=A})(yd||(yd={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[I]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Jt||(Jt={}));var Tp=class{constructor(t){this.name=t}static[I]="Placeholder";getSQL(){return new Jt([this])}};var tne=Symbol.for("drizzle:IsDrizzleView"),kx=class{static[I]="View";[Bd];[tne]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[Bd]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new Jt([this])}};Js.prototype.getSQL=function(){return new Jt([this])};Kt.prototype.getSQL=function(){return new Jt([this])};hd.prototype.getSQL=function(){return new Jt([this])};function Fe(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var Q0e=typeof TextDecoder>"u"?null:new TextDecoder;var Oi=class extends V{static[I]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){let{name:n,...o}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:o}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}};var Qx=class extends Oi{static[I]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new Ix(t,this.config)}},Ix=class extends q{static[I]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},_x=class extends Oi{static[I]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new vx(t,this.config)}},vx=class extends q{static[I]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function eM(e,t){let{name:n,config:o}=Fe(e,t);return o.mode==="number"?new Qx(n):new _x(n)}var xx=class extends V{static[I]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new Dx(t,this.config)}},Dx=class extends q{static[I]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},Fx=class extends V{static[I]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new Sx(t,this.config)}},Sx=class extends q{static[I]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function tM(e,t){let{name:n,config:o}=Fe(e,t);return o.mode==="number"?new xx(n):new Fx(n)}var Lx=class extends V{static[I]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new Rx(t,this.config)}},Rx=class extends q{static[I]="PgBoolean";getSQLType(){return"boolean"}};function nM(e){return new Lx(e??"")}var Nx=class extends V{static[I]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new $x(t,this.config)}},$x=class extends q{static[I]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function aM(e,t={}){let{name:n,config:o}=Fe(e,t);return new Nx(n,o)}var Mx=class extends V{static[I]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new jx(t,this.config)}},jx=class extends q{static[I]="PgCidr";getSQLType(){return"cidr"}};function oM(e){return new Mx(e??"")}var Px=class extends V{static[I]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new Gx(t,this.config)}},Gx=class extends q{static[I]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}};function rM(e){return(t,n)=>{let{name:o,config:a}=Fe(t,n);return new Px(o,a,e)}}var Ur=class extends V{static[I]="PgDateColumnBaseBuilder";defaultNow(){return this.default(yd`now()`)}};var Hx=class extends Ur{static[I]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new Tx(t,this.config)}},Tx=class extends q{static[I]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},Ux=class extends Ur{static[I]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new Ox(t,this.config)}},Ox=class extends q{static[I]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function iM(e,t){let{name:n,config:o}=Fe(e,t);return o?.mode==="date"?new Hx(n):new Ux(n)}var qx=class extends V{static[I]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new zx(t,this.config)}},zx=class extends q{static[I]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function AM(e){return new qx(e??"")}var Yx=class extends V{static[I]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new Kx(t,this.config)}},Kx=class extends q{static[I]="PgInet";getSQLType(){return"inet"}};function sM(e){return new Yx(e??"")}var Jx=class extends Oi{static[I]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new Wx(t,this.config)}},Wx=class extends q{static[I]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function cM(e){return new Jx(e??"")}var Zx=class extends V{static[I]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new Vx(t,this.config)}},Vx=class extends q{static[I]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){let t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}};function uM(e,t={}){let{name:n,config:o}=Fe(e,t);return new Zx(n,o)}var Xx=class extends V{static[I]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new eD(t,this.config)}},eD=class extends q{static[I]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function dM(e){return new Xx(e??"")}var tD=class extends V{static[I]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new nD(t,this.config)}},nD=class extends q{static[I]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}};function bB(e){return new tD(e??"")}var aD=class extends V{static[I]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new oD(t,this.config)}},oD=class extends q{static[I]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o),Number.parseFloat(a)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}},rD=class extends V{static[I]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new iD(t,this.config)}},iD=class extends q{static[I]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){let[n,o,a]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(o),c:Number.parseFloat(a)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}};function lM(e,t){let{name:n,config:o}=Fe(e,t);return!o?.mode||o.mode==="tuple"?new aD(n):new rD(n)}var AD=class extends V{static[I]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new sD(t,this.config)}},sD=class extends q{static[I]="PgMacaddr";getSQLType(){return"macaddr"}};function pM(e){return new AD(e??"")}var cD=class extends V{static[I]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new uD(t,this.config)}},uD=class extends q{static[I]="PgMacaddr8";getSQLType(){return"macaddr8"}};function gM(e){return new cD(e??"")}var dD=class extends V{static[I]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new lD(t,this.config)}},lD=class extends q{static[I]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},pD=class extends V{static[I]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new gD(t,this.config)}},gD=class extends q{static[I]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}},mD=class extends V{static[I]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new fD(t,this.config)}},fD=class extends q{static[I]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}};function mM(e,t){let{name:n,config:o}=Fe(e,t),a=o?.mode;return a==="number"?new pD(n,o?.precision,o?.scale):a==="bigint"?new mD(n,o?.precision,o?.scale):new dD(n,o?.precision,o?.scale)}var bD=class extends V{static[I]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new hD(t,this.config)}},hD=class extends q{static[I]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(o)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}},BD=class extends V{static[I]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new yD(t,this.config)}},yD=class extends q{static[I]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){let[n,o]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(o)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}};function fM(e,t){let{name:n,config:o}=Fe(e,t);return!o?.mode||o.mode==="tuple"?new bD(n):new BD(n)}function nne(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function bM(e,t){let n=new ArrayBuffer(8),o=new DataView(n);for(let a=0;a<8;a++)o.setUint8(a,e[t+a]);return o.getFloat64(0,!0)}function CD(e){let t=nne(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let i;if(r&536870912&&(i=a.getUint32(n,o===1),n+=4),(r&65535)===1){let A=bM(t,n);n+=8;let s=bM(t,n);return n+=8,[A,s]}throw new Error("Unsupported geometry type")}var wD=class extends V{static[I]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new ED(t,this.config)}},ED=class extends q{static[I]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return CD(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},kD=class extends V{static[I]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new QD(t,this.config)}},QD=class extends q{static[I]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=CD(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function hM(e,t){let{name:n,config:o}=Fe(e,t);return!o?.mode||o.mode==="tuple"?new wD(n):new kD(n)}var ID=class extends V{static[I]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new _D(t,this.config)}},_D=class extends q{static[I]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function BM(e){return new ID(e??"")}var vD=class extends V{static[I]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new xD(t,this.config)}},xD=class extends q{static[I]="PgSerial";getSQLType(){return"serial"}};function yM(e){return new vD(e??"")}var DD=class extends Oi{static[I]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new FD(t,this.config)}},FD=class extends q{static[I]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function CM(e){return new DD(e??"")}var SD=class extends V{static[I]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new LD(t,this.config)}},LD=class extends q{static[I]="PgSmallSerial";getSQLType(){return"smallserial"}};function wM(e){return new SD(e??"")}var RD=class extends V{static[I]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new ND(t,this.config)}},ND=class extends q{static[I]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function tr(e,t={}){let{name:n,config:o}=Fe(e,t);return new RD(n,o)}var $D=class extends Ur{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[I]="PgTimeBuilder";build(t){return new MD(t,this.config)}},MD=class extends q{static[I]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}};function EM(e,t={}){let{name:n,config:o}=Fe(e,t);return new $D(n,o.withTimezone??!1,o.precision)}var jD=class extends Ur{static[I]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new PD(t,this.config)}},PD=class extends q{static[I]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()},GD=class extends Ur{static[I]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new HD(t,this.config)}},HD=class extends q{static[I]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;let n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){let o=t.getTimezoneOffset(),a=o<=0?"+":"-";return`${n}${a}${Math.floor(Math.abs(o)/60).toString().padStart(2,"0")}`}return n}};function hB(e,t={}){let{name:n,config:o}=Fe(e,t);return o?.mode==="string"?new GD(n,o.withTimezone??!1,o.precision):new jD(n,o?.withTimezone??!1,o?.precision)}var TD=class extends V{static[I]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(yd`gen_random_uuid()`)}build(t){return new UD(t,this.config)}},UD=class extends q{static[I]="PgUUID";getSQLType(){return"uuid"}};function kM(e){return new TD(e??"")}var OD=class extends V{static[I]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new qD(t,this.config)}},qD=class extends q{static[I]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function QM(e,t={}){let{name:n,config:o}=Fe(e,t);return new OD(n,o)}var zD=class extends V{static[I]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new YD(t,this.config)}},YD=class extends q{static[I]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function IM(e,t){let{name:n,config:o}=Fe(e,t);return new zD(n,o)}var KD=class extends V{static[I]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new JD(t,this.config)}},JD=class extends q{static[I]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function _M(e,t){let{name:n,config:o}=Fe(e,t);return new KD(n,o)}var WD=class extends V{static[I]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new ZD(t,this.config)}},ZD=class extends q{static[I]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function vM(e,t){let{name:n,config:o}=Fe(e,t);return new WD(n,o)}var VD=class extends V{static[I]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new XD(t,this.config)}},XD=class extends q{static[I]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}};function xM(e,t){let{name:n,config:o}=Fe(e,t);return new VD(n,o)}function DM(){return{bigint:eM,bigserial:tM,boolean:nM,char:aM,cidr:oM,customType:rM,date:iM,doublePrecision:AM,inet:sM,integer:cM,interval:uM,json:dM,jsonb:bB,line:lM,macaddr:pM,macaddr8:gM,numeric:mM,point:fM,geometry:hM,real:BM,serial:yM,smallint:CM,smallserial:wM,text:tr,time:EM,timestamp:hB,uuid:kM,varchar:QM,bit:IM,halfvec:_M,sparsevec:vM,vector:xM}}var e1=Symbol.for("drizzle:PgInlineForeignKeys"),FM=Symbol.for("drizzle:EnableRLS"),Up=class extends Kt{static[I]="PgTable";static Symbol=Object.assign({},Kt.Symbol,{InlineForeignKeys:e1,EnableRLS:FM});[e1]=[];[FM]=!1;[Kt.Symbol.ExtraConfigBuilder]=void 0;[Kt.Symbol.ExtraConfigColumns]={}};function ane(e,t,n,o,a=e){let r=new Up(e,o,a),i=typeof t=="function"?t(DM()):t,A=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.build(r);return r[e1].push(...g.buildForeignKeys(p,r)),[d,p]})),s=Object.fromEntries(Object.entries(i).map(([d,l])=>{let g=l;g.setName(d);let p=g.buildExtraConfigColumn(r);return[d,p]})),c=Object.assign(r,A);return c[Kt.Symbol.Columns]=A,c[Kt.Symbol.ExtraConfigColumns]=s,n&&(c[Up.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[Up.Symbol.EnableRLS]=!0,c)})}var SM=(e,t,n)=>ane(e,t,n,void 0);var BB=class{constructor(t,n){this.unique=t,this.name=n}static[I]="PgIndexBuilderOn";on(...t){return new Op(t.map(n=>{if(cn(n,Jt))return n;n=n;let o=new bd(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),o}),this.unique,!1,this.name)}onOnly(...t){return new Op(t.map(n=>{if(cn(n,Jt))return n;n=n;let o=new bd(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new Op(n.map(o=>{if(cn(o,Jt))return o;o=o;let a=new bd(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},Op=class{static[I]="PgIndexBuilder";config;constructor(t,n,o,a,r="btree"){this.config={name:a,columns:t,unique:n,only:o,method:r}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new t1(this.config,t)}},t1=class{static[I]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function LM(e){return new BB(!1,e)}function RM(e){return new BB(!0,e)}var NM=e=>hB(e,{withTimezone:!0}),$M=u.enum(["channel","dm","group","local_conversation","thread","web_session"]),P_e=SM("junior_destinations",{id:tr("id").primaryKey(),provider:tr("provider").notNull(),providerTenantId:tr("provider_tenant_id").notNull().default(""),providerDestinationId:tr("provider_destination_id").notNull(),kind:tr("kind").$type().notNull(),parentDestinationId:tr("parent_destination_id"),displayName:tr("display_name"),visibility:tr("visibility").$type().notNull().default("unknown"),metadata:bB("metadata_json"),createdAt:NM("created_at").notNull(),updatedAt:NM("updated_at").notNull()},e=>[RM("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),LM("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function one(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var rne=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(one,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),PM=u.discriminatedUnion("kind",[rne]),U_e=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),ine=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),Ane=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),GM=u.object({details:u.array(Ane).max(100).optional(),icon:ine.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var HM=u.string().regex(/^T[A-Z0-9]+$/),sne=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),TM=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),yB=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),ie=u.string().refine(e=>e.trim().length>0),qi=ie.refine(e=>e===e.trim()),q_e=u.enum(["slack","local"]),UM=u.enum(["public","private"]),cne=u.enum(["public","private"]),OM=u.object({platform:u.literal("slack"),teamId:HM,channelId:sne}).strict(),qM=OM,une=u.object({platform:u.literal("local"),conversationId:TM}).strict(),dne=u.discriminatedUnion("platform",[qM,une]),lne=OM.extend({visibility:UM,messageTs:ie.optional(),threadTs:ie.optional()}).strict(),pne=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:TM}).strict(),gne=u.object({platform:u.literal("web"),visibility:UM,conversationId:qi}).strict(),zM=u.discriminatedUnion("platform",[lne,pne,gne]),mne=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:yB,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:yB,allowedWhen:u.literal("scheduled-task"),taskId:qi}).strict()]),a1={email:ie.optional(),fullName:ie.optional(),userId:yB,userName:ie.optional()},fne=u.object({...a1,platform:u.literal("slack"),teamId:HM}).strict(),bne=u.object({...a1,platform:u.literal("local")}).strict(),hne=u.object({...a1,platform:u.literal("web")}).strict(),Bne=u.object({platform:u.literal("system"),name:yB}).strict(),n1=u.discriminatedUnion("platform",[fne,bne,hne,Bne]),yne=u.object({displayName:ie.optional(),handle:ie.optional(),id:qi,provider:qi,providerSubjectId:qi,providerTenantId:qi.optional()}).strict(),z_e=u.object({displayName:ie.optional(),email:ie.max(320),id:qi,identities:u.array(yne).max(100)}).strict(),Cne=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),wne=u.object({label:qi.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:qi.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),Y_e=u.object({idempotencyKey:ie.pipe(u.string().max(512)),credentialSubject:mne.optional(),destination:qM,destinationVisibility:cne,input:ie.pipe(u.string().max(32e3)),metadata:Cne.optional(),replyAttribution:wne.optional(),source:zM}).strict();var Ene=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),J_e=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),W_e=u.object({kind:Ene,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var kne=4e3,Qne=8e3,MM=32,jM=4e3,Ine=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>MM&&t.addIssue({code:"custom",message:`Resource event data may include at most ${MM} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>jM&&t.addIssue({code:"custom",message:`Resource event data may be at most ${jM} JSON bytes.`})}),qp=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),YM=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),_ne=u.object({type:YM,supportedEvents:u.array(qp).min(1),suggestedEvents:u.array(qp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),V_e=u.object({resourceTypes:u.array(_ne).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var X_e=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(qp).optional(),supportedEvents:u.array(qp),type:YM}).strict(),vne=u.object({eventKey:u.string().min(1),eventType:qp,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,kne)),data:Ine.optional(),untrustedText:u.string().transform(e=>e.slice(0,Qne)).optional()}).strict(),eve=vne.extend({namespace:u.string().min(1)}),xne=u.object({authority:u.enum(["instruction","context"]),actor:n1.optional()}).strict(),Dne=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:xne.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),nve=u.object({completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:dne,actors:u.array(n1),actor:n1.optional(),runId:u.string().min(1),source:zM,transcript:u.array(Dne)}).strict();var ove=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),Fne=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),rve=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:Fne.optional()}).passthrough(),ive=u.enum(["auto","review","approve"]);var sve=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:ie}).strict(),Sne=u.string().regex(/^[a-z][a-z0-9-]*$/),Lne=u.string().regex(/^[a-z][a-z0-9.-]*$/),Rne=u.union([u.literal("read"),u.literal("write")]),KM=u.object({provider:Sne,scope:ie.optional(),type:u.literal("oauth")}).strict(),JM=u.object({displayName:ie.optional(),handle:ie.optional(),id:ie,label:ie.optional(),url:ie.optional()}).strict(),uve=u.object({account:JM.optional(),accessToken:ie,expiresAt:u.number().finite().optional(),refreshToken:ie,refreshTokenExpiresAt:u.number().finite().optional(),scope:ie.optional()}).strict(),dve=u.object({access:Rne,leaseScope:ie.optional(),name:Lne,reason:ie.optional(),requirements:u.array(ie).min(1).optional()}).strict(),Nne=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),$ne=u.object({account:JM.optional(),authorization:KM.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(Nne).min(1)}).strict(),lve=u.discriminatedUnion("type",[u.object({lease:$ne,type:u.literal("lease")}).strict(),u.object({authorization:KM.optional(),message:ie,type:u.literal("needed")}).strict(),u.object({message:ie,type:u.literal("unavailable")}).strict()]);var Mne=ie.max(64).regex(/^[a-z][a-z0-9-]*$/),jne=ie.max(80),Pne=ie.max(500),Gne=u.enum(["primary","profile"]),Hne=u.object({detail:ie.max(500).optional(),label:ie.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:ie.max(120)}).strict(),Tne=u.object({label:ie.max(80),value:ie.max(500)}).strict(),Une=u.object({confirmation:ie.max(500).optional(),href:ie.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:ie.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),One=u.object({actions:u.array(Une).max(4).optional(),description:ie.max(1e3).optional(),id:ie.max(128),metadata:u.array(Tne).max(8).optional(),title:ie.max(4e3)}).strict(),gve=u.object({emptyText:ie.max(500).optional(),metrics:u.array(Hne).max(6).optional(),nextCursor:ie.max(1e3).optional(),records:u.array(One).max(100),searchPlaceholder:ie.max(120).optional(),type:u.literal("list")}).strict(),qne=u.object({description:Pne,id:Mne,label:jne,navigation:Gne,pluginDisplayName:ie.max(200),pluginName:ie.max(100)}).strict(),mve=u.array(qne),fve=u.object({cursor:ie.max(1e3).optional(),filter:ie.max(64).optional(),limit:u.number().int().min(1).max(50),query:u.string().trim().max(200).optional()}).strict();var ZM=u.object({active:u.number(),conversations:u.number(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict();var zne=u.enum(["active","completed","failed"]),Yne=u.enum(["api","internal","scheduler","slack"]),VM=$$,Kne=u.object({conversationId:u.string().min(1)}).strict(),Jne=u.object({limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),Wne=u.object({before:u.string().min(1),limit:u.coerce.number().int().min(1).max(1e3).default(500)}).strict(),Zne=u.object({actorEmail:u.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),Vne=u.object({archived:u.boolean(),lastSeenAt:u.string().datetime()}).strict(),o1=u.object({archived:u.boolean()}).strict(),Xne=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3),visibility:u.enum(["private","public"]).optional()}).strict(),eae=u.object({idempotencyKey:u.string().trim().min(1).max(200),message:u.string().trim().min(1).max(32e3)}).strict(),CB=u.object({conversationId:u.string().min(1),messageId:u.string().min(1),status:u.enum(["accepted","duplicate"])}).strict(),zp=u.object({email:u.string().optional(),fullName:u.string().optional(),slackUserId:u.string().optional(),slackUserName:u.string().optional()}).strict(),XM=u.enum(["defer","interrupt"]),ej=u.object({actorIdentity:zp.optional(),createdAt:u.string().datetime(),delivery:XM,inboundMessageId:u.string().min(1),messageId:u.string().min(1),receivedAt:u.string().datetime(),role:u.literal("user"),source:u.enum(["slack","web"]),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"pending message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted pending messages must not expose actor identity"})}),tj=u.object({authorizationUrl:u.string().url(),completionText:u.string().min(1),label:u.string().min(1)}).strict(),r1=u.object({authorization:tj.optional(),conversationId:u.string().min(1),generatedAt:u.string().datetime(),messages:u.array(ej)}).strict(),nj=u.object({costUsd:u.number().finite().nonnegative(),operations:u.array(u.object({costUsd:u.number().finite().nonnegative(),events:u.number().int().positive(),name:u.string().min(1),namespace:u.string().min(1)}).strict()).min(1)}).strict(),tae=u.object({id:u.string().min(1).optional(),kind:u.enum(["scheduled","event"]),label:u.string().min(1).optional(),title:u.string().min(1).optional()}).strict().superRefine((e,t)=>{!!e.id!=!!e.label&&t.addIssue({code:"custom",message:"sourceTask id and label must both be set or both omitted"})}),Yp=u.object({displayTitle:u.string(),cumulativeDurationMs:u.number(),cumulativeUsage:VM.optional(),auxiliaryCosts:nj.optional(),conversationId:u.string(),isParticipant:u.boolean(),visibility:u.enum(["private","public"]).optional(),status:zne,startedAt:u.string(),lastSeenAt:u.string(),lastProgressAt:u.string(),surface:Yne,actorIdentity:zp.optional(),archivedAt:u.string().optional(),channel:u.string().optional(),channelName:u.string().optional(),channelNameRedacted:u.boolean().optional(),locationId:u.string().optional(),sentryTraceUrl:u.string().optional(),sourceUrl:u.string().url().optional(),traceId:u.string().optional()}).strict(),nae=u.object({type:u.literal("message"),messageId:u.string().min(1),role:u.enum(["assistant","system","user"]),source:u.literal("web").optional(),actorIdentity:zp.optional(),eventType:u.string().min(1).optional(),explicitMention:u.boolean().optional(),text:u.string().optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"message content must be text or explicitly redacted"}),e.redacted&&e.actorIdentity&&t.addIssue({code:"custom",message:"redacted messages must not expose actor identity"})}),aae=u.object({type:u.literal("message_handled"),messageId:u.string().min(1)}).strict(),oae=u.object({toolCallId:u.string().min(1),name:u.string().min(1),status:u.enum(["running","completed","error"]),startedAt:u.string().datetime().optional(),startedSeq:u.number().int().nonnegative().optional(),input:u.unknown().optional(),output:u.unknown().optional()}).strict().superRefine((e,t)=>{e.startedAt===void 0!=(e.startedSeq===void 0)&&t.addIssue({code:"custom",message:"tool start sequence and timestamp must be provided together"})}),aj=u.object({type:u.literal("reasoning"),text:u.string().min(1).optional(),redacted:u.literal(!0).optional()}).strict().superRefine((e,t)=>{e.text===void 0==(e.redacted!==!0)&&t.addIssue({code:"custom",message:"reasoning content must be text or explicitly redacted"})}),rae=u.object({type:u.literal("tool_call"),toolCallId:u.string().min(1)}).strict(),iae=u.object({parts:u.array(u.discriminatedUnion("type",[aj,rae])).min(1)}).strict(),Aae=u.object({type:u.literal("tool_calls"),calls:u.array(oae).min(1),assistant:iae.optional()}).strict().superRefine((e,t)=>{if(!e.assistant)return;let n=new Map;for(let a of e.calls)n.set(a.toolCallId,(n.get(a.toolCallId)??0)+1);let o=new Map;for(let a of e.assistant.parts)a.type==="tool_call"&&o.set(a.toolCallId,(o.get(a.toolCallId)??0)+1);(n.size!==o.size||[...n].some(([a,r])=>o.get(a)!==r))&&t.addIssue({code:"custom",path:["assistant","parts"],message:"assistant tool parts must reference every call exactly once"})}),sae=u.object({type:u.literal("assistant_message"),parts:u.array(aj).min(1)}).strict(),cae=u.discriminatedUnion("state",[u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.enum(["succeeded","no_reply"])}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("started"),inputMessageIds:u.array(u.string().min(1)).min(1).optional()}).strict(),u.object({type:u.literal("turn_lifecycle"),turnId:u.string().min(1),state:u.literal("failed"),failureKind:u.enum(["agent","delivery"])}).strict()]),uae=u.object({type:u.literal("turn_routed"),turnId:u.string().min(1),modelProfile:u.string().min(1),modelId:u.string().min(1),costUsd:u.number().finite().nonnegative().optional(),reasoningLevel:u.string().min(1),confidence:u.number().min(0).max(1).optional(),source:u.enum(["configured","inherited","router"])}).strict(),dae=u.object({type:u.literal("guardian_action_reviewed"),turnId:u.string().min(1),toolCallId:u.string().min(1),toolName:u.string().min(1),decision:u.enum(["allow","ask","deny"]),riskLevel:u.enum(["low","medium","high","critical"]),userAuthorization:u.enum(["high","medium","low","unknown"])}).strict(),lae=u.object({type:u.literal("turn_context"),turnId:u.string().min(1),pluginName:u.string().min(1),kind:u.string().min(1),version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict(),pae=u.object({type:u.literal("structured_event"),namespace:u.string().min(1),name:u.string().min(1),version:u.number().int().positive(),turnId:u.string().min(1).optional(),presentation:GM}).strict(),gae=u.object({type:u.literal("compaction"),modelProfile:u.string().min(1).optional(),modelId:u.string().min(1).optional(),summary:u.string().min(1).optional(),details:u.object({reason:u.literal("capacity"),estimatedInputTokens:u.number().int().nonnegative(),replacementInputTokens:u.number().int().nonnegative().optional(),triggerTokens:u.number().int().nonnegative(),inputLimitTokens:u.number().int().positive(),inputMessageCount:u.number().int().nonnegative(),retainedMessageCount:u.number().int().nonnegative(),summaryChars:u.number().int().nonnegative()}).strict().optional()}).strict(),mae=u.object({type:u.literal("handoff"),modelProfile:u.string().min(1),modelId:u.string().min(1),reasoningLevel:u.string().min(1).optional(),triggeringToolCallId:u.string().min(1).optional(),summary:u.string().min(1).optional()}).strict(),fae=u.object({type:u.literal("subagent"),startedSeq:u.number().int().nonnegative(),startedAt:u.string().datetime(),childConversationId:u.string().min(1),subagentKind:u.string().min(1),parentToolCallId:u.string().min(1).optional(),status:u.enum(["running","completed","error","aborted"])}).strict(),oj=u.discriminatedUnion("type",[nae,aae,sae,Aae,cae,lae,pae,uae,dae,gae,mae,fae]),i1=u.object({seq:u.number().int().nonnegative(),createdAt:u.string().datetime(),data:oj}).strict(),A1=u.discriminatedUnion("status",[u.object({status:u.literal("available")}).strict(),u.object({status:u.literal("redacted"),reason:u.literal("non_public_conversation")}).strict(),u.object({status:u.literal("expired"),expiredAt:u.string().datetime()}).strict()]),bae=u.object({modelId:u.string(),usage:VM}).strict();function rj(e,t){e.eventHistory.status==="expired"&&e.events.length>0&&t.addIssue({code:"custom",path:["events"],message:"expired event history must not contain events"});for(let n=1;n<e.events.length;n+=1)e.events[n].seq<=e.events[n-1].seq&&t.addIssue({code:"custom",path:["events",n,"seq"],message:"report event sequences must be strictly increasing"});for(let[n,o]of e.events.entries())o.data.type==="message"&&(e.eventHistory.status==="redacted"&&o.data.redacted!==!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact messages"}),e.eventHistory.status==="available"&&o.data.redacted===!0&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose messages"})),e.eventHistory.status==="redacted"&&o.data.type==="tool_calls"&&o.data.calls.some(a=>a.input!==void 0||a.output!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact tool payloads"}),e.eventHistory.status==="redacted"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.text!==void 0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"redacted event history must redact assistant messages"}),e.eventHistory.status==="available"&&o.data.type==="assistant_message"&&o.data.parts.some(a=>a.redacted===!0)&&t.addIssue({code:"custom",path:["events",n,"data"],message:"available event history must expose reasoning"}),o.data.type==="tool_calls"&&(e.eventHistory.status==="redacted"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.text!==void 0)||e.eventHistory.status==="available"&&o.data.assistant?.parts.some(a=>a.type==="reasoning"&&a.redacted===!0))&&t.addIssue({code:"custom",path:["events",n,"data","assistant"],message:"assistant reasoning must match event history visibility"})}var s1=Yp.extend({annotations:u.array(PM.and(u.object({plugin:u.string().min(1),createdAt:u.string().datetime(),updatedAt:u.string().datetime()}))).optional(),modelUsage:u.array(bae).optional(),events:u.array(i1),eventHistory:A1,previousCursor:u.string().min(1).optional(),generatedAt:u.string(),sentryConversationUrl:u.string().optional(),sourceTask:tae.optional()}).strict().superRefine(rj),c1=u.object({events:u.array(i1),eventHistory:A1,previousCursor:u.string().min(1).optional(),generatedAt:u.string()}).strict().superRefine(rj),u1=u.object({conversations:u.array(Yp),source:u.literal("conversation_index"),generatedAt:u.string()}).strict(),Cd=u.object({active:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),label:u.string(),costUsd:u.number().optional(),tokens:u.number().optional()}).strict(),hae=u.object({cachedInputTokens:u.number().optional(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),inputTokens:u.number().optional(),tokens:u.number().optional()}).strict(),Bae=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),date:u.string(),deny:u.number(),requests:u.number()}).strict(),yae=u.object({allow:u.number(),ask:u.number(),costUsd:u.number().optional(),deny:u.number(),metricDays:u.array(Bae),requests:u.number()}).strict(),d1=u.object({active:u.number(),cachedInputTokens:u.number().optional(),conversations:u.number(),durationMs:u.number(),failed:u.number(),generatedAt:u.string(),guardian:yae,metricDays:u.array(hae),locations:u.array(Cd),actors:u.array(Cd),source:u.literal("conversation_index"),costUsd:u.number().optional(),inputTokens:u.number().optional(),tokens:u.number().optional(),windowEnd:u.string(),windowStart:u.string()}).strict(),Cae=u.object({email:u.string().trim().min(1)}).strict(),WM=Cd.omit({costUsd:!0}),wae=u.object({active:u.number(),conversations:u.number(),costUsd:u.number().optional(),date:u.string(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),Eae=u.object({activePeople:u.number(),conversations:u.number(),date:u.string()}).strict(),ij=u.object({active:u.number(),activeDays:u.number(),conversations:u.number(),durationMs:u.number(),failed:u.number(),tokens:u.number().optional()}).strict(),Aj=zp.extend({email:u.string().min(1)}).strict(),kae=ij.extend({firstSeenAt:u.string(),lastSeenAt:u.string(),actor:Aj}).strict(),l1=u.object({activityDays:u.array(Eae),generatedAt:u.string(),people:u.array(kae),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),p1=u.object({activityDays:u.array(wae),generatedAt:u.string(),locations:u.array(WM),recentConversations:u.array(Yp),actor:Aj,source:u.literal("conversation_index"),surfaces:u.array(WM),totals:ij,windowEnd:u.string(),windowStart:u.string()}).strict(),g1=u.object({generatedAt:u.string(),sevenDaysUsd:u.number().finite().nonnegative(),source:u.literal("conversation_index"),thirtyDaysUsd:u.number().finite().nonnegative(),windowEnd:u.string(),windowStart:u.string()}).strict(),Qae=u.object({locationId:u.string().min(1)}).strict(),sj=Cd.extend({id:u.string(),firstSeenAt:u.string(),kind:$M,lastSeenAt:u.string(),provider:u.string(),providerDestinationId:u.string(),visibility:u.literal("public")}).strict(),Iae=Cd.extend({actor:zp}).strict(),cj=u.object({date:u.string(),privateConversations:u.number(),publicConversations:u.number()}).strict(),m1=u.object({activityDays:u.array(cj),generatedAt:u.string(),locations:u.array(sj),privateActivity:Cd,source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),f1=sj.extend({activityDays:u.array(ZM),actors:u.array(Iae),generatedAt:u.string(),recentConversations:u.array(Yp),source:u.literal("conversation_index"),windowEnd:u.string(),windowStart:u.string()}).strict(),_ae=u.object({error:u.string().min(1)}).strict(),b1=u.object({id:u.string().uuid(),name:u.string(),tokenSuffix:u.string(),createdAt:u.string().datetime(),expiresAt:u.string().datetime(),lastUsedAt:u.string().datetime().nullable()}).strict(),h1=u.object({tokens:u.array(b1)}).strict(),vae=u.object({name:u.string().trim().min(1).max(80)}).strict(),B1=b1.extend({token:u.string().startsWith("jr_pat_")}).strict(),xae=u.object({id:u.string().uuid()}).strict(),Dae=u.object({revoked:u.literal(!0)}).strict(),Fae=u.object({channelId:u.string().min(1),label:u.string().min(1),teamId:u.string().min(1),visibility:u.enum(["private","public"])}).strict(),uj=u.object({createdAt:u.string().datetime(),createdBy:u.string().min(1),createdByEmail:u.string().trim().email().optional(),destination:Fae,id:u.string().min(1),instruction:u.string().min(1),lastConversationId:u.string().min(1).optional(),lastRunAt:u.string().datetime().optional(),ownedByViewer:u.boolean(),runsLast7Days:u.number().int().nonnegative(),title:u.string().min(1),totalRuns:u.number().int().nonnegative()}),dj=uj.extend({kind:u.literal("scheduled"),nextRunAt:u.string().datetime().optional(),schedule:u.string().min(1),status:u.enum(["active","blocked","completed"])}).strict(),lj=uj.extend({events:u.array(u.string().min(1)).min(1),kind:u.literal("event"),resource:u.string().min(1),source:u.string().min(1),triggerAvailable:u.boolean()}).strict(),y1=u.discriminatedUnion("kind",[dj,lj]),Sae=u.object({date:u.string().min(1),event:u.number().int().nonnegative(),scheduled:u.number().int().nonnegative()}).strict(),C1=u.object({executionDays:u.array(Sae),tasks:u.array(y1),truncated:u.boolean()}).strict(),Lae=u.object({id:u.string().min(1),kind:u.enum(["scheduled","event"])}).strict(),pj=u.enum(["blocked","completed","failed"]),w1=u.object({conversationId:u.string().min(1).optional(),executedAt:u.string().datetime(),executionId:u.string().min(1),status:pj,title:u.string().min(1).optional()}).strict(),gj=u.object({blocked:u.number().int().nonnegative(),completed:u.number().int().nonnegative(),date:u.string().min(1),failed:u.number().int().nonnegative()}).strict(),E1=u.object({executionDays:u.array(gj),executions:u.array(w1),task:y1,truncated:u.boolean()}).strict(),mj=w1.extend({kind:u.enum(["scheduled","event"]),taskId:u.string().min(1),taskTitle:u.string().min(1)}).strict(),k1=u.object({runs:u.array(mj),truncated:u.boolean()}).strict(),fj=u.object({count:u.number().int().nonnegative(),date:u.string(),metric:u.string().min(1),name:u.string().min(1),namespace:u.string().min(1)}).strict(),Rae=u.object({generatedAt:u.string().datetime(),stats:u.array(fj),windowEnd:u.string(),windowStart:u.string()}).strict();var Nae=u.object({status:u.literal("ok"),service:u.string(),timestamp:u.string()}).strict(),bj=u.object({configKeys:u.array(u.string()),description:u.string(),displayName:u.string(),name:u.string()}).strict(),Q1=u.array(bj),I1=u.object({name:u.string(),pluginProvider:u.string().optional()}).strict(),_1=u.array(I1),hj=u.object({dir:u.string(),hasMigrationsDir:u.boolean(),hasSkillsDir:u.boolean(),packageName:u.string()}).strict(),Bj=u.object({packageNames:u.array(u.string()),packages:u.array(hj),manifestRoots:u.array(u.string()),skillRoots:u.array(u.string()),tracingIncludes:u.array(u.string())}).strict(),$ae=u.object({cwd:u.string(),homeDir:u.string(),descriptionText:u.string().optional(),providers:u.array(u.string()),skills:u.array(I1),packagedContent:Bj}).strict(),v1=u.enum(["danger","good","neutral","warning"]),Mae=u.object({label:u.string(),tone:v1.optional(),value:u.string()}).strict(),jae=u.object({key:u.string(),label:u.string()}).strict(),Pae=u.object({id:u.string(),tone:v1.optional(),values:u.record(u.string(),u.string())}).strict(),Gae=u.object({fields:u.array(jae).optional(),emptyText:u.string().optional(),records:u.array(Pae).optional(),title:u.string()}).strict(),Hae=u.object({categories:u.array(u.object({id:u.string().min(1),label:u.string().min(1),values:u.record(u.string(),u.number().finite())}).strict()).max(100),description:u.string().optional(),emptyText:u.string().optional(),id:u.string().min(1),series:u.array(u.object({format:u.literal("usd").optional(),key:u.string().min(1),label:u.string().min(1),tone:v1.optional()}).strict()).min(1).max(8),timeRangeDays:u.array(u.union([u.literal(7),u.literal(30),u.literal(90)])).min(1).max(3).optional(),title:u.string().min(1),type:u.literal("bar_chart")}).strict(),yj=u.object({generatedAt:u.string().optional(),metrics:u.array(Mae).optional(),recordSets:u.array(Gae).optional(),title:u.string().optional(),pluginName:u.string(),widgets:u.array(Hae).max(12).optional()}).strict(),x1=u.object({generatedAt:u.string(),reports:u.array(yj),source:u.literal("plugins")}).strict();function Tae(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var Uae=u.object({kind:u.literal("resource_link"),key:u.string().trim().min(1).max(256),label:u.string().trim().min(1).max(256),url:u.string().url().max(2048).refine(Tae,"URL must use HTTP or HTTPS."),description:u.string().trim().min(1).max(512).optional(),status:u.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),Gve=u.discriminatedUnion("kind",[Uae]),Tve=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/),Oae=u.enum(["activity","brain","calendar","check","database","info","key","link","sparkles","warning"]),qae=u.object({content:u.string().min(1).max(32*1024).optional(),description:u.string().trim().min(1).max(2e3).optional(),metadata:u.array(u.string().trim().min(1).max(120)).max(8).optional(),title:u.string().trim().min(1).max(4e3)}).strict(),Uve=u.object({details:u.array(qae).max(100).optional(),icon:Oae.optional(),preview:u.string().trim().min(1).max(500).optional(),title:u.string().trim().min(1).max(120)}).strict();var Ej=u.string().regex(/^T[A-Z0-9]+$/),zae=u.string().regex(/^(C|G|D)[A-Z0-9]+$/),kj=u.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),wB=u.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),Ae=u.string().refine(e=>e.trim().length>0),zi=Ae.refine(e=>e===e.trim()),qve=u.enum(["slack","local"]),Qj=u.enum(["public","private"]),Yae=u.enum(["public","private"]),Ij=u.object({platform:u.literal("slack"),teamId:Ej,channelId:zae}).strict(),_j=Ij,Kae=u.object({platform:u.literal("local"),conversationId:kj}).strict(),Jae=u.discriminatedUnion("platform",[_j,Kae]),Wae=Ij.extend({visibility:Qj,messageTs:Ae.optional(),threadTs:Ae.optional()}).strict(),Zae=u.object({platform:u.literal("local"),visibility:u.literal("private"),conversationId:kj}).strict(),Vae=u.object({platform:u.literal("web"),visibility:Qj,conversationId:zi}).strict(),vj=u.discriminatedUnion("platform",[Wae,Zae,Vae]),Xae=u.discriminatedUnion("allowedWhen",[u.object({type:u.literal("user"),userId:wB,allowedWhen:u.literal("private-direct-conversation")}).strict(),u.object({type:u.literal("user"),userId:wB,allowedWhen:u.literal("scheduled-task"),taskId:zi}).strict()]),F1={email:Ae.optional(),fullName:Ae.optional(),userId:wB,userName:Ae.optional()},eoe=u.object({...F1,platform:u.literal("slack"),teamId:Ej}).strict(),toe=u.object({...F1,platform:u.literal("local")}).strict(),noe=u.object({...F1,platform:u.literal("web")}).strict(),aoe=u.object({platform:u.literal("system"),name:wB}).strict(),D1=u.discriminatedUnion("platform",[eoe,toe,noe,aoe]),ooe=u.object({displayName:Ae.optional(),handle:Ae.optional(),id:zi,provider:zi,providerSubjectId:zi,providerTenantId:zi.optional()}).strict(),zve=u.object({displayName:Ae.optional(),email:Ae.max(320),id:zi,identities:u.array(ooe).max(100)}).strict(),roe=u.record(u.string(),u.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:u.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),ioe=u.object({label:zi.pipe(u.string().max(48)).refine(e=>!/[\r\n]/.test(e)),detail:zi.pipe(u.string().max(128)).refine(e=>!/[\r\n]/.test(e)).optional()}).strict(),Yve=u.object({idempotencyKey:Ae.pipe(u.string().max(512)),credentialSubject:Xae.optional(),destination:_j,destinationVisibility:Yae,input:Ae.pipe(u.string().max(32e3)),metadata:roe.optional(),replyAttribution:ioe.optional(),source:vj}).strict();var Aoe=u.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),Jve=u.object({text:u.string().trim().min(1).max(8e3)}).strict(),Wve=u.object({kind:Aoe,version:u.number().int().positive(),content:u.record(u.string(),u.unknown())}).strict();var soe=4e3,coe=8e3,Cj=32,wj=4e3,uoe=u.record(u.string(),u.unknown()).superRefine((e,t)=>{Object.keys(e).length>Cj&&t.addIssue({code:"custom",message:`Resource event data may include at most ${Cj} keys.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>wj&&t.addIssue({code:"custom",message:`Resource event data may be at most ${wj} JSON bytes.`})}),Kp=u.string().regex(/^[a-z][a-z0-9_-]*(?:\.[a-z][a-z0-9_-]*)+$/).describe("Canonical dotted event type, such as issue.closed or pull_request.review.changes_requested."),xj=u.string().regex(/^[a-z][a-z0-9_]*$/).describe("Canonical plugin-defined resource type, such as issue or pull_request."),doe=u.object({type:xj,supportedEvents:u.array(Kp).min(1),suggestedEvents:u.array(Kp).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.supportedEvents.forEach((a,r)=>{n.has(a)&&t.addIssue({code:"custom",message:`Duplicate supported resource event type "${a}".`,path:["supportedEvents",r]}),n.add(a)});let o=new Set;e.suggestedEvents?.forEach((a,r)=>{o.has(a)&&t.addIssue({code:"custom",message:`Duplicate suggested resource event type "${a}".`,path:["suggestedEvents",r]}),n.has(a)||t.addIssue({code:"custom",message:`Suggested resource event type "${a}" is not supported.`,path:["suggestedEvents",r]}),o.add(a)})}),Vve=u.object({resourceTypes:u.array(doe).min(1),isEnabled:u.function({input:[],output:u.boolean()}).optional(),normalizeIdentifier:u.function({input:[u.string()],output:u.string()}).optional()}).strict().superRefine((e,t)=>{let n=new Set;e.resourceTypes.forEach((o,a)=>{n.has(o.type)&&t.addIssue({code:"custom",message:`Duplicate resource type "${o.type}".`,path:["resourceTypes",a,"type"]}),n.add(o.type)})});var Xve=u.object({identifier:u.string().min(1),label:u.string().min(1),namespace:u.string().min(1),suggestedEvents:u.array(Kp).optional(),supportedEvents:u.array(Kp),type:xj}).strict(),loe=u.object({eventKey:u.string().min(1),eventType:Kp,identifier:u.string().min(1),occurredAtMs:u.number().finite(),terminal:u.boolean().optional(),trustedSummary:u.string().min(1).transform(e=>e.slice(0,soe)),data:uoe.optional(),untrustedText:u.string().transform(e=>e.slice(0,coe)).optional()}).strict(),exe=loe.extend({namespace:u.string().min(1)}),poe=u.object({authority:u.enum(["instruction","context"]),actor:D1.optional()}).strict(),goe=u.discriminatedUnion("type",[u.object({type:u.literal("message"),role:u.enum(["user","assistant"]),text:u.string().min(1),provenance:poe.optional(),isRunActor:u.boolean().optional()}).strict(),u.object({type:u.literal("toolResult"),toolName:u.string().min(1),isError:u.boolean(),text:u.string().min(1).optional()}).strict()]),nxe=u.object({completedAtMs:u.number().finite(),conversationId:u.string().min(1),destination:Jae,actors:u.array(D1),actor:D1.optional(),runId:u.string().min(1),source:vj,transcript:u.array(goe)}).strict();var oxe=u.discriminatedUnion("type",[u.object({type:u.literal("text"),text:u.string()}).strict(),u.object({type:u.literal("image"),data:u.string(),mimeType:u.string()}).strict()]),moe=u.object({arguments:u.record(u.string(),u.unknown()),reason:u.string().min(1).optional()}).strict(),rxe=u.object({target:u.string().min(1).optional(),truncated:u.boolean().optional(),continuation:moe.optional()}).passthrough(),ixe=u.enum(["auto","review","approve"]);var sxe=u.object({auth:u.object({user:u.object({email:u.string().nullable().optional(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),pluginName:Ae}).strict(),foe=u.string().regex(/^[a-z][a-z0-9-]*$/),boe=u.string().regex(/^[a-z][a-z0-9.-]*$/),hoe=u.union([u.literal("read"),u.literal("write")]),Dj=u.object({provider:foe,scope:Ae.optional(),type:u.literal("oauth")}).strict(),Fj=u.object({displayName:Ae.optional(),handle:Ae.optional(),id:Ae,label:Ae.optional(),url:Ae.optional()}).strict(),uxe=u.object({account:Fj.optional(),accessToken:Ae,expiresAt:u.number().finite().optional(),refreshToken:Ae,refreshTokenExpiresAt:u.number().finite().optional(),scope:Ae.optional()}).strict(),dxe=u.object({access:hoe,leaseScope:Ae.optional(),name:boe,reason:Ae.optional(),requirements:u.array(Ae).min(1).optional()}).strict(),Boe=u.object({domain:u.string().min(1),headers:u.record(u.string(),u.string()).refine(e=>Object.keys(e).length>0)}).strict(),yoe=u.object({account:Fj.optional(),authorization:Dj.optional(),expiresAt:u.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:u.array(Boe).min(1)}).strict(),lxe=u.discriminatedUnion("type",[u.object({lease:yoe,type:u.literal("lease")}).strict(),u.object({authorization:Dj.optional(),message:Ae,type:u.literal("needed")}).strict(),u.object({message:Ae,type:u.literal("unavailable")}).strict()]);var Coe=Ae.max(64).regex(/^[a-z][a-z0-9-]*$/),woe=Ae.max(80),Eoe=Ae.max(500),koe=u.enum(["primary","profile"]),Qoe=u.object({detail:Ae.max(500).optional(),label:Ae.max(80),tone:u.enum(["good","neutral","warning"]).optional(),value:Ae.max(120)}).strict(),Ioe=u.object({label:Ae.max(80),value:Ae.max(500)}).strict(),_oe=u.object({confirmation:Ae.max(500).optional(),href:Ae.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:Ae.max(80),method:u.literal("DELETE"),tone:u.enum(["danger","neutral"]).optional()}).strict(),voe=u.object({actions:u.array(_oe).max(4).optional(),description:Ae.max(1e3).optional(),id:Ae.max(128),metadata:u.array(Ioe).max(8).optional(),title:Ae.max(4e3)}).strict(),Sj=u.object({emptyText:Ae.max(500).optional(),metrics:u.array(Qoe).max(6).optional(),nextCursor:Ae.max(1e3).optional(),records:u.array(voe).max(100),searchPlaceholder:Ae.max(120).optional(),type:u.literal("list")}).strict(),xoe=u.object({description:Eoe,id:Coe,label:woe,navigation:koe,pluginDisplayName:Ae.max(200),pluginName:Ae.max(100)}).strict(),Lj=u.array(xoe),gxe=u.object({cursor:Ae.max(1e3).optional(),filter:Ae.max(64).optional(),limit:u.number().int().min(1).max(50),query:u.string().trim().max(200).optional()}).strict();var EB=u.object({user:u.object({email:u.string().trim().email(),emailVerified:u.boolean().optional(),name:u.string().nullable().optional()}).strict()}).strict(),bxe=u.object({displayName:u.string().trim().min(1).max(80)}).strict(),Rj=u.object({allowedEmailCount:u.number(),allowedGoogleDomainCount:u.number(),authRequired:u.boolean(),authPath:u.string(),basePath:u.string(),componentGallery:u.boolean(),sentryConversationLinks:u.boolean(),timeZone:u.string()}).strict();var nr=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function kB(){if(typeof window>"u")return;let e=window.__JUNIOR_DASHBOARD_BASE_PATH__??"/",t=e==="/"?"/auth/login":`${e}/auth/login`;if(window.location.pathname!==t){let n=`${window.location.pathname}${window.location.search||""}`,o=new URLSearchParams;n!=="/"&&o.set("next",n);let a=o.toString();window.location.assign(a?`${t}?${a}`:t)}}async function QB(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"PATCH"});if(o.status===401&&kB(),!o.ok)throw new nr(t,o.status);return e.parse(await o.json())}async function Jp(e,t,n){let o=await fetch(t,{body:JSON.stringify(n),credentials:"same-origin",headers:{"content-type":"application/json"},method:"POST"});if(o.status===401&&kB(),!o.ok)throw new nr(t,o.status);return e.parse(await o.json())}async function wd(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});if(t.status===401&&kB(),!t.ok)throw new nr(e,t.status)}async function Ze(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:{}});if(o.status===401)throw kB(),new nr(t,o.status);if(!o.ok)throw new nr(t,o.status);return e.parse(await o.json())}var IB=5*6e4,S1=5*6e4,Doe=1e3;function Foe(e,t=Date.now()){if(!e)return S1;let n=Date.parse(e);if(!Number.isFinite(n))return S1;let o=Math.max(0,t-n);return Math.max(Doe,S1-o)}function Nj(){return at({queryKey:["dashboard","core"],queryFn:async({signal:e})=>{let[t,n]=await Promise.all([Ze(EB,"/api/me",e),Ze(Rj,"/api/config",e)]);return{config:n,me:t}},retry:!1,staleTime:IB})}function Soe(){return at({queryKey:["dashboard","plugins"],queryFn:({signal:e})=>Ze(Q1,"/api/plugins",e),retry:!1,staleTime:IB})}function $j(){return at({queryKey:["dashboard","plugin-user-pages"],queryFn:({signal:e})=>Ze(Lj,"/api/user-pages",e),retry:!1,staleTime:IB})}function Mj(){return at({queryKey:["dashboard","conversations","viewer"],queryFn:({signal:e})=>Ze(u1,"/api/conversations",e),retry:!1})}function jj(e){return at({enabled:e,queryKey:["dashboard","tasks"],queryFn:({signal:t})=>Ze(C1,"/api/tasks",t),retry:!1})}function Pj(e){return at({enabled:e,queryKey:["dashboard","tasks","runs"],queryFn:({signal:t})=>Ze(k1,"/api/tasks/runs",t),retry:!1})}function Gj(e,t,n){return at({enabled:e&&!!(t&&n),queryKey:["dashboard","tasks",t,n,"executions"],queryFn:({signal:o})=>Ze(E1,`/api/tasks/${t}/${encodeURIComponent(n)}/executions`,o),retry:!1})}function Hj(){return at({queryKey:["dashboard","people"],queryFn:({signal:e})=>Ze(l1,"/api/people",e),retry:!1})}function Tj(e){return at({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async({signal:t})=>Ze(p1,`/api/people/${encodeURIComponent(e)}`,t),retry:!1})}function Uj(e){return at({enabled:e,queryKey:["dashboard","personal-spend"],queryFn:({signal:t})=>Ze(g1,"/api/people/me/spend",t),refetchInterval:t=>Foe(t.state.data?.generatedAt),retry:!1,staleTime:0})}function Oj(){return at({queryKey:["dashboard","locations"],queryFn:({signal:e})=>Ze(m1,"/api/locations",e),retry:!1})}function qj(e){return at({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async({signal:t})=>Ze(f1,`/api/locations/${encodeURIComponent(e)}`,t),retry:!1})}function Loe(){return at({queryKey:["dashboard","skills"],queryFn:({signal:e})=>Ze(_1,"/api/skills",e),retry:!1,staleTime:IB})}function Roe(){return at({queryKey:["dashboard","plugin-reports"],queryFn:({signal:e})=>Ze(x1,"/api/plugin-reports",e),retry:!1})}function zj(e){let t=Soe(),n=at({queryKey:["dashboard","conversation-stats"],queryFn:({signal:i})=>Ze(d1,"/api/conversations/stats",i),retry:!1}),o=Loe(),a=Roe();return{data:t.data&&o.data?{...e,conversationStatsError:!!n.error,...n.data?{conversationStats:n.data}:{},conversationStatsLoading:n.isPending,pluginReportsError:!!a.error,...a.data?{pluginReports:a.data}:{},pluginReportsLoading:a.isPending,plugins:t.data,skills:o.data}:void 0,error:t.error??o.error,isPending:t.isPending||o.isPending}}var Yj="Junior";function pt(){return typeof window>"u"?Yj:window.__JUNIOR_DASHBOARD_AGENT_NAME__?.trim()||Yj}function Kj(e=pt()){return e.endsWith("s")?`${e}'`:`${e}'s`}var L1=C(E(),1);function _B(){return(0,L1.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,L1.jsx)("img",{alt:"",className:"relative size-11 max-w-none -translate-y-0.5 object-contain opacity-90 drop-shadow-[0_0_7px_rgba(255,255,255,0.16)]",draggable:!1,src:"/_junior/dashboard/avatar.png"})})}var Jj=["relative","overflow-hidden","bg-white/15","before:absolute","before:inset-0","before:content-['']","before:bg-[linear-gradient(90deg,#ff4d6d,#ffb703,#56f39a,#4cc9f0,#9b5de5,#ff4d6d)]","before:bg-[length:200%_100%]","before:animate-[junior-rainbow-flow_1.2s_linear_infinite]","motion-reduce:before:animate-none"].join(" ");function F(...e){return e.filter(Boolean).join(" ")}var In="mx-auto w-full min-w-0 max-w-screen-xl",JA="text-dashboard-text-muted hover:text-dashboard-text";var WA=C(E(),1);function be(e){return(0,WA.jsx)("div",{className:F(In,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,WA.jsxs)("section",{className:"grid w-full max-w-lg grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg border border-white/15 bg-dashboard-surface-raised p-4",children:[(0,WA.jsx)(_B,{}),(0,WA.jsxs)("div",{children:[(0,WA.jsx)("div",{className:"font-bold",children:e.label}),(0,WA.jsx)("div",{"aria-label":e.label,className:`${Jj} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var DB=C(J(),1);var vB=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var Wj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Zj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var R1=e=>{let t=Zj(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Wp=C(J(),1);var xB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Vj=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Ed=C(J(),1);var Noe=(0,Ed.createContext)({});var Xj=()=>(0,Ed.useContext)(Noe);var e7=(0,Wp.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:i,...A},s)=>{let{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:l=!1,color:g="currentColor",className:p=""}=Xj()??{},m=o??l?Number(n??d)*24/Number(t??c):n??d;return(0,Wp.createElement)("svg",{ref:s,...xB,width:t??c??xB.width,height:t??c??xB.height,stroke:e??g,strokeWidth:m,className:vB("lucide",p,a),...!r&&!Vj(A)&&{"aria-hidden":"true"},...A},[...i.map(([h,B])=>(0,Wp.createElement)(h,B)),...Array.isArray(r)?r:[r]])});var L=(e,t)=>{let n=(0,DB.forwardRef)(({className:o,...a},r)=>(0,DB.createElement)(e7,{ref:r,iconNode:t,className:vB(`lucide-${Wj(R1(e))}`,`lucide-${e}`,o),...a}));return n.displayName=R1(e),n};var $oe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ar=L("activity",$oe);var Moe=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],Zp=L("archive-restore",Moe);var joe=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Ws=L("archive",joe);var Poe=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Vp=L("arrow-down-to-line",Poe);var Goe=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],or=L("arrow-left",Goe);var Hoe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Xp=L("arrow-right",Hoe);var Toe=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],eg=L("bookmark",Toe);var Uoe=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Or=L("bot",Uoe);var Ooe=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],so=L("boxes",Ooe);var qoe=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],qr=L("braces",qoe);var zoe=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Yi=L("brain-circuit",zoe);var Yoe=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Zs=L("brain",Yoe);var Koe=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],tg=L("calendar-clock",Koe);var Joe=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ng=L("calendar",Joe);var Woe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vs=L("check",Woe);var Zoe=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ag=L("chevron-down",Zoe);var Voe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],og=L("chevron-left",Voe);var Xoe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ma=L("chevron-right",Xoe);var ere=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],rr=L("circle-alert",ere);var tre=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],rg=L("circle-dashed",tre);var nre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],ig=L("circle-dollar-sign",nre);var are=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Ag=L("circle-dot",are);var ore=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ZA=L("circle-x",ore);var rre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],co=L("clock-3",rre);var ire=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],Xs=L("coins",ire);var Are=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ec=L("copy",Are);var sre=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],VA=L("database",sre);var cre=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],sg=L("diff",cre);var ure=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Gn=L("earth",ure);var dre=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],cg=L("external-link",dre);var lre=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],ug=L("gauge",lre);var pre=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],dg=L("git-merge",pre);var gre=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],lg=L("hash",gre);var mre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pg=L("info",mre);var fre=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ir=L("key-round",fre);var bre=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],XA=L("layers",bre);var hre=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],gg=L("lightbulb",hre);var Bre=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],mg=L("list-checks",Bre);var yre=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],fg=L("link",yre);var Cre=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],fa=L("lock-keyhole",Cre);var wre=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],bg=L("log-out",wre);var Ere=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],tc=L("map-pin",Ere);var kre=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],hg=L("map-pinned",kre);var Qre=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Bg=L("message-square-text",Qre);var Ire=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ba=L("message-square",Ire);var _re=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],yg=L("minimize-2",_re);var vre=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],Cg=L("radio-tower",vre);var xre=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],nc=L("search",xre);var Dre=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ac=L("send",Dre);var Fre=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],wg=L("settings",Fre);var Sre=[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]],Eg=L("sigma",Sre);var Lre=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],kg=L("skip-forward",Lre);var Rre=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ea=L("sparkles",Rre);var Nre=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ta=L("square-pen",Nre);var $re=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Qg=L("timer",$re);var Mre=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ar=L("trash-2",Mre);var jre=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ua=L("triangle-alert",jre);var Pre=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],ha=L("user-round",Pre);var Gre=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],oc=L("users",Gre);var Hre=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ki=L("x",Hre);var li=C(J(),1);var N1=Object.defineProperty,Tre=Object.getOwnPropertyDescriptor,Ure=Object.getOwnPropertyNames,Ore=Object.prototype.hasOwnProperty,n7=(e,t)=>{let n={};for(var o in e)N1(n,o,{get:e[o],enumerable:!0});return t||N1(n,Symbol.toStringTag,{value:"Module"}),n},t7=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Ure(t),r=0,i=a.length,A;r<i;r++)A=a[r],!Ore.call(e,A)&&A!==n&&N1(e,A,{get:(s=>t[s]).bind(null,A),enumerable:!(o=Tre(t,A))||o.enumerable});return e},a7=(e,t,n)=>(t7(e,t,"default"),n&&t7(n,t,"default"));var P1={};S(P1,{createOnigurumaEngine:()=>Aie,getDefaultWasmLoader:()=>iie,loadWasm:()=>r7,setDefaultWasmLoader:()=>rie});var j1=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function qre(){return 2147483648}function zre(){return typeof performance<"u"?performance.now():Date.now()}var Yre=(e,t)=>e+(t-e%t)%t;async function Kre(e){let t,n,o={};function a(p){n=p,o.HEAPU8=new Uint8Array(p),o.HEAPU32=new Uint32Array(p)}function r(p,m,h){o.HEAPU8.copyWithin(p,m,m+h)}function i(p){try{return t.grow(p-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function A(p){let m=o.HEAPU8.length;p=p>>>0;let h=qre();if(p>h)return!1;for(let B=1;B<=4;B*=2){let f=m*(1+.2/B);f=Math.min(f,p+100663296);let b=Math.min(h,Yre(Math.max(p,f),65536));if(i(b))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,m,h=1024){let B=m+h,f=m;for(;p[f]&&!(f>=B);)++f;if(f-m>16&&p.buffer&&s)return s.decode(p.subarray(m,f));let b="";for(;m<f;){let y=p[m++];if(!(y&128)){b+=String.fromCharCode(y);continue}let w=p[m++]&63;if((y&224)===192){b+=String.fromCharCode((y&31)<<6|w);continue}let Q=p[m++]&63;if((y&240)===224?y=(y&15)<<12|w<<6|Q:y=(y&7)<<18|w<<12|Q<<6|p[m++]&63,y<65536)b+=String.fromCharCode(y);else{let v=y-65536;b+=String.fromCharCode(55296|v>>10,56320|v&1023)}}return b}function d(p,m){return p?c(o.HEAPU8,p,m):""}let l={emscripten_get_now:zre,emscripten_memcpy_big:r,emscripten_resize_heap:A,fd_write:()=>0};async function g(){let m=await e({env:l,wasi_snapshot_preview1:l});t=m.memory,a(t.buffer),Object.assign(o,m),o.UTF8ToString=d}return await g(),o}var Jre=Object.defineProperty,Wre=(e,t,n)=>t in e?Jre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t,n)=>Wre(e,typeof t!="symbol"?t+"":t,n),_n=null;function Zre(e){throw new j1(e.UTF8ToString(e.getLastOnigError()))}var SB=class e{constructor(t){Bn(this,"utf16Length"),Bn(this,"utf8Length"),Bn(this,"utf16Value"),Bn(this,"utf8Value"),Bn(this,"utf16OffsetToUtf8"),Bn(this,"utf8OffsetToUtf16");let n=t.length,o=e._utf8ByteLength(t),a=o!==n,r=a?new Uint32Array(n+1):null;a&&(r[n]=o);let i=a?new Uint32Array(o+1):null;a&&(i[o]=n);let A=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let d=t.charCodeAt(c),l=d,g=!1;if(d>=55296&&d<=56319&&c+1<n){let p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(l=(d-55296<<10)+65536|p-56320,g=!0)}a&&(r[c]=s,g&&(r[c+1]=s),l<=127?i[s+0]=c:l<=2047?(i[s+0]=c,i[s+1]=c):l<=65535?(i[s+0]=c,i[s+1]=c,i[s+2]=c):(i[s+0]=c,i[s+1]=c,i[s+2]=c,i[s+3]=c)),l<=127?A[s++]=l:l<=2047?(A[s++]=192|(l&1984)>>>6,A[s++]=128|(l&63)>>>0):l<=65535?(A[s++]=224|(l&61440)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0):(A[s++]=240|(l&1835008)>>>18,A[s++]=128|(l&258048)>>>12,A[s++]=128|(l&4032)>>>6,A[s++]=128|(l&63)>>>0),g&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=A,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),i=r,A=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(r-55296<<10)+65536|s-56320,A=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,A&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},LB=class zr{constructor(t){if(Bn(this,"id",++zr.LAST_ID),Bn(this,"_onigBinding"),Bn(this,"content"),Bn(this,"utf16Length"),Bn(this,"utf8Length"),Bn(this,"utf16OffsetToUtf8"),Bn(this,"utf8OffsetToUtf16"),Bn(this,"ptr"),!_n)throw new j1("Must invoke loadWasm first.");this._onigBinding=_n,this.content=t;let n=new SB(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=_n.omalloc(1e4)),zr._sharedPtrInUse=!0,_n.HEAPU8.set(n.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=n.createString(_n)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Bn(LB,"LAST_ID",0);Bn(LB,"_sharedPtr",0);Bn(LB,"_sharedPtrInUse",!1);var o7=LB,M1=class{constructor(t){if(Bn(this,"_onigBinding"),Bn(this,"_ptr"),!_n)throw new j1("Must invoke loadWasm first.");let n=[],o=[];for(let A=0,s=t.length;A<s;A++){let c=new SB(t[A]);n[A]=c.createString(_n),o[A]=c.utf8Length}let a=_n.omalloc(4*t.length);_n.HEAPU32.set(n,a/4);let r=_n.omalloc(4*t.length);_n.HEAPU32.set(o,r/4);let i=_n.createOnigScanner(a,r,t.length);for(let A=0,s=t.length;A<s;A++)_n.ofree(n[A]);_n.ofree(r),_n.ofree(a),i===0&&Zre(_n),this._onigBinding=_n,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new o7(t);let r=this._findNextMatchSync(t,n,!1,a);return t.dispose(),r}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,o,a){let r=this._onigBinding,i=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;let A=r.HEAPU32,s=i/4,c=A[s++],d=A[s++],l=[];for(let g=0;g<d;g++){let p=t.convertUtf8OffsetToUtf16(A[s++]),m=t.convertUtf8OffsetToUtf16(A[s++]);l[g]={start:p,end:m,length:m-p}}return{index:c,captureIndices:l}}};function Vre(e){return typeof e.instantiator=="function"}function Xre(e){return typeof e.default=="function"}function eie(e){return typeof e.data<"u"}function tie(e){return typeof Response<"u"&&e instanceof Response}function nie(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}var FB;function r7(e){if(FB)return FB;async function t(){_n=await Kre(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),Vre(o)?o=await o.instantiator(n):Xre(o)?o=await o.default(n):(eie(o)&&(o=o.data),tie(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await aie(o)(n):o=await oie(o)(n):nie(o)?o=await $1(o)(n):o instanceof WebAssembly.Module?o=await $1(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await $1(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return FB=t(),FB}function $1(e){return t=>WebAssembly.instantiate(e,t)}function aie(e){return t=>WebAssembly.instantiateStreaming(e,t)}function oie(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var i7;function rie(e){i7=e}function iie(){return i7}async function Aie(e){return e&&await r7(e),{createScanner(t){return new M1(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new o7(t)}}}var G1=n7({});a7(G1,P1);var xG=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(s7(),A7)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(u7(),c7)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(l7(),d7)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(g7(),p7)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(f7(),m7)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(h7(),b7)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(y7(),B7)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(w7(),C7)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(k7(),E7)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>(I7(),Q7)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(v7(),_7)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(D7(),x7)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(S7(),F7)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(R7(),L7)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>($7(),N7)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(j7(),M7)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(G7(),P7)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(T7(),H7)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(O7(),U7)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(z7(),q7)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(K7(),Y7)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(W7(),J7)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(V7(),Z7)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(eP(),X7)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(nP(),tP)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(oP(),aP)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(iP(),rP)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(sP(),AP)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(uP(),cP)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(lP(),dP)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(gP(),pP)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(fP(),mP)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(hP(),bP)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(yP(),BP)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(wP(),CP)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(kP(),EP)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>(IP(),QP)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(vP(),_P)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(DP(),xP)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(SP(),FP)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(RP(),LP)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>($P(),NP)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(jP(),MP)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(GP(),PP)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(TP(),HP)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(OP(),UP)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(zP(),qP)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(KP(),YP)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(WP(),JP)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(VP(),ZP)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(eG(),XP)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(nG(),tG)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(oG(),aG)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(iG(),rG)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(sG(),AG)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(uG(),cG)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(lG(),dG)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(gG(),pG)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(fG(),mG)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(hG(),bG)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(yG(),BG)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(wG(),CG)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(kG(),EG)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(IG(),QG)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(vG(),_G)))}],DG=Object.fromEntries(xG.map(e=>[e.id,e.import]));var Ve=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function BAe(e){return W1(e)}function W1(e){return Array.isArray(e)?yAe(e):e instanceof RegExp?e:typeof e=="object"?CAe(e):e}function yAe(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=W1(e[n]);return t}function CAe(e){let t={};for(let n in e)t[n]=W1(e[n]);return t}function PG(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function GG(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?GG(e.substring(0,e.length-1)):e.substr(~t+1)}var H1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,RB=class{static hasCaptures(e){return e===null?!1:(H1.lastIndex=0,H1.test(e))}static replaceCaptures(e,t,n){return e.replace(H1,(o,a,r,i)=>{let A=n[parseInt(a||r,10)];if(A){let s=t.substring(A.start,A.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function HG(e,t){return e<t?-1:e>t?1:0}function TG(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let a=0;a<n;a++){let r=HG(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function FG(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function UG(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var OG=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},vg=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(kAe(e),t)}static createFromParsedTheme(e,t){return IAe(e,t)}_cachedMatchRoot=new OG(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(a=>wAe(e.parent,a.parentScopes));return o?new qG(o.fontStyle,o.foreground,o.background):null}},T1=class NB{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new NB(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new NB(n,t[o]);return n}push(t){return new NB(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push(o.scopeName),o=o.parent;return o===t?n.reverse():void 0}};function wAe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let o=t[n],a=!1;if(o===">"){if(n===t.length-1)return!1;o=t[++n],a=!0}for(;e&&!EAe(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function EAe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qG=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function kAe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,r=t.length;a<r;a++){let i=t[a];if(!i.settings)continue;let A;if(typeof i.scope=="string"){let l=i.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),A=l.split(",")}else Array.isArray(i.scope)?A=i.scope:A=[""];let s=-1;if(typeof i.settings.fontStyle=="string"){s=0;let l=i.settings.fontStyle.split(" ");for(let g=0,p=l.length;g<p;g++)switch(l[g]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let c=null;typeof i.settings.foreground=="string"&&FG(i.settings.foreground)&&(c=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&FG(i.settings.background)&&(d=i.settings.background);for(let l=0,g=A.length;l<g;l++){let m=A[l].trim().split(" "),h=m[m.length-1],B=null;m.length>1&&(B=m.slice(0,m.length-1),B.reverse()),n[o++]=new QAe(h,B,a,s,c,d)}}return n}var QAe=class{constructor(e,t,n,o,a,r){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=o,this.foreground=a,this.background=r}},Hn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Hn||{});function IAe(e,t){e.sort((s,c)=>{let d=HG(s.scope,c.scope);return d!==0||(d=TG(s.parentScopes,c.parentScopes),d!==0)?d:s.index-c.index});let n=0,o="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let s=e.shift();s.fontStyle!==-1&&(n=s.fontStyle),s.foreground!==null&&(o=s.foreground),s.background!==null&&(a=s.background)}let r=new _Ae(t),i=new qG(n,r.getId(o),r.getId(a)),A=new xAe(new O1(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let d=e[s];A.insert(0,d.scope,d.parentScopes,d.fontStyle,r.getId(d.foreground),r.getId(d.background))}return new vg(r,i,A)}var _Ae=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},vAe=Object.freeze([]),O1=class zG{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||vAe,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new zG(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let o=0,a=t.length;o<a;o++)n[o]=t[o].clone();return n}acceptOverwrite(t,n,o,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),o!==0&&(this.foreground=o),a!==0&&(this.background=a)}},xAe=class q1{constructor(t,n=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let o=0,a=0;for(;t.parentScopes[o]===">"&&o++,n.parentScopes[a]===">"&&a++,!(o>=t.parentScopes.length||a>=n.parentScopes.length);){let r=n.parentScopes[a].length-t.parentScopes[o].length;if(r!==0)return r;o++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),a,r;if(o===-1?(a=t,r=""):(a=t.substring(0,o),r=t.substring(o+1)),this._children.hasOwnProperty(a))return this._children[a].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(q1._cmpBySpecificity),n}insert(t,n,o,a,r,i){if(n===""){this._doInsertHere(t,o,a,r,i);return}let A=n.indexOf("."),s,c;A===-1?(s=n,c=""):(s=n.substring(0,A),c=n.substring(A+1));let d;this._children.hasOwnProperty(s)?d=this._children[s]:(d=new q1(this._mainRule.clone(),O1.cloneArr(this._rulesWithParentScopes)),this._children[s]=d),d.insert(t+1,c,o,a,r,i)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let i=0,A=this._rulesWithParentScopes.length;i<A;i++){let s=this._rulesWithParentScopes[i];if(TG(s.parentScopes,n)===0){s.acceptOverwrite(t,o,a,r);return}}o===-1&&(o=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),r===0&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new O1(t,n,o,a,r))}},ic=class Do{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=Do.getLanguageId(t),o=Do.getTokenType(t),a=Do.getFontStyle(t),r=Do.getForeground(t),i=Do.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,o,a,r,i,A){let s=Do.getLanguageId(t),c=Do.getTokenType(t),d=Do.containsBalancedBrackets(t)?1:0,l=Do.getFontStyle(t),g=Do.getForeground(t),p=Do.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(d=a?1:0),r!==-1&&(l=r),i!==0&&(g=i),A!==0&&(p=A),(s<<0|c<<8|d<<10|l<<11|g<<15|p<<24)>>>0}};function MB(e,t){let n=[],o=DAe(e),a=o.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let c=i();if(n.push({matcher:c,priority:s}),a!==",")break;a=o.next()}return n;function r(){if(a==="-"){a=o.next();let s=r();return c=>!!s&&!s(c)}if(a==="("){a=o.next();let s=A();return a===")"&&(a=o.next()),s}if(SG(a)){let s=[];do s.push(a),a=o.next();while(SG(a));return c=>t(s,c)}return null}function i(){let s=[],c=r();for(;c;)s.push(c),c=r();return d=>s.every(l=>l(d))}function A(){let s=[],c=i();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=i()}return d=>s.some(l=>l(d))}}function SG(e){return!!e&&!!e.match(/[\w\.:]+/)}function DAe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let o=n[0];return n=t.exec(e),o}}}function YG(e){typeof e.dispose=="function"&&e.dispose()}var xg=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},FAe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},SAe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},LAe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new xg(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new SAe;for(let n of e)RAe(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof xg){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function RAe(e,t,n,o){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let r=n.lookup(t);e instanceof xg?$B({baseGrammar:r,selfGrammar:a},o):z1(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let i=n.injections(e.scopeName);if(i)for(let A of i)o.add(new xg(A))}function z1(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];jB([o],t,n)}}function $B(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&jB(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&jB(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function jB(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?PG({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&jB(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let i=KG(r);switch(i.kind){case 0:$B({...t,selfGrammar:t.baseGrammar},n);break;case 1:$B(t,n);break;case 2:z1(i.ruleName,{...t,repository:a},n);break;case 3:case 4:let A=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(A){let s={baseGrammar:t.baseGrammar,selfGrammar:A,repository:a};i.kind===4?z1(i.ruleName,s,n):$B(s,n)}else i.kind===4?n.add(new FAe(i.scopeName,i.ruleName)):n.add(new xg(i.scopeName));break}}}var NAe=class{kind=0},$Ae=class{kind=1},MAe=class{constructor(e){this.ruleName=e}kind=2},jAe=class{constructor(e){this.scopeName=e}kind=3},PAe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function KG(e){if(e==="$base")return new NAe;if(e==="$self")return new $Ae;let t=e.indexOf("#");if(t===-1)return new jAe(e);if(t===0)return new MAe(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new PAe(n,o)}}var GAe=/\\(\d+)/,LG=/\\(\d+)/g;var HAe=-1,JG=-2;var Sg=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=RB.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=RB.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${GG(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:RB.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:RB.replaceCaptures(this._contentName,e,t)}},TAe=class extends Sg{retokenizeCapturedWithRuleId;constructor(e,t,n,o,a){super(e,t,n,o),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,o){throw new Error("Not supported!")}},UAe=class extends Sg{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new Dg(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Fg,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},RG=class extends Sg{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,o),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Fg,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Y1=class extends Sg{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,i,A,s,c){super(e,t,n,o),this._begin=new Dg(a,this.id),this.beginCaptures=r,this._end=new Dg(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=A,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Fg;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},PB=class extends Sg{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,i,A,s){super(e,t,n,o),this._begin=new Dg(a,this.id),this.beginCaptures=r,this.whileCaptures=A,this._while=new Dg(i,JG),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,o){return this._getCachedCompiledPatterns(e).compileAG(e,n,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Fg;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Fg,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},WG=class ta{static createCaptureRule(t,n,o,a,r){return t.registerRule(i=>new TAe(n,i,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new UAe(t.$vscodeTextmateLocation,t.id,t.name,t.match,ta._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=PG({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new RG(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ta._compilePatterns(r,n,o))}return t.while?new PB(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ta._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,ta._compileCaptures(t.whileCaptures||t.captures,n,o),ta._compilePatterns(t.patterns,n,o)):new Y1(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ta._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,ta._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,ta._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10);A>r&&(r=A)}for(let i=0;i<=r;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let A=parseInt(i,10),s=0;t[i].patterns&&(s=ta.getCompiledRuleId(t[i],n,o)),a[A]=ta.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,i=t.length;r<i;r++){let A=t[r],s=-1;if(A.include){let c=KG(A.include);switch(c.kind){case 0:case 1:s=ta.getCompiledRuleId(o[A.include],n,o);break;case 2:let d=o[c.ruleName];d&&(s=ta.getCompiledRuleId(d,n,o));break;case 3:case 4:let l=c.scopeName,g=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(l,o);if(p)if(g){let m=p.repository[g];m&&(s=ta.getCompiledRuleId(m,n,p.repository))}else s=ta.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else s=ta.getCompiledRuleId(A,n,o);if(s!==-1){let c=n.getRule(s),d=!1;if((c instanceof RG||c instanceof Y1||c instanceof PB)&&c.hasMissingPatterns&&c.patterns.length===0&&(d=!0),d)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Dg=class ZG{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],i=!1;for(let A=0;A<o;A++)if(t.charAt(A)==="\\"&&A+1<o){let c=t.charAt(A+1);c==="z"?(r.push(t.substring(a,A)),r.push("$(?!\\n)(?<!\\n)"),a=A+2):(c==="A"||c==="G")&&(i=!0),A++}this.hasAnchor=i,a===0?this.source=t:(r.push(t.substring(a,o)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=GAe.test(this.source):this.hasBackReferences=!1}clone(){return new ZG(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=n.map(a=>t.substring(a.start,a.end));return LG.lastIndex=0,this.source.replace(LG,(a,r)=>UG(o[parseInt(r,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],o=[],a=[],r,i,A,s;for(r=0,i=this.source.length;r<i;r++)A=this.source.charAt(r),t[r]=A,n[r]=A,o[r]=A,a[r]=A,A==="\\"&&r+1<i&&(s=this.source.charAt(r+1),s==="A"?(t[r+1]="\uFFFF",n[r+1]="\uFFFF",o[r+1]="A",a[r+1]="A"):s==="G"?(t[r+1]="\uFFFF",n[r+1]="G",o[r+1]="\uFFFF",a[r+1]="G"):(t[r+1]=s,n[r+1]=s,o[r+1]=s,a[r+1]=s),r++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:o.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Fg=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new NG(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let o=this._items.map(a=>a.resolveAnchors(t,n));return new NG(e,o,this._items.map(a=>a.ruleId))}},NG=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
76
76
  `)}findNextMatchSync(e,t,n){let o=this.scanner.findNextMatchSync(e,t,n);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},U1=class{constructor(e,t){this.languageId=e,this.tokenType=t}},OAe=class K1{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new U1(t,8),this._embeddedLanguagesMatcher=new qAe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?K1._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new U1(0,0);_getBasicScopeAttributes=new OG(t=>{let n=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new U1(n,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(K1.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},qAe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([n,o])=>UG(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},_8e={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},VG=!1,$G=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function XG(e,t,n,o,a,r,i,A){let s=t.content.length,c=!1,d=-1;if(i){let p=zAe(e,t,n,o,a,r);a=p.stack,o=p.linePos,n=p.isFirstLine,d=p.anchorPosition}let l=Date.now();for(;!c;){if(A!==0&&Date.now()-l>A)return new $G(a,!0);g()}return new $G(a,!1);function g(){let p=YAe(e,t,n,o,a,d);if(!p){r.produce(a,s),c=!0;return}let m=p.captureIndices,h=p.matchedRuleId,B=m&&m.length>0?m[0].end>o:!1;if(h===HAe){let f=a.getRule(e);r.produce(a,m[0].start),a=a.withContentNameScopesList(a.nameScopesList),Ig(e,t,n,a,r,f.endCaptures,m),r.produce(a,m[0].end);let b=a;if(a=a.parent,d=b.getAnchorPos(),!B&&b.getEnterPos()===o){a=b,r.produce(a,s),c=!0;return}}else{let f=e.getRule(h);r.produce(a,m[0].start);let b=a,y=f.getName(t.content,m),w=a.contentNameScopesList.pushAttributed(y,e);if(a=a.push(h,o,d,m[0].end===s,null,w,w),f instanceof Y1){let Q=f;Ig(e,t,n,a,r,Q.beginCaptures,m),r.produce(a,m[0].end),d=m[0].end;let v=Q.getContentName(t.content,m),x=w.pushAttributed(v,e);if(a=a.withContentNameScopesList(x),Q.endHasBackReferences&&(a=a.withEndRule(Q.getEndWithResolvedBackReferences(t.content,m))),!B&&b.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(f instanceof PB){let Q=f;Ig(e,t,n,a,r,Q.beginCaptures,m),r.produce(a,m[0].end),d=m[0].end;let v=Q.getContentName(t.content,m),x=w.pushAttributed(v,e);if(a=a.withContentNameScopesList(x),Q.whileHasBackReferences&&(a=a.withEndRule(Q.getWhileWithResolvedBackReferences(t.content,m))),!B&&b.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(Ig(e,t,n,a,r,f.captures,m),r.produce(a,m[0].end),a=a.pop(),!B){a=a.safePop(),r.produce(a,s),c=!0;return}}m[0].end>o&&(o=m[0].end,n=!1)}}function zAe(e,t,n,o,a,r){let i=a.beginRuleCapturedEOL?0:-1,A=[];for(let s=a;s;s=s.pop()){let c=s.getRule(e);c instanceof PB&&A.push({rule:c,stack:s})}for(let s=A.pop();s;s=A.pop()){let{ruleScanner:c,findOptions:d}=WAe(s.rule,e,s.stack.endRule,n,o===i),l=c.findNextMatchSync(t,o,d);if(l){if(l.ruleId!==JG){a=s.stack.pop();break}l.captureIndices&&l.captureIndices.length&&(r.produce(s.stack,l.captureIndices[0].start),Ig(e,t,n,s.stack,r,s.rule.whileCaptures,l.captureIndices),r.produce(s.stack,l.captureIndices[0].end),i=l.captureIndices[0].end,l.captureIndices[0].end>o&&(o=l.captureIndices[0].end,n=!1))}else{a=s.stack.pop();break}}return{stack:a,linePos:o,anchorPosition:i,isFirstLine:n}}function YAe(e,t,n,o,a,r){let i=KAe(e,t,n,o,a,r),A=e.getInjections();if(A.length===0)return i;let s=JAe(A,e,t,n,o,a,r);if(!s)return i;if(!i)return s;let c=i.captureIndices[0].start,d=s.captureIndices[0].start;return d<c||s.priorityMatch&&d===c?s:i}function KAe(e,t,n,o,a,r){let i=a.getRule(e),{ruleScanner:A,findOptions:s}=eH(i,e,a.endRule,n,o===r),c=A.findNextMatchSync(t,o,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function JAe(e,t,n,o,a,r,i){let A=Number.MAX_VALUE,s=null,c,d=0,l=r.contentNameScopesList.getScopeNames();for(let g=0,p=e.length;g<p;g++){let m=e[g];if(!m.matcher(l))continue;let h=t.getRule(m.ruleId),{ruleScanner:B,findOptions:f}=eH(h,t,null,o,a===i),b=B.findNextMatchSync(n,a,f);if(!b)continue;let y=b.captureIndices[0].start;if(!(y>=A)&&(A=y,s=b.captureIndices,c=b.ruleId,d=m.priority,A===a))break}return s?{priorityMatch:d===-1,captureIndices:s,matchedRuleId:c}:null}function eH(e,t,n,o,a){if(VG){let i=e.compile(t,n),A=tH(o,a);return{ruleScanner:i,findOptions:A}}return{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function WAe(e,t,n,o,a){if(VG){let i=e.compileWhile(t,n),A=tH(o,a);return{ruleScanner:i,findOptions:A}}return{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function tH(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Ig(e,t,n,o,a,r,i){if(r.length===0)return;let A=t.content,s=Math.min(r.length,i.length),c=[],d=i[0].end;for(let l=0;l<s;l++){let g=r[l];if(g===null)continue;let p=i[l];if(p.length===0)continue;if(p.start>d)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,p.start):a.produce(o,p.start),g.retokenizeCapturedWithRuleId){let h=g.getName(A,i),B=o.contentNameScopesList.pushAttributed(h,e),f=g.getContentName(A,i),b=B.pushAttributed(f,e),y=o.push(g.retokenizeCapturedWithRuleId,p.start,-1,!1,null,B,b),w=e.createOnigString(A.substring(0,p.end));XG(e,w,n&&p.start===0,p.start,y,a,!1,0),YG(w);continue}let m=g.getName(A,i);if(m!==null){let B=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(m,e);c.push(new ZAe(B,p.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var ZAe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function VAe(e,t,n,o,a,r,i,A){return new ese(e,t,n,o,a,r,i,A)}function MG(e,t,n,o,a){let r=MB(t,GB),i=WG.getCompiledRuleId(n,o,a.repository);for(let A of r)e.push({debugSelector:t,matcher:A.matcher,ruleId:i,grammar:a,priority:A.priority})}function GB(e,t){if(t.length<e.length)return!1;let n=0;return e.every(o=>{for(let a=n;a<t.length;a++)if(XAe(t[a],o))return n=a+1,!0;return!1})}function XAe(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var ese=class{constructor(e,t,n,o,a,r,i,A){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=A,this._basicScopeAttributesProvider=new OAe(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=jG(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let s of Object.keys(a)){let c=MB(s,GB);for(let d of c)this._tokenTypeMatchers.push({matcher:d.matcher,type:a[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,o=e.lookup(n);if(o){let a=o.injections;if(a)for(let i in a)MG(t,i,a[i],this,o);let r=this._grammarRepository.injections(n);r&&r.forEach(i=>{let A=this.getExternalGrammar(i);if(A){let s=A.injectionSelector;s&&MG(t,s,A,this,A)}})}return t.sort((a,r)=>a.priority-r.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=jG(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let o=this._tokenize(e,t,!1,n);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,n=0){let o=this._tokenize(e,t,!0,n);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,n,o){this._rootId===-1&&(this._rootId=WG.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===J1.NULL){a=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),l=ic.set(0,c.languageId,c.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),g=this.getRule(this._rootId).getName(null,null),p;g?p=_g.createRootAndLookUpScopeName(g,l,this):p=_g.createRoot("unknown",l),t=new J1(null,this._rootId,-1,-1,!1,null,p,p)}else a=!1,t.reset();e=e+`
77
77
  `;let r=this.createOnigString(e),i=r.content.length,A=new nse(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=XG(this,r,a,0,t,A,!0,o);return YG(r),{lineLength:i,lineTokens:A,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function jG(e,t){return e=BAe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var _g=class Yr{constructor(t,n,o){this.parent=t,this.scopePath=n,this.tokenAttributes=o}static fromExtension(t,n){let o=t,a=t?.scopePath??null;for(let r of n)a=T1.push(a,r.scopeNames),o=new Yr(o,a,r.encodedTokenAttributes);return o}static createRoot(t,n){return new Yr(null,new T1(null,t),n)}static createRootAndLookUpScopeName(t,n,o){let a=o.getMetadataForScope(t),r=new T1(null,t),i=o.themeProvider.themeMatch(r),A=Yr.mergeAttributes(n,a,i);return new Yr(null,r,A)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Yr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,o){let a=-1,r=0,i=0;return o!==null&&(a=o.fontStyle,r=o.foregroundId,i=o.backgroundId),ic.set(t,n.languageId,n.tokenType,null,a,r,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Yr._pushAttributed(this,t,n);let o=t.split(/ /g),a=this;for(let r of o)a=Yr._pushAttributed(a,r,n);return a}static _pushAttributed(t,n,o){let a=o.getMetadataForScope(n),r=t.scopePath.push(n),i=o.themeProvider.themeMatch(r),A=Yr.mergeAttributes(t.tokenAttributes,a,i);return new Yr(t,r,A)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let n=[],o=this;for(;o&&o!==t;)n.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?n.reverse():void 0}},J1=class rc{constructor(t,n,o,a,r,i,A,s){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=r,this.endRule=i,this.nameScopesList=A,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new rc(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:rc._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?_g.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){rc._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,o,a,r,i,A){return new rc(this,t,n,o,a,r,i,A)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new rc(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let o=_g.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new rc(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,o,_g.fromExtension(o,n.contentNameScopesList))}},tse=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):MB(n,GB).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>MB(n,GB).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},nse=class{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let r=e?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(r)&&(o=ic.set(o,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(r))}if(a&&(o=ic.set(o,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let o=0,a=this._binaryTokens.length;o<a;o++)n[o]=this._binaryTokens[o];return n}},ase=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,o,a){if(!this._grammars.has(e)){let r=this._rawGrammars.get(e);if(!r)return null;this._grammars.set(e,VAe(e,r,t,n,o,a,this,this._onigLib))}return this._grammars.get(e)}},nH=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ase(vg.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(vg.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new tse(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,o,a){let r=new LAe(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(i=>this._loadSingleGrammar(i.scopeName)),r.processQueue();return this._grammarForScopeName(e,t,n,o,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,o)}_grammarForScopeName(e,t=0,n=null,o=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,o,a)}},HB=J1.NULL;function Rg(e,t){let n=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[a,r]of Object.entries(t?.colorReplacements||{}))typeof r=="string"?n[a]=r:a===o&&Object.assign(n,r);return n}function Ji(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function AH(e){return Array.isArray(e)?e:[e]}async function Z1(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ng(e){return!e||["plaintext","txt","text","plain"].includes(e)}function V1(e){return e==="ansi"||Ng(e)}function $g(e){return e==="none"}function X1(e){return $g(e)}var ose=/(\r?\n)/g;function kd(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(ose),o=0,a=[];for(let r=0;r<n.length;r+=2){let i=t?n[r]+(n[r+1]||""):n[r];a.push([i,o]),o+=n[r].length,o+=n[r+1]?.length||0}return a}var aH={light:"#333333",dark:"#bbbbbb"},oH={light:"#fffffe",dark:"#1e1e1e"},rH="__shiki_resolved";function TB(e){if(e?.[rH])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:o}=t;if(!n||!o){let A=t.settings?t.settings.find(s=>!s.name&&!s.scope):void 0;A?.settings?.foreground&&(o=A.settings.foreground),A?.settings?.background&&(n=A.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),o||(o=t.type==="light"?aH.light:aH.dark),n||(n=t.type==="light"?oH.light:oH.dark),t.fg=o,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,r=new Map;function i(A){if(r.has(A))return r.get(A);a+=1;let s=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${s}`]?i(A):(r.set(A,s),s)}t.settings=t.settings.map(A=>{let s=A.settings?.foreground&&!A.settings.foreground.startsWith("#"),c=A.settings?.background&&!A.settings.background.startsWith("#");if(!s&&!c)return A;let d={...A,settings:{...A.settings}};if(s){let l=i(A.settings.foreground);t.colorReplacements[l]=A.settings.foreground,d.settings.foreground=l}if(c){let l=i(A.settings.background);t.colorReplacements[l]=A.settings.background,d.settings.background=l}return d});for(let A of Object.keys(t.colors||{}))if((A==="editor.foreground"||A==="editor.background"||A.startsWith("terminal.ansi"))&&!t.colors[A]?.startsWith("#")){let s=i(t.colors[A]);t.colorReplacements[s]=t.colors[A],t.colors[A]=s}return Object.defineProperty(t,rH,{enumerable:!1,writable:!1,value:!0}),t}async function sH(e){return[...new Set((await Promise.all(e.filter(t=>!V1(t)).map(async t=>await Z1(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function cH(e){return(await Promise.all(e.map(async t=>X1(t)?null:TB(await Z1(t))))).filter(t=>!!t)}function uH(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Ve(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var rse=class extends nH{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,o={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=TB(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=vg.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=uH(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let o=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(a=>{this._alias[a]=e.name}),this._loadedLanguagesCache=null,t.size)for(let a of t)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let o of e)this.resolveEmbeddedLanguages(o);let t=[...this._langGraph.entries()],n=t.filter(([o,a])=>!a);if(n.length){let o=t.filter(([a,r])=>r?(r.embeddedLanguages||r.embeddedLangs)?.some(i=>n.map(([A])=>A).includes(i)):!1).filter(a=>!n.includes(a));throw new Ve(`Missing languages ${n.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[o,a]of t)this._resolver.addLanguage(a);for(let[o,a]of t)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let n of t)this._langGraph.set(n,this._langMap.get(n))}},ise=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let o=1;o<=t.length;o++){let a=t.slice(0,o).join(".");n=[...n,...this._injections.get(a)||[]]}return n}},Lg=0;function eF(e){Lg+=1,e.warnings!==!1&&Lg>=10&&Lg%10===0&&console.warn(`[Shiki] ${Lg} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Ve("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(TB),a=new rse(new ise(e.engine,n),o,n,e.langAlias),r;function i(b){return uH(b,e.langAlias)}function A(b){B();let y=a.getGrammar(typeof b=="string"?b:b.name);if(!y)throw new Ve(`Language \`${b}\` not found, you may need to load it first`);return y}function s(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};B();let y=a.getTheme(b);if(!y)throw new Ve(`Theme \`${b}\` not found, you may need to load it first`);return y}function c(b){B();let y=s(b);return r!==b&&(a.setTheme(y),r=b),{theme:y,colorMap:a.getColorMap()}}function d(){return B(),a.getLoadedThemes()}function l(){return B(),a.getLoadedLanguages()}function g(...b){B(),a.loadLanguages(b.flat(1))}async function p(...b){return g(await sH(b))}function m(...b){B();for(let y of b.flat(1))a.loadTheme(y)}async function h(...b){return B(),m(await cH(b))}function B(){if(t)throw new Ve("Shiki instance has been disposed")}function f(){t||(t=!0,a.dispose(),Lg-=1)}return{setTheme:c,getTheme:s,getLanguage:A,getLoadedThemes:d,getLoadedLanguages:l,resolveLangAlias:i,loadLanguage:p,loadLanguageSync:g,loadTheme:h,loadThemeSync:m,dispose:f,[Symbol.dispose]:f}}async function tF(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,o]=await Promise.all([cH(e.themes||[]),sH(e.langs||[]),e.engine]);return eF({...e,themes:t,langs:n,engine:o})}var dH=new WeakMap;function Mg(e,t){dH.set(e,t)}function Qd(e){return dH.get(e)}var UB=class lH{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new lH(Object.fromEntries(AH(n).map(o=>[o,HB])),t)}constructor(...t){if(t.length===2){let[n,o]=t;this.lang=o,this._stacks=n}else{let[n,o,a]=t;this.lang=o,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Ase(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Ase(e){let t=[],n=new Set;function o(a){if(n.has(a))return;n.add(a);let r=a?.nameScopesList?.scopeName;r&&t.push(r),a.parent&&o(a.parent)}return o(e),t}function sse(e,t){if(!(e instanceof UB))throw new Ve("Invalid grammar state");return e.getInternalStack(t)}var cse=/,/,use=/ /;function nF(e,t,n={}){let{theme:o=e.getLoadedThemes()[0]}=n;if(Ng(e.resolveLangAlias(n.lang||"text"))||$g(o))return kd(t).map(A=>[{content:A[0],offset:A[1]}]);let{theme:a,colorMap:r}=e.setTheme(o),i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new Ve(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(a.name))throw new Ve(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return gH(t,i,a,r,n)}function pH(...e){if(e.length===2)return Qd(e[1]);let[t,n,o={}]=e,{lang:a="text",theme:r=t.getLoadedThemes()[0]}=o;if(Ng(a)||$g(r))throw new Ve("Plain language does not have grammar state");if(a==="ansi")throw new Ve("ANSI language does not have grammar state");let{theme:i,colorMap:A}=t.setTheme(r),s=t.getLanguage(a);return new UB(aF(n,s,i,A,o).stateStack,s.name,i.name)}function gH(e,t,n,o,a){let r=aF(e,t,n,o,a),i=new UB(r.stateStack,t.name,n.name);return Mg(r.tokens,i),r.tokens}function aF(e,t,n,o,a){let r=Rg(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:A=500}=a,s=kd(e),c=a.grammarState?sse(a.grammarState,n.name)??HB:a.grammarContextCode!=null?aF(a.grammarContextCode,t,n,o,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:HB,d=[],l=[];for(let g=0,p=s.length;g<p;g++){let[m,h]=s[g];if(m===""){d=[],l.push([]);continue}if(i>0&&m.length>=i){d=[],l.push([{content:m,offset:h,color:"",fontStyle:0}]);continue}let B,f,b;a.includeExplanation&&(B=t.tokenizeLine(m,c,A),f=B.tokens,b=0);let y=t.tokenizeLine2(m,c,A),w=y.tokens.length/2;for(let Q=0;Q<w;Q++){let v=y.tokens[2*Q],x=Q+1<w?y.tokens[2*Q+2]:m.length;if(v===x)continue;let N=y.tokens[2*Q+1],K=Ji(o[ic.getForeground(N)],r),z=ic.getFontStyle(N),Ee={content:m.substring(v,x),offset:h+v,color:K,fontStyle:z};if(a.includeExplanation){let ue=[];if(a.includeExplanation!=="scopeName")for(let ge of n.settings){let te;switch(typeof ge.scope){case"string":te=ge.scope.split(cse).map(ft=>ft.trim());break;case"object":te=ge.scope;break;default:continue}ue.push({settings:ge,selectors:te.map(ft=>ft.split(use))})}Ee.explanation=[];let ve=0;for(;v+ve<x;){let ge=f[b],te=m.substring(ge.startIndex,ge.endIndex);ve+=te.length,Ee.explanation.push({content:te,scopes:a.includeExplanation==="scopeName"?dse(ge.scopes):lse(ue,ge.scopes)}),b+=1}}d.push(Ee)}l.push(d),d=[],c=y.ruleStack}return{tokens:l,stateStack:c}}function dse(e){return e.map(t=>({scopeName:t}))}function lse(e,t){let n=[];for(let o=0,a=t.length;o<a;o++){let r=t[o];n[o]={scopeName:r,themeMatches:gse(e,r,t.slice(0,o))}}return n}function iH(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function pse(e,t,n){if(!iH(e.at(-1),t))return!1;let o=e.length-2,a=n.length-1;for(;o>=0&&a>=0;)iH(e[o],n[a])&&(o-=1),a-=1;return o===-1}function gse(e,t,n){let o=[];for(let{selectors:a,settings:r}of e)for(let i of a)if(pse(i,t,n)){o.push(r);break}return o}function OB(e,t,n,o=nF){let a=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),r=a.map(c=>{let d=o(e,t,{...n,theme:c.theme});return{tokens:d,state:Qd(d),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),i=mse(...r.map(c=>c.tokens)),A=i[0].map((c,d)=>c.map((l,g)=>{let p={content:l.content,variants:{},offset:l.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=l.explanation),i.forEach((m,h)=>{let{content:B,explanation:f,offset:b,...y}=m[d][g];p.variants[a[h].color]=y}),p})),s=r[0].state?new UB(Object.fromEntries(r.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),r[0].state.lang):void 0;return s&&Mg(A,s),A}function mse(...e){let t=e.map(()=>[]),n=e.length;for(let o=0;o<e[0].length;o++){let a=e.map(s=>s[o]),r=t.map(()=>[]);t.forEach((s,c)=>s.push(r[c]));let i=a.map(()=>0),A=a.map(s=>s[0]);for(;A.every(s=>s);){let s=Math.min(...A.map(c=>c.content.length));for(let c=0;c<n;c++){let d=A[c];d.content.length===s?(r[c].push(d),i[c]+=1,A[c]=a[c][i[c]]):(r[c].push({...d,content:d.content.slice(0,s)}),A[c]={...d,content:d.content.slice(s),offset:d.offset+s})}}}return t}var mH=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Wi=class{constructor(t,n,o){this.normal=n,this.property=t,o&&(this.space=o)}};Wi.prototype.normal={};Wi.prototype.property={};Wi.prototype.space=void 0;function oF(e,t){let n={},o={};for(let a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new Wi(n,o,t)}function jg(e){return e.toLowerCase()}var vn=class{constructor(t,n){this.attribute=n,this.property=t}};vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;var Pg={};S(Pg,{boolean:()=>le,booleanish:()=>Tt,commaOrSpaceSeparated:()=>Oa,commaSeparated:()=>es,number:()=>T,overloadedBoolean:()=>qB,spaceSeparated:()=>Xe});var fse=0,le=Ac(),Tt=Ac(),qB=Ac(),T=Ac(),Xe=Ac(),es=Ac(),Oa=Ac();function Ac(){return 2**++fse}var rF=Object.keys(Pg),sc=class extends vn{constructor(t,n,o,a){let r=-1;if(super(t,n),fH(this,"space",a),typeof o=="number")for(;++r<rF.length;){let i=rF[r];fH(this,rF[r],(o&Pg[i])===Pg[i])}}};sc.prototype.defined=!0;function fH(e,t,n){n&&(e[t]=n)}function Fo(e){let t={},n={};for(let[o,a]of Object.entries(e.properties)){let r=new sc(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(r.mustUseProperty=!0),t[o]=r,n[jg(o)]=o,n[jg(r.attribute)]=o}return new Wi(t,n,e.space)}var iF=Fo({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:Xe,ariaCurrent:null,ariaDescribedBy:Xe,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:Xe,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:Xe,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xe,ariaLevel:T,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:Xe,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:Tt,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function zB(e,t){return t in e?e[t]:t}function YB(e,t){return zB(e,t.toLowerCase())}var bH=Fo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:es,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Xe,autoFocus:le,autoPlay:le,blocking:Xe,capture:null,charSet:null,checked:le,cite:null,className:Xe,cols:T,colSpan:null,content:null,contentEditable:Tt,controls:le,controlsList:Xe,coords:T|es,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:qB,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Xe,height:T,hidden:qB,high:T,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:le,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:T,pattern:null,ping:Xe,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Xe,required:le,reversed:le,rows:T,rowSpan:T,sandbox:Xe,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Tt,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:YB});var hH=Fo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Oa,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:Xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:es,g2:es,glyphName:es,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:Oa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Oa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Oa,rev:Oa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Oa,requiredFeatures:Oa,requiredFonts:Oa,requiredFormats:Oa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:Oa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Oa,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Oa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zB});var AF=Fo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var sF=Fo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:YB});var cF=Fo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var bse=/[A-Z]/g,BH=/-[a-z]/g,hse=/^data[-\w.:]+$/i;function uF(e,t){let n=jg(t),o=t,a=vn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hse.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(BH,yse);o="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!BH.test(r)){let i=r.replace(bse,Bse);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=sc}return new a(o,t)}function Bse(e){return"-"+e.toLowerCase()}function yse(e){return e.charAt(1).toUpperCase()}var yH=oF([iF,bH,AF,sF,cF],"html"),KB=oF([iF,hH,AF,sF,cF],"svg");var CH={}.hasOwnProperty;function wH(e,t){let n=t||{};function o(a,...r){let i=o.invalid,A=o.handlers;if(a&&CH.call(a,e)){let s=String(a[e]);i=CH.call(A,s)?A[s]:o.unknown}if(i)return i.call(this,a,...r)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}var Cse=/["&'<>`]/g,wse=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ese=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kse=/[|\\{}()[\]^$+*?.]/g,EH=new WeakMap;function kH(e,t){if(e=e.replace(t.subset?Qse(t.subset):Cse,o),t.subset||t.escapeOnly)return e;return e.replace(wse,n).replace(Ese,o);function n(a,r,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(r+2),t)}function o(a,r,i){return t.format(a.charCodeAt(0),i.charCodeAt(r+1),t)}}function Qse(e){let t=EH.get(e);return t||(t=Ise(e),EH.set(e,t)),t}function Ise(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(kse,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var _se=/[\dA-Fa-f]/;function QH(e,t,n){let o="&#x"+e.toString(16).toUpperCase();return n&&t&&!_se.test(String.fromCharCode(t))?o:o+";"}var vse=/\d/;function IH(e,t,n){let o="&#"+String(e);return n&&t&&!vse.test(String.fromCharCode(t))?o:o+";"}var _H=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var JB={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var vH=["cent","copy","divide","gt","lt","not","para","times"];var xH={}.hasOwnProperty,dF={},WB;for(WB in JB)xH.call(JB,WB)&&(dF[JB[WB]]=WB);var xse=/[^\dA-Za-z]/;function DH(e,t,n,o){let a=String.fromCharCode(e);if(xH.call(dF,a)){let r=dF[a],i="&"+r;return n&&_H.includes(r)&&!vH.includes(r)&&(!o||t&&t!==61&&xse.test(String.fromCharCode(t)))?i:i+";"}return""}function FH(e,t,n){let o=QH(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=DH(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let r=IH(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function Zi(e,t){return kH(e,Object.assign({format:FH},t))}var Dse=/^>|^->|<!--|-->|--!>|<!-$/g,Fse=[">"],Sse=["<",">"];function SH(e,t,n,o){return o.settings.bogusComments?"<?"+Zi(e.value,Object.assign({},o.settings.characterReferences,{subset:Fse}))+">":"<!--"+e.value.replace(Dse,a)+"-->";function a(r){return Zi(r,Object.assign({},o.settings.characterReferences,{subset:Sse}))}}function LH(e,t,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function lF(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(t);for(;a!==-1;)o++,a=n.indexOf(t,a+t.length);return o}function RH(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function NH(e){return e.join(" ").trim()}var Lse=/[ \t\n\f\r]/g;function cc(e){return typeof e=="object"?e.type==="text"?$H(e.value):!1:$H(e)}function $H(e){return e.replace(Lse,"")===""}var Wt=MH(1),pF=MH(-1),Rse=[];function MH(e){return t;function t(n,o,a){let r=n?n.children:Rse,i=(o||0)+e,A=r[i];if(!a)for(;A&&cc(A);)i+=e,A=r[i];return A}}var Nse={}.hasOwnProperty;function ZB(e){return t;function t(n,o,a){return Nse.call(e,n.tagName)&&e[n.tagName](n,o,a)}}var Gg=ZB({body:Mse,caption:gF,colgroup:gF,dd:Hse,dt:Gse,head:gF,html:$se,li:Pse,optgroup:Tse,option:Use,p:jse,rp:jH,rt:jH,tbody:qse,td:PH,tfoot:zse,th:PH,thead:Ose,tr:Yse});function gF(e,t,n){let o=Wt(n,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&cc(o.value.charAt(0)))}function $se(e,t,n){let o=Wt(n,t);return!o||o.type!=="comment"}function Mse(e,t,n){let o=Wt(n,t);return!o||o.type!=="comment"}function jse(e,t,n){let o=Wt(n,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Pse(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&o.tagName==="li"}function Gse(e,t,n){let o=Wt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Hse(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function jH(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Tse(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function Use(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Ose(e,t,n){let o=Wt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function qse(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function zse(e,t,n){return!Wt(n,t)}function Yse(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&o.tagName==="tr"}function PH(e,t,n){let o=Wt(n,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var GH=ZB({body:Wse,colgroup:Zse,head:Jse,html:Kse,tbody:Vse});function Kse(e){let t=Wt(e,-1);return!t||t.type!=="comment"}function Jse(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let n=e.children[0];return!n||n.type==="element"}function Wse(e){let t=Wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&cc(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Zse(e,t,n){let o=pF(n,t),a=Wt(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&Gg(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Vse(e,t,n){let o=pF(n,t),a=Wt(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Gg(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}var VB={name:[[`
78
78
  \f\r &/=>`.split(""),`
@@ -97,7 +97,7 @@ status ${t.status}`:t.type==="structured_event"?[t.presentation.title,t.presenta
97
97
  ${e}
98
98
  ${o}`}function ime(e){return`${e.join(`
99
99
  `)}
100
- `}function Ame(e){return e.length>0}var wz=C(J(),1);var z8=C(E(),1);function oC(e){let[t,n]=(0,wz.useState)("idle"),o=t==="copied"?"Copied":t==="copying"?"Preparing Markdown":t==="failed"?"Copy failed":"Copy as Markdown",a=t==="copied"?Vs:ec;async function r(){if(e.getMarkdown)try{n("copying"),await navigator.clipboard.writeText(await e.getMarkdown()),n("copied")}catch{n("failed")}}return(0,z8.jsx)(mt,{"aria-label":o,disabled:!e.getMarkdown||t==="copying",onClick:()=>{r()},size:"icon",title:o,children:(0,z8.jsx)(a,{"aria-hidden":"true",size:15,strokeWidth:2})})}var oa=C(E(),1);function Ez(e){return(0,oa.jsxs)("header",{className:"sticky top-0 z-10 -mx-3 mb-2 border-b border-white/[0.07] bg-[#050507]/92 px-3 pb-1.5 pt-3 backdrop-blur md:-mx-7 md:mb-4 md:px-7 md:pb-3 md:pt-5",children:[(0,oa.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 md:items-start md:gap-3",children:[(0,oa.jsxs)("div",{className:"min-w-0",children:[(0,oa.jsxs)("div",{className:"flex min-w-0 items-center gap-x-2 gap-y-1",children:[(0,oa.jsx)("h2",{className:"m-0 line-clamp-1 min-w-0 font-display text-sm font-medium leading-tight tracking-[-0.03em] md:text-2xl",children:e.title}),e.live?(0,oa.jsx)("span",{"aria-label":"Conversation is live",className:"inline-flex size-2 shrink-0 rounded-full bg-emerald-300 md:hidden",title:"Live"}):null,(0,oa.jsx)("span",{className:"hidden md:inline-flex",children:e.privacy})]}),(0,oa.jsxs)("div",{className:"mt-1 hidden min-w-0 gap-0.5 font-sans text-xs leading-snug text-dashboard-text-muted md:grid",children:[e.identity,(0,oa.jsxs)("span",{children:["updated ",e.updatedLabel]})]})]}),(0,oa.jsx)(sme,{...e.archive})]}),e.archive.error?(0,oa.jsx)("div",{className:"mt-1.5 text-xs text-red-300/80",children:"Could not update archive state."}):null,e.stats,(0,oa.jsx)("div",{className:"hidden md:block",children:e.annotations})]})}function sme(e){let t=e.pending?"Saving archive state":e.archived?"Unarchive":"Archive",n=e.archived?Zp:Ws;return(0,oa.jsx)(mt,{"aria-label":t,className:"hidden shrink-0 text-dashboard-text-muted md:grid",disabled:e.disabled,onClick:e.onClick,size:"icon",title:t,type:"button",children:(0,oa.jsx)(n,{"aria-hidden":"true",size:16,strokeWidth:2})})}var Y8=C(E(),1),cme="animate-[junior-text-shimmer_1.6s_linear_infinite] bg-[linear-gradient(90deg,#777_0%,#d6d6d6_40%,#fff_50%,#d6d6d6_60%,#777_100%)] bg-[length:200%_100%] bg-clip-text text-transparent motion-reduce:animate-none";function pi(e){if(!e.active&&!e.className&&!e["aria-label"])return e.children;let t=F(e.active&&cme,e.className);return e.as==="strong"?(0,Y8.jsx)("strong",{"aria-label":e["aria-label"],className:t,children:e.children}):(0,Y8.jsx)("span",{"aria-label":e["aria-label"],className:t,children:e.children})}var Ud=C(E(),1);function iA(e){let t=e.right!==void 0&&e.right!==null&&e.right!==!1;return(0,Ud.jsxs)("div",{className:F("flex min-w-0 items-start justify-between gap-2 md:items-center md:gap-3",e.className),children:[(0,Ud.jsx)("div",{className:F("flex min-w-0 items-center gap-2 overflow-hidden",e.leftClassName),children:e.left}),t?(0,Ud.jsx)("div",{className:F("min-w-0 max-w-[60%] shrink text-right md:max-w-none md:shrink-0",e.rightClassName),children:e.right}):null]})}function AA(e){return(0,Ud.jsx)("span",{className:F("font-sans leading-none",e.className),children:e.children})}var vt=C(E(),1),ume=3,dme=2;function lme(e){return(0,vt.jsx)("svg",{"aria-hidden":"true",className:e.className,fill:"currentColor",viewBox:"0 0 24 24",children:(0,vt.jsx)("path",{d:"M6.2 15.3c0 1.4-1.1 2.5-2.5 2.5S1.2 16.7 1.2 15.3s1.1-2.5 2.5-2.5h2.5v2.5zm1.3 0c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v6.2c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-6.2zM8.7 6.2c-1.4 0-2.5-1.1-2.5-2.5S7.3 1.2 8.7 1.2s2.5 1.1 2.5 2.5v2.5H8.7zm0 1.3c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5H2.5C1.1 12.5 0 11.4 0 10s1.1-2.5 2.5-2.5h6.2zM17.8 8.7c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5h-2.5V8.7zm-1.3 0c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5V2.5C11.5 1.1 12.6 0 14 0s2.5 1.1 2.5 2.5v6.2zM14 17.8c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5v-2.5H14zm0-1.3c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5h6.2c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5H14z"})})}function pme(e){return e==="interrupt"?{icon:kg,label:"Interrupt"}:{icon:co,label:"Queued"}}function kz(e){return(0,vt.jsx)(ze,{content:e.label,placement:"above",children:(0,vt.jsx)("span",{"aria-label":e.label,className:F("inline-flex",e.className),children:e.children})})}function gme(e){let t=pme(e.delivery),n=t.icon,o=e.source==="slack";return(0,vt.jsxs)(AA,{className:"flex min-w-0 items-center justify-end gap-2 text-xs leading-none text-dashboard-text-muted",children:[(0,vt.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1.5",children:[o?(0,vt.jsx)(kz,{className:"text-dashboard-text-muted",label:"Slack",children:(0,vt.jsx)(lme,{className:"size-3.5"})}):null,(0,vt.jsx)(kz,{className:e.delivery==="interrupt"?"text-amber-200/85":"text-dashboard-text-muted",label:t.label,children:(0,vt.jsx)(n,{"aria-hidden":"true",size:13,strokeWidth:2.2})})]}),e.timestamp?(0,vt.jsx)("span",{className:"min-w-0 truncate",children:e.timestamp}):null]})}function mme(e){let t=e.message.parts.find(A=>A.type==="text"),n=!!(t&&"redacted"in t&&t.redacted),o=t&&"text"in t&&typeof t.text=="string"?t.text:"",a=Bc(e.conversation,e.message),r=e.message.delivery??"defer",i=e.message.source??(e.conversation.surface==="slack"?"slack":"web");return(0,vt.jsxs)("article",{className:F("grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 px-3 py-2 text-dashboard-text md:px-3.5",e.showDivider&&"border-t border-white/[0.06]"),children:[(0,vt.jsx)(iA,{left:(0,vt.jsx)("span",{className:"inline-block max-w-full truncate font-display text-sm font-semibold leading-tight text-dashboard-text",children:(0,vt.jsx)(pi,{active:!0,children:a})}),leftClassName:"text-sm leading-snug text-dashboard-text",right:(0,vt.jsx)(gme,{delivery:r,source:i,timestamp:Ut(e.message.timestamp)})}),n?(0,vt.jsx)("p",{className:"m-0 font-mono text-sm leading-snug text-dashboard-text-muted",children:"[redacted]"}):(0,vt.jsx)("p",{className:"m-0 line-clamp-3 font-mono text-sm leading-snug text-dashboard-text/90",children:o})]})}function Qz(e){let t=qF(Jr(e.conversation),e.messages);if(t.length===0)return null;let n=t.length===1?"1 queued message":`${t.length} queued messages`,o=t.length>ume?t.slice(0,dme):t,a=t.length-o.length;return(0,vt.jsxs)("div",{"aria-label":"Pending messages",className:"mx-2 overflow-hidden rounded-t-lg border border-b-0 border-white/[0.09] bg-cyan-300/[0.07] md:mx-3",children:[(0,vt.jsx)("div",{className:"px-3 py-2 font-sans text-xs font-medium text-cyan-50/85 md:hidden",children:n}),(0,vt.jsxs)("div",{className:"hidden md:block",children:[o.map((r,i)=>(0,vt.jsx)(mme,{conversation:e.conversation,message:r,showDivider:i>0},r.messageId??`${r.sourceSeq}:${i}`)),a>0?(0,vt.jsxs)("div",{className:"border-t border-white/[0.06] px-3 py-2 font-sans text-xs font-medium text-cyan-50/70 md:px-3.5",children:[a," more queued messages"]}):null]})]})}var Rt=C(E(),1);function Iz(e){return(0,Rt.jsx)("span",{className:"grid min-w-0 self-start grid-cols-[minmax(0,1fr)_auto] content-start gap-x-3 gap-y-1.5",children:e.lines.map((t,n)=>(0,Rt.jsxs)("span",{className:t.label?"contents":F("col-span-2 block min-w-0 break-words text-dashboard-text",t.valueStyle==="heading"&&"font-mono font-semibold text-dashboard-text",t.valueStyle==="heading"&&n>0&&"mt-1 border-t border-white/10 pt-2"),children:[t.label?(0,Rt.jsx)("span",{className:F("min-w-0 break-words font-medium text-dashboard-text-muted",t.labelStyle==="code"&&"break-all font-mono text-xs text-dashboard-text"),children:t.label}):null,t.label?(0,Rt.jsx)("span",{className:"whitespace-nowrap text-right text-dashboard-text",children:t.value}):(0,Rt.jsxs)(Rt.Fragment,{children:[t.value,t.live?(0,Rt.jsxs)("span",{className:"ml-2 inline-flex items-center gap-1.5 font-sans text-xs font-normal tracking-wide text-dashboard-text-muted",children:[(0,Rt.jsx)("span",{"aria-hidden":"true",children:"\xB7"}),(0,Rt.jsx)(pi,{active:!0,children:"in progress"})]}):null]})]},`${n}-${t.label??""}-${t.value}-${t.live?"live":""}`))})}function gi(e){let t=e.tooltip?.filter(a=>a.value.trim()),n=e.tooltipColumns?.map(a=>a.filter(r=>r.value.trim())).filter(a=>a.length),o=!!n?.length;return!t?.length&&!n?.length?(0,Rt.jsx)("span",{className:e.className,children:e.children}):(0,Rt.jsx)(ze,{align:e.align,className:F("w-[calc(100vw-2rem)] rounded-lg border border-white/15 bg-[#050505] px-3 py-2 text-left text-xs font-normal leading-relaxed text-dashboard-text-muted shadow-xl shadow-black/35",o?"max-w-[32.5rem]":"max-w-80"),content:n?.length?(0,Rt.jsx)("span",{className:"grid max-h-72 grid-cols-1 items-start gap-4 overflow-y-auto sm:grid-cols-2 sm:gap-6",children:n.map((a,r)=>(0,Rt.jsx)(Iz,{lines:a},r))}):t?(0,Rt.jsx)("span",{className:"block max-h-72 overflow-y-auto",children:(0,Rt.jsx)(Iz,{lines:t})}):null,placement:e.tooltipPlacement??"below",children:(0,Rt.jsx)("span",{className:F("inline-flex border-b border-dotted border-white/20 outline-none transition-colors hover:border-white/45 focus-visible:border-white/45",e.className),tabIndex:0,children:e.children})})}function rC(e){return(0,Rt.jsx)("div",{className:F("flex flex-wrap items-center gap-x-1.5 gap-y-1",e.className),children:e.items.map((t,n)=>(0,Rt.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-x-1.5",children:[n>0?(0,Rt.jsx)("span",{className:"text-dashboard-text-muted",children:"\xB7"}):null,(0,Rt.jsx)("span",{className:"min-w-0",children:t.content})]},t.key))})}var wr=C(E(),1);function K8(e,t){return`${X(t)} ${e}${t===1?"":"s"}`}function J8(e){return!!e}function _z(e){return[e.inputTokens!==void 0?{label:"input",value:X(e.inputTokens)}:void 0,e.outputTokens!==void 0?{label:"output",value:X(e.outputTokens)}:void 0,e.cachedInputTokens!==void 0?{label:"cached",value:X(e.cachedInputTokens)}:void 0,e.cacheCreationTokens!==void 0?{label:"cache write",value:X(e.cacheCreationTokens)}:void 0,e.reasoningTokens!==void 0?{label:"reasoning",value:X(e.reasoningTokens)}:void 0,e.providerTotalTokens!==void 0?{label:"provider",value:X(e.providerTotalTokens)}:void 0]}function fme(e){return e.split("/").at(-1)??e}function ym(e,t){return{live:e===t,value:fme(e),valueStyle:"heading"}}function bme(e,t,n,o){let a=[n?{label:"compactions",value:X(n)}:void 0];t?.length||a.push(..._z(e));let r=!1;for(let i of t??[]){let A=em(i.usage);A&&(r||=i.modelId===o,a.push(ym(i.modelId,o),..._z(A).map(s=>s?.label?{...s,label:`\u2022 ${s.label}`}:s)))}return o&&!r&&a.push(ym(o,o)),a.filter(J8)}function iC(e){return[{label:"total",value:Zr(e)},e.input!==void 0?{label:"input",value:Zr({total:e.input})}:void 0,e.output!==void 0?{label:"output",value:Zr({total:e.output})}:void 0,e.cacheRead!==void 0?{label:"cache read",value:Zr({total:e.cacheRead})}:void 0,e.cacheWrite!==void 0?{label:"cache write",value:Zr({total:e.cacheWrite})}:void 0].filter(J8)}function hme(e,t,n,o){let a=my(e,n),r=(t??[]).flatMap(c=>{let d=tm(c.usage);return d?[{modelId:c.modelId,summary:d}]:[]}),i=o&&!r.some(c=>c.modelId===o)?[ym(o,o)]:[];if(!a)return{tooltip:i};if(!n)return r.length?{tooltip:[...r.flatMap(c=>[ym(c.modelId,o),...iC(c.summary).map(d=>({...d,label:`\u2022 ${d.label}`}))]),...i]}:{tooltip:[...e?iC(e):[],...i]};let A=[{value:"Conversation",valueStyle:"heading"},{label:"total",value:Zr(a)}];if(e)if(A.push({label:"agent",value:Zr(e)}),!r.length)A.push(...iC(e).filter(c=>c.label!=="total").map(c=>({...c,label:`\u2022 ${c.label}`})));else for(let c of r)A.push(ym(c.modelId,o),...iC(c.summary).map(d=>({...d,label:`\u2022 ${d.label}`})));A.push(...i);let s=[{value:"Auxiliary",valueStyle:"heading"},{label:"total",value:Zr({total:n.costUsd})}];for(let c of n.operations)s.push({label:`${Bme(c)} (${X(c.events)})`,value:Zr({total:c.costUsd})});return{tooltipColumns:[A,s]}}function Bme(e){let t={"junior/guardian_action_reviewed":"Guardian","junior/passive_reply_routed":"Passive reply routing","junior/turn_routed":"Thinking routing","memory/memories_captured":"Memory extraction","memory/memories_recalled":"Memory recall"},n=`${e.namespace}/${e.name}`;return t[n]??`${e.namespace} \xB7 ${e.name.replaceAll("_"," ")}`}function vz(e){let t=my(e.summary,e.auxiliaryCosts);if(!t&&!e.live)return null;let n=!!e.live,o=t?`${Ue(t)}${n?"+":""}`:"$\u2026";return(0,wr.jsx)(gi,{align:e.align,tooltipPlacement:"above",...hme(e.summary,e.modelUsage,e.auxiliaryCosts,e.liveModelId),children:(0,wr.jsx)(pi,{active:n,children:o})})}function xz(e){return e.summary?(0,wr.jsx)(gi,{align:e.align,tooltip:bme(e.summary,e.modelUsage,e.compactionCount,e.liveModelId),children:(0,wr.jsx)(pi,{active:e.live,children:KF(e.summary)})}):null}function Dz(e){if(!e.label||e.label==="none")return null;let n=[e.startedAt?{label:"started",value:Tn(e.startedAt)}:void 0,e.endedAt?{label:"ended",value:Tn(e.endedAt)}:void 0].filter(J8);return(0,wr.jsx)(gi,{align:e.align,tooltip:n,children:e.label})}function Fz(e){if(e.loading)return(0,wr.jsx)("span",{children:"tool calls loading"});if(!e.summary||e.summary.total<=0)return null;let t=e.summary.items.map(n=>({label:n.name,labelStyle:"code",value:K8("call",n.count)}));return(0,wr.jsx)(gi,{align:e.align,tooltip:t,children:(0,wr.jsx)(pi,{active:e.live,children:K8("tool call",e.summary.total)})})}function Sz(e){return e.loading?(0,wr.jsx)("span",{children:"turns loading"}):e.summary?(0,wr.jsx)(gi,{children:K8("turn",e.summary.total)}):null}var a2=C(J(),1);var Lz=C(J(),1);var ka=C(E(),1),yme=[{label:"Conversation",value:"rich"},{label:"Event log",value:"raw"}];function Rz(e){let[t,n]=(0,Lz.useState)(!1),o=t||e.search.length>0||e.value!=="rich",a=()=>{if(o){n(!1),e.search.length>0&&e.onSearchChange(""),e.value!=="rich"&&e.onChange("rich");return}n(!0)};return(0,ka.jsxs)("div",{className:"mb-2 grid min-w-0 gap-2 md:mb-4",children:[e.redacted?(0,ka.jsx)("div",{className:"min-w-0 break-words text-sm leading-relaxed text-dashboard-text-muted",children:"Hidden because this conversation is not public."}):null,(0,ka.jsxs)("div",{className:"flex min-w-0 items-center justify-end gap-1 md:hidden",children:[(0,ka.jsx)(mt,{"aria-expanded":o,"aria-label":o?"Hide transcript tools":"Show transcript tools",className:"text-dashboard-text-muted",onClick:a,size:"icon",title:o?"Hide transcript tools":"Show transcript tools",type:"button",children:o?(0,ka.jsx)(Ki,{"aria-hidden":"true",size:16,strokeWidth:2}):(0,ka.jsx)(nc,{"aria-hidden":"true",size:16,strokeWidth:2})}),e.actions]}),(0,ka.jsxs)("div",{className:F("min-w-0 flex-col gap-2 sm:flex-row sm:items-center",o?"flex":"hidden","md:flex"),children:[(0,ka.jsx)(qa,{className:"min-w-0 flex-1",label:"Search transcript",onChange:e.onSearchChange,placeholder:"Search transcript\u2026",size:"compact",value:e.search}),(0,ka.jsxs)("div",{className:"flex shrink-0 items-center gap-2 self-end sm:self-auto",children:[(0,ka.jsx)(Cme,{value:e.value,onChange:e.onChange}),(0,ka.jsx)("span",{className:"hidden md:inline-flex",children:e.actions})]})]})]})}function Cme(e){return(0,ka.jsx)("div",{"aria-label":"Transcript view",className:"inline-flex items-center gap-0.5 rounded-lg border border-white/[0.08] bg-black/20 p-0.5 text-xs font-medium text-dashboard-text-muted",role:"group",children:yme.map(t=>(0,ka.jsx)(ya,{className:F("!normal-case !no-underline rounded-md px-2 py-1 font-sans text-xs font-medium tracking-normal",e.value===t.value&&"bg-white/[0.08] text-dashboard-text"),onClick:()=>e.onChange(t.value),pressed:e.value===t.value,title:t.label,variant:"text",children:t.label},t.value))})}var lC=C(J(),1);var ra=C(E(),1);function Cm(e){let{active:t}=Un(),n=e.meta.join(" \xB7 "),o=e.expandable??!!e.children,a=t||e.raw||!o,r=(0,ra.jsx)(iA,{left:(0,ra.jsxs)(ra.Fragment,{children:[e.signature,e.mobileSummaryMeta?(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)("span",{className:F("hidden text-dashboard-text-muted max-md:inline",!a&&"max-md:group-open:hidden"),children:"\xB7"}),(0,ra.jsx)("span",{className:F("hidden shrink-0 whitespace-nowrap text-dashboard-text-muted max-md:inline",!a&&"max-md:group-open:hidden"),children:e.mobileSummaryMeta})]}):null]}),leftClassName:F("gap-x-1 gap-y-0.5",a?"flex-wrap":"flex-nowrap group-open:flex-wrap"),right:n?(0,ra.jsx)(AA,{className:"min-w-0 break-words text-sm text-dashboard-text-muted",children:n}):void 0,rightClassName:"ml-3 min-w-0 max-md:hidden"}),i=n&&e.children?(0,ra.jsx)("div",{className:"hidden min-w-0 break-words py-1 font-mono text-xs leading-snug text-dashboard-text-muted max-md:block",children:n}):null;return a?(0,ra.jsxs)("div",{className:Nz(),children:[(0,ra.jsx)("div",{className:$z(!1),children:r}),i,e.children]}):(0,ra.jsxs)("details",{className:F("group",Nz()),children:[(0,ra.jsx)("summary",{className:$z(!0),children:r}),i,e.children]})}function Nz(){return"min-w-0 max-w-full overflow-hidden"}function $z(e){return F("block py-1.5 font-mono text-sm leading-tight text-dashboard-text-muted",e?"cursor-pointer list-none transition-colors hover:text-dashboard-text hover:[&_*]:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 focus-visible:text-dashboard-text focus-visible:[&_*]:text-dashboard-text [&::-webkit-details-marker]:hidden":"cursor-default")}var mi=C(E(),1);function W8(e){let t=e.part.subagentKind,n=e.part.status,o=[n,typeof e.timestamp=="number"?Ut(e.timestamp):void 0].filter(wme),a=(0,mi.jsx)(Cm,{meta:o,mobileSummaryMeta:n,raw:!0,signature:(0,mi.jsxs)(mi.Fragment,{children:[(0,mi.jsx)("strong",{className:"min-w-0 break-words font-bold text-cyan-100",children:(0,mi.jsx)(Oe,{text:t})}),e.part.status==="running"?(0,mi.jsx)("span",{"aria-hidden":"true",className:"mt-px size-1.5 shrink-0 animate-pulse rounded-full bg-cyan-300"}):null]})});return e.onOpenTranscript?(0,mi.jsx)("button",{"aria-label":`Open ${e.part.subagentKind} transcript`,className:"block w-full min-w-0 cursor-pointer text-left transition-colors hover:bg-white/[0.035] focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55",onClick:()=>e.onOpenTranscript?.(e.part),type:"button",children:a}):a}function wme(e){return typeof e=="string"&&e.length>0}var Er=C(E(),1);function Z8(e){let t=e.part.event,n=t.type==="handoff",o=t.type==="compaction"&&t.details?` at approximately ${X(t.details.estimatedInputTokens)} estimated tokens`:"",a=t.type==="compaction"&&t.modelProfile&&t.modelId?` using the ${t.modelProfile} profile (${t.modelId})`:"";return(0,Er.jsxs)("article",{className:`min-w-0 rounded-lg border px-3 py-3 first:mt-1 ${n?"border-sky-300/10 bg-sky-300/[0.035]":"border-amber-300/10 bg-amber-300/[0.035]"}`,children:[(0,Er.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-x-3 gap-y-1",children:[(0,Er.jsx)("strong",{className:`font-display text-sm font-semibold ${n?"text-sky-100":"text-amber-100"}`,children:n?"Model handoff":"Context compacted"}),typeof e.timestamp=="number"?(0,Er.jsx)("span",{className:"text-xs text-dashboard-text-muted",children:Ut(e.timestamp)}):null]}),(0,Er.jsx)("div",{className:"mt-1.5 text-sm text-dashboard-text-muted",children:n?`Execution continued with the ${t.modelProfile} profile (${t.modelId}${t.reasoningLevel?`, ${t.reasoningLevel}`:""}).`:`Earlier context was summarized${o}${a} before execution continued.`}),t.summary?(0,Er.jsxs)("details",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[(0,Er.jsx)("summary",{className:"cursor-pointer select-none text-xs font-medium text-dashboard-text-muted",children:"Continuation summary"}),(0,Er.jsx)("div",{className:"mt-2 text-sm leading-relaxed text-dashboard-text-muted",children:(0,Er.jsx)($o,{role:"system",text:t.summary})})]}):null]})}var us=C(J(),1);var ee=C(E(),1);function AC(e){let[t,n]=(0,us.useState)(!1),o=(0,us.useId)(),a=(0,us.useRef)(null);return(0,us.useEffect)(()=>{if(!t)return;function r(i){i.key==="Escape"&&(n(!1),a.current?.focus())}return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t]),(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:"group/context relative flex justify-end",children:[(0,ee.jsx)("button",{"aria-controls":o,"aria-expanded":t,"aria-label":"View turn context",className:F("grid size-7 cursor-pointer place-items-center rounded-md border border-transparent bg-transparent transition-colors hover:border-white/10 hover:bg-white/[0.06] focus-visible:outline focus-visible:outline-2 focus-visible:outline-cyan-200/60",JA,t&&"border-white/10 bg-white/[0.06] text-cyan-100/80"),onClick:()=>n(!0),ref:a,title:"View turn context",type:"button",children:(0,ee.jsx)(qr,{"aria-hidden":"true",size:15,strokeWidth:1.8})}),(0,ee.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-[calc(100%+0.35rem)] z-10 whitespace-nowrap rounded border border-white/10 bg-[#111] px-2 py-1 text-xs font-medium text-dashboard-text-muted opacity-0 shadow-lg transition-opacity group-hover/context:opacity-100 group-focus-within/context:opacity-100",children:"View turn context"})]}),t?(0,ee.jsx)(Eme,{contexts:e.contexts,id:o,onClose:()=>{n(!1),a.current?.focus()}}):null]})}function Eme(e){return(0,ee.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,ee.jsx)("button",{"aria-label":"Close turn context",className:"absolute inset-0 cursor-default border-0 bg-black/55 backdrop-blur-[1px]",onClick:e.onClose,type:"button"}),(0,ee.jsxs)("section",{"aria-label":"Turn context","aria-modal":"true",className:"absolute inset-y-0 right-0 flex w-full max-w-[34rem] flex-col border-l border-white/15 bg-dashboard-surface-raised shadow-2xl shadow-black/70",id:e.id,role:"dialog",children:[(0,ee.jsxs)("header",{className:"flex min-h-16 items-center justify-between gap-4 border-b border-white/10 px-5",children:[(0,ee.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,ee.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-cyan-200/10 text-cyan-100/80",children:(0,ee.jsx)(qr,{"aria-hidden":"true",size:17,strokeWidth:1.8})}),(0,ee.jsxs)("div",{className:"min-w-0",children:[(0,ee.jsx)("h2",{className:"m-0 text-sm font-semibold text-dashboard-text",children:"Turn context"}),(0,ee.jsx)("p",{className:"m-0 mt-0.5 text-xs text-dashboard-text-muted",children:"Structured context supplied with this message"})]})]}),(0,ee.jsx)("button",{"aria-label":"Close turn context",autoFocus:!0,className:"grid size-8 shrink-0 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-dashboard-text-muted transition-colors hover:bg-white/10 hover:text-dashboard-text",onClick:e.onClose,title:"Close turn context",type:"button",children:(0,ee.jsx)(Ki,{"aria-hidden":"true",size:17})})]}),(0,ee.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-2",children:e.contexts.map((t,n)=>(0,ee.jsx)(kme,{context:t},`${t.pluginName}:${t.kind}:${t.version}:${n}`))})]})]})}function kme(e){let t=nC(e.context);return(0,ee.jsxs)("section",{className:"border-b border-white/10 py-5 last:border-b-0",children:[(0,ee.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-4",children:[(0,ee.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[t?(0,ee.jsx)(Zs,{"aria-hidden":"true",className:"shrink-0 text-cyan-100/60",size:15}):(0,ee.jsx)(qr,{"aria-hidden":"true",className:"shrink-0 text-cyan-100/60",size:15}),(0,ee.jsx)("h3",{className:"m-0 truncate text-sm font-semibold text-dashboard-text",children:t?"Recalled memories":e.context.pluginName})]}),(0,ee.jsxs)("span",{className:"shrink-0 text-xs text-dashboard-text-muted",children:[e.context.kind," \xB7 v",e.context.version]})]}),t?(0,ee.jsx)(Qme,{loadedAt:e.context.loadedAt,memories:t.memories}):(0,ee.jsx)(Ime,{context:e.context})]})}function Qme(e){return(0,ee.jsxs)("div",{className:"overflow-hidden rounded-lg border border-white/10",children:[e.memories.map((t,n)=>(0,ee.jsxs)("details",{className:"group/memory border-t border-white/10 first:border-t-0",children:[(0,ee.jsxs)("summary",{className:"flex cursor-pointer list-none items-start gap-2.5 px-3 py-3 transition-colors hover:bg-white/[0.04] [&::-webkit-details-marker]:hidden",children:[(0,ee.jsx)(ma,{"aria-hidden":"true",className:"mt-0.5 shrink-0 text-dashboard-text-muted transition-transform group-open/memory:rotate-90",size:15}),(0,ee.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,ee.jsxs)("span",{className:"flex items-center justify-between gap-3",children:[(0,ee.jsxs)("span",{className:"text-xs font-medium text-dashboard-text-muted",children:["Memory ",n+1]}),(0,ee.jsxs)("span",{className:"shrink-0 text-xs text-dashboard-text-muted",children:[t.kind," \xB7 ",t.scope]})]}),(0,ee.jsx)("span",{className:"mt-1 block truncate text-sm text-dashboard-text-muted",children:(0,ee.jsx)(Oe,{text:t.content})})]})]}),(0,ee.jsxs)("div",{className:"border-t border-white/8 bg-white/[0.025] px-4 py-4",children:[(0,ee.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-dashboard-text",children:(0,ee.jsx)(Oe,{text:t.content})}),(0,ee.jsxs)("dl",{className:"mt-4 grid gap-2 text-xs",children:[(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Memory ID"}),(0,ee.jsx)("dd",{className:"m-0 break-all font-mono text-dashboard-text-muted",children:(0,ee.jsx)(Oe,{text:t.id})})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Observed"}),(0,ee.jsx)("dd",{className:"m-0 text-dashboard-text-muted",children:Tn(new Date(t.observedAtMs).toISOString())})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Scope"}),(0,ee.jsx)("dd",{className:"m-0 text-dashboard-text-muted",children:t.scope})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Kind"}),(0,ee.jsx)("dd",{className:"m-0 text-dashboard-text-muted",children:t.kind})]})]})]})]},t.id)),(0,ee.jsxs)("p",{className:"m-0 border-t border-white/10 px-3 py-2 text-xs text-dashboard-text-muted",children:[e.memories.length," ",e.memories.length===1?"memory":"memories"," \xB7 Loaded"," ",Ut(Date.parse(e.loadedAt))]})]})}function Ime(e){return(0,ee.jsxs)("div",{children:[(0,ee.jsx)("pre",{className:"m-0 overflow-x-auto whitespace-pre-wrap break-words rounded-lg bg-white/[0.04] p-3 text-xs leading-relaxed text-dashboard-text-muted",children:(0,ee.jsx)(Oe,{text:JSON.stringify(e.context.content,null,2)})}),(0,ee.jsxs)("p",{className:"m-0 mt-3 text-xs text-dashboard-text-muted",children:["Loaded ",Ut(Date.parse(e.context.loadedAt))]})]})}var sC=C(J(),1);var po=C(E(),1);function Lc(e,t,n){return e===1?t:`${e} ${n}`}function V8(e){return e.kind==="failure"?!1:e.kind==="message"?!!e.message.eventType:e.kind==="tool"?e.part.status!=="error":e.kind==="subagent"?e.part.status!=="error"&&e.part.status!=="aborted":!0}function _me(e){let t=e.filter(l=>l.kind==="tool").length,n=e.filter(l=>l.kind==="reasoning").length,o=e.filter(l=>l.kind==="context"&&l.part.event.type==="compaction").length,a=e.filter(l=>l.kind==="context"&&l.part.event.type==="handoff").length,r=e.filter(l=>l.kind==="subagent").length,i=e.filter(l=>l.kind==="structured_event").length,A=e.filter(l=>l.kind==="message").length;if(t+n===e.length&&e.length>0){let l=t===0?void 0:Lc(t,"1 tool call","tool calls"),g=n===0?void 0:Lc(n,"1 reasoning entry","reasoning entries");return l&&g?`${l} and ${g}`:l??g??"1 action"}if(e.length===1){if(o===1)return"context compacted";if(a===1)return"model handoff";if(r===1)return"1 subagent";if(i===1)return"1 event";if(A===1)return"1 resource event";if(t===1)return"1 tool call";if(n===1)return"1 reasoning entry"}let c=Lc(e.length,"1 action","actions"),d=[t>0?Lc(t,"1 tool call","tool calls"):void 0,o>0?Lc(o,"context compacted","context compacted"):void 0,a>0?Lc(a,"model handoff","model handoffs"):void 0,r>0?Lc(r,"1 subagent","subagents"):void 0].filter(l=>l!==void 0);return d.length>0?`${c} \xB7 ${d.join(" \xB7 ")}`:c}function vme(e){return e.some(t=>t.kind==="tool"||t.kind==="subagent"?t.part.status==="running":!1)}function xme(e){return e.userOpen??(e.activeTail||e.hasLiveActivity)}function Mz(e){let{active:t}=Un(),[n,o]=(0,sC.useState)(null),a=e.entries.map(A=>(0,po.jsx)(sC.Fragment,{children:e.renderEntry(A)},A.key)),r=_me(e.entries);if(t)return(0,po.jsx)(po.Fragment,{children:a});let i=xme({activeTail:e.activeTail,hasLiveActivity:vme(e.entries),userOpen:n});return(0,po.jsxs)("details",{className:"group/activity-run min-w-0",open:i,children:[(0,po.jsxs)("summary",{className:"group flex w-fit max-w-full cursor-pointer list-none items-center gap-1.5 rounded-full border border-white/[0.08] bg-white/[0.03] px-2.5 py-1 text-left text-xs leading-tight text-dashboard-text-muted transition-colors hover:border-white/[0.14] hover:bg-white/[0.05] hover:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 [&::-webkit-details-marker]:hidden",onClick:A=>{A.preventDefault(),o(!i)},children:[(0,po.jsx)(XA,{"aria-hidden":"true",className:"size-3 shrink-0 opacity-70",strokeWidth:2.2}),(0,po.jsx)("span",{className:"min-w-0 truncate group-open/activity-run:hidden",children:r}),(0,po.jsxs)("span",{className:"hidden min-w-0 truncate group-open/activity-run:inline",children:["Hide ",r]}),(0,po.jsx)(ma,{"aria-hidden":"true",className:"size-3 shrink-0 opacity-60 transition-transform group-open/activity-run:rotate-90",strokeWidth:2.2})]}),(0,po.jsx)("div",{className:"mt-2 grid min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:a})]})}var Dme=48,uC=120,jz=4;function Pz(e,t){if(e==="bash")return cC(t,"command");if(e==="loadSkill")return cC(t,"skill_name");if(e==="webSearch")return cC(t,"query");if(e==="executeTool"){let n=cC(t,"tool_name"),o=Fme(t,"arguments");return Lme(n,o)}return Sme(t,uC)}function Fme(e,t){return dC(e)?Gz(e[t]):null}function cC(e,t){if(!dC(e))return null;let n=e[t];return typeof n!="string"?null:wm(n,uC)}function Sme(e,t){return e==null||e===""?null:dC(e)?Gz(e):wm(Hz(e),t)}function Gz(e){if(!dC(e))return null;let t=Object.entries(e);if(t.length===0)return null;let n=t.slice(0,jz).map(([a,r])=>`${a}: ${wm(Hz(r),Dme)}`).join(", "),o=t.length>jz?`${n}, \u2026`:n;return wm(o,uC)}function Hz(e){return typeof e=="string"?JSON.stringify(e):No(e).replace(/\s+/g," ").trim()}function wm(e,t){let n=e.replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,Math.max(0,t-1)).trimEnd()}\u2026`:n}function Lme(...e){let t=e.filter(n=>!!n);return t.length>0?wm(t.join(", "),uC):null}function dC(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ot=C(E(),1);function Em(e){let t=Ut(e.timestamp),n=gy(e.timestamp,e.part.resultTimestamp),o=e.part.input!==void 0||e.part.output!==void 0,a=lU(e.part.output),r=[n,a].filter(Tz).join(" \xB7 "),i=[r,t].filter(Tz),A=r,s=Pz(e.part.name,e.part.input),c=(0,Ot.jsx)(Rme,{name:e.part.name,preview:e.view==="raw"?null:s,status:e.part.status}),d=e.view==="raw"&&o?(0,Ot.jsx)(Cm,{meta:i,mobileSummaryMeta:A,raw:!0,signature:c,children:(0,Ot.jsx)(X8,{children:(0,Ot.jsx)(is,{code:No({call:{id:e.part.id,input:e.part.input,name:e.part.name},result:e.part.status==="running"?void 0:{outcome:e.part.status,output:e.part.output}}),language:"json"})})}):(0,Ot.jsxs)(Cm,{expandable:o,meta:i,mobileSummaryMeta:A,signature:c,children:[e.part.input!==void 0?(0,Ot.jsx)(X8,{label:"arguments",children:(0,Ot.jsx)(is,{code:No(e.part.input),language:"json"})}):null,e.part.output!==void 0?(0,Ot.jsx)(X8,{label:"result",children:(0,Ot.jsx)(is,{code:No(e.part.output),language:"json"})}):null]});return(0,Ot.jsx)("div",{className:"min-w-0",children:d})}function Rme(e){let{active:t}=Un(),n=e.status==="running",o=e.status==="error",a=n&&!t,r=n?`${e.name} (running)`:o?`${e.name} (failed)`:void 0;return(0,Ot.jsxs)(Ot.Fragment,{children:[o?(0,Ot.jsx)(Ua,{"aria-hidden":"true",className:"shrink-0 !text-rose-300",size:12,strokeWidth:2.2}):null,(0,Ot.jsx)(pi,{active:a,"aria-label":r,as:"strong",className:F("shrink-0 font-bold",o?"!text-rose-300":!a&&"text-dashboard-text"),children:(0,Ot.jsx)(Oe,{text:e.name})}),e.preview&&!t?(0,Ot.jsxs)("code",{className:"min-w-0 truncate font-[inherit] text-dashboard-text-muted group-open:hidden",children:["(",(0,Ot.jsx)(Oe,{text:e.preview}),")"]}):null]})}function X8(e){return(0,Ot.jsxs)("div",{className:"min-w-0 max-w-full overflow-hidden border-t border-white/10 py-2",children:[e.label?(0,Ot.jsx)("div",{className:"pb-2 font-mono text-xs font-bold uppercase leading-none text-[#9a8fd0]",children:e.label}):null,e.children]})}function Tz(e){return typeof e=="string"&&e.length>0}var qt=C(E(),1);function Uz(e){let{active:t}=Un(),n=e.part.redacted?"Reasoning redacted":e.part.text,o=Ut(e.timestamp),a=(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{"aria-label":"Reasoning",className:"mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-dashboard-text-muted",title:"Reasoning",children:(0,qt.jsx)(gg,{"aria-hidden":"true",size:14,strokeWidth:1.8})}),(0,qt.jsx)(iA,{left:t?(0,qt.jsx)("span",{className:"block min-w-0 italic text-dashboard-text-muted",children:"Reasoning"}):(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{className:"block min-w-0 truncate italic text-dashboard-text-muted group-open/reasoning:hidden",children:n}),(0,qt.jsx)("span",{className:"hidden min-w-0 italic text-dashboard-text-muted group-open/reasoning:inline",children:"Reasoning"})]}),right:o?(0,qt.jsx)(AA,{className:"min-w-0 break-words text-xs not-italic text-dashboard-text-muted max-md:hidden",children:o}):void 0,rightClassName:"min-w-0 max-md:hidden"})]}),r=(0,qt.jsxs)("div",{className:"grid min-w-0 grid-cols-[1rem_minmax(0,1fr)] gap-2",children:[(0,qt.jsx)("span",{"aria-hidden":"true"}),(0,qt.jsx)("div",{className:"min-w-0 whitespace-pre-wrap break-words py-1 italic text-dashboard-text-muted",children:(0,qt.jsx)(Oe,{text:n})})]});return t?(0,qt.jsxs)("div",{className:"py-1.5 text-sm leading-relaxed text-dashboard-text-muted",children:[(0,qt.jsx)("div",{className:"grid list-none grid-cols-[1rem_minmax(0,1fr)] items-start gap-2",children:a}),r]}):(0,qt.jsxs)("details",{className:"group/reasoning py-1.5 text-sm leading-relaxed text-dashboard-text-muted",children:[(0,qt.jsx)("summary",{className:"grid cursor-pointer list-none grid-cols-[1rem_minmax(0,1fr)] items-start gap-2 transition-colors hover:text-dashboard-text [&::-webkit-details-marker]:hidden",children:a}),r]})}var Nt=C(E(),1);function e2(e){let t=Un(),n=e.part.presentation,o=Ut(e.timestamp),a=n.details??[],r="min-w-0 rounded-lg border border-violet-300/10 bg-violet-300/[0.035] px-3 py-2 font-mono text-sm leading-tight",i=a.length>0?(0,Nt.jsx)("div",{className:"grid gap-2 pb-1 pt-2",children:a.map((s,c)=>(0,Nt.jsxs)("div",{className:"rounded border border-white/[0.06] bg-white/[0.025] px-3 py-2.5",children:[(0,Nt.jsx)("div",{className:"whitespace-pre-wrap break-words text-sm text-dashboard-text",children:(0,Nt.jsx)(Oe,{text:s.title})}),s.description?(0,Nt.jsx)("div",{className:"mt-1 whitespace-pre-wrap break-words text-xs leading-relaxed text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:s.description})}):null,s.content?(0,Nt.jsx)("pre",{className:"mt-2 max-h-[32rem] overflow-auto whitespace-pre-wrap break-words rounded bg-black/20 p-3 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:s.content})}):null,s.metadata?.length?(0,Nt.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:s.metadata.map(d=>(0,Nt.jsx)("span",{className:"rounded bg-white/[0.05] px-1.5 py-0.5 font-mono text-xs text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:d})},d))}):null]},`${s.title}:${c}`))}):null,A=(0,Nt.jsxs)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-start gap-2 max-md:grid-cols-[minmax(0,1fr)]",children:[(0,Nt.jsxs)("div",{className:"min-w-0",children:[(0,Nt.jsx)("div",{className:"font-display text-sm font-semibold text-violet-100",children:(0,Nt.jsx)(Oe,{text:n.title})}),n.preview?(0,Nt.jsx)("div",{className:"mt-0.5 truncate text-xs text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:n.preview})}):null]}),o?(0,Nt.jsx)("span",{className:"font-mono text-xs text-dashboard-text-muted max-md:hidden",children:o}):null]});return a.length===0||t.active?(0,Nt.jsxs)("div",{className:r,children:[A,i]}):(0,Nt.jsxs)("details",{className:`group/plugin-event ${r}`,children:[(0,Nt.jsx)("summary",{className:"cursor-pointer list-none transition-colors hover:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 [&::-webkit-details-marker]:hidden",children:A}),i]})}function Nme(e,t){if(!e||e.isCollapsed||e.toString().length===0)return!1;for(let n=0;n<e.rangeCount;n+=1)if(e.getRangeAt(n).intersectsNode(t))return!0;return!1}function Oz(e,t,n,o){return e!=="rich"||!t?!1:!Nme(n,o)}function Rc(e="default"){return`rounded-lg border p-5 text-sm leading-relaxed ${e==="error"?"border-rose-300/25 bg-rose-300/[0.07] text-rose-100":"border-white/[0.07] bg-white/[0.025] text-dashboard-text-muted"}`}var M=C(E(),1);function zz(e){return(0,M.jsx)(Uz,{part:e.part,timestamp:e.timestamp})}function Yz(e){let t=Jr(e.conversation);return(0,M.jsx)("section",{className:"min-w-0 py-1",children:(0,M.jsxs)("div",{className:"min-w-0",children:[(0,M.jsx)(Gme,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,conversation:e.conversation,messages:t,responding:e.responding??!1,view:e.view}),e.responding?(0,M.jsx)($me,{}):null]})})}function $me(){return(0,M.jsxs)("div",{"aria-live":"polite",className:"mt-3 flex items-center",role:"status",children:[(0,M.jsxs)("span",{className:"sr-only",children:[pt()," is responding"]}),(0,M.jsx)("span",{className:"flex items-center gap-1 rounded-2xl bg-white/[0.03] px-3.5 py-2.5",children:[0,1,2].map(e=>(0,M.jsx)("span",{"aria-hidden":"true",className:"size-1.5 animate-bounce rounded-full bg-cyan-100/70 motion-reduce:animate-none",style:{animationDelay:`${e*150}ms`}},e))})]})}function Kz(e,t){return Bc(t,e)}function Mme(e){let t=Vi(e);return F("grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 rounded-2xl px-3 py-2 md:gap-1.5 md:px-3.5 md:py-2.5",t==="assistant"&&"mr-6 bg-[#0e1517] text-dashboard-text md:mr-[18%]",t==="user"&&"ml-6 bg-dashboard-surface-hover text-dashboard-text md:ml-[22%]",t==="system"&&"rounded-xl border border-amber-300/10 bg-[#14120c] text-dashboard-text",t==="tool"&&"rounded-none px-0 text-dashboard-text-muted",t==="other"&&"bg-dashboard-surface-hover text-dashboard-text")}function jme(e){let t=Vi(e);return F("text-xs leading-snug",t==="assistant"&&"text-cyan-100/70",t==="user"&&"text-dashboard-text-muted",t==="system"&&"text-amber-200/80",t==="tool"&&"text-dashboard-text-muted",t==="other"&&"text-dashboard-text-muted")}function Pme(e){let t=Vi(e);return F("inline-block max-w-full truncate font-display text-xs font-semibold leading-tight md:text-sm",t==="assistant"&&"text-cyan-100",t==="user"&&"text-dashboard-text",t==="system"&&"text-amber-200",t==="tool"&&"text-dashboard-text-muted",t==="other"&&"text-dashboard-text")}function Jz(e){return(0,M.jsx)("article",{className:Mme(e.role),onCopy:e.onCopy,children:e.children})}function Wz(e){let t=e.message.source??(e.conversation.surface==="slack"?"slack":void 0),a=[t==="slack"?"Slack":t==="web"?"Dashboard":void 0,...e.meta??[]].filter(nY).join(" \xB7 "),r=Kz(e.message,e.conversation);return(0,M.jsx)(iA,{left:(0,M.jsx)("span",{className:Pme(e.message.role),children:r}),leftClassName:jme(e.message.role),right:a?(0,M.jsx)(AA,{className:"block min-w-0 break-words text-2xs leading-snug text-dashboard-text-muted/80 md:leading-none",children:a}):void 0})}function Gme(e){return(0,M.jsx)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-3 pt-1",children:e.conversation.eventHistory.status==="available"?(0,M.jsx)(qz,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,transcript:e.messages,conversation:e.conversation,responding:e.responding,view:e.view}):e.conversation.eventHistory.status==="redacted"&&e.messages.length>0?(0,M.jsx)(Ome,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,conversation:e.conversation,messages:e.messages}):e.messages.length>0?(0,M.jsx)(qz,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,transcript:e.messages,conversation:e.conversation,responding:e.responding,view:e.view}):(0,M.jsx)("div",{className:Rc(),children:by(e.conversation)})})}function qz(e){return(0,M.jsx)(Zz,{entries:am(e.transcript),keyPrefix:e.conversation.conversationId,responding:e.responding,renderContext:t=>(0,M.jsx)(fi,{kind:t.part.event.type==="handoff"?"handoff":"compaction",children:(0,M.jsx)(Z8,{part:t.part,timestamp:t.timestamp})}),renderFailure:t=>(0,M.jsx)(Vz,{outcome:t.outcome,timestamp:t.timestamp}),renderMessage:t=>t.message.eventType?(0,M.jsx)(fi,{kind:"resource_event",children:(0,M.jsx)(tY,{message:t.message})}):t.message.context?(0,M.jsx)(fi,{kind:"message_context",children:(0,M.jsx)(eY,{message:t.message,conversation:e.conversation})}):(0,M.jsx)(Yme,{message:t.message,conversation:e.conversation,view:e.view}),renderStructuredEvent:t=>(0,M.jsx)(fi,{icon:Xz(t.part.presentation.icon),kind:"structured_event",children:(0,M.jsx)(e2,{part:t.part,timestamp:t.timestamp})}),renderSubagent:t=>(0,M.jsx)(fi,{kind:"subagent",children:(0,M.jsx)(W8,{onOpenTranscript:n=>e.onOpenSubagentTranscript?.({part:n,conversation:e.conversation}),part:t.part,timestamp:t.timestamp})}),renderReasoning:zz,renderTool:t=>(0,M.jsx)(Em,{part:t.part,timestamp:t.timestamp,view:e.view})})}function Zz(e){let t=Un(),n=(0,lC.useRef)(new Map),o=new Set,a=[],r=i=>i.kind==="subagent"?e.renderSubagent(i):i.kind==="context"?e.renderContext(i):i.kind==="structured_event"?e.renderStructuredEvent(i):i.kind==="failure"?e.renderFailure(i):i.kind==="reasoning"?e.renderReasoning(i):i.kind==="tool"?e.renderTool(i):e.renderMessage(i);for(let i=0;i<e.entries.length;){let A=e.entries[i];if(V8(A)){let s=[];for(;i<e.entries.length&&V8(e.entries[i]);)s.push(e.entries[i]),i+=1;let c=t.active?s.filter(d=>XF(d,t.normalizedQuery)):s;if(c.length>0){let d=Hme({claimedKeys:o,entries:s,keyPrefix:e.keyPrefix,knownKeys:n.current});a.push((0,M.jsx)(Mz,{activeTail:!!e.responding&&i===e.entries.length,entries:c,renderEntry:r},d))}continue}(!t.active||XF(A,t.normalizedQuery))&&a.push((0,M.jsx)(lC.Fragment,{children:r(A)},`${e.keyPrefix}:${A.key}`)),i+=1}return t.active&&a.length===0?(0,M.jsx)("div",{className:Rc(),children:"No events match your search."}):(0,M.jsx)("div",{className:"grid min-w-0 gap-3",children:a})}function Hme(e){let t=e.entries.map(a=>`${e.keyPrefix}:${a.key}`),o=t.map(a=>e.knownKeys.get(a)).find(a=>a!==void 0&&!e.claimedKeys.has(a))??`${e.keyPrefix}:activity:${e.entries[0].key}`;return e.claimedKeys.add(o),t.forEach(a=>e.knownKeys.set(a,o)),o}function Vz(e){let t=Ut(e.timestamp),n=e.outcome==="delivery_failed";return(0,M.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 rounded-lg border border-rose-300/25 bg-rose-300/[0.07] px-4 py-3 text-rose-100 max-md:grid-cols-[auto_minmax(0,1fr)]","data-transcript-failure":e.outcome,role:"alert",children:[(0,M.jsx)(rr,{"aria-hidden":"true",className:"mt-0.5 text-rose-300",size:16}),(0,M.jsxs)("div",{className:"min-w-0",children:[(0,M.jsx)("div",{className:"font-display text-base font-semibold leading-tight",children:n?"Message delivery failed":"Agent response failed"}),(0,M.jsx)("div",{className:"mt-1 text-sm leading-relaxed text-rose-100/70",children:n?`${pt()} could not deliver this message to its destination.`:`The model response ended before ${pt()} could complete this turn.`})]}),t?(0,M.jsx)("span",{className:"font-mono text-xs leading-none text-rose-100/55 max-md:col-start-2",children:t}):null]})}function fi(e){let t=Tme(e.kind),n=e.icon??t.icon;return(0,M.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-2.5","data-transcript-rail-event":e.kind,children:[(0,M.jsx)("span",{"aria-hidden":"true",className:F("mt-2 grid size-6 place-items-center rounded-md border bg-black/20",t.className),children:(0,M.jsx)(n,{size:12,strokeWidth:2.2})}),(0,M.jsx)("div",{className:"min-w-0",children:e.children})]})}function Tme(e){return e==="message_context"?{className:"border-white/20 text-dashboard-text-muted",icon:Bg}:e==="resource_event"?{className:"border-violet-300/35 text-violet-200",icon:sg}:e==="structured_event"?{className:"border-violet-300/35 text-violet-200",icon:ar}:e==="subagent"?{className:"border-cyan-300/35 text-cyan-200",icon:Or}:e==="handoff"?{className:"border-sky-300/35 text-sky-200",icon:ac}:{className:"border-amber-300/35 text-amber-200",icon:yg}}var Ume={activity:ar,brain:Zs,calendar:ng,check:Vs,database:VA,info:pg,key:ir,link:fg,sparkles:ea,warning:Ua};function Xz(e){return e?Ume[e]:ar}function Ome(e){return(0,M.jsx)(Zz,{entries:am(e.messages),keyPrefix:`${e.conversation.conversationId}:redacted`,renderContext:t=>(0,M.jsx)(fi,{kind:t.part.event.type==="handoff"?"handoff":"compaction",children:(0,M.jsx)(Z8,{part:t.part,timestamp:t.timestamp})}),renderFailure:t=>(0,M.jsx)(Vz,{outcome:t.outcome,timestamp:t.timestamp}),renderMessage:t=>t.message.eventType?(0,M.jsx)(fi,{kind:"resource_event",children:(0,M.jsx)(tY,{message:t.message})}):t.message.context?(0,M.jsx)(fi,{kind:"message_context",children:(0,M.jsx)(eY,{message:t.message,conversation:e.conversation,redacted:!0})}):(0,M.jsx)(qme,{message:t.message,conversation:e.conversation}),renderStructuredEvent:t=>(0,M.jsx)(fi,{icon:Xz(t.part.presentation.icon),kind:"structured_event",children:(0,M.jsx)(e2,{part:t.part,timestamp:t.timestamp})}),renderSubagent:t=>(0,M.jsx)(fi,{kind:"subagent",children:(0,M.jsx)(W8,{onOpenTranscript:n=>e.onOpenSubagentTranscript?.({part:n,conversation:e.conversation}),part:t.part,timestamp:t.timestamp})}),renderReasoning:zz,renderTool:t=>(0,M.jsx)(Em,{part:t.part,timestamp:t.timestamp})})}function qme(e){let t=[Ut(e.message.timestamp)].filter(nY);return(0,M.jsxs)(Jz,{role:e.message.role,children:[(0,M.jsx)(Wz,{meta:t,message:e.message,conversation:e.conversation}),(0,M.jsx)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 font-mono text-base leading-snug text-dashboard-text-muted",children:e.message.parts.map((n,o)=>(0,M.jsx)(zme,{},o))})]})}function zme(e){return(0,M.jsxs)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-3 py-1 max-md:grid-cols-1",children:[(0,M.jsx)(t2,{}),e.meta?(0,M.jsx)("span",{className:"min-w-0 break-words text-right text-dashboard-text-muted max-md:text-left",children:e.meta}):null]})}function t2(){return(0,M.jsx)("code",{className:"inline-flex w-fit font-mono text-sm leading-tight text-dashboard-text-muted",children:"<redacted>"})}function eY(e){let t=Kz(e.message,e.conversation),n=Ut(e.message.timestamp),o=ni(e.message),a=e.redacted?(0,M.jsx)(t2,{}):(0,M.jsx)(Oe,{text:o});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("details",{className:"group/message-context min-w-0 rounded-lg bg-white/[0.025] px-3 py-2.5 md:hidden","data-transcript-message-context":!0,children:[(0,M.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-2 font-display text-xs font-semibold text-dashboard-text-muted [&::-webkit-details-marker]:hidden",children:[(0,M.jsxs)("span",{className:"min-w-0 truncate",children:["Context from ",t]}),(0,M.jsx)(ma,{"aria-hidden":"true",className:"shrink-0 transition-transform group-open/message-context:rotate-90",size:14})]}),(0,M.jsx)("div",{className:"mt-2 whitespace-pre-wrap pt-2 text-sm leading-relaxed text-dashboard-text/75",children:a}),!e.redacted&&e.message.contexts?.length?(0,M.jsx)("div",{className:"mt-2",children:(0,M.jsx)(AC,{contexts:e.message.contexts})}):null]}),(0,M.jsxs)("article",{className:"hidden min-w-0 rounded-lg bg-white/[0.025] px-3 py-2.5 md:block","data-transcript-message-context":!0,children:[(0,M.jsx)(iA,{left:(0,M.jsxs)("span",{className:"font-display text-xs font-semibold text-dashboard-text-muted",children:["Context from ",t]}),leftClassName:"min-w-0",right:n?(0,M.jsx)(AA,{className:"font-mono text-2xs text-dashboard-text-muted/70",children:n}):void 0}),(0,M.jsx)("div",{className:"mt-1 whitespace-pre-wrap text-sm leading-relaxed text-dashboard-text/75",children:a}),!e.redacted&&e.message.contexts?.length?(0,M.jsx)("div",{className:"mt-2",children:(0,M.jsx)(AC,{contexts:e.message.contexts})}):null]})]})}function tY(e){let t=ni(e.message),n=e.message.parts.some(o=>o.type==="text"&&o.redacted);return(0,M.jsxs)("details",{className:"min-w-0 rounded-lg border border-violet-300/10 bg-violet-300/[0.035] px-3 py-2",children:[(0,M.jsx)("summary",{className:"cursor-pointer list-none font-display text-sm font-semibold text-violet-100 [&::-webkit-details-marker]:hidden",children:(0,M.jsx)(Oe,{text:e.message.eventType??""})}),t?(0,M.jsx)("div",{className:"mt-2 whitespace-pre-wrap text-sm leading-relaxed text-dashboard-text-muted",children:(0,M.jsx)(Oe,{text:t})}):n?(0,M.jsx)("div",{className:"mt-2",children:(0,M.jsx)(t2,{})}):null]})}function Yme(e){let t=ni(e.message),n=e.message.role;return(0,M.jsxs)(Jz,{role:e.message.role,onCopy:o=>{let a=o.currentTarget.ownerDocument.getSelection();Oz(e.view,t,a,o.currentTarget)&&(o.clipboardData.setData("text/plain",t),o.preventDefault())},children:[(0,M.jsx)(Wz,{meta:[Ut(e.message.timestamp)],message:e.message,conversation:e.conversation}),e.view==="raw"?(0,M.jsx)(is,{code:t||"{}",language:wU(t)}):(0,M.jsx)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:e.message.parts.map((o,a)=>(0,M.jsx)($o,{role:n,text:o.text??""},a))}),e.view==="rich"&&e.message.role==="user"&&e.message.contexts?.length?(0,M.jsx)(AC,{contexts:e.message.contexts}):null]})}function nY(e){return typeof e=="string"&&e.length>0}var Ye=C(J(),1);var Kme=96,Jme=2,n2=typeof window>"u"?Ye.useEffect:Ye.useLayoutEffect;function Wme(e,t=Kme){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}function rY(e){if(!e)return"empty";let n=Jr(e).at(-1),o=n?.parts.at(-1);return[e.conversationId,e.status,n?.sourceSeq??"",n?.role??"",n?.outcome??"",n?.timestamp??"",n?.parts.length??0,efe(o)].join("|")}function aY(e){return e.enabled&&e.following}function Zme(e){return e.source==="scroll"&&e.previousScrollTop!=null&&e.snapshot.scrollTop<e.previousScrollTop-Jme?"pause":Wme(e.snapshot)?"follow":"preserve"}function Vme(e){return e.loadingPreviousPage?"wait":e.currentHistoryVersion!==e.snapshotHistoryVersion?"restore":"discard"}function iY(e){let t=(0,Ye.useRef)(null),n=(0,Ye.useRef)(null),o=(0,Ye.useRef)(e.enabled),a=(0,Ye.useRef)(!1),r=(0,Ye.useRef)(!1),i=(0,Ye.useRef)(null),A=(0,Ye.useRef)(null),s=(0,Ye.useRef)(null),[c,d]=(0,Ye.useState)(!1),[l,g]=(0,Ye.useState)(!1),[p,m]=(0,Ye.useState)(null),h=(0,Ye.useCallback)(v=>{n.current=v,m(v)},[]);(0,Ye.useEffect)(()=>{o.current=e.enabled,e.enabled||(a.current=!1,d(!1),g(!1))},[e.enabled]);let B=(0,Ye.useCallback)(v=>{a.current=v,d(v)},[]),f=(0,Ye.useCallback)(v=>{let x=pC(n.current);if(!x)return;let N=km(x),K=A.current;A.current=N.scrollTop;let z=Zme({previousScrollTop:K,snapshot:N,source:v});if(z==="follow"){B(!0),g(!1);return}z==="pause"&&B(!1)},[B]),b=(0,Ye.useCallback)(v=>{t.current?.scrollIntoView({behavior:v,block:"end"})},[]),y=(0,Ye.useCallback)(()=>{let v=pC(n.current);if(!v)return;let x=km(v);s.current={historyVersion:e.historyVersion,root:v,scrollHeight:x.scrollHeight,scrollTop:x.scrollTop}},[e.historyVersion]);n2(()=>{if(!p||!e.conversationId||i.current===e.conversationId)return;let v=pC(p);v&&(i.current=e.conversationId,oY(v,km(v).scrollHeight),A.current=km(v).scrollTop,B(e.enabled),g(!1))},[p,e.conversationId,e.enabled,B]),n2(()=>{let v=s.current;if(!v)return;let x=Vme({currentHistoryVersion:e.historyVersion,loadingPreviousPage:e.loadingPreviousPage,snapshotHistoryVersion:v.historyVersion});if(x==="restore"){let N=km(v.root);oY(v.root,Xme(v,N.scrollHeight)),s.current=null;return}x==="discard"&&(s.current=null)},[e.historyVersion,e.loadingPreviousPage]);let w=(0,Ye.useCallback)(()=>{if(aY({enabled:o.current,following:a.current})){b("auto");return}f("measure")},[f,b]);n2(()=>{let v=o.current,x=e.enabled||v;if(o.current=e.enabled,!x)return;let N=r.current;if(r.current||(r.current=!0,f("measure")),aY({enabled:e.enabled,following:a.current})){b("auto"),g(!1);return}e.enabled&&N&&g(!0)},[e.enabled,e.version,f,b]),(0,Ye.useEffect)(()=>{if(typeof window>"u")return;let v=pC(p);if(!v)return;let x=v===window?window:v,N=()=>f("scroll");return f("measure"),x.addEventListener("scroll",N,{passive:!0}),window.addEventListener("resize",w),()=>{x.removeEventListener("scroll",N),window.removeEventListener("resize",w)}},[p,f,w]),(0,Ye.useEffect)(()=>{if(typeof ResizeObserver>"u"||!p)return;let v=new ResizeObserver(()=>{w()});return v.observe(p),()=>v.disconnect()},[p,w]);let Q=(0,Ye.useCallback)(()=>{B(!0),g(!1),b(tfe())},[b,B]);return(0,Ye.useMemo)(()=>({anchorRef:t,contentRef:h,hasPendingUpdate:l,jumpToBottom:Q,preserveViewportForPrepend:y,showJumpToLatest:e.enabled&&!c}),[h,c,l,e.enabled,Q,y])}function Xme(e,t){return e.scrollTop+t-e.scrollHeight}function efe(e){return e?e.type==="text"?[e.type,e.text?.length??0,e.redacted?"redacted":""].join(":"):e.type==="tool_call"?[e.type,e.id,e.status,e.startedTimestamp??"",e.input===void 0?"":"input",e.output===void 0?"":"output"].join(":"):e.type==="reasoning"?[e.type,e.text?.length??0,e.redacted?"redacted":""].join(":"):e.type==="subagent"?[e.type,e.id,e.childConversationId,e.subagentKind,e.status].join(":"):e.type==="structured_event"?[e.type,e.namespace,e.name,e.version,e.presentation.title,e.presentation.preview??"",e.presentation.details?.length??0].join(":"):[e.type,e.event.type,e.event.createdAt].join(":"):""}function pC(e){if(typeof window>"u")return null;if(!e)return window;let t=e.parentElement;for(;t&&t!==document.body;){let n=window.getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n.overflowY)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}function km(e){if(AY(e)){let t=document.scrollingElement??document.documentElement;return{clientHeight:window.innerHeight,scrollHeight:t.scrollHeight,scrollTop:window.scrollY||t.scrollTop}}return{clientHeight:e.clientHeight,scrollHeight:e.scrollHeight,scrollTop:e.scrollTop}}function oY(e,t){if(AY(e)){window.scrollTo({behavior:"auto",top:t});return}e.scrollTop=t}function AY(e){return e===window}function tfe(){return typeof window>"u"||typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}var Ln=C(E(),1);function gC(e){let[t,n]=(0,a2.useState)("rich"),[o,a]=(0,a2.useState)(""),r=e.transcript?.eventHistory.status==="redacted",i=iY({conversationId:e.transcript?.conversationId,enabled:e.live??!1,historyVersion:e.historyVersion??"empty",loadingPreviousPage:e.loadingPreviousPage??!1,version:rY(e.transcript)});return e.transcript?(0,Ln.jsx)(RU,{query:o,children:(0,Ln.jsxs)("div",{className:"grid min-w-0",ref:i.contentRef,children:[(0,Ln.jsx)(Rz,{actions:e.actions,onChange:n,onSearchChange:a,redacted:r,search:o,value:t}),e.hasPreviousPage||e.loadingPreviousPage?(0,Ln.jsxs)("div",{className:"mb-3 flex items-center gap-3",children:[(0,Ln.jsx)("span",{className:"h-px min-w-4 flex-1 bg-white/[0.08]"}),(0,Ln.jsx)("button",{"aria-label":"Load earlier events",className:"shrink-0 cursor-pointer border-0 bg-transparent px-1 py-0.5 font-sans text-xs font-medium text-dashboard-text-muted transition-colors hover:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 disabled:cursor-not-allowed disabled:opacity-50",disabled:e.loadingPreviousPage,onClick:()=>{i.preserveViewportForPrepend(),e.onLoadPreviousPage?.()},title:"Load earlier events",type:"button",children:e.loadingPreviousPage?"Loading earlier messages\u2026":"Show earlier messages"}),(0,Ln.jsx)("span",{className:"h-px min-w-4 flex-1 bg-white/[0.08]"})]}):null,e.historyError?(0,Ln.jsx)("div",{"aria-live":"polite",className:"mb-2 text-center font-sans text-xs text-amber-100/65",children:"Earlier events could not be loaded."}):null,(0,Ln.jsx)(Yz,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,conversation:e.transcript,responding:e.responding??e.live??!1,view:t}),(0,Ln.jsx)("div",{"aria-hidden":"true",className:"h-px",ref:i.anchorRef}),(0,Ln.jsx)(nfe,{hasPendingUpdate:i.hasPendingUpdate,onClick:i.jumpToBottom,visible:i.showJumpToLatest})]})}):(0,Ln.jsx)("div",{className:Rc(),children:"No transcript is available for this conversation."})}function nfe(e){if(!e.visible)return null;let t=e.hasPendingUpdate?"Jump to latest update":"Jump to latest";return(0,Ln.jsx)("div",{className:"pointer-events-none sticky bottom-3 z-20 mt-3 flex justify-center px-3 md:fixed md:inset-x-auto md:bottom-6 md:right-8 md:mt-0 md:justify-end md:px-0",children:(0,Ln.jsxs)(mt,{"aria-label":t,className:"pointer-events-auto relative rounded-lg !border !border-cyan-300/30 !bg-[#0b181a] text-dashboard-text shadow-[0_6px_24px_rgba(0,0,0,0.36)] hover:!border-cyan-200/60 hover:!bg-[#102226] hover:!text-dashboard-text",onClick:e.onClick,size:"icon",title:t,children:[(0,Ln.jsx)(Vp,{"aria-hidden":"true",size:16,strokeWidth:2}),e.hasPendingUpdate?(0,Ln.jsx)("span",{"aria-hidden":"true",className:"absolute right-1.5 top-1.5 size-2 bg-emerald-300"}):null]})})}var Od=C(E(),1);function mC(){return(0,Od.jsxs)("div",{className:"grid gap-3",children:[(0,Od.jsx)("div",{className:"min-h-28 animate-pulse rounded-lg border border-white/10 bg-dashboard-surface-raised"}),(0,Od.jsx)("div",{className:"min-h-[4.5rem] animate-pulse rounded-lg border border-white/10 bg-dashboard-surface-raised"}),(0,Od.jsx)("div",{className:"min-h-28 animate-pulse rounded-lg border border-white/10 bg-dashboard-surface-raised"})]})}var gn=C(E(),1);function cY(e){let t=eC(e.target?.conversationId);if(!e.target)return null;let n=t.data,o=n?.displayTitle||e.target.part.subagentKind,a=[afe(e.target.part,n?.status),n?Ut(Date.parse(n.startedAt)):void 0].filter(ofe),r="subagent-transcript-drawer-title";return(0,gn.jsx)(Fd,{actions:(0,gn.jsx)(oC,{getMarkdown:n?async()=>aC(await t.loadCompleteTranscript()):void 0},e.target.conversationId),closeLabel:"Close subagent transcript",dismissLabel:"Dismiss subagent transcript",header:(0,gn.jsxs)(gn.Fragment,{children:[(0,gn.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,gn.jsx)(Or,{"aria-hidden":"true",className:"shrink-0 text-cyan-300",size:16,strokeWidth:2.25}),(0,gn.jsx)("h2",{className:"m-0 min-w-0 break-words text-lg font-bold leading-tight tracking-normal text-dashboard-text",id:r,children:o})]}),(0,gn.jsxs)("div",{className:"mt-2 grid min-w-0 gap-1.5 text-xs leading-snug",children:[(0,gn.jsx)("code",{className:"min-w-0 break-all font-mono text-xs text-dashboard-text",children:e.target.conversationId}),(0,gn.jsxs)(Ie,{className:"inline-flex w-fit items-center gap-1 font-semibold text-dashboard-text no-underline hover:underline",onClick:e.onClose,to:Ro(e.target.conversationId),children:["Open conversation",(0,gn.jsx)(cg,{"aria-hidden":"true",size:12,strokeWidth:2.25})]})]}),(0,gn.jsx)("div",{className:"mt-1 break-words font-mono text-xs leading-snug text-dashboard-text-muted",children:a.join(" \xB7 ")})]}),onClose:e.onClose,openKey:e.target.conversationId,titleId:r,width:"wide",children:t.isPending?(0,gn.jsx)(mC,{}):t.error&&!n?(0,gn.jsx)(sY,{tone:"error",children:"Conversation failed to load."}):n?(0,gn.jsx)(gC,{hasPreviousPage:t.hasPreviousPage,historyError:t.historyError,historyVersion:t.historyVersion,loadingPreviousPage:t.isLoadingPreviousPage,onLoadPreviousPage:t.loadPreviousPage,transcript:n}):(0,gn.jsx)(sY,{children:"Conversation unavailable."})})}function afe(e,t){return e.status==="error"||e.status==="aborted"?e.status:t??e.status}function sY(e){let t=e.tone==="error";return(0,gn.jsx)("div",{className:Rc(t?"error":"default"),"data-tone":e.tone??"default",role:t?"alert":void 0,children:e.children})}function ofe(e){return typeof e=="string"&&e.length>0}var Y=C(E(),1);function dY(e){let[t,n]=(0,uY.useState)(),o=e.conversationId,a=e.data?.conversations.conversations??[],r=Cc(a),i=eC(o),A=hm(o),s=sz(o),c=r.find(p=>p.id===o),d=Afe(IU(i.data)??c,e.pendingArchiveUpdate),l=i.data,g=d?fy(d):void 0;return(0,Y.jsxs)("div",{className:"grid min-h-0 min-w-0 grid-rows-[minmax(0,1fr)_auto]",children:[(0,Y.jsx)("div",{"aria-label":"Conversation transcript",className:"min-h-0 overflow-y-auto overscroll-contain px-3 pb-3 md:px-7 md:pb-5",tabIndex:0,children:(0,Y.jsxs)("section",{className:"min-w-0",children:[(0,Y.jsx)(Ez,{annotations:(0,Y.jsx)(sfe,{detail:i.data}),archive:{archived:!!d?.archivedAt,disabled:!d||A.isPending,error:!!A.error,onClick:()=>A.mutate({archived:!d?.archivedAt,lastSeenAt:d.lastSeenAt}),pending:A.isPending},identity:(0,Y.jsx)(ufe,{conversation:d,conversationId:o,detail:i.data}),live:fC(g,i.data),privacy:(0,Y.jsx)(ife,{visibility:d?.visibility}),stats:(0,Y.jsx)(gfe,{conversation:d,detail:i.data}),title:as(d),updatedLabel:_d(d?.lastSeenAt??i.data?.generatedAt)}),i.isPending?(0,Y.jsx)(mC,{}):i.error&&!i.data?(0,Y.jsx)(O,{className:"border-white/[0.07] bg-white/[0.025] p-4 font-sans text-xs leading-relaxed text-dashboard-text-muted",children:i.error.message}):(0,Y.jsxs)(Y.Fragment,{children:[i.error?(0,Y.jsx)("div",{className:"mb-3 rounded-lg border border-amber-300/15 bg-amber-300/[0.045] px-3 py-2 font-sans text-xs text-amber-100/65",children:"Transcript refresh failed. Showing the latest available data."}):null,(0,Y.jsx)(gC,{actions:(0,Y.jsx)(oC,{getMarkdown:l?async()=>aC(await i.loadCompleteTranscript(),d):void 0},l?.conversationId??"loading"),hasPreviousPage:i.hasPreviousPage,historyError:i.historyError,historyVersion:i.historyVersion,live:fC(g,i.data),loadingPreviousPage:i.isLoadingPreviousPage,onLoadPreviousPage:i.loadPreviousPage,responding:!i.error&&fC(g,i.data),onOpenSubagentTranscript:({part:p})=>{n({conversationId:p.childConversationId,part:p})},transcript:i.data})]})]})}),i.data?.isParticipant?(0,Y.jsxs)("div",{className:"px-2 py-1.5 pb-[max(0.375rem,env(safe-area-inset-bottom))] md:px-7 md:py-4 md:pb-4",children:[fC(g,i.data)?(0,Y.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 font-sans text-xs text-dashboard-text-muted md:hidden",children:[(0,Y.jsx)("span",{"aria-hidden":"true",className:"size-1.5 shrink-0 animate-pulse rounded-full bg-emerald-300"}),(0,Y.jsx)("span",{children:"Junior is working\u2026"})]}):null,(0,Y.jsxs)("div",{className:"grid min-w-0",children:[i.pendingAuthorization?(0,Y.jsx)(rfe,{authorization:i.pendingAuthorization}):null,i.data?(0,Y.jsx)(Qz,{conversation:i.data,messages:i.pendingMessages}):null,(0,Y.jsx)(tC,{error:s.error?"Could not send the message. Try again.":void 0,label:"Continue this conversation",pending:s.isPending,submitLabel:"Send",onSubmit:async(p,m)=>{await s.mutateAsync({idempotencyKey:m,message:p})}})]})]}):null,(0,Y.jsx)(cY,{onClose:()=>n(void 0),target:t})]})}function rfe(e){return(0,Y.jsxs)("div",{className:"mb-2 rounded-lg border border-cyan-300/20 bg-cyan-300/[0.07] px-3 py-2.5 font-sans text-sm text-dashboard-text",children:[(0,Y.jsx)("a",{className:"font-medium text-cyan-200 underline decoration-cyan-300/40 underline-offset-2 hover:text-cyan-100",href:e.authorization.authorizationUrl,rel:"noreferrer",target:"_blank",children:e.authorization.label}),(0,Y.jsx)("p",{className:"mb-0 mt-1 text-xs text-dashboard-text-muted",children:e.authorization.completionText})]})}function ife(e){if(!e.visibility)return null;let t=e.visibility==="public",n=t?Gn:fa,o=t?"Public":"Private",a=t?"Public conversation":"Private conversation",r=t?"Anyone in this workspace can see this transcript.":"Only members of this conversation can see this transcript.";return(0,Y.jsxs)("span",{className:t?"inline-flex max-w-full items-center gap-1 rounded-full border border-emerald-300/20 bg-emerald-300/[0.08] px-2 py-0.5 font-sans text-2xs font-medium text-emerald-50/85":"inline-flex max-w-full items-center gap-1 rounded-full border border-white/[0.1] bg-white/[0.04] px-2 py-0.5 font-sans text-2xs font-medium text-dashboard-text-muted",role:"note",title:`${a}. ${r}`,children:[(0,Y.jsx)(n,{"aria-hidden":"true",className:"size-3 shrink-0"}),(0,Y.jsx)("span",{"aria-hidden":"true",className:"truncate",children:o}),(0,Y.jsxs)("span",{className:"sr-only",children:[a,". ",r]})]})}function Afe(e,t){let n=e??(t?.conversation?Cc([t.conversation])[0]:void 0);return!n||!t?n:{...n,archivedAt:t.archived?n.archivedAt??n.lastSeenAt:void 0}}function sfe(e){let t=e.detail?.annotations?.filter(n=>n.kind==="resource_link");return t?.length?(0,Y.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:t.map(n=>(0,Y.jsxs)("a",{className:"inline-flex items-center gap-1.5 rounded border border-cyan-300/15 bg-cyan-300/[0.055] px-2 py-0.5 font-sans text-2xs leading-snug text-cyan-50 no-underline",href:n.url,rel:"noreferrer",target:"_blank",children:[n.status?(0,Y.jsx)(cfe,{status:n.status}):null,(0,Y.jsx)("span",{children:n.label})]},`${n.plugin}:${n.key}`))}):null}function cfe(e){let t={open:{className:"text-[#3fb950]",Icon:Ag,label:"Open"},draft:{className:"text-[#8c959f]",Icon:rg,label:"Draft"},closed:{className:"text-[#f85149]",Icon:ZA,label:"Closed"},merged:{className:"text-[#a371f7]",Icon:dg,label:"Merged"},warning:{className:"text-[#d29922]",Icon:Ua,label:"Needs attention"}}[e.status];return(0,Y.jsxs)("span",{className:t.className,title:t.label,children:[(0,Y.jsx)(t.Icon,{"aria-hidden":"true",size:12,strokeWidth:2.25}),(0,Y.jsx)("span",{className:"sr-only",children:t.label})]})}function fC(e,t){return t?t.status==="active":e==="active"}function ufe(e){let t=e.conversation?.actorIdentity?.email?.trim(),n=JF(e.conversation),o=e.conversationId??e.conversation?.id,a=n?t?(0,Y.jsx)(Ie,{className:"font-semibold text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:text-dashboard-text hover:decoration-white/60",to:Vr(t),children:n}):n:null,r=e.detail?.sentryConversationUrl?(0,Y.jsx)("a",{className:"text-dashboard-text no-underline hover:underline",href:e.detail.sentryConversationUrl,rel:"noreferrer",target:"_blank",children:"View in Sentry"}):null;return(0,Y.jsxs)("span",{className:"inline-flex min-w-0 max-w-full flex-wrap items-center gap-x-1.5 gap-y-1",children:[a?(0,Y.jsx)("span",{className:"min-w-0 max-w-full truncate",children:a}):null,o?(0,Y.jsxs)("span",{className:"hidden min-w-0 items-center gap-x-1.5 md:inline-flex",title:o,children:[a?(0,Y.jsx)("span",{className:"text-dashboard-text-muted/50",children:"\xB7"}):null,(0,Y.jsx)("span",{className:"min-w-0 max-w-[18rem] truncate",children:o})]}):null,r?(0,Y.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-x-1.5",children:[a?(0,Y.jsx)("span",{className:"text-dashboard-text-muted/50",children:"\xB7"}):o?(0,Y.jsx)("span",{className:"hidden text-dashboard-text-muted/50 md:inline",children:"\xB7"}):null,r]}):null]})}function dfe(e){return e.sourceUrl?(0,Y.jsx)("a",{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:decoration-white/60",href:e.sourceUrl,rel:"noreferrer",target:"_blank",children:e.label}):e.label}function lfe(e){let t=e.sourceTask.kind==="scheduled"?"Scheduled Task":"Event Task",n=e.sourceTask.label?.trim(),o=e.sourceTask.id?.trim(),a=e.sourceTask.title?.trim(),r=o?(0,Y.jsxs)(Ie,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:decoration-white/60",to:CU(o),children:["Triggered by ",t]}):(0,Y.jsxs)("span",{children:["Triggered by ",t]});return!n&&!a?r:(0,Y.jsx)(ze,{align:"left",content:(0,Y.jsxs)("span",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1",children:[a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{children:"Title"}),(0,Y.jsx)("span",{className:"text-dashboard-text",children:a})]}):null,n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{children:"Instruction"}),(0,Y.jsx)("span",{className:"text-dashboard-text",children:n})]}):null,o?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{children:"ID"}),(0,Y.jsx)("span",{className:"break-all text-dashboard-text",children:o})]}):null]}),children:r})}function pfe(e){if(!e)return;let t=new Set,n;for(let o of e.events){let a=o.data;if(a.type==="turn_lifecycle"){a.state==="started"?t.add(a.turnId):t.delete(a.turnId),t.size===0&&(n=void 0);continue}if(t.size!==0){if(a.type==="turn_routed"&&t.has(a.turnId)){n=a.modelId;continue}a.type==="handoff"&&(n=a.modelId)}}return t.size>0?n:void 0}function gfe(e){if(!e.conversation)return null;let t=e.detail?.previousCursor?void 0:e.detail,n=t?mU(t):void 0,o=t?gU(t):void 0,a=e.detail?.cumulativeUsage??e.conversation.cumulativeUsage,r=em(a),i=tm(a),A=yc(e.conversation,{includeId:!1}),s=e.detail?.sourceUrl??e.conversation.sourceUrl,c=BU(e.conversation),d=(e.detail?.status??e.conversation.status)==="active",l=pfe(e.detail),g=e.detail?.sourceTask,m=[A?{content:(0,Y.jsx)(dfe,{label:A,sourceUrl:s}),key:"location"}:void 0,g?{content:(0,Y.jsx)(lfe,{sourceTask:g}),key:"source-task"}:void 0,c!=="none"?{content:(0,Y.jsx)(Dz,{endedAt:e.conversation.lastSeenAt,label:c,startedAt:e.conversation.startedAt}),key:"duration"}:void 0,r?{content:(0,Y.jsx)(xz,{compactionCount:t?t.events.filter(h=>h.data.type==="compaction").length:void 0,live:d,liveModelId:l,modelUsage:e.detail?.modelUsage,summary:r}),key:"tokens"}:void 0,i||e.detail?.auxiliaryCosts||e.conversation.auxiliaryCosts||d?{content:(0,Y.jsx)(vz,{auxiliaryCosts:e.detail?.auxiliaryCosts??e.conversation.auxiliaryCosts,live:d,liveModelId:l,modelUsage:e.detail?.modelUsage,summary:i}),key:"cost"}:void 0,!e.detail||n?{content:(0,Y.jsx)(Sz,{loading:!e.detail,summary:n}),key:"turns"}:void 0,!e.detail||o&&o.total>0?{content:(0,Y.jsx)(Fz,{live:d,loading:!e.detail,summary:o}),key:"tools"}:void 0].filter(h=>h!==void 0);return(0,Y.jsx)("div",{className:"mt-2 hidden md:block",children:(0,Y.jsx)(rC,{className:"break-words text-xs leading-[1.45] text-dashboard-text-muted",items:m})})}var Ke=C(E(),1);function o2(e){let[t,n]=(0,kr.useState)(""),o=Vn(),a=ja(),r=o.conversationId,i=Mj(e.data.config.authRequired?e.data.me.user.email:void 0),A=iz(),s=Az(),[c,d]=(0,kr.useState)(!1),l=(0,kr.useRef)(void 0),g=(0,kr.useMemo)(()=>ffe(Cc(i.data?.conversations??[]),A),[i.data?.conversations,A]),p=(0,kr.useMemo)(()=>_U(g,{actor:"",query:t,source:""}),[g,t]);return(0,kr.useEffect)(()=>{if(!r){l.current=void 0;return}r!==l.current&&d(!1)},[r]),(0,Ke.jsxs)("div",{className:F(In,"grid h-full min-h-0 overflow-hidden md:grid-cols-[21rem_minmax(0,1fr)] xl:border-x xl:border-white/[0.07]"),children:[(0,Ke.jsx)("div",{className:r||c?"hidden h-full min-h-0 overflow-hidden md:block":"h-full min-h-0 overflow-hidden",children:(0,Ke.jsx)(bz,{conversations:p,error:i.error?.message,loading:i.isPending,onNewConversation:()=>{s.reset(),l.current=r,d(!0),r&&a("/",{replace:!0})},onQueryChange:n,query:t,selectedId:c?void 0:r,timeZone:e.data.config.timeZone})}),(0,Ke.jsx)("section",{"aria-label":"Selected conversation",className:r||c?"grid min-h-0 grid-rows-[auto_minmax(0,1fr)] overflow-hidden bg-white/[0.012]":"hidden min-h-0 overflow-hidden bg-white/[0.012] md:grid md:grid-rows-[minmax(0,1fr)]",children:r&&!c?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("div",{className:"border-b border-white/[0.07] bg-white/[0.025] px-3 py-2.5 md:hidden",children:(0,Ke.jsxs)(Ie,{className:"inline-flex items-center gap-2 font-mono text-xs text-dashboard-text-muted no-underline hover:text-dashboard-text",to:"/",children:[(0,Ke.jsx)(or,{"aria-hidden":"true",size:15}),"Your conversations"]})}),(0,Ke.jsx)(dY,{conversationId:r,data:i.data?{conversations:i.data}:void 0,pendingArchiveUpdate:A.find(m=>m.conversationId===r)},r)]}):(0,Ke.jsxs)(Ke.Fragment,{children:[c?(0,Ke.jsx)("div",{className:"border-b border-white/[0.07] bg-white/[0.025] px-3 py-2.5 md:hidden",children:(0,Ke.jsxs)("button",{className:"inline-flex cursor-pointer items-center gap-2 font-mono text-xs text-dashboard-text-muted hover:text-dashboard-text",onClick:()=>{l.current=void 0,d(!1)},title:"Your conversations",type:"button",children:[(0,Ke.jsx)(or,{"aria-hidden":"true",size:15}),"Your conversations"]})}):null,(0,Ke.jsx)("div",{className:"min-h-0 overflow-y-auto",children:(0,Ke.jsx)(mfe,{error:s.error?"Could not create the conversation. Try again.":void 0,pending:s.isPending,onSubmit:async(m,h,B)=>{let f=await s.mutateAsync({idempotencyKey:h,message:m,visibility:B});a(Ro(f.conversationId))}})})]})})]})}function mfe(e){let[t,n]=(0,kr.useState)("public"),o=t==="public";return(0,Ke.jsx)("div",{className:"grid min-h-full place-items-center px-4 py-8 md:px-8",children:(0,Ke.jsxs)("div",{className:"w-full max-w-2xl",children:[(0,Ke.jsxs)("div",{className:"mb-5",children:[(0,Ke.jsx)("h2",{className:"m-0 font-display text-2xl font-medium tracking-[-0.03em] text-dashboard-text md:text-3xl",children:"New conversation"}),(0,Ke.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,Ke.jsxs)(ya,{onClick:()=>n("public"),pressed:o,type:"button",variant:"pill",children:[(0,Ke.jsx)(Gn,{"aria-hidden":"true",className:"mr-1.5 inline size-3"}),"Public"]}),(0,Ke.jsxs)(ya,{onClick:()=>n("private"),pressed:!o,type:"button",variant:"pill",children:[(0,Ke.jsx)(fa,{"aria-hidden":"true",className:"mr-1.5 inline size-3"}),"Private"]})]})]}),(0,Ke.jsx)(tC,{error:e.error,label:"Start a conversation",pending:e.pending,submitLabel:"Send",onSubmit:(a,r)=>e.onSubmit(a,r,t)})]})})}function ffe(e,t){let n=new Map(e.map(o=>[o.id,o]));for(let o of t){let r=n.get(o.conversationId)??(o.conversation?Cc([o.conversation])[0]:void 0);r&&n.set(o.conversationId,{...r,archivedAt:o.archived?r.archivedAt??r.lastSeenAt:void 0})}return[...n.values()].sort((o,a)=>a.lastSeenAt.localeCompare(o.lastSeenAt))}var i2=C(J(),1);var bi=C(E(),1),lY="m-0 font-mono text-sm font-medium text-dashboard-text",pY="mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted";function bC(e){let t=e.totalLabel??"period total";return(0,bi.jsxs)("div",{className:F("flex flex-wrap items-start justify-between gap-3 border-b border-white/[0.06] px-4 py-4 sm:px-5",e.className),children:[(0,bi.jsxs)("div",{className:"min-w-0",children:[(0,bi.jsx)("h3",{className:lY,children:e.title}),e.description?(0,bi.jsx)("p",{className:pY,children:e.description}):null]}),e.total!==void 0?(0,bi.jsxs)("div",{className:"shrink-0 text-right",children:[(0,bi.jsx)("div",{className:lY,children:e.total}),(0,bi.jsx)("div",{className:pY,children:t})]}):e.trailing?(0,bi.jsx)("div",{className:"font-mono text-xs text-dashboard-text-muted",children:e.trailing}):null]})}var tt=C(E(),1);function bfe(e){return e<1?`$${e.toFixed(2)}`:`$${X(e)}`}function hfe(e){let t=e/36e5;return t>=24?`${X(t/24)}d`:t>=1?`${X(t)}h`:Lo(e)}var Bfe={axisFormat:X,color:"#22d3ee",description:"Daily model tokens",format:X,metric:"tokens",title:"Token usage",type:"bar"},yfe={axisFormat:X,color:"#22d3ee",description:"Daily cached and uncached input tokens",format:X,metric:"inputTokens",title:"Input token cache",type:"bar"},Cfe=[{axisFormat:bfe,color:"#fbbf24",description:"Daily estimated cost",format:e=>Ue({total:e}),metric:"costUsd",title:"Model spend",type:"area"},{axisFormat:hfe,color:"#a78bfa",description:"Daily cumulative runtime",format:Lo,metric:"durationMs",title:"Runtime",type:"scatter"}];function wfe(e,t){return t==="inputTokens"?(e.inputTokens??0)+(e.cachedInputTokens??0):e[t]??0}function qd(e){let t=[e.cacheBreakdown?yfe:Bfe,...Cfe];return(0,tt.jsx)("div",{className:"grid gap-4 lg:grid-cols-3",children:t.map(n=>(0,tt.jsx)(Efe,{chart:n,days:e.days},n.metric))})}function Efe(e){let{chart:t,days:n}=e,o=un(250,{bottom:34,left:t.metric==="costUsd"?80:64,right:14,top:22,width:400}),a=n.map(g=>wfe(g,t.metric)),r=Math.max(Number.EPSILON,...a),i=o.plotWidth/Math.max(1,n.length),A=a.map((g,p)=>({x:o.left+i*p+i/2,y:o.top+o.plotHeight-g/r*o.plotHeight})),s=A.length?`M ${A[0].x} ${o.top+o.plotHeight} L ${A.map(g=>`${g.x} ${g.y}`).join(" L ")} L ${A.at(-1).x} ${o.top+o.plotHeight} Z`:"",c=a.reduce((g,p)=>g+p,0),d=Mo(a),l=Math.max(1.5,Math.min(8,i*.65));return(0,tt.jsxs)(O,{children:[(0,tt.jsx)(bC,{description:t.description,title:t.title,total:t.format(c)}),t.metric==="inputTokens"?(0,tt.jsx)("div",{className:"px-5 pt-3",children:(0,tt.jsx)(na,{ariaLabel:"Input token cache series",inline:!0,items:[{color:"#22d3ee",key:"cached",label:"Cached"},{color:"#a78bfa",key:"uncached",label:"Uncached"}]})}):null,(0,tt.jsx)("div",{className:"px-2 py-3",children:(0,tt.jsxs)(dn,{"aria-label":`${t.title} per day`,className:"min-h-52 overflow-hidden",layout:o,children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("linearGradient",{id:`${t.metric}-area`,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,tt.jsx)("stop",{offset:"0%",stopColor:t.color,stopOpacity:"0.3"}),(0,tt.jsx)("stop",{offset:"100%",stopColor:t.color,stopOpacity:"0"})]})}),(0,tt.jsx)(Dn,{format:t.axisFormat,layout:o,maximum:r}),t.type==="area"&&s?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("path",{d:s,fill:`url(#${t.metric}-area)`}),(0,tt.jsx)("polyline",{fill:"none",points:A.map(g=>`${g.x},${g.y}`).join(" "),stroke:t.color,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]}):null,n.map((g,p)=>{let m=a[p],h=A[p],B=m/r*o.plotHeight,f=Math.max(m?2:0,B);return(0,tt.jsx)(ze,{content:t.metric==="inputTokens"?(0,tt.jsx)(ln,{rows:[["cached",X(g.cachedInputTokens??0)],["uncached",X(g.inputTokens??0)]]}):t.format(m),label:qe(g.date),children:t.type==="bar"&&t.metric==="inputTokens"?(0,tt.jsxs)("g",{"aria-label":`${qe(g.date)}: ${t.format(m)} input tokens`,tabIndex:0,children:[(0,tt.jsx)("rect",{fill:"#a78bfa",height:f,opacity:m?.8:.1,rx:"1.5",width:l,x:h.x-l/2,y:o.top+o.plotHeight-f}),(0,tt.jsx)("rect",{fill:"#22d3ee",height:m?(g.cachedInputTokens??0)/m*f:0,opacity:.85,rx:"1.5",width:l,x:h.x-l/2,y:o.top+o.plotHeight-f})]}):t.type==="bar"?(0,tt.jsx)("rect",{"aria-label":`${qe(g.date)}: ${t.format(m)}`,fill:t.color,height:f,opacity:m?.8:.1,rx:"1.5",tabIndex:0,width:l,x:h.x-l/2,y:o.top+o.plotHeight-f}):(0,tt.jsx)("circle",{"aria-label":`${qe(g.date)}: ${t.format(m)}`,cx:h.x,cy:h.y,fill:t.color,opacity:t.type==="scatter"?.75:.45,r:t.type==="scatter"?3.5:2.5,tabIndex:0})},g.date)}),(0,tt.jsx)(jo,{average:d,format:t.metric==="inputTokens"||t.metric==="tokens"?Wr:t.format,layout:o,maximum:r,stroke:t.color}),(0,tt.jsx)(Fn,{dates:n.map(g=>g.date),layout:o,xPosition:g=>A[g]?.x??o.left})]})})]})}var Nc=C(E(),1);function Oo(e){return(0,Nc.jsxs)("div",{className:F("flex flex-wrap items-start justify-between gap-4 border-b border-white/[0.06] px-4 py-4 sm:px-5",e.className),children:[(0,Nc.jsxs)("div",{children:[(0,Nc.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:e.title}),e.description?(0,Nc.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.description}):null]}),e.trailing?(0,Nc.jsx)("div",{className:"font-mono text-xs text-dashboard-text-muted",children:e.trailing}):null]})}var ds=C(E(),1);function Ne(e){let t=e.icon;return(0,ds.jsxs)(O,{className:"relative p-4 sm:p-5",children:[(0,ds.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,ds.jsx)("div",{className:"font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:e.label}),(0,ds.jsx)(t,{"aria-hidden":"true",className:"text-amber-400/55",size:15})]}),(0,ds.jsx)("div",{className:"mt-4 font-display text-3xl font-light leading-none tracking-[-0.04em] text-dashboard-text sm:text-4xl",children:e.value}),e.detail?(0,ds.jsx)("div",{className:"mt-2 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.detail}):null]})}var qo=C(E(),1);function hC(e){let t=un(260),n=Math.max(1,...e.days.flatMap(A=>[A.privateConversations,A.publicConversations])),o=t.plotWidth/Math.max(1,e.days.length),a=Math.max(3,Math.min(18,o*.8)),r=Math.min(2,a*.15),i=Math.max(1.5,(a-r)/2);return(0,qo.jsxs)(O,{children:[(0,qo.jsx)(Oo,{description:"Daily public volume compared with private activity in aggregate.",title:"Conversations per day",trailing:(0,qo.jsx)(na,{ariaLabel:"Conversation visibility legend",inline:!0,items:[{color:"#22d3ee",key:"public",label:"public"},{color:"#fbbf24",key:"private",label:"private"}]})}),(0,qo.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,qo.jsxs)(dn,{"aria-label":"Public and private conversations per day",className:"min-h-56 w-full overflow-visible",layout:t,children:[(0,qo.jsx)(Dn,{layout:t,maximum:n}),e.days.flatMap((A,s)=>{let c=t.left+s*o+(o-a)/2;return[{count:A.publicConversations,fill:"#22d3ee",key:"public",x:c},{count:A.privateConversations,fill:"#fbbf24",key:"private",x:c+i+r}].map(d=>{let l=d.count/n*t.plotHeight;return(0,qo.jsx)(ze,{content:(0,qo.jsx)(ln,{rows:[["public",A.publicConversations],["private",A.privateConversations]]}),label:qe(A.date),children:(0,qo.jsx)("rect",{"aria-label":`${qe(A.date)}: ${A.publicConversations} public conversations, ${A.privateConversations} private conversations`,fill:d.fill,height:Math.max(d.count?2:0,l),opacity:d.count?.85:.12,rx:"1.5",tabIndex:0,width:i,x:d.x,y:t.top+t.plotHeight-l})},`${A.date}-${d.key}`)})}),(0,qo.jsx)(Fn,{dates:e.days.map(A=>A.date),layout:t,xPosition:A=>t.left+A*o+o/2})]})})]})}var Qa=C(E(),1);function BC(e){let t=Math.max(1,...e.days.map(i=>i.conversations)),n=[],o=e.days[0]?new Date(`${e.days[0].date}T00:00:00Z`).getUTCDay():0,a=[...Array.from({length:o},()=>null),...e.days];for(;a.length>0&&a.length%7!==0;)a.push(null);for(let i=0;i<a.length;i+=7){let A=a.slice(i,i+7);for(;A.length<7;)A.push(null);n.push(A)}n.length===0&&n.push([null,null,null,null,null,null,null]);let r=n.map((i,A)=>{let s=i.find(Boolean);if(!s)return"";let c=A>0?n[A-1]:void 0,d=c?[...c].reverse().find(Boolean):void 0;return d&&d.date.slice(0,7)===s.date.slice(0,7)?"":new Date(`${s.date}T00:00:00Z`).toLocaleString(void 0,{month:"short",timeZone:"UTC"})});return(0,Qa.jsx)("div",{className:"overflow-x-auto px-4 py-4",children:(0,Qa.jsxs)("div",{className:"min-w-[36rem]",children:[(0,Qa.jsx)("div",{"aria-hidden":"true",className:"mb-1 grid gap-1 text-xs font-semibold leading-none text-dashboard-text-muted",style:{gridTemplateColumns:`repeat(${n.length}, minmax(0.75rem, 1fr))`},children:r.map((i,A)=>(0,Qa.jsx)("div",{className:"h-3 overflow-visible",children:i},`${i}-${A}`))}),(0,Qa.jsx)("div",{"aria-label":`Daily ${pt()} conversation activity`,className:"grid w-full grid-flow-col grid-rows-7 gap-1",role:"list",style:{gridTemplateColumns:`repeat(${n.length}, minmax(0.75rem, 1fr))`},children:n.flatMap((i,A)=>i.map((s,c)=>s?(0,Qa.jsx)(ze,{content:(0,Qa.jsx)(ln,{rows:[["conversations",s.conversations],["runtime",gY(s)],["spend",Ue({total:s.costUsd??0})],["tokens",X(s.tokens??0)]]}),label:kfe(s.date),children:(0,Qa.jsx)("span",{"aria-label":`${s.date}: ${s.conversations} conversations, ${gY(s)}, ${Ue({total:s.costUsd??0})} spend, ${X(s.tokens??0)} tokens`,className:F("size-3 border border-black/40 outline-none focus-visible:ring-2 focus-visible:ring-[#beaaff]",Qfe(s.conversations,t)),role:"listitem",tabIndex:0})},s.date):(0,Qa.jsx)("span",{"aria-hidden":"true",className:"size-3 border border-black/40 bg-[#101010]"},`empty-${A}-${c}`)))}),(0,Qa.jsxs)("div",{className:"mt-3 flex items-center gap-1 text-xs font-semibold uppercase leading-none text-dashboard-text-muted",children:[(0,Qa.jsx)("span",{children:"Less"}),[0,1,2,3,4].map(i=>(0,Qa.jsx)("span",{"aria-hidden":"true",className:F("size-3 border border-black/40",i===0&&"bg-dashboard-surface-hover",i===1&&"bg-[#133225]",i===2&&"bg-[#176a4a]",i===3&&"bg-[#22a06b]",i===4&&"bg-[#8bdc97]")},i)),(0,Qa.jsx)("span",{children:"More"})]})]})})}function kfe(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",timeZone:"UTC",year:"numeric"})}function gY(e){return e.durationMs<=0&&e.conversations>0?"unknown":Lo(e.durationMs)}function Qfe(e,t){if(e<=0)return"bg-dashboard-surface-hover";let n=e/t;return n>=.75?"bg-[#8bdc97]":n>=.45?"bg-[#22a06b]":n>=.2?"bg-[#176a4a]":"bg-[#133225]"}var $t=C(E(),1);function Ife(e,t,n,o,a){return{x:a.left+t/Math.max(1,n-1)*a.plotWidth,y:a.top+a.plotHeight-e.activePeople/o*a.plotHeight}}function yC(e){let t=un(260),n=e.days.map(c=>c.activePeople),o=Math.max(1,...n),a=Mo(n),r=e.days.map((c,d)=>Ife(c,d,e.days.length,o,t)),i=t.top+t.plotHeight,A=r.map(c=>`${c.x},${c.y}`).join(" "),s=r.length?`M ${r[0].x} ${i} L ${r.map(c=>`${c.x} ${c.y}`).join(" L ")} L ${r.at(-1).x} ${i} Z`:"";return(0,$t.jsxs)(O,{children:[(0,$t.jsx)(Oo,{description:"Distinct verified actors grouped by recorded conversation activity.",title:"Active people per day",trailing:(0,$t.jsx)(na,{ariaLabel:"People activity legend",inline:!0,items:[{color:"#fbbf24",key:"people",label:"people"}]})}),(0,$t.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,$t.jsxs)(dn,{"aria-label":"Active people per day",className:"min-h-56 w-full overflow-visible",layout:t,children:[(0,$t.jsxs)("defs",{children:[(0,$t.jsxs)("linearGradient",{id:"people-area",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,$t.jsx)("stop",{offset:"0%",stopColor:"#f59e0b",stopOpacity:"0.3"}),(0,$t.jsx)("stop",{offset:"100%",stopColor:"#f59e0b",stopOpacity:"0"})]}),(0,$t.jsxs)("linearGradient",{id:"people-line",x1:"0",x2:"1",y1:"0",y2:"0",children:[(0,$t.jsx)("stop",{offset:"0%",stopColor:"#f59e0b"}),(0,$t.jsx)("stop",{offset:"55%",stopColor:"#fbbf24"}),(0,$t.jsx)("stop",{offset:"100%",stopColor:"#22d3ee"})]})]}),(0,$t.jsx)(Dn,{layout:t,maximum:o}),s?(0,$t.jsx)("path",{d:s,fill:"url(#people-area)"}):null,A?(0,$t.jsx)("polyline",{fill:"none",points:A,stroke:"url(#people-line)",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"}):null,e.days.map((c,d)=>{let l=r[d];return(0,$t.jsx)(ze,{content:(0,$t.jsx)(ln,{rows:[["active people",c.activePeople],["conversations",c.conversations]]}),label:qe(c.date),children:(0,$t.jsx)("circle",{"aria-label":`${qe(c.date)}: ${c.activePeople} active people, ${c.conversations} conversations`,cx:l.x,cy:l.y,fill:"#fbbf24",opacity:e.days.length>30?.35:.75,r:e.days.length>30?3:4,tabIndex:0})},c.date)}),(0,$t.jsx)(jo,{average:a,format:Wr,layout:t,maximum:o,stroke:"#fbbf24"}),(0,$t.jsx)(Fn,{dates:e.days.map(c=>c.date),layout:t,xPosition:c=>r[c]?.x??t.left})]})})]})}var za=C(E(),1);function CC(e){let t=un(280),n=Math.max(1,...e.days.map(s=>s.conversations)),o=t.plotWidth/Math.max(1,e.days.length),a=Math.max(2,Math.min(24,o*.68)),r=e.days.map(s=>s.conversations),i=r.reduce((s,c)=>s+c,0),A=Mo(r);return(0,za.jsxs)(O,{children:[(0,za.jsx)(bC,{description:"Root conversations with recorded activity, bucketed by day.",title:"Conversation activity",total:X(i)}),(0,za.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,za.jsxs)(dn,{"aria-label":"Conversations per day",className:"min-h-60 overflow-visible",layout:t,children:[(0,za.jsx)(Dn,{layout:t,maximum:n}),e.days.map((s,c)=>{let d=t.left+c*o+o/2,l=s.conversations/n*t.plotHeight,g=Math.max(s.conversations?2:0,l);return(0,za.jsx)(ze,{content:(0,za.jsx)(ln,{rows:[["conversations",s.conversations]]}),label:qe(s.date),children:(0,za.jsxs)("g",{"aria-label":`${qe(s.date)}: ${s.conversations} conversations`,tabIndex:0,children:[(0,za.jsx)("rect",{fill:"#22d3ee",height:g,opacity:s.conversations?.78:.08,rx:"2",width:a,x:d-a/2,y:t.top+t.plotHeight-g}),(0,za.jsx)("rect",{fill:"transparent",height:t.plotHeight,width:o,x:t.left+c*o,y:t.top})]})},s.date)}),(0,za.jsx)(jo,{average:A,format:Wr,layout:t,maximum:n,stroke:"#22d3ee"}),(0,za.jsx)(Fn,{dates:e.days.map(s=>s.date),layout:t,xPosition:s=>t.left+s*o+o/2})]})})]})}var ae=C(E(),1),mY=`[event notification]
100
+ `}function Ame(e){return e.length>0}var wz=C(J(),1);var z8=C(E(),1);function oC(e){let[t,n]=(0,wz.useState)("idle"),o=t==="copied"?"Copied":t==="copying"?"Preparing Markdown":t==="failed"?"Copy failed":"Copy as Markdown",a=t==="copied"?Vs:ec;async function r(){if(e.getMarkdown)try{n("copying"),await navigator.clipboard.writeText(await e.getMarkdown()),n("copied")}catch{n("failed")}}return(0,z8.jsx)(mt,{"aria-label":o,disabled:!e.getMarkdown||t==="copying",onClick:()=>{r()},size:"icon",title:o,children:(0,z8.jsx)(a,{"aria-hidden":"true",size:15,strokeWidth:2})})}var oa=C(E(),1);function Ez(e){return(0,oa.jsxs)("header",{className:"sticky top-0 z-10 -mx-3 mb-2 border-b border-white/[0.07] bg-[#050507]/92 px-3 pb-1.5 pt-3 backdrop-blur md:-mx-7 md:mb-4 md:px-7 md:pb-3 md:pt-5",children:[(0,oa.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 md:items-start md:gap-3",children:[(0,oa.jsxs)("div",{className:"min-w-0",children:[(0,oa.jsxs)("div",{className:"flex min-w-0 items-center gap-x-2 gap-y-1",children:[(0,oa.jsx)("h2",{className:"m-0 line-clamp-1 min-w-0 font-display text-sm font-medium leading-tight tracking-[-0.03em] md:text-2xl",children:e.title}),e.live?(0,oa.jsx)("span",{"aria-label":"Conversation is live",className:"inline-flex size-2 shrink-0 rounded-full bg-emerald-300 md:hidden",title:"Live"}):null,(0,oa.jsx)("span",{className:"hidden md:inline-flex",children:e.privacy})]}),(0,oa.jsxs)("div",{className:"mt-1 hidden min-w-0 gap-0.5 font-sans text-xs leading-snug text-dashboard-text-muted md:grid",children:[e.identity,(0,oa.jsxs)("span",{children:["updated ",e.updatedLabel]})]})]}),(0,oa.jsx)(sme,{...e.archive})]}),e.archive.error?(0,oa.jsx)("div",{className:"mt-1.5 text-xs text-red-300/80",children:"Could not update archive state."}):null,e.stats,(0,oa.jsx)("div",{className:"hidden md:block",children:e.annotations})]})}function sme(e){let t=e.pending?"Saving archive state":e.archived?"Unarchive":"Archive",n=e.archived?Zp:Ws;return(0,oa.jsx)(mt,{"aria-label":t,className:"hidden shrink-0 text-dashboard-text-muted md:grid",disabled:e.disabled,onClick:e.onClick,size:"icon",title:t,type:"button",children:(0,oa.jsx)(n,{"aria-hidden":"true",size:16,strokeWidth:2})})}var Y8=C(E(),1),cme="animate-[junior-text-shimmer_1.6s_linear_infinite] bg-[linear-gradient(90deg,#777_0%,#d6d6d6_40%,#fff_50%,#d6d6d6_60%,#777_100%)] bg-[length:200%_100%] bg-clip-text text-transparent motion-reduce:animate-none";function pi(e){if(!e.active&&!e.className&&!e["aria-label"])return e.children;let t=F(e.active&&cme,e.className);return e.as==="strong"?(0,Y8.jsx)("strong",{"aria-label":e["aria-label"],className:t,children:e.children}):(0,Y8.jsx)("span",{"aria-label":e["aria-label"],className:t,children:e.children})}var Ud=C(E(),1);function iA(e){let t=e.right!==void 0&&e.right!==null&&e.right!==!1;return(0,Ud.jsxs)("div",{className:F("flex min-w-0 items-start justify-between gap-2 md:items-center md:gap-3",e.className),children:[(0,Ud.jsx)("div",{className:F("flex min-w-0 items-center gap-2 overflow-hidden",e.leftClassName),children:e.left}),t?(0,Ud.jsx)("div",{className:F("min-w-0 max-w-[60%] shrink text-right md:max-w-none md:shrink-0",e.rightClassName),children:e.right}):null]})}function AA(e){return(0,Ud.jsx)("span",{className:F("font-sans leading-none",e.className),children:e.children})}var vt=C(E(),1),ume=3,dme=2;function lme(e){return(0,vt.jsx)("svg",{"aria-hidden":"true",className:e.className,fill:"currentColor",viewBox:"0 0 24 24",children:(0,vt.jsx)("path",{d:"M6.2 15.3c0 1.4-1.1 2.5-2.5 2.5S1.2 16.7 1.2 15.3s1.1-2.5 2.5-2.5h2.5v2.5zm1.3 0c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v6.2c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-6.2zM8.7 6.2c-1.4 0-2.5-1.1-2.5-2.5S7.3 1.2 8.7 1.2s2.5 1.1 2.5 2.5v2.5H8.7zm0 1.3c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5H2.5C1.1 12.5 0 11.4 0 10s1.1-2.5 2.5-2.5h6.2zM17.8 8.7c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5h-2.5V8.7zm-1.3 0c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5V2.5C11.5 1.1 12.6 0 14 0s2.5 1.1 2.5 2.5v6.2zM14 17.8c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5v-2.5H14zm0-1.3c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5h6.2c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5H14z"})})}function pme(e){return e==="interrupt"?{icon:kg,label:"Interrupt"}:{icon:co,label:"Queued"}}function kz(e){return(0,vt.jsx)(ze,{content:e.label,placement:"above",children:(0,vt.jsx)("span",{"aria-label":e.label,className:F("inline-flex",e.className),children:e.children})})}function gme(e){let t=pme(e.delivery),n=t.icon,o=e.source==="slack";return(0,vt.jsxs)(AA,{className:"flex min-w-0 items-center justify-end gap-2 text-xs leading-none text-dashboard-text-muted",children:[(0,vt.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1.5",children:[o?(0,vt.jsx)(kz,{className:"text-dashboard-text-muted",label:"Slack",children:(0,vt.jsx)(lme,{className:"size-3.5"})}):null,(0,vt.jsx)(kz,{className:e.delivery==="interrupt"?"text-amber-200/85":"text-dashboard-text-muted",label:t.label,children:(0,vt.jsx)(n,{"aria-hidden":"true",size:13,strokeWidth:2.2})})]}),e.timestamp?(0,vt.jsx)("span",{className:"min-w-0 truncate",children:e.timestamp}):null]})}function mme(e){let t=e.message.parts.find(A=>A.type==="text"),n=!!(t&&"redacted"in t&&t.redacted),o=t&&"text"in t&&typeof t.text=="string"?t.text:"",a=Bc(e.conversation,e.message),r=e.message.delivery??"defer",i=e.message.source??(e.conversation.surface==="slack"?"slack":"web");return(0,vt.jsxs)("article",{className:F("grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 px-3 py-2 text-dashboard-text md:px-3.5",e.showDivider&&"border-t border-white/[0.06]"),children:[(0,vt.jsx)(iA,{left:(0,vt.jsx)("span",{className:"inline-block max-w-full truncate font-display text-sm font-semibold leading-tight text-dashboard-text",children:(0,vt.jsx)(pi,{active:!0,children:a})}),leftClassName:"text-sm leading-snug text-dashboard-text",right:(0,vt.jsx)(gme,{delivery:r,source:i,timestamp:Ut(e.message.timestamp)})}),n?(0,vt.jsx)("p",{className:"m-0 font-mono text-sm leading-snug text-dashboard-text-muted",children:"[redacted]"}):(0,vt.jsx)("p",{className:"m-0 line-clamp-3 font-mono text-sm leading-snug text-dashboard-text/90",children:o})]})}function Qz(e){let t=qF(Jr(e.conversation),e.messages);if(t.length===0)return null;let n=t.length===1?"1 queued message":`${t.length} queued messages`,o=t.length>ume?t.slice(0,dme):t,a=t.length-o.length;return(0,vt.jsxs)("div",{"aria-label":"Pending messages",className:"mx-2 overflow-hidden rounded-t-lg border border-b-0 border-white/[0.09] bg-cyan-300/[0.07] md:mx-3",children:[(0,vt.jsx)("div",{className:"px-3 py-2 font-sans text-xs font-medium text-cyan-50/85 md:hidden",children:n}),(0,vt.jsxs)("div",{className:"hidden md:block",children:[o.map((r,i)=>(0,vt.jsx)(mme,{conversation:e.conversation,message:r,showDivider:i>0},r.messageId??`${r.sourceSeq}:${i}`)),a>0?(0,vt.jsxs)("div",{className:"border-t border-white/[0.06] px-3 py-2 font-sans text-xs font-medium text-cyan-50/70 md:px-3.5",children:[a," more queued messages"]}):null]})]})}var Rt=C(E(),1);function Iz(e){return(0,Rt.jsx)("span",{className:"grid min-w-0 self-start grid-cols-[minmax(0,1fr)_auto] content-start gap-x-3 gap-y-1.5",children:e.lines.map((t,n)=>(0,Rt.jsxs)("span",{className:t.label?"contents":F("col-span-2 block min-w-0 break-words text-dashboard-text",t.valueStyle==="heading"&&"font-mono font-semibold text-dashboard-text",t.valueStyle==="heading"&&n>0&&"mt-1 border-t border-white/10 pt-2"),children:[t.label?(0,Rt.jsx)("span",{className:F("min-w-0 break-words font-medium text-dashboard-text-muted",t.labelStyle==="code"&&"break-all font-mono text-xs text-dashboard-text"),children:t.label}):null,t.label?(0,Rt.jsx)("span",{className:"whitespace-nowrap text-right text-dashboard-text",children:t.value}):(0,Rt.jsxs)(Rt.Fragment,{children:[t.value,t.live?(0,Rt.jsxs)("span",{className:"ml-2 inline-flex items-center gap-1.5 font-sans text-xs font-normal tracking-wide text-dashboard-text-muted",children:[(0,Rt.jsx)("span",{"aria-hidden":"true",children:"\xB7"}),(0,Rt.jsx)(pi,{active:!0,children:"in progress"})]}):null]})]},`${n}-${t.label??""}-${t.value}-${t.live?"live":""}`))})}function gi(e){let t=e.tooltip?.filter(a=>a.value.trim()),n=e.tooltipColumns?.map(a=>a.filter(r=>r.value.trim())).filter(a=>a.length),o=!!n?.length;return!t?.length&&!n?.length?(0,Rt.jsx)("span",{className:e.className,children:e.children}):(0,Rt.jsx)(ze,{align:e.align,className:F("w-[calc(100vw-2rem)] rounded-lg border border-white/15 bg-[#050505] px-3 py-2 text-left text-xs font-normal leading-relaxed text-dashboard-text-muted shadow-xl shadow-black/35",o?"max-w-[32.5rem]":"max-w-80"),content:n?.length?(0,Rt.jsx)("span",{className:"grid max-h-72 grid-cols-1 items-start gap-4 overflow-y-auto sm:grid-cols-2 sm:gap-6",children:n.map((a,r)=>(0,Rt.jsx)(Iz,{lines:a},r))}):t?(0,Rt.jsx)("span",{className:"block max-h-72 overflow-y-auto",children:(0,Rt.jsx)(Iz,{lines:t})}):null,placement:e.tooltipPlacement??"below",children:(0,Rt.jsx)("span",{className:F("inline-flex border-b border-dotted border-white/20 outline-none transition-colors hover:border-white/45 focus-visible:border-white/45",e.className),tabIndex:0,children:e.children})})}function rC(e){return(0,Rt.jsx)("div",{className:F("flex flex-wrap items-center gap-x-1.5 gap-y-1",e.className),children:e.items.map((t,n)=>(0,Rt.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-x-1.5",children:[n>0?(0,Rt.jsx)("span",{className:"text-dashboard-text-muted",children:"\xB7"}):null,(0,Rt.jsx)("span",{className:"min-w-0",children:t.content})]},t.key))})}var wr=C(E(),1);function K8(e,t){return`${X(t)} ${e}${t===1?"":"s"}`}function J8(e){return!!e}function _z(e){return[e.inputTokens!==void 0?{label:"input",value:X(e.inputTokens)}:void 0,e.outputTokens!==void 0?{label:"output",value:X(e.outputTokens)}:void 0,e.cachedInputTokens!==void 0?{label:"cached",value:X(e.cachedInputTokens)}:void 0,e.cacheCreationTokens!==void 0?{label:"cache write",value:X(e.cacheCreationTokens)}:void 0,e.reasoningTokens!==void 0?{label:"reasoning",value:X(e.reasoningTokens)}:void 0,e.providerTotalTokens!==void 0?{label:"provider",value:X(e.providerTotalTokens)}:void 0]}function fme(e){return e.split("/").at(-1)??e}function ym(e,t){return{live:e===t,value:fme(e),valueStyle:"heading"}}function bme(e,t,n,o){let a=[n?{label:"compactions",value:X(n)}:void 0];t?.length||a.push(..._z(e));let r=!1;for(let i of t??[]){let A=em(i.usage);A&&(r||=i.modelId===o,a.push(ym(i.modelId,o),..._z(A).map(s=>s?.label?{...s,label:`\u2022 ${s.label}`}:s)))}return o&&!r&&a.push(ym(o,o)),a.filter(J8)}function iC(e){return[{label:"total",value:Zr(e)},e.input!==void 0?{label:"input",value:Zr({total:e.input})}:void 0,e.output!==void 0?{label:"output",value:Zr({total:e.output})}:void 0,e.cacheRead!==void 0?{label:"cache read",value:Zr({total:e.cacheRead})}:void 0,e.cacheWrite!==void 0?{label:"cache write",value:Zr({total:e.cacheWrite})}:void 0].filter(J8)}function hme(e,t,n,o){let a=my(e,n),r=(t??[]).flatMap(c=>{let d=tm(c.usage);return d?[{modelId:c.modelId,summary:d}]:[]}),i=o&&!r.some(c=>c.modelId===o)?[ym(o,o)]:[];if(!a)return{tooltip:i};if(!n)return r.length?{tooltip:[...r.flatMap(c=>[ym(c.modelId,o),...iC(c.summary).map(d=>({...d,label:`\u2022 ${d.label}`}))]),...i]}:{tooltip:[...e?iC(e):[],...i]};let A=[{value:"Conversation",valueStyle:"heading"},{label:"total",value:Zr(a)}];if(e)if(A.push({label:"agent",value:Zr(e)}),!r.length)A.push(...iC(e).filter(c=>c.label!=="total").map(c=>({...c,label:`\u2022 ${c.label}`})));else for(let c of r)A.push(ym(c.modelId,o),...iC(c.summary).map(d=>({...d,label:`\u2022 ${d.label}`})));A.push(...i);let s=[{value:"Auxiliary",valueStyle:"heading"},{label:"total",value:Zr({total:n.costUsd})}];for(let c of n.operations)s.push({label:`${Bme(c)} (${X(c.events)})`,value:Zr({total:c.costUsd})});return{tooltipColumns:[A,s]}}function Bme(e){let t={"junior/guardian_action_reviewed":"Guardian","junior/passive_reply_routed":"Passive reply routing","junior/turn_routed":"Thinking routing","memory/memories_captured":"Memory extraction","memory/memories_recalled":"Memory recall"},n=`${e.namespace}/${e.name}`;return t[n]??`${e.namespace} \xB7 ${e.name.replaceAll("_"," ")}`}function vz(e){let t=my(e.summary,e.auxiliaryCosts);if(!t&&!e.live)return null;let n=!!e.live,o=t?`${Ue(t)}${n?"+":""}`:"$\u2026";return(0,wr.jsx)(gi,{align:e.align,tooltipPlacement:"above",...hme(e.summary,e.modelUsage,e.auxiliaryCosts,e.liveModelId),children:(0,wr.jsx)(pi,{active:n,children:o})})}function xz(e){return e.summary?(0,wr.jsx)(gi,{align:e.align,tooltip:bme(e.summary,e.modelUsage,e.compactionCount,e.liveModelId),children:(0,wr.jsx)(pi,{active:e.live,children:KF(e.summary)})}):null}function Dz(e){if(!e.label||e.label==="none")return null;let n=[e.startedAt?{label:"started",value:Tn(e.startedAt)}:void 0,e.endedAt?{label:"ended",value:Tn(e.endedAt)}:void 0].filter(J8);return(0,wr.jsx)(gi,{align:e.align,tooltip:n,children:e.label})}function Fz(e){if(e.loading)return(0,wr.jsx)("span",{children:"tool calls loading"});if(!e.summary||e.summary.total<=0)return null;let t=e.summary.items.map(n=>({label:n.name,labelStyle:"code",value:K8("call",n.count)}));return(0,wr.jsx)(gi,{align:e.align,tooltip:t,children:(0,wr.jsx)(pi,{active:e.live,children:K8("tool call",e.summary.total)})})}function Sz(e){return e.loading?(0,wr.jsx)("span",{children:"turns loading"}):e.summary?(0,wr.jsx)(gi,{children:K8("turn",e.summary.total)}):null}var a2=C(J(),1);var Lz=C(J(),1);var ka=C(E(),1),yme=[{label:"Conversation",value:"rich"},{label:"Event log",value:"raw"}];function Rz(e){let[t,n]=(0,Lz.useState)(!1),o=t||e.search.length>0||e.value!=="rich",a=()=>{if(o){n(!1),e.search.length>0&&e.onSearchChange(""),e.value!=="rich"&&e.onChange("rich");return}n(!0)};return(0,ka.jsxs)("div",{className:"mb-2 grid min-w-0 gap-2 md:mb-4",children:[e.redacted?(0,ka.jsx)("div",{className:"min-w-0 break-words text-sm leading-relaxed text-dashboard-text-muted",children:"Hidden because this conversation is not public."}):null,(0,ka.jsxs)("div",{className:"flex min-w-0 items-center justify-end gap-1 md:hidden",children:[(0,ka.jsx)(mt,{"aria-expanded":o,"aria-label":o?"Hide transcript tools":"Show transcript tools",className:"text-dashboard-text-muted",onClick:a,size:"icon",title:o?"Hide transcript tools":"Show transcript tools",type:"button",children:o?(0,ka.jsx)(Ki,{"aria-hidden":"true",size:16,strokeWidth:2}):(0,ka.jsx)(nc,{"aria-hidden":"true",size:16,strokeWidth:2})}),e.actions]}),(0,ka.jsxs)("div",{className:F("min-w-0 flex-col gap-2 sm:flex-row sm:items-center",o?"flex":"hidden","md:flex"),children:[(0,ka.jsx)(qa,{className:"min-w-0 flex-1",label:"Search transcript",onChange:e.onSearchChange,placeholder:"Search transcript\u2026",size:"compact",value:e.search}),(0,ka.jsxs)("div",{className:"flex shrink-0 items-center gap-2 self-end sm:self-auto",children:[(0,ka.jsx)(Cme,{value:e.value,onChange:e.onChange}),(0,ka.jsx)("span",{className:"hidden md:inline-flex",children:e.actions})]})]})]})}function Cme(e){return(0,ka.jsx)("div",{"aria-label":"Transcript view",className:"inline-flex items-center gap-0.5 rounded-lg border border-white/[0.08] bg-black/20 p-0.5 text-xs font-medium text-dashboard-text-muted",role:"group",children:yme.map(t=>(0,ka.jsx)(ya,{className:F("!normal-case !no-underline rounded-md px-2 py-1 font-sans text-xs font-medium tracking-normal",e.value===t.value&&"bg-white/[0.08] text-dashboard-text"),onClick:()=>e.onChange(t.value),pressed:e.value===t.value,title:t.label,variant:"text",children:t.label},t.value))})}var lC=C(J(),1);var ra=C(E(),1);function Cm(e){let{active:t}=Un(),n=e.meta.join(" \xB7 "),o=e.expandable??!!e.children,a=t||e.raw||!o,r=(0,ra.jsx)(iA,{left:(0,ra.jsxs)(ra.Fragment,{children:[e.signature,e.mobileSummaryMeta?(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)("span",{className:F("hidden text-dashboard-text-muted max-md:inline",!a&&"max-md:group-open:hidden"),children:"\xB7"}),(0,ra.jsx)("span",{className:F("hidden shrink-0 whitespace-nowrap text-dashboard-text-muted max-md:inline",!a&&"max-md:group-open:hidden"),children:e.mobileSummaryMeta})]}):null]}),leftClassName:F("gap-x-1 gap-y-0.5",a?"flex-wrap":"flex-nowrap group-open:flex-wrap"),right:n?(0,ra.jsx)(AA,{className:"min-w-0 break-words text-sm text-dashboard-text-muted",children:n}):void 0,rightClassName:"ml-3 min-w-0 max-md:hidden"}),i=n&&e.children?(0,ra.jsx)("div",{className:"hidden min-w-0 break-words py-1 font-mono text-xs leading-snug text-dashboard-text-muted max-md:block",children:n}):null;return a?(0,ra.jsxs)("div",{className:Nz(),children:[(0,ra.jsx)("div",{className:$z(!1),children:r}),i,e.children]}):(0,ra.jsxs)("details",{className:F("group",Nz()),children:[(0,ra.jsx)("summary",{className:$z(!0),children:r}),i,e.children]})}function Nz(){return"min-w-0 max-w-full overflow-hidden"}function $z(e){return F("block py-1.5 font-mono text-sm leading-tight text-dashboard-text-muted",e?"cursor-pointer list-none transition-colors hover:text-dashboard-text hover:[&_*]:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 focus-visible:text-dashboard-text focus-visible:[&_*]:text-dashboard-text [&::-webkit-details-marker]:hidden":"cursor-default")}var mi=C(E(),1);function W8(e){let t=e.part.subagentKind,n=e.part.status,o=[n,typeof e.timestamp=="number"?Ut(e.timestamp):void 0].filter(wme),a=(0,mi.jsx)(Cm,{meta:o,mobileSummaryMeta:n,raw:!0,signature:(0,mi.jsxs)(mi.Fragment,{children:[(0,mi.jsx)("strong",{className:"min-w-0 break-words font-bold text-cyan-100",children:(0,mi.jsx)(Oe,{text:t})}),e.part.status==="running"?(0,mi.jsx)("span",{"aria-hidden":"true",className:"mt-px size-1.5 shrink-0 animate-pulse rounded-full bg-cyan-300"}):null]})});return e.onOpenTranscript?(0,mi.jsx)("button",{"aria-label":`Open ${e.part.subagentKind} transcript`,className:"block w-full min-w-0 cursor-pointer text-left transition-colors hover:bg-white/[0.035] focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55",onClick:()=>e.onOpenTranscript?.(e.part),type:"button",children:a}):a}function wme(e){return typeof e=="string"&&e.length>0}var Er=C(E(),1);function Z8(e){let t=e.part.event,n=t.type==="handoff",o=t.type==="compaction"&&t.details?` at approximately ${X(t.details.estimatedInputTokens)} estimated tokens`:"",a=t.type==="compaction"&&t.modelProfile&&t.modelId?` using the ${t.modelProfile} profile (${t.modelId})`:"";return(0,Er.jsxs)("article",{className:`min-w-0 rounded-lg border px-3 py-3 first:mt-1 ${n?"border-sky-300/10 bg-sky-300/[0.035]":"border-amber-300/10 bg-amber-300/[0.035]"}`,children:[(0,Er.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-x-3 gap-y-1",children:[(0,Er.jsx)("strong",{className:`font-display text-sm font-semibold ${n?"text-sky-100":"text-amber-100"}`,children:n?"Model handoff":"Context compacted"}),typeof e.timestamp=="number"?(0,Er.jsx)("span",{className:"text-xs text-dashboard-text-muted",children:Ut(e.timestamp)}):null]}),(0,Er.jsx)("div",{className:"mt-1.5 text-sm text-dashboard-text-muted",children:n?`Execution continued with the ${t.modelProfile} profile (${t.modelId}${t.reasoningLevel?`, ${t.reasoningLevel}`:""}).`:`Earlier context was summarized${o}${a} before execution continued.`}),t.summary?(0,Er.jsxs)("details",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[(0,Er.jsx)("summary",{className:"cursor-pointer select-none text-xs font-medium text-dashboard-text-muted",children:"Continuation summary"}),(0,Er.jsx)("div",{className:"mt-2 text-sm leading-relaxed text-dashboard-text-muted",children:(0,Er.jsx)($o,{role:"system",text:t.summary})})]}):null]})}var us=C(J(),1);var ee=C(E(),1);function AC(e){let[t,n]=(0,us.useState)(!1),o=(0,us.useId)(),a=(0,us.useRef)(null);return(0,us.useEffect)(()=>{if(!t)return;function r(i){i.key==="Escape"&&(n(!1),a.current?.focus())}return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t]),(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:"group/context relative flex justify-end",children:[(0,ee.jsx)("button",{"aria-controls":o,"aria-expanded":t,"aria-label":"View turn context",className:F("grid size-7 cursor-pointer place-items-center rounded-md border border-transparent bg-transparent transition-colors hover:border-white/10 hover:bg-white/[0.06] focus-visible:outline focus-visible:outline-2 focus-visible:outline-cyan-200/60",JA,t&&"border-white/10 bg-white/[0.06] text-cyan-100/80"),onClick:()=>n(!0),ref:a,title:"View turn context",type:"button",children:(0,ee.jsx)(qr,{"aria-hidden":"true",size:15,strokeWidth:1.8})}),(0,ee.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-[calc(100%+0.35rem)] z-10 whitespace-nowrap rounded border border-white/10 bg-[#111] px-2 py-1 text-xs font-medium text-dashboard-text-muted opacity-0 shadow-lg transition-opacity group-hover/context:opacity-100 group-focus-within/context:opacity-100",children:"View turn context"})]}),t?(0,ee.jsx)(Eme,{contexts:e.contexts,id:o,onClose:()=>{n(!1),a.current?.focus()}}):null]})}function Eme(e){return(0,ee.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,ee.jsx)("button",{"aria-label":"Close turn context",className:"absolute inset-0 cursor-default border-0 bg-black/55 backdrop-blur-[1px]",onClick:e.onClose,type:"button"}),(0,ee.jsxs)("section",{"aria-label":"Turn context","aria-modal":"true",className:"absolute inset-y-0 right-0 flex w-full max-w-[34rem] flex-col border-l border-white/15 bg-dashboard-surface-raised shadow-2xl shadow-black/70",id:e.id,role:"dialog",children:[(0,ee.jsxs)("header",{className:"flex min-h-16 items-center justify-between gap-4 border-b border-white/10 px-5",children:[(0,ee.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,ee.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-cyan-200/10 text-cyan-100/80",children:(0,ee.jsx)(qr,{"aria-hidden":"true",size:17,strokeWidth:1.8})}),(0,ee.jsxs)("div",{className:"min-w-0",children:[(0,ee.jsx)("h2",{className:"m-0 text-sm font-semibold text-dashboard-text",children:"Turn context"}),(0,ee.jsx)("p",{className:"m-0 mt-0.5 text-xs text-dashboard-text-muted",children:"Structured context supplied with this message"})]})]}),(0,ee.jsx)("button",{"aria-label":"Close turn context",autoFocus:!0,className:"grid size-8 shrink-0 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-dashboard-text-muted transition-colors hover:bg-white/10 hover:text-dashboard-text",onClick:e.onClose,title:"Close turn context",type:"button",children:(0,ee.jsx)(Ki,{"aria-hidden":"true",size:17})})]}),(0,ee.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-2",children:e.contexts.map((t,n)=>(0,ee.jsx)(kme,{context:t},`${t.pluginName}:${t.kind}:${t.version}:${n}`))})]})]})}function kme(e){let t=nC(e.context);return(0,ee.jsxs)("section",{className:"border-b border-white/10 py-5 last:border-b-0",children:[(0,ee.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-4",children:[(0,ee.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[t?(0,ee.jsx)(Zs,{"aria-hidden":"true",className:"shrink-0 text-cyan-100/60",size:15}):(0,ee.jsx)(qr,{"aria-hidden":"true",className:"shrink-0 text-cyan-100/60",size:15}),(0,ee.jsx)("h3",{className:"m-0 truncate text-sm font-semibold text-dashboard-text",children:t?"Recalled memories":e.context.pluginName})]}),(0,ee.jsxs)("span",{className:"shrink-0 text-xs text-dashboard-text-muted",children:[e.context.kind," \xB7 v",e.context.version]})]}),t?(0,ee.jsx)(Qme,{loadedAt:e.context.loadedAt,memories:t.memories}):(0,ee.jsx)(Ime,{context:e.context})]})}function Qme(e){return(0,ee.jsxs)("div",{className:"overflow-hidden rounded-lg border border-white/10",children:[e.memories.map((t,n)=>(0,ee.jsxs)("details",{className:"group/memory border-t border-white/10 first:border-t-0",children:[(0,ee.jsxs)("summary",{className:"flex cursor-pointer list-none items-start gap-2.5 px-3 py-3 transition-colors hover:bg-white/[0.04] [&::-webkit-details-marker]:hidden",children:[(0,ee.jsx)(ma,{"aria-hidden":"true",className:"mt-0.5 shrink-0 text-dashboard-text-muted transition-transform group-open/memory:rotate-90",size:15}),(0,ee.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,ee.jsxs)("span",{className:"flex items-center justify-between gap-3",children:[(0,ee.jsxs)("span",{className:"text-xs font-medium text-dashboard-text-muted",children:["Memory ",n+1]}),(0,ee.jsxs)("span",{className:"shrink-0 text-xs text-dashboard-text-muted",children:[t.kind," \xB7 ",t.scope]})]}),(0,ee.jsx)("span",{className:"mt-1 block truncate text-sm text-dashboard-text-muted",children:(0,ee.jsx)(Oe,{text:t.content})})]})]}),(0,ee.jsxs)("div",{className:"border-t border-white/8 bg-white/[0.025] px-4 py-4",children:[(0,ee.jsx)("div",{className:"whitespace-pre-wrap text-sm leading-6 text-dashboard-text",children:(0,ee.jsx)(Oe,{text:t.content})}),(0,ee.jsxs)("dl",{className:"mt-4 grid gap-2 text-xs",children:[(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Memory ID"}),(0,ee.jsx)("dd",{className:"m-0 break-all font-mono text-dashboard-text-muted",children:(0,ee.jsx)(Oe,{text:t.id})})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Observed"}),(0,ee.jsx)("dd",{className:"m-0 text-dashboard-text-muted",children:Tn(new Date(t.observedAtMs).toISOString())})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Scope"}),(0,ee.jsx)("dd",{className:"m-0 text-dashboard-text-muted",children:t.scope})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-[5rem_minmax(0,1fr)] items-start gap-3",children:[(0,ee.jsx)("dt",{className:"text-dashboard-text-muted",children:"Kind"}),(0,ee.jsx)("dd",{className:"m-0 text-dashboard-text-muted",children:t.kind})]})]})]})]},t.id)),(0,ee.jsxs)("p",{className:"m-0 border-t border-white/10 px-3 py-2 text-xs text-dashboard-text-muted",children:[e.memories.length," ",e.memories.length===1?"memory":"memories"," \xB7 Loaded"," ",Ut(Date.parse(e.loadedAt))]})]})}function Ime(e){return(0,ee.jsxs)("div",{children:[(0,ee.jsx)("pre",{className:"m-0 overflow-x-auto whitespace-pre-wrap break-words rounded-lg bg-white/[0.04] p-3 text-xs leading-relaxed text-dashboard-text-muted",children:(0,ee.jsx)(Oe,{text:JSON.stringify(e.context.content,null,2)})}),(0,ee.jsxs)("p",{className:"m-0 mt-3 text-xs text-dashboard-text-muted",children:["Loaded ",Ut(Date.parse(e.context.loadedAt))]})]})}var sC=C(J(),1);var po=C(E(),1);function Lc(e,t,n){return e===1?t:`${e} ${n}`}function V8(e){return e.kind==="failure"?!1:e.kind==="message"?!!e.message.eventType:e.kind==="tool"?e.part.status!=="error":e.kind==="subagent"?e.part.status!=="error"&&e.part.status!=="aborted":!0}function _me(e){let t=e.filter(l=>l.kind==="tool").length,n=e.filter(l=>l.kind==="reasoning").length,o=e.filter(l=>l.kind==="context"&&l.part.event.type==="compaction").length,a=e.filter(l=>l.kind==="context"&&l.part.event.type==="handoff").length,r=e.filter(l=>l.kind==="subagent").length,i=e.filter(l=>l.kind==="structured_event").length,A=e.filter(l=>l.kind==="message").length;if(t+n===e.length&&e.length>0){let l=t===0?void 0:Lc(t,"1 tool call","tool calls"),g=n===0?void 0:Lc(n,"1 reasoning entry","reasoning entries");return l&&g?`${l} and ${g}`:l??g??"1 action"}if(e.length===1){if(o===1)return"context compacted";if(a===1)return"model handoff";if(r===1)return"1 subagent";if(i===1)return"1 event";if(A===1)return"1 resource event";if(t===1)return"1 tool call";if(n===1)return"1 reasoning entry"}let c=Lc(e.length,"1 action","actions"),d=[t>0?Lc(t,"1 tool call","tool calls"):void 0,o>0?Lc(o,"context compacted","context compacted"):void 0,a>0?Lc(a,"model handoff","model handoffs"):void 0,r>0?Lc(r,"1 subagent","subagents"):void 0].filter(l=>l!==void 0);return d.length>0?`${c} \xB7 ${d.join(" \xB7 ")}`:c}function vme(e){return e.some(t=>t.kind==="tool"||t.kind==="subagent"?t.part.status==="running":!1)}function xme(e){return e.userOpen??(e.activeTail||e.hasLiveActivity)}function Mz(e){let{active:t}=Un(),[n,o]=(0,sC.useState)(null),a=e.entries.map(A=>(0,po.jsx)(sC.Fragment,{children:e.renderEntry(A)},A.key)),r=_me(e.entries);if(t)return(0,po.jsx)(po.Fragment,{children:a});let i=xme({activeTail:e.activeTail,hasLiveActivity:vme(e.entries),userOpen:n});return(0,po.jsxs)("details",{className:"group/activity-run min-w-0",open:i,children:[(0,po.jsxs)("summary",{className:"group flex w-fit max-w-full cursor-pointer list-none items-center gap-1.5 rounded-full border border-white/[0.08] bg-white/[0.03] px-2.5 py-1 text-left text-xs leading-tight text-dashboard-text-muted transition-colors hover:border-white/[0.14] hover:bg-white/[0.05] hover:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 [&::-webkit-details-marker]:hidden",onClick:A=>{A.preventDefault(),o(!i)},children:[(0,po.jsx)(XA,{"aria-hidden":"true",className:"size-3 shrink-0 opacity-70",strokeWidth:2.2}),(0,po.jsx)("span",{className:"min-w-0 truncate group-open/activity-run:hidden",children:r}),(0,po.jsxs)("span",{className:"hidden min-w-0 truncate group-open/activity-run:inline",children:["Hide ",r]}),(0,po.jsx)(ma,{"aria-hidden":"true",className:"size-3 shrink-0 opacity-60 transition-transform group-open/activity-run:rotate-90",strokeWidth:2.2})]}),(0,po.jsx)("div",{className:"mt-2 grid min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:a})]})}var Dme=48,uC=120,jz=4;function Pz(e,t){if(e==="bash")return cC(t,"command");if(e==="loadSkill")return cC(t,"skill_name");if(e==="webSearch")return cC(t,"query");if(e==="executeTool"){let n=cC(t,"tool_name"),o=Fme(t,"arguments");return Lme(n,o)}return Sme(t,uC)}function Fme(e,t){return dC(e)?Gz(e[t]):null}function cC(e,t){if(!dC(e))return null;let n=e[t];return typeof n!="string"?null:wm(n,uC)}function Sme(e,t){return e==null||e===""?null:dC(e)?Gz(e):wm(Hz(e),t)}function Gz(e){if(!dC(e))return null;let t=Object.entries(e);if(t.length===0)return null;let n=t.slice(0,jz).map(([a,r])=>`${a}: ${wm(Hz(r),Dme)}`).join(", "),o=t.length>jz?`${n}, \u2026`:n;return wm(o,uC)}function Hz(e){return typeof e=="string"?JSON.stringify(e):No(e).replace(/\s+/g," ").trim()}function wm(e,t){let n=e.replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,Math.max(0,t-1)).trimEnd()}\u2026`:n}function Lme(...e){let t=e.filter(n=>!!n);return t.length>0?wm(t.join(", "),uC):null}function dC(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ot=C(E(),1);function Em(e){let t=Ut(e.timestamp),n=gy(e.timestamp,e.part.resultTimestamp),o=e.part.input!==void 0||e.part.output!==void 0,a=lU(e.part.output),r=[n,a].filter(Tz).join(" \xB7 "),i=[r,t].filter(Tz),A=r,s=Pz(e.part.name,e.part.input),c=(0,Ot.jsx)(Rme,{name:e.part.name,preview:e.view==="raw"?null:s,status:e.part.status}),d=e.view==="raw"&&o?(0,Ot.jsx)(Cm,{meta:i,mobileSummaryMeta:A,raw:!0,signature:c,children:(0,Ot.jsx)(X8,{children:(0,Ot.jsx)(is,{code:No({call:{id:e.part.id,input:e.part.input,name:e.part.name},result:e.part.status==="running"?void 0:{outcome:e.part.status,output:e.part.output}}),language:"json"})})}):(0,Ot.jsxs)(Cm,{expandable:o,meta:i,mobileSummaryMeta:A,signature:c,children:[e.part.input!==void 0?(0,Ot.jsx)(X8,{label:"arguments",children:(0,Ot.jsx)(is,{code:No(e.part.input),language:"json"})}):null,e.part.output!==void 0?(0,Ot.jsx)(X8,{label:"result",children:(0,Ot.jsx)(is,{code:No(e.part.output),language:"json"})}):null]});return(0,Ot.jsx)("div",{className:"min-w-0",children:d})}function Rme(e){let{active:t}=Un(),n=e.status==="running",o=e.status==="error",a=n&&!t,r=n?`${e.name} (running)`:o?`${e.name} (failed)`:void 0;return(0,Ot.jsxs)(Ot.Fragment,{children:[o?(0,Ot.jsx)(Ua,{"aria-hidden":"true",className:"shrink-0 !text-rose-300",size:12,strokeWidth:2.2}):null,(0,Ot.jsx)(pi,{active:a,"aria-label":r,as:"strong",className:F("shrink-0 font-bold",o?"!text-rose-300":!a&&"text-dashboard-text"),children:(0,Ot.jsx)(Oe,{text:e.name})}),e.preview&&!t?(0,Ot.jsxs)("code",{className:"min-w-0 truncate font-[inherit] text-dashboard-text-muted group-open:hidden",children:["(",(0,Ot.jsx)(Oe,{text:e.preview}),")"]}):null]})}function X8(e){return(0,Ot.jsxs)("div",{className:"min-w-0 max-w-full overflow-hidden border-t border-white/10 py-2",children:[e.label?(0,Ot.jsx)("div",{className:"pb-2 font-mono text-xs font-bold uppercase leading-none text-[#9a8fd0]",children:e.label}):null,e.children]})}function Tz(e){return typeof e=="string"&&e.length>0}var qt=C(E(),1);function Uz(e){let{active:t}=Un(),n=e.part.redacted?"Reasoning redacted":e.part.text,o=Ut(e.timestamp),a=(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{"aria-label":"Reasoning",className:"mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-dashboard-text-muted",title:"Reasoning",children:(0,qt.jsx)(gg,{"aria-hidden":"true",size:14,strokeWidth:1.8})}),(0,qt.jsx)(iA,{left:t?(0,qt.jsx)("span",{className:"block min-w-0 italic text-dashboard-text-muted",children:"Reasoning"}):(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("span",{className:"block min-w-0 truncate italic text-dashboard-text-muted group-open/reasoning:hidden",children:n}),(0,qt.jsx)("span",{className:"hidden min-w-0 italic text-dashboard-text-muted group-open/reasoning:inline",children:"Reasoning"})]}),right:o?(0,qt.jsx)(AA,{className:"min-w-0 break-words text-xs not-italic text-dashboard-text-muted max-md:hidden",children:o}):void 0,rightClassName:"min-w-0 max-md:hidden"})]}),r=(0,qt.jsxs)("div",{className:"grid min-w-0 grid-cols-[1rem_minmax(0,1fr)] gap-2",children:[(0,qt.jsx)("span",{"aria-hidden":"true"}),(0,qt.jsx)("div",{className:"min-w-0 whitespace-pre-wrap break-words py-1 italic text-dashboard-text-muted",children:(0,qt.jsx)(Oe,{text:n})})]});return t?(0,qt.jsxs)("div",{className:"py-1.5 text-sm leading-relaxed text-dashboard-text-muted",children:[(0,qt.jsx)("div",{className:"grid list-none grid-cols-[1rem_minmax(0,1fr)] items-start gap-2",children:a}),r]}):(0,qt.jsxs)("details",{className:"group/reasoning py-1.5 text-sm leading-relaxed text-dashboard-text-muted",children:[(0,qt.jsx)("summary",{className:"grid cursor-pointer list-none grid-cols-[1rem_minmax(0,1fr)] items-start gap-2 transition-colors hover:text-dashboard-text [&::-webkit-details-marker]:hidden",children:a}),r]})}var Nt=C(E(),1);function e2(e){let t=Un(),n=e.part.presentation,o=Ut(e.timestamp),a=n.details??[],r="min-w-0 rounded-lg border border-violet-300/10 bg-violet-300/[0.035] px-3 py-2 font-mono text-sm leading-tight",i=a.length>0?(0,Nt.jsx)("div",{className:"grid gap-2 pb-1 pt-2",children:a.map((s,c)=>(0,Nt.jsxs)("div",{className:"rounded border border-white/[0.06] bg-white/[0.025] px-3 py-2.5",children:[(0,Nt.jsx)("div",{className:"whitespace-pre-wrap break-words text-sm text-dashboard-text",children:(0,Nt.jsx)(Oe,{text:s.title})}),s.description?(0,Nt.jsx)("div",{className:"mt-1 whitespace-pre-wrap break-words text-xs leading-relaxed text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:s.description})}):null,s.content?(0,Nt.jsx)("pre",{className:"mt-2 max-h-[32rem] overflow-auto whitespace-pre-wrap break-words rounded bg-black/20 p-3 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:s.content})}):null,s.metadata?.length?(0,Nt.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:s.metadata.map(d=>(0,Nt.jsx)("span",{className:"rounded bg-white/[0.05] px-1.5 py-0.5 font-mono text-xs text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:d})},d))}):null]},`${s.title}:${c}`))}):null,A=(0,Nt.jsxs)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-start gap-2 max-md:grid-cols-[minmax(0,1fr)]",children:[(0,Nt.jsxs)("div",{className:"min-w-0",children:[(0,Nt.jsx)("div",{className:"font-display text-sm font-semibold text-violet-100",children:(0,Nt.jsx)(Oe,{text:n.title})}),n.preview?(0,Nt.jsx)("div",{className:"mt-0.5 truncate text-xs text-dashboard-text-muted",children:(0,Nt.jsx)(Oe,{text:n.preview})}):null]}),o?(0,Nt.jsx)("span",{className:"font-mono text-xs text-dashboard-text-muted max-md:hidden",children:o}):null]});return a.length===0||t.active?(0,Nt.jsxs)("div",{className:r,children:[A,i]}):(0,Nt.jsxs)("details",{className:`group/plugin-event ${r}`,children:[(0,Nt.jsx)("summary",{className:"cursor-pointer list-none transition-colors hover:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 [&::-webkit-details-marker]:hidden",children:A}),i]})}function Nme(e,t){if(!e||e.isCollapsed||e.toString().length===0)return!1;for(let n=0;n<e.rangeCount;n+=1)if(e.getRangeAt(n).intersectsNode(t))return!0;return!1}function Oz(e,t,n,o){return e!=="rich"||!t?!1:!Nme(n,o)}function Rc(e="default"){return`rounded-lg border p-5 text-sm leading-relaxed ${e==="error"?"border-rose-300/25 bg-rose-300/[0.07] text-rose-100":"border-white/[0.07] bg-white/[0.025] text-dashboard-text-muted"}`}var M=C(E(),1);function zz(e){return(0,M.jsx)(Uz,{part:e.part,timestamp:e.timestamp})}function Yz(e){let t=Jr(e.conversation);return(0,M.jsx)("section",{className:"min-w-0 py-1",children:(0,M.jsxs)("div",{className:"min-w-0",children:[(0,M.jsx)(Gme,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,conversation:e.conversation,messages:t,responding:e.responding??!1,view:e.view}),e.responding?(0,M.jsx)($me,{}):null]})})}function $me(){return(0,M.jsxs)("div",{"aria-live":"polite",className:"mt-3 flex items-center",role:"status",children:[(0,M.jsxs)("span",{className:"sr-only",children:[pt()," is responding"]}),(0,M.jsx)("span",{className:"flex items-center gap-1 rounded-2xl bg-white/[0.03] px-3.5 py-2.5",children:[0,1,2].map(e=>(0,M.jsx)("span",{"aria-hidden":"true",className:"size-1.5 animate-bounce rounded-full bg-cyan-100/70 motion-reduce:animate-none",style:{animationDelay:`${e*150}ms`}},e))})]})}function Kz(e,t){return Bc(t,e)}function Mme(e){let t=Vi(e);return F("grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 rounded-2xl px-3 py-2 md:gap-1.5 md:px-3.5 md:py-2.5",t==="assistant"&&"mr-6 bg-[#0e1517] text-dashboard-text md:mr-[18%]",t==="user"&&"ml-6 bg-dashboard-surface-hover text-dashboard-text md:ml-[22%]",t==="system"&&"rounded-xl border border-amber-300/10 bg-[#14120c] text-dashboard-text",t==="tool"&&"rounded-none px-0 text-dashboard-text-muted",t==="other"&&"bg-dashboard-surface-hover text-dashboard-text")}function jme(e){let t=Vi(e);return F("text-xs leading-snug",t==="assistant"&&"text-cyan-100/70",t==="user"&&"text-dashboard-text-muted",t==="system"&&"text-amber-200/80",t==="tool"&&"text-dashboard-text-muted",t==="other"&&"text-dashboard-text-muted")}function Pme(e){let t=Vi(e);return F("inline-block max-w-full truncate font-display text-xs font-semibold leading-tight md:text-sm",t==="assistant"&&"text-cyan-100",t==="user"&&"text-dashboard-text",t==="system"&&"text-amber-200",t==="tool"&&"text-dashboard-text-muted",t==="other"&&"text-dashboard-text")}function Jz(e){return(0,M.jsx)("article",{className:Mme(e.role),onCopy:e.onCopy,children:e.children})}function Wz(e){let t=e.message.source??(e.conversation.surface==="slack"?"slack":void 0),a=[t==="slack"?"Slack":t==="web"?"Dashboard":void 0,...e.meta??[]].filter(nY).join(" \xB7 "),r=Kz(e.message,e.conversation);return(0,M.jsx)(iA,{left:(0,M.jsx)("span",{className:Pme(e.message.role),children:r}),leftClassName:jme(e.message.role),right:a?(0,M.jsx)(AA,{className:"block min-w-0 break-words text-2xs leading-snug text-dashboard-text-muted/80 md:leading-none",children:a}):void 0})}function Gme(e){return(0,M.jsx)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-3 pt-1",children:e.conversation.eventHistory.status==="available"?(0,M.jsx)(qz,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,transcript:e.messages,conversation:e.conversation,responding:e.responding,view:e.view}):e.conversation.eventHistory.status==="redacted"&&e.messages.length>0?(0,M.jsx)(Ome,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,conversation:e.conversation,messages:e.messages}):e.messages.length>0?(0,M.jsx)(qz,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,transcript:e.messages,conversation:e.conversation,responding:e.responding,view:e.view}):(0,M.jsx)("div",{className:Rc(),children:by(e.conversation)})})}function qz(e){return(0,M.jsx)(Zz,{entries:am(e.transcript),keyPrefix:e.conversation.conversationId,responding:e.responding,renderContext:t=>(0,M.jsx)(fi,{kind:t.part.event.type==="handoff"?"handoff":"compaction",children:(0,M.jsx)(Z8,{part:t.part,timestamp:t.timestamp})}),renderFailure:t=>(0,M.jsx)(Vz,{outcome:t.outcome,timestamp:t.timestamp}),renderMessage:t=>t.message.eventType?(0,M.jsx)(fi,{kind:"resource_event",children:(0,M.jsx)(tY,{message:t.message})}):t.message.context?(0,M.jsx)(fi,{kind:"message_context",children:(0,M.jsx)(eY,{message:t.message,conversation:e.conversation})}):(0,M.jsx)(Yme,{message:t.message,conversation:e.conversation,view:e.view}),renderStructuredEvent:t=>(0,M.jsx)(fi,{icon:Xz(t.part.presentation.icon),kind:"structured_event",children:(0,M.jsx)(e2,{part:t.part,timestamp:t.timestamp})}),renderSubagent:t=>(0,M.jsx)(fi,{kind:"subagent",children:(0,M.jsx)(W8,{onOpenTranscript:n=>e.onOpenSubagentTranscript?.({part:n,conversation:e.conversation}),part:t.part,timestamp:t.timestamp})}),renderReasoning:zz,renderTool:t=>(0,M.jsx)(Em,{part:t.part,timestamp:t.timestamp,view:e.view})})}function Zz(e){let t=Un(),n=(0,lC.useRef)(new Map),o=new Set,a=[],r=i=>i.kind==="subagent"?e.renderSubagent(i):i.kind==="context"?e.renderContext(i):i.kind==="structured_event"?e.renderStructuredEvent(i):i.kind==="failure"?e.renderFailure(i):i.kind==="reasoning"?e.renderReasoning(i):i.kind==="tool"?e.renderTool(i):e.renderMessage(i);for(let i=0;i<e.entries.length;){let A=e.entries[i];if(V8(A)){let s=[];for(;i<e.entries.length&&V8(e.entries[i]);)s.push(e.entries[i]),i+=1;let c=t.active?s.filter(d=>XF(d,t.normalizedQuery)):s;if(c.length>0){let d=Hme({claimedKeys:o,entries:s,keyPrefix:e.keyPrefix,knownKeys:n.current});a.push((0,M.jsx)(Mz,{activeTail:!!e.responding&&i===e.entries.length,entries:c,renderEntry:r},d))}continue}(!t.active||XF(A,t.normalizedQuery))&&a.push((0,M.jsx)(lC.Fragment,{children:r(A)},`${e.keyPrefix}:${A.key}`)),i+=1}return t.active&&a.length===0?(0,M.jsx)("div",{className:Rc(),children:"No events match your search."}):(0,M.jsx)("div",{className:"grid min-w-0 gap-3",children:a})}function Hme(e){let t=e.entries.map(a=>`${e.keyPrefix}:${a.key}`),o=t.map(a=>e.knownKeys.get(a)).find(a=>a!==void 0&&!e.claimedKeys.has(a))??`${e.keyPrefix}:activity:${e.entries[0].key}`;return e.claimedKeys.add(o),t.forEach(a=>e.knownKeys.set(a,o)),o}function Vz(e){let t=Ut(e.timestamp),n=e.outcome==="delivery_failed";return(0,M.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 rounded-lg border border-rose-300/25 bg-rose-300/[0.07] px-4 py-3 text-rose-100 max-md:grid-cols-[auto_minmax(0,1fr)]","data-transcript-failure":e.outcome,role:"alert",children:[(0,M.jsx)(rr,{"aria-hidden":"true",className:"mt-0.5 text-rose-300",size:16}),(0,M.jsxs)("div",{className:"min-w-0",children:[(0,M.jsx)("div",{className:"font-display text-base font-semibold leading-tight",children:n?"Message delivery failed":"Agent response failed"}),(0,M.jsx)("div",{className:"mt-1 text-sm leading-relaxed text-rose-100/70",children:n?`${pt()} could not deliver this message to its destination.`:`The model response ended before ${pt()} could complete this turn.`})]}),t?(0,M.jsx)("span",{className:"font-mono text-xs leading-none text-rose-100/55 max-md:col-start-2",children:t}):null]})}function fi(e){let t=Tme(e.kind),n=e.icon??t.icon;return(0,M.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-2.5","data-transcript-rail-event":e.kind,children:[(0,M.jsx)("span",{"aria-hidden":"true",className:F("mt-2 grid size-6 place-items-center rounded-md border bg-black/20",t.className),children:(0,M.jsx)(n,{size:12,strokeWidth:2.2})}),(0,M.jsx)("div",{className:"min-w-0",children:e.children})]})}function Tme(e){return e==="message_context"?{className:"border-white/20 text-dashboard-text-muted",icon:Bg}:e==="resource_event"?{className:"border-violet-300/35 text-violet-200",icon:sg}:e==="structured_event"?{className:"border-violet-300/35 text-violet-200",icon:ar}:e==="subagent"?{className:"border-cyan-300/35 text-cyan-200",icon:Or}:e==="handoff"?{className:"border-sky-300/35 text-sky-200",icon:ac}:{className:"border-amber-300/35 text-amber-200",icon:yg}}var Ume={activity:ar,brain:Zs,calendar:ng,check:Vs,database:VA,info:pg,key:ir,link:fg,sparkles:ea,warning:Ua};function Xz(e){return e?Ume[e]:ar}function Ome(e){return(0,M.jsx)(Zz,{entries:am(e.messages),keyPrefix:`${e.conversation.conversationId}:redacted`,renderContext:t=>(0,M.jsx)(fi,{kind:t.part.event.type==="handoff"?"handoff":"compaction",children:(0,M.jsx)(Z8,{part:t.part,timestamp:t.timestamp})}),renderFailure:t=>(0,M.jsx)(Vz,{outcome:t.outcome,timestamp:t.timestamp}),renderMessage:t=>t.message.eventType?(0,M.jsx)(fi,{kind:"resource_event",children:(0,M.jsx)(tY,{message:t.message})}):t.message.context?(0,M.jsx)(fi,{kind:"message_context",children:(0,M.jsx)(eY,{message:t.message,conversation:e.conversation,redacted:!0})}):(0,M.jsx)(qme,{message:t.message,conversation:e.conversation}),renderStructuredEvent:t=>(0,M.jsx)(fi,{icon:Xz(t.part.presentation.icon),kind:"structured_event",children:(0,M.jsx)(e2,{part:t.part,timestamp:t.timestamp})}),renderSubagent:t=>(0,M.jsx)(fi,{kind:"subagent",children:(0,M.jsx)(W8,{onOpenTranscript:n=>e.onOpenSubagentTranscript?.({part:n,conversation:e.conversation}),part:t.part,timestamp:t.timestamp})}),renderReasoning:zz,renderTool:t=>(0,M.jsx)(Em,{part:t.part,timestamp:t.timestamp})})}function qme(e){let t=[Ut(e.message.timestamp)].filter(nY);return(0,M.jsxs)(Jz,{role:e.message.role,children:[(0,M.jsx)(Wz,{meta:t,message:e.message,conversation:e.conversation}),(0,M.jsx)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 font-mono text-base leading-snug text-dashboard-text-muted",children:e.message.parts.map((n,o)=>(0,M.jsx)(zme,{},o))})]})}function zme(e){return(0,M.jsxs)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-3 py-1 max-md:grid-cols-1",children:[(0,M.jsx)(t2,{}),e.meta?(0,M.jsx)("span",{className:"min-w-0 break-words text-right text-dashboard-text-muted max-md:text-left",children:e.meta}):null]})}function t2(){return(0,M.jsx)("code",{className:"inline-flex w-fit font-mono text-sm leading-tight text-dashboard-text-muted",children:"<redacted>"})}function eY(e){let t=Kz(e.message,e.conversation),n=Ut(e.message.timestamp),o=ni(e.message),a=e.redacted?(0,M.jsx)(t2,{}):(0,M.jsx)(Oe,{text:o});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("details",{className:"group/message-context min-w-0 rounded-lg bg-white/[0.025] px-3 py-2.5 md:hidden","data-transcript-message-context":!0,children:[(0,M.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-2 font-display text-xs font-semibold text-dashboard-text-muted [&::-webkit-details-marker]:hidden",children:[(0,M.jsxs)("span",{className:"min-w-0 truncate",children:["Context from ",t]}),(0,M.jsx)(ma,{"aria-hidden":"true",className:"shrink-0 transition-transform group-open/message-context:rotate-90",size:14})]}),(0,M.jsx)("div",{className:"mt-2 whitespace-pre-wrap pt-2 text-sm leading-relaxed text-dashboard-text/75",children:a}),!e.redacted&&e.message.contexts?.length?(0,M.jsx)("div",{className:"mt-2",children:(0,M.jsx)(AC,{contexts:e.message.contexts})}):null]}),(0,M.jsxs)("article",{className:"hidden min-w-0 rounded-lg bg-white/[0.025] px-3 py-2.5 md:block","data-transcript-message-context":!0,children:[(0,M.jsx)(iA,{left:(0,M.jsxs)("span",{className:"font-display text-xs font-semibold text-dashboard-text-muted",children:["Context from ",t]}),leftClassName:"min-w-0",right:n?(0,M.jsx)(AA,{className:"font-mono text-2xs text-dashboard-text-muted/70",children:n}):void 0}),(0,M.jsx)("div",{className:"mt-1 whitespace-pre-wrap text-sm leading-relaxed text-dashboard-text/75",children:a}),!e.redacted&&e.message.contexts?.length?(0,M.jsx)("div",{className:"mt-2",children:(0,M.jsx)(AC,{contexts:e.message.contexts})}):null]})]})}function tY(e){let t=ni(e.message),n=e.message.parts.some(o=>o.type==="text"&&o.redacted);return(0,M.jsxs)("details",{className:"min-w-0 rounded-lg border border-violet-300/10 bg-violet-300/[0.035] px-3 py-2",children:[(0,M.jsx)("summary",{className:"cursor-pointer list-none font-display text-sm font-semibold text-violet-100 [&::-webkit-details-marker]:hidden",children:(0,M.jsx)(Oe,{text:e.message.eventType??""})}),t?(0,M.jsx)("div",{className:"mt-2 whitespace-pre-wrap text-sm leading-relaxed text-dashboard-text-muted",children:(0,M.jsx)(Oe,{text:t})}):n?(0,M.jsx)("div",{className:"mt-2",children:(0,M.jsx)(t2,{})}):null]})}function Yme(e){let t=ni(e.message),n=e.message.role;return(0,M.jsxs)(Jz,{role:e.message.role,onCopy:o=>{let a=o.currentTarget.ownerDocument.getSelection();Oz(e.view,t,a,o.currentTarget)&&(o.clipboardData.setData("text/plain",t),o.preventDefault())},children:[(0,M.jsx)(Wz,{meta:[Ut(e.message.timestamp)],message:e.message,conversation:e.conversation}),e.view==="raw"?(0,M.jsx)(is,{code:t||"{}",language:wU(t)}):(0,M.jsx)("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:e.message.parts.map((o,a)=>(0,M.jsx)($o,{role:n,text:o.text??""},a))}),e.view==="rich"&&e.message.role==="user"&&e.message.contexts?.length?(0,M.jsx)(AC,{contexts:e.message.contexts}):null]})}function nY(e){return typeof e=="string"&&e.length>0}var Ye=C(J(),1);var Kme=96,Jme=2,n2=typeof window>"u"?Ye.useEffect:Ye.useLayoutEffect;function Wme(e,t=Kme){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}function rY(e){if(!e)return"empty";let n=Jr(e).at(-1),o=n?.parts.at(-1);return[e.conversationId,e.status,n?.sourceSeq??"",n?.role??"",n?.outcome??"",n?.timestamp??"",n?.parts.length??0,efe(o)].join("|")}function aY(e){return e.enabled&&e.following}function Zme(e){return e.source==="scroll"&&e.previousScrollTop!=null&&e.snapshot.scrollTop<e.previousScrollTop-Jme?"pause":Wme(e.snapshot)?"follow":"preserve"}function Vme(e){return e.loadingPreviousPage?"wait":e.currentHistoryVersion!==e.snapshotHistoryVersion?"restore":"discard"}function iY(e){let t=(0,Ye.useRef)(null),n=(0,Ye.useRef)(null),o=(0,Ye.useRef)(e.enabled),a=(0,Ye.useRef)(!1),r=(0,Ye.useRef)(!1),i=(0,Ye.useRef)(null),A=(0,Ye.useRef)(null),s=(0,Ye.useRef)(null),[c,d]=(0,Ye.useState)(!1),[l,g]=(0,Ye.useState)(!1),[p,m]=(0,Ye.useState)(null),h=(0,Ye.useCallback)(v=>{n.current=v,m(v)},[]);(0,Ye.useEffect)(()=>{o.current=e.enabled,e.enabled||(a.current=!1,d(!1),g(!1))},[e.enabled]);let B=(0,Ye.useCallback)(v=>{a.current=v,d(v)},[]),f=(0,Ye.useCallback)(v=>{let x=pC(n.current);if(!x)return;let N=km(x),K=A.current;A.current=N.scrollTop;let z=Zme({previousScrollTop:K,snapshot:N,source:v});if(z==="follow"){B(!0),g(!1);return}z==="pause"&&B(!1)},[B]),b=(0,Ye.useCallback)(v=>{t.current?.scrollIntoView({behavior:v,block:"end"})},[]),y=(0,Ye.useCallback)(()=>{let v=pC(n.current);if(!v)return;let x=km(v);s.current={historyVersion:e.historyVersion,root:v,scrollHeight:x.scrollHeight,scrollTop:x.scrollTop}},[e.historyVersion]);n2(()=>{if(!p||!e.conversationId||i.current===e.conversationId)return;let v=pC(p);v&&(i.current=e.conversationId,oY(v,km(v).scrollHeight),A.current=km(v).scrollTop,B(e.enabled),g(!1))},[p,e.conversationId,e.enabled,B]),n2(()=>{let v=s.current;if(!v)return;let x=Vme({currentHistoryVersion:e.historyVersion,loadingPreviousPage:e.loadingPreviousPage,snapshotHistoryVersion:v.historyVersion});if(x==="restore"){let N=km(v.root);oY(v.root,Xme(v,N.scrollHeight)),s.current=null;return}x==="discard"&&(s.current=null)},[e.historyVersion,e.loadingPreviousPage]);let w=(0,Ye.useCallback)(()=>{if(aY({enabled:o.current,following:a.current})){b("auto");return}f("measure")},[f,b]);n2(()=>{let v=o.current,x=e.enabled||v;if(o.current=e.enabled,!x)return;let N=r.current;if(r.current||(r.current=!0,f("measure")),aY({enabled:e.enabled,following:a.current})){b("auto"),g(!1);return}e.enabled&&N&&g(!0)},[e.enabled,e.version,f,b]),(0,Ye.useEffect)(()=>{if(typeof window>"u")return;let v=pC(p);if(!v)return;let x=v===window?window:v,N=()=>f("scroll");return f("measure"),x.addEventListener("scroll",N,{passive:!0}),window.addEventListener("resize",w),()=>{x.removeEventListener("scroll",N),window.removeEventListener("resize",w)}},[p,f,w]),(0,Ye.useEffect)(()=>{if(typeof ResizeObserver>"u"||!p)return;let v=new ResizeObserver(()=>{w()});return v.observe(p),()=>v.disconnect()},[p,w]);let Q=(0,Ye.useCallback)(()=>{B(!0),g(!1),b(tfe())},[b,B]);return(0,Ye.useMemo)(()=>({anchorRef:t,contentRef:h,hasPendingUpdate:l,jumpToBottom:Q,preserveViewportForPrepend:y,showJumpToLatest:e.enabled&&!c}),[h,c,l,e.enabled,Q,y])}function Xme(e,t){return e.scrollTop+t-e.scrollHeight}function efe(e){return e?e.type==="text"?[e.type,e.text?.length??0,e.redacted?"redacted":""].join(":"):e.type==="tool_call"?[e.type,e.id,e.status,e.startedTimestamp??"",e.input===void 0?"":"input",e.output===void 0?"":"output"].join(":"):e.type==="reasoning"?[e.type,e.text?.length??0,e.redacted?"redacted":""].join(":"):e.type==="subagent"?[e.type,e.id,e.childConversationId,e.subagentKind,e.status].join(":"):e.type==="structured_event"?[e.type,e.namespace,e.name,e.version,e.presentation.title,e.presentation.preview??"",e.presentation.details?.length??0].join(":"):[e.type,e.event.type,e.event.createdAt].join(":"):""}function pC(e){if(typeof window>"u")return null;if(!e)return window;let t=e.parentElement;for(;t&&t!==document.body;){let n=window.getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n.overflowY)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}function km(e){if(AY(e)){let t=document.scrollingElement??document.documentElement;return{clientHeight:window.innerHeight,scrollHeight:t.scrollHeight,scrollTop:window.scrollY||t.scrollTop}}return{clientHeight:e.clientHeight,scrollHeight:e.scrollHeight,scrollTop:e.scrollTop}}function oY(e,t){if(AY(e)){window.scrollTo({behavior:"auto",top:t});return}e.scrollTop=t}function AY(e){return e===window}function tfe(){return typeof window>"u"||typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}var Ln=C(E(),1);function gC(e){let[t,n]=(0,a2.useState)("rich"),[o,a]=(0,a2.useState)(""),r=e.transcript?.eventHistory.status==="redacted",i=iY({conversationId:e.transcript?.conversationId,enabled:e.live??!1,historyVersion:e.historyVersion??"empty",loadingPreviousPage:e.loadingPreviousPage??!1,version:rY(e.transcript)});return e.transcript?(0,Ln.jsx)(RU,{query:o,children:(0,Ln.jsxs)("div",{className:"grid min-w-0",ref:i.contentRef,children:[(0,Ln.jsx)(Rz,{actions:e.actions,onChange:n,onSearchChange:a,redacted:r,search:o,value:t}),e.hasPreviousPage||e.loadingPreviousPage?(0,Ln.jsxs)("div",{className:"mb-3 flex items-center gap-3",children:[(0,Ln.jsx)("span",{className:"h-px min-w-4 flex-1 bg-white/[0.08]"}),(0,Ln.jsx)("button",{"aria-label":"Load earlier events",className:"shrink-0 cursor-pointer border-0 bg-transparent px-1 py-0.5 font-sans text-xs font-medium text-dashboard-text-muted transition-colors hover:text-dashboard-text focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55 disabled:cursor-not-allowed disabled:opacity-50",disabled:e.loadingPreviousPage,onClick:()=>{i.preserveViewportForPrepend(),e.onLoadPreviousPage?.()},title:"Load earlier events",type:"button",children:e.loadingPreviousPage?"Loading earlier messages\u2026":"Show earlier messages"}),(0,Ln.jsx)("span",{className:"h-px min-w-4 flex-1 bg-white/[0.08]"})]}):null,e.historyError?(0,Ln.jsx)("div",{"aria-live":"polite",className:"mb-2 text-center font-sans text-xs text-amber-100/65",children:"Earlier events could not be loaded."}):null,(0,Ln.jsx)(Yz,{onOpenSubagentTranscript:e.onOpenSubagentTranscript,conversation:e.transcript,responding:e.responding??e.live??!1,view:t}),(0,Ln.jsx)("div",{"aria-hidden":"true",className:"h-px",ref:i.anchorRef}),(0,Ln.jsx)(nfe,{hasPendingUpdate:i.hasPendingUpdate,onClick:i.jumpToBottom,visible:i.showJumpToLatest})]})}):(0,Ln.jsx)("div",{className:Rc(),children:"No transcript is available for this conversation."})}function nfe(e){if(!e.visible)return null;let t=e.hasPendingUpdate?"Jump to latest update":"Jump to latest";return(0,Ln.jsx)("div",{className:"pointer-events-none sticky bottom-3 z-20 mt-3 flex justify-center px-3 md:fixed md:inset-x-auto md:bottom-6 md:right-8 md:mt-0 md:justify-end md:px-0",children:(0,Ln.jsxs)(mt,{"aria-label":t,className:"pointer-events-auto relative rounded-lg !border !border-cyan-300/30 !bg-[#0b181a] text-dashboard-text shadow-[0_6px_24px_rgba(0,0,0,0.36)] hover:!border-cyan-200/60 hover:!bg-[#102226] hover:!text-dashboard-text",onClick:e.onClick,size:"icon",title:t,children:[(0,Ln.jsx)(Vp,{"aria-hidden":"true",size:16,strokeWidth:2}),e.hasPendingUpdate?(0,Ln.jsx)("span",{"aria-hidden":"true",className:"absolute right-1.5 top-1.5 size-2 bg-emerald-300"}):null]})})}var Od=C(E(),1);function mC(){return(0,Od.jsxs)("div",{className:"grid gap-3",children:[(0,Od.jsx)("div",{className:"min-h-28 animate-pulse rounded-lg border border-white/10 bg-dashboard-surface-raised"}),(0,Od.jsx)("div",{className:"min-h-[4.5rem] animate-pulse rounded-lg border border-white/10 bg-dashboard-surface-raised"}),(0,Od.jsx)("div",{className:"min-h-28 animate-pulse rounded-lg border border-white/10 bg-dashboard-surface-raised"})]})}var gn=C(E(),1);function cY(e){let t=eC(e.target?.conversationId);if(!e.target)return null;let n=t.data,o=n?.displayTitle||e.target.part.subagentKind,a=[afe(e.target.part,n?.status),n?Ut(Date.parse(n.startedAt)):void 0].filter(ofe),r="subagent-transcript-drawer-title";return(0,gn.jsx)(Fd,{actions:(0,gn.jsx)(oC,{getMarkdown:n?async()=>aC(await t.loadCompleteTranscript()):void 0},e.target.conversationId),closeLabel:"Close subagent transcript",dismissLabel:"Dismiss subagent transcript",header:(0,gn.jsxs)(gn.Fragment,{children:[(0,gn.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,gn.jsx)(Or,{"aria-hidden":"true",className:"shrink-0 text-cyan-300",size:16,strokeWidth:2.25}),(0,gn.jsx)("h2",{className:"m-0 min-w-0 break-words text-lg font-bold leading-tight tracking-normal text-dashboard-text",id:r,children:o})]}),(0,gn.jsxs)("div",{className:"mt-2 grid min-w-0 gap-1.5 text-xs leading-snug",children:[(0,gn.jsx)("code",{className:"min-w-0 break-all font-mono text-xs text-dashboard-text",children:e.target.conversationId}),(0,gn.jsxs)(Ie,{className:"inline-flex w-fit items-center gap-1 font-semibold text-dashboard-text no-underline hover:underline",onClick:e.onClose,to:Ro(e.target.conversationId),children:["Open conversation",(0,gn.jsx)(cg,{"aria-hidden":"true",size:12,strokeWidth:2.25})]})]}),(0,gn.jsx)("div",{className:"mt-1 break-words font-mono text-xs leading-snug text-dashboard-text-muted",children:a.join(" \xB7 ")})]}),onClose:e.onClose,openKey:e.target.conversationId,titleId:r,width:"wide",children:t.isPending?(0,gn.jsx)(mC,{}):t.error&&!n?(0,gn.jsx)(sY,{tone:"error",children:"Conversation failed to load."}):n?(0,gn.jsx)(gC,{hasPreviousPage:t.hasPreviousPage,historyError:t.historyError,historyVersion:t.historyVersion,loadingPreviousPage:t.isLoadingPreviousPage,onLoadPreviousPage:t.loadPreviousPage,transcript:n}):(0,gn.jsx)(sY,{children:"Conversation unavailable."})})}function afe(e,t){return e.status==="error"||e.status==="aborted"?e.status:t??e.status}function sY(e){let t=e.tone==="error";return(0,gn.jsx)("div",{className:Rc(t?"error":"default"),"data-tone":e.tone??"default",role:t?"alert":void 0,children:e.children})}function ofe(e){return typeof e=="string"&&e.length>0}var Y=C(E(),1);function dY(e){let[t,n]=(0,uY.useState)(),o=e.conversationId,a=e.data?.conversations.conversations??[],r=Cc(a),i=eC(o),A=hm(o),s=sz(o),c=r.find(p=>p.id===o),d=Afe(IU(i.data)??c,e.pendingArchiveUpdate),l=i.data,g=d?fy(d):void 0;return(0,Y.jsxs)("div",{className:"grid min-h-0 min-w-0 grid-rows-[minmax(0,1fr)_auto]",children:[(0,Y.jsx)("div",{"aria-label":"Conversation transcript",className:"min-h-0 overflow-y-auto overscroll-contain px-3 pb-3 md:px-7 md:pb-5",tabIndex:0,children:(0,Y.jsxs)("section",{className:"min-w-0",children:[(0,Y.jsx)(Ez,{annotations:(0,Y.jsx)(sfe,{detail:i.data}),archive:{archived:!!d?.archivedAt,disabled:!d||A.isPending,error:!!A.error,onClick:()=>A.mutate({archived:!d?.archivedAt,lastSeenAt:d.lastSeenAt}),pending:A.isPending},identity:(0,Y.jsx)(ufe,{conversation:d,conversationId:o,detail:i.data}),live:fC(g,i.data),privacy:(0,Y.jsx)(ife,{visibility:d?.visibility}),stats:(0,Y.jsx)(gfe,{conversation:d,detail:i.data}),title:as(d),updatedLabel:_d(d?.lastSeenAt??i.data?.generatedAt)}),i.isPending?(0,Y.jsx)(mC,{}):i.error&&!i.data?(0,Y.jsx)(O,{className:"border-white/[0.07] bg-white/[0.025] p-4 font-sans text-xs leading-relaxed text-dashboard-text-muted",children:i.error.message}):(0,Y.jsxs)(Y.Fragment,{children:[i.error?(0,Y.jsx)("div",{className:"mb-3 rounded-lg border border-amber-300/15 bg-amber-300/[0.045] px-3 py-2 font-sans text-xs text-amber-100/65",children:"Transcript refresh failed. Showing the latest available data."}):null,(0,Y.jsx)(gC,{actions:(0,Y.jsx)(oC,{getMarkdown:l?async()=>aC(await i.loadCompleteTranscript(),d):void 0},l?.conversationId??"loading"),hasPreviousPage:i.hasPreviousPage,historyError:i.historyError,historyVersion:i.historyVersion,live:fC(g,i.data),loadingPreviousPage:i.isLoadingPreviousPage,onLoadPreviousPage:i.loadPreviousPage,responding:!i.error&&fC(g,i.data),onOpenSubagentTranscript:({part:p})=>{n({conversationId:p.childConversationId,part:p})},transcript:i.data})]})]})}),i.data?.isParticipant?(0,Y.jsxs)("div",{className:"px-2 py-1.5 pb-[max(0.375rem,env(safe-area-inset-bottom))] md:px-7 md:py-4 md:pb-4",children:[fC(g,i.data)?(0,Y.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 font-sans text-xs text-dashboard-text-muted md:hidden",children:[(0,Y.jsx)("span",{"aria-hidden":"true",className:"size-1.5 shrink-0 animate-pulse rounded-full bg-emerald-300"}),(0,Y.jsx)("span",{children:"Junior is working\u2026"})]}):null,(0,Y.jsxs)("div",{className:"grid min-w-0",children:[i.pendingAuthorization?(0,Y.jsx)(rfe,{authorization:i.pendingAuthorization}):null,i.data?(0,Y.jsx)(Qz,{conversation:i.data,messages:i.pendingMessages}):null,(0,Y.jsx)(tC,{error:s.error?"Could not send the message. Try again.":void 0,label:"Continue this conversation",pending:s.isPending,submitLabel:"Send",onSubmit:async(p,m)=>{await s.mutateAsync({idempotencyKey:m,message:p})}})]})]}):null,(0,Y.jsx)(cY,{onClose:()=>n(void 0),target:t})]})}function rfe(e){return(0,Y.jsxs)("div",{className:"mb-2 rounded-lg border border-cyan-300/20 bg-cyan-300/[0.07] px-3 py-2.5 font-sans text-sm text-dashboard-text",children:[(0,Y.jsx)("a",{className:"font-medium text-cyan-200 underline decoration-cyan-300/40 underline-offset-2 hover:text-cyan-100",href:e.authorization.authorizationUrl,rel:"noreferrer",target:"_blank",children:e.authorization.label}),(0,Y.jsx)("p",{className:"mb-0 mt-1 text-xs text-dashboard-text-muted",children:e.authorization.completionText})]})}function ife(e){if(!e.visibility)return null;let t=e.visibility==="public",n=t?Gn:fa,o=t?"Public":"Private",a=t?"Public conversation":"Private conversation",r=t?"Anyone in this workspace can see this transcript.":"Only members of this conversation can see this transcript.";return(0,Y.jsxs)("span",{className:t?"inline-flex max-w-full items-center gap-1 rounded-full border border-emerald-300/20 bg-emerald-300/[0.08] px-2 py-0.5 font-sans text-2xs font-medium text-emerald-50/85":"inline-flex max-w-full items-center gap-1 rounded-full border border-white/[0.1] bg-white/[0.04] px-2 py-0.5 font-sans text-2xs font-medium text-dashboard-text-muted",role:"note",title:`${a}. ${r}`,children:[(0,Y.jsx)(n,{"aria-hidden":"true",className:"size-3 shrink-0"}),(0,Y.jsx)("span",{"aria-hidden":"true",className:"truncate",children:o}),(0,Y.jsxs)("span",{className:"sr-only",children:[a,". ",r]})]})}function Afe(e,t){let n=e??(t?.conversation?Cc([t.conversation])[0]:void 0);return!n||!t?n:{...n,archivedAt:t.archived?n.archivedAt??n.lastSeenAt:void 0}}function sfe(e){let t=e.detail?.annotations?.filter(n=>n.kind==="resource_link");return t?.length?(0,Y.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:t.map(n=>(0,Y.jsxs)("a",{className:"inline-flex items-center gap-1.5 rounded border border-cyan-300/15 bg-cyan-300/[0.055] px-2 py-0.5 font-sans text-2xs leading-snug text-cyan-50 no-underline",href:n.url,rel:"noreferrer",target:"_blank",children:[n.status?(0,Y.jsx)(cfe,{status:n.status}):null,(0,Y.jsx)("span",{children:n.label})]},`${n.plugin}:${n.key}`))}):null}function cfe(e){let t={open:{className:"text-[#3fb950]",Icon:Ag,label:"Open"},draft:{className:"text-[#8c959f]",Icon:rg,label:"Draft"},closed:{className:"text-[#f85149]",Icon:ZA,label:"Closed"},merged:{className:"text-[#a371f7]",Icon:dg,label:"Merged"},warning:{className:"text-[#d29922]",Icon:Ua,label:"Needs attention"}}[e.status];return(0,Y.jsxs)("span",{className:t.className,title:t.label,children:[(0,Y.jsx)(t.Icon,{"aria-hidden":"true",size:12,strokeWidth:2.25}),(0,Y.jsx)("span",{className:"sr-only",children:t.label})]})}function fC(e,t){return t?t.status==="active":e==="active"}function ufe(e){let t=e.conversation?.actorIdentity?.email?.trim(),n=JF(e.conversation),o=e.conversationId??e.conversation?.id,a=n?t?(0,Y.jsx)(Ie,{className:"font-semibold text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:text-dashboard-text hover:decoration-white/60",to:Vr(t),children:n}):n:null,r=e.detail?.sentryConversationUrl?(0,Y.jsx)("a",{className:"text-dashboard-text no-underline hover:underline",href:e.detail.sentryConversationUrl,rel:"noreferrer",target:"_blank",children:"View in Sentry"}):null;return(0,Y.jsxs)("span",{className:"inline-flex min-w-0 max-w-full flex-wrap items-center gap-x-1.5 gap-y-1",children:[a?(0,Y.jsx)("span",{className:"min-w-0 max-w-full truncate",children:a}):null,o?(0,Y.jsxs)("span",{className:"hidden min-w-0 items-center gap-x-1.5 md:inline-flex",title:o,children:[a?(0,Y.jsx)("span",{className:"text-dashboard-text-muted/50",children:"\xB7"}):null,(0,Y.jsx)("span",{className:"min-w-0 max-w-[18rem] truncate",children:o})]}):null,r?(0,Y.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-x-1.5",children:[a?(0,Y.jsx)("span",{className:"text-dashboard-text-muted/50",children:"\xB7"}):o?(0,Y.jsx)("span",{className:"hidden text-dashboard-text-muted/50 md:inline",children:"\xB7"}):null,r]}):null]})}function dfe(e){return e.sourceUrl?(0,Y.jsx)("a",{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:decoration-white/60",href:e.sourceUrl,rel:"noreferrer",target:"_blank",children:e.label}):e.label}function lfe(e){let t=e.sourceTask.kind==="scheduled"?"Scheduled Task":"Event Task",n=e.sourceTask.label?.trim(),o=e.sourceTask.id?.trim(),a=e.sourceTask.title?.trim(),r=o?(0,Y.jsxs)(Ie,{className:"text-dashboard-text underline decoration-white/20 underline-offset-2 transition-colors hover:decoration-white/60",to:CU(o),children:["Triggered by ",t]}):(0,Y.jsxs)("span",{children:["Triggered by ",t]});return!n&&!a?r:(0,Y.jsx)(ze,{align:"left",content:(0,Y.jsxs)("span",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1",children:[a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{children:"Title"}),(0,Y.jsx)("span",{className:"text-dashboard-text",children:a})]}):null,n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{children:"Instruction"}),(0,Y.jsx)("span",{className:"text-dashboard-text",children:n})]}):null,o?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{children:"ID"}),(0,Y.jsx)("span",{className:"break-all text-dashboard-text",children:o})]}):null]}),children:r})}function pfe(e){if(!e)return;let t=new Set,n;for(let o of e.events){let a=o.data;if(a.type==="turn_lifecycle"){a.state==="started"?t.add(a.turnId):t.delete(a.turnId),t.size===0&&(n=void 0);continue}if(t.size!==0){if(a.type==="turn_routed"&&t.has(a.turnId)){n=a.modelId;continue}a.type==="handoff"&&(n=a.modelId)}}return t.size>0?n:void 0}function gfe(e){if(!e.conversation)return null;let t=e.detail?.previousCursor?void 0:e.detail,n=t?mU(t):void 0,o=t?gU(t):void 0,a=e.detail?.cumulativeUsage??e.conversation.cumulativeUsage,r=em(a),i=tm(a),A=yc(e.conversation,{includeId:!1}),s=e.detail?.sourceUrl??e.conversation.sourceUrl,c=BU(e.conversation),d=(e.detail?.status??e.conversation.status)==="active",l=pfe(e.detail),g=e.detail?.sourceTask,m=[A?{content:(0,Y.jsx)(dfe,{label:A,sourceUrl:s}),key:"location"}:void 0,g?{content:(0,Y.jsx)(lfe,{sourceTask:g}),key:"source-task"}:void 0,c!=="none"?{content:(0,Y.jsx)(Dz,{endedAt:e.conversation.lastSeenAt,label:c,startedAt:e.conversation.startedAt}),key:"duration"}:void 0,r?{content:(0,Y.jsx)(xz,{compactionCount:t?t.events.filter(h=>h.data.type==="compaction").length:void 0,live:d,liveModelId:l,modelUsage:e.detail?.modelUsage,summary:r}),key:"tokens"}:void 0,i||e.detail?.auxiliaryCosts||e.conversation.auxiliaryCosts||d?{content:(0,Y.jsx)(vz,{auxiliaryCosts:e.detail?.auxiliaryCosts??e.conversation.auxiliaryCosts,live:d,liveModelId:l,modelUsage:e.detail?.modelUsage,summary:i}),key:"cost"}:void 0,!e.detail||n?{content:(0,Y.jsx)(Sz,{loading:!e.detail,summary:n}),key:"turns"}:void 0,!e.detail||o&&o.total>0?{content:(0,Y.jsx)(Fz,{live:d,loading:!e.detail,summary:o}),key:"tools"}:void 0].filter(h=>h!==void 0);return(0,Y.jsx)("div",{className:"mt-2 hidden md:block",children:(0,Y.jsx)(rC,{className:"break-words text-xs leading-[1.45] text-dashboard-text-muted",items:m})})}var Ke=C(E(),1);function o2(e){let[t,n]=(0,kr.useState)(""),o=Vn(),a=ja(),r=o.conversationId,i=Mj(),A=iz(),s=Az(),[c,d]=(0,kr.useState)(!1),l=(0,kr.useRef)(void 0),g=(0,kr.useMemo)(()=>ffe(Cc(i.data?.conversations??[]),A),[i.data?.conversations,A]),p=(0,kr.useMemo)(()=>_U(g,{actor:"",query:t,source:""}),[g,t]);return(0,kr.useEffect)(()=>{if(!r){l.current=void 0;return}r!==l.current&&d(!1)},[r]),(0,Ke.jsxs)("div",{className:F(In,"grid h-full min-h-0 overflow-hidden md:grid-cols-[21rem_minmax(0,1fr)] xl:border-x xl:border-white/[0.07]"),children:[(0,Ke.jsx)("div",{className:r||c?"hidden h-full min-h-0 overflow-hidden md:block":"h-full min-h-0 overflow-hidden",children:(0,Ke.jsx)(bz,{conversations:p,error:i.error?.message,loading:i.isPending,onNewConversation:()=>{s.reset(),l.current=r,d(!0),r&&a("/",{replace:!0})},onQueryChange:n,query:t,selectedId:c?void 0:r,timeZone:e.data.config.timeZone})}),(0,Ke.jsx)("section",{"aria-label":"Selected conversation",className:r||c?"grid min-h-0 grid-rows-[auto_minmax(0,1fr)] overflow-hidden bg-white/[0.012]":"hidden min-h-0 overflow-hidden bg-white/[0.012] md:grid md:grid-rows-[minmax(0,1fr)]",children:r&&!c?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("div",{className:"border-b border-white/[0.07] bg-white/[0.025] px-3 py-2.5 md:hidden",children:(0,Ke.jsxs)(Ie,{className:"inline-flex items-center gap-2 font-mono text-xs text-dashboard-text-muted no-underline hover:text-dashboard-text",to:"/",children:[(0,Ke.jsx)(or,{"aria-hidden":"true",size:15}),"Your conversations"]})}),(0,Ke.jsx)(dY,{conversationId:r,data:i.data?{conversations:i.data}:void 0,pendingArchiveUpdate:A.find(m=>m.conversationId===r)},r)]}):(0,Ke.jsxs)(Ke.Fragment,{children:[c?(0,Ke.jsx)("div",{className:"border-b border-white/[0.07] bg-white/[0.025] px-3 py-2.5 md:hidden",children:(0,Ke.jsxs)("button",{className:"inline-flex cursor-pointer items-center gap-2 font-mono text-xs text-dashboard-text-muted hover:text-dashboard-text",onClick:()=>{l.current=void 0,d(!1)},title:"Your conversations",type:"button",children:[(0,Ke.jsx)(or,{"aria-hidden":"true",size:15}),"Your conversations"]})}):null,(0,Ke.jsx)("div",{className:"min-h-0 overflow-y-auto",children:(0,Ke.jsx)(mfe,{error:s.error?"Could not create the conversation. Try again.":void 0,pending:s.isPending,onSubmit:async(m,h,B)=>{let f=await s.mutateAsync({idempotencyKey:h,message:m,visibility:B});a(Ro(f.conversationId))}})})]})})]})}function mfe(e){let[t,n]=(0,kr.useState)("public"),o=t==="public";return(0,Ke.jsx)("div",{className:"grid min-h-full place-items-center px-4 py-8 md:px-8",children:(0,Ke.jsxs)("div",{className:"w-full max-w-2xl",children:[(0,Ke.jsxs)("div",{className:"mb-5",children:[(0,Ke.jsx)("h2",{className:"m-0 font-display text-2xl font-medium tracking-[-0.03em] text-dashboard-text md:text-3xl",children:"New conversation"}),(0,Ke.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,Ke.jsxs)(ya,{onClick:()=>n("public"),pressed:o,type:"button",variant:"pill",children:[(0,Ke.jsx)(Gn,{"aria-hidden":"true",className:"mr-1.5 inline size-3"}),"Public"]}),(0,Ke.jsxs)(ya,{onClick:()=>n("private"),pressed:!o,type:"button",variant:"pill",children:[(0,Ke.jsx)(fa,{"aria-hidden":"true",className:"mr-1.5 inline size-3"}),"Private"]})]})]}),(0,Ke.jsx)(tC,{error:e.error,label:"Start a conversation",pending:e.pending,submitLabel:"Send",onSubmit:(a,r)=>e.onSubmit(a,r,t)})]})})}function ffe(e,t){let n=new Map(e.map(o=>[o.id,o]));for(let o of t){let r=n.get(o.conversationId)??(o.conversation?Cc([o.conversation])[0]:void 0);r&&n.set(o.conversationId,{...r,archivedAt:o.archived?r.archivedAt??r.lastSeenAt:void 0})}return[...n.values()].sort((o,a)=>a.lastSeenAt.localeCompare(o.lastSeenAt))}var i2=C(J(),1);var bi=C(E(),1),lY="m-0 font-mono text-sm font-medium text-dashboard-text",pY="mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted";function bC(e){let t=e.totalLabel??"period total";return(0,bi.jsxs)("div",{className:F("flex flex-wrap items-start justify-between gap-3 border-b border-white/[0.06] px-4 py-4 sm:px-5",e.className),children:[(0,bi.jsxs)("div",{className:"min-w-0",children:[(0,bi.jsx)("h3",{className:lY,children:e.title}),e.description?(0,bi.jsx)("p",{className:pY,children:e.description}):null]}),e.total!==void 0?(0,bi.jsxs)("div",{className:"shrink-0 text-right",children:[(0,bi.jsx)("div",{className:lY,children:e.total}),(0,bi.jsx)("div",{className:pY,children:t})]}):e.trailing?(0,bi.jsx)("div",{className:"font-mono text-xs text-dashboard-text-muted",children:e.trailing}):null]})}var tt=C(E(),1);function bfe(e){return e<1?`$${e.toFixed(2)}`:`$${X(e)}`}function hfe(e){let t=e/36e5;return t>=24?`${X(t/24)}d`:t>=1?`${X(t)}h`:Lo(e)}var Bfe={axisFormat:X,color:"#22d3ee",description:"Daily model tokens",format:X,metric:"tokens",title:"Token usage",type:"bar"},yfe={axisFormat:X,color:"#22d3ee",description:"Daily cached and uncached input tokens",format:X,metric:"inputTokens",title:"Input token cache",type:"bar"},Cfe=[{axisFormat:bfe,color:"#fbbf24",description:"Daily estimated cost",format:e=>Ue({total:e}),metric:"costUsd",title:"Model spend",type:"area"},{axisFormat:hfe,color:"#a78bfa",description:"Daily cumulative runtime",format:Lo,metric:"durationMs",title:"Runtime",type:"scatter"}];function wfe(e,t){return t==="inputTokens"?(e.inputTokens??0)+(e.cachedInputTokens??0):e[t]??0}function qd(e){let t=[e.cacheBreakdown?yfe:Bfe,...Cfe];return(0,tt.jsx)("div",{className:"grid gap-4 lg:grid-cols-3",children:t.map(n=>(0,tt.jsx)(Efe,{chart:n,days:e.days},n.metric))})}function Efe(e){let{chart:t,days:n}=e,o=un(250,{bottom:34,left:t.metric==="costUsd"?80:64,right:14,top:22,width:400}),a=n.map(g=>wfe(g,t.metric)),r=Math.max(Number.EPSILON,...a),i=o.plotWidth/Math.max(1,n.length),A=a.map((g,p)=>({x:o.left+i*p+i/2,y:o.top+o.plotHeight-g/r*o.plotHeight})),s=A.length?`M ${A[0].x} ${o.top+o.plotHeight} L ${A.map(g=>`${g.x} ${g.y}`).join(" L ")} L ${A.at(-1).x} ${o.top+o.plotHeight} Z`:"",c=a.reduce((g,p)=>g+p,0),d=Mo(a),l=Math.max(1.5,Math.min(8,i*.65));return(0,tt.jsxs)(O,{children:[(0,tt.jsx)(bC,{description:t.description,title:t.title,total:t.format(c)}),t.metric==="inputTokens"?(0,tt.jsx)("div",{className:"px-5 pt-3",children:(0,tt.jsx)(na,{ariaLabel:"Input token cache series",inline:!0,items:[{color:"#22d3ee",key:"cached",label:"Cached"},{color:"#a78bfa",key:"uncached",label:"Uncached"}]})}):null,(0,tt.jsx)("div",{className:"px-2 py-3",children:(0,tt.jsxs)(dn,{"aria-label":`${t.title} per day`,className:"min-h-52 overflow-hidden",layout:o,children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("linearGradient",{id:`${t.metric}-area`,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,tt.jsx)("stop",{offset:"0%",stopColor:t.color,stopOpacity:"0.3"}),(0,tt.jsx)("stop",{offset:"100%",stopColor:t.color,stopOpacity:"0"})]})}),(0,tt.jsx)(Dn,{format:t.axisFormat,layout:o,maximum:r}),t.type==="area"&&s?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("path",{d:s,fill:`url(#${t.metric}-area)`}),(0,tt.jsx)("polyline",{fill:"none",points:A.map(g=>`${g.x},${g.y}`).join(" "),stroke:t.color,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]}):null,n.map((g,p)=>{let m=a[p],h=A[p],B=m/r*o.plotHeight,f=Math.max(m?2:0,B);return(0,tt.jsx)(ze,{content:t.metric==="inputTokens"?(0,tt.jsx)(ln,{rows:[["cached",X(g.cachedInputTokens??0)],["uncached",X(g.inputTokens??0)]]}):t.format(m),label:qe(g.date),children:t.type==="bar"&&t.metric==="inputTokens"?(0,tt.jsxs)("g",{"aria-label":`${qe(g.date)}: ${t.format(m)} input tokens`,tabIndex:0,children:[(0,tt.jsx)("rect",{fill:"#a78bfa",height:f,opacity:m?.8:.1,rx:"1.5",width:l,x:h.x-l/2,y:o.top+o.plotHeight-f}),(0,tt.jsx)("rect",{fill:"#22d3ee",height:m?(g.cachedInputTokens??0)/m*f:0,opacity:.85,rx:"1.5",width:l,x:h.x-l/2,y:o.top+o.plotHeight-f})]}):t.type==="bar"?(0,tt.jsx)("rect",{"aria-label":`${qe(g.date)}: ${t.format(m)}`,fill:t.color,height:f,opacity:m?.8:.1,rx:"1.5",tabIndex:0,width:l,x:h.x-l/2,y:o.top+o.plotHeight-f}):(0,tt.jsx)("circle",{"aria-label":`${qe(g.date)}: ${t.format(m)}`,cx:h.x,cy:h.y,fill:t.color,opacity:t.type==="scatter"?.75:.45,r:t.type==="scatter"?3.5:2.5,tabIndex:0})},g.date)}),(0,tt.jsx)(jo,{average:d,format:t.metric==="inputTokens"||t.metric==="tokens"?Wr:t.format,layout:o,maximum:r,stroke:t.color}),(0,tt.jsx)(Fn,{dates:n.map(g=>g.date),layout:o,xPosition:g=>A[g]?.x??o.left})]})})]})}var Nc=C(E(),1);function Oo(e){return(0,Nc.jsxs)("div",{className:F("flex flex-wrap items-start justify-between gap-4 border-b border-white/[0.06] px-4 py-4 sm:px-5",e.className),children:[(0,Nc.jsxs)("div",{children:[(0,Nc.jsx)("h3",{className:"m-0 font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:e.title}),e.description?(0,Nc.jsx)("p",{className:"mt-1 mb-0 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.description}):null]}),e.trailing?(0,Nc.jsx)("div",{className:"font-mono text-xs text-dashboard-text-muted",children:e.trailing}):null]})}var ds=C(E(),1);function Ne(e){let t=e.icon;return(0,ds.jsxs)(O,{className:"relative p-4 sm:p-5",children:[(0,ds.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,ds.jsx)("div",{className:"font-mono text-xs font-medium uppercase tracking-[0.14em] text-dashboard-text-muted",children:e.label}),(0,ds.jsx)(t,{"aria-hidden":"true",className:"text-amber-400/55",size:15})]}),(0,ds.jsx)("div",{className:"mt-4 font-display text-3xl font-light leading-none tracking-[-0.04em] text-dashboard-text sm:text-4xl",children:e.value}),e.detail?(0,ds.jsx)("div",{className:"mt-2 font-mono text-xs leading-relaxed text-dashboard-text-muted",children:e.detail}):null]})}var qo=C(E(),1);function hC(e){let t=un(260),n=Math.max(1,...e.days.flatMap(A=>[A.privateConversations,A.publicConversations])),o=t.plotWidth/Math.max(1,e.days.length),a=Math.max(3,Math.min(18,o*.8)),r=Math.min(2,a*.15),i=Math.max(1.5,(a-r)/2);return(0,qo.jsxs)(O,{children:[(0,qo.jsx)(Oo,{description:"Daily public volume compared with private activity in aggregate.",title:"Conversations per day",trailing:(0,qo.jsx)(na,{ariaLabel:"Conversation visibility legend",inline:!0,items:[{color:"#22d3ee",key:"public",label:"public"},{color:"#fbbf24",key:"private",label:"private"}]})}),(0,qo.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,qo.jsxs)(dn,{"aria-label":"Public and private conversations per day",className:"min-h-56 w-full overflow-visible",layout:t,children:[(0,qo.jsx)(Dn,{layout:t,maximum:n}),e.days.flatMap((A,s)=>{let c=t.left+s*o+(o-a)/2;return[{count:A.publicConversations,fill:"#22d3ee",key:"public",x:c},{count:A.privateConversations,fill:"#fbbf24",key:"private",x:c+i+r}].map(d=>{let l=d.count/n*t.plotHeight;return(0,qo.jsx)(ze,{content:(0,qo.jsx)(ln,{rows:[["public",A.publicConversations],["private",A.privateConversations]]}),label:qe(A.date),children:(0,qo.jsx)("rect",{"aria-label":`${qe(A.date)}: ${A.publicConversations} public conversations, ${A.privateConversations} private conversations`,fill:d.fill,height:Math.max(d.count?2:0,l),opacity:d.count?.85:.12,rx:"1.5",tabIndex:0,width:i,x:d.x,y:t.top+t.plotHeight-l})},`${A.date}-${d.key}`)})}),(0,qo.jsx)(Fn,{dates:e.days.map(A=>A.date),layout:t,xPosition:A=>t.left+A*o+o/2})]})})]})}var Qa=C(E(),1);function BC(e){let t=Math.max(1,...e.days.map(i=>i.conversations)),n=[],o=e.days[0]?new Date(`${e.days[0].date}T00:00:00Z`).getUTCDay():0,a=[...Array.from({length:o},()=>null),...e.days];for(;a.length>0&&a.length%7!==0;)a.push(null);for(let i=0;i<a.length;i+=7){let A=a.slice(i,i+7);for(;A.length<7;)A.push(null);n.push(A)}n.length===0&&n.push([null,null,null,null,null,null,null]);let r=n.map((i,A)=>{let s=i.find(Boolean);if(!s)return"";let c=A>0?n[A-1]:void 0,d=c?[...c].reverse().find(Boolean):void 0;return d&&d.date.slice(0,7)===s.date.slice(0,7)?"":new Date(`${s.date}T00:00:00Z`).toLocaleString(void 0,{month:"short",timeZone:"UTC"})});return(0,Qa.jsx)("div",{className:"overflow-x-auto px-4 py-4",children:(0,Qa.jsxs)("div",{className:"min-w-[36rem]",children:[(0,Qa.jsx)("div",{"aria-hidden":"true",className:"mb-1 grid gap-1 text-xs font-semibold leading-none text-dashboard-text-muted",style:{gridTemplateColumns:`repeat(${n.length}, minmax(0.75rem, 1fr))`},children:r.map((i,A)=>(0,Qa.jsx)("div",{className:"h-3 overflow-visible",children:i},`${i}-${A}`))}),(0,Qa.jsx)("div",{"aria-label":`Daily ${pt()} conversation activity`,className:"grid w-full grid-flow-col grid-rows-7 gap-1",role:"list",style:{gridTemplateColumns:`repeat(${n.length}, minmax(0.75rem, 1fr))`},children:n.flatMap((i,A)=>i.map((s,c)=>s?(0,Qa.jsx)(ze,{content:(0,Qa.jsx)(ln,{rows:[["conversations",s.conversations],["runtime",gY(s)],["spend",Ue({total:s.costUsd??0})],["tokens",X(s.tokens??0)]]}),label:kfe(s.date),children:(0,Qa.jsx)("span",{"aria-label":`${s.date}: ${s.conversations} conversations, ${gY(s)}, ${Ue({total:s.costUsd??0})} spend, ${X(s.tokens??0)} tokens`,className:F("size-3 border border-black/40 outline-none focus-visible:ring-2 focus-visible:ring-[#beaaff]",Qfe(s.conversations,t)),role:"listitem",tabIndex:0})},s.date):(0,Qa.jsx)("span",{"aria-hidden":"true",className:"size-3 border border-black/40 bg-[#101010]"},`empty-${A}-${c}`)))}),(0,Qa.jsxs)("div",{className:"mt-3 flex items-center gap-1 text-xs font-semibold uppercase leading-none text-dashboard-text-muted",children:[(0,Qa.jsx)("span",{children:"Less"}),[0,1,2,3,4].map(i=>(0,Qa.jsx)("span",{"aria-hidden":"true",className:F("size-3 border border-black/40",i===0&&"bg-dashboard-surface-hover",i===1&&"bg-[#133225]",i===2&&"bg-[#176a4a]",i===3&&"bg-[#22a06b]",i===4&&"bg-[#8bdc97]")},i)),(0,Qa.jsx)("span",{children:"More"})]})]})})}function kfe(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString(void 0,{day:"numeric",month:"short",timeZone:"UTC",year:"numeric"})}function gY(e){return e.durationMs<=0&&e.conversations>0?"unknown":Lo(e.durationMs)}function Qfe(e,t){if(e<=0)return"bg-dashboard-surface-hover";let n=e/t;return n>=.75?"bg-[#8bdc97]":n>=.45?"bg-[#22a06b]":n>=.2?"bg-[#176a4a]":"bg-[#133225]"}var $t=C(E(),1);function Ife(e,t,n,o,a){return{x:a.left+t/Math.max(1,n-1)*a.plotWidth,y:a.top+a.plotHeight-e.activePeople/o*a.plotHeight}}function yC(e){let t=un(260),n=e.days.map(c=>c.activePeople),o=Math.max(1,...n),a=Mo(n),r=e.days.map((c,d)=>Ife(c,d,e.days.length,o,t)),i=t.top+t.plotHeight,A=r.map(c=>`${c.x},${c.y}`).join(" "),s=r.length?`M ${r[0].x} ${i} L ${r.map(c=>`${c.x} ${c.y}`).join(" L ")} L ${r.at(-1).x} ${i} Z`:"";return(0,$t.jsxs)(O,{children:[(0,$t.jsx)(Oo,{description:"Distinct verified actors grouped by recorded conversation activity.",title:"Active people per day",trailing:(0,$t.jsx)(na,{ariaLabel:"People activity legend",inline:!0,items:[{color:"#fbbf24",key:"people",label:"people"}]})}),(0,$t.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,$t.jsxs)(dn,{"aria-label":"Active people per day",className:"min-h-56 w-full overflow-visible",layout:t,children:[(0,$t.jsxs)("defs",{children:[(0,$t.jsxs)("linearGradient",{id:"people-area",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,$t.jsx)("stop",{offset:"0%",stopColor:"#f59e0b",stopOpacity:"0.3"}),(0,$t.jsx)("stop",{offset:"100%",stopColor:"#f59e0b",stopOpacity:"0"})]}),(0,$t.jsxs)("linearGradient",{id:"people-line",x1:"0",x2:"1",y1:"0",y2:"0",children:[(0,$t.jsx)("stop",{offset:"0%",stopColor:"#f59e0b"}),(0,$t.jsx)("stop",{offset:"55%",stopColor:"#fbbf24"}),(0,$t.jsx)("stop",{offset:"100%",stopColor:"#22d3ee"})]})]}),(0,$t.jsx)(Dn,{layout:t,maximum:o}),s?(0,$t.jsx)("path",{d:s,fill:"url(#people-area)"}):null,A?(0,$t.jsx)("polyline",{fill:"none",points:A,stroke:"url(#people-line)",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5"}):null,e.days.map((c,d)=>{let l=r[d];return(0,$t.jsx)(ze,{content:(0,$t.jsx)(ln,{rows:[["active people",c.activePeople],["conversations",c.conversations]]}),label:qe(c.date),children:(0,$t.jsx)("circle",{"aria-label":`${qe(c.date)}: ${c.activePeople} active people, ${c.conversations} conversations`,cx:l.x,cy:l.y,fill:"#fbbf24",opacity:e.days.length>30?.35:.75,r:e.days.length>30?3:4,tabIndex:0})},c.date)}),(0,$t.jsx)(jo,{average:a,format:Wr,layout:t,maximum:o,stroke:"#fbbf24"}),(0,$t.jsx)(Fn,{dates:e.days.map(c=>c.date),layout:t,xPosition:c=>r[c]?.x??t.left})]})})]})}var za=C(E(),1);function CC(e){let t=un(280),n=Math.max(1,...e.days.map(s=>s.conversations)),o=t.plotWidth/Math.max(1,e.days.length),a=Math.max(2,Math.min(24,o*.68)),r=e.days.map(s=>s.conversations),i=r.reduce((s,c)=>s+c,0),A=Mo(r);return(0,za.jsxs)(O,{children:[(0,za.jsx)(bC,{description:"Root conversations with recorded activity, bucketed by day.",title:"Conversation activity",total:X(i)}),(0,za.jsx)("div",{className:"px-2 py-3 sm:px-4 sm:py-4",children:(0,za.jsxs)(dn,{"aria-label":"Conversations per day",className:"min-h-60 overflow-visible",layout:t,children:[(0,za.jsx)(Dn,{layout:t,maximum:n}),e.days.map((s,c)=>{let d=t.left+c*o+o/2,l=s.conversations/n*t.plotHeight,g=Math.max(s.conversations?2:0,l);return(0,za.jsx)(ze,{content:(0,za.jsx)(ln,{rows:[["conversations",s.conversations]]}),label:qe(s.date),children:(0,za.jsxs)("g",{"aria-label":`${qe(s.date)}: ${s.conversations} conversations`,tabIndex:0,children:[(0,za.jsx)("rect",{fill:"#22d3ee",height:g,opacity:s.conversations?.78:.08,rx:"2",width:a,x:d-a/2,y:t.top+t.plotHeight-g}),(0,za.jsx)("rect",{fill:"transparent",height:t.plotHeight,width:o,x:t.left+c*o,y:t.top})]})},s.date)}),(0,za.jsx)(jo,{average:A,format:Wr,layout:t,maximum:n,stroke:"#22d3ee"}),(0,za.jsx)(Fn,{dates:e.days.map(s=>s.date),layout:t,xPosition:s=>t.left+s*o+o/2})]})})]})}var ae=C(E(),1),mY=`[event notification]
101
101
 
102
102
  A subscribed resource changed.
103
103