@sentry/junior-dashboard 0.121.0 → 0.122.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/app.js +1 -1
- package/dist/client.js +3 -3
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/client.js
CHANGED
|
@@ -72,8 +72,8 @@ Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}
|
|
|
72
72
|
|
|
73
73
|
`)}g.write("payload.value = newResult;"),g.write("return payload;");let f=g.compile();return(h,y)=>f(p,h,y)},r,A=WA,i=!JA.jitless,c=i&&Jy.value,u=t.catchall,l;e._zod.parse=(p,g)=>{l??(l=o.value);let m=p.value;return A(m)?i&&c&&g?.async===!1&&g.jitless!==!0?(r||(r=a(t.shape)),p=r(p,g),u?PS([],m,p,g,l,e):p):n(p,g):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function QS(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=>!aA(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(A=>kn(A,o,ht())))}),t)}var gd=E("$ZodUnion",(e,t)=>{ne.init(e,t),de(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),de(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=>ad(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,A=[];for(let i of t.options){let s=i._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)A.push(s),r=!0;else{if(s.issues.length===0)return s;A.push(s)}}return r?Promise.all(A).then(i=>QS(i,o,e,a)):QS(A,o,e,a)}});function IS(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(A=>kn(A,o,ht())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var GE=E("$ZodXor",(e,t)=>{gd.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,A=[];for(let i of t.options){let s=i._zod.run({value:o.value,issues:[]},a);s instanceof Promise?(A.push(s),r=!0):A.push(s)}return r?Promise.all(A).then(i=>IS(i,o,e,a)):IS(A,o,e,a)}}),HE=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,gd.init(e,t);let n=e._zod.parse;de(e._zod,"propValues",()=>{let a={};for(let r of t.options){let A=r._zod.propValues;if(!A||Object.keys(A).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[i,s]of Object.entries(A)){a[i]||(a[i]=new Set);for(let c of s)a[i].add(c)}}return a});let o=qs(()=>{let a=t.options,r=new Map;for(let A of a){let i=A._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(A)}"`);for(let s of i){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,A)}}return r});e._zod.parse=(a,r)=>{let A=a.value;if(!WA(A))return a.issues.push({code:"invalid_type",expected:"object",input:A,inst:e}),a;let i=o.value.get(A?.[t.discriminator]);return i?i._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:A,path:[t.discriminator],inst:e}),a)}}),PE=E("$ZodIntersection",(e,t)=>{ne.init(e,t),e._zod.parse=(n,o)=>{let a=n.value,r=t.left._zod.run({value:a,issues:[]},o),A=t.right._zod.run({value:a,issues:[]},o);return r instanceof Promise||A instanceof Promise?Promise.all([r,A]).then(([s,c])=>_S(n,s,c)):_S(n,r,A)}});function eE(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(nA(e)&&nA(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 A=eE(e[r],t[r]);if(!A.valid)return{valid:!1,mergeErrorPath:[r,...A.mergeErrorPath]};a[r]=A.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],A=eE(a,r);if(!A.valid)return{valid:!1,mergeErrorPath:[o,...A.mergeErrorPath]};n.push(A.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _S(e,t,n){let o=new Map,a;for(let i of t.issues)if(i.code==="unrecognized_keys"){a??(a=i);for(let s of i.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(i);for(let i of n.issues)if(i.code==="unrecognized_keys")for(let s of i.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(i);let r=[...o].filter(([,i])=>i.l&&i.r).map(([i])=>i);if(r.length&&a&&e.issues.push({...a,keys:r}),aA(e))return e;let A=eE(t.value,n.value);if(!A.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(A.mergeErrorPath)}`);return e.value=A.data,e}var Bm=E("$ZodTuple",(e,t)=>{ne.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 A=[],i=vS(n,"optin"),s=vS(n,"optout");if(!t.rest){if(r.length<i)return o.issues.push({code:"too_small",minimum:i,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 u=0;u<n.length;u++){let l=n[u]._zod.run({value:r[u],issues:[]},a);l instanceof Promise?A.push(l.then(p=>{c[u]=p})):c[u]=l}if(t.rest){let u=n.length-1,l=r.slice(n.length);for(let p of l){u++;let g=t.rest._zod.run({value:p,issues:[]},a);g instanceof Promise?A.push(g.then(m=>xS(m,o,u))):xS(g,o,u)}}return A.length?Promise.all(A).then(()=>DS(c,o,n,r,s)):DS(c,o,n,r,s)}});function vS(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function xS(e,t,n){e.issues.length&&t.issues.push(...Hn(n,e.issues)),t.value[n]=e.value}function DS(e,t,n,o,a){for(let r=0;r<n.length;r++){let A=e[r],i=r<o.length;if(A.issues.length){if(!i&&r>=a){t.value.length=r;break}t.issues.push(...Hn(r,A.issues))}t.value[r]=A.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 UE=E("$ZodRecord",(e,t)=>{ne.init(e,t),e._zod.parse=(n,o)=>{let a=n.value;if(!nA(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;let r=[],A=t.keyType._zod.values;if(A){n.value={};let i=new Set;for(let c of A)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){i.add(typeof c=="number"?c.toString():c);let u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(g=>kn(g,o,ht())),input:c,path:[c],inst:e});continue}let l=u.value,p=t.valueType._zod.run({value:a[c],issues:[]},o);p instanceof Promise?r.push(p.then(g=>{g.issues.length&&n.issues.push(...Hn(c,g.issues)),n.value[l]=g.value})):(p.issues.length&&n.issues.push(...Hn(c,p.issues)),n.value[l]=p.value)}let s;for(let c in a)i.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 i of Reflect.ownKeys(a)){if(i==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,i))continue;let s=t.keyType._zod.run({value:i,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof i=="string"&&um.test(i)&&s.issues.length){let l=t.keyType._zod.run({value:Number(i),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[i]=a[i]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(l=>kn(l,o,ht())),input:i,path:[i],inst:e});continue}let u=t.valueType._zod.run({value:a[i],issues:[]},o);u instanceof Promise?r.push(u.then(l=>{l.issues.length&&n.issues.push(...Hn(i,l.issues)),n.value[s.value]=l.value})):(u.issues.length&&n.issues.push(...Hn(i,u.issues)),n.value[s.value]=u.value)}}return r.length?Promise.all(r).then(()=>n):n}}),TE=E("$ZodMap",(e,t)=>{ne.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[A,i]of a){let s=t.keyType._zod.run({value:A,issues:[]},o),c=t.valueType._zod.run({value:i,issues:[]},o);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([u,l])=>{FS(u,l,n,A,a,e,o)})):FS(s,c,n,A,a,e,o)}return r.length?Promise.all(r).then(()=>n):n}});function FS(e,t,n,o,a,r,A){e.issues.length&&(od.has(typeof o)?n.issues.push(...Hn(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:a,inst:r,issues:e.issues.map(i=>kn(i,A,ht()))})),t.issues.length&&(od.has(typeof o)?n.issues.push(...Hn(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:a,inst:r,key:o,issues:t.issues.map(i=>kn(i,A,ht()))})),n.value.set(e.value,t.value)}var qE=E("$ZodSet",(e,t)=>{ne.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 A of a){let i=t.valueType._zod.run({value:A,issues:[]},o);i instanceof Promise?r.push(i.then(s=>SS(s,n))):SS(i,n)}return r.length?Promise.all(r).then(()=>n):n}});function SS(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var OE=E("$ZodEnum",(e,t)=>{ne.init(e,t);let n=nd(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>od.has(typeof a)).map(a=>typeof a=="string"?Qa(a):a.toString()).join("|")})$`),e._zod.parse=(a,r)=>{let A=a.value;return o.has(A)||a.issues.push({code:"invalid_value",values:n,input:A,inst:e}),a}}),zE=E("$ZodLiteral",(e,t)=>{if(ne.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"?Qa(o):o?Qa(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}}),YE=E("$ZodFile",(e,t)=>{ne.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}}),KE=E("$ZodTransform",(e,t)=>{ne.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Xr(e.constructor.name);let a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(A=>(n.value=A,n.fallback=!0,n));if(a instanceof Promise)throw new Oa;return n.value=a,n.fallback=!0,n}});function LS(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Cm=E("$ZodOptional",(e,t)=>{ne.init(e,t),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${ad(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(A=>LS(A,a)):LS(r,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),JE=E("$ZodExactOptional",(e,t)=>{Cm.init(e,t),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),WE=E("$ZodNullable",(e,t)=>{ne.init(e,t),de(e._zod,"optin",()=>t.innerType._zod.optin),de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${ad(n.source)}|null)$`):void 0}),de(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)}),ZE=E("$ZodDefault",(e,t)=>{ne.init(e,t),e._zod.optin="optional",de(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=>$S(r,t)):$S(a,t)}});function $S(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var VE=E("$ZodPrefault",(e,t)=>{ne.init(e,t),e._zod.optin="optional",de(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))}),XE=E("$ZodNonOptional",(e,t)=>{ne.init(e,t),de(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=>NS(r,e)):NS(a,e)}});function NS(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 ek=E("$ZodSuccess",(e,t)=>{ne.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Xr("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)}}),tk=E("$ZodCatch",(e,t)=>{ne.init(e,t),e._zod.optin="optional",de(e._zod,"optout",()=>t.innerType._zod.optout),de(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(A=>kn(A,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=>kn(r,o,ht()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),nk=E("$ZodNaN",(e,t)=>{ne.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)}),ym=E("$ZodPipe",(e,t)=>{ne.init(e,t),de(e._zod,"values",()=>t.in._zod.values),de(e._zod,"optin",()=>t.in._zod.optin),de(e._zod,"optout",()=>t.out._zod.optout),de(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(A=>pm(A,t.in,o)):pm(r,t.in,o)}let a=t.in._zod.run(n,o);return a instanceof Promise?a.then(r=>pm(r,t.out,o)):pm(a,t.out,o)}});function pm(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 md=E("$ZodCodec",(e,t)=>{ne.init(e,t),de(e._zod,"values",()=>t.in._zod.values),de(e._zod,"optin",()=>t.in._zod.optin),de(e._zod,"optout",()=>t.out._zod.optout),de(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(A=>gm(A,t,o)):gm(r,t,o)}else{let r=t.out._zod.run(n,o);return r instanceof Promise?r.then(A=>gm(A,t,o)):gm(r,t,o)}}});function gm(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=>mm(e,r,t.out,n)):mm(e,a,t.out,n)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(r=>mm(e,r,t.in,n)):mm(e,a,t.in,n)}}function mm(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var ak=E("$ZodPreprocess",(e,t)=>{ym.init(e,t)}),ok=E("$ZodReadonly",(e,t)=>{ne.init(e,t),de(e._zod,"propValues",()=>t.innerType._zod.propValues),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"optin",()=>t.innerType?._zod?.optin),de(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(RS):RS(a)}});function RS(e){return e.value=Object.freeze(e.value),e}var rk=E("$ZodTemplateLiteral",(e,t)=>{ne.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,A=a.endsWith("$")?a.length-1:a.length;n.push(a.slice(r,A))}else if(o===null||Zy.has(typeof o))n.push(Qa(`${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)}),Ak=E("$ZodFunction",(e,t)=>(ne.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?Xg(e._def.input,o):o,r=Reflect.apply(n,this,a);return e._def.output?Xg(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 em(e._def.input,o):o,r=await Reflect.apply(n,this,a);return e._def.output?await em(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 Bm({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)),ik=E("$ZodPromise",(e,t)=>{ne.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(a=>t.innerType._zod.run({value:a,issues:[]},o))}),sk=E("$ZodLazy",(e,t)=>{ne.init(e,t),de(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),de(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),de(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),de(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),de(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),ck=E("$ZodCustom",(e,t)=>{Ke.init(e,t),ne.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=>MS(r,n,o,e));MS(a,n,o,e)}});function MS(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(Os(a))}}var bd={};x(bd,{ar:()=>TS,az:()=>qS,be:()=>zS,bg:()=>YS,ca:()=>KS,cs:()=>JS,da:()=>WS,de:()=>ZS,el:()=>VS,en:()=>wm,eo:()=>XS,es:()=>e9,fa:()=>t9,fi:()=>n9,fr:()=>a9,frCA:()=>o9,he:()=>r9,hr:()=>A9,hu:()=>i9,hy:()=>c9,id:()=>u9,is:()=>d9,it:()=>l9,ja:()=>p9,ka:()=>g9,kh:()=>m9,km:()=>Em,ko:()=>f9,lt:()=>h9,mk:()=>B9,ms:()=>C9,nl:()=>y9,no:()=>w9,ota:()=>E9,pl:()=>Q9,ps:()=>k9,pt:()=>I9,ro:()=>_9,ru:()=>x9,sl:()=>D9,sv:()=>F9,ta:()=>S9,th:()=>L9,tr:()=>$9,ua:()=>N9,uk:()=>km,ur:()=>R9,uz:()=>M9,vi:()=>j9,yo:()=>P9,zhCN:()=>G9,zhTW:()=>H9});var Sz=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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: ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()} ${A.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\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()} ${A.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":""}: ${I(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 TS(){return{localeError:Sz()}}var Lz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${a.expected}, daxil olan ${i}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r}, daxil olan ${i}`}case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 qS(){return{localeError:Lz()}}function OS(e,t,n,o){let a=Math.abs(e),r=a%10,A=a%100;return A>=11&&A<=19?o:r===1?t:r>=2&&r<=4?n:o}var $z=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);if(A){let i=Number(a.maximum),s=OS(i,A.unit.one,A.unit.few,A.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${A.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?">=":">",A=t(a.origin);if(A){let i=Number(a.minimum),s=OS(i,A.unit.one,A.unit.few,A.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${A.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"}: ${I(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 zS(){return{localeError:$z()}}var Nz=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\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()} ${A.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?">=":">",A=t(a.origin);return A?`\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()} ${A.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 A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return r.format==="emoji"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="datetime"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="date"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),r.format==="time"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="duration"&&(A="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${A} ${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":""}: ${I(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 YS(){return{localeError:Nz()}}var Rz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${a.expected}, s'ha rebut ${i}`:`Tipus inv\xE0lid: s'esperava ${r}, s'ha rebut ${i}`}case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${S(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(a.values," o ")}`;case"too_big":{let r=a.inclusive?"com a m\xE0xim":"menys de",A=t(a.origin);return A?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${r} ${a.maximum.toString()} ${A.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",A=t(a.origin);return A?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${r} ${a.minimum.toString()} ${A.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":""}: ${I(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 KS(){return{localeError:Rz()}}var Mz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${a.expected}, obdr\u017Eeno ${i}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r}, obdr\u017Eeno ${i}`}case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${r}${a.minimum.toString()} ${A.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: ${I(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 JS(){return{localeError:Mz()}}var jz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${i}`:`Ugyldigt input: forventede ${r}, fik ${i}`}case"invalid_value":return a.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(a.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=o[a.origin]??a.origin;return A?`For stor: forventede ${i??"value"} ${A.verb} ${r} ${a.maximum.toString()} ${A.unit??"elementer"}`:`For stor: forventede ${i??"value"} havde ${r} ${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=o[a.origin]??a.origin;return A?`For lille: forventede ${i} ${A.verb} ${r} ${a.minimum.toString()} ${A.unit}`:`For lille: forventede ${i} 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"}: ${I(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 WS(){return{localeError:jz()}}var Gz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${a.expected}, erhalten ${i}`:`Ung\xFCltige Eingabe: erwartet ${r}, erhalten ${i}`}case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ${A.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${r}${a.maximum.toString()} ist`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Zu klein: erwartet, dass ${a.origin} ${r}${a.minimum.toString()} ${A.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"}: ${I(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 ZS(){return{localeError:Gz()}}var Hz=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\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()} ${A.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?">=":">",A=t(a.origin);return A?`\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()} ${A.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"}: ${I(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 VS(){return{localeError:Hz()}}var Pz=()=>{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,A=L(a.input),i=o[A]??A;return`Invalid input: expected ${r}, received ${i}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${S(a.values[0])}`:`Invalid option: expected one of ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${A.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${A.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":""}: ${I(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(A=>`'${A}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function wm(){return{localeError:Pz()}}var Uz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${a.expected}, ricevi\u011Dis ${i}`:`Nevalida enigo: atendi\u011Dis ${r}, ricevi\u011Dis ${i}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()} ${A.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 XS(){return{localeError:Uz()}}var Tz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${a.expected}, recibido ${i}`:`Entrada inv\xE1lida: se esperaba ${r}, recibido ${i}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Demasiado grande: se esperaba que ${i??"valor"} tuviera ${r}${a.maximum.toString()} ${A.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i??"valor"} fuera ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Demasiado peque\xF1o: se esperaba que ${i} tuviera ${r}${a.minimum.toString()} ${A.unit}`:`Demasiado peque\xF1o: se esperaba que ${i} 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":""}: ${I(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 e9(){return{localeError:Tz()}}var qz=()=>{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,A=L(a.input),i=o[A]??A;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 ${i} \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 ${i} \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 ${S(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 ${I(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${A.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: ${I(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 t9(){return{localeError:qz()}}var Oz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${r}, oli ${i}`}case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Liian suuri: ${A.subject} t\xE4ytyy olla ${r}${a.maximum.toString()} ${A.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Liian pieni: ${A.subject} t\xE4ytyy olla ${r}${a.minimum.toString()} ${A.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"}: ${I(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 n9(){return{localeError:Oz()}}var zz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : instanceof ${a.expected} attendu, ${i} re\xE7u`:`Entr\xE9e invalide : ${r} attendu, ${i} re\xE7u`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${S(a.values[0])} attendu`:`Option invalide : une valeur parmi ${I(a.values,"|")} attendue`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Trop grand : ${o[a.origin]??"valeur"} doit ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[a.origin]??"valeur"} doit \xEAtre ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Trop petit : ${o[a.origin]??"valeur"} doit ${A.verb} ${r}${a.minimum.toString()} ${A.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":""} : ${I(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 a9(){return{localeError:zz()}}var Yz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : attendu instanceof ${a.expected}, re\xE7u ${i}`:`Entr\xE9e invalide : attendu ${r}, re\xE7u ${i}`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${S(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u2264":"<",A=t(a.origin);return A?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${r}${a.maximum.toString()} ${A.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?"\u2265":">",A=t(a.origin);return A?`Trop petit : attendu que ${a.origin} ait ${r}${a.minimum.toString()} ${A.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":""} : ${I(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 o9(){return{localeError:Yz()}}var Kz=()=>{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 u=n(c);return u?u.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",A=c=>c?t[c]??null:null,i={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 u=c.expected,l=s[u??""]??o(u),p=L(c.input),g=s[p]??e[p]?.label??p;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 ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${l}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}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 ${S(c.values[0])}`;let u=c.values.map(g=>S(g));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 ${u[0]} \u05D0\u05D5 ${u[1]}`;let l=u[u.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 ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${l}`}case"too_big":{let u=A(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.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",B=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`.trim()}let p=c.inclusive?"<=":"<",g=r(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.maximum.toString()}`}case"too_small":{let u=A(c.origin),l=a(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${l} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.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 C=(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 ${C}`}let B=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${l} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`.trim()}let p=c.inclusive?">=":">",g=r(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${l} ${g} ${p}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let l=i[u.format],p=l?.label??u.format,m=(l?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \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"}: ${I(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 r9(){return{localeError:Kz()}}var Jz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${a.expected}, a primljeno je ${i}`:`Neispravan unos: o\u010Dekuje se ${r}, a primljeno je ${i}`}case"invalid_value":return a.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(a.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Preveliko: o\u010Dekivano da ${i??"vrijednost"} ima ${r}${a.maximum.toString()} ${A.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${i??"vrijednost"} bude ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=o[a.origin]??a.origin;return A?`Premalo: o\u010Dekivano da ${i} ima ${r}${a.minimum.toString()} ${A.unit}`:`Premalo: o\u010Dekivano da ${i} 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"}: ${I(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 A9(){return{localeError:Jz()}}var Wz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${a.expected}, a kapott \xE9rt\xE9k ${i}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r}, a kapott \xE9rt\xE9k ${i}`}case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 i9(){return{localeError:Wz()}}function s9(e,t,n){return Math.abs(e)===1?t:n}function Zs(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 Zz=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);if(A){let i=Number(a.maximum),s=s9(i,A.unit.one,A.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 ${Zs(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 ${Zs(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);if(A){let i=Number(a.minimum),s=s9(i,A.unit.one,A.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 ${Zs(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 ${Zs(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":""}. ${I(a.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Zs(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 ${Zs(a.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function c9(){return{localeError:Zz()}}var Vz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${r}, diterima ${i}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${S(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${r}${a.maximum.toString()} ${A.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Terlalu kecil: diharapkan ${a.origin} memiliki ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 u9(){return{localeError:Vz()}}var Xz=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${i} \xFEar sem \xE1 a\xF0 vera instanceof ${a.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${i} \xFEar sem \xE1 a\xF0 vera ${r}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${r}${a.minimum.toString()} ${A.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"}: ${I(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 d9(){return{localeError:Xz()}}var eY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${i}`:`Input non valido: atteso ${r}, ricevuto ${i}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${S(a.values[0])}`:`Opzione non valida: atteso uno tra ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Troppo grande: ${a.origin??"valore"} deve avere ${r}${a.maximum.toString()} ${A.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Troppo piccolo: ${a.origin} deve avere ${r}${a.minimum.toString()} ${A.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"}: ${I(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 l9(){return{localeError:eY()}}var tY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${i}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${r}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${i}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(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",A=t(a.origin);return A?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${A.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",A=t(a.origin);return A?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${A.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":""}: ${I(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 p9(){return{localeError:tY()}}var nY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\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"} ${A.verb} ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`\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} ${A.verb} ${r}${a.minimum.toString()} ${A.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"}: ${I(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 g9(){return{localeError:nY()}}var aY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\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()} ${A.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?">=":">",A=t(a.origin);return A?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${r} ${a.minimum.toString()} ${A.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 ${I(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 Em(){return{localeError:aY()}}function m9(){return Em()}var oY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${i}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${i}\uC785\uB2C8\uB2E4`}case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let r=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",A=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",i=t(a.origin),s=i?.unit??"\uC694\uC18C";return i?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${s} ${r}${A}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${r}${A}`}case"too_small":{let r=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",A=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",i=t(a.origin),s=i?.unit??"\uC694\uC18C";return i?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${s} ${r}${A}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${r}${A}`}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: ${I(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 f9(){return{localeError:oY()}}var fd=e=>e.charAt(0).toUpperCase()+e.slice(1);function b9(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 rY=()=>{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,A,i){let s=e[a]??null;return s===null?s:{unit:s.unit[r],verb:s.verb[i][A?"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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${i}, o tik\u0117tasi - instanceof ${a.expected}`:`Gautas tipas ${i}, o tik\u0117tasi - ${r}`}case"invalid_value":return a.values.length===1?`Privalo b\u016Bti ${S(a.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(a.values,"|")} pasirinkim\u0173`;case"too_big":{let r=o[a.origin]??a.origin,A=t(a.origin,b9(Number(a.maximum)),a.inclusive??!1,"smaller");if(A?.verb)return`${fd(r??a.origin??"reik\u0161m\u0117")} ${A.verb} ${a.maximum.toString()} ${A.unit??"element\u0173"}`;let i=a.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${fd(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${i} ${a.maximum.toString()} ${A?.unit}`}case"too_small":{let r=o[a.origin]??a.origin,A=t(a.origin,b9(Number(a.minimum)),a.inclusive??!1,"bigger");if(A?.verb)return`${fd(r??a.origin??"reik\u0161m\u0117")} ${A.verb} ${a.minimum.toString()} ${A.unit??"element\u0173"}`;let i=a.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${fd(r??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${i} ${a.minimum.toString()} ${A?.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"}: ${I(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`${fd(r??a.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function h9(){return{localeError:rY()}}var AY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${a.maximum.toString()} ${A.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${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?">=":">",A=t(a.origin);return A?`\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()} ${A.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"}: ${I(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 B9(){return{localeError:AY()}}var iY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${i}`:`Input tidak sah: dijangka ${r}, diterima ${i}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${S(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Terlalu besar: dijangka ${a.origin??"nilai"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Terlalu kecil: dijangka ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.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: ${I(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 C9(){return{localeError:iY()}}var sY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${r}, ontving ${i}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${S(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin),i=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return A?`Te ${i}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} ${A.unit??"elementen"} ${A.verb}`:`Te ${i}: verwacht dat ${a.origin??"waarde"} ${r}${a.maximum.toString()} is`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin),i=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return A?`Te ${i}: verwacht dat ${a.origin} ${r}${a.minimum.toString()} ${A.unit} ${A.verb}`:`Te ${i}: 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":""}: ${I(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 y9(){return{localeError:sY()}}var cY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${i}`:`Ugyldig input: forventet ${r}, fikk ${i}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${S(a.values[0])}`:`Ugyldig valg: forventet en av ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()} ${A.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`For lite(n): forventet ${a.origin} til \xE5 ha ${r}${a.minimum.toString()} ${A.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"}: ${I(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 w9(){return{localeError:cY()}}var uY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`F\xE2sit giren: umulan instanceof ${a.expected}, al\u0131nan ${i}`:`F\xE2sit giren: umulan ${r}, al\u0131nan ${i}`}case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${S(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 E9(){return{localeError:uY()}}var dY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i} \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 ${i} \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 ${S(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${r}${a.minimum.toString()} ${A.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"}: ${I(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 k9(){return{localeError:dY()}}var lY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${a.expected}, otrzymano ${i}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r}, otrzymano ${i}`}case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 Q9(){return{localeError:lY()}}var pY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Tipo inv\xE1lido: esperado instanceof ${a.expected}, recebido ${i}`:`Tipo inv\xE1lido: esperado ${r}, recebido ${i}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${S(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${r}${a.maximum.toString()} ${A.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Muito pequeno: esperado que ${a.origin} tivesse ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 I9(){return{localeError:pY()}}var gY=()=>{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,A=L(a.input),i=o[A]??A;return`Intrare invalid\u0103: a\u0219teptat ${r}, primit ${i}`}case"invalid_value":return a.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(a.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${a.origin??"valoarea"} s\u0103 fie ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Prea mic: a\u0219teptat ca ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.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: ${I(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 _9(){return{localeError:gY()}}function v9(e,t,n,o){let a=Math.abs(e),r=a%10,A=a%100;return A>=11&&A<=19?o:r===1?t:r>=2&&r<=4?n:o}var mY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);if(A){let i=Number(a.maximum),s=v9(i,A.unit.one,A.unit.few,A.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${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?">=":">",A=t(a.origin);if(A){let i=Number(a.minimum),s=v9(i,A.unit.one,A.unit.few,A.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${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":""}: ${I(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 x9(){return{localeError:mY()}}var fY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${a.expected}, prejeto ${i}`:`Neveljaven vnos: pri\u010Dakovano ${r}, prejeto ${i}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${r}${a.maximum.toString()} ${A.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${r}${a.minimum.toString()} ${A.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"}: ${I(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 D9(){return{localeError:fY()}}var bY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${a.expected}, fick ${i}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${r}, fick ${i}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${r}${a.minimum.toString()} ${A.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"}: ${I(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 F9(){return{localeError:bY()}}var hY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${a.maximum.toString()} ${A.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${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?">=":">",A=t(a.origin);return A?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${r}${a.minimum.toString()} ${A.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${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":""}: ${I(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 S9(){return{localeError:hY()}}var BY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",A=t(a.origin);return A?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.maximum.toString()} ${A.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",A=t(a.origin);return A?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${a.minimum.toString()} ${A.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: ${I(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 L9(){return{localeError:BY()}}var CY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${a.expected}, al\u0131nan ${i}`:`Ge\xE7ersiz de\u011Fer: beklenen ${r}, al\u0131nan ${i}`}case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()} ${A.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 $9(){return{localeError:CY()}}var yY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\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 ${i}`}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 ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${A.verb} ${r}${a.maximum.toString()} ${A.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${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?">=":">",A=t(a.origin);return A?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${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":""}: ${I(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 km(){return{localeError:yY()}}function N9(){return km()}var wY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i} \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 ${i} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(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?"<=":"<",A=t(a.origin);return A?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${a.maximum.toString()} ${A.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${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?">=":">",A=t(a.origin);return A?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${r}${a.minimum.toString()} ${A.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":""}: ${I(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 R9(){return{localeError:wY()}}var EY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${i}`:`Noto\u2018g\u2018ri kirish: kutilgan ${r}, qabul qilingan ${i}`}case"invalid_value":return a.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(a.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()} ${A.unit} ${A.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",A=t(a.origin);return A?`Juda kichik: kutilgan ${a.origin} ${r}${a.minimum.toString()} ${A.unit} ${A.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":""}: ${I(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 M9(){return{localeError:EY()}}var kY=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r}, nh\u1EADn \u0111\u01B0\u1EE3c ${i}`}case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(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 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${A.verb} ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${A.verb} ${r}${a.minimum.toString()} ${A.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: ${I(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 j9(){return{localeError:kY()}}var QY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${i}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r}\uFF0C\u5B9E\u9645\u63A5\u6536 ${i}`}case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${r}${a.minimum.toString()} ${A.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): ${I(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 G9(){return{localeError:QY()}}var IY=()=>{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,A=L(a.input),i=o[A]??A;return/^[A-Z]/.test(a.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${a.expected}\uFF0C\u4F46\u6536\u5230 ${i}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r}\uFF0C\u4F46\u6536\u5230 ${i}`}case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${r}${a.maximum.toString()} ${A.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?">=":">",A=t(a.origin);return A?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${r}${a.minimum.toString()} ${A.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${I(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 H9(){return{localeError:IY()}}var _Y=()=>{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,A=L(a.input),i=o[A]??A;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 ${i}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${r}, \xE0m\u1ECD\u0300 a r\xED ${i}`}case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",A=t(a.origin);return A?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${A.verb} ${r}${a.maximum} ${A.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?">=":">",A=t(a.origin);return A?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${A.verb} ${r}${a.minimum} ${A.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: ${I(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 P9(){return{localeError:_Y()}}var U9,uk=Symbol("ZodOutput"),dk=Symbol("ZodInput"),Qm=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 Im(){return new Qm}(U9=globalThis).__zod_globalRegistry??(U9.__zod_globalRegistry=Im());var sn=globalThis.__zod_globalRegistry;function lk(e,t){return new e({type:"string",...M(t)})}function pk(e,t){return new e({type:"string",coerce:!0,...M(t)})}function _m(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function hd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function vm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function xm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function Dm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function Fm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function Bd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function Sm(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function Lm(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function $m(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function Nm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function Rm(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function Mm(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function jm(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function Gm(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function Hm(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function gk(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function Pm(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function Um(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function Tm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function qm(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function Om(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function zm(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var mk={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function fk(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function bk(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function hk(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function Bk(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function Ck(e,t){return new e({type:"number",checks:[],...M(t)})}function yk(e,t){return new e({type:"number",coerce:!0,checks:[],...M(t)})}function wk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function Ek(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function kk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function Qk(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function Ik(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function _k(e,t){return new e({type:"boolean",...M(t)})}function vk(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function xk(e,t){return new e({type:"bigint",...M(t)})}function Dk(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function Fk(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function Sk(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function Lk(e,t){return new e({type:"symbol",...M(t)})}function $k(e,t){return new e({type:"undefined",...M(t)})}function Nk(e,t){return new e({type:"null",...M(t)})}function Rk(e){return new e({type:"any"})}function Mk(e){return new e({type:"unknown"})}function jk(e,t){return new e({type:"never",...M(t)})}function Gk(e,t){return new e({type:"void",...M(t)})}function Hk(e,t){return new e({type:"date",...M(t)})}function Pk(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Uk(e,t){return new e({type:"nan",...M(t)})}function Co(e,t){return new dm({check:"less_than",...M(t),value:e,inclusive:!1})}function oa(e,t){return new dm({check:"less_than",...M(t),value:e,inclusive:!0})}function yo(e,t){return new lm({check:"greater_than",...M(t),value:e,inclusive:!1})}function Qn(e,t){return new lm({check:"greater_than",...M(t),value:e,inclusive:!0})}function Ym(e){return yo(0,e)}function Km(e){return Co(0,e)}function Jm(e){return oa(0,e)}function Wm(e){return Qn(0,e)}function oA(e,t){return new Nw({check:"multiple_of",...M(t),value:e})}function rA(e,t){return new jw({check:"max_size",...M(t),maximum:e})}function wo(e,t){return new Gw({check:"min_size",...M(t),minimum:e})}function XA(e,t){return new Hw({check:"size_equals",...M(t),size:e})}function ei(e,t){return new Pw({check:"max_length",...M(t),maximum:e})}function cr(e,t){return new Uw({check:"min_length",...M(t),minimum:e})}function ti(e,t){return new Tw({check:"length_equals",...M(t),length:e})}function Vs(e,t){return new qw({check:"string_format",format:"regex",...M(t),pattern:e})}function Xs(e){return new Ow({check:"string_format",format:"lowercase",...M(e)})}function ec(e){return new zw({check:"string_format",format:"uppercase",...M(e)})}function tc(e,t){return new Yw({check:"string_format",format:"includes",...M(t),includes:e})}function nc(e,t){return new Kw({check:"string_format",format:"starts_with",...M(t),prefix:e})}function ac(e,t){return new Jw({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Zm(e,t,n){return new Ww({check:"property",property:e,schema:t,...M(n)})}function oc(e,t){return new Zw({check:"mime_type",mime:e,...M(t)})}function za(e){return new Vw({check:"overwrite",tx:e})}function rc(e){return za(t=>t.normalize(e))}function Ac(){return za(e=>e.trim())}function ic(){return za(e=>e.toLowerCase())}function sc(){return za(e=>e.toUpperCase())}function cc(){return za(e=>Ky(e))}function Tk(e,t,n){return new e({type:"array",element:t,...M(n)})}function xY(e,t,n){return new e({type:"union",options:t,...M(n)})}function DY(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function FY(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...M(o)})}function SY(e,t,n){return new e({type:"intersection",left:t,right:n})}function LY(e,t,n,o){let a=n instanceof ne,r=a?o:n,A=a?n:null;return new e({type:"tuple",items:t,rest:A,...M(r)})}function $Y(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...M(o)})}function NY(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...M(o)})}function RY(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function MY(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:o,...M(n)})}function jY(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function GY(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function qk(e,t){return new e({type:"file",...M(t)})}function HY(e,t){return new e({type:"transform",transform:t})}function PY(e,t){return new e({type:"optional",innerType:t})}function UY(e,t){return new e({type:"nullable",innerType:t})}function TY(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Wy(n)}})}function qY(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function OY(e,t){return new e({type:"success",innerType:t})}function zY(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function YY(e,t,n){return new e({type:"pipe",in:t,out:n})}function KY(e,t){return new e({type:"readonly",innerType:t})}function JY(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function WY(e,t){return new e({type:"lazy",getter:t})}function ZY(e,t){return new e({type:"promise",innerType:t})}function Ok(e,t,n){let o=M(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function zk(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Yk(e,t){let n=T9(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(Os(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(Os(r))}},e(o.value,o)),t);return n}function T9(e,t){let n=new Ke({check:"custom",...M(t)});return n._zod.check=e,n}function Kk(e){let t=new Ke({check:"describe"});return t._zod.onattach=[n=>{let o=sn.get(n)??{};sn.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function Jk(e){let t=new Ke({check:"meta"});return t._zod.onattach=[n=>{let o=sn.get(n)??{};sn.add(n,{...o,...e})}],t._zod.check=()=>{},t}function Wk(e,t){let n=M(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(g=>typeof g=="string"?g.toLowerCase():g),a=a.map(g=>typeof g=="string"?g.toLowerCase():g));let r=new Set(o),A=new Set(a),i=e.Codec??md,s=e.Boolean??pd,c=e.String??VA,u=new c({type:"string",error:n.error}),l=new s({type:"boolean",error:n.error}),p=new i({type:"pipe",in:u,out:l,transform:((g,m)=>{let B=g;return n.case!=="sensitive"&&(B=B.toLowerCase()),r.has(B)?!0:A.has(B)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...A],input:m.value,inst:p,continue:!1}),{})}),reverseTransform:((g,m)=>g===!0?o[0]||"true":a[0]||"false"),error:n.error});return p}function uc(e,t,n,o={}){let a=M(o),r={...M(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:i=>n.test(i),...a};return n instanceof RegExp&&(r.pattern=n),new e(r)}function AA(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??sn,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 ve(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 A={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,A);let i=e._zod.toJSONSchema?.();if(i)A.schema=i;else{let u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,A.schema,u);else{let p=A.schema,g=t.processors[a.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);g(e,t,p,u)}let l=e._zod.parent;l&&(A.ref||(A.ref=l),ve(l,t,u),t.seen.get(l).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(A.schema,s),t.io==="input"&&In(e)&&(delete A.schema.examples,delete A.schema.default),t.io==="input"&&"_prefault"in A.schema&&((o=A.schema).default??(o.default=A.schema._prefault)),delete A.schema._prefault,t.seen.get(e).schema}function iA(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 A of e.seen.entries()){let i=e.metadataRegistry.get(A[0])?.id;if(i){let s=o.get(i);if(s&&s!==A[0])throw new Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(i,A[0])}}let a=A=>{let i=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let l=e.external.registry.get(A[0])?.id,p=e.external.uri??(m=>m);if(l)return{ref:p(l)};let g=A[1].defId??A[1].schema.id??`schema${e.counter++}`;return A[1].defId=g,{defId:g,ref:`${p("__shared")}#/${i}/${g}`}}if(A[1]===n)return{ref:"#"};let c=`#/${i}/`,u=A[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},r=A=>{if(A[1].schema.$ref)return;let i=A[1],{ref:s,defId:c}=a(A);i.def={...i.schema},c&&(i.defId=c);let u=i.schema;for(let l in u)delete u[l];u.$ref=s};if(e.cycles==="throw")for(let A of e.seen.entries()){let i=A[1];if(i.cycle)throw new Error(`Cycle detected: #/${i.cycle?.join("/")}/<root>
|
|
74
74
|
|
|
75
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let A of e.seen.entries()){let i=A[1];if(t===A[0]){r(A);continue}if(e.external){let c=e.external.registry.get(A[0])?.id;if(t!==A[0]&&c){r(A);continue}}if(e.metadataRegistry.get(A[0])?.id){r(A);continue}if(i.cycle){r(A);continue}if(i.count>1&&e.reused==="ref"){r(A);continue}}}function sA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=i=>{let s=e.seen.get(i);if(s.ref===null)return;let c=s.def??s.schema,u={...c},l=s.ref;if(s.ref=null,l){o(l);let g=e.seen.get(l),m=g.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,u),i._zod.parent===l)for(let C in c)C==="$ref"||C==="allOf"||C in u||delete c[C];if(m.$ref&&g.def)for(let C in c)C==="$ref"||C==="allOf"||C in g.def&&JSON.stringify(c[C])===JSON.stringify(g.def[C])&&delete c[C]}let p=i._zod.parent;if(p&&p!==l){o(p);let g=e.seen.get(p);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let m in c)m==="$ref"||m==="allOf"||m in g.def&&JSON.stringify(c[m])===JSON.stringify(g.def[m])&&delete c[m]}e.override({zodSchema:i,jsonSchema:c,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())o(i[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 i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let A=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,A[s.defId]=s.def)}e.external||Object.keys(A).length>0&&(e.target==="draft-2020-12"?a.$defs=A:a.definitions=A);try{let i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:dc(t,"input",e.processors),output:dc(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function In(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 In(o.element,n);if(o.type==="set")return In(o.valueType,n);if(o.type==="lazy")return In(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 In(o.innerType,n);if(o.type==="intersection")return In(o.left,n)||In(o.right,n);if(o.type==="record"||o.type==="map")return In(o.keyType,n)||In(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:In(o.in,n)||In(o.out,n);if(o.type==="object"){for(let a in o.shape)if(In(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(In(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(In(a,n))return!0;return!!(o.rest&&In(o.rest,n))}return!1}var Zk=(e,t={})=>n=>{let o=AA({...n,processors:t});return ve(e,o),iA(o,e),sA(o,e)},dc=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},A=AA({...a??{},target:r,io:t,processors:n});return ve(e,A),iA(A,e),sA(A,e)};var VY={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Vk=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:A,format:i,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof A=="number"&&(a.maxLength=A),i&&(a.format=VY[i]??i,a.format===""&&delete a.format,i==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},Xk=(e,t,n,o)=>{let a=n,{minimum:r,maximum:A,format:i,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof i=="string"&&i.includes("int")?a.type="integer":a.type="number";let l=typeof u=="number"&&u>=(r??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(A??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";l?g?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof r=="number"&&(a.minimum=r),p?g?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof A=="number"&&(a.maximum=A),typeof s=="number"&&(a.multipleOf=s)},eQ=(e,t,n,o)=>{n.type="boolean"},tQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},nQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},aQ=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},oQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},rQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},AQ=(e,t,n,o)=>{n.not={}},iQ=(e,t,n,o)=>{},sQ=(e,t,n,o)=>{},cQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},uQ=(e,t,n,o)=>{let a=e._zod.def,r=nd(a.entries);r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),n.enum=r},dQ=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let A of a.values)if(A===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof A=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(A))}else r.push(A);if(r.length!==0)if(r.length===1){let A=r[0];n.type=A===null?"null":typeof A,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[A]:n.const=A}else r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),r.every(A=>typeof A=="boolean")&&(n.type="boolean"),r.every(A=>A===null)&&(n.type="null"),n.enum=r},lQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},pQ=(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},gQ=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:A,maximum:i,mime:s}=e._zod.bag;A!==void 0&&(r.minLength=A),i!==void 0&&(r.maxLength=i),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)},mQ=(e,t,n,o)=>{n.type="boolean"},fQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},bQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},hQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},BQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},CQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},yQ=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:A,maximum:i}=e._zod.bag;typeof A=="number"&&(a.minItems=A),typeof i=="number"&&(a.maxItems=i),a.type="array",a.items=ve(r.element,t,{...o,path:[...o.path,"items"]})},wQ=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let A=r.shape;for(let c in A)a.properties[c]=ve(A[c],t,{...o,path:[...o.path,"properties",c]});let i=new Set(Object.keys(A)),s=new Set([...i].filter(c=>{let u=r.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.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=ve(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Xm=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,A=a.options.map((i,s)=>ve(i,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=A:n.anyOf=A},EQ=(e,t,n,o)=>{let a=e._zod.def,r=ve(a.left,t,{...o,path:[...o.path,"allOf",0]}),A=ve(a.right,t,{...o,path:[...o.path,"allOf",1]}),i=c=>"allOf"in c&&Object.keys(c).length===1,s=[...i(r)?r.allOf:[r],...i(A)?A.allOf:[A]];n.allOf=s},kQ=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let A=t.target==="draft-2020-12"?"prefixItems":"items",i=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((p,g)=>ve(p,t,{...o,path:[...o.path,A,g]})),c=r.rest?ve(r.rest,t,{...o,path:[...o.path,i,...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:u,maximum:l}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof l=="number"&&(a.maxItems=l)},QQ=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let A=r.keyType,s=A._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let u=ve(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=ve(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=ve(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=A._zod.values;if(c){let u=[...c].filter(l=>typeof l=="string"||typeof l=="number");u.length>0&&(a.required=u)}},IQ=(e,t,n,o)=>{let a=e._zod.def,r=ve(a.innerType,t,o),A=t.seen.get(e);t.target==="openapi-3.0"?(A.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},_Q=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},vQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},xQ=(e,t,n,o)=>{let a=e._zod.def;ve(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)))},DQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let A;try{A=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=A},FQ=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),A=t.io==="input"?r?a.out:a.in:a.out;ve(A,t,o);let i=t.seen.get(e);i.ref=A},SQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},LQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},ef=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},$Q=(e,t,n,o)=>{let a=e._zod.innerType;ve(a,t,o);let r=t.seen.get(e);r.ref=a},Vm={string:Vk,number:Xk,boolean:eQ,bigint:tQ,symbol:nQ,null:aQ,undefined:oQ,void:rQ,never:AQ,any:iQ,unknown:sQ,date:cQ,enum:uQ,literal:dQ,nan:lQ,template_literal:pQ,file:gQ,success:mQ,custom:fQ,function:bQ,transform:hQ,map:BQ,set:CQ,array:yQ,object:wQ,union:Xm,intersection:EQ,tuple:kQ,record:QQ,nullable:IQ,nonoptional:_Q,default:vQ,prefault:xQ,catch:DQ,pipe:FQ,readonly:SQ,promise:LQ,optional:ef,lazy:$Q};function tf(e,t){if("_idmap"in e){let o=e,a=AA({...t,processors:Vm}),r={};for(let s of o._idmap.entries()){let[c,u]=s;ve(u,a)}let A={},i={registry:o,uri:t?.uri,defs:r};a.external=i;for(let s of o._idmap.entries()){let[c,u]=s;iA(a,u),A[c]=sA(a,u)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";A.__shared={[s]:r}}return{schemas:A}}let n=AA({...t,processors:Vm});return ve(e,n),iA(n,e),sA(n,e)}var nf=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=AA({processors:Vm,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 ve(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)),iA(this.ctx,t);let o=sA(this.ctx,t),{"~standard":a,...r}=o;return r}};var q9={};var Cd={};x(Cd,{ZodAny:()=>o0,ZodArray:()=>s0,ZodBase64:()=>kf,ZodBase64URL:()=>Qf,ZodBigInt:()=>Bc,ZodBigIntFormat:()=>vf,ZodBoolean:()=>hc,ZodCIDRv4:()=>wf,ZodCIDRv6:()=>Ef,ZodCUID:()=>mf,ZodCUID2:()=>ff,ZodCatch:()=>D0,ZodCodec:()=>Sd,ZodCustom:()=>Ld,ZodCustomStringFormat:()=>fc,ZodDate:()=>_d,ZodDefault:()=>k0,ZodDiscriminatedUnion:()=>u0,ZodE164:()=>If,ZodEmail:()=>lf,ZodEmoji:()=>pf,ZodEnum:()=>gc,ZodExactOptional:()=>y0,ZodFile:()=>B0,ZodFunction:()=>H0,ZodGUID:()=>wd,ZodIPv4:()=>Cf,ZodIPv6:()=>yf,ZodIntersection:()=>d0,ZodJWT:()=>_f,ZodKSUID:()=>Bf,ZodLazy:()=>M0,ZodLiteral:()=>h0,ZodMAC:()=>ZQ,ZodMap:()=>f0,ZodNaN:()=>S0,ZodNanoID:()=>gf,ZodNever:()=>A0,ZodNonOptional:()=>$f,ZodNull:()=>n0,ZodNullable:()=>E0,ZodNumber:()=>bc,ZodNumberFormat:()=>ai,ZodObject:()=>xd,ZodOptional:()=>Lf,ZodPipe:()=>Fd,ZodPrefault:()=>I0,ZodPreprocess:()=>L0,ZodPromise:()=>G0,ZodReadonly:()=>$0,ZodRecord:()=>pc,ZodSet:()=>b0,ZodString:()=>mc,ZodStringFormat:()=>qe,ZodSuccess:()=>x0,ZodSymbol:()=>e0,ZodTemplateLiteral:()=>R0,ZodTransform:()=>C0,ZodTuple:()=>p0,ZodType:()=>ue,ZodULID:()=>bf,ZodURL:()=>Id,ZodUUID:()=>Eo,ZodUndefined:()=>t0,ZodUnion:()=>Dd,ZodUnknown:()=>r0,ZodVoid:()=>i0,ZodXID:()=>hf,ZodXor:()=>c0,_ZodString:()=>df,_default:()=>Q0,_function:()=>X6,any:()=>D6,array:()=>vd,base64:()=>p6,base64url:()=>g6,bigint:()=>Q6,boolean:()=>XQ,catch:()=>F0,check:()=>e3,cidrv4:()=>d6,cidrv6:()=>l6,codec:()=>J6,cuid:()=>a6,cuid2:()=>o6,custom:()=>t3,date:()=>S6,describe:()=>n3,discriminatedUnion:()=>j6,e164:()=>m6,email:()=>Y9,emoji:()=>t6,enum:()=>Ff,exactOptional:()=>w0,file:()=>O6,float32:()=>y6,float64:()=>w6,function:()=>X6,guid:()=>K9,hash:()=>C6,hex:()=>B6,hostname:()=>h6,httpUrl:()=>e6,instanceof:()=>o3,int:()=>cf,int32:()=>E6,int64:()=>I6,intersection:()=>l0,invertCodec:()=>W6,ipv4:()=>s6,ipv6:()=>u6,json:()=>A3,jwt:()=>f6,keyof:()=>L6,ksuid:()=>i6,lazy:()=>j0,literal:()=>q6,looseObject:()=>R6,looseRecord:()=>H6,mac:()=>c6,map:()=>P6,meta:()=>a3,nan:()=>K6,nanoid:()=>n6,nativeEnum:()=>T6,never:()=>xf,nonoptional:()=>v0,null:()=>a0,nullable:()=>kd,nullish:()=>z6,number:()=>VQ,object:()=>$6,optional:()=>Ed,partialRecord:()=>G6,pipe:()=>uf,prefault:()=>_0,preprocess:()=>i3,promise:()=>V6,readonly:()=>N0,record:()=>m0,refine:()=>P0,set:()=>U6,strictObject:()=>N6,string:()=>yd,stringFormat:()=>b6,stringbool:()=>r3,success:()=>Y6,superRefine:()=>U0,symbol:()=>v6,templateLiteral:()=>Z6,transform:()=>Sf,tuple:()=>g0,uint32:()=>k6,uint64:()=>_6,ulid:()=>r6,undefined:()=>x6,union:()=>Df,unknown:()=>ni,url:()=>X9,uuid:()=>J9,uuidv4:()=>W9,uuidv6:()=>Z9,uuidv7:()=>V9,void:()=>F6,xid:()=>A6,xor:()=>M6});var af={};x(af,{endsWith:()=>ac,gt:()=>yo,gte:()=>Qn,includes:()=>tc,length:()=>ti,lowercase:()=>Xs,lt:()=>Co,lte:()=>oa,maxLength:()=>ei,maxSize:()=>rA,mime:()=>oc,minLength:()=>cr,minSize:()=>wo,multipleOf:()=>oA,negative:()=>Km,nonnegative:()=>Wm,nonpositive:()=>Jm,normalize:()=>rc,overwrite:()=>za,positive:()=>Ym,property:()=>Zm,regex:()=>Vs,size:()=>XA,slugify:()=>cc,startsWith:()=>nc,toLowerCase:()=>ic,toUpperCase:()=>sc,trim:()=>Ac,uppercase:()=>ec});var lc={};x(lc,{ZodISODate:()=>rf,ZodISODateTime:()=>of,ZodISODuration:()=>sf,ZodISOTime:()=>Af,date:()=>RQ,datetime:()=>NQ,duration:()=>jQ,time:()=>MQ});var of=E("ZodISODateTime",(e,t)=>{lE.init(e,t),qe.init(e,t)});function NQ(e){return fk(of,e)}var rf=E("ZodISODate",(e,t)=>{pE.init(e,t),qe.init(e,t)});function RQ(e){return bk(rf,e)}var Af=E("ZodISOTime",(e,t)=>{gE.init(e,t),qe.init(e,t)});function MQ(e){return hk(Af,e)}var sf=E("ZodISODuration",(e,t)=>{mE.init(e,t),qe.init(e,t)});function jQ(e){return Bk(sf,e)}var O9=(e,t)=>{id.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cd(e,n)},flatten:{value:n=>sd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ts,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ts,2)}},isEmpty:{get(){return e.issues.length===0}}})},eK=E("ZodError",O9),Un=E("ZodError",O9,{Parent:Error});var GQ=zs(Un),HQ=Ys(Un),PQ=Ks(Un),UQ=Js(Un),TQ=tm(Un),qQ=nm(Un),OQ=am(Un),zQ=om(Un),YQ=rm(Un),KQ=Am(Un),JQ=im(Un),WQ=sm(Un);var z9=new WeakMap;function Qd(e,t,n){let o=Object.getPrototypeOf(e),a=z9.get(o);if(a||(a=new Set,z9.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let A=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let i=A.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i}),i},set(i){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i})}})}}}var ue=E("ZodType",(e,t)=>(ne.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:dc(e,"input"),output:dc(e,"output")}}),e.toJSONSchema=Zk(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>GQ(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>PQ(e,n,o),e.parseAsync=async(n,o)=>HQ(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>UQ(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>TQ(e,n,o),e.decode=(n,o)=>qQ(e,n,o),e.encodeAsync=async(n,o)=>OQ(e,n,o),e.decodeAsync=async(n,o)=>zQ(e,n,o),e.safeEncode=(n,o)=>YQ(e,n,o),e.safeDecode=(n,o)=>KQ(e,n,o),e.safeEncodeAsync=async(n,o)=>JQ(e,n,o),e.safeDecodeAsync=async(n,o)=>WQ(e,n,o),Qd(e,"ZodType",{check(...n){let o=this.def;return this.clone($.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 En(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(P0(n,o))},superRefine(n,o){return this.check(U0(n,o))},overwrite(n){return this.check(za(n))},optional(){return Ed(this)},exactOptional(){return w0(this)},nullable(){return kd(this)},nullish(){return Ed(kd(this))},nonoptional(n){return v0(this,n)},array(){return vd(this)},or(n){return Df([this,n])},and(n){return l0(this,n)},transform(n){return uf(this,Sf(n))},default(n){return Q0(this,n)},prefault(n){return _0(this,n)},catch(n){return F0(this,n)},pipe(n){return uf(this,n)},readonly(){return N0(this)},describe(n){let o=this.clone();return sn.add(o,{description:n}),o},meta(...n){if(n.length===0)return sn.get(this);let o=this.clone();return sn.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 sn.get(e)?.description},configurable:!0}),e)),df=E("_ZodString",(e,t)=>{VA.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>Vk(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Qd(e,"_ZodString",{regex(...o){return this.check(Vs(...o))},includes(...o){return this.check(tc(...o))},startsWith(...o){return this.check(nc(...o))},endsWith(...o){return this.check(ac(...o))},min(...o){return this.check(cr(...o))},max(...o){return this.check(ei(...o))},length(...o){return this.check(ti(...o))},nonempty(...o){return this.check(cr(1,...o))},lowercase(o){return this.check(Xs(o))},uppercase(o){return this.check(ec(o))},trim(){return this.check(Ac())},normalize(...o){return this.check(rc(...o))},toLowerCase(){return this.check(ic())},toUpperCase(){return this.check(sc())},slugify(){return this.check(cc())}})}),mc=E("ZodString",(e,t)=>{VA.init(e,t),df.init(e,t),e.email=n=>e.check(_m(lf,n)),e.url=n=>e.check(Bd(Id,n)),e.jwt=n=>e.check(zm(_f,n)),e.emoji=n=>e.check(Sm(pf,n)),e.guid=n=>e.check(hd(wd,n)),e.uuid=n=>e.check(vm(Eo,n)),e.uuidv4=n=>e.check(xm(Eo,n)),e.uuidv6=n=>e.check(Dm(Eo,n)),e.uuidv7=n=>e.check(Fm(Eo,n)),e.nanoid=n=>e.check(Lm(gf,n)),e.guid=n=>e.check(hd(wd,n)),e.cuid=n=>e.check($m(mf,n)),e.cuid2=n=>e.check(Nm(ff,n)),e.ulid=n=>e.check(Rm(bf,n)),e.base64=n=>e.check(Tm(kf,n)),e.base64url=n=>e.check(qm(Qf,n)),e.xid=n=>e.check(Mm(hf,n)),e.ksuid=n=>e.check(jm(Bf,n)),e.ipv4=n=>e.check(Gm(Cf,n)),e.ipv6=n=>e.check(Hm(yf,n)),e.cidrv4=n=>e.check(Pm(wf,n)),e.cidrv6=n=>e.check(Um(Ef,n)),e.e164=n=>e.check(Om(If,n)),e.datetime=n=>e.check(NQ(n)),e.date=n=>e.check(RQ(n)),e.time=n=>e.check(MQ(n)),e.duration=n=>e.check(jQ(n))});function yd(e){return lk(mc,e)}var qe=E("ZodStringFormat",(e,t)=>{Te.init(e,t),df.init(e,t)}),lf=E("ZodEmail",(e,t)=>{aE.init(e,t),qe.init(e,t)});function Y9(e){return _m(lf,e)}var wd=E("ZodGUID",(e,t)=>{tE.init(e,t),qe.init(e,t)});function K9(e){return hd(wd,e)}var Eo=E("ZodUUID",(e,t)=>{nE.init(e,t),qe.init(e,t)});function J9(e){return vm(Eo,e)}function W9(e){return xm(Eo,e)}function Z9(e){return Dm(Eo,e)}function V9(e){return Fm(Eo,e)}var Id=E("ZodURL",(e,t)=>{oE.init(e,t),qe.init(e,t)});function X9(e){return Bd(Id,e)}function e6(e){return Bd(Id,{protocol:aa.httpProtocol,hostname:aa.domain,...$.normalizeParams(e)})}var pf=E("ZodEmoji",(e,t)=>{rE.init(e,t),qe.init(e,t)});function t6(e){return Sm(pf,e)}var gf=E("ZodNanoID",(e,t)=>{AE.init(e,t),qe.init(e,t)});function n6(e){return Lm(gf,e)}var mf=E("ZodCUID",(e,t)=>{iE.init(e,t),qe.init(e,t)});function a6(e){return $m(mf,e)}var ff=E("ZodCUID2",(e,t)=>{sE.init(e,t),qe.init(e,t)});function o6(e){return Nm(ff,e)}var bf=E("ZodULID",(e,t)=>{cE.init(e,t),qe.init(e,t)});function r6(e){return Rm(bf,e)}var hf=E("ZodXID",(e,t)=>{uE.init(e,t),qe.init(e,t)});function A6(e){return Mm(hf,e)}var Bf=E("ZodKSUID",(e,t)=>{dE.init(e,t),qe.init(e,t)});function i6(e){return jm(Bf,e)}var Cf=E("ZodIPv4",(e,t)=>{fE.init(e,t),qe.init(e,t)});function s6(e){return Gm(Cf,e)}var ZQ=E("ZodMAC",(e,t)=>{hE.init(e,t),qe.init(e,t)});function c6(e){return gk(ZQ,e)}var yf=E("ZodIPv6",(e,t)=>{bE.init(e,t),qe.init(e,t)});function u6(e){return Hm(yf,e)}var wf=E("ZodCIDRv4",(e,t)=>{BE.init(e,t),qe.init(e,t)});function d6(e){return Pm(wf,e)}var Ef=E("ZodCIDRv6",(e,t)=>{CE.init(e,t),qe.init(e,t)});function l6(e){return Um(Ef,e)}var kf=E("ZodBase64",(e,t)=>{wE.init(e,t),qe.init(e,t)});function p6(e){return Tm(kf,e)}var Qf=E("ZodBase64URL",(e,t)=>{EE.init(e,t),qe.init(e,t)});function g6(e){return qm(Qf,e)}var If=E("ZodE164",(e,t)=>{kE.init(e,t),qe.init(e,t)});function m6(e){return Om(If,e)}var _f=E("ZodJWT",(e,t)=>{QE.init(e,t),qe.init(e,t)});function f6(e){return zm(_f,e)}var fc=E("ZodCustomStringFormat",(e,t)=>{IE.init(e,t),qe.init(e,t)});function b6(e,t,n={}){return uc(fc,e,t,n)}function h6(e){return uc(fc,"hostname",aa.hostname,e)}function B6(e){return uc(fc,"hex",aa.hex,e)}function C6(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=aa[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return uc(fc,o,a,t)}var bc=E("ZodNumber",(e,t)=>{bm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>Xk(e,o,a,r),Qd(e,"ZodNumber",{gt(o,a){return this.check(yo(o,a))},gte(o,a){return this.check(Qn(o,a))},min(o,a){return this.check(Qn(o,a))},lt(o,a){return this.check(Co(o,a))},lte(o,a){return this.check(oa(o,a))},max(o,a){return this.check(oa(o,a))},int(o){return this.check(cf(o))},safe(o){return this.check(cf(o))},positive(o){return this.check(yo(0,o))},nonnegative(o){return this.check(Qn(0,o))},negative(o){return this.check(Co(0,o))},nonpositive(o){return this.check(oa(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 VQ(e){return Ck(bc,e)}var ai=E("ZodNumberFormat",(e,t)=>{_E.init(e,t),bc.init(e,t)});function cf(e){return wk(ai,e)}function y6(e){return Ek(ai,e)}function w6(e){return kk(ai,e)}function E6(e){return Qk(ai,e)}function k6(e){return Ik(ai,e)}var hc=E("ZodBoolean",(e,t)=>{pd.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>eQ(e,n,o,a)});function XQ(e){return _k(hc,e)}var Bc=E("ZodBigInt",(e,t)=>{hm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>tQ(e,o,a,r),e.gte=(o,a)=>e.check(Qn(o,a)),e.min=(o,a)=>e.check(Qn(o,a)),e.gt=(o,a)=>e.check(yo(o,a)),e.gte=(o,a)=>e.check(Qn(o,a)),e.min=(o,a)=>e.check(Qn(o,a)),e.lt=(o,a)=>e.check(Co(o,a)),e.lte=(o,a)=>e.check(oa(o,a)),e.max=(o,a)=>e.check(oa(o,a)),e.positive=o=>e.check(yo(BigInt(0),o)),e.negative=o=>e.check(Co(BigInt(0),o)),e.nonpositive=o=>e.check(oa(BigInt(0),o)),e.nonnegative=o=>e.check(Qn(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 Q6(e){return xk(Bc,e)}var vf=E("ZodBigIntFormat",(e,t)=>{vE.init(e,t),Bc.init(e,t)});function I6(e){return Fk(vf,e)}function _6(e){return Sk(vf,e)}var e0=E("ZodSymbol",(e,t)=>{xE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>nQ(e,n,o,a)});function v6(e){return Lk(e0,e)}var t0=E("ZodUndefined",(e,t)=>{DE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>oQ(e,n,o,a)});function x6(e){return $k(t0,e)}var n0=E("ZodNull",(e,t)=>{FE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>aQ(e,n,o,a)});function a0(e){return Nk(n0,e)}var o0=E("ZodAny",(e,t)=>{SE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>iQ(e,n,o,a)});function D6(){return Rk(o0)}var r0=E("ZodUnknown",(e,t)=>{LE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>sQ(e,n,o,a)});function ni(){return Mk(r0)}var A0=E("ZodNever",(e,t)=>{$E.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>AQ(e,n,o,a)});function xf(e){return jk(A0,e)}var i0=E("ZodVoid",(e,t)=>{NE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>rQ(e,n,o,a)});function F6(e){return Gk(i0,e)}var _d=E("ZodDate",(e,t)=>{RE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>cQ(e,o,a,r),e.min=(o,a)=>e.check(Qn(o,a)),e.max=(o,a)=>e.check(oa(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 S6(e){return Hk(_d,e)}var s0=E("ZodArray",(e,t)=>{ME.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yQ(e,n,o,a),e.element=t.element,Qd(e,"ZodArray",{min(n,o){return this.check(cr(n,o))},nonempty(n){return this.check(cr(1,n))},max(n,o){return this.check(ei(n,o))},length(n,o){return this.check(ti(n,o))},unwrap(){return this.element}})});function vd(e,t){return Tk(s0,e,t)}function L6(e){let t=e._zod.def.shape;return Ff(Object.keys(t))}var xd=E("ZodObject",(e,t)=>{jE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wQ(e,n,o,a),$.defineLazy(e,"shape",()=>t.shape),Qd(e,"ZodObject",{keyof(){return Ff(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ni()})},loose(){return this.clone({...this._zod.def,catchall:ni()})},strict(){return this.clone({...this._zod.def,catchall:xf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return $.extend(this,n)},safeExtend(n){return $.safeExtend(this,n)},merge(n){return $.merge(this,n)},pick(n){return $.pick(this,n)},omit(n){return $.omit(this,n)},partial(...n){return $.partial(Lf,this,n[0])},required(...n){return $.required($f,this,n[0])}})});function $6(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new xd(n)}function N6(e,t){return new xd({type:"object",shape:e,catchall:xf(),...$.normalizeParams(t)})}function R6(e,t){return new xd({type:"object",shape:e,catchall:ni(),...$.normalizeParams(t)})}var Dd=E("ZodUnion",(e,t)=>{gd.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Xm(e,n,o,a),e.options=t.options});function Df(e,t){return new Dd({type:"union",options:e,...$.normalizeParams(t)})}var c0=E("ZodXor",(e,t)=>{Dd.init(e,t),GE.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Xm(e,n,o,a),e.options=t.options});function M6(e,t){return new c0({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var u0=E("ZodDiscriminatedUnion",(e,t)=>{Dd.init(e,t),HE.init(e,t)});function j6(e,t,n){return new u0({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}var d0=E("ZodIntersection",(e,t)=>{PE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>EQ(e,n,o,a)});function l0(e,t){return new d0({type:"intersection",left:e,right:t})}var p0=E("ZodTuple",(e,t)=>{Bm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kQ(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function g0(e,t,n){let o=t instanceof ne,a=o?n:t,r=o?t:null;return new p0({type:"tuple",items:e,rest:r,...$.normalizeParams(a)})}var pc=E("ZodRecord",(e,t)=>{UE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>QQ(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function m0(e,t,n){return!t||!t._zod?new pc({type:"record",keyType:yd(),valueType:e,...$.normalizeParams(t)}):new pc({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}function G6(e,t,n){let o=En(e);return o._zod.values=void 0,new pc({type:"record",keyType:o,valueType:t,...$.normalizeParams(n)})}function H6(e,t,n){return new pc({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}var f0=E("ZodMap",(e,t)=>{TE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>BQ(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(wo(...n)),e.nonempty=n=>e.check(wo(1,n)),e.max=(...n)=>e.check(rA(...n)),e.size=(...n)=>e.check(XA(...n))});function P6(e,t,n){return new f0({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}var b0=E("ZodSet",(e,t)=>{qE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>CQ(e,n,o,a),e.min=(...n)=>e.check(wo(...n)),e.nonempty=n=>e.check(wo(1,n)),e.max=(...n)=>e.check(rA(...n)),e.size=(...n)=>e.check(XA(...n))});function U6(e,t){return new b0({type:"set",valueType:e,...$.normalizeParams(t)})}var gc=E("ZodEnum",(e,t)=>{OE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>uQ(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 A of o)if(n.has(A))r[A]=t.entries[A];else throw new Error(`Key ${A} not found in enum`);return new gc({...t,checks:[],...$.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let A of o)if(n.has(A))delete r[A];else throw new Error(`Key ${A} not found in enum`);return new gc({...t,checks:[],...$.normalizeParams(a),entries:r})}});function Ff(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new gc({type:"enum",entries:n,...$.normalizeParams(t)})}function T6(e,t){return new gc({type:"enum",entries:e,...$.normalizeParams(t)})}var h0=E("ZodLiteral",(e,t)=>{zE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>dQ(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 q6(e,t){return new h0({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var B0=E("ZodFile",(e,t)=>{YE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gQ(e,n,o,a),e.min=(n,o)=>e.check(wo(n,o)),e.max=(n,o)=>e.check(rA(n,o)),e.mime=(n,o)=>e.check(oc(Array.isArray(n)?n:[n],o))});function O6(e){return qk(B0,e)}var C0=E("ZodTransform",(e,t)=>{KE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hQ(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Xr(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push($.issue(r,n.value,t));else{let A=r;A.fatal&&(A.continue=!1),A.code??(A.code="custom"),A.input??(A.input=n.value),A.inst??(A.inst=e),n.issues.push($.issue(A))}};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 Sf(e){return new C0({type:"transform",transform:e})}var Lf=E("ZodOptional",(e,t)=>{Cm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ef(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Ed(e){return new Lf({type:"optional",innerType:e})}var y0=E("ZodExactOptional",(e,t)=>{JE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ef(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function w0(e){return new y0({type:"optional",innerType:e})}var E0=E("ZodNullable",(e,t)=>{WE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>IQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function kd(e){return new E0({type:"nullable",innerType:e})}function z6(e){return Ed(kd(e))}var k0=E("ZodDefault",(e,t)=>{ZE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Q0(e,t){return new k0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var I0=E("ZodPrefault",(e,t)=>{VE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function _0(e,t){return new I0({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var $f=E("ZodNonOptional",(e,t)=>{XE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_Q(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function v0(e,t){return new $f({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var x0=E("ZodSuccess",(e,t)=>{ek.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Y6(e){return new x0({type:"success",innerType:e})}var D0=E("ZodCatch",(e,t)=>{tk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>DQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function F0(e,t){return new D0({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var S0=E("ZodNaN",(e,t)=>{nk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lQ(e,n,o,a)});function K6(e){return Uk(S0,e)}var Fd=E("ZodPipe",(e,t)=>{ym.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>FQ(e,n,o,a),e.in=t.in,e.out=t.out});function uf(e,t){return new Fd({type:"pipe",in:e,out:t})}var Sd=E("ZodCodec",(e,t)=>{Fd.init(e,t),md.init(e,t)});function J6(e,t,n){return new Sd({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function W6(e){let t=e._zod.def;return new Sd({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var L0=E("ZodPreprocess",(e,t)=>{Fd.init(e,t),ak.init(e,t)}),$0=E("ZodReadonly",(e,t)=>{ok.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>SQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function N0(e){return new $0({type:"readonly",innerType:e})}var R0=E("ZodTemplateLiteral",(e,t)=>{rk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pQ(e,n,o,a)});function Z6(e,t){return new R0({type:"template_literal",parts:e,...$.normalizeParams(t)})}var M0=E("ZodLazy",(e,t)=>{sk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$Q(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function j0(e){return new M0({type:"lazy",getter:e})}var G0=E("ZodPromise",(e,t)=>{ik.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>LQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function V6(e){return new G0({type:"promise",innerType:e})}var H0=E("ZodFunction",(e,t)=>{Ak.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bQ(e,n,o,a)});function X6(e){return new H0({type:"function",input:Array.isArray(e?.input)?g0(e?.input):e?.input??vd(ni()),output:e?.output??ni()})}var Ld=E("ZodCustom",(e,t)=>{ck.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fQ(e,n,o,a)});function e3(e){let t=new Ke({check:"custom"});return t._zod.check=e,t}function t3(e,t){return Ok(Ld,e??(()=>!0),t)}function P0(e,t={}){return zk(Ld,e,t)}function U0(e,t){return Yk(e,t)}var n3=Kk,a3=Jk;function o3(e,t={}){let n=new Ld({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...$.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 r3=(...e)=>Wk({Codec:Sd,Boolean:hc,String:mc},...e);function A3(e){let t=j0(()=>Df([yd(e),VQ(),XQ(),a0(),vd(t),m0(yd(),t)]));return t}function i3(e,t){return new L0({type:"pipe",in:Sf(e),out:t})}var nK={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 aK(e){ht({customError:e})}function oK(){return ht().customError}var T0;T0||(T0={});var U={...Cd,...af,iso:lc},rK=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 AK(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 iK(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 s3(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return U.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 U.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=iK(a,t),A=gn(r,t);return t.refs.set(a,A),t.processing.delete(a),A}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 U.null();if(a.length===0)return U.never();if(a.length===1)return U.literal(a[0]);if(a.every(A=>typeof A=="string"))return U.enum(a);let r=a.map(A=>U.literal(A));return r.length<2?r[0]:U.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return U.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let A={...e,type:r};return s3(A,t)});return a.length===0?U.never():a.length===1?a[0]:U.union(a)}if(!n)return U.any();let o;switch(n){case"string":{let a=U.string();if(e.format){let r=e.format;r==="email"?a=a.check(U.email()):r==="uri"||r==="uri-reference"?a=a.check(U.url()):r==="uuid"||r==="guid"?a=a.check(U.uuid()):r==="date-time"?a=a.check(U.iso.datetime()):r==="date"?a=a.check(U.iso.date()):r==="time"?a=a.check(U.iso.time()):r==="duration"?a=a.check(U.iso.duration()):r==="ipv4"?a=a.check(U.ipv4()):r==="ipv6"?a=a.check(U.ipv6()):r==="mac"?a=a.check(U.mac()):r==="cidr"?a=a.check(U.cidrv4()):r==="cidr-v6"?a=a.check(U.cidrv6()):r==="base64"?a=a.check(U.base64()):r==="base64url"?a=a.check(U.base64url()):r==="e164"?a=a.check(U.e164()):r==="jwt"?a=a.check(U.jwt()):r==="emoji"?a=a.check(U.emoji()):r==="nanoid"?a=a.check(U.nanoid()):r==="cuid"?a=a.check(U.cuid()):r==="cuid2"?a=a.check(U.cuid2()):r==="ulid"?a=a.check(U.ulid()):r==="xid"?a=a.check(U.xid()):r==="ksuid"&&(a=a.check(U.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"?U.number().int():U.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=U.boolean();break}case"null":{o=U.null();break}case"object":{let a={},r=e.properties||{},A=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let u=gn(c,t);a[s]=A.has(s)?u:u.optional()}if(e.propertyNames){let s=gn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?gn(e.additionalProperties,t):U.any();if(Object.keys(a).length===0){o=U.record(s,c);break}let u=U.object(a).passthrough(),l=U.looseRecord(s,c);o=U.intersection(u,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let p of c){let g=gn(s[p],t),m=U.string().regex(new RegExp(p));u.push(U.looseRecord(m,g))}let l=[];if(Object.keys(a).length>0&&l.push(U.object(a).passthrough()),l.push(...u),l.length===0)o=U.object({}).passthrough();else if(l.length===1)o=l[0];else{let p=U.intersection(l[0],l[1]);for(let g=2;g<l.length;g++)p=U.intersection(p,l[g]);o=p}break}let i=U.object(a);e.additionalProperties===!1?o=i.strict():typeof e.additionalProperties=="object"?o=i.catchall(gn(e.additionalProperties,t)):o=i.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let A=a.map(s=>gn(s,t)),i=r&&typeof r=="object"&&!Array.isArray(r)?gn(r,t):void 0;i?o=U.tuple(A).rest(i):o=U.tuple(A),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(Array.isArray(r)){let A=r.map(s=>gn(s,t)),i=e.additionalItems&&typeof e.additionalItems=="object"?gn(e.additionalItems,t):void 0;i?o=U.tuple(A).rest(i):o=U.tuple(A),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(r!==void 0){let A=gn(r,t),i=U.array(A);typeof e.minItems=="number"&&(i=i.min(e.minItems)),typeof e.maxItems=="number"&&(i=i.max(e.maxItems)),o=i}else o=U.array(U.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function gn(e,t){if(typeof e=="boolean")return e?U.any():U.never();let n=s3(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(c=>gn(c,t)),s=U.union(i);n=o?U.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(c=>gn(c,t)),s=U.xor(i);n=o?U.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:U.any();else{let i=o?n:gn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)i=U.intersection(i,gn(e.allOf[c],t));n=i}e.nullable===!0&&t.version==="openapi-3.0"&&(n=U.nullable(n)),e.readOnly===!0&&(n=U.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let i of r)i in e&&(a[i]=e[i]);let A=["contentEncoding","contentMediaType","contentSchema"];for(let i of A)i in e&&(a[i]=e[i]);for(let i of Object.keys(e))rK.has(i)||(a[i]=e[i]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function c3(e,t){if(typeof e=="boolean")return e?U.any():U.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=AK(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??sn};return gn(n,r)}var q0={};x(q0,{bigint:()=>dK,boolean:()=>uK,date:()=>lK,number:()=>cK,string:()=>sK});function sK(e){return pk(mc,e)}function cK(e){return yk(bc,e)}function uK(e){return vk(hc,e)}function dK(e){return Dk(Bc,e)}function lK(e){return Pk(_d,e)}ht(wm());var pK=d.object({input:d.number().finite().nonnegative().optional(),output:d.number().finite().nonnegative().optional(),cacheRead:d.number().finite().nonnegative().optional(),cacheWrite:d.number().finite().nonnegative().optional(),total:d.number().finite().nonnegative().optional()}).strict(),u3=d.object({inputTokens:d.number().int().nonnegative().optional(),outputTokens:d.number().int().nonnegative().optional(),cachedInputTokens:d.number().int().nonnegative().optional(),cacheCreationTokens:d.number().int().nonnegative().optional(),reasoningTokens:d.number().int().nonnegative().optional(),totalTokens:d.number().int().nonnegative().optional(),cost:pK.optional()}).strict();var Q=Symbol.for("drizzle:entityKind");function jt(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,Q))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(Q in n&&n[Q]===t[Q])return!0;n=Object.getPrototypeOf(n)}return!1}var oi=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[Q]="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 Nf=class{static[Q]="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 dr=Symbol.for("drizzle:Name");var Rf=class{static[Q]="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 O0(t,this)}},O0=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[Q]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(i=>i.name),r=o.map(i=>i.name),A=[this.table[dr],...a,o[0].table[dr],...r];return t??`${A.join("_")}_fk`}};function Mf(e,...t){return e(...t)}function K0(e,t){return`${e[dr]}_${t.join("_")}_unique`}var z0=class{constructor(t,n){this.name=n,this.columns=t}static[Q]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new Y0(t,this.columns,this.nullsNotDistinctConfig,this.name)}},d3=class{static[Q]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new z0(t,this.name)}},Y0=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??K0(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[Q]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function l3(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 p3(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]=l3(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=p3(e,o+1);n.push(s),o=c;continue}let[A,i]=l3(e,o,!1);n.push(A),o=i}return[n,o]}function g3(e){let[t]=p3(e,1);return t}function J0(e){return`{${e.map(t=>Array.isArray(t)?J0(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var q=class extends Nf{foreignKeyConfigs=[];static[Q]="PgColumnBuilder";array(t){return new Z0(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})=>Mf((r,A)=>{let i=new Rf(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return A.onUpdate&&i.onUpdate(A.onUpdate),A.onDelete&&i.onDelete(A.onDelete),i.build(n)},o,a))}buildExtraConfigColumn(t){return new W0(t,this.config)}},P=class extends oi{constructor(t,n){n.uniqueName||(n.uniqueName=K0(t,[n.name])),super(t,n),this.table=t}static[Q]="PgColumn"},W0=class extends P{static[Q]="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}},Cc=class{static[Q]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},Z0=class extends q{static[Q]="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 V0(t,this.config,n)}},V0=class e extends P{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[Q]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=g3(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:jt(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:J0(o)}};var m3=class extends q{static[Q]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new X0(t,this.config)}},X0=class extends P{static[Q]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},f3=Symbol.for("drizzle:isPgEnum");function h3(e){return!!e&&typeof e=="function"&&f3 in e&&e[f3]===!0}var b3=class extends q{static[Q]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new eI(t,this.config)}},eI=class extends P{static[Q]="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 yc=class{static[Q]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},B3=class extends yc{static[Q]="WithSubquery"};var C3="0.45.2";var tI,nI,y3={startActiveSpan(e,t){return tI?(nI||(nI=tI.trace.getTracer("drizzle-orm",C3)),Mf((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()}}),tI,nI)):t()}};var wc=Symbol.for("drizzle:ViewBaseConfig");var aI=Symbol.for("drizzle:Schema"),w3=Symbol.for("drizzle:Columns"),E3=Symbol.for("drizzle:ExtraConfigColumns"),oI=Symbol.for("drizzle:OriginalName"),rI=Symbol.for("drizzle:BaseName"),$d=Symbol.for("drizzle:IsAlias"),k3=Symbol.for("drizzle:ExtraConfigBuilder"),gK=Symbol.for("drizzle:IsDrizzleTable"),_t=class{static[Q]="Table";static Symbol={Name:dr,Schema:aI,OriginalName:oI,Columns:w3,ExtraConfigColumns:E3,BaseName:rI,IsAlias:$d,ExtraConfigBuilder:k3};[dr];[oI];[aI];[w3];[E3];[rI];[$d]=!1;[gK]=!0;[k3]=void 0;constructor(t,n,o){this[dr]=this[oI]=t,this[aI]=n,this[rI]=o}};var Q3=class{static[Q]="FakePrimitiveParam"};function mK(e){return e!=null&&typeof e.getSQL=="function"}function fK(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 ra=class{static[Q]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new vt([this])}},vt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(jt(n,_t)){let o=n[_t.Symbol.Schema];this.usedTables.push(o===void 0?n[_t.Symbol.Name]:o+"."+n[_t.Symbol.Name])}}static[Q]="SQL";decoder=I3;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return y3.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:A,prepareTyping:i,inlineParams:s,paramStartIndex:c}=o;return fK(t.map(u=>{if(jt(u,ra))return{sql:u.value.join(""),params:[]};if(jt(u,Nd))return{sql:r(u.value),params:[]};if(u===void 0)return{sql:"",params:[]};if(Array.isArray(u)){let l=[new ra("(")];for(let[p,g]of u.entries())l.push(g),p<u.length-1&&l.push(new ra(", "));return l.push(new ra(")")),this.buildQueryFromSourceParams(l,o)}if(jt(u,e))return this.buildQueryFromSourceParams(u.queryChunks,{...o,inlineParams:s||u.shouldInlineParams});if(jt(u,_t)){let l=u[_t.Symbol.Schema],p=u[_t.Symbol.Name];return{sql:l===void 0||u[$d]?r(p):r(l)+"."+r(p),params:[]}}if(jt(u,oi)){let l=a.getColumnCasing(u);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let p=u.table[_t.Symbol.Schema];return{sql:u.table[$d]||p===void 0?r(u.table[_t.Symbol.Name])+"."+r(l):r(p)+"."+r(u.table[_t.Symbol.Name])+"."+r(l),params:[]}}if(jt(u,AI)){let l=u[wc].schema,p=u[wc].name;return{sql:l===void 0||u[wc].isAlias?r(p):r(l)+"."+r(p),params:[]}}if(jt(u,jf)){if(jt(u.value,Rd))return{sql:A(c.value++,u),params:[u],typings:["none"]};let l=u.value===null?null:u.encoder.mapToDriverValue(u.value);if(jt(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let p=["none"];return i&&(p=[i(u.encoder)]),{sql:A(c.value++,l),params:[l],typings:p}}return jt(u,Rd)?{sql:A(c.value++,u),params:[u],typings:["none"]}:jt(u,e.Aliased)&&u.fieldAlias!==void 0?{sql:r(u.fieldAlias),params:[]}:jt(u,yc)?u._.isWith?{sql:r(u._.alias),params:[]}:this.buildQueryFromSourceParams([new ra("("),u._.sql,new ra(") "),new Nd(u._.alias)],o):h3(u)?u.schema?{sql:r(u.schema)+"."+r(u.enumName),params:[]}:{sql:r(u.enumName),params:[]}:mK(u)?u.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([u.getSQL()],o):this.buildQueryFromSourceParams([new ra("("),u.getSQL(),new ra(")")],o):s?{sql:this.mapInlineParam(u,o),params:[]}:{sql:A(c.value++,u),params:[u],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}},Nd=class{constructor(t){this.value=t}static[Q]="Name";brand;getSQL(){return new vt([this])}};var I3={mapFromDriverValue:e=>e},_3={mapToDriverValue:e=>e},Hpe={...I3,..._3},jf=class{constructor(t,n=_3){this.value=t,this.encoder=n}static[Q]="Param";brand;getSQL(){return new vt([this])}};function Ec(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new ra(e[0]));for(let[o,a]of t.entries())n.push(a,new ra(e[o+1]));return new vt(n)}(e=>{function t(){return new vt([])}e.empty=t;function n(s){return new vt(s)}e.fromList=n;function o(s){return new vt([new ra(s)])}e.raw=o;function a(s,c){let u=[];for(let[l,p]of s.entries())l>0&&c!==void 0&&u.push(c),u.push(p);return new vt(u)}e.join=a;function r(s){return new Nd(s)}e.identifier=r;function A(s){return new Rd(s)}e.placeholder=A;function i(s,c){return new jf(s,c)}e.param=i})(Ec||(Ec={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[Q]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(vt||(vt={}));var Rd=class{constructor(t){this.name=t}static[Q]="Placeholder";getSQL(){return new vt([this])}};var bK=Symbol.for("drizzle:IsDrizzleView"),AI=class{static[Q]="View";[wc];[bK]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[wc]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new vt([this])}};oi.prototype.getSQL=function(){return new vt([this])};_t.prototype.getSQL=function(){return new vt([this])};yc.prototype.getSQL=function(){return new vt([this])};function Ce(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var Upe=typeof TextDecoder>"u"?null:new TextDecoder;var lr=class extends q{static[Q]="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 iI=class extends lr{static[Q]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new sI(t,this.config)}},sI=class extends P{static[Q]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},cI=class extends lr{static[Q]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new uI(t,this.config)}},uI=class extends P{static[Q]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function v3(e,t){let{name:n,config:o}=Ce(e,t);return o.mode==="number"?new iI(n):new cI(n)}var dI=class extends q{static[Q]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new lI(t,this.config)}},lI=class extends P{static[Q]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},pI=class extends q{static[Q]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new gI(t,this.config)}},gI=class extends P{static[Q]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function x3(e,t){let{name:n,config:o}=Ce(e,t);return o.mode==="number"?new dI(n):new pI(n)}var mI=class extends q{static[Q]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new fI(t,this.config)}},fI=class extends P{static[Q]="PgBoolean";getSQLType(){return"boolean"}};function D3(e){return new mI(e??"")}var bI=class extends q{static[Q]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new hI(t,this.config)}},hI=class extends P{static[Q]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function F3(e,t={}){let{name:n,config:o}=Ce(e,t);return new bI(n,o)}var BI=class extends q{static[Q]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new CI(t,this.config)}},CI=class extends P{static[Q]="PgCidr";getSQLType(){return"cidr"}};function S3(e){return new BI(e??"")}var yI=class extends q{static[Q]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new wI(t,this.config)}},wI=class extends P{static[Q]="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 L3(e){return(t,n)=>{let{name:o,config:a}=Ce(t,n);return new yI(o,a,e)}}var ko=class extends q{static[Q]="PgDateColumnBaseBuilder";defaultNow(){return this.default(Ec`now()`)}};var EI=class extends ko{static[Q]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new kI(t,this.config)}},kI=class extends P{static[Q]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},QI=class extends ko{static[Q]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new II(t,this.config)}},II=class extends P{static[Q]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function $3(e,t){let{name:n,config:o}=Ce(e,t);return o?.mode==="date"?new EI(n):new QI(n)}var _I=class extends q{static[Q]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new vI(t,this.config)}},vI=class extends P{static[Q]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function N3(e){return new _I(e??"")}var xI=class extends q{static[Q]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new DI(t,this.config)}},DI=class extends P{static[Q]="PgInet";getSQLType(){return"inet"}};function R3(e){return new xI(e??"")}var FI=class extends lr{static[Q]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new SI(t,this.config)}},SI=class extends P{static[Q]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function M3(e){return new FI(e??"")}var LI=class extends q{static[Q]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new $I(t,this.config)}},$I=class extends P{static[Q]="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 j3(e,t={}){let{name:n,config:o}=Ce(e,t);return new LI(n,o)}var NI=class extends q{static[Q]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new RI(t,this.config)}},RI=class extends P{static[Q]="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 G3(e){return new NI(e??"")}var MI=class extends q{static[Q]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new jI(t,this.config)}},jI=class extends P{static[Q]="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 Gf(e){return new MI(e??"")}var GI=class extends q{static[Q]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new HI(t,this.config)}},HI=class extends P{static[Q]="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]}}`}},PI=class extends q{static[Q]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new UI(t,this.config)}},UI=class extends P{static[Q]="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 H3(e,t){let{name:n,config:o}=Ce(e,t);return!o?.mode||o.mode==="tuple"?new GI(n):new PI(n)}var TI=class extends q{static[Q]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new qI(t,this.config)}},qI=class extends P{static[Q]="PgMacaddr";getSQLType(){return"macaddr"}};function P3(e){return new TI(e??"")}var OI=class extends q{static[Q]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new zI(t,this.config)}},zI=class extends P{static[Q]="PgMacaddr8";getSQLType(){return"macaddr8"}};function U3(e){return new OI(e??"")}var YI=class extends q{static[Q]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new KI(t,this.config)}},KI=class extends P{static[Q]="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})`}},JI=class extends q{static[Q]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new WI(t,this.config)}},WI=class extends P{static[Q]="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})`}},ZI=class extends q{static[Q]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new VI(t,this.config)}},VI=class extends P{static[Q]="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 T3(e,t){let{name:n,config:o}=Ce(e,t),a=o?.mode;return a==="number"?new JI(n,o?.precision,o?.scale):a==="bigint"?new ZI(n,o?.precision,o?.scale):new YI(n,o?.precision,o?.scale)}var XI=class extends q{static[Q]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new e_(t,this.config)}},e_=class extends P{static[Q]="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]})`}},t_=class extends q{static[Q]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new n_(t,this.config)}},n_=class extends P{static[Q]="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 q3(e,t){let{name:n,config:o}=Ce(e,t);return!o?.mode||o.mode==="tuple"?new XI(n):new t_(n)}function hK(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 O3(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 a_(e){let t=hK(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let A;if(r&536870912&&(A=a.getUint32(n,o===1),n+=4),(r&65535)===1){let i=O3(t,n);n+=8;let s=O3(t,n);return n+=8,[i,s]}throw new Error("Unsupported geometry type")}var o_=class extends q{static[Q]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new r_(t,this.config)}},r_=class extends P{static[Q]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return a_(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},A_=class extends q{static[Q]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new i_(t,this.config)}},i_=class extends P{static[Q]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=a_(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function z3(e,t){let{name:n,config:o}=Ce(e,t);return!o?.mode||o.mode==="tuple"?new o_(n):new A_(n)}var s_=class extends q{static[Q]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new c_(t,this.config)}},c_=class extends P{static[Q]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function Y3(e){return new s_(e??"")}var u_=class extends q{static[Q]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new d_(t,this.config)}},d_=class extends P{static[Q]="PgSerial";getSQLType(){return"serial"}};function K3(e){return new u_(e??"")}var l_=class extends lr{static[Q]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new p_(t,this.config)}},p_=class extends P{static[Q]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function J3(e){return new l_(e??"")}var g_=class extends q{static[Q]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new m_(t,this.config)}},m_=class extends P{static[Q]="PgSmallSerial";getSQLType(){return"smallserial"}};function W3(e){return new g_(e??"")}var f_=class extends q{static[Q]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new b_(t,this.config)}},b_=class extends P{static[Q]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Ya(e,t={}){let{name:n,config:o}=Ce(e,t);return new f_(n,o)}var h_=class extends ko{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[Q]="PgTimeBuilder";build(t){return new B_(t,this.config)}},B_=class extends P{static[Q]="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 Z3(e,t={}){let{name:n,config:o}=Ce(e,t);return new h_(n,o.withTimezone??!1,o.precision)}var C_=class extends ko{static[Q]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new y_(t,this.config)}},y_=class extends P{static[Q]="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()},w_=class extends ko{static[Q]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new E_(t,this.config)}},E_=class extends P{static[Q]="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 Hf(e,t={}){let{name:n,config:o}=Ce(e,t);return o?.mode==="string"?new w_(n,o.withTimezone??!1,o.precision):new C_(n,o?.withTimezone??!1,o?.precision)}var k_=class extends q{static[Q]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(Ec`gen_random_uuid()`)}build(t){return new Q_(t,this.config)}},Q_=class extends P{static[Q]="PgUUID";getSQLType(){return"uuid"}};function V3(e){return new k_(e??"")}var I_=class extends q{static[Q]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new __(t,this.config)}},__=class extends P{static[Q]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function X3(e,t={}){let{name:n,config:o}=Ce(e,t);return new I_(n,o)}var v_=class extends q{static[Q]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new x_(t,this.config)}},x_=class extends P{static[Q]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function eL(e,t){let{name:n,config:o}=Ce(e,t);return new v_(n,o)}var D_=class extends q{static[Q]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new F_(t,this.config)}},F_=class extends P{static[Q]="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 tL(e,t){let{name:n,config:o}=Ce(e,t);return new D_(n,o)}var S_=class extends q{static[Q]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new L_(t,this.config)}},L_=class extends P{static[Q]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function nL(e,t){let{name:n,config:o}=Ce(e,t);return new S_(n,o)}var $_=class extends q{static[Q]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new N_(t,this.config)}},N_=class extends P{static[Q]="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 aL(e,t){let{name:n,config:o}=Ce(e,t);return new $_(n,o)}function oL(){return{bigint:v3,bigserial:x3,boolean:D3,char:F3,cidr:S3,customType:L3,date:$3,doublePrecision:N3,inet:R3,integer:M3,interval:j3,json:G3,jsonb:Gf,line:H3,macaddr:P3,macaddr8:U3,numeric:T3,point:q3,geometry:z3,real:Y3,serial:K3,smallint:J3,smallserial:W3,text:Ya,time:Z3,timestamp:Hf,uuid:V3,varchar:X3,bit:eL,halfvec:tL,sparsevec:nL,vector:aL}}var R_=Symbol.for("drizzle:PgInlineForeignKeys"),rL=Symbol.for("drizzle:EnableRLS"),Md=class extends _t{static[Q]="PgTable";static Symbol=Object.assign({},_t.Symbol,{InlineForeignKeys:R_,EnableRLS:rL});[R_]=[];[rL]=!1;[_t.Symbol.ExtraConfigBuilder]=void 0;[_t.Symbol.ExtraConfigColumns]={}};function BK(e,t,n,o,a=e){let r=new Md(e,o,a),A=typeof t=="function"?t(oL()):t,i=Object.fromEntries(Object.entries(A).map(([u,l])=>{let p=l;p.setName(u);let g=p.build(r);return r[R_].push(...p.buildForeignKeys(g,r)),[u,g]})),s=Object.fromEntries(Object.entries(A).map(([u,l])=>{let p=l;p.setName(u);let g=p.buildExtraConfigColumn(r);return[u,g]})),c=Object.assign(r,i);return c[_t.Symbol.Columns]=i,c[_t.Symbol.ExtraConfigColumns]=s,n&&(c[Md.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[Md.Symbol.EnableRLS]=!0,c)})}var AL=(e,t,n)=>BK(e,t,n,void 0);var Pf=class{constructor(t,n){this.unique=t,this.name=n}static[Q]="PgIndexBuilderOn";on(...t){return new jd(t.map(n=>{if(jt(n,vt))return n;n=n;let o=new Cc(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 jd(t.map(n=>{if(jt(n,vt))return n;n=n;let o=new Cc(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new jd(n.map(o=>{if(jt(o,vt))return o;o=o;let a=new Cc(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},jd=class{static[Q]="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 M_(this.config,t)}},M_=class{static[Q]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function iL(e){return new Pf(!1,e)}function sL(e){return new Pf(!0,e)}var cL=e=>Hf(e,{withTimezone:!0}),uL=d.enum(["channel","dm","group","local_conversation","thread","web_session"]),nbe=AL("junior_destinations",{id:Ya("id").primaryKey(),provider:Ya("provider").notNull(),providerTenantId:Ya("provider_tenant_id").notNull().default(""),providerDestinationId:Ya("provider_destination_id").notNull(),kind:Ya("kind").$type().notNull(),parentDestinationId:Ya("parent_destination_id"),displayName:Ya("display_name"),visibility:Ya("visibility").$type().notNull().default("unknown"),metadata:Gf("metadata_json"),createdAt:cL("created_at").notNull(),updatedAt:cL("updated_at").notNull()},e=>[sL("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),iL("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function CK(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var yK=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(CK,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),dL=d.discriminatedUnion("kind",[yK]),lL=d.string().regex(/^T[A-Z0-9]+$/),wK=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),pL=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Uf=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),pe=d.string().refine(e=>e.trim().length>0),EK=pe.refine(e=>e===e.trim()),Abe=d.enum(["slack","local"]),kK=d.enum(["pub","priv"]),QK=d.enum(["public","private"]),gL=d.object({platform:d.literal("slack"),teamId:lL,channelId:wK}).strict(),mL=gL,IK=d.object({platform:d.literal("local"),conversationId:pL}).strict(),_K=d.discriminatedUnion("platform",[mL,IK]),vK=gL.extend({type:kK,messageTs:pe.optional(),threadTs:pe.optional()}).strict(),xK=d.object({platform:d.literal("local"),type:d.literal("priv"),conversationId:pL}).strict(),fL=d.discriminatedUnion("platform",[vK,xK]),DK=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Uf,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Uf,allowedWhen:d.literal("scheduled-task"),taskId:EK}).strict()]),bL={email:pe.optional(),fullName:pe.optional(),userId:Uf,userName:pe.optional()},FK=d.object({...bL,platform:d.literal("slack"),teamId:lL}).strict(),SK=d.object({...bL,platform:d.literal("local")}).strict(),LK=d.object({platform:d.literal("system"),name:Uf}).strict(),j_=d.discriminatedUnion("platform",[FK,SK,LK]),$K=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),ibe=d.object({idempotencyKey:pe.pipe(d.string().max(512)),credentialSubject:DK.optional(),destination:mL,destinationVisibility:QK,input:pe.pipe(d.string().max(32e3)),metadata:$K.optional(),source:fL}).strict();var NK=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),cbe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),ube=d.object({kind:NK,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var lbe=d.object({label:d.string().min(1),provider:d.string().min(1),resourceRef:d.string().min(1),suggestedEvents:d.array(d.string().min(1)).optional(),supportedEvents:d.array(d.string().min(1)),type:d.string().min(1)}).strict(),pbe=d.object({eventKey:d.string().min(1),eventType:d.string().min(1),occurredAtMs:d.number().finite(),provider:d.string().min(1),resourceRef:d.string().min(1),terminal:d.boolean().optional(),trustedSummary:d.string().min(1),untrustedText:d.string().optional()}).strict(),RK=d.object({authority:d.enum(["instruction","context"]),actor:j_.optional()}).strict(),MK=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:RK.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),mbe=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:_K,actors:d.array(j_),actor:j_.optional(),runId:d.string().min(1),source:fL,transcript:d.array(MK)}).strict();var jK=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),GK=d.object({kind:d.string().min(1),message:d.string().min(1),retryable:d.boolean().optional()}).strict(),bbe=d.object({ok:d.boolean(),status:d.enum(["success","error"]),target:d.string().min(1).optional(),data:d.unknown().optional(),truncated:d.boolean().optional(),continuation:jK.optional(),error:d.union([GK,d.string()]).optional()}).passthrough(),hbe=d.enum(["auto","review","approve"]);var Cbe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:pe}).strict(),HK=d.string().regex(/^[a-z][a-z0-9-]*$/),PK=d.string().regex(/^[a-z][a-z0-9.-]*$/),UK=d.union([d.literal("read"),d.literal("write")]),hL=d.object({provider:HK,scope:pe.optional(),type:d.literal("oauth")}).strict(),BL=d.object({id:pe,label:pe.optional(),url:pe.optional()}).strict(),wbe=d.object({account:BL.optional(),accessToken:pe,expiresAt:d.number().finite().optional(),refreshToken:pe,refreshTokenExpiresAt:d.number().finite().optional(),scope:pe.optional()}).strict(),Ebe=d.object({access:UK,leaseScope:pe.optional(),name:PK,reason:pe.optional(),requirements:d.array(pe).min(1).optional()}).strict(),TK=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),qK=d.object({account:BL.optional(),authorization:hL.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(TK).min(1)}).strict(),kbe=d.discriminatedUnion("type",[d.object({lease:qK,type:d.literal("lease")}).strict(),d.object({authorization:hL.optional(),message:pe,type:d.literal("needed")}).strict(),d.object({message:pe,type:d.literal("unavailable")}).strict()]);var OK=pe.max(64).regex(/^[a-z][a-z0-9-]*$/),zK=pe.max(80),YK=pe.max(500),KK=d.object({label:pe.max(80),value:pe.max(500)}).strict(),JK=d.object({confirmation:pe.max(500).optional(),href:pe.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:pe.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),WK=d.object({actions:d.array(JK).max(4).optional(),description:pe.max(1e3).optional(),id:pe.max(128),metadata:d.array(KK).max(8).optional(),title:pe.max(4e3)}).strict(),Ibe=d.object({emptyText:pe.max(500).optional(),nextCursor:pe.max(1e3).optional(),records:d.array(WK).max(100),searchPlaceholder:pe.max(120).optional(),type:d.literal("list")}).strict(),ZK=d.object({description:YK,id:OK,label:zK,pluginDisplayName:pe.max(200),pluginName:pe.max(100)}).strict(),_be=d.array(ZK),vbe=d.object({cursor:pe.max(1e3).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var yL=d.object({active:d.number(),conversations:d.number(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict();var VK=d.enum(["active","completed","failed"]),XK=d.enum(["api","internal","scheduler","slack"]),wL=u3,eJ=d.object({conversationId:d.string().min(1)}).strict(),tJ=d.object({limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),nJ=d.object({before:d.string().min(1),limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),aJ=d.object({actorEmail:d.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),oJ=d.object({archived:d.boolean(),lastSeenAt:d.string().datetime()}).strict(),G_=d.object({archived:d.boolean()}).strict(),H_=d.object({email:d.string().optional(),fullName:d.string().optional(),slackUserId:d.string().optional(),slackUserName:d.string().optional()}).strict(),Gd=d.object({displayTitle:d.string(),cumulativeDurationMs:d.number(),cumulativeUsage:wL.optional(),conversationId:d.string(),isParticipant:d.boolean(),status:VK,startedAt:d.string(),lastSeenAt:d.string(),lastProgressAt:d.string(),surface:XK,actorIdentity:H_.optional(),archivedAt:d.string().optional(),channel:d.string().optional(),channelName:d.string().optional(),channelNameRedacted:d.boolean().optional(),locationId:d.string().optional(),sentryTraceUrl:d.string().optional(),traceId:d.string().optional()}).strict(),rJ=d.object({type:d.literal("message"),messageId:d.string().min(1),role:d.enum(["assistant","system","user"]),eventType:d.string().min(1).optional(),text:d.string().optional(),redacted:d.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"})}),AJ=d.object({type:d.literal("message_handled"),messageId:d.string().min(1)}).strict(),iJ=d.object({toolCallId:d.string().min(1),name:d.string().min(1),status:d.enum(["running","completed","error"]),startedAt:d.string().datetime().optional(),startedSeq:d.number().int().nonnegative().optional(),input:d.unknown().optional(),output:d.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"})}),EL=d.object({type:d.literal("reasoning"),text:d.string().min(1).optional(),redacted:d.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"})}),sJ=d.object({type:d.literal("tool_call"),toolCallId:d.string().min(1)}).strict(),cJ=d.object({parts:d.array(d.discriminatedUnion("type",[EL,sJ])).min(1)}).strict(),uJ=d.object({type:d.literal("tool_calls"),calls:d.array(iJ).min(1),assistant:cJ.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"})}),dJ=d.object({type:d.literal("assistant_message"),parts:d.array(EL).min(1)}).strict(),lJ=d.discriminatedUnion("state",[d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.enum(["started","succeeded","no_reply"])}).strict(),d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.literal("failed"),failureKind:d.enum(["agent","delivery"])}).strict()]),pJ=d.object({type:d.literal("turn_routed"),turnId:d.string().min(1),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1),confidence:d.number().min(0).max(1).optional(),source:d.enum(["configured","inherited","router"])}).strict(),gJ=d.object({type:d.literal("turn_context"),turnId:d.string().min(1),pluginName:d.string().min(1),kind:d.string().min(1),version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict(),mJ=d.object({type:d.literal("compaction"),modelProfile:d.string().min(1).optional(),modelId:d.string().min(1).optional(),summary:d.string().min(1).optional(),details:d.object({reason:d.literal("capacity"),estimatedInputTokens:d.number().int().nonnegative(),replacementInputTokens:d.number().int().nonnegative().optional(),triggerTokens:d.number().int().nonnegative(),inputLimitTokens:d.number().int().positive(),inputMessageCount:d.number().int().nonnegative(),retainedMessageCount:d.number().int().nonnegative(),summaryChars:d.number().int().nonnegative()}).strict().optional()}).strict(),fJ=d.object({type:d.literal("handoff"),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1).optional(),triggeringToolCallId:d.string().min(1).optional(),summary:d.string().min(1).optional()}).strict(),bJ=d.object({type:d.literal("subagent"),startedSeq:d.number().int().nonnegative(),startedAt:d.string().datetime(),childConversationId:d.string().min(1),subagentKind:d.string().min(1),parentToolCallId:d.string().min(1).optional(),status:d.enum(["running","completed","error","aborted"])}).strict(),kL=d.discriminatedUnion("type",[rJ,AJ,dJ,uJ,lJ,gJ,pJ,mJ,fJ,bJ]),P_=d.object({seq:d.number().int().nonnegative(),createdAt:d.string().datetime(),data:kL}).strict(),U_=d.discriminatedUnion("status",[d.object({status:d.literal("available")}).strict(),d.object({status:d.literal("redacted"),reason:d.literal("non_public_conversation")}).strict(),d.object({status:d.literal("expired"),expiredAt:d.string().datetime()}).strict()]),hJ=d.object({modelId:d.string(),usage:wL}).strict();function QL(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 T_=Gd.extend({annotations:d.array(dL.and(d.object({plugin:d.string().min(1),createdAt:d.string().datetime(),updatedAt:d.string().datetime()}))).optional(),modelUsage:d.array(hJ).optional(),events:d.array(P_),eventHistory:U_,previousCursor:d.string().min(1).optional(),generatedAt:d.string(),sentryConversationUrl:d.string().optional()}).strict().superRefine(QL),q_=d.object({events:d.array(P_),eventHistory:U_,previousCursor:d.string().min(1).optional(),generatedAt:d.string()}).strict().superRefine(QL),O_=d.object({conversations:d.array(Gd),source:d.literal("conversation_index"),generatedAt:d.string()}).strict(),kc=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),label:d.string(),costUsd:d.number().optional(),tokens:d.number().optional()}).strict(),BJ=d.object({costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),tokens:d.number().optional()}).strict(),z_=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),generatedAt:d.string(),metricDays:d.array(BJ),locations:d.array(kc),actors:d.array(kc),source:d.literal("conversation_index"),costUsd:d.number().optional(),tokens:d.number().optional(),windowEnd:d.string(),windowStart:d.string()}).strict(),CJ=d.object({email:d.string().trim().min(1)}).strict(),CL=kc.omit({costUsd:!0}),yJ=d.object({active:d.number(),conversations:d.number(),costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),wJ=d.object({activePeople:d.number(),conversations:d.number(),date:d.string()}).strict(),IL=d.object({active:d.number(),activeDays:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),_L=H_.extend({email:d.string().min(1)}).strict(),EJ=IL.extend({firstSeenAt:d.string(),lastSeenAt:d.string(),actor:_L}).strict(),Y_=d.object({activityDays:d.array(wJ),generatedAt:d.string(),people:d.array(EJ),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),K_=d.object({activityDays:d.array(yJ),generatedAt:d.string(),locations:d.array(CL),recentConversations:d.array(Gd),actor:_L,source:d.literal("conversation_index"),surfaces:d.array(CL),totals:IL,windowEnd:d.string(),windowStart:d.string()}).strict(),kJ=d.object({locationId:d.string().min(1)}).strict(),vL=kc.extend({id:d.string(),firstSeenAt:d.string(),kind:uL,lastSeenAt:d.string(),provider:d.string(),providerDestinationId:d.string(),visibility:d.literal("public")}).strict(),QJ=kc.extend({actor:H_}).strict(),xL=d.object({date:d.string(),privateConversations:d.number(),publicConversations:d.number()}).strict(),J_=d.object({activityDays:d.array(xL),generatedAt:d.string(),locations:d.array(vL),privateActivity:kc,source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),W_=vL.extend({activityDays:d.array(yL),actors:d.array(QJ),generatedAt:d.string(),recentConversations:d.array(Gd),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),IJ=d.object({error:d.string().min(1)}).strict(),Z_=d.object({id:d.string().uuid(),name:d.string(),tokenSuffix:d.string(),createdAt:d.string().datetime(),expiresAt:d.string().datetime(),lastUsedAt:d.string().datetime().nullable()}).strict(),V_=d.object({tokens:d.array(Z_)}).strict(),_J=d.object({name:d.string().trim().min(1).max(80)}).strict(),X_=Z_.extend({token:d.string().startsWith("jr_pat_")}).strict(),vJ=d.object({id:d.string().uuid()}).strict(),xJ=d.object({revoked:d.literal(!0)}).strict(),DL=d.object({count:d.number().int().nonnegative(),date:d.string(),metric:d.string().min(1),name:d.string().min(1),namespace:d.string().min(1)}).strict(),DJ=d.object({generatedAt:d.string().datetime(),stats:d.array(DL),windowEnd:d.string(),windowStart:d.string()}).strict();var FJ=d.object({status:d.literal("ok"),service:d.string(),timestamp:d.string()}).strict(),FL=d.object({configKeys:d.array(d.string()),description:d.string(),displayName:d.string(),name:d.string()}).strict(),ev=d.array(FL),tv=d.object({name:d.string(),pluginProvider:d.string().optional()}).strict(),nv=d.array(tv),SL=d.object({dir:d.string(),hasMigrationsDir:d.boolean(),hasSkillsDir:d.boolean(),packageName:d.string()}).strict(),LL=d.object({packageNames:d.array(d.string()),packages:d.array(SL),manifestRoots:d.array(d.string()),skillRoots:d.array(d.string()),tracingIncludes:d.array(d.string())}).strict(),SJ=d.object({cwd:d.string(),homeDir:d.string(),descriptionText:d.string().optional(),providers:d.array(d.string()),skills:d.array(tv),packagedContent:LL}).strict(),av=d.enum(["danger","good","neutral","warning"]),LJ=d.object({label:d.string(),tone:av.optional(),value:d.string()}).strict(),$J=d.object({key:d.string(),label:d.string()}).strict(),NJ=d.object({id:d.string(),tone:av.optional(),values:d.record(d.string(),d.string())}).strict(),RJ=d.object({fields:d.array($J).optional(),emptyText:d.string().optional(),records:d.array(NJ).optional(),title:d.string()}).strict(),MJ=d.object({categories:d.array(d.object({id:d.string().min(1),label:d.string().min(1),values:d.record(d.string(),d.number().finite())}).strict()).max(100),description:d.string().optional(),emptyText:d.string().optional(),id:d.string().min(1),series:d.array(d.object({key:d.string().min(1),label:d.string().min(1),tone:av.optional()}).strict()).min(1).max(8),timeRangeDays:d.array(d.union([d.literal(7),d.literal(30),d.literal(90)])).min(1).max(3).optional(),title:d.string().min(1),type:d.literal("bar_chart")}).strict(),$L=d.object({generatedAt:d.string().optional(),metrics:d.array(LJ).optional(),recordSets:d.array(RJ).optional(),title:d.string().optional(),pluginName:d.string(),widgets:d.array(MJ).max(12).optional()}).strict(),ov=d.object({generatedAt:d.string(),reports:d.array($L),source:d.literal("plugins")}).strict();function jJ(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var GJ=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(jJ,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),Zbe=d.discriminatedUnion("kind",[GJ]),NL=d.string().regex(/^T[A-Z0-9]+$/),HJ=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),RL=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Tf=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),ge=d.string().refine(e=>e.trim().length>0),PJ=ge.refine(e=>e===e.trim()),Xbe=d.enum(["slack","local"]),UJ=d.enum(["pub","priv"]),TJ=d.enum(["public","private"]),ML=d.object({platform:d.literal("slack"),teamId:NL,channelId:HJ}).strict(),jL=ML,qJ=d.object({platform:d.literal("local"),conversationId:RL}).strict(),OJ=d.discriminatedUnion("platform",[jL,qJ]),zJ=ML.extend({type:UJ,messageTs:ge.optional(),threadTs:ge.optional()}).strict(),YJ=d.object({platform:d.literal("local"),type:d.literal("priv"),conversationId:RL}).strict(),GL=d.discriminatedUnion("platform",[zJ,YJ]),KJ=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Tf,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Tf,allowedWhen:d.literal("scheduled-task"),taskId:PJ}).strict()]),HL={email:ge.optional(),fullName:ge.optional(),userId:Tf,userName:ge.optional()},JJ=d.object({...HL,platform:d.literal("slack"),teamId:NL}).strict(),WJ=d.object({...HL,platform:d.literal("local")}).strict(),ZJ=d.object({platform:d.literal("system"),name:Tf}).strict(),rv=d.discriminatedUnion("platform",[JJ,WJ,ZJ]),VJ=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),ehe=d.object({idempotencyKey:ge.pipe(d.string().max(512)),credentialSubject:KJ.optional(),destination:jL,destinationVisibility:TJ,input:ge.pipe(d.string().max(32e3)),metadata:VJ.optional(),source:GL}).strict();var XJ=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),nhe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),ahe=d.object({kind:XJ,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var rhe=d.object({label:d.string().min(1),provider:d.string().min(1),resourceRef:d.string().min(1),suggestedEvents:d.array(d.string().min(1)).optional(),supportedEvents:d.array(d.string().min(1)),type:d.string().min(1)}).strict(),Ahe=d.object({eventKey:d.string().min(1),eventType:d.string().min(1),occurredAtMs:d.number().finite(),provider:d.string().min(1),resourceRef:d.string().min(1),terminal:d.boolean().optional(),trustedSummary:d.string().min(1),untrustedText:d.string().optional()}).strict(),eW=d.object({authority:d.enum(["instruction","context"]),actor:rv.optional()}).strict(),tW=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:eW.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),she=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:OJ,actors:d.array(rv),actor:rv.optional(),runId:d.string().min(1),source:GL,transcript:d.array(tW)}).strict();var nW=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),aW=d.object({kind:d.string().min(1),message:d.string().min(1),retryable:d.boolean().optional()}).strict(),uhe=d.object({ok:d.boolean(),status:d.enum(["success","error"]),target:d.string().min(1).optional(),data:d.unknown().optional(),truncated:d.boolean().optional(),continuation:nW.optional(),error:d.union([aW,d.string()]).optional()}).passthrough(),dhe=d.enum(["auto","review","approve"]);var phe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:ge}).strict(),oW=d.string().regex(/^[a-z][a-z0-9-]*$/),rW=d.string().regex(/^[a-z][a-z0-9.-]*$/),AW=d.union([d.literal("read"),d.literal("write")]),PL=d.object({provider:oW,scope:ge.optional(),type:d.literal("oauth")}).strict(),UL=d.object({id:ge,label:ge.optional(),url:ge.optional()}).strict(),mhe=d.object({account:UL.optional(),accessToken:ge,expiresAt:d.number().finite().optional(),refreshToken:ge,refreshTokenExpiresAt:d.number().finite().optional(),scope:ge.optional()}).strict(),fhe=d.object({access:AW,leaseScope:ge.optional(),name:rW,reason:ge.optional(),requirements:d.array(ge).min(1).optional()}).strict(),iW=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),sW=d.object({account:UL.optional(),authorization:PL.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(iW).min(1)}).strict(),bhe=d.discriminatedUnion("type",[d.object({lease:sW,type:d.literal("lease")}).strict(),d.object({authorization:PL.optional(),message:ge,type:d.literal("needed")}).strict(),d.object({message:ge,type:d.literal("unavailable")}).strict()]);var cW=ge.max(64).regex(/^[a-z][a-z0-9-]*$/),uW=ge.max(80),dW=ge.max(500),lW=d.object({label:ge.max(80),value:ge.max(500)}).strict(),pW=d.object({confirmation:ge.max(500).optional(),href:ge.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:ge.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),gW=d.object({actions:d.array(pW).max(4).optional(),description:ge.max(1e3).optional(),id:ge.max(128),metadata:d.array(lW).max(8).optional(),title:ge.max(4e3)}).strict(),TL=d.object({emptyText:ge.max(500).optional(),nextCursor:ge.max(1e3).optional(),records:d.array(gW).max(100),searchPlaceholder:ge.max(120).optional(),type:d.literal("list")}).strict(),mW=d.object({description:dW,id:cW,label:uW,pluginDisplayName:ge.max(200),pluginName:ge.max(100)}).strict(),qL=d.array(mW),Bhe=d.object({cursor:ge.max(1e3).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var OL=d.object({user:d.object({email:d.string().trim().email(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),zL=d.object({allowedEmailCount:d.number(),allowedGoogleDomainCount:d.number(),authRequired:d.boolean(),authPath:d.string(),basePath:d.string(),componentGallery:d.boolean(),sentryConversationLinks:d.boolean(),timeZone:d.string()}).strict();var pr=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function qf(){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 YL(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&&qf(),!o.ok)throw new pr(t,o.status);return e.parse(await o.json())}async function KL(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&&qf(),!o.ok)throw new pr(t,o.status);return e.parse(await o.json())}async function Of(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});if(t.status===401&&qf(),!t.ok)throw new pr(e,t.status)}async function Gt(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:{}});if(o.status===401)throw qf(),new pr(t,o.status);if(!o.ok)throw new pr(t,o.status);return e.parse(await o.json())}function Av(){return tn({queryKey:["dashboard","core"],queryFn:async()=>{let[e,t]=await Promise.all([Gt(OL,"/api/me"),Gt(zL,"/api/config")]);return{config:t,me:e}},retry:!1})}function fW(){return tn({queryKey:["dashboard","plugins"],queryFn:()=>Gt(ev,"/api/plugins"),retry:!1})}function JL(){return tn({queryKey:["dashboard","plugin-user-pages"],queryFn:()=>Gt(qL,"/api/user-pages"),retry:!1})}function WL(e){let t=new URLSearchParams;e&&t.set("actorEmail",e);let n=t.toString();return tn({queryKey:["dashboard","conversations",e??"all"],queryFn:()=>Gt(O_,`/api/conversations${n?`?${n}`:""}`),retry:!1})}function ZL(){return tn({queryKey:["dashboard","people"],queryFn:()=>Gt(Y_,"/api/people"),retry:!1})}function VL(e){return tn({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async()=>Gt(K_,`/api/people/${encodeURIComponent(e)}`),retry:!1})}function XL(){return tn({queryKey:["dashboard","locations"],queryFn:()=>Gt(J_,"/api/locations"),retry:!1})}function e$(e){return tn({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async()=>Gt(W_,`/api/locations/${encodeURIComponent(e)}`),retry:!1})}function t$(){let e=Av(),t=fW(),n=tn({queryKey:["dashboard","conversation-stats"],queryFn:()=>Gt(z_,"/api/conversations/stats"),retry:!1}),o=tn({queryKey:["dashboard","skills"],queryFn:()=>Gt(nv,"/api/skills"),retry:!1}),a=tn({queryKey:["dashboard","plugin-reports"],queryFn:()=>Gt(ov,"/api/plugin-reports"),retry:!1}),r=e.data&&t.data&&o.data;return{...e,data:r?{...e.data,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:e.error??t.error??o.error,isPending:e.isPending||t.isPending||o.isPending}}var n$="Junior";function Oe(){return typeof window>"u"?n$:window.__JUNIOR_DASHBOARD_AGENT_NAME__?.trim()||n$}function Hd(e=Oe()){return e.endsWith("s")?`${e}'`:`${e}'s`}var iv=w(_(),1);function zf(){return(0,iv.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,iv.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 a$=["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 N(...e){return e.filter(Boolean).join(" ")}var Bt="mx-auto w-full min-w-0 max-w-screen-xl",cA="text-dashboard-text-muted hover:text-dashboard-text";var uA=w(_(),1);function et(e){return(0,uA.jsx)("div",{className:N(Bt,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,uA.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-[#0b0b0b] p-4",children:[(0,uA.jsx)(zf,{}),(0,uA.jsxs)("div",{children:[(0,uA.jsx)("div",{className:"font-bold",children:e.label}),(0,uA.jsx)("div",{"aria-label":e.label,className:`${a$} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var Jf=w(X(),1);var Yf=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var o$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var r$=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var sv=e=>{let t=r$(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Pd=w(X(),1);var Kf={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 A$=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Qc=w(X(),1);var bW=(0,Qc.createContext)({});var i$=()=>(0,Qc.useContext)(bW);var s$=(0,Pd.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:A,...i},s)=>{let{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:l=!1,color:p="currentColor",className:g=""}=i$()??{},m=o??l?Number(n??u)*24/Number(t??c):n??u;return(0,Pd.createElement)("svg",{ref:s,...Kf,width:t??c??Kf.width,height:t??c??Kf.height,stroke:e??p,strokeWidth:m,className:Yf("lucide",g,a),...!r&&!A$(i)&&{"aria-hidden":"true"},...i},[...A.map(([B,C])=>(0,Pd.createElement)(B,C)),...Array.isArray(r)?r:[r]])});var H=(e,t)=>{let n=(0,Jf.forwardRef)(({className:o,...a},r)=>(0,Jf.createElement)(s$,{ref:r,iconNode:t,className:Yf(`lucide-${o$(sv(e))}`,`lucide-${e}`,o),...a}));return n.displayName=sv(e),n};var hW=[["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"}]],ri=H("activity",hW);var BW=[["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"}]],Ud=H("archive",BW);var CW=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Td=H("arrow-down-to-line",CW);var yW=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],qd=H("arrow-left",yW);var wW=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Od=H("arrow-right",wW);var EW=[["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"}]],Qo=H("bot",EW);var kW=[["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"}]],_n=H("boxes",kW);var QW=[["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"}]],Io=H("braces",QW);var IW=[["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"}]],Ai=H("brain",IW);var _W=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zd=H("check",_W);var vW=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ii=H("chevron-down",vW);var xW=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yd=H("chevron-right",xW);var DW=[["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"}]],dA=H("circle-alert",DW);var FW=[["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"}]],Kd=H("circle-dashed",FW);var SW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Jd=H("circle-dot",SW);var LW=[["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"}]],lA=H("circle-x",LW);var $W=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Ka=H("clock-3",$W);var NW=[["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"}]],si=H("coins",NW);var RW=[["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"}]],ci=H("copy",RW);var MW=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Wd=H("diff",MW);var jW=[["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"}]],Zd=H("external-link",jW);var GW=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Vd=H("gauge",GW);var HW=[["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"}]],Xd=H("git-merge",HW);var PW=[["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"}]],el=H("hash",PW);var UW=[["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"}]],gr=H("key-round",UW);var TW=[["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"}]],ui=H("lock-keyhole",TW);var qW=[["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"}]],tl=H("log-out",qW);var OW=[["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"}]],nl=H("map-pin",OW);var zW=[["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"}]],al=H("map-pinned",zW);var YW=[["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"}]],ol=H("message-square-text",YW);var KW=[["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"}]],Aa=H("message-square",KW);var JW=[["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"}]],rl=H("minimize-2",JW);var WW=[["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"}]],Al=H("radio-tower",WW);var ZW=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],di=H("search",ZW);var VW=[["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"}]],il=H("send",VW);var XW=[["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"}]],Ia=H("sparkles",XW);var eZ=[["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"}]],sl=H("timer",eZ);var tZ=[["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"}]],li=H("trash-2",tZ);var nZ=[["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"}]],_a=H("triangle-alert",nZ);var aZ=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],_o=H("user-round",aZ);var oZ=[["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"}]],pi=H("users",oZ);var rZ=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gi=H("x",rZ);var Li=w(X(),1);var cv=Object.defineProperty,AZ=Object.getOwnPropertyDescriptor,iZ=Object.getOwnPropertyNames,sZ=Object.prototype.hasOwnProperty,u$=(e,t)=>{let n={};for(var o in e)cv(n,o,{get:e[o],enumerable:!0});return t||cv(n,Symbol.toStringTag,{value:"Module"}),n},c$=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=iZ(t),r=0,A=a.length,i;r<A;r++)i=a[r],!sZ.call(e,i)&&i!==n&&cv(e,i,{get:(s=>t[s]).bind(null,i),enumerable:!(o=AZ(t,i))||o.enumerable});return e},d$=(e,t,n)=>(c$(e,t,"default"),n&&c$(n,t,"default"));var pv={};x(pv,{createOnigurumaEngine:()=>QZ,getDefaultWasmLoader:()=>kZ,loadWasm:()=>p$,setDefaultWasmLoader:()=>EZ});var lv=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function cZ(){return 2147483648}function uZ(){return typeof performance<"u"?performance.now():Date.now()}var dZ=(e,t)=>e+(t-e%t)%t;async function lZ(e){let t,n,o={};function a(g){n=g,o.HEAPU8=new Uint8Array(g),o.HEAPU32=new Uint32Array(g)}function r(g,m,B){o.HEAPU8.copyWithin(g,m,m+B)}function A(g){try{return t.grow(g-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function i(g){let m=o.HEAPU8.length;g=g>>>0;let B=cZ();if(g>B)return!1;for(let C=1;C<=4;C*=2){let b=m*(1+.2/C);b=Math.min(b,g+100663296);let f=Math.min(B,dZ(Math.max(g,b),65536));if(A(f))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(g,m,B=1024){let C=m+B,b=m;for(;g[b]&&!(b>=C);)++b;if(b-m>16&&g.buffer&&s)return s.decode(g.subarray(m,b));let f="";for(;m<b;){let h=g[m++];if(!(h&128)){f+=String.fromCharCode(h);continue}let y=g[m++]&63;if((h&224)===192){f+=String.fromCharCode((h&31)<<6|y);continue}let k=g[m++]&63;if((h&240)===224?h=(h&15)<<12|y<<6|k:h=(h&7)<<18|y<<12|k<<6|g[m++]&63,h<65536)f+=String.fromCharCode(h);else{let G=h-65536;f+=String.fromCharCode(55296|G>>10,56320|G&1023)}}return f}function u(g,m){return g?c(o.HEAPU8,g,m):""}let l={emscripten_get_now:uZ,emscripten_memcpy_big:r,emscripten_resize_heap:i,fd_write:()=>0};async function p(){let m=await e({env:l,wasi_snapshot_preview1:l});t=m.memory,a(t.buffer),Object.assign(o,m),o.UTF8ToString=u}return await p(),o}var pZ=Object.defineProperty,gZ=(e,t,n)=>t in e?pZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t,n)=>gZ(e,typeof t!="symbol"?t+"":t,n),Jt=null;function mZ(e){throw new lv(e.UTF8ToString(e.getLastOnigError()))}var Zf=class e{constructor(t){Ut(this,"utf16Length"),Ut(this,"utf8Length"),Ut(this,"utf16Value"),Ut(this,"utf8Value"),Ut(this,"utf16OffsetToUtf8"),Ut(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 A=a?new Uint32Array(o+1):null;a&&(A[o]=n);let i=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let u=t.charCodeAt(c),l=u,p=!1;if(u>=55296&&u<=56319&&c+1<n){let g=t.charCodeAt(c+1);g>=56320&&g<=57343&&(l=(u-55296<<10)+65536|g-56320,p=!0)}a&&(r[c]=s,p&&(r[c+1]=s),l<=127?A[s+0]=c:l<=2047?(A[s+0]=c,A[s+1]=c):l<=65535?(A[s+0]=c,A[s+1]=c,A[s+2]=c):(A[s+0]=c,A[s+1]=c,A[s+2]=c,A[s+3]=c)),l<=127?i[s++]=l:l<=2047?(i[s++]=192|(l&1984)>>>6,i[s++]=128|(l&63)>>>0):l<=65535?(i[s++]=224|(l&61440)>>>12,i[s++]=128|(l&4032)>>>6,i[s++]=128|(l&63)>>>0):(i[s++]=240|(l&1835008)>>>18,i[s++]=128|(l&258048)>>>12,i[s++]=128|(l&4032)>>>6,i[s++]=128|(l&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=i,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=A}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),A=r,i=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(A=(r-55296<<10)+65536|s-56320,i=!0)}A<=127?n+=1:A<=2047?n+=2:A<=65535?n+=3:n+=4,i&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},Vf=class vo{constructor(t){if(Ut(this,"id",++vo.LAST_ID),Ut(this,"_onigBinding"),Ut(this,"content"),Ut(this,"utf16Length"),Ut(this,"utf8Length"),Ut(this,"utf16OffsetToUtf8"),Ut(this,"utf8OffsetToUtf16"),Ut(this,"ptr"),!Jt)throw new lv("Must invoke loadWasm first.");this._onigBinding=Jt,this.content=t;let n=new Zf(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!vo._sharedPtrInUse?(vo._sharedPtr||(vo._sharedPtr=Jt.omalloc(1e4)),vo._sharedPtrInUse=!0,Jt.HEAPU8.set(n.utf8Value,vo._sharedPtr),this.ptr=vo._sharedPtr):this.ptr=n.createString(Jt)}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===vo._sharedPtr?vo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ut(Vf,"LAST_ID",0);Ut(Vf,"_sharedPtr",0);Ut(Vf,"_sharedPtrInUse",!1);var l$=Vf,dv=class{constructor(t){if(Ut(this,"_onigBinding"),Ut(this,"_ptr"),!Jt)throw new lv("Must invoke loadWasm first.");let n=[],o=[];for(let i=0,s=t.length;i<s;i++){let c=new Zf(t[i]);n[i]=c.createString(Jt),o[i]=c.utf8Length}let a=Jt.omalloc(4*t.length);Jt.HEAPU32.set(n,a/4);let r=Jt.omalloc(4*t.length);Jt.HEAPU32.set(o,r/4);let A=Jt.createOnigScanner(a,r,t.length);for(let i=0,s=t.length;i<s;i++)Jt.ofree(n[i]);Jt.ofree(r),Jt.ofree(a),A===0&&mZ(Jt),this._onigBinding=Jt,this._ptr=A}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new l$(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,A=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(A===0)return null;let i=r.HEAPU32,s=A/4,c=i[s++],u=i[s++],l=[];for(let p=0;p<u;p++){let g=t.convertUtf8OffsetToUtf16(i[s++]),m=t.convertUtf8OffsetToUtf16(i[s++]);l[p]={start:g,end:m,length:m-g}}return{index:c,captureIndices:l}}};function fZ(e){return typeof e.instantiator=="function"}function bZ(e){return typeof e.default=="function"}function hZ(e){return typeof e.data<"u"}function BZ(e){return typeof Response<"u"&&e instanceof Response}function CZ(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 Wf;function p$(e){if(Wf)return Wf;async function t(){Jt=await lZ(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),fZ(o)?o=await o.instantiator(n):bZ(o)?o=await o.default(n):(hZ(o)&&(o=o.data),BZ(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await yZ(o)(n):o=await wZ(o)(n):CZ(o)?o=await uv(o)(n):o instanceof WebAssembly.Module?o=await uv(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await uv(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return Wf=t(),Wf}function uv(e){return t=>WebAssembly.instantiate(e,t)}function yZ(e){return t=>WebAssembly.instantiateStreaming(e,t)}function wZ(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var g$;function EZ(e){g$=e}function kZ(){return g$}async function QZ(e){return e&&await p$(e),{createScanner(t){return new dv(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new l$(t)}}}var gv=u$({});d$(gv,pv);var MR=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(f$(),m$)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(h$(),b$)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(C$(),B$)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(w$(),y$)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(k$(),E$)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(I$(),Q$)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(v$(),_$)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(D$(),x$)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(S$(),F$)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>($$(),L$)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(R$(),N$)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(j$(),M$)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(H$(),G$)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(U$(),P$)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(q$(),T$)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(z$(),O$)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(K$(),Y$)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(W$(),J$)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(V$(),Z$)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(eN(),X$)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(nN(),tN)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(oN(),aN)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(AN(),rN)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(sN(),iN)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(uN(),cN)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(lN(),dN)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(gN(),pN)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(fN(),mN)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(hN(),bN)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(CN(),BN)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(wN(),yN)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(kN(),EN)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(IN(),QN)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(vN(),_N)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(DN(),xN)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(SN(),FN)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>($N(),LN)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(RN(),NN)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(jN(),MN)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(HN(),GN)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(UN(),PN)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(qN(),TN)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(zN(),ON)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(KN(),YN)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(WN(),JN)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(VN(),ZN)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(eR(),XN)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(nR(),tR)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(oR(),aR)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(AR(),rR)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(sR(),iR)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(uR(),cR)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(lR(),dR)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(gR(),pR)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(fR(),mR)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(hR(),bR)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(CR(),BR)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(wR(),yR)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(kR(),ER)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(IR(),QR)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(vR(),_R)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(DR(),xR)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(SR(),FR)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>($R(),LR)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(RR(),NR)))}],jR=Object.fromEntries(MR.map(e=>[e.id,e.import]));var Le=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function MV(e){return kv(e)}function kv(e){return Array.isArray(e)?jV(e):e instanceof RegExp?e:typeof e=="object"?GV(e):e}function jV(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=kv(e[n]);return t}function GV(e){let t={};for(let n in e)t[n]=kv(e[n]);return t}function YR(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function KR(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?KR(e.substring(0,e.length-1)):e.substr(~t+1)}var mv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xf=class{static hasCaptures(e){return e===null?!1:(mv.lastIndex=0,mv.test(e))}static replaceCaptures(e,t,n){return e.replace(mv,(o,a,r,A)=>{let i=n[parseInt(a||r,10)];if(i){let s=t.substring(i.start,i.end);for(;s[0]===".";)s=s.substring(1);switch(A){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function JR(e,t){return e<t?-1:e>t?1:0}function WR(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=JR(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function GR(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 ZR(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var VR=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}},dl=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(UV(e),t)}static createFromParsedTheme(e,t){return qV(e,t)}_cachedMatchRoot=new VR(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=>HV(e.parent,a.parentScopes));return o?new XR(o.fontStyle,o.foreground,o.background):null}},fv=class eb{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new eb(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new eb(n,t[o]);return n}push(t){return new eb(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 HV(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&&!PV(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function PV(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var XR=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function UV(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 A=t[a];if(!A.settings)continue;let i;if(typeof A.scope=="string"){let l=A.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),i=l.split(",")}else Array.isArray(A.scope)?i=A.scope:i=[""];let s=-1;if(typeof A.settings.fontStyle=="string"){s=0;let l=A.settings.fontStyle.split(" ");for(let p=0,g=l.length;p<g;p++)switch(l[p]){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 A.settings.foreground=="string"&&GR(A.settings.foreground)&&(c=A.settings.foreground);let u=null;typeof A.settings.background=="string"&&GR(A.settings.background)&&(u=A.settings.background);for(let l=0,p=i.length;l<p;l++){let m=i[l].trim().split(" "),B=m[m.length-1],C=null;m.length>1&&(C=m.slice(0,m.length-1),C.reverse()),n[o++]=new TV(B,C,a,s,c,u)}}return n}var TV=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}},cn=(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))(cn||{});function qV(e,t){e.sort((s,c)=>{let u=JR(s.scope,c.scope);return u!==0||(u=WR(s.parentScopes,c.parentScopes),u!==0)?u: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 OV(t),A=new XR(n,r.getId(o),r.getId(a)),i=new YV(new hv(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let u=e[s];i.insert(0,u.scope,u.parentScopes,u.fontStyle,r.getId(u.foreground),r.getId(u.background))}return new dl(r,A,i)}var OV=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)}},zV=Object.freeze([]),hv=class eM{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||zV,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new eM(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)}},YV=class Bv{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(Bv._cmpBySpecificity),n}insert(t,n,o,a,r,A){if(n===""){this._doInsertHere(t,o,a,r,A);return}let i=n.indexOf("."),s,c;i===-1?(s=n,c=""):(s=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new Bv(this._mainRule.clone(),hv.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,c,o,a,r,A)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let A=0,i=this._rulesWithParentScopes.length;A<i;A++){let s=this._rulesWithParentScopes[A];if(WR(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 hv(t,n,o,a,r))}},fi=class va{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=va.getLanguageId(t),o=va.getTokenType(t),a=va.getFontStyle(t),r=va.getForeground(t),A=va.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:A})}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,A,i){let s=va.getLanguageId(t),c=va.getTokenType(t),u=va.containsBalancedBrackets(t)?1:0,l=va.getFontStyle(t),p=va.getForeground(t),g=va.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(u=a?1:0),r!==-1&&(l=r),A!==0&&(p=A),i!==0&&(g=i),(s<<0|c<<8|u<<10|l<<11|p<<15|g<<24)>>>0}};function nb(e,t){let n=[],o=KV(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=A();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=i();return a===")"&&(a=o.next()),s}if(HR(a)){let s=[];do s.push(a),a=o.next();while(HR(a));return c=>t(s,c)}return null}function A(){let s=[],c=r();for(;c;)s.push(c),c=r();return u=>s.every(l=>l(u))}function i(){let s=[],c=A();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=A()}return u=>s.some(l=>l(u))}}function HR(e){return!!e&&!!e.match(/[\w\.:]+/)}function KV(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 tM(e){typeof e.dispose=="function"&&e.dispose()}var ll=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},JV=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},WV=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))}},ZV=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ll(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new WV;for(let n of e)VV(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof ll){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 VV(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 ll?tb({baseGrammar:r,selfGrammar:a},o):Cv(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let A=n.injections(e.scopeName);if(A)for(let i of A)o.add(new ll(i))}function Cv(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];ab([o],t,n)}}function tb(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ab(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ab(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ab(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?YR({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&ab(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let A=nM(r);switch(A.kind){case 0:tb({...t,selfGrammar:t.baseGrammar},n);break;case 1:tb(t,n);break;case 2:Cv(A.ruleName,{...t,repository:a},n);break;case 3:case 4:let i=A.scopeName===t.selfGrammar.scopeName?t.selfGrammar:A.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){let s={baseGrammar:t.baseGrammar,selfGrammar:i,repository:a};A.kind===4?Cv(A.ruleName,s,n):tb(s,n)}else A.kind===4?n.add(new JV(A.scopeName,A.ruleName)):n.add(new ll(A.scopeName));break}}}var XV=class{kind=0},eX=class{kind=1},tX=class{constructor(e){this.ruleName=e}kind=2},nX=class{constructor(e){this.scopeName=e}kind=3},aX=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function nM(e){if(e==="$base")return new XV;if(e==="$self")return new eX;let t=e.indexOf("#");if(t===-1)return new nX(e);if(t===0)return new tX(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new aX(n,o)}}var oX=/\\(\d+)/,PR=/\\(\d+)/g;var rX=-1,aM=-2;var ml=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xf.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=Xf.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${KR(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:Xf.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xf.replaceCaptures(this._contentName,e,t)}},AX=class extends ml{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!")}},iX=class extends ml{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new pl(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 gl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},UR=class extends ml{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 gl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yv=class extends ml{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,A,i,s,c){super(e,t,n,o),this._begin=new pl(a,this.id),this.beginCaptures=r,this._end=new pl(A||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,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 gl;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}},ob=class extends ml{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,A,i,s){super(e,t,n,o),this._begin=new pl(a,this.id),this.beginCaptures=r,this.whileCaptures=i,this._while=new pl(A,aM),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 gl;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 gl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},oM=class mn{static createCaptureRule(t,n,o,a,r){return t.registerRule(A=>new AX(n,A,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new iX(t.$vscodeTextmateLocation,t.id,t.name,t.match,mn._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=YR({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new UR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,mn._compilePatterns(r,n,o))}return t.while?new ob(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,mn._compileCaptures(t.whileCaptures||t.captures,n,o),mn._compilePatterns(t.patterns,n,o)):new yv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,mn._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,mn._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10);i>r&&(r=i)}for(let A=0;A<=r;A++)a[A]=null;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10),s=0;t[A].patterns&&(s=mn.getCompiledRuleId(t[A],n,o)),a[i]=mn.createCaptureRule(n,t[A].$vscodeTextmateLocation,t[A].name,t[A].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,A=t.length;r<A;r++){let i=t[r],s=-1;if(i.include){let c=nM(i.include);switch(c.kind){case 0:case 1:s=mn.getCompiledRuleId(o[i.include],n,o);break;case 2:let u=o[c.ruleName];u&&(s=mn.getCompiledRuleId(u,n,o));break;case 3:case 4:let l=c.scopeName,p=c.kind===4?c.ruleName:null,g=n.getExternalGrammar(l,o);if(g)if(p){let m=g.repository[p];m&&(s=mn.getCompiledRuleId(m,n,g.repository))}else s=mn.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else s=mn.getCompiledRuleId(i,n,o);if(s!==-1){let c=n.getRule(s),u=!1;if((c instanceof UR||c instanceof yv||c instanceof ob)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},pl=class rM{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],A=!1;for(let i=0;i<o;i++)if(t.charAt(i)==="\\"&&i+1<o){let c=t.charAt(i+1);c==="z"?(r.push(t.substring(a,i)),r.push("$(?!\\n)(?<!\\n)"),a=i+2):(c==="A"||c==="G")&&(A=!0),i++}this.hasAnchor=A,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=oX.test(this.source):this.hasBackReferences=!1}clone(){return new rM(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 PR.lastIndex=0,this.source.replace(PR,(a,r)=>ZR(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,A,i,s;for(r=0,A=this.source.length;r<A;r++)i=this.source.charAt(r),t[r]=i,n[r]=i,o[r]=i,a[r]=i,i==="\\"&&r+1<A&&(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}},gl=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 TR(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 TR(e,o,this._items.map(a=>a.ruleId))}},TR=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
|
-
`)}findNextMatchSync(e,t,n){let o=this.scanner.findNextMatchSync(e,t,n);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},bv=class{constructor(e,t){this.languageId=e,this.tokenType=t}},sX=class wv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new bv(t,8),this._embeddedLanguagesMatcher=new cX(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?wv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new bv(0,0);_getBasicScopeAttributes=new VR(t=>{let n=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new bv(n,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(wv.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/},cX=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])=>ZR(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])}},
|
|
75
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let A of e.seen.entries()){let i=A[1];if(t===A[0]){r(A);continue}if(e.external){let c=e.external.registry.get(A[0])?.id;if(t!==A[0]&&c){r(A);continue}}if(e.metadataRegistry.get(A[0])?.id){r(A);continue}if(i.cycle){r(A);continue}if(i.count>1&&e.reused==="ref"){r(A);continue}}}function sA(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=i=>{let s=e.seen.get(i);if(s.ref===null)return;let c=s.def??s.schema,u={...c},l=s.ref;if(s.ref=null,l){o(l);let g=e.seen.get(l),m=g.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,u),i._zod.parent===l)for(let C in c)C==="$ref"||C==="allOf"||C in u||delete c[C];if(m.$ref&&g.def)for(let C in c)C==="$ref"||C==="allOf"||C in g.def&&JSON.stringify(c[C])===JSON.stringify(g.def[C])&&delete c[C]}let p=i._zod.parent;if(p&&p!==l){o(p);let g=e.seen.get(p);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let m in c)m==="$ref"||m==="allOf"||m in g.def&&JSON.stringify(c[m])===JSON.stringify(g.def[m])&&delete c[m]}e.override({zodSchema:i,jsonSchema:c,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())o(i[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 i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,n.def??n.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&a.id===r&&delete a.id;let A=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,A[s.defId]=s.def)}e.external||Object.keys(A).length>0&&(e.target==="draft-2020-12"?a.$defs=A:a.definitions=A);try{let i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:dc(t,"input",e.processors),output:dc(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function In(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 In(o.element,n);if(o.type==="set")return In(o.valueType,n);if(o.type==="lazy")return In(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 In(o.innerType,n);if(o.type==="intersection")return In(o.left,n)||In(o.right,n);if(o.type==="record"||o.type==="map")return In(o.keyType,n)||In(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:In(o.in,n)||In(o.out,n);if(o.type==="object"){for(let a in o.shape)if(In(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(let a of o.options)if(In(a,n))return!0;return!1}if(o.type==="tuple"){for(let a of o.items)if(In(a,n))return!0;return!!(o.rest&&In(o.rest,n))}return!1}var Zk=(e,t={})=>n=>{let o=AA({...n,processors:t});return ve(e,o),iA(o,e),sA(o,e)},dc=(e,t,n={})=>o=>{let{libraryOptions:a,target:r}=o??{},A=AA({...a??{},target:r,io:t,processors:n});return ve(e,A),iA(A,e),sA(A,e)};var VY={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Vk=(e,t,n,o)=>{let a=n;a.type="string";let{minimum:r,maximum:A,format:i,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof A=="number"&&(a.maxLength=A),i&&(a.format=VY[i]??i,a.format===""&&delete a.format,i==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},Xk=(e,t,n,o)=>{let a=n,{minimum:r,maximum:A,format:i,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof i=="string"&&i.includes("int")?a.type="integer":a.type="number";let l=typeof u=="number"&&u>=(r??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(A??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";l?g?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof r=="number"&&(a.minimum=r),p?g?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof A=="number"&&(a.maximum=A),typeof s=="number"&&(a.multipleOf=s)},eQ=(e,t,n,o)=>{n.type="boolean"},tQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},nQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},aQ=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},oQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},rQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},AQ=(e,t,n,o)=>{n.not={}},iQ=(e,t,n,o)=>{},sQ=(e,t,n,o)=>{},cQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},uQ=(e,t,n,o)=>{let a=e._zod.def,r=nd(a.entries);r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),n.enum=r},dQ=(e,t,n,o)=>{let a=e._zod.def,r=[];for(let A of a.values)if(A===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof A=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(A))}else r.push(A);if(r.length!==0)if(r.length===1){let A=r[0];n.type=A===null?"null":typeof A,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[A]:n.const=A}else r.every(A=>typeof A=="number")&&(n.type="number"),r.every(A=>typeof A=="string")&&(n.type="string"),r.every(A=>typeof A=="boolean")&&(n.type="boolean"),r.every(A=>A===null)&&(n.type="null"),n.enum=r},lQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},pQ=(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},gQ=(e,t,n,o)=>{let a=n,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:A,maximum:i,mime:s}=e._zod.bag;A!==void 0&&(r.minLength=A),i!==void 0&&(r.maxLength=i),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)},mQ=(e,t,n,o)=>{n.type="boolean"},fQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},bQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},hQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},BQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},CQ=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},yQ=(e,t,n,o)=>{let a=n,r=e._zod.def,{minimum:A,maximum:i}=e._zod.bag;typeof A=="number"&&(a.minItems=A),typeof i=="number"&&(a.maxItems=i),a.type="array",a.items=ve(r.element,t,{...o,path:[...o.path,"items"]})},wQ=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object",a.properties={};let A=r.shape;for(let c in A)a.properties[c]=ve(A[c],t,{...o,path:[...o.path,"properties",c]});let i=new Set(Object.keys(A)),s=new Set([...i].filter(c=>{let u=r.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.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=ve(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},Xm=(e,t,n,o)=>{let a=e._zod.def,r=a.inclusive===!1,A=a.options.map((i,s)=>ve(i,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=A:n.anyOf=A},EQ=(e,t,n,o)=>{let a=e._zod.def,r=ve(a.left,t,{...o,path:[...o.path,"allOf",0]}),A=ve(a.right,t,{...o,path:[...o.path,"allOf",1]}),i=c=>"allOf"in c&&Object.keys(c).length===1,s=[...i(r)?r.allOf:[r],...i(A)?A.allOf:[A]];n.allOf=s},kQ=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="array";let A=t.target==="draft-2020-12"?"prefixItems":"items",i=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((p,g)=>ve(p,t,{...o,path:[...o.path,A,g]})),c=r.rest?ve(r.rest,t,{...o,path:[...o.path,i,...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:u,maximum:l}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof l=="number"&&(a.maxItems=l)},QQ=(e,t,n,o)=>{let a=n,r=e._zod.def;a.type="object";let A=r.keyType,s=A._zod.bag?.patterns;if(r.mode==="loose"&&s&&s.size>0){let u=ve(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(let l of s)a.patternProperties[l.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=ve(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=ve(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=A._zod.values;if(c){let u=[...c].filter(l=>typeof l=="string"||typeof l=="number");u.length>0&&(a.required=u)}},IQ=(e,t,n,o)=>{let a=e._zod.def,r=ve(a.innerType,t,o),A=t.seen.get(e);t.target==="openapi-3.0"?(A.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},_Q=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},vQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},xQ=(e,t,n,o)=>{let a=e._zod.def;ve(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)))},DQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType;let A;try{A=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=A},FQ=(e,t,n,o)=>{let a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),A=t.io==="input"?r?a.out:a.in:a.out;ve(A,t,o);let i=t.seen.get(e);i.ref=A},SQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},LQ=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},ef=(e,t,n,o)=>{let a=e._zod.def;ve(a.innerType,t,o);let r=t.seen.get(e);r.ref=a.innerType},$Q=(e,t,n,o)=>{let a=e._zod.innerType;ve(a,t,o);let r=t.seen.get(e);r.ref=a},Vm={string:Vk,number:Xk,boolean:eQ,bigint:tQ,symbol:nQ,null:aQ,undefined:oQ,void:rQ,never:AQ,any:iQ,unknown:sQ,date:cQ,enum:uQ,literal:dQ,nan:lQ,template_literal:pQ,file:gQ,success:mQ,custom:fQ,function:bQ,transform:hQ,map:BQ,set:CQ,array:yQ,object:wQ,union:Xm,intersection:EQ,tuple:kQ,record:QQ,nullable:IQ,nonoptional:_Q,default:vQ,prefault:xQ,catch:DQ,pipe:FQ,readonly:SQ,promise:LQ,optional:ef,lazy:$Q};function tf(e,t){if("_idmap"in e){let o=e,a=AA({...t,processors:Vm}),r={};for(let s of o._idmap.entries()){let[c,u]=s;ve(u,a)}let A={},i={registry:o,uri:t?.uri,defs:r};a.external=i;for(let s of o._idmap.entries()){let[c,u]=s;iA(a,u),A[c]=sA(a,u)}if(Object.keys(r).length>0){let s=a.target==="draft-2020-12"?"$defs":"definitions";A.__shared={[s]:r}}return{schemas:A}}let n=AA({...t,processors:Vm});return ve(e,n),iA(n,e),sA(n,e)}var nf=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=AA({processors:Vm,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 ve(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)),iA(this.ctx,t);let o=sA(this.ctx,t),{"~standard":a,...r}=o;return r}};var q9={};var Cd={};x(Cd,{ZodAny:()=>o0,ZodArray:()=>s0,ZodBase64:()=>kf,ZodBase64URL:()=>Qf,ZodBigInt:()=>Bc,ZodBigIntFormat:()=>vf,ZodBoolean:()=>hc,ZodCIDRv4:()=>wf,ZodCIDRv6:()=>Ef,ZodCUID:()=>mf,ZodCUID2:()=>ff,ZodCatch:()=>D0,ZodCodec:()=>Sd,ZodCustom:()=>Ld,ZodCustomStringFormat:()=>fc,ZodDate:()=>_d,ZodDefault:()=>k0,ZodDiscriminatedUnion:()=>u0,ZodE164:()=>If,ZodEmail:()=>lf,ZodEmoji:()=>pf,ZodEnum:()=>gc,ZodExactOptional:()=>y0,ZodFile:()=>B0,ZodFunction:()=>H0,ZodGUID:()=>wd,ZodIPv4:()=>Cf,ZodIPv6:()=>yf,ZodIntersection:()=>d0,ZodJWT:()=>_f,ZodKSUID:()=>Bf,ZodLazy:()=>M0,ZodLiteral:()=>h0,ZodMAC:()=>ZQ,ZodMap:()=>f0,ZodNaN:()=>S0,ZodNanoID:()=>gf,ZodNever:()=>A0,ZodNonOptional:()=>$f,ZodNull:()=>n0,ZodNullable:()=>E0,ZodNumber:()=>bc,ZodNumberFormat:()=>ai,ZodObject:()=>xd,ZodOptional:()=>Lf,ZodPipe:()=>Fd,ZodPrefault:()=>I0,ZodPreprocess:()=>L0,ZodPromise:()=>G0,ZodReadonly:()=>$0,ZodRecord:()=>pc,ZodSet:()=>b0,ZodString:()=>mc,ZodStringFormat:()=>qe,ZodSuccess:()=>x0,ZodSymbol:()=>e0,ZodTemplateLiteral:()=>R0,ZodTransform:()=>C0,ZodTuple:()=>p0,ZodType:()=>ue,ZodULID:()=>bf,ZodURL:()=>Id,ZodUUID:()=>Eo,ZodUndefined:()=>t0,ZodUnion:()=>Dd,ZodUnknown:()=>r0,ZodVoid:()=>i0,ZodXID:()=>hf,ZodXor:()=>c0,_ZodString:()=>df,_default:()=>Q0,_function:()=>X6,any:()=>D6,array:()=>vd,base64:()=>p6,base64url:()=>g6,bigint:()=>Q6,boolean:()=>XQ,catch:()=>F0,check:()=>e3,cidrv4:()=>d6,cidrv6:()=>l6,codec:()=>J6,cuid:()=>a6,cuid2:()=>o6,custom:()=>t3,date:()=>S6,describe:()=>n3,discriminatedUnion:()=>j6,e164:()=>m6,email:()=>Y9,emoji:()=>t6,enum:()=>Ff,exactOptional:()=>w0,file:()=>O6,float32:()=>y6,float64:()=>w6,function:()=>X6,guid:()=>K9,hash:()=>C6,hex:()=>B6,hostname:()=>h6,httpUrl:()=>e6,instanceof:()=>o3,int:()=>cf,int32:()=>E6,int64:()=>I6,intersection:()=>l0,invertCodec:()=>W6,ipv4:()=>s6,ipv6:()=>u6,json:()=>A3,jwt:()=>f6,keyof:()=>L6,ksuid:()=>i6,lazy:()=>j0,literal:()=>q6,looseObject:()=>R6,looseRecord:()=>H6,mac:()=>c6,map:()=>P6,meta:()=>a3,nan:()=>K6,nanoid:()=>n6,nativeEnum:()=>T6,never:()=>xf,nonoptional:()=>v0,null:()=>a0,nullable:()=>kd,nullish:()=>z6,number:()=>VQ,object:()=>$6,optional:()=>Ed,partialRecord:()=>G6,pipe:()=>uf,prefault:()=>_0,preprocess:()=>i3,promise:()=>V6,readonly:()=>N0,record:()=>m0,refine:()=>P0,set:()=>U6,strictObject:()=>N6,string:()=>yd,stringFormat:()=>b6,stringbool:()=>r3,success:()=>Y6,superRefine:()=>U0,symbol:()=>v6,templateLiteral:()=>Z6,transform:()=>Sf,tuple:()=>g0,uint32:()=>k6,uint64:()=>_6,ulid:()=>r6,undefined:()=>x6,union:()=>Df,unknown:()=>ni,url:()=>X9,uuid:()=>J9,uuidv4:()=>W9,uuidv6:()=>Z9,uuidv7:()=>V9,void:()=>F6,xid:()=>A6,xor:()=>M6});var af={};x(af,{endsWith:()=>ac,gt:()=>yo,gte:()=>Qn,includes:()=>tc,length:()=>ti,lowercase:()=>Xs,lt:()=>Co,lte:()=>oa,maxLength:()=>ei,maxSize:()=>rA,mime:()=>oc,minLength:()=>cr,minSize:()=>wo,multipleOf:()=>oA,negative:()=>Km,nonnegative:()=>Wm,nonpositive:()=>Jm,normalize:()=>rc,overwrite:()=>za,positive:()=>Ym,property:()=>Zm,regex:()=>Vs,size:()=>XA,slugify:()=>cc,startsWith:()=>nc,toLowerCase:()=>ic,toUpperCase:()=>sc,trim:()=>Ac,uppercase:()=>ec});var lc={};x(lc,{ZodISODate:()=>rf,ZodISODateTime:()=>of,ZodISODuration:()=>sf,ZodISOTime:()=>Af,date:()=>RQ,datetime:()=>NQ,duration:()=>jQ,time:()=>MQ});var of=E("ZodISODateTime",(e,t)=>{lE.init(e,t),qe.init(e,t)});function NQ(e){return fk(of,e)}var rf=E("ZodISODate",(e,t)=>{pE.init(e,t),qe.init(e,t)});function RQ(e){return bk(rf,e)}var Af=E("ZodISOTime",(e,t)=>{gE.init(e,t),qe.init(e,t)});function MQ(e){return hk(Af,e)}var sf=E("ZodISODuration",(e,t)=>{mE.init(e,t),qe.init(e,t)});function jQ(e){return Bk(sf,e)}var O9=(e,t)=>{id.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cd(e,n)},flatten:{value:n=>sd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ts,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ts,2)}},isEmpty:{get(){return e.issues.length===0}}})},eK=E("ZodError",O9),Un=E("ZodError",O9,{Parent:Error});var GQ=zs(Un),HQ=Ys(Un),PQ=Ks(Un),UQ=Js(Un),TQ=tm(Un),qQ=nm(Un),OQ=am(Un),zQ=om(Un),YQ=rm(Un),KQ=Am(Un),JQ=im(Un),WQ=sm(Un);var z9=new WeakMap;function Qd(e,t,n){let o=Object.getPrototypeOf(e),a=z9.get(o);if(a||(a=new Set,z9.set(o,a)),!a.has(t)){a.add(t);for(let r in n){let A=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){let i=A.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i}),i},set(i){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:i})}})}}}var ue=E("ZodType",(e,t)=>(ne.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:dc(e,"input"),output:dc(e,"output")}}),e.toJSONSchema=Zk(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>GQ(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>PQ(e,n,o),e.parseAsync=async(n,o)=>HQ(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>UQ(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>TQ(e,n,o),e.decode=(n,o)=>qQ(e,n,o),e.encodeAsync=async(n,o)=>OQ(e,n,o),e.decodeAsync=async(n,o)=>zQ(e,n,o),e.safeEncode=(n,o)=>YQ(e,n,o),e.safeDecode=(n,o)=>KQ(e,n,o),e.safeEncodeAsync=async(n,o)=>JQ(e,n,o),e.safeDecodeAsync=async(n,o)=>WQ(e,n,o),Qd(e,"ZodType",{check(...n){let o=this.def;return this.clone($.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 En(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(P0(n,o))},superRefine(n,o){return this.check(U0(n,o))},overwrite(n){return this.check(za(n))},optional(){return Ed(this)},exactOptional(){return w0(this)},nullable(){return kd(this)},nullish(){return Ed(kd(this))},nonoptional(n){return v0(this,n)},array(){return vd(this)},or(n){return Df([this,n])},and(n){return l0(this,n)},transform(n){return uf(this,Sf(n))},default(n){return Q0(this,n)},prefault(n){return _0(this,n)},catch(n){return F0(this,n)},pipe(n){return uf(this,n)},readonly(){return N0(this)},describe(n){let o=this.clone();return sn.add(o,{description:n}),o},meta(...n){if(n.length===0)return sn.get(this);let o=this.clone();return sn.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 sn.get(e)?.description},configurable:!0}),e)),df=E("_ZodString",(e,t)=>{VA.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>Vk(e,o,a,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Qd(e,"_ZodString",{regex(...o){return this.check(Vs(...o))},includes(...o){return this.check(tc(...o))},startsWith(...o){return this.check(nc(...o))},endsWith(...o){return this.check(ac(...o))},min(...o){return this.check(cr(...o))},max(...o){return this.check(ei(...o))},length(...o){return this.check(ti(...o))},nonempty(...o){return this.check(cr(1,...o))},lowercase(o){return this.check(Xs(o))},uppercase(o){return this.check(ec(o))},trim(){return this.check(Ac())},normalize(...o){return this.check(rc(...o))},toLowerCase(){return this.check(ic())},toUpperCase(){return this.check(sc())},slugify(){return this.check(cc())}})}),mc=E("ZodString",(e,t)=>{VA.init(e,t),df.init(e,t),e.email=n=>e.check(_m(lf,n)),e.url=n=>e.check(Bd(Id,n)),e.jwt=n=>e.check(zm(_f,n)),e.emoji=n=>e.check(Sm(pf,n)),e.guid=n=>e.check(hd(wd,n)),e.uuid=n=>e.check(vm(Eo,n)),e.uuidv4=n=>e.check(xm(Eo,n)),e.uuidv6=n=>e.check(Dm(Eo,n)),e.uuidv7=n=>e.check(Fm(Eo,n)),e.nanoid=n=>e.check(Lm(gf,n)),e.guid=n=>e.check(hd(wd,n)),e.cuid=n=>e.check($m(mf,n)),e.cuid2=n=>e.check(Nm(ff,n)),e.ulid=n=>e.check(Rm(bf,n)),e.base64=n=>e.check(Tm(kf,n)),e.base64url=n=>e.check(qm(Qf,n)),e.xid=n=>e.check(Mm(hf,n)),e.ksuid=n=>e.check(jm(Bf,n)),e.ipv4=n=>e.check(Gm(Cf,n)),e.ipv6=n=>e.check(Hm(yf,n)),e.cidrv4=n=>e.check(Pm(wf,n)),e.cidrv6=n=>e.check(Um(Ef,n)),e.e164=n=>e.check(Om(If,n)),e.datetime=n=>e.check(NQ(n)),e.date=n=>e.check(RQ(n)),e.time=n=>e.check(MQ(n)),e.duration=n=>e.check(jQ(n))});function yd(e){return lk(mc,e)}var qe=E("ZodStringFormat",(e,t)=>{Te.init(e,t),df.init(e,t)}),lf=E("ZodEmail",(e,t)=>{aE.init(e,t),qe.init(e,t)});function Y9(e){return _m(lf,e)}var wd=E("ZodGUID",(e,t)=>{tE.init(e,t),qe.init(e,t)});function K9(e){return hd(wd,e)}var Eo=E("ZodUUID",(e,t)=>{nE.init(e,t),qe.init(e,t)});function J9(e){return vm(Eo,e)}function W9(e){return xm(Eo,e)}function Z9(e){return Dm(Eo,e)}function V9(e){return Fm(Eo,e)}var Id=E("ZodURL",(e,t)=>{oE.init(e,t),qe.init(e,t)});function X9(e){return Bd(Id,e)}function e6(e){return Bd(Id,{protocol:aa.httpProtocol,hostname:aa.domain,...$.normalizeParams(e)})}var pf=E("ZodEmoji",(e,t)=>{rE.init(e,t),qe.init(e,t)});function t6(e){return Sm(pf,e)}var gf=E("ZodNanoID",(e,t)=>{AE.init(e,t),qe.init(e,t)});function n6(e){return Lm(gf,e)}var mf=E("ZodCUID",(e,t)=>{iE.init(e,t),qe.init(e,t)});function a6(e){return $m(mf,e)}var ff=E("ZodCUID2",(e,t)=>{sE.init(e,t),qe.init(e,t)});function o6(e){return Nm(ff,e)}var bf=E("ZodULID",(e,t)=>{cE.init(e,t),qe.init(e,t)});function r6(e){return Rm(bf,e)}var hf=E("ZodXID",(e,t)=>{uE.init(e,t),qe.init(e,t)});function A6(e){return Mm(hf,e)}var Bf=E("ZodKSUID",(e,t)=>{dE.init(e,t),qe.init(e,t)});function i6(e){return jm(Bf,e)}var Cf=E("ZodIPv4",(e,t)=>{fE.init(e,t),qe.init(e,t)});function s6(e){return Gm(Cf,e)}var ZQ=E("ZodMAC",(e,t)=>{hE.init(e,t),qe.init(e,t)});function c6(e){return gk(ZQ,e)}var yf=E("ZodIPv6",(e,t)=>{bE.init(e,t),qe.init(e,t)});function u6(e){return Hm(yf,e)}var wf=E("ZodCIDRv4",(e,t)=>{BE.init(e,t),qe.init(e,t)});function d6(e){return Pm(wf,e)}var Ef=E("ZodCIDRv6",(e,t)=>{CE.init(e,t),qe.init(e,t)});function l6(e){return Um(Ef,e)}var kf=E("ZodBase64",(e,t)=>{wE.init(e,t),qe.init(e,t)});function p6(e){return Tm(kf,e)}var Qf=E("ZodBase64URL",(e,t)=>{EE.init(e,t),qe.init(e,t)});function g6(e){return qm(Qf,e)}var If=E("ZodE164",(e,t)=>{kE.init(e,t),qe.init(e,t)});function m6(e){return Om(If,e)}var _f=E("ZodJWT",(e,t)=>{QE.init(e,t),qe.init(e,t)});function f6(e){return zm(_f,e)}var fc=E("ZodCustomStringFormat",(e,t)=>{IE.init(e,t),qe.init(e,t)});function b6(e,t,n={}){return uc(fc,e,t,n)}function h6(e){return uc(fc,"hostname",aa.hostname,e)}function B6(e){return uc(fc,"hex",aa.hex,e)}function C6(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,a=aa[o];if(!a)throw new Error(`Unrecognized hash format: ${o}`);return uc(fc,o,a,t)}var bc=E("ZodNumber",(e,t)=>{bm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>Xk(e,o,a,r),Qd(e,"ZodNumber",{gt(o,a){return this.check(yo(o,a))},gte(o,a){return this.check(Qn(o,a))},min(o,a){return this.check(Qn(o,a))},lt(o,a){return this.check(Co(o,a))},lte(o,a){return this.check(oa(o,a))},max(o,a){return this.check(oa(o,a))},int(o){return this.check(cf(o))},safe(o){return this.check(cf(o))},positive(o){return this.check(yo(0,o))},nonnegative(o){return this.check(Qn(0,o))},negative(o){return this.check(Co(0,o))},nonpositive(o){return this.check(oa(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 VQ(e){return Ck(bc,e)}var ai=E("ZodNumberFormat",(e,t)=>{_E.init(e,t),bc.init(e,t)});function cf(e){return wk(ai,e)}function y6(e){return Ek(ai,e)}function w6(e){return kk(ai,e)}function E6(e){return Qk(ai,e)}function k6(e){return Ik(ai,e)}var hc=E("ZodBoolean",(e,t)=>{pd.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>eQ(e,n,o,a)});function XQ(e){return _k(hc,e)}var Bc=E("ZodBigInt",(e,t)=>{hm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>tQ(e,o,a,r),e.gte=(o,a)=>e.check(Qn(o,a)),e.min=(o,a)=>e.check(Qn(o,a)),e.gt=(o,a)=>e.check(yo(o,a)),e.gte=(o,a)=>e.check(Qn(o,a)),e.min=(o,a)=>e.check(Qn(o,a)),e.lt=(o,a)=>e.check(Co(o,a)),e.lte=(o,a)=>e.check(oa(o,a)),e.max=(o,a)=>e.check(oa(o,a)),e.positive=o=>e.check(yo(BigInt(0),o)),e.negative=o=>e.check(Co(BigInt(0),o)),e.nonpositive=o=>e.check(oa(BigInt(0),o)),e.nonnegative=o=>e.check(Qn(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 Q6(e){return xk(Bc,e)}var vf=E("ZodBigIntFormat",(e,t)=>{vE.init(e,t),Bc.init(e,t)});function I6(e){return Fk(vf,e)}function _6(e){return Sk(vf,e)}var e0=E("ZodSymbol",(e,t)=>{xE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>nQ(e,n,o,a)});function v6(e){return Lk(e0,e)}var t0=E("ZodUndefined",(e,t)=>{DE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>oQ(e,n,o,a)});function x6(e){return $k(t0,e)}var n0=E("ZodNull",(e,t)=>{FE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>aQ(e,n,o,a)});function a0(e){return Nk(n0,e)}var o0=E("ZodAny",(e,t)=>{SE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>iQ(e,n,o,a)});function D6(){return Rk(o0)}var r0=E("ZodUnknown",(e,t)=>{LE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>sQ(e,n,o,a)});function ni(){return Mk(r0)}var A0=E("ZodNever",(e,t)=>{$E.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>AQ(e,n,o,a)});function xf(e){return jk(A0,e)}var i0=E("ZodVoid",(e,t)=>{NE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>rQ(e,n,o,a)});function F6(e){return Gk(i0,e)}var _d=E("ZodDate",(e,t)=>{RE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>cQ(e,o,a,r),e.min=(o,a)=>e.check(Qn(o,a)),e.max=(o,a)=>e.check(oa(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 S6(e){return Hk(_d,e)}var s0=E("ZodArray",(e,t)=>{ME.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yQ(e,n,o,a),e.element=t.element,Qd(e,"ZodArray",{min(n,o){return this.check(cr(n,o))},nonempty(n){return this.check(cr(1,n))},max(n,o){return this.check(ei(n,o))},length(n,o){return this.check(ti(n,o))},unwrap(){return this.element}})});function vd(e,t){return Tk(s0,e,t)}function L6(e){let t=e._zod.def.shape;return Ff(Object.keys(t))}var xd=E("ZodObject",(e,t)=>{jE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wQ(e,n,o,a),$.defineLazy(e,"shape",()=>t.shape),Qd(e,"ZodObject",{keyof(){return Ff(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ni()})},loose(){return this.clone({...this._zod.def,catchall:ni()})},strict(){return this.clone({...this._zod.def,catchall:xf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return $.extend(this,n)},safeExtend(n){return $.safeExtend(this,n)},merge(n){return $.merge(this,n)},pick(n){return $.pick(this,n)},omit(n){return $.omit(this,n)},partial(...n){return $.partial(Lf,this,n[0])},required(...n){return $.required($f,this,n[0])}})});function $6(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new xd(n)}function N6(e,t){return new xd({type:"object",shape:e,catchall:xf(),...$.normalizeParams(t)})}function R6(e,t){return new xd({type:"object",shape:e,catchall:ni(),...$.normalizeParams(t)})}var Dd=E("ZodUnion",(e,t)=>{gd.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Xm(e,n,o,a),e.options=t.options});function Df(e,t){return new Dd({type:"union",options:e,...$.normalizeParams(t)})}var c0=E("ZodXor",(e,t)=>{Dd.init(e,t),GE.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Xm(e,n,o,a),e.options=t.options});function M6(e,t){return new c0({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var u0=E("ZodDiscriminatedUnion",(e,t)=>{Dd.init(e,t),HE.init(e,t)});function j6(e,t,n){return new u0({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}var d0=E("ZodIntersection",(e,t)=>{PE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>EQ(e,n,o,a)});function l0(e,t){return new d0({type:"intersection",left:e,right:t})}var p0=E("ZodTuple",(e,t)=>{Bm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kQ(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function g0(e,t,n){let o=t instanceof ne,a=o?n:t,r=o?t:null;return new p0({type:"tuple",items:e,rest:r,...$.normalizeParams(a)})}var pc=E("ZodRecord",(e,t)=>{UE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>QQ(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function m0(e,t,n){return!t||!t._zod?new pc({type:"record",keyType:yd(),valueType:e,...$.normalizeParams(t)}):new pc({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}function G6(e,t,n){let o=En(e);return o._zod.values=void 0,new pc({type:"record",keyType:o,valueType:t,...$.normalizeParams(n)})}function H6(e,t,n){return new pc({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}var f0=E("ZodMap",(e,t)=>{TE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>BQ(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(wo(...n)),e.nonempty=n=>e.check(wo(1,n)),e.max=(...n)=>e.check(rA(...n)),e.size=(...n)=>e.check(XA(...n))});function P6(e,t,n){return new f0({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}var b0=E("ZodSet",(e,t)=>{qE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>CQ(e,n,o,a),e.min=(...n)=>e.check(wo(...n)),e.nonempty=n=>e.check(wo(1,n)),e.max=(...n)=>e.check(rA(...n)),e.size=(...n)=>e.check(XA(...n))});function U6(e,t){return new b0({type:"set",valueType:e,...$.normalizeParams(t)})}var gc=E("ZodEnum",(e,t)=>{OE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(o,a,r)=>uQ(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 A of o)if(n.has(A))r[A]=t.entries[A];else throw new Error(`Key ${A} not found in enum`);return new gc({...t,checks:[],...$.normalizeParams(a),entries:r})},e.exclude=(o,a)=>{let r={...t.entries};for(let A of o)if(n.has(A))delete r[A];else throw new Error(`Key ${A} not found in enum`);return new gc({...t,checks:[],...$.normalizeParams(a),entries:r})}});function Ff(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new gc({type:"enum",entries:n,...$.normalizeParams(t)})}function T6(e,t){return new gc({type:"enum",entries:e,...$.normalizeParams(t)})}var h0=E("ZodLiteral",(e,t)=>{zE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>dQ(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 q6(e,t){return new h0({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var B0=E("ZodFile",(e,t)=>{YE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gQ(e,n,o,a),e.min=(n,o)=>e.check(wo(n,o)),e.max=(n,o)=>e.check(rA(n,o)),e.mime=(n,o)=>e.check(oc(Array.isArray(n)?n:[n],o))});function O6(e){return qk(B0,e)}var C0=E("ZodTransform",(e,t)=>{KE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hQ(e,n,o,a),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Xr(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push($.issue(r,n.value,t));else{let A=r;A.fatal&&(A.continue=!1),A.code??(A.code="custom"),A.input??(A.input=n.value),A.inst??(A.inst=e),n.issues.push($.issue(A))}};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 Sf(e){return new C0({type:"transform",transform:e})}var Lf=E("ZodOptional",(e,t)=>{Cm.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ef(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Ed(e){return new Lf({type:"optional",innerType:e})}var y0=E("ZodExactOptional",(e,t)=>{JE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ef(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function w0(e){return new y0({type:"optional",innerType:e})}var E0=E("ZodNullable",(e,t)=>{WE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>IQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function kd(e){return new E0({type:"nullable",innerType:e})}function z6(e){return Ed(kd(e))}var k0=E("ZodDefault",(e,t)=>{ZE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Q0(e,t){return new k0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var I0=E("ZodPrefault",(e,t)=>{VE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function _0(e,t){return new I0({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var $f=E("ZodNonOptional",(e,t)=>{XE.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_Q(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function v0(e,t){return new $f({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var x0=E("ZodSuccess",(e,t)=>{ek.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Y6(e){return new x0({type:"success",innerType:e})}var D0=E("ZodCatch",(e,t)=>{tk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>DQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function F0(e,t){return new D0({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var S0=E("ZodNaN",(e,t)=>{nk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lQ(e,n,o,a)});function K6(e){return Uk(S0,e)}var Fd=E("ZodPipe",(e,t)=>{ym.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>FQ(e,n,o,a),e.in=t.in,e.out=t.out});function uf(e,t){return new Fd({type:"pipe",in:e,out:t})}var Sd=E("ZodCodec",(e,t)=>{Fd.init(e,t),md.init(e,t)});function J6(e,t,n){return new Sd({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function W6(e){let t=e._zod.def;return new Sd({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var L0=E("ZodPreprocess",(e,t)=>{Fd.init(e,t),ak.init(e,t)}),$0=E("ZodReadonly",(e,t)=>{ok.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>SQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function N0(e){return new $0({type:"readonly",innerType:e})}var R0=E("ZodTemplateLiteral",(e,t)=>{rk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pQ(e,n,o,a)});function Z6(e,t){return new R0({type:"template_literal",parts:e,...$.normalizeParams(t)})}var M0=E("ZodLazy",(e,t)=>{sk.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$Q(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function j0(e){return new M0({type:"lazy",getter:e})}var G0=E("ZodPromise",(e,t)=>{ik.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>LQ(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function V6(e){return new G0({type:"promise",innerType:e})}var H0=E("ZodFunction",(e,t)=>{Ak.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bQ(e,n,o,a)});function X6(e){return new H0({type:"function",input:Array.isArray(e?.input)?g0(e?.input):e?.input??vd(ni()),output:e?.output??ni()})}var Ld=E("ZodCustom",(e,t)=>{ck.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fQ(e,n,o,a)});function e3(e){let t=new Ke({check:"custom"});return t._zod.check=e,t}function t3(e,t){return Ok(Ld,e??(()=>!0),t)}function P0(e,t={}){return zk(Ld,e,t)}function U0(e,t){return Yk(e,t)}var n3=Kk,a3=Jk;function o3(e,t={}){let n=new Ld({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...$.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 r3=(...e)=>Wk({Codec:Sd,Boolean:hc,String:mc},...e);function A3(e){let t=j0(()=>Df([yd(e),VQ(),XQ(),a0(),vd(t),m0(yd(),t)]));return t}function i3(e,t){return new L0({type:"pipe",in:Sf(e),out:t})}var nK={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 aK(e){ht({customError:e})}function oK(){return ht().customError}var T0;T0||(T0={});var U={...Cd,...af,iso:lc},rK=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 AK(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 iK(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 s3(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return U.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 U.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=iK(a,t),A=gn(r,t);return t.refs.set(a,A),t.processing.delete(a),A}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 U.null();if(a.length===0)return U.never();if(a.length===1)return U.literal(a[0]);if(a.every(A=>typeof A=="string"))return U.enum(a);let r=a.map(A=>U.literal(A));return r.length<2?r[0]:U.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return U.literal(e.const);let n=e.type;if(Array.isArray(n)){let a=n.map(r=>{let A={...e,type:r};return s3(A,t)});return a.length===0?U.never():a.length===1?a[0]:U.union(a)}if(!n)return U.any();let o;switch(n){case"string":{let a=U.string();if(e.format){let r=e.format;r==="email"?a=a.check(U.email()):r==="uri"||r==="uri-reference"?a=a.check(U.url()):r==="uuid"||r==="guid"?a=a.check(U.uuid()):r==="date-time"?a=a.check(U.iso.datetime()):r==="date"?a=a.check(U.iso.date()):r==="time"?a=a.check(U.iso.time()):r==="duration"?a=a.check(U.iso.duration()):r==="ipv4"?a=a.check(U.ipv4()):r==="ipv6"?a=a.check(U.ipv6()):r==="mac"?a=a.check(U.mac()):r==="cidr"?a=a.check(U.cidrv4()):r==="cidr-v6"?a=a.check(U.cidrv6()):r==="base64"?a=a.check(U.base64()):r==="base64url"?a=a.check(U.base64url()):r==="e164"?a=a.check(U.e164()):r==="jwt"?a=a.check(U.jwt()):r==="emoji"?a=a.check(U.emoji()):r==="nanoid"?a=a.check(U.nanoid()):r==="cuid"?a=a.check(U.cuid()):r==="cuid2"?a=a.check(U.cuid2()):r==="ulid"?a=a.check(U.ulid()):r==="xid"?a=a.check(U.xid()):r==="ksuid"&&(a=a.check(U.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"?U.number().int():U.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=U.boolean();break}case"null":{o=U.null();break}case"object":{let a={},r=e.properties||{},A=new Set(e.required||[]);for(let[s,c]of Object.entries(r)){let u=gn(c,t);a[s]=A.has(s)?u:u.optional()}if(e.propertyNames){let s=gn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?gn(e.additionalProperties,t):U.any();if(Object.keys(a).length===0){o=U.record(s,c);break}let u=U.object(a).passthrough(),l=U.looseRecord(s,c);o=U.intersection(u,l);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let p of c){let g=gn(s[p],t),m=U.string().regex(new RegExp(p));u.push(U.looseRecord(m,g))}let l=[];if(Object.keys(a).length>0&&l.push(U.object(a).passthrough()),l.push(...u),l.length===0)o=U.object({}).passthrough();else if(l.length===1)o=l[0];else{let p=U.intersection(l[0],l[1]);for(let g=2;g<l.length;g++)p=U.intersection(p,l[g]);o=p}break}let i=U.object(a);e.additionalProperties===!1?o=i.strict():typeof e.additionalProperties=="object"?o=i.catchall(gn(e.additionalProperties,t)):o=i.passthrough();break}case"array":{let a=e.prefixItems,r=e.items;if(a&&Array.isArray(a)){let A=a.map(s=>gn(s,t)),i=r&&typeof r=="object"&&!Array.isArray(r)?gn(r,t):void 0;i?o=U.tuple(A).rest(i):o=U.tuple(A),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(Array.isArray(r)){let A=r.map(s=>gn(s,t)),i=e.additionalItems&&typeof e.additionalItems=="object"?gn(e.additionalItems,t):void 0;i?o=U.tuple(A).rest(i):o=U.tuple(A),typeof e.minItems=="number"&&(o=o.check(U.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(U.maxLength(e.maxItems)))}else if(r!==void 0){let A=gn(r,t),i=U.array(A);typeof e.minItems=="number"&&(i=i.min(e.minItems)),typeof e.maxItems=="number"&&(i=i.max(e.maxItems)),o=i}else o=U.array(U.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function gn(e,t){if(typeof e=="boolean")return e?U.any():U.never();let n=s3(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(c=>gn(c,t)),s=U.union(i);n=o?U.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(c=>gn(c,t)),s=U.xor(i);n=o?U.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:U.any();else{let i=o?n:gn(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)i=U.intersection(i,gn(e.allOf[c],t));n=i}e.nullable===!0&&t.version==="openapi-3.0"&&(n=U.nullable(n)),e.readOnly===!0&&(n=U.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let a={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let i of r)i in e&&(a[i]=e[i]);let A=["contentEncoding","contentMediaType","contentSchema"];for(let i of A)i in e&&(a[i]=e[i]);for(let i of Object.keys(e))rK.has(i)||(a[i]=e[i]);return Object.keys(a).length>0&&t.registry.add(n,a),e.description&&(n=n.describe(e.description)),n}function c3(e,t){if(typeof e=="boolean")return e?U.any():U.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=AK(n,t?.defaultTarget),a=n.$defs||n.definitions||{},r={version:o,defs:a,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??sn};return gn(n,r)}var q0={};x(q0,{bigint:()=>dK,boolean:()=>uK,date:()=>lK,number:()=>cK,string:()=>sK});function sK(e){return pk(mc,e)}function cK(e){return yk(bc,e)}function uK(e){return vk(hc,e)}function dK(e){return Dk(Bc,e)}function lK(e){return Pk(_d,e)}ht(wm());var pK=d.object({input:d.number().finite().nonnegative().optional(),output:d.number().finite().nonnegative().optional(),cacheRead:d.number().finite().nonnegative().optional(),cacheWrite:d.number().finite().nonnegative().optional(),total:d.number().finite().nonnegative().optional()}).strict(),u3=d.object({inputTokens:d.number().int().nonnegative().optional(),outputTokens:d.number().int().nonnegative().optional(),cachedInputTokens:d.number().int().nonnegative().optional(),cacheCreationTokens:d.number().int().nonnegative().optional(),reasoningTokens:d.number().int().nonnegative().optional(),totalTokens:d.number().int().nonnegative().optional(),cost:pK.optional()}).strict();var Q=Symbol.for("drizzle:entityKind");function jt(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,Q))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(Q in n&&n[Q]===t[Q])return!0;n=Object.getPrototypeOf(n)}return!1}var oi=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[Q]="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 Nf=class{static[Q]="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 dr=Symbol.for("drizzle:Name");var Rf=class{static[Q]="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 O0(t,this)}},O0=class{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[Q]="PgForeignKey";reference;onUpdate;onDelete;getName(){let{name:t,columns:n,foreignColumns:o}=this.reference(),a=n.map(i=>i.name),r=o.map(i=>i.name),A=[this.table[dr],...a,o[0].table[dr],...r];return t??`${A.join("_")}_fk`}};function Mf(e,...t){return e(...t)}function K0(e,t){return`${e[dr]}_${t.join("_")}_unique`}var z0=class{constructor(t,n){this.name=n,this.columns=t}static[Q]="PgUniqueConstraintBuilder";columns;nullsNotDistinctConfig=!1;nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(t){return new Y0(t,this.columns,this.nullsNotDistinctConfig,this.name)}},d3=class{static[Q]="PgUniqueOnConstraintBuilder";name;constructor(t){this.name=t}on(...t){return new z0(t,this.name)}},Y0=class{constructor(t,n,o,a){this.table=t,this.columns=n,this.name=a??K0(this.table,this.columns.map(r=>r.name)),this.nullsNotDistinct=o}static[Q]="PgUniqueConstraint";columns;name;nullsNotDistinct=!1;getName(){return this.name}};function l3(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 p3(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]=l3(e,o+1,!0);n.push(s),o=c;continue}if(r==="}")return[n,o+1];if(r==="{"){let[s,c]=p3(e,o+1);n.push(s),o=c;continue}let[A,i]=l3(e,o,!1);n.push(A),o=i}return[n,o]}function g3(e){let[t]=p3(e,1);return t}function J0(e){return`{${e.map(t=>Array.isArray(t)?J0(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}var q=class extends Nf{foreignKeyConfigs=[];static[Q]="PgColumnBuilder";array(t){return new Z0(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})=>Mf((r,A)=>{let i=new Rf(()=>{let s=r();return{columns:[t],foreignColumns:[s]}});return A.onUpdate&&i.onUpdate(A.onUpdate),A.onDelete&&i.onDelete(A.onDelete),i.build(n)},o,a))}buildExtraConfigColumn(t){return new W0(t,this.config)}},P=class extends oi{constructor(t,n){n.uniqueName||(n.uniqueName=K0(t,[n.name])),super(t,n),this.table=t}static[Q]="PgColumn"},W0=class extends P{static[Q]="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}},Cc=class{static[Q]="IndexedColumn";constructor(t,n,o,a){this.name=t,this.keyAsName=n,this.type=o,this.indexConfig=a}name;keyAsName;type;indexConfig},Z0=class extends q{static[Q]="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 V0(t,this.config,n)}},V0=class e extends P{constructor(t,n,o,a){super(t,n),this.baseColumn=o,this.range=a,this.size=n.size}size;static[Q]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=g3(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){let o=t.map(a=>a===null?null:jt(this.baseColumn,e)?this.baseColumn.mapToDriverValue(a,!0):this.baseColumn.mapToDriverValue(a));return n?o:J0(o)}};var m3=class extends q{static[Q]="PgEnumObjectColumnBuilder";constructor(t,n){super(t,"string","PgEnumObjectColumn"),this.config.enum=n}build(t){return new X0(t,this.config)}},X0=class extends P{static[Q]="PgEnumObjectColumn";enum;enumValues=this.config.enum.enumValues;constructor(t,n){super(t,n),this.enum=n.enum}getSQLType(){return this.enum.enumName}},f3=Symbol.for("drizzle:isPgEnum");function h3(e){return!!e&&typeof e=="function"&&f3 in e&&e[f3]===!0}var b3=class extends q{static[Q]="PgEnumColumnBuilder";constructor(t,n){super(t,"string","PgEnumColumn"),this.config.enum=n}build(t){return new eI(t,this.config)}},eI=class extends P{static[Q]="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 yc=class{static[Q]="Subquery";constructor(t,n,o,a=!1,r=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:o,isWith:a,usedTables:r}}},B3=class extends yc{static[Q]="WithSubquery"};var C3="0.45.2";var tI,nI,y3={startActiveSpan(e,t){return tI?(nI||(nI=tI.trace.getTracer("drizzle-orm",C3)),Mf((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()}}),tI,nI)):t()}};var wc=Symbol.for("drizzle:ViewBaseConfig");var aI=Symbol.for("drizzle:Schema"),w3=Symbol.for("drizzle:Columns"),E3=Symbol.for("drizzle:ExtraConfigColumns"),oI=Symbol.for("drizzle:OriginalName"),rI=Symbol.for("drizzle:BaseName"),$d=Symbol.for("drizzle:IsAlias"),k3=Symbol.for("drizzle:ExtraConfigBuilder"),gK=Symbol.for("drizzle:IsDrizzleTable"),_t=class{static[Q]="Table";static Symbol={Name:dr,Schema:aI,OriginalName:oI,Columns:w3,ExtraConfigColumns:E3,BaseName:rI,IsAlias:$d,ExtraConfigBuilder:k3};[dr];[oI];[aI];[w3];[E3];[rI];[$d]=!1;[gK]=!0;[k3]=void 0;constructor(t,n,o){this[dr]=this[oI]=t,this[aI]=n,this[rI]=o}};var Q3=class{static[Q]="FakePrimitiveParam"};function mK(e){return e!=null&&typeof e.getSQL=="function"}function fK(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 ra=class{static[Q]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new vt([this])}},vt=class e{constructor(t){this.queryChunks=t;for(let n of t)if(jt(n,_t)){let o=n[_t.Symbol.Schema];this.usedTables.push(o===void 0?n[_t.Symbol.Name]:o+"."+n[_t.Symbol.Name])}}static[Q]="SQL";decoder=I3;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return y3.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:A,prepareTyping:i,inlineParams:s,paramStartIndex:c}=o;return fK(t.map(u=>{if(jt(u,ra))return{sql:u.value.join(""),params:[]};if(jt(u,Nd))return{sql:r(u.value),params:[]};if(u===void 0)return{sql:"",params:[]};if(Array.isArray(u)){let l=[new ra("(")];for(let[p,g]of u.entries())l.push(g),p<u.length-1&&l.push(new ra(", "));return l.push(new ra(")")),this.buildQueryFromSourceParams(l,o)}if(jt(u,e))return this.buildQueryFromSourceParams(u.queryChunks,{...o,inlineParams:s||u.shouldInlineParams});if(jt(u,_t)){let l=u[_t.Symbol.Schema],p=u[_t.Symbol.Name];return{sql:l===void 0||u[$d]?r(p):r(l)+"."+r(p),params:[]}}if(jt(u,oi)){let l=a.getColumnCasing(u);if(n.invokeSource==="indexes")return{sql:r(l),params:[]};let p=u.table[_t.Symbol.Schema];return{sql:u.table[$d]||p===void 0?r(u.table[_t.Symbol.Name])+"."+r(l):r(p)+"."+r(u.table[_t.Symbol.Name])+"."+r(l),params:[]}}if(jt(u,AI)){let l=u[wc].schema,p=u[wc].name;return{sql:l===void 0||u[wc].isAlias?r(p):r(l)+"."+r(p),params:[]}}if(jt(u,jf)){if(jt(u.value,Rd))return{sql:A(c.value++,u),params:[u],typings:["none"]};let l=u.value===null?null:u.encoder.mapToDriverValue(u.value);if(jt(l,e))return this.buildQueryFromSourceParams([l],o);if(s)return{sql:this.mapInlineParam(l,o),params:[]};let p=["none"];return i&&(p=[i(u.encoder)]),{sql:A(c.value++,l),params:[l],typings:p}}return jt(u,Rd)?{sql:A(c.value++,u),params:[u],typings:["none"]}:jt(u,e.Aliased)&&u.fieldAlias!==void 0?{sql:r(u.fieldAlias),params:[]}:jt(u,yc)?u._.isWith?{sql:r(u._.alias),params:[]}:this.buildQueryFromSourceParams([new ra("("),u._.sql,new ra(") "),new Nd(u._.alias)],o):h3(u)?u.schema?{sql:r(u.schema)+"."+r(u.enumName),params:[]}:{sql:r(u.enumName),params:[]}:mK(u)?u.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([u.getSQL()],o):this.buildQueryFromSourceParams([new ra("("),u.getSQL(),new ra(")")],o):s?{sql:this.mapInlineParam(u,o),params:[]}:{sql:A(c.value++,u),params:[u],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}},Nd=class{constructor(t){this.value=t}static[Q]="Name";brand;getSQL(){return new vt([this])}};var I3={mapFromDriverValue:e=>e},_3={mapToDriverValue:e=>e},Hpe={...I3,..._3},jf=class{constructor(t,n=_3){this.value=t,this.encoder=n}static[Q]="Param";brand;getSQL(){return new vt([this])}};function Ec(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new ra(e[0]));for(let[o,a]of t.entries())n.push(a,new ra(e[o+1]));return new vt(n)}(e=>{function t(){return new vt([])}e.empty=t;function n(s){return new vt(s)}e.fromList=n;function o(s){return new vt([new ra(s)])}e.raw=o;function a(s,c){let u=[];for(let[l,p]of s.entries())l>0&&c!==void 0&&u.push(c),u.push(p);return new vt(u)}e.join=a;function r(s){return new Nd(s)}e.identifier=r;function A(s){return new Rd(s)}e.placeholder=A;function i(s,c){return new jf(s,c)}e.param=i})(Ec||(Ec={}));(e=>{class t{constructor(o,a){this.sql=o,this.fieldAlias=a}static[Q]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(vt||(vt={}));var Rd=class{constructor(t){this.name=t}static[Q]="Placeholder";getSQL(){return new vt([this])}};var bK=Symbol.for("drizzle:IsDrizzleView"),AI=class{static[Q]="View";[wc];[bK]=!0;constructor({name:t,schema:n,selectedFields:o,query:a}){this[wc]={name:t,originalName:t,schema:n,selectedFields:o,query:a,isExisting:!a,isAlias:!1}}getSQL(){return new vt([this])}};oi.prototype.getSQL=function(){return new vt([this])};_t.prototype.getSQL=function(){return new vt([this])};yc.prototype.getSQL=function(){return new vt([this])};function Ce(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}var Upe=typeof TextDecoder>"u"?null:new TextDecoder;var lr=class extends q{static[Q]="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 iI=class extends lr{static[Q]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new sI(t,this.config)}},sI=class extends P{static[Q]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},cI=class extends lr{static[Q]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new uI(t,this.config)}},uI=class extends P{static[Q]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}};function v3(e,t){let{name:n,config:o}=Ce(e,t);return o.mode==="number"?new iI(n):new cI(n)}var dI=class extends q{static[Q]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new lI(t,this.config)}},lI=class extends P{static[Q]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}},pI=class extends q{static[Q]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new gI(t,this.config)}},gI=class extends P{static[Q]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}};function x3(e,t){let{name:n,config:o}=Ce(e,t);return o.mode==="number"?new dI(n):new pI(n)}var mI=class extends q{static[Q]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new fI(t,this.config)}},fI=class extends P{static[Q]="PgBoolean";getSQLType(){return"boolean"}};function D3(e){return new mI(e??"")}var bI=class extends q{static[Q]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new hI(t,this.config)}},hI=class extends P{static[Q]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}};function F3(e,t={}){let{name:n,config:o}=Ce(e,t);return new bI(n,o)}var BI=class extends q{static[Q]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new CI(t,this.config)}},CI=class extends P{static[Q]="PgCidr";getSQLType(){return"cidr"}};function S3(e){return new BI(e??"")}var yI=class extends q{static[Q]="PgCustomColumnBuilder";constructor(t,n,o){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=o}build(t){return new wI(t,this.config)}},wI=class extends P{static[Q]="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 L3(e){return(t,n)=>{let{name:o,config:a}=Ce(t,n);return new yI(o,a,e)}}var ko=class extends q{static[Q]="PgDateColumnBaseBuilder";defaultNow(){return this.default(Ec`now()`)}};var EI=class extends ko{static[Q]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new kI(t,this.config)}},kI=class extends P{static[Q]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}},QI=class extends ko{static[Q]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new II(t,this.config)}},II=class extends P{static[Q]="PgDateString";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}};function $3(e,t){let{name:n,config:o}=Ce(e,t);return o?.mode==="date"?new EI(n):new QI(n)}var _I=class extends q{static[Q]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new vI(t,this.config)}},vI=class extends P{static[Q]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}};function N3(e){return new _I(e??"")}var xI=class extends q{static[Q]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new DI(t,this.config)}},DI=class extends P{static[Q]="PgInet";getSQLType(){return"inet"}};function R3(e){return new xI(e??"")}var FI=class extends lr{static[Q]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new SI(t,this.config)}},SI=class extends P{static[Q]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}};function M3(e){return new FI(e??"")}var LI=class extends q{static[Q]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new $I(t,this.config)}},$I=class extends P{static[Q]="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 j3(e,t={}){let{name:n,config:o}=Ce(e,t);return new LI(n,o)}var NI=class extends q{static[Q]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new RI(t,this.config)}},RI=class extends P{static[Q]="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 G3(e){return new NI(e??"")}var MI=class extends q{static[Q]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new jI(t,this.config)}},jI=class extends P{static[Q]="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 Gf(e){return new MI(e??"")}var GI=class extends q{static[Q]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new HI(t,this.config)}},HI=class extends P{static[Q]="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]}}`}},PI=class extends q{static[Q]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new UI(t,this.config)}},UI=class extends P{static[Q]="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 H3(e,t){let{name:n,config:o}=Ce(e,t);return!o?.mode||o.mode==="tuple"?new GI(n):new PI(n)}var TI=class extends q{static[Q]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new qI(t,this.config)}},qI=class extends P{static[Q]="PgMacaddr";getSQLType(){return"macaddr"}};function P3(e){return new TI(e??"")}var OI=class extends q{static[Q]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new zI(t,this.config)}},zI=class extends P{static[Q]="PgMacaddr8";getSQLType(){return"macaddr8"}};function U3(e){return new OI(e??"")}var YI=class extends q{static[Q]="PgNumericBuilder";constructor(t,n,o){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=o}build(t){return new KI(t,this.config)}},KI=class extends P{static[Q]="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})`}},JI=class extends q{static[Q]="PgNumericNumberBuilder";constructor(t,n,o){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=o}build(t){return new WI(t,this.config)}},WI=class extends P{static[Q]="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})`}},ZI=class extends q{static[Q]="PgNumericBigIntBuilder";constructor(t,n,o){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=o}build(t){return new VI(t,this.config)}},VI=class extends P{static[Q]="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 T3(e,t){let{name:n,config:o}=Ce(e,t),a=o?.mode;return a==="number"?new JI(n,o?.precision,o?.scale):a==="bigint"?new ZI(n,o?.precision,o?.scale):new YI(n,o?.precision,o?.scale)}var XI=class extends q{static[Q]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new e_(t,this.config)}},e_=class extends P{static[Q]="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]})`}},t_=class extends q{static[Q]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new n_(t,this.config)}},n_=class extends P{static[Q]="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 q3(e,t){let{name:n,config:o}=Ce(e,t);return!o?.mode||o.mode==="tuple"?new XI(n):new t_(n)}function hK(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 O3(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 a_(e){let t=hK(e),n=0,o=t[n];n+=1;let a=new DataView(t.buffer),r=a.getUint32(n,o===1);n+=4;let A;if(r&536870912&&(A=a.getUint32(n,o===1),n+=4),(r&65535)===1){let i=O3(t,n);n+=8;let s=O3(t,n);return n+=8,[i,s]}throw new Error("Unsupported geometry type")}var o_=class extends q{static[Q]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new r_(t,this.config)}},r_=class extends P{static[Q]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return a_(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}},A_=class extends q{static[Q]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new i_(t,this.config)}},i_=class extends P{static[Q]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){let n=a_(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}};function z3(e,t){let{name:n,config:o}=Ce(e,t);return!o?.mode||o.mode==="tuple"?new o_(n):new A_(n)}var s_=class extends q{static[Q]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new c_(t,this.config)}},c_=class extends P{static[Q]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t};function Y3(e){return new s_(e??"")}var u_=class extends q{static[Q]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new d_(t,this.config)}},d_=class extends P{static[Q]="PgSerial";getSQLType(){return"serial"}};function K3(e){return new u_(e??"")}var l_=class extends lr{static[Q]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new p_(t,this.config)}},p_=class extends P{static[Q]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t};function J3(e){return new l_(e??"")}var g_=class extends q{static[Q]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new m_(t,this.config)}},m_=class extends P{static[Q]="PgSmallSerial";getSQLType(){return"smallserial"}};function W3(e){return new g_(e??"")}var f_=class extends q{static[Q]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new b_(t,this.config)}},b_=class extends P{static[Q]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}};function Ya(e,t={}){let{name:n,config:o}=Ce(e,t);return new f_(n,o)}var h_=class extends ko{constructor(t,n,o){super(t,"string","PgTime"),this.withTimezone=n,this.precision=o,this.config.withTimezone=n,this.config.precision=o}static[Q]="PgTimeBuilder";build(t){return new B_(t,this.config)}},B_=class extends P{static[Q]="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 Z3(e,t={}){let{name:n,config:o}=Ce(e,t);return new h_(n,o.withTimezone??!1,o.precision)}var C_=class extends ko{static[Q]="PgTimestampBuilder";constructor(t,n,o){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=o}build(t){return new y_(t,this.config)}},y_=class extends P{static[Q]="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()},w_=class extends ko{static[Q]="PgTimestampStringBuilder";constructor(t,n,o){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=o}build(t){return new E_(t,this.config)}},E_=class extends P{static[Q]="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 Hf(e,t={}){let{name:n,config:o}=Ce(e,t);return o?.mode==="string"?new w_(n,o.withTimezone??!1,o.precision):new C_(n,o?.withTimezone??!1,o?.precision)}var k_=class extends q{static[Q]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(Ec`gen_random_uuid()`)}build(t){return new Q_(t,this.config)}},Q_=class extends P{static[Q]="PgUUID";getSQLType(){return"uuid"}};function V3(e){return new k_(e??"")}var I_=class extends q{static[Q]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new __(t,this.config)}},__=class extends P{static[Q]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}};function X3(e,t={}){let{name:n,config:o}=Ce(e,t);return new I_(n,o)}var v_=class extends q{static[Q]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new x_(t,this.config)}},x_=class extends P{static[Q]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}};function eL(e,t){let{name:n,config:o}=Ce(e,t);return new v_(n,o)}var D_=class extends q{static[Q]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new F_(t,this.config)}},F_=class extends P{static[Q]="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 tL(e,t){let{name:n,config:o}=Ce(e,t);return new D_(n,o)}var S_=class extends q{static[Q]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new L_(t,this.config)}},L_=class extends P{static[Q]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}};function nL(e,t){let{name:n,config:o}=Ce(e,t);return new S_(n,o)}var $_=class extends q{static[Q]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new N_(t,this.config)}},N_=class extends P{static[Q]="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 aL(e,t){let{name:n,config:o}=Ce(e,t);return new $_(n,o)}function oL(){return{bigint:v3,bigserial:x3,boolean:D3,char:F3,cidr:S3,customType:L3,date:$3,doublePrecision:N3,inet:R3,integer:M3,interval:j3,json:G3,jsonb:Gf,line:H3,macaddr:P3,macaddr8:U3,numeric:T3,point:q3,geometry:z3,real:Y3,serial:K3,smallint:J3,smallserial:W3,text:Ya,time:Z3,timestamp:Hf,uuid:V3,varchar:X3,bit:eL,halfvec:tL,sparsevec:nL,vector:aL}}var R_=Symbol.for("drizzle:PgInlineForeignKeys"),rL=Symbol.for("drizzle:EnableRLS"),Md=class extends _t{static[Q]="PgTable";static Symbol=Object.assign({},_t.Symbol,{InlineForeignKeys:R_,EnableRLS:rL});[R_]=[];[rL]=!1;[_t.Symbol.ExtraConfigBuilder]=void 0;[_t.Symbol.ExtraConfigColumns]={}};function BK(e,t,n,o,a=e){let r=new Md(e,o,a),A=typeof t=="function"?t(oL()):t,i=Object.fromEntries(Object.entries(A).map(([u,l])=>{let p=l;p.setName(u);let g=p.build(r);return r[R_].push(...p.buildForeignKeys(g,r)),[u,g]})),s=Object.fromEntries(Object.entries(A).map(([u,l])=>{let p=l;p.setName(u);let g=p.buildExtraConfigColumn(r);return[u,g]})),c=Object.assign(r,i);return c[_t.Symbol.Columns]=i,c[_t.Symbol.ExtraConfigColumns]=s,n&&(c[Md.Symbol.ExtraConfigBuilder]=n),Object.assign(c,{enableRLS:()=>(c[Md.Symbol.EnableRLS]=!0,c)})}var AL=(e,t,n)=>BK(e,t,n,void 0);var Pf=class{constructor(t,n){this.unique=t,this.name=n}static[Q]="PgIndexBuilderOn";on(...t){return new jd(t.map(n=>{if(jt(n,vt))return n;n=n;let o=new Cc(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 jd(t.map(n=>{if(jt(n,vt))return n;n=n;let o=new Cc(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,o}),this.unique,!0,this.name)}using(t,...n){return new jd(n.map(o=>{if(jt(o,vt))return o;o=o;let a=new Cc(o.name,!!o.keyAsName,o.columnType,o.indexConfig);return o.indexConfig=JSON.parse(JSON.stringify(o.defaultConfig)),a}),this.unique,!0,this.name,t)}},jd=class{static[Q]="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 M_(this.config,t)}},M_=class{static[Q]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}};function iL(e){return new Pf(!1,e)}function sL(e){return new Pf(!0,e)}var cL=e=>Hf(e,{withTimezone:!0}),uL=d.enum(["channel","dm","group","local_conversation","thread","web_session"]),nbe=AL("junior_destinations",{id:Ya("id").primaryKey(),provider:Ya("provider").notNull(),providerTenantId:Ya("provider_tenant_id").notNull().default(""),providerDestinationId:Ya("provider_destination_id").notNull(),kind:Ya("kind").$type().notNull(),parentDestinationId:Ya("parent_destination_id"),displayName:Ya("display_name"),visibility:Ya("visibility").$type().notNull().default("unknown"),metadata:Gf("metadata_json"),createdAt:cL("created_at").notNull(),updatedAt:cL("updated_at").notNull()},e=>[sL("junior_destinations_provider_destination_uidx").on(e.provider,e.providerTenantId,e.providerDestinationId),iL("junior_destinations_provider_kind_idx").on(e.provider,e.kind)]);function CK(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var yK=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(CK,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),dL=d.discriminatedUnion("kind",[yK]),lL=d.string().regex(/^T[A-Z0-9]+$/),wK=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),pL=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Uf=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),pe=d.string().refine(e=>e.trim().length>0),EK=pe.refine(e=>e===e.trim()),Abe=d.enum(["slack","local"]),kK=d.enum(["pub","priv"]),QK=d.enum(["public","private"]),gL=d.object({platform:d.literal("slack"),teamId:lL,channelId:wK}).strict(),mL=gL,IK=d.object({platform:d.literal("local"),conversationId:pL}).strict(),_K=d.discriminatedUnion("platform",[mL,IK]),vK=gL.extend({type:kK,messageTs:pe.optional(),threadTs:pe.optional()}).strict(),xK=d.object({platform:d.literal("local"),type:d.literal("priv"),conversationId:pL}).strict(),fL=d.discriminatedUnion("platform",[vK,xK]),DK=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Uf,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Uf,allowedWhen:d.literal("scheduled-task"),taskId:EK}).strict()]),bL={email:pe.optional(),fullName:pe.optional(),userId:Uf,userName:pe.optional()},FK=d.object({...bL,platform:d.literal("slack"),teamId:lL}).strict(),SK=d.object({...bL,platform:d.literal("local")}).strict(),LK=d.object({platform:d.literal("system"),name:Uf}).strict(),j_=d.discriminatedUnion("platform",[FK,SK,LK]),$K=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),ibe=d.object({idempotencyKey:pe.pipe(d.string().max(512)),credentialSubject:DK.optional(),destination:mL,destinationVisibility:QK,input:pe.pipe(d.string().max(32e3)),metadata:$K.optional(),source:fL}).strict();var NK=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),cbe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),ube=d.object({kind:NK,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var lbe=d.object({label:d.string().min(1),provider:d.string().min(1),resourceRef:d.string().min(1),suggestedEvents:d.array(d.string().min(1)).optional(),supportedEvents:d.array(d.string().min(1)),type:d.string().min(1)}).strict(),pbe=d.object({eventKey:d.string().min(1),eventType:d.string().min(1),occurredAtMs:d.number().finite(),provider:d.string().min(1),resourceRef:d.string().min(1),terminal:d.boolean().optional(),trustedSummary:d.string().min(1),untrustedText:d.string().optional()}).strict(),RK=d.object({authority:d.enum(["instruction","context"]),actor:j_.optional()}).strict(),MK=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:RK.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),mbe=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:_K,actors:d.array(j_),actor:j_.optional(),runId:d.string().min(1),source:fL,transcript:d.array(MK)}).strict();var bbe=d.discriminatedUnion("type",[d.object({type:d.literal("text"),text:d.string()}).strict(),d.object({type:d.literal("image"),data:d.string(),mimeType:d.string()}).strict()]),jK=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),GK=d.object({kind:d.string().min(1),message:d.string().min(1),retryable:d.boolean().optional()}).strict(),hbe=d.object({ok:d.boolean(),status:d.enum(["success","error"]),target:d.string().min(1).optional(),data:d.unknown().optional(),truncated:d.boolean().optional(),continuation:jK.optional(),error:d.union([GK,d.string()]).optional()}).passthrough(),Bbe=d.enum(["auto","review","approve"]);var ybe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:pe}).strict(),HK=d.string().regex(/^[a-z][a-z0-9-]*$/),PK=d.string().regex(/^[a-z][a-z0-9.-]*$/),UK=d.union([d.literal("read"),d.literal("write")]),hL=d.object({provider:HK,scope:pe.optional(),type:d.literal("oauth")}).strict(),BL=d.object({id:pe,label:pe.optional(),url:pe.optional()}).strict(),Ebe=d.object({account:BL.optional(),accessToken:pe,expiresAt:d.number().finite().optional(),refreshToken:pe,refreshTokenExpiresAt:d.number().finite().optional(),scope:pe.optional()}).strict(),kbe=d.object({access:UK,leaseScope:pe.optional(),name:PK,reason:pe.optional(),requirements:d.array(pe).min(1).optional()}).strict(),TK=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),qK=d.object({account:BL.optional(),authorization:hL.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(TK).min(1)}).strict(),Qbe=d.discriminatedUnion("type",[d.object({lease:qK,type:d.literal("lease")}).strict(),d.object({authorization:hL.optional(),message:pe,type:d.literal("needed")}).strict(),d.object({message:pe,type:d.literal("unavailable")}).strict()]);var OK=pe.max(64).regex(/^[a-z][a-z0-9-]*$/),zK=pe.max(80),YK=pe.max(500),KK=d.object({label:pe.max(80),value:pe.max(500)}).strict(),JK=d.object({confirmation:pe.max(500).optional(),href:pe.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:pe.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),WK=d.object({actions:d.array(JK).max(4).optional(),description:pe.max(1e3).optional(),id:pe.max(128),metadata:d.array(KK).max(8).optional(),title:pe.max(4e3)}).strict(),_be=d.object({emptyText:pe.max(500).optional(),nextCursor:pe.max(1e3).optional(),records:d.array(WK).max(100),searchPlaceholder:pe.max(120).optional(),type:d.literal("list")}).strict(),ZK=d.object({description:YK,id:OK,label:zK,pluginDisplayName:pe.max(200),pluginName:pe.max(100)}).strict(),vbe=d.array(ZK),xbe=d.object({cursor:pe.max(1e3).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var yL=d.object({active:d.number(),conversations:d.number(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict();var VK=d.enum(["active","completed","failed"]),XK=d.enum(["api","internal","scheduler","slack"]),wL=u3,eJ=d.object({conversationId:d.string().min(1)}).strict(),tJ=d.object({limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),nJ=d.object({before:d.string().min(1),limit:d.coerce.number().int().min(1).max(1e3).default(500)}).strict(),aJ=d.object({actorEmail:d.string().trim().email().transform(e=>e.toLowerCase()).optional()}).strict(),oJ=d.object({archived:d.boolean(),lastSeenAt:d.string().datetime()}).strict(),G_=d.object({archived:d.boolean()}).strict(),H_=d.object({email:d.string().optional(),fullName:d.string().optional(),slackUserId:d.string().optional(),slackUserName:d.string().optional()}).strict(),Gd=d.object({displayTitle:d.string(),cumulativeDurationMs:d.number(),cumulativeUsage:wL.optional(),conversationId:d.string(),isParticipant:d.boolean(),status:VK,startedAt:d.string(),lastSeenAt:d.string(),lastProgressAt:d.string(),surface:XK,actorIdentity:H_.optional(),archivedAt:d.string().optional(),channel:d.string().optional(),channelName:d.string().optional(),channelNameRedacted:d.boolean().optional(),locationId:d.string().optional(),sentryTraceUrl:d.string().optional(),traceId:d.string().optional()}).strict(),rJ=d.object({type:d.literal("message"),messageId:d.string().min(1),role:d.enum(["assistant","system","user"]),eventType:d.string().min(1).optional(),text:d.string().optional(),redacted:d.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"})}),AJ=d.object({type:d.literal("message_handled"),messageId:d.string().min(1)}).strict(),iJ=d.object({toolCallId:d.string().min(1),name:d.string().min(1),status:d.enum(["running","completed","error"]),startedAt:d.string().datetime().optional(),startedSeq:d.number().int().nonnegative().optional(),input:d.unknown().optional(),output:d.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"})}),EL=d.object({type:d.literal("reasoning"),text:d.string().min(1).optional(),redacted:d.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"})}),sJ=d.object({type:d.literal("tool_call"),toolCallId:d.string().min(1)}).strict(),cJ=d.object({parts:d.array(d.discriminatedUnion("type",[EL,sJ])).min(1)}).strict(),uJ=d.object({type:d.literal("tool_calls"),calls:d.array(iJ).min(1),assistant:cJ.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"})}),dJ=d.object({type:d.literal("assistant_message"),parts:d.array(EL).min(1)}).strict(),lJ=d.discriminatedUnion("state",[d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.enum(["started","succeeded","no_reply"])}).strict(),d.object({type:d.literal("turn_lifecycle"),turnId:d.string().min(1),state:d.literal("failed"),failureKind:d.enum(["agent","delivery"])}).strict()]),pJ=d.object({type:d.literal("turn_routed"),turnId:d.string().min(1),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1),confidence:d.number().min(0).max(1).optional(),source:d.enum(["configured","inherited","router"])}).strict(),gJ=d.object({type:d.literal("turn_context"),turnId:d.string().min(1),pluginName:d.string().min(1),kind:d.string().min(1),version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict(),mJ=d.object({type:d.literal("compaction"),modelProfile:d.string().min(1).optional(),modelId:d.string().min(1).optional(),summary:d.string().min(1).optional(),details:d.object({reason:d.literal("capacity"),estimatedInputTokens:d.number().int().nonnegative(),replacementInputTokens:d.number().int().nonnegative().optional(),triggerTokens:d.number().int().nonnegative(),inputLimitTokens:d.number().int().positive(),inputMessageCount:d.number().int().nonnegative(),retainedMessageCount:d.number().int().nonnegative(),summaryChars:d.number().int().nonnegative()}).strict().optional()}).strict(),fJ=d.object({type:d.literal("handoff"),modelProfile:d.string().min(1),modelId:d.string().min(1),reasoningLevel:d.string().min(1).optional(),triggeringToolCallId:d.string().min(1).optional(),summary:d.string().min(1).optional()}).strict(),bJ=d.object({type:d.literal("subagent"),startedSeq:d.number().int().nonnegative(),startedAt:d.string().datetime(),childConversationId:d.string().min(1),subagentKind:d.string().min(1),parentToolCallId:d.string().min(1).optional(),status:d.enum(["running","completed","error","aborted"])}).strict(),kL=d.discriminatedUnion("type",[rJ,AJ,dJ,uJ,lJ,gJ,pJ,mJ,fJ,bJ]),P_=d.object({seq:d.number().int().nonnegative(),createdAt:d.string().datetime(),data:kL}).strict(),U_=d.discriminatedUnion("status",[d.object({status:d.literal("available")}).strict(),d.object({status:d.literal("redacted"),reason:d.literal("non_public_conversation")}).strict(),d.object({status:d.literal("expired"),expiredAt:d.string().datetime()}).strict()]),hJ=d.object({modelId:d.string(),usage:wL}).strict();function QL(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 T_=Gd.extend({annotations:d.array(dL.and(d.object({plugin:d.string().min(1),createdAt:d.string().datetime(),updatedAt:d.string().datetime()}))).optional(),modelUsage:d.array(hJ).optional(),events:d.array(P_),eventHistory:U_,previousCursor:d.string().min(1).optional(),generatedAt:d.string(),sentryConversationUrl:d.string().optional()}).strict().superRefine(QL),q_=d.object({events:d.array(P_),eventHistory:U_,previousCursor:d.string().min(1).optional(),generatedAt:d.string()}).strict().superRefine(QL),O_=d.object({conversations:d.array(Gd),source:d.literal("conversation_index"),generatedAt:d.string()}).strict(),kc=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),label:d.string(),costUsd:d.number().optional(),tokens:d.number().optional()}).strict(),BJ=d.object({costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),tokens:d.number().optional()}).strict(),z_=d.object({active:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),generatedAt:d.string(),metricDays:d.array(BJ),locations:d.array(kc),actors:d.array(kc),source:d.literal("conversation_index"),costUsd:d.number().optional(),tokens:d.number().optional(),windowEnd:d.string(),windowStart:d.string()}).strict(),CJ=d.object({email:d.string().trim().min(1)}).strict(),CL=kc.omit({costUsd:!0}),yJ=d.object({active:d.number(),conversations:d.number(),costUsd:d.number().optional(),date:d.string(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),wJ=d.object({activePeople:d.number(),conversations:d.number(),date:d.string()}).strict(),IL=d.object({active:d.number(),activeDays:d.number(),conversations:d.number(),durationMs:d.number(),failed:d.number(),tokens:d.number().optional()}).strict(),_L=H_.extend({email:d.string().min(1)}).strict(),EJ=IL.extend({firstSeenAt:d.string(),lastSeenAt:d.string(),actor:_L}).strict(),Y_=d.object({activityDays:d.array(wJ),generatedAt:d.string(),people:d.array(EJ),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),K_=d.object({activityDays:d.array(yJ),generatedAt:d.string(),locations:d.array(CL),recentConversations:d.array(Gd),actor:_L,source:d.literal("conversation_index"),surfaces:d.array(CL),totals:IL,windowEnd:d.string(),windowStart:d.string()}).strict(),kJ=d.object({locationId:d.string().min(1)}).strict(),vL=kc.extend({id:d.string(),firstSeenAt:d.string(),kind:uL,lastSeenAt:d.string(),provider:d.string(),providerDestinationId:d.string(),visibility:d.literal("public")}).strict(),QJ=kc.extend({actor:H_}).strict(),xL=d.object({date:d.string(),privateConversations:d.number(),publicConversations:d.number()}).strict(),J_=d.object({activityDays:d.array(xL),generatedAt:d.string(),locations:d.array(vL),privateActivity:kc,source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),W_=vL.extend({activityDays:d.array(yL),actors:d.array(QJ),generatedAt:d.string(),recentConversations:d.array(Gd),source:d.literal("conversation_index"),windowEnd:d.string(),windowStart:d.string()}).strict(),IJ=d.object({error:d.string().min(1)}).strict(),Z_=d.object({id:d.string().uuid(),name:d.string(),tokenSuffix:d.string(),createdAt:d.string().datetime(),expiresAt:d.string().datetime(),lastUsedAt:d.string().datetime().nullable()}).strict(),V_=d.object({tokens:d.array(Z_)}).strict(),_J=d.object({name:d.string().trim().min(1).max(80)}).strict(),X_=Z_.extend({token:d.string().startsWith("jr_pat_")}).strict(),vJ=d.object({id:d.string().uuid()}).strict(),xJ=d.object({revoked:d.literal(!0)}).strict(),DL=d.object({count:d.number().int().nonnegative(),date:d.string(),metric:d.string().min(1),name:d.string().min(1),namespace:d.string().min(1)}).strict(),DJ=d.object({generatedAt:d.string().datetime(),stats:d.array(DL),windowEnd:d.string(),windowStart:d.string()}).strict();var FJ=d.object({status:d.literal("ok"),service:d.string(),timestamp:d.string()}).strict(),FL=d.object({configKeys:d.array(d.string()),description:d.string(),displayName:d.string(),name:d.string()}).strict(),ev=d.array(FL),tv=d.object({name:d.string(),pluginProvider:d.string().optional()}).strict(),nv=d.array(tv),SL=d.object({dir:d.string(),hasMigrationsDir:d.boolean(),hasSkillsDir:d.boolean(),packageName:d.string()}).strict(),LL=d.object({packageNames:d.array(d.string()),packages:d.array(SL),manifestRoots:d.array(d.string()),skillRoots:d.array(d.string()),tracingIncludes:d.array(d.string())}).strict(),SJ=d.object({cwd:d.string(),homeDir:d.string(),descriptionText:d.string().optional(),providers:d.array(d.string()),skills:d.array(tv),packagedContent:LL}).strict(),av=d.enum(["danger","good","neutral","warning"]),LJ=d.object({label:d.string(),tone:av.optional(),value:d.string()}).strict(),$J=d.object({key:d.string(),label:d.string()}).strict(),NJ=d.object({id:d.string(),tone:av.optional(),values:d.record(d.string(),d.string())}).strict(),RJ=d.object({fields:d.array($J).optional(),emptyText:d.string().optional(),records:d.array(NJ).optional(),title:d.string()}).strict(),MJ=d.object({categories:d.array(d.object({id:d.string().min(1),label:d.string().min(1),values:d.record(d.string(),d.number().finite())}).strict()).max(100),description:d.string().optional(),emptyText:d.string().optional(),id:d.string().min(1),series:d.array(d.object({key:d.string().min(1),label:d.string().min(1),tone:av.optional()}).strict()).min(1).max(8),timeRangeDays:d.array(d.union([d.literal(7),d.literal(30),d.literal(90)])).min(1).max(3).optional(),title:d.string().min(1),type:d.literal("bar_chart")}).strict(),$L=d.object({generatedAt:d.string().optional(),metrics:d.array(LJ).optional(),recordSets:d.array(RJ).optional(),title:d.string().optional(),pluginName:d.string(),widgets:d.array(MJ).max(12).optional()}).strict(),ov=d.object({generatedAt:d.string(),reports:d.array($L),source:d.literal("plugins")}).strict();function jJ(e){try{let t=new URL(e).protocol;return t==="http:"||t==="https:"}catch{return!1}}var GJ=d.object({kind:d.literal("resource_link"),key:d.string().trim().min(1).max(256),label:d.string().trim().min(1).max(256),url:d.string().url().max(2048).refine(jJ,"URL must use HTTP or HTTPS."),description:d.string().trim().min(1).max(512).optional(),status:d.enum(["open","draft","closed","merged","warning"]).optional()}).strict(),Vbe=d.discriminatedUnion("kind",[GJ]),NL=d.string().regex(/^T[A-Z0-9]+$/),HJ=d.string().regex(/^(C|G|D)[A-Z0-9]+$/),RL=d.string().regex(/^local:[a-z0-9_-]+:[a-z0-9][a-z0-9_-]*$/),Tf=d.string().min(1).refine(e=>e===e.trim()&&e.toLowerCase()!=="unknown"),ge=d.string().refine(e=>e.trim().length>0),PJ=ge.refine(e=>e===e.trim()),ehe=d.enum(["slack","local"]),UJ=d.enum(["pub","priv"]),TJ=d.enum(["public","private"]),ML=d.object({platform:d.literal("slack"),teamId:NL,channelId:HJ}).strict(),jL=ML,qJ=d.object({platform:d.literal("local"),conversationId:RL}).strict(),OJ=d.discriminatedUnion("platform",[jL,qJ]),zJ=ML.extend({type:UJ,messageTs:ge.optional(),threadTs:ge.optional()}).strict(),YJ=d.object({platform:d.literal("local"),type:d.literal("priv"),conversationId:RL}).strict(),GL=d.discriminatedUnion("platform",[zJ,YJ]),KJ=d.discriminatedUnion("allowedWhen",[d.object({type:d.literal("user"),userId:Tf,allowedWhen:d.literal("private-direct-conversation")}).strict(),d.object({type:d.literal("user"),userId:Tf,allowedWhen:d.literal("scheduled-task"),taskId:PJ}).strict()]),HL={email:ge.optional(),fullName:ge.optional(),userId:Tf,userName:ge.optional()},JJ=d.object({...HL,platform:d.literal("slack"),teamId:NL}).strict(),WJ=d.object({...HL,platform:d.literal("local")}).strict(),ZJ=d.object({platform:d.literal("system"),name:Tf}).strict(),rv=d.discriminatedUnion("platform",[JJ,WJ,ZJ]),VJ=d.record(d.string(),d.string()).superRefine((e,t)=>{let n=Object.entries(e);if(n.length>20){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata has too many keys"});return}for(let[o,a]of n){if(!o.trim()){t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be strings",path:[o]});continue}o.length>128&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata key exceeds the maximum length",path:[o]}),/[\r\n]/.test(o)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata keys must be single-line strings",path:[o]}),/[\r\n]/.test(a)&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata values must be single-line strings",path:[o]}),a.length>512&&t.addIssue({code:d.ZodIssueCode.custom,message:"Dispatch metadata value exceeds the maximum length",path:[o]})}}),the=d.object({idempotencyKey:ge.pipe(d.string().max(512)),credentialSubject:KJ.optional(),destination:jL,destinationVisibility:TJ,input:ge.pipe(d.string().max(32e3)),metadata:VJ.optional(),source:GL}).strict();var XJ=d.string().trim().min(1).max(64).regex(/^[a-z][a-z0-9_-]*$/),ahe=d.object({text:d.string().trim().min(1).max(8e3)}).strict(),ohe=d.object({kind:XJ,version:d.number().int().positive(),content:d.record(d.string(),d.unknown())}).strict();var Ahe=d.object({label:d.string().min(1),provider:d.string().min(1),resourceRef:d.string().min(1),suggestedEvents:d.array(d.string().min(1)).optional(),supportedEvents:d.array(d.string().min(1)),type:d.string().min(1)}).strict(),ihe=d.object({eventKey:d.string().min(1),eventType:d.string().min(1),occurredAtMs:d.number().finite(),provider:d.string().min(1),resourceRef:d.string().min(1),terminal:d.boolean().optional(),trustedSummary:d.string().min(1),untrustedText:d.string().optional()}).strict(),eW=d.object({authority:d.enum(["instruction","context"]),actor:rv.optional()}).strict(),tW=d.discriminatedUnion("type",[d.object({type:d.literal("message"),role:d.enum(["user","assistant"]),text:d.string().min(1),provenance:eW.optional(),isRunActor:d.boolean().optional()}).strict(),d.object({type:d.literal("toolResult"),toolName:d.string().min(1),isError:d.boolean(),text:d.string().min(1).optional()}).strict()]),che=d.object({completedAtMs:d.number().finite(),conversationId:d.string().min(1),destination:OJ,actors:d.array(rv),actor:rv.optional(),runId:d.string().min(1),source:GL,transcript:d.array(tW)}).strict();var dhe=d.discriminatedUnion("type",[d.object({type:d.literal("text"),text:d.string()}).strict(),d.object({type:d.literal("image"),data:d.string(),mimeType:d.string()}).strict()]),nW=d.object({arguments:d.record(d.string(),d.unknown()),reason:d.string().min(1).optional()}).strict(),aW=d.object({kind:d.string().min(1),message:d.string().min(1),retryable:d.boolean().optional()}).strict(),lhe=d.object({ok:d.boolean(),status:d.enum(["success","error"]),target:d.string().min(1).optional(),data:d.unknown().optional(),truncated:d.boolean().optional(),continuation:nW.optional(),error:d.union([aW,d.string()]).optional()}).passthrough(),phe=d.enum(["auto","review","approve"]);var mhe=d.object({auth:d.object({user:d.object({email:d.string().nullable().optional(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),pluginName:ge}).strict(),oW=d.string().regex(/^[a-z][a-z0-9-]*$/),rW=d.string().regex(/^[a-z][a-z0-9.-]*$/),AW=d.union([d.literal("read"),d.literal("write")]),PL=d.object({provider:oW,scope:ge.optional(),type:d.literal("oauth")}).strict(),UL=d.object({id:ge,label:ge.optional(),url:ge.optional()}).strict(),bhe=d.object({account:UL.optional(),accessToken:ge,expiresAt:d.number().finite().optional(),refreshToken:ge,refreshTokenExpiresAt:d.number().finite().optional(),scope:ge.optional()}).strict(),hhe=d.object({access:AW,leaseScope:ge.optional(),name:rW,reason:ge.optional(),requirements:d.array(ge).min(1).optional()}).strict(),iW=d.object({domain:d.string().min(1),headers:d.record(d.string(),d.string()).refine(e=>Object.keys(e).length>0)}).strict(),sW=d.object({account:UL.optional(),authorization:PL.optional(),expiresAt:d.string().refine(e=>Number.isFinite(Date.parse(e))),headerTransforms:d.array(iW).min(1)}).strict(),Bhe=d.discriminatedUnion("type",[d.object({lease:sW,type:d.literal("lease")}).strict(),d.object({authorization:PL.optional(),message:ge,type:d.literal("needed")}).strict(),d.object({message:ge,type:d.literal("unavailable")}).strict()]);var cW=ge.max(64).regex(/^[a-z][a-z0-9-]*$/),uW=ge.max(80),dW=ge.max(500),lW=d.object({label:ge.max(80),value:ge.max(500)}).strict(),pW=d.object({confirmation:ge.max(500).optional(),href:ge.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),label:ge.max(80),method:d.literal("DELETE"),tone:d.enum(["danger","neutral"]).optional()}).strict(),gW=d.object({actions:d.array(pW).max(4).optional(),description:ge.max(1e3).optional(),id:ge.max(128),metadata:d.array(lW).max(8).optional(),title:ge.max(4e3)}).strict(),TL=d.object({emptyText:ge.max(500).optional(),nextCursor:ge.max(1e3).optional(),records:d.array(gW).max(100),searchPlaceholder:ge.max(120).optional(),type:d.literal("list")}).strict(),mW=d.object({description:dW,id:cW,label:uW,pluginDisplayName:ge.max(200),pluginName:ge.max(100)}).strict(),qL=d.array(mW),yhe=d.object({cursor:ge.max(1e3).optional(),limit:d.number().int().min(1).max(50),query:d.string().trim().max(200).optional()}).strict();var OL=d.object({user:d.object({email:d.string().trim().email(),emailVerified:d.boolean().optional(),name:d.string().nullable().optional()}).strict()}).strict(),zL=d.object({allowedEmailCount:d.number(),allowedGoogleDomainCount:d.number(),authRequired:d.boolean(),authPath:d.string(),basePath:d.string(),componentGallery:d.boolean(),sentryConversationLinks:d.boolean(),timeZone:d.string()}).strict();var pr=class extends Error{status;constructor(t,n){super(`${t} returned ${n}`),this.status=n}};function qf(){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 YL(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&&qf(),!o.ok)throw new pr(t,o.status);return e.parse(await o.json())}async function KL(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&&qf(),!o.ok)throw new pr(t,o.status);return e.parse(await o.json())}async function Of(e){let t=await fetch(e,{credentials:"same-origin",method:"DELETE"});if(t.status===401&&qf(),!t.ok)throw new pr(e,t.status)}async function Gt(e,t,n){let o=await fetch(t,{credentials:"same-origin",...n?{signal:n}:{}});if(o.status===401)throw qf(),new pr(t,o.status);if(!o.ok)throw new pr(t,o.status);return e.parse(await o.json())}function Av(){return tn({queryKey:["dashboard","core"],queryFn:async()=>{let[e,t]=await Promise.all([Gt(OL,"/api/me"),Gt(zL,"/api/config")]);return{config:t,me:e}},retry:!1})}function fW(){return tn({queryKey:["dashboard","plugins"],queryFn:()=>Gt(ev,"/api/plugins"),retry:!1})}function JL(){return tn({queryKey:["dashboard","plugin-user-pages"],queryFn:()=>Gt(qL,"/api/user-pages"),retry:!1})}function WL(e){let t=new URLSearchParams;e&&t.set("actorEmail",e);let n=t.toString();return tn({queryKey:["dashboard","conversations",e??"all"],queryFn:()=>Gt(O_,`/api/conversations${n?`?${n}`:""}`),retry:!1})}function ZL(){return tn({queryKey:["dashboard","people"],queryFn:()=>Gt(Y_,"/api/people"),retry:!1})}function VL(e){return tn({enabled:!!e,queryKey:["dashboard","people",e],queryFn:async()=>Gt(K_,`/api/people/${encodeURIComponent(e)}`),retry:!1})}function XL(){return tn({queryKey:["dashboard","locations"],queryFn:()=>Gt(J_,"/api/locations"),retry:!1})}function e$(e){return tn({enabled:!!e,queryKey:["dashboard","locations",e],queryFn:async()=>Gt(W_,`/api/locations/${encodeURIComponent(e)}`),retry:!1})}function t$(){let e=Av(),t=fW(),n=tn({queryKey:["dashboard","conversation-stats"],queryFn:()=>Gt(z_,"/api/conversations/stats"),retry:!1}),o=tn({queryKey:["dashboard","skills"],queryFn:()=>Gt(nv,"/api/skills"),retry:!1}),a=tn({queryKey:["dashboard","plugin-reports"],queryFn:()=>Gt(ov,"/api/plugin-reports"),retry:!1}),r=e.data&&t.data&&o.data;return{...e,data:r?{...e.data,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:e.error??t.error??o.error,isPending:e.isPending||t.isPending||o.isPending}}var n$="Junior";function Oe(){return typeof window>"u"?n$:window.__JUNIOR_DASHBOARD_AGENT_NAME__?.trim()||n$}function Hd(e=Oe()){return e.endsWith("s")?`${e}'`:`${e}'s`}var iv=w(_(),1);function zf(){return(0,iv.jsx)("div",{className:"relative grid size-10 shrink-0 select-none place-items-center overflow-visible",children:(0,iv.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 a$=["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 N(...e){return e.filter(Boolean).join(" ")}var Bt="mx-auto w-full min-w-0 max-w-screen-xl",cA="text-dashboard-text-muted hover:text-dashboard-text";var uA=w(_(),1);function et(e){return(0,uA.jsx)("div",{className:N(Bt,"grid min-h-[calc(100vh-5rem)] place-items-center px-4 py-8 md:px-8"),children:(0,uA.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-[#0b0b0b] p-4",children:[(0,uA.jsx)(zf,{}),(0,uA.jsxs)("div",{children:[(0,uA.jsx)("div",{className:"font-bold",children:e.label}),(0,uA.jsx)("div",{"aria-label":e.label,className:`${a$} mt-3 h-1.5 w-full`,role:"progressbar"})]})]})})}var Jf=w(X(),1);var Yf=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();var o$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var r$=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());var sv=e=>{let t=r$(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Pd=w(X(),1);var Kf={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 A$=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Qc=w(X(),1);var bW=(0,Qc.createContext)({});var i$=()=>(0,Qc.useContext)(bW);var s$=(0,Pd.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:r,iconNode:A,...i},s)=>{let{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:l=!1,color:p="currentColor",className:g=""}=i$()??{},m=o??l?Number(n??u)*24/Number(t??c):n??u;return(0,Pd.createElement)("svg",{ref:s,...Kf,width:t??c??Kf.width,height:t??c??Kf.height,stroke:e??p,strokeWidth:m,className:Yf("lucide",g,a),...!r&&!A$(i)&&{"aria-hidden":"true"},...i},[...A.map(([B,C])=>(0,Pd.createElement)(B,C)),...Array.isArray(r)?r:[r]])});var H=(e,t)=>{let n=(0,Jf.forwardRef)(({className:o,...a},r)=>(0,Jf.createElement)(s$,{ref:r,iconNode:t,className:Yf(`lucide-${o$(sv(e))}`,`lucide-${e}`,o),...a}));return n.displayName=sv(e),n};var hW=[["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"}]],ri=H("activity",hW);var BW=[["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"}]],Ud=H("archive",BW);var CW=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Td=H("arrow-down-to-line",CW);var yW=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],qd=H("arrow-left",yW);var wW=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Od=H("arrow-right",wW);var EW=[["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"}]],Qo=H("bot",EW);var kW=[["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"}]],_n=H("boxes",kW);var QW=[["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"}]],Io=H("braces",QW);var IW=[["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"}]],Ai=H("brain",IW);var _W=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zd=H("check",_W);var vW=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ii=H("chevron-down",vW);var xW=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yd=H("chevron-right",xW);var DW=[["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"}]],dA=H("circle-alert",DW);var FW=[["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"}]],Kd=H("circle-dashed",FW);var SW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Jd=H("circle-dot",SW);var LW=[["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"}]],lA=H("circle-x",LW);var $W=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Ka=H("clock-3",$W);var NW=[["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"}]],si=H("coins",NW);var RW=[["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"}]],ci=H("copy",RW);var MW=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Wd=H("diff",MW);var jW=[["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"}]],Zd=H("external-link",jW);var GW=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Vd=H("gauge",GW);var HW=[["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"}]],Xd=H("git-merge",HW);var PW=[["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"}]],el=H("hash",PW);var UW=[["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"}]],gr=H("key-round",UW);var TW=[["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"}]],ui=H("lock-keyhole",TW);var qW=[["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"}]],tl=H("log-out",qW);var OW=[["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"}]],nl=H("map-pin",OW);var zW=[["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"}]],al=H("map-pinned",zW);var YW=[["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"}]],ol=H("message-square-text",YW);var KW=[["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"}]],Aa=H("message-square",KW);var JW=[["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"}]],rl=H("minimize-2",JW);var WW=[["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"}]],Al=H("radio-tower",WW);var ZW=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],di=H("search",ZW);var VW=[["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"}]],il=H("send",VW);var XW=[["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"}]],Ia=H("sparkles",XW);var eZ=[["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"}]],sl=H("timer",eZ);var tZ=[["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"}]],li=H("trash-2",tZ);var nZ=[["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"}]],_a=H("triangle-alert",nZ);var aZ=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],_o=H("user-round",aZ);var oZ=[["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"}]],pi=H("users",oZ);var rZ=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gi=H("x",rZ);var Li=w(X(),1);var cv=Object.defineProperty,AZ=Object.getOwnPropertyDescriptor,iZ=Object.getOwnPropertyNames,sZ=Object.prototype.hasOwnProperty,u$=(e,t)=>{let n={};for(var o in e)cv(n,o,{get:e[o],enumerable:!0});return t||cv(n,Symbol.toStringTag,{value:"Module"}),n},c$=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=iZ(t),r=0,A=a.length,i;r<A;r++)i=a[r],!sZ.call(e,i)&&i!==n&&cv(e,i,{get:(s=>t[s]).bind(null,i),enumerable:!(o=AZ(t,i))||o.enumerable});return e},d$=(e,t,n)=>(c$(e,t,"default"),n&&c$(n,t,"default"));var pv={};x(pv,{createOnigurumaEngine:()=>QZ,getDefaultWasmLoader:()=>kZ,loadWasm:()=>p$,setDefaultWasmLoader:()=>EZ});var lv=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function cZ(){return 2147483648}function uZ(){return typeof performance<"u"?performance.now():Date.now()}var dZ=(e,t)=>e+(t-e%t)%t;async function lZ(e){let t,n,o={};function a(g){n=g,o.HEAPU8=new Uint8Array(g),o.HEAPU32=new Uint32Array(g)}function r(g,m,B){o.HEAPU8.copyWithin(g,m,m+B)}function A(g){try{return t.grow(g-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function i(g){let m=o.HEAPU8.length;g=g>>>0;let B=cZ();if(g>B)return!1;for(let C=1;C<=4;C*=2){let b=m*(1+.2/C);b=Math.min(b,g+100663296);let f=Math.min(B,dZ(Math.max(g,b),65536));if(A(f))return!0}return!1}let s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(g,m,B=1024){let C=m+B,b=m;for(;g[b]&&!(b>=C);)++b;if(b-m>16&&g.buffer&&s)return s.decode(g.subarray(m,b));let f="";for(;m<b;){let h=g[m++];if(!(h&128)){f+=String.fromCharCode(h);continue}let y=g[m++]&63;if((h&224)===192){f+=String.fromCharCode((h&31)<<6|y);continue}let k=g[m++]&63;if((h&240)===224?h=(h&15)<<12|y<<6|k:h=(h&7)<<18|y<<12|k<<6|g[m++]&63,h<65536)f+=String.fromCharCode(h);else{let G=h-65536;f+=String.fromCharCode(55296|G>>10,56320|G&1023)}}return f}function u(g,m){return g?c(o.HEAPU8,g,m):""}let l={emscripten_get_now:uZ,emscripten_memcpy_big:r,emscripten_resize_heap:i,fd_write:()=>0};async function p(){let m=await e({env:l,wasi_snapshot_preview1:l});t=m.memory,a(t.buffer),Object.assign(o,m),o.UTF8ToString=u}return await p(),o}var pZ=Object.defineProperty,gZ=(e,t,n)=>t in e?pZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t,n)=>gZ(e,typeof t!="symbol"?t+"":t,n),Jt=null;function mZ(e){throw new lv(e.UTF8ToString(e.getLastOnigError()))}var Zf=class e{constructor(t){Ut(this,"utf16Length"),Ut(this,"utf8Length"),Ut(this,"utf16Value"),Ut(this,"utf8Value"),Ut(this,"utf16OffsetToUtf8"),Ut(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 A=a?new Uint32Array(o+1):null;a&&(A[o]=n);let i=new Uint8Array(o),s=0;for(let c=0;c<n;c++){let u=t.charCodeAt(c),l=u,p=!1;if(u>=55296&&u<=56319&&c+1<n){let g=t.charCodeAt(c+1);g>=56320&&g<=57343&&(l=(u-55296<<10)+65536|g-56320,p=!0)}a&&(r[c]=s,p&&(r[c+1]=s),l<=127?A[s+0]=c:l<=2047?(A[s+0]=c,A[s+1]=c):l<=65535?(A[s+0]=c,A[s+1]=c,A[s+2]=c):(A[s+0]=c,A[s+1]=c,A[s+2]=c,A[s+3]=c)),l<=127?i[s++]=l:l<=2047?(i[s++]=192|(l&1984)>>>6,i[s++]=128|(l&63)>>>0):l<=65535?(i[s++]=224|(l&61440)>>>12,i[s++]=128|(l&4032)>>>6,i[s++]=128|(l&63)>>>0):(i[s++]=240|(l&1835008)>>>18,i[s++]=128|(l&258048)>>>12,i[s++]=128|(l&4032)>>>6,i[s++]=128|(l&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=o,this.utf16Value=t,this.utf8Value=i,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=A}static _utf8ByteLength(t){let n=0;for(let o=0,a=t.length;o<a;o++){let r=t.charCodeAt(o),A=r,i=!1;if(r>=55296&&r<=56319&&o+1<a){let s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(A=(r-55296<<10)+65536|s-56320,i=!0)}A<=127?n+=1:A<=2047?n+=2:A<=65535?n+=3:n+=4,i&&o++}return n}createString(t){let n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}},Vf=class vo{constructor(t){if(Ut(this,"id",++vo.LAST_ID),Ut(this,"_onigBinding"),Ut(this,"content"),Ut(this,"utf16Length"),Ut(this,"utf8Length"),Ut(this,"utf16OffsetToUtf8"),Ut(this,"utf8OffsetToUtf16"),Ut(this,"ptr"),!Jt)throw new lv("Must invoke loadWasm first.");this._onigBinding=Jt,this.content=t;let n=new Zf(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!vo._sharedPtrInUse?(vo._sharedPtr||(vo._sharedPtr=Jt.omalloc(1e4)),vo._sharedPtrInUse=!0,Jt.HEAPU8.set(n.utf8Value,vo._sharedPtr),this.ptr=vo._sharedPtr):this.ptr=n.createString(Jt)}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===vo._sharedPtr?vo._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ut(Vf,"LAST_ID",0);Ut(Vf,"_sharedPtr",0);Ut(Vf,"_sharedPtrInUse",!1);var l$=Vf,dv=class{constructor(t){if(Ut(this,"_onigBinding"),Ut(this,"_ptr"),!Jt)throw new lv("Must invoke loadWasm first.");let n=[],o=[];for(let i=0,s=t.length;i<s;i++){let c=new Zf(t[i]);n[i]=c.createString(Jt),o[i]=c.utf8Length}let a=Jt.omalloc(4*t.length);Jt.HEAPU32.set(n,a/4);let r=Jt.omalloc(4*t.length);Jt.HEAPU32.set(o,r/4);let A=Jt.createOnigScanner(a,r,t.length);for(let i=0,s=t.length;i<s;i++)Jt.ofree(n[i]);Jt.ofree(r),Jt.ofree(a),A===0&&mZ(Jt),this._onigBinding=Jt,this._ptr=A}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,o){let a=0;if(typeof o=="number"&&(a=o),typeof t=="string"){t=new l$(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,A=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(A===0)return null;let i=r.HEAPU32,s=A/4,c=i[s++],u=i[s++],l=[];for(let p=0;p<u;p++){let g=t.convertUtf8OffsetToUtf16(i[s++]),m=t.convertUtf8OffsetToUtf16(i[s++]);l[p]={start:g,end:m,length:m-g}}return{index:c,captureIndices:l}}};function fZ(e){return typeof e.instantiator=="function"}function bZ(e){return typeof e.default=="function"}function hZ(e){return typeof e.data<"u"}function BZ(e){return typeof Response<"u"&&e instanceof Response}function CZ(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 Wf;function p$(e){if(Wf)return Wf;async function t(){Jt=await lZ(async n=>{let o=e;return o=await o,typeof o=="function"&&(o=await o(n)),typeof o=="function"&&(o=await o(n)),fZ(o)?o=await o.instantiator(n):bZ(o)?o=await o.default(n):(hZ(o)&&(o=o.data),BZ(o)?typeof WebAssembly.instantiateStreaming=="function"?o=await yZ(o)(n):o=await wZ(o)(n):CZ(o)?o=await uv(o)(n):o instanceof WebAssembly.Module?o=await uv(o)(n):"default"in o&&o.default instanceof WebAssembly.Module&&(o=await uv(o.default)(n))),"instance"in o&&(o=o.instance),"exports"in o&&(o=o.exports),o})}return Wf=t(),Wf}function uv(e){return t=>WebAssembly.instantiate(e,t)}function yZ(e){return t=>WebAssembly.instantiateStreaming(e,t)}function wZ(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var g$;function EZ(e){g$=e}function kZ(){return g$}async function QZ(e){return e&&await p$(e),{createScanner(t){return new dv(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new l$(t)}}}var gv=u$({});d$(gv,pv);var MR=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Promise.resolve().then(()=>(f$(),m$)))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Promise.resolve().then(()=>(h$(),b$)))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(C$(),B$)))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>Promise.resolve().then(()=>(w$(),y$)))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>Promise.resolve().then(()=>(k$(),E$)))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>Promise.resolve().then(()=>(I$(),Q$)))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Promise.resolve().then(()=>(v$(),_$)))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Promise.resolve().then(()=>(D$(),x$)))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Promise.resolve().then(()=>(S$(),F$)))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Promise.resolve().then(()=>($$(),L$)))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(R$(),N$)))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(j$(),M$)))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(H$(),G$)))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Promise.resolve().then(()=>(U$(),P$)))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(q$(),T$)))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Promise.resolve().then(()=>(z$(),O$)))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Promise.resolve().then(()=>(K$(),Y$)))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Promise.resolve().then(()=>(W$(),J$)))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Promise.resolve().then(()=>(V$(),Z$)))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Promise.resolve().then(()=>(eN(),X$)))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Promise.resolve().then(()=>(nN(),tN)))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Promise.resolve().then(()=>(oN(),aN)))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Promise.resolve().then(()=>(AN(),rN)))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Promise.resolve().then(()=>(sN(),iN)))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Promise.resolve().then(()=>(uN(),cN)))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Promise.resolve().then(()=>(lN(),dN)))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Promise.resolve().then(()=>(gN(),pN)))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>Promise.resolve().then(()=>(fN(),mN)))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>Promise.resolve().then(()=>(hN(),bN)))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Promise.resolve().then(()=>(CN(),BN)))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Promise.resolve().then(()=>(wN(),yN)))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Promise.resolve().then(()=>(kN(),EN)))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Promise.resolve().then(()=>(IN(),QN)))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Promise.resolve().then(()=>(vN(),_N)))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Promise.resolve().then(()=>(DN(),xN)))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Promise.resolve().then(()=>(SN(),FN)))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Promise.resolve().then(()=>($N(),LN)))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Promise.resolve().then(()=>(RN(),NN)))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Promise.resolve().then(()=>(jN(),MN)))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Promise.resolve().then(()=>(HN(),GN)))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(UN(),PN)))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Promise.resolve().then(()=>(qN(),TN)))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Promise.resolve().then(()=>(zN(),ON)))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Promise.resolve().then(()=>(KN(),YN)))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>Promise.resolve().then(()=>(WN(),JN)))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Promise.resolve().then(()=>(VN(),ZN)))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Promise.resolve().then(()=>(eR(),XN)))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Promise.resolve().then(()=>(nR(),tR)))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Promise.resolve().then(()=>(oR(),aR)))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Promise.resolve().then(()=>(AR(),rR)))},{id:"red",displayName:"Red",type:"dark",import:(()=>Promise.resolve().then(()=>(sR(),iR)))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>Promise.resolve().then(()=>(uR(),cR)))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>Promise.resolve().then(()=>(lR(),dR)))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>Promise.resolve().then(()=>(gR(),pR)))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(fR(),mR)))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Promise.resolve().then(()=>(hR(),bR)))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Promise.resolve().then(()=>(CR(),BR)))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Promise.resolve().then(()=>(wR(),yR)))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Promise.resolve().then(()=>(kR(),ER)))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Promise.resolve().then(()=>(IR(),QR)))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Promise.resolve().then(()=>(vR(),_R)))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Promise.resolve().then(()=>(DR(),xR)))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Promise.resolve().then(()=>(SR(),FR)))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Promise.resolve().then(()=>($R(),LR)))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Promise.resolve().then(()=>(RR(),NR)))}],jR=Object.fromEntries(MR.map(e=>[e.id,e.import]));var Le=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function MV(e){return kv(e)}function kv(e){return Array.isArray(e)?jV(e):e instanceof RegExp?e:typeof e=="object"?GV(e):e}function jV(e){let t=[];for(let n=0,o=e.length;n<o;n++)t[n]=kv(e[n]);return t}function GV(e){let t={};for(let n in e)t[n]=kv(e[n]);return t}function YR(e,...t){return t.forEach(n=>{for(let o in n)e[o]=n[o]}),e}function KR(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?KR(e.substring(0,e.length-1)):e.substr(~t+1)}var mv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xf=class{static hasCaptures(e){return e===null?!1:(mv.lastIndex=0,mv.test(e))}static replaceCaptures(e,t,n){return e.replace(mv,(o,a,r,A)=>{let i=n[parseInt(a||r,10)];if(i){let s=t.substring(i.start,i.end);for(;s[0]===".";)s=s.substring(1);switch(A){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return o})}};function JR(e,t){return e<t?-1:e>t?1:0}function WR(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=JR(e[a],t[a]);if(r!==0)return r}return 0}return n-o}function GR(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 ZR(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var VR=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}},dl=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(UV(e),t)}static createFromParsedTheme(e,t){return qV(e,t)}_cachedMatchRoot=new VR(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=>HV(e.parent,a.parentScopes));return o?new XR(o.fontStyle,o.foreground,o.background):null}},fv=class eb{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let o of n)t=new eb(t,o);return t}static from(...t){let n=null;for(let o=0;o<t.length;o++)n=new eb(n,t[o]);return n}push(t){return new eb(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 HV(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&&!PV(e.scopeName,o);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function PV(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var XR=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function UV(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 A=t[a];if(!A.settings)continue;let i;if(typeof A.scope=="string"){let l=A.scope;l=l.replace(/^[,]+/,""),l=l.replace(/[,]+$/,""),i=l.split(",")}else Array.isArray(A.scope)?i=A.scope:i=[""];let s=-1;if(typeof A.settings.fontStyle=="string"){s=0;let l=A.settings.fontStyle.split(" ");for(let p=0,g=l.length;p<g;p++)switch(l[p]){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 A.settings.foreground=="string"&&GR(A.settings.foreground)&&(c=A.settings.foreground);let u=null;typeof A.settings.background=="string"&&GR(A.settings.background)&&(u=A.settings.background);for(let l=0,p=i.length;l<p;l++){let m=i[l].trim().split(" "),B=m[m.length-1],C=null;m.length>1&&(C=m.slice(0,m.length-1),C.reverse()),n[o++]=new TV(B,C,a,s,c,u)}}return n}var TV=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}},cn=(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))(cn||{});function qV(e,t){e.sort((s,c)=>{let u=JR(s.scope,c.scope);return u!==0||(u=WR(s.parentScopes,c.parentScopes),u!==0)?u: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 OV(t),A=new XR(n,r.getId(o),r.getId(a)),i=new YV(new hv(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let u=e[s];i.insert(0,u.scope,u.parentScopes,u.fontStyle,r.getId(u.foreground),r.getId(u.background))}return new dl(r,A,i)}var OV=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)}},zV=Object.freeze([]),hv=class eM{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,o,a,r){this.scopeDepth=t,this.parentScopes=n||zV,this.fontStyle=o,this.foreground=a,this.background=r}clone(){return new eM(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)}},YV=class Bv{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(Bv._cmpBySpecificity),n}insert(t,n,o,a,r,A){if(n===""){this._doInsertHere(t,o,a,r,A);return}let i=n.indexOf("."),s,c;i===-1?(s=n,c=""):(s=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(s)?u=this._children[s]:(u=new Bv(this._mainRule.clone(),hv.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,c,o,a,r,A)}_doInsertHere(t,n,o,a,r){if(n===null){this._mainRule.acceptOverwrite(t,o,a,r);return}for(let A=0,i=this._rulesWithParentScopes.length;A<i;A++){let s=this._rulesWithParentScopes[A];if(WR(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 hv(t,n,o,a,r))}},fi=class va{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=va.getLanguageId(t),o=va.getTokenType(t),a=va.getFontStyle(t),r=va.getForeground(t),A=va.getBackground(t);console.log({languageId:n,tokenType:o,fontStyle:a,foreground:r,background:A})}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,A,i){let s=va.getLanguageId(t),c=va.getTokenType(t),u=va.containsBalancedBrackets(t)?1:0,l=va.getFontStyle(t),p=va.getForeground(t),g=va.getBackground(t);return n!==0&&(s=n),o!==8&&(c=o),a!==null&&(u=a?1:0),r!==-1&&(l=r),A!==0&&(p=A),i!==0&&(g=i),(s<<0|c<<8|u<<10|l<<11|p<<15|g<<24)>>>0}};function nb(e,t){let n=[],o=KV(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=A();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=i();return a===")"&&(a=o.next()),s}if(HR(a)){let s=[];do s.push(a),a=o.next();while(HR(a));return c=>t(s,c)}return null}function A(){let s=[],c=r();for(;c;)s.push(c),c=r();return u=>s.every(l=>l(u))}function i(){let s=[],c=A();for(;c&&(s.push(c),a==="|"||a===",");){do a=o.next();while(a==="|"||a===",");c=A()}return u=>s.some(l=>l(u))}}function HR(e){return!!e&&!!e.match(/[\w\.:]+/)}function KV(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 tM(e){typeof e.dispose=="function"&&e.dispose()}var ll=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},JV=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},WV=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))}},ZV=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ll(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new WV;for(let n of e)VV(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof ll){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 VV(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 ll?tb({baseGrammar:r,selfGrammar:a},o):Cv(e.ruleName,{baseGrammar:r,selfGrammar:a,repository:a.repository},o);let A=n.injections(e.scopeName);if(A)for(let i of A)o.add(new ll(i))}function Cv(e,t,n){if(t.repository&&t.repository[e]){let o=t.repository[e];ab([o],t,n)}}function tb(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ab(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ab(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ab(e,t,n){for(let o of e){if(n.visitedRule.has(o))continue;n.visitedRule.add(o);let a=o.repository?YR({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&ab(o.patterns,{...t,repository:a},n);let r=o.include;if(!r)continue;let A=nM(r);switch(A.kind){case 0:tb({...t,selfGrammar:t.baseGrammar},n);break;case 1:tb(t,n);break;case 2:Cv(A.ruleName,{...t,repository:a},n);break;case 3:case 4:let i=A.scopeName===t.selfGrammar.scopeName?t.selfGrammar:A.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){let s={baseGrammar:t.baseGrammar,selfGrammar:i,repository:a};A.kind===4?Cv(A.ruleName,s,n):tb(s,n)}else A.kind===4?n.add(new JV(A.scopeName,A.ruleName)):n.add(new ll(A.scopeName));break}}}var XV=class{kind=0},eX=class{kind=1},tX=class{constructor(e){this.ruleName=e}kind=2},nX=class{constructor(e){this.scopeName=e}kind=3},aX=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function nM(e){if(e==="$base")return new XV;if(e==="$self")return new eX;let t=e.indexOf("#");if(t===-1)return new nX(e);if(t===0)return new tX(e.substring(1));{let n=e.substring(0,t),o=e.substring(t+1);return new aX(n,o)}}var oX=/\\(\d+)/,PR=/\\(\d+)/g;var rX=-1,aM=-2;var ml=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xf.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=Xf.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${KR(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:Xf.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xf.replaceCaptures(this._contentName,e,t)}},AX=class extends ml{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!")}},iX=class extends ml{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,o,a){super(e,t,n,null),this._match=new pl(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 gl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},UR=class extends ml{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 gl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yv=class extends ml{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,o,a,r,A,i,s,c){super(e,t,n,o),this._begin=new pl(a,this.id),this.beginCaptures=r,this._end=new pl(A||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,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 gl;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}},ob=class extends ml{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,o,a,r,A,i,s){super(e,t,n,o),this._begin=new pl(a,this.id),this.beginCaptures=r,this.whileCaptures=i,this._while=new pl(A,aM),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 gl;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 gl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},oM=class mn{static createCaptureRule(t,n,o,a,r){return t.registerRule(A=>new AX(n,A,o,a,r))}static getCompiledRuleId(t,n,o){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new iX(t.$vscodeTextmateLocation,t.id,t.name,t.match,mn._compileCaptures(t.captures,n,o));if(typeof t.begin>"u"){t.repository&&(o=YR({},o,t.repository));let r=t.patterns;return typeof r>"u"&&t.include&&(r=[{include:t.include}]),new UR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,mn._compilePatterns(r,n,o))}return t.while?new ob(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,o),t.while,mn._compileCaptures(t.whileCaptures||t.captures,n,o),mn._compilePatterns(t.patterns,n,o)):new yv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,o),t.end,mn._compileCaptures(t.endCaptures||t.captures,n,o),t.applyEndPatternLast,mn._compilePatterns(t.patterns,n,o))}),t.id}static _compileCaptures(t,n,o){let a=[];if(t){let r=0;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10);i>r&&(r=i)}for(let A=0;A<=r;A++)a[A]=null;for(let A in t){if(A==="$vscodeTextmateLocation")continue;let i=parseInt(A,10),s=0;t[A].patterns&&(s=mn.getCompiledRuleId(t[A],n,o)),a[i]=mn.createCaptureRule(n,t[A].$vscodeTextmateLocation,t[A].name,t[A].contentName,s)}}return a}static _compilePatterns(t,n,o){let a=[];if(t)for(let r=0,A=t.length;r<A;r++){let i=t[r],s=-1;if(i.include){let c=nM(i.include);switch(c.kind){case 0:case 1:s=mn.getCompiledRuleId(o[i.include],n,o);break;case 2:let u=o[c.ruleName];u&&(s=mn.getCompiledRuleId(u,n,o));break;case 3:case 4:let l=c.scopeName,p=c.kind===4?c.ruleName:null,g=n.getExternalGrammar(l,o);if(g)if(p){let m=g.repository[p];m&&(s=mn.getCompiledRuleId(m,n,g.repository))}else s=mn.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else s=mn.getCompiledRuleId(i,n,o);if(s!==-1){let c=n.getRule(s),u=!1;if((c instanceof UR||c instanceof yv||c instanceof ob)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},pl=class rM{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let o=t.length,a=0,r=[],A=!1;for(let i=0;i<o;i++)if(t.charAt(i)==="\\"&&i+1<o){let c=t.charAt(i+1);c==="z"?(r.push(t.substring(a,i)),r.push("$(?!\\n)(?<!\\n)"),a=i+2):(c==="A"||c==="G")&&(A=!0),i++}this.hasAnchor=A,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=oX.test(this.source):this.hasBackReferences=!1}clone(){return new rM(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 PR.lastIndex=0,this.source.replace(PR,(a,r)=>ZR(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,A,i,s;for(r=0,A=this.source.length;r<A;r++)i=this.source.charAt(r),t[r]=i,n[r]=i,o[r]=i,a[r]=i,i==="\\"&&r+1<A&&(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}},gl=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 TR(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 TR(e,o,this._items.map(a=>a.ruleId))}},TR=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
|
+
`)}findNextMatchSync(e,t,n){let o=this.scanner.findNextMatchSync(e,t,n);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},bv=class{constructor(e,t){this.languageId=e,this.tokenType=t}},sX=class wv{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new bv(t,8),this._embeddedLanguagesMatcher=new cX(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?wv._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new bv(0,0);_getBasicScopeAttributes=new VR(t=>{let n=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new bv(n,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(wv.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/},cX=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])=>ZR(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])}},Lye={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},AM=!1,qR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function iM(e,t,n,o,a,r,A,i){let s=t.content.length,c=!1,u=-1;if(A){let g=uX(e,t,n,o,a,r);a=g.stack,o=g.linePos,n=g.isFirstLine,u=g.anchorPosition}let l=Date.now();for(;!c;){if(i!==0&&Date.now()-l>i)return new qR(a,!0);p()}return new qR(a,!1);function p(){let g=dX(e,t,n,o,a,u);if(!g){r.produce(a,s),c=!0;return}let m=g.captureIndices,B=g.matchedRuleId,C=m&&m.length>0?m[0].end>o:!1;if(B===rX){let b=a.getRule(e);r.produce(a,m[0].start),a=a.withContentNameScopesList(a.nameScopesList),cl(e,t,n,a,r,b.endCaptures,m),r.produce(a,m[0].end);let f=a;if(a=a.parent,u=f.getAnchorPos(),!C&&f.getEnterPos()===o){a=f,r.produce(a,s),c=!0;return}}else{let b=e.getRule(B);r.produce(a,m[0].start);let f=a,h=b.getName(t.content,m),y=a.contentNameScopesList.pushAttributed(h,e);if(a=a.push(B,o,u,m[0].end===s,null,y,y),b instanceof yv){let k=b;cl(e,t,n,a,r,k.beginCaptures,m),r.produce(a,m[0].end),u=m[0].end;let G=k.getContentName(t.content,m),F=y.pushAttributed(G,e);if(a=a.withContentNameScopesList(F),k.endHasBackReferences&&(a=a.withEndRule(k.getEndWithResolvedBackReferences(t.content,m))),!C&&f.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(b instanceof ob){let k=b;cl(e,t,n,a,r,k.beginCaptures,m),r.produce(a,m[0].end),u=m[0].end;let G=k.getContentName(t.content,m),F=y.pushAttributed(G,e);if(a=a.withContentNameScopesList(F),k.whileHasBackReferences&&(a=a.withEndRule(k.getWhileWithResolvedBackReferences(t.content,m))),!C&&f.hasSameRuleAs(a)){a=a.pop(),r.produce(a,s),c=!0;return}}else if(cl(e,t,n,a,r,b.captures,m),r.produce(a,m[0].end),a=a.pop(),!C){a=a.safePop(),r.produce(a,s),c=!0;return}}m[0].end>o&&(o=m[0].end,n=!1)}}function uX(e,t,n,o,a,r){let A=a.beginRuleCapturedEOL?0:-1,i=[];for(let s=a;s;s=s.pop()){let c=s.getRule(e);c instanceof ob&&i.push({rule:c,stack:s})}for(let s=i.pop();s;s=i.pop()){let{ruleScanner:c,findOptions:u}=gX(s.rule,e,s.stack.endRule,n,o===A),l=c.findNextMatchSync(t,o,u);if(l){if(l.ruleId!==aM){a=s.stack.pop();break}l.captureIndices&&l.captureIndices.length&&(r.produce(s.stack,l.captureIndices[0].start),cl(e,t,n,s.stack,r,s.rule.whileCaptures,l.captureIndices),r.produce(s.stack,l.captureIndices[0].end),A=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:A,isFirstLine:n}}function dX(e,t,n,o,a,r){let A=lX(e,t,n,o,a,r),i=e.getInjections();if(i.length===0)return A;let s=pX(i,e,t,n,o,a,r);if(!s)return A;if(!A)return s;let c=A.captureIndices[0].start,u=s.captureIndices[0].start;return u<c||s.priorityMatch&&u===c?s:A}function lX(e,t,n,o,a,r){let A=a.getRule(e),{ruleScanner:i,findOptions:s}=sM(A,e,a.endRule,n,o===r),c=i.findNextMatchSync(t,o,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function pX(e,t,n,o,a,r,A){let i=Number.MAX_VALUE,s=null,c,u=0,l=r.contentNameScopesList.getScopeNames();for(let p=0,g=e.length;p<g;p++){let m=e[p];if(!m.matcher(l))continue;let B=t.getRule(m.ruleId),{ruleScanner:C,findOptions:b}=sM(B,t,null,o,a===A),f=C.findNextMatchSync(n,a,b);if(!f)continue;let h=f.captureIndices[0].start;if(!(h>=i)&&(i=h,s=f.captureIndices,c=f.ruleId,u=m.priority,i===a))break}return s?{priorityMatch:u===-1,captureIndices:s,matchedRuleId:c}:null}function sM(e,t,n,o,a){if(AM){let A=e.compile(t,n),i=cM(o,a);return{ruleScanner:A,findOptions:i}}return{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function gX(e,t,n,o,a){if(AM){let A=e.compileWhile(t,n),i=cM(o,a);return{ruleScanner:A,findOptions:i}}return{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function cM(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function cl(e,t,n,o,a,r,A){if(r.length===0)return;let i=t.content,s=Math.min(r.length,A.length),c=[],u=A[0].end;for(let l=0;l<s;l++){let p=r[l];if(p===null)continue;let g=A[l];if(g.length===0)continue;if(g.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=g.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,g.start):a.produce(o,g.start),p.retokenizeCapturedWithRuleId){let B=p.getName(i,A),C=o.contentNameScopesList.pushAttributed(B,e),b=p.getContentName(i,A),f=C.pushAttributed(b,e),h=o.push(p.retokenizeCapturedWithRuleId,g.start,-1,!1,null,C,f),y=e.createOnigString(i.substring(0,g.end));iM(e,y,n&&g.start===0,g.start,h,a,!1,0),tM(y);continue}let m=p.getName(i,A);if(m!==null){let C=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(m,e);c.push(new mX(C,g.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var mX=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function fX(e,t,n,o,a,r,A,i){return new hX(e,t,n,o,a,r,A,i)}function OR(e,t,n,o,a){let r=nb(t,rb),A=oM.getCompiledRuleId(n,o,a.repository);for(let i of r)e.push({debugSelector:t,matcher:i.matcher,ruleId:A,grammar:a,priority:i.priority})}function rb(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(bX(t[a],o))return n=a+1,!0;return!1})}function bX(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 hX=class{constructor(e,t,n,o,a,r,A,i){if(this._rootScopeName=e,this.balancedBracketSelectors=r,this._onigLib=i,this._basicScopeAttributesProvider=new sX(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=A,this._grammar=zR(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let s of Object.keys(a)){let c=nb(s,rb);for(let u of c)this._tokenTypeMatchers.push({matcher:u.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 A in a)OR(t,A,a[A],this,o);let r=this._grammarRepository.injections(n);r&&r.forEach(A=>{let i=this.getExternalGrammar(A);if(i){let s=i.injectionSelector;s&&OR(t,s,i,this,i)}})}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]=zR(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=oM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Ev.NULL){a=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),l=fi.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null),g;p?g=ul.createRootAndLookUpScopeName(p,l,this):g=ul.createRoot("unknown",l),t=new Ev(null,this._rootId,-1,-1,!1,null,g,g)}else a=!1,t.reset();e=e+`
|
|
77
77
|
`;let r=this.createOnigString(e),A=r.content.length,i=new CX(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=iM(this,r,a,0,t,i,!0,o);return tM(r),{lineLength:A,lineTokens:i,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function zR(e,t){return e=MV(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 ul=class xo{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=fv.push(a,r.scopeNames),o=new xo(o,a,r.encodedTokenAttributes);return o}static createRoot(t,n){return new xo(null,new fv(null,t),n)}static createRootAndLookUpScopeName(t,n,o){let a=o.getMetadataForScope(t),r=new fv(null,t),A=o.themeProvider.themeMatch(r),i=xo.mergeAttributes(n,a,A);return new xo(null,r,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return xo.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,A=0;return o!==null&&(a=o.fontStyle,r=o.foregroundId,A=o.backgroundId),fi.set(t,n.languageId,n.tokenType,null,a,r,A)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return xo._pushAttributed(this,t,n);let o=t.split(/ /g),a=this;for(let r of o)a=xo._pushAttributed(a,r,n);return a}static _pushAttributed(t,n,o){let a=o.getMetadataForScope(n),r=t.scopePath.push(n),A=o.themeProvider.themeMatch(r),i=xo.mergeAttributes(t.tokenAttributes,a,A);return new xo(t,r,i)}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}},Ev=class mi{constructor(t,n,o,a,r,A,i,s){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=r,this.endRule=A,this.nameScopesList=i,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new mi(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:mi._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?ul.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(){mi._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,o,a,r,A,i){return new mi(this,t,n,o,a,r,A,i)}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 mi(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=ul.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new mi(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,o,ul.fromExtension(o,n.contentNameScopesList))}},BX=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):nb(n,rb).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>nb(n,rb).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}},CX=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 A of this._tokenTypeOverrides)A.matcher(r)&&(o=fi.set(o,0,A.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(r))}if(a&&(o=fi.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}},yX=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,fX(e,r,t,n,o,a,this,this._onigLib))}return this._grammars.get(e)}},uM=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new yX(dl.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(dl.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 BX(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,o,a){let r=new ZV(this._syncRegistry,e);for(;r.Q.length>0;)r.Q.map(A=>this._loadSingleGrammar(A.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)}},Ab=Ev.NULL;function bl(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 mr(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function mM(e){return Array.isArray(e)?e:[e]}async function Qv(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function hl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Iv(e){return e==="ansi"||hl(e)}function Bl(e){return e==="none"}function _v(e){return Bl(e)}var wX=/(\r?\n)/g;function Ic(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(wX),o=0,a=[];for(let r=0;r<n.length;r+=2){let A=t?n[r]+(n[r+1]||""):n[r];a.push([A,o]),o+=n[r].length,o+=n[r+1]?.length||0}return a}var dM={light:"#333333",dark:"#bbbbbb"},lM={light:"#fffffe",dark:"#1e1e1e"},pM="__shiki_resolved";function ib(e){if(e?.[pM])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 i=t.settings?t.settings.find(s=>!s.name&&!s.scope):void 0;i?.settings?.foreground&&(o=i.settings.foreground),i?.settings?.background&&(n=i.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"?dM.light:dM.dark),n||(n=t.type==="light"?lM.light:lM.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 A(i){if(r.has(i))return r.get(i);a+=1;let s=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${s}`]?A(i):(r.set(i,s),s)}t.settings=t.settings.map(i=>{let s=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),c=i.settings?.background&&!i.settings.background.startsWith("#");if(!s&&!c)return i;let u={...i,settings:{...i.settings}};if(s){let l=A(i.settings.foreground);t.colorReplacements[l]=i.settings.foreground,u.settings.foreground=l}if(c){let l=A(i.settings.background);t.colorReplacements[l]=i.settings.background,u.settings.background=l}return u});for(let i of Object.keys(t.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!t.colors[i]?.startsWith("#")){let s=A(t.colors[i]);t.colorReplacements[s]=t.colors[i],t.colors[i]=s}return Object.defineProperty(t,pM,{enumerable:!1,writable:!1,value:!0}),t}async function fM(e){return[...new Set((await Promise.all(e.filter(t=>!Iv(t)).map(async t=>await Qv(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function bM(e){return(await Promise.all(e.map(async t=>_v(t)?null:ib(await Qv(t))))).filter(t=>!!t)}function hM(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 Le(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var EX=class extends uM{_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=ib(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=dl.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=hM(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(A=>n.map(([i])=>i).includes(A)):!1).filter(a=>!n.includes(a));throw new Le(`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))}},kX=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}},fl=0;function vv(e){fl+=1,e.warnings!==!1&&fl>=10&&fl%10===0&&console.warn(`[Shiki] ${fl} 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 Le("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(ib),a=new EX(new kX(e.engine,n),o,n,e.langAlias),r;function A(f){return hM(f,e.langAlias)}function i(f){C();let h=a.getGrammar(typeof f=="string"?f:f.name);if(!h)throw new Le(`Language \`${f}\` not found, you may need to load it first`);return h}function s(f){if(f==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();let h=a.getTheme(f);if(!h)throw new Le(`Theme \`${f}\` not found, you may need to load it first`);return h}function c(f){C();let h=s(f);return r!==f&&(a.setTheme(h),r=f),{theme:h,colorMap:a.getColorMap()}}function u(){return C(),a.getLoadedThemes()}function l(){return C(),a.getLoadedLanguages()}function p(...f){C(),a.loadLanguages(f.flat(1))}async function g(...f){return p(await fM(f))}function m(...f){C();for(let h of f.flat(1))a.loadTheme(h)}async function B(...f){return C(),m(await bM(f))}function C(){if(t)throw new Le("Shiki instance has been disposed")}function b(){t||(t=!0,a.dispose(),fl-=1)}return{setTheme:c,getTheme:s,getLanguage:i,getLoadedThemes:u,getLoadedLanguages:l,resolveLangAlias:A,loadLanguage:g,loadLanguageSync:p,loadTheme:B,loadThemeSync:m,dispose:b,[Symbol.dispose]:b}}async function xv(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,o]=await Promise.all([bM(e.themes||[]),fM(e.langs||[]),e.engine]);return vv({...e,themes:t,langs:n,engine:o})}var BM=new WeakMap;function Cl(e,t){BM.set(e,t)}function _c(e){return BM.get(e)}var sb=class CM{_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 CM(Object.fromEntries(mM(n).map(o=>[o,Ab])),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 QX(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function QX(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 IX(e,t){if(!(e instanceof sb))throw new Le("Invalid grammar state");return e.getInternalStack(t)}var _X=/,/,vX=/ /;function Dv(e,t,n={}){let{theme:o=e.getLoadedThemes()[0]}=n;if(hl(e.resolveLangAlias(n.lang||"text"))||Bl(o))return Ic(t).map(i=>[{content:i[0],offset:i[1]}]);let{theme:a,colorMap:r}=e.setTheme(o),A=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==A.name)throw new Le(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${A.name}"`);if(!n.grammarState.themes.includes(a.name))throw new Le(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return wM(t,A,a,r,n)}function yM(...e){if(e.length===2)return _c(e[1]);let[t,n,o={}]=e,{lang:a="text",theme:r=t.getLoadedThemes()[0]}=o;if(hl(a)||Bl(r))throw new Le("Plain language does not have grammar state");if(a==="ansi")throw new Le("ANSI language does not have grammar state");let{theme:A,colorMap:i}=t.setTheme(r),s=t.getLanguage(a);return new sb(Fv(n,s,A,i,o).stateStack,s.name,A.name)}function wM(e,t,n,o,a){let r=Fv(e,t,n,o,a),A=new sb(r.stateStack,t.name,n.name);return Cl(r.tokens,A),r.tokens}function Fv(e,t,n,o,a){let r=bl(n,a),{tokenizeMaxLineLength:A=0,tokenizeTimeLimit:i=500}=a,s=Ic(e),c=a.grammarState?IX(a.grammarState,n.name)??Ab:a.grammarContextCode!=null?Fv(a.grammarContextCode,t,n,o,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ab,u=[],l=[];for(let p=0,g=s.length;p<g;p++){let[m,B]=s[p];if(m===""){u=[],l.push([]);continue}if(A>0&&m.length>=A){u=[],l.push([{content:m,offset:B,color:"",fontStyle:0}]);continue}let C,b,f;a.includeExplanation&&(C=t.tokenizeLine(m,c,i),b=C.tokens,f=0);let h=t.tokenizeLine2(m,c,i),y=h.tokens.length/2;for(let k=0;k<y;k++){let G=h.tokens[2*k],F=k+1<y?h.tokens[2*k+2]:m.length;if(G===F)continue;let T=h.tokens[2*k+1],W=mr(o[fi.getForeground(T)],r),Ae=fi.getFontStyle(T),en={content:m.substring(G,F),offset:B+G,color:W,fontStyle:Ae};if(a.includeExplanation){let ja=[];if(a.includeExplanation!=="scopeName")for(let da of n.settings){let bn;switch(typeof da.scope){case"string":bn=da.scope.split(_X).map(bh=>bh.trim());break;case"object":bn=da.scope;break;default:continue}ja.push({settings:da,selectors:bn.map(bh=>bh.split(vX))})}en.explanation=[];let oo=0;for(;G+oo<F;){let da=b[f],bn=m.substring(da.startIndex,da.endIndex);oo+=bn.length,en.explanation.push({content:bn,scopes:a.includeExplanation==="scopeName"?xX(da.scopes):DX(ja,da.scopes)}),f+=1}}u.push(en)}l.push(u),u=[],c=h.ruleStack}return{tokens:l,stateStack:c}}function xX(e){return e.map(t=>({scopeName:t}))}function DX(e,t){let n=[];for(let o=0,a=t.length;o<a;o++){let r=t[o];n[o]={scopeName:r,themeMatches:SX(e,r,t.slice(0,o))}}return n}function gM(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function FX(e,t,n){if(!gM(e.at(-1),t))return!1;let o=e.length-2,a=n.length-1;for(;o>=0&&a>=0;)gM(e[o],n[a])&&(o-=1),a-=1;return o===-1}function SX(e,t,n){let o=[];for(let{selectors:a,settings:r}of e)for(let A of a)if(FX(A,t,n)){o.push(r);break}return o}function cb(e,t,n,o=Dv){let a=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),r=a.map(c=>{let u=o(e,t,{...n,theme:c.theme});return{tokens:u,state:_c(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),A=LX(...r.map(c=>c.tokens)),i=A[0].map((c,u)=>c.map((l,p)=>{let g={content:l.content,variants:{},offset:l.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=l.explanation),A.forEach((m,B)=>{let{content:C,explanation:b,offset:f,...h}=m[u][p];g.variants[a[B].color]=h}),g})),s=r[0].state?new sb(Object.fromEntries(r.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),r[0].state.lang):void 0;return s&&Cl(i,s),i}function LX(...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 A=a.map(()=>0),i=a.map(s=>s[0]);for(;i.every(s=>s);){let s=Math.min(...i.map(c=>c.content.length));for(let c=0;c<n;c++){let u=i[c];u.content.length===s?(r[c].push(u),A[c]+=1,i[c]=a[c][A[c]]):(r[c].push({...u,content:u.content.slice(0,s)}),i[c]={...u,content:u.content.slice(s),offset:u.offset+s})}}}return t}var EM=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var fr=class{constructor(t,n,o){this.normal=n,this.property=t,o&&(this.space=o)}};fr.prototype.normal={};fr.prototype.property={};fr.prototype.space=void 0;function Sv(e,t){let n={},o={};for(let a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new fr(n,o,t)}function yl(e){return e.toLowerCase()}var Wt=class{constructor(t,n){this.attribute=n,this.property=t}};Wt.prototype.attribute="";Wt.prototype.booleanish=!1;Wt.prototype.boolean=!1;Wt.prototype.commaOrSpaceSeparated=!1;Wt.prototype.commaSeparated=!1;Wt.prototype.defined=!1;Wt.prototype.mustUseProperty=!1;Wt.prototype.number=!1;Wt.prototype.overloadedBoolean=!1;Wt.prototype.property="";Wt.prototype.spaceSeparated=!1;Wt.prototype.space=void 0;var wl={};x(wl,{boolean:()=>se,booleanish:()=>Ct,commaOrSpaceSeparated:()=>Tn,commaSeparated:()=>pA,number:()=>R,overloadedBoolean:()=>ub,spaceSeparated:()=>$e});var $X=0,se=bi(),Ct=bi(),ub=bi(),R=bi(),$e=bi(),pA=bi(),Tn=bi();function bi(){return 2**++$X}var Lv=Object.keys(wl),hi=class extends Wt{constructor(t,n,o,a){let r=-1;if(super(t,n),kM(this,"space",a),typeof o=="number")for(;++r<Lv.length;){let A=Lv[r];kM(this,Lv[r],(o&wl[A])===wl[A])}}};hi.prototype.defined=!0;function kM(e,t,n){n&&(e[t]=n)}function xa(e){let t={},n={};for(let[o,a]of Object.entries(e.properties)){let r=new hi(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(r.mustUseProperty=!0),t[o]=r,n[yl(o)]=o,n[yl(r.attribute)]=o}return new fr(t,n,e.space)}var $v=xa({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:$e,ariaCurrent:null,ariaDescribedBy:$e,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:$e,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:$e,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$e,ariaLevel:R,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:$e,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:$e,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:Ct,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function db(e,t){return t in e?e[t]:t}function lb(e,t){return db(e,t.toLowerCase())}var QM=xa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pA,acceptCharset:$e,accessKey:$e,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:$e,autoFocus:se,autoPlay:se,blocking:$e,capture:null,charSet:null,checked:se,cite:null,className:$e,cols:R,colSpan:null,content:null,contentEditable:Ct,controls:se,controlsList:$e,coords:R|pA,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:ub,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:$e,height:R,hidden:ub,high:R,href:null,hrefLang:null,htmlFor:$e,httpEquiv:$e,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:$e,itemRef:$e,itemScope:se,itemType:$e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:R,pattern:null,ping:$e,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:$e,required:se,reversed:se,rows:R,rowSpan:R,sandbox:$e,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:Ct,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$e,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:lb});var IM=xa({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:Tn,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:$e,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:pA,g2:pA,glyphName:pA,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tn,rev:Tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tn,requiredFeatures:Tn,requiredFonts:Tn,requiredFormats:Tn,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tn,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:db});var Nv=xa({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 Rv=xa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lb});var Mv=xa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var NX=/[A-Z]/g,_M=/-[a-z]/g,RX=/^data[-\w.:]+$/i;function jv(e,t){let n=yl(t),o=t,a=Wt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&RX.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(_M,jX);o="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!_M.test(r)){let A=r.replace(NX,MX);A.charAt(0)!=="-"&&(A="-"+A),t="data"+A}}a=hi}return new a(o,t)}function MX(e){return"-"+e.toLowerCase()}function jX(e){return e.charAt(1).toUpperCase()}var vM=Sv([$v,QM,Nv,Rv,Mv],"html"),pb=Sv([$v,IM,Nv,Rv,Mv],"svg");var xM={}.hasOwnProperty;function DM(e,t){let n=t||{};function o(a,...r){let A=o.invalid,i=o.handlers;if(a&&xM.call(a,e)){let s=String(a[e]);A=xM.call(i,s)?i[s]:o.unknown}if(A)return A.call(this,a,...r)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}var GX=/["&'<>`]/g,HX=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PX=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,UX=/[|\\{}()[\]^$+*?.]/g,FM=new WeakMap;function SM(e,t){if(e=e.replace(t.subset?TX(t.subset):GX,o),t.subset||t.escapeOnly)return e;return e.replace(HX,n).replace(PX,o);function n(a,r,A){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,A.charCodeAt(r+2),t)}function o(a,r,A){return t.format(a.charCodeAt(0),A.charCodeAt(r+1),t)}}function TX(e){let t=FM.get(e);return t||(t=qX(e),FM.set(e,t)),t}function qX(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(UX,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var OX=/[\dA-Fa-f]/;function LM(e,t,n){let o="&#x"+e.toString(16).toUpperCase();return n&&t&&!OX.test(String.fromCharCode(t))?o:o+";"}var zX=/\d/;function $M(e,t,n){let o="&#"+String(e);return n&&t&&!zX.test(String.fromCharCode(t))?o:o+";"}var NM=["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 gb={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 RM=["cent","copy","divide","gt","lt","not","para","times"];var MM={}.hasOwnProperty,Gv={},mb;for(mb in gb)MM.call(gb,mb)&&(Gv[gb[mb]]=mb);var YX=/[^\dA-Za-z]/;function jM(e,t,n,o){let a=String.fromCharCode(e);if(MM.call(Gv,a)){let r=Gv[a],A="&"+r;return n&&NM.includes(r)&&!RM.includes(r)&&(!o||t&&t!==61&&YX.test(String.fromCharCode(t)))?A:A+";"}return""}function GM(e,t,n){let o=LM(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=jM(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let r=$M(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function br(e,t){return SM(e,Object.assign({format:GM},t))}var KX=/^>|^->|<!--|-->|--!>|<!-$/g,JX=[">"],WX=["<",">"];function HM(e,t,n,o){return o.settings.bogusComments?"<?"+br(e.value,Object.assign({},o.settings.characterReferences,{subset:JX}))+">":"<!--"+e.value.replace(KX,a)+"-->";function a(r){return br(r,Object.assign({},o.settings.characterReferences,{subset:WX}))}}function PM(e,t,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Hv(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 UM(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function TM(e){return e.join(" ").trim()}var ZX=/[ \t\n\f\r]/g;function Bi(e){return typeof e=="object"?e.type==="text"?qM(e.value):!1:qM(e)}function qM(e){return e.replace(ZX,"")===""}var xt=OM(1),Pv=OM(-1),VX=[];function OM(e){return t;function t(n,o,a){let r=n?n.children:VX,A=(o||0)+e,i=r[A];if(!a)for(;i&&Bi(i);)A+=e,i=r[A];return i}}var XX={}.hasOwnProperty;function fb(e){return t;function t(n,o,a){return XX.call(e,n.tagName)&&e[n.tagName](n,o,a)}}var El=fb({body:tee,caption:Uv,colgroup:Uv,dd:ree,dt:oee,head:Uv,html:eee,li:aee,optgroup:Aee,option:iee,p:nee,rp:zM,rt:zM,tbody:cee,td:YM,tfoot:uee,th:YM,thead:see,tr:dee});function Uv(e,t,n){let o=xt(n,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Bi(o.value.charAt(0)))}function eee(e,t,n){let o=xt(n,t);return!o||o.type!=="comment"}function tee(e,t,n){let o=xt(n,t);return!o||o.type!=="comment"}function nee(e,t,n){let o=xt(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 aee(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&o.tagName==="li"}function oee(e,t,n){let o=xt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function ree(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function zM(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Aee(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function iee(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function see(e,t,n){let o=xt(n,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function cee(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function uee(e,t,n){return!xt(n,t)}function dee(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&o.tagName==="tr"}function YM(e,t,n){let o=xt(n,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var KM=fb({body:gee,colgroup:mee,head:pee,html:lee,tbody:fee});function lee(e){let t=xt(e,-1);return!t||t.type!=="comment"}function pee(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 gee(e){let t=xt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Bi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function mee(e,t,n){let o=Pv(n,t),a=xt(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&El(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function fee(e,t,n){let o=Pv(n,t),a=xt(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&El(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}var bb={name:[[`
|
|
78
78
|
\f\r &/=>`.split(""),`
|
|
79
79
|
\f\r "&'/=>\``.split("")],[`\0
|
|
@@ -83,7 +83,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
83
83
|
\f\r "&'<=>\``.split("")],[`\0
|
|
84
84
|
\f\r "&'<=>\``.split(""),`\0
|
|
85
85
|
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function JM(e,t,n,o){let a=o.schema,r=a.space==="svg"?!1:o.settings.omitOptionalTags,A=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase()),i=[],s;a.space==="html"&&e.tagName==="svg"&&(o.schema=pb);let c=bee(o,e.properties),u=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,u&&(A=!1),(c||!r||!KM(e,t,n))&&(i.push("<",e.tagName,c?" "+c:""),A&&(a.space==="svg"||o.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!o.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(u),!A&&(!r||!El(e,t,n))&&i.push("</"+e.tagName+">"),i.join("")}function bee(e,t){let n=[],o=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){let r=hee(e,a,t[a]);r&&n.push(r)}}for(;++o<n.length;){let r=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&r!=='"'&&r!=="'"&&(n[o]+=" ")}return n.join("")}function hee(e,t,n){let o=jv(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,r=e.settings.allowDangerousCharacters?0:1,A=e.quote,i;if(o.overloadedBoolean&&(n===o.attribute||n==="")?n=!0:(o.boolean||o.overloadedBoolean)&&(typeof n!="string"||n===o.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";let s=br(o.attribute,Object.assign({},e.settings.characterReferences,{subset:bb.name[a][r]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?UM:TM)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(i=br(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:bb.unquoted[a][r]}))),i!==n&&(e.settings.quoteSmart&&Hv(n,A)>Hv(n,e.alternative)&&(A=e.alternative),i=A+br(n,Object.assign({},e.settings.characterReferences,{subset:(A==="'"?bb.single:bb.double)[a][r],attribute:!0}))+A),s+(i&&"="+i))}var Bee=["<","&"];function hb(e,t,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:br(e.value,Object.assign({},o.settings.characterReferences,{subset:Bee}))}function WM(e,t,n,o){return o.settings.allowDangerousHtml?e.value:hb(e,t,n,o)}function ZM(e,t,n,o){return o.all(e)}var VM=DM("type",{invalid:Cee,unknown:yee,handlers:{comment:HM,doctype:PM,element:JM,raw:WM,root:ZM,text:hb}});function Cee(e){throw new Error("Expected node, not `"+e+"`")}function yee(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var wee={},Eee={},kee=[];function Tv(e,t){let n=t||wee,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:Qee,all:Iee,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||EM,characterReferences:n.characterReferences||Eee,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?pb:vM,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Qee(e,t,n){return VM(e,t,n,this)}function Iee(e){let t=[],n=e&&e.children||kee,o=-1;for(;++o<n.length;)t[o]=this.one(n[o],o,e);return t.join("")}var XM=/\s+/g;function nj(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(XM)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(XM);for(let o of n)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}var _ee=/:?lang=["']([^"']+)["']/g,vee=/(?:```|~~~)([\w-]+)/g,xee=/\\begin\{([\w-]+)\}/g,Dee=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function Fee(e){let t=Ic(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t.at(-1).length};let r=a,A=0;for(let i of t){if(r<i.length)break;r-=i.length,A++}return{line:A,character:r}}function o(a,r){let A=0;for(let i=0;i<a;i++)A+=t[i].length;return A+=r,A}return{lines:t,indexToPos:n,posToIndex:o}}function aj(e,t,n){let o=new Set;for(let r of e.matchAll(_ee)){let A=r[1].toLowerCase().trim();A&&o.add(A)}for(let r of e.matchAll(vee)){let A=r[1].toLowerCase().trim();A&&o.add(A)}for(let r of e.matchAll(xee)){let A=r[1].toLowerCase().trim();A&&o.add(A)}for(let r of e.matchAll(Dee)){let A=r[1].toLowerCase().trim(),i=A.includes("/")?A.split("/").pop():A;i&&o.add(i)}if(!n)return[...o];let a=n.getBundledLanguages();return[...o].filter(r=>r&&a[r])}var See=["color","background-color"];function Lee(e,t){let n=0,o=[];for(let a of t)a>n&&o.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&o.push({...e,content:e.content.slice(n),offset:e.offset+n}),o}function $ee(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((o,a)=>o-a);return n.length?e.map(o=>o.flatMap(a=>{let r=n.filter(A=>a.offset<A&&A<a.offset+a.content.length).map(A=>A-a.offset).sort((A,i)=>A-i);return r.length?Lee(a,r):a})):e}function Nee(e,t,n,o,a="css-vars"){let r={content:e.content,explanation:e.explanation,offset:e.offset},A=t.map(u=>Bb(e.variants[u])),i=new Set(A.flatMap(u=>Object.keys(u))),s={},c=(u,l)=>{let p=l==="color"?"":l==="background-color"?"-bg":`-${l}`;return n+t[u]+(l==="color"?"":p)};return A.forEach((u,l)=>{for(let p of i){let g=u[p]||"inherit";if(l===0&&o&&See.includes(p))if(o==="light-dark()"&&A.length>1){let m=t.findIndex(C=>C==="light"),B=t.findIndex(C=>C==="dark");if(m===-1||B===-1)throw new Le('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');s[p]=`light-dark(${A[m][p]||"inherit"}, ${A[B][p]||"inherit"})`,a==="css-vars"&&(s[c(l,p)]=g)}else s[p]=g;else a==="css-vars"&&(s[c(l,p)]=g)}}),r.htmlStyle=s,r}function Bb(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&cn.Italic&&(t["font-style"]="italic"),e.fontStyle&cn.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&cn.Underline&&n.push("underline"),e.fontStyle&cn.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Ov(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Ree(){let e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new Le(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...a.indexToPos(i),offset:i}}else{let s=a.lines[i.line];if(s===void 0)throw new Le(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${a.lines.length}`);let c=i.character;if(c<0&&(c=s.length+c),c<0||c>s.length)throw new Le(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${s.length}`);return{...i,character:c,offset:a.posToIndex(i.line,c)}}};var o=r;let a=Fee(n.source),A=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));Mee(A),e.set(n.meta,{decorations:A,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return $ee(n,t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]))},code(n){if(!this.options.decorations?.length)return;let o=t(this),a=[...n.children].filter(u=>u.type==="element"&&u.tagName==="span");if(a.length!==o.converter.lines.length)throw new Le(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function r(u,l,p,g){let m=a[u],B="",C=-1,b=-1;if(l===0&&(C=0),p===0&&(b=0),p===Number.POSITIVE_INFINITY&&(b=m.children.length),C===-1||b===-1)for(let h=0;h<m.children.length;h++)B+=oj(m.children[h]),C===-1&&B.length===l&&(C=h+1),b===-1&&B.length===p&&(b=h+1);if(C===-1)throw new Le(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(b===-1)throw new Le(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);let f=m.children.slice(C,b);if(!g.alwaysWrap&&f.length===m.children.length)i(m,g,"line");else if(!g.alwaysWrap&&f.length===1&&f[0].type==="element")i(f[0],g,"token");else{let h={type:"element",tagName:"span",properties:{},children:f};i(h,g,"wrapper"),m.children.splice(C,f.length,h)}}function A(u,l){a[u]=i(a[u],l,"line")}function i(u,l,p){let g=l.properties||{},m=l.transform||(B=>B);return u.tagName=l.tagName||"span",u.properties={...u.properties,...g,class:u.properties.class},l.properties?.class&&nj(u,l.properties.class),u=m(u,p)||u,u}let s=[],c=o.decorations.sort((u,l)=>l.start.offset-u.start.offset||u.end.offset-l.end.offset);for(let u of c){let{start:l,end:p}=u;if(l.line===p.line)r(l.line,l.character,p.character,u);else if(l.line<p.line){r(l.line,l.character,Number.POSITIVE_INFINITY,u);for(let g=l.line+1;g<p.line;g++)s.unshift(()=>A(g,u));r(p.line,0,p.character,u)}}s.forEach(u=>u())}}}function Mee(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Le(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let o=t+1;o<e.length;o++){let a=e[o],r=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,A=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,i=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,s=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(r||A||i||s){if(r&&A||i&&s||i&&n.start.offset===n.end.offset||A&&a.start.offset===a.end.offset)continue;throw new Le(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function oj(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(oj).join(""):""}var jee=[Ree()];function Cb(e){let t=Gee(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...jee]}function Gee(e){let t=[],n=[],o=[];for(let a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:o.push(a)}return{pre:t,post:n,normal:o}}var Ci=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],qv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Hee(e,t){let n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){let o=e.indexOf("m",n);if(o!==-1)return{sequence:e.substring(n+2,o).split(";"),startPosition:n,position:o+1}}return{position:e.length}}function ej(e){let t=e.shift();if(t==="2"){let n=e.splice(0,3).map(o=>Number.parseInt(o));return n.length!==3||n.some(o=>Number.isNaN(o))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){let n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Pee(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let o=Number.parseInt(n);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)qv[o]&&t.push({type:"setDecoration",value:qv[o]});else if(o<=29){let a=qv[o-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ci[o-30]}});else if(o===38){let a=ej(e);a&&t.push({type:"setForegroundColor",value:a})}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ci[o-40]}});else if(o===48){let a=ej(e);a&&t.push({type:"setBackgroundColor",value:a})}else o===49?t.push({type:"resetBackgroundColor"}):o===53?t.push({type:"setDecoration",value:"overline"}):o===55?t.push({type:"resetDecoration",value:"overline"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ci[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ci[o-100+8]}})}return t}function Uee(){let e=null,t=null,n=new Set;return{parse(o){let a=[],r=0;do{let A=Hee(o,r),i=A.sequence?o.substring(r,A.startPosition):o.substring(r);if(i.length>0&&a.push({value:i,foreground:e,background:t,decorations:new Set(n)}),A.sequence){let s=Pee(A.sequence);for(let c of s)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(let c of s)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}r=A.position}while(r<o.length);return a}}}var Tee={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function qee(e=Tee){function t(i){return e[i]}function n(i){return`#${i.map(s=>Math.max(0,Math.min(s,255)).toString(16).padStart(2,"0")).join("")}`}let o;function a(){if(o)return o;o=[];for(let c=0;c<Ci.length;c++)o.push(t(Ci[c]));let i=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let l=0;l<6;l++)o.push(n([i[c],i[u],i[l]]));let s=8;for(let c=0;c<24;c++,s+=10)o.push(n([s,s,s]));return o}function r(i){return a()[i]}function A(i){switch(i.type){case"named":return t(i.name);case"rgb":return n(i.rgb);case"table":return r(i.index)}}return{value:A}}var Oee=/#([0-9a-f]{3,8})/i,zee=/var\((--[\w-]+-ansi-[\w-]+)\)/,Yee={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Kee(e,t,n){let o=bl(e,n),a=Ic(t),r=qee(Object.fromEntries(Ci.map(i=>{let s=`terminal.ansi${i[0].toUpperCase()}${i.substring(1)}`;return[i,e.colors?.[s]||Yee[i]]}))),A=Uee();return a.map(i=>A.parse(i[0]).map(s=>{let c,u;s.decorations.has("reverse")?(c=s.background?r.value(s.background):e.bg,u=s.foreground?r.value(s.foreground):e.fg):(c=s.foreground?r.value(s.foreground):e.fg,u=s.background?r.value(s.background):void 0),c=mr(c,o),u=mr(u,o),s.decorations.has("dim")&&(c=Jee(c));let l=cn.None;return s.decorations.has("bold")&&(l|=cn.Bold),s.decorations.has("italic")&&(l|=cn.Italic),s.decorations.has("underline")&&(l|=cn.Underline),s.decorations.has("strikethrough")&&(l|=cn.Strikethrough),{content:s.value,offset:i[1],color:c,bgColor:u,fontStyle:l}}))}function Jee(e){let t=e.match(Oee);if(t){let o=t[1];if(o.length===8){let a=Math.round(Number.parseInt(o.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${o.slice(0,6)}${a}`}else{if(o.length===6)return`#${o}80`;if(o.length===4){let a=o[0],r=o[1],A=o[2],i=o[3];return`#${a}${a}${r}${r}${A}${A}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(o.length===3){let a=o[0],r=o[1],A=o[2];return`#${a}${a}${r}${r}${A}${A}80`}}}let n=e.match(zee);return n?`var(${n[1]}-dim)`:e}function zv(e,t,n={}){let o=e.resolveLangAlias(n.lang||"text"),{theme:a=e.getLoadedThemes()[0]}=n;if(!hl(o)&&!Bl(a)&&o==="ansi"){let{theme:r}=e.setTheme(a);return Kee(r,t,n)}return Dv(e,t,n)}function yb(e,t,n){let o,a,r,A,i,s;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:l="css-vars"}=n,p=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,f)=>b.color===c?-1:f.color===c?1:0);if(p.length===0)throw new Le("`themes` option must not be empty");let g=cb(e,t,n,zv);if(s=_c(g),c&&c!=="light-dark()"&&!p.some(b=>b.color===c))throw new Le(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=p.map(b=>e.getTheme(b.theme)),B=p.map(b=>b.color);r=g.map(b=>b.map(f=>Nee(f,B,u,c,l))),s&&Cl(r,s);let C=p.map(b=>bl(b.theme,n));a=tj(p,m,C,u,c,"fg",l),o=tj(p,m,C,u,c,"bg",l),A=`shiki-themes ${m.map(b=>b.name).join(" ")}`,i=c?void 0:[a,o].join(";")}else if("theme"in n){let c=bl(n.theme,n);r=zv(e,t,n);let u=e.getTheme(n.theme);o=mr(u.bg,c),a=mr(u.fg,c),A=u.name,s=_c(r)}else throw new Le("Invalid options, either `theme` or `themes` must be provided");return{tokens:r,fg:a,bg:o,themeName:A,rootStyle:i,grammarState:s}}function tj(e,t,n,o,a,r,A){return e.map((i,s)=>{let c=mr(t[s][r],n[s])||"inherit",u=`${o+i.color}${r==="bg"?"-bg":""}:${c}`;if(s===0&&a){if(a==="light-dark()"&&e.length>1){let l=e.findIndex(g=>g.color==="light"),p=e.findIndex(g=>g.color==="dark");if(l===-1||p===-1)throw new Le('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${mr(t[l][r],n[l])||"inherit"}, ${mr(t[p][r],n[p])||"inherit"});${u}`}return c}return A==="css-vars"?u:null}).filter(i=>!!i).join(";")}var rj=/^\s+$/,Wee=/^(\s*)(.*?)(\s*)$/;function wb(e,t,n,o={meta:{},options:n,codeToHast:(a,r)=>wb(e,a,r),codeToTokens:(a,r)=>yb(e,a,r)}){let a=t;for(let m of Cb(n))a=m.preprocess?.call(o,a,n)||a;let{tokens:r,fg:A,bg:i,themeName:s,rootStyle:c,grammarState:u}=yb(e,a,n),{mergeWhitespaces:l=!0,mergeSameStyleTokens:p=!1}=n;l===!0?r=Vee(r):l==="never"&&(r=Xee(r)),p&&(r=ete(r));let g={...o,get source(){return a}};for(let m of Cb(n))r=m.tokens?.call(g,r)||r;return Zee(r,{...n,fg:A,bg:i,themeName:s,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},g,u)}function Zee(e,t,n,o=_c(e)){let a=Cb(t),r=[],A={type:"root",children:[]},{structure:i="classic",tabindex:s="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),s!==!1&&s!=null&&(c.tabindex=s.toString());for(let[B,C]of Object.entries(t.meta||{}))B.startsWith("_")||(c[B]=C);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},l={type:"element",tagName:"code",properties:{},children:r},p=[],g={...n,structure:i,addClassToHast:nj,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return A},get pre(){return u},get code(){return l},get lines(){return p}};if(e.forEach((B,C)=>{C&&(i==="inline"?A.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&r.push({type:"text",value:`
|
|
86
|
-
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},f=0;for(let h of B){let y={type:"element",tagName:"span",properties:{...h.htmlAttrs},children:[{type:"text",value:h.content}]},k=Ov(h.htmlStyle||Bb(h));k&&(y.properties.style=k);for(let G of a)y=G?.span?.call(g,y,C+1,f,b,h)||y;i==="inline"?A.children.push(y):i==="classic"&&b.children.push(y),f+=h.content.length}if(i==="classic"){for(let h of a)b=h?.line?.call(g,b,C+1)||b;p.push(b),r.push(b)}else i==="inline"&&p.push(b)}),i==="classic"){for(let B of a)l=B?.code?.call(g,l)||l;u.children.push(l);for(let B of a)u=B?.pre?.call(g,u)||u;A.children.push(u)}else if(i==="inline"){let B=[],C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let f of A.children)f.type==="element"&&f.tagName==="br"?(B.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(f.type==="element"||f.type==="text")&&C.children.push(f);B.push(C);let b={type:"element",tagName:"code",properties:{},children:B};for(let f of a)b=f?.code?.call(g,b)||b;A.children=[];for(let f=0;f<b.children.length;f++){f>0&&A.children.push({type:"element",tagName:"br",properties:{},children:[]});let h=b.children[f];h.type==="element"&&A.children.push(...h.children)}}let m=A;for(let B of a)m=B?.root?.call(g,m)||m;return o&&Cl(m,o),m}function Vee(e){return e.map(t=>{let n=[],o="",a;return t.forEach((r,A)=>{let i=!(r.fontStyle&&(r.fontStyle&cn.Underline||r.fontStyle&cn.Strikethrough));i&&rj.test(r.content)&&t[A+1]?(a===void 0&&(a=r.offset),o+=r.content):o?(i?n.push({...r,offset:a,content:o+r.content}):n.push({content:o,offset:a},r),a=void 0,o=""):n.push(r)}),n})}function Xee(e){return e.map(t=>t.flatMap(n=>{if(rj.test(n.content))return n;let o=n.content.match(Wee);if(!o)return n;let[,a,r,A]=o;if(!a&&!A)return n;let i=[{...n,offset:n.offset+a.length,content:r}];return a&&i.unshift({content:a,offset:n.offset}),A&&i.push({content:A,offset:n.offset+a.length+r.length}),i}))}function ete(e){return e.map(t=>{let n=[];for(let o of t){if(n.length===0){n.push({...o});continue}let a=n.at(-1),r=Ov(a.htmlStyle||Bb(a)),A=Ov(o.htmlStyle||Bb(o)),i=a.fontStyle&&(a.fontStyle&cn.Underline||a.fontStyle&cn.Strikethrough),s=o.fontStyle&&(o.fontStyle&cn.Underline||o.fontStyle&cn.Strikethrough);!i&&!s&&r===A?a.content+=o.content:n.push({...o})}return n})}var tte=Tv;function nte(e,t,n){let o={meta:{},options:n,codeToHast:(r,A)=>wb(e,r,A),codeToTokens:(r,A)=>yb(e,r,A)},a=tte(wb(e,t,n,o));for(let r of Cb(n))a=r.postprocess?.call(o,a,n)||a;return a}async function ate(e){let t=await xv(e);return{getLastGrammarState:(...n)=>yM(t,...n),codeToTokensBase:(n,o)=>zv(t,n,o),codeToTokensWithThemes:(n,o)=>cb(t,n,o),codeToTokens:(n,o)=>yb(t,n,o),codeToHast:(n,o)=>wb(t,n,o),codeToHtml:(n,o)=>nte(t,n,o),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Aj(e){let t=e.langs,n=e.themes,o=e.engine;async function a(r){function A(l){if(typeof l=="string"){if(l=r.langAlias?.[l]||l,Iv(l))return[];let p=t[l];if(!p)throw new Le(`Language \`${l}\` is not included in this bundle. You may want to load it from external source.`);return p}return l}function i(l){if(_v(l))return"none";if(typeof l=="string"){let p=n[l];if(!p)throw new Le(`Theme \`${l}\` is not included in this bundle. You may want to load it from external source.`);return p}return l}let s=(r.themes??[]).map(l=>i(l)),c=(r.langs??[]).map(l=>A(l)),u=await ate({engine:r.engine??o(),...r,themes:s,langs:c});return{...u,loadLanguage(...l){return u.loadLanguage(...l.map(A))},loadTheme(...l){return u.loadTheme(...l.map(i))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function ote(e){let t;async function n(o={}){if(t){let a=await t;return await Promise.all([a.loadTheme(...o.themes||[]),a.loadLanguage(...o.langs||[])]),a}else{t=e({...o,themes:[],langs:[]});let a=await t;return await Promise.all([a.loadTheme(...o.themes||[]),a.loadLanguage(...o.langs||[])]),a}}return n}function ij(e,t){let n=ote(e);async function o(a,r){let A=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),i=await t?.guessEmbeddedLanguages?.(a,r.lang,A);return i&&await A.loadLanguage(...i),A}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,r){return(await o(a,r)).codeToHtml(a,r)},async codeToHast(a,r){return(await o(a,r)).codeToHast(a,r)},async codeToTokens(a,r){return(await o(a,r)).codeToTokens(a,r)},async codeToTokensBase(a,r){return(await o(a,r)).codeToTokensBase(a,r)},async codeToTokensWithThemes(a,r){return(await o(a,r)).codeToTokensWithThemes(a,r)},async getLastGrammarState(a,r){return(await n({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(a,r)}}}var mG=[{id:"angular-html",name:"Angular HTML",import:(()=>Promise.resolve().then(()=>(Wv(),dj)))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>Promise.resolve().then(()=>(hj(),bj)))},{id:"astro",name:"Astro",import:(()=>Promise.resolve().then(()=>(kj(),Ej)))},{id:"blade",name:"Blade",import:(()=>Promise.resolve().then(()=>(Dj(),xj)))},{id:"c",name:"C",import:(()=>Promise.resolve().then(()=>(ex(),Fj)))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>Promise.resolve().then(()=>(Lj(),Sj)))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>Promise.resolve().then(()=>(nx(),jj)))},{id:"css",name:"CSS",import:(()=>Promise.resolve().then(()=>(vn(),cj)))},{id:"csv",name:"CSV",import:(()=>Promise.resolve().then(()=>(ox(),Gj)))},{id:"glsl",name:"GLSL",import:(()=>Promise.resolve().then(()=>(Dl(),Nj)))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>Promise.resolve().then(()=>(_b(),Pj)))},{id:"haml",name:"Ruby Haml",import:(()=>Promise.resolve().then(()=>(Tj(),Uj)))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>Promise.resolve().then(()=>(zj(),Oj)))},{id:"html",name:"HTML",import:(()=>Promise.resolve().then(()=>(Ja(),uj)))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>Promise.resolve().then(()=>(vl(),Qj)))},{id:"http",name:"HTTP",import:(()=>Promise.resolve().then(()=>(Jj(),Kj)))},{id:"hurl",name:"Hurl",import:(()=>Promise.resolve().then(()=>(Zj(),Wj)))},{id:"imba",name:"Imba",import:(()=>Promise.resolve().then(()=>(Xj(),Vj)))},{id:"java",name:"Java",import:(()=>Promise.resolve().then(()=>(Vv(),Ij)))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>Promise.resolve().then(()=>(Dt(),sj)))},{id:"jinja",name:"Jinja",import:(()=>Promise.resolve().then(()=>(a7(),n7)))},{id:"jison",name:"Jison",import:(()=>Promise.resolve().then(()=>(r7(),o7)))},{id:"json",name:"JSON",import:(()=>Promise.resolve().then(()=>(wi(),Bj)))},{id:"json5",name:"JSON5",import:(()=>Promise.resolve().then(()=>(i7(),A7)))},{id:"jsonc",name:"JSON with Comments",import:(()=>Promise.resolve().then(()=>(c7(),s7)))},{id:"jsonl",name:"JSON Lines",import:(()=>Promise.resolve().then(()=>(d7(),u7)))},{id:"jsx",name:"JSX",import:(()=>Promise.resolve().then(()=>(Ax(),Hj)))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>Promise.resolve().then(()=>(m7(),g7)))},{id:"less",name:"Less",import:(()=>Promise.resolve().then(()=>(xb(),f7)))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>Promise.resolve().then(()=>(gx(),b7)))},{id:"marko",name:"Marko",import:(()=>Promise.resolve().then(()=>(B7(),h7)))},{id:"mdc",name:"MDC",import:(()=>Promise.resolve().then(()=>(y7(),C7)))},{id:"mdx",name:"MDX",import:(()=>Promise.resolve().then(()=>(E7(),w7)))},{id:"php",name:"PHP",import:(()=>Promise.resolve().then(()=>(Q7(),k7)))},{id:"postcss",name:"PostCSS",import:(()=>Promise.resolve().then(()=>(Il(),yj)))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>Promise.resolve().then(()=>(_7(),I7)))},{id:"python",name:"Python",aliases:["py"],import:(()=>Promise.resolve().then(()=>(ux(),l7)))},{id:"r",name:"R",import:(()=>Promise.resolve().then(()=>(lx(),p7)))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>Promise.resolve().then(()=>(Ib(),$j)))},{id:"sass",name:"Sass",import:(()=>Promise.resolve().then(()=>(x7(),v7)))},{id:"scss",name:"SCSS",import:(()=>Promise.resolve().then(()=>(Ql(),lj)))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>Promise.resolve().then(()=>(sx(),Yj)))},{id:"sql",name:"SQL",import:(()=>Promise.resolve().then(()=>(mA(),vj)))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>Promise.resolve().then(()=>(fx(),D7)))},{id:"svelte",name:"Svelte",import:(()=>Promise.resolve().then(()=>(S7(),F7)))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>Promise.resolve().then(()=>(q7(),T7)))},{id:"tsx",name:"TSX",import:(()=>Promise.resolve().then(()=>(Qb(),wj)))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>Promise.resolve().then(()=>(Da(),Cj)))},{id:"vue",name:"Vue",import:(()=>Promise.resolve().then(()=>(eG(),X7)))},{id:"vue-html",name:"Vue HTML",import:(()=>Promise.resolve().then(()=>(nG(),tG)))},{id:"vue-vine",name:"Vue Vine",import:(()=>Promise.resolve().then(()=>(oG(),aG)))},{id:"wasm",name:"WebAssembly",import:(()=>Promise.resolve().then(()=>(AG(),rG)))},{id:"wgsl",name:"WGSL",import:(()=>Promise.resolve().then(()=>(sG(),iG)))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>Promise.resolve().then(()=>(uG(),cG)))},{id:"xml",name:"XML",import:(()=>Promise.resolve().then(()=>(Qi(),_j)))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>Promise.resolve().then(()=>(vb(),qj)))}],eae=Object.fromEntries(mG.map(e=>[e.id,e.import])),tae=Object.fromEntries(mG.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),hx={...eae,...tae},nae=Aj({langs:hx,themes:jR,engine:()=>(0,gv.createOnigurumaEngine)(Promise.resolve().then(()=>(gG(),pG)))}),{codeToHtml:fG,codeToHast:fIe,codeToTokensBase:bIe,codeToTokens:hIe,codeToTokensWithThemes:BIe,getSingletonHighlighter:CIe,getLastGrammarState:yIe}=ij(nae,{guessEmbeddedLanguages:aj});var Db=w(_(),1);function Fa(e){if(typeof e!="number"||!Number.isFinite(e))return"";let t=Math.max(0,Math.floor(e));if(t<1e3)return`${t}ms`;if(t<6e4){let a=t/1e3;return`${a.toFixed(a<10?1:0)}s`}let n=[],o=[["mo",2592e6],["d",864e5],["h",36e5],["m",6e4],["s",1e3]];for(let[a,r]of o){let A=Math.floor(t/r);A!==0&&(n.push(`${A}${a}`),t%=r)}return n.join(" ")}function Va(e){return(0,Db.jsx)(Db.Fragment,{children:Fa(e.value)||e.fallback||null})}function $l(e){return Date.parse(e.createdAt)}function xc(e,t,n){return{parts:n,role:t,sourceSeq:e.seq,timestamp:$l(e)}}function aae(e){let t=new Set;for(let n of e){let o=n.data;o.type==="handoff"&&o.triggeringToolCallId&&t.add(o.triggeringToolCallId),o.type==="subagent"&&o.parentToolCallId&&t.add(o.parentToolCallId)}return t}function hr(e){let t=aae(e.events),n=new Map,o=new Map,a=new Map,r=[],A=new Map,i,s=(c,u)=>{if(t.has(u.toolCallId))return;let l="output"in u?u.output:void 0,p=n.get(u.toolCallId);if(p){p.name=u.name,p.status=u.status,u.input!==void 0&&(p.input=u.input),l!==void 0&&(p.output=l),p.startedTimestamp===void 0&&u.startedAt&&(p.startedTimestamp=Date.parse(u.startedAt)),u.status!=="running"&&(p.resultTimestamp=$l(c));return}let g={type:"tool_call",id:u.toolCallId,name:u.name,status:u.status,...u.input===void 0?{}:{input:u.input},...l===void 0?{}:{output:l},...u.status==="running"?{}:{resultTimestamp:$l(c)}},m={...xc(c,"tool",[g]),sourceSeq:u.startedSeq??c.seq,timestamp:u.startedAt?Date.parse(u.startedAt):$l(c)};n.set(u.toolCallId,g),o.set(u.toolCallId,m),r.push(m)};for(let c of e.events){let u=c.data;if(u.type==="message"){let l={...xc(c,u.role,[u.redacted?{type:"text",redacted:!0}:{type:"text",text:u.text}]),...u.eventType?{eventType:u.eventType}:{}};r.push(l),l.role==="user"&&(i=l);continue}if(u.type==="assistant_message"){r.push(xc(c,"assistant",u.parts.map(l=>l.redacted?{type:"reasoning",redacted:!0}:{type:"reasoning",text:l.text})));continue}if(u.type==="turn_lifecycle"&&u.state==="started"){i&&A.set(u.turnId,i);continue}if(u.type==="turn_routed"){let l=A.get(u.turnId);l&&(l.route={modelProfile:u.modelProfile,modelId:u.modelId,reasoningLevel:u.reasoningLevel,...u.confidence!==void 0?{confidence:u.confidence}:{},source:u.source});continue}if(u.type==="turn_context"){let l=A.get(u.turnId);l&&(l.contexts??=[],l.contexts.push({content:u.content,kind:u.kind,loadedAt:c.createdAt,pluginName:u.pluginName,version:u.version}));continue}if(u.type==="tool_calls"){for(let l of u.calls)s(c,l);if(u.assistant){let l=[];for(let p of u.assistant.parts){if(p.type==="reasoning"){l.push(p.redacted?{type:"reasoning",redacted:!0}:{type:"reasoning",text:p.text});continue}if(t.has(p.toolCallId))continue;let g=n.get(p.toolCallId);if(!g)continue;let m=o.get(p.toolCallId);if(m){m.sourceSeq!==c.seq&&(g.startedTimestamp=m.timestamp);let B=r.indexOf(m);B>=0&&r.splice(B,1),o.delete(p.toolCallId)}l.push(g)}l.length>0&&r.push(xc(c,"assistant",l))}continue}if(u.type==="subagent"){let l=`${u.childConversationId}:${u.startedSeq}`,p=a.get(l);if(p){p.status=u.status;continue}let g={type:"subagent",id:l,childConversationId:u.childConversationId,subagentKind:u.subagentKind,status:u.status};a.set(l,g),r.push({...xc(c,"tool",[g]),sourceSeq:u.startedSeq,timestamp:Date.parse(u.startedAt)});continue}if(u.type==="compaction"||u.type==="handoff"){r.push(xc(c,"system",[{type:"context_event",event:u.type==="handoff"?{type:u.type,createdAt:c.createdAt,modelId:u.modelId,modelProfile:u.modelProfile,...u.summary?{summary:u.summary}:{},...u.reasoningLevel?{reasoningLevel:u.reasoningLevel}:{}}:{type:u.type,createdAt:c.createdAt,...u.modelId?{modelId:u.modelId}:{},...u.modelProfile?{modelProfile:u.modelProfile}:{},...u.summary?{summary:u.summary}:{},...u.details?{details:u.details}:{}}}]));continue}if(u.type==="turn_lifecycle"&&u.state==="failed"){r.push({role:u.failureKind==="delivery"?"system":"assistant",outcome:u.failureKind==="delivery"?"delivery_failed":"error",parts:[],sourceSeq:c.seq,timestamp:$l(c)});continue}}return r.sort((c,u)=>c.sourceSeq-u.sourceSeq)}var bG="America/Los_Angeles";function hG(e){bG=e}function BG(){return bG}function oae(e){return e.status==="active"}function rae(e){return e.status==="failed"}function Aae(e){return e.status==="active"}function iae(e){return e.status==="failed"}function Sb(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Xa(e){let t=Sb(e);return t==null?"none":new Date(t).toLocaleString(void 0,{timeZone:BG()})}function fA(e){let t=Sb(e);if(t==null)return"not updated yet";let n=Math.round((t-Date.now())/1e3),o=Math.abs(n),a=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60]];for(let[r,A]of a)if(o>=A)return new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}).format(Math.round(n/A),r);return"just now"}function Cx(e){if(typeof e!="number"||!Number.isFinite(e))return"none";let t=Math.max(0,Math.floor(e));if(t<1e3)return`${t}ms`;let n=t/1e3;if(n<60)return`${n.toFixed(n<10?1:0)}s`;let o=Math.round(n),a=Math.floor(o/60),r=o%60;return`${a}m ${r}s`}function CG(e){if(e===void 0)return;let t=typeof e=="string"?e:JSON.stringify(e);if(t===void 0)return;let n=new TextEncoder().encode(t).byteLength;return n<1e3?`${n}b`:`${Math.round(n/1e3)}kb`}function Lb(e,t){if(!(typeof e!="number"||typeof t!="number"||t<e))return Cx(t-e)}function $b(e){if(typeof e!="number"||!Number.isFinite(e))return"";let t=Math.max(0,Math.floor(e));return t===0?"":Fa(t)}function un(e){return typeof e!="number"||!Number.isFinite(e)?"no timestamp":new Date(e).toLocaleTimeString(void 0,{timeZone:BG()})}function yG(e){if(typeof e!="number"||!Number.isFinite(e))return"0";let t=Math.max(0,Math.floor(e));if(t<1e3)return String(t);let n=[["t",1e12],["b",1e9],["m",1e6],["k",1e3]],[o,a]=n.find(([,i])=>t>=i)??n[1],r=t/a;return`${r>=100||Number.isInteger(r)||r>=10?Math.round(r).toString():(Math.floor(r*10)/10).toFixed(1).replace(/\.0$/,"")}${o}`}function _i(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.floor(e)):void 0}function sae(e){return[e.inputTokens,e.outputTokens,e.cachedInputTokens,e.cacheCreationTokens].reduce((t,n)=>{let o=_i(n);return o===void 0?t:(t??0)+o},void 0)}function cae(e){return hr(e)}function sa(e){let t=e.toLowerCase();return t==="assistant"?"assistant":t==="user"?"user":t==="system"?"system":t.includes("tool")?"tool":"other"}function uae(e){return e.parts.some(t=>t.type!=="text"?!1:t.redacted?!0:typeof t.text=="string"&&t.text.trim().length>0)}function dae(e){let t=sa(e.role);return t!=="user"&&t!=="assistant"?!1:t==="assistant"?uae(e):e.parts.length>0}function Nb(e,t=5){let n=new Map,o=new Set,a=0;for(let A of e.events)if(A.data.type==="tool_calls")for(let i of A.data.calls){if(o.has(i.toolCallId))continue;o.add(i.toolCallId);let s=n.get(i.name)??{count:0,name:i.name};s.count+=1,n.set(i.name,s),a+=1}return{items:[...n.values()].sort((A,i)=>i.count-A.count||A.name.localeCompare(i.name)).slice(0,t),total:a}}function lae(e,t){let n=sa(t.role);return n==="assistant"?Oe():n==="user"?Di(e.actorIdentity)??"User":n==="system"?"System":n==="tool"?"Tool":t.role||"Unknown"}function pae(e){return e.type==="text"&&e.text?new TextEncoder().encode(e.text).byteLength:0}function Rb(e){let n=cae(e).filter(o=>sa(o.role)==="user"&&dae(o));if(n.length>0)return{items:n.map(o=>({author:lae(e,o),bytes:o.parts.reduce((a,r)=>a+pae(r),0)})),total:n.length}}function te(e){return yG(e)}function vi(e){if(!e)return;let t={totalTokens:0};t.reasoningTokens=_i(e.reasoningTokens);let n=sae(e);if(n!==void 0)t.totalTokens=n,t.inputTokens=_i(e.inputTokens),t.outputTokens=_i(e.outputTokens),t.cachedInputTokens=_i(e.cachedInputTokens),t.cacheCreationTokens=_i(e.cacheCreationTokens);else{let o=_i(e.totalTokens);o!==void 0&&(t.totalTokens=o,t.providerTotalTokens=o)}return t.totalTokens>0?t:void 0}function yx(e){return e?`${yG(e.totalTokens)} tokens`:""}function Mb(e){return yx(vi(e))}function Nl(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0}function gae(e,t){return Math.round((e+t)*1e12)/1e12}function xi(e){if(!e?.cost)return;let t={total:0},n=e.cost,o=Nl(n.total),a={input:Nl(n.input),output:Nl(n.output),cacheRead:Nl(n.cacheRead),cacheWrite:Nl(n.cacheWrite)},r=Object.values(a).reduce((A,i)=>A+(i??0),0);return t.total=gae(t.total,o??r),t.input=a.input,t.output=a.output,t.cacheRead=a.cacheRead,t.cacheWrite=a.cacheWrite,o!==void 0||r>0?t:void 0}function Fo(e){return e?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e.total):""}function jb(e){return Fo(xi(e))}function wG(e){return $b(e.cumulativeDurationMs)||"none"}function EG(e){return $b(e.cumulativeDurationMs)||"none"}function mae(e,t){return(Sb(t)??0)-(Sb(e)??0)}function Br(e){return e?.displayTitle??"Conversation"}function Di(e){let t=e?.email?.trim()||void 0,n=e?.fullName?.trim()||void 0,o=e?.slackUserName?.trim()||void 0;return t??n??o??e?.slackUserId}function Rl(e){return Di(e?.actorIdentity)}function fae(e){return e?.actorIdentity?.email?.trim()||Rl(e)}function eo(e,t={}){let n=e.channel;if(!n)return;let a=t.includeId??!0?` (${n})`:"";if(e.channelNameRedacted&&e.channelName)return`${e.channelName}${a}`;let r=e.channelName?.replace(/^#/,"");return n.startsWith("D")?`Direct Message${a}`:n.startsWith("C")?r?`#${r}${a}`:`Public Channel${a}`:n.startsWith("G")?r?.startsWith("mpdm-")?`Group DM${a}`:`Private Channel${a}`:r?`${r}${a}`:n}function wx(e){return rae(e)?"failed":oae(e)?"active":"idle"}function Dc(e){return Aae(e)?"active":iae(e)?"failed":"idle"}function Gb(e){return e.eventHistory.status==="redacted"?"Transcript hidden because this conversation is not public.":e.eventHistory.status==="expired"?"Transcript expired for this conversation.":wx(e)==="active"?"Transcript pending while this conversation is active.":"Transcript unavailable for this conversation."}function bA(e){return`/conversations/${encodeURIComponent(e)}`}function So(e){return`/people/${encodeURIComponent(e)}`}function Hb(e){return`/locations/${encodeURIComponent(e)}`}function bae(e){let t=e?.trim().toLowerCase();if(!t)return"markdown";let o={console:"shellscript",htm:"html",js:"javascript",jsonl:"json",md:"markdown",ndjson:"json",sh:"shellscript",text:"markdown",txt:"markdown",xml:"xml",yml:"yaml"}[t]??t;return o in hx?o:"markdown"}function Ex(e){let t=e.trim();if(!t)return"markdown";try{return JSON.parse(t),"json"}catch{}if(kx(t))return"json";if(/^<[\s\S]+>$/.test(t)&&/<\/?[a-zA-Z][^>]*>/.test(t))return"xml";let n=t.match(/(?:^|\n)[ \t]*<([A-Za-z_][\w:.-]*)(?:[ \t][^<>]*)?>[ \t]*(?=\n|$)/);if(n?.[1]){let o=n[1].replace(/[$()*+.?[\\^{|}]/g,"\\$&");if(new RegExp(`(?:^|\\n)[ \\t]*</${o}>[ \\t]*(?=\\n|$)`).test(t))return"xml"}return/```|^#{1,6}\s|\n[-*]\s|\n\d+\.\s|\[[^\]]+\]\([^)]+\)/m.test(t)?"markdown":/\b(import|export|const|let|function|interface|type)\b/.test(t)?"typescript":/^\s*(\$|pnpm|npm|git|curl|cd|ls|node)\b/m.test(t)?"shellscript":"markdown"}function kG(e){let t=e.trim();if(t)try{return JSON.stringify(JSON.parse(t),null,2)}catch{return}}function kx(e){let t=e.trim().split(/\r?\n/).filter(o=>o.trim().length>0);if(t.length<2)return;let n=[];for(let o of t){let a=kG(o);if(!a)return;n.push(a)}return n.join(`
|
|
86
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},f=0;for(let h of B){let y={type:"element",tagName:"span",properties:{...h.htmlAttrs},children:[{type:"text",value:h.content}]},k=Ov(h.htmlStyle||Bb(h));k&&(y.properties.style=k);for(let G of a)y=G?.span?.call(g,y,C+1,f,b,h)||y;i==="inline"?A.children.push(y):i==="classic"&&b.children.push(y),f+=h.content.length}if(i==="classic"){for(let h of a)b=h?.line?.call(g,b,C+1)||b;p.push(b),r.push(b)}else i==="inline"&&p.push(b)}),i==="classic"){for(let B of a)l=B?.code?.call(g,l)||l;u.children.push(l);for(let B of a)u=B?.pre?.call(g,u)||u;A.children.push(u)}else if(i==="inline"){let B=[],C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let f of A.children)f.type==="element"&&f.tagName==="br"?(B.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(f.type==="element"||f.type==="text")&&C.children.push(f);B.push(C);let b={type:"element",tagName:"code",properties:{},children:B};for(let f of a)b=f?.code?.call(g,b)||b;A.children=[];for(let f=0;f<b.children.length;f++){f>0&&A.children.push({type:"element",tagName:"br",properties:{},children:[]});let h=b.children[f];h.type==="element"&&A.children.push(...h.children)}}let m=A;for(let B of a)m=B?.root?.call(g,m)||m;return o&&Cl(m,o),m}function Vee(e){return e.map(t=>{let n=[],o="",a;return t.forEach((r,A)=>{let i=!(r.fontStyle&&(r.fontStyle&cn.Underline||r.fontStyle&cn.Strikethrough));i&&rj.test(r.content)&&t[A+1]?(a===void 0&&(a=r.offset),o+=r.content):o?(i?n.push({...r,offset:a,content:o+r.content}):n.push({content:o,offset:a},r),a=void 0,o=""):n.push(r)}),n})}function Xee(e){return e.map(t=>t.flatMap(n=>{if(rj.test(n.content))return n;let o=n.content.match(Wee);if(!o)return n;let[,a,r,A]=o;if(!a&&!A)return n;let i=[{...n,offset:n.offset+a.length,content:r}];return a&&i.unshift({content:a,offset:n.offset}),A&&i.push({content:A,offset:n.offset+a.length+r.length}),i}))}function ete(e){return e.map(t=>{let n=[];for(let o of t){if(n.length===0){n.push({...o});continue}let a=n.at(-1),r=Ov(a.htmlStyle||Bb(a)),A=Ov(o.htmlStyle||Bb(o)),i=a.fontStyle&&(a.fontStyle&cn.Underline||a.fontStyle&cn.Strikethrough),s=o.fontStyle&&(o.fontStyle&cn.Underline||o.fontStyle&cn.Strikethrough);!i&&!s&&r===A?a.content+=o.content:n.push({...o})}return n})}var tte=Tv;function nte(e,t,n){let o={meta:{},options:n,codeToHast:(r,A)=>wb(e,r,A),codeToTokens:(r,A)=>yb(e,r,A)},a=tte(wb(e,t,n,o));for(let r of Cb(n))a=r.postprocess?.call(o,a,n)||a;return a}async function ate(e){let t=await xv(e);return{getLastGrammarState:(...n)=>yM(t,...n),codeToTokensBase:(n,o)=>zv(t,n,o),codeToTokensWithThemes:(n,o)=>cb(t,n,o),codeToTokens:(n,o)=>yb(t,n,o),codeToHast:(n,o)=>wb(t,n,o),codeToHtml:(n,o)=>nte(t,n,o),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Aj(e){let t=e.langs,n=e.themes,o=e.engine;async function a(r){function A(l){if(typeof l=="string"){if(l=r.langAlias?.[l]||l,Iv(l))return[];let p=t[l];if(!p)throw new Le(`Language \`${l}\` is not included in this bundle. You may want to load it from external source.`);return p}return l}function i(l){if(_v(l))return"none";if(typeof l=="string"){let p=n[l];if(!p)throw new Le(`Theme \`${l}\` is not included in this bundle. You may want to load it from external source.`);return p}return l}let s=(r.themes??[]).map(l=>i(l)),c=(r.langs??[]).map(l=>A(l)),u=await ate({engine:r.engine??o(),...r,themes:s,langs:c});return{...u,loadLanguage(...l){return u.loadLanguage(...l.map(A))},loadTheme(...l){return u.loadTheme(...l.map(i))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function ote(e){let t;async function n(o={}){if(t){let a=await t;return await Promise.all([a.loadTheme(...o.themes||[]),a.loadLanguage(...o.langs||[])]),a}else{t=e({...o,themes:[],langs:[]});let a=await t;return await Promise.all([a.loadTheme(...o.themes||[]),a.loadLanguage(...o.langs||[])]),a}}return n}function ij(e,t){let n=ote(e);async function o(a,r){let A=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),i=await t?.guessEmbeddedLanguages?.(a,r.lang,A);return i&&await A.loadLanguage(...i),A}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,r){return(await o(a,r)).codeToHtml(a,r)},async codeToHast(a,r){return(await o(a,r)).codeToHast(a,r)},async codeToTokens(a,r){return(await o(a,r)).codeToTokens(a,r)},async codeToTokensBase(a,r){return(await o(a,r)).codeToTokensBase(a,r)},async codeToTokensWithThemes(a,r){return(await o(a,r)).codeToTokensWithThemes(a,r)},async getLastGrammarState(a,r){return(await n({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(a,r)}}}var mG=[{id:"angular-html",name:"Angular HTML",import:(()=>Promise.resolve().then(()=>(Wv(),dj)))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>Promise.resolve().then(()=>(hj(),bj)))},{id:"astro",name:"Astro",import:(()=>Promise.resolve().then(()=>(kj(),Ej)))},{id:"blade",name:"Blade",import:(()=>Promise.resolve().then(()=>(Dj(),xj)))},{id:"c",name:"C",import:(()=>Promise.resolve().then(()=>(ex(),Fj)))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>Promise.resolve().then(()=>(Lj(),Sj)))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>Promise.resolve().then(()=>(nx(),jj)))},{id:"css",name:"CSS",import:(()=>Promise.resolve().then(()=>(vn(),cj)))},{id:"csv",name:"CSV",import:(()=>Promise.resolve().then(()=>(ox(),Gj)))},{id:"glsl",name:"GLSL",import:(()=>Promise.resolve().then(()=>(Dl(),Nj)))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>Promise.resolve().then(()=>(_b(),Pj)))},{id:"haml",name:"Ruby Haml",import:(()=>Promise.resolve().then(()=>(Tj(),Uj)))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>Promise.resolve().then(()=>(zj(),Oj)))},{id:"html",name:"HTML",import:(()=>Promise.resolve().then(()=>(Ja(),uj)))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>Promise.resolve().then(()=>(vl(),Qj)))},{id:"http",name:"HTTP",import:(()=>Promise.resolve().then(()=>(Jj(),Kj)))},{id:"hurl",name:"Hurl",import:(()=>Promise.resolve().then(()=>(Zj(),Wj)))},{id:"imba",name:"Imba",import:(()=>Promise.resolve().then(()=>(Xj(),Vj)))},{id:"java",name:"Java",import:(()=>Promise.resolve().then(()=>(Vv(),Ij)))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>Promise.resolve().then(()=>(Dt(),sj)))},{id:"jinja",name:"Jinja",import:(()=>Promise.resolve().then(()=>(a7(),n7)))},{id:"jison",name:"Jison",import:(()=>Promise.resolve().then(()=>(r7(),o7)))},{id:"json",name:"JSON",import:(()=>Promise.resolve().then(()=>(wi(),Bj)))},{id:"json5",name:"JSON5",import:(()=>Promise.resolve().then(()=>(i7(),A7)))},{id:"jsonc",name:"JSON with Comments",import:(()=>Promise.resolve().then(()=>(c7(),s7)))},{id:"jsonl",name:"JSON Lines",import:(()=>Promise.resolve().then(()=>(d7(),u7)))},{id:"jsx",name:"JSX",import:(()=>Promise.resolve().then(()=>(Ax(),Hj)))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>Promise.resolve().then(()=>(m7(),g7)))},{id:"less",name:"Less",import:(()=>Promise.resolve().then(()=>(xb(),f7)))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>Promise.resolve().then(()=>(gx(),b7)))},{id:"marko",name:"Marko",import:(()=>Promise.resolve().then(()=>(B7(),h7)))},{id:"mdc",name:"MDC",import:(()=>Promise.resolve().then(()=>(y7(),C7)))},{id:"mdx",name:"MDX",import:(()=>Promise.resolve().then(()=>(E7(),w7)))},{id:"php",name:"PHP",import:(()=>Promise.resolve().then(()=>(Q7(),k7)))},{id:"postcss",name:"PostCSS",import:(()=>Promise.resolve().then(()=>(Il(),yj)))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>Promise.resolve().then(()=>(_7(),I7)))},{id:"python",name:"Python",aliases:["py"],import:(()=>Promise.resolve().then(()=>(ux(),l7)))},{id:"r",name:"R",import:(()=>Promise.resolve().then(()=>(lx(),p7)))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>Promise.resolve().then(()=>(Ib(),$j)))},{id:"sass",name:"Sass",import:(()=>Promise.resolve().then(()=>(x7(),v7)))},{id:"scss",name:"SCSS",import:(()=>Promise.resolve().then(()=>(Ql(),lj)))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>Promise.resolve().then(()=>(sx(),Yj)))},{id:"sql",name:"SQL",import:(()=>Promise.resolve().then(()=>(mA(),vj)))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>Promise.resolve().then(()=>(fx(),D7)))},{id:"svelte",name:"Svelte",import:(()=>Promise.resolve().then(()=>(S7(),F7)))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>Promise.resolve().then(()=>(q7(),T7)))},{id:"tsx",name:"TSX",import:(()=>Promise.resolve().then(()=>(Qb(),wj)))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>Promise.resolve().then(()=>(Da(),Cj)))},{id:"vue",name:"Vue",import:(()=>Promise.resolve().then(()=>(eG(),X7)))},{id:"vue-html",name:"Vue HTML",import:(()=>Promise.resolve().then(()=>(nG(),tG)))},{id:"vue-vine",name:"Vue Vine",import:(()=>Promise.resolve().then(()=>(oG(),aG)))},{id:"wasm",name:"WebAssembly",import:(()=>Promise.resolve().then(()=>(AG(),rG)))},{id:"wgsl",name:"WGSL",import:(()=>Promise.resolve().then(()=>(sG(),iG)))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>Promise.resolve().then(()=>(uG(),cG)))},{id:"xml",name:"XML",import:(()=>Promise.resolve().then(()=>(Qi(),_j)))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>Promise.resolve().then(()=>(vb(),qj)))}],eae=Object.fromEntries(mG.map(e=>[e.id,e.import])),tae=Object.fromEntries(mG.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),hx={...eae,...tae},nae=Aj({langs:hx,themes:jR,engine:()=>(0,gv.createOnigurumaEngine)(Promise.resolve().then(()=>(gG(),pG)))}),{codeToHtml:fG,codeToHast:hIe,codeToTokensBase:BIe,codeToTokens:CIe,codeToTokensWithThemes:yIe,getSingletonHighlighter:wIe,getLastGrammarState:EIe}=ij(nae,{guessEmbeddedLanguages:aj});var Db=w(_(),1);function Fa(e){if(typeof e!="number"||!Number.isFinite(e))return"";let t=Math.max(0,Math.floor(e));if(t<1e3)return`${t}ms`;if(t<6e4){let a=t/1e3;return`${a.toFixed(a<10?1:0)}s`}let n=[],o=[["mo",2592e6],["d",864e5],["h",36e5],["m",6e4],["s",1e3]];for(let[a,r]of o){let A=Math.floor(t/r);A!==0&&(n.push(`${A}${a}`),t%=r)}return n.join(" ")}function Va(e){return(0,Db.jsx)(Db.Fragment,{children:Fa(e.value)||e.fallback||null})}function $l(e){return Date.parse(e.createdAt)}function xc(e,t,n){return{parts:n,role:t,sourceSeq:e.seq,timestamp:$l(e)}}function aae(e){let t=new Set;for(let n of e){let o=n.data;o.type==="handoff"&&o.triggeringToolCallId&&t.add(o.triggeringToolCallId),o.type==="subagent"&&o.parentToolCallId&&t.add(o.parentToolCallId)}return t}function hr(e){let t=aae(e.events),n=new Map,o=new Map,a=new Map,r=[],A=new Map,i,s=(c,u)=>{if(t.has(u.toolCallId))return;let l="output"in u?u.output:void 0,p=n.get(u.toolCallId);if(p){p.name=u.name,p.status=u.status,u.input!==void 0&&(p.input=u.input),l!==void 0&&(p.output=l),p.startedTimestamp===void 0&&u.startedAt&&(p.startedTimestamp=Date.parse(u.startedAt)),u.status!=="running"&&(p.resultTimestamp=$l(c));return}let g={type:"tool_call",id:u.toolCallId,name:u.name,status:u.status,...u.input===void 0?{}:{input:u.input},...l===void 0?{}:{output:l},...u.status==="running"?{}:{resultTimestamp:$l(c)}},m={...xc(c,"tool",[g]),sourceSeq:u.startedSeq??c.seq,timestamp:u.startedAt?Date.parse(u.startedAt):$l(c)};n.set(u.toolCallId,g),o.set(u.toolCallId,m),r.push(m)};for(let c of e.events){let u=c.data;if(u.type==="message"){let l={...xc(c,u.role,[u.redacted?{type:"text",redacted:!0}:{type:"text",text:u.text}]),...u.eventType?{eventType:u.eventType}:{}};r.push(l),l.role==="user"&&(i=l);continue}if(u.type==="assistant_message"){r.push(xc(c,"assistant",u.parts.map(l=>l.redacted?{type:"reasoning",redacted:!0}:{type:"reasoning",text:l.text})));continue}if(u.type==="turn_lifecycle"&&u.state==="started"){i&&A.set(u.turnId,i);continue}if(u.type==="turn_routed"){let l=A.get(u.turnId);l&&(l.route={modelProfile:u.modelProfile,modelId:u.modelId,reasoningLevel:u.reasoningLevel,...u.confidence!==void 0?{confidence:u.confidence}:{},source:u.source});continue}if(u.type==="turn_context"){let l=A.get(u.turnId);l&&(l.contexts??=[],l.contexts.push({content:u.content,kind:u.kind,loadedAt:c.createdAt,pluginName:u.pluginName,version:u.version}));continue}if(u.type==="tool_calls"){for(let l of u.calls)s(c,l);if(u.assistant){let l=[];for(let p of u.assistant.parts){if(p.type==="reasoning"){l.push(p.redacted?{type:"reasoning",redacted:!0}:{type:"reasoning",text:p.text});continue}if(t.has(p.toolCallId))continue;let g=n.get(p.toolCallId);if(!g)continue;let m=o.get(p.toolCallId);if(m){m.sourceSeq!==c.seq&&(g.startedTimestamp=m.timestamp);let B=r.indexOf(m);B>=0&&r.splice(B,1),o.delete(p.toolCallId)}l.push(g)}l.length>0&&r.push(xc(c,"assistant",l))}continue}if(u.type==="subagent"){let l=`${u.childConversationId}:${u.startedSeq}`,p=a.get(l);if(p){p.status=u.status;continue}let g={type:"subagent",id:l,childConversationId:u.childConversationId,subagentKind:u.subagentKind,status:u.status};a.set(l,g),r.push({...xc(c,"tool",[g]),sourceSeq:u.startedSeq,timestamp:Date.parse(u.startedAt)});continue}if(u.type==="compaction"||u.type==="handoff"){r.push(xc(c,"system",[{type:"context_event",event:u.type==="handoff"?{type:u.type,createdAt:c.createdAt,modelId:u.modelId,modelProfile:u.modelProfile,...u.summary?{summary:u.summary}:{},...u.reasoningLevel?{reasoningLevel:u.reasoningLevel}:{}}:{type:u.type,createdAt:c.createdAt,...u.modelId?{modelId:u.modelId}:{},...u.modelProfile?{modelProfile:u.modelProfile}:{},...u.summary?{summary:u.summary}:{},...u.details?{details:u.details}:{}}}]));continue}if(u.type==="turn_lifecycle"&&u.state==="failed"){r.push({role:u.failureKind==="delivery"?"system":"assistant",outcome:u.failureKind==="delivery"?"delivery_failed":"error",parts:[],sourceSeq:c.seq,timestamp:$l(c)});continue}}return r.sort((c,u)=>c.sourceSeq-u.sourceSeq)}var bG="America/Los_Angeles";function hG(e){bG=e}function BG(){return bG}function oae(e){return e.status==="active"}function rae(e){return e.status==="failed"}function Aae(e){return e.status==="active"}function iae(e){return e.status==="failed"}function Sb(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Xa(e){let t=Sb(e);return t==null?"none":new Date(t).toLocaleString(void 0,{timeZone:BG()})}function fA(e){let t=Sb(e);if(t==null)return"not updated yet";let n=Math.round((t-Date.now())/1e3),o=Math.abs(n),a=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60]];for(let[r,A]of a)if(o>=A)return new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}).format(Math.round(n/A),r);return"just now"}function Cx(e){if(typeof e!="number"||!Number.isFinite(e))return"none";let t=Math.max(0,Math.floor(e));if(t<1e3)return`${t}ms`;let n=t/1e3;if(n<60)return`${n.toFixed(n<10?1:0)}s`;let o=Math.round(n),a=Math.floor(o/60),r=o%60;return`${a}m ${r}s`}function CG(e){if(e===void 0)return;let t=typeof e=="string"?e:JSON.stringify(e);if(t===void 0)return;let n=new TextEncoder().encode(t).byteLength;return n<1e3?`${n}b`:`${Math.round(n/1e3)}kb`}function Lb(e,t){if(!(typeof e!="number"||typeof t!="number"||t<e))return Cx(t-e)}function $b(e){if(typeof e!="number"||!Number.isFinite(e))return"";let t=Math.max(0,Math.floor(e));return t===0?"":Fa(t)}function un(e){return typeof e!="number"||!Number.isFinite(e)?"no timestamp":new Date(e).toLocaleTimeString(void 0,{timeZone:BG()})}function yG(e){if(typeof e!="number"||!Number.isFinite(e))return"0";let t=Math.max(0,Math.floor(e));if(t<1e3)return String(t);let n=[["t",1e12],["b",1e9],["m",1e6],["k",1e3]],[o,a]=n.find(([,i])=>t>=i)??n[1],r=t/a;return`${r>=100||Number.isInteger(r)||r>=10?Math.round(r).toString():(Math.floor(r*10)/10).toFixed(1).replace(/\.0$/,"")}${o}`}function _i(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.floor(e)):void 0}function sae(e){return[e.inputTokens,e.outputTokens,e.cachedInputTokens,e.cacheCreationTokens].reduce((t,n)=>{let o=_i(n);return o===void 0?t:(t??0)+o},void 0)}function cae(e){return hr(e)}function sa(e){let t=e.toLowerCase();return t==="assistant"?"assistant":t==="user"?"user":t==="system"?"system":t.includes("tool")?"tool":"other"}function uae(e){return e.parts.some(t=>t.type!=="text"?!1:t.redacted?!0:typeof t.text=="string"&&t.text.trim().length>0)}function dae(e){let t=sa(e.role);return t!=="user"&&t!=="assistant"?!1:t==="assistant"?uae(e):e.parts.length>0}function Nb(e,t=5){let n=new Map,o=new Set,a=0;for(let A of e.events)if(A.data.type==="tool_calls")for(let i of A.data.calls){if(o.has(i.toolCallId))continue;o.add(i.toolCallId);let s=n.get(i.name)??{count:0,name:i.name};s.count+=1,n.set(i.name,s),a+=1}return{items:[...n.values()].sort((A,i)=>i.count-A.count||A.name.localeCompare(i.name)).slice(0,t),total:a}}function lae(e,t){let n=sa(t.role);return n==="assistant"?Oe():n==="user"?Di(e.actorIdentity)??"User":n==="system"?"System":n==="tool"?"Tool":t.role||"Unknown"}function pae(e){return e.type==="text"&&e.text?new TextEncoder().encode(e.text).byteLength:0}function Rb(e){let n=cae(e).filter(o=>sa(o.role)==="user"&&dae(o));if(n.length>0)return{items:n.map(o=>({author:lae(e,o),bytes:o.parts.reduce((a,r)=>a+pae(r),0)})),total:n.length}}function te(e){return yG(e)}function vi(e){if(!e)return;let t={totalTokens:0};t.reasoningTokens=_i(e.reasoningTokens);let n=sae(e);if(n!==void 0)t.totalTokens=n,t.inputTokens=_i(e.inputTokens),t.outputTokens=_i(e.outputTokens),t.cachedInputTokens=_i(e.cachedInputTokens),t.cacheCreationTokens=_i(e.cacheCreationTokens);else{let o=_i(e.totalTokens);o!==void 0&&(t.totalTokens=o,t.providerTotalTokens=o)}return t.totalTokens>0?t:void 0}function yx(e){return e?`${yG(e.totalTokens)} tokens`:""}function Mb(e){return yx(vi(e))}function Nl(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0}function gae(e,t){return Math.round((e+t)*1e12)/1e12}function xi(e){if(!e?.cost)return;let t={total:0},n=e.cost,o=Nl(n.total),a={input:Nl(n.input),output:Nl(n.output),cacheRead:Nl(n.cacheRead),cacheWrite:Nl(n.cacheWrite)},r=Object.values(a).reduce((A,i)=>A+(i??0),0);return t.total=gae(t.total,o??r),t.input=a.input,t.output=a.output,t.cacheRead=a.cacheRead,t.cacheWrite=a.cacheWrite,o!==void 0||r>0?t:void 0}function Fo(e){return e?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e.total):""}function jb(e){return Fo(xi(e))}function wG(e){return $b(e.cumulativeDurationMs)||"none"}function EG(e){return $b(e.cumulativeDurationMs)||"none"}function mae(e,t){return(Sb(t)??0)-(Sb(e)??0)}function Br(e){return e?.displayTitle??"Conversation"}function Di(e){let t=e?.email?.trim()||void 0,n=e?.fullName?.trim()||void 0,o=e?.slackUserName?.trim()||void 0;return t??n??o??e?.slackUserId}function Rl(e){return Di(e?.actorIdentity)}function fae(e){return e?.actorIdentity?.email?.trim()||Rl(e)}function eo(e,t={}){let n=e.channel;if(!n)return;let a=t.includeId??!0?` (${n})`:"";if(e.channelNameRedacted&&e.channelName)return`${e.channelName}${a}`;let r=e.channelName?.replace(/^#/,"");return n.startsWith("D")?`Direct Message${a}`:n.startsWith("C")?r?`#${r}${a}`:`Public Channel${a}`:n.startsWith("G")?r?.startsWith("mpdm-")?`Group DM${a}`:`Private Channel${a}`:r?`${r}${a}`:n}function wx(e){return rae(e)?"failed":oae(e)?"active":"idle"}function Dc(e){return Aae(e)?"active":iae(e)?"failed":"idle"}function Gb(e){return e.eventHistory.status==="redacted"?"Transcript hidden because this conversation is not public.":e.eventHistory.status==="expired"?"Transcript expired for this conversation.":wx(e)==="active"?"Transcript pending while this conversation is active.":"Transcript unavailable for this conversation."}function bA(e){return`/conversations/${encodeURIComponent(e)}`}function So(e){return`/people/${encodeURIComponent(e)}`}function Hb(e){return`/locations/${encodeURIComponent(e)}`}function bae(e){let t=e?.trim().toLowerCase();if(!t)return"markdown";let o={console:"shellscript",htm:"html",js:"javascript",jsonl:"json",md:"markdown",ndjson:"json",sh:"shellscript",text:"markdown",txt:"markdown",xml:"xml",yml:"yaml"}[t]??t;return o in hx?o:"markdown"}function Ex(e){let t=e.trim();if(!t)return"markdown";try{return JSON.parse(t),"json"}catch{}if(kx(t))return"json";if(/^<[\s\S]+>$/.test(t)&&/<\/?[a-zA-Z][^>]*>/.test(t))return"xml";let n=t.match(/(?:^|\n)[ \t]*<([A-Za-z_][\w:.-]*)(?:[ \t][^<>]*)?>[ \t]*(?=\n|$)/);if(n?.[1]){let o=n[1].replace(/[$()*+.?[\\^{|}]/g,"\\$&");if(new RegExp(`(?:^|\\n)[ \\t]*</${o}>[ \\t]*(?=\\n|$)`).test(t))return"xml"}return/```|^#{1,6}\s|\n[-*]\s|\n\d+\.\s|\[[^\]]+\]\([^)]+\)/m.test(t)?"markdown":/\b(import|export|const|let|function|interface|type)\b/.test(t)?"typescript":/^\s*(\$|pnpm|npm|git|curl|cd|ls|node)\b/m.test(t)?"shellscript":"markdown"}function kG(e){let t=e.trim();if(t)try{return JSON.stringify(JSON.parse(t),null,2)}catch{return}}function kx(e){let t=e.trim().split(/\r?\n/).filter(o=>o.trim().length>0);if(t.length<2)return;let n=[];for(let o of t){let a=kG(o);if(!a)return;n.push(a)}return n.join(`
|
|
87
87
|
`)}function QG(e){return kG(e)??kx(e)}function Fb(e,t){return t==="json"?QG(e)??e:e}function hae(e){let t=e.trim();if(!t)return"markdown";try{return JSON.parse(t),"json"}catch{}return kx(t)?"json":"markdown"}function Pb(e){return e.language==="xml"||e.language==="html"}function Ub(e,t={}){let n=t.outputOnly?hae:Ex,o=[],a=/```([A-Za-z0-9_-]+)?\n([\s\S]*?)```/g,r=0,A;for(;A=a.exec(e);){let c=e.slice(r,A.index).trim();if(c){let l=n(c);o.push({code:Fb(c,l),fenced:!1,language:l})}let u=bae(A[1]);o.push({code:Fb(A[2]??"",u),fenced:!0,language:u}),r=A.index+A[0].length}let i=e.slice(r).trim();if(i){let c=n(i);o.push({code:Fb(i,c),fenced:!1,language:c})}if(o.length>0)return o;let s=n(e);return[{code:Fb(e,s),fenced:!1,language:s}]}function Qx(e,t){let n=new DOMParser;if(t==="xml"){let a=n.parseFromString(`<junior-root>${e}</junior-root>`,"text/xml");if(!a.querySelector("parsererror"))return Array.from(a.documentElement.childNodes).map(Bx).filter(r=>r.type==="element"||r.text.trim().length>0)}let o=n.parseFromString(e,"text/html");return Array.from(o.body.childNodes).map(Bx).filter(a=>a.type==="element"||a.text.trim().length>0)}function Bx(e){if(e.nodeType===Node.ELEMENT_NODE){let t=e;return{type:"element",tagName:t.tagName.toLowerCase(),attributes:Array.from(t.attributes).map(n=>[n.name,n.value]),children:Array.from(t.childNodes).map(Bx).filter(n=>n.type==="element"||n.text.trim().length>0)}}return{type:"text",text:e.textContent??""}}function Fi(e){return e.map(t=>({archivedAt:t.archivedAt,channel:t.channel,channelName:t.channelName,channelNameRedacted:t.channelNameRedacted,cumulativeDurationMs:t.cumulativeDurationMs,cumulativeUsage:t.cumulativeUsage,displayTitle:t.displayTitle,id:t.conversationId,lastProgressAt:t.lastProgressAt,lastSeenAt:t.lastSeenAt,locationId:t.locationId,actorIdentity:t.actorIdentity,sentryTraceUrl:t.sentryTraceUrl,startedAt:t.startedAt,status:t.status,surface:t.surface,traceId:t.traceId})).sort((t,n)=>mae(t.lastSeenAt,n.lastSeenAt))}function IG(e){if(!e)return;let t=Fi([e])[0];return t?{...t,displayTitle:e.displayTitle}:void 0}function Bae(e){let t=e.actorIdentity;return[e.displayTitle,e.id,e.channel,e.channelName,e.status,e.surface,t?.email,t?.fullName,t?.slackUserId,t?.slackUserName].filter(Boolean).join(" ").toLowerCase()}function Tb(e,t){let n=t.query?.trim().toLowerCase(),o=t.source?.trim(),a=t.actor?.trim(),r=t.location?.trim();return e.filter(A=>!(A.archivedAt||o&&A.surface!==o||r&&A.locationId!==r||a&&fae(A)!==a||n&&!Bae(A).includes(n)))}function Sa(e){return e==null||e===""?"":typeof e=="string"?QG(e)??e:JSON.stringify(e,null,2)??""}var Si=w(X(),1);var Ix=w(_(),1);function Zt({className:e,size:t="default",type:n="button",...o}){return(0,Ix.jsx)("button",{...o,className:N("rounded border border-white/15 bg-[#0b0b0b] font-mono text-dashboard-text transition-colors hover:border-white/30 hover:bg-[#151515] hover:text-dashboard-text disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-white/15 disabled:hover:bg-[#0b0b0b] disabled:hover:text-dashboard-text",t==="icon"?"grid size-9 place-items-center p-0":"inline-flex h-9 max-w-full items-center gap-2 px-3 text-[0.82rem] font-semibold leading-none",o.disabled?"":"cursor-pointer",e),type:n})}function Ml({className:e,pressed:t,type:n="button",variant:o,...a}){return(0,Ix.jsx)("button",{...a,"aria-pressed":t,className:N(Cae[o],t?yae[o]:wae[o],e),type:n})}var Cae={pill:"cursor-pointer rounded border px-2 py-1 font-mono text-[0.72rem] font-semibold uppercase leading-tight transition-colors focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55",text:"cursor-pointer border-0 bg-transparent px-1.5 py-1 font-mono uppercase tracking-normal underline-offset-4 transition-colors focus-visible:outline focus-visible:outline-1 focus-visible:outline-cyan-300/55"},yae={pill:"border-white/30 bg-white text-black",text:"text-dashboard-text underline decoration-white"},wae={pill:"border-white/10 bg-[#0b0b0b] text-dashboard-text-muted hover:border-white/25 hover:bg-[#151515] hover:text-dashboard-text",text:"text-dashboard-text-muted hover:text-dashboard-text"};var _G=w(_(),1);function ae(e){let t={none:"",sm:"p-4",md:"p-5 sm:p-6"}[e.padding??"none"];return(0,_G.jsx)("div",{className:N("min-w-0 overflow-hidden rounded-lg border border-white/[0.05] bg-white/[0.02]",t,e.className),children:e.children})}var hA=w(_(),1);function qn(e){return(0,hA.jsxs)("header",{className:"flex min-w-0 items-center justify-between gap-6 border-b border-white/[0.05] pb-4 sm:pb-6 max-md:flex-col max-md:items-stretch",children:[(0,hA.jsxs)("div",{className:"min-w-0",children:[e.eyebrow?(0,hA.jsx)("div",{className:"mb-2 font-mono text-[0.66rem] font-medium uppercase tracking-[0.18em] text-amber-400/70",children:e.eyebrow}):null,(0,hA.jsx)("h2",{className:"m-0 font-display text-3xl font-light leading-none tracking-[-0.03em] text-dashboard-text sm:text-4xl",children:e.title}),(0,hA.jsx)("div",{className:"mt-2 max-w-2xl font-mono text-xs leading-relaxed text-dashboard-text-muted sm:text-[0.8rem]",children:e.description})]}),e.actions?(0,hA.jsx)("div",{className:"shrink-0",children:e.actions}):null]})}var Qe=w(_(),1);function vG(e,t){return`/settings/plugins/${encodeURIComponent(e)}/${encodeURIComponent(t)}`}function xG(e){let{pageId:t,pluginName:n}=Ar(),[o,a]=ed(),r=co(),A=e.pages.find(B=>B.pluginName===n&&B.id===t),i=o.get("q")?.trim()??"",[s,c]=(0,Si.useState)(i);(0,Si.useEffect)(()=>{c(i)},[i]),(0,Si.useEffect)(()=>{let B=window.setTimeout(()=>{let C=s.trim();C!==i&&a(C?{q:C}:{},{replace:!0})},250);return()=>window.clearTimeout(B)},[i,s,a]);let u=["dashboard","plugin-user-page",n,t,i],l=Jc({enabled:!!A,initialPageParam:void 0,queryKey:u,queryFn:({pageParam:B,signal:C})=>{let b=new URLSearchParams;i&&b.set("q",i),B&&b.set("cursor",B);let f=b.toString();return Gt(TL,`/api/user-pages/${encodeURIComponent(n)}/${encodeURIComponent(t)}${f?`?${f}`:""}`,C)},getNextPageParam:B=>B.nextCursor,placeholderData:B=>B,retry:!1}),p=(0,Si.useMemo)(()=>[...new Map((l.data?.pages??[]).flatMap(B=>B.records).map(B=>[B.id,B])).values()],[l.data?.pages]),g=l.data?.pages[0],m=Kc({mutationFn:async B=>B.confirmation&&!window.confirm(B.confirmation)?!1:(await Of(B.href),!0),onSuccess:async B=>{B&&await r.resetQueries({queryKey:u})}});return A?!l.data&&!l.error?(0,Qe.jsx)(et,{label:`Loading ${A.label}`}):(0,Qe.jsx)("div",{className:`${Bt} px-4 py-8 md:px-8`,children:(0,Qe.jsxs)("section",{className:"mx-auto grid w-full max-w-3xl gap-6",children:[(0,Qe.jsx)(qn,{description:A.description,eyebrow:A.pluginDisplayName,title:A.label}),g?.searchPlaceholder?(0,Qe.jsxs)("label",{className:"relative block",children:[(0,Qe.jsx)(di,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-dashboard-text-muted",size:15}),(0,Qe.jsx)("span",{className:"sr-only",children:g.searchPlaceholder}),(0,Qe.jsx)("input",{className:"w-full rounded border border-white/15 bg-black py-2 pr-3 pl-9 text-sm text-dashboard-text placeholder:text-dashboard-text-muted focus:border-cyan-300/50 focus:outline-none",onChange:B=>c(B.target.value),placeholder:g.searchPlaceholder,type:"search",value:s})]}):null,l.error?(0,Qe.jsx)(ae,{padding:"md",children:(0,Qe.jsxs)("p",{className:"m-0 text-sm text-rose-300",children:["Could not load ",A.label.toLowerCase(),". Try again."]})}):p.length===0?(0,Qe.jsx)(ae,{padding:"md",children:(0,Qe.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Qe.jsx)("div",{className:"grid size-10 shrink-0 place-items-center rounded border border-white/[0.07] bg-white/[0.025] text-dashboard-text-muted",children:(0,Qe.jsx)(_n,{"aria-hidden":"true",size:17})}),(0,Qe.jsx)("p",{className:"m-0 text-sm text-dashboard-text-muted",children:g?.emptyText??`No ${A.label.toLowerCase()}.`})]})}):(0,Qe.jsxs)("div",{className:"grid gap-3",children:[p.map(B=>(0,Qe.jsxs)(ae,{padding:"md",children:[(0,Qe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Qe.jsx)("h2",{className:"m-0 min-w-0 flex-1 font-display text-base font-medium text-dashboard-text",children:B.title}),B.actions?.map(C=>(0,Qe.jsx)("button",{"aria-label":`${C.label}: ${B.title}`,className:`cursor-pointer border-0 bg-transparent p-1 text-dashboard-text-muted transition-colors ${C.tone==="danger"?"hover:text-rose-300":"hover:text-dashboard-text"}`,disabled:m.isPending&&m.variables?.href===C.href,onClick:()=>m.mutate(C),title:C.label,type:"button",children:C.tone==="danger"?(0,Qe.jsx)(li,{"aria-hidden":"true",size:16}):C.label},`${C.method}:${C.href}`))]}),B.description?(0,Qe.jsx)("p",{className:"mt-2 mb-0 text-sm text-dashboard-text-muted",children:B.description}):null,B.metadata?.length?(0,Qe.jsx)("dl",{className:"mt-4 flex flex-wrap gap-x-6 gap-y-2",children:B.metadata.map(C=>(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("dt",{className:"font-mono text-[0.58rem] uppercase tracking-[0.12em] text-dashboard-text-muted",children:C.label}),(0,Qe.jsx)("dd",{className:"mt-1 ml-0 font-mono text-[0.68rem] text-dashboard-text-muted",children:C.value})]},C.label))}):null]},B.id)),!l.isPlaceholderData&&l.hasNextPage?(0,Qe.jsx)(Zt,{className:"justify-self-center",disabled:l.isFetchingNextPage,onClick:()=>{l.fetchNextPage()},children:l.isFetchingNextPage?"Loading\u2026":"Load more"}):null,m.error?(0,Qe.jsx)("p",{className:"m-0 text-center text-sm text-rose-300",children:"Could not complete this action. Try again."}):null]})]})}):(0,Qe.jsx)(qa,{replace:!0,to:"/"})}var qt=w(_(),1);function Eae(e,t){let n=e?.trim().split(/\s+/).filter(Boolean)??[];return n.length>0?n.slice(0,2).map(o=>o[0]).join("").toUpperCase():t.slice(0,1).toUpperCase()}function DG({identity:e,onSignOut:t,userPages:n}){let[o,a]=(0,Li.useState)(!1),r=(0,Li.useRef)(null),A=(0,Li.useRef)(null),i=e.user.email,s=e.user.name?.trim()||i;return(0,Li.useEffect)(()=>{if(!o)return;function c(l){r.current?.contains(l.target)||a(!1)}function u(l){l.key==="Escape"&&(a(!1),A.current?.focus())}return document.addEventListener("pointerdown",c),document.addEventListener("keydown",u),()=>{document.removeEventListener("pointerdown",c),document.removeEventListener("keydown",u)}},[o]),(0,qt.jsxs)("div",{className:"relative",ref:r,children:[(0,qt.jsxs)("button",{"aria-controls":"profile-popover","aria-expanded":o,"aria-label":`Open profile menu for ${s}`,className:N("flex h-9 cursor-pointer items-center gap-2 rounded border border-white/15 bg-[#0b0b0b] px-1.5 text-dashboard-text transition-colors hover:border-white/30 hover:bg-[#151515] hover:text-dashboard-text focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#beaaff]/70",o&&"border-white/30 bg-[#151515] text-dashboard-text"),onClick:()=>a(c=>!c),ref:A,type:"button",children:[(0,qt.jsx)("span",{"aria-hidden":"true",className:"grid size-6 place-items-center rounded-full bg-[#beaaff] text-[0.68rem] font-bold tracking-wide text-black",children:Eae(e.user.name,i)}),(0,qt.jsx)("span",{className:"max-w-32 truncate text-[0.8rem] font-semibold max-sm:hidden",children:e.user.name?.trim()||"My profile"}),(0,qt.jsx)(ii,{"aria-hidden":"true",className:N("transition-transform",o&&"rotate-180"),size:14,strokeWidth:2})]}),o?(0,qt.jsxs)("div",{className:"absolute right-0 top-[calc(100%+0.5rem)] z-20 w-64 rounded-lg border border-white/15 bg-[#0b0b0b] p-1.5 shadow-2xl shadow-black/60",id:"profile-popover",children:[(0,qt.jsxs)("div",{className:"border-b border-white/10 px-2.5 py-2.5",children:[(0,qt.jsx)("p",{className:"m-0 truncate text-sm font-semibold text-dashboard-text",children:s}),s!==i?(0,qt.jsx)("p",{className:"mt-1 mb-0 truncate text-xs text-dashboard-text-muted",children:i}):null]}),(0,qt.jsxs)(Ue,{className:"mt-1 flex items-center gap-2.5 px-2.5 py-2 text-[0.82rem] font-semibold text-dashboard-text no-underline transition-colors hover:bg-white/10 hover:text-dashboard-text focus-visible:bg-white/10 focus-visible:text-dashboard-text focus-visible:outline-none",onClick:()=>a(!1),to:So(i),children:[(0,qt.jsx)(_o,{"aria-hidden":"true",size:16,strokeWidth:2}),"My profile"]}),(0,qt.jsxs)(Ue,{className:"flex items-center gap-2.5 px-2.5 py-2 text-[0.82rem] font-semibold text-dashboard-text no-underline transition-colors hover:bg-white/10 hover:text-dashboard-text focus-visible:bg-white/10 focus-visible:text-dashboard-text focus-visible:outline-none",onClick:()=>a(!1),to:"/settings/api-tokens",children:[(0,qt.jsx)(gr,{"aria-hidden":"true",size:16,strokeWidth:2}),"API tokens"]}),n.map(c=>(0,qt.jsxs)(Ue,{className:"flex items-center gap-2.5 px-2.5 py-2 text-[0.82rem] font-semibold text-dashboard-text no-underline transition-colors hover:bg-white/10 hover:text-dashboard-text focus-visible:bg-white/10 focus-visible:text-dashboard-text focus-visible:outline-none",onClick:()=>a(!1),to:vG(c.pluginName,c.id),children:[(0,qt.jsx)(_n,{"aria-hidden":"true",size:16,strokeWidth:2}),c.label]},`${c.pluginName}:${c.id}`)),(0,qt.jsxs)("button",{className:"flex w-full cursor-pointer items-center gap-2.5 border-0 bg-transparent px-2.5 py-2 text-left text-[0.82rem] font-semibold text-dashboard-text transition-colors hover:bg-white/10 hover:text-dashboard-text focus-visible:bg-white/10 focus-visible:text-dashboard-text focus-visible:outline-none",onClick:()=>{a(!1),t()},type:"button",children:[(0,qt.jsx)(tl,{"aria-hidden":"true",size:16,strokeWidth:2}),"Log out"]})]}):null]})}var wr=w(X(),1);var PG=w(X(),1);var $i=w(X(),1);function _x(e,t){if(e.eventHistory.status!=="available")return FG(e);let n=t.find(o=>o.eventHistory.status!=="available");return n?FG({...e,eventHistory:n.eventHistory,events:n.events,previousCursor:n.previousCursor}):{...e,events:Qae([...t.flatMap(o=>o.events),...e.events]),previousCursor:qb(e.previousCursor,t)??(t.length?MG(t):e.previousCursor)}}async function SG(e){let t=new Map(e.historyPages.map(r=>[r.requestedBefore,r])),n=[],o=new Set,a=e.detail.previousCursor;for(;a;){if(o.has(a))throw new Error("Conversation history cursor did not advance");o.add(a);let r=t.get(a)??{...await e.readPage(a),requestedBefore:a};n.push(r),a=r.previousCursor}return _x(e.detail,n)}function LG(e){let t=RG(e);return t===void 0?"empty":String(t)}function $G(e,t){return qb(e,t)??MG(t)}function qb(e,t){if(!e)return;let n=new Map(t.map(A=>[A.requestedBefore,A])),o=new Set,a=new Set,r=e;for(;r;){if(a.has(r))return;a.add(r);let A=n.get(r);if(!A)return o.size>0&&o.size===t.length?void 0:r;o.add(A);let i=RG(o),s=kae(t.filter(c=>!o.has(c)));if(i!==void 0&&s!==void 0&&i<=s+1)return;r=A.previousCursor}}function NG(e,t){return t.some(n=>n.eventHistory.status!==e.eventHistory.status)}function RG(e){let t;for(let n of e){let o=n.events[0]?.seq;o!==void 0&&(t===void 0||o<t)&&(t=o)}return t}function kae(e){let t;for(let n of e){let o=n.events.at(-1)?.seq;o!==void 0&&(t===void 0||o>t)&&(t=o)}return t}function MG(e){let t;for(let n of e){let o=n.events[0]?.seq,a=t?.events[0]?.seq;o!==void 0&&(a===void 0||o<a)&&(t=n)}return t?.previousCursor}function Qae(e){return[...new Map(e.map(t=>[t.seq,t])).values()].sort((t,n)=>t.seq-n.seq)}function FG(e){let{modelUsage:t,...n}=e;return n}function GG(e){return["conversation",e,"detail"]}function Iae(e){return{enabled:!!e,queryKey:GG(e),queryFn:({signal:t})=>_ae(e,t),refetchInterval:t=>t.state.data?.status==="active"?2e3:!1,retry:!1}}function jl(e){let t=co();return Kc({mutationFn:n=>YL(G_,`/api/conversations/${encodeURIComponent(e)}/archive`,n),onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:["dashboard","conversations"]}),t.invalidateQueries({queryKey:["dashboard","locations"]}),t.invalidateQueries({queryKey:["dashboard","people"]}),t.invalidateQueries({exact:!0,queryKey:GG(e)})])}})}function Ob(e){let t=co(),n=tn(Iae(e)),o=n.data?.eventHistory.status,a=(0,$i.useMemo)(()=>["conversation",e,"history",o],[e,o]),r=Jc({enabled:!1,queryKey:a,queryFn:async({pageParam:g,signal:m})=>({...await jG(e,g,m),requestedBefore:g}),initialPageParam:n.data?.previousCursor??"",getNextPageParam:(g,m)=>$G(n.data?.previousCursor,m),retry:!1}),A=r.data?.pages,i=(0,$i.useMemo)(()=>n.data?_x(n.data,A??[]):void 0,[n.data,A]),s=vae(r.error),c=!!(n.data&&(NG(n.data,A??[])||s)),u=s?null:r.error,l=!!(n.data?.previousCursor&&r.data&&qb(n.data.previousCursor,r.data.pages)&&!c&&!r.error&&!r.isFetchingNextPage),p=r.isFetchingNextPage||l;return(0,$i.useEffect)(()=>{c&&n.refetch()},[n.refetch,c]),(0,$i.useEffect)(()=>{s&&t.resetQueries({exact:!0,queryKey:a})},[a,s,t]),(0,$i.useEffect)(()=>{l&&r.fetchNextPage()},[r.fetchNextPage,l]),{...n,data:i,historyError:u,historyVersion:LG(A??[]),hasPreviousPage:r.data?r.hasNextPage:!!n.data?.previousCursor,isLoadingPreviousPage:p,loadCompleteTranscript:()=>{if(!e||!n.data)throw new Error("Cannot load a conversation without an id");return SG({detail:n.data,historyPages:r.data?.pages??[],readPage:g=>jG(e,g)})},loadPreviousPage:()=>{let g=r.data?r.hasNextPage:!!n.data?.previousCursor;e&&g&&!r.isFetchingNextPage&&r.fetchNextPage()}}}function _ae(e,t){return Gt(T_,`/api/conversations/${encodeURIComponent(e)}`,t)}function jG(e,t,n){let o=new URLSearchParams({before:t});return Gt(q_,`/api/conversations/${encodeURIComponent(e)}/events?${o}`,n).then(a=>{if(a.previousCursor===t)throw new Error("Conversation history cursor did not advance");return a})}function vae(e){return e instanceof pr&&e.status===400}var HG=w(_(),1);function lt(e){return(0,HG.jsx)("div",{className:"min-w-0 rounded-lg border border-white/10 bg-[#050505] px-4 py-3 text-[0.9rem] leading-relaxed text-dashboard-text-muted",children:e.children})}var Gl=w(_(),1);function Lo(e){let t=e.size??"compact";return(0,Gl.jsxs)("div",{className:N("relative min-w-0",e.className),children:[(0,Gl.jsx)(di,{"aria-hidden":"true",className:N("pointer-events-none absolute top-1/2 -translate-y-1/2 text-dashboard-text-muted",xae[t]),size:t==="compact"?13:14,strokeWidth:2.5}),(0,Gl.jsx)("input",{"aria-label":e.label,className:N("w-full rounded-lg border border-white/[0.08] font-mono text-[0.74rem] text-dashboard-text outline-none transition-colors placeholder:text-dashboard-text-muted hover:border-white/15",Dae[t]),onChange:n=>e.onChange(n.currentTarget.value),placeholder:e.placeholder,type:"search",value:e.value})]})}var xae={compact:"left-2.5",default:"left-3"},Dae={compact:"h-9 bg-black/25 pr-3 pl-8 focus:border-cyan-400/30 focus:ring-1 focus:ring-cyan-400/15",default:"h-10 bg-black/20 pr-3 pl-9 focus:border-cyan-300/35 focus:ring-2 focus:ring-cyan-300/10"};var me=w(_(),1);function UG(e){let[t,n]=(0,PG.useState)();return(0,me.jsxs)("aside",{className:"relative grid h-full min-h-0 min-w-0 grid-rows-[auto_auto_minmax(0,1fr)] overflow-hidden border-r border-white/[0.07] bg-white/[0.02]",children:[(0,me.jsxs)("div",{className:"px-5 pb-3 pt-5",children:[(0,me.jsxs)("div",{className:"mb-2 flex items-center gap-2 font-mono text-[0.62rem] uppercase tracking-[0.16em] text-cyan-200/65",children:[(0,me.jsx)(ol,{"aria-hidden":"true",size:13}),"Your trail"]}),(0,me.jsxs)("div",{className:"flex items-end justify-between gap-3",children:[(0,me.jsx)("h2",{className:"m-0 font-display text-xl font-medium leading-tight text-dashboard-text",children:"Conversations"}),(0,me.jsx)("div",{className:"rounded border border-white/[0.08] bg-black/20 px-2.5 py-1 font-mono text-[0.62rem] text-dashboard-text-muted",children:e.loading?"\u2026":e.conversations.length})]})]}),(0,me.jsx)("div",{className:"px-3 pb-3",children:(0,me.jsx)(Lo,{label:"Search your conversations",onChange:e.onQueryChange,placeholder:"Search conversations\u2026",size:"default",value:e.query})}),(0,me.jsx)("div",{className:"min-h-0 overflow-y-auto overscroll-contain px-2 pb-2",children:e.error?(0,me.jsx)("div",{className:"p-3",children:(0,me.jsx)(lt,{children:e.error})}):!e.loading&&e.conversations.length===0?(0,me.jsx)("div",{className:"p-3",children:(0,me.jsx)(lt,{children:"No conversations match this view."})}):(0,me.jsx)("nav",{"aria-label":"Your conversations",className:"grid gap-1",children:e.conversations.map(o=>(0,me.jsx)(Fae,{conversation:o,onArchived:n,selected:o.id===e.selectedId},o.id))})}),t?(0,me.jsx)(Sae,{conversation:t,onRestored:()=>n(void 0)}):null]})}function Fae(e){let t=jl(e.conversation.id),n=Dc(e.conversation),o=eo(e.conversation,{includeId:!1}),a=Br(e.conversation);return(0,me.jsxs)("div",{className:"group relative min-w-0",children:[(0,me.jsxs)(Ue,{"aria-current":e.selected?"page":void 0,className:N("block min-w-0 rounded-lg border border-transparent px-3 py-3 text-inherit no-underline transition-all hover:border-white/[0.07] hover:bg-white/[0.035]",e.selected&&"border-cyan-300/20 bg-cyan-300/[0.07]"),to:bA(e.conversation.id),children:[(0,me.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,me.jsx)("span",{"aria-hidden":"true",className:N("size-1.5 shrink-0 rounded-full",n==="active"&&"bg-emerald-300 shadow-[0_0_10px_rgba(110,231,183,0.55)]",n==="failed"&&"bg-rose-300",n==="idle"&&"bg-white/25")}),(0,me.jsx)("div",{className:"truncate font-display text-[0.92rem] font-medium leading-tight text-dashboard-text",children:a})]}),(0,me.jsxs)("div",{className:"ml-3.5 mt-1.5 flex min-w-0 items-center gap-1.5 font-mono text-[0.62rem] leading-tight text-dashboard-text-muted",children:[(0,me.jsx)("span",{className:"shrink-0",children:fA(e.conversation.lastSeenAt)}),o?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("span",{"aria-hidden":"true",children:"\xB7"}),(0,me.jsx)("span",{className:"truncate",children:o})]}):null]})]}),(0,me.jsx)("button",{"aria-label":`Archive ${a}`,className:N("pointer-events-none absolute right-2 top-1/2 z-10 grid size-8 -translate-y-1/2 place-items-center rounded-md border border-white/15 bg-[#111719] text-dashboard-text-muted opacity-0 shadow-[-8px_0_12px_rgba(9,12,14,0.8)] transition hover:border-white/30 hover:text-dashboard-text focus:pointer-events-auto focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-cyan-300/35 group-focus-within:pointer-events-auto group-focus-within:opacity-100 group-hover:pointer-events-auto group-hover:opacity-100",t.error&&"border-rose-300/30 text-rose-200/80"),disabled:t.isPending,onClick:()=>t.mutate({archived:!0,lastSeenAt:e.conversation.lastSeenAt},{onSuccess:()=>e.onArchived(e.conversation)}),title:t.error?`Could not archive ${a}`:`Archive ${a}`,type:"button",children:(0,me.jsx)(Ud,{"aria-hidden":"true",size:15})})]})}function Sae(e){let t=jl(e.conversation.id),n=Br(e.conversation);return(0,me.jsxs)("div",{className:"absolute bottom-3 left-3 right-3 z-20 rounded-lg border border-white/15 bg-[#111719] px-3 py-2.5 shadow-[0_12px_32px_rgba(0,0,0,0.45)]",children:[(0,me.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,me.jsxs)("div",{className:"min-w-0 flex-1 truncate font-mono text-[0.68rem] text-dashboard-text-muted",role:"status",children:[n," archived"]}),(0,me.jsx)("button",{"aria-label":`Undo archive for ${n}`,className:"shrink-0 rounded border border-white/15 px-2 py-1 font-mono text-[0.65rem] text-cyan-100/75 transition hover:border-white/30 hover:text-cyan-50 focus:outline-none focus:ring-2 focus:ring-cyan-300/35 disabled:opacity-40",disabled:t.isPending,onClick:()=>t.mutate({archived:!1,lastSeenAt:e.conversation.lastSeenAt},{onSuccess:e.onRestored}),type:"button",children:t.isPending?"Restoring\u2026":"Undo"})]}),t.error?(0,me.jsx)("div",{className:"mt-1 font-mono text-[0.62rem] text-rose-200/80",role:"alert",children:"Could not restore the conversation."}):null]})}var qH=w(X(),1);function Hl(e){let t=[];for(let n of e){let o=[],a=0,r=()=>{o.length!==0&&(t.push({key:`${n.sourceSeq}:message:${a}`,kind:"message",message:{...n,parts:o}}),o=[],a+=1)};for(let[A,i]of n.parts.entries()){if(i.type==="text"){o.push(i);continue}r(),i.type==="tool_call"?t.push({key:`tool:${i.id}`,kind:"tool",part:i,timestamp:i.startedTimestamp??n.timestamp}):i.type==="reasoning"?t.push({key:`${n.sourceSeq}:reasoning:${A}`,kind:"reasoning",part:i,timestamp:n.timestamp}):i.type==="subagent"?t.push({key:`subagent:${i.id}`,kind:"subagent",part:i,timestamp:n.timestamp}):t.push({key:`${n.sourceSeq}:context:${A}`,kind:"context",part:i,timestamp:n.timestamp})}r(),n.outcome&&t.push({key:`${n.sourceSeq}:failure`,kind:"failure",outcome:n.outcome,timestamp:n.timestamp})}return t}function BA(e){return e.parts.map(t=>t.type==="text"?t.text??"":t.type==="reasoning"?t.text??"reasoning redacted":t.type==="tool_call"?`tool_call ${t.name}`:t.type==="subagent"?`subagent ${t.subagentKind}
|
|
88
88
|
status ${t.status}`:t.event.type!=="handoff"?["context compacted",t.event.summary].filter(n=>n!==void 0).join(`
|
|
89
89
|
`):["model handoff",`profile ${t.event.modelProfile}`,`model ${t.event.modelId}`,t.event.summary,t.event.reasoningLevel?`reasoning ${t.event.reasoningLevel}`:void 0].filter(n=>n!==void 0).join(`
|