@lichao0223/lobehub-cli 0.0.99 → 0.0.100

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.
@@ -167,7 +167,7 @@ Error generating stack: `+e.message+`
167
167
 
168
168
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=aS,c=!wS.jitless,l=c&&Rxe.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?ICe([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}}),Pwe=bS(`$ZodUnion`,(e,t)=>{BS.init(e,t),_S(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),_S(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),_S(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),_S(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>nxe(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>LCe(t,r,e,i)):LCe(o,r,e,i)}}),Fwe=bS(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Pwe.init(e,t);let n=e._zod.parse;_S(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||tS(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=axe(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=eS(()=>RCe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!aS(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Iwe=bS(`$ZodIntersection`,(e,t)=>{BS.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>BCe(e,t,n)):BCe(e,i,a)}}),Lwe=bS(`$ZodRecord`,(e,t)=>{BS.init(e,t);let n=wS.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!oS(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>mS(e,i,xS())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...fS(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...fS(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e))if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e);l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&MS.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>mS(e,i,xS())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...fS(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...fS(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Rwe=bS(`$ZodEnum`,(e,t)=>{BS.init(e,t);let n=Qbe(t.entries),r=new Set(n);e._zod.values=r,_S(e,`pattern`,e=>{let t=Qbe(e.def.entries).filter(e=>zxe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>sS(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),zwe=bS(`$ZodLiteral`,(e,t)=>{BS.init(e,t);let n=new Set(t.values);e._zod.values=n,_S(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?sS(e):e?sS(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Bwe=bS(`$ZodTransform`,(e,t)=>{BS.init(e,t),e._zod.optin=`optional`,wS.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yxe(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new CS;return n.value=i,n}}),Vwe=bS(`$ZodOptional`,(e,t)=>{BS.init(e,t),_S(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,_S(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),_S(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${nxe(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>VCe(e,t)):VCe(e,r)}return t.innerType._zod.run(e,n)}}),Hwe=bS(`$ZodExactOptional`,(e,t)=>{Vwe.init(e,t),_S(e,`values`,e=>e.def.innerType._zod.values),_S(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Uwe=bS(`$ZodNullable`,(e,t)=>{BS.init(e,t),_S(e,`optin`,e=>e.def.innerType._zod.optin),_S(e,`optout`,e=>e.def.innerType._zod.optout),_S(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${nxe(t.source)}|null)$`):void 0}),_S(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Wwe=bS(`$ZodDefault`,(e,t)=>{BS.init(e,t),e._zod.optin=`defaulted`,_S(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>HCe(e,t)):HCe(r,t)}}),Gwe=bS(`$ZodPrefault`,(e,t)=>{BS.init(e,t),e._zod.optin=`defaulted`,_S(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Kwe=bS(`$ZodNonOptional`,(e,t)=>{BS.init(e,t),_S(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>UCe(t,e)):UCe(i,e)}}),qwe=bS(`$ZodCatch`,(e,t)=>{BS.init(e,t),_S(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),_S(e,`optout`,e=>e.def.innerType._zod.optout),_S(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>WCe(e,r,t,n)):WCe(e,r,t,n)}}),Jwe=bS(`$ZodPipe`,(e,t)=>{BS.init(e,t),_S(e,`values`,e=>e.def.in._zod.values),_S(e,`optin`,e=>e.def.in._zod.optin),_S(e,`optout`,e=>e.def.out._zod.optout),_S(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>zS(e,t.in,n)):zS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>zS(e,t.out,n)):zS(r,t.out,n)}}),Ywe=bS(`$ZodPreprocess`,(e,t)=>{Jwe.init(e,t)}),Xwe=bS(`$ZodReadonly`,(e,t)=>{BS.init(e,t),_S(e,`propValues`,e=>e.def.innerType._zod.propValues),_S(e,`values`,e=>e.def.innerType._zod.values),_S(e,`optin`,e=>e.def.innerType?._zod?.optin),_S(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(GCe):GCe(r)}}),Zwe=bS(`$ZodLazy`,(e,t)=>{BS.init(e,t),ixe(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),_S(e,`pattern`,e=>e.innerType?._zod?.pattern),_S(e,`propValues`,e=>e.innerType?._zod?.propValues),_S(e,`optin`,e=>e.innerType?._zod?.optin??void 0),_S(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Qwe=bS(`$ZodCustom`,(e,t)=>{PS.init(e,t),BS.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>KCe(t,n,r,e));KCe(i,n,r,e)}})}));function eTe(e){return typeof e==`object`&&!!e}function tTe(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function WS(e,t,n){let r=cTe.get(e);if(r!==void 0)return r?JS:KS;if(t.has(e))return JS;t.add(e);let i=KS,a=e=>{if(i!==JS&&e?._zod){let r=WS(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=KS;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?qS:o.value?._zod?WS(o.value,t,n):KS;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=axe(c);s(e?o(e,!0):qS),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?WS(r,t,!1):qS);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),nTe(e,i)}function nTe(e,t){return t!==qS&&cTe.set(e,t===JS),t}function rTe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function iTe(){return lTe}function aTe(e,t){let n=e[GS]?.backEdges;return n!==void 0&&eTe(t)&&n.has(t)}var oTe,GS,sTe,cTe,KS,qS,JS,YS,XS,lTe,uTe=o((()=>{yS(),oTe=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},GS=`~memo`,sTe=[],cTe=new WeakMap,KS=0,qS=1,JS=2,XS=[],lTe={alloc(e,t,n){let r=YS;if(!r)return n;YS=void 0;let i={value:n,issues:null};return r.set(t.value,i),XS.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&aTe(n,e.value))throw new oTe;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=WS(e,new Set,!1);if(i===KS)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===JS||r?n=!0:r=!0}let l=s.value;if(!eTe(l))return t(s,c);let u=c[GS];u||(u={buckets:new WeakMap,backEdges:void 0},c[GS]=u);let d;i===c?d=a:(d=rTe(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...tTe(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;YS=d;let p=XS.length,m=t(s,c);YS=void 0;let h=XS.length>p?XS.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?tTe(e.issues):sTe),e)):(h&&(h.issues=m.issues.length?tTe(m.issues):sTe),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function dTe(){return{localeError:fTe()}}var fTe,pTe=o((()=>{yS(),fTe=()=>{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(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Dxe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${fxe(e.values[0])}`:`Invalid option: expected one of ${$be(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${$be(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function mTe(){return new gTe}var hTe,gTe,ZS,_Te=o((()=>{gTe=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(hTe=globalThis).__zod_globalRegistry??(hTe.__zod_globalRegistry=mTe()),ZS=globalThis.__zod_globalRegistry})),vTe=o((()=>{}));function yTe(e){return e.checks&&=[...e.checks],e}function bTe(e,t){return new e(yTe({type:`string`,...lS(t)}))}function xTe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...lS(t)})}function STe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...lS(t)})}function CTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...lS(t)})}function wTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...lS(t)})}function TTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...lS(t)})}function ETe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...lS(t)})}function DTe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...lS(t)})}function OTe(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...lS(t)})}function kTe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...lS(t)})}function ATe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...lS(t)})}function jTe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...lS(t)})}function MTe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...lS(t)})}function NTe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...lS(t)})}function PTe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...lS(t)})}function FTe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...lS(t)})}function ITe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...lS(t)})}function LTe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...lS(t)})}function RTe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...lS(t)})}function zTe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...lS(t)})}function BTe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...lS(t)})}function VTe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...lS(t)})}function HTe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...lS(t)})}function UTe(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...lS(t)})}function WTe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...lS(t)})}function GTe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...lS(t)})}function KTe(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...lS(t)})}function qTe(e,t){return new e(yTe({type:`number`,checks:[],...lS(t)}))}function JTe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...lS(t)})}function YTe(e,t){return new e({type:`boolean`,...lS(t)})}function XTe(e,t){return new e({type:`undefined`,...lS(t)})}function ZTe(e,t){return new e({type:`null`,...lS(t)})}function QTe(e){return new e({type:`any`})}function $Te(e){return new e({type:`unknown`})}function eEe(e,t){return new e({type:`never`,...lS(t)})}function tEe(e,t){return new e({type:`date`,coerce:!0,...lS(t)})}function nEe(e,t){return new tCe({check:`less_than`,...lS(t),value:e,inclusive:!1})}function QS(e,t){return new tCe({check:`less_than`,...lS(t),value:e,inclusive:!0})}function rEe(e,t){return new nCe({check:`greater_than`,...lS(t),value:e,inclusive:!1})}function $S(e,t){return new nCe({check:`greater_than`,...lS(t),value:e,inclusive:!0})}function iEe(e,t){return new rCe({check:`multiple_of`,...lS(t),value:e})}function aEe(e,t){return new aCe({check:`max_length`,...lS(t),maximum:e})}function eC(e,t){return new oCe({check:`min_length`,...lS(t),minimum:e})}function oEe(e,t){return new sCe({check:`length_equals`,...lS(t),length:e})}function sEe(e,t){return new cCe({check:`string_format`,format:`regex`,...lS(t),pattern:e})}function cEe(e){return new lCe({check:`string_format`,format:`lowercase`,...lS(e)})}function lEe(e){return new uCe({check:`string_format`,format:`uppercase`,...lS(e)})}function uEe(e,t){return new dCe({check:`string_format`,format:`includes`,...lS(t),includes:e})}function dEe(e,t){return new fCe({check:`string_format`,format:`starts_with`,...lS(t),prefix:e})}function fEe(e,t){return new pCe({check:`string_format`,format:`ends_with`,...lS(t),suffix:e})}function tC(e){return new mCe({check:`overwrite`,tx:e})}function pEe(e){return tC(t=>t.normalize(e))}function mEe(){return tC(e=>e.trim())}function hEe(){return tC(e=>e.toLowerCase())}function gEe(){return tC(e=>e.toUpperCase())}function _Ee(){return tC(e=>uxe(e))}function vEe(e,t,n){return new e({type:`array`,element:t,...lS(n)})}function yEe(e,t,n){let r=lS(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function bEe(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...lS(n)})}function xEe(e,t){let n=SEe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(hS(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(hS(r))}},e(t.value,t)),t);return n}function SEe(e,t){let n=new PS({check:`custom`,...lS(t)});return n._zod.check=e,n}var CEe=o((()=>{hCe(),yS()}));function nC(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&tS(e,t,n[t]);return e}function wEe(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??ZS,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function rC(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function iC(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,iC(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&nC(o.schema,c),t.io===`input`&&aC(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function TEe(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function EEe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${TEe(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+TEe(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
169
169
 
170
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function DEe(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;DEe(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function OEe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function kEe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!MEe.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??OEe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}tS(n,r,e.length===1?e[0]:kEe(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=OEe(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function AEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of MEe)if(t in e)return;let n=t.filter(e=>NEe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=kEe(t);else{let e=n[0],i=NEe.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>kEe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,nC(e,r))}function jEe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):nC(i,s),nC(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())DEe(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])AEe(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}nC(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,tS(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:oC(t,`input`,e.processors),output:oC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function aC(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return aC(r.element,n);if(r.type===`set`)return aC(r.valueType,n);if(r.type===`lazy`)return aC(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return aC(r.innerType,n);if(r.type===`intersection`)return aC(r.left,n)||aC(r.right,n);if(r.type===`record`||r.type===`map`)return aC(r.keyType,n)||aC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:aC(r.in,n)||aC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(aC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(aC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(aC(e,n))return!0;return!!(r.rest&&aC(r.rest,n))}return!1}var MEe,NEe,PEe,oC,sC=o((()=>{_Te(),yS(),MEe=new Set([`type`,`properties`,`required`,`additionalProperties`]),NEe=[`oneOf`,`anyOf`],PEe=(e,t={})=>n=>{let r=wEe({...n,processors:t});return iC(e,r),EEe(r,e),jEe(r,e)},oC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wEe({...i??{},target:a,io:t,processors:n});return iC(e,o),EEe(o,e),jEe(o,e)}}));function cC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)KEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&uC(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&uC(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&dC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&dC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&zEe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&VEe(t,i.mime);for(let e of i.patterns??[])BEe(t,e);return t}function lC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?lC(t.out):t.type===`catch`?lC(t.innerType):e._zod.optin}function FEe(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=FEe(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>FEe(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?MS:YSe).source),p):p}function IEe(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of fC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=FEe(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}function LEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(rC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),pC):JSON.parse(o)}var uC,dC,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,KEe,qEe,JEe,YEe,XEe,ZEe,QEe,$Ee,eDe,tDe,nDe,rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,dDe,fDe,fC,pDe,mDe,hDe,pC,gDe,_De,vDe,yDe,bDe,xDe,SDe,CDe=o((()=>{NS(),$we(),sC(),yS(),uC=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},dC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},REe=(e,t)=>{uC(e,`minimum`,t),dC(e,`maximum`,t)},zEe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},BEe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},VEe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},HEe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},UEe=(e,t)=>uC(e,`minimum`,t.minimum),WEe=(e,t)=>dC(e,`maximum`,t.maximum),GEe=e=>(t,n)=>{HEe(t,n.format);let[r,i]=e[n.format];uC(t,`minimum`,r),dC(t,`maximum`,i)},KEe={greater_than:(e,t)=>uC(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>dC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>zEe(e,t.value),number_format:GEe(Bxe),bigint_format:GEe(Vxe),min_length:UEe,max_length:WEe,length_equals:(e,t)=>REe(e,t.length),min_size:UEe,max_size:WEe,size_equals:(e,t)=>REe(e,t.size),string_format:(e,t)=>{HEe(e,t.format),t.pattern&&BEe(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>VEe(e,t.mime)},qEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},JEe=new Map([[hwe,HSe],[US,USe]]),YEe=e=>JEe.get(e)??e,XEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=cC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=qEe[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(YEe);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ZEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=cC(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):rC(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},QEe=(e,t,n,r)=>{n.type=`boolean`},$Ee=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},eDe=(e,t,n,r)=>{rC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},tDe=(e,t,n,r)=>{n.not={}},nDe=(e,t,n,r)=>{},rDe=(e,t,n,r)=>{},iDe=(e,t,n,r)=>{rC(e,t,n,r,`Date cannot be represented in JSON Schema`)},aDe=(e,t,n,r)=>{let i=e._zod.def,a=Qbe(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},oDe=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(rC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(rC(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},sDe=(e,t,n,r)=>{rC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},cDe=(e,t,n,r)=>{rC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},lDe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=cC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=iC(a.element,t,{...r,path:[...r.path,`items`]})},uDe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&rC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)tS(i.properties,e,iC(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?lC(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=iC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},dDe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>iC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},fDe=(e,t,n,r)=>{let i=e._zod.def,a=iC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=iC(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},fC=new WeakMap,pDe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=cC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=iC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)tS(i.patternProperties,YEe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=iC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=fC.get(t);n||(n=[],fC.set(t,n),t.deferred.push(()=>IEe(t))),n.push(e)}i.additionalProperties=iC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&lC(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},mDe=(e,t,n,r)=>{let i=e._zod.def,a=iC(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},hDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},pC=Symbol(),gDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=LEe(i.defaultValue,e,t,n,r);o!==pC&&(n.default=o)},_De=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=LEe(i.defaultValue,e,t,n,r);o!==pC&&(n._prefault=o)},vDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{rC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},yDe=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;iC(o,t,r);let s=t.seen.get(e);s.ref=o},bDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},xDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},SDe=(e,t,n,r)=>{let i=e._zod.innerType;iC(i,t,r);let a=t.seen.get(e);a.ref=i}})),mC=o((()=>{TS(),bSe(),aSe(),$we(),uTe(),hCe(),yCe(),yS(),NS(),pTe(),_Te(),_Ce(),vTe(),CEe(),sC(),CDe(),sC()})),wDe=o((()=>{mC()}));function hC(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var TDe,EDe,gC,DDe=o((()=>{mC(),yS(),TDe=new WeakSet([Object.prototype,Error.prototype]),EDe=(e,t)=>{iSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);TDe.has(n)||(TDe.add(n),hC(n,`format`,e=>t=>eSe(e,t)),hC(n,`flatten`,e=>t=>$xe(e,t)),hC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,exe,2)}),hC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,exe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},gC=bS(`ZodError`,EDe,void 0,{Parent:Error})})),ODe,kDe,ADe,jDe,MDe,NDe,PDe,FDe,IDe,LDe,RDe,zDe,BDe=o((()=>{mC(),DDe(),ODe=OS(gC),kDe=kS(gC),ADe=AS(gC),jDe=jS(gC),MDe=fSe(gC),NDe=pSe(gC),PDe=mSe(gC),FDe=hSe(gC),IDe=gSe(gC),LDe=_Se(gC),RDe=vSe(gC),zDe=ySe(gC)}));function VDe(){wS.localeError||xS(dTe())}function _C(){wS.memoizer||xS({memoizer:iTe()})}function H(e){return bTe(cOe,e)}function vC(e){return qTe(jOe,e)}function HDe(e){return JTe(MOe,e)}function yC(e){return YTe(NOe,e)}function UDe(e){return XTe(POe,e)}function WDe(e){return ZTe(FOe,e)}function bC(){return QTe(IOe)}function xC(){return $Te(LOe)}function GDe(e){return eEe(ROe,e)}function SC(e,t){return vEe(BOe,e,t)}function CC(e,t){return new VOe({type:`object`,shape:e??{},...lS(t)})}function KDe(e,t){return new VOe({type:`object`,shape:e,catchall:GDe(),...lS(t)})}function wC(e,t){return new HOe({type:`union`,options:e,...lS(t)})}function TC(e,t,n){return new UOe({type:`union`,options:t,discriminator:e,...lS(n)})}function qDe(e,t){return new WOe({type:`intersection`,left:e,right:t})}function EC(e,t,n){return!t||!t._zod?new GOe({type:`record`,keyType:H(),valueType:e,...lS(t)}):new GOe({type:`record`,keyType:e,valueType:t,...lS(n)})}function DC(e,t){return new FC({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...lS(t)})}function OC(e,t){return new FC({type:`enum`,entries:e,...lS(t)})}function kC(e,t){return new KOe({type:`literal`,values:Array.isArray(e)?e:[e],...lS(t)})}function JDe(e){return new qOe({type:`transform`,transform:e})}function YDe(e){return new JOe({type:`optional`,innerType:e})}function XDe(e){return new YOe({type:`optional`,innerType:e})}function ZDe(e){return new XOe({type:`nullable`,innerType:e})}function QDe(e,t){return new ZOe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():dxe(t)}})}function $De(e,t){return new QOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():dxe(t)}})}function eOe(e,t){return new $Oe({type:`nonoptional`,innerType:e,...lS(t)})}function tOe(e,t){return new eke({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Pxe(t)})}function nOe(e,t){return new tke({type:`pipe`,in:e,out:t})}function rOe(e){return new rke({type:`readonly`,innerType:e})}function iOe(e){return new ike({type:`lazy`,getter:e})}function AC(e,t){return yEe(ake,e??(()=>!0),t)}function aOe(e,t={}){return bEe(ake,e,t)}function oOe(e,t){return xEe(e,t)}function jC(e,t){return new nke({type:`pipe`,in:JDe(e),out:t})}var MC,sOe,cOe,NC,lOe,uOe,dOe,fOe,pOe,mOe,PC,hOe,gOe,_Oe,vOe,yOe,bOe,xOe,SOe,COe,wOe,TOe,EOe,DOe,OOe,kOe,AOe,jOe,MOe,NOe,POe,FOe,IOe,LOe,ROe,zOe,BOe,VOe,HOe,UOe,WOe,GOe,FC,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,IC=o((()=>{mC(),CDe(),sC(),pTe(),wDe(),BDe(),MC=bS(`ZodType`,(e,t)=>(VDe(),BS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(iS(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return cS(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(aOe(e,t))},superRefine(e,t){return this.check(oOe(e,t))},overwrite(e){return this.check(tC(e))},optional(){return YDe(this)},exactOptional(){return XDe(this)},nullable(){return ZDe(this)},nullish(){return YDe(ZDe(this))},nonoptional(e){return eOe(this,e)},array(){return SC(this)},or(e){return wC([this,e])},and(e){return qDe(this,e)},transform(e){return nOe(this,JDe(e))},default(e){return QDe(this,e)},prefault(e){return $De(this,e)},catch(e){return tOe(this,e)},pipe(e){return nOe(this,e)},readonly(){return rOe(this)},describe(e){let t=this.clone();return ZS.add(t,{description:e}),t},meta(...e){if(e.length===0)return ZS.get(this);let t=this.clone();return ZS.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return kxe(this,`~standard`,{...xCe(this),jsonSchema:{input:oC(this,`input`),output:oC(this,`output`)}})},set"~standard"(e){gS(this,`~standard`,e)},parse:function e(t,n){return ODe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await kDe(this,t,n,{callee:e})},safeParse(e,t){return ADe(this,e,t)},async safeParseAsync(e,t){return jDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){gS(this,`spa`,e)},validate(e,t){return uSe(this,e,t)},validateAsync(e,t){return dSe(this,e,t)},encode:function e(t,n){return MDe(this,t,n,{callee:e})},decode:function e(t,n){return NDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await PDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await FDe(this,t,n,{callee:e})},safeEncode(e,t){return IDe(this,e,t)},safeDecode(e,t){return LDe(this,e,t)},async safeEncodeAsync(e,t){return RDe(this,e,t)},async safeDecodeAsync(e,t){return zDe(this,e,t)},toJSONSchema(e){return PEe(this,{})(e)},get description(){return ZS.get(this)?.description},get _def(){return this._zod.def}}),sOe=bS(`_ZodString`,(e,t)=>{VS.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r)},Axe({format:e=>cC(e).format??null,minLength:e=>cC(e).minimum??null,maxLength:e=>cC(e).maximum??null},{regex(...e){return this.check(sEe(...e))},includes(...e){return this.check(uEe(...e))},startsWith(...e){return this.check(dEe(...e))},endsWith(...e){return this.check(fEe(...e))},min(...e){return this.check(eC(...e))},max(...e){return this.check(aEe(...e))},length(...e){return this.check(oEe(...e))},nonempty(...e){return this.check(eC(1,...e))},lowercase(e){return this.check(cEe(e))},uppercase(e){return this.check(lEe(e))},trim(){return this.check(mEe())},normalize(...e){return this.check(pEe(...e))},toLowerCase(){return this.check(hEe())},toUpperCase(){return this.check(gEe())},slugify(){return this.check(_Ee())}})),cOe=bS(`ZodString`,(e,t)=>{VS.init(e,t),sOe.init(e,t)},{email(e){return this.check(xTe(pOe,e))},url(e){return this.check(DTe(hOe,e))},jwt(e){return this.check(HTe(AOe,e))},emoji(e){return this.check(OTe(gOe,e))},guid(e){return this.check(STe(mOe,e))},uuid(e){return this.check(CTe(PC,e))},uuidv4(e){return this.check(wTe(PC,e))},uuidv6(e){return this.check(TTe(PC,e))},uuidv7(e){return this.check(ETe(PC,e))},nanoid(e){return this.check(kTe(_Oe,e))},cuid(e){return this.check(ATe(vOe,e))},cuid2(e){return this.check(jTe(yOe,e))},ulid(e){return this.check(MTe(bOe,e))},base64(e){return this.check(zTe(DOe,e))},base64url(e){return this.check(BTe(OOe,e))},xid(e){return this.check(NTe(xOe,e))},ksuid(e){return this.check(PTe(SOe,e))},ipv4(e){return this.check(FTe(COe,e))},ipv6(e){return this.check(ITe(wOe,e))},cidrv4(e){return this.check(LTe(TOe,e))},cidrv6(e){return this.check(RTe(EOe,e))},e164(e){return this.check(VTe(kOe,e))},datetime(e){return this.check(UTe(lOe,e))},date(e){return this.check(WTe(uOe,e))},time(e){return this.check(GTe(dOe,e))},duration(e){return this.check(KTe(fOe,e))}}),NC=bS(`ZodStringFormat`,(e,t)=>{HS.init(e,t),sOe.init(e,t)}),lOe=bS(`ZodISODateTime`,(e,t)=>{owe.init(e,t),NC.init(e,t)}),uOe=bS(`ZodISODate`,(e,t)=>{swe.init(e,t),NC.init(e,t)}),dOe=bS(`ZodISOTime`,(e,t)=>{cwe.init(e,t),NC.init(e,t)}),fOe=bS(`ZodISODuration`,(e,t)=>{lwe.init(e,t),NC.init(e,t)}),pOe=bS(`ZodEmail`,(e,t)=>{XCe.init(e,t),NC.init(e,t)}),mOe=bS(`ZodGUID`,(e,t)=>{JCe.init(e,t),NC.init(e,t)}),PC=bS(`ZodUUID`,(e,t)=>{YCe.init(e,t),NC.init(e,t)}),hOe=bS(`ZodURL`,(e,t)=>{QCe.init(e,t),NC.init(e,t)}),gOe=bS(`ZodEmoji`,(e,t)=>{$Ce.init(e,t),NC.init(e,t)}),_Oe=bS(`ZodNanoID`,(e,t)=>{ewe.init(e,t),NC.init(e,t)}),vOe=bS(`ZodCUID`,(e,t)=>{twe.init(e,t),NC.init(e,t)}),yOe=bS(`ZodCUID2`,(e,t)=>{nwe.init(e,t),NC.init(e,t)}),bOe=bS(`ZodULID`,(e,t)=>{rwe.init(e,t),NC.init(e,t)}),xOe=bS(`ZodXID`,(e,t)=>{iwe.init(e,t),NC.init(e,t)}),SOe=bS(`ZodKSUID`,(e,t)=>{awe.init(e,t),NC.init(e,t)}),COe=bS(`ZodIPv4`,(e,t)=>{uwe.init(e,t),NC.init(e,t)}),wOe=bS(`ZodIPv6`,(e,t)=>{fwe.init(e,t),NC.init(e,t)}),TOe=bS(`ZodCIDRv4`,(e,t)=>{pwe.init(e,t),NC.init(e,t)}),EOe=bS(`ZodCIDRv6`,(e,t)=>{mwe.init(e,t),NC.init(e,t)}),DOe=bS(`ZodBase64`,(e,t)=>{gwe.init(e,t),NC.init(e,t)}),OOe=bS(`ZodBase64URL`,(e,t)=>{_we.init(e,t),NC.init(e,t)}),kOe=bS(`ZodE164`,(e,t)=>{vwe.init(e,t),NC.init(e,t)}),AOe=bS(`ZodJWT`,(e,t)=>{ywe.init(e,t),NC.init(e,t)}),jOe=bS(`ZodNumber`,(e,t)=>{bwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.isFinite=!0},Axe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=cC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=cC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=cC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>cC(e).format??null},{gt(e,t){return this.check(rEe(e,t))},gte(e,t){return this.check($S(e,t))},min(e,t){return this.check($S(e,t))},lt(e,t){return this.check(nEe(e,t))},lte(e,t){return this.check(QS(e,t))},max(e,t){return this.check(QS(e,t))},int(e){return this.check(HDe(e))},safe(e){return this.check(HDe(e))},positive(e){return this.check(rEe(0,e))},nonnegative(e){return this.check($S(0,e))},negative(e){return this.check(nEe(0,e))},nonpositive(e){return this.check(QS(0,e))},multipleOf(e,t){return this.check(iEe(e,t))},step(e,t){return this.check(iEe(e,t))},finite(){return this}})),MOe=bS(`ZodNumberFormat`,(e,t)=>{xwe.init(e,t),jOe.init(e,t)}),NOe=bS(`ZodBoolean`,(e,t)=>{Swe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QEe(e,t,n,r)}),POe=bS(`ZodUndefined`,(e,t)=>{Cwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eDe(e,t,n,r)}),FOe=bS(`ZodNull`,(e,t)=>{wwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$Ee(e,t,n,r)}),IOe=bS(`ZodAny`,(e,t)=>{Twe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nDe(e,t,n,r)}),LOe=bS(`ZodUnknown`,(e,t)=>{Ewe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rDe(e,t,n,r)}),ROe=bS(`ZodNever`,(e,t)=>{Dwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tDe(e,t,n,r)}),zOe=bS(`ZodDate`,(e,t)=>{Owe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iDe(e,t,n,r),e.min=(t,n)=>e.check($S(t,n)),e.max=(t,n)=>e.check(QS(t,n))},Axe({minDate:e=>{let{minimum:t}=cC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=cC(e);return t?new Date(t):null}},{})),BOe=bS(`ZodArray`,(e,t)=>{_C(),Awe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lDe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(eC(e,t))},nonempty(e){return this.check(eC(1,e))},max(e,t){return this.check(aEe(e,t))},length(e,t){return this.check(oEe(e,t))},unwrap(){return this.element}}),VOe=bS(`ZodObject`,(e,t)=>{_C(),Nwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uDe(e,t,n,r),Nxe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return DC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(iS(this._zod.def,{catchall:e}))},passthrough(){return this.clone(iS(this._zod.def,{catchall:xC()}))},loose(){return this.clone(iS(this._zod.def,{catchall:xC()}))},strict(){return this.clone(iS(this._zod.def,{catchall:GDe()}))},strip(){return this.clone(iS(this._zod.def,{catchall:void 0}))},extend(e){return gxe(this,e)},safeExtend(e){return vxe(this,e)},merge(e){return yxe(this,e)},pick(e){return mxe(this,e)},omit(e){return hxe(this,e)},partial(...e){return bxe(JOe,this,e[0])},exactPartial(...e){return bxe(YOe,this,e[0],`exactPartial`)},required(...e){return xxe($Oe,this,e[0])}}),HOe=bS(`ZodUnion`,(e,t)=>{Pwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dDe(e,t,n,r),e.options=t.options}),UOe=bS(`ZodDiscriminatedUnion`,(e,t)=>{HOe.init(e,t),Fwe.init(e,t)}),WOe=bS(`ZodIntersection`,(e,t)=>{Iwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fDe(e,t,n,r)}),GOe=bS(`ZodRecord`,(e,t)=>{_C(),Lwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pDe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),FC=bS(`ZodEnum`,(e,t)=>{Rwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aDe(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new FC({...t,checks:[],...lS(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new FC({...t,checks:[],...lS(r),entries:i})}}),KOe=bS(`ZodLiteral`,(e,t)=>{zwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oDe(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),qOe=bS(`ZodTransform`,(e,t)=>{_C(),Bwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cDe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yxe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(hS(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(hS(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),JOe=bS(`ZodOptional`,(e,t)=>{Vwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),YOe=bS(`ZodExactOptional`,(e,t)=>{Hwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),XOe=bS(`ZodNullable`,(e,t)=>{Uwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ZOe=bS(`ZodDefault`,(e,t)=>{Wwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),QOe=bS(`ZodPrefault`,(e,t)=>{Gwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_De(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$Oe=bS(`ZodNonOptional`,(e,t)=>{Kwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),eke=bS(`ZodCatch`,(e,t)=>{qwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),tke=bS(`ZodPipe`,(e,t)=>{Jwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yDe(e,t,n,r),e.in=t.in,e.out=t.out}),nke=bS(`ZodPreprocess`,(e,t)=>{tke.init(e,t),Ywe.init(e,t)}),rke=bS(`ZodReadonly`,(e,t)=>{Xwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ike=bS(`ZodLazy`,(e,t)=>{Zwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),ake=bS(`ZodCustom`,(e,t)=>{Qwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sDe(e,t,n,r)})})),oke,ske=o((()=>{mC(),oke||={}}));function cke(e){return UTe(lOe,e)}var lke=o((()=>{mC(),IC()}));function LC(e){return tEe(zOe,e)}var uke=o((()=>{mC(),IC()})),dke=o((()=>{mC(),IC(),wDe(),DDe(),BDe(),ske(),CDe(),_Te(),yS(),wDe(),lke(),IC(),$we(),pTe(),uke()})),RC=o((()=>{dke(),dke()})),zC,fke,pke,mke,hke,gke,_ke=o((()=>{RC(),zC=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],fke=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...zC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`agy`},defaultCommand:`agy`,defaultTopicGroupMode:`byProject`,iconId:`Antigravity`,install:{commands:[],docsUrl:`https://antigravity.google/docs/cli/install/`},kind:`local-cli`,menuKey:`newAntigravityAgent`,menuLabelKey:`newAntigravityAgent`,resume:{supported:!0},title:`Antigravity`,type:`antigravity`},{auth:{docsUrl:`https://ampcode.com/manual`,errorMessage:"Amp could not authenticate. Run `amp login` or configure AMP_API_KEY, then retry.",patterns:[...zC,`please (?:log|sign) in`,`amp_api_key`],signInCommand:`amp login`},defaultCommand:`amp`,defaultTopicGroupMode:`byProject`,iconId:`Amp`,install:{commands:[`curl -fsSL https://ampcode.com/install.sh | bash`,`brew install ampcode/tap/ampcode`],docsUrl:`https://ampcode.com/manual`},kind:`local-cli`,menuKey:`newAmpAgent`,menuLabelKey:`newAmpAgent`,resume:{supported:!0},title:`Amp`,type:`amp`},{auth:{docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`,errorMessage:`Claude Code could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...zC,`not logged in`],signInCommand:`claude`},defaultCommand:`claude`,defaultTopicGroupMode:`byProject`,iconId:`ClaudeCode`,install:{commands:[`curl -fsSL https://claude.ai/install.sh | bash`,`brew install --cask claude-code`],docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`},kind:`local-cli`,menuKey:`newClaudeCodeAgent`,menuLabelKey:`newClaudeCodeAgent`,resume:{supported:!0},title:`Claude Code`,type:`claude-code`},{auth:{docsUrl:`https://www.codebuddy.ai/docs/cli/installation`,errorMessage:"CodeBuddy could not authenticate. Run `codebuddy`, use `/login`, then retry.",patterns:[...zC,`authentication required`,`please use \\/login`,`not logged in`],signInCommand:`codebuddy`},defaultCommand:`codebuddy`,defaultTopicGroupMode:`byProject`,iconId:`CodeBuddy`,install:{commands:[`npm install -g @tencent-ai/codebuddy-code`,`brew install Tencent-CodeBuddy/tap/codebuddy-code`],docsUrl:`https://www.codebuddy.ai/docs/cli/installation`},kind:`local-cli`,menuKey:`newCodeBuddyAgent`,menuLabelKey:`newCodeBuddyAgent`,resume:{supported:!0},title:`CodeBuddy`,type:`codebuddy`},{auth:{docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`,errorMessage:`Codex could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:zC,signInCommand:`codex`},defaultCommand:`codex`,defaultTopicGroupMode:`byProject`,iconId:`Codex`,install:{commands:[`npm install -g @openai/codex`,`brew install --cask codex`],docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`},kind:`local-cli`,menuKey:`newCodexAgent`,menuLabelKey:`newCodexAgent`,resume:{supported:!0},title:`Codex`,type:`codex`},{auth:{docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`,errorMessage:"GitHub Copilot CLI could not authenticate. Run `copilot login` in your terminal, then retry.",patterns:[...zC,`authentication required`,`not authenticated`,`not logged in`,`copilot login`,`gh auth login`],signInCommand:`copilot login`},defaultCommand:`copilot`,defaultTopicGroupMode:`byProject`,iconId:`GithubCopilot`,install:{commands:[`curl -fsSL https://gh.io/copilot-install | bash`,`npm install -g @github/copilot`],docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`},kind:`local-cli`,menuKey:`newCopilotAgent`,menuLabelKey:`newCopilotAgent`,resume:{supported:!0},title:`GitHub Copilot`,type:`copilot`},{auth:{docsUrl:`https://cursor.com/docs/cli/installation`,errorMessage:"Cursor could not authenticate. Run `agent login`, then retry.",patterns:[...zC,`authentication required`,`not logged in`],signInCommand:`agent login`},defaultCommand:`agent`,defaultTopicGroupMode:`byProject`,iconId:`Cursor`,install:{commands:[`curl https://cursor.com/install -fsS | bash`],docsUrl:`https://cursor.com/docs/cli/installation`},kind:`local-cli`,menuKey:`newCursorAgent`,menuLabelKey:`newCursorAgent`,resume:{supported:!0},title:`Cursor`,type:`cursor`},{auth:{docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`,errorMessage:"Factory Droid could not authenticate. Run `droid` to sign in or configure FACTORY_API_KEY, then retry.",patterns:[...zC,`authentication required`,`factory_api_key`,`device pairing`],signInCommand:`droid`},defaultCommand:`droid`,defaultTopicGroupMode:`byProject`,iconId:`Droid`,install:{commands:[`curl -fsSL https://app.factory.ai/cli | sh`,`irm https://app.factory.ai/cli/windows | iex`],docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`},kind:`local-cli`,menuKey:`newDroidAgent`,menuLabelKey:`newDroidAgent`,resume:{supported:!0},title:`Factory Droid`,type:`droid`},{auth:{docsUrl:`https://docs.devin.ai/cli/enterprise/devin-auth`,errorMessage:"Devin could not authenticate. Run `devin auth login`, then retry.",patterns:[...zC,`authentication required`,`not logged in`,`devin auth login`],signInCommand:`devin auth login`},defaultCommand:`devin`,defaultTopicGroupMode:`byProject`,iconId:`Devin`,install:{commands:[`curl -fsSL https://cli.devin.ai/install.sh | bash`,`irm https://static.devin.ai/cli/setup.ps1 | iex`],docsUrl:`https://docs.devin.ai/cli`},kind:`local-cli`,menuKey:`newDevinAgent`,menuLabelKey:`newDevinAgent`,resume:{supported:!0},title:`Devin`,type:`devin`},{auth:{docsUrl:`https://docs.x.ai/build/overview`,errorMessage:"Grok Build could not authenticate. Run `grok login`, then retry.",patterns:[...zC,`authentication required`,`no cached auth token found`,`session expired`,"run `grok login`"],signInCommand:`grok login`},defaultCommand:`grok`,defaultTopicGroupMode:`byProject`,iconId:`Grok`,install:{commands:[`curl -fsSL https://x.ai/cli/install.sh | bash`,`irm https://x.ai/cli/install.ps1 | iex`],docsUrl:`https://docs.x.ai/build/overview`},kind:`local-cli`,menuKey:`newGrokBuildAgent`,menuLabelKey:`newGrokBuildAgent`,resume:{supported:!0},title:`Grok Build`,type:`grok-build`},{auth:{docsUrl:`https://moonshotai.github.io/kimi-code/en/`,errorMessage:"Kimi Code could not authenticate. Run `kimi`, use `/login`, then retry.",patterns:[...zC,`no model configured`],signInCommand:`kimi`},defaultCommand:`kimi`,defaultTopicGroupMode:`byProject`,iconId:`Kimi`,install:{commands:[`curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash`,`irm https://code.kimi.com/kimi-code/install.ps1 | iex`],docsUrl:`https://moonshotai.github.io/kimi-code/en/`},kind:`local-cli`,menuKey:`newKimiCodeAgent`,menuLabelKey:`newKimiCodeAgent`,resume:{supported:!0},title:`Kimi Code`,type:`kimi-code`},{auth:{docsUrl:`https://opencode.ai/docs`,errorMessage:`OpenCode could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...zC,`authentication`,`invalid.*(?:credential|token|key)`],signInCommand:`opencode auth login`},defaultCommand:`opencode`,defaultTopicGroupMode:`byProject`,iconId:`OpenCode`,install:{commands:[`curl -fsSL https://opencode.ai/install | bash`],docsUrl:`https://opencode.ai/docs`},kind:`local-cli`,menuKey:`newOpenCodeAgent`,menuLabelKey:`newOpenCodeAgent`,resume:{supported:!0},title:`OpenCode`,type:`opencode`},{auth:{docsUrl:`https://github.com/earendil-works/pi`,errorMessage:"Pi could not authenticate. Run `pi`, use `/login`, then retry.",patterns:[...zC,`invalid (?:authentication )?(?:credentials?|tokens?|api keys?)`],signInCommand:`pi`},defaultCommand:`pi`,defaultTopicGroupMode:`byProject`,iconId:`Pi`,install:{commands:[`npm install -g @earendil-works/pi-coding-agent`],docsUrl:`https://github.com/earendil-works/pi`},kind:`local-cli`,menuKey:`newPiAgent`,menuLabelKey:`newPiAgent`,resume:{supported:!0},title:`Pi`,type:`pi`},{auth:{docsUrl:`https://docs.qoder.com/cli/auth.md`,errorMessage:"Qoder could not authenticate. Run `qodercli login`, then retry.",patterns:[...zC,`not logged in`,`please run \\/login`],signInCommand:`qodercli login`},defaultCommand:`qodercli`,defaultTopicGroupMode:`byProject`,iconId:`Qoder`,install:{commands:[`curl -fsSL https://qoder.com/install | bash`,`npm install -g @qoder-ai/qodercli`],docsUrl:`https://docs.qoder.com/cli/install.md`},kind:`local-cli`,menuKey:`newQoderAgent`,menuLabelKey:`newQoderAgent`,resume:{supported:!0},title:`Qoder`,type:`qoder`},{auth:{docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`,errorMessage:`TRAE CLI could not authenticate. Sign in through TRAE Enterprise, then retry.`,patterns:[...zC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`traecli`},defaultCommand:`traecli`,defaultTopicGroupMode:`byProject`,iconId:`Trae`,install:{commands:[],docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`},kind:`local-cli`,menuKey:`newTraeAgent`,menuLabelKey:`newTraeAgent`,resume:{supported:!0},title:`TRAE CLI`,type:`trae`}],pke=fke.map(({type:e})=>e),DC(pke),mke=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],hke=DC([...pke,...mke.map(({type:e})=>e)]),gke=[{cli:{command:`openclaw`,validation:{helpKeywords:[`Usage: openclaw`],keywords:[`openclaw`],pattern:`^v?\\d+\\.\\d+\\.\\d+(?:[-+][\\dA-Za-z.-]+)?$`},wellKnownHomePaths:[`.openclaw/bin/openclaw`,`.local/bin/openclaw`]},kind:`remote-task`,title:`OpenClaw`,type:`openclaw`},{cli:{command:`hermes`,validation:{keywords:[`hermes`]},wellKnownHomePaths:[`.local/bin/hermes`]},kind:`remote-task`,title:`Hermes`,type:`hermes`}]})),BC,vke,VC,yke,bke,HC,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,Pke,Fke,Ike,Lke,Rke,zke,Bke,Vke,Hke,Uke,Wke,Gke,Kke,qke,Jke,Yke,Xke,Zke,UC,WC,Qke,GC,$ke=o((()=>{Zbe(),BC=`default`,vke=[`low`,`medium`,`high`,`ultra`],VC=[`low`,`medium`,`high`,`xhigh`,`max`],yke=[`low`,`medium`,`high`,`xhigh`],bke=[`--effort`,`--reasoning-effort`],HC=[`low`,`medium`,`high`,`xhigh`],xke=[...HC,`max`,`ultra`],Ske=`model_reasoning_effort`,Cke=[`low`,`high`,`max`],wke=[`high`,`max`],Tke=[...HC,`max`],Eke=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],Dke=[`gpt-6-astra`,`gpt-5.6-luna`],Oke=[`low`,`medium`,`high`,`xhigh`,`max`],kke=`--reasoning-effort`,Ake=[`low`,`medium`,`high`,`xhigh`,`max`],jke=`--reasoning-effort`,Mke=`service_tier`,Nke=[`fast`,`priority`],Pke=e=>!!e&&vke.includes(e),Fke=e=>!!e&&VC.includes(e),Ike=e=>!!e&&xke.includes(e),Lke=e=>!!e&&yke.includes(e),Rke=e=>!!e&&Oke.includes(e),zke=e=>!!e&&Ake.includes(e),Bke=e=>!!e&&Nke.includes(e),Vke=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?Cke:e===`glm-5.2`?wke:Eke.includes(e)?xke:Dke.includes(e)?Tke:HC,Hke=e=>{let t=(Qx(e?.args,`--mode`)??e?.mode)?.trim();return Pke(t)?t:BC},Uke=[`-m`,`--model`],Wke=e=>{let t=(Qx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:BC},Gke=e=>{let t=(Qx(e?.args,`--effort`)??e?.effort)?.trim();return Fke(t)?t:BC},Kke=e=>{let t=(Gbe(e?.args,Uke)??$x(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:BC},qke=e=>{let t=($x(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return Ike(t)?t:BC},Jke=e=>{let t=($x(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&$x(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:Bke(t)?`fast`:BC},Yke=e=>{let t=(Gbe(e?.args,bke)??e?.effort)?.trim();return Lke(t)?t:BC},Xke=e=>{let t=(Qx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return Rke(t)?t:BC},Zke=e=>{let t=(Qx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return zke(t)?t:BC},UC=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:BC},WC={flags:[`-m`,`--model`],kind:`flag`},Qke={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:vke,resolve:Hke}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>VC,resolve:Gke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Wke,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>VC,resolve:Gke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Wke,source:`catalog`}},codex:{effort:{encodings:[{key:Ske,kind:`config`}],levels:Vke,resolve:qke},model:{encodings:[WC,{key:`model`,kind:`config`}],resolve:Kke,source:`catalog`},speed:{encodings:[{key:Mke,kind:`config`}],resolve:Jke}},copilot:{effort:{encodings:[{flags:[jke],kind:`flag`}],levels:()=>Ake,resolve:Zke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:UC,source:`catalog`}},droid:{model:{encodings:[],resolve:UC,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:bke,kind:`flag`}],levels:()=>yke,resolve:Yke},model:{encodings:[WC],resolve:UC,source:`catalog`}},"kimi-code":{model:{encodings:[WC],resolve:UC,source:`catalog`}},opencode:{model:{encodings:[WC],resolve:UC,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:UC,source:`catalog`}},qoder:{effort:{encodings:[{flags:[kke],kind:`flag`}],levels:()=>Oke,resolve:Xke},model:{encodings:[WC],resolve:UC,source:`catalog`}},trae:{model:{encodings:[],resolve:UC,source:`catalog`}}},GC=e=>Qke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),GC(`copilot`),GC(`grok-build`),GC(`kimi-code`),GC(`opencode`),GC(`pi`),GC(`qoder`)})),eAe=o((()=>{})),tAe=o((()=>{_ke(),eAe(),new Set([...fke.map(({type:e})=>e),...mke.map(({type:e})=>e),...gke.map(({type:e})=>e)])})),nAe=o((()=>{})),rAe=o((()=>{})),iAe,aAe,oAe,sAe,cAe=o((()=>{RC(),iAe=CC({workingDirectory:H().optional()}),aAe=CC({memory:CC({effort:DC([`low`,`medium`,`high`]).optional(),enabled:yC().optional(),toolPermission:DC([`read-only`,`read-write`]).optional()}).optional()}),oAe=CC({selfIteration:CC({enabled:yC().optional()}).optional()}),sAe=CC({codexMaxReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:DC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:DC([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:DC([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:yC().optional(),disableGatewayMode:yC().optional(),effort:DC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:yC().optional(),enableAgentMode:yC().optional(),toolMode:DC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:yC().optional(),enableCompressHistory:yC().optional(),enableContextCompression:yC().optional(),enableFollowUpChips:yC().optional(),enableHistoryCount:yC().optional(),enableMaxTokens:yC().optional(),enableReasoning:yC().optional(),enableReasoningEffort:yC().optional(),enableStreaming:yC().optional(),enableStaleToolResultTrim:yC().optional(),gpt5ReasoningEffort:DC([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:DC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:DC([`high`,`max`]).optional(),glm5_3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:DC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:DC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:DC([`high`,`xhigh`]).optional(),historyCount:vC().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:DC([`1K`,`2K`,`4K`]).optional(),imageResolution2:DC([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:iAe.optional(),preserveThinking:yC().optional(),reasoningBudgetToken:vC().optional(),reasoningBudgetToken32k:vC().optional(),reasoningBudgetToken80k:vC().optional(),reasoningEffort:DC([`low`,`medium`,`high`]).optional(),reasoningMode:DC([`standard`,`pro`]).optional(),searchFCModel:CC({model:H(),provider:H()}).optional(),searchMode:DC([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:DC([`low`,`high`]).optional(),skillActivateMode:DC([`auto`,`manual`]).optional(),textVerbosity:DC([`low`,`medium`,`high`]).optional(),thinking:DC([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:vC().optional(),thinkingLevel:DC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:DC([`low`,`high`]).optional(),thinkingLevel3:DC([`low`,`medium`,`high`]).optional(),thinkingLevel4:DC([`minimal`,`high`]).optional(),thinkingLevel5:DC([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:vC().default(25e3),topicGroupMode:DC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:yC().optional(),useModelBuiltinSearch:yC().optional()}).merge(aAe).merge(oAe)})),lAe=o((()=>{})),uAe=o((()=>{})),dAe,KC,fAe,pAe,mAe,hAe,gAe,_Ae,vAe,yAe,bAe,xAe=o((()=>{dAe=`LobeHub Cloud`,KC=`LobeHub`,fAe=`Lobe AI`,pAe=`LobeHub`,mAe={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},hAe={discord:`https://discord.gg/AYFPHvv2jT`,github:`https://github.com/lobehub`,medium:`https://medium.com/@lobehub`,x:`https://x.com/lobehub`,youtube:`https://www.youtube.com/@lobehub`},gAe={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},_Ae={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},vAe=`lobehub`,yAe=`© ${new Date().getFullYear()} ${pAe}`,bAe=`${yAe}. All rights reserved.`})),SAe,CAe,wAe,qC,JC,TAe,EAe,DAe,OAe,kAe,AAe,jAe,MAe,NAe,PAe,FAe,IAe,LAe,RAe,zAe,BAe,VAe=o((()=>{SAe=`jev-1.14.0`,CAe=`typesafe`,wAe=`openai`,qC=`deepseek-v4-flash`,JC=`deepseek`,TAe=`gpt-5.6-luna`,EAe=`openai`,DAe=`decision`,OAe=`gpt-6-luna:decision`,kAe=`openai`,AAe=`gpt-4o-mini-transcribe`,jAe=`openai`,MAe=`gemini-3-flash-preview`,NAe=`google`,PAe=`gemini-3.8-flash`,FAe=`google`,IAe=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],LAe=`glm-5.3-flash`,RAe=`zhipu`,zAe=`deepseek-flash`,BAe=`deepseek`})),HAe,UAe=o((()=>{HAe=[]})),WAe,GAe=o((()=>{WAe=`chat_preview`})),KAe=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>qAe,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>_Ae,BRANDING_INBOX_TITLE:()=>fAe,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>KC,BRANDING_PROVIDER:()=>vAe,BRANDING_URL:()=>mAe,BUSINESS_OIDC_CLIENTS:()=>HAe,COPYRIGHT:()=>yAe,COPYRIGHT_FULL:()=>bAe,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>IAe,DEFAULT_ASR_MODEL:()=>AAe,DEFAULT_ASR_PROVIDER:()=>jAe,DEFAULT_BOT_WAKE_ENGINE:()=>DAe,DEFAULT_BOT_WAKE_MODEL:()=>OAe,DEFAULT_BOT_WAKE_PROVIDER:()=>kAe,DEFAULT_CHANNEL_ROUTING_MODEL:()=>SAe,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>CAe,DEFAULT_EMBEDDING_PROVIDER:()=>wAe,DEFAULT_MINI_MODEL:()=>TAe,DEFAULT_MINI_PROVIDER:()=>EAe,DEFAULT_MODEL:()=>qC,DEFAULT_ONBOARDING_MODEL:()=>MAe,DEFAULT_ONBOARDING_PROVIDER:()=>NAe,DEFAULT_PROVIDER:()=>JC,DEFAULT_REVIEW_PREDICT_MODEL:()=>PAe,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>FAe,DEFAULT_VERIFY_MODEL:()=>LAe,DEFAULT_VERIFY_PLAN_MODEL:()=>zAe,DEFAULT_VERIFY_PLAN_PROVIDER:()=>BAe,DEFAULT_VERIFY_PROVIDER:()=>RAe,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>gAe,LOBE_CHAT_CLOUD:()=>dAe,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>JAe,ORG_NAME:()=>pAe,SOCIAL_URL:()=>hAe,UTM_SOURCE:()=>WAe,isOfficialProvider:()=>YAe}),qAe,JAe,YAe,YC=o((()=>{xAe(),xAe(),VAe(),UAe(),GAe(),qAe=`sk-lh-`,JAe=`The official provider cannot be disabled.`,YAe=e=>!1})),XAe=o((()=>{YC()})),ZAe=o((()=>{})),QAe=o((()=>{})),$Ae,eje,tje=o((()=>{RC(),$Ae=DC([`pinned`,`auto`,`disabled`]),eje=wC([H(),CC({builtinOverride:kC(!0).optional(),identifier:H(),mode:$Ae.optional()})])})),nje=o((()=>{RC(),cAe(),tje(),CC({agencyConfig:AC().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:sAe.optional(),description:H().nullish(),editorData:xC().optional(),fewShots:xC().optional(),marketIdentifier:H().nullish(),metadata:EC(H(),xC()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:SC(H()).optional(),params:EC(H(),xC()).optional(),plugins:SC(eje).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:SC(H()).optional(),title:H().nullish(),tts:AC().optional(),virtual:yC().nullish(),visibility:DC([`private`,`public`]).optional()})})),rje=o((()=>{})),ije=o((()=>{})),aje=o((()=>{})),oje=o((()=>{})),sje=o((()=>{})),cje=o((()=>{tAe(),nAe(),rAe(),cAe(),lAe(),uAe(),XAe(),Zbe(),_ke(),ZAe(),QAe(),$ke(),nje(),rje(),tje(),ije(),aje(),oje(),sje()})),lje,uje=o((()=>{lje=[`mail`,`wallet`,`service`],[...lje]})),dje=o((()=>{})),fje=o((()=>{})),pje,mje,hje=o((()=>{RC(),pje=CC({ciStatus:DC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:yC().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:vC(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),mje=CC({environmentId:H().max(255).optional(),git:CC({activeWorktree:H().optional(),autoCreated:yC().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:yC().optional(),github:CC({extraPullRequestCount:vC().optional(),pullRequest:pje.nullable().optional(),pullRequestStatus:DC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:yC().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:CC({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:DC([`git`,`github`]).optional(),sessionPath:H().optional()})})),gje=o((()=>{hje()})),_je,vje=o((()=>{_je=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),yje=o((()=>{})),bje=o((()=>{})),xje=o((()=>{})),Sje=o((()=>{RC(),gje(),vje(),yje(),bje(),xje(),CC({heteroPermissionMode:DC(_je).optional(),repos:SC(H()).optional(),sandboxDrive:DC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:yC().optional(),sandboxTemporary:yC().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:mje.optional()})})),Cje,wje=o((()=>{RC(),Cje=CC({allowDM:yC().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:SC(H()).optional(),personal:yC().optional(),revealDM:yC().optional(),systemPrompt:H().optional()}),CC({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:Cje.nullish(),content:H().nullish(),description:H().nullish(),editorData:EC(H(),bC()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:yC().nullish(),title:H().nullish(),visibility:DC([`private`,`public`]).optional()})})),Tje,Eje,Dje,Oje=o((()=>{RC(),Tje=DC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),Eje=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),Dje=KDe({allowedEnvVars:SC(H().regex(/^[A-Z_]\w*$/i)).optional(),body:EC(H(),xC()).optional(),delivery:DC([`fetch`,`qstash`]).optional(),eventFields:SC(H()).optional(),fallback:DC([`fetch`,`none`]).optional(),headers:EC(H(),H()).optional(),onError:DC([`continue`,`block`]).optional(),responseHandling:DC([`ignore`,`toolCall`]).optional(),timeout:vC().positive().max(2147483.647).optional(),url:H().min(1).refine(e=>{if(e.includes(`\\`))return!1;if(e.startsWith(`/`)&&!e.startsWith(`//`))return!0;try{let t=new URL(e);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},`Webhook URL must be HTTP(S) or an application-relative path without credentials`)}).superRefine((e,t)=>{let n=e.responseHandling===`toolCall`;n&&e.delivery===`qstash`&&t.addIssue({code:`custom`,message:`toolCall response handling requires fetch delivery`}),!n&&e.onError===`block`&&t.addIssue({code:`custom`,message:`onError:block requires toolCall response handling`}),n&&(e.eventFields!==void 0||e.body!==void 0)&&t.addIssue({code:`custom`,message:`Control hooks cannot filter or override the event payload`})}),KDe({id:H(),matcher:Eje.optional(),type:Tje,webhook:Dje}).superRefine((e,t)=>{e.matcher!==void 0&&![`beforeToolCall`,`afterToolCall`,`onToolCallError`].includes(e.type)&&t.addIssue({code:`custom`,message:`Matchers are only supported for tool events`}),e.webhook.responseHandling===`toolCall`&&![`beforeToolCall`,`afterToolCall`].includes(e.type)&&t.addIssue({code:`custom`,message:`toolCall response handling requires beforeToolCall or afterToolCall`})})})),kje=o((()=>{RC(),TC(`decision`,[CC({decision:kC(`allow`)}),CC({decision:kC(`deny`),reason:H().optional()})])})),Aje=o((()=>{})),jje,Mje=o((()=>{jje=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(jje)})),Nje=o((()=>{})),Pje=o((()=>{})),Fje,Ije,Lje,Rje=o((()=>{Fje={messages:`msg`,threads:`thd`,topics:`tpc`},Ije=`[0-9a-zA-Z]{8,32}`,Lje=e=>RegExp(`^${Fje[e]}_${Ije}$`)})),zje,Bje,Vje,Hje=o((()=>{RC(),zje=CC({attribution:DC([`user`,`provider`,`harness`,`system`]).optional(),body:bC().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:yC().optional(),httpStatus:vC().optional(),isFallback:yC().optional(),message:H().optional(),numericId:vC().optional(),retryable:yC().optional(),severity:DC([`info`,`warning`,`error`,`critical`]).optional(),type:wC([H(),vC()])}),Bje=CC({content:SC(EC(H(),xC())).optional(),encrypted_content:H().nullish(),id:H(),status:DC([`in_progress`,`completed`,`incomplete`]).optional(),summary:SC(CC({text:H(),type:kC(`summary_text`)})),type:kC(`reasoning`)}).passthrough(),Vje=CC({content:H().optional(),duration:vC().optional(),isMultimodal:yC().optional(),responseItems:SC(Bje).optional(),signature:H().optional()})})),Uje,Wje=o((()=>{Uje=function(e){return e.AgentMeta=`agent_meta`,e.AgentShare=`agent_share`,e.AgentSignal=`agent_signal`,e.Api=`api`,e.Asr=`asr`,e.Bot=`bot`,e.BuilderSuggestion=`builder_suggestion`,e.Chat=`chat`,e.Cli=`cli`,e.ContextCompression=`context_compression`,e.Cron=`cron`,e.Eval=`eval`,e.Expertise=`expertise`,e.FileEmbedding=`file_embedding`,e.FollowUp=`follow_up`,e.GenerationTopicTitle=`generation_topic_title`,e.Goal=`goal`,e.HistorySummary=`history_summary`,e.Image=`image`,e.Inbox=`inbox`,e.InputCompletion=`input_completion`,e.McpEvent=`mcp_event`,e.Memory=`memory`,e.MultimodalAnalysis=`multimodal_analysis`,e.Music=`music`,e.Notify=`notify`,e.Onboarding=`onboarding`,e.Openapi=`openapi`,e.PromptRewrite=`prompt_rewrite`,e.ProviderCheck=`provider_check`,e.Scheduled=`scheduled`,e.Scm=`scm`,e.SemanticSearch=`semantic_search`,e.SignupEmailLLMReview=`signup_email_llm_review`,e.Task=`task`,e.TaskCallback=`task_callback`,e.ThreadTitle=`thread_title`,e.Topic=`topic`,e.TopicAnalysis=`topic_analysis`,e.TopicSummary=`topic_summary`,e.TopicTitle=`topic_title`,e.Translate=`translate`,e.Tts=`tts`,e.Verify=`verify`,e.Video=`video`,e.Webhook=`webhook`,e}({})})),XC,Gje,Kje=o((()=>{RC(),XC=vC().catch(0),Gje=CC({bySource:CC({content:XC,fileContext:XC,reasoning:XC,thoughtSignature:XC,toolCallId:XC,toolCalls:XC,toolDefinition:XC}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:kC(`tokenx`).catch(`tokenx`),messageCount:XC,system:XC,total:XC})})),qje,Jje,ZC,Yje,Xje,Zje,Qje,$je,eMe,tMe=o((()=>{RC(),qje=DC([`markdown`,`text`,`xml`]),Jje=CC({endLine:vC().optional(),startLine:vC()}),ZC=CC({content:H(),format:qje.optional(),id:H(),lineRange:Jje.optional(),preview:H().optional(),title:H().optional()}),Yje=ZC.extend({anchor:CC({endNodeId:H(),endOffset:vC(),startNodeId:H(),startOffset:vC()}).optional(),pageId:H(),source:kC(`page`),xml:H().optional()}),Xje=ZC.extend({filePath:H(),language:H().optional(),side:DC([`additions`,`context`,`deletions`]).optional(),source:kC(`code`),workingDirectory:H().optional()}),Zje=ZC.extend({source:kC(`text`)}),Qje=ZC.extend({element:CC({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:kC(`element`)}),$je=ZC.extend({identifier:H(),source:kC(`mcpApp`)}),eMe=TC(`source`,[Yje,Xje,Zje,Qje,$je])})),nMe,rMe=o((()=>{RC(),tMe(),nMe=ZC.omit({lineRange:!0}).extend({anchor:CC({endNodeId:H(),endOffset:vC(),startNodeId:H(),startOffset:vC()}).optional(),startLine:vC().optional(),endLine:vC().optional(),pageId:H(),xml:H().optional()})})),iMe,aMe,QC,oMe,sMe,cMe,lMe,uMe,dMe,fMe,pMe,mMe,hMe,gMe,_Me,$C,vMe,yMe=o((()=>{RC(),Wje(),Kje(),tMe(),rMe(),iMe=wC([CC({action:DC([`create`,`update`,`delete`]),changeType:DC([`created`,`updated`]).optional(),targets:SC(CC({taskId:H().optional(),taskIdentifier:H().optional()})),type:kC(`task`)}),CC({args:EC(H(),xC()).optional(),data:xC(),provider:H(),toolName:H(),type:kC(`skill`)}),CC({action:kC(`register`),document:CC({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:DC([`created`,`updated`]),toolName:H()}),type:kC(`document`)}),CC({action:kC(`delete`),document:CC({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:kC(`document`)}),CC({action:kC(`register`),canvas:CC({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:CC({entry:H(),fileCount:vC(),manifestKey:H(),runtimeMajor:vC(),totalSize:vC()})}),type:kC(`canvas`)})]),aMe=CC({apiName:DC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:EC(H(),xC()),capturedAt:H(),content:H().nullable(),error:xC().optional(),identifier:kC(`lobe-local-system`),result:xC().optional(),snapshotId:H(),state:xC().optional(),success:yC(),toolCallId:H()}),QC=CC({inputCachedTokens:vC().optional(),inputCacheMissTokens:vC().optional(),inputWriteCacheTokens:vC().optional(),inputCachedTextTokens:vC().optional(),inputCachedImageTokens:vC().optional(),inputCachedAudioTokens:vC().optional(),inputCachedVideoTokens:vC().optional(),inputTextTokens:vC().optional(),inputImageTokens:vC().optional(),inputAudioTokens:vC().optional(),inputVideoTokens:vC().optional(),inputCitationTokens:vC().optional(),inputToolTokens:vC().optional(),inputCharacters:vC().optional(),outputTextTokens:vC().optional(),outputImageTokens:vC().optional(),outputAudioTokens:vC().optional(),outputReasoningTokens:vC().optional(),outputVideoTokens:vC().optional(),acceptedPredictionTokens:vC().optional(),rejectedPredictionTokens:vC().optional(),totalInputTokens:vC().optional(),totalOutputTokens:vC().optional(),totalTokens:vC().optional(),cost:vC().optional(),credits:vC().optional()}),oMe=CC({tps:vC().optional(),ttft:vC().optional(),duration:vC().optional(),latency:vC().optional()}),sMe=CC({emoji:H(),count:vC(),users:SC(H())}),cMe=CC({sequence:vC().optional(),sourceToolCallId:H(),sourceToolName:H(),type:DC([`tool-stdout`,`tool-callback`,`task-completion`])}),lMe=CC({identifier:H()}),uMe=CC({agentId:H().optional(),name:H(),status:DC([`completed`,`error`]),threadId:H()}),dMe=CC({identifier:H(),reason:DC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),fMe=CC({rootOperationId:H().min(1),userMessageId:H().optional()}),pMe=CC({kind:DC([`callAgent`]),visibility:kC(`internal`)}),mMe=CC({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:vC().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),hMe=CC({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),gMe=CC({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),_Me=QC.merge(oMe).extend({botSender:gMe.optional(),externalOrigin:hMe.optional(),agentDispatch:pMe.optional(),agentSender:mMe.optional(),collapsed:yC().optional(),contextAccounting:Gje.optional(),contextSelections:SC(eMe).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:vC().int().positive().optional(),inspectExpanded:yC().optional(),isMultimodal:yC().optional(),isSupervisor:yC().optional(),localSystemToolSnapshots:SC(aMe).optional(),mcpAppSource:lMe.optional(),operationId:H().min(1).optional(),orchestrationRole:DC([`supervisor`,`member`]).optional(),pageSelections:SC(nMe).optional(),performance:oMe.optional(),reactions:SC(sMe).optional(),scope:H().optional(),selectedSkillIds:SC(H()).optional(),signal:cMe.optional(),steer:yC().optional(),subAgentCallback:uMe.optional(),subAgentId:H().optional(),taskCallback:dMe.optional(),toolExecutionTimeMs:vC().optional(),toolResultSuccess:yC().optional(),toolResultStop:yC().optional(),toolWorkRegistration:iMe.optional(),trigger:OC(Uje).optional(),verifyOperationId:H().optional(),verifyRound:vC().optional(),work:fMe.optional(),usage:QC.optional()}),$C=_Me.omit({agentSender:!0}),vMe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),bMe,xMe=o((()=>{RC(),yMe(),bMe=_Me.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),CC({editorData:EC(H(),xC()).optional(),metadata:bMe.optional()}),Object.keys(bMe.shape)})),SMe,CMe=o((()=>{RC(),SMe=CC({alt:H(),height:vC().optional(),id:H(),mimeType:H().optional(),ratio:vC().optional(),url:H(),width:vC().optional()})})),wMe=o((()=>{})),TMe,EMe,DMe,OMe=o((()=>{RC(),TMe=CC({batchId:H().optional(),itemIndex:vC().int().nonnegative().optional(),operationId:H().optional(),runtimeType:DC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:yC().optional(),resolutionRequestId:H().optional(),skipped:yC().optional(),stepIndex:vC().int().nonnegative().optional(),status:DC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),EMe=CC({function:CC({arguments:H(),name:H()}),id:H(),type:H()}),DMe=CC({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:TMe.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),kMe=o((()=>{})),AMe=o((()=>{})),ew=o((()=>{Hje(),xMe(),Kje(),tMe(),CMe(),wMe(),yMe(),rMe(),OMe(),kMe(),AMe()})),jMe,MMe=o((()=>{RC(),jMe=CC({id:H(),similarity:vC()}),CC({id:H(),value:CC({fileChunks:SC(jMe),ragQueryId:H().optional()})})})),NMe,PMe,FMe=o((()=>{RC(),Hje(),OMe(),MMe(),ew(),rMe(),NMe=DC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),PMe=CC({apiName:H(),arguments:H(),identifier:H(),type:H()}),CC({role:NMe,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:PMe.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:SC(H()).optional(),error:zje.nullish(),traceId:H().optional(),fileChunks:SC(jMe).optional()}).passthrough(),CC({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:TMe.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:bC().optional(),error:bC().optional(),clientId:H().optional(),userId:H().optional()})})),IMe,LMe=o((()=>{RC(),IMe=CC({action:DC([`create`,`update`,`delete`]),agentEditable:yC().optional(),resourceType:DC([`document`,`task`])})})),tw,RMe,zMe,BMe,VMe,HMe,UMe=o((()=>{RC(),tw=DC([`never`,`required`,`always`]),RMe=wC([H(),CC({pattern:H(),type:DC([`exact`,`prefix`,`wildcard`,`regex`])})]),zMe=CC({match:EC(H(),RMe).optional(),policy:tw}),BMe=wC([tw,SC(zMe)]),CC({action:DC([`approve`,`reject`,`select`]),data:CC({remember:yC().optional(),selected:wC([H(),SC(H())]).optional()}).optional()}),CC({allowList:SC(H()).optional(),approvalMode:DC([`auto-run`,`allow-list`,`manual`,`headless`])}),VMe=CC({description:H(),match:EC(H(),RMe),policy:tw.optional()}),HMe=SC(VMe),CC({config:BMe.optional(),confirmedHistory:SC(H()).optional(),securityBlacklist:HMe.optional(),toolArgs:EC(H(),bC()).optional(),toolKey:H().optional()})})),WMe=o((()=>{})),nw,GMe,KMe,qMe,rw,JMe,YMe=o((()=>{RC(),LMe(),UMe(),WMe(),LMe(),nw=CC({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:SC(H()).optional(),title:H()}),GMe=DC([`collapsed`,`expand`,`alwaysExpand`]),KMe=CC({default:tw.optional(),policy:tw.optional(),type:H()}),qMe=wC([BMe,CC({dynamic:KMe})]),rw=CC({defaultTimeoutMs:vC().int().positive().optional(),description:H(),humanIntervention:qMe.optional(),name:H(),ordered:yC().optional(),parameters:EC(H(),bC()),renderDisplayControl:GMe.optional(),serializeBy:H().optional(),url:H().optional(),work:IMe.optional()}),JMe=CC({api:SC(rw),deviceClients:SC(DC([`cli`,`desktop`])).optional(),executors:SC(DC([`client`,`server`])).optional(),humanIntervention:qMe.optional(),identifier:H(),meta:nw,systemRole:H(),type:kC(`builtin`).optional()}),CC({discoverable:yC().optional(),hidden:yC().optional(),identifier:H(),manifest:JMe,type:kC(`builtin`)})})),XMe=o((()=>{})),ZMe=o((()=>{})),QMe,$Me=o((()=>{RC(),YMe(),QMe=CC({properties:EC(H(),bC()),required:SC(H()).optional(),type:kC(`object`)}),CC({$schema:H().optional(),api:SC(rw),connector:CC({id:H(),identifier:H()}).optional(),connectorLinks:CC({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:SC(CC({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:SC(rw).optional(),mcpModelOnlyTools:SC(H()).optional(),meta:nw,openapi:H().optional(),settings:QMe.optional(),systemRole:H().optional(),type:DC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:CC({height:vC().optional(),mode:DC([`iframe`,`module`]).optional(),url:H(),width:vC().optional()}).optional(),version:H().optional()})})),eNe=o((()=>{})),tNe=o((()=>{})),nNe,rNe=o((()=>{RC(),nNe=CC({description:H().optional(),name:H(),parameters:CC({additionalProperties:yC().optional(),properties:EC(H(),bC()),required:SC(H()).optional(),type:kC(`object`)})})})),iNe=o((()=>{YMe(),XMe(),ZMe(),UMe(),$Me(),eNe(),tNe(),rNe()})),iw,aNe,oNe,aw,sNe,ow,cNe,sw,cw,lw,lNe,uNe,dNe,uw,fNe,pNe,mNe,hNe,dw,gNe,_Ne=o((()=>{RC(),iw=1e6,aNe=2e3,oNe=2e3,aw=12e3,sNe=CC({kind:kC(`writing`)}).strict(),ow=CC({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:yC()}).strict(),cNe=CC({errors:SC(ow).max(16),evidenceCount:vC().int().nonnegative().max(iw),failedCount:vC().int().nonnegative().max(iw),succeededCount:vC().int().nonnegative().max(iw)}).strict(),cNe.omit({errors:!0}).strip(),sw=e=>H().trim().min(1).max(e),cw=sw(256),lw=sw(aNe),lNe=CC({content:sw(aw),reasoning:lw,tagline:cw}).strict(),uNe=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||!(`salience`in e))return e;let{salience:t,...n}=e;return{...n,rank:n.rank??t}},dNe=jC(uNe,CC({description:lw,rank:vC().int().min(0).max(100),title:cw}).strict()),uw=e=>SC(dNe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),fNe=CC({composition:CC({identities:uw(6),interests:uw(8),lifeStyle:uw(6),social:uw(6),working:uw(6)}).strict(),personaProposal:lNe,profile:CC({domains:SC(cw).max(8),description:lw,name:cw,pronoun:cw,roles:SC(cw).max(8),summary:lw,tagline:cw}).strict()}).strict(),CC({analysis:fNe,detailedPersona:lNe.optional(),diagnostics:cNe,feedbackRevision:vC().int().nonnegative().max(iw).default(0),generationRevision:vC().int().nonnegative().max(iw).default(0),kind:kC(`proposal`),providers:SC(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),pNe=CC({content:H().trim().min(1).max(oNe),createdAt:H(),revision:vC().int().positive().max(iw)}).strict(),mNe=CC({revision:vC().int().nonnegative().max(iw),turns:SC(pNe).max(16)}).strict(),hNe=CC({completedAt:H().optional(),errors:SC(ow).max(16),failedCount:vC().int().nonnegative().max(iw),revision:vC().int().nonnegative().max(iw),status:DC([`pending`,`running`,`completed`,`failed`]),succeededCount:vC().int().nonnegative().max(iw)}).strict(),dw={detailed:TC(`status`,[CC({status:kC(`running`),updatedAt:H()}).strict(),CC({status:kC(`completed`),updatedAt:H()}).strict(),CC({error:ow,status:kC(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:vC().int().nonnegative().max(iw).default(0),generationRevision:vC().int().nonnegative().max(iw).default(0),sourceFingerprint:H(),updatedAt:H()},gNe=TC(`status`,[CC({...dw,resultMessageId:H().optional(),status:kC(`running`)}).strict(),CC({...dw,resultMessageId:H(),status:kC(`completed`)}).strict(),CC({...dw,error:ow,resultMessageId:H().optional(),status:kC(`failed`)}).strict()]),CC({confirmedAt:H().optional(),feedback:mNe.default({revision:0,turns:[]}),generationRevision:vC().int().nonnegative().max(iw).default(0),id:H(),sources:EC(H().max(64),hNe),writing:gNe.optional()}).strict()})),fw,vNe,yNe=o((()=>{RC(),_Ne(),fw={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},vNe=CC({clientMode:yC().optional(),completedAt:H().optional(),duration:vC().optional(),error:bC().optional(),model:H().optional(),onboardingUnderstanding:sNe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:vC().optional(),totalLlmCalls:vC().optional(),totalMessages:vC().optional(),totalTokens:vC().optional(),totalSteps:vC().optional(),totalToolCalls:vC().optional()}),CC({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:vNe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:DC([fw.Continuation,fw.Eval,fw.Standalone,fw.Isolation])})})),bNe,xNe,pw,SNe,mw,CNe,wNe=o((()=>{RC(),Rje(),ew(),FMe(),iNe(),yNe(),bNe=CC({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:DC([fw.Continuation,fw.Standalone,fw.Isolation])}),xNe=CC({content:H(),metadata:$C.optional(),plugin:CC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:DC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:SC(DMe).optional()}),pw=e=>H().regex(Lje(e)).optional(),CC({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:CC({agentId:H().optional(),id:pw(`messages`),metadata:EC(H(),xC()).optional().transform(vMe),model:H().optional(),provider:H().optional()}),newThread:bNe.optional(),newTopic:CC({id:pw(`topics`),metadata:AC().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:SC(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:SC(xNe).optional(),newUserMessage:CC({content:H(),contextSelections:SC(eMe).optional(),editorData:EC(H(),xC()).optional(),files:SC(H()).optional(),id:pw(`messages`),metadata:$C.optional(),pageSelections:SC(nMe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:CC({excludeStatuses:SC(H()).optional(),excludeTriggers:SC(H()).optional(),includeTriggers:SC(H()).optional(),onlyMine:yC().optional()}).optional(),topicPageSize:vC().int().min(1).max(100).optional(),topicId:H().optional()}),SNe=CC({description:H().optional(),name:H(),schema:CC({$defs:bC().optional(),additionalProperties:yC().optional(),properties:EC(H(),bC()),required:SC(H()).optional(),type:kC(`object`)}),strict:yC().optional()}),CC({metadata:EC(H(),xC()).optional(),messages:SC(bC()),model:H(),provider:H(),schema:SNe.optional(),tools:SC(CC({function:nNe,type:kC(`function`)})).optional(),tracing:CC({tracingId:H().uuid().optional()}).catchall(xC()).optional()}),mw=wC([H(),SC(xC()),EC(H(),xC())]),CNe=TC(`type`,[CC({criteria:CC({false:mw,true:mw}).optional(),instructions:mw,type:kC(`boolean`)}),CC({criteria:EC(H(),mw.nullable()),instructions:mw,type:kC(`choice`)}),CC({criteria:SC(mw).min(1),instructions:mw,type:kC(`score`)})]),CC({metadata:EC(H(),xC()).optional(),model:H(),provider:H(),questions:EC(H(),CNe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:mw,tracing:CC({tracingId:H().uuid().optional()}).catchall(xC()).optional()})})),TNe=o((()=>{RC()})),ENe=o((()=>{})),DNe=o((()=>{})),ONe=o((()=>{})),kNe=o((()=>{})),ANe=o((()=>{})),jNe,MNe=o((()=>{_ke(),jNe=gke.map(({type:e})=>e),[...hke.options,...jNe]})),NNe=o((()=>{})),PNe=o((()=>{NNe()})),FNe=o((()=>{})),INe=o((()=>{})),LNe=o((()=>{})),RNe=o((()=>{})),zNe=o((()=>{})),BNe=o((()=>{})),VNe=o((()=>{})),HNe=o((()=>{})),UNe=o((()=>{RC(),CC({connected:yC(),cpuCount:vC().int().min(1).max(4096),cpuPercent:vC().min(0).max(100).nullable(),diskTotalBytes:vC().int().min(0).nullish(),diskUsedBytes:vC().int().min(0).nullish(),load1:vC().min(0).nullable(),load5:vC().min(0).nullable(),load15:vC().min(0).nullable(),memoryTotalBytes:vC().int().min(0),memoryUsedBytes:vC().int().min(0),observedAt:vC().int().min(0)})})),WNe=o((()=>{})),GNe=o((()=>{})),KNe=o((()=>{})),qNe=o((()=>{})),JNe=o((()=>{})),YNe=o((()=>{})),XNe=o((()=>{})),ZNe=o((()=>{})),QNe=o((()=>{WNe(),GNe(),KNe(),qNe(),JNe(),YNe(),XNe(),ZNe()})),$Ne=o((()=>{RC(),CC({shareId:H(),topicId:H(),visitorUserId:H()})})),ePe=o((()=>{})),tPe=o((()=>{})),nPe=o((()=>{$Ne(),ePe(),tPe()})),rPe=o((()=>{})),iPe=o((()=>{})),aPe=o((()=>{})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe=o((()=>{})),dPe=o((()=>{})),fPe=o((()=>{RC(),CC({ideal:H().optional(),question:H(),referenceFiles:H().or(SC(H())).optional()}),CC({description:H().optional(),knowledgeBaseId:H(),name:H()})})),pPe=o((()=>{})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{RC(),CC({ideal:H().optional(),question:H(),referenceFiles:H().or(SC(H())).optional()}),CC({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),_Pe=o((()=>{})),vPe=o((()=>{})),yPe=o((()=>{})),bPe,xPe=o((()=>{RC(),YMe(),bPe=CC({api:SC(rw.pick({name:!0,description:!0,parameters:!0}).strict().refine(e=>!e.name.includes(`____`),`Tool names cannot contain the routing separator`)).min(1),identifier:H().min(1).max(255).refine(e=>!e.includes(`____`),`Tool identifiers cannot contain the routing separator`),meta:nw,systemRole:H().optional(),type:DC([`builtin`,`default`,`markdown`,`mcp`,`standalone`]).optional()}).strict().refine(e=>new Set(e.api.map(e=>e.name)).size===e.api.length,`Tool names must be unique within a contract`),EC(H().min(1).max(255),bPe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),SPe=o((()=>{oPe(),sPe(),cPe(),lPe(),uPe(),dPe(),fPe(),pPe(),mPe(),hPe(),gPe(),_Pe(),vPe(),yPe(),xPe()})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{})),hw,EPe,DPe=o((()=>{hw={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,AgentShareProviderNotSupported:`AgentShareProviderNotSupported`,SupervisorDecisionFailed:`SupervisorDecisionFailed`,AgentConcurrencyLimitExceeded:`AgentConcurrencyLimitExceeded`,InsufficientBudgetForAgentRunFee:`InsufficientBudgetForAgentRunFee`,InvalidUserKey:`InvalidUserKey`,CreateMessageError:`CreateMessageError`,LobeHubModelDeprecated:`LobeHubModelDeprecated`,NoOpenAIAPIKey:`NoOpenAIAPIKey`,OllamaServiceUnavailable:`OllamaServiceUnavailable`,PluginFailToTransformArguments:`PluginFailToTransformArguments`,UnknownChatFetchError:`UnknownChatFetchError`,SystemTimeNotMatchError:`SystemTimeNotMatchError`,ServerAgentRuntimeError:`ServerAgentRuntimeError`,DeviceGatewayNotConfigured:`DeviceGatewayNotConfigured`,DeviceResponseTimeout:`DeviceResponseTimeout`,RemoteServerOffline:`RemoteServerOffline`,RemoteServerTimeout:`RemoteServerTimeout`,RemoteServerDNSFailed:`RemoteServerDNSFailed`,RemoteServerConnectionRefused:`RemoteServerConnectionRefused`,RemoteServerCertInvalid:`RemoteServerCertInvalid`,RemoteServerUnreachable:`RemoteServerUnreachable`,BadRequest:400,Unauthorized:401,Forbidden:403,ContentNotFound:404,MethodNotAllowed:405,TooManyRequests:429,InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504},EPe=[hw.RemoteServerOffline,hw.RemoteServerTimeout,hw.RemoteServerDNSFailed,hw.RemoteServerConnectionRefused,hw.RemoteServerCertInvalid,hw.RemoteServerUnreachable],new Set(EPe)})),OPe,kPe,APe=o((()=>{RC(),OPe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),kPe=100,CC({category:H().optional(),filesOnly:yC().optional(),includeContentPreview:yC().optional(),knowledgeBaseId:H().optional(),limit:vC().int().positive().max(kPe).default(50),offset:vC().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:yC().default(!1),sortType:DC([`desc`,`asc`]).optional(),sorter:DC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:OC(OPe).optional(),visibility:DC([`private`,`public`]).optional()})})),jPe,MPe=o((()=>{RC(),jPe=CC({shareId:H(),visitorUserId:H()}),CC({agentShare:jPe.optional(),date:H(),dirname:H(),filename:H(),height:vC().optional(),path:H(),ratio:vC().optional(),width:vC().optional()}),CC({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:bC().optional(),name:H(),size:vC(),source:H().optional(),url:H().optional()})})),NPe,PPe=o((()=>{APe(),MPe(),NPe=function(e){return e.Acceptance=`acceptance`,e.AgentDocument=`agent-document`,e.Canvas=`canvas`,e.ChatAttachment=`chat-attachment`,e.ImageGeneration=`image_generation`,e.Meeting=`meeting`,e.MusicGeneration=`music_generation`,e.PageEditor=`page-editor`,e.Skill=`skill`,e.ToolResult=`tool-result`,e.VideoGeneration=`video_generation`,e}({}),new Set(Object.values(NPe))})),FPe=o((()=>{})),IPe,LPe,RPe,zPe,gw,BPe,VPe,HPe,UPe,WPe=o((()=>{RC(),IPe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],LPe=[`agentEmoji`,`agentName`,`fullName`],RPe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],zPe=[`agent_identity`,`user_identity`,`discovery`,`summary`],gw=H().trim().transform(e=>e.length>0?e:void 0).optional(),BPe=SC(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),DC(IPe),VPe=DC(LPe),HPe=DC(RPe),CC({agentEmoji:gw,agentName:gw,customInterests:BPe,fullName:gw,interests:BPe}).strict(),UPe=DC(zPe),CC({discoveryUserMessageCount:vC().optional(),finished:yC(),missingStructuredFields:SC(VPe),phase:UPe,remainingDiscoveryExchanges:vC().optional(),topicId:H().optional(),version:vC()}).strict(),CC({activeTopicId:H().optional(),discoveryStartUserMessageCount:vC().optional(),finishedAt:H().optional(),version:vC()}).strict(),CC({node:HPe,patch:CC({}).passthrough()}).strict()})),GPe,KPe,qPe=o((()=>{RC(),WPe(),GPe=wC([CC({kind:kC(`onboarding`),phase:UPe}),CC({kind:kC(`chat`)})]),KPe=CC({model:H().min(1),provider:H().min(1)}),CC({hint:GPe.optional(),modelConfig:KPe,threadId:H().optional(),topicId:H().min(1)})})),JPe=o((()=>{})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe=o((()=>{})),_w,QPe,$Pe,eFe,tFe,nFe,rFe,iFe,aFe,oFe=o((()=>{RC(),_w=SC(H().trim().min(1)).max(200),QPe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),$Pe=jC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||QPe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),eFe=[`dead_end`,`superseded`,`retry`],tFe=2e3,nFe=CC({kind:DC(eFe),lesson:H().trim().min(1).max(tFe),nodeIds:_w.min(1),reason:H().trim().min(1).max(tFe),title:H().trim().min(1).max(200)}).strict(),rFe=CC({detours:SC(nFe).max(20).default([]),findingIds:_w.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:_w.default([]),title:H().trim().min(1).max(200),workVersionIds:_w.default([])}).strict(),iFe=CC({nodeIds:_w.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),aFe=CC({edgeIds:_w.default([]),nodeIds:_w.min(1)}).strict(),CC({chapters:SC(rFe).min(1).max(30),deliverableWorkId:$Pe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:aFe.optional(),nextSteps:SC(iFe).max(20).default([])}).strict()})),sFe=o((()=>{})),cFe=o((()=>{})),lFe=o((()=>{})),uFe=o((()=>{})),dFe,fFe,pFe,mFe=o((()=>{RC(),dFe=CC({apiName:H(),arguments:H(),id:H(),identifier:H(),type:kC(`default`)}),fFe=CC({clientId:H(),content:H(),createdAt:H().optional(),metadata:EC(H(),bC()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:CC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:EC(H(),bC()).optional(),provider:H().optional(),reasoning:CC({content:H()}).passthrough().optional(),role:DC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:SC(dFe).optional(),usage:EC(H(),bC()).optional()}),pFe=CC({clientId:H(),messages:SC(fFe),sourceMessageClientId:H().optional(),status:DC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:DC([`continuation`,`standalone`,`isolation`])}),CC({messages:SC(fFe),metadata:EC(H(),bC()).optional(),sessionId:H(),source:DC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:SC(pFe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),hFe=o((()=>{})),gFe=o((()=>{})),_Fe=o((()=>{})),vFe=o((()=>{})),yFe,bFe=o((()=>{yFe=[`triage`,`backlog`,`unstarted`,`started`],[...yFe]})),xFe=o((()=>{})),SFe=o((()=>{})),CFe=o((()=>{})),wFe=o((()=>{})),TFe,EFe,DFe=o((()=>{RC(),TFe=CC({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),EFe=CC({citations:SC(CC({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:SC(TFe).optional(),imageSearchQueries:SC(H()).optional(),searchQueries:SC(H()).optional()})})),OFe=o((()=>{RC(),DFe(),ew(),CC({content:H().optional(),editorData:EC(H(),bC()).nullish(),error:zje.nullish(),imageList:SC(SMe).optional(),metadata:$C.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:Vje.optional(),role:H().optional(),search:EFe.nullish(),toolCalls:SC(EMe).optional(),tools:SC(DMe).nullish(),traceId:H().optional(),usage:QC.optional()}).passthrough()})),kFe=o((()=>{wFe(),OFe()})),AFe=o((()=>{})),jFe=o((()=>{})),MFe=o((()=>{})),NFe=o((()=>{})),PFe=o((()=>{AFe(),jFe(),MFe(),FMe(),MMe(),NFe()})),FFe=o((()=>{ew(),kFe(),PFe()})),IFe=o((()=>{RC(),CC({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:SC(H()).optional(),title:H().optional()})})),LFe=o((()=>{})),RFe=o((()=>{})),zFe,BFe=o((()=>{RC(),zFe=CC({accessToken:H().optional(),token:H().optional(),type:DC([`none`,`bearer`,`oauth2`])}).optional(),CC({auth:zFe,headers:EC(H(),H()).optional(),identifier:H(),metadata:CC({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),VFe=o((()=>{})),HFe=o((()=>{BFe(),VFe()})),UFe=o((()=>{})),WFe=o((()=>{RC(),CC({fileIds:SC(H()).optional(),knowledgeIds:SC(H()).optional(),query:H(),topK:vC().optional()})})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{})),JFe=o((()=>{})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe,$Fe=o((()=>{QFe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),eIe=o((()=>{ZFe(),$Fe()})),tIe,nIe,rIe=o((()=>{tIe=`NO_REPLY`,nIe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${tIe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(nIe)})),iIe,aIe=o((()=>{RC(),iIe=CC({name:H(),url:H().url().optional()}),CC({author:wC([H(),iIe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:SC(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),oIe=o((()=>{})),sIe=o((()=>{})),cIe=o((()=>{})),lIe,uIe=o((()=>{lIe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],lIe[0]})),vw,dIe=o((()=>{vw=1440*60*1e3,30*vw,90*vw,7*vw})),fIe=o((()=>{sIe(),cIe(),uIe(),dIe()})),pIe=o((()=>{})),yw,mIe,hIe,gIe,_Ie,vIe,yIe,bIe=o((()=>{RC(),yw=DC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),CC({serverDefaultHeterogeneousProfiles:SC(H().min(1)).optional()}).passthrough(),mIe=CC({audio:yC().optional(),functionCall:yC().optional(),imageOutput:yC().optional(),reasoning:yC().optional(),search:yC().optional(),video:yC().optional(),vision:yC().optional()}),hIe=CC({codexMaxReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:DC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:DC([`none`,`high`,`max`]).optional(),effort:DC([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:DC([`high`,`max`]).optional(),glm5_3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:DC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:DC([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:DC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:DC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),opus47Effort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:DC([`low`,`medium`,`high`]).optional(),reasoningMode:DC([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:DC([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:DC([`low`,`high`]).optional(),thinkingLevel:DC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:DC([`low`,`high`]).optional(),thinkingLevel3:DC([`low`,`medium`,`high`]).optional(),thinkingLevel4:DC([`minimal`,`high`]).optional(),thinkingLevel5:DC([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(hIe.shape),gIe=DC(`reasoningBudgetToken.reasoningBudgetToken32k.reasoningBudgetToken80k.enableReasoning.preserveThinking.enableAdaptiveThinking.disableContextCaching.effort.deepseekV4GAReasoningEffort.deepseekV4ReasoningEffort.qwen38ReasoningEffort.reasoningEffort.reasoningMode.gpt5ReasoningEffort.gpt5_1ReasoningEffort.gpt5_2ReasoningEffort.gpt5_2ProReasoningEffort.gpt5_6ReasoningEffort.gpt6ReasoningEffort.glm5_2ReasoningEffort.glm5_3ReasoningEffort.grok4_20ReasoningEffort.grok4_3ReasoningEffort.grok4_5ReasoningEffort.grok4_6ReasoningEffort.grok4_7ReasoningEffort.hy3ReasoningEffort.kimiK3ReasoningEffort.ring2_6ReasoningEffort.codexMaxReasoningEffort.opus47Effort.step3_5ReasoningEffort.textVerbosity.thinking.thinkingBudget.thinkingLevel.thinkingLevel2.thinkingLevel3.thinkingLevel4.thinkingLevel5.imageAspectRatio.imageAspectRatio2.imageResolution.imageResolution2.urlContext`.split(`.`)),_Ie=DC([`tool`,`params`,`internal`]),vIe=DC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),yIe=CC({disabledParams:SC(vIe).optional(),extendParams:SC(gIe).optional(),searchImpl:_Ie.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),CC({abilities:mIe.optional(),contextWindowTokens:vC().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:yIe.optional(),type:yw.optional()}),CC({abilities:mIe.optional(),config:CC({deploymentName:H().optional()}).optional(),contextWindowTokens:vC().nullish(),displayName:H().nullish(),settings:yIe.optional(),type:yw.optional()}),CC({enabled:yC(),id:H(),providerId:H(),source:DC([`builtin`,`custom`,`remote`]).optional(),type:yw.optional()})})),xIe,bw,SIe,CIe,wIe,TIe,EIe,DIe,OIe=o((()=>{bIe(),RC(),gje(),vje(),xIe=CC({claimedAt:H(),expiresAt:H(),id:H()}),bw=CC({claim:xIe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),SIe=bw.extend({failedAssistantMessageId:H(),kind:kC(`resume_after_rate_limit`),rateLimit:CC({rateLimitType:H().optional(),resetsAt:vC().optional()}).optional(),resume:CC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:kC(`heterogeneous_agent`),userMessageId:H()}),CIe=bw.extend({kind:kC(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),CC({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:DC([`git`,`github`]),sourcePath:H().min(1).max(4096)}),wIe=bw.extend({error:H().optional(),kind:kC(`worktree_start`),operationId:H(),retryable:yC().optional(),userMessageId:H(),waitingForDevice:yC().optional()}),TIe=TC(`kind`,[SIe,CIe,wIe]),CC({claim:xIe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:UDe().optional(),rateLimit:CC({rateLimitType:H().optional(),resetsAt:vC().optional()}).optional(),reason:kC(`rate_limit`),resume:CC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:kC(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),EIe=CC({boundDeviceId:H().optional(),heteroEffort:AC(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:EC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:EC(H(),H()).optional(),heteroPermissionMode:DC(_je).optional(),heteroPermissionModeFallback:DC([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:DC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:CC({comment:H().max(500).optional(),rating:DC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:CC({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:CC({categoryHints:SC(H()),installedAgentIds:SC(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:SC(H()).optional(),skipReason:H().optional(),skippedAgentIds:SC(H()).optional(),status:DC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:SC(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:DC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:vC().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:hIe.optional(),repos:SC(H()).optional(),runningOperation:WDe().optional(),taskCallbackReservation:CC({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:DC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:TIe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:mje.optional()}),EIe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),DIe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],DC(DIe)})),kIe=o((()=>{pIe(),yNe(),OIe()})),AIe=o((()=>{})),jIe=o((()=>{})),MIe=o((()=>{RC(),CC({currentStep:vC().min(1).max(7).optional(),finishedAt:H().optional(),version:vC()})})),NIe=o((()=>{})),PIe,FIe,IIe=o((()=>{RC(),PIe=CC({checked:yC(),id:H().min(1).max(128),instruction:H().trim().min(1).max(4e3),providerId:H().trim().min(1).max(128),reason:H().trim().min(1).max(1e3),sources:SC(CC({subject:H().trim().min(1).max(500).optional(),title:H().trim().min(1).max(500).optional(),type:H().trim().min(1).max(128),url:H().trim().min(1).max(2048)}).strict()).min(1).max(16),title:H().trim().min(1).max(200)}).strict(),FIe=CC({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:yC()}).strict(),CC({completedAt:H().optional(),createdTaskIds:EC(H().max(128),H().max(512)),errors:SC(FIe).max(16),id:H().min(1).max(512),providerIds:SC(H().min(1).max(128)).max(16),recommendations:SC(PIe).max(48),sourceFingerprint:H().min(1).max(2048),status:DC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),LIe,RIe,zIe,BIe,VIe=o((()=>{RC(),LIe=CC({docsMerged:yC().optional(),moveSettingsToAvatar:yC().optional(),topic:yC().optional(),uploadFileInKnowledgeBase:yC().optional()}),RIe=CC({enableBetterCodingExperience:yC().optional(),enableAgentIdentity:yC().optional(),enableAgentGraphConfig:yC().optional(),enableArtifactDeployment:yC().optional(),enablePageCollab:yC().optional(),enableClaudeCodeSdk:yC().optional(),enableCodexAppServer:yC().optional(),enableDesktopSplitView:yC().optional(),enableHeteroSessionImport:yC().optional(),enableGroupChat:yC().optional(),enableImessage:yC().optional(),enableInputMarkdown:yC().optional(),enableMessageTextSelectionActions:yC().optional(),enableIntegrations:yC().optional(),enableOAuthApps:yC().optional(),enableProjects:yC().optional(),enableSelfLearning:yC().optional(),enableTaskVerify:yC().optional(),enableEvalCapture:yC().optional(),enableTopicBugReport:yC().optional(),enableGoals:yC().optional(),enableTopicAcceptance:yC().optional(),enableDeviceTunnel:yC().optional()}),zIe=CC({acceptOnMerge:yC().optional(),commentOnPrivateRepositories:yC().optional(),commentOnPublicRepositories:yC().optional(),wakeOnCiFailure:yC().optional(),wakeOnReview:yC().optional()}),BIe=CC({github:zIe.optional()}),CC({provider:H(),providerAccountId:H()}),CC({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:LIe.optional(),hideSyncAlert:yC().optional(),integration:BIe.optional(),lab:RIe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:DC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:SC(H()).optional(),sidebarHiddenGroupIds:SC(H()).optional(),terminalFontFamily:H().optional(),telemetry:yC().nullable(),topicGroupMode:DC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:yC().optional(),topicSortBy:DC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:yC().optional(),workspace:CC({order:SC(H()).optional()}).optional()}).partial()})),HIe=o((()=>{})),UIe=o((()=>{})),WIe=o((()=>{})),GIe=o((()=>{})),KIe=o((()=>{})),qIe=o((()=>{})),JIe=o((()=>{})),YIe=o((()=>{})),XIe,xw,ZIe=o((()=>{RC(),XIe=EC(H(),EC(H(),yC())),xw=CC({enabled:yC().optional(),items:XIe.optional()}).strict(),CC({content:CC({scheduledTaskSummary:yC().optional()}).strict().optional(),email:xw.optional(),im:xw.extend({platforms:EC(H(),xw.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:xw.optional(),push:xw.optional()}).strict()})),QIe=o((()=>{})),$Ie=o((()=>{})),eLe=o((()=>{})),tLe=o((()=>{})),nLe=o((()=>{RC(),HIe(),UIe(),WIe(),GIe(),KIe(),qIe(),JIe(),YIe(),ZIe(),QIe(),$Ie(),eLe(),tLe(),CC({defaultAgent:bC().optional(),general:bC().optional(),hotkey:bC().optional(),image:bC().optional(),keyVaults:bC().optional(),languageModel:bC().optional(),market:bC().optional(),memory:bC().optional(),notification:bC().optional(),systemAgent:bC().optional(),tool:bC().optional(),tts:bC().optional()}).passthrough().partial()})),rLe=o((()=>{WPe(),MIe(),NIe(),IIe(),VIe(),nLe()})),iLe=o((()=>{})),aLe=o((()=>{})),oLe=o((()=>{})),sLe=o((()=>{})),cLe,lLe=o((()=>{RC(),cLe=DC([`personal`,`professional`,`demographic`]),CC({description:H().optional(),episodicDate:H().optional(),extractedLabels:SC(H()).optional(),labels:EC(H(),bC()).optional(),relationship:H().optional(),role:H().optional(),type:cLe.optional(),userMemoryId:H().optional()}),CC({description:H().optional(),episodicDate:H().optional(),extractedLabels:SC(H()).optional(),labels:EC(H(),bC()).optional(),relationship:H().optional(),role:H().optional(),type:cLe.optional()})})),uLe,dLe,fLe=o((()=>{uLe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(uLe),dLe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(dLe)})),pLe=o((()=>{})),mLe=o((()=>{})),hLe,gLe,_Le,Sw,vLe,yLe,bLe,xLe=o((()=>{hLe=function(e){return e.Aunt=`aunt`,e.Brother=`brother`,e.Classmate=`classmate`,e.Colleague=`colleague`,e.Couple=`couple`,e.Coworker=`coworker`,e.Daughter=`daughter`,e.Father=`father`,e.Friend=`friend`,e.Granddaughter=`granddaughter`,e.Grandfather=`grandfather`,e.Grandmother=`grandmother`,e.Grandson=`grandson`,e.Husband=`husband`,e.Manager=`manager`,e.Mentee=`mentee`,e.Mentor=`mentor`,e.Mother=`mother`,e.Nephew=`nephew`,e.Niece=`niece`,e.Other=`other`,e.Partner=`partner`,e.Self=`self`,e.Sibling=`sibling`,e.Sister=`sister`,e.Son=`son`,e.Spouse=`spouse`,e.Teammate=`teammate`,e.Uncle=`uncle`,e.Wife=`wife`,e}({}),Object.values(hLe),gLe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(gLe),_Le=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(_Le),Sw=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(Sw),vLe=function(e){return e.Activity=`activity`,e.Context=`context`,e.Event=`event`,e.Fact=`fact`,e.Location=`location`,e.Other=`other`,e.People=`people`,e.Preference=`preference`,e.Technology=`technology`,e.Topic=`topic`,e}({}),Object.values(vLe),yLe=function(e){return e.Aborted=`aborted`,e.Cancelled=`cancelled`,e.Completed=`completed`,e.Ongoing=`ongoing`,e.OnHold=`on_hold`,e.Planned=`planned`,e}({}),Object.values(yLe),bLe=function(e){return e.Appointment=`appointment`,e.Call=`call`,e.Celebration=`celebration`,e.Class=`class`,e.Conference=`conference`,e.Errand=`errand`,e.Event=`event`,e.Exercise=`exercise`,e.Meal=`meal`,e.Meeting=`meeting`,e.Other=`other`,e.ProjectSession=`project-session`,e.Social=`social`,e.Task=`task`,e.Trip=`trip`,e.Workshop=`workshop`,e}({}),Object.values(bLe)})),SLe=o((()=>{})),Cw,CLe,wLe,TLe,ELe,DLe,OLe,kLe,ALe,jLe,MLe,NLe,PLe,FLe=o((()=>{RC(),xLe(),Cw=jC(e=>typeof e==`string`?[e]:e,SC(H().trim().min(1))),CLe=e=>jC(e=>typeof e==`string`?[e]:e,SC(e)),wLe=DC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),TLe=CC({activities:vC().int().min(0).optional(),contexts:vC().int().min(0).optional(),experiences:vC().int().min(0).optional(),identities:vC().int().min(0).optional(),preferences:vC().int().min(0).optional()}),ELe=CC({end:LC().optional(),field:wLe.optional(),start:LC().optional()}),DLe=DC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),OLe=CC({date:LC(),selector:kC(`day`)}),kLe=CC({month:vC().int().min(1).max(12),selector:kC(`month`),year:vC().int().min(1970).max(9999)}),ALe=CC({end:LC().optional(),selector:kC(`range`),start:LC().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),jLe=CC({selector:kC(`year`),year:vC().int().min(1970).max(9999)}),MLe=DC([`today`,`yesterday`]),NLe=iOe(()=>wC([CC({selector:DLe}),OLe,kLe,CC({anchor:wC([MLe,NLe]),offsetDays:vC().int(),selector:kC(`relativeDay`)}),ALe,jLe])),CC({categories:Cw.optional(),effort:DC([`low`,`medium`,`high`]).optional(),labels:Cw.optional(),layers:CLe(OC(Sw)).optional(),queries:Cw.optional(),relationships:Cw.optional(),status:Cw.optional(),tags:Cw.optional(),timeIntent:NLe.optional(),timeRange:ELe.optional(),topK:TLe.optional(),types:Cw.optional()}),PLe=DC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),CC({include:CLe(PLe).optional(),layers:SC(OC(Sw)).optional(),limit:vC().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:ELe.optional()})})),ILe=o((()=>{})),LLe=o((()=>{iLe(),aLe(),oLe(),sLe(),lLe(),fLe(),pLe(),mLe(),xLe(),SLe(),FLe(),ILe()})),RLe=o((()=>{})),zLe=o((()=>{})),BLe=o((()=>{zLe()})),VLe=o((()=>{})),HLe=o((()=>{})),ULe=o((()=>{VLe(),HLe()})),WLe,GLe=o((()=>{WLe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(WLe).flatMap(([e,t])=>t.map(t=>[t,e])))})),KLe=o((()=>{})),qLe=o((()=>{RC(),CC({start:vC().finite().nonnegative()}).strict()})),JLe=o((()=>{RC(),CC({preconditions:SC(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:SC(CC({id:H().min(1),name:H().min(1),description:H().optional(),resource:CC({type:DC([`file`,`document`]),id:H().min(1)}).optional(),data:EC(H(),xC()).optional()})).max(100).optional(),steps:SC(CC({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:SC(H()).optional()})).max(200).optional()}).superRefine((e,t)=>{for(let n of[`fixtures`,`steps`]){let r=(e[n]??[]).map(e=>e.id);new Set(r).size!==r.length&&t.addIssue({code:`custom`,message:`Duplicate ${n} ids`,path:[n]})}let n=new Set(e.fixtures?.map(e=>e.id));e.steps?.some(e=>e.fixtureIds?.some(e=>!n.has(e)))&&t.addIssue({code:`custom`,message:`Unknown fixture reference`,path:[`steps`]})})})),ww,YLe,XLe=o((()=>{RC(),ww=CC({height:vC().finite(),width:vC().finite(),x:vC().finite(),y:vC().finite()}),YLe=CC({commit:H().max(200).optional(),context:EC(H().max(100),wC([H().max(500),vC(),yC()])).optional(),env:CC({consoleErrors:SC(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:DC([`change`,`comment`]),region:ww.optional(),regionRefs:SC(CC({box:ww,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:CC({x:vC().finite(),y:vC().finite()}),targets:SC(CC({code:CC({chain:SC(CC({file:H().max(500).optional(),line:vC().int().optional(),name:H().max(200)})).max(5),column:vC().int(),file:H().max(500),line:vC().int()}).optional(),label:H().max(200),rect:ww,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:kC(1),viewport:CC({dpr:vC().positive(),height:vC().finite(),width:vC().finite()})}),CC({anchor:YLe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:CC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}).optional()}).refine(e=>!(e.parentId&&(e.anchor||e.screenshot)),{message:`A reply cannot carry an anchor or a screenshot`}).refine(e=>!e.anchor||JSON.stringify(e.anchor).length<=32768,{message:`Anchor is too large`}),CC({note:H().trim().max(2e3).optional(),verdict:DC([`accept`,`send_back`])})})),ZLe,Tw,Ew,Dw,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe=o((()=>{RC(),XLe(),ZLe=[`region`,`element`,`sketch`],Tw=vC().finite(),Ew=CC({height:Tw,width:Tw,x:Tw,y:Tw}),Dw=YLe.shape,QLe=iOe(()=>CC({children:SC(QLe).max(50),rect:Ew,type:DC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),$Le=CC({commit:Dw.commit,context:Dw.context,env:Dw.env}),eRe=CC({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),tRe=CC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:$Le.optional(),kind:DC(ZLe),pageMeta:eRe.optional(),rectDocument:Ew,rectViewport:Ew,regionRefs:Dw.regionRefs,regions:SC(Ew).max(6).optional(),routeKey:H().max(500),scroll:CC({x:Tw,y:Tw}),sketch:SC(QLe).max(50).optional(),targets:Dw.targets.optional(),url:H().url().max(2e3),viewport:CC({dpr:vC().positive(),height:Tw,width:Tw})}),nRe=64*1024,rRe=CC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),tRe.extend({screenshot:rRe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=nRe,{message:`Mark is too large`}),CC({content:H().trim().min(1).max(4e3).optional(),rectDocument:Ew.optional(),rectViewport:Ew.optional(),regionRefs:Dw.regionRefs,regions:SC(Ew).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),CC({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),iRe=[`pass`,`not_fixed`],CC({reason:H().trim().max(2e3).optional(),verdict:DC(iRe)}),CC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),oRe,sRe,Ow,cRe,lRe,uRe,kw,Aw,dRe,fRe,pRe=o((()=>{RC(),oRe=[`journey`,`options`,`references`,`other`],sRe=[`html`,`image`,`video`,`decision`],Ow=H(),cRe=vC().finite(),lRe=vC().finite().positive(),CC({hash:H().min(1).nullable(),kind:kC(`file`),path:H().min(1)}),uRe=CC({kind:kC(`file`),path:H().min(1)}),kw=H().min(1).optional(),Aw=H().min(1),dRe={expected:Ow.optional(),groupId:Aw.optional(),h:lRe.optional(),pageId:Aw.optional(),recommended:yC().optional(),roundId:Aw.optional(),source:uRe.optional(),title:Ow,type:DC(sRe).optional(),w:lRe.optional(),x:cRe,y:cRe},fRe={desc:Ow.optional(),kind:DC(oRe),pageId:Aw.optional(),title:Ow},TC(`type`,[CC({page:CC({name:Ow.min(1)}),ref:kw,type:kC(`addPage`)}),CC({id:Aw,patch:CC({name:Ow.min(1)}),type:kC(`updatePage`)}),CC({id:Aw,type:kC(`removePage`)}),CC({ref:kw,round:CC({batchId:Aw.optional(),pageId:Aw.optional(),title:Ow.min(1)}),type:kC(`addRound`)}),CC({id:Aw,patch:CC({title:Ow.min(1)}),type:kC(`updateRound`)}),CC({group:CC(fRe),ref:kw,type:kC(`addGroup`)}),CC({id:Aw,patch:CC({desc:Ow,kind:DC(oRe),title:Ow}).partial(),type:kC(`updateGroup`)}),CC({id:Aw,type:kC(`removeGroup`)}),CC({board:CC(dRe),ref:kw,type:kC(`addBoard`)}),CC({id:Aw,patch:CC({...dRe,groupId:Aw.nullable(),roundId:Aw.nullable()}).omit({pageId:!0,type:!0}).partial(),type:kC(`updateBoard`)}),CC({id:Aw,type:kC(`removeBoard`)}),CC({edge:CC({condition:Ow.optional(),from:Aw,isDefault:yC().optional(),label:Ow.optional(),to:Aw}),ref:kw,type:kC(`addEdge`)}),CC({id:Aw,type:kC(`removeEdge`)}),CC({boardId:Aw,expected:Ow,type:kC(`setCheck`)})])})),jw,Mw,mRe,hRe,gRe=o((()=>{RC(),jw={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},Mw=H().min(1).max(jw.maxPathLength+2),mRe=wC([CC({content:H(),path:Mw}).strict(),CC({fileRef:H().min(1),path:Mw}).strict(),CC({base64:H().min(1),path:Mw}).strict(),CC({path:Mw,uploaded:kC(!0)}).strict(),CC({fromCanvas:CC({canvasId:H().min(1),version:vC().int().positive().optional()}).strict(),path:Mw}).strict()]),SC(CC({path:Mw,size:vC().int().nonnegative()}).strict()).min(1).max(jw.maxFiles),hRe=CC({newText:H(),oldText:H().min(1),path:Mw}).strict(),CC({deletes:SC(Mw).max(jw.maxFiles).optional(),edits:SC(hRe).max(200).optional(),writes:SC(mRe).max(jw.maxFiles).optional()}).strict()})),_Re=o((()=>{})),vRe=o((()=>{})),yRe=o((()=>{})),bRe=o((()=>{})),xRe,SRe,CRe,wRe,TRe,ERe,DRe,ORe,kRe,ARe=o((()=>{RC(),xRe=[`new`,`reuse`],SRe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,CRe=CC({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),wRe=CC({arguments:EC(H(),xC()),delivery:CRe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),TRe=CC({cursor:H().nullable().optional(),deliveryStatus:CC({active:yC().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:vC().nonnegative().optional(),throttled:yC().optional()}).optional(),refreshBefore:cke({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:yC().optional()}).strict(),ERe=CC({scheme:kC(`standard_webhooks`)}).strict(),DRe=CC({autoApprove:yC(),delivery:CRe.optional(),identifier:H().regex(SRe).optional(),topicMode:DC(xRe),topicId:H().min(1).optional()}).strict(),ORe=CC({}).strict(),kRe=CC({scheme:kC(`bearer_token`)}).strict(),TC(`kind`,[CC({kind:kC(`mcp_events`),config:wRe,state:TRe,verification:ERe}),CC({kind:kC(`generic`),config:DRe,state:ORe,verification:kRe})])})),jRe=o((()=>{})),MRe=o((()=>{})),NRe=o((()=>{})),PRe=o((()=>{})),FRe=o((()=>{})),IRe=o((()=>{})),LRe=o((()=>{})),RRe=o((()=>{})),zRe=o((()=>{LRe(),RRe()})),BRe=o((()=>{})),VRe=o((()=>{})),HRe=o((()=>{})),URe=o((()=>{cje(),uje(),dje(),fje(),Sje(),wje(),Oje(),kje(),Aje(),Mje(),Nje(),Pje(),wNe(),TNe(),ENe(),DNe(),ONe(),kNe(),ANe(),MNe(),PNe(),FNe(),INe(),LNe(),RNe(),zNe(),BNe(),gje(),VNe(),HNe(),UNe(),QNe(),nPe(),rPe(),iPe(),Rje(),aPe(),SPe(),CPe(),wPe(),TPe(),DPe(),PPe(),FPe(),qPe(),JPe(),YPe(),XPe(),ZPe(),oFe(),sFe(),cFe(),lFe(),uFe(),mFe(),hFe(),gFe(),_Fe(),vFe(),bFe(),xFe(),SFe(),CFe(),FFe(),IFe(),LFe(),RFe(),HFe(),UFe(),WFe(),GFe(),KFe(),qFe(),JFe(),DFe(),YFe(),XFe(),eIe(),rIe(),aIe(),oIe(),fIe(),iNe(),kIe(),AIe(),jIe(),_Ne(),rLe(),LLe(),RLe(),BLe(),ULe(),GLe(),KLe(),qLe(),JLe(),XLe(),aRe(),Wje(),pRe(),gRe(),_Re(),vRe(),yRe(),bRe(),vje(),ARe(),jRe(),MRe(),NRe(),PRe(),FRe(),IRe(),zRe(),_Ne(),LLe(),BRe(),VRe(),HRe()})),WRe=o((()=>{})),GRe,Nw,KRe=o((()=>{GRe=[`*`,`agent:read`,`agent:write`,`agent:credential:write`,`eval:read`,`eval:write`,`chat:read`,`chat:write`,`model:invoke`,`model:read`,`model:write`,`file:read`,`file:write`,`knowledge:read`,`knowledge:write`,`mcp:read`,`mcp:write`,`usage:read`,`workspace:read`,`workspace:write`,`user:read`,`user:write`],new Set(GRe),Nw=(e,t)=>({read:e,write:t}),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,null),Nw(`knowledge:read`,`knowledge:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,null),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`model:read`,`model:write`),Nw(`model:read`,`model:write`),Nw(`chat:read`,null),Nw(`chat:read`,`chat:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`model:read`,`model:write`),Nw(`agent:read`,null),Nw(`knowledge:read`,`knowledge:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`user:read`,`user:write`),Nw(`file:read`,`file:write`),Nw(`file:read`,`file:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,`chat:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`user:read`,`user:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,null),Nw(`chat:read`,null),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`file:read`,`file:write`),Nw(`usage:read`,null),Nw(`user:read`,`user:write`),Nw(`user:read`,`user:write`),Nw(`user:read`,`user:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,null),Nw(`agent:read`,`agent:write`),Nw(`workspace:read`,`workspace:write`),Nw(`workspace:read`,null),Nw(`workspace:read`,null),Nw(`workspace:read`,`workspace:write`)})),Pw,qRe=o((()=>{Pw=1024*1024,10*Pw,10*Pw,10*Pw,10*Pw,50*Pw,50*Pw,20*Pw,5*Pw,20*Pw,2*Pw,100*Pw})),JRe=o((()=>{}));function YRe(e){let t=[],n=[];if(e=e.filter(e=>e!==``),e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);let r=QRe.test(e[0]);XRe.test(e[0])&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]===`/`&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(ZRe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(ZRe,`$1://`));let i=!1;for(let r=0;r<e.length;r++){let a=e[r];if(typeof a!=`string`)throw TypeError(`Url must be a string. Received `+a);let o=a.startsWith(`/`),s=a.endsWith(`/`);if(r>0&&(a=a.replace(/^[\/]+/,``)),a=r<e.length-1?a.replace(/[\/]+$/,``):a.replace(/[\/]+$/,`/`),a===``){i||=o;continue}t.push(a),n.push(o||i),i=s}let a=``;for(let e=0;e<t.length;e++){let r=t[e];if(e===0){a+=r;continue}let i=t[e-1];if(i&&i.endsWith(`?`)){a+=r;continue}if(i.endsWith(`#`)){a+=(n[e]?`/`:``)+r;continue}a+=`/`+r}a=a.replace(/\/(\?|&|#[^!])/g,`$1`);let o=a.indexOf(`#`),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o+1),[l,...u]=s.split(/(?:\?|&)+/),d=u.filter(Boolean);return a=l+(d.length>0?`?`:``)+d.join(`&`)+(c&&c.length>0?`#`+c:``),a}function Fw(...e){return YRe(Array.from(Array.isArray(e[0])?e[0]:e))}var XRe,ZRe,QRe,$Re=o((()=>{XRe=RegExp(`^[^/:\\d][^/:]*:/*$`),ZRe=RegExp(`^([^/:\\d][^/:]*):/*`),QRe=/^[^/:]+:\d+(?:[/?#]|$)/})),eze,Iw,tze,nze,Lw,Rw,rze,ize,aze,oze,sze,cze,lze=o((()=>{$Re(),eze=`https://app.lobehub.com`,Iw=`https://lobehub.com`,tze=Iw,nze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},Lw=`https://github.com/lobehub/lobehub`,Fw(Lw,`issues/new/choose`),Rw=Fw(Iw,`/docs`),rze=Fw(Rw,`/usage`),ize=Fw(Rw,`/self-hosting`),Fw(ize,`/server-database`),`${Rw}`,Fw(rze,`/plugins/development`),Fw(ize,`/advanced/upstream-sync`),Fw(Iw,`blog`),Fw(Lw,`issues/new/choose`),Fw(Iw,`/privacy`),Fw(Iw,`/terms`),aze=`https://github.com/lobehub/lobe-chat-agents`,Fw(aze,`issues/new`),oze=(e,t)=>`/agent/${e}`,sze=(e,t,n)=>Fw(`/agent`,e,t),cze=(e,t)=>Fw(`/group`,e,t),Fw(Lw,`releases`),Fw(Iw,`changelog`),Fw(Iw,`/downloads`),Fw(Iw,`/mobile`)})),uze=o((()=>{lze()})),dze=o((()=>{uze()})),fze=o((()=>{})),pze,zw,mze,hze,gze=o((()=>{pze=e=>e.join(`+`),zw={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},mze=[{electronAccelerator:`Alt+Shift+Space`,id:zw.QuickComposer,uiKeys:pze([`alt`,`shift`,`space`])},{electronAccelerator:``,id:zw.QuickChat,uiKeys:``},{electronAccelerator:``,id:zw.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:zw.OpenSettings,nonEditable:!0,uiKeys:pze([`mod`,`comma`])}],hze=mze.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),mze.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),_ze=o((()=>{gze(),hze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),vze,yze,bze,xze=o((()=>{YC(),vze={},yze=fAe,bze=`/avatars/lobe-ai.png`})),Bw=o((()=>{YC()})),Sze,Cze,wze,Tze,Eze=o((()=>{YC(),xze(),Bw(),Sze={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},Cze={model:qC,provider:JC},wze={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:Cze,searchMode:`auto`,selfIteration:{enabled:!1}},Tze={chatConfig:wze,model:qC,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:JC,systemRole:``,tts:Sze}})),Dze=o((()=>{})),Oze=o((()=>{})),kze,Aze,jze,Mze,Nze,Pze,Fze,Ize,Lze,Rze,zze,Bze,Vze,Hze,Uze,Wze,Gze,Kze=o((()=>{kze=`@lobehub/lobehub`,Aze=`2.3.4`,jze=`LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.`,Mze=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],Nze=`https://github.com/lobehub/lobehub`,Pze={url:`https://github.com/lobehub/lobehub/issues/new/choose`},Fze={type:`git`,url:`https://github.com/lobehub/lobehub.git`},Ize=`LobeHub <i@lobehub.com>`,Lze=[`./src/initialize.ts`,`./src/libs/providerIcon.ts`,`./src/spa/entry.auth.tsx`,`./src/spa/entry.desktop.tsx`,`./src/spa/entry.mobile.tsx`,`./src/spa/entry.popup.tsx`,`./src/spa/entry.web.tsx`],Rze=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],zze={alint:`alint`,"alint:audit":`alint --config alint.audit.toml --format json --rule-concurrency 48 src packages`,"alint:setup":`bun packages/alint/setup.ts`,build:`bun run build:spa && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next`,"build:analyze":`cross-env NODE_OPTIONS=--max-old-space-size=81920 next experimental-analyze`,"build:artboard-viewer":`pnpm --filter @lobechat/artboard-viewer build`,"build:canvas-runtime":`pnpm --filter @lobechat/canvas-runtime build`,"build:docker":`pnpm run build:file-parse-worker && pnpm run build:spa && pnpm run build:spa:mobile && pnpm run build:spa:auth && pnpm run build:spa:workbench && pnpm run build:spa:share && cross-env WORKBENCH_REQUIRED=1 SHARE_REQUIRED=1 pnpm run build:spa:copy && cross-env NODE_OPTIONS=--max-old-space-size=8192 DOCKER=true next build`,"build:file-parse-worker":`tsx scripts/buildFileParseWorker.mts`,"build:next":`cross-env NODE_OPTIONS=--max-old-space-size=7168 bun run build:next:raw`,"build:next:raw":`pnpm run build:file-parse-worker && next build`,"build:raw":`bun run build:spa:raw && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next:raw`,"build:spa":`cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run build:spa:raw`,"build:spa:auth":`rm -rf public/_spa public/_spa-auth && cross-env NODE_OPTIONS=--max-old-space-size=8192 AUTH=true vite build`,"build:spa:copy":`tsx scripts/copySpaBuild.mts && tsx scripts/generateSpaTemplates.mts`,"build:spa:mobile":`cross-env NODE_OPTIONS=--max-old-space-size=8192 MOBILE=true vite build`,"build:spa:raw":`rm -rf public/_spa && vite build`,"build:spa:share":`rm -rf dist/share public/_spa-share && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/share build`,"build:spa:workbench":`rm -rf dist/workbench public/_spa-workbench && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/workbench build`,"build:vercel":`cross-env-shell NODE_OPTIONS=--max-old-space-size=8192 "bun run build:raw && bun run db:migrate"`,"build-migrate-db":`bun run db:migrate`,check:`bun run .agents/scripts/check/cli.ts`,"clean:node_modules":`bash -lc 'set -e; echo "Removing all node_modules..."; rm -rf node_modules; pnpm -r exec rm -rf node_modules; rm -rf apps/desktop/node_modules; echo "All node_modules removed."'`,"db:fork:reconcile":`tsx ./scripts/fork/reconcileMigrations.ts`,"db:generate":`tsx ./scripts/fork/reconcileMigrations.ts && drizzle-kit generate && tsx ./scripts/pruneMigrationSnapshots/index.ts && npm run workflow:dbml`,"db:install-fts-search-capture":`cross-env MIGRATION_DB=1 tsx ./scripts/installFtsSearchSyncCapture/index.ts`,"db:migrate":`cross-env MIGRATION_DB=1 tsx ./scripts/migrateServerDB/index.ts`,"db:studio":`drizzle-kit studio`,"db:visualize":`dbdocs build docs/development/database-schema.dbml --project lobe-chat`,"desktop:build:all":`npm run desktop:build:main`,"desktop:build:main":`npm run build:main --prefix=./apps/desktop`,"desktop:build-channel":`tsx scripts/electronWorkflow/buildDesktopChannel.ts`,"desktop:main:build":`npm run desktop:main:build --prefix=./apps/desktop`,"desktop:package:app":`npm run desktop:package:app:platform`,"desktop:package:app:platform":`tsx scripts/electronWorkflow/buildElectron.ts`,"desktop:package:local":`npm run package:local --prefix=./apps/desktop`,"desktop:package:local:reuse":`npm run package:local:reuse --prefix=./apps/desktop`,dev:`tsx scripts/devStartupSequence.mts`,"dev:bun":`bun run build:file-parse-worker && bun --bun next dev -p 3010`,"dev:desktop":`cd apps/desktop && pnpm run dev`,"dev:docker":`docker compose -f docker-compose/dev/docker-compose.yml up -d --wait postgresql redis rustfs searxng`,"dev:docker:down":`docker compose -f docker-compose/dev/docker-compose.yml down`,"dev:docker:reset":`docker compose -f docker-compose/dev/docker-compose.yml down -v && rm -rf docker-compose/dev/data && npm run dev:docker && pnpm db:migrate`,"dev:next":`bun run build:file-parse-worker && next dev -p 3010`,"dev:spa":`vite`,"dev:spa:auth":`cross-env AUTH=true vite`,"dev:spa:mobile":`cross-env MOBILE=true vite`,"dev:spa:share":`pnpm --filter @lobehub/share dev`,"dev:spa:workbench":`pnpm --filter @lobehub/workbench dev`,"docs:cdn":`npm run workflow:docs-cdn && npm run lint:mdx`,"docs:i18n":`lobe-i18n md && npm run lint:mdx`,"docs:seo":`lobe-seo && npm run lint:mdx`,e2e:`cd e2e && npm run test`,"e2e:install":`playwright install`,"e2e:ui":`playwright test --ui`,"fts-search:cleanup-ineligible-messages":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchCleanupIneligibleMessages/cli.ts`,"fts-search:reindex":`node scripts/elasticsearchReindex/runner.mjs`,"fts-search:sync":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchSync/cli.ts`,"gen:density":`tsx scripts/densityTokens.mts`,"gen:density:check":`tsx scripts/densityTokens.mts --check`,"hotfix:branch":`tsx ./scripts/hotfixWorkflow/index.ts`,i18n:`npm run workflow:i18n && lobe-i18n && prettier -c --write "locales/**"`,"i18n:unused":`tsx ./scripts/i18nWorkflow/analyzeUnusedKeys.ts`,"i18n:unused-clean":`tsx ./scripts/i18nWorkflow/cleanUnusedKeys.ts`,lint:`npm run lint:ts && npm run lint:style && npm run type-check && npm run lint:circular`,"lint:circular":`npm run lint:circular:main && npm run lint:circular:packages`,"lint:circular:main":`dpdm src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:circular:packages":`dpdm packages/**/src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:console":`tsx scripts/checkConsoleLog.mts`,"lint:md":`remark . --silent --output`,"lint:mdx":`npm run workflow:mdx && remark "docs/**/*.mdx" -r ./.remarkrc.mdx.mjs --silent --output`,"lint:style":`stylelint "{src,tests}/**/*.{css,less}" --fix --allow-empty-input`,"lint:ts":`oxlint src/ tests/ apps/server/src/`,"lint:unused":`knip --include files,exports,types,enumMembers,duplicates`,prepare:`git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true`,prettier:`prettier -c --write "**/**"`,pull:`git pull`,qstash:`pnpx @upstash/qstash-cli@latest dev`,"react-devtools":`cd apps/desktop && pnpm run react-devtools`,reinstall:`rm -rf .next && rm -rf node_modules && rm -rf ./packages/*/node_modules && pnpm -r exec rm -rf node_modules && pnpm install`,"reinstall:desktop":`rm -rf pnpm-lock.yaml && rm -rf node_modules && pnpm -r exec rm -rf node_modules && pnpm install --node-linker=hoisted`,release:`semantic-release`,"release:branch":`tsx ./scripts/releaseWorkflow/index.ts`,"self-hosting:docker":`docker build -t lobehub:local .`,"self-hosting:docker-cn":`docker build -t lobehub-local --build-arg USE_CN_MIRROR=true .`,start:`next start -p 3210`,"style-eq":`bun packages/style-equivalence/src/cli/index.ts`,"style-eq:test":`cd packages/style-equivalence && vitest run --silent=passed-only`,stylelint:`stylelint "src/**/*.{css,less}" --fix --allow-empty-input`,"stylex:migration":`tsx scripts/stylexMigration/index.ts`,"stylex:verify":`bun scripts/stylexMigration/verification/run.ts`,"stylex:verify:test":`vitest run --config scripts/stylexMigration/verification/vitest.config.ts --silent='passed-only'`,test:`npm run test-app && npm run test-server`,"test:e2e":`pnpm --filter @lobechat/e2e-tests test`,"test:e2e:smoke":`pnpm --filter @lobechat/e2e-tests test:smoke`,"test:update":`vitest -u`,"test-app":`vitest run`,"test-app:coverage":`vitest --coverage --silent='passed-only'`,"tunnel:cloudflare":`cloudflared tunnel --url http://localhost:3010 --protocol http2`,"tunnel:ngrok":`ngrok http http://localhost:3010`,"type-check":`tsrs --noEmit -p tsconfig.type-check.json --checkers 4`,"type-check:tsc":`tsc --noEmit`,"widget:tick":`tsx ./scripts/widgetTick/index.mts`,"workflow:cdn":`tsx ./scripts/cdnWorkflow/index.ts`,"workflow:changelog":`tsx ./scripts/changelogWorkflow/index.ts`,"workflow:changelog:gen":`tsx ./scripts/changelogWorkflow/generateChangelog.ts`,"workflow:countCharters":`tsx scripts/countEnWord.ts`,"workflow:dbml":`tsx ./scripts/dbmlWorkflow/index.ts`,"workflow:docs":`tsx ./scripts/docsWorkflow/index.ts`,"workflow:docs-cdn":`tsx ./scripts/docsWorkflow/autoCDN.ts`,"workflow:i18n":`tsx ./scripts/i18nWorkflow/index.ts`,"workflow:mdx":`tsx ./scripts/mdxWorkflow/index.ts`,"workflow:mobile-spa":`tsx scripts/mobileSpaWorkflow/index.ts`,"workflow:readme":`tsx ./scripts/readmeWorkflow/index.ts`,"workflow:reset-onboarding":`tsx ./scripts/resetOnboarding/index.ts`,"workflow:seed-user-info":`tsx ./scripts/seedUserInfo/index.ts`,"workflow:set-desktop-version":`tsx ./scripts/electronWorkflow/setDesktopVersion.ts`},Bze={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.6.33`,"drizzle-orm":`^0.45.2`,"fast-xml-parser":`5.4.2`,lexical:`0.42.0`,"pdfjs-dist":`5.4.530`,"stylelint-config-clean-order":`7.0.0`},Vze=JSON.parse(`{"@aiden0z/pptx-renderer":"^1.2.4","@anthropic-ai/sdk":"^0.73.0","@atlaskit/pragmatic-drag-and-drop":"^1.8.1","@atlaskit/pragmatic-drag-and-drop-hitbox":"^1.2.0","@aws-sdk/client-bedrock-runtime":"^3.1107.0","@aws-sdk/client-s3":"~3.932.0","@aws-sdk/s3-request-presigner":"~3.932.0","@azure-rest/ai-inference":"1.0.0-beta.5","@azure/core-auth":"^1.11.0","@better-auth/expo":"1.6.33","@better-auth/passkey":"1.6.33","@cfworker/json-schema":"^4.1.1","@chat-adapter/discord":"~4.38.0","@chat-adapter/slack":"~4.38.0","@chat-adapter/state-ioredis":"~4.38.0","@chat-adapter/telegram":"~4.38.0","@codemirror/streamparser":"^6.0.0","@codesandbox/sandpack-react":"^2.20.0","@composio/core":"^0.10.0","@discordjs/rest":"^2.6.3","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emoji-mart/data":"^1.2.1","@emoji-mart/react":"^1.1.1","@emotion/react":"^11.14.0","@fal-ai/client":"^1.10.1","@floating-ui/react":"^0.27.20","@formkit/auto-animate":"^0.9.0","@google/genai":"^2.24.0","@henrygd/queue":"^1.2.0","@huggingface/inference":"^4.13.25","@icons-pack/react-simple-icons":"^13.15.1","@khmyznikov/pwa-install":"0.3.9","@larksuiteoapi/node-sdk":"^1.73.0","@lexical/list":"0.42.0","@lexical/rich-text":"0.42.0","@lexical/utils":"^0.42.0","@lobechat/agent-address-linq":"workspace:*","@lobechat/agent-address-mail":"workspace:*","@lobechat/agent-gateway-client":"workspace:*","@lobechat/agent-mock":"workspace:*","@lobechat/agent-runtime":"workspace:*","@lobechat/agent-signal":"workspace:*","@lobechat/agent-templates":"workspace:*","@lobechat/artifact-template":"workspace:*","@lobechat/builtin-agents":"workspace:*","@lobechat/builtin-skills":"workspace:*","@lobechat/builtin-tool-acceptance-evidence":"workspace:*","@lobechat/builtin-tool-activator":"workspace:*","@lobechat/builtin-tool-agent-account":"workspace:*","@lobechat/builtin-tool-agent-builder":"workspace:*","@lobechat/builtin-tool-agent-documents":"workspace:*","@lobechat/builtin-tool-agent-management":"workspace:*","@lobechat/builtin-tool-agent-signal":"workspace:*","@lobechat/builtin-tool-artboard":"workspace:*","@lobechat/builtin-tool-attachments":"workspace:*","@lobechat/builtin-tool-auv":"workspace:*","@lobechat/builtin-tool-brief":"workspace:*","@lobechat/builtin-tool-browser":"workspace:*","@lobechat/builtin-tool-calculator":"workspace:*","@lobechat/builtin-tool-canvas":"workspace:*","@lobechat/builtin-tool-channel":"workspace:*","@lobechat/builtin-tool-claude-code":"workspace:*","@lobechat/builtin-tool-cloud-sandbox":"workspace:*","@lobechat/builtin-tool-creds":"workspace:*","@lobechat/builtin-tool-dashboard":"workspace:*","@lobechat/builtin-tool-goal":"workspace:*","@lobechat/builtin-tool-group-agent-builder":"workspace:*","@lobechat/builtin-tool-group-management":"workspace:*","@lobechat/builtin-tool-image-generation":"workspace:*","@lobechat/builtin-tool-knowledge-base":"workspace:*","@lobechat/builtin-tool-lobe-agent":"workspace:*","@lobechat/builtin-tool-local-system":"workspace:*","@lobechat/builtin-tool-mcp-events":"workspace:*","@lobechat/builtin-tool-memory":"workspace:*","@lobechat/builtin-tool-message":"workspace:*","@lobechat/builtin-tool-notebook":"workspace:*","@lobechat/builtin-tool-page-agent":"workspace:*","@lobechat/builtin-tool-remote-device":"workspace:*","@lobechat/builtin-tool-self-iteration":"workspace:*","@lobechat/builtin-tool-skill-maintainer":"workspace:*","@lobechat/builtin-tool-skill-store":"workspace:*","@lobechat/builtin-tool-skills":"workspace:*","@lobechat/builtin-tool-task":"workspace:*","@lobechat/builtin-tool-user-interaction":"workspace:*","@lobechat/builtin-tool-verify":"workspace:*","@lobechat/builtin-tool-video-generation":"workspace:*","@lobechat/builtin-tool-web-browsing":"workspace:*","@lobechat/builtin-tool-web-onboarding":"workspace:*","@lobechat/builtin-tool-webhook":"workspace:*","@lobechat/builtin-tool-work":"workspace:*","@lobechat/builtin-tools":"workspace:*","@lobechat/business-config":"workspace:*","@lobechat/business-const":"workspace:*","@lobechat/business-knowledge":"workspace:*","@lobechat/business-model-bank":"workspace:*","@lobechat/business-model-runtime":"workspace:*","@lobechat/canvas":"workspace:*","@lobechat/chat-adapter-dingtalk":"workspace:*","@lobechat/chat-adapter-feishu":"workspace:*","@lobechat/chat-adapter-imessage":"workspace:*","@lobechat/chat-adapter-line":"workspace:*","@lobechat/chat-adapter-qq":"workspace:*","@lobechat/chat-adapter-wechat":"workspace:*","@lobechat/chat-adapter-wecom":"workspace:*","@lobechat/config":"workspace:*","@lobechat/connector-data":"workspace:*","@lobechat/const":"workspace:*","@lobechat/context-engine":"workspace:*","@lobechat/conversation-flow":"workspace:*","@lobechat/database":"workspace:*","@lobechat/desktop-bridge":"workspace:*","@lobechat/device-control":"workspace:*","@lobechat/device-gateway-client":"workspace:*","@lobechat/edge-config":"workspace:*","@lobechat/editor-runtime":"workspace:*","@lobechat/electron-client-ipc":"workspace:*","@lobechat/electron-server-ipc":"workspace:*","@lobechat/env":"workspace:*","@lobechat/eval-dataset-parser":"workspace:*","@lobechat/eval-rubric":"workspace:*","@lobechat/fetch-sse":"workspace:*","@lobechat/file-loaders":"workspace:*","@lobechat/heterogeneous-agents":"workspace:*","@lobechat/html-artifact":"workspace:*","@lobechat/llm-generation-tracing":"workspace:*","@lobechat/local-file-shell":"workspace:*","@lobechat/markdown-patch":"workspace:*","@lobechat/mecha":"workspace:*","@lobechat/memory-user-memory":"workspace:*","@lobechat/model-runtime":"workspace:*","@lobechat/observability-otel":"workspace:*","@lobechat/openapi":"workspace:*","@lobechat/prompts":"workspace:*","@lobechat/python-interpreter":"workspace:*","@lobechat/shared-tool-ui":"workspace:*","@lobechat/ssrf-safe-fetch":"workspace:*","@lobechat/tool-runtime":"workspace:*","@lobechat/tool-view-model":"workspace:*","@lobechat/utils":"workspace:*","@lobechat/web-crawler":"workspace:*","@lobechat/widget-spec":"workspace:*","@lobehub/analytics":"^1.6.4","@lobehub/charts":"^6.0.0","@lobehub/desktop-ipc-typings":"workspace:*","@lobehub/editor":"7.2.1","@lobehub/icons":"^6.15.2","@lobehub/market-sdk":"0.46.0","@lobehub/tts":"^6.1.0","@lobehub/ui":"^6.16.1","@modelcontextprotocol/client":"~2.4.0","@modelcontextprotocol/ext-apps":"^2.0.3","@neondatabase/serverless":"^1.1.0","@next/third-parties":"^16.3.0","@opentelemetry/auto-instrumentations-node":"^0.76.0","@opentelemetry/exporter-jaeger":"^2.10.0","@opentelemetry/resources":"^2.10.0","@opentelemetry/sdk-metrics":"^2.10.0","@opentelemetry/winston-transport":"^0.28.0","@pierre/trees":"1.0.0-beta.3","@react-pdf/renderer":"4.3.2","@react-three/drei":"^10.7.8","@react-three/fiber":"^9.7.0","@saintno/comfyui-sdk":"^0.2.53","@stylexjs/stylex":"0.19.1","@t3-oss/env-core":"^0.13.11","@t3-oss/env-nextjs":"^0.13.11","@tanstack/react-query":"^5.101.4","@trpc/client":"^11.18.0","@trpc/next":"^11.18.0","@trpc/react-query":"^11.18.0","@trpc/server":"^11.18.0","@upstash/qstash":"2.12.0","@upstash/workflow":"^0.2.23","@vercel/analytics":"^1.6.1","@vercel/edge-config":"^1.5.1","@vercel/functions":"^3.9.2","@vercel/speed-insights":"^1.3.1","@virtuoso.dev/masonry":"^1.4.3","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/addon-webgl":"^0.18.0","@xterm/xterm":"^5.5.0","@xyflow/react":"^12.11.5","@zumer/snapdom":"^2.24.10","ahooks":"^3.9.7","async-retry":"^1.3.3","bcryptjs":"^3.0.3","better-auth":"1.6.33","brotli-wasm":"^3.0.1","buffer.js":"npm:buffer@^6.0.3","chat":"~4.38.0","chroma-js":"^3.3.0","class-variance-authority":"^0.7.1","cmdk":"^1.1.1","cookie":"^1.1.1","countries-and-timezones":"^3.10.0","d3-dsv":"^3.0.1","dayjs":"^1.11.21","debug":"^4.4.3","diff":"^8.0.4","discord-api-types":"^0.38.53","docx-preview":"^0.4.0","drizzle-orm":"^0.45.2","drizzle-zod":"^0.8.3","entities":"^8.1.0","epub2":"^3.0.2","es-toolkit":"^1.50.0","exceljs":"^4.4.0","expo-server-sdk":"^6.1.0","fast-deep-equal":"^3.1.3","fflate":"^0.8.3","ffmpeg-static":"^5.3.0","file-type":"^21.3.4","fuse.js":"^7.5.0","gray-matter":"^4.0.3","hono":"^4.13.1","html-to-text":"^9.0.5","i18next":"^25.10.10","i18next-browser-languagedetector":"^8.2.1","i18next-resources-to-backend":"^1.2.3","immer":"^11.1.16","ioredis":"^5.11.1","jose":"^6.2.8","js-sha256":"^0.11.1","jsondiffpatch":"^0.7.6","jsonl-parse-stringify":"^1.0.3","keygrip":"^1.1.0","langfuse":"^3.38.20","langfuse-core":"^3.38.20","lexical":"0.42.0","local-replica":"^0.1.1","lucide-react":"^1.31.0","mammoth":"^1.12.1","marked":"^17.0.6","mdast-util-to-markdown":"^2.1.2","mesurer":"^0.1.0","model-bank":"workspace:*","motion":"^14.1.0","nanoid":"^5.1.16","next":"~16.3.8","next-mdx-remote":"^6.0.0","next-themes":"^0.4.6","nextjs-toploader":"^3.9.17","node-machine-id":"^1.1.12","nodemailer":"^9.1.1","numeral":"^2.0.6","nuqs":"^2.9.5","octokit":"^5.0.5","officeparser":"5.1.1","ogl":"^1.0.11","oidc-provider":"^9.11.3","ollama":"^0.6.3","openai":"^6.49.0","openapi-fetch":"^0.14.1","partial-json":"^0.1.7","path-browserify-esm":"^1.0.6","pathe":"^2.0.3","pdf-parse":"^1.1.4","pdfjs-dist":"5.4.530","pdfkit":"^0.17.2","pg":"^8.23.0","pinyin-pro":"^3.28.2","plaiceholder":"^3.0.0","polished":"^4.3.1","pure-rand":"^7.0.1","pwa-install-handler":"^2.6.5","query-string":"^9.5.0","random-words":"^2.0.1","rc-util":"^5.44.4","react":"19.2.7","react-confetti":"^6.4.0","react-dom":"19.2.7","react-fast-marquee":"^1.6.5","react-hotkeys-hook":"^5.3.3","react-i18next":"^16.6.6","react-lazy-load":"^4.0.1","react-markdown":"^10.1.0","react-pdf":"^10.4.1","react-responsive":"^10.0.1","react-rnd":"^10.5.3","react-router":"^8.3.0","react-scan":"^0.5.7","react-virtuoso":"^4.18.11","react-wrap-balancer":"^1.1.1","remark":"^15.0.1","remark-gfm":"^4.0.1","remark-html":"^16.0.1","remove-markdown":"^0.6.4","resend":"6.8.0","resolve-accept-language":"^3.2.2","rtl-detect":"^1.1.2","semver":"^7.8.5","sharp":"^0.34.5","shiki":"^4.4.3","standardwebhooks":"^1.1.1","stripe":"^17.7.0","superjson":"^2.2.6","svix":"^1.99.1","swr":"^2.5.0","three":"^0.181.2","tokenx":"^1.6.0","ts-md5":"^2.0.1","ua-parser-js":"^1.0.41","undici":"^7.29.0","unist-builder":"^4.0.0","url-join":"^5.0.0","use-merge-value":"^1.2.0","uuid":"^14.0.1","virtua":"^0.48.8","word-extractor":"^1.0.4","ws":"^8.21.3","xast-util-to-xml":"^4.0.0","xastscript":"^4.0.0","yaml":"^2.9.0","yjs":"^13.6.33","zod":"^4.4.3","zustand":"5.0.4","zustand-utils":"^2.1.1"}`),Hze={"@alint-js/cli":`0.7.3`,"@commitlint/cli":`^19.8.1`,"@edge-runtime/vm":`^5.0.0`,"@huggingface/tasks":`^0.19.90`,"@inquirer/prompts":`^8.5.2`,"@lobechat/agent-tracing":`workspace:*`,"@lobechat/types":`workspace:*`,"@lobehub/commitlint-config":`^3.0.0`,"@lobehub/i18n-cli":`^1.27.0`,"@lobehub/market-types":`^1.19.0`,"@lobehub/oxlint-config":`^3.0.0`,"@lobehub/prettier-config":`^3.0.0`,"@lobehub/remarklint-config":`^3.0.0`,"@lobehub/semantic-release-config":`^3.0.0`,"@lobehub/seo-cli":`^1.7.0`,"@lobehub/stylelint-config":`^3.0.0`,"@modelcontextprotocol/server":`~2.4.0`,"@peculiar/webcrypto":`^1.7.1`,"@playwright/test":`^1.62.1`,"@prettier/sync":`^0.6.1`,"@rolldown/plugin-transform-imports":`0.1.1`,"@semantic-release/exec":`^6.0.3`,"@stylexjs/unplugin":`0.19.1`,"@testing-library/jest-dom":`^6.9.1`,"@testing-library/react":`^16.3.2`,"@testing-library/user-event":`^14.6.3`,"@types/async-retry":`^1.4.9`,"@types/chroma-js":`^3.1.2`,"@types/crypto-js":`^4.2.2`,"@types/d3-dsv":`^3.0.7`,"@types/debug":`^4.1.13`,"@types/fs-extra":`^11.0.4`,"@types/html-to-text":`^9.0.4`,"@types/ip":`^1.1.3`,"@types/json-schema":`^7.0.15`,"@types/keygrip":`^1.0.6`,"@types/node":`^24.13.3`,"@types/nodemailer":`^7.0.12`,"@types/numeral":`^2.0.5`,"@types/oidc-provider":`^9.11.1`,"@types/pdf-parse":`^1.1.5`,"@types/pdfkit":`^0.17.6`,"@types/pg":`^8.21.0`,"@types/react":`19.2.13`,"@types/react-dom":`19.2.3`,"@types/rtl-detect":`^1.0.3`,"@types/semver":`^7.8.0`,"@types/three":`^0.181.0`,"@types/ua-parser-js":`^0.7.39`,"@types/unist":`^3.0.3`,"@types/ws":`^8.18.1`,"@types/xast":`^2.0.4`,"@vitejs/devtools":`0.2.0`,"@vitejs/plugin-react":`^6.0.5`,"@vitest/coverage-v8":`5.0.0`,ajv:`^8.20.0`,"ajv-keywords":`^5.1.0`,"code-inspector-plugin":`1.3.6`,commitlint:`^19.8.1`,consola:`^3.4.2`,"cross-env":`^10.1.0`,"crypto-js":`^4.2.0`,dbdocs:`^0.16.2`,dotenv:`^17.4.2`,"dotenv-expand":`^12.0.3`,"dpdm-fast":`^1.0.14`,"drizzle-dbml-generator":`^0.10.0`,"drizzle-kit":`^0.31.10`,esbuild:`^0.28.2`,"fake-indexeddb":`^6.2.5`,"fs-extra":`^11.4.0`,glob:`^13.0.6`,"happy-dom":`~20.11.15`,"import-in-the-middle":`^2.0.6`,"just-diff":`^6.0.2`,knip:`^5.88.1`,linkedom:`^0.18.13`,"lint-staged":`^16.4.0`,"markdown-table":`^3.0.4`,"mcp-hello-world":`^1.1.2`,mime:`^4.1.0`,"node-fetch":`^3.3.2`,"node-gyp":`^12.4.0`,"openapi-typescript":`^7.13.0`,oxlint:`1.90.0`,"p-map":`^7.0.6`,postcss:`8.5.23`,"postcss-selector-parser":`7.1.7`,"postcss-value-parser":`4.2.0`,prettier:`^3.9.6`,"raw-loader":`^4.0.2`,"remark-cjk-friendly":`^2.3.1`,"remark-cli":`^12.0.1`,"remark-frontmatter":`^5.0.0`,"remark-mdx":`^3.1.1`,"remark-parse":`^11.0.0`,"require-in-the-middle":`^8.0.1`,s3rver:`3.7.1`,"semantic-release":`^21.1.2`,stylelint:`^16.26.1`,tsrs:`0.20.1-ts7.1.0-beta`,tsx:`^4.23.12`,"type-fest":`^5.8.0`,typescript:`6.0.3`,unified:`^11.0.5`,"unist-util-visit":`^5.1.0`,vite:`8.0.16`,"vite-plugin-pwa":`^1.3.0`,"vite-tsconfig-paths":`^6.1.1`,vitest:`5.0.0`},Uze=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,Wze={access:`public`,registry:`https://registry.npmjs.org`},Gze={name:kze,version:Aze,description:jze,keywords:Mze,homepage:Nze,bugs:Pze,repository:Fze,license:`MIT`,author:Ize,sideEffects:Lze,workspaces:Rze,scripts:zze,"lint-staged":{"*.md":[`remark --silent --silently-ignore --output --`,`prettier --write --no-error-on-unmatched-pattern`],"*.mdx":[`remark -r ./.remarkrc.mdx.mjs --silent --output --`],"*.json":[`prettier --write --no-error-on-unmatched-pattern`],"*.{mjs,cjs}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{js,jsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{ts,tsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --parser=typescript --write`],"*.{css,less}":[`stylelint --fix`,`prettier --write`]},overrides:Bze,dependencies:Vze,devDependencies:Hze,packageManager:Uze,publishConfig:Wze}})),Vw,Hw,Uw=o((()=>{YC(),Kze(),Vw=Gze.version,Hw=KC!==`LobeHub`})),Ww,Gw,Kw,qw,Jw,qze,Jze=o((()=>{Uw(),Ww=e=>e.join(`+`),Gw={Alt:`alt`,Backquote:`backquote`,Backslash:`backslash`,Backspace:`backspace`,BracketLeft:`bracketleft`,BracketRight:`bracketright`,Comma:`comma`,Ctrl:`ctrl`,Down:`down`,Enter:`enter`,Equal:`equal`,Esc:`esc`,Left:`left`,LeftClick:`left-click`,LeftDoubleClick:`left-double-click`,Meta:`meta`,MiddleClick:`middle-click`,Minus:`minus`,Mod:`mod`,Number:`1-9`,Period:`period`,Plus:`equal`,QuestionMark:`slash`,Quote:`quote`,Right:`right`,RightClick:`right-click`,RightDoubleClick:`right-double-click`,Semicolon:`semicolon`,Shift:`shift`,Slash:`slash`,Space:`space`,Tab:`tab`,Up:`up`,Zero:`0`},Kw={CommandPalette:`commandPalette`,DeleteAndRegenerateMessage:`deleteAndRegenerateMessage`,DeleteLastMessage:`deleteLastMessage`,EditMessage:`editMessage`,FindInTopic:`findInTopic`,NavigateToChat:`navigateToChat`,NextTab:`nextTab`,OpenChatSettings:`openChatSettings`,PrevTab:`prevTab`,OpenHotkeyHelper:`openHotkeyHelper`,OpenTaskFilter:`openTaskFilter`,RegenerateMessage:`regenerateMessage`,SaveDocument:`saveDocument`,SaveTopic:`saveTopic`,Search:`search`,ShowApp:`showApp`,SwitchAgent:`switchAgent`,SwitchTab:`switchTab`,ToggleFavorite:`toggleFavorite`,ToggleLeftPanel:`toggleLeftPanel`,ToggleRightPanel:`toggleRightPanel`,ToggleTerminalPanel:`toggleTerminalPanel`},qw={Conversation:`conversation`,Essential:`essential`},Jw={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},qze=[{group:qw.Essential,id:Kw.CommandPalette,keys:Ww([Gw.Mod,`k`]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.Search,keys:Ww([Gw.Mod,`j`]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.SwitchAgent,keys:Ww([Gw.Ctrl,Gw.Number]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.SwitchTab,keys:Ww([Gw.Mod,Gw.Number]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.NextTab,keys:Ww([Gw.Ctrl,Gw.Tab]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.PrevTab,keys:Ww([Gw.Ctrl,Gw.Shift,Gw.Tab]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.NavigateToChat,keys:Ww([Gw.Ctrl,Gw.Shift,Gw.Backquote]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.ToggleLeftPanel,keys:Ww([Gw.Mod,Gw.BracketLeft]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.ToggleRightPanel,keys:Ww([Gw.Mod,Gw.BracketRight]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.OpenHotkeyHelper,keys:Ww([Gw.Ctrl,Gw.Shift,Gw.QuestionMark]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.ToggleFavorite,keys:Ww([Gw.Alt,`f`]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.OpenTaskFilter,keys:`f`,scopes:[Jw.Global]},{group:qw.Conversation,id:Kw.FindInTopic,keys:Ww([Gw.Mod,`f`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.ToggleTerminalPanel,keys:Ww([Gw.Ctrl,Gw.Backquote]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.OpenChatSettings,keys:Ww([Gw.Alt,Gw.Comma]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.RegenerateMessage,keys:Ww([Gw.Alt,`r`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.DeleteLastMessage,keys:Ww([Gw.Alt,`d`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.DeleteAndRegenerateMessage,keys:Ww([Gw.Alt,Gw.Shift,`r`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.SaveTopic,keys:Ww([Gw.Alt,`n`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.EditMessage,keys:Ww([Gw.Alt,Gw.LeftDoubleClick]),nonEditable:!0,scopes:[Jw.Chat]},{group:qw.Essential,id:Kw.SaveDocument,keys:Ww([Gw.Mod,`s`]),scopes:[Jw.Files]}]})),Yze=o((()=>{Jze(),qze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),Xze=o((()=>{})),Zze=o((()=>{YC(),Bw()})),Qze=o((()=>{})),$ze=o((()=>{})),eBe,Yw,tBe=o((()=>{YC(),Zze(),Bw(),eBe={model:qC,provider:JC},Yw={model:TAe,provider:EAe},Yw.model,Yw.provider,Yw.model,Yw.provider,Yw.model,Yw.provider,{...eBe},Reflect.get(KAe,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(KAe,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),nBe=o((()=>{})),rBe=o((()=>{})),Xw=o((()=>{Eze(),Dze(),Oze(),Yze(),Xze(),Zze(),Bw(),Qze(),$ze(),tBe(),nBe(),rBe()})),iBe=o((()=>{Xw(),new Date().toISOString()})),aBe=o((()=>{})),oBe=o((()=>{Object.freeze([])})),sBe=o((()=>{})),cBe,lBe,uBe,dBe=o((()=>{cBe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],lBe=2*1024*1024*1024-1,`${lBe}`,uBe=64*1024*1024,`${uBe}`,[...cBe]})),fBe,pBe=o((()=>{YC(),`${KC}`,fBe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(fBe)})),mBe,hBe=o((()=>{mBe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(mBe)})),gBe=o((()=>{})),_Be=o((()=>{})),vBe=o((()=>{})),yBe=o((()=>{})),bBe=o((()=>{})),xBe=o((()=>{})),SBe,CBe=o((()=>{vc(),SBe=(e,t)=>gs({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),wBe,TBe,EBe=o((()=>{xze(),Xw(),CBe(),wBe=`agent`,TBe={config:Tze,createdAt:new Date,id:``,meta:vze,model:Tze.model,type:wBe,updatedAt:new Date},SBe(TBe,{id:`inbox`,meta:{avatar:bze}})})),DBe=o((()=>{})),OBe=o((()=>{})),kBe=o((()=>{})),ABe=o((()=>{})),jBe=o((()=>{})),MBe=o((()=>{})),NBe=o((()=>{})),PBe=o((()=>{})),FBe,IBe,LBe=o((()=>{YC(),Xw(),FBe={activities:3,contexts:0,experiences:0,preferences:3},IBe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...FBe}},IBe.high.contexts})),RBe=o((()=>{})),zBe=o((()=>{})),Zw=o((()=>{Mbe(),Pbe(),Fbe(),Ube(),WRe(),KRe(),qRe(),JRe(),dze(),fze(),_ze(),gze(),iBe(),aBe(),oBe(),sBe(),dBe(),pBe(),hBe(),gBe(),_Be(),uze(),vBe(),xze(),yBe(),bBe(),xBe(),EBe(),Xw(),DBe(),OBe(),kBe(),ABe(),jBe(),MBe(),NBe(),lze(),PBe(),LBe(),Uw(),RBe(),zBe()}));Zw();var Qw=[[`LobeHub Cloud`,dAe,`LobeHub Cloud`],[`LobeHub`,KC,`LobeHub`],[`LobeChat`,KC,`LobeHub`],[`Lobe AI`,yze,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),BBe=new Map(Qw),VBe=`Lobe`,HBe=Qw.length?RegExp(`(?<!@)(${Qw.map(([e])=>e).join(`|`)})`,`g`):void 0,UBe=Qw.length>0,WBe=`brandStrings`,GBe=e=>!HBe||!e.includes(VBe)?e:e.replaceAll(HBe,e=>BBe.get(e)??e),KBe={name:WBe,process:e=>typeof e==`string`?GBe(e):e,type:`postProcessor`},qBe=UBe?{postProcess:[WBe]}:{},JBe=e=>UBe?e.use(KBe):e,YBe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},XBe=c({default:()=>ZBe}),ZBe,QBe=o((()=>{ZBe={"directMention.progress.elapsed":`{{time}}`,"directMention.progress.running":`Running`,"directMention.progress.thinking":`Thinking…`,"directMention.progress.usingTool":`Using {{name}}…`,"directMention.progress.viewFullRecord":`View full record`,"sharePage.app.linkCopied":`Link copied`,"heteroAgent.antigravityQuota.title":`Antigravity quota`,"heteroAgent.antigravityQuota.tooltip":`View Antigravity model quotas`,"heteroAgent.antigravityQuota.fiveHour":`5 hours`,"heteroAgent.antigravityQuota.remainingAmount":`{{amount}} remaining`,"heteroAgent.antigravityQuota.unknown":`Unknown`,"heteroAgent.antigravityQuota.disabled":`Unavailable`,"heteroAgent.antigravityQuota.resetUnconfirmed":`Reset time reached. Refresh to check the latest quota.`,"heteroAgent.antigravityQuota.stale":`Showing the last query. Refresh to confirm current quota.`,"heteroAgent.antigravityQuota.authRequired":`Run agy in a terminal to sign in, then refresh.`,"heteroAgent.antigravityQuota.cliNotFound":`Antigravity CLI was not found on this device. Install agy, then refresh.`,"heteroAgent.antigravityQuota.unsupported":`Update agy to a version that supports structured quota queries, then refresh.`,"heteroAgent.antigravityQuota.timeout":`The quota query timed out. Check the device connection and try again.`,"heteroAgent.antigravityQuota.error":`Could not query Antigravity quota. Check the device and try again.`,"sharePage.app.open":`Open app`,"sharePage.app.help":`Trouble opening the app?`,"sharePage.app.helpDescription":`If this browser prevents opening the app, use its menu to open this page in your system browser. You can also keep reading here.`,"sharePage.app.browserGuide.dismiss":`Got it`,"sharePage.app.browserGuide.stepMenu":`Tap ··· in the top-right corner`,"sharePage.app.browserGuide.stepOpen":`Choose “Open in Browser” or a similar option`,"sharePage.app.browserGuide.title.dingtalk":`DingTalk can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.qq":`QQ can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.wechat":`WeChat can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.weibo":`Weibo can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.fallback.desc":`You may not have the LobeHub app yet, or this browser blocked the jump.`,"sharePage.app.fallback.dismiss":`Keep reading`,"sharePage.app.fallback.download":`Get the app`,"sharePage.app.fallback.title":`App didn’t open?`,newAntigravityAgent:`Add Antigravity`,"backgroundActivity.alertDesc":`{{name}} is using {{memory}} of memory and {{cpu}} CPU.`,"backgroundActivity.cpu":`CPU`,"backgroundActivity.details":`View details`,"backgroundActivity.empty":`No background activity`,"backgroundActivity.emptyDesc":`Dev servers, shells, and agents started from conversations appear here while they run.`,"backgroundActivity.highUsage":`High resource usage`,"backgroundActivity.memory":`Memory`,"backgroundActivity.processCount_one":`{{count}} process`,"backgroundActivity.processCount_other":`{{count}} processes`,"backgroundActivity.retry":`Retry`,"backgroundActivity.shared":`Shared / unassigned`,"backgroundActivity.stop":`Stop`,"backgroundActivity.stopFailed":`Could not stop this activity. Try again.`,"backgroundActivity.title":`Background activity`,"backgroundActivity.topic":`Conversation`,"backgroundActivity.unavailable":`Resource data is unavailable. Displayed values may be out of date.`,"heteroAgent.claudeQuota.accountNotSignedIn":`The Claude Code account {{account}} isn't signed in on this device. Sign in to it from Manage accounts, or switch to another account.`,"heteroAgent.claudeQuota.accountResolveFailed":`Couldn't look up this Claude Code account's login on this device. Try again, or switch to another account.`,"heteroAgent.claudeQuota.manage.add":`Add account`,"heteroAgent.claudeQuota.manage.addHintDesktop":`Each account signs in on this device; runs use the account you pick.`,"heteroAgent.claudeQuota.manage.loginFailed":`Sign-in didn't finish. Try again.`,"heteroAgent.claudeQuota.manage.loginSuccess":`Signed in as {{account}}`,"heteroAgent.claudeQuota.manage.loginWaiting":`Finish signing in in your browser…`,"heteroAgent.claudeQuota.manage.notSignedIn":`Not signed in on this device`,"heteroAgent.claudeQuota.manage.notSignedInOnDevice":`That account isn't signed in on this device yet. Sign in there first.`,"heteroAgent.claudeQuota.manage.switchFailed":`Couldn't switch the account. Try again.`,"heteroAgent.claudeQuota.manage.signIn":`Sign in`,"heteroAgent.claudeQuota.noRunnableAccount":`None of the Claude Code accounts in this agent's rotation are signed in on this device. Sign one in from Manage accounts, or add a signed-in account to the rotation.`,"processExplorer.copyPid":`Copy PID`,"processExplorer.filter":`Filter`,"processExplorer.live":`Live · updates every 2 s`,"processExplorer.name":`Name`,"processExplorer.processes":`Processes`,"processExplorer.gpu":`GPU`,"processExplorer.main":`Main process`,"processExplorer.pid":`PID`,"processExplorer.title":`Process Explorer`,"processExplorer.updated":`Updated {{time}}`,"processExplorer.utility":`Utility`,"processExplorer.window":`Window`,"response.contentSafetyNotice":`This reply was limited for content safety reasons. If this happens often, you may temporarily lose access to this model.`,"goalBatch.cell.accepted":`Accepted`,"goalBatch.cell.backlog":`Not run`,"goalBatch.cell.done":`Done`,"goalBatch.cell.human":`Needs you`,"goalBatch.cell.reopened":`Reopened in v{{revision}}`,"goalBatch.cell.runIn":`Runs in v{{revision}}`,"goalBatch.cell.running":`Running`,"goalBatch.cell.stale":`Superseded`,"goalBatch.cell.tooltip":`Wave {{wave}} · item {{index}} · {{title}} · {{state}}`,"goalBatch.enter":`Open`,"goalBatch.planPanel.compare":`Compare versions`,"goalBatch.planPanel.compareTitle":`Compare plan versions`,"goalBatch.planPanel.forked":`A forked plan: it starts again from the batch’s original outline instead of revising the previous version`,"goalBatch.planPanel.latest":`v{{revision}} · latest`,"goalBatch.planPanel.same":`Same as v{{base}}`,"goalBatch.probes.attemptNext":`Next run`,"goalBatch.probes.attemptOf":`Run {{current}} / {{total}}`,"goalBatch.probes.attemptPrevious":`Previous run`,"goalBatch.probes.cell.backlog":`Not started`,"goalBatch.probes.cell.done":`Done`,"goalBatch.probes.cell.human":`Needs you`,"goalBatch.probes.cell.running":`In progress`,"goalBatch.probes.cell.stale":`Superseded`,"goalBatch.gateCheck.axes_covered":`The trials covered every declared variant`,"goalBatch.gateCheck.count":`{{count}} / {{total}}`,"goalBatch.gateCheck.no_open_decision":`No decision in the batch is waiting on a person`,"goalBatch.gateCheck.plan_written":`The batch plan is written`,"goalBatch.gateCheck.uncovered":`Not covered: {{values}}`,"goalBatch.gateCheck.interventions_accounted":`Every person’s intervention was accounted for`,"goalBatch.gateCheck.reverified":`The delivered units passed the retro’s criteria`,"goalBatch.retro.added":`{{count}} new`,"goalBatch.retro.changes":`{{count}} steps changed`,"goalBatch.retro.criteria":`{{block}} blocking · {{warn}} advisory`,"goalBatch.retro.hint":`What the execution ran into, kept in two layers: experience goes into the plan skill every unit loads, criteria go into the verifier every unit is judged on. The gate opens only after the retro.`,"goalBatch.retro.interventionsShort":`{{accounted}}/{{total}} accounted`,"goalBatch.retro.loosened":`{{count}} loosened, needs you`,"goalBatch.retro.mark.blocked":`Unaccounted`,"goalBatch.retro.mark.done":`Exp v{{skill}} · Crit v{{verifier}}`,"goalBatch.retro.mark.pending":`Retro owed`,"goalBatch.retro.mark.pendingHint":`This wave finished; its retro has not run yet`,"goalBatch.retro.mark.running":`In retro`,"goalBatch.retro.skill":`Experience · plan skill v{{version}}`,"goalBatch.retro.status.blocked":`Interventions not accounted for`,"goalBatch.retro.status.done":`Retro done`,"goalBatch.retro.status.running":`In retro`,"goalBatch.retro.summary.interventions":`{{accounted}}/{{total}} interventions accounted for`,"goalBatch.retro.summary.reverify":`Re-verified {{passed}}/{{total}}`,"goalBatch.retro.summary.skill":`Plan skill v{{version}}: {{count}} steps changed`,"goalBatch.retro.summary.verifier":`Verifier v{{version}}: {{added}} added, {{loosened}} loosened`,"goalBatch.retro.title":`Retro · cold start`,"goalBatch.retro.titleWave":`Retro · wave {{wave}} sent back`,"goalBatch.retro.verifier":`Criteria · verifier v{{version}}`,"goalBatch.gateCheck.units_settled":`Every unit this round finished`,"goalBatch.gateCheck.units_succeeded":`Every unit this round ran through on its own — none failed or was sent back`,"goalBatch.gatePanel.learned":`What this gate taught`,"goalBatch.gatePanel.learnedHint":`Written into the plan every later unit loads, and added to the acceptance each of them must pass.`,"goalBatch.gatePanel.checks":`Checks`,"goalBatch.gatePanel.checksAt":`Verdict {{index}} · {{time}}`,"goalBatch.gatePanel.checksPlanned":`Not judged yet — these will be checked`,"goalBatch.gatePanel.question":`Revise the plan and re-probe, or fork a fresh one for the units that broke?`,"goalBatch.gatePanel.releaseQuestion":`Every check passed. Review the deliveries and the plan — release the next wave, or send the plan back to revise?`,"goalBatch.gatePanel.history":`Verdicts`,"goalBatch.gatePanel.history.blocked":`Held: {{checks}}`,"goalBatch.gatePanel.history.empty":`No verdict yet`,"goalBatch.gatePanel.history.released":`Released wave {{wave}} ({{count}} units)`,"goalBatch.gatePanel.history.unrecorded":`Judged before verdicts were recorded — no detail kept`,"goalBatch.gatePanel.history.unit":`“{{title}}” failed its own check — the batch was held at once`,"goalBatch.gatePanel.next.checking":`Every unit finished — judged on the coordinator’s next step`,"goalBatch.gatePanel.next.human":`Waiting on you: revise the plan, or fork a fresh one for the units that broke`,"goalBatch.gatePanel.next.release":`Waiting on you: review the deliveries and the plan, then release the next wave or revise the plan`,"goalBatch.gatePanel.next.locked":`Judged automatically once this round’s {{count}} units finish`,"goalBatch.gatePanel.next.passed":`Released wave {{wave}} ({{count}} units) — judged again once it finishes`,"goalBatch.gatePanel.next.passedDone":`The whole roster is released`,"goalBatch.gatePanel.next.distilling":`The main Agent is updating the plan from what the probes ran into — judged once it is done`,"goalBatch.gatePanel.next.revising":`The main Agent is rewriting the plan from your correction`,"goalBatch.gatePanel.next.rejected":`Reopened as v{{revision}} on your decision`,"goalBatch.gatePanel.verdict":`Verdict`,"goalBatch.gate.checkCount":`{{count}} checks`,"goalBatch.gate.hintSection.execution":`Execution`,"goalBatch.gate.hintSection.retro":`Retro & criteria`,"goalBatch.gate.hintTitle":`Checked before the rest are released:`,"goalBatch.gate.status.checking":`Judging`,"goalBatch.gate.status.human":`Needs your decision`,"goalBatch.gate.status.locked":`Not judged`,"goalBatch.gate.status.passed":`Passed`,"goalBatch.gate.status.rejected":`Sent back`,"goalBatch.gate.title":`Release gate`,"goalBatch.gate.titleRound":`Release gate · v{{revision}}`,"goalBatch.overviewCount":`Total: {{count}} batches · {{nodes}} nodes`,"goalBatch.probes.hint":`{{count}} representative units run first — the most different ones and the hardest. The rest are released only once every one of them runs through automatically and you approve the release.`,"goalBatch.probes.status.done":`Trials done`,"goalBatch.probes.status.pending":`Not started`,"goalBatch.probes.status.running":`Trials running`,"goalBatch.probes.title":`Cold start · trials`,"goalBatch.probes.rowLabel":`Trials`,"goalBatch.redispatch.foot":`{{count}} units · on v{{revision}}`,"goalBatch.redispatch.fromProbe":`Reopened from trial {{index}}`,"goalBatch.redispatch.fromRound":`Reopened from v{{revision}}`,"goalBatch.redispatch.fromWave":`Reopened from wave {{wave}}, item {{index}}`,"goalBatch.redispatch.title":`Waves · v{{revision}}`,"goalBatch.redispatch.labelRound":`v{{revision}}`,"goalBatch.redispatch.reopenedRow":`Reopened`,"goalBatch.round.foot":`{{count}} units`,"goalBatch.round.reviseEdge":`Sent back · revise`,"goalBatch.round.title":`Round {{revision}}`,"goalBatch.status.done":`All done`,"goalBatch.status.held":`Waiting for your release`,"goalBatch.status.human":`{{count}} need you`,"goalBatch.status.pending":`Not started`,"goalBatch.status.running":`In progress`,"goalBatch.status.stale":`{{count}} superseded`,"goalBatch.skill.forked":`Plan skill v{{revision}} · new class`,"goalBatch.skill.title":`Plan skill v{{revision}}`,"goalBatch.template.forked":`Plan v{{revision}} · new class`,"goalBatch.template.title":`Plan v{{revision}}`,"goalBatch.templatePlain":`Batch plan`,"goalBatch.title":`Repeated batch`,"goalBatch.waves.foot":`{{count}} units / {{waves}} waves`,"goalBatch.waves.row":`W{{number}}`,"goalBatch.waves.title":`Waves`,"goalExperiment.continuedFrom":`Continued exploration`,"goalExperiment.drill":`Explore inside`,"goalExperiment.drillNamed":`Explore inside: {{title}}`,"goalExperiment.location":`Exploration location`,"goalExperiment.expandScope":`Expand this view`,"goalExperiment.collapseScope":`Collapse this view`,"goalExperiment.emptyGraph":`This experiment has no internal nodes yet.`,"goalExperiment.overviewCount":`Total: {{count}} experiments · {{nodes}} nodes`,"goalExperiment.expandAll":`Expand all`,"goalExperiment.collapseAll":`Collapse all`,"goalExperiment.collapseNamed":`Collapse experiment: {{title}}`,"goalExperiment.projectedRelation":`{{relation}} (internal link)`,"goalExperiment.baseline":`Starting experiment · no parent experiment`,"goalExperiment.noResult":`No result has been recorded for this experiment yet.`,"goalExperiment.number":`Experiment #{{number}}`,"goalExperiment.execution":`Execution history`,"goalExperiment.delivery":`View delivery`,"goalExperiment.answers":`Candidate answer`,"goalExperiment.root":`All exploration`,"goalExperiment.inspect":`Experiment details`,"goalExperiment.members":`{{count}} nodes`,"goalExperiment.enter":`Expand in this graph`,"goalExperiment.status.proposed":`Not started`,"goalExperiment.status.active":`Exploring`,"goalExperiment.status.waiting":`Waiting for a decision`,"goalExperiment.status.resolved":`Work completed`,"goalExperiment.status.rejected":`Rejected`,"goalExperiment.status.retired":`Retired`,"goalExperiment.acceptance":`View verification`,"goalExperiment.result":`Experiment results`,"goalExperiment.lineage":`Experiment lineage`,"goalExperiment.parentLink":`From #{{number}} · {{title}}`,"goalExperiment.childLink":`Continued as #{{number}} · {{title}}`,"goalExperiment.instruction":`What this experiment tests`,"goalExperiment.inputs":`Pinned input versions ({{count}})`,"goalExperiment.inputHint":`These are version references recorded when the experiment was created. Execution history contains the actual dispatched input.`,"goalExperiment.unavailableInput":`Referenced work is unavailable`,"ModelSwitch.title":`Model`,active:`Active`,"audioPlayer.download":`Download audio`,"audioPlayer.pause":`Pause audio`,"audioPlayer.play":`Play audio`,"audioPlayer.seek":`Seek audio`,"agentBuilder.installPlugin.authRequired":`Cloud MCP requires sign-in to continue`,"agentBuilder.installPlugin.cancel":`Cancel`,"agentBuilder.installPlugin.clickApproveToConnect":`Click "Approve" to connect and authorize this Integration`,"agentBuilder.installPlugin.clickApproveToInstall":`Click "Approve" to install this Skill`,"agentBuilder.installPlugin.connectedAndEnabled":`Connected and enabled`,"agentBuilder.installPlugin.connectionFailed":`Connection failed. Retry, or check authorization and network settings.`,"agentBuilder.installPlugin.installFailed":`Installation failed. Retry, or view details and try again.`,"agentBuilder.installPlugin.installPlugin":`Install Skill`,"agentBuilder.installPlugin.installToEnable":`Install to enable this Skill for the Agent (you can do it later)`,"agentBuilder.installPlugin.installedAndEnabled":`Installed and enabled`,"agentBuilder.installPlugin.requiresAuth":`Requires authorization. Click "Approve" to connect`,"agentBuilder.installPlugin.retry":`Retry`,"agentBuilder.title":`Agent Builder`,"agentBuilder.welcome":`Tell me your use case.
170
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function DEe(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;DEe(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function OEe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function kEe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!MEe.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??OEe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}tS(n,r,e.length===1?e[0]:kEe(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=OEe(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function AEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of MEe)if(t in e)return;let n=t.filter(e=>NEe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=kEe(t);else{let e=n[0],i=NEe.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>kEe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,nC(e,r))}function jEe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):nC(i,s),nC(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())DEe(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])AEe(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}nC(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,tS(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:oC(t,`input`,e.processors),output:oC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function aC(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return aC(r.element,n);if(r.type===`set`)return aC(r.valueType,n);if(r.type===`lazy`)return aC(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return aC(r.innerType,n);if(r.type===`intersection`)return aC(r.left,n)||aC(r.right,n);if(r.type===`record`||r.type===`map`)return aC(r.keyType,n)||aC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:aC(r.in,n)||aC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(aC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(aC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(aC(e,n))return!0;return!!(r.rest&&aC(r.rest,n))}return!1}var MEe,NEe,PEe,oC,sC=o((()=>{_Te(),yS(),MEe=new Set([`type`,`properties`,`required`,`additionalProperties`]),NEe=[`oneOf`,`anyOf`],PEe=(e,t={})=>n=>{let r=wEe({...n,processors:t});return iC(e,r),EEe(r,e),jEe(r,e)},oC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wEe({...i??{},target:a,io:t,processors:n});return iC(e,o),EEe(o,e),jEe(o,e)}}));function cC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)KEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&uC(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&uC(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&dC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&dC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&zEe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&VEe(t,i.mime);for(let e of i.patterns??[])BEe(t,e);return t}function lC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?lC(t.out):t.type===`catch`?lC(t.innerType):e._zod.optin}function FEe(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=FEe(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>FEe(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?MS:YSe).source),p):p}function IEe(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of fC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=FEe(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}function LEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(rC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),pC):JSON.parse(o)}var uC,dC,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,KEe,qEe,JEe,YEe,XEe,ZEe,QEe,$Ee,eDe,tDe,nDe,rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,dDe,fDe,fC,pDe,mDe,hDe,pC,gDe,_De,vDe,yDe,bDe,xDe,SDe,CDe=o((()=>{NS(),$we(),sC(),yS(),uC=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},dC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},REe=(e,t)=>{uC(e,`minimum`,t),dC(e,`maximum`,t)},zEe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},BEe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},VEe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},HEe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},UEe=(e,t)=>uC(e,`minimum`,t.minimum),WEe=(e,t)=>dC(e,`maximum`,t.maximum),GEe=e=>(t,n)=>{HEe(t,n.format);let[r,i]=e[n.format];uC(t,`minimum`,r),dC(t,`maximum`,i)},KEe={greater_than:(e,t)=>uC(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>dC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>zEe(e,t.value),number_format:GEe(Bxe),bigint_format:GEe(Vxe),min_length:UEe,max_length:WEe,length_equals:(e,t)=>REe(e,t.length),min_size:UEe,max_size:WEe,size_equals:(e,t)=>REe(e,t.size),string_format:(e,t)=>{HEe(e,t.format),t.pattern&&BEe(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>VEe(e,t.mime)},qEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},JEe=new Map([[hwe,HSe],[US,USe]]),YEe=e=>JEe.get(e)??e,XEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=cC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=qEe[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(YEe);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ZEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=cC(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):rC(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},QEe=(e,t,n,r)=>{n.type=`boolean`},$Ee=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},eDe=(e,t,n,r)=>{rC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},tDe=(e,t,n,r)=>{n.not={}},nDe=(e,t,n,r)=>{},rDe=(e,t,n,r)=>{},iDe=(e,t,n,r)=>{rC(e,t,n,r,`Date cannot be represented in JSON Schema`)},aDe=(e,t,n,r)=>{let i=e._zod.def,a=Qbe(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},oDe=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(rC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(rC(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},sDe=(e,t,n,r)=>{rC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},cDe=(e,t,n,r)=>{rC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},lDe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=cC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=iC(a.element,t,{...r,path:[...r.path,`items`]})},uDe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&rC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)tS(i.properties,e,iC(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?lC(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=iC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},dDe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>iC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},fDe=(e,t,n,r)=>{let i=e._zod.def,a=iC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=iC(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},fC=new WeakMap,pDe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=cC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=iC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)tS(i.patternProperties,YEe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=iC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=fC.get(t);n||(n=[],fC.set(t,n),t.deferred.push(()=>IEe(t))),n.push(e)}i.additionalProperties=iC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&lC(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},mDe=(e,t,n,r)=>{let i=e._zod.def,a=iC(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},hDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},pC=Symbol(),gDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=LEe(i.defaultValue,e,t,n,r);o!==pC&&(n.default=o)},_De=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=LEe(i.defaultValue,e,t,n,r);o!==pC&&(n._prefault=o)},vDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{rC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},yDe=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;iC(o,t,r);let s=t.seen.get(e);s.ref=o},bDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},xDe=(e,t,n,r)=>{let i=e._zod.def;iC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},SDe=(e,t,n,r)=>{let i=e._zod.innerType;iC(i,t,r);let a=t.seen.get(e);a.ref=i}})),mC=o((()=>{TS(),bSe(),aSe(),$we(),uTe(),hCe(),yCe(),yS(),NS(),pTe(),_Te(),_Ce(),vTe(),CEe(),sC(),CDe(),sC()})),wDe=o((()=>{mC()}));function hC(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var TDe,EDe,gC,DDe=o((()=>{mC(),yS(),TDe=new WeakSet([Object.prototype,Error.prototype]),EDe=(e,t)=>{iSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);TDe.has(n)||(TDe.add(n),hC(n,`format`,e=>t=>eSe(e,t)),hC(n,`flatten`,e=>t=>$xe(e,t)),hC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,exe,2)}),hC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,exe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},gC=bS(`ZodError`,EDe,void 0,{Parent:Error})})),ODe,kDe,ADe,jDe,MDe,NDe,PDe,FDe,IDe,LDe,RDe,zDe,BDe=o((()=>{mC(),DDe(),ODe=OS(gC),kDe=kS(gC),ADe=AS(gC),jDe=jS(gC),MDe=fSe(gC),NDe=pSe(gC),PDe=mSe(gC),FDe=hSe(gC),IDe=gSe(gC),LDe=_Se(gC),RDe=vSe(gC),zDe=ySe(gC)}));function VDe(){wS.localeError||xS(dTe())}function _C(){wS.memoizer||xS({memoizer:iTe()})}function H(e){return bTe(cOe,e)}function vC(e){return qTe(jOe,e)}function HDe(e){return JTe(MOe,e)}function yC(e){return YTe(NOe,e)}function UDe(e){return XTe(POe,e)}function WDe(e){return ZTe(FOe,e)}function bC(){return QTe(IOe)}function xC(){return $Te(LOe)}function GDe(e){return eEe(ROe,e)}function SC(e,t){return vEe(BOe,e,t)}function CC(e,t){return new VOe({type:`object`,shape:e??{},...lS(t)})}function KDe(e,t){return new VOe({type:`object`,shape:e,catchall:GDe(),...lS(t)})}function wC(e,t){return new HOe({type:`union`,options:e,...lS(t)})}function TC(e,t,n){return new UOe({type:`union`,options:t,discriminator:e,...lS(n)})}function qDe(e,t){return new WOe({type:`intersection`,left:e,right:t})}function EC(e,t,n){return!t||!t._zod?new GOe({type:`record`,keyType:H(),valueType:e,...lS(t)}):new GOe({type:`record`,keyType:e,valueType:t,...lS(n)})}function DC(e,t){return new FC({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...lS(t)})}function OC(e,t){return new FC({type:`enum`,entries:e,...lS(t)})}function kC(e,t){return new KOe({type:`literal`,values:Array.isArray(e)?e:[e],...lS(t)})}function JDe(e){return new qOe({type:`transform`,transform:e})}function YDe(e){return new JOe({type:`optional`,innerType:e})}function XDe(e){return new YOe({type:`optional`,innerType:e})}function ZDe(e){return new XOe({type:`nullable`,innerType:e})}function QDe(e,t){return new ZOe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():dxe(t)}})}function $De(e,t){return new QOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():dxe(t)}})}function eOe(e,t){return new $Oe({type:`nonoptional`,innerType:e,...lS(t)})}function tOe(e,t){return new eke({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Pxe(t)})}function nOe(e,t){return new tke({type:`pipe`,in:e,out:t})}function rOe(e){return new rke({type:`readonly`,innerType:e})}function iOe(e){return new ike({type:`lazy`,getter:e})}function AC(e,t){return yEe(ake,e??(()=>!0),t)}function aOe(e,t={}){return bEe(ake,e,t)}function oOe(e,t){return xEe(e,t)}function jC(e,t){return new nke({type:`pipe`,in:JDe(e),out:t})}var MC,sOe,cOe,NC,lOe,uOe,dOe,fOe,pOe,mOe,PC,hOe,gOe,_Oe,vOe,yOe,bOe,xOe,SOe,COe,wOe,TOe,EOe,DOe,OOe,kOe,AOe,jOe,MOe,NOe,POe,FOe,IOe,LOe,ROe,zOe,BOe,VOe,HOe,UOe,WOe,GOe,FC,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,IC=o((()=>{mC(),CDe(),sC(),pTe(),wDe(),BDe(),MC=bS(`ZodType`,(e,t)=>(VDe(),BS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(iS(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return cS(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(aOe(e,t))},superRefine(e,t){return this.check(oOe(e,t))},overwrite(e){return this.check(tC(e))},optional(){return YDe(this)},exactOptional(){return XDe(this)},nullable(){return ZDe(this)},nullish(){return YDe(ZDe(this))},nonoptional(e){return eOe(this,e)},array(){return SC(this)},or(e){return wC([this,e])},and(e){return qDe(this,e)},transform(e){return nOe(this,JDe(e))},default(e){return QDe(this,e)},prefault(e){return $De(this,e)},catch(e){return tOe(this,e)},pipe(e){return nOe(this,e)},readonly(){return rOe(this)},describe(e){let t=this.clone();return ZS.add(t,{description:e}),t},meta(...e){if(e.length===0)return ZS.get(this);let t=this.clone();return ZS.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return kxe(this,`~standard`,{...xCe(this),jsonSchema:{input:oC(this,`input`),output:oC(this,`output`)}})},set"~standard"(e){gS(this,`~standard`,e)},parse:function e(t,n){return ODe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await kDe(this,t,n,{callee:e})},safeParse(e,t){return ADe(this,e,t)},async safeParseAsync(e,t){return jDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){gS(this,`spa`,e)},validate(e,t){return uSe(this,e,t)},validateAsync(e,t){return dSe(this,e,t)},encode:function e(t,n){return MDe(this,t,n,{callee:e})},decode:function e(t,n){return NDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await PDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await FDe(this,t,n,{callee:e})},safeEncode(e,t){return IDe(this,e,t)},safeDecode(e,t){return LDe(this,e,t)},async safeEncodeAsync(e,t){return RDe(this,e,t)},async safeDecodeAsync(e,t){return zDe(this,e,t)},toJSONSchema(e){return PEe(this,{})(e)},get description(){return ZS.get(this)?.description},get _def(){return this._zod.def}}),sOe=bS(`_ZodString`,(e,t)=>{VS.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r)},Axe({format:e=>cC(e).format??null,minLength:e=>cC(e).minimum??null,maxLength:e=>cC(e).maximum??null},{regex(...e){return this.check(sEe(...e))},includes(...e){return this.check(uEe(...e))},startsWith(...e){return this.check(dEe(...e))},endsWith(...e){return this.check(fEe(...e))},min(...e){return this.check(eC(...e))},max(...e){return this.check(aEe(...e))},length(...e){return this.check(oEe(...e))},nonempty(...e){return this.check(eC(1,...e))},lowercase(e){return this.check(cEe(e))},uppercase(e){return this.check(lEe(e))},trim(){return this.check(mEe())},normalize(...e){return this.check(pEe(...e))},toLowerCase(){return this.check(hEe())},toUpperCase(){return this.check(gEe())},slugify(){return this.check(_Ee())}})),cOe=bS(`ZodString`,(e,t)=>{VS.init(e,t),sOe.init(e,t)},{email(e){return this.check(xTe(pOe,e))},url(e){return this.check(DTe(hOe,e))},jwt(e){return this.check(HTe(AOe,e))},emoji(e){return this.check(OTe(gOe,e))},guid(e){return this.check(STe(mOe,e))},uuid(e){return this.check(CTe(PC,e))},uuidv4(e){return this.check(wTe(PC,e))},uuidv6(e){return this.check(TTe(PC,e))},uuidv7(e){return this.check(ETe(PC,e))},nanoid(e){return this.check(kTe(_Oe,e))},cuid(e){return this.check(ATe(vOe,e))},cuid2(e){return this.check(jTe(yOe,e))},ulid(e){return this.check(MTe(bOe,e))},base64(e){return this.check(zTe(DOe,e))},base64url(e){return this.check(BTe(OOe,e))},xid(e){return this.check(NTe(xOe,e))},ksuid(e){return this.check(PTe(SOe,e))},ipv4(e){return this.check(FTe(COe,e))},ipv6(e){return this.check(ITe(wOe,e))},cidrv4(e){return this.check(LTe(TOe,e))},cidrv6(e){return this.check(RTe(EOe,e))},e164(e){return this.check(VTe(kOe,e))},datetime(e){return this.check(UTe(lOe,e))},date(e){return this.check(WTe(uOe,e))},time(e){return this.check(GTe(dOe,e))},duration(e){return this.check(KTe(fOe,e))}}),NC=bS(`ZodStringFormat`,(e,t)=>{HS.init(e,t),sOe.init(e,t)}),lOe=bS(`ZodISODateTime`,(e,t)=>{owe.init(e,t),NC.init(e,t)}),uOe=bS(`ZodISODate`,(e,t)=>{swe.init(e,t),NC.init(e,t)}),dOe=bS(`ZodISOTime`,(e,t)=>{cwe.init(e,t),NC.init(e,t)}),fOe=bS(`ZodISODuration`,(e,t)=>{lwe.init(e,t),NC.init(e,t)}),pOe=bS(`ZodEmail`,(e,t)=>{XCe.init(e,t),NC.init(e,t)}),mOe=bS(`ZodGUID`,(e,t)=>{JCe.init(e,t),NC.init(e,t)}),PC=bS(`ZodUUID`,(e,t)=>{YCe.init(e,t),NC.init(e,t)}),hOe=bS(`ZodURL`,(e,t)=>{QCe.init(e,t),NC.init(e,t)}),gOe=bS(`ZodEmoji`,(e,t)=>{$Ce.init(e,t),NC.init(e,t)}),_Oe=bS(`ZodNanoID`,(e,t)=>{ewe.init(e,t),NC.init(e,t)}),vOe=bS(`ZodCUID`,(e,t)=>{twe.init(e,t),NC.init(e,t)}),yOe=bS(`ZodCUID2`,(e,t)=>{nwe.init(e,t),NC.init(e,t)}),bOe=bS(`ZodULID`,(e,t)=>{rwe.init(e,t),NC.init(e,t)}),xOe=bS(`ZodXID`,(e,t)=>{iwe.init(e,t),NC.init(e,t)}),SOe=bS(`ZodKSUID`,(e,t)=>{awe.init(e,t),NC.init(e,t)}),COe=bS(`ZodIPv4`,(e,t)=>{uwe.init(e,t),NC.init(e,t)}),wOe=bS(`ZodIPv6`,(e,t)=>{fwe.init(e,t),NC.init(e,t)}),TOe=bS(`ZodCIDRv4`,(e,t)=>{pwe.init(e,t),NC.init(e,t)}),EOe=bS(`ZodCIDRv6`,(e,t)=>{mwe.init(e,t),NC.init(e,t)}),DOe=bS(`ZodBase64`,(e,t)=>{gwe.init(e,t),NC.init(e,t)}),OOe=bS(`ZodBase64URL`,(e,t)=>{_we.init(e,t),NC.init(e,t)}),kOe=bS(`ZodE164`,(e,t)=>{vwe.init(e,t),NC.init(e,t)}),AOe=bS(`ZodJWT`,(e,t)=>{ywe.init(e,t),NC.init(e,t)}),jOe=bS(`ZodNumber`,(e,t)=>{bwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.isFinite=!0},Axe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=cC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=cC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=cC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>cC(e).format??null},{gt(e,t){return this.check(rEe(e,t))},gte(e,t){return this.check($S(e,t))},min(e,t){return this.check($S(e,t))},lt(e,t){return this.check(nEe(e,t))},lte(e,t){return this.check(QS(e,t))},max(e,t){return this.check(QS(e,t))},int(e){return this.check(HDe(e))},safe(e){return this.check(HDe(e))},positive(e){return this.check(rEe(0,e))},nonnegative(e){return this.check($S(0,e))},negative(e){return this.check(nEe(0,e))},nonpositive(e){return this.check(QS(0,e))},multipleOf(e,t){return this.check(iEe(e,t))},step(e,t){return this.check(iEe(e,t))},finite(){return this}})),MOe=bS(`ZodNumberFormat`,(e,t)=>{xwe.init(e,t),jOe.init(e,t)}),NOe=bS(`ZodBoolean`,(e,t)=>{Swe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QEe(e,t,n,r)}),POe=bS(`ZodUndefined`,(e,t)=>{Cwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eDe(e,t,n,r)}),FOe=bS(`ZodNull`,(e,t)=>{wwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$Ee(e,t,n,r)}),IOe=bS(`ZodAny`,(e,t)=>{Twe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nDe(e,t,n,r)}),LOe=bS(`ZodUnknown`,(e,t)=>{Ewe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rDe(e,t,n,r)}),ROe=bS(`ZodNever`,(e,t)=>{Dwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tDe(e,t,n,r)}),zOe=bS(`ZodDate`,(e,t)=>{Owe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iDe(e,t,n,r),e.min=(t,n)=>e.check($S(t,n)),e.max=(t,n)=>e.check(QS(t,n))},Axe({minDate:e=>{let{minimum:t}=cC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=cC(e);return t?new Date(t):null}},{})),BOe=bS(`ZodArray`,(e,t)=>{_C(),Awe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lDe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(eC(e,t))},nonempty(e){return this.check(eC(1,e))},max(e,t){return this.check(aEe(e,t))},length(e,t){return this.check(oEe(e,t))},unwrap(){return this.element}}),VOe=bS(`ZodObject`,(e,t)=>{_C(),Nwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uDe(e,t,n,r),Nxe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return DC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(iS(this._zod.def,{catchall:e}))},passthrough(){return this.clone(iS(this._zod.def,{catchall:xC()}))},loose(){return this.clone(iS(this._zod.def,{catchall:xC()}))},strict(){return this.clone(iS(this._zod.def,{catchall:GDe()}))},strip(){return this.clone(iS(this._zod.def,{catchall:void 0}))},extend(e){return gxe(this,e)},safeExtend(e){return vxe(this,e)},merge(e){return yxe(this,e)},pick(e){return mxe(this,e)},omit(e){return hxe(this,e)},partial(...e){return bxe(JOe,this,e[0])},exactPartial(...e){return bxe(YOe,this,e[0],`exactPartial`)},required(...e){return xxe($Oe,this,e[0])}}),HOe=bS(`ZodUnion`,(e,t)=>{Pwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dDe(e,t,n,r),e.options=t.options}),UOe=bS(`ZodDiscriminatedUnion`,(e,t)=>{HOe.init(e,t),Fwe.init(e,t)}),WOe=bS(`ZodIntersection`,(e,t)=>{Iwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fDe(e,t,n,r)}),GOe=bS(`ZodRecord`,(e,t)=>{_C(),Lwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pDe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),FC=bS(`ZodEnum`,(e,t)=>{Rwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aDe(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new FC({...t,checks:[],...lS(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new FC({...t,checks:[],...lS(r),entries:i})}}),KOe=bS(`ZodLiteral`,(e,t)=>{zwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oDe(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),qOe=bS(`ZodTransform`,(e,t)=>{_C(),Bwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cDe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yxe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(hS(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(hS(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),JOe=bS(`ZodOptional`,(e,t)=>{Vwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),YOe=bS(`ZodExactOptional`,(e,t)=>{Hwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),XOe=bS(`ZodNullable`,(e,t)=>{Uwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ZOe=bS(`ZodDefault`,(e,t)=>{Wwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),QOe=bS(`ZodPrefault`,(e,t)=>{Gwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_De(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$Oe=bS(`ZodNonOptional`,(e,t)=>{Kwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),eke=bS(`ZodCatch`,(e,t)=>{qwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),tke=bS(`ZodPipe`,(e,t)=>{Jwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yDe(e,t,n,r),e.in=t.in,e.out=t.out}),nke=bS(`ZodPreprocess`,(e,t)=>{tke.init(e,t),Ywe.init(e,t)}),rke=bS(`ZodReadonly`,(e,t)=>{Xwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),ike=bS(`ZodLazy`,(e,t)=>{Zwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),ake=bS(`ZodCustom`,(e,t)=>{Qwe.init(e,t),MC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sDe(e,t,n,r)})})),oke,ske=o((()=>{mC(),oke||={}}));function cke(e){return UTe(lOe,e)}var lke=o((()=>{mC(),IC()}));function LC(e){return tEe(zOe,e)}var uke=o((()=>{mC(),IC()})),dke=o((()=>{mC(),IC(),wDe(),DDe(),BDe(),ske(),CDe(),_Te(),yS(),wDe(),lke(),IC(),$we(),pTe(),uke()})),RC=o((()=>{dke(),dke()})),zC,fke,pke,mke,hke,gke,_ke=o((()=>{RC(),zC=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],fke=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...zC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`agy`},defaultCommand:`agy`,defaultTopicGroupMode:`byProject`,iconId:`Antigravity`,install:{commands:[],docsUrl:`https://antigravity.google/docs/cli/install/`},kind:`local-cli`,menuKey:`newAntigravityAgent`,menuLabelKey:`newAntigravityAgent`,resume:{supported:!0},title:`Antigravity`,type:`antigravity`},{auth:{docsUrl:`https://ampcode.com/manual`,errorMessage:"Amp could not authenticate. Run `amp login` or configure AMP_API_KEY, then retry.",patterns:[...zC,`please (?:log|sign) in`,`amp_api_key`],signInCommand:`amp login`},defaultCommand:`amp`,defaultTopicGroupMode:`byProject`,iconId:`Amp`,install:{commands:[`curl -fsSL https://ampcode.com/install.sh | bash`,`brew install ampcode/tap/ampcode`],docsUrl:`https://ampcode.com/manual`},kind:`local-cli`,menuKey:`newAmpAgent`,menuLabelKey:`newAmpAgent`,resume:{supported:!0},title:`Amp`,type:`amp`},{auth:{docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`,errorMessage:`Claude Code could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...zC,`not logged in`],signInCommand:`claude`},defaultCommand:`claude`,defaultTopicGroupMode:`byProject`,iconId:`ClaudeCode`,install:{commands:[`curl -fsSL https://claude.ai/install.sh | bash`,`brew install --cask claude-code`],docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`},kind:`local-cli`,menuKey:`newClaudeCodeAgent`,menuLabelKey:`newClaudeCodeAgent`,resume:{supported:!0},title:`Claude Code`,type:`claude-code`},{auth:{docsUrl:`https://www.codebuddy.ai/docs/cli/installation`,errorMessage:"CodeBuddy could not authenticate. Run `codebuddy`, use `/login`, then retry.",patterns:[...zC,`authentication required`,`please use \\/login`,`not logged in`],signInCommand:`codebuddy`},defaultCommand:`codebuddy`,defaultTopicGroupMode:`byProject`,iconId:`CodeBuddy`,install:{commands:[`npm install -g @tencent-ai/codebuddy-code`,`brew install Tencent-CodeBuddy/tap/codebuddy-code`],docsUrl:`https://www.codebuddy.ai/docs/cli/installation`},kind:`local-cli`,menuKey:`newCodeBuddyAgent`,menuLabelKey:`newCodeBuddyAgent`,resume:{supported:!0},title:`CodeBuddy`,type:`codebuddy`},{auth:{docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`,errorMessage:`Codex could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:zC,signInCommand:`codex`},defaultCommand:`codex`,defaultTopicGroupMode:`byProject`,iconId:`Codex`,install:{commands:[`npm install -g @openai/codex`,`brew install --cask codex`],docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`},kind:`local-cli`,menuKey:`newCodexAgent`,menuLabelKey:`newCodexAgent`,resume:{supported:!0},title:`Codex`,type:`codex`},{auth:{docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`,errorMessage:"GitHub Copilot CLI could not authenticate. Run `copilot login` in your terminal, then retry.",patterns:[...zC,`authentication required`,`not authenticated`,`not logged in`,`copilot login`,`gh auth login`],signInCommand:`copilot login`},defaultCommand:`copilot`,defaultTopicGroupMode:`byProject`,iconId:`GithubCopilot`,install:{commands:[`curl -fsSL https://gh.io/copilot-install | bash`,`npm install -g @github/copilot`],docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`},kind:`local-cli`,menuKey:`newCopilotAgent`,menuLabelKey:`newCopilotAgent`,resume:{supported:!0},title:`GitHub Copilot`,type:`copilot`},{auth:{docsUrl:`https://cursor.com/docs/cli/installation`,errorMessage:"Cursor could not authenticate. Run `agent login`, then retry.",patterns:[...zC,`authentication required`,`not logged in`],signInCommand:`agent login`},defaultCommand:`agent`,defaultTopicGroupMode:`byProject`,iconId:`Cursor`,install:{commands:[`curl https://cursor.com/install -fsS | bash`],docsUrl:`https://cursor.com/docs/cli/installation`},kind:`local-cli`,menuKey:`newCursorAgent`,menuLabelKey:`newCursorAgent`,resume:{supported:!0},title:`Cursor`,type:`cursor`},{auth:{docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`,errorMessage:"Factory Droid could not authenticate. Run `droid` to sign in or configure FACTORY_API_KEY, then retry.",patterns:[...zC,`authentication required`,`factory_api_key`,`device pairing`],signInCommand:`droid`},defaultCommand:`droid`,defaultTopicGroupMode:`byProject`,iconId:`Droid`,install:{commands:[`curl -fsSL https://app.factory.ai/cli | sh`,`irm https://app.factory.ai/cli/windows | iex`],docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`},kind:`local-cli`,menuKey:`newDroidAgent`,menuLabelKey:`newDroidAgent`,resume:{supported:!0},title:`Factory Droid`,type:`droid`},{auth:{docsUrl:`https://docs.devin.ai/cli/enterprise/devin-auth`,errorMessage:"Devin could not authenticate. Run `devin auth login`, then retry.",patterns:[...zC,`authentication required`,`not logged in`,`devin auth login`],signInCommand:`devin auth login`},defaultCommand:`devin`,defaultTopicGroupMode:`byProject`,iconId:`Devin`,install:{commands:[`curl -fsSL https://cli.devin.ai/install.sh | bash`,`irm https://static.devin.ai/cli/setup.ps1 | iex`],docsUrl:`https://docs.devin.ai/cli`},kind:`local-cli`,menuKey:`newDevinAgent`,menuLabelKey:`newDevinAgent`,resume:{supported:!0},title:`Devin`,type:`devin`},{auth:{docsUrl:`https://docs.x.ai/build/overview`,errorMessage:"Grok Build could not authenticate. Run `grok login`, then retry.",patterns:[...zC,`authentication required`,`no cached auth token found`,`session expired`,"run `grok login`"],signInCommand:`grok login`},defaultCommand:`grok`,defaultTopicGroupMode:`byProject`,iconId:`Grok`,install:{commands:[`curl -fsSL https://x.ai/cli/install.sh | bash`,`irm https://x.ai/cli/install.ps1 | iex`],docsUrl:`https://docs.x.ai/build/overview`},kind:`local-cli`,menuKey:`newGrokBuildAgent`,menuLabelKey:`newGrokBuildAgent`,resume:{supported:!0},title:`Grok Build`,type:`grok-build`},{auth:{docsUrl:`https://moonshotai.github.io/kimi-code/en/`,errorMessage:"Kimi Code could not authenticate. Run `kimi`, use `/login`, then retry.",patterns:[...zC,`no model configured`],signInCommand:`kimi`},defaultCommand:`kimi`,defaultTopicGroupMode:`byProject`,iconId:`Kimi`,install:{commands:[`curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash`,`irm https://code.kimi.com/kimi-code/install.ps1 | iex`],docsUrl:`https://moonshotai.github.io/kimi-code/en/`},kind:`local-cli`,menuKey:`newKimiCodeAgent`,menuLabelKey:`newKimiCodeAgent`,resume:{supported:!0},title:`Kimi Code`,type:`kimi-code`},{auth:{docsUrl:`https://opencode.ai/docs`,errorMessage:`OpenCode could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...zC,`authentication`,`invalid.*(?:credential|token|key)`],signInCommand:`opencode auth login`},defaultCommand:`opencode`,defaultTopicGroupMode:`byProject`,iconId:`OpenCode`,install:{commands:[`curl -fsSL https://opencode.ai/install | bash`],docsUrl:`https://opencode.ai/docs`},kind:`local-cli`,menuKey:`newOpenCodeAgent`,menuLabelKey:`newOpenCodeAgent`,resume:{supported:!0},title:`OpenCode`,type:`opencode`},{auth:{docsUrl:`https://github.com/earendil-works/pi`,errorMessage:"Pi could not authenticate. Run `pi`, use `/login`, then retry.",patterns:[...zC,`invalid (?:authentication )?(?:credentials?|tokens?|api keys?)`],signInCommand:`pi`},defaultCommand:`pi`,defaultTopicGroupMode:`byProject`,iconId:`Pi`,install:{commands:[`npm install -g @earendil-works/pi-coding-agent`],docsUrl:`https://github.com/earendil-works/pi`},kind:`local-cli`,menuKey:`newPiAgent`,menuLabelKey:`newPiAgent`,resume:{supported:!0},title:`Pi`,type:`pi`},{auth:{docsUrl:`https://docs.qoder.com/cli/auth.md`,errorMessage:"Qoder could not authenticate. Run `qodercli login`, then retry.",patterns:[...zC,`not logged in`,`please run \\/login`],signInCommand:`qodercli login`},defaultCommand:`qodercli`,defaultTopicGroupMode:`byProject`,iconId:`Qoder`,install:{commands:[`curl -fsSL https://qoder.com/install | bash`,`npm install -g @qoder-ai/qodercli`],docsUrl:`https://docs.qoder.com/cli/install.md`},kind:`local-cli`,menuKey:`newQoderAgent`,menuLabelKey:`newQoderAgent`,resume:{supported:!0},title:`Qoder`,type:`qoder`},{auth:{docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`,errorMessage:`TRAE CLI could not authenticate. Sign in through TRAE Enterprise, then retry.`,patterns:[...zC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`traecli`},defaultCommand:`traecli`,defaultTopicGroupMode:`byProject`,iconId:`Trae`,install:{commands:[],docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`},kind:`local-cli`,menuKey:`newTraeAgent`,menuLabelKey:`newTraeAgent`,resume:{supported:!0},title:`TRAE CLI`,type:`trae`}],pke=fke.map(({type:e})=>e),DC(pke),mke=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],hke=DC([...pke,...mke.map(({type:e})=>e)]),gke=[{cli:{command:`openclaw`,validation:{helpKeywords:[`Usage: openclaw`],keywords:[`openclaw`],pattern:`^v?\\d+\\.\\d+\\.\\d+(?:[-+][\\dA-Za-z.-]+)?$`},wellKnownHomePaths:[`.openclaw/bin/openclaw`,`.local/bin/openclaw`]},kind:`remote-task`,title:`OpenClaw`,type:`openclaw`},{cli:{command:`hermes`,validation:{keywords:[`hermes`]},wellKnownHomePaths:[`.local/bin/hermes`]},kind:`remote-task`,title:`Hermes`,type:`hermes`}]})),BC,vke,VC,yke,bke,HC,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,Pke,Fke,Ike,Lke,Rke,zke,Bke,Vke,Hke,Uke,Wke,Gke,Kke,qke,Jke,Yke,Xke,Zke,UC,WC,Qke,GC,$ke=o((()=>{Zbe(),BC=`default`,vke=[`low`,`medium`,`high`,`ultra`],VC=[`low`,`medium`,`high`,`xhigh`,`max`],yke=[`low`,`medium`,`high`,`xhigh`],bke=[`--effort`,`--reasoning-effort`],HC=[`low`,`medium`,`high`,`xhigh`],xke=[...HC,`max`,`ultra`],Ske=`model_reasoning_effort`,Cke=[`low`,`high`,`max`],wke=[`high`,`max`],Tke=[...HC,`max`],Eke=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],Dke=[`gpt-6-astra`,`gpt-5.6-luna`],Oke=[`low`,`medium`,`high`,`xhigh`,`max`],kke=`--reasoning-effort`,Ake=[`low`,`medium`,`high`,`xhigh`,`max`],jke=`--reasoning-effort`,Mke=`service_tier`,Nke=[`fast`,`priority`],Pke=e=>!!e&&vke.includes(e),Fke=e=>!!e&&VC.includes(e),Ike=e=>!!e&&xke.includes(e),Lke=e=>!!e&&yke.includes(e),Rke=e=>!!e&&Oke.includes(e),zke=e=>!!e&&Ake.includes(e),Bke=e=>!!e&&Nke.includes(e),Vke=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?Cke:e===`glm-5.2`?wke:Eke.includes(e)?xke:Dke.includes(e)?Tke:HC,Hke=e=>{let t=(Qx(e?.args,`--mode`)??e?.mode)?.trim();return Pke(t)?t:BC},Uke=[`-m`,`--model`],Wke=e=>{let t=(Qx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:BC},Gke=e=>{let t=(Qx(e?.args,`--effort`)??e?.effort)?.trim();return Fke(t)?t:BC},Kke=e=>{let t=(Gbe(e?.args,Uke)??$x(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:BC},qke=e=>{let t=($x(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return Ike(t)?t:BC},Jke=e=>{let t=($x(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&$x(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:Bke(t)?`fast`:BC},Yke=e=>{let t=(Gbe(e?.args,bke)??e?.effort)?.trim();return Lke(t)?t:BC},Xke=e=>{let t=(Qx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return Rke(t)?t:BC},Zke=e=>{let t=(Qx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return zke(t)?t:BC},UC=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:BC},WC={flags:[`-m`,`--model`],kind:`flag`},Qke={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:vke,resolve:Hke}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>VC,resolve:Gke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Wke,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>VC,resolve:Gke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Wke,source:`catalog`}},codex:{effort:{encodings:[{key:Ske,kind:`config`}],levels:Vke,resolve:qke},model:{encodings:[WC,{key:`model`,kind:`config`}],resolve:Kke,source:`catalog`},speed:{encodings:[{key:Mke,kind:`config`}],resolve:Jke}},copilot:{effort:{encodings:[{flags:[jke],kind:`flag`}],levels:()=>Ake,resolve:Zke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:UC,source:`catalog`}},droid:{model:{encodings:[],resolve:UC,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:UC,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:bke,kind:`flag`}],levels:()=>yke,resolve:Yke},model:{encodings:[WC],resolve:UC,source:`catalog`}},"kimi-code":{model:{encodings:[WC],resolve:UC,source:`catalog`}},opencode:{model:{encodings:[WC],resolve:UC,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:UC,source:`catalog`}},qoder:{effort:{encodings:[{flags:[kke],kind:`flag`}],levels:()=>Oke,resolve:Xke},model:{encodings:[WC],resolve:UC,source:`catalog`}},trae:{model:{encodings:[],resolve:UC,source:`catalog`}}},GC=e=>Qke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),GC(`copilot`),GC(`grok-build`),GC(`kimi-code`),GC(`opencode`),GC(`pi`),GC(`qoder`)})),eAe=o((()=>{})),tAe=o((()=>{_ke(),eAe(),new Set([...fke.map(({type:e})=>e),...mke.map(({type:e})=>e),...gke.map(({type:e})=>e)])})),nAe=o((()=>{})),rAe=o((()=>{})),iAe,aAe,oAe,sAe,cAe=o((()=>{RC(),iAe=CC({workingDirectory:H().optional()}),aAe=CC({memory:CC({effort:DC([`low`,`medium`,`high`]).optional(),enabled:yC().optional(),toolPermission:DC([`read-only`,`read-write`]).optional()}).optional()}),oAe=CC({selfIteration:CC({enabled:yC().optional()}).optional()}),sAe=CC({codexMaxReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:DC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:DC([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:DC([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:yC().optional(),disableGatewayMode:yC().optional(),effort:DC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:yC().optional(),enableAgentMode:yC().optional(),toolMode:DC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:yC().optional(),enableCompressHistory:yC().optional(),enableContextCompression:yC().optional(),enableFollowUpChips:yC().optional(),enableHistoryCount:yC().optional(),enableMaxTokens:yC().optional(),enableReasoning:yC().optional(),enableReasoningEffort:yC().optional(),enableStreaming:yC().optional(),enableStaleToolResultTrim:yC().optional(),gpt5ReasoningEffort:DC([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:DC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:DC([`high`,`max`]).optional(),glm5_3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:DC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:DC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:DC([`high`,`xhigh`]).optional(),historyCount:vC().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:DC([`1K`,`2K`,`4K`]).optional(),imageResolution2:DC([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:iAe.optional(),preserveThinking:yC().optional(),reasoningBudgetToken:vC().optional(),reasoningBudgetToken32k:vC().optional(),reasoningBudgetToken80k:vC().optional(),reasoningEffort:DC([`low`,`medium`,`high`]).optional(),reasoningMode:DC([`standard`,`pro`]).optional(),searchFCModel:CC({model:H(),provider:H()}).optional(),searchMode:DC([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:DC([`low`,`high`]).optional(),skillActivateMode:DC([`auto`,`manual`]).optional(),textVerbosity:DC([`low`,`medium`,`high`]).optional(),thinking:DC([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:vC().optional(),thinkingLevel:DC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:DC([`low`,`high`]).optional(),thinkingLevel3:DC([`low`,`medium`,`high`]).optional(),thinkingLevel4:DC([`minimal`,`high`]).optional(),thinkingLevel5:DC([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:vC().default(25e3),topicGroupMode:DC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:yC().optional(),useModelBuiltinSearch:yC().optional()}).merge(aAe).merge(oAe)})),lAe=o((()=>{})),uAe=o((()=>{})),dAe,KC,fAe,pAe,mAe,hAe,gAe,_Ae,vAe,yAe,bAe,xAe=o((()=>{dAe=`LobeHub Cloud`,KC=`LobeHub`,fAe=`Lobe AI`,pAe=`LobeHub`,mAe={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},hAe={discord:`https://discord.gg/AYFPHvv2jT`,github:`https://github.com/lobehub`,medium:`https://medium.com/@lobehub`,x:`https://x.com/lobehub`,youtube:`https://www.youtube.com/@lobehub`},gAe={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},_Ae={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},vAe=`lobehub`,yAe=`© ${new Date().getFullYear()} ${pAe}`,bAe=`${yAe}. All rights reserved.`})),SAe,CAe,wAe,qC,JC,TAe,EAe,DAe,OAe,kAe,AAe,jAe,MAe,NAe,PAe,FAe,IAe,LAe,RAe,zAe,BAe,VAe=o((()=>{SAe=`jev-1.14.0`,CAe=`typesafe`,wAe=`openai`,qC=`deepseek-v4-flash`,JC=`deepseek`,TAe=`gpt-5.6-luna`,EAe=`openai`,DAe=`decision`,OAe=`gpt-6-luna:decision`,kAe=`openai`,AAe=`gpt-4o-mini-transcribe`,jAe=`openai`,MAe=`gemini-3-flash-preview`,NAe=`google`,PAe=`gemini-3.8-flash`,FAe=`google`,IAe=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],LAe=`glm-5.3-flash`,RAe=`zhipu`,zAe=`deepseek-flash`,BAe=`deepseek`})),HAe,UAe=o((()=>{HAe=[]})),WAe,GAe=o((()=>{WAe=`chat_preview`})),KAe=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>qAe,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>_Ae,BRANDING_INBOX_TITLE:()=>fAe,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>KC,BRANDING_PROVIDER:()=>vAe,BRANDING_URL:()=>mAe,BUSINESS_OIDC_CLIENTS:()=>HAe,COPYRIGHT:()=>yAe,COPYRIGHT_FULL:()=>bAe,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>IAe,DEFAULT_ASR_MODEL:()=>AAe,DEFAULT_ASR_PROVIDER:()=>jAe,DEFAULT_BOT_WAKE_ENGINE:()=>DAe,DEFAULT_BOT_WAKE_MODEL:()=>OAe,DEFAULT_BOT_WAKE_PROVIDER:()=>kAe,DEFAULT_CHANNEL_ROUTING_MODEL:()=>SAe,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>CAe,DEFAULT_EMBEDDING_PROVIDER:()=>wAe,DEFAULT_MINI_MODEL:()=>TAe,DEFAULT_MINI_PROVIDER:()=>EAe,DEFAULT_MODEL:()=>qC,DEFAULT_ONBOARDING_MODEL:()=>MAe,DEFAULT_ONBOARDING_PROVIDER:()=>NAe,DEFAULT_PROVIDER:()=>JC,DEFAULT_REVIEW_PREDICT_MODEL:()=>PAe,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>FAe,DEFAULT_VERIFY_MODEL:()=>LAe,DEFAULT_VERIFY_PLAN_MODEL:()=>zAe,DEFAULT_VERIFY_PLAN_PROVIDER:()=>BAe,DEFAULT_VERIFY_PROVIDER:()=>RAe,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>gAe,LOBE_CHAT_CLOUD:()=>dAe,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>JAe,ORG_NAME:()=>pAe,SOCIAL_URL:()=>hAe,UTM_SOURCE:()=>WAe,isOfficialProvider:()=>YAe}),qAe,JAe,YAe,YC=o((()=>{xAe(),xAe(),VAe(),UAe(),GAe(),qAe=`sk-lh-`,JAe=`The official provider cannot be disabled.`,YAe=e=>!1})),XAe=o((()=>{YC()})),ZAe=o((()=>{})),QAe=o((()=>{})),$Ae,eje,tje=o((()=>{RC(),$Ae=DC([`pinned`,`auto`,`disabled`]),eje=wC([H(),CC({builtinOverride:kC(!0).optional(),identifier:H(),mode:$Ae.optional()})])})),nje=o((()=>{RC(),cAe(),tje(),CC({agencyConfig:AC().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:sAe.optional(),description:H().nullish(),editorData:xC().optional(),fewShots:xC().optional(),marketIdentifier:H().nullish(),metadata:EC(H(),xC()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:SC(H()).optional(),params:EC(H(),xC()).optional(),plugins:SC(eje).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:SC(H()).optional(),title:H().nullish(),tts:AC().optional(),virtual:yC().nullish(),visibility:DC([`private`,`public`]).optional()})})),rje=o((()=>{})),ije=o((()=>{})),aje=o((()=>{})),oje=o((()=>{})),sje=o((()=>{})),cje=o((()=>{tAe(),nAe(),rAe(),cAe(),lAe(),uAe(),XAe(),Zbe(),_ke(),ZAe(),QAe(),$ke(),nje(),rje(),tje(),ije(),aje(),oje(),sje()})),lje,uje=o((()=>{lje=[`mail`,`wallet`,`service`],[...lje]})),dje=o((()=>{})),fje=o((()=>{})),pje,mje,hje=o((()=>{RC(),pje=CC({ciStatus:DC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:yC().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:vC(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),mje=CC({environmentId:H().max(255).optional(),git:CC({activeWorktree:H().optional(),autoCreated:yC().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:yC().optional(),github:CC({extraPullRequestCount:vC().optional(),pullRequest:pje.nullable().optional(),pullRequestStatus:DC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:yC().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:CC({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:DC([`git`,`github`]).optional(),sessionPath:H().optional()})})),gje=o((()=>{hje()})),_je,vje=o((()=>{_je=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),yje=o((()=>{})),bje=o((()=>{})),xje=o((()=>{})),Sje=o((()=>{RC(),gje(),vje(),yje(),bje(),xje(),CC({heteroPermissionMode:DC(_je).optional(),repos:SC(H()).optional(),sandboxDrive:DC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:yC().optional(),sandboxTemporary:yC().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:mje.optional()})})),Cje,wje=o((()=>{RC(),Cje=CC({allowDM:yC().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:SC(H()).optional(),personal:yC().optional(),revealDM:yC().optional(),systemPrompt:H().optional()}),CC({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:Cje.nullish(),content:H().nullish(),description:H().nullish(),editorData:EC(H(),bC()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:yC().nullish(),title:H().nullish(),visibility:DC([`private`,`public`]).optional()})})),Tje,Eje,Dje,Oje=o((()=>{RC(),Tje=DC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),Eje=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),Dje=KDe({allowedEnvVars:SC(H().regex(/^[A-Z_]\w*$/i)).optional(),body:EC(H(),xC()).optional(),delivery:DC([`fetch`,`qstash`]).optional(),eventFields:SC(H()).optional(),fallback:DC([`fetch`,`none`]).optional(),headers:EC(H(),H()).optional(),onError:DC([`continue`,`block`]).optional(),responseHandling:DC([`ignore`,`toolCall`]).optional(),timeout:vC().positive().max(2147483.647).optional(),url:H().min(1).refine(e=>{if(e.includes(`\\`))return!1;if(e.startsWith(`/`)&&!e.startsWith(`//`))return!0;try{let t=new URL(e);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},`Webhook URL must be HTTP(S) or an application-relative path without credentials`)}).superRefine((e,t)=>{let n=e.responseHandling===`toolCall`;n&&e.delivery===`qstash`&&t.addIssue({code:`custom`,message:`toolCall response handling requires fetch delivery`}),!n&&e.onError===`block`&&t.addIssue({code:`custom`,message:`onError:block requires toolCall response handling`}),n&&(e.eventFields!==void 0||e.body!==void 0)&&t.addIssue({code:`custom`,message:`Control hooks cannot filter or override the event payload`})}),KDe({id:H(),matcher:Eje.optional(),type:Tje,webhook:Dje}).superRefine((e,t)=>{e.matcher!==void 0&&![`beforeToolCall`,`afterToolCall`,`onToolCallError`].includes(e.type)&&t.addIssue({code:`custom`,message:`Matchers are only supported for tool events`}),e.webhook.responseHandling===`toolCall`&&![`beforeToolCall`,`afterToolCall`].includes(e.type)&&t.addIssue({code:`custom`,message:`toolCall response handling requires beforeToolCall or afterToolCall`})})})),kje=o((()=>{RC(),TC(`decision`,[CC({decision:kC(`allow`)}),CC({decision:kC(`deny`),reason:H().optional()})])})),Aje=o((()=>{})),jje,Mje=o((()=>{jje=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(jje)})),Nje=o((()=>{})),Pje=o((()=>{})),Fje,Ije,Lje,Rje=o((()=>{Fje={messages:`msg`,threads:`thd`,topics:`tpc`},Ije=`[0-9a-zA-Z]{8,32}`,Lje=e=>RegExp(`^${Fje[e]}_${Ije}$`)})),zje,Bje,Vje,Hje=o((()=>{RC(),zje=CC({attribution:DC([`user`,`provider`,`harness`,`system`]).optional(),body:bC().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:yC().optional(),httpStatus:vC().optional(),isFallback:yC().optional(),message:H().optional(),numericId:vC().optional(),retryable:yC().optional(),severity:DC([`info`,`warning`,`error`,`critical`]).optional(),type:wC([H(),vC()])}),Bje=CC({content:SC(EC(H(),xC())).optional(),encrypted_content:H().nullish(),id:H(),status:DC([`in_progress`,`completed`,`incomplete`]).optional(),summary:SC(CC({text:H(),type:kC(`summary_text`)})),type:kC(`reasoning`)}).passthrough(),Vje=CC({content:H().optional(),duration:vC().optional(),isMultimodal:yC().optional(),responseItems:SC(Bje).optional(),signature:H().optional()})})),Uje,Wje=o((()=>{Uje=function(e){return e.AgentMeta=`agent_meta`,e.AgentShare=`agent_share`,e.AgentSignal=`agent_signal`,e.Api=`api`,e.Asr=`asr`,e.Bot=`bot`,e.BuilderSuggestion=`builder_suggestion`,e.Chat=`chat`,e.Cli=`cli`,e.ContextCompression=`context_compression`,e.Cron=`cron`,e.Eval=`eval`,e.Expertise=`expertise`,e.FileEmbedding=`file_embedding`,e.FollowUp=`follow_up`,e.GenerationTopicTitle=`generation_topic_title`,e.Goal=`goal`,e.HistorySummary=`history_summary`,e.Image=`image`,e.Inbox=`inbox`,e.InputCompletion=`input_completion`,e.McpEvent=`mcp_event`,e.Memory=`memory`,e.MultimodalAnalysis=`multimodal_analysis`,e.Music=`music`,e.Notify=`notify`,e.Onboarding=`onboarding`,e.Openapi=`openapi`,e.PromptRewrite=`prompt_rewrite`,e.ProviderCheck=`provider_check`,e.Scheduled=`scheduled`,e.Scm=`scm`,e.SemanticSearch=`semantic_search`,e.SignupEmailLLMReview=`signup_email_llm_review`,e.Task=`task`,e.TaskCallback=`task_callback`,e.ThreadTitle=`thread_title`,e.Topic=`topic`,e.TopicAnalysis=`topic_analysis`,e.TopicSummary=`topic_summary`,e.TopicTitle=`topic_title`,e.Translate=`translate`,e.Tts=`tts`,e.Verify=`verify`,e.Video=`video`,e.Webhook=`webhook`,e}({})})),XC,Gje,Kje=o((()=>{RC(),XC=vC().catch(0),Gje=CC({bySource:CC({content:XC,fileContext:XC,reasoning:XC,thoughtSignature:XC,toolCallId:XC,toolCalls:XC,toolDefinition:XC}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:kC(`tokenx`).catch(`tokenx`),messageCount:XC,system:XC,total:XC})})),qje,Jje,ZC,Yje,Xje,Zje,Qje,$je,eMe,tMe=o((()=>{RC(),qje=DC([`markdown`,`text`,`xml`]),Jje=CC({endLine:vC().optional(),startLine:vC()}),ZC=CC({content:H(),format:qje.optional(),id:H(),lineRange:Jje.optional(),preview:H().optional(),title:H().optional()}),Yje=ZC.extend({anchor:CC({endNodeId:H(),endOffset:vC(),startNodeId:H(),startOffset:vC()}).optional(),pageId:H(),source:kC(`page`),xml:H().optional()}),Xje=ZC.extend({filePath:H(),language:H().optional(),side:DC([`additions`,`context`,`deletions`]).optional(),source:kC(`code`),workingDirectory:H().optional()}),Zje=ZC.extend({source:kC(`text`)}),Qje=ZC.extend({element:CC({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:kC(`element`)}),$je=ZC.extend({identifier:H(),source:kC(`mcpApp`)}),eMe=TC(`source`,[Yje,Xje,Zje,Qje,$je])})),nMe,rMe=o((()=>{RC(),tMe(),nMe=ZC.omit({lineRange:!0}).extend({anchor:CC({endNodeId:H(),endOffset:vC(),startNodeId:H(),startOffset:vC()}).optional(),startLine:vC().optional(),endLine:vC().optional(),pageId:H(),xml:H().optional()})})),iMe,aMe,QC,oMe,sMe,cMe,lMe,uMe,dMe,fMe,pMe,mMe,hMe,gMe,_Me,$C,vMe,yMe=o((()=>{RC(),Wje(),Kje(),tMe(),rMe(),iMe=wC([CC({action:DC([`create`,`update`,`delete`]),changeType:DC([`created`,`updated`]).optional(),targets:SC(CC({taskId:H().optional(),taskIdentifier:H().optional()})),type:kC(`task`)}),CC({args:EC(H(),xC()).optional(),data:xC(),provider:H(),toolName:H(),type:kC(`skill`)}),CC({action:kC(`register`),document:CC({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:DC([`created`,`updated`]),toolName:H()}),type:kC(`document`)}),CC({action:kC(`delete`),document:CC({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:kC(`document`)}),CC({action:kC(`register`),canvas:CC({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:CC({entry:H(),fileCount:vC(),manifestKey:H(),runtimeMajor:vC(),totalSize:vC()})}),type:kC(`canvas`)})]),aMe=CC({apiName:DC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:EC(H(),xC()),capturedAt:H(),content:H().nullable(),error:xC().optional(),identifier:kC(`lobe-local-system`),result:xC().optional(),snapshotId:H(),state:xC().optional(),success:yC(),toolCallId:H()}),QC=CC({inputCachedTokens:vC().optional(),inputCacheMissTokens:vC().optional(),inputWriteCacheTokens:vC().optional(),inputCachedTextTokens:vC().optional(),inputCachedImageTokens:vC().optional(),inputCachedAudioTokens:vC().optional(),inputCachedVideoTokens:vC().optional(),inputTextTokens:vC().optional(),inputImageTokens:vC().optional(),inputAudioTokens:vC().optional(),inputVideoTokens:vC().optional(),inputCitationTokens:vC().optional(),inputToolTokens:vC().optional(),inputCharacters:vC().optional(),outputTextTokens:vC().optional(),outputImageTokens:vC().optional(),outputAudioTokens:vC().optional(),outputReasoningTokens:vC().optional(),outputVideoTokens:vC().optional(),acceptedPredictionTokens:vC().optional(),rejectedPredictionTokens:vC().optional(),totalInputTokens:vC().optional(),totalOutputTokens:vC().optional(),totalTokens:vC().optional(),cost:vC().optional(),credits:vC().optional()}),oMe=CC({tps:vC().optional(),ttft:vC().optional(),duration:vC().optional(),latency:vC().optional()}),sMe=CC({emoji:H(),count:vC(),users:SC(H())}),cMe=CC({sequence:vC().optional(),sourceToolCallId:H(),sourceToolName:H(),type:DC([`tool-stdout`,`tool-callback`,`task-completion`])}),lMe=CC({identifier:H()}),uMe=CC({agentId:H().optional(),name:H(),status:DC([`completed`,`error`]),threadId:H()}),dMe=CC({identifier:H(),reason:DC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),fMe=CC({rootOperationId:H().min(1),userMessageId:H().optional()}),pMe=CC({kind:DC([`callAgent`]),visibility:kC(`internal`)}),mMe=CC({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:vC().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),hMe=CC({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),gMe=CC({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),_Me=QC.merge(oMe).extend({botSender:gMe.optional(),externalOrigin:hMe.optional(),agentDispatch:pMe.optional(),agentSender:mMe.optional(),collapsed:yC().optional(),contextAccounting:Gje.optional(),contextSelections:SC(eMe).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:vC().int().positive().optional(),inspectExpanded:yC().optional(),isMultimodal:yC().optional(),isSupervisor:yC().optional(),localSystemToolSnapshots:SC(aMe).optional(),mcpAppSource:lMe.optional(),operationId:H().min(1).optional(),orchestrationRole:DC([`supervisor`,`member`]).optional(),pageSelections:SC(nMe).optional(),performance:oMe.optional(),reactions:SC(sMe).optional(),scope:H().optional(),selectedSkillIds:SC(H()).optional(),signal:cMe.optional(),steer:yC().optional(),subAgentCallback:uMe.optional(),subAgentId:H().optional(),taskCallback:dMe.optional(),toolExecutionTimeMs:vC().optional(),toolResultSuccess:yC().optional(),toolResultStop:yC().optional(),toolWorkRegistration:iMe.optional(),trigger:OC(Uje).optional(),verifyOperationId:H().optional(),verifyRound:vC().optional(),work:fMe.optional(),usage:QC.optional()}),$C=_Me.omit({agentSender:!0}),vMe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),bMe,xMe=o((()=>{RC(),yMe(),bMe=_Me.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),CC({editorData:EC(H(),xC()).optional(),metadata:bMe.optional()}),Object.keys(bMe.shape)})),SMe,CMe=o((()=>{RC(),SMe=CC({alt:H(),height:vC().optional(),id:H(),mimeType:H().optional(),ratio:vC().optional(),url:H(),width:vC().optional()})})),wMe=o((()=>{})),TMe,EMe,DMe,OMe=o((()=>{RC(),TMe=CC({batchId:H().optional(),itemIndex:vC().int().nonnegative().optional(),operationId:H().optional(),runtimeType:DC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:yC().optional(),resolutionRequestId:H().optional(),skipped:yC().optional(),stepIndex:vC().int().nonnegative().optional(),status:DC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),EMe=CC({function:CC({arguments:H(),name:H()}),id:H(),type:H()}),DMe=CC({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:TMe.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),kMe=o((()=>{})),AMe=o((()=>{})),ew=o((()=>{Hje(),xMe(),Kje(),tMe(),CMe(),wMe(),yMe(),rMe(),OMe(),kMe(),AMe()})),jMe,MMe=o((()=>{RC(),jMe=CC({id:H(),similarity:vC()}),CC({id:H(),value:CC({fileChunks:SC(jMe),ragQueryId:H().optional()})})})),NMe,PMe,FMe=o((()=>{RC(),Hje(),OMe(),MMe(),ew(),rMe(),NMe=DC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),PMe=CC({apiName:H(),arguments:H(),identifier:H(),type:H()}),CC({role:NMe,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:PMe.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:SC(H()).optional(),error:zje.nullish(),traceId:H().optional(),fileChunks:SC(jMe).optional()}).passthrough(),CC({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:TMe.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:bC().optional(),error:bC().optional(),clientId:H().optional(),userId:H().optional()})})),IMe,LMe=o((()=>{RC(),IMe=CC({action:DC([`create`,`update`,`delete`]),agentEditable:yC().optional(),resourceType:DC([`document`,`task`])})})),tw,RMe,zMe,BMe,VMe,HMe,UMe=o((()=>{RC(),tw=DC([`never`,`required`,`always`]),RMe=wC([H(),CC({pattern:H(),type:DC([`exact`,`prefix`,`wildcard`,`regex`])})]),zMe=CC({match:EC(H(),RMe).optional(),policy:tw}),BMe=wC([tw,SC(zMe)]),CC({action:DC([`approve`,`reject`,`select`]),data:CC({remember:yC().optional(),selected:wC([H(),SC(H())]).optional()}).optional()}),CC({allowList:SC(H()).optional(),approvalMode:DC([`auto-run`,`allow-list`,`manual`,`headless`])}),VMe=CC({description:H(),match:EC(H(),RMe),policy:tw.optional()}),HMe=SC(VMe),CC({config:BMe.optional(),confirmedHistory:SC(H()).optional(),securityBlacklist:HMe.optional(),toolArgs:EC(H(),bC()).optional(),toolKey:H().optional()})})),WMe=o((()=>{})),nw,GMe,KMe,qMe,rw,JMe,YMe=o((()=>{RC(),LMe(),UMe(),WMe(),LMe(),nw=CC({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:SC(H()).optional(),title:H()}),GMe=DC([`collapsed`,`expand`,`alwaysExpand`]),KMe=CC({default:tw.optional(),policy:tw.optional(),type:H()}),qMe=wC([BMe,CC({dynamic:KMe})]),rw=CC({defaultTimeoutMs:vC().int().positive().optional(),description:H(),humanIntervention:qMe.optional(),name:H(),ordered:yC().optional(),parameters:EC(H(),bC()),renderDisplayControl:GMe.optional(),serializeBy:H().optional(),url:H().optional(),work:IMe.optional()}),JMe=CC({api:SC(rw),deviceClients:SC(DC([`cli`,`desktop`])).optional(),executors:SC(DC([`client`,`server`])).optional(),humanIntervention:qMe.optional(),identifier:H(),meta:nw,systemRole:H(),type:kC(`builtin`).optional()}),CC({discoverable:yC().optional(),hidden:yC().optional(),identifier:H(),manifest:JMe,type:kC(`builtin`)})})),XMe=o((()=>{})),ZMe=o((()=>{})),QMe,$Me=o((()=>{RC(),YMe(),QMe=CC({properties:EC(H(),bC()),required:SC(H()).optional(),type:kC(`object`)}),CC({$schema:H().optional(),api:SC(rw),connector:CC({id:H(),identifier:H()}).optional(),connectorLinks:CC({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:SC(CC({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:SC(rw).optional(),mcpModelOnlyTools:SC(H()).optional(),meta:nw,openapi:H().optional(),settings:QMe.optional(),systemRole:H().optional(),type:DC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:CC({height:vC().optional(),mode:DC([`iframe`,`module`]).optional(),url:H(),width:vC().optional()}).optional(),version:H().optional()})})),eNe=o((()=>{})),tNe=o((()=>{})),nNe,rNe=o((()=>{RC(),nNe=CC({description:H().optional(),name:H(),parameters:CC({additionalProperties:yC().optional(),properties:EC(H(),bC()),required:SC(H()).optional(),type:kC(`object`)})})})),iNe=o((()=>{YMe(),XMe(),ZMe(),UMe(),$Me(),eNe(),tNe(),rNe()})),iw,aNe,oNe,aw,sNe,ow,cNe,sw,cw,lw,lNe,uNe,dNe,uw,fNe,pNe,mNe,hNe,dw,gNe,_Ne=o((()=>{RC(),iw=1e6,aNe=2e3,oNe=2e3,aw=12e3,sNe=CC({kind:kC(`writing`)}).strict(),ow=CC({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:yC()}).strict(),cNe=CC({errors:SC(ow).max(16),evidenceCount:vC().int().nonnegative().max(iw),failedCount:vC().int().nonnegative().max(iw),succeededCount:vC().int().nonnegative().max(iw)}).strict(),cNe.omit({errors:!0}).strip(),sw=e=>H().trim().min(1).max(e),cw=sw(256),lw=sw(aNe),lNe=CC({content:sw(aw),reasoning:lw,tagline:cw}).strict(),uNe=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||!(`salience`in e))return e;let{salience:t,...n}=e;return{...n,rank:n.rank??t}},dNe=jC(uNe,CC({description:lw,rank:vC().int().min(0).max(100),title:cw}).strict()),uw=e=>SC(dNe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),fNe=CC({composition:CC({identities:uw(6),interests:uw(8),lifeStyle:uw(6),social:uw(6),working:uw(6)}).strict(),personaProposal:lNe,profile:CC({domains:SC(cw).max(8),description:lw,name:cw,pronoun:cw,roles:SC(cw).max(8),summary:lw,tagline:cw}).strict()}).strict(),CC({analysis:fNe,detailedPersona:lNe.optional(),diagnostics:cNe,feedbackRevision:vC().int().nonnegative().max(iw).default(0),generationRevision:vC().int().nonnegative().max(iw).default(0),kind:kC(`proposal`),providers:SC(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),pNe=CC({content:H().trim().min(1).max(oNe),createdAt:H(),revision:vC().int().positive().max(iw)}).strict(),mNe=CC({revision:vC().int().nonnegative().max(iw),turns:SC(pNe).max(16)}).strict(),hNe=CC({completedAt:H().optional(),errors:SC(ow).max(16),failedCount:vC().int().nonnegative().max(iw),revision:vC().int().nonnegative().max(iw),status:DC([`pending`,`running`,`completed`,`failed`]),succeededCount:vC().int().nonnegative().max(iw)}).strict(),dw={detailed:TC(`status`,[CC({status:kC(`running`),updatedAt:H()}).strict(),CC({status:kC(`completed`),updatedAt:H()}).strict(),CC({error:ow,status:kC(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:vC().int().nonnegative().max(iw).default(0),generationRevision:vC().int().nonnegative().max(iw).default(0),sourceFingerprint:H(),updatedAt:H()},gNe=TC(`status`,[CC({...dw,resultMessageId:H().optional(),status:kC(`running`)}).strict(),CC({...dw,resultMessageId:H(),status:kC(`completed`)}).strict(),CC({...dw,error:ow,resultMessageId:H().optional(),status:kC(`failed`)}).strict()]),CC({confirmedAt:H().optional(),feedback:mNe.default({revision:0,turns:[]}),generationRevision:vC().int().nonnegative().max(iw).default(0),id:H(),sources:EC(H().max(64),hNe),writing:gNe.optional()}).strict()})),fw,vNe,yNe=o((()=>{RC(),_Ne(),fw={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},vNe=CC({clientMode:yC().optional(),completedAt:H().optional(),duration:vC().optional(),error:bC().optional(),model:H().optional(),onboardingUnderstanding:sNe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:vC().optional(),totalLlmCalls:vC().optional(),totalMessages:vC().optional(),totalTokens:vC().optional(),totalSteps:vC().optional(),totalToolCalls:vC().optional()}),CC({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:vNe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:DC([fw.Continuation,fw.Eval,fw.Standalone,fw.Isolation])})})),bNe,xNe,pw,SNe,mw,CNe,wNe=o((()=>{RC(),Rje(),ew(),FMe(),iNe(),yNe(),bNe=CC({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:DC([fw.Continuation,fw.Standalone,fw.Isolation])}),xNe=CC({content:H(),metadata:$C.optional(),plugin:CC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:DC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:SC(DMe).optional()}),pw=e=>H().regex(Lje(e)).optional(),CC({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:CC({agentId:H().optional(),id:pw(`messages`),metadata:EC(H(),xC()).optional().transform(vMe),model:H().optional(),provider:H().optional()}),newThread:bNe.optional(),newTopic:CC({id:pw(`topics`),metadata:AC().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:SC(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:SC(xNe).optional(),newUserMessage:CC({content:H(),contextSelections:SC(eMe).optional(),editorData:EC(H(),xC()).optional(),files:SC(H()).optional(),id:pw(`messages`),metadata:$C.optional(),pageSelections:SC(nMe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:CC({excludeStatuses:SC(H()).optional(),excludeTriggers:SC(H()).optional(),includeTriggers:SC(H()).optional(),onlyMine:yC().optional()}).optional(),topicPageSize:vC().int().min(1).max(100).optional(),topicId:H().optional()}),SNe=CC({description:H().optional(),name:H(),schema:CC({$defs:bC().optional(),additionalProperties:yC().optional(),properties:EC(H(),bC()),required:SC(H()).optional(),type:kC(`object`)}),strict:yC().optional()}),CC({metadata:EC(H(),xC()).optional(),messages:SC(bC()),model:H(),provider:H(),schema:SNe.optional(),tools:SC(CC({function:nNe,type:kC(`function`)})).optional(),tracing:CC({tracingId:H().uuid().optional()}).catchall(xC()).optional()}),mw=wC([H(),SC(xC()),EC(H(),xC())]),CNe=TC(`type`,[CC({criteria:CC({false:mw,true:mw}).optional(),instructions:mw,type:kC(`boolean`)}),CC({criteria:EC(H(),mw.nullable()),instructions:mw,type:kC(`choice`)}),CC({criteria:SC(mw).min(1),instructions:mw,type:kC(`score`)})]),CC({metadata:EC(H(),xC()).optional(),model:H(),provider:H(),questions:EC(H(),CNe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:mw,tracing:CC({tracingId:H().uuid().optional()}).catchall(xC()).optional()})})),TNe=o((()=>{RC()})),ENe=o((()=>{})),DNe=o((()=>{})),ONe=o((()=>{})),kNe=o((()=>{})),ANe=o((()=>{})),jNe,MNe=o((()=>{_ke(),jNe=gke.map(({type:e})=>e),[...hke.options,...jNe]})),NNe=o((()=>{})),PNe=o((()=>{NNe()})),FNe=o((()=>{})),INe=o((()=>{})),LNe=o((()=>{})),RNe=o((()=>{})),zNe=o((()=>{})),BNe=o((()=>{})),VNe=o((()=>{})),HNe=o((()=>{})),UNe=o((()=>{RC(),CC({connected:yC(),cpuCount:vC().int().min(1).max(4096),cpuPercent:vC().min(0).max(100).nullable(),diskTotalBytes:vC().int().min(0).nullish(),diskUsedBytes:vC().int().min(0).nullish(),load1:vC().min(0).nullable(),load5:vC().min(0).nullable(),load15:vC().min(0).nullable(),memoryTotalBytes:vC().int().min(0),memoryUsedBytes:vC().int().min(0),observedAt:vC().int().min(0)})})),WNe=o((()=>{})),GNe=o((()=>{})),KNe=o((()=>{})),qNe=o((()=>{})),JNe=o((()=>{})),YNe=o((()=>{})),XNe=o((()=>{})),ZNe=o((()=>{})),QNe=o((()=>{WNe(),GNe(),KNe(),qNe(),JNe(),YNe(),XNe(),ZNe()})),$Ne=o((()=>{RC(),CC({shareId:H(),topicId:H(),visitorUserId:H()})})),ePe=o((()=>{})),tPe=o((()=>{})),nPe=o((()=>{$Ne(),ePe(),tPe()})),rPe=o((()=>{})),iPe=o((()=>{})),aPe=o((()=>{})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe=o((()=>{})),dPe=o((()=>{})),fPe=o((()=>{RC(),CC({ideal:H().optional(),question:H(),referenceFiles:H().or(SC(H())).optional()}),CC({description:H().optional(),knowledgeBaseId:H(),name:H()})})),pPe=o((()=>{})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{RC(),CC({ideal:H().optional(),question:H(),referenceFiles:H().or(SC(H())).optional()}),CC({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),_Pe=o((()=>{})),vPe=o((()=>{})),yPe=o((()=>{})),bPe,xPe=o((()=>{RC(),YMe(),bPe=CC({api:SC(rw.pick({name:!0,description:!0,parameters:!0}).strict().refine(e=>!e.name.includes(`____`),`Tool names cannot contain the routing separator`)).min(1),identifier:H().min(1).max(255).refine(e=>!e.includes(`____`),`Tool identifiers cannot contain the routing separator`),meta:nw,systemRole:H().optional(),type:DC([`builtin`,`default`,`markdown`,`mcp`,`standalone`]).optional()}).strict().refine(e=>new Set(e.api.map(e=>e.name)).size===e.api.length,`Tool names must be unique within a contract`),EC(H().min(1).max(255),bPe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),SPe=o((()=>{oPe(),sPe(),cPe(),lPe(),uPe(),dPe(),fPe(),pPe(),mPe(),hPe(),gPe(),_Pe(),vPe(),yPe(),xPe()})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{})),hw,EPe,DPe=o((()=>{hw={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,AgentShareProviderNotSupported:`AgentShareProviderNotSupported`,SupervisorDecisionFailed:`SupervisorDecisionFailed`,AgentConcurrencyLimitExceeded:`AgentConcurrencyLimitExceeded`,InsufficientBudgetForAgentRunFee:`InsufficientBudgetForAgentRunFee`,InvalidUserKey:`InvalidUserKey`,CreateMessageError:`CreateMessageError`,LobeHubModelDeprecated:`LobeHubModelDeprecated`,NoOpenAIAPIKey:`NoOpenAIAPIKey`,OllamaServiceUnavailable:`OllamaServiceUnavailable`,PluginFailToTransformArguments:`PluginFailToTransformArguments`,UnknownChatFetchError:`UnknownChatFetchError`,SystemTimeNotMatchError:`SystemTimeNotMatchError`,ServerAgentRuntimeError:`ServerAgentRuntimeError`,DeviceGatewayNotConfigured:`DeviceGatewayNotConfigured`,DeviceResponseTimeout:`DeviceResponseTimeout`,RemoteServerOffline:`RemoteServerOffline`,RemoteServerTimeout:`RemoteServerTimeout`,RemoteServerDNSFailed:`RemoteServerDNSFailed`,RemoteServerConnectionRefused:`RemoteServerConnectionRefused`,RemoteServerCertInvalid:`RemoteServerCertInvalid`,RemoteServerUnreachable:`RemoteServerUnreachable`,BadRequest:400,Unauthorized:401,Forbidden:403,ContentNotFound:404,MethodNotAllowed:405,TooManyRequests:429,InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504},EPe=[hw.RemoteServerOffline,hw.RemoteServerTimeout,hw.RemoteServerDNSFailed,hw.RemoteServerConnectionRefused,hw.RemoteServerCertInvalid,hw.RemoteServerUnreachable],new Set(EPe)})),OPe,kPe,APe=o((()=>{RC(),OPe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),kPe=100,CC({category:H().optional(),filesOnly:yC().optional(),includeContentPreview:yC().optional(),knowledgeBaseId:H().optional(),limit:vC().int().positive().max(kPe).default(50),offset:vC().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:yC().default(!1),sortType:DC([`desc`,`asc`]).optional(),sorter:DC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:OC(OPe).optional(),visibility:DC([`private`,`public`]).optional()})})),jPe,MPe=o((()=>{RC(),jPe=CC({shareId:H(),visitorUserId:H()}),CC({agentShare:jPe.optional(),date:H(),dirname:H(),filename:H(),height:vC().optional(),path:H(),ratio:vC().optional(),width:vC().optional()}),CC({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:bC().optional(),name:H(),size:vC(),source:H().optional(),url:H().optional()})})),NPe,PPe=o((()=>{APe(),MPe(),NPe=function(e){return e.Acceptance=`acceptance`,e.AgentDocument=`agent-document`,e.Artboard=`artboard`,e.Canvas=`canvas`,e.ChatAttachment=`chat-attachment`,e.ImageGeneration=`image_generation`,e.Meeting=`meeting`,e.MusicGeneration=`music_generation`,e.PageEditor=`page-editor`,e.Skill=`skill`,e.ToolResult=`tool-result`,e.VideoGeneration=`video_generation`,e}({}),new Set(Object.values(NPe))})),FPe=o((()=>{})),IPe,LPe,RPe,zPe,gw,BPe,VPe,HPe,UPe,WPe=o((()=>{RC(),IPe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],LPe=[`agentEmoji`,`agentName`,`fullName`],RPe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],zPe=[`agent_identity`,`user_identity`,`discovery`,`summary`],gw=H().trim().transform(e=>e.length>0?e:void 0).optional(),BPe=SC(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),DC(IPe),VPe=DC(LPe),HPe=DC(RPe),CC({agentEmoji:gw,agentName:gw,customInterests:BPe,fullName:gw,interests:BPe}).strict(),UPe=DC(zPe),CC({discoveryUserMessageCount:vC().optional(),finished:yC(),missingStructuredFields:SC(VPe),phase:UPe,remainingDiscoveryExchanges:vC().optional(),topicId:H().optional(),version:vC()}).strict(),CC({activeTopicId:H().optional(),discoveryStartUserMessageCount:vC().optional(),finishedAt:H().optional(),version:vC()}).strict(),CC({node:HPe,patch:CC({}).passthrough()}).strict()})),GPe,KPe,qPe=o((()=>{RC(),WPe(),GPe=wC([CC({kind:kC(`onboarding`),phase:UPe}),CC({kind:kC(`chat`)})]),KPe=CC({model:H().min(1),provider:H().min(1)}),CC({hint:GPe.optional(),modelConfig:KPe,threadId:H().optional(),topicId:H().min(1)})})),JPe=o((()=>{})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe=o((()=>{})),_w,QPe,$Pe,eFe,tFe,nFe,rFe,iFe,aFe,oFe=o((()=>{RC(),_w=SC(H().trim().min(1)).max(200),QPe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),$Pe=jC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||QPe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),eFe=[`dead_end`,`superseded`,`retry`],tFe=2e3,nFe=CC({kind:DC(eFe),lesson:H().trim().min(1).max(tFe),nodeIds:_w.min(1),reason:H().trim().min(1).max(tFe),title:H().trim().min(1).max(200)}).strict(),rFe=CC({detours:SC(nFe).max(20).default([]),findingIds:_w.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:_w.default([]),title:H().trim().min(1).max(200),workVersionIds:_w.default([])}).strict(),iFe=CC({nodeIds:_w.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),aFe=CC({edgeIds:_w.default([]),nodeIds:_w.min(1)}).strict(),CC({chapters:SC(rFe).min(1).max(30),deliverableWorkId:$Pe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:aFe.optional(),nextSteps:SC(iFe).max(20).default([])}).strict()})),sFe=o((()=>{})),cFe=o((()=>{})),lFe=o((()=>{})),uFe=o((()=>{})),dFe,fFe,pFe,mFe=o((()=>{RC(),dFe=CC({apiName:H(),arguments:H(),id:H(),identifier:H(),type:kC(`default`)}),fFe=CC({clientId:H(),content:H(),createdAt:H().optional(),metadata:EC(H(),bC()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:CC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:EC(H(),bC()).optional(),provider:H().optional(),reasoning:CC({content:H()}).passthrough().optional(),role:DC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:SC(dFe).optional(),usage:EC(H(),bC()).optional()}),pFe=CC({clientId:H(),messages:SC(fFe),sourceMessageClientId:H().optional(),status:DC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:DC([`continuation`,`standalone`,`isolation`])}),CC({messages:SC(fFe),metadata:EC(H(),bC()).optional(),sessionId:H(),source:DC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:SC(pFe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),hFe=o((()=>{})),gFe=o((()=>{})),_Fe=o((()=>{})),vFe=o((()=>{})),yFe,bFe=o((()=>{yFe=[`triage`,`backlog`,`unstarted`,`started`],[...yFe]})),xFe=o((()=>{})),SFe=o((()=>{})),CFe=o((()=>{})),wFe=o((()=>{})),TFe,EFe,DFe=o((()=>{RC(),TFe=CC({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),EFe=CC({citations:SC(CC({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:SC(TFe).optional(),imageSearchQueries:SC(H()).optional(),searchQueries:SC(H()).optional()})})),OFe=o((()=>{RC(),DFe(),ew(),CC({content:H().optional(),editorData:EC(H(),bC()).nullish(),error:zje.nullish(),imageList:SC(SMe).optional(),metadata:$C.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:Vje.optional(),role:H().optional(),search:EFe.nullish(),toolCalls:SC(EMe).optional(),tools:SC(DMe).nullish(),traceId:H().optional(),usage:QC.optional()}).passthrough()})),kFe=o((()=>{wFe(),OFe()})),AFe=o((()=>{})),jFe=o((()=>{})),MFe=o((()=>{})),NFe=o((()=>{})),PFe=o((()=>{AFe(),jFe(),MFe(),FMe(),MMe(),NFe()})),FFe=o((()=>{ew(),kFe(),PFe()})),IFe=o((()=>{RC(),CC({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:SC(H()).optional(),title:H().optional()})})),LFe=o((()=>{})),RFe=o((()=>{})),zFe,BFe=o((()=>{RC(),zFe=CC({accessToken:H().optional(),token:H().optional(),type:DC([`none`,`bearer`,`oauth2`])}).optional(),CC({auth:zFe,headers:EC(H(),H()).optional(),identifier:H(),metadata:CC({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),VFe=o((()=>{})),HFe=o((()=>{BFe(),VFe()})),UFe=o((()=>{})),WFe=o((()=>{RC(),CC({fileIds:SC(H()).optional(),knowledgeIds:SC(H()).optional(),query:H(),topK:vC().optional()})})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{})),JFe=o((()=>{})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe,$Fe=o((()=>{QFe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),eIe=o((()=>{ZFe(),$Fe()})),tIe,nIe,rIe=o((()=>{tIe=`NO_REPLY`,nIe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${tIe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(nIe)})),iIe,aIe=o((()=>{RC(),iIe=CC({name:H(),url:H().url().optional()}),CC({author:wC([H(),iIe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:SC(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),oIe=o((()=>{})),sIe=o((()=>{})),cIe=o((()=>{})),lIe,uIe=o((()=>{lIe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],lIe[0]})),vw,dIe=o((()=>{vw=1440*60*1e3,30*vw,90*vw,7*vw})),fIe=o((()=>{sIe(),cIe(),uIe(),dIe()})),pIe=o((()=>{})),yw,mIe,hIe,gIe,_Ie,vIe,yIe,bIe=o((()=>{RC(),yw=DC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),CC({serverDefaultHeterogeneousProfiles:SC(H().min(1)).optional()}).passthrough(),mIe=CC({audio:yC().optional(),functionCall:yC().optional(),imageOutput:yC().optional(),reasoning:yC().optional(),search:yC().optional(),video:yC().optional(),vision:yC().optional()}),hIe=CC({codexMaxReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:DC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:DC([`none`,`high`,`max`]).optional(),effort:DC([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:DC([`high`,`max`]).optional(),glm5_3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:DC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:DC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:DC([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:DC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:DC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:DC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:DC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:DC([`low`,`high`,`max`]).optional(),opus47Effort:DC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:DC([`low`,`medium`,`high`]).optional(),reasoningMode:DC([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:DC([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:DC([`low`,`high`]).optional(),thinkingLevel:DC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:DC([`low`,`high`]).optional(),thinkingLevel3:DC([`low`,`medium`,`high`]).optional(),thinkingLevel4:DC([`minimal`,`high`]).optional(),thinkingLevel5:DC([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(hIe.shape),gIe=DC(`reasoningBudgetToken.reasoningBudgetToken32k.reasoningBudgetToken80k.enableReasoning.preserveThinking.enableAdaptiveThinking.disableContextCaching.effort.deepseekV4GAReasoningEffort.deepseekV4ReasoningEffort.qwen38ReasoningEffort.reasoningEffort.reasoningMode.gpt5ReasoningEffort.gpt5_1ReasoningEffort.gpt5_2ReasoningEffort.gpt5_2ProReasoningEffort.gpt5_6ReasoningEffort.gpt6ReasoningEffort.glm5_2ReasoningEffort.glm5_3ReasoningEffort.grok4_20ReasoningEffort.grok4_3ReasoningEffort.grok4_5ReasoningEffort.grok4_6ReasoningEffort.grok4_7ReasoningEffort.hy3ReasoningEffort.kimiK3ReasoningEffort.ring2_6ReasoningEffort.codexMaxReasoningEffort.opus47Effort.step3_5ReasoningEffort.textVerbosity.thinking.thinkingBudget.thinkingLevel.thinkingLevel2.thinkingLevel3.thinkingLevel4.thinkingLevel5.imageAspectRatio.imageAspectRatio2.imageResolution.imageResolution2.urlContext`.split(`.`)),_Ie=DC([`tool`,`params`,`internal`]),vIe=DC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),yIe=CC({disabledParams:SC(vIe).optional(),extendParams:SC(gIe).optional(),searchImpl:_Ie.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),CC({abilities:mIe.optional(),contextWindowTokens:vC().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:yIe.optional(),type:yw.optional()}),CC({abilities:mIe.optional(),config:CC({deploymentName:H().optional()}).optional(),contextWindowTokens:vC().nullish(),displayName:H().nullish(),settings:yIe.optional(),type:yw.optional()}),CC({enabled:yC(),id:H(),providerId:H(),source:DC([`builtin`,`custom`,`remote`]).optional(),type:yw.optional()})})),xIe,bw,SIe,CIe,wIe,TIe,EIe,DIe,OIe=o((()=>{bIe(),RC(),gje(),vje(),xIe=CC({claimedAt:H(),expiresAt:H(),id:H()}),bw=CC({claim:xIe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),SIe=bw.extend({failedAssistantMessageId:H(),kind:kC(`resume_after_rate_limit`),rateLimit:CC({rateLimitType:H().optional(),resetsAt:vC().optional()}).optional(),resume:CC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:kC(`heterogeneous_agent`),userMessageId:H()}),CIe=bw.extend({kind:kC(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),CC({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:DC([`git`,`github`]),sourcePath:H().min(1).max(4096)}),wIe=bw.extend({error:H().optional(),kind:kC(`worktree_start`),operationId:H(),retryable:yC().optional(),userMessageId:H(),waitingForDevice:yC().optional()}),TIe=TC(`kind`,[SIe,CIe,wIe]),CC({claim:xIe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:UDe().optional(),rateLimit:CC({rateLimitType:H().optional(),resetsAt:vC().optional()}).optional(),reason:kC(`rate_limit`),resume:CC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:kC(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),EIe=CC({boundDeviceId:H().optional(),heteroEffort:AC(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:EC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:EC(H(),H()).optional(),heteroPermissionMode:DC(_je).optional(),heteroPermissionModeFallback:DC([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:DC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:CC({comment:H().max(500).optional(),rating:DC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:CC({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:CC({categoryHints:SC(H()),installedAgentIds:SC(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:SC(H()).optional(),skipReason:H().optional(),skippedAgentIds:SC(H()).optional(),status:DC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:SC(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:DC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:vC().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:hIe.optional(),repos:SC(H()).optional(),runningOperation:WDe().optional(),taskCallbackReservation:CC({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:DC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:TIe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:mje.optional()}),EIe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),DIe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],DC(DIe)})),kIe=o((()=>{pIe(),yNe(),OIe()})),AIe=o((()=>{})),jIe=o((()=>{})),MIe=o((()=>{RC(),CC({currentStep:vC().min(1).max(7).optional(),finishedAt:H().optional(),version:vC()})})),NIe=o((()=>{})),PIe,FIe,IIe=o((()=>{RC(),PIe=CC({checked:yC(),id:H().min(1).max(128),instruction:H().trim().min(1).max(4e3),providerId:H().trim().min(1).max(128),reason:H().trim().min(1).max(1e3),sources:SC(CC({subject:H().trim().min(1).max(500).optional(),title:H().trim().min(1).max(500).optional(),type:H().trim().min(1).max(128),url:H().trim().min(1).max(2048)}).strict()).min(1).max(16),title:H().trim().min(1).max(200)}).strict(),FIe=CC({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:yC()}).strict(),CC({completedAt:H().optional(),createdTaskIds:EC(H().max(128),H().max(512)),errors:SC(FIe).max(16),id:H().min(1).max(512),providerIds:SC(H().min(1).max(128)).max(16),recommendations:SC(PIe).max(48),sourceFingerprint:H().min(1).max(2048),status:DC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),LIe,RIe,zIe,BIe,VIe=o((()=>{RC(),LIe=CC({docsMerged:yC().optional(),moveSettingsToAvatar:yC().optional(),topic:yC().optional(),uploadFileInKnowledgeBase:yC().optional()}),RIe=CC({enableBetterCodingExperience:yC().optional(),enableAgentIdentity:yC().optional(),enableAgentGraphConfig:yC().optional(),enableArtifactDeployment:yC().optional(),enablePageCollab:yC().optional(),enableClaudeCodeSdk:yC().optional(),enableCodexAppServer:yC().optional(),enableDesktopSplitView:yC().optional(),enableHeteroSessionImport:yC().optional(),enableGroupChat:yC().optional(),enableImessage:yC().optional(),enableInputMarkdown:yC().optional(),enableMessageTextSelectionActions:yC().optional(),enableIntegrations:yC().optional(),enableOAuthApps:yC().optional(),enableProjects:yC().optional(),enableSelfLearning:yC().optional(),enableTaskVerify:yC().optional(),enableEvalCapture:yC().optional(),enableTopicBugReport:yC().optional(),enableGoals:yC().optional(),enableTopicAcceptance:yC().optional(),enableDeviceTunnel:yC().optional()}),zIe=CC({acceptOnMerge:yC().optional(),commentOnPrivateRepositories:yC().optional(),commentOnPublicRepositories:yC().optional(),wakeOnCiFailure:yC().optional(),wakeOnReview:yC().optional()}),BIe=CC({github:zIe.optional()}),CC({provider:H(),providerAccountId:H()}),CC({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:LIe.optional(),hideSyncAlert:yC().optional(),integration:BIe.optional(),lab:RIe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:DC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:SC(H()).optional(),sidebarHiddenGroupIds:SC(H()).optional(),terminalFontFamily:H().optional(),telemetry:yC().nullable(),topicGroupMode:DC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:yC().optional(),topicSortBy:DC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:yC().optional(),workspace:CC({order:SC(H()).optional()}).optional()}).partial()})),HIe=o((()=>{})),UIe=o((()=>{})),WIe=o((()=>{})),GIe=o((()=>{})),KIe=o((()=>{})),qIe=o((()=>{})),JIe=o((()=>{})),YIe=o((()=>{})),XIe,xw,ZIe=o((()=>{RC(),XIe=EC(H(),EC(H(),yC())),xw=CC({enabled:yC().optional(),items:XIe.optional()}).strict(),CC({content:CC({scheduledTaskSummary:yC().optional()}).strict().optional(),email:xw.optional(),im:xw.extend({platforms:EC(H(),xw.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:xw.optional(),push:xw.optional()}).strict()})),QIe=o((()=>{})),$Ie=o((()=>{})),eLe=o((()=>{})),tLe=o((()=>{})),nLe=o((()=>{RC(),HIe(),UIe(),WIe(),GIe(),KIe(),qIe(),JIe(),YIe(),ZIe(),QIe(),$Ie(),eLe(),tLe(),CC({defaultAgent:bC().optional(),general:bC().optional(),hotkey:bC().optional(),image:bC().optional(),keyVaults:bC().optional(),languageModel:bC().optional(),market:bC().optional(),memory:bC().optional(),notification:bC().optional(),systemAgent:bC().optional(),tool:bC().optional(),tts:bC().optional()}).passthrough().partial()})),rLe=o((()=>{WPe(),MIe(),NIe(),IIe(),VIe(),nLe()})),iLe=o((()=>{})),aLe=o((()=>{})),oLe=o((()=>{})),sLe=o((()=>{})),cLe,lLe=o((()=>{RC(),cLe=DC([`personal`,`professional`,`demographic`]),CC({description:H().optional(),episodicDate:H().optional(),extractedLabels:SC(H()).optional(),labels:EC(H(),bC()).optional(),relationship:H().optional(),role:H().optional(),type:cLe.optional(),userMemoryId:H().optional()}),CC({description:H().optional(),episodicDate:H().optional(),extractedLabels:SC(H()).optional(),labels:EC(H(),bC()).optional(),relationship:H().optional(),role:H().optional(),type:cLe.optional()})})),uLe,dLe,fLe=o((()=>{uLe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(uLe),dLe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(dLe)})),pLe=o((()=>{})),mLe=o((()=>{})),hLe,gLe,_Le,Sw,vLe,yLe,bLe,xLe=o((()=>{hLe=function(e){return e.Aunt=`aunt`,e.Brother=`brother`,e.Classmate=`classmate`,e.Colleague=`colleague`,e.Couple=`couple`,e.Coworker=`coworker`,e.Daughter=`daughter`,e.Father=`father`,e.Friend=`friend`,e.Granddaughter=`granddaughter`,e.Grandfather=`grandfather`,e.Grandmother=`grandmother`,e.Grandson=`grandson`,e.Husband=`husband`,e.Manager=`manager`,e.Mentee=`mentee`,e.Mentor=`mentor`,e.Mother=`mother`,e.Nephew=`nephew`,e.Niece=`niece`,e.Other=`other`,e.Partner=`partner`,e.Self=`self`,e.Sibling=`sibling`,e.Sister=`sister`,e.Son=`son`,e.Spouse=`spouse`,e.Teammate=`teammate`,e.Uncle=`uncle`,e.Wife=`wife`,e}({}),Object.values(hLe),gLe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(gLe),_Le=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(_Le),Sw=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(Sw),vLe=function(e){return e.Activity=`activity`,e.Context=`context`,e.Event=`event`,e.Fact=`fact`,e.Location=`location`,e.Other=`other`,e.People=`people`,e.Preference=`preference`,e.Technology=`technology`,e.Topic=`topic`,e}({}),Object.values(vLe),yLe=function(e){return e.Aborted=`aborted`,e.Cancelled=`cancelled`,e.Completed=`completed`,e.Ongoing=`ongoing`,e.OnHold=`on_hold`,e.Planned=`planned`,e}({}),Object.values(yLe),bLe=function(e){return e.Appointment=`appointment`,e.Call=`call`,e.Celebration=`celebration`,e.Class=`class`,e.Conference=`conference`,e.Errand=`errand`,e.Event=`event`,e.Exercise=`exercise`,e.Meal=`meal`,e.Meeting=`meeting`,e.Other=`other`,e.ProjectSession=`project-session`,e.Social=`social`,e.Task=`task`,e.Trip=`trip`,e.Workshop=`workshop`,e}({}),Object.values(bLe)})),SLe=o((()=>{})),Cw,CLe,wLe,TLe,ELe,DLe,OLe,kLe,ALe,jLe,MLe,NLe,PLe,FLe=o((()=>{RC(),xLe(),Cw=jC(e=>typeof e==`string`?[e]:e,SC(H().trim().min(1))),CLe=e=>jC(e=>typeof e==`string`?[e]:e,SC(e)),wLe=DC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),TLe=CC({activities:vC().int().min(0).optional(),contexts:vC().int().min(0).optional(),experiences:vC().int().min(0).optional(),identities:vC().int().min(0).optional(),preferences:vC().int().min(0).optional()}),ELe=CC({end:LC().optional(),field:wLe.optional(),start:LC().optional()}),DLe=DC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),OLe=CC({date:LC(),selector:kC(`day`)}),kLe=CC({month:vC().int().min(1).max(12),selector:kC(`month`),year:vC().int().min(1970).max(9999)}),ALe=CC({end:LC().optional(),selector:kC(`range`),start:LC().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),jLe=CC({selector:kC(`year`),year:vC().int().min(1970).max(9999)}),MLe=DC([`today`,`yesterday`]),NLe=iOe(()=>wC([CC({selector:DLe}),OLe,kLe,CC({anchor:wC([MLe,NLe]),offsetDays:vC().int(),selector:kC(`relativeDay`)}),ALe,jLe])),CC({categories:Cw.optional(),effort:DC([`low`,`medium`,`high`]).optional(),labels:Cw.optional(),layers:CLe(OC(Sw)).optional(),queries:Cw.optional(),relationships:Cw.optional(),status:Cw.optional(),tags:Cw.optional(),timeIntent:NLe.optional(),timeRange:ELe.optional(),topK:TLe.optional(),types:Cw.optional()}),PLe=DC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),CC({include:CLe(PLe).optional(),layers:SC(OC(Sw)).optional(),limit:vC().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:ELe.optional()})})),ILe=o((()=>{})),LLe=o((()=>{iLe(),aLe(),oLe(),sLe(),lLe(),fLe(),pLe(),mLe(),xLe(),SLe(),FLe(),ILe()})),RLe=o((()=>{})),zLe=o((()=>{})),BLe=o((()=>{zLe()})),VLe=o((()=>{})),HLe=o((()=>{})),ULe=o((()=>{VLe(),HLe()})),WLe,GLe=o((()=>{WLe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(WLe).flatMap(([e,t])=>t.map(t=>[t,e])))})),KLe=o((()=>{})),qLe=o((()=>{RC(),CC({start:vC().finite().nonnegative()}).strict()})),JLe=o((()=>{RC(),CC({preconditions:SC(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:SC(CC({id:H().min(1),name:H().min(1),description:H().optional(),resource:CC({type:DC([`file`,`document`]),id:H().min(1)}).optional(),data:EC(H(),xC()).optional()})).max(100).optional(),steps:SC(CC({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:SC(H()).optional()})).max(200).optional()}).superRefine((e,t)=>{for(let n of[`fixtures`,`steps`]){let r=(e[n]??[]).map(e=>e.id);new Set(r).size!==r.length&&t.addIssue({code:`custom`,message:`Duplicate ${n} ids`,path:[n]})}let n=new Set(e.fixtures?.map(e=>e.id));e.steps?.some(e=>e.fixtureIds?.some(e=>!n.has(e)))&&t.addIssue({code:`custom`,message:`Unknown fixture reference`,path:[`steps`]})})})),ww,YLe,XLe=o((()=>{RC(),ww=CC({height:vC().finite(),width:vC().finite(),x:vC().finite(),y:vC().finite()}),YLe=CC({commit:H().max(200).optional(),context:EC(H().max(100),wC([H().max(500),vC(),yC()])).optional(),env:CC({consoleErrors:SC(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:DC([`change`,`comment`]),region:ww.optional(),regionRefs:SC(CC({box:ww,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:CC({x:vC().finite(),y:vC().finite()}),targets:SC(CC({code:CC({chain:SC(CC({file:H().max(500).optional(),line:vC().int().optional(),name:H().max(200)})).max(5),column:vC().int(),file:H().max(500),line:vC().int()}).optional(),label:H().max(200),rect:ww,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:kC(1),viewport:CC({dpr:vC().positive(),height:vC().finite(),width:vC().finite()})}),CC({anchor:YLe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:CC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}).optional()}).refine(e=>!(e.parentId&&(e.anchor||e.screenshot)),{message:`A reply cannot carry an anchor or a screenshot`}).refine(e=>!e.anchor||JSON.stringify(e.anchor).length<=32768,{message:`Anchor is too large`}),CC({note:H().trim().max(2e3).optional(),verdict:DC([`accept`,`send_back`])})})),ZLe,Tw,Ew,Dw,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe=o((()=>{RC(),XLe(),ZLe=[`region`,`element`,`sketch`],Tw=vC().finite(),Ew=CC({height:Tw,width:Tw,x:Tw,y:Tw}),Dw=YLe.shape,QLe=iOe(()=>CC({children:SC(QLe).max(50),rect:Ew,type:DC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),$Le=CC({commit:Dw.commit,context:Dw.context,env:Dw.env}),eRe=CC({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),tRe=CC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:$Le.optional(),kind:DC(ZLe),pageMeta:eRe.optional(),rectDocument:Ew,rectViewport:Ew,regionRefs:Dw.regionRefs,regions:SC(Ew).max(6).optional(),routeKey:H().max(500),scroll:CC({x:Tw,y:Tw}),sketch:SC(QLe).max(50).optional(),targets:Dw.targets.optional(),url:H().url().max(2e3),viewport:CC({dpr:vC().positive(),height:Tw,width:Tw})}),nRe=64*1024,rRe=CC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),tRe.extend({screenshot:rRe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=nRe,{message:`Mark is too large`}),CC({content:H().trim().min(1).max(4e3).optional(),rectDocument:Ew.optional(),rectViewport:Ew.optional(),regionRefs:Dw.regionRefs,regions:SC(Ew).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),CC({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),iRe=[`pass`,`not_fixed`],CC({reason:H().trim().max(2e3).optional(),verdict:DC(iRe)}),CC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),oRe,sRe,Ow,cRe,lRe,uRe,kw,Aw,dRe,fRe,pRe=o((()=>{RC(),oRe=[`journey`,`options`,`references`,`other`],sRe=[`html`,`image`,`video`,`decision`],Ow=H(),cRe=vC().finite(),lRe=vC().finite().positive(),CC({hash:H().min(1).nullable(),kind:kC(`file`),path:H().min(1)}),uRe=CC({kind:kC(`file`),path:H().min(1)}),kw=H().min(1).optional(),Aw=H().min(1),dRe={expected:Ow.optional(),groupId:Aw.optional(),h:lRe.optional(),pageId:Aw.optional(),recommended:yC().optional(),roundId:Aw.optional(),source:uRe.optional(),title:Ow,type:DC(sRe).optional(),w:lRe.optional(),x:cRe,y:cRe},fRe={desc:Ow.optional(),kind:DC(oRe),pageId:Aw.optional(),title:Ow},TC(`type`,[CC({page:CC({name:Ow.min(1)}),ref:kw,type:kC(`addPage`)}),CC({id:Aw,patch:CC({name:Ow.min(1)}),type:kC(`updatePage`)}),CC({id:Aw,type:kC(`removePage`)}),CC({ref:kw,round:CC({batchId:Aw.optional(),pageId:Aw.optional(),title:Ow.min(1)}),type:kC(`addRound`)}),CC({id:Aw,patch:CC({title:Ow.min(1)}),type:kC(`updateRound`)}),CC({group:CC(fRe),ref:kw,type:kC(`addGroup`)}),CC({id:Aw,patch:CC({desc:Ow,kind:DC(oRe),title:Ow}).partial(),type:kC(`updateGroup`)}),CC({id:Aw,type:kC(`removeGroup`)}),CC({board:CC(dRe),ref:kw,type:kC(`addBoard`)}),CC({id:Aw,patch:CC({...dRe,groupId:Aw.nullable(),roundId:Aw.nullable()}).omit({pageId:!0,type:!0}).partial(),type:kC(`updateBoard`)}),CC({id:Aw,type:kC(`removeBoard`)}),CC({edge:CC({condition:Ow.optional(),from:Aw,isDefault:yC().optional(),label:Ow.optional(),to:Aw}),ref:kw,type:kC(`addEdge`)}),CC({id:Aw,type:kC(`removeEdge`)}),CC({boardId:Aw,expected:Ow,type:kC(`setCheck`)})])})),jw,Mw,mRe,hRe,gRe=o((()=>{RC(),jw={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},Mw=H().min(1).max(jw.maxPathLength+2),mRe=wC([CC({content:H(),path:Mw}).strict(),CC({fileRef:H().min(1),path:Mw}).strict(),CC({base64:H().min(1),path:Mw}).strict(),CC({path:Mw,uploaded:kC(!0)}).strict(),CC({fromCanvas:CC({canvasId:H().min(1),version:vC().int().positive().optional()}).strict(),path:Mw}).strict()]),SC(CC({path:Mw,size:vC().int().nonnegative()}).strict()).min(1).max(jw.maxFiles),hRe=CC({newText:H(),oldText:H().min(1),path:Mw}).strict(),CC({deletes:SC(Mw).max(jw.maxFiles).optional(),edits:SC(hRe).max(200).optional(),writes:SC(mRe).max(jw.maxFiles).optional()}).strict()})),_Re=o((()=>{})),vRe=o((()=>{})),yRe=o((()=>{})),bRe=o((()=>{})),xRe,SRe,CRe,wRe,TRe,ERe,DRe,ORe,kRe,ARe=o((()=>{RC(),xRe=[`new`,`reuse`],SRe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,CRe=CC({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),wRe=CC({arguments:EC(H(),xC()),delivery:CRe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),TRe=CC({cursor:H().nullable().optional(),deliveryStatus:CC({active:yC().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:vC().nonnegative().optional(),throttled:yC().optional()}).optional(),refreshBefore:cke({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:yC().optional()}).strict(),ERe=CC({scheme:kC(`standard_webhooks`)}).strict(),DRe=CC({autoApprove:yC(),delivery:CRe.optional(),identifier:H().regex(SRe).optional(),topicMode:DC(xRe),topicId:H().min(1).optional()}).strict(),ORe=CC({}).strict(),kRe=CC({scheme:kC(`bearer_token`)}).strict(),TC(`kind`,[CC({kind:kC(`mcp_events`),config:wRe,state:TRe,verification:ERe}),CC({kind:kC(`generic`),config:DRe,state:ORe,verification:kRe})])})),jRe=o((()=>{})),MRe=o((()=>{})),NRe=o((()=>{})),PRe=o((()=>{})),FRe=o((()=>{})),IRe=o((()=>{})),LRe=o((()=>{})),RRe=o((()=>{})),zRe=o((()=>{LRe(),RRe()})),BRe=o((()=>{})),VRe=o((()=>{})),HRe=o((()=>{})),URe=o((()=>{cje(),uje(),dje(),fje(),Sje(),wje(),Oje(),kje(),Aje(),Mje(),Nje(),Pje(),wNe(),TNe(),ENe(),DNe(),ONe(),kNe(),ANe(),MNe(),PNe(),FNe(),INe(),LNe(),RNe(),zNe(),BNe(),gje(),VNe(),HNe(),UNe(),QNe(),nPe(),rPe(),iPe(),Rje(),aPe(),SPe(),CPe(),wPe(),TPe(),DPe(),PPe(),FPe(),qPe(),JPe(),YPe(),XPe(),ZPe(),oFe(),sFe(),cFe(),lFe(),uFe(),mFe(),hFe(),gFe(),_Fe(),vFe(),bFe(),xFe(),SFe(),CFe(),FFe(),IFe(),LFe(),RFe(),HFe(),UFe(),WFe(),GFe(),KFe(),qFe(),JFe(),DFe(),YFe(),XFe(),eIe(),rIe(),aIe(),oIe(),fIe(),iNe(),kIe(),AIe(),jIe(),_Ne(),rLe(),LLe(),RLe(),BLe(),ULe(),GLe(),KLe(),qLe(),JLe(),XLe(),aRe(),Wje(),pRe(),gRe(),_Re(),vRe(),yRe(),bRe(),vje(),ARe(),jRe(),MRe(),NRe(),PRe(),FRe(),IRe(),zRe(),_Ne(),LLe(),BRe(),VRe(),HRe()})),WRe=o((()=>{})),GRe,Nw,KRe=o((()=>{GRe=[`*`,`agent:read`,`agent:write`,`agent:credential:write`,`eval:read`,`eval:write`,`chat:read`,`chat:write`,`model:invoke`,`model:read`,`model:write`,`file:read`,`file:write`,`knowledge:read`,`knowledge:write`,`mcp:read`,`mcp:write`,`usage:read`,`workspace:read`,`workspace:write`,`user:read`,`user:write`],new Set(GRe),Nw=(e,t)=>({read:e,write:t}),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,null),Nw(`knowledge:read`,`knowledge:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,null),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`model:read`,`model:write`),Nw(`model:read`,`model:write`),Nw(`chat:read`,null),Nw(`chat:read`,`chat:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`model:read`,`model:write`),Nw(`agent:read`,null),Nw(`knowledge:read`,`knowledge:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`user:read`,`user:write`),Nw(`file:read`,`file:write`),Nw(`file:read`,`file:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,`chat:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`knowledge:read`,`knowledge:write`),Nw(`user:read`,`user:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,null),Nw(`chat:read`,null),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,`agent:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`chat:read`,`chat:write`),Nw(`file:read`,`file:write`),Nw(`usage:read`,null),Nw(`user:read`,`user:write`),Nw(`user:read`,`user:write`),Nw(`user:read`,`user:write`),Nw(`agent:read`,`agent:write`),Nw(`agent:read`,null),Nw(`agent:read`,`agent:write`),Nw(`workspace:read`,`workspace:write`),Nw(`workspace:read`,null),Nw(`workspace:read`,null),Nw(`workspace:read`,`workspace:write`)})),Pw,qRe=o((()=>{Pw=1024*1024,10*Pw,10*Pw,10*Pw,10*Pw,50*Pw,50*Pw,20*Pw,5*Pw,20*Pw,2*Pw,100*Pw})),JRe=o((()=>{}));function YRe(e){let t=[],n=[];if(e=e.filter(e=>e!==``),e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);let r=QRe.test(e[0]);XRe.test(e[0])&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]===`/`&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(ZRe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(ZRe,`$1://`));let i=!1;for(let r=0;r<e.length;r++){let a=e[r];if(typeof a!=`string`)throw TypeError(`Url must be a string. Received `+a);let o=a.startsWith(`/`),s=a.endsWith(`/`);if(r>0&&(a=a.replace(/^[\/]+/,``)),a=r<e.length-1?a.replace(/[\/]+$/,``):a.replace(/[\/]+$/,`/`),a===``){i||=o;continue}t.push(a),n.push(o||i),i=s}let a=``;for(let e=0;e<t.length;e++){let r=t[e];if(e===0){a+=r;continue}let i=t[e-1];if(i&&i.endsWith(`?`)){a+=r;continue}if(i.endsWith(`#`)){a+=(n[e]?`/`:``)+r;continue}a+=`/`+r}a=a.replace(/\/(\?|&|#[^!])/g,`$1`);let o=a.indexOf(`#`),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o+1),[l,...u]=s.split(/(?:\?|&)+/),d=u.filter(Boolean);return a=l+(d.length>0?`?`:``)+d.join(`&`)+(c&&c.length>0?`#`+c:``),a}function Fw(...e){return YRe(Array.from(Array.isArray(e[0])?e[0]:e))}var XRe,ZRe,QRe,$Re=o((()=>{XRe=RegExp(`^[^/:\\d][^/:]*:/*$`),ZRe=RegExp(`^([^/:\\d][^/:]*):/*`),QRe=/^[^/:]+:\d+(?:[/?#]|$)/})),eze,Iw,tze,nze,Lw,Rw,rze,ize,aze,oze,sze,cze,lze=o((()=>{$Re(),eze=`https://app.lobehub.com`,Iw=`https://lobehub.com`,tze=Iw,nze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},Lw=`https://github.com/lobehub/lobehub`,Fw(Lw,`issues/new/choose`),Rw=Fw(Iw,`/docs`),rze=Fw(Rw,`/usage`),ize=Fw(Rw,`/self-hosting`),Fw(ize,`/server-database`),`${Rw}`,Fw(rze,`/plugins/development`),Fw(ize,`/advanced/upstream-sync`),Fw(Iw,`blog`),Fw(Lw,`issues/new/choose`),Fw(Iw,`/privacy`),Fw(Iw,`/terms`),aze=`https://github.com/lobehub/lobe-chat-agents`,Fw(aze,`issues/new`),oze=(e,t)=>`/agent/${e}`,sze=(e,t,n)=>Fw(`/agent`,e,t),cze=(e,t)=>Fw(`/group`,e,t),Fw(Lw,`releases`),Fw(Iw,`changelog`),Fw(Iw,`/downloads`),Fw(Iw,`/mobile`)})),uze=o((()=>{lze()})),dze=o((()=>{uze()})),fze=o((()=>{})),pze,zw,mze,hze,gze=o((()=>{pze=e=>e.join(`+`),zw={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},mze=[{electronAccelerator:`Alt+Shift+Space`,id:zw.QuickComposer,uiKeys:pze([`alt`,`shift`,`space`])},{electronAccelerator:``,id:zw.QuickChat,uiKeys:``},{electronAccelerator:``,id:zw.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:zw.OpenSettings,nonEditable:!0,uiKeys:pze([`mod`,`comma`])}],hze=mze.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),mze.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),_ze=o((()=>{gze(),hze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),vze,yze,bze,xze=o((()=>{YC(),vze={},yze=fAe,bze=`/avatars/lobe-ai.png`})),Bw=o((()=>{YC()})),Sze,Cze,wze,Tze,Eze=o((()=>{YC(),xze(),Bw(),Sze={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},Cze={model:qC,provider:JC},wze={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:Cze,searchMode:`auto`,selfIteration:{enabled:!1}},Tze={chatConfig:wze,model:qC,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:JC,systemRole:``,tts:Sze}})),Dze=o((()=>{})),Oze=o((()=>{})),kze,Aze,jze,Mze,Nze,Pze,Fze,Ize,Lze,Rze,zze,Bze,Vze,Hze,Uze,Wze,Gze,Kze=o((()=>{kze=`@lobehub/lobehub`,Aze=`2.3.4`,jze=`LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.`,Mze=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],Nze=`https://github.com/lobehub/lobehub`,Pze={url:`https://github.com/lobehub/lobehub/issues/new/choose`},Fze={type:`git`,url:`https://github.com/lobehub/lobehub.git`},Ize=`LobeHub <i@lobehub.com>`,Lze=[`./src/initialize.ts`,`./src/libs/providerIcon.ts`,`./src/spa/entry.auth.tsx`,`./src/spa/entry.desktop.tsx`,`./src/spa/entry.mobile.tsx`,`./src/spa/entry.popup.tsx`,`./src/spa/entry.web.tsx`],Rze=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],zze={alint:`alint`,"alint:audit":`alint --config alint.audit.toml --format json --rule-concurrency 48 src packages`,"alint:setup":`bun packages/alint/setup.ts`,build:`bun run build:spa && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next`,"build:analyze":`cross-env NODE_OPTIONS=--max-old-space-size=81920 next experimental-analyze`,"build:artboard-viewer":`pnpm --filter @lobechat/artboard-viewer build`,"build:canvas-runtime":`pnpm --filter @lobechat/canvas-runtime build`,"build:docker":`pnpm run build:file-parse-worker && pnpm run build:spa && pnpm run build:spa:mobile && pnpm run build:spa:auth && pnpm run build:spa:workbench && pnpm run build:spa:share && cross-env WORKBENCH_REQUIRED=1 SHARE_REQUIRED=1 pnpm run build:spa:copy && cross-env NODE_OPTIONS=--max-old-space-size=8192 DOCKER=true next build`,"build:file-parse-worker":`tsx scripts/buildFileParseWorker.mts`,"build:next":`cross-env NODE_OPTIONS=--max-old-space-size=7168 bun run build:next:raw`,"build:next:raw":`pnpm run build:file-parse-worker && next build`,"build:raw":`bun run build:spa:raw && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next:raw`,"build:spa":`cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run build:spa:raw`,"build:spa:auth":`rm -rf public/_spa public/_spa-auth && cross-env NODE_OPTIONS=--max-old-space-size=8192 AUTH=true vite build`,"build:spa:copy":`tsx scripts/copySpaBuild.mts && tsx scripts/generateSpaTemplates.mts`,"build:spa:mobile":`cross-env NODE_OPTIONS=--max-old-space-size=8192 MOBILE=true vite build`,"build:spa:raw":`rm -rf public/_spa && vite build`,"build:spa:share":`rm -rf dist/share public/_spa-share && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/share build`,"build:spa:workbench":`rm -rf dist/workbench public/_spa-workbench && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/workbench build`,"build:vercel":`cross-env-shell NODE_OPTIONS=--max-old-space-size=8192 "bun run build:raw && bun run db:migrate"`,"build-migrate-db":`bun run db:migrate`,check:`bun run .agents/scripts/check/cli.ts`,"clean:node_modules":`bash -lc 'set -e; echo "Removing all node_modules..."; rm -rf node_modules; pnpm -r exec rm -rf node_modules; rm -rf apps/desktop/node_modules; echo "All node_modules removed."'`,"db:fork:reconcile":`tsx ./scripts/fork/reconcileMigrations.ts`,"db:generate":`tsx ./scripts/fork/reconcileMigrations.ts && drizzle-kit generate && tsx ./scripts/pruneMigrationSnapshots/index.ts && npm run workflow:dbml`,"db:install-fts-search-capture":`cross-env MIGRATION_DB=1 tsx ./scripts/installFtsSearchSyncCapture/index.ts`,"db:migrate":`cross-env MIGRATION_DB=1 tsx ./scripts/migrateServerDB/index.ts`,"db:studio":`drizzle-kit studio`,"db:visualize":`dbdocs build docs/development/database-schema.dbml --project lobe-chat`,"desktop:build:all":`npm run desktop:build:main`,"desktop:build:main":`npm run build:main --prefix=./apps/desktop`,"desktop:build-channel":`tsx scripts/electronWorkflow/buildDesktopChannel.ts`,"desktop:main:build":`npm run desktop:main:build --prefix=./apps/desktop`,"desktop:package:app":`npm run desktop:package:app:platform`,"desktop:package:app:platform":`tsx scripts/electronWorkflow/buildElectron.ts`,"desktop:package:local":`npm run package:local --prefix=./apps/desktop`,"desktop:package:local:reuse":`npm run package:local:reuse --prefix=./apps/desktop`,dev:`tsx scripts/devStartupSequence.mts`,"dev:bun":`bun run build:file-parse-worker && bun --bun next dev -p 3010`,"dev:desktop":`cd apps/desktop && pnpm run dev`,"dev:docker":`docker compose -f docker-compose/dev/docker-compose.yml up -d --wait postgresql redis rustfs searxng`,"dev:docker:down":`docker compose -f docker-compose/dev/docker-compose.yml down`,"dev:docker:reset":`docker compose -f docker-compose/dev/docker-compose.yml down -v && rm -rf docker-compose/dev/data && npm run dev:docker && pnpm db:migrate`,"dev:next":`bun run build:file-parse-worker && next dev -p 3010`,"dev:spa":`vite`,"dev:spa:auth":`cross-env AUTH=true vite`,"dev:spa:mobile":`cross-env MOBILE=true vite`,"dev:spa:share":`pnpm --filter @lobehub/share dev`,"dev:spa:workbench":`pnpm --filter @lobehub/workbench dev`,"docs:cdn":`npm run workflow:docs-cdn && npm run lint:mdx`,"docs:i18n":`lobe-i18n md && npm run lint:mdx`,"docs:seo":`lobe-seo && npm run lint:mdx`,e2e:`cd e2e && npm run test`,"e2e:install":`playwright install`,"e2e:ui":`playwright test --ui`,"fts-search:cleanup-ineligible-messages":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchCleanupIneligibleMessages/cli.ts`,"fts-search:reindex":`node scripts/elasticsearchReindex/runner.mjs`,"fts-search:sync":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchSync/cli.ts`,"gen:density":`tsx scripts/densityTokens.mts`,"gen:density:check":`tsx scripts/densityTokens.mts --check`,"hotfix:branch":`tsx ./scripts/hotfixWorkflow/index.ts`,i18n:`npm run workflow:i18n && lobe-i18n && prettier -c --write "locales/**"`,"i18n:unused":`tsx ./scripts/i18nWorkflow/analyzeUnusedKeys.ts`,"i18n:unused-clean":`tsx ./scripts/i18nWorkflow/cleanUnusedKeys.ts`,lint:`npm run lint:ts && npm run lint:style && npm run type-check && npm run lint:circular`,"lint:circular":`npm run lint:circular:main && npm run lint:circular:packages`,"lint:circular:main":`dpdm src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:circular:packages":`dpdm packages/**/src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:console":`tsx scripts/checkConsoleLog.mts`,"lint:md":`remark . --silent --output`,"lint:mdx":`npm run workflow:mdx && remark "docs/**/*.mdx" -r ./.remarkrc.mdx.mjs --silent --output`,"lint:style":`stylelint "{src,tests}/**/*.{css,less}" --fix --allow-empty-input`,"lint:ts":`oxlint src/ tests/ apps/server/src/`,"lint:unused":`knip --include files,exports,types,enumMembers,duplicates`,prepare:`git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true`,prettier:`prettier -c --write "**/**"`,pull:`git pull`,qstash:`pnpx @upstash/qstash-cli@latest dev`,"react-devtools":`cd apps/desktop && pnpm run react-devtools`,reinstall:`rm -rf .next && rm -rf node_modules && rm -rf ./packages/*/node_modules && pnpm -r exec rm -rf node_modules && pnpm install`,"reinstall:desktop":`rm -rf pnpm-lock.yaml && rm -rf node_modules && pnpm -r exec rm -rf node_modules && pnpm install --node-linker=hoisted`,release:`semantic-release`,"release:branch":`tsx ./scripts/releaseWorkflow/index.ts`,"self-hosting:docker":`docker build -t lobehub:local .`,"self-hosting:docker-cn":`docker build -t lobehub-local --build-arg USE_CN_MIRROR=true .`,start:`next start -p 3210`,"style-eq":`bun packages/style-equivalence/src/cli/index.ts`,"style-eq:test":`cd packages/style-equivalence && vitest run --silent=passed-only`,stylelint:`stylelint "src/**/*.{css,less}" --fix --allow-empty-input`,"stylex:migration":`tsx scripts/stylexMigration/index.ts`,"stylex:verify":`bun scripts/stylexMigration/verification/run.ts`,"stylex:verify:test":`vitest run --config scripts/stylexMigration/verification/vitest.config.ts --silent='passed-only'`,test:`npm run test-app && npm run test-server`,"test:e2e":`pnpm --filter @lobechat/e2e-tests test`,"test:e2e:smoke":`pnpm --filter @lobechat/e2e-tests test:smoke`,"test:update":`vitest -u`,"test-app":`vitest run`,"test-app:coverage":`vitest --coverage --silent='passed-only'`,"tunnel:cloudflare":`cloudflared tunnel --url http://localhost:3010 --protocol http2`,"tunnel:ngrok":`ngrok http http://localhost:3010`,"type-check":`tsrs --noEmit -p tsconfig.type-check.json --checkers 4`,"type-check:tsc":`tsc --noEmit`,"widget:tick":`tsx ./scripts/widgetTick/index.mts`,"workflow:cdn":`tsx ./scripts/cdnWorkflow/index.ts`,"workflow:changelog":`tsx ./scripts/changelogWorkflow/index.ts`,"workflow:changelog:gen":`tsx ./scripts/changelogWorkflow/generateChangelog.ts`,"workflow:countCharters":`tsx scripts/countEnWord.ts`,"workflow:dbml":`tsx ./scripts/dbmlWorkflow/index.ts`,"workflow:docs":`tsx ./scripts/docsWorkflow/index.ts`,"workflow:docs-cdn":`tsx ./scripts/docsWorkflow/autoCDN.ts`,"workflow:i18n":`tsx ./scripts/i18nWorkflow/index.ts`,"workflow:mdx":`tsx ./scripts/mdxWorkflow/index.ts`,"workflow:mobile-spa":`tsx scripts/mobileSpaWorkflow/index.ts`,"workflow:readme":`tsx ./scripts/readmeWorkflow/index.ts`,"workflow:reset-onboarding":`tsx ./scripts/resetOnboarding/index.ts`,"workflow:seed-user-info":`tsx ./scripts/seedUserInfo/index.ts`,"workflow:set-desktop-version":`tsx ./scripts/electronWorkflow/setDesktopVersion.ts`},Bze={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.6.33`,"drizzle-orm":`^0.45.2`,"fast-xml-parser":`5.4.2`,lexical:`0.42.0`,"pdfjs-dist":`5.4.530`,"stylelint-config-clean-order":`7.0.0`},Vze=JSON.parse(`{"@aiden0z/pptx-renderer":"^1.2.4","@anthropic-ai/sdk":"^0.73.0","@atlaskit/pragmatic-drag-and-drop":"^1.8.1","@atlaskit/pragmatic-drag-and-drop-hitbox":"^1.2.0","@aws-sdk/client-bedrock-runtime":"^3.1107.0","@aws-sdk/client-s3":"~3.932.0","@aws-sdk/s3-request-presigner":"~3.932.0","@azure-rest/ai-inference":"1.0.0-beta.5","@azure/core-auth":"^1.11.0","@better-auth/expo":"1.6.33","@better-auth/passkey":"1.6.33","@cfworker/json-schema":"^4.1.1","@chat-adapter/discord":"~4.38.0","@chat-adapter/slack":"~4.38.0","@chat-adapter/state-ioredis":"~4.38.0","@chat-adapter/telegram":"~4.38.0","@codemirror/streamparser":"^6.0.0","@codesandbox/sandpack-react":"^2.20.0","@composio/core":"^0.10.0","@discordjs/rest":"^2.6.3","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emoji-mart/data":"^1.2.1","@emoji-mart/react":"^1.1.1","@emotion/react":"^11.14.0","@fal-ai/client":"^1.10.1","@floating-ui/react":"^0.27.20","@formkit/auto-animate":"^0.9.0","@google/genai":"^2.24.0","@henrygd/queue":"^1.2.0","@huggingface/inference":"^4.13.25","@icons-pack/react-simple-icons":"^13.15.1","@khmyznikov/pwa-install":"0.3.9","@larksuiteoapi/node-sdk":"^1.73.0","@lexical/list":"0.42.0","@lexical/rich-text":"0.42.0","@lexical/utils":"^0.42.0","@lobechat/agent-address-linq":"workspace:*","@lobechat/agent-address-mail":"workspace:*","@lobechat/agent-gateway-client":"workspace:*","@lobechat/agent-mock":"workspace:*","@lobechat/agent-runtime":"workspace:*","@lobechat/agent-signal":"workspace:*","@lobechat/agent-templates":"workspace:*","@lobechat/artifact-template":"workspace:*","@lobechat/builtin-agents":"workspace:*","@lobechat/builtin-skills":"workspace:*","@lobechat/builtin-tool-acceptance-evidence":"workspace:*","@lobechat/builtin-tool-activator":"workspace:*","@lobechat/builtin-tool-agent-account":"workspace:*","@lobechat/builtin-tool-agent-builder":"workspace:*","@lobechat/builtin-tool-agent-documents":"workspace:*","@lobechat/builtin-tool-agent-management":"workspace:*","@lobechat/builtin-tool-agent-signal":"workspace:*","@lobechat/builtin-tool-artboard":"workspace:*","@lobechat/builtin-tool-attachments":"workspace:*","@lobechat/builtin-tool-auv":"workspace:*","@lobechat/builtin-tool-brief":"workspace:*","@lobechat/builtin-tool-browser":"workspace:*","@lobechat/builtin-tool-calculator":"workspace:*","@lobechat/builtin-tool-canvas":"workspace:*","@lobechat/builtin-tool-channel":"workspace:*","@lobechat/builtin-tool-claude-code":"workspace:*","@lobechat/builtin-tool-cloud-sandbox":"workspace:*","@lobechat/builtin-tool-creds":"workspace:*","@lobechat/builtin-tool-dashboard":"workspace:*","@lobechat/builtin-tool-goal":"workspace:*","@lobechat/builtin-tool-group-agent-builder":"workspace:*","@lobechat/builtin-tool-group-management":"workspace:*","@lobechat/builtin-tool-image-generation":"workspace:*","@lobechat/builtin-tool-knowledge-base":"workspace:*","@lobechat/builtin-tool-lobe-agent":"workspace:*","@lobechat/builtin-tool-local-system":"workspace:*","@lobechat/builtin-tool-mcp-events":"workspace:*","@lobechat/builtin-tool-memory":"workspace:*","@lobechat/builtin-tool-message":"workspace:*","@lobechat/builtin-tool-notebook":"workspace:*","@lobechat/builtin-tool-page-agent":"workspace:*","@lobechat/builtin-tool-remote-device":"workspace:*","@lobechat/builtin-tool-self-iteration":"workspace:*","@lobechat/builtin-tool-skill-maintainer":"workspace:*","@lobechat/builtin-tool-skill-store":"workspace:*","@lobechat/builtin-tool-skills":"workspace:*","@lobechat/builtin-tool-task":"workspace:*","@lobechat/builtin-tool-user-interaction":"workspace:*","@lobechat/builtin-tool-verify":"workspace:*","@lobechat/builtin-tool-video-generation":"workspace:*","@lobechat/builtin-tool-web-browsing":"workspace:*","@lobechat/builtin-tool-web-onboarding":"workspace:*","@lobechat/builtin-tool-webhook":"workspace:*","@lobechat/builtin-tool-work":"workspace:*","@lobechat/builtin-tools":"workspace:*","@lobechat/business-config":"workspace:*","@lobechat/business-const":"workspace:*","@lobechat/business-knowledge":"workspace:*","@lobechat/business-model-bank":"workspace:*","@lobechat/business-model-runtime":"workspace:*","@lobechat/canvas":"workspace:*","@lobechat/chat-adapter-dingtalk":"workspace:*","@lobechat/chat-adapter-feishu":"workspace:*","@lobechat/chat-adapter-imessage":"workspace:*","@lobechat/chat-adapter-line":"workspace:*","@lobechat/chat-adapter-qq":"workspace:*","@lobechat/chat-adapter-wechat":"workspace:*","@lobechat/chat-adapter-wecom":"workspace:*","@lobechat/config":"workspace:*","@lobechat/connector-data":"workspace:*","@lobechat/const":"workspace:*","@lobechat/context-engine":"workspace:*","@lobechat/conversation-flow":"workspace:*","@lobechat/database":"workspace:*","@lobechat/desktop-bridge":"workspace:*","@lobechat/device-control":"workspace:*","@lobechat/device-gateway-client":"workspace:*","@lobechat/edge-config":"workspace:*","@lobechat/editor-runtime":"workspace:*","@lobechat/electron-client-ipc":"workspace:*","@lobechat/electron-server-ipc":"workspace:*","@lobechat/env":"workspace:*","@lobechat/eval-dataset-parser":"workspace:*","@lobechat/eval-rubric":"workspace:*","@lobechat/fetch-sse":"workspace:*","@lobechat/file-loaders":"workspace:*","@lobechat/heterogeneous-agents":"workspace:*","@lobechat/html-artifact":"workspace:*","@lobechat/llm-generation-tracing":"workspace:*","@lobechat/local-file-shell":"workspace:*","@lobechat/markdown-patch":"workspace:*","@lobechat/mecha":"workspace:*","@lobechat/memory-user-memory":"workspace:*","@lobechat/model-runtime":"workspace:*","@lobechat/observability-otel":"workspace:*","@lobechat/openapi":"workspace:*","@lobechat/prompts":"workspace:*","@lobechat/python-interpreter":"workspace:*","@lobechat/shared-tool-ui":"workspace:*","@lobechat/ssrf-safe-fetch":"workspace:*","@lobechat/tool-runtime":"workspace:*","@lobechat/tool-view-model":"workspace:*","@lobechat/utils":"workspace:*","@lobechat/web-crawler":"workspace:*","@lobechat/widget-spec":"workspace:*","@lobehub/analytics":"^1.6.4","@lobehub/charts":"^6.0.0","@lobehub/desktop-ipc-typings":"workspace:*","@lobehub/editor":"7.2.1","@lobehub/icons":"^6.15.2","@lobehub/market-sdk":"0.46.0","@lobehub/tts":"^6.1.0","@lobehub/ui":"^6.16.1","@modelcontextprotocol/client":"~2.4.0","@modelcontextprotocol/ext-apps":"^2.0.3","@neondatabase/serverless":"^1.1.0","@next/third-parties":"^16.3.0","@opentelemetry/auto-instrumentations-node":"^0.76.0","@opentelemetry/exporter-jaeger":"^2.10.0","@opentelemetry/resources":"^2.10.0","@opentelemetry/sdk-metrics":"^2.10.0","@opentelemetry/winston-transport":"^0.28.0","@pierre/trees":"1.0.0-beta.3","@react-pdf/renderer":"4.3.2","@react-three/drei":"^10.7.8","@react-three/fiber":"^9.7.0","@saintno/comfyui-sdk":"^0.2.53","@stylexjs/stylex":"0.19.1","@t3-oss/env-core":"^0.13.11","@t3-oss/env-nextjs":"^0.13.11","@tanstack/react-query":"^5.101.4","@trpc/client":"^11.18.0","@trpc/next":"^11.18.0","@trpc/react-query":"^11.18.0","@trpc/server":"^11.18.0","@upstash/qstash":"2.12.0","@upstash/workflow":"^0.2.23","@vercel/analytics":"^1.6.1","@vercel/edge-config":"^1.5.1","@vercel/functions":"^3.9.2","@vercel/speed-insights":"^1.3.1","@virtuoso.dev/masonry":"^1.4.3","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/addon-webgl":"^0.18.0","@xterm/xterm":"^5.5.0","@xyflow/react":"^12.11.5","@zumer/snapdom":"^2.24.10","ahooks":"^3.9.7","async-retry":"^1.3.3","bcryptjs":"^3.0.3","better-auth":"1.6.33","brotli-wasm":"^3.0.1","buffer.js":"npm:buffer@^6.0.3","chat":"~4.38.0","chroma-js":"^3.3.0","class-variance-authority":"^0.7.1","cmdk":"^1.1.1","cookie":"^1.1.1","countries-and-timezones":"^3.10.0","d3-dsv":"^3.0.1","dayjs":"^1.11.21","debug":"^4.4.3","diff":"^8.0.4","discord-api-types":"^0.38.53","docx-preview":"^0.4.0","drizzle-orm":"^0.45.2","drizzle-zod":"^0.8.3","entities":"^8.1.0","epub2":"^3.0.2","es-toolkit":"^1.50.0","exceljs":"^4.4.0","expo-server-sdk":"^6.1.0","fast-deep-equal":"^3.1.3","fflate":"^0.8.3","ffmpeg-static":"^5.3.0","file-type":"^21.3.4","fuse.js":"^7.5.0","gray-matter":"^4.0.3","hono":"^4.13.1","html-to-text":"^9.0.5","i18next":"^25.10.10","i18next-browser-languagedetector":"^8.2.1","i18next-resources-to-backend":"^1.2.3","immer":"^11.1.16","ioredis":"^5.11.1","jose":"^6.2.8","js-sha256":"^0.11.1","jsondiffpatch":"^0.7.6","jsonl-parse-stringify":"^1.0.3","keygrip":"^1.1.0","langfuse":"^3.38.20","langfuse-core":"^3.38.20","lexical":"0.42.0","local-replica":"^0.1.1","lucide-react":"^1.31.0","mammoth":"^1.12.1","marked":"^17.0.6","mdast-util-to-markdown":"^2.1.2","mesurer":"^0.1.0","model-bank":"workspace:*","motion":"^14.1.0","nanoid":"^5.1.16","next":"~16.3.8","next-mdx-remote":"^6.0.0","next-themes":"^0.4.6","nextjs-toploader":"^3.9.17","node-machine-id":"^1.1.12","nodemailer":"^9.1.1","numeral":"^2.0.6","nuqs":"^2.9.5","octokit":"^5.0.5","officeparser":"5.1.1","ogl":"^1.0.11","oidc-provider":"^9.11.3","ollama":"^0.6.3","openai":"^6.49.0","openapi-fetch":"^0.14.1","partial-json":"^0.1.7","path-browserify-esm":"^1.0.6","pathe":"^2.0.3","pdf-parse":"^1.1.4","pdfjs-dist":"5.4.530","pdfkit":"^0.17.2","pg":"^8.23.0","pinyin-pro":"^3.28.2","plaiceholder":"^3.0.0","polished":"^4.3.1","pure-rand":"^7.0.1","pwa-install-handler":"^2.6.5","query-string":"^9.5.0","random-words":"^2.0.1","rc-util":"^5.44.4","react":"19.2.7","react-confetti":"^6.4.0","react-dom":"19.2.7","react-fast-marquee":"^1.6.5","react-hotkeys-hook":"^5.3.3","react-i18next":"^16.6.6","react-lazy-load":"^4.0.1","react-markdown":"^10.1.0","react-pdf":"^10.4.1","react-responsive":"^10.0.1","react-rnd":"^10.5.3","react-router":"^8.3.0","react-scan":"^0.5.7","react-virtuoso":"^4.18.11","react-wrap-balancer":"^1.1.1","remark":"^15.0.1","remark-gfm":"^4.0.1","remark-html":"^16.0.1","remove-markdown":"^0.6.4","resend":"6.8.0","resolve-accept-language":"^3.2.2","rtl-detect":"^1.1.2","semver":"^7.8.5","sharp":"^0.34.5","shiki":"^4.4.3","standardwebhooks":"^1.1.1","stripe":"^17.7.0","superjson":"^2.2.6","svix":"^1.99.1","swr":"^2.5.0","three":"^0.181.2","tokenx":"^1.6.0","ts-md5":"^2.0.1","ua-parser-js":"^1.0.41","undici":"^7.29.0","unist-builder":"^4.0.0","url-join":"^5.0.0","use-merge-value":"^1.2.0","uuid":"^14.0.1","virtua":"^0.48.8","word-extractor":"^1.0.4","ws":"^8.21.3","xast-util-to-xml":"^4.0.0","xastscript":"^4.0.0","yaml":"^2.9.0","yjs":"^13.6.33","zod":"^4.4.3","zustand":"5.0.4","zustand-utils":"^2.1.1"}`),Hze={"@alint-js/cli":`0.7.3`,"@commitlint/cli":`^19.8.1`,"@edge-runtime/vm":`^5.0.0`,"@huggingface/tasks":`^0.19.90`,"@inquirer/prompts":`^8.5.2`,"@lobechat/agent-tracing":`workspace:*`,"@lobechat/types":`workspace:*`,"@lobehub/commitlint-config":`^3.0.0`,"@lobehub/i18n-cli":`^1.27.0`,"@lobehub/market-types":`^1.19.0`,"@lobehub/oxlint-config":`^3.0.0`,"@lobehub/prettier-config":`^3.0.0`,"@lobehub/remarklint-config":`^3.0.0`,"@lobehub/semantic-release-config":`^3.0.0`,"@lobehub/seo-cli":`^1.7.0`,"@lobehub/stylelint-config":`^3.0.0`,"@modelcontextprotocol/server":`~2.4.0`,"@peculiar/webcrypto":`^1.7.1`,"@playwright/test":`^1.62.1`,"@prettier/sync":`^0.6.1`,"@rolldown/plugin-transform-imports":`0.1.1`,"@semantic-release/exec":`^6.0.3`,"@stylexjs/unplugin":`0.19.1`,"@testing-library/jest-dom":`^6.9.1`,"@testing-library/react":`^16.3.2`,"@testing-library/user-event":`^14.6.3`,"@types/async-retry":`^1.4.9`,"@types/chroma-js":`^3.1.2`,"@types/crypto-js":`^4.2.2`,"@types/d3-dsv":`^3.0.7`,"@types/debug":`^4.1.13`,"@types/fs-extra":`^11.0.4`,"@types/html-to-text":`^9.0.4`,"@types/ip":`^1.1.3`,"@types/json-schema":`^7.0.15`,"@types/keygrip":`^1.0.6`,"@types/node":`^24.13.3`,"@types/nodemailer":`^7.0.12`,"@types/numeral":`^2.0.5`,"@types/oidc-provider":`^9.11.1`,"@types/pdf-parse":`^1.1.5`,"@types/pdfkit":`^0.17.6`,"@types/pg":`^8.21.0`,"@types/react":`19.2.13`,"@types/react-dom":`19.2.3`,"@types/rtl-detect":`^1.0.3`,"@types/semver":`^7.8.0`,"@types/three":`^0.181.0`,"@types/ua-parser-js":`^0.7.39`,"@types/unist":`^3.0.3`,"@types/ws":`^8.18.1`,"@types/xast":`^2.0.4`,"@vitejs/devtools":`0.2.0`,"@vitejs/plugin-react":`^6.0.5`,"@vitest/coverage-v8":`5.0.0`,ajv:`^8.20.0`,"ajv-keywords":`^5.1.0`,"code-inspector-plugin":`1.3.6`,commitlint:`^19.8.1`,consola:`^3.4.2`,"cross-env":`^10.1.0`,"crypto-js":`^4.2.0`,dbdocs:`^0.16.2`,dotenv:`^17.4.2`,"dotenv-expand":`^12.0.3`,"dpdm-fast":`^1.0.14`,"drizzle-dbml-generator":`^0.10.0`,"drizzle-kit":`^0.31.10`,esbuild:`^0.28.2`,"fake-indexeddb":`^6.2.5`,"fs-extra":`^11.4.0`,glob:`^13.0.6`,"happy-dom":`~20.11.15`,"import-in-the-middle":`^2.0.6`,"just-diff":`^6.0.2`,knip:`^5.88.1`,linkedom:`^0.18.13`,"lint-staged":`^16.4.0`,"markdown-table":`^3.0.4`,"mcp-hello-world":`^1.1.2`,mime:`^4.1.0`,"node-fetch":`^3.3.2`,"node-gyp":`^12.4.0`,"openapi-typescript":`^7.13.0`,oxlint:`1.90.0`,"p-map":`^7.0.6`,postcss:`8.5.23`,"postcss-selector-parser":`7.1.7`,"postcss-value-parser":`4.2.0`,prettier:`^3.9.6`,"raw-loader":`^4.0.2`,"remark-cjk-friendly":`^2.3.1`,"remark-cli":`^12.0.1`,"remark-frontmatter":`^5.0.0`,"remark-mdx":`^3.1.1`,"remark-parse":`^11.0.0`,"require-in-the-middle":`^8.0.1`,s3rver:`3.7.1`,"semantic-release":`^21.1.2`,stylelint:`^16.26.1`,tsrs:`0.20.1-ts7.1.0-beta`,tsx:`^4.23.12`,"type-fest":`^5.8.0`,typescript:`6.0.3`,unified:`^11.0.5`,"unist-util-visit":`^5.1.0`,vite:`8.0.16`,"vite-plugin-pwa":`^1.3.0`,"vite-tsconfig-paths":`^6.1.1`,vitest:`5.0.0`},Uze=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,Wze={access:`public`,registry:`https://registry.npmjs.org`},Gze={name:kze,version:Aze,description:jze,keywords:Mze,homepage:Nze,bugs:Pze,repository:Fze,license:`MIT`,author:Ize,sideEffects:Lze,workspaces:Rze,scripts:zze,"lint-staged":{"*.md":[`remark --silent --silently-ignore --output --`,`prettier --write --no-error-on-unmatched-pattern`],"*.mdx":[`remark -r ./.remarkrc.mdx.mjs --silent --output --`],"*.json":[`prettier --write --no-error-on-unmatched-pattern`],"*.{mjs,cjs}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{js,jsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{ts,tsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --parser=typescript --write`],"*.{css,less}":[`stylelint --fix`,`prettier --write`]},overrides:Bze,dependencies:Vze,devDependencies:Hze,packageManager:Uze,publishConfig:Wze}})),Vw,Hw,Uw=o((()=>{YC(),Kze(),Vw=Gze.version,Hw=KC!==`LobeHub`})),Ww,Gw,Kw,qw,Jw,qze,Jze=o((()=>{Uw(),Ww=e=>e.join(`+`),Gw={Alt:`alt`,Backquote:`backquote`,Backslash:`backslash`,Backspace:`backspace`,BracketLeft:`bracketleft`,BracketRight:`bracketright`,Comma:`comma`,Ctrl:`ctrl`,Down:`down`,Enter:`enter`,Equal:`equal`,Esc:`esc`,Left:`left`,LeftClick:`left-click`,LeftDoubleClick:`left-double-click`,Meta:`meta`,MiddleClick:`middle-click`,Minus:`minus`,Mod:`mod`,Number:`1-9`,Period:`period`,Plus:`equal`,QuestionMark:`slash`,Quote:`quote`,Right:`right`,RightClick:`right-click`,RightDoubleClick:`right-double-click`,Semicolon:`semicolon`,Shift:`shift`,Slash:`slash`,Space:`space`,Tab:`tab`,Up:`up`,Zero:`0`},Kw={CommandPalette:`commandPalette`,DeleteAndRegenerateMessage:`deleteAndRegenerateMessage`,DeleteLastMessage:`deleteLastMessage`,EditMessage:`editMessage`,FindInTopic:`findInTopic`,NavigateToChat:`navigateToChat`,NextTab:`nextTab`,OpenChatSettings:`openChatSettings`,PrevTab:`prevTab`,OpenHotkeyHelper:`openHotkeyHelper`,OpenTaskFilter:`openTaskFilter`,RegenerateMessage:`regenerateMessage`,SaveDocument:`saveDocument`,SaveTopic:`saveTopic`,Search:`search`,ShowApp:`showApp`,SwitchAgent:`switchAgent`,SwitchTab:`switchTab`,ToggleFavorite:`toggleFavorite`,ToggleLeftPanel:`toggleLeftPanel`,ToggleRightPanel:`toggleRightPanel`,ToggleTerminalPanel:`toggleTerminalPanel`},qw={Conversation:`conversation`,Essential:`essential`},Jw={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},qze=[{group:qw.Essential,id:Kw.CommandPalette,keys:Ww([Gw.Mod,`k`]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.Search,keys:Ww([Gw.Mod,`j`]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.SwitchAgent,keys:Ww([Gw.Ctrl,Gw.Number]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.SwitchTab,keys:Ww([Gw.Mod,Gw.Number]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.NextTab,keys:Ww([Gw.Ctrl,Gw.Tab]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.PrevTab,keys:Ww([Gw.Ctrl,Gw.Shift,Gw.Tab]),nonEditable:!0,scopes:[Jw.Global]},{group:qw.Essential,id:Kw.NavigateToChat,keys:Ww([Gw.Ctrl,Gw.Shift,Gw.Backquote]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.ToggleLeftPanel,keys:Ww([Gw.Mod,Gw.BracketLeft]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.ToggleRightPanel,keys:Ww([Gw.Mod,Gw.BracketRight]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.OpenHotkeyHelper,keys:Ww([Gw.Ctrl,Gw.Shift,Gw.QuestionMark]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.ToggleFavorite,keys:Ww([Gw.Alt,`f`]),scopes:[Jw.Global]},{group:qw.Essential,id:Kw.OpenTaskFilter,keys:`f`,scopes:[Jw.Global]},{group:qw.Conversation,id:Kw.FindInTopic,keys:Ww([Gw.Mod,`f`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.ToggleTerminalPanel,keys:Ww([Gw.Ctrl,Gw.Backquote]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.OpenChatSettings,keys:Ww([Gw.Alt,Gw.Comma]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.RegenerateMessage,keys:Ww([Gw.Alt,`r`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.DeleteLastMessage,keys:Ww([Gw.Alt,`d`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.DeleteAndRegenerateMessage,keys:Ww([Gw.Alt,Gw.Shift,`r`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.SaveTopic,keys:Ww([Gw.Alt,`n`]),scopes:[Jw.Chat]},{group:qw.Conversation,id:Kw.EditMessage,keys:Ww([Gw.Alt,Gw.LeftDoubleClick]),nonEditable:!0,scopes:[Jw.Chat]},{group:qw.Essential,id:Kw.SaveDocument,keys:Ww([Gw.Mod,`s`]),scopes:[Jw.Files]}]})),Yze=o((()=>{Jze(),qze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),Xze=o((()=>{})),Zze=o((()=>{YC(),Bw()})),Qze=o((()=>{})),$ze=o((()=>{})),eBe,Yw,tBe=o((()=>{YC(),Zze(),Bw(),eBe={model:qC,provider:JC},Yw={model:TAe,provider:EAe},Yw.model,Yw.provider,Yw.model,Yw.provider,Yw.model,Yw.provider,{...eBe},Reflect.get(KAe,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(KAe,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),nBe=o((()=>{})),rBe=o((()=>{})),Xw=o((()=>{Eze(),Dze(),Oze(),Yze(),Xze(),Zze(),Bw(),Qze(),$ze(),tBe(),nBe(),rBe()})),iBe=o((()=>{Xw(),new Date().toISOString()})),aBe=o((()=>{})),oBe=o((()=>{Object.freeze([])})),sBe=o((()=>{})),cBe,lBe,uBe,dBe=o((()=>{cBe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],lBe=2*1024*1024*1024-1,`${lBe}`,uBe=64*1024*1024,`${uBe}`,[...cBe]})),fBe,pBe=o((()=>{YC(),`${KC}`,fBe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(fBe)})),mBe,hBe=o((()=>{mBe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(mBe)})),gBe=o((()=>{})),_Be=o((()=>{})),vBe=o((()=>{})),yBe=o((()=>{})),bBe=o((()=>{})),xBe=o((()=>{})),SBe,CBe=o((()=>{vc(),SBe=(e,t)=>gs({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),wBe,TBe,EBe=o((()=>{xze(),Xw(),CBe(),wBe=`agent`,TBe={config:Tze,createdAt:new Date,id:``,meta:vze,model:Tze.model,type:wBe,updatedAt:new Date},SBe(TBe,{id:`inbox`,meta:{avatar:bze}})})),DBe=o((()=>{})),OBe=o((()=>{})),kBe=o((()=>{})),ABe=o((()=>{})),jBe=o((()=>{})),MBe=o((()=>{})),NBe=o((()=>{})),PBe=o((()=>{})),FBe,IBe,LBe=o((()=>{YC(),Xw(),FBe={activities:3,contexts:0,experiences:0,preferences:3},IBe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...FBe}},IBe.high.contexts})),RBe=o((()=>{})),zBe=o((()=>{})),Zw=o((()=>{Mbe(),Pbe(),Fbe(),Ube(),WRe(),KRe(),qRe(),JRe(),dze(),fze(),_ze(),gze(),iBe(),aBe(),oBe(),sBe(),dBe(),pBe(),hBe(),gBe(),_Be(),uze(),vBe(),xze(),yBe(),bBe(),xBe(),EBe(),Xw(),DBe(),OBe(),kBe(),ABe(),jBe(),MBe(),NBe(),lze(),PBe(),LBe(),Uw(),RBe(),zBe()}));Zw();var Qw=[[`LobeHub Cloud`,dAe,`LobeHub Cloud`],[`LobeHub`,KC,`LobeHub`],[`LobeChat`,KC,`LobeHub`],[`Lobe AI`,yze,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),BBe=new Map(Qw),VBe=`Lobe`,HBe=Qw.length?RegExp(`(?<!@)(${Qw.map(([e])=>e).join(`|`)})`,`g`):void 0,UBe=Qw.length>0,WBe=`brandStrings`,GBe=e=>!HBe||!e.includes(VBe)?e:e.replaceAll(HBe,e=>BBe.get(e)??e),KBe={name:WBe,process:e=>typeof e==`string`?GBe(e):e,type:`postProcessor`},qBe=UBe?{postProcess:[WBe]}:{},JBe=e=>UBe?e.use(KBe):e,YBe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},XBe=c({default:()=>ZBe}),ZBe,QBe=o((()=>{ZBe={"directMention.progress.elapsed":`{{time}}`,"directMention.progress.running":`Running`,"directMention.progress.thinking":`Thinking…`,"directMention.progress.usingTool":`Using {{name}}…`,"directMention.progress.viewFullRecord":`View full record`,"sharePage.app.linkCopied":`Link copied`,"heteroAgent.antigravityQuota.title":`Antigravity quota`,"heteroAgent.antigravityQuota.tooltip":`View Antigravity model quotas`,"heteroAgent.antigravityQuota.fiveHour":`5 hours`,"heteroAgent.antigravityQuota.remainingAmount":`{{amount}} remaining`,"heteroAgent.antigravityQuota.unknown":`Unknown`,"heteroAgent.antigravityQuota.disabled":`Unavailable`,"heteroAgent.antigravityQuota.resetUnconfirmed":`Reset time reached. Refresh to check the latest quota.`,"heteroAgent.antigravityQuota.stale":`Showing the last query. Refresh to confirm current quota.`,"heteroAgent.antigravityQuota.authRequired":`Run agy in a terminal to sign in, then refresh.`,"heteroAgent.antigravityQuota.cliNotFound":`Antigravity CLI was not found on this device. Install agy, then refresh.`,"heteroAgent.antigravityQuota.unsupported":`Update agy to a version that supports structured quota queries, then refresh.`,"heteroAgent.antigravityQuota.timeout":`The quota query timed out. Check the device connection and try again.`,"heteroAgent.antigravityQuota.error":`Could not query Antigravity quota. Check the device and try again.`,"sharePage.app.open":`Open app`,"sharePage.app.help":`Trouble opening the app?`,"sharePage.app.helpDescription":`If this browser prevents opening the app, use its menu to open this page in your system browser. You can also keep reading here.`,"sharePage.app.browserGuide.dismiss":`Got it`,"sharePage.app.browserGuide.stepMenu":`Tap ··· in the top-right corner`,"sharePage.app.browserGuide.stepOpen":`Choose “Open in Browser” or a similar option`,"sharePage.app.browserGuide.title.dingtalk":`DingTalk can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.qq":`QQ can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.wechat":`WeChat can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.weibo":`Weibo can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.fallback.desc":`You may not have the LobeHub app yet, or this browser blocked the jump.`,"sharePage.app.fallback.dismiss":`Keep reading`,"sharePage.app.fallback.download":`Get the app`,"sharePage.app.fallback.title":`App didn’t open?`,newAntigravityAgent:`Add Antigravity`,"backgroundActivity.alertDesc":`{{name}} is using {{memory}} of memory and {{cpu}} CPU.`,"backgroundActivity.cpu":`CPU`,"backgroundActivity.details":`View details`,"backgroundActivity.empty":`No background activity`,"backgroundActivity.emptyDesc":`Dev servers, shells, and agents started from conversations appear here while they run.`,"backgroundActivity.highUsage":`High resource usage`,"backgroundActivity.memory":`Memory`,"backgroundActivity.processCount_one":`{{count}} process`,"backgroundActivity.processCount_other":`{{count}} processes`,"backgroundActivity.retry":`Retry`,"backgroundActivity.shared":`Shared / unassigned`,"backgroundActivity.stop":`Stop`,"backgroundActivity.stopFailed":`Could not stop this activity. Try again.`,"backgroundActivity.title":`Background activity`,"backgroundActivity.topic":`Conversation`,"backgroundActivity.unavailable":`Resource data is unavailable. Displayed values may be out of date.`,"heteroAgent.claudeQuota.accountNotSignedIn":`The Claude Code account {{account}} isn't signed in on this device. Sign in to it from Manage accounts, or switch to another account.`,"heteroAgent.claudeQuota.accountResolveFailed":`Couldn't look up this Claude Code account's login on this device. Try again, or switch to another account.`,"heteroAgent.claudeQuota.manage.add":`Add account`,"heteroAgent.claudeQuota.manage.addHintDesktop":`Each account signs in on this device; runs use the account you pick.`,"heteroAgent.claudeQuota.manage.loginFailed":`Sign-in didn't finish. Try again.`,"heteroAgent.claudeQuota.manage.loginSuccess":`Signed in as {{account}}`,"heteroAgent.claudeQuota.manage.loginWaiting":`Finish signing in in your browser…`,"heteroAgent.claudeQuota.manage.notSignedIn":`Not signed in on this device`,"heteroAgent.claudeQuota.manage.notSignedInOnDevice":`That account isn't signed in on this device yet. Sign in there first.`,"heteroAgent.claudeQuota.manage.switchFailed":`Couldn't switch the account. Try again.`,"heteroAgent.claudeQuota.manage.signIn":`Sign in`,"heteroAgent.claudeQuota.noRunnableAccount":`None of the Claude Code accounts in this agent's rotation are signed in on this device. Sign one in from Manage accounts, or add a signed-in account to the rotation.`,"processExplorer.copyPid":`Copy PID`,"processExplorer.filter":`Filter`,"processExplorer.live":`Live · updates every 2 s`,"processExplorer.name":`Name`,"processExplorer.processes":`Processes`,"processExplorer.gpu":`GPU`,"processExplorer.main":`Main process`,"processExplorer.pid":`PID`,"processExplorer.title":`Process Explorer`,"processExplorer.updated":`Updated {{time}}`,"processExplorer.utility":`Utility`,"processExplorer.window":`Window`,"response.contentSafetyNotice":`This reply was limited for content safety reasons. If this happens often, you may temporarily lose access to this model.`,"goalBatch.cell.accepted":`Accepted`,"goalBatch.cell.backlog":`Not run`,"goalBatch.cell.done":`Done`,"goalBatch.cell.human":`Needs you`,"goalBatch.cell.reopened":`Reopened in v{{revision}}`,"goalBatch.cell.runIn":`Runs in v{{revision}}`,"goalBatch.cell.running":`Running`,"goalBatch.cell.stale":`Superseded`,"goalBatch.cell.tooltip":`Wave {{wave}} · item {{index}} · {{title}} · {{state}}`,"goalBatch.enter":`Open`,"goalBatch.planPanel.compare":`Compare versions`,"goalBatch.planPanel.compareTitle":`Compare plan versions`,"goalBatch.planPanel.forked":`A forked plan: it starts again from the batch’s original outline instead of revising the previous version`,"goalBatch.planPanel.latest":`v{{revision}} · latest`,"goalBatch.planPanel.same":`Same as v{{base}}`,"goalBatch.probes.attemptNext":`Next run`,"goalBatch.probes.attemptOf":`Run {{current}} / {{total}}`,"goalBatch.probes.attemptPrevious":`Previous run`,"goalBatch.probes.cell.backlog":`Not started`,"goalBatch.probes.cell.done":`Done`,"goalBatch.probes.cell.human":`Needs you`,"goalBatch.probes.cell.running":`In progress`,"goalBatch.probes.cell.stale":`Superseded`,"goalBatch.gateCheck.axes_covered":`The trials covered every declared variant`,"goalBatch.gateCheck.count":`{{count}} / {{total}}`,"goalBatch.gateCheck.no_open_decision":`No decision in the batch is waiting on a person`,"goalBatch.gateCheck.plan_written":`The batch plan is written`,"goalBatch.gateCheck.uncovered":`Not covered: {{values}}`,"goalBatch.gateCheck.interventions_accounted":`Every person’s intervention was accounted for`,"goalBatch.gateCheck.reverified":`The delivered units passed the retro’s criteria`,"goalBatch.retro.added":`{{count}} new`,"goalBatch.retro.changes":`{{count}} steps changed`,"goalBatch.retro.criteria":`{{block}} blocking · {{warn}} advisory`,"goalBatch.retro.hint":`What the execution ran into, kept in two layers: experience goes into the plan skill every unit loads, criteria go into the verifier every unit is judged on. The gate opens only after the retro.`,"goalBatch.retro.interventionsShort":`{{accounted}}/{{total}} accounted`,"goalBatch.retro.loosened":`{{count}} loosened, needs you`,"goalBatch.retro.mark.blocked":`Unaccounted`,"goalBatch.retro.mark.done":`Exp v{{skill}} · Crit v{{verifier}}`,"goalBatch.retro.mark.pending":`Retro owed`,"goalBatch.retro.mark.pendingHint":`This wave finished; its retro has not run yet`,"goalBatch.retro.mark.running":`In retro`,"goalBatch.retro.skill":`Experience · plan skill v{{version}}`,"goalBatch.retro.status.blocked":`Interventions not accounted for`,"goalBatch.retro.status.done":`Retro done`,"goalBatch.retro.status.running":`In retro`,"goalBatch.retro.summary.interventions":`{{accounted}}/{{total}} interventions accounted for`,"goalBatch.retro.summary.reverify":`Re-verified {{passed}}/{{total}}`,"goalBatch.retro.summary.skill":`Plan skill v{{version}}: {{count}} steps changed`,"goalBatch.retro.summary.verifier":`Verifier v{{version}}: {{added}} added, {{loosened}} loosened`,"goalBatch.retro.title":`Retro · cold start`,"goalBatch.retro.titleWave":`Retro · wave {{wave}} sent back`,"goalBatch.retro.verifier":`Criteria · verifier v{{version}}`,"goalBatch.gateCheck.units_settled":`Every unit this round finished`,"goalBatch.gateCheck.units_succeeded":`Every unit this round ran through on its own — none failed or was sent back`,"goalBatch.gatePanel.learned":`What this gate taught`,"goalBatch.gatePanel.learnedHint":`Written into the plan every later unit loads, and added to the acceptance each of them must pass.`,"goalBatch.gatePanel.checks":`Checks`,"goalBatch.gatePanel.checksAt":`Verdict {{index}} · {{time}}`,"goalBatch.gatePanel.checksPlanned":`Not judged yet — these will be checked`,"goalBatch.gatePanel.question":`Revise the plan and re-probe, or fork a fresh one for the units that broke?`,"goalBatch.gatePanel.releaseQuestion":`Every check passed. Review the deliveries and the plan — release the next wave, or send the plan back to revise?`,"goalBatch.gatePanel.history":`Verdicts`,"goalBatch.gatePanel.history.blocked":`Held: {{checks}}`,"goalBatch.gatePanel.history.empty":`No verdict yet`,"goalBatch.gatePanel.history.released":`Released wave {{wave}} ({{count}} units)`,"goalBatch.gatePanel.history.unrecorded":`Judged before verdicts were recorded — no detail kept`,"goalBatch.gatePanel.history.unit":`“{{title}}” failed its own check — the batch was held at once`,"goalBatch.gatePanel.next.checking":`Every unit finished — judged on the coordinator’s next step`,"goalBatch.gatePanel.next.human":`Waiting on you: revise the plan, or fork a fresh one for the units that broke`,"goalBatch.gatePanel.next.release":`Waiting on you: review the deliveries and the plan, then release the next wave or revise the plan`,"goalBatch.gatePanel.next.locked":`Judged automatically once this round’s {{count}} units finish`,"goalBatch.gatePanel.next.passed":`Released wave {{wave}} ({{count}} units) — judged again once it finishes`,"goalBatch.gatePanel.next.passedDone":`The whole roster is released`,"goalBatch.gatePanel.next.distilling":`The main Agent is updating the plan from what the probes ran into — judged once it is done`,"goalBatch.gatePanel.next.revising":`The main Agent is rewriting the plan from your correction`,"goalBatch.gatePanel.next.rejected":`Reopened as v{{revision}} on your decision`,"goalBatch.gatePanel.verdict":`Verdict`,"goalBatch.gate.checkCount":`{{count}} checks`,"goalBatch.gate.hintSection.execution":`Execution`,"goalBatch.gate.hintSection.retro":`Retro & criteria`,"goalBatch.gate.hintTitle":`Checked before the rest are released:`,"goalBatch.gate.status.checking":`Judging`,"goalBatch.gate.status.human":`Needs your decision`,"goalBatch.gate.status.locked":`Not judged`,"goalBatch.gate.status.passed":`Passed`,"goalBatch.gate.status.rejected":`Sent back`,"goalBatch.gate.title":`Release gate`,"goalBatch.gate.titleRound":`Release gate · v{{revision}}`,"goalBatch.overviewCount":`Total: {{count}} batches · {{nodes}} nodes`,"goalBatch.probes.hint":`{{count}} representative units run first — the most different ones and the hardest. The rest are released only once every one of them runs through automatically and you approve the release.`,"goalBatch.probes.status.done":`Trials done`,"goalBatch.probes.status.pending":`Not started`,"goalBatch.probes.status.running":`Trials running`,"goalBatch.probes.title":`Cold start · trials`,"goalBatch.probes.rowLabel":`Trials`,"goalBatch.redispatch.foot":`{{count}} units · on v{{revision}}`,"goalBatch.redispatch.fromProbe":`Reopened from trial {{index}}`,"goalBatch.redispatch.fromRound":`Reopened from v{{revision}}`,"goalBatch.redispatch.fromWave":`Reopened from wave {{wave}}, item {{index}}`,"goalBatch.redispatch.title":`Waves · v{{revision}}`,"goalBatch.redispatch.labelRound":`v{{revision}}`,"goalBatch.redispatch.reopenedRow":`Reopened`,"goalBatch.round.foot":`{{count}} units`,"goalBatch.round.reviseEdge":`Sent back · revise`,"goalBatch.round.title":`Round {{revision}}`,"goalBatch.status.done":`All done`,"goalBatch.status.held":`Waiting for your release`,"goalBatch.status.human":`{{count}} need you`,"goalBatch.status.pending":`Not started`,"goalBatch.status.running":`In progress`,"goalBatch.status.stale":`{{count}} superseded`,"goalBatch.skill.forked":`Plan skill v{{revision}} · new class`,"goalBatch.skill.title":`Plan skill v{{revision}}`,"goalBatch.template.forked":`Plan v{{revision}} · new class`,"goalBatch.template.title":`Plan v{{revision}}`,"goalBatch.templatePlain":`Batch plan`,"goalBatch.title":`Repeated batch`,"goalBatch.waves.foot":`{{count}} units / {{waves}} waves`,"goalBatch.waves.row":`W{{number}}`,"goalBatch.waves.title":`Waves`,"goalExperiment.continuedFrom":`Continued exploration`,"goalExperiment.drill":`Explore inside`,"goalExperiment.drillNamed":`Explore inside: {{title}}`,"goalExperiment.location":`Exploration location`,"goalExperiment.expandScope":`Expand this view`,"goalExperiment.collapseScope":`Collapse this view`,"goalExperiment.emptyGraph":`This experiment has no internal nodes yet.`,"goalExperiment.overviewCount":`Total: {{count}} experiments · {{nodes}} nodes`,"goalExperiment.expandAll":`Expand all`,"goalExperiment.collapseAll":`Collapse all`,"goalExperiment.collapseNamed":`Collapse experiment: {{title}}`,"goalExperiment.projectedRelation":`{{relation}} (internal link)`,"goalExperiment.baseline":`Starting experiment · no parent experiment`,"goalExperiment.noResult":`No result has been recorded for this experiment yet.`,"goalExperiment.number":`Experiment #{{number}}`,"goalExperiment.execution":`Execution history`,"goalExperiment.delivery":`View delivery`,"goalExperiment.answers":`Candidate answer`,"goalExperiment.root":`All exploration`,"goalExperiment.inspect":`Experiment details`,"goalExperiment.members":`{{count}} nodes`,"goalExperiment.enter":`Expand in this graph`,"goalExperiment.status.proposed":`Not started`,"goalExperiment.status.active":`Exploring`,"goalExperiment.status.waiting":`Waiting for a decision`,"goalExperiment.status.resolved":`Work completed`,"goalExperiment.status.rejected":`Rejected`,"goalExperiment.status.retired":`Retired`,"goalExperiment.acceptance":`View verification`,"goalExperiment.result":`Experiment results`,"goalExperiment.lineage":`Experiment lineage`,"goalExperiment.parentLink":`From #{{number}} · {{title}}`,"goalExperiment.childLink":`Continued as #{{number}} · {{title}}`,"goalExperiment.instruction":`What this experiment tests`,"goalExperiment.inputs":`Pinned input versions ({{count}})`,"goalExperiment.inputHint":`These are version references recorded when the experiment was created. Execution history contains the actual dispatched input.`,"goalExperiment.unavailableInput":`Referenced work is unavailable`,"ModelSwitch.title":`Model`,active:`Active`,"audioPlayer.download":`Download audio`,"audioPlayer.pause":`Pause audio`,"audioPlayer.play":`Play audio`,"audioPlayer.seek":`Seek audio`,"agentBuilder.installPlugin.authRequired":`Cloud MCP requires sign-in to continue`,"agentBuilder.installPlugin.cancel":`Cancel`,"agentBuilder.installPlugin.clickApproveToConnect":`Click "Approve" to connect and authorize this Integration`,"agentBuilder.installPlugin.clickApproveToInstall":`Click "Approve" to install this Skill`,"agentBuilder.installPlugin.connectedAndEnabled":`Connected and enabled`,"agentBuilder.installPlugin.connectionFailed":`Connection failed. Retry, or check authorization and network settings.`,"agentBuilder.installPlugin.installFailed":`Installation failed. Retry, or view details and try again.`,"agentBuilder.installPlugin.installPlugin":`Install Skill`,"agentBuilder.installPlugin.installToEnable":`Install to enable this Skill for the Agent (you can do it later)`,"agentBuilder.installPlugin.installedAndEnabled":`Installed and enabled`,"agentBuilder.installPlugin.requiresAuth":`Requires authorization. Click "Approve" to connect`,"agentBuilder.installPlugin.retry":`Retry`,"agentBuilder.title":`Agent Builder`,"agentBuilder.welcome":`Tell me your use case.
171
171
 
172
172
  Writing, coding, or data analysis—anything works. You own the goal and standards; I’ll break it down into collaborative, runnable Agents.`,"agentConfigError.retry":`Retry`,"agentConfigError.title":`Failed to load agent settings`,agentDefaultMessage:`Hi, I’m **{{name}}**. One sentence is enough.
173
173