dirac-cli 0.2.52 → 0.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.mjs CHANGED
@@ -7,7 +7,7 @@ const __filename = _fileURLToPath(import.meta.url);
7
7
  const __dirname = _dirname(__filename);
8
8
  var Biu=Object.create;var b6e=Object.defineProperty;var a9n=Object.getOwnPropertyDescriptor;var Diu=Object.getOwnPropertyNames;var kiu=Object.getPrototypeOf,Miu=Object.prototype.hasOwnProperty;var qe=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),o9n=t=>e=>{var r=t[e];if(r)return r();throw new Error("Module not found in bundle: "+e)};var ke=(t,e)=>()=>(t&&(e=t(t=0)),e);var J=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zi=(t,e)=>{for(var r in e)b6e(t,r,{get:e[r],enumerable:!0})},s9n=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Diu(e))!Miu.call(t,a)&&a!==r&&b6e(t,a,{get:()=>e[a],enumerable:!(i=a9n(e,a))||i.enumerable});return t};var Pt=(t,e,r)=>(r=t!=null?Biu(kiu(t)):{},s9n(e||!t||!t.__esModule?b6e(r,"default",{value:t,enumerable:!0}):r,t)),qt=t=>s9n(b6e({},"__esModule",{value:!0}),t),Ia=(t,e,r,i)=>{for(var a=i>1?void 0:i?a9n(e,r):e,o=t.length-1,n;o>=0;o--)(n=t[o])&&(a=(i?n(e,r,a):n(a))||a);return i&&a&&b6e(e,r,a),a};var Tc,bar,za,qP,S6e=ke(()=>{"use strict";(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{let o={};for(let n of a)o[n]=n;return o},t.getValidEnumValues=a=>{let o=t.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),n={};for(let s of o)n[s]=a[s];return t.objectValues(n)},t.objectValues=a=>t.objectKeys(a).map(function(o){return a[o]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let o=[];for(let n in a)Object.prototype.hasOwnProperty.call(a,n)&&o.push(n);return o},t.find=(a,o)=>{for(let n of a)if(o(n))return n},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,o=" | "){return a.map(n=>typeof n=="string"?`'${n}'`:n).join(o)}t.joinValues=i,t.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(Tc||(Tc={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(bar||(bar={}));za=Tc.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qP=t=>{switch(typeof t){case"undefined":return za.undefined;case"string":return za.string;case"number":return Number.isNaN(t)?za.nan:za.number;case"boolean":return za.boolean;case"function":return za.function;case"bigint":return za.bigint;case"symbol":return za.symbol;case"object":return Array.isArray(t)?za.array:t===null?za.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?za.promise:typeof Map<"u"&&t instanceof Map?za.map:typeof Set<"u"&&t instanceof Set?za.set:typeof Date<"u"&&t instanceof Date?za.date:za.object;default:return za.unknown}}});var Gi,Piu,xI,Urt=ke(()=>{"use strict";S6e();Gi=Tc.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Piu=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),xI=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(o){return o.message},i={_errors:[]},a=o=>{for(let n of o.issues)if(n.code==="invalid_union")n.unionErrors.map(a);else if(n.code==="invalid_return_type")a(n.returnTypeError);else if(n.code==="invalid_arguments")a(n.argumentsError);else if(n.path.length===0)i._errors.push(r(n));else{let s=i,u=0;for(;u<n.path.length;){let d=n.path[u];u===n.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(r(n))):s[d]=s[d]||{_errors:[]},s=s[d],u++}}};return a(this),i}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tc.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},i=[];for(let a of this.issues)if(a.path.length>0){let o=a.path[0];r[o]=r[o]||[],r[o].push(e(a))}else i.push(e(a));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};xI.create=t=>new xI(t)});var Oiu,H7,Sar=ke(()=>{"use strict";Urt();S6e();Oiu=(t,e)=>{let r;switch(t.code){case Gi.invalid_type:t.received===za.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case Gi.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Tc.jsonStringifyReplacer)}`;break;case Gi.unrecognized_keys:r=`Unrecognized key(s) in object: ${Tc.joinValues(t.keys,", ")}`;break;case Gi.invalid_union:r="Invalid input";break;case Gi.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Tc.joinValues(t.options)}`;break;case Gi.invalid_enum_value:r=`Invalid enum value. Expected ${Tc.joinValues(t.options)}, received '${t.received}'`;break;case Gi.invalid_arguments:r="Invalid function arguments";break;case Gi.invalid_return_type:r="Invalid function return type";break;case Gi.invalid_date:r="Invalid date";break;case Gi.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Tc.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case Gi.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case Gi.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case Gi.custom:r="Invalid input";break;case Gi.invalid_intersection_types:r="Intersection results could not be merged";break;case Gi.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case Gi.not_finite:r="Number must be finite";break;default:r=e.defaultError,Tc.assertNever(t)}return{message:r}},H7=Oiu});function Niu(t){u9n=t}function vpe(){return u9n}var u9n,Qrt=ke(()=>{"use strict";Sar();u9n=H7});function wa(t,e){let r=vpe(),i=x6e({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===H7?void 0:H7].filter(a=>!!a)});t.common.issues.push(i)}var x6e,Fiu,rC,ls,tte,wv,qrt,Grt,EH,bpe,xar=ke(()=>{"use strict";Qrt();Sar();x6e=t=>{let{data:e,path:r,errorMaps:i,issueData:a}=t,o=[...r,...a.path||[]],n={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let s="",u=i.filter(d=>!!d).slice().reverse();for(let d of u)s=d(n,{data:e,defaultError:s}).message;return{...a,path:o,message:s}},Fiu=[];rC=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let i=[];for(let a of r){if(a.status==="aborted")return ls;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){let i=[];for(let a of r){let o=await a.key,n=await a.value;i.push({key:o,value:n})}return t.mergeObjectSync(e,i)}static mergeObjectSync(e,r){let i={};for(let a of r){let{key:o,value:n}=a;if(o.status==="aborted"||n.status==="aborted")return ls;o.status==="dirty"&&e.dirty(),n.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof n.value<"u"||a.alwaysSet)&&(i[o.value]=n.value)}return{status:e.value,value:i}}},ls=Object.freeze({status:"aborted"}),tte=t=>({status:"dirty",value:t}),wv=t=>({status:"valid",value:t}),qrt=t=>t.status==="aborted",Grt=t=>t.status==="dirty",EH=t=>t.status==="valid",bpe=t=>typeof Promise<"u"&&t instanceof Promise});var c9n=ke(()=>{"use strict"});var Co,l9n=ke(()=>{"use strict";(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Co||(Co={}))});function wu(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:i,description:a}=t;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(n,s)=>{let{message:u}=t;return n.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:u??i??s.defaultError}:n.code!=="invalid_type"?{message:s.defaultError}:{message:u??r??s.defaultError}},description:a}}function p9n(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function eau(t){return new RegExp(`^${p9n(t)}$`)}function A9n(t){let e=`${h9n}T${p9n(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function tau(t,e){return!!((e==="v4"||!e)&&Kiu.test(t)||(e==="v6"||!e)&&$iu.test(t))}function rau(t,e){if(!Hiu.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function nau(t,e){return!!((e==="v4"||!e)&&jiu.test(t)||(e==="v6"||!e)&&Yiu.test(t))}function iau(t,e){let r=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=r>i?r:i,o=Number.parseInt(t.toFixed(a).replace(".","")),n=Number.parseInt(e.toFixed(a).replace(".",""));return o%n/10**a}function Spe(t){if(t instanceof II){let e={};for(let r in t.shape){let i=t.shape[r];e[r]=D3.create(Spe(i))}return new II({...t._def,shape:()=>e})}else return t instanceof z7?new z7({...t._def,type:Spe(t.element)}):t instanceof D3?D3.create(Spe(t.unwrap())):t instanceof HP?HP.create(Spe(t.unwrap())):t instanceof GP?GP.create(t.items.map(e=>Spe(e))):t}function _ar(t,e){let r=qP(t),i=qP(e);if(t===e)return{valid:!0,data:t};if(r===za.object&&i===za.object){let a=Tc.objectKeys(e),o=Tc.objectKeys(t).filter(s=>a.indexOf(s)!==-1),n={...t,...e};for(let s of o){let u=_ar(t[s],e[s]);if(!u.valid)return{valid:!1};n[s]=u.data}return{valid:!0,data:n}}else if(r===za.array&&i===za.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let o=0;o<t.length;o++){let n=t[o],s=e[o],u=_ar(n,s);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return r===za.date&&i===za.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function g9n(t,e){return new fte({values:t,typeName:$i.ZodEnum,...wu(e)})}function f9n(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function m9n(t,e={},r){return t?CH.create().superRefine((i,a)=>{let o=t(i);if(o instanceof Promise)return o.then(n=>{if(!n){let s=f9n(e,i),u=s.fatal??r??!0;a.addIssue({code:"custom",...s,fatal:u})}});if(!o){let n=f9n(e,i),s=n.fatal??r??!0;a.addIssue({code:"custom",...n,fatal:s})}}):CH.create()}var k3,d9n,Gu,Liu,Uiu,Qiu,qiu,Giu,Hiu,Viu,Wiu,ziu,Iar,Kiu,jiu,$iu,Yiu,Jiu,Xiu,h9n,Ziu,yH,rte,nte,ite,ate,xpe,ote,ste,CH,W7,P4,Ipe,z7,II,ute,V7,Hrt,cte,GP,Vrt,_pe,Tpe,Wrt,lte,dte,fte,hte,vH,M3,D3,HP,pte,Ate,wpe,aau,I6e,_6e,gte,oau,$i,sau,E9n,y9n,uau,cau,C9n,lau,dau,fau,hau,pau,Aau,gau,mau,Eau,yau,Cau,vau,bau,Sau,xau,Iau,_au,Tau,wau,Rau,Bau,Dau,kau,Mau,Pau,Oau,Nau,Fau,Lau,Uau,Qau,qau,Gau,Hau,v9n=ke(()=>{"use strict";Urt();Qrt();l9n();xar();S6e();k3=class{constructor(e,r,i,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},d9n=(t,e)=>{if(EH(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new xI(t.common.issues);return this._error=r,this._error}}};Gu=class{get description(){return this._def.description}_getType(e){return qP(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:qP(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new rC,ctx:{common:e.parent.common,data:e.data,parsedType:qP(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(bpe(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){let i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qP(e)},a=this._parseSync({data:e,path:i.path,parent:i});return d9n(i,a)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qP(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:r});return EH(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>EH(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){let i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qP(e)},a=this._parse({data:e,path:i.path,parent:i}),o=await(bpe(a)?a:Promise.resolve(a));return d9n(i,o)}refine(e,r){let i=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{let n=e(a),s=()=>o.addIssue({code:Gi.custom,...i(a)});return typeof Promise<"u"&&n instanceof Promise?n.then(u=>u?!0:(s(),!1)):n?!0:(s(),!1)})}refinement(e,r){return this._refinement((i,a)=>e(i)?!0:(a.addIssue(typeof r=="function"?r(i,a):r),!1))}_refinement(e){return new M3({schema:this,typeName:$i.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return D3.create(this,this._def)}nullable(){return HP.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return z7.create(this)}promise(){return vH.create(this,this._def)}or(e){return ute.create([this,e],this._def)}and(e){return cte.create(this,e,this._def)}transform(e){return new M3({...wu(this._def),schema:this,typeName:$i.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new pte({...wu(this._def),innerType:this,defaultValue:r,typeName:$i.ZodDefault})}brand(){return new I6e({typeName:$i.ZodBranded,type:this,...wu(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Ate({...wu(this._def),innerType:this,catchValue:r,typeName:$i.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return _6e.create(this,e)}readonly(){return gte.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Liu=/^c[^\s-]{8,}$/i,Uiu=/^[0-9a-z]+$/,Qiu=/^[0-9A-HJKMNP-TV-Z]{26}$/i,qiu=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Giu=/^[a-z0-9_-]{21}$/i,Hiu=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Viu=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Wiu=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ziu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Kiu=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jiu=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$iu=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Yiu=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Jiu=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Xiu=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,h9n="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ziu=new RegExp(`^${h9n}$`);yH=class t extends Gu{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==za.string){let o=this._getOrReturnCtx(e);return wa(o,{code:Gi.invalid_type,expected:za.string,received:o.parsedType}),ls}let i=new rC,a;for(let o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")e.data.length>o.value&&(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let n=e.data.length>o.value,s=e.data.length<o.value;(n||s)&&(a=this._getOrReturnCtx(e,a),n?wa(a,{code:Gi.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&wa(a,{code:Gi.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Wiu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"email",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")Iar||(Iar=new RegExp(ziu,"u")),Iar.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"emoji",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")qiu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"uuid",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")Giu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"nanoid",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Liu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"cuid",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Uiu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"cuid2",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Qiu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"ulid",code:Gi.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),wa(a,{validation:"url",code:Gi.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"regex",code:Gi.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?A9n(o).test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?Ziu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?eau(o).test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?Viu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"duration",code:Gi.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?tau(e.data,o.version)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"ip",code:Gi.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?rau(e.data,o.alg)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"jwt",code:Gi.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?nau(e.data,o.version)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"cidr",code:Gi.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?Jiu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"base64",code:Gi.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?Xiu.test(e.data)||(a=this._getOrReturnCtx(e,a),wa(a,{validation:"base64url",code:Gi.invalid_string,message:o.message}),i.dirty()):Tc.assertNever(o);return{status:i.value,value:e.data}}_regex(e,r,i){return this.refinement(a=>e.test(a),{validation:r,code:Gi.invalid_string,...Co.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Co.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Co.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Co.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Co.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Co.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Co.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Co.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Co.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Co.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Co.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Co.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Co.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Co.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Co.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Co.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Co.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...Co.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...Co.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...Co.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...Co.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...Co.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...Co.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...Co.errToObj(r)})}nonempty(e){return this.min(1,Co.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};yH.create=t=>new yH({checks:[],typeName:$i.ZodString,coerce:t?.coerce??!1,...wu(t)});rte=class t extends Gu{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==za.number){let o=this._getOrReturnCtx(e);return wa(o,{code:Gi.invalid_type,expected:za.number,received:o.parsedType}),ls}let i,a=new rC;for(let o of this._def.checks)o.kind==="int"?Tc.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?iau(e.data,o.value)!==0&&(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.not_finite,message:o.message}),a.dirty()):Tc.assertNever(o);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,Co.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Co.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Co.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Co.toString(r))}setLimit(e,r,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:Co.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Co.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Co.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Co.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Co.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Co.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Co.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:Co.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Co.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Co.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tc.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}};rte.create=t=>new rte({checks:[],typeName:$i.ZodNumber,coerce:t?.coerce||!1,...wu(t)});nte=class t extends Gu{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==za.bigint)return this._getInvalidInput(e);let i,a=new rC;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),wa(i,{code:Gi.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):Tc.assertNever(o);return{status:a.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return wa(r,{code:Gi.invalid_type,expected:za.bigint,received:r.parsedType}),ls}gte(e,r){return this.setLimit("min",e,!0,Co.toString(r))}gt(e,r){return this.setLimit("min",e,!1,Co.toString(r))}lte(e,r){return this.setLimit("max",e,!0,Co.toString(r))}lt(e,r){return this.setLimit("max",e,!1,Co.toString(r))}setLimit(e,r,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:Co.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Co.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Co.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Co.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Co.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:Co.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};nte.create=t=>new nte({checks:[],typeName:$i.ZodBigInt,coerce:t?.coerce??!1,...wu(t)});ite=class extends Gu{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==za.boolean){let i=this._getOrReturnCtx(e);return wa(i,{code:Gi.invalid_type,expected:za.boolean,received:i.parsedType}),ls}return wv(e.data)}};ite.create=t=>new ite({typeName:$i.ZodBoolean,coerce:t?.coerce||!1,...wu(t)});ate=class t extends Gu{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==za.date){let o=this._getOrReturnCtx(e);return wa(o,{code:Gi.invalid_type,expected:za.date,received:o.parsedType}),ls}if(Number.isNaN(e.data.getTime())){let o=this._getOrReturnCtx(e);return wa(o,{code:Gi.invalid_date}),ls}let i=new rC,a;for(let o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(a=this._getOrReturnCtx(e,a),wa(a,{code:Gi.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):Tc.assertNever(o);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:Co.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:Co.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};ate.create=t=>new ate({checks:[],coerce:t?.coerce||!1,typeName:$i.ZodDate,...wu(t)});xpe=class extends Gu{_parse(e){if(this._getType(e)!==za.symbol){let i=this._getOrReturnCtx(e);return wa(i,{code:Gi.invalid_type,expected:za.symbol,received:i.parsedType}),ls}return wv(e.data)}};xpe.create=t=>new xpe({typeName:$i.ZodSymbol,...wu(t)});ote=class extends Gu{_parse(e){if(this._getType(e)!==za.undefined){let i=this._getOrReturnCtx(e);return wa(i,{code:Gi.invalid_type,expected:za.undefined,received:i.parsedType}),ls}return wv(e.data)}};ote.create=t=>new ote({typeName:$i.ZodUndefined,...wu(t)});ste=class extends Gu{_parse(e){if(this._getType(e)!==za.null){let i=this._getOrReturnCtx(e);return wa(i,{code:Gi.invalid_type,expected:za.null,received:i.parsedType}),ls}return wv(e.data)}};ste.create=t=>new ste({typeName:$i.ZodNull,...wu(t)});CH=class extends Gu{constructor(){super(...arguments),this._any=!0}_parse(e){return wv(e.data)}};CH.create=t=>new CH({typeName:$i.ZodAny,...wu(t)});W7=class extends Gu{constructor(){super(...arguments),this._unknown=!0}_parse(e){return wv(e.data)}};W7.create=t=>new W7({typeName:$i.ZodUnknown,...wu(t)});P4=class extends Gu{_parse(e){let r=this._getOrReturnCtx(e);return wa(r,{code:Gi.invalid_type,expected:za.never,received:r.parsedType}),ls}};P4.create=t=>new P4({typeName:$i.ZodNever,...wu(t)});Ipe=class extends Gu{_parse(e){if(this._getType(e)!==za.undefined){let i=this._getOrReturnCtx(e);return wa(i,{code:Gi.invalid_type,expected:za.void,received:i.parsedType}),ls}return wv(e.data)}};Ipe.create=t=>new Ipe({typeName:$i.ZodVoid,...wu(t)});z7=class t extends Gu{_parse(e){let{ctx:r,status:i}=this._processInputParams(e),a=this._def;if(r.parsedType!==za.array)return wa(r,{code:Gi.invalid_type,expected:za.array,received:r.parsedType}),ls;if(a.exactLength!==null){let n=r.data.length>a.exactLength.value,s=r.data.length<a.exactLength.value;(n||s)&&(wa(r,{code:n?Gi.too_big:Gi.too_small,minimum:s?a.exactLength.value:void 0,maximum:n?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(wa(r,{code:Gi.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(wa(r,{code:Gi.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((n,s)=>a.type._parseAsync(new k3(r,n,r.path,s)))).then(n=>rC.mergeArray(i,n));let o=[...r.data].map((n,s)=>a.type._parseSync(new k3(r,n,r.path,s)));return rC.mergeArray(i,o)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:Co.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:Co.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:Co.toString(r)}})}nonempty(e){return this.min(1,e)}};z7.create=(t,e)=>new z7({type:t,minLength:null,maxLength:null,exactLength:null,typeName:$i.ZodArray,...wu(e)});II=class t extends Gu{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Tc.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==za.object){let d=this._getOrReturnCtx(e);return wa(d,{code:Gi.invalid_type,expected:za.object,received:d.parsedType}),ls}let{status:i,ctx:a}=this._processInputParams(e),{shape:o,keys:n}=this._getCached(),s=[];if(!(this._def.catchall instanceof P4&&this._def.unknownKeys==="strip"))for(let d in a.data)n.includes(d)||s.push(d);let u=[];for(let d of n){let f=o[d],h=a.data[d];u.push({key:{status:"valid",value:d},value:f._parse(new k3(a,h,a.path,d)),alwaysSet:d in a.data})}if(this._def.catchall instanceof P4){let d=this._def.unknownKeys;if(d==="passthrough")for(let f of s)u.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(d==="strict")s.length>0&&(wa(a,{code:Gi.unrecognized_keys,keys:s}),i.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let d=this._def.catchall;for(let f of s){let h=a.data[f];u.push({key:{status:"valid",value:f},value:d._parse(new k3(a,h,a.path,f)),alwaysSet:f in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let d=[];for(let f of u){let h=await f.key,c=await f.value;d.push({key:h,value:c,alwaysSet:f.alwaysSet})}return d}).then(d=>rC.mergeObjectSync(i,d)):rC.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(e){return Co.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{let a=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:Co.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$i.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let i of Tc.objectKeys(e))e[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let i of Tc.objectKeys(this.shape))e[i]||(r[i]=this.shape[i]);return new t({...this._def,shape:()=>r})}deepPartial(){return Spe(this)}partial(e){let r={};for(let i of Tc.objectKeys(this.shape)){let a=this.shape[i];e&&!e[i]?r[i]=a:r[i]=a.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let i of Tc.objectKeys(this.shape))if(e&&!e[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof D3;)o=o._def.innerType;r[i]=o}return new t({...this._def,shape:()=>r})}keyof(){return g9n(Tc.objectKeys(this.shape))}};II.create=(t,e)=>new II({shape:()=>t,unknownKeys:"strip",catchall:P4.create(),typeName:$i.ZodObject,...wu(e)});II.strictCreate=(t,e)=>new II({shape:()=>t,unknownKeys:"strict",catchall:P4.create(),typeName:$i.ZodObject,...wu(e)});II.lazycreate=(t,e)=>new II({shape:t,unknownKeys:"strip",catchall:P4.create(),typeName:$i.ZodObject,...wu(e)});ute=class extends Gu{_parse(e){let{ctx:r}=this._processInputParams(e),i=this._def.options;function a(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let n=o.map(s=>new xI(s.ctx.common.issues));return wa(r,{code:Gi.invalid_union,unionErrors:n}),ls}if(r.common.async)return Promise.all(i.map(async o=>{let n={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:n}),ctx:n}})).then(a);{let o,n=[];for(let u of i){let d={...r,common:{...r.common,issues:[]},parent:null},f=u._parseSync({data:r.data,path:r.path,parent:d});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:d}),d.common.issues.length&&n.push(d.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=n.map(u=>new xI(u));return wa(r,{code:Gi.invalid_union,unionErrors:s}),ls}}get options(){return this._def.options}};ute.create=(t,e)=>new ute({options:t,typeName:$i.ZodUnion,...wu(e)});V7=t=>t instanceof lte?V7(t.schema):t instanceof M3?V7(t.innerType()):t instanceof dte?[t.value]:t instanceof fte?t.options:t instanceof hte?Tc.objectValues(t.enum):t instanceof pte?V7(t._def.innerType):t instanceof ote?[void 0]:t instanceof ste?[null]:t instanceof D3?[void 0,...V7(t.unwrap())]:t instanceof HP?[null,...V7(t.unwrap())]:t instanceof I6e||t instanceof gte?V7(t.unwrap()):t instanceof Ate?V7(t._def.innerType):[],Hrt=class t extends Gu{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==za.object)return wa(r,{code:Gi.invalid_type,expected:za.object,received:r.parsedType}),ls;let i=this.discriminator,a=r.data[i],o=this.optionsMap.get(a);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(wa(r,{code:Gi.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),ls)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){let a=new Map;for(let o of r){let n=V7(o.shape[e]);if(!n.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of n){if(a.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);a.set(s,o)}}return new t({typeName:$i.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a,...wu(i)})}};cte=class extends Gu{_parse(e){let{status:r,ctx:i}=this._processInputParams(e),a=(o,n)=>{if(qrt(o)||qrt(n))return ls;let s=_ar(o.value,n.value);return s.valid?((Grt(o)||Grt(n))&&r.dirty(),{status:r.value,value:s.data}):(wa(i,{code:Gi.invalid_intersection_types}),ls)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,n])=>a(o,n)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};cte.create=(t,e,r)=>new cte({left:t,right:e,typeName:$i.ZodIntersection,...wu(r)});GP=class t extends Gu{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==za.array)return wa(i,{code:Gi.invalid_type,expected:za.array,received:i.parsedType}),ls;if(i.data.length<this._def.items.length)return wa(i,{code:Gi.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ls;!this._def.rest&&i.data.length>this._def.items.length&&(wa(i,{code:Gi.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...i.data].map((n,s)=>{let u=this._def.items[s]||this._def.rest;return u?u._parse(new k3(i,n,i.path,s)):null}).filter(n=>!!n);return i.common.async?Promise.all(o).then(n=>rC.mergeArray(r,n)):rC.mergeArray(r,o)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};GP.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new GP({items:t,typeName:$i.ZodTuple,rest:null,...wu(e)})};Vrt=class t extends Gu{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==za.object)return wa(i,{code:Gi.invalid_type,expected:za.object,received:i.parsedType}),ls;let a=[],o=this._def.keyType,n=this._def.valueType;for(let s in i.data)a.push({key:o._parse(new k3(i,s,i.path,s)),value:n._parse(new k3(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?rC.mergeObjectAsync(r,a):rC.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof Gu?new t({keyType:e,valueType:r,typeName:$i.ZodRecord,...wu(i)}):new t({keyType:yH.create(),valueType:e,typeName:$i.ZodRecord,...wu(r)})}},_pe=class extends Gu{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==za.map)return wa(i,{code:Gi.invalid_type,expected:za.map,received:i.parsedType}),ls;let a=this._def.keyType,o=this._def.valueType,n=[...i.data.entries()].map(([s,u],d)=>({key:a._parse(new k3(i,s,i.path,[d,"key"])),value:o._parse(new k3(i,u,i.path,[d,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let u of n){let d=await u.key,f=await u.value;if(d.status==="aborted"||f.status==="aborted")return ls;(d.status==="dirty"||f.status==="dirty")&&r.dirty(),s.set(d.value,f.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let u of n){let d=u.key,f=u.value;if(d.status==="aborted"||f.status==="aborted")return ls;(d.status==="dirty"||f.status==="dirty")&&r.dirty(),s.set(d.value,f.value)}return{status:r.value,value:s}}}};_pe.create=(t,e,r)=>new _pe({valueType:e,keyType:t,typeName:$i.ZodMap,...wu(r)});Tpe=class t extends Gu{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==za.set)return wa(i,{code:Gi.invalid_type,expected:za.set,received:i.parsedType}),ls;let a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(wa(i,{code:Gi.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(wa(i,{code:Gi.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());let o=this._def.valueType;function n(u){let d=new Set;for(let f of u){if(f.status==="aborted")return ls;f.status==="dirty"&&r.dirty(),d.add(f.value)}return{status:r.value,value:d}}let s=[...i.data.values()].map((u,d)=>o._parse(new k3(i,u,i.path,d)));return i.common.async?Promise.all(s).then(u=>n(u)):n(s)}min(e,r){return new t({...this._def,minSize:{value:e,message:Co.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:Co.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Tpe.create=(t,e)=>new Tpe({valueType:t,minSize:null,maxSize:null,typeName:$i.ZodSet,...wu(e)});Wrt=class t extends Gu{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==za.function)return wa(r,{code:Gi.invalid_type,expected:za.function,received:r.parsedType}),ls;function i(s,u){return x6e({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,vpe(),H7].filter(d=>!!d),issueData:{code:Gi.invalid_arguments,argumentsError:u}})}function a(s,u){return x6e({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,vpe(),H7].filter(d=>!!d),issueData:{code:Gi.invalid_return_type,returnTypeError:u}})}let o={errorMap:r.common.contextualErrorMap},n=r.data;if(this._def.returns instanceof vH){let s=this;return wv(async function(...u){let d=new xI([]),f=await s._def.args.parseAsync(u,o).catch(p=>{throw d.addIssue(i(u,p)),d}),h=await Reflect.apply(n,this,f);return await s._def.returns._def.type.parseAsync(h,o).catch(p=>{throw d.addIssue(a(h,p)),d})})}else{let s=this;return wv(function(...u){let d=s._def.args.safeParse(u,o);if(!d.success)throw new xI([i(u,d.error)]);let f=Reflect.apply(n,this,d.data),h=s._def.returns.safeParse(f,o);if(!h.success)throw new xI([a(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:GP.create(e).rest(W7.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new t({args:e||GP.create([]).rest(W7.create()),returns:r||W7.create(),typeName:$i.ZodFunction,...wu(i)})}},lte=class extends Gu{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};lte.create=(t,e)=>new lte({getter:t,typeName:$i.ZodLazy,...wu(e)});dte=class extends Gu{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return wa(r,{received:r.data,code:Gi.invalid_literal,expected:this._def.value}),ls}return{status:"valid",value:e.data}}get value(){return this._def.value}};dte.create=(t,e)=>new dte({value:t,typeName:$i.ZodLiteral,...wu(e)});fte=class t extends Gu{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),i=this._def.values;return wa(r,{expected:Tc.joinValues(i),received:r.parsedType,code:Gi.invalid_type}),ls}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),i=this._def.values;return wa(r,{received:r.data,code:Gi.invalid_enum_value,options:i}),ls}return wv(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(i=>!e.includes(i)),{...this._def,...r})}};fte.create=g9n;hte=class extends Gu{_parse(e){let r=Tc.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==za.string&&i.parsedType!==za.number){let a=Tc.objectValues(r);return wa(i,{expected:Tc.joinValues(a),received:i.parsedType,code:Gi.invalid_type}),ls}if(this._cache||(this._cache=new Set(Tc.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=Tc.objectValues(r);return wa(i,{received:i.data,code:Gi.invalid_enum_value,options:a}),ls}return wv(e.data)}get enum(){return this._def.values}};hte.create=(t,e)=>new hte({values:t,typeName:$i.ZodNativeEnum,...wu(e)});vH=class extends Gu{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==za.promise&&r.common.async===!1)return wa(r,{code:Gi.invalid_type,expected:za.promise,received:r.parsedType}),ls;let i=r.parsedType===za.promise?r.data:Promise.resolve(r.data);return wv(i.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}};vH.create=(t,e)=>new vH({type:t,typeName:$i.ZodPromise,...wu(e)});M3=class extends Gu{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$i.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:i}=this._processInputParams(e),a=this._def.effect||null,o={addIssue:n=>{wa(i,n),n.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){let n=a.transform(i.data,o);if(i.common.async)return Promise.resolve(n).then(async s=>{if(r.value==="aborted")return ls;let u=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return u.status==="aborted"?ls:u.status==="dirty"?tte(u.value):r.value==="dirty"?tte(u.value):u});{if(r.value==="aborted")return ls;let s=this._def.schema._parseSync({data:n,path:i.path,parent:i});return s.status==="aborted"?ls:s.status==="dirty"?tte(s.value):r.value==="dirty"?tte(s.value):s}}if(a.type==="refinement"){let n=s=>{let u=a.refinement(s,o);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?ls:(s.status==="dirty"&&r.dirty(),n(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?ls:(s.status==="dirty"&&r.dirty(),n(s.value).then(()=>({status:r.value,value:s.value}))))}if(a.type==="transform")if(i.common.async===!1){let n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!EH(n))return ls;let s=a.transform(n.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(n=>EH(n)?Promise.resolve(a.transform(n.value,o)).then(s=>({status:r.value,value:s})):ls);Tc.assertNever(a)}};M3.create=(t,e,r)=>new M3({schema:t,typeName:$i.ZodEffects,effect:e,...wu(r)});M3.createWithPreprocess=(t,e,r)=>new M3({schema:e,effect:{type:"preprocess",transform:t},typeName:$i.ZodEffects,...wu(r)});D3=class extends Gu{_parse(e){return this._getType(e)===za.undefined?wv(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};D3.create=(t,e)=>new D3({innerType:t,typeName:$i.ZodOptional,...wu(e)});HP=class extends Gu{_parse(e){return this._getType(e)===za.null?wv(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};HP.create=(t,e)=>new HP({innerType:t,typeName:$i.ZodNullable,...wu(e)});pte=class extends Gu{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return r.parsedType===za.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};pte.create=(t,e)=>new pte({innerType:t,typeName:$i.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...wu(e)});Ate=class extends Gu{_parse(e){let{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return bpe(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new xI(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new xI(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Ate.create=(t,e)=>new Ate({innerType:t,typeName:$i.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...wu(e)});wpe=class extends Gu{_parse(e){if(this._getType(e)!==za.nan){let i=this._getOrReturnCtx(e);return wa(i,{code:Gi.invalid_type,expected:za.nan,received:i.parsedType}),ls}return{status:"valid",value:e.data}}};wpe.create=t=>new wpe({typeName:$i.ZodNaN,...wu(t)});aau=Symbol("zod_brand"),I6e=class extends Gu{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},_6e=class t extends Gu{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?ls:o.status==="dirty"?(r.dirty(),tte(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?ls:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,r){return new t({in:e,out:r,typeName:$i.ZodPipeline})}},gte=class extends Gu{_parse(e){let r=this._def.innerType._parse(e),i=a=>(EH(a)&&(a.value=Object.freeze(a.value)),a);return bpe(r)?r.then(a=>i(a)):i(r)}unwrap(){return this._def.innerType}};gte.create=(t,e)=>new gte({innerType:t,typeName:$i.ZodReadonly,...wu(e)});oau={object:II.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})($i||($i={}));sau=(t,e={message:`Input not instance of ${t.name}`})=>m9n(r=>r instanceof t,e),E9n=yH.create,y9n=rte.create,uau=wpe.create,cau=nte.create,C9n=ite.create,lau=ate.create,dau=xpe.create,fau=ote.create,hau=ste.create,pau=CH.create,Aau=W7.create,gau=P4.create,mau=Ipe.create,Eau=z7.create,yau=II.create,Cau=II.strictCreate,vau=ute.create,bau=Hrt.create,Sau=cte.create,xau=GP.create,Iau=Vrt.create,_au=_pe.create,Tau=Tpe.create,wau=Wrt.create,Rau=lte.create,Bau=dte.create,Dau=fte.create,kau=hte.create,Mau=vH.create,Pau=M3.create,Oau=D3.create,Nau=HP.create,Fau=M3.createWithPreprocess,Lau=_6e.create,Uau=()=>E9n().optional(),Qau=()=>y9n().optional(),qau=()=>C9n().optional(),Gau={string:(t=>yH.create({...t,coerce:!0})),number:(t=>rte.create({...t,coerce:!0})),boolean:(t=>ite.create({...t,coerce:!0})),bigint:(t=>nte.create({...t,coerce:!0})),date:(t=>ate.create({...t,coerce:!0}))},Hau=ls});var ic={};Zi(ic,{BRAND:()=>aau,DIRTY:()=>tte,EMPTY_PATH:()=>Fiu,INVALID:()=>ls,NEVER:()=>Hau,OK:()=>wv,ParseStatus:()=>rC,Schema:()=>Gu,ZodAny:()=>CH,ZodArray:()=>z7,ZodBigInt:()=>nte,ZodBoolean:()=>ite,ZodBranded:()=>I6e,ZodCatch:()=>Ate,ZodDate:()=>ate,ZodDefault:()=>pte,ZodDiscriminatedUnion:()=>Hrt,ZodEffects:()=>M3,ZodEnum:()=>fte,ZodError:()=>xI,ZodFirstPartyTypeKind:()=>$i,ZodFunction:()=>Wrt,ZodIntersection:()=>cte,ZodIssueCode:()=>Gi,ZodLazy:()=>lte,ZodLiteral:()=>dte,ZodMap:()=>_pe,ZodNaN:()=>wpe,ZodNativeEnum:()=>hte,ZodNever:()=>P4,ZodNull:()=>ste,ZodNullable:()=>HP,ZodNumber:()=>rte,ZodObject:()=>II,ZodOptional:()=>D3,ZodParsedType:()=>za,ZodPipeline:()=>_6e,ZodPromise:()=>vH,ZodReadonly:()=>gte,ZodRecord:()=>Vrt,ZodSchema:()=>Gu,ZodSet:()=>Tpe,ZodString:()=>yH,ZodSymbol:()=>xpe,ZodTransformer:()=>M3,ZodTuple:()=>GP,ZodType:()=>Gu,ZodUndefined:()=>ote,ZodUnion:()=>ute,ZodUnknown:()=>W7,ZodVoid:()=>Ipe,addIssueToContext:()=>wa,any:()=>pau,array:()=>Eau,bigint:()=>cau,boolean:()=>C9n,coerce:()=>Gau,custom:()=>m9n,date:()=>lau,datetimeRegex:()=>A9n,defaultErrorMap:()=>H7,discriminatedUnion:()=>bau,effect:()=>Pau,enum:()=>Dau,function:()=>wau,getErrorMap:()=>vpe,getParsedType:()=>qP,instanceof:()=>sau,intersection:()=>Sau,isAborted:()=>qrt,isAsync:()=>bpe,isDirty:()=>Grt,isValid:()=>EH,late:()=>oau,lazy:()=>Rau,literal:()=>Bau,makeIssue:()=>x6e,map:()=>_au,nan:()=>uau,nativeEnum:()=>kau,never:()=>gau,null:()=>hau,nullable:()=>Nau,number:()=>y9n,object:()=>yau,objectUtil:()=>bar,oboolean:()=>qau,onumber:()=>Qau,optional:()=>Oau,ostring:()=>Uau,pipeline:()=>Lau,preprocess:()=>Fau,promise:()=>Mau,quotelessJson:()=>Piu,record:()=>Iau,set:()=>Tau,setErrorMap:()=>Niu,strictObject:()=>Cau,string:()=>E9n,symbol:()=>dau,transformer:()=>Pau,tuple:()=>xau,undefined:()=>fau,union:()=>vau,unknown:()=>Aau,util:()=>Tc,void:()=>mau});var Tar=ke(()=>{"use strict";Qrt();xar();c9n();S6e();v9n();Urt()});var war=ke(()=>{"use strict";Tar();Tar()});function tqn(){let t=0,e=0;for(let i=0;i<28;i+=7){let a=this.buf[this.pos++];if(t|=(a&127)<<i,(a&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let a=this.buf[this.pos++];if(e|=(a&127)<<i,(a&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}function Knt(t,e,r){for(let o=0;o<28;o=o+7){let n=t>>>o,s=!(!(n>>>7)&&e==0),u=(s?n|128:n)&255;if(r.push(u),!s)return}let i=t>>>28&15|(e&7)<<4,a=e>>3!=0;if(r.push((a?i|128:i)&255),!!a){for(let o=3;o<31;o=o+7){let n=e>>>o,s=!!(n>>>7),u=(s?n|128:n)&255;if(r.push(u),!s)return}r.push(e>>>31&1)}}function gcr(t){let e=t[0]==="-";e&&(t=t.slice(1));let r=1e6,i=0,a=0;function o(n,s){let u=Number(t.slice(n,s));a*=r,i=i*r+u,i>=znt&&(a=a+(i/znt|0),i=i%znt)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),e?nqn(i,a):Ecr(i,a)}function rqn(t,e){let r=Ecr(t,e),i=r.hi&2147483648;i&&(r=nqn(r.lo,r.hi));let a=mcr(r.lo,r.hi);return i?"-"+a:a}function mcr(t,e){if({lo:t,hi:e}=tlu(t,e),e<=2097151)return String(znt*e+t);let r=t&16777215,i=(t>>>24|e<<8)&16777215,a=e>>16&65535,o=r+i*6777216+a*6710656,n=i+a*8147497,s=a*2,u=1e7;return o>=u&&(n+=Math.floor(o/u),o%=u),n>=u&&(s+=Math.floor(n/u),n%=u),s.toString()+eqn(n)+eqn(o)}function tlu(t,e){return{lo:t>>>0,hi:e>>>0}}function Ecr(t,e){return{lo:t|0,hi:e|0}}function nqn(t,e){return e=~e,t?t=~t+1:e+=1,Ecr(t,e)}function ycr(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}function iqn(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}var znt,eqn,Ccr=ke(()=>{"use strict";znt=4294967296;eqn=t=>{let e=String(t);return"0000000".slice(e.length)+e}});function rlu(){let t=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"&&(!!globalThis.Deno||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){let r=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),a=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(n){let s=typeof n=="bigint"?n:BigInt(n);if(s>i||s<r)throw new Error(`invalid int64: ${n}`);return s},uParse(n){let s=typeof n=="bigint"?n:BigInt(n);if(s>o||s<a)throw new Error(`invalid uint64: ${n}`);return s},enc(n){return t.setBigInt64(0,this.parse(n),!0),{lo:t.getInt32(0,!0),hi:t.getInt32(4,!0)}},uEnc(n){return t.setBigInt64(0,this.uParse(n),!0),{lo:t.getInt32(0,!0),hi:t.getInt32(4,!0)}},dec(n,s){return t.setInt32(0,n,!0),t.setInt32(4,s,!0),t.getBigInt64(0,!0)},uDec(n,s){return t.setInt32(0,n,!0),t.setInt32(4,s,!0),t.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(r){return typeof r!="string"&&(r=r.toString()),aqn(r),r},uParse(r){return typeof r!="string"&&(r=r.toString()),oqn(r),r},enc(r){return typeof r!="string"&&(r=r.toString()),aqn(r),gcr(r)},uEnc(r){return typeof r!="string"&&(r=r.toString()),oqn(r),gcr(r)},dec(r,i){return rqn(r,i)},uDec(r,i){return mcr(r,i)}}}function aqn(t){if(!/^-?[0-9]+$/.test(t))throw new Error("invalid int64: "+t)}function oqn(t){if(!/^[0-9]+$/.test(t))throw new Error("invalid uint64: "+t)}var N4,sqn=ke(()=>{"use strict";Ccr();N4=rlu()});function bcr(){if(globalThis[vcr]==null){let t=new globalThis.TextEncoder,e=new globalThis.TextDecoder;globalThis[vcr]={encodeUtf8(r){return t.encode(r)},decodeUtf8(r){return e.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch{return!1}}}}return globalThis[vcr]}var vcr,Scr=ke(()=>{"use strict";vcr=Symbol.for("@bufbuild/protobuf/text-encoding")});function xcr(t){if(typeof t=="string")t=Number(t);else if(typeof t!="number")throw new Error("invalid int32: "+typeof t);if(!Number.isInteger(t)||t>olu||t<slu)throw new Error("invalid int32: "+t)}function uqn(t){if(typeof t=="string")t=Number(t);else if(typeof t!="number")throw new Error("invalid uint32: "+typeof t);if(!Number.isInteger(t)||t>alu||t<0)throw new Error("invalid uint32: "+t)}function ulu(t){if(typeof t=="string"){let e=t;if(t=Number(t),Number.isNaN(t)&&e!=="NaN")throw new Error("invalid float32: "+e)}else if(typeof t!="number")throw new Error("invalid float32: "+typeof t);if(Number.isFinite(t)&&(t>nlu||t<ilu))throw new Error("invalid float32: "+t)}var IH,nlu,ilu,alu,olu,slu,hr,At,cqn=ke(()=>{"use strict";Ccr();sqn();Scr();(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(IH||(IH={}));nlu=34028234663852886e22,ilu=-34028234663852886e22,alu=4294967295,olu=2147483647,slu=-2147483648,hr=class{constructor(e=bcr().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let a=0;a<this.chunks.length;a++)e+=this.chunks[a].length;let r=new Uint8Array(e),i=0;for(let a=0;a<this.chunks.length;a++)r.set(this.chunks[a],i),i+=this.chunks[a].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,r){return this.uint32((e<<3|r)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(uqn(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return xcr(e),ycr(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let r=this.encodeUtf8(e);return this.uint32(r.byteLength),this.raw(r)}float(e){ulu(e);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,e,!0),this.raw(r)}double(e){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,e,!0),this.raw(r)}fixed32(e){uqn(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){xcr(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return xcr(e),e=(e<<1^e>>31)>>>0,ycr(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),i=new DataView(r.buffer),a=N4.enc(e);return i.setInt32(0,a.lo,!0),i.setInt32(4,a.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),i=new DataView(r.buffer),a=N4.uEnc(e);return i.setInt32(0,a.lo,!0),i.setInt32(4,a.hi,!0),this.raw(r)}int64(e){let r=N4.enc(e);return Knt(r.lo,r.hi,this.buf),this}sint64(e){let r=N4.enc(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return Knt(a,o,this.buf),this}uint64(e){let r=N4.uEnc(e);return Knt(r.lo,r.hi,this.buf),this}},At=class{constructor(e,r=bcr().decodeUtf8){this.decodeUtf8=r,this.varint64=tqn,this.uint32=iqn,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),r=e>>>3,i=e&7;if(r<=0||i<0||i>5)throw new Error("illegal tag: field no "+r+" wire type "+i);return[r,i]}skip(e,r){let i=this.pos;switch(e){case IH.Varint:for(;this.buf[this.pos++]&128;);break;case IH.Bit64:this.pos+=4;case IH.Bit32:this.pos+=4;break;case IH.LengthDelimited:let a=this.uint32();this.pos+=a;break;case IH.StartGroup:for(;;){let[o,n]=this.tag();if(n===IH.EndGroup){if(r!==void 0&&o!==r)throw new Error("invalid end group tag");break}this.skip(n,o)}break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(i,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return N4.dec(...this.varint64())}uint64(){return N4.uDec(...this.varint64())}sint64(){let[e,r]=this.varint64(),i=-(e&1);return e=(e>>>1|(r&1)<<31)^i,r=r>>>1^i,N4.dec(e,r)}bool(){let[e,r]=this.varint64();return e!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return N4.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return N4.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),r=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(r,r+e)}string(){return this.decodeUtf8(this.bytes())}}});var lqn=ke(()=>{"use strict"});var dqn=ke(()=>{"use strict"});var fqn=ke(()=>{"use strict"});var yg=ke(()=>{"use strict";cqn();lqn();Scr();dqn();fqn()});function Icr(){return{paths:[]}}var O3,_cr=ke(()=>{"use strict";yg();O3={encode(t,e=new hr){for(let r of t.paths)e.uint32(10).string(r);return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Icr();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.paths.push(r.string());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{paths:typeof t=="string"?t.split(",").filter(globalThis.Boolean):globalThis.Array.isArray(t?.paths)?t.paths.map(globalThis.String):[]}},toJSON(t){return t.paths.join(",")},create(t){return O3.fromPartial(t??{})},fromPartial(t){let e=Icr();return e.paths=t.paths?.map(r=>r)||[],e},wrap(t){let e=Icr();return e.paths=t,e},unwrap(t){return t.paths}}});function Mqn(t){switch(t){case 0:case"DIAGNOSTIC_ERROR":return 0;case 1:case"DIAGNOSTIC_WARNING":return 1;case 2:case"DIAGNOSTIC_INFORMATION":return 2;case 3:case"DIAGNOSTIC_HINT":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Pqn(t){switch(t){case 0:return"DIAGNOSTIC_ERROR";case 1:return"DIAGNOSTIC_WARNING";case 2:return"DIAGNOSTIC_INFORMATION";case 3:return"DIAGNOSTIC_HINT";case-1:default:return"UNRECOGNIZED"}}function hqn(){return{}}function pqn(){return{}}function Aqn(){return{}}function gqn(){return{value:""}}function mqn(){return{value:[]}}function Eqn(){return{value:""}}function yqn(){return{value:0}}function Cqn(){return{value:0}}function vqn(){return{value:new Uint8Array(0)}}function bqn(){return{value:new Uint8Array(0)}}function Sqn(){return{value:!1}}function xqn(){return{value:!1}}function Iqn(){return{value:!1}}function _qn(){return{values:[]}}function Tqn(){return{values1:[],values2:[]}}function wqn(){return{key:"",value:""}}function Rqn(){return{filePath:"",diagnostics:[]}}function Bqn(){return{message:"",range:void 0,severity:0,source:void 0}}function Dqn(){return{start:void 0,end:void 0}}function kqn(){return{line:0,character:0}}function Fqn(t){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(t,"base64"));{let e=globalThis.atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;++i)r[i]=e.charCodeAt(i);return r}}function Lqn(t){if(globalThis.Buffer)return globalThis.Buffer.from(t).toString("base64");{let e=[];return t.forEach(r=>{e.push(globalThis.String.fromCharCode(r))}),globalThis.btoa(e.join(""))}}function Uqn(t){let e=globalThis.Number(t.toString());if(e>globalThis.Number.MAX_SAFE_INTEGER)throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");if(e<globalThis.Number.MIN_SAFE_INTEGER)throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");return e}function Cg(t){return t!=null}var Tte,wr,ba,ui,Hu,Gpe,wI,zP,jnt,Oqn,Nqn,Z7,F3,fke,eL,hke,wte,tL,z2,_te,N3,la=ke(()=>{"use strict";yg();Tte=(o=>(o[o.DIAGNOSTIC_ERROR=0]="DIAGNOSTIC_ERROR",o[o.DIAGNOSTIC_WARNING=1]="DIAGNOSTIC_WARNING",o[o.DIAGNOSTIC_INFORMATION=2]="DIAGNOSTIC_INFORMATION",o[o.DIAGNOSTIC_HINT=3]="DIAGNOSTIC_HINT",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED",o))(Tte||{});wr={encode(t,e=new hr){return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=hqn();for(;r.pos<i;){let o=r.uint32();if(o>>>3,(o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{}},toJSON(t){return{}},create(t){return wr.fromPartial(t??{})},fromPartial(t){return hqn()}};ba={encode(t,e=new hr){return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=pqn();for(;r.pos<i;){let o=r.uint32();if(o>>>3,(o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{}},toJSON(t){return{}},create(t){return ba.fromPartial(t??{})},fromPartial(t){return pqn()}};ui={encode(t,e=new hr){return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Aqn();for(;r.pos<i;){let o=r.uint32();if(o>>>3,(o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{}},toJSON(t){return{}},create(t){return ui.fromPartial(t??{})},fromPartial(t){return Aqn()}};Hu={encode(t,e=new hr){return t.value!==""&&e.uint32(18).string(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=gqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:{if(o!==18)break;a.value=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.String(t.value):""}},toJSON(t){let e={};return t.value!==""&&(e.value=t.value),e},create(t){return Hu.fromPartial(t??{})},fromPartial(t){let e=gqn();return e.value=t.value??"",e}};Gpe={encode(t,e=new hr){for(let r of t.value)e.uint32(18).string(r);return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=mqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:{if(o!==18)break;a.value.push(r.string());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:globalThis.Array.isArray(t?.value)?t.value.map(e=>globalThis.String(e)):[]}},toJSON(t){let e={};return t.value?.length&&(e.value=t.value),e},create(t){return Gpe.fromPartial(t??{})},fromPartial(t){let e=mqn();return e.value=t.value?.map(r=>r)||[],e}};wI={encode(t,e=new hr){return t.value!==""&&e.uint32(10).string(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Eqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.value=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.String(t.value):""}},toJSON(t){let e={};return t.value!==""&&(e.value=t.value),e},create(t){return wI.fromPartial(t??{})},fromPartial(t){let e=Eqn();return e.value=t.value??"",e}};zP={encode(t,e=new hr){return t.value!==0&&e.uint32(16).int64(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=yqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:{if(o!==16)break;a.value=Uqn(r.int64());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.Number(t.value):0}},toJSON(t){let e={};return t.value!==0&&(e.value=Math.round(t.value)),e},create(t){return zP.fromPartial(t??{})},fromPartial(t){let e=yqn();return e.value=t.value??0,e}};jnt={encode(t,e=new hr){return t.value!==0&&e.uint32(8).int64(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Cqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.value=Uqn(r.int64());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.Number(t.value):0}},toJSON(t){let e={};return t.value!==0&&(e.value=Math.round(t.value)),e},create(t){return jnt.fromPartial(t??{})},fromPartial(t){let e=Cqn();return e.value=t.value??0,e}};Oqn={encode(t,e=new hr){return t.value.length!==0&&e.uint32(18).bytes(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=vqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:{if(o!==18)break;a.value=r.bytes();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?Fqn(t.value):new Uint8Array(0)}},toJSON(t){let e={};return t.value.length!==0&&(e.value=Lqn(t.value)),e},create(t){return Oqn.fromPartial(t??{})},fromPartial(t){let e=vqn();return e.value=t.value??new Uint8Array(0),e}};Nqn={encode(t,e=new hr){return t.value.length!==0&&e.uint32(10).bytes(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=bqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.value=r.bytes();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?Fqn(t.value):new Uint8Array(0)}},toJSON(t){let e={};return t.value.length!==0&&(e.value=Lqn(t.value)),e},create(t){return Nqn.fromPartial(t??{})},fromPartial(t){let e=bqn();return e.value=t.value??new Uint8Array(0),e}};Z7={encode(t,e=new hr){return t.value!==!1&&e.uint32(16).bool(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Sqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 2:{if(o!==16)break;a.value=r.bool();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.Boolean(t.value):!1}},toJSON(t){let e={};return t.value!==!1&&(e.value=t.value),e},create(t){return Z7.fromPartial(t??{})},fromPartial(t){let e=Sqn();return e.value=t.value??!1,e}};F3={encode(t,e=new hr){return t.value!==!1&&e.uint32(8).bool(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=xqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.value=r.bool();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.Boolean(t.value):!1}},toJSON(t){let e={};return t.value!==!1&&(e.value=t.value),e},create(t){return F3.fromPartial(t??{})},fromPartial(t){let e=xqn();return e.value=t.value??!1,e}};fke={encode(t,e=new hr){return t.value!==!1&&e.uint32(8).bool(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Iqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.value=r.bool();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{value:Cg(t.value)?globalThis.Boolean(t.value):!1}},toJSON(t){let e={};return t.value!==!1&&(e.value=t.value),e},create(t){return fke.fromPartial(t??{})},fromPartial(t){let e=Iqn();return e.value=t.value??!1,e}};eL={encode(t,e=new hr){for(let r of t.values)e.uint32(10).string(r);return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=_qn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.values.push(r.string());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{values:globalThis.Array.isArray(t?.values)?t.values.map(e=>globalThis.String(e)):[]}},toJSON(t){let e={};return t.values?.length&&(e.values=t.values),e},create(t){return eL.fromPartial(t??{})},fromPartial(t){let e=_qn();return e.values=t.values?.map(r=>r)||[],e}};hke={encode(t,e=new hr){for(let r of t.values1)e.uint32(10).string(r);for(let r of t.values2)e.uint32(18).string(r);return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Tqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.values1.push(r.string());continue}case 2:{if(o!==18)break;a.values2.push(r.string());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{values1:globalThis.Array.isArray(t?.values1)?t.values1.map(e=>globalThis.String(e)):[],values2:globalThis.Array.isArray(t?.values2)?t.values2.map(e=>globalThis.String(e)):[]}},toJSON(t){let e={};return t.values1?.length&&(e.values1=t.values1),t.values2?.length&&(e.values2=t.values2),e},create(t){return hke.fromPartial(t??{})},fromPartial(t){let e=Tqn();return e.values1=t.values1?.map(r=>r)||[],e.values2=t.values2?.map(r=>r)||[],e}};wte={encode(t,e=new hr){return t.key!==""&&e.uint32(10).string(t.key),t.value!==""&&e.uint32(18).string(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=wqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.key=r.string();continue}case 2:{if(o!==18)break;a.value=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{key:Cg(t.key)?globalThis.String(t.key):"",value:Cg(t.value)?globalThis.String(t.value):""}},toJSON(t){let e={};return t.key!==""&&(e.key=t.key),t.value!==""&&(e.value=t.value),e},create(t){return wte.fromPartial(t??{})},fromPartial(t){let e=wqn();return e.key=t.key??"",e.value=t.value??"",e}};tL={encode(t,e=new hr){t.filePath!==""&&e.uint32(10).string(t.filePath);for(let r of t.diagnostics)z2.encode(r,e.uint32(18).fork()).join();return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Rqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.filePath=r.string();continue}case 2:{if(o!==18)break;a.diagnostics.push(z2.decode(r,r.uint32()));continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{filePath:Cg(t.filePath)?globalThis.String(t.filePath):Cg(t.file_path)?globalThis.String(t.file_path):"",diagnostics:globalThis.Array.isArray(t?.diagnostics)?t.diagnostics.map(e=>z2.fromJSON(e)):[]}},toJSON(t){let e={};return t.filePath!==""&&(e.filePath=t.filePath),t.diagnostics?.length&&(e.diagnostics=t.diagnostics.map(r=>z2.toJSON(r))),e},create(t){return tL.fromPartial(t??{})},fromPartial(t){let e=Rqn();return e.filePath=t.filePath??"",e.diagnostics=t.diagnostics?.map(r=>z2.fromPartial(r))||[],e}};z2={encode(t,e=new hr){return t.message!==""&&e.uint32(10).string(t.message),t.range!==void 0&&_te.encode(t.range,e.uint32(18).fork()).join(),t.severity!==0&&e.uint32(24).int32(t.severity),t.source!==void 0&&e.uint32(34).string(t.source),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Bqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.message=r.string();continue}case 2:{if(o!==18)break;a.range=_te.decode(r,r.uint32());continue}case 3:{if(o!==24)break;a.severity=r.int32();continue}case 4:{if(o!==34)break;a.source=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{message:Cg(t.message)?globalThis.String(t.message):"",range:Cg(t.range)?_te.fromJSON(t.range):void 0,severity:Cg(t.severity)?Mqn(t.severity):0,source:Cg(t.source)?globalThis.String(t.source):void 0}},toJSON(t){let e={};return t.message!==""&&(e.message=t.message),t.range!==void 0&&(e.range=_te.toJSON(t.range)),t.severity!==0&&(e.severity=Pqn(t.severity)),t.source!==void 0&&(e.source=t.source),e},create(t){return z2.fromPartial(t??{})},fromPartial(t){let e=Bqn();return e.message=t.message??"",e.range=t.range!==void 0&&t.range!==null?_te.fromPartial(t.range):void 0,e.severity=t.severity??0,e.source=t.source??void 0,e}};_te={encode(t,e=new hr){return t.start!==void 0&&N3.encode(t.start,e.uint32(10).fork()).join(),t.end!==void 0&&N3.encode(t.end,e.uint32(18).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Dqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.start=N3.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.end=N3.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{start:Cg(t.start)?N3.fromJSON(t.start):void 0,end:Cg(t.end)?N3.fromJSON(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=N3.toJSON(t.start)),t.end!==void 0&&(e.end=N3.toJSON(t.end)),e},create(t){return _te.fromPartial(t??{})},fromPartial(t){let e=Dqn();return e.start=t.start!==void 0&&t.start!==null?N3.fromPartial(t.start):void 0,e.end=t.end!==void 0&&t.end!==null?N3.fromPartial(t.end):void 0,e}};N3={encode(t,e=new hr){return t.line!==0&&e.uint32(8).int32(t.line),t.character!==0&&e.uint32(16).int32(t.character),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=kqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.line=r.int32();continue}case 2:{if(o!==16)break;a.character=r.int32();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{line:Cg(t.line)?globalThis.Number(t.line):0,character:Cg(t.character)?globalThis.Number(t.character):0}},toJSON(t){let e={};return t.line!==0&&(e.line=Math.round(t.line)),t.character!==0&&(e.character=Math.round(t.character)),e},create(t){return N3.fromPartial(t??{})},fromPartial(t){let e=kqn();return e.line=t.line??0,e.character=t.character??0,e}}});function RI(t){switch(t){case 0:case"ANTHROPIC":return 0;case 1:case"OPENROUTER":return 1;case 2:case"BEDROCK":return 2;case 3:case"VERTEX":return 3;case 4:case"OPENAI":return 4;case 5:case"OLLAMA":return 5;case 6:case"LMSTUDIO":return 6;case 7:case"GEMINI":return 7;case 8:case"OPENAI_NATIVE":return 8;case 9:case"REQUESTY":return 9;case 10:case"TOGETHER":return 10;case 11:case"DEEPSEEK":return 11;case 12:case"QWEN":return 12;case 13:case"DOUBAO":return 13;case 14:case"MISTRAL":return 14;case 15:case"VSCODE_LM":return 15;case 16:case"DIRAC":return 16;case 17:case"LITELLM":return 17;case 18:case"NEBIUS":return 18;case 19:case"FIREWORKS":return 19;case 20:case"ASKSAGE":return 20;case 21:case"XAI":return 21;case 22:case"SAMBANOVA":return 22;case 23:case"CEREBRAS":return 23;case 24:case"GROQ":return 24;case 25:case"SAPAICORE":return 25;case 26:case"CLAUDE_CODE":return 26;case 27:case"MOONSHOT":return 27;case 28:case"HUGGINGFACE":return 28;case 29:case"HUAWEI_CLOUD_MAAS":return 29;case 30:case"BASETEN":return 30;case 31:case"ZAI":return 31;case 32:case"VERCEL_AI_GATEWAY":return 32;case 33:case"QWEN_CODE":return 33;case 34:case"DIFY":return 34;case 36:case"MINIMAX":return 36;case 37:case"HICAP":return 37;case 38:case"AIHUBMIX":return 38;case 39:case"NOUSRESEARCH":return 39;case 40:case"OPENAI_CODEX":return 40;case 41:case"WANDB":return 41;case-1:case"UNRECOGNIZED":default:return-1}}function wH(t){switch(t){case 0:return"ANTHROPIC";case 1:return"OPENROUTER";case 2:return"BEDROCK";case 3:return"VERTEX";case 4:return"OPENAI";case 5:return"OLLAMA";case 6:return"LMSTUDIO";case 7:return"GEMINI";case 8:return"OPENAI_NATIVE";case 9:return"REQUESTY";case 10:return"TOGETHER";case 11:return"DEEPSEEK";case 12:return"QWEN";case 13:return"DOUBAO";case 14:return"MISTRAL";case 15:return"VSCODE_LM";case 16:return"DIRAC";case 17:return"LITELLM";case 18:return"NEBIUS";case 19:return"FIREWORKS";case 20:return"ASKSAGE";case 21:return"XAI";case 22:return"SAMBANOVA";case 23:return"CEREBRAS";case 24:return"GROQ";case 25:return"SAPAICORE";case 26:return"CLAUDE_CODE";case 27:return"MOONSHOT";case 28:return"HUGGINGFACE";case 29:return"HUAWEI_CLOUD_MAAS";case 30:return"BASETEN";case 31:return"ZAI";case 32:return"VERCEL_AI_GATEWAY";case 33:return"QWEN_CODE";case 34:return"DIFY";case 36:return"MINIMAX";case 37:return"HICAP";case 38:return"AIHUBMIX";case 39:return"NOUSRESEARCH";case 40:return"OPENAI_CODEX";case 41:return"WANDB";case-1:default:return"UNRECOGNIZED"}}function rL(t){switch(t){case 0:case"ANTHROPIC_CHAT":return 0;case 1:case"GEMINI_CHAT":return 1;case 2:case"OPENAI_CHAT":return 2;case 3:case"R1_CHAT":return 3;case 4:case"OPENAI_RESPONSES":return 4;case 5:case"OPENAI_RESPONSES_WEBSOCKET_MODE":return 5;case-1:case"UNRECOGNIZED":default:return-1}}function Mte(t){switch(t){case 0:return"ANTHROPIC_CHAT";case 1:return"GEMINI_CHAT";case 2:return"OPENAI_CHAT";case 3:return"R1_CHAT";case 4:return"OPENAI_RESPONSES";case 5:return"OPENAI_RESPONSES_WEBSOCKET_MODE";case-1:default:return"UNRECOGNIZED"}}function Qqn(){return{models:[]}}function qqn(){return{vendor:void 0,family:void 0,version:void 0,id:void 0}}function Gqn(){return{tokenLimit:0,price:0}}function Hqn(){return{maxBudget:void 0,outputPrice:void 0,outputPriceTiers:[]}}function Vqn(){return{contextWindow:0,inputPrice:void 0,outputPrice:void 0,cacheWritesPrice:void 0,cacheReadsPrice:void 0}}function Wqn(){return{maxTokens:void 0,contextWindow:void 0,supportsImages:void 0,supportsPromptCache:!1,inputPrice:void 0,outputPrice:void 0,cacheWritesPrice:void 0,cacheReadsPrice:void 0,description:void 0,thinkingConfig:void 0,supportsGlobalEndpoint:void 0,tiers:[],name:void 0,temperature:void 0,supportsReasoning:void 0,apiFormat:void 0}}function zqn(){return{models:{}}}function Kqn(){return{key:"",value:void 0}}function jqn(){return{metadata:void 0,baseUrl:"",apiKey:""}}function $qn(){return{metadata:void 0,clientId:"",clientSecret:"",baseUrl:"",tokenUrl:"",resourceGroup:""}}function Yqn(){return{modelName:"",deploymentId:""}}function Jqn(){return{deployments:[],orchestrationAvailable:!1}}function Xqn(){return{apiKey:void 0,diracApiKey:void 0,liteLlmApiKey:void 0,openRouterApiKey:void 0,awsAccessKey:void 0,awsSecretKey:void 0,awsSessionToken:void 0,awsBedrockApiKey:void 0,openAiApiKey:void 0,ollamaApiKey:void 0,geminiApiKey:void 0,openAiNativeApiKey:void 0,deepSeekApiKey:void 0,requestyApiKey:void 0,togetherApiKey:void 0,fireworksApiKey:void 0,qwenApiKey:void 0,doubaoApiKey:void 0,mistralApiKey:void 0,nebiusApiKey:void 0,asksageApiKey:void 0,xaiApiKey:void 0,sambanovaApiKey:void 0,cerebrasApiKey:void 0,sapAiCoreClientId:void 0,sapAiCoreClientSecret:void 0,moonshotApiKey:void 0,diracAccountId:void 0,groqApiKey:void 0,huggingFaceApiKey:void 0,huaweiCloudMaasApiKey:void 0,basetenApiKey:void 0,zaiApiKey:void 0,vercelAiGatewayApiKey:void 0,difyApiKey:void 0,minimaxApiKey:void 0,aihubmixApiKey:void 0}}function Zqn(){return{ulid:void 0,liteLlmBaseUrl:void 0,liteLlmUsePromptCache:void 0,openAiHeaders:{},anthropicBaseUrl:void 0,openRouterProviderSorting:void 0,awsRegion:void 0,awsUseCrossRegionInference:void 0,awsBedrockUsePromptCache:void 0,awsUseProfile:void 0,awsProfile:void 0,awsBedrockEndpoint:void 0,claudeCodePath:void 0,vertexProjectId:void 0,vertexRegion:void 0,openAiBaseUrl:void 0,ollamaBaseUrl:void 0,ollamaApiOptionsCtxNum:void 0,lmStudioBaseUrl:void 0,geminiBaseUrl:void 0,requestyBaseUrl:void 0,fireworksModelMaxCompletionTokens:void 0,fireworksModelMaxTokens:void 0,azureApiVersion:void 0,qwenApiLine:void 0,asksageApiUrl:void 0,requestTimeoutMs:void 0,sapAiResourceGroup:void 0,sapAiCoreTokenUrl:void 0,sapAiCoreBaseUrl:void 0,sapAiCoreUseOrchestrationMode:void 0,moonshotApiLine:void 0,awsAuthentication:void 0,zaiApiLine:void 0,lmStudioMaxTokens:void 0,qwenCodeOauthPath:void 0,difyBaseUrl:void 0,awsUseGlobalInference:void 0,minimaxApiLine:void 0,aihubmixBaseUrl:void 0,aihubmixAppCode:void 0,azureIdentity:void 0,planModeApiProvider:void 0,planModeApiModelId:void 0,planModeThinkingBudgetTokens:void 0,planModeReasoningEffort:void 0,planModeVsCodeLmModelSelector:void 0,planModeAwsBedrockCustomSelected:void 0,planModeAwsBedrockCustomModelBaseId:void 0,planModeOpenRouterModelId:void 0,planModeOpenRouterModelInfo:void 0,planModeOpenAiModelId:void 0,planModeOpenAiModelInfo:void 0,planModeOllamaModelId:void 0,planModeLmStudioModelId:void 0,planModeLiteLlmModelId:void 0,planModeLiteLlmModelInfo:void 0,planModeRequestyModelId:void 0,planModeRequestyModelInfo:void 0,planModeTogetherModelId:void 0,planModeFireworksModelId:void 0,planModeSapAiCoreModelId:void 0,planModeSapAiCoreDeploymentId:void 0,planModeGroqModelId:void 0,planModeGroqModelInfo:void 0,planModeHuggingFaceModelId:void 0,planModeHuggingFaceModelInfo:void 0,planModeHuaweiCloudMaasModelId:void 0,planModeHuaweiCloudMaasModelInfo:void 0,planModeBasetenModelId:void 0,planModeBasetenModelInfo:void 0,planModeVercelAiGatewayModelId:void 0,planModeVercelAiGatewayModelInfo:void 0,planModeAihubmixModelId:void 0,planModeAihubmixModelInfo:void 0,planModeDiracModelId:void 0,planModeDiracModelInfo:void 0,actModeApiProvider:void 0,actModeApiModelId:void 0,actModeThinkingBudgetTokens:void 0,actModeReasoningEffort:void 0,actModeVsCodeLmModelSelector:void 0,actModeAwsBedrockCustomSelected:void 0,actModeAwsBedrockCustomModelBaseId:void 0,actModeOpenRouterModelId:void 0,actModeOpenRouterModelInfo:void 0,actModeOpenAiModelId:void 0,actModeOpenAiModelInfo:void 0,actModeOllamaModelId:void 0,actModeLmStudioModelId:void 0,actModeLiteLlmModelId:void 0,actModeLiteLlmModelInfo:void 0,actModeRequestyModelId:void 0,actModeRequestyModelInfo:void 0,actModeTogetherModelId:void 0,actModeFireworksModelId:void 0,actModeSapAiCoreModelId:void 0,actModeSapAiCoreDeploymentId:void 0,actModeGroqModelId:void 0,actModeGroqModelInfo:void 0,actModeHuggingFaceModelId:void 0,actModeHuggingFaceModelInfo:void 0,actModeHuaweiCloudMaasModelId:void 0,actModeHuaweiCloudMaasModelInfo:void 0,actModeBasetenModelId:void 0,actModeBasetenModelInfo:void 0,actModeVercelAiGatewayModelId:void 0,actModeVercelAiGatewayModelInfo:void 0,actModeAihubmixModelId:void 0,actModeAihubmixModelInfo:void 0,actModeDiracModelId:void 0,actModeDiracModelInfo:void 0}}function eGn(){return{key:"",value:""}}function tGn(){return{metadata:void 0,apiConfiguration:void 0}}function rGn(){return{options:void 0,secrets:void 0}}function nGn(){return{metadata:void 0,updates:void 0,updateMask:[]}}function iGn(){return{metadata:void 0,apiConfiguration:void 0,updateMask:void 0}}function aGn(){return{maxTokens:void 0,contextWindow:void 0,supportsImages:void 0,supportsPromptCache:!1,inputPrice:void 0,outputPrice:void 0,thinkingConfig:void 0,cacheWritesPrice:void 0,cacheReadsPrice:void 0,description:void 0,temperature:void 0,surveyContent:void 0,surveyId:void 0,banner:void 0,modelName:"",apiFormat:void 0,supportsReasoning:void 0,reasoningEffortOptions:[]}}function oGn(){return{models:{},error:void 0}}function sGn(){return{key:"",value:void 0}}function uGn(){return{maxTokens:void 0,contextWindow:void 0,supportsImages:void 0,supportsPromptCache:!1,inputPrice:void 0,outputPrice:void 0,thinkingConfig:void 0,supportsGlobalEndpoint:void 0,cacheWritesPrice:void 0,cacheReadsPrice:void 0,description:void 0,tiers:[],temperature:void 0,isR1FormatRequired:void 0,apiFormat:void 0}}function cGn(){return{maxTokens:void 0,contextWindow:void 0,supportsImages:void 0,supportsPromptCache:!1,inputPrice:void 0,outputPrice:void 0,thinkingConfig:void 0,supportsGlobalEndpoint:void 0,cacheWritesPrice:void 0,cacheReadsPrice:void 0,description:void 0,tiers:[],temperature:void 0,apiFormat:void 0,supportsReasoning:void 0}}function lGn(){return{apiKey:void 0,diracApiKey:void 0,ulid:void 0,liteLlmBaseUrl:void 0,liteLlmApiKey:void 0,liteLlmUsePromptCache:void 0,openAiHeaders:{},anthropicBaseUrl:void 0,openRouterApiKey:void 0,openRouterProviderSorting:void 0,awsAccessKey:void 0,awsSecretKey:void 0,awsSessionToken:void 0,awsRegion:void 0,awsUseCrossRegionInference:void 0,awsBedrockUsePromptCache:void 0,awsUseProfile:void 0,awsProfile:void 0,awsBedrockEndpoint:void 0,claudeCodePath:void 0,vertexProjectId:void 0,vertexRegion:void 0,openAiBaseUrl:void 0,openAiApiKey:void 0,ollamaBaseUrl:void 0,ollamaApiOptionsCtxNum:void 0,lmStudioBaseUrl:void 0,geminiApiKey:void 0,geminiBaseUrl:void 0,openAiNativeApiKey:void 0,deepSeekApiKey:void 0,requestyApiKey:void 0,requestyBaseUrl:void 0,togetherApiKey:void 0,fireworksApiKey:void 0,fireworksModelMaxCompletionTokens:void 0,fireworksModelMaxTokens:void 0,qwenApiKey:void 0,doubaoApiKey:void 0,mistralApiKey:void 0,azureApiVersion:void 0,qwenApiLine:void 0,nebiusApiKey:void 0,asksageApiUrl:void 0,asksageApiKey:void 0,xaiApiKey:void 0,sambanovaApiKey:void 0,cerebrasApiKey:void 0,requestTimeoutMs:void 0,sapAiCoreClientId:void 0,sapAiCoreClientSecret:void 0,sapAiResourceGroup:void 0,sapAiCoreTokenUrl:void 0,sapAiCoreBaseUrl:void 0,sapAiCoreUseOrchestrationMode:void 0,moonshotApiKey:void 0,moonshotApiLine:void 0,awsAuthentication:void 0,awsBedrockApiKey:void 0,groqApiKey:void 0,huggingFaceApiKey:void 0,huaweiCloudMaasApiKey:void 0,basetenApiKey:void 0,ollamaApiKey:void 0,zaiApiKey:void 0,zaiApiLine:void 0,lmStudioMaxTokens:void 0,vercelAiGatewayApiKey:void 0,qwenCodeOauthPath:void 0,difyApiKey:void 0,difyBaseUrl:void 0,awsUseGlobalInference:void 0,minimaxApiKey:void 0,minimaxApiLine:void 0,hicapModelId:void 0,hicapApiKey:void 0,aihubmixApiKey:void 0,aihubmixBaseUrl:void 0,aihubmixAppCode:void 0,nousResearchApiKey:void 0,azureIdentity:void 0,wandbApiKey:void 0,planModeApiProvider:void 0,planModeApiModelId:void 0,planModeThinkingBudgetTokens:void 0,planModeReasoningEffort:void 0,planModeVsCodeLmModelSelector:void 0,planModeAwsBedrockCustomSelected:void 0,planModeAwsBedrockCustomModelBaseId:void 0,planModeOpenRouterModelId:void 0,planModeOpenRouterModelInfo:void 0,planModeOpenAiModelId:void 0,planModeOpenAiModelInfo:void 0,planModeOllamaModelId:void 0,planModeLmStudioModelId:void 0,planModeLiteLlmModelId:void 0,planModeLiteLlmModelInfo:void 0,planModeRequestyModelId:void 0,planModeRequestyModelInfo:void 0,planModeTogetherModelId:void 0,planModeFireworksModelId:void 0,planModeSapAiCoreModelId:void 0,planModeSapAiCoreDeploymentId:void 0,planModeGroqModelId:void 0,planModeGroqModelInfo:void 0,planModeHuggingFaceModelId:void 0,planModeHuggingFaceModelInfo:void 0,planModeHuaweiCloudMaasModelId:void 0,planModeHuaweiCloudMaasModelInfo:void 0,planModeBasetenModelId:void 0,planModeBasetenModelInfo:void 0,planModeVercelAiGatewayModelId:void 0,planModeVercelAiGatewayModelInfo:void 0,planModeHicapModelId:void 0,planModeHicapModelInfo:void 0,planModeAihubmixModelId:void 0,planModeAihubmixModelInfo:void 0,planModeNousResearchModelId:void 0,geminiPlanModeThinkingLevel:void 0,planModeDiracModelId:void 0,planModeDiracModelInfo:void 0,actModeApiProvider:void 0,actModeApiModelId:void 0,actModeThinkingBudgetTokens:void 0,actModeReasoningEffort:void 0,actModeVsCodeLmModelSelector:void 0,actModeAwsBedrockCustomSelected:void 0,actModeAwsBedrockCustomModelBaseId:void 0,actModeOpenRouterModelId:void 0,actModeOpenRouterModelInfo:void 0,actModeOpenAiModelId:void 0,actModeOpenAiModelInfo:void 0,actModeOllamaModelId:void 0,actModeLmStudioModelId:void 0,actModeLiteLlmModelId:void 0,actModeLiteLlmModelInfo:void 0,actModeRequestyModelId:void 0,actModeRequestyModelInfo:void 0,actModeTogetherModelId:void 0,actModeFireworksModelId:void 0,actModeSapAiCoreModelId:void 0,actModeSapAiCoreDeploymentId:void 0,actModeGroqModelId:void 0,actModeGroqModelInfo:void 0,actModeHuggingFaceModelId:void 0,actModeHuggingFaceModelInfo:void 0,actModeHuaweiCloudMaasModelId:void 0,actModeHuaweiCloudMaasModelInfo:void 0,actModeBasetenModelId:void 0,actModeBasetenModelInfo:void 0,actModeVercelAiGatewayModelId:void 0,actModeVercelAiGatewayModelInfo:void 0,actModeHicapModelId:void 0,actModeHicapModelInfo:void 0,actModeAihubmixModelId:void 0,actModeAihubmixModelInfo:void 0,actModeNousResearchModelId:void 0,geminiActModeThinkingLevel:void 0,actModeDiracModelId:void 0,actModeDiracModelInfo:void 0}}function dGn(){return{key:"",value:""}}function bg(t){let e=globalThis.Number(t.toString());if(e>globalThis.Number.MAX_SAFE_INTEGER)throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");if(e<globalThis.Number.MIN_SAFE_INTEGER)throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");return e}function Hpe(t){return typeof t=="object"&&t!==null}function Ke(t){return t!=null}var Tcr,kte,Znt,du,_H,Zf,iC,Wt,xh,$nt,wcr,Rcr,TH,eit,Rte,Bte,Ynt,Bcr,Dte,Dcr,kcr,KP,fGn,Jnt,Ba,sc,vg,Xnt,clu,ip=ke(()=>{"use strict";yg();_cr();la();Tcr=(z=>(z[z.ANTHROPIC=0]="ANTHROPIC",z[z.OPENROUTER=1]="OPENROUTER",z[z.BEDROCK=2]="BEDROCK",z[z.VERTEX=3]="VERTEX",z[z.OPENAI=4]="OPENAI",z[z.OLLAMA=5]="OLLAMA",z[z.LMSTUDIO=6]="LMSTUDIO",z[z.GEMINI=7]="GEMINI",z[z.OPENAI_NATIVE=8]="OPENAI_NATIVE",z[z.REQUESTY=9]="REQUESTY",z[z.TOGETHER=10]="TOGETHER",z[z.DEEPSEEK=11]="DEEPSEEK",z[z.QWEN=12]="QWEN",z[z.DOUBAO=13]="DOUBAO",z[z.MISTRAL=14]="MISTRAL",z[z.VSCODE_LM=15]="VSCODE_LM",z[z.DIRAC=16]="DIRAC",z[z.LITELLM=17]="LITELLM",z[z.NEBIUS=18]="NEBIUS",z[z.FIREWORKS=19]="FIREWORKS",z[z.ASKSAGE=20]="ASKSAGE",z[z.XAI=21]="XAI",z[z.SAMBANOVA=22]="SAMBANOVA",z[z.CEREBRAS=23]="CEREBRAS",z[z.GROQ=24]="GROQ",z[z.SAPAICORE=25]="SAPAICORE",z[z.CLAUDE_CODE=26]="CLAUDE_CODE",z[z.MOONSHOT=27]="MOONSHOT",z[z.HUGGINGFACE=28]="HUGGINGFACE",z[z.HUAWEI_CLOUD_MAAS=29]="HUAWEI_CLOUD_MAAS",z[z.BASETEN=30]="BASETEN",z[z.ZAI=31]="ZAI",z[z.VERCEL_AI_GATEWAY=32]="VERCEL_AI_GATEWAY",z[z.QWEN_CODE=33]="QWEN_CODE",z[z.DIFY=34]="DIFY",z[z.MINIMAX=36]="MINIMAX",z[z.HICAP=37]="HICAP",z[z.AIHUBMIX=38]="AIHUBMIX",z[z.NOUSRESEARCH=39]="NOUSRESEARCH",z[z.OPENAI_CODEX=40]="OPENAI_CODEX",z[z.WANDB=41]="WANDB",z[z.UNRECOGNIZED=-1]="UNRECOGNIZED",z))(Tcr||{});kte=(s=>(s[s.ANTHROPIC_CHAT=0]="ANTHROPIC_CHAT",s[s.GEMINI_CHAT=1]="GEMINI_CHAT",s[s.OPENAI_CHAT=2]="OPENAI_CHAT",s[s.R1_CHAT=3]="R1_CHAT",s[s.OPENAI_RESPONSES=4]="OPENAI_RESPONSES",s[s.OPENAI_RESPONSES_WEBSOCKET_MODE=5]="OPENAI_RESPONSES_WEBSOCKET_MODE",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED",s))(kte||{});Znt={encode(t,e=new hr){for(let r of t.models)du.encode(r,e.uint32(10).fork()).join();return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Qqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.models.push(du.decode(r,r.uint32()));continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{models:globalThis.Array.isArray(t?.models)?t.models.map(e=>du.fromJSON(e)):[]}},toJSON(t){let e={};return t.models?.length&&(e.models=t.models.map(r=>du.toJSON(r))),e},create(t){return Znt.fromPartial(t??{})},fromPartial(t){let e=Qqn();return e.models=t.models?.map(r=>du.fromPartial(r))||[],e}};du={encode(t,e=new hr){return t.vendor!==void 0&&e.uint32(10).string(t.vendor),t.family!==void 0&&e.uint32(18).string(t.family),t.version!==void 0&&e.uint32(26).string(t.version),t.id!==void 0&&e.uint32(34).string(t.id),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=qqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.vendor=r.string();continue}case 2:{if(o!==18)break;a.family=r.string();continue}case 3:{if(o!==26)break;a.version=r.string();continue}case 4:{if(o!==34)break;a.id=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{vendor:Ke(t.vendor)?globalThis.String(t.vendor):void 0,family:Ke(t.family)?globalThis.String(t.family):void 0,version:Ke(t.version)?globalThis.String(t.version):void 0,id:Ke(t.id)?globalThis.String(t.id):void 0}},toJSON(t){let e={};return t.vendor!==void 0&&(e.vendor=t.vendor),t.family!==void 0&&(e.family=t.family),t.version!==void 0&&(e.version=t.version),t.id!==void 0&&(e.id=t.id),e},create(t){return du.fromPartial(t??{})},fromPartial(t){let e=qqn();return e.vendor=t.vendor??void 0,e.family=t.family??void 0,e.version=t.version??void 0,e.id=t.id??void 0,e}};_H={encode(t,e=new hr){return t.tokenLimit!==0&&e.uint32(8).int64(t.tokenLimit),t.price!==0&&e.uint32(17).double(t.price),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Gqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.tokenLimit=bg(r.int64());continue}case 2:{if(o!==17)break;a.price=r.double();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{tokenLimit:Ke(t.tokenLimit)?globalThis.Number(t.tokenLimit):Ke(t.token_limit)?globalThis.Number(t.token_limit):0,price:Ke(t.price)?globalThis.Number(t.price):0}},toJSON(t){let e={};return t.tokenLimit!==0&&(e.tokenLimit=Math.round(t.tokenLimit)),t.price!==0&&(e.price=t.price),e},create(t){return _H.fromPartial(t??{})},fromPartial(t){let e=Gqn();return e.tokenLimit=t.tokenLimit??0,e.price=t.price??0,e}};Zf={encode(t,e=new hr){t.maxBudget!==void 0&&e.uint32(8).int64(t.maxBudget),t.outputPrice!==void 0&&e.uint32(17).double(t.outputPrice);for(let r of t.outputPriceTiers)_H.encode(r,e.uint32(26).fork()).join();return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Hqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.maxBudget=bg(r.int64());continue}case 2:{if(o!==17)break;a.outputPrice=r.double();continue}case 3:{if(o!==26)break;a.outputPriceTiers.push(_H.decode(r,r.uint32()));continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{maxBudget:Ke(t.maxBudget)?globalThis.Number(t.maxBudget):Ke(t.max_budget)?globalThis.Number(t.max_budget):void 0,outputPrice:Ke(t.outputPrice)?globalThis.Number(t.outputPrice):Ke(t.output_price)?globalThis.Number(t.output_price):void 0,outputPriceTiers:globalThis.Array.isArray(t?.outputPriceTiers)?t.outputPriceTiers.map(e=>_H.fromJSON(e)):globalThis.Array.isArray(t?.output_price_tiers)?t.output_price_tiers.map(e=>_H.fromJSON(e)):[]}},toJSON(t){let e={};return t.maxBudget!==void 0&&(e.maxBudget=Math.round(t.maxBudget)),t.outputPrice!==void 0&&(e.outputPrice=t.outputPrice),t.outputPriceTiers?.length&&(e.outputPriceTiers=t.outputPriceTiers.map(r=>_H.toJSON(r))),e},create(t){return Zf.fromPartial(t??{})},fromPartial(t){let e=Hqn();return e.maxBudget=t.maxBudget??void 0,e.outputPrice=t.outputPrice??void 0,e.outputPriceTiers=t.outputPriceTiers?.map(r=>_H.fromPartial(r))||[],e}};iC={encode(t,e=new hr){return t.contextWindow!==0&&e.uint32(8).int64(t.contextWindow),t.inputPrice!==void 0&&e.uint32(17).double(t.inputPrice),t.outputPrice!==void 0&&e.uint32(25).double(t.outputPrice),t.cacheWritesPrice!==void 0&&e.uint32(33).double(t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&e.uint32(41).double(t.cacheReadsPrice),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Vqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.contextWindow=bg(r.int64());continue}case 2:{if(o!==17)break;a.inputPrice=r.double();continue}case 3:{if(o!==25)break;a.outputPrice=r.double();continue}case 4:{if(o!==33)break;a.cacheWritesPrice=r.double();continue}case 5:{if(o!==41)break;a.cacheReadsPrice=r.double();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{contextWindow:Ke(t.contextWindow)?globalThis.Number(t.contextWindow):Ke(t.context_window)?globalThis.Number(t.context_window):0,inputPrice:Ke(t.inputPrice)?globalThis.Number(t.inputPrice):Ke(t.input_price)?globalThis.Number(t.input_price):void 0,outputPrice:Ke(t.outputPrice)?globalThis.Number(t.outputPrice):Ke(t.output_price)?globalThis.Number(t.output_price):void 0,cacheWritesPrice:Ke(t.cacheWritesPrice)?globalThis.Number(t.cacheWritesPrice):Ke(t.cache_writes_price)?globalThis.Number(t.cache_writes_price):void 0,cacheReadsPrice:Ke(t.cacheReadsPrice)?globalThis.Number(t.cacheReadsPrice):Ke(t.cache_reads_price)?globalThis.Number(t.cache_reads_price):void 0}},toJSON(t){let e={};return t.contextWindow!==0&&(e.contextWindow=Math.round(t.contextWindow)),t.inputPrice!==void 0&&(e.inputPrice=t.inputPrice),t.outputPrice!==void 0&&(e.outputPrice=t.outputPrice),t.cacheWritesPrice!==void 0&&(e.cacheWritesPrice=t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&(e.cacheReadsPrice=t.cacheReadsPrice),e},create(t){return iC.fromPartial(t??{})},fromPartial(t){let e=Vqn();return e.contextWindow=t.contextWindow??0,e.inputPrice=t.inputPrice??void 0,e.outputPrice=t.outputPrice??void 0,e.cacheWritesPrice=t.cacheWritesPrice??void 0,e.cacheReadsPrice=t.cacheReadsPrice??void 0,e}};Wt={encode(t,e=new hr){t.maxTokens!==void 0&&e.uint32(8).int64(t.maxTokens),t.contextWindow!==void 0&&e.uint32(16).int64(t.contextWindow),t.supportsImages!==void 0&&e.uint32(24).bool(t.supportsImages),t.supportsPromptCache!==!1&&e.uint32(32).bool(t.supportsPromptCache),t.inputPrice!==void 0&&e.uint32(41).double(t.inputPrice),t.outputPrice!==void 0&&e.uint32(49).double(t.outputPrice),t.cacheWritesPrice!==void 0&&e.uint32(57).double(t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&e.uint32(65).double(t.cacheReadsPrice),t.description!==void 0&&e.uint32(74).string(t.description),t.thinkingConfig!==void 0&&Zf.encode(t.thinkingConfig,e.uint32(82).fork()).join(),t.supportsGlobalEndpoint!==void 0&&e.uint32(88).bool(t.supportsGlobalEndpoint);for(let r of t.tiers)iC.encode(r,e.uint32(98).fork()).join();return t.name!==void 0&&e.uint32(106).string(t.name),t.temperature!==void 0&&e.uint32(113).double(t.temperature),t.supportsReasoning!==void 0&&e.uint32(120).bool(t.supportsReasoning),t.apiFormat!==void 0&&e.uint32(128).int32(t.apiFormat),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Wqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.maxTokens=bg(r.int64());continue}case 2:{if(o!==16)break;a.contextWindow=bg(r.int64());continue}case 3:{if(o!==24)break;a.supportsImages=r.bool();continue}case 4:{if(o!==32)break;a.supportsPromptCache=r.bool();continue}case 5:{if(o!==41)break;a.inputPrice=r.double();continue}case 6:{if(o!==49)break;a.outputPrice=r.double();continue}case 7:{if(o!==57)break;a.cacheWritesPrice=r.double();continue}case 8:{if(o!==65)break;a.cacheReadsPrice=r.double();continue}case 9:{if(o!==74)break;a.description=r.string();continue}case 10:{if(o!==82)break;a.thinkingConfig=Zf.decode(r,r.uint32());continue}case 11:{if(o!==88)break;a.supportsGlobalEndpoint=r.bool();continue}case 12:{if(o!==98)break;a.tiers.push(iC.decode(r,r.uint32()));continue}case 13:{if(o!==106)break;a.name=r.string();continue}case 14:{if(o!==113)break;a.temperature=r.double();continue}case 15:{if(o!==120)break;a.supportsReasoning=r.bool();continue}case 16:{if(o!==128)break;a.apiFormat=r.int32();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{maxTokens:Ke(t.maxTokens)?globalThis.Number(t.maxTokens):Ke(t.max_tokens)?globalThis.Number(t.max_tokens):void 0,contextWindow:Ke(t.contextWindow)?globalThis.Number(t.contextWindow):Ke(t.context_window)?globalThis.Number(t.context_window):void 0,supportsImages:Ke(t.supportsImages)?globalThis.Boolean(t.supportsImages):Ke(t.supports_images)?globalThis.Boolean(t.supports_images):void 0,supportsPromptCache:Ke(t.supportsPromptCache)?globalThis.Boolean(t.supportsPromptCache):Ke(t.supports_prompt_cache)?globalThis.Boolean(t.supports_prompt_cache):!1,inputPrice:Ke(t.inputPrice)?globalThis.Number(t.inputPrice):Ke(t.input_price)?globalThis.Number(t.input_price):void 0,outputPrice:Ke(t.outputPrice)?globalThis.Number(t.outputPrice):Ke(t.output_price)?globalThis.Number(t.output_price):void 0,cacheWritesPrice:Ke(t.cacheWritesPrice)?globalThis.Number(t.cacheWritesPrice):Ke(t.cache_writes_price)?globalThis.Number(t.cache_writes_price):void 0,cacheReadsPrice:Ke(t.cacheReadsPrice)?globalThis.Number(t.cacheReadsPrice):Ke(t.cache_reads_price)?globalThis.Number(t.cache_reads_price):void 0,description:Ke(t.description)?globalThis.String(t.description):void 0,thinkingConfig:Ke(t.thinkingConfig)?Zf.fromJSON(t.thinkingConfig):Ke(t.thinking_config)?Zf.fromJSON(t.thinking_config):void 0,supportsGlobalEndpoint:Ke(t.supportsGlobalEndpoint)?globalThis.Boolean(t.supportsGlobalEndpoint):Ke(t.supports_global_endpoint)?globalThis.Boolean(t.supports_global_endpoint):void 0,tiers:globalThis.Array.isArray(t?.tiers)?t.tiers.map(e=>iC.fromJSON(e)):[],name:Ke(t.name)?globalThis.String(t.name):void 0,temperature:Ke(t.temperature)?globalThis.Number(t.temperature):void 0,supportsReasoning:Ke(t.supportsReasoning)?globalThis.Boolean(t.supportsReasoning):Ke(t.supports_reasoning)?globalThis.Boolean(t.supports_reasoning):void 0,apiFormat:Ke(t.apiFormat)?rL(t.apiFormat):Ke(t.api_format)?rL(t.api_format):void 0}},toJSON(t){let e={};return t.maxTokens!==void 0&&(e.maxTokens=Math.round(t.maxTokens)),t.contextWindow!==void 0&&(e.contextWindow=Math.round(t.contextWindow)),t.supportsImages!==void 0&&(e.supportsImages=t.supportsImages),t.supportsPromptCache!==!1&&(e.supportsPromptCache=t.supportsPromptCache),t.inputPrice!==void 0&&(e.inputPrice=t.inputPrice),t.outputPrice!==void 0&&(e.outputPrice=t.outputPrice),t.cacheWritesPrice!==void 0&&(e.cacheWritesPrice=t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&(e.cacheReadsPrice=t.cacheReadsPrice),t.description!==void 0&&(e.description=t.description),t.thinkingConfig!==void 0&&(e.thinkingConfig=Zf.toJSON(t.thinkingConfig)),t.supportsGlobalEndpoint!==void 0&&(e.supportsGlobalEndpoint=t.supportsGlobalEndpoint),t.tiers?.length&&(e.tiers=t.tiers.map(r=>iC.toJSON(r))),t.name!==void 0&&(e.name=t.name),t.temperature!==void 0&&(e.temperature=t.temperature),t.supportsReasoning!==void 0&&(e.supportsReasoning=t.supportsReasoning),t.apiFormat!==void 0&&(e.apiFormat=Mte(t.apiFormat)),e},create(t){return Wt.fromPartial(t??{})},fromPartial(t){let e=Wqn();return e.maxTokens=t.maxTokens??void 0,e.contextWindow=t.contextWindow??void 0,e.supportsImages=t.supportsImages??void 0,e.supportsPromptCache=t.supportsPromptCache??!1,e.inputPrice=t.inputPrice??void 0,e.outputPrice=t.outputPrice??void 0,e.cacheWritesPrice=t.cacheWritesPrice??void 0,e.cacheReadsPrice=t.cacheReadsPrice??void 0,e.description=t.description??void 0,e.thinkingConfig=t.thinkingConfig!==void 0&&t.thinkingConfig!==null?Zf.fromPartial(t.thinkingConfig):void 0,e.supportsGlobalEndpoint=t.supportsGlobalEndpoint??void 0,e.tiers=t.tiers?.map(r=>iC.fromPartial(r))||[],e.name=t.name??void 0,e.temperature=t.temperature??void 0,e.supportsReasoning=t.supportsReasoning??void 0,e.apiFormat=t.apiFormat??void 0,e}};xh={encode(t,e=new hr){return globalThis.Object.entries(t.models).forEach(([r,i])=>{$nt.encode({key:r,value:i},e.uint32(10).fork()).join()}),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=zqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;let n=$nt.decode(r,r.uint32());n.value!==void 0&&(a.models[n.key]=n.value);continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{models:Hpe(t.models)?globalThis.Object.entries(t.models).reduce((e,[r,i])=>(e[r]=Wt.fromJSON(i),e),{}):{}}},toJSON(t){let e={};if(t.models){let r=globalThis.Object.entries(t.models);r.length>0&&(e.models={},r.forEach(([i,a])=>{e.models[i]=Wt.toJSON(a)}))}return e},create(t){return xh.fromPartial(t??{})},fromPartial(t){let e=zqn();return e.models=globalThis.Object.entries(t.models??{}).reduce((r,[i,a])=>(a!==void 0&&(r[i]=Wt.fromPartial(a)),r),{}),e}};$nt={encode(t,e=new hr){return t.key!==""&&e.uint32(10).string(t.key),t.value!==void 0&&Wt.encode(t.value,e.uint32(18).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Kqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.key=r.string();continue}case 2:{if(o!==18)break;a.value=Wt.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{key:Ke(t.key)?globalThis.String(t.key):"",value:Ke(t.value)?Wt.fromJSON(t.value):void 0}},toJSON(t){let e={};return t.key!==""&&(e.key=t.key),t.value!==void 0&&(e.value=Wt.toJSON(t.value)),e},create(t){return $nt.fromPartial(t??{})},fromPartial(t){let e=Kqn();return e.key=t.key??"",e.value=t.value!==void 0&&t.value!==null?Wt.fromPartial(t.value):void 0,e}};wcr={encode(t,e=new hr){return t.metadata!==void 0&&wr.encode(t.metadata,e.uint32(10).fork()).join(),t.baseUrl!==""&&e.uint32(18).string(t.baseUrl),t.apiKey!==""&&e.uint32(26).string(t.apiKey),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=jqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.metadata=wr.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.baseUrl=r.string();continue}case 3:{if(o!==26)break;a.apiKey=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{metadata:Ke(t.metadata)?wr.fromJSON(t.metadata):void 0,baseUrl:Ke(t.baseUrl)?globalThis.String(t.baseUrl):Ke(t.base_url)?globalThis.String(t.base_url):"",apiKey:Ke(t.apiKey)?globalThis.String(t.apiKey):Ke(t.api_key)?globalThis.String(t.api_key):""}},toJSON(t){let e={};return t.metadata!==void 0&&(e.metadata=wr.toJSON(t.metadata)),t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.apiKey!==""&&(e.apiKey=t.apiKey),e},create(t){return wcr.fromPartial(t??{})},fromPartial(t){let e=jqn();return e.metadata=t.metadata!==void 0&&t.metadata!==null?wr.fromPartial(t.metadata):void 0,e.baseUrl=t.baseUrl??"",e.apiKey=t.apiKey??"",e}};Rcr={encode(t,e=new hr){return t.metadata!==void 0&&wr.encode(t.metadata,e.uint32(10).fork()).join(),t.clientId!==""&&e.uint32(18).string(t.clientId),t.clientSecret!==""&&e.uint32(26).string(t.clientSecret),t.baseUrl!==""&&e.uint32(34).string(t.baseUrl),t.tokenUrl!==""&&e.uint32(42).string(t.tokenUrl),t.resourceGroup!==""&&e.uint32(50).string(t.resourceGroup),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=$qn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.metadata=wr.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.clientId=r.string();continue}case 3:{if(o!==26)break;a.clientSecret=r.string();continue}case 4:{if(o!==34)break;a.baseUrl=r.string();continue}case 5:{if(o!==42)break;a.tokenUrl=r.string();continue}case 6:{if(o!==50)break;a.resourceGroup=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{metadata:Ke(t.metadata)?wr.fromJSON(t.metadata):void 0,clientId:Ke(t.clientId)?globalThis.String(t.clientId):Ke(t.client_id)?globalThis.String(t.client_id):"",clientSecret:Ke(t.clientSecret)?globalThis.String(t.clientSecret):Ke(t.client_secret)?globalThis.String(t.client_secret):"",baseUrl:Ke(t.baseUrl)?globalThis.String(t.baseUrl):Ke(t.base_url)?globalThis.String(t.base_url):"",tokenUrl:Ke(t.tokenUrl)?globalThis.String(t.tokenUrl):Ke(t.token_url)?globalThis.String(t.token_url):"",resourceGroup:Ke(t.resourceGroup)?globalThis.String(t.resourceGroup):Ke(t.resource_group)?globalThis.String(t.resource_group):""}},toJSON(t){let e={};return t.metadata!==void 0&&(e.metadata=wr.toJSON(t.metadata)),t.clientId!==""&&(e.clientId=t.clientId),t.clientSecret!==""&&(e.clientSecret=t.clientSecret),t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.tokenUrl!==""&&(e.tokenUrl=t.tokenUrl),t.resourceGroup!==""&&(e.resourceGroup=t.resourceGroup),e},create(t){return Rcr.fromPartial(t??{})},fromPartial(t){let e=$qn();return e.metadata=t.metadata!==void 0&&t.metadata!==null?wr.fromPartial(t.metadata):void 0,e.clientId=t.clientId??"",e.clientSecret=t.clientSecret??"",e.baseUrl=t.baseUrl??"",e.tokenUrl=t.tokenUrl??"",e.resourceGroup=t.resourceGroup??"",e}};TH={encode(t,e=new hr){return t.modelName!==""&&e.uint32(10).string(t.modelName),t.deploymentId!==""&&e.uint32(18).string(t.deploymentId),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Yqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.modelName=r.string();continue}case 2:{if(o!==18)break;a.deploymentId=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{modelName:Ke(t.modelName)?globalThis.String(t.modelName):Ke(t.model_name)?globalThis.String(t.model_name):"",deploymentId:Ke(t.deploymentId)?globalThis.String(t.deploymentId):Ke(t.deployment_id)?globalThis.String(t.deployment_id):""}},toJSON(t){let e={};return t.modelName!==""&&(e.modelName=t.modelName),t.deploymentId!==""&&(e.deploymentId=t.deploymentId),e},create(t){return TH.fromPartial(t??{})},fromPartial(t){let e=Yqn();return e.modelName=t.modelName??"",e.deploymentId=t.deploymentId??"",e}};eit={encode(t,e=new hr){for(let r of t.deployments)TH.encode(r,e.uint32(10).fork()).join();return t.orchestrationAvailable!==!1&&e.uint32(16).bool(t.orchestrationAvailable),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Jqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.deployments.push(TH.decode(r,r.uint32()));continue}case 2:{if(o!==16)break;a.orchestrationAvailable=r.bool();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{deployments:globalThis.Array.isArray(t?.deployments)?t.deployments.map(e=>TH.fromJSON(e)):[],orchestrationAvailable:Ke(t.orchestrationAvailable)?globalThis.Boolean(t.orchestrationAvailable):Ke(t.orchestration_available)?globalThis.Boolean(t.orchestration_available):!1}},toJSON(t){let e={};return t.deployments?.length&&(e.deployments=t.deployments.map(r=>TH.toJSON(r))),t.orchestrationAvailable!==!1&&(e.orchestrationAvailable=t.orchestrationAvailable),e},create(t){return eit.fromPartial(t??{})},fromPartial(t){let e=Jqn();return e.deployments=t.deployments?.map(r=>TH.fromPartial(r))||[],e.orchestrationAvailable=t.orchestrationAvailable??!1,e}};Rte={encode(t,e=new hr){return t.apiKey!==void 0&&e.uint32(10).string(t.apiKey),t.diracApiKey!==void 0&&e.uint32(18).string(t.diracApiKey),t.liteLlmApiKey!==void 0&&e.uint32(26).string(t.liteLlmApiKey),t.openRouterApiKey!==void 0&&e.uint32(34).string(t.openRouterApiKey),t.awsAccessKey!==void 0&&e.uint32(42).string(t.awsAccessKey),t.awsSecretKey!==void 0&&e.uint32(50).string(t.awsSecretKey),t.awsSessionToken!==void 0&&e.uint32(58).string(t.awsSessionToken),t.awsBedrockApiKey!==void 0&&e.uint32(66).string(t.awsBedrockApiKey),t.openAiApiKey!==void 0&&e.uint32(74).string(t.openAiApiKey),t.ollamaApiKey!==void 0&&e.uint32(82).string(t.ollamaApiKey),t.geminiApiKey!==void 0&&e.uint32(90).string(t.geminiApiKey),t.openAiNativeApiKey!==void 0&&e.uint32(98).string(t.openAiNativeApiKey),t.deepSeekApiKey!==void 0&&e.uint32(106).string(t.deepSeekApiKey),t.requestyApiKey!==void 0&&e.uint32(114).string(t.requestyApiKey),t.togetherApiKey!==void 0&&e.uint32(122).string(t.togetherApiKey),t.fireworksApiKey!==void 0&&e.uint32(130).string(t.fireworksApiKey),t.qwenApiKey!==void 0&&e.uint32(138).string(t.qwenApiKey),t.doubaoApiKey!==void 0&&e.uint32(146).string(t.doubaoApiKey),t.mistralApiKey!==void 0&&e.uint32(154).string(t.mistralApiKey),t.nebiusApiKey!==void 0&&e.uint32(162).string(t.nebiusApiKey),t.asksageApiKey!==void 0&&e.uint32(170).string(t.asksageApiKey),t.xaiApiKey!==void 0&&e.uint32(178).string(t.xaiApiKey),t.sambanovaApiKey!==void 0&&e.uint32(186).string(t.sambanovaApiKey),t.cerebrasApiKey!==void 0&&e.uint32(194).string(t.cerebrasApiKey),t.sapAiCoreClientId!==void 0&&e.uint32(202).string(t.sapAiCoreClientId),t.sapAiCoreClientSecret!==void 0&&e.uint32(210).string(t.sapAiCoreClientSecret),t.moonshotApiKey!==void 0&&e.uint32(218).string(t.moonshotApiKey),t.diracAccountId!==void 0&&e.uint32(226).string(t.diracAccountId),t.groqApiKey!==void 0&&e.uint32(234).string(t.groqApiKey),t.huggingFaceApiKey!==void 0&&e.uint32(242).string(t.huggingFaceApiKey),t.huaweiCloudMaasApiKey!==void 0&&e.uint32(250).string(t.huaweiCloudMaasApiKey),t.basetenApiKey!==void 0&&e.uint32(258).string(t.basetenApiKey),t.zaiApiKey!==void 0&&e.uint32(266).string(t.zaiApiKey),t.vercelAiGatewayApiKey!==void 0&&e.uint32(274).string(t.vercelAiGatewayApiKey),t.difyApiKey!==void 0&&e.uint32(282).string(t.difyApiKey),t.minimaxApiKey!==void 0&&e.uint32(306).string(t.minimaxApiKey),t.aihubmixApiKey!==void 0&&e.uint32(314).string(t.aihubmixApiKey),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Xqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.apiKey=r.string();continue}case 2:{if(o!==18)break;a.diracApiKey=r.string();continue}case 3:{if(o!==26)break;a.liteLlmApiKey=r.string();continue}case 4:{if(o!==34)break;a.openRouterApiKey=r.string();continue}case 5:{if(o!==42)break;a.awsAccessKey=r.string();continue}case 6:{if(o!==50)break;a.awsSecretKey=r.string();continue}case 7:{if(o!==58)break;a.awsSessionToken=r.string();continue}case 8:{if(o!==66)break;a.awsBedrockApiKey=r.string();continue}case 9:{if(o!==74)break;a.openAiApiKey=r.string();continue}case 10:{if(o!==82)break;a.ollamaApiKey=r.string();continue}case 11:{if(o!==90)break;a.geminiApiKey=r.string();continue}case 12:{if(o!==98)break;a.openAiNativeApiKey=r.string();continue}case 13:{if(o!==106)break;a.deepSeekApiKey=r.string();continue}case 14:{if(o!==114)break;a.requestyApiKey=r.string();continue}case 15:{if(o!==122)break;a.togetherApiKey=r.string();continue}case 16:{if(o!==130)break;a.fireworksApiKey=r.string();continue}case 17:{if(o!==138)break;a.qwenApiKey=r.string();continue}case 18:{if(o!==146)break;a.doubaoApiKey=r.string();continue}case 19:{if(o!==154)break;a.mistralApiKey=r.string();continue}case 20:{if(o!==162)break;a.nebiusApiKey=r.string();continue}case 21:{if(o!==170)break;a.asksageApiKey=r.string();continue}case 22:{if(o!==178)break;a.xaiApiKey=r.string();continue}case 23:{if(o!==186)break;a.sambanovaApiKey=r.string();continue}case 24:{if(o!==194)break;a.cerebrasApiKey=r.string();continue}case 25:{if(o!==202)break;a.sapAiCoreClientId=r.string();continue}case 26:{if(o!==210)break;a.sapAiCoreClientSecret=r.string();continue}case 27:{if(o!==218)break;a.moonshotApiKey=r.string();continue}case 28:{if(o!==226)break;a.diracAccountId=r.string();continue}case 29:{if(o!==234)break;a.groqApiKey=r.string();continue}case 30:{if(o!==242)break;a.huggingFaceApiKey=r.string();continue}case 31:{if(o!==250)break;a.huaweiCloudMaasApiKey=r.string();continue}case 32:{if(o!==258)break;a.basetenApiKey=r.string();continue}case 33:{if(o!==266)break;a.zaiApiKey=r.string();continue}case 34:{if(o!==274)break;a.vercelAiGatewayApiKey=r.string();continue}case 35:{if(o!==282)break;a.difyApiKey=r.string();continue}case 38:{if(o!==306)break;a.minimaxApiKey=r.string();continue}case 39:{if(o!==314)break;a.aihubmixApiKey=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{apiKey:Ke(t.apiKey)?globalThis.String(t.apiKey):Ke(t.api_key)?globalThis.String(t.api_key):void 0,diracApiKey:Ke(t.diracApiKey)?globalThis.String(t.diracApiKey):Ke(t.dirac_api_key)?globalThis.String(t.dirac_api_key):void 0,liteLlmApiKey:Ke(t.liteLlmApiKey)?globalThis.String(t.liteLlmApiKey):Ke(t.lite_llm_api_key)?globalThis.String(t.lite_llm_api_key):void 0,openRouterApiKey:Ke(t.openRouterApiKey)?globalThis.String(t.openRouterApiKey):Ke(t.open_router_api_key)?globalThis.String(t.open_router_api_key):void 0,awsAccessKey:Ke(t.awsAccessKey)?globalThis.String(t.awsAccessKey):Ke(t.aws_access_key)?globalThis.String(t.aws_access_key):void 0,awsSecretKey:Ke(t.awsSecretKey)?globalThis.String(t.awsSecretKey):Ke(t.aws_secret_key)?globalThis.String(t.aws_secret_key):void 0,awsSessionToken:Ke(t.awsSessionToken)?globalThis.String(t.awsSessionToken):Ke(t.aws_session_token)?globalThis.String(t.aws_session_token):void 0,awsBedrockApiKey:Ke(t.awsBedrockApiKey)?globalThis.String(t.awsBedrockApiKey):Ke(t.aws_bedrock_api_key)?globalThis.String(t.aws_bedrock_api_key):void 0,openAiApiKey:Ke(t.openAiApiKey)?globalThis.String(t.openAiApiKey):Ke(t.open_ai_api_key)?globalThis.String(t.open_ai_api_key):void 0,ollamaApiKey:Ke(t.ollamaApiKey)?globalThis.String(t.ollamaApiKey):Ke(t.ollama_api_key)?globalThis.String(t.ollama_api_key):void 0,geminiApiKey:Ke(t.geminiApiKey)?globalThis.String(t.geminiApiKey):Ke(t.gemini_api_key)?globalThis.String(t.gemini_api_key):void 0,openAiNativeApiKey:Ke(t.openAiNativeApiKey)?globalThis.String(t.openAiNativeApiKey):Ke(t.open_ai_native_api_key)?globalThis.String(t.open_ai_native_api_key):void 0,deepSeekApiKey:Ke(t.deepSeekApiKey)?globalThis.String(t.deepSeekApiKey):Ke(t.deep_seek_api_key)?globalThis.String(t.deep_seek_api_key):void 0,requestyApiKey:Ke(t.requestyApiKey)?globalThis.String(t.requestyApiKey):Ke(t.requesty_api_key)?globalThis.String(t.requesty_api_key):void 0,togetherApiKey:Ke(t.togetherApiKey)?globalThis.String(t.togetherApiKey):Ke(t.together_api_key)?globalThis.String(t.together_api_key):void 0,fireworksApiKey:Ke(t.fireworksApiKey)?globalThis.String(t.fireworksApiKey):Ke(t.fireworks_api_key)?globalThis.String(t.fireworks_api_key):void 0,qwenApiKey:Ke(t.qwenApiKey)?globalThis.String(t.qwenApiKey):Ke(t.qwen_api_key)?globalThis.String(t.qwen_api_key):void 0,doubaoApiKey:Ke(t.doubaoApiKey)?globalThis.String(t.doubaoApiKey):Ke(t.doubao_api_key)?globalThis.String(t.doubao_api_key):void 0,mistralApiKey:Ke(t.mistralApiKey)?globalThis.String(t.mistralApiKey):Ke(t.mistral_api_key)?globalThis.String(t.mistral_api_key):void 0,nebiusApiKey:Ke(t.nebiusApiKey)?globalThis.String(t.nebiusApiKey):Ke(t.nebius_api_key)?globalThis.String(t.nebius_api_key):void 0,asksageApiKey:Ke(t.asksageApiKey)?globalThis.String(t.asksageApiKey):Ke(t.asksage_api_key)?globalThis.String(t.asksage_api_key):void 0,xaiApiKey:Ke(t.xaiApiKey)?globalThis.String(t.xaiApiKey):Ke(t.xai_api_key)?globalThis.String(t.xai_api_key):void 0,sambanovaApiKey:Ke(t.sambanovaApiKey)?globalThis.String(t.sambanovaApiKey):Ke(t.sambanova_api_key)?globalThis.String(t.sambanova_api_key):void 0,cerebrasApiKey:Ke(t.cerebrasApiKey)?globalThis.String(t.cerebrasApiKey):Ke(t.cerebras_api_key)?globalThis.String(t.cerebras_api_key):void 0,sapAiCoreClientId:Ke(t.sapAiCoreClientId)?globalThis.String(t.sapAiCoreClientId):Ke(t.sap_ai_core_client_id)?globalThis.String(t.sap_ai_core_client_id):void 0,sapAiCoreClientSecret:Ke(t.sapAiCoreClientSecret)?globalThis.String(t.sapAiCoreClientSecret):Ke(t.sap_ai_core_client_secret)?globalThis.String(t.sap_ai_core_client_secret):void 0,moonshotApiKey:Ke(t.moonshotApiKey)?globalThis.String(t.moonshotApiKey):Ke(t.moonshot_api_key)?globalThis.String(t.moonshot_api_key):void 0,diracAccountId:Ke(t.diracAccountId)?globalThis.String(t.diracAccountId):Ke(t.dirac_account_id)?globalThis.String(t.dirac_account_id):void 0,groqApiKey:Ke(t.groqApiKey)?globalThis.String(t.groqApiKey):Ke(t.groq_api_key)?globalThis.String(t.groq_api_key):void 0,huggingFaceApiKey:Ke(t.huggingFaceApiKey)?globalThis.String(t.huggingFaceApiKey):Ke(t.hugging_face_api_key)?globalThis.String(t.hugging_face_api_key):void 0,huaweiCloudMaasApiKey:Ke(t.huaweiCloudMaasApiKey)?globalThis.String(t.huaweiCloudMaasApiKey):Ke(t.huawei_cloud_maas_api_key)?globalThis.String(t.huawei_cloud_maas_api_key):void 0,basetenApiKey:Ke(t.basetenApiKey)?globalThis.String(t.basetenApiKey):Ke(t.baseten_api_key)?globalThis.String(t.baseten_api_key):void 0,zaiApiKey:Ke(t.zaiApiKey)?globalThis.String(t.zaiApiKey):Ke(t.zai_api_key)?globalThis.String(t.zai_api_key):void 0,vercelAiGatewayApiKey:Ke(t.vercelAiGatewayApiKey)?globalThis.String(t.vercelAiGatewayApiKey):Ke(t.vercel_ai_gateway_api_key)?globalThis.String(t.vercel_ai_gateway_api_key):void 0,difyApiKey:Ke(t.difyApiKey)?globalThis.String(t.difyApiKey):Ke(t.dify_api_key)?globalThis.String(t.dify_api_key):void 0,minimaxApiKey:Ke(t.minimaxApiKey)?globalThis.String(t.minimaxApiKey):Ke(t.minimax_api_key)?globalThis.String(t.minimax_api_key):void 0,aihubmixApiKey:Ke(t.aihubmixApiKey)?globalThis.String(t.aihubmixApiKey):Ke(t.aihubmix_api_key)?globalThis.String(t.aihubmix_api_key):void 0}},toJSON(t){let e={};return t.apiKey!==void 0&&(e.apiKey=t.apiKey),t.diracApiKey!==void 0&&(e.diracApiKey=t.diracApiKey),t.liteLlmApiKey!==void 0&&(e.liteLlmApiKey=t.liteLlmApiKey),t.openRouterApiKey!==void 0&&(e.openRouterApiKey=t.openRouterApiKey),t.awsAccessKey!==void 0&&(e.awsAccessKey=t.awsAccessKey),t.awsSecretKey!==void 0&&(e.awsSecretKey=t.awsSecretKey),t.awsSessionToken!==void 0&&(e.awsSessionToken=t.awsSessionToken),t.awsBedrockApiKey!==void 0&&(e.awsBedrockApiKey=t.awsBedrockApiKey),t.openAiApiKey!==void 0&&(e.openAiApiKey=t.openAiApiKey),t.ollamaApiKey!==void 0&&(e.ollamaApiKey=t.ollamaApiKey),t.geminiApiKey!==void 0&&(e.geminiApiKey=t.geminiApiKey),t.openAiNativeApiKey!==void 0&&(e.openAiNativeApiKey=t.openAiNativeApiKey),t.deepSeekApiKey!==void 0&&(e.deepSeekApiKey=t.deepSeekApiKey),t.requestyApiKey!==void 0&&(e.requestyApiKey=t.requestyApiKey),t.togetherApiKey!==void 0&&(e.togetherApiKey=t.togetherApiKey),t.fireworksApiKey!==void 0&&(e.fireworksApiKey=t.fireworksApiKey),t.qwenApiKey!==void 0&&(e.qwenApiKey=t.qwenApiKey),t.doubaoApiKey!==void 0&&(e.doubaoApiKey=t.doubaoApiKey),t.mistralApiKey!==void 0&&(e.mistralApiKey=t.mistralApiKey),t.nebiusApiKey!==void 0&&(e.nebiusApiKey=t.nebiusApiKey),t.asksageApiKey!==void 0&&(e.asksageApiKey=t.asksageApiKey),t.xaiApiKey!==void 0&&(e.xaiApiKey=t.xaiApiKey),t.sambanovaApiKey!==void 0&&(e.sambanovaApiKey=t.sambanovaApiKey),t.cerebrasApiKey!==void 0&&(e.cerebrasApiKey=t.cerebrasApiKey),t.sapAiCoreClientId!==void 0&&(e.sapAiCoreClientId=t.sapAiCoreClientId),t.sapAiCoreClientSecret!==void 0&&(e.sapAiCoreClientSecret=t.sapAiCoreClientSecret),t.moonshotApiKey!==void 0&&(e.moonshotApiKey=t.moonshotApiKey),t.diracAccountId!==void 0&&(e.diracAccountId=t.diracAccountId),t.groqApiKey!==void 0&&(e.groqApiKey=t.groqApiKey),t.huggingFaceApiKey!==void 0&&(e.huggingFaceApiKey=t.huggingFaceApiKey),t.huaweiCloudMaasApiKey!==void 0&&(e.huaweiCloudMaasApiKey=t.huaweiCloudMaasApiKey),t.basetenApiKey!==void 0&&(e.basetenApiKey=t.basetenApiKey),t.zaiApiKey!==void 0&&(e.zaiApiKey=t.zaiApiKey),t.vercelAiGatewayApiKey!==void 0&&(e.vercelAiGatewayApiKey=t.vercelAiGatewayApiKey),t.difyApiKey!==void 0&&(e.difyApiKey=t.difyApiKey),t.minimaxApiKey!==void 0&&(e.minimaxApiKey=t.minimaxApiKey),t.aihubmixApiKey!==void 0&&(e.aihubmixApiKey=t.aihubmixApiKey),e},create(t){return Rte.fromPartial(t??{})},fromPartial(t){let e=Xqn();return e.apiKey=t.apiKey??void 0,e.diracApiKey=t.diracApiKey??void 0,e.liteLlmApiKey=t.liteLlmApiKey??void 0,e.openRouterApiKey=t.openRouterApiKey??void 0,e.awsAccessKey=t.awsAccessKey??void 0,e.awsSecretKey=t.awsSecretKey??void 0,e.awsSessionToken=t.awsSessionToken??void 0,e.awsBedrockApiKey=t.awsBedrockApiKey??void 0,e.openAiApiKey=t.openAiApiKey??void 0,e.ollamaApiKey=t.ollamaApiKey??void 0,e.geminiApiKey=t.geminiApiKey??void 0,e.openAiNativeApiKey=t.openAiNativeApiKey??void 0,e.deepSeekApiKey=t.deepSeekApiKey??void 0,e.requestyApiKey=t.requestyApiKey??void 0,e.togetherApiKey=t.togetherApiKey??void 0,e.fireworksApiKey=t.fireworksApiKey??void 0,e.qwenApiKey=t.qwenApiKey??void 0,e.doubaoApiKey=t.doubaoApiKey??void 0,e.mistralApiKey=t.mistralApiKey??void 0,e.nebiusApiKey=t.nebiusApiKey??void 0,e.asksageApiKey=t.asksageApiKey??void 0,e.xaiApiKey=t.xaiApiKey??void 0,e.sambanovaApiKey=t.sambanovaApiKey??void 0,e.cerebrasApiKey=t.cerebrasApiKey??void 0,e.sapAiCoreClientId=t.sapAiCoreClientId??void 0,e.sapAiCoreClientSecret=t.sapAiCoreClientSecret??void 0,e.moonshotApiKey=t.moonshotApiKey??void 0,e.diracAccountId=t.diracAccountId??void 0,e.groqApiKey=t.groqApiKey??void 0,e.huggingFaceApiKey=t.huggingFaceApiKey??void 0,e.huaweiCloudMaasApiKey=t.huaweiCloudMaasApiKey??void 0,e.basetenApiKey=t.basetenApiKey??void 0,e.zaiApiKey=t.zaiApiKey??void 0,e.vercelAiGatewayApiKey=t.vercelAiGatewayApiKey??void 0,e.difyApiKey=t.difyApiKey??void 0,e.minimaxApiKey=t.minimaxApiKey??void 0,e.aihubmixApiKey=t.aihubmixApiKey??void 0,e}};Bte={encode(t,e=new hr){return t.ulid!==void 0&&e.uint32(10).string(t.ulid),t.liteLlmBaseUrl!==void 0&&e.uint32(18).string(t.liteLlmBaseUrl),t.liteLlmUsePromptCache!==void 0&&e.uint32(24).bool(t.liteLlmUsePromptCache),globalThis.Object.entries(t.openAiHeaders).forEach(([r,i])=>{Ynt.encode({key:r,value:i},e.uint32(34).fork()).join()}),t.anthropicBaseUrl!==void 0&&e.uint32(42).string(t.anthropicBaseUrl),t.openRouterProviderSorting!==void 0&&e.uint32(50).string(t.openRouterProviderSorting),t.awsRegion!==void 0&&e.uint32(58).string(t.awsRegion),t.awsUseCrossRegionInference!==void 0&&e.uint32(64).bool(t.awsUseCrossRegionInference),t.awsBedrockUsePromptCache!==void 0&&e.uint32(72).bool(t.awsBedrockUsePromptCache),t.awsUseProfile!==void 0&&e.uint32(80).bool(t.awsUseProfile),t.awsProfile!==void 0&&e.uint32(90).string(t.awsProfile),t.awsBedrockEndpoint!==void 0&&e.uint32(98).string(t.awsBedrockEndpoint),t.claudeCodePath!==void 0&&e.uint32(106).string(t.claudeCodePath),t.vertexProjectId!==void 0&&e.uint32(114).string(t.vertexProjectId),t.vertexRegion!==void 0&&e.uint32(122).string(t.vertexRegion),t.openAiBaseUrl!==void 0&&e.uint32(130).string(t.openAiBaseUrl),t.ollamaBaseUrl!==void 0&&e.uint32(138).string(t.ollamaBaseUrl),t.ollamaApiOptionsCtxNum!==void 0&&e.uint32(146).string(t.ollamaApiOptionsCtxNum),t.lmStudioBaseUrl!==void 0&&e.uint32(154).string(t.lmStudioBaseUrl),t.geminiBaseUrl!==void 0&&e.uint32(162).string(t.geminiBaseUrl),t.requestyBaseUrl!==void 0&&e.uint32(170).string(t.requestyBaseUrl),t.fireworksModelMaxCompletionTokens!==void 0&&e.uint32(176).int64(t.fireworksModelMaxCompletionTokens),t.fireworksModelMaxTokens!==void 0&&e.uint32(184).int64(t.fireworksModelMaxTokens),t.azureApiVersion!==void 0&&e.uint32(194).string(t.azureApiVersion),t.qwenApiLine!==void 0&&e.uint32(202).string(t.qwenApiLine),t.asksageApiUrl!==void 0&&e.uint32(210).string(t.asksageApiUrl),t.requestTimeoutMs!==void 0&&e.uint32(216).int64(t.requestTimeoutMs),t.sapAiResourceGroup!==void 0&&e.uint32(226).string(t.sapAiResourceGroup),t.sapAiCoreTokenUrl!==void 0&&e.uint32(234).string(t.sapAiCoreTokenUrl),t.sapAiCoreBaseUrl!==void 0&&e.uint32(242).string(t.sapAiCoreBaseUrl),t.sapAiCoreUseOrchestrationMode!==void 0&&e.uint32(248).bool(t.sapAiCoreUseOrchestrationMode),t.moonshotApiLine!==void 0&&e.uint32(258).string(t.moonshotApiLine),t.awsAuthentication!==void 0&&e.uint32(266).string(t.awsAuthentication),t.zaiApiLine!==void 0&&e.uint32(274).string(t.zaiApiLine),t.lmStudioMaxTokens!==void 0&&e.uint32(282).string(t.lmStudioMaxTokens),t.qwenCodeOauthPath!==void 0&&e.uint32(290).string(t.qwenCodeOauthPath),t.difyBaseUrl!==void 0&&e.uint32(298).string(t.difyBaseUrl),t.awsUseGlobalInference!==void 0&&e.uint32(320).bool(t.awsUseGlobalInference),t.minimaxApiLine!==void 0&&e.uint32(330).string(t.minimaxApiLine),t.aihubmixBaseUrl!==void 0&&e.uint32(338).string(t.aihubmixBaseUrl),t.aihubmixAppCode!==void 0&&e.uint32(346).string(t.aihubmixAppCode),t.azureIdentity!==void 0&&e.uint32(352).bool(t.azureIdentity),t.planModeApiProvider!==void 0&&e.uint32(800).int32(t.planModeApiProvider),t.planModeApiModelId!==void 0&&e.uint32(810).string(t.planModeApiModelId),t.planModeThinkingBudgetTokens!==void 0&&e.uint32(816).int64(t.planModeThinkingBudgetTokens),t.planModeReasoningEffort!==void 0&&e.uint32(826).string(t.planModeReasoningEffort),t.planModeVsCodeLmModelSelector!==void 0&&du.encode(t.planModeVsCodeLmModelSelector,e.uint32(834).fork()).join(),t.planModeAwsBedrockCustomSelected!==void 0&&e.uint32(840).bool(t.planModeAwsBedrockCustomSelected),t.planModeAwsBedrockCustomModelBaseId!==void 0&&e.uint32(850).string(t.planModeAwsBedrockCustomModelBaseId),t.planModeOpenRouterModelId!==void 0&&e.uint32(858).string(t.planModeOpenRouterModelId),t.planModeOpenRouterModelInfo!==void 0&&Wt.encode(t.planModeOpenRouterModelInfo,e.uint32(866).fork()).join(),t.planModeOpenAiModelId!==void 0&&e.uint32(874).string(t.planModeOpenAiModelId),t.planModeOpenAiModelInfo!==void 0&&Ba.encode(t.planModeOpenAiModelInfo,e.uint32(882).fork()).join(),t.planModeOllamaModelId!==void 0&&e.uint32(890).string(t.planModeOllamaModelId),t.planModeLmStudioModelId!==void 0&&e.uint32(898).string(t.planModeLmStudioModelId),t.planModeLiteLlmModelId!==void 0&&e.uint32(906).string(t.planModeLiteLlmModelId),t.planModeLiteLlmModelInfo!==void 0&&sc.encode(t.planModeLiteLlmModelInfo,e.uint32(914).fork()).join(),t.planModeRequestyModelId!==void 0&&e.uint32(922).string(t.planModeRequestyModelId),t.planModeRequestyModelInfo!==void 0&&Wt.encode(t.planModeRequestyModelInfo,e.uint32(930).fork()).join(),t.planModeTogetherModelId!==void 0&&e.uint32(938).string(t.planModeTogetherModelId),t.planModeFireworksModelId!==void 0&&e.uint32(946).string(t.planModeFireworksModelId),t.planModeSapAiCoreModelId!==void 0&&e.uint32(954).string(t.planModeSapAiCoreModelId),t.planModeSapAiCoreDeploymentId!==void 0&&e.uint32(962).string(t.planModeSapAiCoreDeploymentId),t.planModeGroqModelId!==void 0&&e.uint32(970).string(t.planModeGroqModelId),t.planModeGroqModelInfo!==void 0&&Wt.encode(t.planModeGroqModelInfo,e.uint32(978).fork()).join(),t.planModeHuggingFaceModelId!==void 0&&e.uint32(986).string(t.planModeHuggingFaceModelId),t.planModeHuggingFaceModelInfo!==void 0&&Wt.encode(t.planModeHuggingFaceModelInfo,e.uint32(994).fork()).join(),t.planModeHuaweiCloudMaasModelId!==void 0&&e.uint32(1002).string(t.planModeHuaweiCloudMaasModelId),t.planModeHuaweiCloudMaasModelInfo!==void 0&&Wt.encode(t.planModeHuaweiCloudMaasModelInfo,e.uint32(1010).fork()).join(),t.planModeBasetenModelId!==void 0&&e.uint32(1018).string(t.planModeBasetenModelId),t.planModeBasetenModelInfo!==void 0&&Wt.encode(t.planModeBasetenModelInfo,e.uint32(1026).fork()).join(),t.planModeVercelAiGatewayModelId!==void 0&&e.uint32(1034).string(t.planModeVercelAiGatewayModelId),t.planModeVercelAiGatewayModelInfo!==void 0&&Wt.encode(t.planModeVercelAiGatewayModelInfo,e.uint32(1042).fork()).join(),t.planModeAihubmixModelId!==void 0&&e.uint32(1066).string(t.planModeAihubmixModelId),t.planModeAihubmixModelInfo!==void 0&&Ba.encode(t.planModeAihubmixModelInfo,e.uint32(1074).fork()).join(),t.planModeDiracModelId!==void 0&&e.uint32(1082).string(t.planModeDiracModelId),t.planModeDiracModelInfo!==void 0&&Wt.encode(t.planModeDiracModelInfo,e.uint32(1090).fork()).join(),t.actModeApiProvider!==void 0&&e.uint32(1600).int32(t.actModeApiProvider),t.actModeApiModelId!==void 0&&e.uint32(1610).string(t.actModeApiModelId),t.actModeThinkingBudgetTokens!==void 0&&e.uint32(1616).int64(t.actModeThinkingBudgetTokens),t.actModeReasoningEffort!==void 0&&e.uint32(1626).string(t.actModeReasoningEffort),t.actModeVsCodeLmModelSelector!==void 0&&du.encode(t.actModeVsCodeLmModelSelector,e.uint32(1634).fork()).join(),t.actModeAwsBedrockCustomSelected!==void 0&&e.uint32(1640).bool(t.actModeAwsBedrockCustomSelected),t.actModeAwsBedrockCustomModelBaseId!==void 0&&e.uint32(1650).string(t.actModeAwsBedrockCustomModelBaseId),t.actModeOpenRouterModelId!==void 0&&e.uint32(1658).string(t.actModeOpenRouterModelId),t.actModeOpenRouterModelInfo!==void 0&&Wt.encode(t.actModeOpenRouterModelInfo,e.uint32(1666).fork()).join(),t.actModeOpenAiModelId!==void 0&&e.uint32(1674).string(t.actModeOpenAiModelId),t.actModeOpenAiModelInfo!==void 0&&Ba.encode(t.actModeOpenAiModelInfo,e.uint32(1682).fork()).join(),t.actModeOllamaModelId!==void 0&&e.uint32(1690).string(t.actModeOllamaModelId),t.actModeLmStudioModelId!==void 0&&e.uint32(1698).string(t.actModeLmStudioModelId),t.actModeLiteLlmModelId!==void 0&&e.uint32(1706).string(t.actModeLiteLlmModelId),t.actModeLiteLlmModelInfo!==void 0&&sc.encode(t.actModeLiteLlmModelInfo,e.uint32(1714).fork()).join(),t.actModeRequestyModelId!==void 0&&e.uint32(1722).string(t.actModeRequestyModelId),t.actModeRequestyModelInfo!==void 0&&Wt.encode(t.actModeRequestyModelInfo,e.uint32(1730).fork()).join(),t.actModeTogetherModelId!==void 0&&e.uint32(1738).string(t.actModeTogetherModelId),t.actModeFireworksModelId!==void 0&&e.uint32(1746).string(t.actModeFireworksModelId),t.actModeSapAiCoreModelId!==void 0&&e.uint32(1754).string(t.actModeSapAiCoreModelId),t.actModeSapAiCoreDeploymentId!==void 0&&e.uint32(1762).string(t.actModeSapAiCoreDeploymentId),t.actModeGroqModelId!==void 0&&e.uint32(1770).string(t.actModeGroqModelId),t.actModeGroqModelInfo!==void 0&&Wt.encode(t.actModeGroqModelInfo,e.uint32(1778).fork()).join(),t.actModeHuggingFaceModelId!==void 0&&e.uint32(1786).string(t.actModeHuggingFaceModelId),t.actModeHuggingFaceModelInfo!==void 0&&Wt.encode(t.actModeHuggingFaceModelInfo,e.uint32(1794).fork()).join(),t.actModeHuaweiCloudMaasModelId!==void 0&&e.uint32(1802).string(t.actModeHuaweiCloudMaasModelId),t.actModeHuaweiCloudMaasModelInfo!==void 0&&Wt.encode(t.actModeHuaweiCloudMaasModelInfo,e.uint32(1810).fork()).join(),t.actModeBasetenModelId!==void 0&&e.uint32(1818).string(t.actModeBasetenModelId),t.actModeBasetenModelInfo!==void 0&&Wt.encode(t.actModeBasetenModelInfo,e.uint32(1826).fork()).join(),t.actModeVercelAiGatewayModelId!==void 0&&e.uint32(1834).string(t.actModeVercelAiGatewayModelId),t.actModeVercelAiGatewayModelInfo!==void 0&&Wt.encode(t.actModeVercelAiGatewayModelInfo,e.uint32(1842).fork()).join(),t.actModeAihubmixModelId!==void 0&&e.uint32(1866).string(t.actModeAihubmixModelId),t.actModeAihubmixModelInfo!==void 0&&Ba.encode(t.actModeAihubmixModelInfo,e.uint32(1874).fork()).join(),t.actModeDiracModelId!==void 0&&e.uint32(1882).string(t.actModeDiracModelId),t.actModeDiracModelInfo!==void 0&&Wt.encode(t.actModeDiracModelInfo,e.uint32(1890).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=Zqn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.ulid=r.string();continue}case 2:{if(o!==18)break;a.liteLlmBaseUrl=r.string();continue}case 3:{if(o!==24)break;a.liteLlmUsePromptCache=r.bool();continue}case 4:{if(o!==34)break;let n=Ynt.decode(r,r.uint32());n.value!==void 0&&(a.openAiHeaders[n.key]=n.value);continue}case 5:{if(o!==42)break;a.anthropicBaseUrl=r.string();continue}case 6:{if(o!==50)break;a.openRouterProviderSorting=r.string();continue}case 7:{if(o!==58)break;a.awsRegion=r.string();continue}case 8:{if(o!==64)break;a.awsUseCrossRegionInference=r.bool();continue}case 9:{if(o!==72)break;a.awsBedrockUsePromptCache=r.bool();continue}case 10:{if(o!==80)break;a.awsUseProfile=r.bool();continue}case 11:{if(o!==90)break;a.awsProfile=r.string();continue}case 12:{if(o!==98)break;a.awsBedrockEndpoint=r.string();continue}case 13:{if(o!==106)break;a.claudeCodePath=r.string();continue}case 14:{if(o!==114)break;a.vertexProjectId=r.string();continue}case 15:{if(o!==122)break;a.vertexRegion=r.string();continue}case 16:{if(o!==130)break;a.openAiBaseUrl=r.string();continue}case 17:{if(o!==138)break;a.ollamaBaseUrl=r.string();continue}case 18:{if(o!==146)break;a.ollamaApiOptionsCtxNum=r.string();continue}case 19:{if(o!==154)break;a.lmStudioBaseUrl=r.string();continue}case 20:{if(o!==162)break;a.geminiBaseUrl=r.string();continue}case 21:{if(o!==170)break;a.requestyBaseUrl=r.string();continue}case 22:{if(o!==176)break;a.fireworksModelMaxCompletionTokens=bg(r.int64());continue}case 23:{if(o!==184)break;a.fireworksModelMaxTokens=bg(r.int64());continue}case 24:{if(o!==194)break;a.azureApiVersion=r.string();continue}case 25:{if(o!==202)break;a.qwenApiLine=r.string();continue}case 26:{if(o!==210)break;a.asksageApiUrl=r.string();continue}case 27:{if(o!==216)break;a.requestTimeoutMs=bg(r.int64());continue}case 28:{if(o!==226)break;a.sapAiResourceGroup=r.string();continue}case 29:{if(o!==234)break;a.sapAiCoreTokenUrl=r.string();continue}case 30:{if(o!==242)break;a.sapAiCoreBaseUrl=r.string();continue}case 31:{if(o!==248)break;a.sapAiCoreUseOrchestrationMode=r.bool();continue}case 32:{if(o!==258)break;a.moonshotApiLine=r.string();continue}case 33:{if(o!==266)break;a.awsAuthentication=r.string();continue}case 34:{if(o!==274)break;a.zaiApiLine=r.string();continue}case 35:{if(o!==282)break;a.lmStudioMaxTokens=r.string();continue}case 36:{if(o!==290)break;a.qwenCodeOauthPath=r.string();continue}case 37:{if(o!==298)break;a.difyBaseUrl=r.string();continue}case 40:{if(o!==320)break;a.awsUseGlobalInference=r.bool();continue}case 41:{if(o!==330)break;a.minimaxApiLine=r.string();continue}case 42:{if(o!==338)break;a.aihubmixBaseUrl=r.string();continue}case 43:{if(o!==346)break;a.aihubmixAppCode=r.string();continue}case 44:{if(o!==352)break;a.azureIdentity=r.bool();continue}case 100:{if(o!==800)break;a.planModeApiProvider=r.int32();continue}case 101:{if(o!==810)break;a.planModeApiModelId=r.string();continue}case 102:{if(o!==816)break;a.planModeThinkingBudgetTokens=bg(r.int64());continue}case 103:{if(o!==826)break;a.planModeReasoningEffort=r.string();continue}case 104:{if(o!==834)break;a.planModeVsCodeLmModelSelector=du.decode(r,r.uint32());continue}case 105:{if(o!==840)break;a.planModeAwsBedrockCustomSelected=r.bool();continue}case 106:{if(o!==850)break;a.planModeAwsBedrockCustomModelBaseId=r.string();continue}case 107:{if(o!==858)break;a.planModeOpenRouterModelId=r.string();continue}case 108:{if(o!==866)break;a.planModeOpenRouterModelInfo=Wt.decode(r,r.uint32());continue}case 109:{if(o!==874)break;a.planModeOpenAiModelId=r.string();continue}case 110:{if(o!==882)break;a.planModeOpenAiModelInfo=Ba.decode(r,r.uint32());continue}case 111:{if(o!==890)break;a.planModeOllamaModelId=r.string();continue}case 112:{if(o!==898)break;a.planModeLmStudioModelId=r.string();continue}case 113:{if(o!==906)break;a.planModeLiteLlmModelId=r.string();continue}case 114:{if(o!==914)break;a.planModeLiteLlmModelInfo=sc.decode(r,r.uint32());continue}case 115:{if(o!==922)break;a.planModeRequestyModelId=r.string();continue}case 116:{if(o!==930)break;a.planModeRequestyModelInfo=Wt.decode(r,r.uint32());continue}case 117:{if(o!==938)break;a.planModeTogetherModelId=r.string();continue}case 118:{if(o!==946)break;a.planModeFireworksModelId=r.string();continue}case 119:{if(o!==954)break;a.planModeSapAiCoreModelId=r.string();continue}case 120:{if(o!==962)break;a.planModeSapAiCoreDeploymentId=r.string();continue}case 121:{if(o!==970)break;a.planModeGroqModelId=r.string();continue}case 122:{if(o!==978)break;a.planModeGroqModelInfo=Wt.decode(r,r.uint32());continue}case 123:{if(o!==986)break;a.planModeHuggingFaceModelId=r.string();continue}case 124:{if(o!==994)break;a.planModeHuggingFaceModelInfo=Wt.decode(r,r.uint32());continue}case 125:{if(o!==1002)break;a.planModeHuaweiCloudMaasModelId=r.string();continue}case 126:{if(o!==1010)break;a.planModeHuaweiCloudMaasModelInfo=Wt.decode(r,r.uint32());continue}case 127:{if(o!==1018)break;a.planModeBasetenModelId=r.string();continue}case 128:{if(o!==1026)break;a.planModeBasetenModelInfo=Wt.decode(r,r.uint32());continue}case 129:{if(o!==1034)break;a.planModeVercelAiGatewayModelId=r.string();continue}case 130:{if(o!==1042)break;a.planModeVercelAiGatewayModelInfo=Wt.decode(r,r.uint32());continue}case 133:{if(o!==1066)break;a.planModeAihubmixModelId=r.string();continue}case 134:{if(o!==1074)break;a.planModeAihubmixModelInfo=Ba.decode(r,r.uint32());continue}case 135:{if(o!==1082)break;a.planModeDiracModelId=r.string();continue}case 136:{if(o!==1090)break;a.planModeDiracModelInfo=Wt.decode(r,r.uint32());continue}case 200:{if(o!==1600)break;a.actModeApiProvider=r.int32();continue}case 201:{if(o!==1610)break;a.actModeApiModelId=r.string();continue}case 202:{if(o!==1616)break;a.actModeThinkingBudgetTokens=bg(r.int64());continue}case 203:{if(o!==1626)break;a.actModeReasoningEffort=r.string();continue}case 204:{if(o!==1634)break;a.actModeVsCodeLmModelSelector=du.decode(r,r.uint32());continue}case 205:{if(o!==1640)break;a.actModeAwsBedrockCustomSelected=r.bool();continue}case 206:{if(o!==1650)break;a.actModeAwsBedrockCustomModelBaseId=r.string();continue}case 207:{if(o!==1658)break;a.actModeOpenRouterModelId=r.string();continue}case 208:{if(o!==1666)break;a.actModeOpenRouterModelInfo=Wt.decode(r,r.uint32());continue}case 209:{if(o!==1674)break;a.actModeOpenAiModelId=r.string();continue}case 210:{if(o!==1682)break;a.actModeOpenAiModelInfo=Ba.decode(r,r.uint32());continue}case 211:{if(o!==1690)break;a.actModeOllamaModelId=r.string();continue}case 212:{if(o!==1698)break;a.actModeLmStudioModelId=r.string();continue}case 213:{if(o!==1706)break;a.actModeLiteLlmModelId=r.string();continue}case 214:{if(o!==1714)break;a.actModeLiteLlmModelInfo=sc.decode(r,r.uint32());continue}case 215:{if(o!==1722)break;a.actModeRequestyModelId=r.string();continue}case 216:{if(o!==1730)break;a.actModeRequestyModelInfo=Wt.decode(r,r.uint32());continue}case 217:{if(o!==1738)break;a.actModeTogetherModelId=r.string();continue}case 218:{if(o!==1746)break;a.actModeFireworksModelId=r.string();continue}case 219:{if(o!==1754)break;a.actModeSapAiCoreModelId=r.string();continue}case 220:{if(o!==1762)break;a.actModeSapAiCoreDeploymentId=r.string();continue}case 221:{if(o!==1770)break;a.actModeGroqModelId=r.string();continue}case 222:{if(o!==1778)break;a.actModeGroqModelInfo=Wt.decode(r,r.uint32());continue}case 223:{if(o!==1786)break;a.actModeHuggingFaceModelId=r.string();continue}case 224:{if(o!==1794)break;a.actModeHuggingFaceModelInfo=Wt.decode(r,r.uint32());continue}case 225:{if(o!==1802)break;a.actModeHuaweiCloudMaasModelId=r.string();continue}case 226:{if(o!==1810)break;a.actModeHuaweiCloudMaasModelInfo=Wt.decode(r,r.uint32());continue}case 227:{if(o!==1818)break;a.actModeBasetenModelId=r.string();continue}case 228:{if(o!==1826)break;a.actModeBasetenModelInfo=Wt.decode(r,r.uint32());continue}case 229:{if(o!==1834)break;a.actModeVercelAiGatewayModelId=r.string();continue}case 230:{if(o!==1842)break;a.actModeVercelAiGatewayModelInfo=Wt.decode(r,r.uint32());continue}case 233:{if(o!==1866)break;a.actModeAihubmixModelId=r.string();continue}case 234:{if(o!==1874)break;a.actModeAihubmixModelInfo=Ba.decode(r,r.uint32());continue}case 235:{if(o!==1882)break;a.actModeDiracModelId=r.string();continue}case 236:{if(o!==1890)break;a.actModeDiracModelInfo=Wt.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{ulid:Ke(t.ulid)?globalThis.String(t.ulid):void 0,liteLlmBaseUrl:Ke(t.liteLlmBaseUrl)?globalThis.String(t.liteLlmBaseUrl):Ke(t.lite_llm_base_url)?globalThis.String(t.lite_llm_base_url):void 0,liteLlmUsePromptCache:Ke(t.liteLlmUsePromptCache)?globalThis.Boolean(t.liteLlmUsePromptCache):Ke(t.lite_llm_use_prompt_cache)?globalThis.Boolean(t.lite_llm_use_prompt_cache):void 0,openAiHeaders:Hpe(t.openAiHeaders)?globalThis.Object.entries(t.openAiHeaders).reduce((e,[r,i])=>(e[r]=globalThis.String(i),e),{}):Hpe(t.open_ai_headers)?globalThis.Object.entries(t.open_ai_headers).reduce((e,[r,i])=>(e[r]=globalThis.String(i),e),{}):{},anthropicBaseUrl:Ke(t.anthropicBaseUrl)?globalThis.String(t.anthropicBaseUrl):Ke(t.anthropic_base_url)?globalThis.String(t.anthropic_base_url):void 0,openRouterProviderSorting:Ke(t.openRouterProviderSorting)?globalThis.String(t.openRouterProviderSorting):Ke(t.open_router_provider_sorting)?globalThis.String(t.open_router_provider_sorting):void 0,awsRegion:Ke(t.awsRegion)?globalThis.String(t.awsRegion):Ke(t.aws_region)?globalThis.String(t.aws_region):void 0,awsUseCrossRegionInference:Ke(t.awsUseCrossRegionInference)?globalThis.Boolean(t.awsUseCrossRegionInference):Ke(t.aws_use_cross_region_inference)?globalThis.Boolean(t.aws_use_cross_region_inference):void 0,awsBedrockUsePromptCache:Ke(t.awsBedrockUsePromptCache)?globalThis.Boolean(t.awsBedrockUsePromptCache):Ke(t.aws_bedrock_use_prompt_cache)?globalThis.Boolean(t.aws_bedrock_use_prompt_cache):void 0,awsUseProfile:Ke(t.awsUseProfile)?globalThis.Boolean(t.awsUseProfile):Ke(t.aws_use_profile)?globalThis.Boolean(t.aws_use_profile):void 0,awsProfile:Ke(t.awsProfile)?globalThis.String(t.awsProfile):Ke(t.aws_profile)?globalThis.String(t.aws_profile):void 0,awsBedrockEndpoint:Ke(t.awsBedrockEndpoint)?globalThis.String(t.awsBedrockEndpoint):Ke(t.aws_bedrock_endpoint)?globalThis.String(t.aws_bedrock_endpoint):void 0,claudeCodePath:Ke(t.claudeCodePath)?globalThis.String(t.claudeCodePath):Ke(t.claude_code_path)?globalThis.String(t.claude_code_path):void 0,vertexProjectId:Ke(t.vertexProjectId)?globalThis.String(t.vertexProjectId):Ke(t.vertex_project_id)?globalThis.String(t.vertex_project_id):void 0,vertexRegion:Ke(t.vertexRegion)?globalThis.String(t.vertexRegion):Ke(t.vertex_region)?globalThis.String(t.vertex_region):void 0,openAiBaseUrl:Ke(t.openAiBaseUrl)?globalThis.String(t.openAiBaseUrl):Ke(t.open_ai_base_url)?globalThis.String(t.open_ai_base_url):void 0,ollamaBaseUrl:Ke(t.ollamaBaseUrl)?globalThis.String(t.ollamaBaseUrl):Ke(t.ollama_base_url)?globalThis.String(t.ollama_base_url):void 0,ollamaApiOptionsCtxNum:Ke(t.ollamaApiOptionsCtxNum)?globalThis.String(t.ollamaApiOptionsCtxNum):Ke(t.ollama_api_options_ctx_num)?globalThis.String(t.ollama_api_options_ctx_num):void 0,lmStudioBaseUrl:Ke(t.lmStudioBaseUrl)?globalThis.String(t.lmStudioBaseUrl):Ke(t.lm_studio_base_url)?globalThis.String(t.lm_studio_base_url):void 0,geminiBaseUrl:Ke(t.geminiBaseUrl)?globalThis.String(t.geminiBaseUrl):Ke(t.gemini_base_url)?globalThis.String(t.gemini_base_url):void 0,requestyBaseUrl:Ke(t.requestyBaseUrl)?globalThis.String(t.requestyBaseUrl):Ke(t.requesty_base_url)?globalThis.String(t.requesty_base_url):void 0,fireworksModelMaxCompletionTokens:Ke(t.fireworksModelMaxCompletionTokens)?globalThis.Number(t.fireworksModelMaxCompletionTokens):Ke(t.fireworks_model_max_completion_tokens)?globalThis.Number(t.fireworks_model_max_completion_tokens):void 0,fireworksModelMaxTokens:Ke(t.fireworksModelMaxTokens)?globalThis.Number(t.fireworksModelMaxTokens):Ke(t.fireworks_model_max_tokens)?globalThis.Number(t.fireworks_model_max_tokens):void 0,azureApiVersion:Ke(t.azureApiVersion)?globalThis.String(t.azureApiVersion):Ke(t.azure_api_version)?globalThis.String(t.azure_api_version):void 0,qwenApiLine:Ke(t.qwenApiLine)?globalThis.String(t.qwenApiLine):Ke(t.qwen_api_line)?globalThis.String(t.qwen_api_line):void 0,asksageApiUrl:Ke(t.asksageApiUrl)?globalThis.String(t.asksageApiUrl):Ke(t.asksage_api_url)?globalThis.String(t.asksage_api_url):void 0,requestTimeoutMs:Ke(t.requestTimeoutMs)?globalThis.Number(t.requestTimeoutMs):Ke(t.request_timeout_ms)?globalThis.Number(t.request_timeout_ms):void 0,sapAiResourceGroup:Ke(t.sapAiResourceGroup)?globalThis.String(t.sapAiResourceGroup):Ke(t.sap_ai_resource_group)?globalThis.String(t.sap_ai_resource_group):void 0,sapAiCoreTokenUrl:Ke(t.sapAiCoreTokenUrl)?globalThis.String(t.sapAiCoreTokenUrl):Ke(t.sap_ai_core_token_url)?globalThis.String(t.sap_ai_core_token_url):void 0,sapAiCoreBaseUrl:Ke(t.sapAiCoreBaseUrl)?globalThis.String(t.sapAiCoreBaseUrl):Ke(t.sap_ai_core_base_url)?globalThis.String(t.sap_ai_core_base_url):void 0,sapAiCoreUseOrchestrationMode:Ke(t.sapAiCoreUseOrchestrationMode)?globalThis.Boolean(t.sapAiCoreUseOrchestrationMode):Ke(t.sap_ai_core_use_orchestration_mode)?globalThis.Boolean(t.sap_ai_core_use_orchestration_mode):void 0,moonshotApiLine:Ke(t.moonshotApiLine)?globalThis.String(t.moonshotApiLine):Ke(t.moonshot_api_line)?globalThis.String(t.moonshot_api_line):void 0,awsAuthentication:Ke(t.awsAuthentication)?globalThis.String(t.awsAuthentication):Ke(t.aws_authentication)?globalThis.String(t.aws_authentication):void 0,zaiApiLine:Ke(t.zaiApiLine)?globalThis.String(t.zaiApiLine):Ke(t.zai_api_line)?globalThis.String(t.zai_api_line):void 0,lmStudioMaxTokens:Ke(t.lmStudioMaxTokens)?globalThis.String(t.lmStudioMaxTokens):Ke(t.lm_studio_max_tokens)?globalThis.String(t.lm_studio_max_tokens):void 0,qwenCodeOauthPath:Ke(t.qwenCodeOauthPath)?globalThis.String(t.qwenCodeOauthPath):Ke(t.qwen_code_oauth_path)?globalThis.String(t.qwen_code_oauth_path):void 0,difyBaseUrl:Ke(t.difyBaseUrl)?globalThis.String(t.difyBaseUrl):Ke(t.dify_base_url)?globalThis.String(t.dify_base_url):void 0,awsUseGlobalInference:Ke(t.awsUseGlobalInference)?globalThis.Boolean(t.awsUseGlobalInference):Ke(t.aws_use_global_inference)?globalThis.Boolean(t.aws_use_global_inference):void 0,minimaxApiLine:Ke(t.minimaxApiLine)?globalThis.String(t.minimaxApiLine):Ke(t.minimax_api_line)?globalThis.String(t.minimax_api_line):void 0,aihubmixBaseUrl:Ke(t.aihubmixBaseUrl)?globalThis.String(t.aihubmixBaseUrl):Ke(t.aihubmix_base_url)?globalThis.String(t.aihubmix_base_url):void 0,aihubmixAppCode:Ke(t.aihubmixAppCode)?globalThis.String(t.aihubmixAppCode):Ke(t.aihubmix_app_code)?globalThis.String(t.aihubmix_app_code):void 0,azureIdentity:Ke(t.azureIdentity)?globalThis.Boolean(t.azureIdentity):Ke(t.azure_identity)?globalThis.Boolean(t.azure_identity):void 0,planModeApiProvider:Ke(t.planModeApiProvider)?RI(t.planModeApiProvider):Ke(t.plan_mode_api_provider)?RI(t.plan_mode_api_provider):void 0,planModeApiModelId:Ke(t.planModeApiModelId)?globalThis.String(t.planModeApiModelId):Ke(t.plan_mode_api_model_id)?globalThis.String(t.plan_mode_api_model_id):void 0,planModeThinkingBudgetTokens:Ke(t.planModeThinkingBudgetTokens)?globalThis.Number(t.planModeThinkingBudgetTokens):Ke(t.plan_mode_thinking_budget_tokens)?globalThis.Number(t.plan_mode_thinking_budget_tokens):void 0,planModeReasoningEffort:Ke(t.planModeReasoningEffort)?globalThis.String(t.planModeReasoningEffort):Ke(t.plan_mode_reasoning_effort)?globalThis.String(t.plan_mode_reasoning_effort):void 0,planModeVsCodeLmModelSelector:Ke(t.planModeVsCodeLmModelSelector)?du.fromJSON(t.planModeVsCodeLmModelSelector):Ke(t.plan_mode_vs_code_lm_model_selector)?du.fromJSON(t.plan_mode_vs_code_lm_model_selector):void 0,planModeAwsBedrockCustomSelected:Ke(t.planModeAwsBedrockCustomSelected)?globalThis.Boolean(t.planModeAwsBedrockCustomSelected):Ke(t.plan_mode_aws_bedrock_custom_selected)?globalThis.Boolean(t.plan_mode_aws_bedrock_custom_selected):void 0,planModeAwsBedrockCustomModelBaseId:Ke(t.planModeAwsBedrockCustomModelBaseId)?globalThis.String(t.planModeAwsBedrockCustomModelBaseId):Ke(t.plan_mode_aws_bedrock_custom_model_base_id)?globalThis.String(t.plan_mode_aws_bedrock_custom_model_base_id):void 0,planModeOpenRouterModelId:Ke(t.planModeOpenRouterModelId)?globalThis.String(t.planModeOpenRouterModelId):Ke(t.plan_mode_open_router_model_id)?globalThis.String(t.plan_mode_open_router_model_id):void 0,planModeOpenRouterModelInfo:Ke(t.planModeOpenRouterModelInfo)?Wt.fromJSON(t.planModeOpenRouterModelInfo):Ke(t.plan_mode_open_router_model_info)?Wt.fromJSON(t.plan_mode_open_router_model_info):void 0,planModeOpenAiModelId:Ke(t.planModeOpenAiModelId)?globalThis.String(t.planModeOpenAiModelId):Ke(t.plan_mode_open_ai_model_id)?globalThis.String(t.plan_mode_open_ai_model_id):void 0,planModeOpenAiModelInfo:Ke(t.planModeOpenAiModelInfo)?Ba.fromJSON(t.planModeOpenAiModelInfo):Ke(t.plan_mode_open_ai_model_info)?Ba.fromJSON(t.plan_mode_open_ai_model_info):void 0,planModeOllamaModelId:Ke(t.planModeOllamaModelId)?globalThis.String(t.planModeOllamaModelId):Ke(t.plan_mode_ollama_model_id)?globalThis.String(t.plan_mode_ollama_model_id):void 0,planModeLmStudioModelId:Ke(t.planModeLmStudioModelId)?globalThis.String(t.planModeLmStudioModelId):Ke(t.plan_mode_lm_studio_model_id)?globalThis.String(t.plan_mode_lm_studio_model_id):void 0,planModeLiteLlmModelId:Ke(t.planModeLiteLlmModelId)?globalThis.String(t.planModeLiteLlmModelId):Ke(t.plan_mode_lite_llm_model_id)?globalThis.String(t.plan_mode_lite_llm_model_id):void 0,planModeLiteLlmModelInfo:Ke(t.planModeLiteLlmModelInfo)?sc.fromJSON(t.planModeLiteLlmModelInfo):Ke(t.plan_mode_lite_llm_model_info)?sc.fromJSON(t.plan_mode_lite_llm_model_info):void 0,planModeRequestyModelId:Ke(t.planModeRequestyModelId)?globalThis.String(t.planModeRequestyModelId):Ke(t.plan_mode_requesty_model_id)?globalThis.String(t.plan_mode_requesty_model_id):void 0,planModeRequestyModelInfo:Ke(t.planModeRequestyModelInfo)?Wt.fromJSON(t.planModeRequestyModelInfo):Ke(t.plan_mode_requesty_model_info)?Wt.fromJSON(t.plan_mode_requesty_model_info):void 0,planModeTogetherModelId:Ke(t.planModeTogetherModelId)?globalThis.String(t.planModeTogetherModelId):Ke(t.plan_mode_together_model_id)?globalThis.String(t.plan_mode_together_model_id):void 0,planModeFireworksModelId:Ke(t.planModeFireworksModelId)?globalThis.String(t.planModeFireworksModelId):Ke(t.plan_mode_fireworks_model_id)?globalThis.String(t.plan_mode_fireworks_model_id):void 0,planModeSapAiCoreModelId:Ke(t.planModeSapAiCoreModelId)?globalThis.String(t.planModeSapAiCoreModelId):Ke(t.plan_mode_sap_ai_core_model_id)?globalThis.String(t.plan_mode_sap_ai_core_model_id):void 0,planModeSapAiCoreDeploymentId:Ke(t.planModeSapAiCoreDeploymentId)?globalThis.String(t.planModeSapAiCoreDeploymentId):Ke(t.plan_mode_sap_ai_core_deployment_id)?globalThis.String(t.plan_mode_sap_ai_core_deployment_id):void 0,planModeGroqModelId:Ke(t.planModeGroqModelId)?globalThis.String(t.planModeGroqModelId):Ke(t.plan_mode_groq_model_id)?globalThis.String(t.plan_mode_groq_model_id):void 0,planModeGroqModelInfo:Ke(t.planModeGroqModelInfo)?Wt.fromJSON(t.planModeGroqModelInfo):Ke(t.plan_mode_groq_model_info)?Wt.fromJSON(t.plan_mode_groq_model_info):void 0,planModeHuggingFaceModelId:Ke(t.planModeHuggingFaceModelId)?globalThis.String(t.planModeHuggingFaceModelId):Ke(t.plan_mode_hugging_face_model_id)?globalThis.String(t.plan_mode_hugging_face_model_id):void 0,planModeHuggingFaceModelInfo:Ke(t.planModeHuggingFaceModelInfo)?Wt.fromJSON(t.planModeHuggingFaceModelInfo):Ke(t.plan_mode_hugging_face_model_info)?Wt.fromJSON(t.plan_mode_hugging_face_model_info):void 0,planModeHuaweiCloudMaasModelId:Ke(t.planModeHuaweiCloudMaasModelId)?globalThis.String(t.planModeHuaweiCloudMaasModelId):Ke(t.plan_mode_huawei_cloud_maas_model_id)?globalThis.String(t.plan_mode_huawei_cloud_maas_model_id):void 0,planModeHuaweiCloudMaasModelInfo:Ke(t.planModeHuaweiCloudMaasModelInfo)?Wt.fromJSON(t.planModeHuaweiCloudMaasModelInfo):Ke(t.plan_mode_huawei_cloud_maas_model_info)?Wt.fromJSON(t.plan_mode_huawei_cloud_maas_model_info):void 0,planModeBasetenModelId:Ke(t.planModeBasetenModelId)?globalThis.String(t.planModeBasetenModelId):Ke(t.plan_mode_baseten_model_id)?globalThis.String(t.plan_mode_baseten_model_id):void 0,planModeBasetenModelInfo:Ke(t.planModeBasetenModelInfo)?Wt.fromJSON(t.planModeBasetenModelInfo):Ke(t.plan_mode_baseten_model_info)?Wt.fromJSON(t.plan_mode_baseten_model_info):void 0,planModeVercelAiGatewayModelId:Ke(t.planModeVercelAiGatewayModelId)?globalThis.String(t.planModeVercelAiGatewayModelId):Ke(t.plan_mode_vercel_ai_gateway_model_id)?globalThis.String(t.plan_mode_vercel_ai_gateway_model_id):void 0,planModeVercelAiGatewayModelInfo:Ke(t.planModeVercelAiGatewayModelInfo)?Wt.fromJSON(t.planModeVercelAiGatewayModelInfo):Ke(t.plan_mode_vercel_ai_gateway_model_info)?Wt.fromJSON(t.plan_mode_vercel_ai_gateway_model_info):void 0,planModeAihubmixModelId:Ke(t.planModeAihubmixModelId)?globalThis.String(t.planModeAihubmixModelId):Ke(t.plan_mode_aihubmix_model_id)?globalThis.String(t.plan_mode_aihubmix_model_id):void 0,planModeAihubmixModelInfo:Ke(t.planModeAihubmixModelInfo)?Ba.fromJSON(t.planModeAihubmixModelInfo):Ke(t.plan_mode_aihubmix_model_info)?Ba.fromJSON(t.plan_mode_aihubmix_model_info):void 0,planModeDiracModelId:Ke(t.planModeDiracModelId)?globalThis.String(t.planModeDiracModelId):Ke(t.plan_mode_dirac_model_id)?globalThis.String(t.plan_mode_dirac_model_id):void 0,planModeDiracModelInfo:Ke(t.planModeDiracModelInfo)?Wt.fromJSON(t.planModeDiracModelInfo):Ke(t.plan_mode_dirac_model_info)?Wt.fromJSON(t.plan_mode_dirac_model_info):void 0,actModeApiProvider:Ke(t.actModeApiProvider)?RI(t.actModeApiProvider):Ke(t.act_mode_api_provider)?RI(t.act_mode_api_provider):void 0,actModeApiModelId:Ke(t.actModeApiModelId)?globalThis.String(t.actModeApiModelId):Ke(t.act_mode_api_model_id)?globalThis.String(t.act_mode_api_model_id):void 0,actModeThinkingBudgetTokens:Ke(t.actModeThinkingBudgetTokens)?globalThis.Number(t.actModeThinkingBudgetTokens):Ke(t.act_mode_thinking_budget_tokens)?globalThis.Number(t.act_mode_thinking_budget_tokens):void 0,actModeReasoningEffort:Ke(t.actModeReasoningEffort)?globalThis.String(t.actModeReasoningEffort):Ke(t.act_mode_reasoning_effort)?globalThis.String(t.act_mode_reasoning_effort):void 0,actModeVsCodeLmModelSelector:Ke(t.actModeVsCodeLmModelSelector)?du.fromJSON(t.actModeVsCodeLmModelSelector):Ke(t.act_mode_vs_code_lm_model_selector)?du.fromJSON(t.act_mode_vs_code_lm_model_selector):void 0,actModeAwsBedrockCustomSelected:Ke(t.actModeAwsBedrockCustomSelected)?globalThis.Boolean(t.actModeAwsBedrockCustomSelected):Ke(t.act_mode_aws_bedrock_custom_selected)?globalThis.Boolean(t.act_mode_aws_bedrock_custom_selected):void 0,actModeAwsBedrockCustomModelBaseId:Ke(t.actModeAwsBedrockCustomModelBaseId)?globalThis.String(t.actModeAwsBedrockCustomModelBaseId):Ke(t.act_mode_aws_bedrock_custom_model_base_id)?globalThis.String(t.act_mode_aws_bedrock_custom_model_base_id):void 0,actModeOpenRouterModelId:Ke(t.actModeOpenRouterModelId)?globalThis.String(t.actModeOpenRouterModelId):Ke(t.act_mode_open_router_model_id)?globalThis.String(t.act_mode_open_router_model_id):void 0,actModeOpenRouterModelInfo:Ke(t.actModeOpenRouterModelInfo)?Wt.fromJSON(t.actModeOpenRouterModelInfo):Ke(t.act_mode_open_router_model_info)?Wt.fromJSON(t.act_mode_open_router_model_info):void 0,actModeOpenAiModelId:Ke(t.actModeOpenAiModelId)?globalThis.String(t.actModeOpenAiModelId):Ke(t.act_mode_open_ai_model_id)?globalThis.String(t.act_mode_open_ai_model_id):void 0,actModeOpenAiModelInfo:Ke(t.actModeOpenAiModelInfo)?Ba.fromJSON(t.actModeOpenAiModelInfo):Ke(t.act_mode_open_ai_model_info)?Ba.fromJSON(t.act_mode_open_ai_model_info):void 0,actModeOllamaModelId:Ke(t.actModeOllamaModelId)?globalThis.String(t.actModeOllamaModelId):Ke(t.act_mode_ollama_model_id)?globalThis.String(t.act_mode_ollama_model_id):void 0,actModeLmStudioModelId:Ke(t.actModeLmStudioModelId)?globalThis.String(t.actModeLmStudioModelId):Ke(t.act_mode_lm_studio_model_id)?globalThis.String(t.act_mode_lm_studio_model_id):void 0,actModeLiteLlmModelId:Ke(t.actModeLiteLlmModelId)?globalThis.String(t.actModeLiteLlmModelId):Ke(t.act_mode_lite_llm_model_id)?globalThis.String(t.act_mode_lite_llm_model_id):void 0,actModeLiteLlmModelInfo:Ke(t.actModeLiteLlmModelInfo)?sc.fromJSON(t.actModeLiteLlmModelInfo):Ke(t.act_mode_lite_llm_model_info)?sc.fromJSON(t.act_mode_lite_llm_model_info):void 0,actModeRequestyModelId:Ke(t.actModeRequestyModelId)?globalThis.String(t.actModeRequestyModelId):Ke(t.act_mode_requesty_model_id)?globalThis.String(t.act_mode_requesty_model_id):void 0,actModeRequestyModelInfo:Ke(t.actModeRequestyModelInfo)?Wt.fromJSON(t.actModeRequestyModelInfo):Ke(t.act_mode_requesty_model_info)?Wt.fromJSON(t.act_mode_requesty_model_info):void 0,actModeTogetherModelId:Ke(t.actModeTogetherModelId)?globalThis.String(t.actModeTogetherModelId):Ke(t.act_mode_together_model_id)?globalThis.String(t.act_mode_together_model_id):void 0,actModeFireworksModelId:Ke(t.actModeFireworksModelId)?globalThis.String(t.actModeFireworksModelId):Ke(t.act_mode_fireworks_model_id)?globalThis.String(t.act_mode_fireworks_model_id):void 0,actModeSapAiCoreModelId:Ke(t.actModeSapAiCoreModelId)?globalThis.String(t.actModeSapAiCoreModelId):Ke(t.act_mode_sap_ai_core_model_id)?globalThis.String(t.act_mode_sap_ai_core_model_id):void 0,actModeSapAiCoreDeploymentId:Ke(t.actModeSapAiCoreDeploymentId)?globalThis.String(t.actModeSapAiCoreDeploymentId):Ke(t.act_mode_sap_ai_core_deployment_id)?globalThis.String(t.act_mode_sap_ai_core_deployment_id):void 0,actModeGroqModelId:Ke(t.actModeGroqModelId)?globalThis.String(t.actModeGroqModelId):Ke(t.act_mode_groq_model_id)?globalThis.String(t.act_mode_groq_model_id):void 0,actModeGroqModelInfo:Ke(t.actModeGroqModelInfo)?Wt.fromJSON(t.actModeGroqModelInfo):Ke(t.act_mode_groq_model_info)?Wt.fromJSON(t.act_mode_groq_model_info):void 0,actModeHuggingFaceModelId:Ke(t.actModeHuggingFaceModelId)?globalThis.String(t.actModeHuggingFaceModelId):Ke(t.act_mode_hugging_face_model_id)?globalThis.String(t.act_mode_hugging_face_model_id):void 0,actModeHuggingFaceModelInfo:Ke(t.actModeHuggingFaceModelInfo)?Wt.fromJSON(t.actModeHuggingFaceModelInfo):Ke(t.act_mode_hugging_face_model_info)?Wt.fromJSON(t.act_mode_hugging_face_model_info):void 0,actModeHuaweiCloudMaasModelId:Ke(t.actModeHuaweiCloudMaasModelId)?globalThis.String(t.actModeHuaweiCloudMaasModelId):Ke(t.act_mode_huawei_cloud_maas_model_id)?globalThis.String(t.act_mode_huawei_cloud_maas_model_id):void 0,actModeHuaweiCloudMaasModelInfo:Ke(t.actModeHuaweiCloudMaasModelInfo)?Wt.fromJSON(t.actModeHuaweiCloudMaasModelInfo):Ke(t.act_mode_huawei_cloud_maas_model_info)?Wt.fromJSON(t.act_mode_huawei_cloud_maas_model_info):void 0,actModeBasetenModelId:Ke(t.actModeBasetenModelId)?globalThis.String(t.actModeBasetenModelId):Ke(t.act_mode_baseten_model_id)?globalThis.String(t.act_mode_baseten_model_id):void 0,actModeBasetenModelInfo:Ke(t.actModeBasetenModelInfo)?Wt.fromJSON(t.actModeBasetenModelInfo):Ke(t.act_mode_baseten_model_info)?Wt.fromJSON(t.act_mode_baseten_model_info):void 0,actModeVercelAiGatewayModelId:Ke(t.actModeVercelAiGatewayModelId)?globalThis.String(t.actModeVercelAiGatewayModelId):Ke(t.act_mode_vercel_ai_gateway_model_id)?globalThis.String(t.act_mode_vercel_ai_gateway_model_id):void 0,actModeVercelAiGatewayModelInfo:Ke(t.actModeVercelAiGatewayModelInfo)?Wt.fromJSON(t.actModeVercelAiGatewayModelInfo):Ke(t.act_mode_vercel_ai_gateway_model_info)?Wt.fromJSON(t.act_mode_vercel_ai_gateway_model_info):void 0,actModeAihubmixModelId:Ke(t.actModeAihubmixModelId)?globalThis.String(t.actModeAihubmixModelId):Ke(t.act_mode_aihubmix_model_id)?globalThis.String(t.act_mode_aihubmix_model_id):void 0,actModeAihubmixModelInfo:Ke(t.actModeAihubmixModelInfo)?Ba.fromJSON(t.actModeAihubmixModelInfo):Ke(t.act_mode_aihubmix_model_info)?Ba.fromJSON(t.act_mode_aihubmix_model_info):void 0,actModeDiracModelId:Ke(t.actModeDiracModelId)?globalThis.String(t.actModeDiracModelId):Ke(t.act_mode_dirac_model_id)?globalThis.String(t.act_mode_dirac_model_id):void 0,actModeDiracModelInfo:Ke(t.actModeDiracModelInfo)?Wt.fromJSON(t.actModeDiracModelInfo):Ke(t.act_mode_dirac_model_info)?Wt.fromJSON(t.act_mode_dirac_model_info):void 0}},toJSON(t){let e={};if(t.ulid!==void 0&&(e.ulid=t.ulid),t.liteLlmBaseUrl!==void 0&&(e.liteLlmBaseUrl=t.liteLlmBaseUrl),t.liteLlmUsePromptCache!==void 0&&(e.liteLlmUsePromptCache=t.liteLlmUsePromptCache),t.openAiHeaders){let r=globalThis.Object.entries(t.openAiHeaders);r.length>0&&(e.openAiHeaders={},r.forEach(([i,a])=>{e.openAiHeaders[i]=a}))}return t.anthropicBaseUrl!==void 0&&(e.anthropicBaseUrl=t.anthropicBaseUrl),t.openRouterProviderSorting!==void 0&&(e.openRouterProviderSorting=t.openRouterProviderSorting),t.awsRegion!==void 0&&(e.awsRegion=t.awsRegion),t.awsUseCrossRegionInference!==void 0&&(e.awsUseCrossRegionInference=t.awsUseCrossRegionInference),t.awsBedrockUsePromptCache!==void 0&&(e.awsBedrockUsePromptCache=t.awsBedrockUsePromptCache),t.awsUseProfile!==void 0&&(e.awsUseProfile=t.awsUseProfile),t.awsProfile!==void 0&&(e.awsProfile=t.awsProfile),t.awsBedrockEndpoint!==void 0&&(e.awsBedrockEndpoint=t.awsBedrockEndpoint),t.claudeCodePath!==void 0&&(e.claudeCodePath=t.claudeCodePath),t.vertexProjectId!==void 0&&(e.vertexProjectId=t.vertexProjectId),t.vertexRegion!==void 0&&(e.vertexRegion=t.vertexRegion),t.openAiBaseUrl!==void 0&&(e.openAiBaseUrl=t.openAiBaseUrl),t.ollamaBaseUrl!==void 0&&(e.ollamaBaseUrl=t.ollamaBaseUrl),t.ollamaApiOptionsCtxNum!==void 0&&(e.ollamaApiOptionsCtxNum=t.ollamaApiOptionsCtxNum),t.lmStudioBaseUrl!==void 0&&(e.lmStudioBaseUrl=t.lmStudioBaseUrl),t.geminiBaseUrl!==void 0&&(e.geminiBaseUrl=t.geminiBaseUrl),t.requestyBaseUrl!==void 0&&(e.requestyBaseUrl=t.requestyBaseUrl),t.fireworksModelMaxCompletionTokens!==void 0&&(e.fireworksModelMaxCompletionTokens=Math.round(t.fireworksModelMaxCompletionTokens)),t.fireworksModelMaxTokens!==void 0&&(e.fireworksModelMaxTokens=Math.round(t.fireworksModelMaxTokens)),t.azureApiVersion!==void 0&&(e.azureApiVersion=t.azureApiVersion),t.qwenApiLine!==void 0&&(e.qwenApiLine=t.qwenApiLine),t.asksageApiUrl!==void 0&&(e.asksageApiUrl=t.asksageApiUrl),t.requestTimeoutMs!==void 0&&(e.requestTimeoutMs=Math.round(t.requestTimeoutMs)),t.sapAiResourceGroup!==void 0&&(e.sapAiResourceGroup=t.sapAiResourceGroup),t.sapAiCoreTokenUrl!==void 0&&(e.sapAiCoreTokenUrl=t.sapAiCoreTokenUrl),t.sapAiCoreBaseUrl!==void 0&&(e.sapAiCoreBaseUrl=t.sapAiCoreBaseUrl),t.sapAiCoreUseOrchestrationMode!==void 0&&(e.sapAiCoreUseOrchestrationMode=t.sapAiCoreUseOrchestrationMode),t.moonshotApiLine!==void 0&&(e.moonshotApiLine=t.moonshotApiLine),t.awsAuthentication!==void 0&&(e.awsAuthentication=t.awsAuthentication),t.zaiApiLine!==void 0&&(e.zaiApiLine=t.zaiApiLine),t.lmStudioMaxTokens!==void 0&&(e.lmStudioMaxTokens=t.lmStudioMaxTokens),t.qwenCodeOauthPath!==void 0&&(e.qwenCodeOauthPath=t.qwenCodeOauthPath),t.difyBaseUrl!==void 0&&(e.difyBaseUrl=t.difyBaseUrl),t.awsUseGlobalInference!==void 0&&(e.awsUseGlobalInference=t.awsUseGlobalInference),t.minimaxApiLine!==void 0&&(e.minimaxApiLine=t.minimaxApiLine),t.aihubmixBaseUrl!==void 0&&(e.aihubmixBaseUrl=t.aihubmixBaseUrl),t.aihubmixAppCode!==void 0&&(e.aihubmixAppCode=t.aihubmixAppCode),t.azureIdentity!==void 0&&(e.azureIdentity=t.azureIdentity),t.planModeApiProvider!==void 0&&(e.planModeApiProvider=wH(t.planModeApiProvider)),t.planModeApiModelId!==void 0&&(e.planModeApiModelId=t.planModeApiModelId),t.planModeThinkingBudgetTokens!==void 0&&(e.planModeThinkingBudgetTokens=Math.round(t.planModeThinkingBudgetTokens)),t.planModeReasoningEffort!==void 0&&(e.planModeReasoningEffort=t.planModeReasoningEffort),t.planModeVsCodeLmModelSelector!==void 0&&(e.planModeVsCodeLmModelSelector=du.toJSON(t.planModeVsCodeLmModelSelector)),t.planModeAwsBedrockCustomSelected!==void 0&&(e.planModeAwsBedrockCustomSelected=t.planModeAwsBedrockCustomSelected),t.planModeAwsBedrockCustomModelBaseId!==void 0&&(e.planModeAwsBedrockCustomModelBaseId=t.planModeAwsBedrockCustomModelBaseId),t.planModeOpenRouterModelId!==void 0&&(e.planModeOpenRouterModelId=t.planModeOpenRouterModelId),t.planModeOpenRouterModelInfo!==void 0&&(e.planModeOpenRouterModelInfo=Wt.toJSON(t.planModeOpenRouterModelInfo)),t.planModeOpenAiModelId!==void 0&&(e.planModeOpenAiModelId=t.planModeOpenAiModelId),t.planModeOpenAiModelInfo!==void 0&&(e.planModeOpenAiModelInfo=Ba.toJSON(t.planModeOpenAiModelInfo)),t.planModeOllamaModelId!==void 0&&(e.planModeOllamaModelId=t.planModeOllamaModelId),t.planModeLmStudioModelId!==void 0&&(e.planModeLmStudioModelId=t.planModeLmStudioModelId),t.planModeLiteLlmModelId!==void 0&&(e.planModeLiteLlmModelId=t.planModeLiteLlmModelId),t.planModeLiteLlmModelInfo!==void 0&&(e.planModeLiteLlmModelInfo=sc.toJSON(t.planModeLiteLlmModelInfo)),t.planModeRequestyModelId!==void 0&&(e.planModeRequestyModelId=t.planModeRequestyModelId),t.planModeRequestyModelInfo!==void 0&&(e.planModeRequestyModelInfo=Wt.toJSON(t.planModeRequestyModelInfo)),t.planModeTogetherModelId!==void 0&&(e.planModeTogetherModelId=t.planModeTogetherModelId),t.planModeFireworksModelId!==void 0&&(e.planModeFireworksModelId=t.planModeFireworksModelId),t.planModeSapAiCoreModelId!==void 0&&(e.planModeSapAiCoreModelId=t.planModeSapAiCoreModelId),t.planModeSapAiCoreDeploymentId!==void 0&&(e.planModeSapAiCoreDeploymentId=t.planModeSapAiCoreDeploymentId),t.planModeGroqModelId!==void 0&&(e.planModeGroqModelId=t.planModeGroqModelId),t.planModeGroqModelInfo!==void 0&&(e.planModeGroqModelInfo=Wt.toJSON(t.planModeGroqModelInfo)),t.planModeHuggingFaceModelId!==void 0&&(e.planModeHuggingFaceModelId=t.planModeHuggingFaceModelId),t.planModeHuggingFaceModelInfo!==void 0&&(e.planModeHuggingFaceModelInfo=Wt.toJSON(t.planModeHuggingFaceModelInfo)),t.planModeHuaweiCloudMaasModelId!==void 0&&(e.planModeHuaweiCloudMaasModelId=t.planModeHuaweiCloudMaasModelId),t.planModeHuaweiCloudMaasModelInfo!==void 0&&(e.planModeHuaweiCloudMaasModelInfo=Wt.toJSON(t.planModeHuaweiCloudMaasModelInfo)),t.planModeBasetenModelId!==void 0&&(e.planModeBasetenModelId=t.planModeBasetenModelId),t.planModeBasetenModelInfo!==void 0&&(e.planModeBasetenModelInfo=Wt.toJSON(t.planModeBasetenModelInfo)),t.planModeVercelAiGatewayModelId!==void 0&&(e.planModeVercelAiGatewayModelId=t.planModeVercelAiGatewayModelId),t.planModeVercelAiGatewayModelInfo!==void 0&&(e.planModeVercelAiGatewayModelInfo=Wt.toJSON(t.planModeVercelAiGatewayModelInfo)),t.planModeAihubmixModelId!==void 0&&(e.planModeAihubmixModelId=t.planModeAihubmixModelId),t.planModeAihubmixModelInfo!==void 0&&(e.planModeAihubmixModelInfo=Ba.toJSON(t.planModeAihubmixModelInfo)),t.planModeDiracModelId!==void 0&&(e.planModeDiracModelId=t.planModeDiracModelId),t.planModeDiracModelInfo!==void 0&&(e.planModeDiracModelInfo=Wt.toJSON(t.planModeDiracModelInfo)),t.actModeApiProvider!==void 0&&(e.actModeApiProvider=wH(t.actModeApiProvider)),t.actModeApiModelId!==void 0&&(e.actModeApiModelId=t.actModeApiModelId),t.actModeThinkingBudgetTokens!==void 0&&(e.actModeThinkingBudgetTokens=Math.round(t.actModeThinkingBudgetTokens)),t.actModeReasoningEffort!==void 0&&(e.actModeReasoningEffort=t.actModeReasoningEffort),t.actModeVsCodeLmModelSelector!==void 0&&(e.actModeVsCodeLmModelSelector=du.toJSON(t.actModeVsCodeLmModelSelector)),t.actModeAwsBedrockCustomSelected!==void 0&&(e.actModeAwsBedrockCustomSelected=t.actModeAwsBedrockCustomSelected),t.actModeAwsBedrockCustomModelBaseId!==void 0&&(e.actModeAwsBedrockCustomModelBaseId=t.actModeAwsBedrockCustomModelBaseId),t.actModeOpenRouterModelId!==void 0&&(e.actModeOpenRouterModelId=t.actModeOpenRouterModelId),t.actModeOpenRouterModelInfo!==void 0&&(e.actModeOpenRouterModelInfo=Wt.toJSON(t.actModeOpenRouterModelInfo)),t.actModeOpenAiModelId!==void 0&&(e.actModeOpenAiModelId=t.actModeOpenAiModelId),t.actModeOpenAiModelInfo!==void 0&&(e.actModeOpenAiModelInfo=Ba.toJSON(t.actModeOpenAiModelInfo)),t.actModeOllamaModelId!==void 0&&(e.actModeOllamaModelId=t.actModeOllamaModelId),t.actModeLmStudioModelId!==void 0&&(e.actModeLmStudioModelId=t.actModeLmStudioModelId),t.actModeLiteLlmModelId!==void 0&&(e.actModeLiteLlmModelId=t.actModeLiteLlmModelId),t.actModeLiteLlmModelInfo!==void 0&&(e.actModeLiteLlmModelInfo=sc.toJSON(t.actModeLiteLlmModelInfo)),t.actModeRequestyModelId!==void 0&&(e.actModeRequestyModelId=t.actModeRequestyModelId),t.actModeRequestyModelInfo!==void 0&&(e.actModeRequestyModelInfo=Wt.toJSON(t.actModeRequestyModelInfo)),t.actModeTogetherModelId!==void 0&&(e.actModeTogetherModelId=t.actModeTogetherModelId),t.actModeFireworksModelId!==void 0&&(e.actModeFireworksModelId=t.actModeFireworksModelId),t.actModeSapAiCoreModelId!==void 0&&(e.actModeSapAiCoreModelId=t.actModeSapAiCoreModelId),t.actModeSapAiCoreDeploymentId!==void 0&&(e.actModeSapAiCoreDeploymentId=t.actModeSapAiCoreDeploymentId),t.actModeGroqModelId!==void 0&&(e.actModeGroqModelId=t.actModeGroqModelId),t.actModeGroqModelInfo!==void 0&&(e.actModeGroqModelInfo=Wt.toJSON(t.actModeGroqModelInfo)),t.actModeHuggingFaceModelId!==void 0&&(e.actModeHuggingFaceModelId=t.actModeHuggingFaceModelId),t.actModeHuggingFaceModelInfo!==void 0&&(e.actModeHuggingFaceModelInfo=Wt.toJSON(t.actModeHuggingFaceModelInfo)),t.actModeHuaweiCloudMaasModelId!==void 0&&(e.actModeHuaweiCloudMaasModelId=t.actModeHuaweiCloudMaasModelId),t.actModeHuaweiCloudMaasModelInfo!==void 0&&(e.actModeHuaweiCloudMaasModelInfo=Wt.toJSON(t.actModeHuaweiCloudMaasModelInfo)),t.actModeBasetenModelId!==void 0&&(e.actModeBasetenModelId=t.actModeBasetenModelId),t.actModeBasetenModelInfo!==void 0&&(e.actModeBasetenModelInfo=Wt.toJSON(t.actModeBasetenModelInfo)),t.actModeVercelAiGatewayModelId!==void 0&&(e.actModeVercelAiGatewayModelId=t.actModeVercelAiGatewayModelId),t.actModeVercelAiGatewayModelInfo!==void 0&&(e.actModeVercelAiGatewayModelInfo=Wt.toJSON(t.actModeVercelAiGatewayModelInfo)),t.actModeAihubmixModelId!==void 0&&(e.actModeAihubmixModelId=t.actModeAihubmixModelId),t.actModeAihubmixModelInfo!==void 0&&(e.actModeAihubmixModelInfo=Ba.toJSON(t.actModeAihubmixModelInfo)),t.actModeDiracModelId!==void 0&&(e.actModeDiracModelId=t.actModeDiracModelId),t.actModeDiracModelInfo!==void 0&&(e.actModeDiracModelInfo=Wt.toJSON(t.actModeDiracModelInfo)),e},create(t){return Bte.fromPartial(t??{})},fromPartial(t){let e=Zqn();return e.ulid=t.ulid??void 0,e.liteLlmBaseUrl=t.liteLlmBaseUrl??void 0,e.liteLlmUsePromptCache=t.liteLlmUsePromptCache??void 0,e.openAiHeaders=globalThis.Object.entries(t.openAiHeaders??{}).reduce((r,[i,a])=>(a!==void 0&&(r[i]=globalThis.String(a)),r),{}),e.anthropicBaseUrl=t.anthropicBaseUrl??void 0,e.openRouterProviderSorting=t.openRouterProviderSorting??void 0,e.awsRegion=t.awsRegion??void 0,e.awsUseCrossRegionInference=t.awsUseCrossRegionInference??void 0,e.awsBedrockUsePromptCache=t.awsBedrockUsePromptCache??void 0,e.awsUseProfile=t.awsUseProfile??void 0,e.awsProfile=t.awsProfile??void 0,e.awsBedrockEndpoint=t.awsBedrockEndpoint??void 0,e.claudeCodePath=t.claudeCodePath??void 0,e.vertexProjectId=t.vertexProjectId??void 0,e.vertexRegion=t.vertexRegion??void 0,e.openAiBaseUrl=t.openAiBaseUrl??void 0,e.ollamaBaseUrl=t.ollamaBaseUrl??void 0,e.ollamaApiOptionsCtxNum=t.ollamaApiOptionsCtxNum??void 0,e.lmStudioBaseUrl=t.lmStudioBaseUrl??void 0,e.geminiBaseUrl=t.geminiBaseUrl??void 0,e.requestyBaseUrl=t.requestyBaseUrl??void 0,e.fireworksModelMaxCompletionTokens=t.fireworksModelMaxCompletionTokens??void 0,e.fireworksModelMaxTokens=t.fireworksModelMaxTokens??void 0,e.azureApiVersion=t.azureApiVersion??void 0,e.qwenApiLine=t.qwenApiLine??void 0,e.asksageApiUrl=t.asksageApiUrl??void 0,e.requestTimeoutMs=t.requestTimeoutMs??void 0,e.sapAiResourceGroup=t.sapAiResourceGroup??void 0,e.sapAiCoreTokenUrl=t.sapAiCoreTokenUrl??void 0,e.sapAiCoreBaseUrl=t.sapAiCoreBaseUrl??void 0,e.sapAiCoreUseOrchestrationMode=t.sapAiCoreUseOrchestrationMode??void 0,e.moonshotApiLine=t.moonshotApiLine??void 0,e.awsAuthentication=t.awsAuthentication??void 0,e.zaiApiLine=t.zaiApiLine??void 0,e.lmStudioMaxTokens=t.lmStudioMaxTokens??void 0,e.qwenCodeOauthPath=t.qwenCodeOauthPath??void 0,e.difyBaseUrl=t.difyBaseUrl??void 0,e.awsUseGlobalInference=t.awsUseGlobalInference??void 0,e.minimaxApiLine=t.minimaxApiLine??void 0,e.aihubmixBaseUrl=t.aihubmixBaseUrl??void 0,e.aihubmixAppCode=t.aihubmixAppCode??void 0,e.azureIdentity=t.azureIdentity??void 0,e.planModeApiProvider=t.planModeApiProvider??void 0,e.planModeApiModelId=t.planModeApiModelId??void 0,e.planModeThinkingBudgetTokens=t.planModeThinkingBudgetTokens??void 0,e.planModeReasoningEffort=t.planModeReasoningEffort??void 0,e.planModeVsCodeLmModelSelector=t.planModeVsCodeLmModelSelector!==void 0&&t.planModeVsCodeLmModelSelector!==null?du.fromPartial(t.planModeVsCodeLmModelSelector):void 0,e.planModeAwsBedrockCustomSelected=t.planModeAwsBedrockCustomSelected??void 0,e.planModeAwsBedrockCustomModelBaseId=t.planModeAwsBedrockCustomModelBaseId??void 0,e.planModeOpenRouterModelId=t.planModeOpenRouterModelId??void 0,e.planModeOpenRouterModelInfo=t.planModeOpenRouterModelInfo!==void 0&&t.planModeOpenRouterModelInfo!==null?Wt.fromPartial(t.planModeOpenRouterModelInfo):void 0,e.planModeOpenAiModelId=t.planModeOpenAiModelId??void 0,e.planModeOpenAiModelInfo=t.planModeOpenAiModelInfo!==void 0&&t.planModeOpenAiModelInfo!==null?Ba.fromPartial(t.planModeOpenAiModelInfo):void 0,e.planModeOllamaModelId=t.planModeOllamaModelId??void 0,e.planModeLmStudioModelId=t.planModeLmStudioModelId??void 0,e.planModeLiteLlmModelId=t.planModeLiteLlmModelId??void 0,e.planModeLiteLlmModelInfo=t.planModeLiteLlmModelInfo!==void 0&&t.planModeLiteLlmModelInfo!==null?sc.fromPartial(t.planModeLiteLlmModelInfo):void 0,e.planModeRequestyModelId=t.planModeRequestyModelId??void 0,e.planModeRequestyModelInfo=t.planModeRequestyModelInfo!==void 0&&t.planModeRequestyModelInfo!==null?Wt.fromPartial(t.planModeRequestyModelInfo):void 0,e.planModeTogetherModelId=t.planModeTogetherModelId??void 0,e.planModeFireworksModelId=t.planModeFireworksModelId??void 0,e.planModeSapAiCoreModelId=t.planModeSapAiCoreModelId??void 0,e.planModeSapAiCoreDeploymentId=t.planModeSapAiCoreDeploymentId??void 0,e.planModeGroqModelId=t.planModeGroqModelId??void 0,e.planModeGroqModelInfo=t.planModeGroqModelInfo!==void 0&&t.planModeGroqModelInfo!==null?Wt.fromPartial(t.planModeGroqModelInfo):void 0,e.planModeHuggingFaceModelId=t.planModeHuggingFaceModelId??void 0,e.planModeHuggingFaceModelInfo=t.planModeHuggingFaceModelInfo!==void 0&&t.planModeHuggingFaceModelInfo!==null?Wt.fromPartial(t.planModeHuggingFaceModelInfo):void 0,e.planModeHuaweiCloudMaasModelId=t.planModeHuaweiCloudMaasModelId??void 0,e.planModeHuaweiCloudMaasModelInfo=t.planModeHuaweiCloudMaasModelInfo!==void 0&&t.planModeHuaweiCloudMaasModelInfo!==null?Wt.fromPartial(t.planModeHuaweiCloudMaasModelInfo):void 0,e.planModeBasetenModelId=t.planModeBasetenModelId??void 0,e.planModeBasetenModelInfo=t.planModeBasetenModelInfo!==void 0&&t.planModeBasetenModelInfo!==null?Wt.fromPartial(t.planModeBasetenModelInfo):void 0,e.planModeVercelAiGatewayModelId=t.planModeVercelAiGatewayModelId??void 0,e.planModeVercelAiGatewayModelInfo=t.planModeVercelAiGatewayModelInfo!==void 0&&t.planModeVercelAiGatewayModelInfo!==null?Wt.fromPartial(t.planModeVercelAiGatewayModelInfo):void 0,e.planModeAihubmixModelId=t.planModeAihubmixModelId??void 0,e.planModeAihubmixModelInfo=t.planModeAihubmixModelInfo!==void 0&&t.planModeAihubmixModelInfo!==null?Ba.fromPartial(t.planModeAihubmixModelInfo):void 0,e.planModeDiracModelId=t.planModeDiracModelId??void 0,e.planModeDiracModelInfo=t.planModeDiracModelInfo!==void 0&&t.planModeDiracModelInfo!==null?Wt.fromPartial(t.planModeDiracModelInfo):void 0,e.actModeApiProvider=t.actModeApiProvider??void 0,e.actModeApiModelId=t.actModeApiModelId??void 0,e.actModeThinkingBudgetTokens=t.actModeThinkingBudgetTokens??void 0,e.actModeReasoningEffort=t.actModeReasoningEffort??void 0,e.actModeVsCodeLmModelSelector=t.actModeVsCodeLmModelSelector!==void 0&&t.actModeVsCodeLmModelSelector!==null?du.fromPartial(t.actModeVsCodeLmModelSelector):void 0,e.actModeAwsBedrockCustomSelected=t.actModeAwsBedrockCustomSelected??void 0,e.actModeAwsBedrockCustomModelBaseId=t.actModeAwsBedrockCustomModelBaseId??void 0,e.actModeOpenRouterModelId=t.actModeOpenRouterModelId??void 0,e.actModeOpenRouterModelInfo=t.actModeOpenRouterModelInfo!==void 0&&t.actModeOpenRouterModelInfo!==null?Wt.fromPartial(t.actModeOpenRouterModelInfo):void 0,e.actModeOpenAiModelId=t.actModeOpenAiModelId??void 0,e.actModeOpenAiModelInfo=t.actModeOpenAiModelInfo!==void 0&&t.actModeOpenAiModelInfo!==null?Ba.fromPartial(t.actModeOpenAiModelInfo):void 0,e.actModeOllamaModelId=t.actModeOllamaModelId??void 0,e.actModeLmStudioModelId=t.actModeLmStudioModelId??void 0,e.actModeLiteLlmModelId=t.actModeLiteLlmModelId??void 0,e.actModeLiteLlmModelInfo=t.actModeLiteLlmModelInfo!==void 0&&t.actModeLiteLlmModelInfo!==null?sc.fromPartial(t.actModeLiteLlmModelInfo):void 0,e.actModeRequestyModelId=t.actModeRequestyModelId??void 0,e.actModeRequestyModelInfo=t.actModeRequestyModelInfo!==void 0&&t.actModeRequestyModelInfo!==null?Wt.fromPartial(t.actModeRequestyModelInfo):void 0,e.actModeTogetherModelId=t.actModeTogetherModelId??void 0,e.actModeFireworksModelId=t.actModeFireworksModelId??void 0,e.actModeSapAiCoreModelId=t.actModeSapAiCoreModelId??void 0,e.actModeSapAiCoreDeploymentId=t.actModeSapAiCoreDeploymentId??void 0,e.actModeGroqModelId=t.actModeGroqModelId??void 0,e.actModeGroqModelInfo=t.actModeGroqModelInfo!==void 0&&t.actModeGroqModelInfo!==null?Wt.fromPartial(t.actModeGroqModelInfo):void 0,e.actModeHuggingFaceModelId=t.actModeHuggingFaceModelId??void 0,e.actModeHuggingFaceModelInfo=t.actModeHuggingFaceModelInfo!==void 0&&t.actModeHuggingFaceModelInfo!==null?Wt.fromPartial(t.actModeHuggingFaceModelInfo):void 0,e.actModeHuaweiCloudMaasModelId=t.actModeHuaweiCloudMaasModelId??void 0,e.actModeHuaweiCloudMaasModelInfo=t.actModeHuaweiCloudMaasModelInfo!==void 0&&t.actModeHuaweiCloudMaasModelInfo!==null?Wt.fromPartial(t.actModeHuaweiCloudMaasModelInfo):void 0,e.actModeBasetenModelId=t.actModeBasetenModelId??void 0,e.actModeBasetenModelInfo=t.actModeBasetenModelInfo!==void 0&&t.actModeBasetenModelInfo!==null?Wt.fromPartial(t.actModeBasetenModelInfo):void 0,e.actModeVercelAiGatewayModelId=t.actModeVercelAiGatewayModelId??void 0,e.actModeVercelAiGatewayModelInfo=t.actModeVercelAiGatewayModelInfo!==void 0&&t.actModeVercelAiGatewayModelInfo!==null?Wt.fromPartial(t.actModeVercelAiGatewayModelInfo):void 0,e.actModeAihubmixModelId=t.actModeAihubmixModelId??void 0,e.actModeAihubmixModelInfo=t.actModeAihubmixModelInfo!==void 0&&t.actModeAihubmixModelInfo!==null?Ba.fromPartial(t.actModeAihubmixModelInfo):void 0,e.actModeDiracModelId=t.actModeDiracModelId??void 0,e.actModeDiracModelInfo=t.actModeDiracModelInfo!==void 0&&t.actModeDiracModelInfo!==null?Wt.fromPartial(t.actModeDiracModelInfo):void 0,e}};Ynt={encode(t,e=new hr){return t.key!==""&&e.uint32(10).string(t.key),t.value!==""&&e.uint32(18).string(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=eGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.key=r.string();continue}case 2:{if(o!==18)break;a.value=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{key:Ke(t.key)?globalThis.String(t.key):"",value:Ke(t.value)?globalThis.String(t.value):""}},toJSON(t){let e={};return t.key!==""&&(e.key=t.key),t.value!==""&&(e.value=t.value),e},create(t){return Ynt.fromPartial(t??{})},fromPartial(t){let e=eGn();return e.key=t.key??"",e.value=t.value??"",e}};Bcr={encode(t,e=new hr){return t.metadata!==void 0&&wr.encode(t.metadata,e.uint32(10).fork()).join(),t.apiConfiguration!==void 0&&vg.encode(t.apiConfiguration,e.uint32(18).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=tGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.metadata=wr.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.apiConfiguration=vg.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{metadata:Ke(t.metadata)?wr.fromJSON(t.metadata):void 0,apiConfiguration:Ke(t.apiConfiguration)?vg.fromJSON(t.apiConfiguration):Ke(t.api_configuration)?vg.fromJSON(t.api_configuration):void 0}},toJSON(t){let e={};return t.metadata!==void 0&&(e.metadata=wr.toJSON(t.metadata)),t.apiConfiguration!==void 0&&(e.apiConfiguration=vg.toJSON(t.apiConfiguration)),e},create(t){return Bcr.fromPartial(t??{})},fromPartial(t){let e=tGn();return e.metadata=t.metadata!==void 0&&t.metadata!==null?wr.fromPartial(t.metadata):void 0,e.apiConfiguration=t.apiConfiguration!==void 0&&t.apiConfiguration!==null?vg.fromPartial(t.apiConfiguration):void 0,e}};Dte={encode(t,e=new hr){return t.options!==void 0&&Bte.encode(t.options,e.uint32(10).fork()).join(),t.secrets!==void 0&&Rte.encode(t.secrets,e.uint32(18).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=rGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.options=Bte.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.secrets=Rte.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{options:Ke(t.options)?Bte.fromJSON(t.options):void 0,secrets:Ke(t.secrets)?Rte.fromJSON(t.secrets):void 0}},toJSON(t){let e={};return t.options!==void 0&&(e.options=Bte.toJSON(t.options)),t.secrets!==void 0&&(e.secrets=Rte.toJSON(t.secrets)),e},create(t){return Dte.fromPartial(t??{})},fromPartial(t){let e=rGn();return e.options=t.options!==void 0&&t.options!==null?Bte.fromPartial(t.options):void 0,e.secrets=t.secrets!==void 0&&t.secrets!==null?Rte.fromPartial(t.secrets):void 0,e}};Dcr={encode(t,e=new hr){t.metadata!==void 0&&wr.encode(t.metadata,e.uint32(10).fork()).join(),t.updates!==void 0&&Dte.encode(t.updates,e.uint32(18).fork()).join();for(let r of t.updateMask)e.uint32(26).string(r);return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=nGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.metadata=wr.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.updates=Dte.decode(r,r.uint32());continue}case 3:{if(o!==26)break;a.updateMask.push(r.string());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{metadata:Ke(t.metadata)?wr.fromJSON(t.metadata):void 0,updates:Ke(t.updates)?Dte.fromJSON(t.updates):void 0,updateMask:globalThis.Array.isArray(t?.updateMask)?t.updateMask.map(e=>globalThis.String(e)):globalThis.Array.isArray(t?.update_mask)?t.update_mask.map(e=>globalThis.String(e)):[]}},toJSON(t){let e={};return t.metadata!==void 0&&(e.metadata=wr.toJSON(t.metadata)),t.updates!==void 0&&(e.updates=Dte.toJSON(t.updates)),t.updateMask?.length&&(e.updateMask=t.updateMask),e},create(t){return Dcr.fromPartial(t??{})},fromPartial(t){let e=nGn();return e.metadata=t.metadata!==void 0&&t.metadata!==null?wr.fromPartial(t.metadata):void 0,e.updates=t.updates!==void 0&&t.updates!==null?Dte.fromPartial(t.updates):void 0,e.updateMask=t.updateMask?.map(r=>r)||[],e}};kcr={encode(t,e=new hr){return t.metadata!==void 0&&wr.encode(t.metadata,e.uint32(10).fork()).join(),t.apiConfiguration!==void 0&&vg.encode(t.apiConfiguration,e.uint32(18).fork()).join(),t.updateMask!==void 0&&O3.encode(O3.wrap(t.updateMask),e.uint32(26).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=iGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.metadata=wr.decode(r,r.uint32());continue}case 2:{if(o!==18)break;a.apiConfiguration=vg.decode(r,r.uint32());continue}case 3:{if(o!==26)break;a.updateMask=O3.unwrap(O3.decode(r,r.uint32()));continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{metadata:Ke(t.metadata)?wr.fromJSON(t.metadata):void 0,apiConfiguration:Ke(t.apiConfiguration)?vg.fromJSON(t.apiConfiguration):Ke(t.api_configuration)?vg.fromJSON(t.api_configuration):void 0,updateMask:Ke(t.updateMask)?O3.unwrap(O3.fromJSON(t.updateMask)):Ke(t.update_mask)?O3.unwrap(O3.fromJSON(t.update_mask)):void 0}},toJSON(t){let e={};return t.metadata!==void 0&&(e.metadata=wr.toJSON(t.metadata)),t.apiConfiguration!==void 0&&(e.apiConfiguration=vg.toJSON(t.apiConfiguration)),t.updateMask!==void 0&&(e.updateMask=O3.toJSON(O3.wrap(t.updateMask))),e},create(t){return kcr.fromPartial(t??{})},fromPartial(t){let e=iGn();return e.metadata=t.metadata!==void 0&&t.metadata!==null?wr.fromPartial(t.metadata):void 0,e.apiConfiguration=t.apiConfiguration!==void 0&&t.apiConfiguration!==null?vg.fromPartial(t.apiConfiguration):void 0,e.updateMask=t.updateMask??void 0,e}};KP={encode(t,e=new hr){t.maxTokens!==void 0&&e.uint32(8).int64(t.maxTokens),t.contextWindow!==void 0&&e.uint32(16).int64(t.contextWindow),t.supportsImages!==void 0&&e.uint32(24).bool(t.supportsImages),t.supportsPromptCache!==!1&&e.uint32(32).bool(t.supportsPromptCache),t.inputPrice!==void 0&&e.uint32(41).double(t.inputPrice),t.outputPrice!==void 0&&e.uint32(49).double(t.outputPrice),t.thinkingConfig!==void 0&&Zf.encode(t.thinkingConfig,e.uint32(58).fork()).join(),t.cacheWritesPrice!==void 0&&e.uint32(73).double(t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&e.uint32(81).double(t.cacheReadsPrice),t.description!==void 0&&e.uint32(90).string(t.description),t.temperature!==void 0&&e.uint32(105).double(t.temperature),t.surveyContent!==void 0&&e.uint32(114).string(t.surveyContent),t.surveyId!==void 0&&e.uint32(122).string(t.surveyId),t.banner!==void 0&&e.uint32(130).string(t.banner),t.modelName!==""&&e.uint32(138).string(t.modelName),t.apiFormat!==void 0&&e.uint32(144).int32(t.apiFormat),t.supportsReasoning!==void 0&&e.uint32(152).bool(t.supportsReasoning);for(let r of t.reasoningEffortOptions)e.uint32(162).string(r);return e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=aGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.maxTokens=bg(r.int64());continue}case 2:{if(o!==16)break;a.contextWindow=bg(r.int64());continue}case 3:{if(o!==24)break;a.supportsImages=r.bool();continue}case 4:{if(o!==32)break;a.supportsPromptCache=r.bool();continue}case 5:{if(o!==41)break;a.inputPrice=r.double();continue}case 6:{if(o!==49)break;a.outputPrice=r.double();continue}case 7:{if(o!==58)break;a.thinkingConfig=Zf.decode(r,r.uint32());continue}case 9:{if(o!==73)break;a.cacheWritesPrice=r.double();continue}case 10:{if(o!==81)break;a.cacheReadsPrice=r.double();continue}case 11:{if(o!==90)break;a.description=r.string();continue}case 13:{if(o!==105)break;a.temperature=r.double();continue}case 14:{if(o!==114)break;a.surveyContent=r.string();continue}case 15:{if(o!==122)break;a.surveyId=r.string();continue}case 16:{if(o!==130)break;a.banner=r.string();continue}case 17:{if(o!==138)break;a.modelName=r.string();continue}case 18:{if(o!==144)break;a.apiFormat=r.int32();continue}case 19:{if(o!==152)break;a.supportsReasoning=r.bool();continue}case 20:{if(o!==162)break;a.reasoningEffortOptions.push(r.string());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{maxTokens:Ke(t.maxTokens)?globalThis.Number(t.maxTokens):Ke(t.max_tokens)?globalThis.Number(t.max_tokens):void 0,contextWindow:Ke(t.contextWindow)?globalThis.Number(t.contextWindow):Ke(t.context_window)?globalThis.Number(t.context_window):void 0,supportsImages:Ke(t.supportsImages)?globalThis.Boolean(t.supportsImages):Ke(t.supports_images)?globalThis.Boolean(t.supports_images):void 0,supportsPromptCache:Ke(t.supportsPromptCache)?globalThis.Boolean(t.supportsPromptCache):Ke(t.supports_prompt_cache)?globalThis.Boolean(t.supports_prompt_cache):!1,inputPrice:Ke(t.inputPrice)?globalThis.Number(t.inputPrice):Ke(t.input_price)?globalThis.Number(t.input_price):void 0,outputPrice:Ke(t.outputPrice)?globalThis.Number(t.outputPrice):Ke(t.output_price)?globalThis.Number(t.output_price):void 0,thinkingConfig:Ke(t.thinkingConfig)?Zf.fromJSON(t.thinkingConfig):Ke(t.thinking_config)?Zf.fromJSON(t.thinking_config):void 0,cacheWritesPrice:Ke(t.cacheWritesPrice)?globalThis.Number(t.cacheWritesPrice):Ke(t.cache_writes_price)?globalThis.Number(t.cache_writes_price):void 0,cacheReadsPrice:Ke(t.cacheReadsPrice)?globalThis.Number(t.cacheReadsPrice):Ke(t.cache_reads_price)?globalThis.Number(t.cache_reads_price):void 0,description:Ke(t.description)?globalThis.String(t.description):void 0,temperature:Ke(t.temperature)?globalThis.Number(t.temperature):void 0,surveyContent:Ke(t.surveyContent)?globalThis.String(t.surveyContent):Ke(t.survey_content)?globalThis.String(t.survey_content):void 0,surveyId:Ke(t.surveyId)?globalThis.String(t.surveyId):Ke(t.survey_id)?globalThis.String(t.survey_id):void 0,banner:Ke(t.banner)?globalThis.String(t.banner):void 0,modelName:Ke(t.modelName)?globalThis.String(t.modelName):Ke(t.model_name)?globalThis.String(t.model_name):"",apiFormat:Ke(t.apiFormat)?rL(t.apiFormat):Ke(t.api_format)?rL(t.api_format):void 0,supportsReasoning:Ke(t.supportsReasoning)?globalThis.Boolean(t.supportsReasoning):Ke(t.supports_reasoning)?globalThis.Boolean(t.supports_reasoning):void 0,reasoningEffortOptions:globalThis.Array.isArray(t?.reasoningEffortOptions)?t.reasoningEffortOptions.map(e=>globalThis.String(e)):globalThis.Array.isArray(t?.reasoning_effort_options)?t.reasoning_effort_options.map(e=>globalThis.String(e)):[]}},toJSON(t){let e={};return t.maxTokens!==void 0&&(e.maxTokens=Math.round(t.maxTokens)),t.contextWindow!==void 0&&(e.contextWindow=Math.round(t.contextWindow)),t.supportsImages!==void 0&&(e.supportsImages=t.supportsImages),t.supportsPromptCache!==!1&&(e.supportsPromptCache=t.supportsPromptCache),t.inputPrice!==void 0&&(e.inputPrice=t.inputPrice),t.outputPrice!==void 0&&(e.outputPrice=t.outputPrice),t.thinkingConfig!==void 0&&(e.thinkingConfig=Zf.toJSON(t.thinkingConfig)),t.cacheWritesPrice!==void 0&&(e.cacheWritesPrice=t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&(e.cacheReadsPrice=t.cacheReadsPrice),t.description!==void 0&&(e.description=t.description),t.temperature!==void 0&&(e.temperature=t.temperature),t.surveyContent!==void 0&&(e.surveyContent=t.surveyContent),t.surveyId!==void 0&&(e.surveyId=t.surveyId),t.banner!==void 0&&(e.banner=t.banner),t.modelName!==""&&(e.modelName=t.modelName),t.apiFormat!==void 0&&(e.apiFormat=Mte(t.apiFormat)),t.supportsReasoning!==void 0&&(e.supportsReasoning=t.supportsReasoning),t.reasoningEffortOptions?.length&&(e.reasoningEffortOptions=t.reasoningEffortOptions),e},create(t){return KP.fromPartial(t??{})},fromPartial(t){let e=aGn();return e.maxTokens=t.maxTokens??void 0,e.contextWindow=t.contextWindow??void 0,e.supportsImages=t.supportsImages??void 0,e.supportsPromptCache=t.supportsPromptCache??!1,e.inputPrice=t.inputPrice??void 0,e.outputPrice=t.outputPrice??void 0,e.thinkingConfig=t.thinkingConfig!==void 0&&t.thinkingConfig!==null?Zf.fromPartial(t.thinkingConfig):void 0,e.cacheWritesPrice=t.cacheWritesPrice??void 0,e.cacheReadsPrice=t.cacheReadsPrice??void 0,e.description=t.description??void 0,e.temperature=t.temperature??void 0,e.surveyContent=t.surveyContent??void 0,e.surveyId=t.surveyId??void 0,e.banner=t.banner??void 0,e.modelName=t.modelName??"",e.apiFormat=t.apiFormat??void 0,e.supportsReasoning=t.supportsReasoning??void 0,e.reasoningEffortOptions=t.reasoningEffortOptions?.map(r=>r)||[],e}};fGn={encode(t,e=new hr){return globalThis.Object.entries(t.models).forEach(([r,i])=>{Jnt.encode({key:r,value:i},e.uint32(10).fork()).join()}),t.error!==void 0&&e.uint32(18).string(t.error),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=oGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;let n=Jnt.decode(r,r.uint32());n.value!==void 0&&(a.models[n.key]=n.value);continue}case 2:{if(o!==18)break;a.error=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{models:Hpe(t.models)?globalThis.Object.entries(t.models).reduce((e,[r,i])=>(e[r]=KP.fromJSON(i),e),{}):{},error:Ke(t.error)?globalThis.String(t.error):void 0}},toJSON(t){let e={};if(t.models){let r=globalThis.Object.entries(t.models);r.length>0&&(e.models={},r.forEach(([i,a])=>{e.models[i]=KP.toJSON(a)}))}return t.error!==void 0&&(e.error=t.error),e},create(t){return fGn.fromPartial(t??{})},fromPartial(t){let e=oGn();return e.models=globalThis.Object.entries(t.models??{}).reduce((r,[i,a])=>(a!==void 0&&(r[i]=KP.fromPartial(a)),r),{}),e.error=t.error??void 0,e}};Jnt={encode(t,e=new hr){return t.key!==""&&e.uint32(10).string(t.key),t.value!==void 0&&KP.encode(t.value,e.uint32(18).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=sGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.key=r.string();continue}case 2:{if(o!==18)break;a.value=KP.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{key:Ke(t.key)?globalThis.String(t.key):"",value:Ke(t.value)?KP.fromJSON(t.value):void 0}},toJSON(t){let e={};return t.key!==""&&(e.key=t.key),t.value!==void 0&&(e.value=KP.toJSON(t.value)),e},create(t){return Jnt.fromPartial(t??{})},fromPartial(t){let e=sGn();return e.key=t.key??"",e.value=t.value!==void 0&&t.value!==null?KP.fromPartial(t.value):void 0,e}};Ba={encode(t,e=new hr){t.maxTokens!==void 0&&e.uint32(8).int64(t.maxTokens),t.contextWindow!==void 0&&e.uint32(16).int64(t.contextWindow),t.supportsImages!==void 0&&e.uint32(24).bool(t.supportsImages),t.supportsPromptCache!==!1&&e.uint32(32).bool(t.supportsPromptCache),t.inputPrice!==void 0&&e.uint32(41).double(t.inputPrice),t.outputPrice!==void 0&&e.uint32(49).double(t.outputPrice),t.thinkingConfig!==void 0&&Zf.encode(t.thinkingConfig,e.uint32(58).fork()).join(),t.supportsGlobalEndpoint!==void 0&&e.uint32(64).bool(t.supportsGlobalEndpoint),t.cacheWritesPrice!==void 0&&e.uint32(73).double(t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&e.uint32(81).double(t.cacheReadsPrice),t.description!==void 0&&e.uint32(90).string(t.description);for(let r of t.tiers)iC.encode(r,e.uint32(98).fork()).join();return t.temperature!==void 0&&e.uint32(105).double(t.temperature),t.isR1FormatRequired!==void 0&&e.uint32(112).bool(t.isR1FormatRequired),t.apiFormat!==void 0&&e.uint32(120).int32(t.apiFormat),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=uGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.maxTokens=bg(r.int64());continue}case 2:{if(o!==16)break;a.contextWindow=bg(r.int64());continue}case 3:{if(o!==24)break;a.supportsImages=r.bool();continue}case 4:{if(o!==32)break;a.supportsPromptCache=r.bool();continue}case 5:{if(o!==41)break;a.inputPrice=r.double();continue}case 6:{if(o!==49)break;a.outputPrice=r.double();continue}case 7:{if(o!==58)break;a.thinkingConfig=Zf.decode(r,r.uint32());continue}case 8:{if(o!==64)break;a.supportsGlobalEndpoint=r.bool();continue}case 9:{if(o!==73)break;a.cacheWritesPrice=r.double();continue}case 10:{if(o!==81)break;a.cacheReadsPrice=r.double();continue}case 11:{if(o!==90)break;a.description=r.string();continue}case 12:{if(o!==98)break;a.tiers.push(iC.decode(r,r.uint32()));continue}case 13:{if(o!==105)break;a.temperature=r.double();continue}case 14:{if(o!==112)break;a.isR1FormatRequired=r.bool();continue}case 15:{if(o!==120)break;a.apiFormat=r.int32();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{maxTokens:Ke(t.maxTokens)?globalThis.Number(t.maxTokens):Ke(t.max_tokens)?globalThis.Number(t.max_tokens):void 0,contextWindow:Ke(t.contextWindow)?globalThis.Number(t.contextWindow):Ke(t.context_window)?globalThis.Number(t.context_window):void 0,supportsImages:Ke(t.supportsImages)?globalThis.Boolean(t.supportsImages):Ke(t.supports_images)?globalThis.Boolean(t.supports_images):void 0,supportsPromptCache:Ke(t.supportsPromptCache)?globalThis.Boolean(t.supportsPromptCache):Ke(t.supports_prompt_cache)?globalThis.Boolean(t.supports_prompt_cache):!1,inputPrice:Ke(t.inputPrice)?globalThis.Number(t.inputPrice):Ke(t.input_price)?globalThis.Number(t.input_price):void 0,outputPrice:Ke(t.outputPrice)?globalThis.Number(t.outputPrice):Ke(t.output_price)?globalThis.Number(t.output_price):void 0,thinkingConfig:Ke(t.thinkingConfig)?Zf.fromJSON(t.thinkingConfig):Ke(t.thinking_config)?Zf.fromJSON(t.thinking_config):void 0,supportsGlobalEndpoint:Ke(t.supportsGlobalEndpoint)?globalThis.Boolean(t.supportsGlobalEndpoint):Ke(t.supports_global_endpoint)?globalThis.Boolean(t.supports_global_endpoint):void 0,cacheWritesPrice:Ke(t.cacheWritesPrice)?globalThis.Number(t.cacheWritesPrice):Ke(t.cache_writes_price)?globalThis.Number(t.cache_writes_price):void 0,cacheReadsPrice:Ke(t.cacheReadsPrice)?globalThis.Number(t.cacheReadsPrice):Ke(t.cache_reads_price)?globalThis.Number(t.cache_reads_price):void 0,description:Ke(t.description)?globalThis.String(t.description):void 0,tiers:globalThis.Array.isArray(t?.tiers)?t.tiers.map(e=>iC.fromJSON(e)):[],temperature:Ke(t.temperature)?globalThis.Number(t.temperature):void 0,isR1FormatRequired:Ke(t.isR1FormatRequired)?globalThis.Boolean(t.isR1FormatRequired):Ke(t.is_r1_format_required)?globalThis.Boolean(t.is_r1_format_required):void 0,apiFormat:Ke(t.apiFormat)?rL(t.apiFormat):Ke(t.api_format)?rL(t.api_format):void 0}},toJSON(t){let e={};return t.maxTokens!==void 0&&(e.maxTokens=Math.round(t.maxTokens)),t.contextWindow!==void 0&&(e.contextWindow=Math.round(t.contextWindow)),t.supportsImages!==void 0&&(e.supportsImages=t.supportsImages),t.supportsPromptCache!==!1&&(e.supportsPromptCache=t.supportsPromptCache),t.inputPrice!==void 0&&(e.inputPrice=t.inputPrice),t.outputPrice!==void 0&&(e.outputPrice=t.outputPrice),t.thinkingConfig!==void 0&&(e.thinkingConfig=Zf.toJSON(t.thinkingConfig)),t.supportsGlobalEndpoint!==void 0&&(e.supportsGlobalEndpoint=t.supportsGlobalEndpoint),t.cacheWritesPrice!==void 0&&(e.cacheWritesPrice=t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&(e.cacheReadsPrice=t.cacheReadsPrice),t.description!==void 0&&(e.description=t.description),t.tiers?.length&&(e.tiers=t.tiers.map(r=>iC.toJSON(r))),t.temperature!==void 0&&(e.temperature=t.temperature),t.isR1FormatRequired!==void 0&&(e.isR1FormatRequired=t.isR1FormatRequired),t.apiFormat!==void 0&&(e.apiFormat=Mte(t.apiFormat)),e},create(t){return Ba.fromPartial(t??{})},fromPartial(t){let e=uGn();return e.maxTokens=t.maxTokens??void 0,e.contextWindow=t.contextWindow??void 0,e.supportsImages=t.supportsImages??void 0,e.supportsPromptCache=t.supportsPromptCache??!1,e.inputPrice=t.inputPrice??void 0,e.outputPrice=t.outputPrice??void 0,e.thinkingConfig=t.thinkingConfig!==void 0&&t.thinkingConfig!==null?Zf.fromPartial(t.thinkingConfig):void 0,e.supportsGlobalEndpoint=t.supportsGlobalEndpoint??void 0,e.cacheWritesPrice=t.cacheWritesPrice??void 0,e.cacheReadsPrice=t.cacheReadsPrice??void 0,e.description=t.description??void 0,e.tiers=t.tiers?.map(r=>iC.fromPartial(r))||[],e.temperature=t.temperature??void 0,e.isR1FormatRequired=t.isR1FormatRequired??void 0,e.apiFormat=t.apiFormat??void 0,e}};sc={encode(t,e=new hr){t.maxTokens!==void 0&&e.uint32(8).int64(t.maxTokens),t.contextWindow!==void 0&&e.uint32(16).int64(t.contextWindow),t.supportsImages!==void 0&&e.uint32(24).bool(t.supportsImages),t.supportsPromptCache!==!1&&e.uint32(32).bool(t.supportsPromptCache),t.inputPrice!==void 0&&e.uint32(41).double(t.inputPrice),t.outputPrice!==void 0&&e.uint32(49).double(t.outputPrice),t.thinkingConfig!==void 0&&Zf.encode(t.thinkingConfig,e.uint32(58).fork()).join(),t.supportsGlobalEndpoint!==void 0&&e.uint32(64).bool(t.supportsGlobalEndpoint),t.cacheWritesPrice!==void 0&&e.uint32(73).double(t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&e.uint32(81).double(t.cacheReadsPrice),t.description!==void 0&&e.uint32(90).string(t.description);for(let r of t.tiers)iC.encode(r,e.uint32(98).fork()).join();return t.temperature!==void 0&&e.uint32(105).double(t.temperature),t.apiFormat!==void 0&&e.uint32(112).int32(t.apiFormat),t.supportsReasoning!==void 0&&e.uint32(120).bool(t.supportsReasoning),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=cGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==8)break;a.maxTokens=bg(r.int64());continue}case 2:{if(o!==16)break;a.contextWindow=bg(r.int64());continue}case 3:{if(o!==24)break;a.supportsImages=r.bool();continue}case 4:{if(o!==32)break;a.supportsPromptCache=r.bool();continue}case 5:{if(o!==41)break;a.inputPrice=r.double();continue}case 6:{if(o!==49)break;a.outputPrice=r.double();continue}case 7:{if(o!==58)break;a.thinkingConfig=Zf.decode(r,r.uint32());continue}case 8:{if(o!==64)break;a.supportsGlobalEndpoint=r.bool();continue}case 9:{if(o!==73)break;a.cacheWritesPrice=r.double();continue}case 10:{if(o!==81)break;a.cacheReadsPrice=r.double();continue}case 11:{if(o!==90)break;a.description=r.string();continue}case 12:{if(o!==98)break;a.tiers.push(iC.decode(r,r.uint32()));continue}case 13:{if(o!==105)break;a.temperature=r.double();continue}case 14:{if(o!==112)break;a.apiFormat=r.int32();continue}case 15:{if(o!==120)break;a.supportsReasoning=r.bool();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{maxTokens:Ke(t.maxTokens)?globalThis.Number(t.maxTokens):Ke(t.max_tokens)?globalThis.Number(t.max_tokens):void 0,contextWindow:Ke(t.contextWindow)?globalThis.Number(t.contextWindow):Ke(t.context_window)?globalThis.Number(t.context_window):void 0,supportsImages:Ke(t.supportsImages)?globalThis.Boolean(t.supportsImages):Ke(t.supports_images)?globalThis.Boolean(t.supports_images):void 0,supportsPromptCache:Ke(t.supportsPromptCache)?globalThis.Boolean(t.supportsPromptCache):Ke(t.supports_prompt_cache)?globalThis.Boolean(t.supports_prompt_cache):!1,inputPrice:Ke(t.inputPrice)?globalThis.Number(t.inputPrice):Ke(t.input_price)?globalThis.Number(t.input_price):void 0,outputPrice:Ke(t.outputPrice)?globalThis.Number(t.outputPrice):Ke(t.output_price)?globalThis.Number(t.output_price):void 0,thinkingConfig:Ke(t.thinkingConfig)?Zf.fromJSON(t.thinkingConfig):Ke(t.thinking_config)?Zf.fromJSON(t.thinking_config):void 0,supportsGlobalEndpoint:Ke(t.supportsGlobalEndpoint)?globalThis.Boolean(t.supportsGlobalEndpoint):Ke(t.supports_global_endpoint)?globalThis.Boolean(t.supports_global_endpoint):void 0,cacheWritesPrice:Ke(t.cacheWritesPrice)?globalThis.Number(t.cacheWritesPrice):Ke(t.cache_writes_price)?globalThis.Number(t.cache_writes_price):void 0,cacheReadsPrice:Ke(t.cacheReadsPrice)?globalThis.Number(t.cacheReadsPrice):Ke(t.cache_reads_price)?globalThis.Number(t.cache_reads_price):void 0,description:Ke(t.description)?globalThis.String(t.description):void 0,tiers:globalThis.Array.isArray(t?.tiers)?t.tiers.map(e=>iC.fromJSON(e)):[],temperature:Ke(t.temperature)?globalThis.Number(t.temperature):void 0,apiFormat:Ke(t.apiFormat)?rL(t.apiFormat):Ke(t.api_format)?rL(t.api_format):void 0,supportsReasoning:Ke(t.supportsReasoning)?globalThis.Boolean(t.supportsReasoning):Ke(t.supports_reasoning)?globalThis.Boolean(t.supports_reasoning):void 0}},toJSON(t){let e={};return t.maxTokens!==void 0&&(e.maxTokens=Math.round(t.maxTokens)),t.contextWindow!==void 0&&(e.contextWindow=Math.round(t.contextWindow)),t.supportsImages!==void 0&&(e.supportsImages=t.supportsImages),t.supportsPromptCache!==!1&&(e.supportsPromptCache=t.supportsPromptCache),t.inputPrice!==void 0&&(e.inputPrice=t.inputPrice),t.outputPrice!==void 0&&(e.outputPrice=t.outputPrice),t.thinkingConfig!==void 0&&(e.thinkingConfig=Zf.toJSON(t.thinkingConfig)),t.supportsGlobalEndpoint!==void 0&&(e.supportsGlobalEndpoint=t.supportsGlobalEndpoint),t.cacheWritesPrice!==void 0&&(e.cacheWritesPrice=t.cacheWritesPrice),t.cacheReadsPrice!==void 0&&(e.cacheReadsPrice=t.cacheReadsPrice),t.description!==void 0&&(e.description=t.description),t.tiers?.length&&(e.tiers=t.tiers.map(r=>iC.toJSON(r))),t.temperature!==void 0&&(e.temperature=t.temperature),t.apiFormat!==void 0&&(e.apiFormat=Mte(t.apiFormat)),t.supportsReasoning!==void 0&&(e.supportsReasoning=t.supportsReasoning),e},create(t){return sc.fromPartial(t??{})},fromPartial(t){let e=cGn();return e.maxTokens=t.maxTokens??void 0,e.contextWindow=t.contextWindow??void 0,e.supportsImages=t.supportsImages??void 0,e.supportsPromptCache=t.supportsPromptCache??!1,e.inputPrice=t.inputPrice??void 0,e.outputPrice=t.outputPrice??void 0,e.thinkingConfig=t.thinkingConfig!==void 0&&t.thinkingConfig!==null?Zf.fromPartial(t.thinkingConfig):void 0,e.supportsGlobalEndpoint=t.supportsGlobalEndpoint??void 0,e.cacheWritesPrice=t.cacheWritesPrice??void 0,e.cacheReadsPrice=t.cacheReadsPrice??void 0,e.description=t.description??void 0,e.tiers=t.tiers?.map(r=>iC.fromPartial(r))||[],e.temperature=t.temperature??void 0,e.apiFormat=t.apiFormat??void 0,e.supportsReasoning=t.supportsReasoning??void 0,e}};vg={encode(t,e=new hr){return t.apiKey!==void 0&&e.uint32(10).string(t.apiKey),t.diracApiKey!==void 0&&e.uint32(18).string(t.diracApiKey),t.ulid!==void 0&&e.uint32(26).string(t.ulid),t.liteLlmBaseUrl!==void 0&&e.uint32(34).string(t.liteLlmBaseUrl),t.liteLlmApiKey!==void 0&&e.uint32(42).string(t.liteLlmApiKey),t.liteLlmUsePromptCache!==void 0&&e.uint32(48).bool(t.liteLlmUsePromptCache),globalThis.Object.entries(t.openAiHeaders).forEach(([r,i])=>{Xnt.encode({key:r,value:i},e.uint32(58).fork()).join()}),t.anthropicBaseUrl!==void 0&&e.uint32(66).string(t.anthropicBaseUrl),t.openRouterApiKey!==void 0&&e.uint32(74).string(t.openRouterApiKey),t.openRouterProviderSorting!==void 0&&e.uint32(82).string(t.openRouterProviderSorting),t.awsAccessKey!==void 0&&e.uint32(90).string(t.awsAccessKey),t.awsSecretKey!==void 0&&e.uint32(98).string(t.awsSecretKey),t.awsSessionToken!==void 0&&e.uint32(106).string(t.awsSessionToken),t.awsRegion!==void 0&&e.uint32(114).string(t.awsRegion),t.awsUseCrossRegionInference!==void 0&&e.uint32(120).bool(t.awsUseCrossRegionInference),t.awsBedrockUsePromptCache!==void 0&&e.uint32(128).bool(t.awsBedrockUsePromptCache),t.awsUseProfile!==void 0&&e.uint32(136).bool(t.awsUseProfile),t.awsProfile!==void 0&&e.uint32(146).string(t.awsProfile),t.awsBedrockEndpoint!==void 0&&e.uint32(154).string(t.awsBedrockEndpoint),t.claudeCodePath!==void 0&&e.uint32(162).string(t.claudeCodePath),t.vertexProjectId!==void 0&&e.uint32(170).string(t.vertexProjectId),t.vertexRegion!==void 0&&e.uint32(178).string(t.vertexRegion),t.openAiBaseUrl!==void 0&&e.uint32(186).string(t.openAiBaseUrl),t.openAiApiKey!==void 0&&e.uint32(194).string(t.openAiApiKey),t.ollamaBaseUrl!==void 0&&e.uint32(202).string(t.ollamaBaseUrl),t.ollamaApiOptionsCtxNum!==void 0&&e.uint32(210).string(t.ollamaApiOptionsCtxNum),t.lmStudioBaseUrl!==void 0&&e.uint32(218).string(t.lmStudioBaseUrl),t.geminiApiKey!==void 0&&e.uint32(226).string(t.geminiApiKey),t.geminiBaseUrl!==void 0&&e.uint32(234).string(t.geminiBaseUrl),t.openAiNativeApiKey!==void 0&&e.uint32(242).string(t.openAiNativeApiKey),t.deepSeekApiKey!==void 0&&e.uint32(250).string(t.deepSeekApiKey),t.requestyApiKey!==void 0&&e.uint32(258).string(t.requestyApiKey),t.requestyBaseUrl!==void 0&&e.uint32(266).string(t.requestyBaseUrl),t.togetherApiKey!==void 0&&e.uint32(274).string(t.togetherApiKey),t.fireworksApiKey!==void 0&&e.uint32(282).string(t.fireworksApiKey),t.fireworksModelMaxCompletionTokens!==void 0&&e.uint32(288).int64(t.fireworksModelMaxCompletionTokens),t.fireworksModelMaxTokens!==void 0&&e.uint32(296).int64(t.fireworksModelMaxTokens),t.qwenApiKey!==void 0&&e.uint32(306).string(t.qwenApiKey),t.doubaoApiKey!==void 0&&e.uint32(314).string(t.doubaoApiKey),t.mistralApiKey!==void 0&&e.uint32(322).string(t.mistralApiKey),t.azureApiVersion!==void 0&&e.uint32(330).string(t.azureApiVersion),t.qwenApiLine!==void 0&&e.uint32(338).string(t.qwenApiLine),t.nebiusApiKey!==void 0&&e.uint32(346).string(t.nebiusApiKey),t.asksageApiUrl!==void 0&&e.uint32(354).string(t.asksageApiUrl),t.asksageApiKey!==void 0&&e.uint32(362).string(t.asksageApiKey),t.xaiApiKey!==void 0&&e.uint32(370).string(t.xaiApiKey),t.sambanovaApiKey!==void 0&&e.uint32(378).string(t.sambanovaApiKey),t.cerebrasApiKey!==void 0&&e.uint32(386).string(t.cerebrasApiKey),t.requestTimeoutMs!==void 0&&e.uint32(392).int64(t.requestTimeoutMs),t.sapAiCoreClientId!==void 0&&e.uint32(402).string(t.sapAiCoreClientId),t.sapAiCoreClientSecret!==void 0&&e.uint32(410).string(t.sapAiCoreClientSecret),t.sapAiResourceGroup!==void 0&&e.uint32(418).string(t.sapAiResourceGroup),t.sapAiCoreTokenUrl!==void 0&&e.uint32(426).string(t.sapAiCoreTokenUrl),t.sapAiCoreBaseUrl!==void 0&&e.uint32(434).string(t.sapAiCoreBaseUrl),t.sapAiCoreUseOrchestrationMode!==void 0&&e.uint32(440).bool(t.sapAiCoreUseOrchestrationMode),t.moonshotApiKey!==void 0&&e.uint32(450).string(t.moonshotApiKey),t.moonshotApiLine!==void 0&&e.uint32(458).string(t.moonshotApiLine),t.awsAuthentication!==void 0&&e.uint32(466).string(t.awsAuthentication),t.awsBedrockApiKey!==void 0&&e.uint32(474).string(t.awsBedrockApiKey),t.groqApiKey!==void 0&&e.uint32(490).string(t.groqApiKey),t.huggingFaceApiKey!==void 0&&e.uint32(498).string(t.huggingFaceApiKey),t.huaweiCloudMaasApiKey!==void 0&&e.uint32(506).string(t.huaweiCloudMaasApiKey),t.basetenApiKey!==void 0&&e.uint32(514).string(t.basetenApiKey),t.ollamaApiKey!==void 0&&e.uint32(522).string(t.ollamaApiKey),t.zaiApiKey!==void 0&&e.uint32(530).string(t.zaiApiKey),t.zaiApiLine!==void 0&&e.uint32(538).string(t.zaiApiLine),t.lmStudioMaxTokens!==void 0&&e.uint32(546).string(t.lmStudioMaxTokens),t.vercelAiGatewayApiKey!==void 0&&e.uint32(554).string(t.vercelAiGatewayApiKey),t.qwenCodeOauthPath!==void 0&&e.uint32(562).string(t.qwenCodeOauthPath),t.difyApiKey!==void 0&&e.uint32(570).string(t.difyApiKey),t.difyBaseUrl!==void 0&&e.uint32(578).string(t.difyBaseUrl),t.awsUseGlobalInference!==void 0&&e.uint32(616).bool(t.awsUseGlobalInference),t.minimaxApiKey!==void 0&&e.uint32(626).string(t.minimaxApiKey),t.minimaxApiLine!==void 0&&e.uint32(634).string(t.minimaxApiLine),t.hicapModelId!==void 0&&e.uint32(642).string(t.hicapModelId),t.hicapApiKey!==void 0&&e.uint32(650).string(t.hicapApiKey),t.aihubmixApiKey!==void 0&&e.uint32(658).string(t.aihubmixApiKey),t.aihubmixBaseUrl!==void 0&&e.uint32(666).string(t.aihubmixBaseUrl),t.aihubmixAppCode!==void 0&&e.uint32(674).string(t.aihubmixAppCode),t.nousResearchApiKey!==void 0&&e.uint32(682).string(t.nousResearchApiKey),t.azureIdentity!==void 0&&e.uint32(688).bool(t.azureIdentity),t.wandbApiKey!==void 0&&e.uint32(698).string(t.wandbApiKey),t.planModeApiProvider!==void 0&&e.uint32(800).int32(t.planModeApiProvider),t.planModeApiModelId!==void 0&&e.uint32(810).string(t.planModeApiModelId),t.planModeThinkingBudgetTokens!==void 0&&e.uint32(816).int64(t.planModeThinkingBudgetTokens),t.planModeReasoningEffort!==void 0&&e.uint32(826).string(t.planModeReasoningEffort),t.planModeVsCodeLmModelSelector!==void 0&&du.encode(t.planModeVsCodeLmModelSelector,e.uint32(834).fork()).join(),t.planModeAwsBedrockCustomSelected!==void 0&&e.uint32(840).bool(t.planModeAwsBedrockCustomSelected),t.planModeAwsBedrockCustomModelBaseId!==void 0&&e.uint32(850).string(t.planModeAwsBedrockCustomModelBaseId),t.planModeOpenRouterModelId!==void 0&&e.uint32(858).string(t.planModeOpenRouterModelId),t.planModeOpenRouterModelInfo!==void 0&&Wt.encode(t.planModeOpenRouterModelInfo,e.uint32(866).fork()).join(),t.planModeOpenAiModelId!==void 0&&e.uint32(874).string(t.planModeOpenAiModelId),t.planModeOpenAiModelInfo!==void 0&&Ba.encode(t.planModeOpenAiModelInfo,e.uint32(882).fork()).join(),t.planModeOllamaModelId!==void 0&&e.uint32(890).string(t.planModeOllamaModelId),t.planModeLmStudioModelId!==void 0&&e.uint32(898).string(t.planModeLmStudioModelId),t.planModeLiteLlmModelId!==void 0&&e.uint32(906).string(t.planModeLiteLlmModelId),t.planModeLiteLlmModelInfo!==void 0&&sc.encode(t.planModeLiteLlmModelInfo,e.uint32(914).fork()).join(),t.planModeRequestyModelId!==void 0&&e.uint32(922).string(t.planModeRequestyModelId),t.planModeRequestyModelInfo!==void 0&&Wt.encode(t.planModeRequestyModelInfo,e.uint32(930).fork()).join(),t.planModeTogetherModelId!==void 0&&e.uint32(938).string(t.planModeTogetherModelId),t.planModeFireworksModelId!==void 0&&e.uint32(946).string(t.planModeFireworksModelId),t.planModeSapAiCoreModelId!==void 0&&e.uint32(954).string(t.planModeSapAiCoreModelId),t.planModeSapAiCoreDeploymentId!==void 0&&e.uint32(962).string(t.planModeSapAiCoreDeploymentId),t.planModeGroqModelId!==void 0&&e.uint32(970).string(t.planModeGroqModelId),t.planModeGroqModelInfo!==void 0&&Wt.encode(t.planModeGroqModelInfo,e.uint32(978).fork()).join(),t.planModeHuggingFaceModelId!==void 0&&e.uint32(986).string(t.planModeHuggingFaceModelId),t.planModeHuggingFaceModelInfo!==void 0&&Wt.encode(t.planModeHuggingFaceModelInfo,e.uint32(994).fork()).join(),t.planModeHuaweiCloudMaasModelId!==void 0&&e.uint32(1002).string(t.planModeHuaweiCloudMaasModelId),t.planModeHuaweiCloudMaasModelInfo!==void 0&&Wt.encode(t.planModeHuaweiCloudMaasModelInfo,e.uint32(1010).fork()).join(),t.planModeBasetenModelId!==void 0&&e.uint32(1018).string(t.planModeBasetenModelId),t.planModeBasetenModelInfo!==void 0&&Wt.encode(t.planModeBasetenModelInfo,e.uint32(1026).fork()).join(),t.planModeVercelAiGatewayModelId!==void 0&&e.uint32(1034).string(t.planModeVercelAiGatewayModelId),t.planModeVercelAiGatewayModelInfo!==void 0&&Wt.encode(t.planModeVercelAiGatewayModelInfo,e.uint32(1042).fork()).join(),t.planModeHicapModelId!==void 0&&e.uint32(1074).string(t.planModeHicapModelId),t.planModeHicapModelInfo!==void 0&&Wt.encode(t.planModeHicapModelInfo,e.uint32(1082).fork()).join(),t.planModeAihubmixModelId!==void 0&&e.uint32(1090).string(t.planModeAihubmixModelId),t.planModeAihubmixModelInfo!==void 0&&Ba.encode(t.planModeAihubmixModelInfo,e.uint32(1098).fork()).join(),t.planModeNousResearchModelId!==void 0&&e.uint32(1106).string(t.planModeNousResearchModelId),t.geminiPlanModeThinkingLevel!==void 0&&e.uint32(1114).string(t.geminiPlanModeThinkingLevel),t.planModeDiracModelId!==void 0&&e.uint32(1122).string(t.planModeDiracModelId),t.planModeDiracModelInfo!==void 0&&Wt.encode(t.planModeDiracModelInfo,e.uint32(1130).fork()).join(),t.actModeApiProvider!==void 0&&e.uint32(1600).int32(t.actModeApiProvider),t.actModeApiModelId!==void 0&&e.uint32(1610).string(t.actModeApiModelId),t.actModeThinkingBudgetTokens!==void 0&&e.uint32(1616).int64(t.actModeThinkingBudgetTokens),t.actModeReasoningEffort!==void 0&&e.uint32(1626).string(t.actModeReasoningEffort),t.actModeVsCodeLmModelSelector!==void 0&&du.encode(t.actModeVsCodeLmModelSelector,e.uint32(1634).fork()).join(),t.actModeAwsBedrockCustomSelected!==void 0&&e.uint32(1640).bool(t.actModeAwsBedrockCustomSelected),t.actModeAwsBedrockCustomModelBaseId!==void 0&&e.uint32(1650).string(t.actModeAwsBedrockCustomModelBaseId),t.actModeOpenRouterModelId!==void 0&&e.uint32(1658).string(t.actModeOpenRouterModelId),t.actModeOpenRouterModelInfo!==void 0&&Wt.encode(t.actModeOpenRouterModelInfo,e.uint32(1666).fork()).join(),t.actModeOpenAiModelId!==void 0&&e.uint32(1674).string(t.actModeOpenAiModelId),t.actModeOpenAiModelInfo!==void 0&&Ba.encode(t.actModeOpenAiModelInfo,e.uint32(1682).fork()).join(),t.actModeOllamaModelId!==void 0&&e.uint32(1690).string(t.actModeOllamaModelId),t.actModeLmStudioModelId!==void 0&&e.uint32(1698).string(t.actModeLmStudioModelId),t.actModeLiteLlmModelId!==void 0&&e.uint32(1706).string(t.actModeLiteLlmModelId),t.actModeLiteLlmModelInfo!==void 0&&sc.encode(t.actModeLiteLlmModelInfo,e.uint32(1714).fork()).join(),t.actModeRequestyModelId!==void 0&&e.uint32(1722).string(t.actModeRequestyModelId),t.actModeRequestyModelInfo!==void 0&&Wt.encode(t.actModeRequestyModelInfo,e.uint32(1730).fork()).join(),t.actModeTogetherModelId!==void 0&&e.uint32(1738).string(t.actModeTogetherModelId),t.actModeFireworksModelId!==void 0&&e.uint32(1746).string(t.actModeFireworksModelId),t.actModeSapAiCoreModelId!==void 0&&e.uint32(1754).string(t.actModeSapAiCoreModelId),t.actModeSapAiCoreDeploymentId!==void 0&&e.uint32(1762).string(t.actModeSapAiCoreDeploymentId),t.actModeGroqModelId!==void 0&&e.uint32(1770).string(t.actModeGroqModelId),t.actModeGroqModelInfo!==void 0&&Wt.encode(t.actModeGroqModelInfo,e.uint32(1778).fork()).join(),t.actModeHuggingFaceModelId!==void 0&&e.uint32(1786).string(t.actModeHuggingFaceModelId),t.actModeHuggingFaceModelInfo!==void 0&&Wt.encode(t.actModeHuggingFaceModelInfo,e.uint32(1794).fork()).join(),t.actModeHuaweiCloudMaasModelId!==void 0&&e.uint32(1802).string(t.actModeHuaweiCloudMaasModelId),t.actModeHuaweiCloudMaasModelInfo!==void 0&&Wt.encode(t.actModeHuaweiCloudMaasModelInfo,e.uint32(1810).fork()).join(),t.actModeBasetenModelId!==void 0&&e.uint32(1818).string(t.actModeBasetenModelId),t.actModeBasetenModelInfo!==void 0&&Wt.encode(t.actModeBasetenModelInfo,e.uint32(1826).fork()).join(),t.actModeVercelAiGatewayModelId!==void 0&&e.uint32(1834).string(t.actModeVercelAiGatewayModelId),t.actModeVercelAiGatewayModelInfo!==void 0&&Wt.encode(t.actModeVercelAiGatewayModelInfo,e.uint32(1842).fork()).join(),t.actModeHicapModelId!==void 0&&e.uint32(1874).string(t.actModeHicapModelId),t.actModeHicapModelInfo!==void 0&&Wt.encode(t.actModeHicapModelInfo,e.uint32(1882).fork()).join(),t.actModeAihubmixModelId!==void 0&&e.uint32(1890).string(t.actModeAihubmixModelId),t.actModeAihubmixModelInfo!==void 0&&Ba.encode(t.actModeAihubmixModelInfo,e.uint32(1898).fork()).join(),t.actModeNousResearchModelId!==void 0&&e.uint32(1906).string(t.actModeNousResearchModelId),t.geminiActModeThinkingLevel!==void 0&&e.uint32(1914).string(t.geminiActModeThinkingLevel),t.actModeDiracModelId!==void 0&&e.uint32(1922).string(t.actModeDiracModelId),t.actModeDiracModelInfo!==void 0&&Wt.encode(t.actModeDiracModelInfo,e.uint32(1930).fork()).join(),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=lGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.apiKey=r.string();continue}case 2:{if(o!==18)break;a.diracApiKey=r.string();continue}case 3:{if(o!==26)break;a.ulid=r.string();continue}case 4:{if(o!==34)break;a.liteLlmBaseUrl=r.string();continue}case 5:{if(o!==42)break;a.liteLlmApiKey=r.string();continue}case 6:{if(o!==48)break;a.liteLlmUsePromptCache=r.bool();continue}case 7:{if(o!==58)break;let n=Xnt.decode(r,r.uint32());n.value!==void 0&&(a.openAiHeaders[n.key]=n.value);continue}case 8:{if(o!==66)break;a.anthropicBaseUrl=r.string();continue}case 9:{if(o!==74)break;a.openRouterApiKey=r.string();continue}case 10:{if(o!==82)break;a.openRouterProviderSorting=r.string();continue}case 11:{if(o!==90)break;a.awsAccessKey=r.string();continue}case 12:{if(o!==98)break;a.awsSecretKey=r.string();continue}case 13:{if(o!==106)break;a.awsSessionToken=r.string();continue}case 14:{if(o!==114)break;a.awsRegion=r.string();continue}case 15:{if(o!==120)break;a.awsUseCrossRegionInference=r.bool();continue}case 16:{if(o!==128)break;a.awsBedrockUsePromptCache=r.bool();continue}case 17:{if(o!==136)break;a.awsUseProfile=r.bool();continue}case 18:{if(o!==146)break;a.awsProfile=r.string();continue}case 19:{if(o!==154)break;a.awsBedrockEndpoint=r.string();continue}case 20:{if(o!==162)break;a.claudeCodePath=r.string();continue}case 21:{if(o!==170)break;a.vertexProjectId=r.string();continue}case 22:{if(o!==178)break;a.vertexRegion=r.string();continue}case 23:{if(o!==186)break;a.openAiBaseUrl=r.string();continue}case 24:{if(o!==194)break;a.openAiApiKey=r.string();continue}case 25:{if(o!==202)break;a.ollamaBaseUrl=r.string();continue}case 26:{if(o!==210)break;a.ollamaApiOptionsCtxNum=r.string();continue}case 27:{if(o!==218)break;a.lmStudioBaseUrl=r.string();continue}case 28:{if(o!==226)break;a.geminiApiKey=r.string();continue}case 29:{if(o!==234)break;a.geminiBaseUrl=r.string();continue}case 30:{if(o!==242)break;a.openAiNativeApiKey=r.string();continue}case 31:{if(o!==250)break;a.deepSeekApiKey=r.string();continue}case 32:{if(o!==258)break;a.requestyApiKey=r.string();continue}case 33:{if(o!==266)break;a.requestyBaseUrl=r.string();continue}case 34:{if(o!==274)break;a.togetherApiKey=r.string();continue}case 35:{if(o!==282)break;a.fireworksApiKey=r.string();continue}case 36:{if(o!==288)break;a.fireworksModelMaxCompletionTokens=bg(r.int64());continue}case 37:{if(o!==296)break;a.fireworksModelMaxTokens=bg(r.int64());continue}case 38:{if(o!==306)break;a.qwenApiKey=r.string();continue}case 39:{if(o!==314)break;a.doubaoApiKey=r.string();continue}case 40:{if(o!==322)break;a.mistralApiKey=r.string();continue}case 41:{if(o!==330)break;a.azureApiVersion=r.string();continue}case 42:{if(o!==338)break;a.qwenApiLine=r.string();continue}case 43:{if(o!==346)break;a.nebiusApiKey=r.string();continue}case 44:{if(o!==354)break;a.asksageApiUrl=r.string();continue}case 45:{if(o!==362)break;a.asksageApiKey=r.string();continue}case 46:{if(o!==370)break;a.xaiApiKey=r.string();continue}case 47:{if(o!==378)break;a.sambanovaApiKey=r.string();continue}case 48:{if(o!==386)break;a.cerebrasApiKey=r.string();continue}case 49:{if(o!==392)break;a.requestTimeoutMs=bg(r.int64());continue}case 50:{if(o!==402)break;a.sapAiCoreClientId=r.string();continue}case 51:{if(o!==410)break;a.sapAiCoreClientSecret=r.string();continue}case 52:{if(o!==418)break;a.sapAiResourceGroup=r.string();continue}case 53:{if(o!==426)break;a.sapAiCoreTokenUrl=r.string();continue}case 54:{if(o!==434)break;a.sapAiCoreBaseUrl=r.string();continue}case 55:{if(o!==440)break;a.sapAiCoreUseOrchestrationMode=r.bool();continue}case 56:{if(o!==450)break;a.moonshotApiKey=r.string();continue}case 57:{if(o!==458)break;a.moonshotApiLine=r.string();continue}case 58:{if(o!==466)break;a.awsAuthentication=r.string();continue}case 59:{if(o!==474)break;a.awsBedrockApiKey=r.string();continue}case 61:{if(o!==490)break;a.groqApiKey=r.string();continue}case 62:{if(o!==498)break;a.huggingFaceApiKey=r.string();continue}case 63:{if(o!==506)break;a.huaweiCloudMaasApiKey=r.string();continue}case 64:{if(o!==514)break;a.basetenApiKey=r.string();continue}case 65:{if(o!==522)break;a.ollamaApiKey=r.string();continue}case 66:{if(o!==530)break;a.zaiApiKey=r.string();continue}case 67:{if(o!==538)break;a.zaiApiLine=r.string();continue}case 68:{if(o!==546)break;a.lmStudioMaxTokens=r.string();continue}case 69:{if(o!==554)break;a.vercelAiGatewayApiKey=r.string();continue}case 70:{if(o!==562)break;a.qwenCodeOauthPath=r.string();continue}case 71:{if(o!==570)break;a.difyApiKey=r.string();continue}case 72:{if(o!==578)break;a.difyBaseUrl=r.string();continue}case 77:{if(o!==616)break;a.awsUseGlobalInference=r.bool();continue}case 78:{if(o!==626)break;a.minimaxApiKey=r.string();continue}case 79:{if(o!==634)break;a.minimaxApiLine=r.string();continue}case 80:{if(o!==642)break;a.hicapModelId=r.string();continue}case 81:{if(o!==650)break;a.hicapApiKey=r.string();continue}case 82:{if(o!==658)break;a.aihubmixApiKey=r.string();continue}case 83:{if(o!==666)break;a.aihubmixBaseUrl=r.string();continue}case 84:{if(o!==674)break;a.aihubmixAppCode=r.string();continue}case 85:{if(o!==682)break;a.nousResearchApiKey=r.string();continue}case 86:{if(o!==688)break;a.azureIdentity=r.bool();continue}case 87:{if(o!==698)break;a.wandbApiKey=r.string();continue}case 100:{if(o!==800)break;a.planModeApiProvider=r.int32();continue}case 101:{if(o!==810)break;a.planModeApiModelId=r.string();continue}case 102:{if(o!==816)break;a.planModeThinkingBudgetTokens=bg(r.int64());continue}case 103:{if(o!==826)break;a.planModeReasoningEffort=r.string();continue}case 104:{if(o!==834)break;a.planModeVsCodeLmModelSelector=du.decode(r,r.uint32());continue}case 105:{if(o!==840)break;a.planModeAwsBedrockCustomSelected=r.bool();continue}case 106:{if(o!==850)break;a.planModeAwsBedrockCustomModelBaseId=r.string();continue}case 107:{if(o!==858)break;a.planModeOpenRouterModelId=r.string();continue}case 108:{if(o!==866)break;a.planModeOpenRouterModelInfo=Wt.decode(r,r.uint32());continue}case 109:{if(o!==874)break;a.planModeOpenAiModelId=r.string();continue}case 110:{if(o!==882)break;a.planModeOpenAiModelInfo=Ba.decode(r,r.uint32());continue}case 111:{if(o!==890)break;a.planModeOllamaModelId=r.string();continue}case 112:{if(o!==898)break;a.planModeLmStudioModelId=r.string();continue}case 113:{if(o!==906)break;a.planModeLiteLlmModelId=r.string();continue}case 114:{if(o!==914)break;a.planModeLiteLlmModelInfo=sc.decode(r,r.uint32());continue}case 115:{if(o!==922)break;a.planModeRequestyModelId=r.string();continue}case 116:{if(o!==930)break;a.planModeRequestyModelInfo=Wt.decode(r,r.uint32());continue}case 117:{if(o!==938)break;a.planModeTogetherModelId=r.string();continue}case 118:{if(o!==946)break;a.planModeFireworksModelId=r.string();continue}case 119:{if(o!==954)break;a.planModeSapAiCoreModelId=r.string();continue}case 120:{if(o!==962)break;a.planModeSapAiCoreDeploymentId=r.string();continue}case 121:{if(o!==970)break;a.planModeGroqModelId=r.string();continue}case 122:{if(o!==978)break;a.planModeGroqModelInfo=Wt.decode(r,r.uint32());continue}case 123:{if(o!==986)break;a.planModeHuggingFaceModelId=r.string();continue}case 124:{if(o!==994)break;a.planModeHuggingFaceModelInfo=Wt.decode(r,r.uint32());continue}case 125:{if(o!==1002)break;a.planModeHuaweiCloudMaasModelId=r.string();continue}case 126:{if(o!==1010)break;a.planModeHuaweiCloudMaasModelInfo=Wt.decode(r,r.uint32());continue}case 127:{if(o!==1018)break;a.planModeBasetenModelId=r.string();continue}case 128:{if(o!==1026)break;a.planModeBasetenModelInfo=Wt.decode(r,r.uint32());continue}case 129:{if(o!==1034)break;a.planModeVercelAiGatewayModelId=r.string();continue}case 130:{if(o!==1042)break;a.planModeVercelAiGatewayModelInfo=Wt.decode(r,r.uint32());continue}case 134:{if(o!==1074)break;a.planModeHicapModelId=r.string();continue}case 135:{if(o!==1082)break;a.planModeHicapModelInfo=Wt.decode(r,r.uint32());continue}case 136:{if(o!==1090)break;a.planModeAihubmixModelId=r.string();continue}case 137:{if(o!==1098)break;a.planModeAihubmixModelInfo=Ba.decode(r,r.uint32());continue}case 138:{if(o!==1106)break;a.planModeNousResearchModelId=r.string();continue}case 139:{if(o!==1114)break;a.geminiPlanModeThinkingLevel=r.string();continue}case 140:{if(o!==1122)break;a.planModeDiracModelId=r.string();continue}case 141:{if(o!==1130)break;a.planModeDiracModelInfo=Wt.decode(r,r.uint32());continue}case 200:{if(o!==1600)break;a.actModeApiProvider=r.int32();continue}case 201:{if(o!==1610)break;a.actModeApiModelId=r.string();continue}case 202:{if(o!==1616)break;a.actModeThinkingBudgetTokens=bg(r.int64());continue}case 203:{if(o!==1626)break;a.actModeReasoningEffort=r.string();continue}case 204:{if(o!==1634)break;a.actModeVsCodeLmModelSelector=du.decode(r,r.uint32());continue}case 205:{if(o!==1640)break;a.actModeAwsBedrockCustomSelected=r.bool();continue}case 206:{if(o!==1650)break;a.actModeAwsBedrockCustomModelBaseId=r.string();continue}case 207:{if(o!==1658)break;a.actModeOpenRouterModelId=r.string();continue}case 208:{if(o!==1666)break;a.actModeOpenRouterModelInfo=Wt.decode(r,r.uint32());continue}case 209:{if(o!==1674)break;a.actModeOpenAiModelId=r.string();continue}case 210:{if(o!==1682)break;a.actModeOpenAiModelInfo=Ba.decode(r,r.uint32());continue}case 211:{if(o!==1690)break;a.actModeOllamaModelId=r.string();continue}case 212:{if(o!==1698)break;a.actModeLmStudioModelId=r.string();continue}case 213:{if(o!==1706)break;a.actModeLiteLlmModelId=r.string();continue}case 214:{if(o!==1714)break;a.actModeLiteLlmModelInfo=sc.decode(r,r.uint32());continue}case 215:{if(o!==1722)break;a.actModeRequestyModelId=r.string();continue}case 216:{if(o!==1730)break;a.actModeRequestyModelInfo=Wt.decode(r,r.uint32());continue}case 217:{if(o!==1738)break;a.actModeTogetherModelId=r.string();continue}case 218:{if(o!==1746)break;a.actModeFireworksModelId=r.string();continue}case 219:{if(o!==1754)break;a.actModeSapAiCoreModelId=r.string();continue}case 220:{if(o!==1762)break;a.actModeSapAiCoreDeploymentId=r.string();continue}case 221:{if(o!==1770)break;a.actModeGroqModelId=r.string();continue}case 222:{if(o!==1778)break;a.actModeGroqModelInfo=Wt.decode(r,r.uint32());continue}case 223:{if(o!==1786)break;a.actModeHuggingFaceModelId=r.string();continue}case 224:{if(o!==1794)break;a.actModeHuggingFaceModelInfo=Wt.decode(r,r.uint32());continue}case 225:{if(o!==1802)break;a.actModeHuaweiCloudMaasModelId=r.string();continue}case 226:{if(o!==1810)break;a.actModeHuaweiCloudMaasModelInfo=Wt.decode(r,r.uint32());continue}case 227:{if(o!==1818)break;a.actModeBasetenModelId=r.string();continue}case 228:{if(o!==1826)break;a.actModeBasetenModelInfo=Wt.decode(r,r.uint32());continue}case 229:{if(o!==1834)break;a.actModeVercelAiGatewayModelId=r.string();continue}case 230:{if(o!==1842)break;a.actModeVercelAiGatewayModelInfo=Wt.decode(r,r.uint32());continue}case 234:{if(o!==1874)break;a.actModeHicapModelId=r.string();continue}case 235:{if(o!==1882)break;a.actModeHicapModelInfo=Wt.decode(r,r.uint32());continue}case 236:{if(o!==1890)break;a.actModeAihubmixModelId=r.string();continue}case 237:{if(o!==1898)break;a.actModeAihubmixModelInfo=Ba.decode(r,r.uint32());continue}case 238:{if(o!==1906)break;a.actModeNousResearchModelId=r.string();continue}case 239:{if(o!==1914)break;a.geminiActModeThinkingLevel=r.string();continue}case 240:{if(o!==1922)break;a.actModeDiracModelId=r.string();continue}case 241:{if(o!==1930)break;a.actModeDiracModelInfo=Wt.decode(r,r.uint32());continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{apiKey:Ke(t.apiKey)?globalThis.String(t.apiKey):Ke(t.api_key)?globalThis.String(t.api_key):void 0,diracApiKey:Ke(t.diracApiKey)?globalThis.String(t.diracApiKey):Ke(t.dirac_api_key)?globalThis.String(t.dirac_api_key):void 0,ulid:Ke(t.ulid)?globalThis.String(t.ulid):void 0,liteLlmBaseUrl:Ke(t.liteLlmBaseUrl)?globalThis.String(t.liteLlmBaseUrl):Ke(t.lite_llm_base_url)?globalThis.String(t.lite_llm_base_url):void 0,liteLlmApiKey:Ke(t.liteLlmApiKey)?globalThis.String(t.liteLlmApiKey):Ke(t.lite_llm_api_key)?globalThis.String(t.lite_llm_api_key):void 0,liteLlmUsePromptCache:Ke(t.liteLlmUsePromptCache)?globalThis.Boolean(t.liteLlmUsePromptCache):Ke(t.lite_llm_use_prompt_cache)?globalThis.Boolean(t.lite_llm_use_prompt_cache):void 0,openAiHeaders:Hpe(t.openAiHeaders)?globalThis.Object.entries(t.openAiHeaders).reduce((e,[r,i])=>(e[r]=globalThis.String(i),e),{}):Hpe(t.open_ai_headers)?globalThis.Object.entries(t.open_ai_headers).reduce((e,[r,i])=>(e[r]=globalThis.String(i),e),{}):{},anthropicBaseUrl:Ke(t.anthropicBaseUrl)?globalThis.String(t.anthropicBaseUrl):Ke(t.anthropic_base_url)?globalThis.String(t.anthropic_base_url):void 0,openRouterApiKey:Ke(t.openRouterApiKey)?globalThis.String(t.openRouterApiKey):Ke(t.open_router_api_key)?globalThis.String(t.open_router_api_key):void 0,openRouterProviderSorting:Ke(t.openRouterProviderSorting)?globalThis.String(t.openRouterProviderSorting):Ke(t.open_router_provider_sorting)?globalThis.String(t.open_router_provider_sorting):void 0,awsAccessKey:Ke(t.awsAccessKey)?globalThis.String(t.awsAccessKey):Ke(t.aws_access_key)?globalThis.String(t.aws_access_key):void 0,awsSecretKey:Ke(t.awsSecretKey)?globalThis.String(t.awsSecretKey):Ke(t.aws_secret_key)?globalThis.String(t.aws_secret_key):void 0,awsSessionToken:Ke(t.awsSessionToken)?globalThis.String(t.awsSessionToken):Ke(t.aws_session_token)?globalThis.String(t.aws_session_token):void 0,awsRegion:Ke(t.awsRegion)?globalThis.String(t.awsRegion):Ke(t.aws_region)?globalThis.String(t.aws_region):void 0,awsUseCrossRegionInference:Ke(t.awsUseCrossRegionInference)?globalThis.Boolean(t.awsUseCrossRegionInference):Ke(t.aws_use_cross_region_inference)?globalThis.Boolean(t.aws_use_cross_region_inference):void 0,awsBedrockUsePromptCache:Ke(t.awsBedrockUsePromptCache)?globalThis.Boolean(t.awsBedrockUsePromptCache):Ke(t.aws_bedrock_use_prompt_cache)?globalThis.Boolean(t.aws_bedrock_use_prompt_cache):void 0,awsUseProfile:Ke(t.awsUseProfile)?globalThis.Boolean(t.awsUseProfile):Ke(t.aws_use_profile)?globalThis.Boolean(t.aws_use_profile):void 0,awsProfile:Ke(t.awsProfile)?globalThis.String(t.awsProfile):Ke(t.aws_profile)?globalThis.String(t.aws_profile):void 0,awsBedrockEndpoint:Ke(t.awsBedrockEndpoint)?globalThis.String(t.awsBedrockEndpoint):Ke(t.aws_bedrock_endpoint)?globalThis.String(t.aws_bedrock_endpoint):void 0,claudeCodePath:Ke(t.claudeCodePath)?globalThis.String(t.claudeCodePath):Ke(t.claude_code_path)?globalThis.String(t.claude_code_path):void 0,vertexProjectId:Ke(t.vertexProjectId)?globalThis.String(t.vertexProjectId):Ke(t.vertex_project_id)?globalThis.String(t.vertex_project_id):void 0,vertexRegion:Ke(t.vertexRegion)?globalThis.String(t.vertexRegion):Ke(t.vertex_region)?globalThis.String(t.vertex_region):void 0,openAiBaseUrl:Ke(t.openAiBaseUrl)?globalThis.String(t.openAiBaseUrl):Ke(t.open_ai_base_url)?globalThis.String(t.open_ai_base_url):void 0,openAiApiKey:Ke(t.openAiApiKey)?globalThis.String(t.openAiApiKey):Ke(t.open_ai_api_key)?globalThis.String(t.open_ai_api_key):void 0,ollamaBaseUrl:Ke(t.ollamaBaseUrl)?globalThis.String(t.ollamaBaseUrl):Ke(t.ollama_base_url)?globalThis.String(t.ollama_base_url):void 0,ollamaApiOptionsCtxNum:Ke(t.ollamaApiOptionsCtxNum)?globalThis.String(t.ollamaApiOptionsCtxNum):Ke(t.ollama_api_options_ctx_num)?globalThis.String(t.ollama_api_options_ctx_num):void 0,lmStudioBaseUrl:Ke(t.lmStudioBaseUrl)?globalThis.String(t.lmStudioBaseUrl):Ke(t.lm_studio_base_url)?globalThis.String(t.lm_studio_base_url):void 0,geminiApiKey:Ke(t.geminiApiKey)?globalThis.String(t.geminiApiKey):Ke(t.gemini_api_key)?globalThis.String(t.gemini_api_key):void 0,geminiBaseUrl:Ke(t.geminiBaseUrl)?globalThis.String(t.geminiBaseUrl):Ke(t.gemini_base_url)?globalThis.String(t.gemini_base_url):void 0,openAiNativeApiKey:Ke(t.openAiNativeApiKey)?globalThis.String(t.openAiNativeApiKey):Ke(t.open_ai_native_api_key)?globalThis.String(t.open_ai_native_api_key):void 0,deepSeekApiKey:Ke(t.deepSeekApiKey)?globalThis.String(t.deepSeekApiKey):Ke(t.deep_seek_api_key)?globalThis.String(t.deep_seek_api_key):void 0,requestyApiKey:Ke(t.requestyApiKey)?globalThis.String(t.requestyApiKey):Ke(t.requesty_api_key)?globalThis.String(t.requesty_api_key):void 0,requestyBaseUrl:Ke(t.requestyBaseUrl)?globalThis.String(t.requestyBaseUrl):Ke(t.requesty_base_url)?globalThis.String(t.requesty_base_url):void 0,togetherApiKey:Ke(t.togetherApiKey)?globalThis.String(t.togetherApiKey):Ke(t.together_api_key)?globalThis.String(t.together_api_key):void 0,fireworksApiKey:Ke(t.fireworksApiKey)?globalThis.String(t.fireworksApiKey):Ke(t.fireworks_api_key)?globalThis.String(t.fireworks_api_key):void 0,fireworksModelMaxCompletionTokens:Ke(t.fireworksModelMaxCompletionTokens)?globalThis.Number(t.fireworksModelMaxCompletionTokens):Ke(t.fireworks_model_max_completion_tokens)?globalThis.Number(t.fireworks_model_max_completion_tokens):void 0,fireworksModelMaxTokens:Ke(t.fireworksModelMaxTokens)?globalThis.Number(t.fireworksModelMaxTokens):Ke(t.fireworks_model_max_tokens)?globalThis.Number(t.fireworks_model_max_tokens):void 0,qwenApiKey:Ke(t.qwenApiKey)?globalThis.String(t.qwenApiKey):Ke(t.qwen_api_key)?globalThis.String(t.qwen_api_key):void 0,doubaoApiKey:Ke(t.doubaoApiKey)?globalThis.String(t.doubaoApiKey):Ke(t.doubao_api_key)?globalThis.String(t.doubao_api_key):void 0,mistralApiKey:Ke(t.mistralApiKey)?globalThis.String(t.mistralApiKey):Ke(t.mistral_api_key)?globalThis.String(t.mistral_api_key):void 0,azureApiVersion:Ke(t.azureApiVersion)?globalThis.String(t.azureApiVersion):Ke(t.azure_api_version)?globalThis.String(t.azure_api_version):void 0,qwenApiLine:Ke(t.qwenApiLine)?globalThis.String(t.qwenApiLine):Ke(t.qwen_api_line)?globalThis.String(t.qwen_api_line):void 0,nebiusApiKey:Ke(t.nebiusApiKey)?globalThis.String(t.nebiusApiKey):Ke(t.nebius_api_key)?globalThis.String(t.nebius_api_key):void 0,asksageApiUrl:Ke(t.asksageApiUrl)?globalThis.String(t.asksageApiUrl):Ke(t.asksage_api_url)?globalThis.String(t.asksage_api_url):void 0,asksageApiKey:Ke(t.asksageApiKey)?globalThis.String(t.asksageApiKey):Ke(t.asksage_api_key)?globalThis.String(t.asksage_api_key):void 0,xaiApiKey:Ke(t.xaiApiKey)?globalThis.String(t.xaiApiKey):Ke(t.xai_api_key)?globalThis.String(t.xai_api_key):void 0,sambanovaApiKey:Ke(t.sambanovaApiKey)?globalThis.String(t.sambanovaApiKey):Ke(t.sambanova_api_key)?globalThis.String(t.sambanova_api_key):void 0,cerebrasApiKey:Ke(t.cerebrasApiKey)?globalThis.String(t.cerebrasApiKey):Ke(t.cerebras_api_key)?globalThis.String(t.cerebras_api_key):void 0,requestTimeoutMs:Ke(t.requestTimeoutMs)?globalThis.Number(t.requestTimeoutMs):Ke(t.request_timeout_ms)?globalThis.Number(t.request_timeout_ms):void 0,sapAiCoreClientId:Ke(t.sapAiCoreClientId)?globalThis.String(t.sapAiCoreClientId):Ke(t.sap_ai_core_client_id)?globalThis.String(t.sap_ai_core_client_id):void 0,sapAiCoreClientSecret:Ke(t.sapAiCoreClientSecret)?globalThis.String(t.sapAiCoreClientSecret):Ke(t.sap_ai_core_client_secret)?globalThis.String(t.sap_ai_core_client_secret):void 0,sapAiResourceGroup:Ke(t.sapAiResourceGroup)?globalThis.String(t.sapAiResourceGroup):Ke(t.sap_ai_resource_group)?globalThis.String(t.sap_ai_resource_group):void 0,sapAiCoreTokenUrl:Ke(t.sapAiCoreTokenUrl)?globalThis.String(t.sapAiCoreTokenUrl):Ke(t.sap_ai_core_token_url)?globalThis.String(t.sap_ai_core_token_url):void 0,sapAiCoreBaseUrl:Ke(t.sapAiCoreBaseUrl)?globalThis.String(t.sapAiCoreBaseUrl):Ke(t.sap_ai_core_base_url)?globalThis.String(t.sap_ai_core_base_url):void 0,sapAiCoreUseOrchestrationMode:Ke(t.sapAiCoreUseOrchestrationMode)?globalThis.Boolean(t.sapAiCoreUseOrchestrationMode):Ke(t.sap_ai_core_use_orchestration_mode)?globalThis.Boolean(t.sap_ai_core_use_orchestration_mode):void 0,moonshotApiKey:Ke(t.moonshotApiKey)?globalThis.String(t.moonshotApiKey):Ke(t.moonshot_api_key)?globalThis.String(t.moonshot_api_key):void 0,moonshotApiLine:Ke(t.moonshotApiLine)?globalThis.String(t.moonshotApiLine):Ke(t.moonshot_api_line)?globalThis.String(t.moonshot_api_line):void 0,awsAuthentication:Ke(t.awsAuthentication)?globalThis.String(t.awsAuthentication):Ke(t.aws_authentication)?globalThis.String(t.aws_authentication):void 0,awsBedrockApiKey:Ke(t.awsBedrockApiKey)?globalThis.String(t.awsBedrockApiKey):Ke(t.aws_bedrock_api_key)?globalThis.String(t.aws_bedrock_api_key):void 0,groqApiKey:Ke(t.groqApiKey)?globalThis.String(t.groqApiKey):Ke(t.groq_api_key)?globalThis.String(t.groq_api_key):void 0,huggingFaceApiKey:Ke(t.huggingFaceApiKey)?globalThis.String(t.huggingFaceApiKey):Ke(t.hugging_face_api_key)?globalThis.String(t.hugging_face_api_key):void 0,huaweiCloudMaasApiKey:Ke(t.huaweiCloudMaasApiKey)?globalThis.String(t.huaweiCloudMaasApiKey):Ke(t.huawei_cloud_maas_api_key)?globalThis.String(t.huawei_cloud_maas_api_key):void 0,basetenApiKey:Ke(t.basetenApiKey)?globalThis.String(t.basetenApiKey):Ke(t.baseten_api_key)?globalThis.String(t.baseten_api_key):void 0,ollamaApiKey:Ke(t.ollamaApiKey)?globalThis.String(t.ollamaApiKey):Ke(t.ollama_api_key)?globalThis.String(t.ollama_api_key):void 0,zaiApiKey:Ke(t.zaiApiKey)?globalThis.String(t.zaiApiKey):Ke(t.zai_api_key)?globalThis.String(t.zai_api_key):void 0,zaiApiLine:Ke(t.zaiApiLine)?globalThis.String(t.zaiApiLine):Ke(t.zai_api_line)?globalThis.String(t.zai_api_line):void 0,lmStudioMaxTokens:Ke(t.lmStudioMaxTokens)?globalThis.String(t.lmStudioMaxTokens):Ke(t.lm_studio_max_tokens)?globalThis.String(t.lm_studio_max_tokens):void 0,vercelAiGatewayApiKey:Ke(t.vercelAiGatewayApiKey)?globalThis.String(t.vercelAiGatewayApiKey):Ke(t.vercel_ai_gateway_api_key)?globalThis.String(t.vercel_ai_gateway_api_key):void 0,qwenCodeOauthPath:Ke(t.qwenCodeOauthPath)?globalThis.String(t.qwenCodeOauthPath):Ke(t.qwen_code_oauth_path)?globalThis.String(t.qwen_code_oauth_path):void 0,difyApiKey:Ke(t.difyApiKey)?globalThis.String(t.difyApiKey):Ke(t.dify_api_key)?globalThis.String(t.dify_api_key):void 0,difyBaseUrl:Ke(t.difyBaseUrl)?globalThis.String(t.difyBaseUrl):Ke(t.dify_base_url)?globalThis.String(t.dify_base_url):void 0,awsUseGlobalInference:Ke(t.awsUseGlobalInference)?globalThis.Boolean(t.awsUseGlobalInference):Ke(t.aws_use_global_inference)?globalThis.Boolean(t.aws_use_global_inference):void 0,minimaxApiKey:Ke(t.minimaxApiKey)?globalThis.String(t.minimaxApiKey):Ke(t.minimax_api_key)?globalThis.String(t.minimax_api_key):void 0,minimaxApiLine:Ke(t.minimaxApiLine)?globalThis.String(t.minimaxApiLine):Ke(t.minimax_api_line)?globalThis.String(t.minimax_api_line):void 0,hicapModelId:Ke(t.hicapModelId)?globalThis.String(t.hicapModelId):Ke(t.hicap_model_id)?globalThis.String(t.hicap_model_id):void 0,hicapApiKey:Ke(t.hicapApiKey)?globalThis.String(t.hicapApiKey):Ke(t.hicap_api_key)?globalThis.String(t.hicap_api_key):void 0,aihubmixApiKey:Ke(t.aihubmixApiKey)?globalThis.String(t.aihubmixApiKey):Ke(t.aihubmix_api_key)?globalThis.String(t.aihubmix_api_key):void 0,aihubmixBaseUrl:Ke(t.aihubmixBaseUrl)?globalThis.String(t.aihubmixBaseUrl):Ke(t.aihubmix_base_url)?globalThis.String(t.aihubmix_base_url):void 0,aihubmixAppCode:Ke(t.aihubmixAppCode)?globalThis.String(t.aihubmixAppCode):Ke(t.aihubmix_app_code)?globalThis.String(t.aihubmix_app_code):void 0,nousResearchApiKey:Ke(t.nousResearchApiKey)?globalThis.String(t.nousResearchApiKey):Ke(t.nous_research_api_key)?globalThis.String(t.nous_research_api_key):void 0,azureIdentity:Ke(t.azureIdentity)?globalThis.Boolean(t.azureIdentity):Ke(t.azure_identity)?globalThis.Boolean(t.azure_identity):void 0,wandbApiKey:Ke(t.wandbApiKey)?globalThis.String(t.wandbApiKey):Ke(t.wandb_api_key)?globalThis.String(t.wandb_api_key):void 0,planModeApiProvider:Ke(t.planModeApiProvider)?RI(t.planModeApiProvider):Ke(t.plan_mode_api_provider)?RI(t.plan_mode_api_provider):void 0,planModeApiModelId:Ke(t.planModeApiModelId)?globalThis.String(t.planModeApiModelId):Ke(t.plan_mode_api_model_id)?globalThis.String(t.plan_mode_api_model_id):void 0,planModeThinkingBudgetTokens:Ke(t.planModeThinkingBudgetTokens)?globalThis.Number(t.planModeThinkingBudgetTokens):Ke(t.plan_mode_thinking_budget_tokens)?globalThis.Number(t.plan_mode_thinking_budget_tokens):void 0,planModeReasoningEffort:Ke(t.planModeReasoningEffort)?globalThis.String(t.planModeReasoningEffort):Ke(t.plan_mode_reasoning_effort)?globalThis.String(t.plan_mode_reasoning_effort):void 0,planModeVsCodeLmModelSelector:Ke(t.planModeVsCodeLmModelSelector)?du.fromJSON(t.planModeVsCodeLmModelSelector):Ke(t.plan_mode_vs_code_lm_model_selector)?du.fromJSON(t.plan_mode_vs_code_lm_model_selector):void 0,planModeAwsBedrockCustomSelected:Ke(t.planModeAwsBedrockCustomSelected)?globalThis.Boolean(t.planModeAwsBedrockCustomSelected):Ke(t.plan_mode_aws_bedrock_custom_selected)?globalThis.Boolean(t.plan_mode_aws_bedrock_custom_selected):void 0,planModeAwsBedrockCustomModelBaseId:Ke(t.planModeAwsBedrockCustomModelBaseId)?globalThis.String(t.planModeAwsBedrockCustomModelBaseId):Ke(t.plan_mode_aws_bedrock_custom_model_base_id)?globalThis.String(t.plan_mode_aws_bedrock_custom_model_base_id):void 0,planModeOpenRouterModelId:Ke(t.planModeOpenRouterModelId)?globalThis.String(t.planModeOpenRouterModelId):Ke(t.plan_mode_open_router_model_id)?globalThis.String(t.plan_mode_open_router_model_id):void 0,planModeOpenRouterModelInfo:Ke(t.planModeOpenRouterModelInfo)?Wt.fromJSON(t.planModeOpenRouterModelInfo):Ke(t.plan_mode_open_router_model_info)?Wt.fromJSON(t.plan_mode_open_router_model_info):void 0,planModeOpenAiModelId:Ke(t.planModeOpenAiModelId)?globalThis.String(t.planModeOpenAiModelId):Ke(t.plan_mode_open_ai_model_id)?globalThis.String(t.plan_mode_open_ai_model_id):void 0,planModeOpenAiModelInfo:Ke(t.planModeOpenAiModelInfo)?Ba.fromJSON(t.planModeOpenAiModelInfo):Ke(t.plan_mode_open_ai_model_info)?Ba.fromJSON(t.plan_mode_open_ai_model_info):void 0,planModeOllamaModelId:Ke(t.planModeOllamaModelId)?globalThis.String(t.planModeOllamaModelId):Ke(t.plan_mode_ollama_model_id)?globalThis.String(t.plan_mode_ollama_model_id):void 0,planModeLmStudioModelId:Ke(t.planModeLmStudioModelId)?globalThis.String(t.planModeLmStudioModelId):Ke(t.plan_mode_lm_studio_model_id)?globalThis.String(t.plan_mode_lm_studio_model_id):void 0,planModeLiteLlmModelId:Ke(t.planModeLiteLlmModelId)?globalThis.String(t.planModeLiteLlmModelId):Ke(t.plan_mode_lite_llm_model_id)?globalThis.String(t.plan_mode_lite_llm_model_id):void 0,planModeLiteLlmModelInfo:Ke(t.planModeLiteLlmModelInfo)?sc.fromJSON(t.planModeLiteLlmModelInfo):Ke(t.plan_mode_lite_llm_model_info)?sc.fromJSON(t.plan_mode_lite_llm_model_info):void 0,planModeRequestyModelId:Ke(t.planModeRequestyModelId)?globalThis.String(t.planModeRequestyModelId):Ke(t.plan_mode_requesty_model_id)?globalThis.String(t.plan_mode_requesty_model_id):void 0,planModeRequestyModelInfo:Ke(t.planModeRequestyModelInfo)?Wt.fromJSON(t.planModeRequestyModelInfo):Ke(t.plan_mode_requesty_model_info)?Wt.fromJSON(t.plan_mode_requesty_model_info):void 0,planModeTogetherModelId:Ke(t.planModeTogetherModelId)?globalThis.String(t.planModeTogetherModelId):Ke(t.plan_mode_together_model_id)?globalThis.String(t.plan_mode_together_model_id):void 0,planModeFireworksModelId:Ke(t.planModeFireworksModelId)?globalThis.String(t.planModeFireworksModelId):Ke(t.plan_mode_fireworks_model_id)?globalThis.String(t.plan_mode_fireworks_model_id):void 0,planModeSapAiCoreModelId:Ke(t.planModeSapAiCoreModelId)?globalThis.String(t.planModeSapAiCoreModelId):Ke(t.plan_mode_sap_ai_core_model_id)?globalThis.String(t.plan_mode_sap_ai_core_model_id):void 0,planModeSapAiCoreDeploymentId:Ke(t.planModeSapAiCoreDeploymentId)?globalThis.String(t.planModeSapAiCoreDeploymentId):Ke(t.plan_mode_sap_ai_core_deployment_id)?globalThis.String(t.plan_mode_sap_ai_core_deployment_id):void 0,planModeGroqModelId:Ke(t.planModeGroqModelId)?globalThis.String(t.planModeGroqModelId):Ke(t.plan_mode_groq_model_id)?globalThis.String(t.plan_mode_groq_model_id):void 0,planModeGroqModelInfo:Ke(t.planModeGroqModelInfo)?Wt.fromJSON(t.planModeGroqModelInfo):Ke(t.plan_mode_groq_model_info)?Wt.fromJSON(t.plan_mode_groq_model_info):void 0,planModeHuggingFaceModelId:Ke(t.planModeHuggingFaceModelId)?globalThis.String(t.planModeHuggingFaceModelId):Ke(t.plan_mode_hugging_face_model_id)?globalThis.String(t.plan_mode_hugging_face_model_id):void 0,planModeHuggingFaceModelInfo:Ke(t.planModeHuggingFaceModelInfo)?Wt.fromJSON(t.planModeHuggingFaceModelInfo):Ke(t.plan_mode_hugging_face_model_info)?Wt.fromJSON(t.plan_mode_hugging_face_model_info):void 0,planModeHuaweiCloudMaasModelId:Ke(t.planModeHuaweiCloudMaasModelId)?globalThis.String(t.planModeHuaweiCloudMaasModelId):Ke(t.plan_mode_huawei_cloud_maas_model_id)?globalThis.String(t.plan_mode_huawei_cloud_maas_model_id):void 0,planModeHuaweiCloudMaasModelInfo:Ke(t.planModeHuaweiCloudMaasModelInfo)?Wt.fromJSON(t.planModeHuaweiCloudMaasModelInfo):Ke(t.plan_mode_huawei_cloud_maas_model_info)?Wt.fromJSON(t.plan_mode_huawei_cloud_maas_model_info):void 0,planModeBasetenModelId:Ke(t.planModeBasetenModelId)?globalThis.String(t.planModeBasetenModelId):Ke(t.plan_mode_baseten_model_id)?globalThis.String(t.plan_mode_baseten_model_id):void 0,planModeBasetenModelInfo:Ke(t.planModeBasetenModelInfo)?Wt.fromJSON(t.planModeBasetenModelInfo):Ke(t.plan_mode_baseten_model_info)?Wt.fromJSON(t.plan_mode_baseten_model_info):void 0,planModeVercelAiGatewayModelId:Ke(t.planModeVercelAiGatewayModelId)?globalThis.String(t.planModeVercelAiGatewayModelId):Ke(t.plan_mode_vercel_ai_gateway_model_id)?globalThis.String(t.plan_mode_vercel_ai_gateway_model_id):void 0,planModeVercelAiGatewayModelInfo:Ke(t.planModeVercelAiGatewayModelInfo)?Wt.fromJSON(t.planModeVercelAiGatewayModelInfo):Ke(t.plan_mode_vercel_ai_gateway_model_info)?Wt.fromJSON(t.plan_mode_vercel_ai_gateway_model_info):void 0,planModeHicapModelId:Ke(t.planModeHicapModelId)?globalThis.String(t.planModeHicapModelId):Ke(t.plan_mode_hicap_model_id)?globalThis.String(t.plan_mode_hicap_model_id):void 0,planModeHicapModelInfo:Ke(t.planModeHicapModelInfo)?Wt.fromJSON(t.planModeHicapModelInfo):Ke(t.plan_mode_hicap_model_info)?Wt.fromJSON(t.plan_mode_hicap_model_info):void 0,planModeAihubmixModelId:Ke(t.planModeAihubmixModelId)?globalThis.String(t.planModeAihubmixModelId):Ke(t.plan_mode_aihubmix_model_id)?globalThis.String(t.plan_mode_aihubmix_model_id):void 0,planModeAihubmixModelInfo:Ke(t.planModeAihubmixModelInfo)?Ba.fromJSON(t.planModeAihubmixModelInfo):Ke(t.plan_mode_aihubmix_model_info)?Ba.fromJSON(t.plan_mode_aihubmix_model_info):void 0,planModeNousResearchModelId:Ke(t.planModeNousResearchModelId)?globalThis.String(t.planModeNousResearchModelId):Ke(t.plan_mode_nous_research_model_id)?globalThis.String(t.plan_mode_nous_research_model_id):void 0,geminiPlanModeThinkingLevel:Ke(t.geminiPlanModeThinkingLevel)?globalThis.String(t.geminiPlanModeThinkingLevel):Ke(t.gemini_plan_mode_thinking_level)?globalThis.String(t.gemini_plan_mode_thinking_level):void 0,planModeDiracModelId:Ke(t.planModeDiracModelId)?globalThis.String(t.planModeDiracModelId):Ke(t.plan_mode_dirac_model_id)?globalThis.String(t.plan_mode_dirac_model_id):void 0,planModeDiracModelInfo:Ke(t.planModeDiracModelInfo)?Wt.fromJSON(t.planModeDiracModelInfo):Ke(t.plan_mode_dirac_model_info)?Wt.fromJSON(t.plan_mode_dirac_model_info):void 0,actModeApiProvider:Ke(t.actModeApiProvider)?RI(t.actModeApiProvider):Ke(t.act_mode_api_provider)?RI(t.act_mode_api_provider):void 0,actModeApiModelId:Ke(t.actModeApiModelId)?globalThis.String(t.actModeApiModelId):Ke(t.act_mode_api_model_id)?globalThis.String(t.act_mode_api_model_id):void 0,actModeThinkingBudgetTokens:Ke(t.actModeThinkingBudgetTokens)?globalThis.Number(t.actModeThinkingBudgetTokens):Ke(t.act_mode_thinking_budget_tokens)?globalThis.Number(t.act_mode_thinking_budget_tokens):void 0,actModeReasoningEffort:Ke(t.actModeReasoningEffort)?globalThis.String(t.actModeReasoningEffort):Ke(t.act_mode_reasoning_effort)?globalThis.String(t.act_mode_reasoning_effort):void 0,actModeVsCodeLmModelSelector:Ke(t.actModeVsCodeLmModelSelector)?du.fromJSON(t.actModeVsCodeLmModelSelector):Ke(t.act_mode_vs_code_lm_model_selector)?du.fromJSON(t.act_mode_vs_code_lm_model_selector):void 0,actModeAwsBedrockCustomSelected:Ke(t.actModeAwsBedrockCustomSelected)?globalThis.Boolean(t.actModeAwsBedrockCustomSelected):Ke(t.act_mode_aws_bedrock_custom_selected)?globalThis.Boolean(t.act_mode_aws_bedrock_custom_selected):void 0,actModeAwsBedrockCustomModelBaseId:Ke(t.actModeAwsBedrockCustomModelBaseId)?globalThis.String(t.actModeAwsBedrockCustomModelBaseId):Ke(t.act_mode_aws_bedrock_custom_model_base_id)?globalThis.String(t.act_mode_aws_bedrock_custom_model_base_id):void 0,actModeOpenRouterModelId:Ke(t.actModeOpenRouterModelId)?globalThis.String(t.actModeOpenRouterModelId):Ke(t.act_mode_open_router_model_id)?globalThis.String(t.act_mode_open_router_model_id):void 0,actModeOpenRouterModelInfo:Ke(t.actModeOpenRouterModelInfo)?Wt.fromJSON(t.actModeOpenRouterModelInfo):Ke(t.act_mode_open_router_model_info)?Wt.fromJSON(t.act_mode_open_router_model_info):void 0,actModeOpenAiModelId:Ke(t.actModeOpenAiModelId)?globalThis.String(t.actModeOpenAiModelId):Ke(t.act_mode_open_ai_model_id)?globalThis.String(t.act_mode_open_ai_model_id):void 0,actModeOpenAiModelInfo:Ke(t.actModeOpenAiModelInfo)?Ba.fromJSON(t.actModeOpenAiModelInfo):Ke(t.act_mode_open_ai_model_info)?Ba.fromJSON(t.act_mode_open_ai_model_info):void 0,actModeOllamaModelId:Ke(t.actModeOllamaModelId)?globalThis.String(t.actModeOllamaModelId):Ke(t.act_mode_ollama_model_id)?globalThis.String(t.act_mode_ollama_model_id):void 0,actModeLmStudioModelId:Ke(t.actModeLmStudioModelId)?globalThis.String(t.actModeLmStudioModelId):Ke(t.act_mode_lm_studio_model_id)?globalThis.String(t.act_mode_lm_studio_model_id):void 0,actModeLiteLlmModelId:Ke(t.actModeLiteLlmModelId)?globalThis.String(t.actModeLiteLlmModelId):Ke(t.act_mode_lite_llm_model_id)?globalThis.String(t.act_mode_lite_llm_model_id):void 0,actModeLiteLlmModelInfo:Ke(t.actModeLiteLlmModelInfo)?sc.fromJSON(t.actModeLiteLlmModelInfo):Ke(t.act_mode_lite_llm_model_info)?sc.fromJSON(t.act_mode_lite_llm_model_info):void 0,actModeRequestyModelId:Ke(t.actModeRequestyModelId)?globalThis.String(t.actModeRequestyModelId):Ke(t.act_mode_requesty_model_id)?globalThis.String(t.act_mode_requesty_model_id):void 0,actModeRequestyModelInfo:Ke(t.actModeRequestyModelInfo)?Wt.fromJSON(t.actModeRequestyModelInfo):Ke(t.act_mode_requesty_model_info)?Wt.fromJSON(t.act_mode_requesty_model_info):void 0,actModeTogetherModelId:Ke(t.actModeTogetherModelId)?globalThis.String(t.actModeTogetherModelId):Ke(t.act_mode_together_model_id)?globalThis.String(t.act_mode_together_model_id):void 0,actModeFireworksModelId:Ke(t.actModeFireworksModelId)?globalThis.String(t.actModeFireworksModelId):Ke(t.act_mode_fireworks_model_id)?globalThis.String(t.act_mode_fireworks_model_id):void 0,actModeSapAiCoreModelId:Ke(t.actModeSapAiCoreModelId)?globalThis.String(t.actModeSapAiCoreModelId):Ke(t.act_mode_sap_ai_core_model_id)?globalThis.String(t.act_mode_sap_ai_core_model_id):void 0,actModeSapAiCoreDeploymentId:Ke(t.actModeSapAiCoreDeploymentId)?globalThis.String(t.actModeSapAiCoreDeploymentId):Ke(t.act_mode_sap_ai_core_deployment_id)?globalThis.String(t.act_mode_sap_ai_core_deployment_id):void 0,actModeGroqModelId:Ke(t.actModeGroqModelId)?globalThis.String(t.actModeGroqModelId):Ke(t.act_mode_groq_model_id)?globalThis.String(t.act_mode_groq_model_id):void 0,actModeGroqModelInfo:Ke(t.actModeGroqModelInfo)?Wt.fromJSON(t.actModeGroqModelInfo):Ke(t.act_mode_groq_model_info)?Wt.fromJSON(t.act_mode_groq_model_info):void 0,actModeHuggingFaceModelId:Ke(t.actModeHuggingFaceModelId)?globalThis.String(t.actModeHuggingFaceModelId):Ke(t.act_mode_hugging_face_model_id)?globalThis.String(t.act_mode_hugging_face_model_id):void 0,actModeHuggingFaceModelInfo:Ke(t.actModeHuggingFaceModelInfo)?Wt.fromJSON(t.actModeHuggingFaceModelInfo):Ke(t.act_mode_hugging_face_model_info)?Wt.fromJSON(t.act_mode_hugging_face_model_info):void 0,actModeHuaweiCloudMaasModelId:Ke(t.actModeHuaweiCloudMaasModelId)?globalThis.String(t.actModeHuaweiCloudMaasModelId):Ke(t.act_mode_huawei_cloud_maas_model_id)?globalThis.String(t.act_mode_huawei_cloud_maas_model_id):void 0,actModeHuaweiCloudMaasModelInfo:Ke(t.actModeHuaweiCloudMaasModelInfo)?Wt.fromJSON(t.actModeHuaweiCloudMaasModelInfo):Ke(t.act_mode_huawei_cloud_maas_model_info)?Wt.fromJSON(t.act_mode_huawei_cloud_maas_model_info):void 0,actModeBasetenModelId:Ke(t.actModeBasetenModelId)?globalThis.String(t.actModeBasetenModelId):Ke(t.act_mode_baseten_model_id)?globalThis.String(t.act_mode_baseten_model_id):void 0,actModeBasetenModelInfo:Ke(t.actModeBasetenModelInfo)?Wt.fromJSON(t.actModeBasetenModelInfo):Ke(t.act_mode_baseten_model_info)?Wt.fromJSON(t.act_mode_baseten_model_info):void 0,actModeVercelAiGatewayModelId:Ke(t.actModeVercelAiGatewayModelId)?globalThis.String(t.actModeVercelAiGatewayModelId):Ke(t.act_mode_vercel_ai_gateway_model_id)?globalThis.String(t.act_mode_vercel_ai_gateway_model_id):void 0,actModeVercelAiGatewayModelInfo:Ke(t.actModeVercelAiGatewayModelInfo)?Wt.fromJSON(t.actModeVercelAiGatewayModelInfo):Ke(t.act_mode_vercel_ai_gateway_model_info)?Wt.fromJSON(t.act_mode_vercel_ai_gateway_model_info):void 0,actModeHicapModelId:Ke(t.actModeHicapModelId)?globalThis.String(t.actModeHicapModelId):Ke(t.act_mode_hicap_model_id)?globalThis.String(t.act_mode_hicap_model_id):void 0,actModeHicapModelInfo:Ke(t.actModeHicapModelInfo)?Wt.fromJSON(t.actModeHicapModelInfo):Ke(t.act_mode_hicap_model_info)?Wt.fromJSON(t.act_mode_hicap_model_info):void 0,actModeAihubmixModelId:Ke(t.actModeAihubmixModelId)?globalThis.String(t.actModeAihubmixModelId):Ke(t.act_mode_aihubmix_model_id)?globalThis.String(t.act_mode_aihubmix_model_id):void 0,actModeAihubmixModelInfo:Ke(t.actModeAihubmixModelInfo)?Ba.fromJSON(t.actModeAihubmixModelInfo):Ke(t.act_mode_aihubmix_model_info)?Ba.fromJSON(t.act_mode_aihubmix_model_info):void 0,actModeNousResearchModelId:Ke(t.actModeNousResearchModelId)?globalThis.String(t.actModeNousResearchModelId):Ke(t.act_mode_nous_research_model_id)?globalThis.String(t.act_mode_nous_research_model_id):void 0,geminiActModeThinkingLevel:Ke(t.geminiActModeThinkingLevel)?globalThis.String(t.geminiActModeThinkingLevel):Ke(t.gemini_act_mode_thinking_level)?globalThis.String(t.gemini_act_mode_thinking_level):void 0,actModeDiracModelId:Ke(t.actModeDiracModelId)?globalThis.String(t.actModeDiracModelId):Ke(t.act_mode_dirac_model_id)?globalThis.String(t.act_mode_dirac_model_id):void 0,actModeDiracModelInfo:Ke(t.actModeDiracModelInfo)?Wt.fromJSON(t.actModeDiracModelInfo):Ke(t.act_mode_dirac_model_info)?Wt.fromJSON(t.act_mode_dirac_model_info):void 0}},toJSON(t){let e={};if(t.apiKey!==void 0&&(e.apiKey=t.apiKey),t.diracApiKey!==void 0&&(e.diracApiKey=t.diracApiKey),t.ulid!==void 0&&(e.ulid=t.ulid),t.liteLlmBaseUrl!==void 0&&(e.liteLlmBaseUrl=t.liteLlmBaseUrl),t.liteLlmApiKey!==void 0&&(e.liteLlmApiKey=t.liteLlmApiKey),t.liteLlmUsePromptCache!==void 0&&(e.liteLlmUsePromptCache=t.liteLlmUsePromptCache),t.openAiHeaders){let r=globalThis.Object.entries(t.openAiHeaders);r.length>0&&(e.openAiHeaders={},r.forEach(([i,a])=>{e.openAiHeaders[i]=a}))}return t.anthropicBaseUrl!==void 0&&(e.anthropicBaseUrl=t.anthropicBaseUrl),t.openRouterApiKey!==void 0&&(e.openRouterApiKey=t.openRouterApiKey),t.openRouterProviderSorting!==void 0&&(e.openRouterProviderSorting=t.openRouterProviderSorting),t.awsAccessKey!==void 0&&(e.awsAccessKey=t.awsAccessKey),t.awsSecretKey!==void 0&&(e.awsSecretKey=t.awsSecretKey),t.awsSessionToken!==void 0&&(e.awsSessionToken=t.awsSessionToken),t.awsRegion!==void 0&&(e.awsRegion=t.awsRegion),t.awsUseCrossRegionInference!==void 0&&(e.awsUseCrossRegionInference=t.awsUseCrossRegionInference),t.awsBedrockUsePromptCache!==void 0&&(e.awsBedrockUsePromptCache=t.awsBedrockUsePromptCache),t.awsUseProfile!==void 0&&(e.awsUseProfile=t.awsUseProfile),t.awsProfile!==void 0&&(e.awsProfile=t.awsProfile),t.awsBedrockEndpoint!==void 0&&(e.awsBedrockEndpoint=t.awsBedrockEndpoint),t.claudeCodePath!==void 0&&(e.claudeCodePath=t.claudeCodePath),t.vertexProjectId!==void 0&&(e.vertexProjectId=t.vertexProjectId),t.vertexRegion!==void 0&&(e.vertexRegion=t.vertexRegion),t.openAiBaseUrl!==void 0&&(e.openAiBaseUrl=t.openAiBaseUrl),t.openAiApiKey!==void 0&&(e.openAiApiKey=t.openAiApiKey),t.ollamaBaseUrl!==void 0&&(e.ollamaBaseUrl=t.ollamaBaseUrl),t.ollamaApiOptionsCtxNum!==void 0&&(e.ollamaApiOptionsCtxNum=t.ollamaApiOptionsCtxNum),t.lmStudioBaseUrl!==void 0&&(e.lmStudioBaseUrl=t.lmStudioBaseUrl),t.geminiApiKey!==void 0&&(e.geminiApiKey=t.geminiApiKey),t.geminiBaseUrl!==void 0&&(e.geminiBaseUrl=t.geminiBaseUrl),t.openAiNativeApiKey!==void 0&&(e.openAiNativeApiKey=t.openAiNativeApiKey),t.deepSeekApiKey!==void 0&&(e.deepSeekApiKey=t.deepSeekApiKey),t.requestyApiKey!==void 0&&(e.requestyApiKey=t.requestyApiKey),t.requestyBaseUrl!==void 0&&(e.requestyBaseUrl=t.requestyBaseUrl),t.togetherApiKey!==void 0&&(e.togetherApiKey=t.togetherApiKey),t.fireworksApiKey!==void 0&&(e.fireworksApiKey=t.fireworksApiKey),t.fireworksModelMaxCompletionTokens!==void 0&&(e.fireworksModelMaxCompletionTokens=Math.round(t.fireworksModelMaxCompletionTokens)),t.fireworksModelMaxTokens!==void 0&&(e.fireworksModelMaxTokens=Math.round(t.fireworksModelMaxTokens)),t.qwenApiKey!==void 0&&(e.qwenApiKey=t.qwenApiKey),t.doubaoApiKey!==void 0&&(e.doubaoApiKey=t.doubaoApiKey),t.mistralApiKey!==void 0&&(e.mistralApiKey=t.mistralApiKey),t.azureApiVersion!==void 0&&(e.azureApiVersion=t.azureApiVersion),t.qwenApiLine!==void 0&&(e.qwenApiLine=t.qwenApiLine),t.nebiusApiKey!==void 0&&(e.nebiusApiKey=t.nebiusApiKey),t.asksageApiUrl!==void 0&&(e.asksageApiUrl=t.asksageApiUrl),t.asksageApiKey!==void 0&&(e.asksageApiKey=t.asksageApiKey),t.xaiApiKey!==void 0&&(e.xaiApiKey=t.xaiApiKey),t.sambanovaApiKey!==void 0&&(e.sambanovaApiKey=t.sambanovaApiKey),t.cerebrasApiKey!==void 0&&(e.cerebrasApiKey=t.cerebrasApiKey),t.requestTimeoutMs!==void 0&&(e.requestTimeoutMs=Math.round(t.requestTimeoutMs)),t.sapAiCoreClientId!==void 0&&(e.sapAiCoreClientId=t.sapAiCoreClientId),t.sapAiCoreClientSecret!==void 0&&(e.sapAiCoreClientSecret=t.sapAiCoreClientSecret),t.sapAiResourceGroup!==void 0&&(e.sapAiResourceGroup=t.sapAiResourceGroup),t.sapAiCoreTokenUrl!==void 0&&(e.sapAiCoreTokenUrl=t.sapAiCoreTokenUrl),t.sapAiCoreBaseUrl!==void 0&&(e.sapAiCoreBaseUrl=t.sapAiCoreBaseUrl),t.sapAiCoreUseOrchestrationMode!==void 0&&(e.sapAiCoreUseOrchestrationMode=t.sapAiCoreUseOrchestrationMode),t.moonshotApiKey!==void 0&&(e.moonshotApiKey=t.moonshotApiKey),t.moonshotApiLine!==void 0&&(e.moonshotApiLine=t.moonshotApiLine),t.awsAuthentication!==void 0&&(e.awsAuthentication=t.awsAuthentication),t.awsBedrockApiKey!==void 0&&(e.awsBedrockApiKey=t.awsBedrockApiKey),t.groqApiKey!==void 0&&(e.groqApiKey=t.groqApiKey),t.huggingFaceApiKey!==void 0&&(e.huggingFaceApiKey=t.huggingFaceApiKey),t.huaweiCloudMaasApiKey!==void 0&&(e.huaweiCloudMaasApiKey=t.huaweiCloudMaasApiKey),t.basetenApiKey!==void 0&&(e.basetenApiKey=t.basetenApiKey),t.ollamaApiKey!==void 0&&(e.ollamaApiKey=t.ollamaApiKey),t.zaiApiKey!==void 0&&(e.zaiApiKey=t.zaiApiKey),t.zaiApiLine!==void 0&&(e.zaiApiLine=t.zaiApiLine),t.lmStudioMaxTokens!==void 0&&(e.lmStudioMaxTokens=t.lmStudioMaxTokens),t.vercelAiGatewayApiKey!==void 0&&(e.vercelAiGatewayApiKey=t.vercelAiGatewayApiKey),t.qwenCodeOauthPath!==void 0&&(e.qwenCodeOauthPath=t.qwenCodeOauthPath),t.difyApiKey!==void 0&&(e.difyApiKey=t.difyApiKey),t.difyBaseUrl!==void 0&&(e.difyBaseUrl=t.difyBaseUrl),t.awsUseGlobalInference!==void 0&&(e.awsUseGlobalInference=t.awsUseGlobalInference),t.minimaxApiKey!==void 0&&(e.minimaxApiKey=t.minimaxApiKey),t.minimaxApiLine!==void 0&&(e.minimaxApiLine=t.minimaxApiLine),t.hicapModelId!==void 0&&(e.hicapModelId=t.hicapModelId),t.hicapApiKey!==void 0&&(e.hicapApiKey=t.hicapApiKey),t.aihubmixApiKey!==void 0&&(e.aihubmixApiKey=t.aihubmixApiKey),t.aihubmixBaseUrl!==void 0&&(e.aihubmixBaseUrl=t.aihubmixBaseUrl),t.aihubmixAppCode!==void 0&&(e.aihubmixAppCode=t.aihubmixAppCode),t.nousResearchApiKey!==void 0&&(e.nousResearchApiKey=t.nousResearchApiKey),t.azureIdentity!==void 0&&(e.azureIdentity=t.azureIdentity),t.wandbApiKey!==void 0&&(e.wandbApiKey=t.wandbApiKey),t.planModeApiProvider!==void 0&&(e.planModeApiProvider=wH(t.planModeApiProvider)),t.planModeApiModelId!==void 0&&(e.planModeApiModelId=t.planModeApiModelId),t.planModeThinkingBudgetTokens!==void 0&&(e.planModeThinkingBudgetTokens=Math.round(t.planModeThinkingBudgetTokens)),t.planModeReasoningEffort!==void 0&&(e.planModeReasoningEffort=t.planModeReasoningEffort),t.planModeVsCodeLmModelSelector!==void 0&&(e.planModeVsCodeLmModelSelector=du.toJSON(t.planModeVsCodeLmModelSelector)),t.planModeAwsBedrockCustomSelected!==void 0&&(e.planModeAwsBedrockCustomSelected=t.planModeAwsBedrockCustomSelected),t.planModeAwsBedrockCustomModelBaseId!==void 0&&(e.planModeAwsBedrockCustomModelBaseId=t.planModeAwsBedrockCustomModelBaseId),t.planModeOpenRouterModelId!==void 0&&(e.planModeOpenRouterModelId=t.planModeOpenRouterModelId),t.planModeOpenRouterModelInfo!==void 0&&(e.planModeOpenRouterModelInfo=Wt.toJSON(t.planModeOpenRouterModelInfo)),t.planModeOpenAiModelId!==void 0&&(e.planModeOpenAiModelId=t.planModeOpenAiModelId),t.planModeOpenAiModelInfo!==void 0&&(e.planModeOpenAiModelInfo=Ba.toJSON(t.planModeOpenAiModelInfo)),t.planModeOllamaModelId!==void 0&&(e.planModeOllamaModelId=t.planModeOllamaModelId),t.planModeLmStudioModelId!==void 0&&(e.planModeLmStudioModelId=t.planModeLmStudioModelId),t.planModeLiteLlmModelId!==void 0&&(e.planModeLiteLlmModelId=t.planModeLiteLlmModelId),t.planModeLiteLlmModelInfo!==void 0&&(e.planModeLiteLlmModelInfo=sc.toJSON(t.planModeLiteLlmModelInfo)),t.planModeRequestyModelId!==void 0&&(e.planModeRequestyModelId=t.planModeRequestyModelId),t.planModeRequestyModelInfo!==void 0&&(e.planModeRequestyModelInfo=Wt.toJSON(t.planModeRequestyModelInfo)),t.planModeTogetherModelId!==void 0&&(e.planModeTogetherModelId=t.planModeTogetherModelId),t.planModeFireworksModelId!==void 0&&(e.planModeFireworksModelId=t.planModeFireworksModelId),t.planModeSapAiCoreModelId!==void 0&&(e.planModeSapAiCoreModelId=t.planModeSapAiCoreModelId),t.planModeSapAiCoreDeploymentId!==void 0&&(e.planModeSapAiCoreDeploymentId=t.planModeSapAiCoreDeploymentId),t.planModeGroqModelId!==void 0&&(e.planModeGroqModelId=t.planModeGroqModelId),t.planModeGroqModelInfo!==void 0&&(e.planModeGroqModelInfo=Wt.toJSON(t.planModeGroqModelInfo)),t.planModeHuggingFaceModelId!==void 0&&(e.planModeHuggingFaceModelId=t.planModeHuggingFaceModelId),t.planModeHuggingFaceModelInfo!==void 0&&(e.planModeHuggingFaceModelInfo=Wt.toJSON(t.planModeHuggingFaceModelInfo)),t.planModeHuaweiCloudMaasModelId!==void 0&&(e.planModeHuaweiCloudMaasModelId=t.planModeHuaweiCloudMaasModelId),t.planModeHuaweiCloudMaasModelInfo!==void 0&&(e.planModeHuaweiCloudMaasModelInfo=Wt.toJSON(t.planModeHuaweiCloudMaasModelInfo)),t.planModeBasetenModelId!==void 0&&(e.planModeBasetenModelId=t.planModeBasetenModelId),t.planModeBasetenModelInfo!==void 0&&(e.planModeBasetenModelInfo=Wt.toJSON(t.planModeBasetenModelInfo)),t.planModeVercelAiGatewayModelId!==void 0&&(e.planModeVercelAiGatewayModelId=t.planModeVercelAiGatewayModelId),t.planModeVercelAiGatewayModelInfo!==void 0&&(e.planModeVercelAiGatewayModelInfo=Wt.toJSON(t.planModeVercelAiGatewayModelInfo)),t.planModeHicapModelId!==void 0&&(e.planModeHicapModelId=t.planModeHicapModelId),t.planModeHicapModelInfo!==void 0&&(e.planModeHicapModelInfo=Wt.toJSON(t.planModeHicapModelInfo)),t.planModeAihubmixModelId!==void 0&&(e.planModeAihubmixModelId=t.planModeAihubmixModelId),t.planModeAihubmixModelInfo!==void 0&&(e.planModeAihubmixModelInfo=Ba.toJSON(t.planModeAihubmixModelInfo)),t.planModeNousResearchModelId!==void 0&&(e.planModeNousResearchModelId=t.planModeNousResearchModelId),t.geminiPlanModeThinkingLevel!==void 0&&(e.geminiPlanModeThinkingLevel=t.geminiPlanModeThinkingLevel),t.planModeDiracModelId!==void 0&&(e.planModeDiracModelId=t.planModeDiracModelId),t.planModeDiracModelInfo!==void 0&&(e.planModeDiracModelInfo=Wt.toJSON(t.planModeDiracModelInfo)),t.actModeApiProvider!==void 0&&(e.actModeApiProvider=wH(t.actModeApiProvider)),t.actModeApiModelId!==void 0&&(e.actModeApiModelId=t.actModeApiModelId),t.actModeThinkingBudgetTokens!==void 0&&(e.actModeThinkingBudgetTokens=Math.round(t.actModeThinkingBudgetTokens)),t.actModeReasoningEffort!==void 0&&(e.actModeReasoningEffort=t.actModeReasoningEffort),t.actModeVsCodeLmModelSelector!==void 0&&(e.actModeVsCodeLmModelSelector=du.toJSON(t.actModeVsCodeLmModelSelector)),t.actModeAwsBedrockCustomSelected!==void 0&&(e.actModeAwsBedrockCustomSelected=t.actModeAwsBedrockCustomSelected),t.actModeAwsBedrockCustomModelBaseId!==void 0&&(e.actModeAwsBedrockCustomModelBaseId=t.actModeAwsBedrockCustomModelBaseId),t.actModeOpenRouterModelId!==void 0&&(e.actModeOpenRouterModelId=t.actModeOpenRouterModelId),t.actModeOpenRouterModelInfo!==void 0&&(e.actModeOpenRouterModelInfo=Wt.toJSON(t.actModeOpenRouterModelInfo)),t.actModeOpenAiModelId!==void 0&&(e.actModeOpenAiModelId=t.actModeOpenAiModelId),t.actModeOpenAiModelInfo!==void 0&&(e.actModeOpenAiModelInfo=Ba.toJSON(t.actModeOpenAiModelInfo)),t.actModeOllamaModelId!==void 0&&(e.actModeOllamaModelId=t.actModeOllamaModelId),t.actModeLmStudioModelId!==void 0&&(e.actModeLmStudioModelId=t.actModeLmStudioModelId),t.actModeLiteLlmModelId!==void 0&&(e.actModeLiteLlmModelId=t.actModeLiteLlmModelId),t.actModeLiteLlmModelInfo!==void 0&&(e.actModeLiteLlmModelInfo=sc.toJSON(t.actModeLiteLlmModelInfo)),t.actModeRequestyModelId!==void 0&&(e.actModeRequestyModelId=t.actModeRequestyModelId),t.actModeRequestyModelInfo!==void 0&&(e.actModeRequestyModelInfo=Wt.toJSON(t.actModeRequestyModelInfo)),t.actModeTogetherModelId!==void 0&&(e.actModeTogetherModelId=t.actModeTogetherModelId),t.actModeFireworksModelId!==void 0&&(e.actModeFireworksModelId=t.actModeFireworksModelId),t.actModeSapAiCoreModelId!==void 0&&(e.actModeSapAiCoreModelId=t.actModeSapAiCoreModelId),t.actModeSapAiCoreDeploymentId!==void 0&&(e.actModeSapAiCoreDeploymentId=t.actModeSapAiCoreDeploymentId),t.actModeGroqModelId!==void 0&&(e.actModeGroqModelId=t.actModeGroqModelId),t.actModeGroqModelInfo!==void 0&&(e.actModeGroqModelInfo=Wt.toJSON(t.actModeGroqModelInfo)),t.actModeHuggingFaceModelId!==void 0&&(e.actModeHuggingFaceModelId=t.actModeHuggingFaceModelId),t.actModeHuggingFaceModelInfo!==void 0&&(e.actModeHuggingFaceModelInfo=Wt.toJSON(t.actModeHuggingFaceModelInfo)),t.actModeHuaweiCloudMaasModelId!==void 0&&(e.actModeHuaweiCloudMaasModelId=t.actModeHuaweiCloudMaasModelId),t.actModeHuaweiCloudMaasModelInfo!==void 0&&(e.actModeHuaweiCloudMaasModelInfo=Wt.toJSON(t.actModeHuaweiCloudMaasModelInfo)),t.actModeBasetenModelId!==void 0&&(e.actModeBasetenModelId=t.actModeBasetenModelId),t.actModeBasetenModelInfo!==void 0&&(e.actModeBasetenModelInfo=Wt.toJSON(t.actModeBasetenModelInfo)),t.actModeVercelAiGatewayModelId!==void 0&&(e.actModeVercelAiGatewayModelId=t.actModeVercelAiGatewayModelId),t.actModeVercelAiGatewayModelInfo!==void 0&&(e.actModeVercelAiGatewayModelInfo=Wt.toJSON(t.actModeVercelAiGatewayModelInfo)),t.actModeHicapModelId!==void 0&&(e.actModeHicapModelId=t.actModeHicapModelId),t.actModeHicapModelInfo!==void 0&&(e.actModeHicapModelInfo=Wt.toJSON(t.actModeHicapModelInfo)),t.actModeAihubmixModelId!==void 0&&(e.actModeAihubmixModelId=t.actModeAihubmixModelId),t.actModeAihubmixModelInfo!==void 0&&(e.actModeAihubmixModelInfo=Ba.toJSON(t.actModeAihubmixModelInfo)),t.actModeNousResearchModelId!==void 0&&(e.actModeNousResearchModelId=t.actModeNousResearchModelId),t.geminiActModeThinkingLevel!==void 0&&(e.geminiActModeThinkingLevel=t.geminiActModeThinkingLevel),t.actModeDiracModelId!==void 0&&(e.actModeDiracModelId=t.actModeDiracModelId),t.actModeDiracModelInfo!==void 0&&(e.actModeDiracModelInfo=Wt.toJSON(t.actModeDiracModelInfo)),e},create(t){return vg.fromPartial(t??{})},fromPartial(t){let e=lGn();return e.apiKey=t.apiKey??void 0,e.diracApiKey=t.diracApiKey??void 0,e.ulid=t.ulid??void 0,e.liteLlmBaseUrl=t.liteLlmBaseUrl??void 0,e.liteLlmApiKey=t.liteLlmApiKey??void 0,e.liteLlmUsePromptCache=t.liteLlmUsePromptCache??void 0,e.openAiHeaders=globalThis.Object.entries(t.openAiHeaders??{}).reduce((r,[i,a])=>(a!==void 0&&(r[i]=globalThis.String(a)),r),{}),e.anthropicBaseUrl=t.anthropicBaseUrl??void 0,e.openRouterApiKey=t.openRouterApiKey??void 0,e.openRouterProviderSorting=t.openRouterProviderSorting??void 0,e.awsAccessKey=t.awsAccessKey??void 0,e.awsSecretKey=t.awsSecretKey??void 0,e.awsSessionToken=t.awsSessionToken??void 0,e.awsRegion=t.awsRegion??void 0,e.awsUseCrossRegionInference=t.awsUseCrossRegionInference??void 0,e.awsBedrockUsePromptCache=t.awsBedrockUsePromptCache??void 0,e.awsUseProfile=t.awsUseProfile??void 0,e.awsProfile=t.awsProfile??void 0,e.awsBedrockEndpoint=t.awsBedrockEndpoint??void 0,e.claudeCodePath=t.claudeCodePath??void 0,e.vertexProjectId=t.vertexProjectId??void 0,e.vertexRegion=t.vertexRegion??void 0,e.openAiBaseUrl=t.openAiBaseUrl??void 0,e.openAiApiKey=t.openAiApiKey??void 0,e.ollamaBaseUrl=t.ollamaBaseUrl??void 0,e.ollamaApiOptionsCtxNum=t.ollamaApiOptionsCtxNum??void 0,e.lmStudioBaseUrl=t.lmStudioBaseUrl??void 0,e.geminiApiKey=t.geminiApiKey??void 0,e.geminiBaseUrl=t.geminiBaseUrl??void 0,e.openAiNativeApiKey=t.openAiNativeApiKey??void 0,e.deepSeekApiKey=t.deepSeekApiKey??void 0,e.requestyApiKey=t.requestyApiKey??void 0,e.requestyBaseUrl=t.requestyBaseUrl??void 0,e.togetherApiKey=t.togetherApiKey??void 0,e.fireworksApiKey=t.fireworksApiKey??void 0,e.fireworksModelMaxCompletionTokens=t.fireworksModelMaxCompletionTokens??void 0,e.fireworksModelMaxTokens=t.fireworksModelMaxTokens??void 0,e.qwenApiKey=t.qwenApiKey??void 0,e.doubaoApiKey=t.doubaoApiKey??void 0,e.mistralApiKey=t.mistralApiKey??void 0,e.azureApiVersion=t.azureApiVersion??void 0,e.qwenApiLine=t.qwenApiLine??void 0,e.nebiusApiKey=t.nebiusApiKey??void 0,e.asksageApiUrl=t.asksageApiUrl??void 0,e.asksageApiKey=t.asksageApiKey??void 0,e.xaiApiKey=t.xaiApiKey??void 0,e.sambanovaApiKey=t.sambanovaApiKey??void 0,e.cerebrasApiKey=t.cerebrasApiKey??void 0,e.requestTimeoutMs=t.requestTimeoutMs??void 0,e.sapAiCoreClientId=t.sapAiCoreClientId??void 0,e.sapAiCoreClientSecret=t.sapAiCoreClientSecret??void 0,e.sapAiResourceGroup=t.sapAiResourceGroup??void 0,e.sapAiCoreTokenUrl=t.sapAiCoreTokenUrl??void 0,e.sapAiCoreBaseUrl=t.sapAiCoreBaseUrl??void 0,e.sapAiCoreUseOrchestrationMode=t.sapAiCoreUseOrchestrationMode??void 0,e.moonshotApiKey=t.moonshotApiKey??void 0,e.moonshotApiLine=t.moonshotApiLine??void 0,e.awsAuthentication=t.awsAuthentication??void 0,e.awsBedrockApiKey=t.awsBedrockApiKey??void 0,e.groqApiKey=t.groqApiKey??void 0,e.huggingFaceApiKey=t.huggingFaceApiKey??void 0,e.huaweiCloudMaasApiKey=t.huaweiCloudMaasApiKey??void 0,e.basetenApiKey=t.basetenApiKey??void 0,e.ollamaApiKey=t.ollamaApiKey??void 0,e.zaiApiKey=t.zaiApiKey??void 0,e.zaiApiLine=t.zaiApiLine??void 0,e.lmStudioMaxTokens=t.lmStudioMaxTokens??void 0,e.vercelAiGatewayApiKey=t.vercelAiGatewayApiKey??void 0,e.qwenCodeOauthPath=t.qwenCodeOauthPath??void 0,e.difyApiKey=t.difyApiKey??void 0,e.difyBaseUrl=t.difyBaseUrl??void 0,e.awsUseGlobalInference=t.awsUseGlobalInference??void 0,e.minimaxApiKey=t.minimaxApiKey??void 0,e.minimaxApiLine=t.minimaxApiLine??void 0,e.hicapModelId=t.hicapModelId??void 0,e.hicapApiKey=t.hicapApiKey??void 0,e.aihubmixApiKey=t.aihubmixApiKey??void 0,e.aihubmixBaseUrl=t.aihubmixBaseUrl??void 0,e.aihubmixAppCode=t.aihubmixAppCode??void 0,e.nousResearchApiKey=t.nousResearchApiKey??void 0,e.azureIdentity=t.azureIdentity??void 0,e.wandbApiKey=t.wandbApiKey??void 0,e.planModeApiProvider=t.planModeApiProvider??void 0,e.planModeApiModelId=t.planModeApiModelId??void 0,e.planModeThinkingBudgetTokens=t.planModeThinkingBudgetTokens??void 0,e.planModeReasoningEffort=t.planModeReasoningEffort??void 0,e.planModeVsCodeLmModelSelector=t.planModeVsCodeLmModelSelector!==void 0&&t.planModeVsCodeLmModelSelector!==null?du.fromPartial(t.planModeVsCodeLmModelSelector):void 0,e.planModeAwsBedrockCustomSelected=t.planModeAwsBedrockCustomSelected??void 0,e.planModeAwsBedrockCustomModelBaseId=t.planModeAwsBedrockCustomModelBaseId??void 0,e.planModeOpenRouterModelId=t.planModeOpenRouterModelId??void 0,e.planModeOpenRouterModelInfo=t.planModeOpenRouterModelInfo!==void 0&&t.planModeOpenRouterModelInfo!==null?Wt.fromPartial(t.planModeOpenRouterModelInfo):void 0,e.planModeOpenAiModelId=t.planModeOpenAiModelId??void 0,e.planModeOpenAiModelInfo=t.planModeOpenAiModelInfo!==void 0&&t.planModeOpenAiModelInfo!==null?Ba.fromPartial(t.planModeOpenAiModelInfo):void 0,e.planModeOllamaModelId=t.planModeOllamaModelId??void 0,e.planModeLmStudioModelId=t.planModeLmStudioModelId??void 0,e.planModeLiteLlmModelId=t.planModeLiteLlmModelId??void 0,e.planModeLiteLlmModelInfo=t.planModeLiteLlmModelInfo!==void 0&&t.planModeLiteLlmModelInfo!==null?sc.fromPartial(t.planModeLiteLlmModelInfo):void 0,e.planModeRequestyModelId=t.planModeRequestyModelId??void 0,e.planModeRequestyModelInfo=t.planModeRequestyModelInfo!==void 0&&t.planModeRequestyModelInfo!==null?Wt.fromPartial(t.planModeRequestyModelInfo):void 0,e.planModeTogetherModelId=t.planModeTogetherModelId??void 0,e.planModeFireworksModelId=t.planModeFireworksModelId??void 0,e.planModeSapAiCoreModelId=t.planModeSapAiCoreModelId??void 0,e.planModeSapAiCoreDeploymentId=t.planModeSapAiCoreDeploymentId??void 0,e.planModeGroqModelId=t.planModeGroqModelId??void 0,e.planModeGroqModelInfo=t.planModeGroqModelInfo!==void 0&&t.planModeGroqModelInfo!==null?Wt.fromPartial(t.planModeGroqModelInfo):void 0,e.planModeHuggingFaceModelId=t.planModeHuggingFaceModelId??void 0,e.planModeHuggingFaceModelInfo=t.planModeHuggingFaceModelInfo!==void 0&&t.planModeHuggingFaceModelInfo!==null?Wt.fromPartial(t.planModeHuggingFaceModelInfo):void 0,e.planModeHuaweiCloudMaasModelId=t.planModeHuaweiCloudMaasModelId??void 0,e.planModeHuaweiCloudMaasModelInfo=t.planModeHuaweiCloudMaasModelInfo!==void 0&&t.planModeHuaweiCloudMaasModelInfo!==null?Wt.fromPartial(t.planModeHuaweiCloudMaasModelInfo):void 0,e.planModeBasetenModelId=t.planModeBasetenModelId??void 0,e.planModeBasetenModelInfo=t.planModeBasetenModelInfo!==void 0&&t.planModeBasetenModelInfo!==null?Wt.fromPartial(t.planModeBasetenModelInfo):void 0,e.planModeVercelAiGatewayModelId=t.planModeVercelAiGatewayModelId??void 0,e.planModeVercelAiGatewayModelInfo=t.planModeVercelAiGatewayModelInfo!==void 0&&t.planModeVercelAiGatewayModelInfo!==null?Wt.fromPartial(t.planModeVercelAiGatewayModelInfo):void 0,e.planModeHicapModelId=t.planModeHicapModelId??void 0,e.planModeHicapModelInfo=t.planModeHicapModelInfo!==void 0&&t.planModeHicapModelInfo!==null?Wt.fromPartial(t.planModeHicapModelInfo):void 0,e.planModeAihubmixModelId=t.planModeAihubmixModelId??void 0,e.planModeAihubmixModelInfo=t.planModeAihubmixModelInfo!==void 0&&t.planModeAihubmixModelInfo!==null?Ba.fromPartial(t.planModeAihubmixModelInfo):void 0,e.planModeNousResearchModelId=t.planModeNousResearchModelId??void 0,e.geminiPlanModeThinkingLevel=t.geminiPlanModeThinkingLevel??void 0,e.planModeDiracModelId=t.planModeDiracModelId??void 0,e.planModeDiracModelInfo=t.planModeDiracModelInfo!==void 0&&t.planModeDiracModelInfo!==null?Wt.fromPartial(t.planModeDiracModelInfo):void 0,e.actModeApiProvider=t.actModeApiProvider??void 0,e.actModeApiModelId=t.actModeApiModelId??void 0,e.actModeThinkingBudgetTokens=t.actModeThinkingBudgetTokens??void 0,e.actModeReasoningEffort=t.actModeReasoningEffort??void 0,e.actModeVsCodeLmModelSelector=t.actModeVsCodeLmModelSelector!==void 0&&t.actModeVsCodeLmModelSelector!==null?du.fromPartial(t.actModeVsCodeLmModelSelector):void 0,e.actModeAwsBedrockCustomSelected=t.actModeAwsBedrockCustomSelected??void 0,e.actModeAwsBedrockCustomModelBaseId=t.actModeAwsBedrockCustomModelBaseId??void 0,e.actModeOpenRouterModelId=t.actModeOpenRouterModelId??void 0,e.actModeOpenRouterModelInfo=t.actModeOpenRouterModelInfo!==void 0&&t.actModeOpenRouterModelInfo!==null?Wt.fromPartial(t.actModeOpenRouterModelInfo):void 0,e.actModeOpenAiModelId=t.actModeOpenAiModelId??void 0,e.actModeOpenAiModelInfo=t.actModeOpenAiModelInfo!==void 0&&t.actModeOpenAiModelInfo!==null?Ba.fromPartial(t.actModeOpenAiModelInfo):void 0,e.actModeOllamaModelId=t.actModeOllamaModelId??void 0,e.actModeLmStudioModelId=t.actModeLmStudioModelId??void 0,e.actModeLiteLlmModelId=t.actModeLiteLlmModelId??void 0,e.actModeLiteLlmModelInfo=t.actModeLiteLlmModelInfo!==void 0&&t.actModeLiteLlmModelInfo!==null?sc.fromPartial(t.actModeLiteLlmModelInfo):void 0,e.actModeRequestyModelId=t.actModeRequestyModelId??void 0,e.actModeRequestyModelInfo=t.actModeRequestyModelInfo!==void 0&&t.actModeRequestyModelInfo!==null?Wt.fromPartial(t.actModeRequestyModelInfo):void 0,e.actModeTogetherModelId=t.actModeTogetherModelId??void 0,e.actModeFireworksModelId=t.actModeFireworksModelId??void 0,e.actModeSapAiCoreModelId=t.actModeSapAiCoreModelId??void 0,e.actModeSapAiCoreDeploymentId=t.actModeSapAiCoreDeploymentId??void 0,e.actModeGroqModelId=t.actModeGroqModelId??void 0,e.actModeGroqModelInfo=t.actModeGroqModelInfo!==void 0&&t.actModeGroqModelInfo!==null?Wt.fromPartial(t.actModeGroqModelInfo):void 0,e.actModeHuggingFaceModelId=t.actModeHuggingFaceModelId??void 0,e.actModeHuggingFaceModelInfo=t.actModeHuggingFaceModelInfo!==void 0&&t.actModeHuggingFaceModelInfo!==null?Wt.fromPartial(t.actModeHuggingFaceModelInfo):void 0,e.actModeHuaweiCloudMaasModelId=t.actModeHuaweiCloudMaasModelId??void 0,e.actModeHuaweiCloudMaasModelInfo=t.actModeHuaweiCloudMaasModelInfo!==void 0&&t.actModeHuaweiCloudMaasModelInfo!==null?Wt.fromPartial(t.actModeHuaweiCloudMaasModelInfo):void 0,e.actModeBasetenModelId=t.actModeBasetenModelId??void 0,e.actModeBasetenModelInfo=t.actModeBasetenModelInfo!==void 0&&t.actModeBasetenModelInfo!==null?Wt.fromPartial(t.actModeBasetenModelInfo):void 0,e.actModeVercelAiGatewayModelId=t.actModeVercelAiGatewayModelId??void 0,e.actModeVercelAiGatewayModelInfo=t.actModeVercelAiGatewayModelInfo!==void 0&&t.actModeVercelAiGatewayModelInfo!==null?Wt.fromPartial(t.actModeVercelAiGatewayModelInfo):void 0,e.actModeHicapModelId=t.actModeHicapModelId??void 0,e.actModeHicapModelInfo=t.actModeHicapModelInfo!==void 0&&t.actModeHicapModelInfo!==null?Wt.fromPartial(t.actModeHicapModelInfo):void 0,e.actModeAihubmixModelId=t.actModeAihubmixModelId??void 0,e.actModeAihubmixModelInfo=t.actModeAihubmixModelInfo!==void 0&&t.actModeAihubmixModelInfo!==null?Ba.fromPartial(t.actModeAihubmixModelInfo):void 0,e.actModeNousResearchModelId=t.actModeNousResearchModelId??void 0,e.geminiActModeThinkingLevel=t.geminiActModeThinkingLevel??void 0,e.actModeDiracModelId=t.actModeDiracModelId??void 0,e.actModeDiracModelInfo=t.actModeDiracModelInfo!==void 0&&t.actModeDiracModelInfo!==null?Wt.fromPartial(t.actModeDiracModelInfo):void 0,e}};Xnt={encode(t,e=new hr){return t.key!==""&&e.uint32(10).string(t.key),t.value!==""&&e.uint32(18).string(t.value),e},decode(t,e){let r=t instanceof At?t:new At(t),i=e===void 0?r.len:r.pos+e,a=dGn();for(;r.pos<i;){let o=r.uint32();switch(o>>>3){case 1:{if(o!==10)break;a.key=r.string();continue}case 2:{if(o!==18)break;a.value=r.string();continue}}if((o&7)===4||o===0)break;r.skip(o&7)}return a},fromJSON(t){return{key:Ke(t.key)?globalThis.String(t.key):"",value:Ke(t.value)?globalThis.String(t.value):""}},toJSON(t){let e={};return t.key!==""&&(e.key=t.key),t.value!==""&&(e.value=t.value),e},create(t){return Xnt.fromPartial(t??{})},fromPartial(t){let e=dGn();return e.key=t.key??"",e.value=t.value??"",e}},clu={name:"ModelsService",fullName:"dirac.ModelsService",methods:{getOllamaModels:{name:"getOllamaModels",requestType:Hu,requestStream:!1,responseType:eL,responseStream:!1,options:{}},getLmStudioModels:{name:"getLmStudioModels",requestType:Hu,requestStream:!1,responseType:eL,responseStream:!1,options:{}},getVsCodeLmModels:{name:"getVsCodeLmModels",requestType:ba,requestStream:!1,responseType:Znt,responseStream:!1,options:{}},refreshOpenRouterModelsRpc:{name:"refreshOpenRouterModelsRpc",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshDiracModelsRpc:{name:"refreshDiracModelsRpc",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshHuggingFaceModels:{name:"refreshHuggingFaceModels",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshOpenAiModels:{name:"refreshOpenAiModels",requestType:wcr,requestStream:!1,responseType:eL,responseStream:!1,options:{}},refreshRequestyModels:{name:"refreshRequestyModels",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshHicapModels:{name:"refreshHicapModels",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshLiteLlmModelsRpc:{name:"refreshLiteLlmModelsRpc",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},subscribeToOpenRouterModels:{name:"subscribeToOpenRouterModels",requestType:ba,requestStream:!1,responseType:xh,responseStream:!0,options:{}},subscribeToLiteLlmModels:{name:"subscribeToLiteLlmModels",requestType:ba,requestStream:!1,responseType:xh,responseStream:!0,options:{}},updateApiConfigurationProto:{name:"updateApiConfigurationProto",requestType:Bcr,requestStream:!1,responseType:ui,responseStream:!1,options:{}},updateApiConfiguration:{name:"updateApiConfiguration",requestType:Dcr,requestStream:!1,responseType:ui,responseStream:!1,options:{}},updateApiConfigurationPartial:{name:"updateApiConfigurationPartial",requestType:kcr,requestStream:!1,responseType:ui,responseStream:!1,options:{}},authenticateOpenAiCodex:{name:"authenticateOpenAiCodex",requestType:ba,requestStream:!1,responseType:ui,responseStream:!1,options:{}},signOutOpenAiCodex:{name:"signOutOpenAiCodex",requestType:ba,requestStream:!1,responseType:ui,responseStream:!1,options:{}},refreshGroqModelsRpc:{name:"refreshGroqModelsRpc",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshBasetenModelsRpc:{name:"refreshBasetenModelsRpc",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},getSapAiCoreModels:{name:"getSapAiCoreModels",requestType:Rcr,requestStream:!1,responseType:eit,responseStream:!1,options:{}},getAihubmixModels:{name:"getAihubmixModels",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}},refreshVercelAiGatewayModelsRpc:{name:"refreshVercelAiGatewayModelsRpc",requestType:ba,requestStream:!1,responseType:xh,responseStream:!1,options:{}}}}});var Mcr,ym,Pcr,Pte,pke,llu,dlu,hGn,Vpe,NS,Ocr,tit,Ote,nL,Wpe,zpe,Kpe,jpe,$pe,Ake,pGn,Ncr,gke,Qcp,L3,Ype,Jpe,Xpe,Zpe,AGn,Fcr,Lcr,e0e,t0e,rit,r0e,nit,iit,Ucr,gGn,Qcr,ait,mke,n0e,i0e,mGn,qcr,Gcr,oit,sit,Hcr,uit,cit,a0e,o0e,Vcr,lit,Wcr,Eke,s0e,iL,zcr,EGn,dit,eh,fit,u0e,c0e,hit,pit,Nte,Ait,yGn,Kcr,CGn,jcr,git,mit,Eit,$cr,yit,Cit,vit,bit,rs=ke(()=>{"use strict";ip();Mcr="openrouter",ym=":1m",Pcr=":fast",Pte=[{contextWindow:2e5,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3},{contextWindow:Number.MAX_SAFE_INTEGER,inputPrice:6,outputPrice:22.5,cacheWritesPrice:7.5,cacheReadsPrice:.6}],pke=[{contextWindow:2e5,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5},{contextWindow:Number.MAX_SAFE_INTEGER,inputPrice:10,outputPrice:37.5,cacheWritesPrice:12.5,cacheReadsPrice:1}],llu=[{contextWindow:272e3,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.25},{contextWindow:Number.MAX_SAFE_INTEGER,inputPrice:5,outputPrice:22.5,cacheReadsPrice:.5}],dlu=[{contextWindow:272e3,inputPrice:30,outputPrice:180},{contextWindow:Number.MAX_SAFE_INTEGER,inputPrice:60,outputPrice:270}],hGn={maxTokens:-1,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!0,inputPrice:0,outputPrice:0,temperature:1},Vpe="claude-sonnet-4-6",NS={"claude-sonnet-4-6":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3},"claude-sonnet-4-6:1m":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,tiers:Pte},"claude-haiku-4-5-20251001":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:1,outputPrice:5,cacheWritesPrice:1.25,cacheReadsPrice:.1},"claude-opus-4-6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5},"claude-opus-4-6:fast":{maxTokens:128e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:30,outputPrice:150,cacheWritesPrice:37.5,cacheReadsPrice:3,description:"Anthropic fast mode preview for Claude Opus 4.6. Same model and capabilities with higher output token speed at premium pricing. Requires fast mode access on your Anthropic account."},"claude-opus-4-6:1m":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5,tiers:pke},"claude-opus-4-6:1m:fast":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:30,outputPrice:150,cacheWritesPrice:37.5,cacheReadsPrice:3,description:"Anthropic fast mode preview for Claude Opus 4.6 with the 1M context beta enabled. Same model and capabilities with higher output token speed at premium pricing across the full 1M context window. Requires both fast mode and 1M context access on your Anthropic account."}},Ocr="claude-sonnet-4-6",tit={opus:{...NS["claude-opus-4-6"],supportsImages:!1,supportsPromptCache:!1},"opus[1m]":{...NS["claude-opus-4-6:1m"],supportsImages:!1,supportsPromptCache:!1},"claude-haiku-4-5-20251001":{...NS["claude-haiku-4-5-20251001"],supportsImages:!1,supportsPromptCache:!1},"claude-sonnet-4-6":{...NS["claude-sonnet-4-6"],supportsImages:!1,supportsPromptCache:!1},"claude-sonnet-4-6[1m]":{...NS["claude-sonnet-4-6:1m"],supportsImages:!1,supportsPromptCache:!1},"claude-opus-4-6":{...NS["claude-opus-4-6"],supportsImages:!1,supportsPromptCache:!1},"claude-opus-4-6[1m]":{...NS["claude-opus-4-6:1m"],supportsImages:!1,supportsPromptCache:!1}},Ote="anthropic.claude-sonnet-4-6",nL={"anthropic.claude-sonnet-4-6":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3},"anthropic.claude-sonnet-4-6:1m":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,tiers:Pte},"anthropic.claude-sonnet-4-5-20250929-v1:0:1m":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,tiers:Pte},"anthropic.claude-haiku-4-5-20251001-v1:0":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:1,outputPrice:5,cacheWritesPrice:1.25,cacheReadsPrice:.1},"anthropic.claude-sonnet-4-20250514-v1:0:1m":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,tiers:Pte},"anthropic.claude-opus-4-6-v1":{maxTokens:128e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5},"anthropic.claude-opus-4-6-v1:1m":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,supportsGlobalEndpoint:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5,tiers:pke},"amazon.nova-premier-v1:0":{maxTokens:1e4,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!1,inputPrice:2.5,outputPrice:12.5},"amazon.nova-pro-v1:0":{maxTokens:5e3,contextWindow:3e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:.8,outputPrice:3.2,cacheReadsPrice:.2},"amazon.nova-2-lite-v1:0":{maxTokens:5e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:.3,outputPrice:2.5,cacheReadsPrice:.075,supportsGlobalEndpoint:!0},"amazon.nova-micro-v1:0":{maxTokens:5e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.035,outputPrice:.14,cacheReadsPrice:.00875},"openai.gpt-oss-120b-1:0":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6,description:"A state-of-the-art 120B open-weight Mixture-of-Experts language model optimized for strong reasoning, tool use, and efficient deployment on large GPUs"},"openai.gpt-oss-20b-1:0":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.07,outputPrice:.3,description:"A compact 20B open-weight Mixture-of-Experts language model designed for strong reasoning and tool use, ideal for edge devices and local inference."},"qwen.qwen3-coder-30b-a3b-v1:0":{maxTokens:8192,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6,description:"Qwen3 Coder 30B MoE model with 3.3B activated parameters, optimized for code generation and analysis with 256K context window."},"qwen.qwen3-coder-480b-a35b-v1:0":{maxTokens:8192,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.22,outputPrice:1.8,description:"Qwen3 Coder 480B flagship MoE model with 35B activated parameters, designed for complex coding tasks with advanced reasoning capabilities and 256K context window."}},Wpe="anthropic/claude-sonnet-4.5",zpe=`anthropic/claude-sonnet-4${ym}`,Kpe=`anthropic/claude-sonnet-4.5${ym}`,jpe=`anthropic/claude-sonnet-4.6${ym}`,$pe=`anthropic/claude-opus-4.6${ym}`,Ake={maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,description:`Claude Sonnet 4.5 delivers superior intelligence across coding, agentic search, and AI agent capabilities. It's a powerful choice for agentic coding, and can complete tasks across the entire software development lifecycle, from initial planning to bug fixes, maintenance to large refactors. It offers strong performance in both planning and solving for complex coding tasks, making it an ideal choice to power end-to-end software development processes.
9
9
 
10
- Read more in the [blog post here](https://www.anthropic.com/claude/sonnet)`},pGn={"moonshotai/kimi-k2:exacto":{order:["groq","moonshotai"],allow_fallbacks:!1},"z-ai/glm-4.6:exacto":{order:["z-ai","novita"],allow_fallbacks:!1},"deepseek/deepseek-v3.1-terminus:exacto":{order:["novita","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-coder:exacto":{order:["baseten"],allow_fallbacks:!1},"openai/gpt-oss-120b:exacto":{order:["groq","novita"],allow_fallbacks:!1},"moonshotai/kimi-k2":{order:["groq","fireworks","baseten","parasail","novita","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-coder":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-235b-a22b-thinking-2507":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-235b-a22b-07-25":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-30b-a3b-thinking-2507":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-30b-a3b-instruct-2507":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-30b-a3b:free":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-next-80b-a3b-thinking":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-next-80b-a3b-instruct":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-max":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"deepseek/deepseek-v3.2-exp":{order:["deepseek","novita","fireworks","nebius"],allow_fallbacks:!1},"z-ai/glm-4.6":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1},"z-ai/glm-4.5v":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1},"z-ai/glm-4.5":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1},"z-ai/glm-4.5-air":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1}},Ncr="gemini-3-pro-preview",gke={"gemini-3.1-pro-preview":{maxTokens:8192,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:2,outputPrice:12,temperature:1,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0}},"gemini-3-pro-preview":{maxTokens:8192,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:2,outputPrice:12,temperature:1,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0}},"gemini-3-flash-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.5,outputPrice:3,cacheReadsPrice:.05,cacheWritesPrice:0,temperature:.8,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0}},"claude-sonnet-4-6":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,supportsReasoning:!0},"claude-sonnet-4-6:1m":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,supportsReasoning:!0,tiers:Pte},"claude-haiku-4-5@20251001":{maxTokens:64e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,inputPrice:1,outputPrice:5,cacheWritesPrice:1.25,cacheReadsPrice:.1,supportsReasoning:!0},"claude-opus-4-6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5,supportsReasoning:!0},"claude-opus-4-6:1m":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5,supportsReasoning:!0,tiers:pke},"mistral-small-2503":{maxTokens:128e3,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"codestral-2501":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.9},"llama-4-maverick-17b-128e-instruct-maas":{maxTokens:128e3,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,inputPrice:.35,outputPrice:1.15},"llama-4-scout-17b-16e-instruct-maas":{maxTokens:1e6,contextWindow:10485760,supportsImages:!0,supportsPromptCache:!1,inputPrice:.25,outputPrice:.7},"gemini-2.5-pro-exp-03-25":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625,thinkingConfig:{maxBudget:32767},tiers:[{contextWindow:2e5,inputPrice:1.25,outputPrice:10,cacheReadsPrice:.31},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625}]},"gemini-2.5-flash":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.3,outputPrice:2.5,thinkingConfig:{maxBudget:24576,outputPrice:3.5}},"gemini-2.5-flash-lite-preview-06-17":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.1,outputPrice:.4,cacheReadsPrice:.025,description:"Preview version - may not be available in all regions",thinkingConfig:{maxBudget:24576}},"gemini-2.0-flash-thinking-exp-01-21":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,supportsGlobalEndpoint:!0,inputPrice:0,outputPrice:0}},Qcp=Object.fromEntries(Object.entries(gke).filter(([t,e])=>Object.hasOwn(e,"supportsGlobalEndpoint"))),L3={maxTokens:-1,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,isR1FormatRequired:!1,inputPrice:0,outputPrice:0,temperature:0},Ype="gemini-3.1-pro-preview",Jpe={"gemini-3.1-pro-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:4,outputPrice:18,cacheReadsPrice:.4,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0},tiers:[{contextWindow:2e5,inputPrice:2,outputPrice:12,cacheReadsPrice:.2},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:4,outputPrice:18,cacheReadsPrice:.4}]},"gemini-3-pro-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:4,outputPrice:18,cacheReadsPrice:.4,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0},tiers:[{contextWindow:2e5,inputPrice:2,outputPrice:12,cacheReadsPrice:.2},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:4,outputPrice:18,cacheReadsPrice:.4}]},"gemini-3-flash-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.5,outputPrice:3,cacheReadsPrice:.05,cacheWritesPrice:0,temperature:.8,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"low",supportsThinkingLevel:!0}},"gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625,thinkingConfig:{maxBudget:32767},tiers:[{contextWindow:2e5,inputPrice:1.25,outputPrice:10,cacheReadsPrice:.31},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625}]},"gemini-2.5-flash-lite-preview-06-17":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.1,outputPrice:.4,cacheReadsPrice:.025,description:"Preview version - may not be available in all regions",thinkingConfig:{maxBudget:24576}},"gemini-2.5-flash":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:.3,outputPrice:2.5,cacheReadsPrice:.075,thinkingConfig:{maxBudget:24576,outputPrice:3.5}}},Xpe="gpt-5.4",Zpe={"gpt-5.4":{name:"GPT-5.4",maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.25,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4,tiers:llu},"gpt-5.4-mini":{name:"GPT-5.4 mini",maxTokens:128e3,contextWindow:4e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:.75,outputPrice:4.5,cacheReadsPrice:.075,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4},"gpt-5.4-nano":{name:"GPT-5.4 nano",maxTokens:128e3,contextWindow:4e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:.2,outputPrice:1.25,cacheReadsPrice:.02,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4},"gpt-5.4-pro":{name:"GPT-5.4 Pro",maxTokens:128e3,contextWindow:105e4,supportsImages:!0,supportsPromptCache:!0,inputPrice:30,outputPrice:180,cacheReadsPrice:0,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4,tiers:dlu}},AGn="gpt-5.4",Fcr={"gpt-5.4":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,apiFormat:4,inputPrice:0,outputPrice:0,description:"GPT-5.4 Codex: OpenAI's latest flagship coding model via ChatGPT subscription"}},Lcr="2024-08-01-preview",e0e="deepseek-chat",t0e={"deepseek-chat":{maxTokens:8e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:1.1,cacheWritesPrice:.27,cacheReadsPrice:.07},"deepseek-reasoner":{maxTokens:8e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:2.19,cacheWritesPrice:.55,cacheReadsPrice:.14}},rit="moonshotai/Kimi-K2-Instruct",r0e={"openai/gpt-oss-120b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Large open-weight reasoning model for high-end desktops and data centers, built for complex coding, math, and general AI tasks."},"openai/gpt-oss-20b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Medium open-weight reasoning model that runs on most desktops, balancing strong reasoning with broad accessibility."},"moonshotai/Kimi-K2-Instruct":{maxTokens:131072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Advanced reasoning model with superior performance across coding, math, and general capabilities."},"deepseek-ai/DeepSeek-R1":{maxTokens:8192,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"DeepSeek's reasoning model with step-by-step thinking capabilities."}},nit={"qwen3-coder-plus":{maxTokens:65536,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:5},"qwen3-coder-480b-a35b-instruct":{maxTokens:65536,contextWindow:204800,supportsImages:!1,supportsPromptCache:!1,inputPrice:1.5,outputPrice:7.5},"qwen3-235b-a22b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-32b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-30b-a3b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.75,outputPrice:3,cacheWritesPrice:.75,cacheReadsPrice:3,thinkingConfig:{maxBudget:38912,outputPrice:7.5}},"qwen3-14b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:4,cacheWritesPrice:1,cacheReadsPrice:4,thinkingConfig:{maxBudget:38912,outputPrice:10}},"qwen3-8b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:2,cacheWritesPrice:.5,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:5}},"qwen3-4b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:38912,outputPrice:3}},"qwen3-1.7b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen3-0.6b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen-coder-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus-latest":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:16}},"qwen-turbo-latest":{maxTokens:16384,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6,thinkingConfig:{maxBudget:38912,outputPrice:6}},"qwen-max-latest":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"qwen-coder-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:.2},"qwen-turbo":{maxTokens:1e6,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6},"qwen-max":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"deepseek-v3":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:.28,cacheWritesPrice:.14,cacheReadsPrice:.014},"deepseek-r1":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:2.19,cacheWritesPrice:.55,cacheReadsPrice:.14},"qwen-vl-max":{maxTokens:30720,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-max-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-plus":{maxTokens:6e3,contextWindow:8e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5},"qwen-vl-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5}},iit={"qwen3-235b-a22b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-32b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-30b-a3b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.75,outputPrice:3,cacheWritesPrice:.75,cacheReadsPrice:3,thinkingConfig:{maxBudget:38912,outputPrice:7.5}},"qwen3-14b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:4,cacheWritesPrice:1,cacheReadsPrice:4,thinkingConfig:{maxBudget:38912,outputPrice:10}},"qwen3-8b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:2,cacheWritesPrice:.5,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:5}},"qwen3-4b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:38912,outputPrice:3}},"qwen3-1.7b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen3-0.6b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen-coder-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus-latest":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:16}},"qwen-turbo-latest":{maxTokens:16384,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6,thinkingConfig:{maxBudget:38912,outputPrice:6}},"qwen-max-latest":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"qwq-plus-latest":{maxTokens:8192,contextWindow:131071,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0},"qwq-plus":{maxTokens:8192,contextWindow:131071,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0},"qwen-coder-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:.2},"qwen-turbo":{maxTokens:1e6,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6},"qwen-max":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"deepseek-v3":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:.28,cacheWritesPrice:.14,cacheReadsPrice:.014},"deepseek-r1":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:2.19,cacheWritesPrice:.55,cacheReadsPrice:.14},"qwen-vl-max":{maxTokens:30720,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-max-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-plus":{maxTokens:6e3,contextWindow:8e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5},"qwen-vl-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5}},Ucr=Object.keys(nit)[0],gGn=Object.keys(iit)[0],Qcr="doubao-1-5-pro-256k-250115",ait={"doubao-1-5-pro-256k-250115":{maxTokens:12288,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.7,outputPrice:1.3,cacheWritesPrice:0,cacheReadsPrice:0},"doubao-1-5-pro-32k-250115":{maxTokens:12288,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.11,outputPrice:.3,cacheWritesPrice:0,cacheReadsPrice:0},"deepseek-v3-250324":{maxTokens:12288,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:2.19,cacheWritesPrice:0,cacheReadsPrice:0},"deepseek-r1-250120":{maxTokens:32768,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.09,cacheWritesPrice:0,cacheReadsPrice:0}},mke="devstral-2512",n0e={"devstral-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"labs-devstral-small-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"mistral-large-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:1.5},"ministral-14b-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.2},"mistral-small-latest":{maxTokens:128e3,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"mistral-medium-latest":{maxTokens:128e3,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.4,outputPrice:2},"mistral-small-2501":{maxTokens:32e3,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"open-codestral-mamba":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.15},"codestral-2501":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.9},"devstral-small-2505":{maxTokens:128e3,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"devstral-medium-latest":{maxTokens:128e3,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.4,outputPrice:2}},i0e="anthropic/claude-3-7-sonnet-20250219",mGn={maxTokens:-1,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!0,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0,temperature:0},qcr="gpt-4o",Gcr="https://api.asksage.ai/server",oit={"gpt-4o":{maxTokens:4096,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gpt-4o-gov":{maxTokens:4096,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"aws-bedrock-claude-35-sonnet-gov":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"claude-4.6-sonnet":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"claude-4-opus":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"google-gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"google-claude-45-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"google-claude-4-opus":{maxTokens:32e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gpt-5-mini":{maxTokens:32768,contextWindow:1048576,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gpt-5-nano":{maxTokens:16384,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0}},sit={"deepseek-ai/DeepSeek-V3":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:1.5},"deepseek-ai/DeepSeek-R1":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2.4},"deepseek-ai/DeepSeek-R1-fast":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:6},"meta-llama/Llama-3.3-70B-Instruct-fast":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.25,outputPrice:.75},"Qwen/Qwen2.5-32B-Instruct-fast":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.13,outputPrice:.4},"Qwen/Qwen2.5-Coder-32B-Instruct-fast":{maxTokens:128e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"Qwen/Qwen3-4B-fast":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.08,outputPrice:.24},"Qwen/Qwen3-30B-A3B-fast":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.9},"Qwen/Qwen3-235B-A22B":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6},"openai/gpt-oss-120b":{maxTokens:32766,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6},"moonshotai/Kimi-K2-Instruct":{maxTokens:16384,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.5,outputPrice:2.4},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{maxTokens:163800,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.4,outputPrice:1.8},"openai/gpt-oss-20b":{maxTokens:32766,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.2},"zai-org/GLM-4.5":{maxTokens:98304,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.2},"zai-org/GLM-4.5-Air":{maxTokens:98304,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.2,outputPrice:1.2},"deepseek-ai/DeepSeek-R1-0528-fast":{maxTokens:128e3,contextWindow:164e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:6},"Qwen/Qwen3-235B-A22B-Instruct-2507":{maxTokens:64e3,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6},"Qwen/Qwen3-30B-A3B":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"Qwen/Qwen3-32B":{maxTokens:16384,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"Qwen/Qwen3-32B-fast":{maxTokens:16384,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6}},Hcr="Qwen/Qwen2.5-32B-Instruct-fast",uit={"deepseek-ai/DeepSeek-V3.1":{maxTokens:8192,contextWindow:161e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:1.65,description:"A large hybrid model that supports both thinking and non-thinking modes via prompt templates"},"meta-llama/Llama-4-Scout-17B-16E-Instruct":{maxTokens:16384,contextWindow:64e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.17,outputPrice:.66,description:"Multimodal model integrating text and image understanding, ideal for visual tasks and combined analysis"},"meta-llama/Llama-3.3-70B-Instruct":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.71,outputPrice:.71,description:"Multilingual model excelling in conversational tasks, detailed instruction-following, and coding"},"microsoft/Phi-4-mini-instruct":{maxTokens:4096,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.08,outputPrice:.35,description:"Compact, efficient model ideal for fast responses in resource-constrained environments"},"MiniMaxAI/MiniMax-M2.5":{maxTokens:40960,contextWindow:197e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,description:"MoE model with a highly sparse architecture designed for high-throughput and low latency with strong coding capabilities"},"nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8":{maxTokens:8192,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.8,description:"A LatentMoE model designed to deliver strong agentic, reasoning, and conversational capabilities"},"openai/gpt-oss-120b":{maxTokens:32768,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6,description:"Efficient Mixture-of-Experts model designed for high-reasoning, agentic and general-purpose use cases"},"openai/gpt-oss-20b":{maxTokens:32768,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.2,description:"Lower latency Mixture-of-Experts model trained on OpenAI\u2019s Harmony response format with reasoning capabilities"},"OpenPipe/Qwen3-14B-Instruct":{maxTokens:8192,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.22,description:"An efficient multilingual, dense, instruction-tuned model, optimized by OpenPipe for building agents with finetuning"},"Qwen/Qwen3-235B-A22B-Thinking-2507":{maxTokens:32768,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.1,description:"High-performance Mixture-of-Experts model optimized for structured reasoning, math, and long-form generation"},"Qwen/Qwen3-235B-A22B-Instruct-2507":{maxTokens:32768,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.1,description:"Efficient multilingual, Mixture-of-Experts, instruction-tuned model, optimized for logical reasoning"},"Qwen/Qwen3-30B-A3B-Instruct-2507":{maxTokens:8192,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3,description:"MoE instruction-tuned model with enhanced reasoning, coding, and long-context understanding"},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{maxTokens:32768,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:1.5,description:"Mixture-of-Experts model optimized for agentic coding tasks such as function calling, tool use, and long-context reasoning"},"zai-org/GLM-5-FP8":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:3.2,description:"Mixture-of-Experts model for long-horizon agentic tasks with strong performance on reasoning and coding"}},cit="meta-llama/Llama-3.3-70B-Instruct",a0e="grok-4",o0e={"grok-4-1-fast-reasoning":{contextWindow:2e6,supportsImages:!1,supportsPromptCache:!0,inputPrice:.2,cacheReadsPrice:.05,outputPrice:.5,description:"xAI's Grok 4.1 Reasoning Fast - multimodal model with 2M context."},"grok-4-1-fast-non-reasoning":{contextWindow:2e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:.2,cacheReadsPrice:.05,outputPrice:.5,description:"xAI's Grok 4.1 Non-Reasoning Fast - multimodal model with 2M context."},"grok-code-fast-1":{contextWindow:256e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.2,cacheReadsPrice:.02,outputPrice:1.5,description:"xAI's Grok Coding model."},"grok-4-fast-reasoning":{maxTokens:3e4,contextWindow:2e6,supportsImages:!0,supportsPromptCache:!1,inputPrice:.2,cacheReadsPrice:.05,outputPrice:.5,description:"xAI's Grok 4 Fast (free) multimodal model with 2M context."},"grok-4":{maxTokens:8192,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,cacheReadsPrice:.75,outputPrice:15},"grok-3-fast":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:5,outputPrice:25,description:"X AI's Grok-3 fast model with 131K context window"},"grok-3-mini":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:.5,description:"X AI's Grok-3 mini model with 131K context window"},"grok-3-mini-fast":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:4,description:"X AI's Grok-3 mini fast model with 131K context window"},"grok-2-latest":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 model - latest version with 131K context window"},"grok-2-1212":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 model (version 1212) with 131K context window"},"grok-2-vision-latest":{maxTokens:8192,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 Vision model - latest version with image support and 32K context window"},"grok-2-vision":{maxTokens:8192,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 Vision model with image support and 32K context window"},"grok-2-vision-1212":{maxTokens:8192,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 Vision model (version 1212) with image support and 32K context window"}},Vcr="Meta-Llama-3.3-70B-Instruct",lit={"DeepSeek-R1-0528":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:5,outputPrice:7},"DeepSeek-R1-Distill-Llama-70B":{maxTokens:4096,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.7,outputPrice:1.4},"DeepSeek-V3-0324":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.3,inputPrice:3,outputPrice:4.5},"DeepSeek-V3.1":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:3,outputPrice:4.5},"DeepSeek-V3.1-Terminus":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:3,outputPrice:4.5},"Llama-4-Maverick-17B-128E-Instruct":{maxTokens:4096,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,temperature:.6,inputPrice:.63,outputPrice:1.8},"Meta-Llama-3.1-8B-Instruct":{maxTokens:4096,contextWindow:16384,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.1,outputPrice:.2},"Meta-Llama-3.3-70B-Instruct":{maxTokens:3072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.6,outputPrice:1.2},"MiniMax-M2.5":{maxTokens:16384,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,temperature:1,inputPrice:.3,outputPrice:1.2},"Qwen3-235B":{maxTokens:4096,contextWindow:65536,supportsImages:!1,supportsPromptCache:!1,temperature:.7,inputPrice:.4,outputPrice:.8},"Qwen3-32B":{maxTokens:4096,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.4,outputPrice:.8}},Wcr="zai-glm-4.7",Eke={"zai-glm-4.7":{maxTokens:4e4,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.9,inputPrice:0,outputPrice:0,description:"Highly capable general-purpose model on Cerebras (up to 1,000 tokens/s), competitive with leading proprietary models on coding tasks."},"gpt-oss-120b":{maxTokens:65536,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Intelligent general purpose model with 3,000 tokens/s"},"qwen-3-235b-a22b-instruct-2507":{maxTokens:64e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Intelligent model with ~1400 tokens/s"}},s0e="moonshotai/kimi-k2-instruct-0905",iL={"openai/gpt-oss-120b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.75,description:"A state-of-the-art 120B open-weight Mixture-of-Experts language model optimized for strong reasoning, tool use, and efficient deployment on large GPUs"},"openai/gpt-oss-20b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.5,description:"A compact 20B open-weight Mixture-of-Experts language model designed for strong reasoning and tool use, ideal for edge devices and local inference."},"compound-beta":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Compound model using Llama 4 Scout for core reasoning with Llama 3.3 70B for routing and tool use. Excellent for plan/act workflows."},"compound-beta-mini":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Lightweight compound model for faster inference while maintaining tool use capabilities."},"deepseek-r1-distill-llama-70b":{maxTokens:131072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.75,outputPrice:.99,description:"DeepSeek R1 reasoning capabilities distilled into Llama 70B architecture. Excellent for complex problem-solving and planning."},"meta-llama/llama-4-maverick-17b-128e-instruct":{maxTokens:8192,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6,description:"Meta's Llama 4 Maverick 17B model with 128 experts, supports vision and multimodal tasks."},"meta-llama/llama-4-scout-17b-16e-instruct":{maxTokens:8192,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:.11,outputPrice:.34,description:"Meta's Llama 4 Scout 17B model with 16 experts, optimized for fast inference and general tasks."},"llama-3.3-70b-versatile":{maxTokens:32768,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.59,outputPrice:.79,description:"Meta's latest Llama 3.3 70B model optimized for versatile use cases with excellent performance and speed."},"llama-3.1-8b-instant":{maxTokens:131072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.08,description:"Fast and efficient Llama 3.1 8B model optimized for speed, low latency, and reliable tool execution."},"moonshotai/kimi-k2-instruct":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:1,outputPrice:3,cacheReadsPrice:.5,description:"Kimi K2 is Moonshot AI's state-of-the-art Mixture-of-Experts (MoE) language model with 1 trillion total parameters and 32 billion activated parameters."},"moonshotai/kimi-k2-instruct-0905":{maxTokens:16384,contextWindow:262144,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.5,cacheReadsPrice:.15,description:"Kimi K2 model gets a new version update: Agentic coding: more accurate, better generalization across scaffolds. Frontend coding: improved aesthetics and functionalities on web, 3d, and other tasks. Context length: extended from 128k to 256k, providing better long-horizon support."}},zcr="anthropic/claude-3-7-sonnet-latest",EGn={maxTokens:8192,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,description:"Anthropic's most intelligent model. Highest level of intelligence and capability."},dit="anthropic--claude-3.5-sonnet",eh="Pricing is calculated using SAP's Capacity Units rather than direct USD pricing.",fit={"anthropic--claude-4.5-haiku":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4.6-sonnet":{maxTokens:8192,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4.5-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4.5-opus":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4-opus":{maxTokens:32e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-3.7-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-3.5-sonnet":{maxTokens:8192,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"anthropic--claude-3-sonnet":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"anthropic--claude-3-haiku":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"anthropic--claude-3-opus":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,thinkingConfig:{maxBudget:32767},description:eh},"gemini-2.5-flash":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,thinkingConfig:{maxBudget:24576},description:eh},"gpt-4":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gpt-4o":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gpt-4o-mini":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gpt-4.1":{maxTokens:32768,contextWindow:1047576,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-4.1-nano":{maxTokens:32768,contextWindow:1047576,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-5":{maxTokens:128e3,contextWindow:272e3,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-5-nano":{maxTokens:128e3,contextWindow:272e3,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-5-mini":{maxTokens:128e3,contextWindow:272e3,supportsImages:!0,supportsPromptCache:!0,description:eh},o1:{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},o3:{maxTokens:1e5,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"o3-mini":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"o4-mini":{maxTokens:1e5,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},sonar:{maxTokens:128e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,description:eh},"sonar-pro":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,description:eh}},u0e={"kimi-k2.5":{maxTokens:32e3,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:.6,outputPrice:3,cacheReadsPrice:.1,temperature:1},"kimi-k2-0905-preview":{maxTokens:16384,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.5,temperature:.6},"kimi-k2-thinking-turbo":{maxTokens:32e3,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:10,temperature:1}},c0e="kimi-k2-0905-preview",hit="DeepSeek-V3",pit={"DeepSeek-V3":{maxTokens:16384,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.1,cacheWritesPrice:0,cacheReadsPrice:0},"DeepSeek-R1":{maxTokens:16384,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:2.2,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:8192,outputPrice:2.2}},"deepseek-r1-250528":{maxTokens:16384,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:2.2,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:8192,outputPrice:2.2}},"qwen3-235b-a22b":{maxTokens:8192,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.1,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:4096,outputPrice:1.1}},"qwen3-32b":{maxTokens:8192,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.1,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:4096,outputPrice:1.1}}},Nte={"moonshotai/Kimi-K2-Thinking":{maxTokens:163800,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"Kimi K2 Thinking - A model with enhanced reasoning capabilities from Kimi K2",supportsReasoning:!0},"zai-org/GLM-4.6":{maxTokens:2e5,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.2,cacheWritesPrice:0,cacheReadsPrice:0,description:"Frontier open model with advanced agentic, reasoning and coding capabilities",supportsReasoning:!0},"deepseek-ai/DeepSeek-R1":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.55,outputPrice:5.95,cacheWritesPrice:0,cacheReadsPrice:0,description:"DeepSeek's first-generation reasoning model",supportsReasoning:!0},"deepseek-ai/DeepSeek-R1-0528":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.55,outputPrice:5.95,cacheWritesPrice:0,cacheReadsPrice:0,description:"The latest revision of DeepSeek's first-generation reasoning model",supportsReasoning:!0},"deepseek-ai/DeepSeek-V3-0324":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:.77,outputPrice:.77,cacheWritesPrice:0,cacheReadsPrice:0,description:"Fast general-purpose LLM with enhanced reasoning capabilities",supportsReasoning:!0},"deepseek-ai/DeepSeek-V3.1":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:1.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"Extremely capable general-purpose LLM with hybrid reasoning capabilities and advanced tool calling",supportsReasoning:!0},"deepseek-ai/DeepSeek-V3.2":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.45,cacheWritesPrice:0,cacheReadsPrice:0,description:"DeepSeek's hybrid reasoning model with efficient long context scaling with GPT-5 level performance",supportsReasoning:!0},"Qwen/Qwen3-235B-A22B-Instruct-2507":{maxTokens:262144,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.22,outputPrice:.8,cacheWritesPrice:0,cacheReadsPrice:0,description:"Mixture-of-experts LLM with math and reasoning capabilities",supportsReasoning:!1},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{maxTokens:262144,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.38,outputPrice:1.53,cacheWritesPrice:0,cacheReadsPrice:0,description:"Mixture-of-experts LLM with advanced coding and reasoning capabilities",supportsReasoning:!1},"openai/gpt-oss-120b":{maxTokens:128072,contextWindow:128072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"Extremely capable general-purpose LLM with strong, controllable reasoning capabilities",supportsReasoning:!0},"moonshotai/Kimi-K2-Instruct-0905":{maxTokens:168e3,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"State of the art language model for agentic and coding tasks. September Update.",supportsReasoning:!1}},Ait="zai-org/GLM-4.6",yGn="glm-5",Kcr={"glm-5":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.2,inputPrice:1,outputPrice:3.2},"glm-4.7":{maxTokens:131e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2},"glm-4.6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2}},CGn="glm-5",jcr={"glm-5":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.2,inputPrice:1,outputPrice:3.2},"glm-4.7":{maxTokens:131e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2},"glm-4.6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2}},git="accounts/fireworks/models/kimi-k2p5",mit={"accounts/fireworks/models/kimi-k2p5":{maxTokens:16384,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:.6,outputPrice:3,cacheWritesPrice:.6,cacheReadsPrice:.1,description:"Moonshot's flagship open agentic model. Kimi K2.5 unifies vision and text, thinking and non-thinking modes, and single-agent and multi-agent execution."},"accounts/fireworks/models/qwen3-vl-30b-a3b-thinking":{maxTokens:32768,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:.15,outputPrice:.6,cacheWritesPrice:.15,cacheReadsPrice:.07,description:"Reasoning-enabled Qwen3-VL model with strong multimodal understanding, long context support, and function calling."},"accounts/fireworks/models/qwen3-vl-30b-a3b-instruct":{maxTokens:32768,contextWindow:262144,supportsImages:!0,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6,description:"Qwen3-VL instruct model with strong multimodal reasoning, long context support, and function calling."},"accounts/fireworks/models/deepseek-v3p2":{maxTokens:16384,contextWindow:163840,supportsImages:!1,supportsPromptCache:!0,inputPrice:.56,outputPrice:1.68,cacheWritesPrice:.56,cacheReadsPrice:.28,description:"DeepSeek V3.2 model tuned for high computational efficiency and strong reasoning and agent performance."},"accounts/fireworks/models/glm-4p7":{maxTokens:16384,contextWindow:202752,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.2,cacheWritesPrice:.6,cacheReadsPrice:.3,description:"GLM-4.7 is a next-generation general-purpose model optimized for coding, reasoning, and agentic workflows."},"accounts/fireworks/models/glm-5":{maxTokens:16384,contextWindow:202752,supportsImages:!1,supportsPromptCache:!0,inputPrice:1,outputPrice:3.2,cacheWritesPrice:1,cacheReadsPrice:.2,description:"GLM-5 is Z.ai's flagship reasoning model for complex systems engineering and long-horizon agentic tasks."},"accounts/fireworks/models/minimax-m2p5":{maxTokens:16384,contextWindow:196608,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:.03,description:"MiniMax M2.5 is built for state-of-the-art coding, agentic tool use."},"accounts/fireworks/models/minimax-m2p1":{maxTokens:16384,contextWindow:196608,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:.03,description:"MiniMax M2.1 is tuned for strong real-world performance across coding, agent-driven, and workflow-heavy tasks."},"accounts/fireworks/models/gpt-oss-120b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:.15,outputPrice:.6,cacheWritesPrice:.15,cacheReadsPrice:.01,description:"OpenAI gpt-oss-120b open-weight model for production and high-reasoning use cases."}},Eit={"qwen3-coder-plus":{maxTokens:65536,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0,description:"Qwen3 Coder Plus - High-performance coding model with 1M context window for large codebases"},"qwen3-coder-flash":{maxTokens:65536,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0,description:"Qwen3 Coder Flash - Fast coding model with 1M context window optimized for speed"}},$cr="qwen3-coder-plus",yit="MiniMax-M2.7",Cit={"MiniMax-M2.7":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.375,cacheReadsPrice:.06,description:"Latest flagship model with enhanced reasoning and coding"},"MiniMax-M2.7-highspeed":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.6,outputPrice:2.4,cacheWritesPrice:.375,cacheReadsPrice:.06,description:"High-speed version of M2.7 for low-latency scenarios"},"MiniMax-M2.5":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2.5-highspeed":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.6,outputPrice:2.4,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2.1":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2.1-lightning":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.4,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:0,cacheReadsPrice:0}},vit="Hermes-4-405B",bit={"Hermes-4-405B":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.09,outputPrice:.37,description:"This is the largest model in the Hermes 4 family, and it is the fullest expression of our design, focused on advanced reasoning and creative depth rather than optimizing inference speed or cost."},"Hermes-4-70B":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.2,description:"This incarnation of Hermes 4 balances scale and size. It handles complex reasoning tasks, while staying fast and cost effective. A versatile choice for many use cases."}}});function RH(t,e){let r=flu[t];return r?`${e}Mode${r}`:`${e}ModeApiModelId`}var flu,yke=ke(()=>{"use strict";rs();flu={openrouter:"OpenRouterModelId",dirac:"DiracModelId",openai:"OpenAiModelId",ollama:"OllamaModelId",lmstudio:"LmStudioModelId",litellm:"LiteLlmModelId",requesty:"RequestyModelId",together:"TogetherModelId",fireworks:"FireworksModelId",sapaicore:"SapAiCoreModelId",groq:"GroqModelId",baseten:"BasetenModelId",huggingface:"HuggingFaceModelId",aihubmix:"AihubmixModelId",hicap:"HicapModelId",nousResearch:"NousResearchModelId","vercel-ai-gateway":"VercelAiGatewayModelId"}});var Ycr,xGn=ke(()=>{"use strict";Ycr=(a=>(a.production="production",a.staging="staging",a.local="local",a.selfHosted="selfHosted",a))(Ycr||{})});var Le,Pr=ke(()=>{"use strict";Le=class t{static isVerbose=!1;static subscribers=new Set;static output(e){for(let r of t.subscribers)try{r(e)}catch{}}static subscribe(e){t.subscribers.add(e)}static error(e,...r){t.#e("ERROR",e,void 0,r)}static warn(e,...r){t.#e("WARN",e,void 0,r)}static log(e,...r){t.#e("LOG",e,void 0,r)}static debug(e,...r){t.#e("DEBUG",e,void 0,r)}static info(e,...r){t.#e("INFO",e,void 0,r)}static trace(e,...r){t.#e("TRACE",e,void 0,r)}static#e(e,r,i,a){try{let o=r;a.length>0&&(o+=` ${a.map(s=>{if(s instanceof Error)return`${s.message}${s.stack?`
10
+ Read more in the [blog post here](https://www.anthropic.com/claude/sonnet)`},pGn={"moonshotai/kimi-k2:exacto":{order:["groq","moonshotai"],allow_fallbacks:!1},"z-ai/glm-4.6:exacto":{order:["z-ai","novita"],allow_fallbacks:!1},"deepseek/deepseek-v3.1-terminus:exacto":{order:["novita","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-coder:exacto":{order:["baseten"],allow_fallbacks:!1},"openai/gpt-oss-120b:exacto":{order:["groq","novita"],allow_fallbacks:!1},"moonshotai/kimi-k2":{order:["groq","fireworks","baseten","parasail","novita","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-coder":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-235b-a22b-thinking-2507":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-235b-a22b-07-25":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-30b-a3b-thinking-2507":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-30b-a3b-instruct-2507":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-30b-a3b:free":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-next-80b-a3b-thinking":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-next-80b-a3b-instruct":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"qwen/qwen3-max":{order:["nebius","baseten","fireworks","together","deepinfra"],allow_fallbacks:!1},"deepseek/deepseek-v3.2-exp":{order:["deepseek","novita","fireworks","nebius"],allow_fallbacks:!1},"z-ai/glm-4.6":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1},"z-ai/glm-4.5v":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1},"z-ai/glm-4.5":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1},"z-ai/glm-4.5-air":{order:["z-ai","novita","baseten","fireworks","chutes"],allow_fallbacks:!1}},Ncr="gemini-3-pro-preview",gke={"gemini-3.1-pro-preview":{maxTokens:8192,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:2,outputPrice:12,temperature:1,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0}},"gemini-3-pro-preview":{maxTokens:8192,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:2,outputPrice:12,temperature:1,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0}},"gemini-3-flash-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.5,outputPrice:3,cacheReadsPrice:.05,cacheWritesPrice:0,temperature:1,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0}},"claude-sonnet-4-6":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,supportsReasoning:!0},"claude-sonnet-4-6:1m":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,supportsReasoning:!0,tiers:Pte},"claude-haiku-4-5@20251001":{maxTokens:64e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,inputPrice:1,outputPrice:5,cacheWritesPrice:1.25,cacheReadsPrice:.1,supportsReasoning:!0},"claude-opus-4-6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5,supportsReasoning:!0},"claude-opus-4-6:1m":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:5,outputPrice:25,cacheWritesPrice:6.25,cacheReadsPrice:.5,supportsReasoning:!0,tiers:pke},"mistral-small-2503":{maxTokens:128e3,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"codestral-2501":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.9},"llama-4-maverick-17b-128e-instruct-maas":{maxTokens:128e3,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,inputPrice:.35,outputPrice:1.15},"llama-4-scout-17b-16e-instruct-maas":{maxTokens:1e6,contextWindow:10485760,supportsImages:!0,supportsPromptCache:!1,inputPrice:.25,outputPrice:.7},"gemini-2.5-pro-exp-03-25":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625,thinkingConfig:{maxBudget:32767},tiers:[{contextWindow:2e5,inputPrice:1.25,outputPrice:10,cacheReadsPrice:.31},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625}]},"gemini-2.5-flash":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.3,outputPrice:2.5,thinkingConfig:{maxBudget:24576,outputPrice:3.5}},"gemini-2.5-flash-lite-preview-06-17":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.1,outputPrice:.4,cacheReadsPrice:.025,description:"Preview version - may not be available in all regions",thinkingConfig:{maxBudget:24576}},"gemini-2.0-flash-thinking-exp-01-21":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,supportsGlobalEndpoint:!0,inputPrice:0,outputPrice:0}},Qcp=Object.fromEntries(Object.entries(gke).filter(([t,e])=>Object.hasOwn(e,"supportsGlobalEndpoint"))),L3={maxTokens:-1,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,isR1FormatRequired:!1,inputPrice:0,outputPrice:0,temperature:0},Ype="gemini-3.1-pro-preview",Jpe={"gemini-3.1-pro-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:4,outputPrice:18,cacheReadsPrice:.4,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0},tiers:[{contextWindow:2e5,inputPrice:2,outputPrice:12,cacheReadsPrice:.2},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:4,outputPrice:18,cacheReadsPrice:.4}]},"gemini-3-pro-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:4,outputPrice:18,cacheReadsPrice:.4,thinkingConfig:{geminiThinkingLevel:"high",supportsThinkingLevel:!0},tiers:[{contextWindow:2e5,inputPrice:2,outputPrice:12,cacheReadsPrice:.2},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:4,outputPrice:18,cacheReadsPrice:.4}]},"gemini-3-flash-preview":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.5,outputPrice:3,cacheReadsPrice:.05,cacheWritesPrice:0,temperature:1,supportsReasoning:!0,thinkingConfig:{geminiThinkingLevel:"low",supportsThinkingLevel:!0}},"gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625,thinkingConfig:{maxBudget:32767},tiers:[{contextWindow:2e5,inputPrice:1.25,outputPrice:10,cacheReadsPrice:.31},{contextWindow:Number.POSITIVE_INFINITY,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.625}]},"gemini-2.5-flash-lite-preview-06-17":{maxTokens:64e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsGlobalEndpoint:!0,inputPrice:.1,outputPrice:.4,cacheReadsPrice:.025,description:"Preview version - may not be available in all regions",thinkingConfig:{maxBudget:24576}},"gemini-2.5-flash":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,inputPrice:.3,outputPrice:2.5,cacheReadsPrice:.075,thinkingConfig:{maxBudget:24576,outputPrice:3.5}}},Xpe="gpt-5.4",Zpe={"gpt-5.4":{name:"GPT-5.4",maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:2.5,outputPrice:15,cacheReadsPrice:.25,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4,tiers:llu},"gpt-5.4-mini":{name:"GPT-5.4 mini",maxTokens:128e3,contextWindow:4e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:.75,outputPrice:4.5,cacheReadsPrice:.075,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4},"gpt-5.4-nano":{name:"GPT-5.4 nano",maxTokens:128e3,contextWindow:4e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:.2,outputPrice:1.25,cacheReadsPrice:.02,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4},"gpt-5.4-pro":{name:"GPT-5.4 Pro",maxTokens:128e3,contextWindow:105e4,supportsImages:!0,supportsPromptCache:!0,inputPrice:30,outputPrice:180,cacheReadsPrice:0,cacheWritesPrice:0,supportsReasoning:!0,apiFormat:4,tiers:dlu}},AGn="gpt-5.4",Fcr={"gpt-5.4":{maxTokens:128e3,contextWindow:1e6,supportsImages:!0,supportsPromptCache:!0,supportsReasoning:!0,apiFormat:4,inputPrice:0,outputPrice:0,description:"GPT-5.4 Codex: OpenAI's latest flagship coding model via ChatGPT subscription"}},Lcr="2024-08-01-preview",e0e="deepseek-chat",t0e={"deepseek-chat":{maxTokens:8e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:1.1,cacheWritesPrice:.27,cacheReadsPrice:.07},"deepseek-reasoner":{maxTokens:8e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:2.19,cacheWritesPrice:.55,cacheReadsPrice:.14}},rit="moonshotai/Kimi-K2-Instruct",r0e={"openai/gpt-oss-120b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Large open-weight reasoning model for high-end desktops and data centers, built for complex coding, math, and general AI tasks."},"openai/gpt-oss-20b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Medium open-weight reasoning model that runs on most desktops, balancing strong reasoning with broad accessibility."},"moonshotai/Kimi-K2-Instruct":{maxTokens:131072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Advanced reasoning model with superior performance across coding, math, and general capabilities."},"deepseek-ai/DeepSeek-R1":{maxTokens:8192,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"DeepSeek's reasoning model with step-by-step thinking capabilities."}},nit={"qwen3-coder-plus":{maxTokens:65536,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:5},"qwen3-coder-480b-a35b-instruct":{maxTokens:65536,contextWindow:204800,supportsImages:!1,supportsPromptCache:!1,inputPrice:1.5,outputPrice:7.5},"qwen3-235b-a22b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-32b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-30b-a3b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.75,outputPrice:3,cacheWritesPrice:.75,cacheReadsPrice:3,thinkingConfig:{maxBudget:38912,outputPrice:7.5}},"qwen3-14b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:4,cacheWritesPrice:1,cacheReadsPrice:4,thinkingConfig:{maxBudget:38912,outputPrice:10}},"qwen3-8b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:2,cacheWritesPrice:.5,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:5}},"qwen3-4b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:38912,outputPrice:3}},"qwen3-1.7b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen3-0.6b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen-coder-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus-latest":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:16}},"qwen-turbo-latest":{maxTokens:16384,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6,thinkingConfig:{maxBudget:38912,outputPrice:6}},"qwen-max-latest":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"qwen-coder-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:.2},"qwen-turbo":{maxTokens:1e6,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6},"qwen-max":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"deepseek-v3":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:.28,cacheWritesPrice:.14,cacheReadsPrice:.014},"deepseek-r1":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:2.19,cacheWritesPrice:.55,cacheReadsPrice:.14},"qwen-vl-max":{maxTokens:30720,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-max-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-plus":{maxTokens:6e3,contextWindow:8e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5},"qwen-vl-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5}},iit={"qwen3-235b-a22b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-32b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:8,cacheWritesPrice:2,cacheReadsPrice:8,thinkingConfig:{maxBudget:38912,outputPrice:20}},"qwen3-30b-a3b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.75,outputPrice:3,cacheWritesPrice:.75,cacheReadsPrice:3,thinkingConfig:{maxBudget:38912,outputPrice:7.5}},"qwen3-14b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:4,cacheWritesPrice:1,cacheReadsPrice:4,thinkingConfig:{maxBudget:38912,outputPrice:10}},"qwen3-8b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:2,cacheWritesPrice:.5,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:5}},"qwen3-4b":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:38912,outputPrice:3}},"qwen3-1.7b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen3-0.6b":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:1.2,thinkingConfig:{maxBudget:30720,outputPrice:3}},"qwen-coder-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus-latest":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:2,thinkingConfig:{maxBudget:38912,outputPrice:16}},"qwen-turbo-latest":{maxTokens:16384,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6,thinkingConfig:{maxBudget:38912,outputPrice:6}},"qwen-max-latest":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"qwq-plus-latest":{maxTokens:8192,contextWindow:131071,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0},"qwq-plus":{maxTokens:8192,contextWindow:131071,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0},"qwen-coder-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:3.5,outputPrice:7,cacheWritesPrice:3.5,cacheReadsPrice:7},"qwen-plus":{maxTokens:129024,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2,cacheWritesPrice:.8,cacheReadsPrice:.2},"qwen-turbo":{maxTokens:1e6,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.6,cacheWritesPrice:.3,cacheReadsPrice:.6},"qwen-max":{maxTokens:30720,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:9.6,cacheWritesPrice:2.4,cacheReadsPrice:9.6},"deepseek-v3":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:.28,cacheWritesPrice:.14,cacheReadsPrice:.014},"deepseek-r1":{maxTokens:8e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:0,outputPrice:2.19,cacheWritesPrice:.55,cacheReadsPrice:.14},"qwen-vl-max":{maxTokens:30720,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-max-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:3,outputPrice:9,cacheWritesPrice:3,cacheReadsPrice:9},"qwen-vl-plus":{maxTokens:6e3,contextWindow:8e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5},"qwen-vl-plus-latest":{maxTokens:129024,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:1.5,outputPrice:4.5,cacheWritesPrice:1.5,cacheReadsPrice:4.5}},Ucr=Object.keys(nit)[0],gGn=Object.keys(iit)[0],Qcr="doubao-1-5-pro-256k-250115",ait={"doubao-1-5-pro-256k-250115":{maxTokens:12288,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.7,outputPrice:1.3,cacheWritesPrice:0,cacheReadsPrice:0},"doubao-1-5-pro-32k-250115":{maxTokens:12288,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.11,outputPrice:.3,cacheWritesPrice:0,cacheReadsPrice:0},"deepseek-v3-250324":{maxTokens:12288,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:2.19,cacheWritesPrice:0,cacheReadsPrice:0},"deepseek-r1-250120":{maxTokens:32768,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.09,cacheWritesPrice:0,cacheReadsPrice:0}},mke="devstral-2512",n0e={"devstral-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"labs-devstral-small-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"mistral-large-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:1.5},"ministral-14b-2512":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.2},"mistral-small-latest":{maxTokens:128e3,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"mistral-medium-latest":{maxTokens:128e3,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.4,outputPrice:2},"mistral-small-2501":{maxTokens:32e3,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"open-codestral-mamba":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.15},"codestral-2501":{maxTokens:256e3,contextWindow:256e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.9},"devstral-small-2505":{maxTokens:128e3,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"devstral-medium-latest":{maxTokens:128e3,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.4,outputPrice:2}},i0e="anthropic/claude-3-7-sonnet-20250219",mGn={maxTokens:-1,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!0,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0,temperature:0},qcr="gpt-4o",Gcr="https://api.asksage.ai/server",oit={"gpt-4o":{maxTokens:4096,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gpt-4o-gov":{maxTokens:4096,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"aws-bedrock-claude-35-sonnet-gov":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"claude-4.6-sonnet":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"claude-4-opus":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"google-gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"google-claude-45-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"google-claude-4-opus":{maxTokens:32e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gpt-5-mini":{maxTokens:32768,contextWindow:1048576,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0},"gpt-5-nano":{maxTokens:16384,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0}},sit={"deepseek-ai/DeepSeek-V3":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:1.5},"deepseek-ai/DeepSeek-R1":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.8,outputPrice:2.4},"deepseek-ai/DeepSeek-R1-fast":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:6},"meta-llama/Llama-3.3-70B-Instruct-fast":{maxTokens:32e3,contextWindow:96e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.25,outputPrice:.75},"Qwen/Qwen2.5-32B-Instruct-fast":{maxTokens:8192,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,inputPrice:.13,outputPrice:.4},"Qwen/Qwen2.5-Coder-32B-Instruct-fast":{maxTokens:128e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"Qwen/Qwen3-4B-fast":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.08,outputPrice:.24},"Qwen/Qwen3-30B-A3B-fast":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.9},"Qwen/Qwen3-235B-A22B":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6},"openai/gpt-oss-120b":{maxTokens:32766,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6},"moonshotai/Kimi-K2-Instruct":{maxTokens:16384,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.5,outputPrice:2.4},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{maxTokens:163800,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.4,outputPrice:1.8},"openai/gpt-oss-20b":{maxTokens:32766,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.2},"zai-org/GLM-4.5":{maxTokens:98304,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.2},"zai-org/GLM-4.5-Air":{maxTokens:98304,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.2,outputPrice:1.2},"deepseek-ai/DeepSeek-R1-0528-fast":{maxTokens:128e3,contextWindow:164e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:6},"Qwen/Qwen3-235B-A22B-Instruct-2507":{maxTokens:64e3,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6},"Qwen/Qwen3-30B-A3B":{maxTokens:32e3,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"Qwen/Qwen3-32B":{maxTokens:16384,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3},"Qwen/Qwen3-32B-fast":{maxTokens:16384,contextWindow:41e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6}},Hcr="Qwen/Qwen2.5-32B-Instruct-fast",uit={"deepseek-ai/DeepSeek-V3.1":{maxTokens:8192,contextWindow:161e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:1.65,description:"A large hybrid model that supports both thinking and non-thinking modes via prompt templates"},"meta-llama/Llama-4-Scout-17B-16E-Instruct":{maxTokens:16384,contextWindow:64e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:.17,outputPrice:.66,description:"Multimodal model integrating text and image understanding, ideal for visual tasks and combined analysis"},"meta-llama/Llama-3.3-70B-Instruct":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.71,outputPrice:.71,description:"Multilingual model excelling in conversational tasks, detailed instruction-following, and coding"},"microsoft/Phi-4-mini-instruct":{maxTokens:4096,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.08,outputPrice:.35,description:"Compact, efficient model ideal for fast responses in resource-constrained environments"},"MiniMaxAI/MiniMax-M2.5":{maxTokens:40960,contextWindow:197e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,description:"MoE model with a highly sparse architecture designed for high-throughput and low latency with strong coding capabilities"},"nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8":{maxTokens:8192,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.2,outputPrice:.8,description:"A LatentMoE model designed to deliver strong agentic, reasoning, and conversational capabilities"},"openai/gpt-oss-120b":{maxTokens:32768,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6,description:"Efficient Mixture-of-Experts model designed for high-reasoning, agentic and general-purpose use cases"},"openai/gpt-oss-20b":{maxTokens:32768,contextWindow:131e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.2,description:"Lower latency Mixture-of-Experts model trained on OpenAI\u2019s Harmony response format with reasoning capabilities"},"OpenPipe/Qwen3-14B-Instruct":{maxTokens:8192,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.22,description:"An efficient multilingual, dense, instruction-tuned model, optimized by OpenPipe for building agents with finetuning"},"Qwen/Qwen3-235B-A22B-Thinking-2507":{maxTokens:32768,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.1,description:"High-performance Mixture-of-Experts model optimized for structured reasoning, math, and long-form generation"},"Qwen/Qwen3-235B-A22B-Instruct-2507":{maxTokens:32768,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.1,description:"Efficient multilingual, Mixture-of-Experts, instruction-tuned model, optimized for logical reasoning"},"Qwen/Qwen3-30B-A3B-Instruct-2507":{maxTokens:8192,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.3,description:"MoE instruction-tuned model with enhanced reasoning, coding, and long-context understanding"},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{maxTokens:32768,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:1.5,description:"Mixture-of-Experts model optimized for agentic coding tasks such as function calling, tool use, and long-context reasoning"},"zai-org/GLM-5-FP8":{maxTokens:8192,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:1,outputPrice:3.2,description:"Mixture-of-Experts model for long-horizon agentic tasks with strong performance on reasoning and coding"}},cit="meta-llama/Llama-3.3-70B-Instruct",a0e="grok-4",o0e={"grok-4-1-fast-reasoning":{contextWindow:2e6,supportsImages:!1,supportsPromptCache:!0,inputPrice:.2,cacheReadsPrice:.05,outputPrice:.5,description:"xAI's Grok 4.1 Reasoning Fast - multimodal model with 2M context."},"grok-4-1-fast-non-reasoning":{contextWindow:2e6,supportsImages:!0,supportsPromptCache:!0,inputPrice:.2,cacheReadsPrice:.05,outputPrice:.5,description:"xAI's Grok 4.1 Non-Reasoning Fast - multimodal model with 2M context."},"grok-code-fast-1":{contextWindow:256e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.2,cacheReadsPrice:.02,outputPrice:1.5,description:"xAI's Grok Coding model."},"grok-4-fast-reasoning":{maxTokens:3e4,contextWindow:2e6,supportsImages:!0,supportsPromptCache:!1,inputPrice:.2,cacheReadsPrice:.05,outputPrice:.5,description:"xAI's Grok 4 Fast (free) multimodal model with 2M context."},"grok-4":{maxTokens:8192,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,cacheReadsPrice:.75,outputPrice:15},"grok-3-fast":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:5,outputPrice:25,description:"X AI's Grok-3 fast model with 131K context window"},"grok-3-mini":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:.5,description:"X AI's Grok-3 mini model with 131K context window"},"grok-3-mini-fast":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:4,description:"X AI's Grok-3 mini fast model with 131K context window"},"grok-2-latest":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 model - latest version with 131K context window"},"grok-2-1212":{maxTokens:8192,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 model (version 1212) with 131K context window"},"grok-2-vision-latest":{maxTokens:8192,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 Vision model - latest version with image support and 32K context window"},"grok-2-vision":{maxTokens:8192,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 Vision model with image support and 32K context window"},"grok-2-vision-1212":{maxTokens:8192,contextWindow:32768,supportsImages:!0,supportsPromptCache:!1,inputPrice:2,outputPrice:10,description:"X AI's Grok-2 Vision model (version 1212) with image support and 32K context window"}},Vcr="Meta-Llama-3.3-70B-Instruct",lit={"DeepSeek-R1-0528":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:5,outputPrice:7},"DeepSeek-R1-Distill-Llama-70B":{maxTokens:4096,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.7,outputPrice:1.4},"DeepSeek-V3-0324":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.3,inputPrice:3,outputPrice:4.5},"DeepSeek-V3.1":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:3,outputPrice:4.5},"DeepSeek-V3.1-Terminus":{maxTokens:7168,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:3,outputPrice:4.5},"Llama-4-Maverick-17B-128E-Instruct":{maxTokens:4096,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,temperature:.6,inputPrice:.63,outputPrice:1.8},"Meta-Llama-3.1-8B-Instruct":{maxTokens:4096,contextWindow:16384,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.1,outputPrice:.2},"Meta-Llama-3.3-70B-Instruct":{maxTokens:3072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.6,outputPrice:1.2},"MiniMax-M2.5":{maxTokens:16384,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,temperature:1,inputPrice:.3,outputPrice:1.2},"Qwen3-235B":{maxTokens:4096,contextWindow:65536,supportsImages:!1,supportsPromptCache:!1,temperature:.7,inputPrice:.4,outputPrice:.8},"Qwen3-32B":{maxTokens:4096,contextWindow:32768,supportsImages:!1,supportsPromptCache:!1,temperature:.6,inputPrice:.4,outputPrice:.8}},Wcr="zai-glm-4.7",Eke={"zai-glm-4.7":{maxTokens:4e4,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,temperature:.9,inputPrice:0,outputPrice:0,description:"Highly capable general-purpose model on Cerebras (up to 1,000 tokens/s), competitive with leading proprietary models on coding tasks."},"gpt-oss-120b":{maxTokens:65536,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Intelligent general purpose model with 3,000 tokens/s"},"qwen-3-235b-a22b-instruct-2507":{maxTokens:64e3,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Intelligent model with ~1400 tokens/s"}},s0e="moonshotai/kimi-k2-instruct-0905",iL={"openai/gpt-oss-120b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.15,outputPrice:.75,description:"A state-of-the-art 120B open-weight Mixture-of-Experts language model optimized for strong reasoning, tool use, and efficient deployment on large GPUs"},"openai/gpt-oss-20b":{maxTokens:32766,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.5,description:"A compact 20B open-weight Mixture-of-Experts language model designed for strong reasoning and tool use, ideal for edge devices and local inference."},"compound-beta":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Compound model using Llama 4 Scout for core reasoning with Llama 3.3 70B for routing and tool use. Excellent for plan/act workflows."},"compound-beta-mini":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Lightweight compound model for faster inference while maintaining tool use capabilities."},"deepseek-r1-distill-llama-70b":{maxTokens:131072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.75,outputPrice:.99,description:"DeepSeek R1 reasoning capabilities distilled into Llama 70B architecture. Excellent for complex problem-solving and planning."},"meta-llama/llama-4-maverick-17b-128e-instruct":{maxTokens:8192,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:.2,outputPrice:.6,description:"Meta's Llama 4 Maverick 17B model with 128 experts, supports vision and multimodal tasks."},"meta-llama/llama-4-scout-17b-16e-instruct":{maxTokens:8192,contextWindow:131072,supportsImages:!0,supportsPromptCache:!1,inputPrice:.11,outputPrice:.34,description:"Meta's Llama 4 Scout 17B model with 16 experts, optimized for fast inference and general tasks."},"llama-3.3-70b-versatile":{maxTokens:32768,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.59,outputPrice:.79,description:"Meta's latest Llama 3.3 70B model optimized for versatile use cases with excellent performance and speed."},"llama-3.1-8b-instant":{maxTokens:131072,contextWindow:131072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.08,description:"Fast and efficient Llama 3.1 8B model optimized for speed, low latency, and reliable tool execution."},"moonshotai/kimi-k2-instruct":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:1,outputPrice:3,cacheReadsPrice:.5,description:"Kimi K2 is Moonshot AI's state-of-the-art Mixture-of-Experts (MoE) language model with 1 trillion total parameters and 32 billion activated parameters."},"moonshotai/kimi-k2-instruct-0905":{maxTokens:16384,contextWindow:262144,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.5,cacheReadsPrice:.15,description:"Kimi K2 model gets a new version update: Agentic coding: more accurate, better generalization across scaffolds. Frontend coding: improved aesthetics and functionalities on web, 3d, and other tasks. Context length: extended from 128k to 256k, providing better long-horizon support."}},zcr="anthropic/claude-3-7-sonnet-latest",EGn={maxTokens:8192,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,inputPrice:3,outputPrice:15,cacheWritesPrice:3.75,cacheReadsPrice:.3,description:"Anthropic's most intelligent model. Highest level of intelligence and capability."},dit="anthropic--claude-3.5-sonnet",eh="Pricing is calculated using SAP's Capacity Units rather than direct USD pricing.",fit={"anthropic--claude-4.5-haiku":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4.6-sonnet":{maxTokens:8192,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4.5-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4.5-opus":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-4-opus":{maxTokens:32e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-3.7-sonnet":{maxTokens:64e3,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"anthropic--claude-3.5-sonnet":{maxTokens:8192,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"anthropic--claude-3-sonnet":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"anthropic--claude-3-haiku":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"anthropic--claude-3-opus":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gemini-2.5-pro":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,thinkingConfig:{maxBudget:32767},description:eh},"gemini-2.5-flash":{maxTokens:65536,contextWindow:1048576,supportsImages:!0,supportsPromptCache:!0,thinkingConfig:{maxBudget:24576},description:eh},"gpt-4":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gpt-4o":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gpt-4o-mini":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"gpt-4.1":{maxTokens:32768,contextWindow:1047576,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-4.1-nano":{maxTokens:32768,contextWindow:1047576,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-5":{maxTokens:128e3,contextWindow:272e3,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-5-nano":{maxTokens:128e3,contextWindow:272e3,supportsImages:!0,supportsPromptCache:!0,description:eh},"gpt-5-mini":{maxTokens:128e3,contextWindow:272e3,supportsImages:!0,supportsPromptCache:!0,description:eh},o1:{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},o3:{maxTokens:1e5,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},"o3-mini":{maxTokens:4096,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!1,description:eh},"o4-mini":{maxTokens:1e5,contextWindow:2e5,supportsImages:!0,supportsPromptCache:!0,description:eh},sonar:{maxTokens:128e3,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,description:eh},"sonar-pro":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,description:eh}},u0e={"kimi-k2.5":{maxTokens:32e3,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:.6,outputPrice:3,cacheReadsPrice:.1,temperature:1},"kimi-k2-0905-preview":{maxTokens:16384,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.5,temperature:.6},"kimi-k2-thinking-turbo":{maxTokens:32e3,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.4,outputPrice:10,temperature:1}},c0e="kimi-k2-0905-preview",hit="DeepSeek-V3",pit={"DeepSeek-V3":{maxTokens:16384,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.1,cacheWritesPrice:0,cacheReadsPrice:0},"DeepSeek-R1":{maxTokens:16384,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:2.2,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:8192,outputPrice:2.2}},"deepseek-r1-250528":{maxTokens:16384,contextWindow:64e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.55,outputPrice:2.2,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:8192,outputPrice:2.2}},"qwen3-235b-a22b":{maxTokens:8192,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.1,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:4096,outputPrice:1.1}},"qwen3-32b":{maxTokens:8192,contextWindow:32e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.27,outputPrice:1.1,cacheWritesPrice:0,cacheReadsPrice:0,thinkingConfig:{maxBudget:4096,outputPrice:1.1}}},Nte={"moonshotai/Kimi-K2-Thinking":{maxTokens:163800,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"Kimi K2 Thinking - A model with enhanced reasoning capabilities from Kimi K2",supportsReasoning:!0},"zai-org/GLM-4.6":{maxTokens:2e5,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.2,cacheWritesPrice:0,cacheReadsPrice:0,description:"Frontier open model with advanced agentic, reasoning and coding capabilities",supportsReasoning:!0},"deepseek-ai/DeepSeek-R1":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.55,outputPrice:5.95,cacheWritesPrice:0,cacheReadsPrice:0,description:"DeepSeek's first-generation reasoning model",supportsReasoning:!0},"deepseek-ai/DeepSeek-R1-0528":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:2.55,outputPrice:5.95,cacheWritesPrice:0,cacheReadsPrice:0,description:"The latest revision of DeepSeek's first-generation reasoning model",supportsReasoning:!0},"deepseek-ai/DeepSeek-V3-0324":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:.77,outputPrice:.77,cacheWritesPrice:0,cacheReadsPrice:0,description:"Fast general-purpose LLM with enhanced reasoning capabilities",supportsReasoning:!0},"deepseek-ai/DeepSeek-V3.1":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:.5,outputPrice:1.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"Extremely capable general-purpose LLM with hybrid reasoning capabilities and advanced tool calling",supportsReasoning:!0},"deepseek-ai/DeepSeek-V3.2":{maxTokens:131072,contextWindow:163840,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:.45,cacheWritesPrice:0,cacheReadsPrice:0,description:"DeepSeek's hybrid reasoning model with efficient long context scaling with GPT-5 level performance",supportsReasoning:!0},"Qwen/Qwen3-235B-A22B-Instruct-2507":{maxTokens:262144,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.22,outputPrice:.8,cacheWritesPrice:0,cacheReadsPrice:0,description:"Mixture-of-experts LLM with math and reasoning capabilities",supportsReasoning:!1},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{maxTokens:262144,contextWindow:262144,supportsImages:!1,supportsPromptCache:!1,inputPrice:.38,outputPrice:1.53,cacheWritesPrice:0,cacheReadsPrice:0,description:"Mixture-of-experts LLM with advanced coding and reasoning capabilities",supportsReasoning:!1},"openai/gpt-oss-120b":{maxTokens:128072,contextWindow:128072,supportsImages:!1,supportsPromptCache:!1,inputPrice:.1,outputPrice:.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"Extremely capable general-purpose LLM with strong, controllable reasoning capabilities",supportsReasoning:!0},"moonshotai/Kimi-K2-Instruct-0905":{maxTokens:168e3,contextWindow:262e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.6,outputPrice:2.5,cacheWritesPrice:0,cacheReadsPrice:0,description:"State of the art language model for agentic and coding tasks. September Update.",supportsReasoning:!1}},Ait="zai-org/GLM-4.6",yGn="glm-5",Kcr={"glm-5":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.2,inputPrice:1,outputPrice:3.2},"glm-4.7":{maxTokens:131e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2},"glm-4.6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2}},CGn="glm-5",jcr={"glm-5":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.2,inputPrice:1,outputPrice:3.2},"glm-4.7":{maxTokens:131e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2},"glm-4.6":{maxTokens:128e3,contextWindow:2e5,supportsImages:!1,supportsPromptCache:!0,cacheReadsPrice:.11,inputPrice:.6,outputPrice:2.2}},git="accounts/fireworks/models/kimi-k2p5",mit={"accounts/fireworks/models/kimi-k2p5":{maxTokens:16384,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:.6,outputPrice:3,cacheWritesPrice:.6,cacheReadsPrice:.1,description:"Moonshot's flagship open agentic model. Kimi K2.5 unifies vision and text, thinking and non-thinking modes, and single-agent and multi-agent execution."},"accounts/fireworks/models/qwen3-vl-30b-a3b-thinking":{maxTokens:32768,contextWindow:262144,supportsImages:!0,supportsPromptCache:!0,inputPrice:.15,outputPrice:.6,cacheWritesPrice:.15,cacheReadsPrice:.07,description:"Reasoning-enabled Qwen3-VL model with strong multimodal understanding, long context support, and function calling."},"accounts/fireworks/models/qwen3-vl-30b-a3b-instruct":{maxTokens:32768,contextWindow:262144,supportsImages:!0,supportsPromptCache:!1,inputPrice:.15,outputPrice:.6,description:"Qwen3-VL instruct model with strong multimodal reasoning, long context support, and function calling."},"accounts/fireworks/models/deepseek-v3p2":{maxTokens:16384,contextWindow:163840,supportsImages:!1,supportsPromptCache:!0,inputPrice:.56,outputPrice:1.68,cacheWritesPrice:.56,cacheReadsPrice:.28,description:"DeepSeek V3.2 model tuned for high computational efficiency and strong reasoning and agent performance."},"accounts/fireworks/models/glm-4p7":{maxTokens:16384,contextWindow:202752,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.2,cacheWritesPrice:.6,cacheReadsPrice:.3,description:"GLM-4.7 is a next-generation general-purpose model optimized for coding, reasoning, and agentic workflows."},"accounts/fireworks/models/glm-5":{maxTokens:16384,contextWindow:202752,supportsImages:!1,supportsPromptCache:!0,inputPrice:1,outputPrice:3.2,cacheWritesPrice:1,cacheReadsPrice:.2,description:"GLM-5 is Z.ai's flagship reasoning model for complex systems engineering and long-horizon agentic tasks."},"accounts/fireworks/models/minimax-m2p5":{maxTokens:16384,contextWindow:196608,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:.03,description:"MiniMax M2.5 is built for state-of-the-art coding, agentic tool use."},"accounts/fireworks/models/minimax-m2p1":{maxTokens:16384,contextWindow:196608,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.3,cacheReadsPrice:.03,description:"MiniMax M2.1 is tuned for strong real-world performance across coding, agent-driven, and workflow-heavy tasks."},"accounts/fireworks/models/gpt-oss-120b":{maxTokens:16384,contextWindow:131072,supportsImages:!1,supportsPromptCache:!0,inputPrice:.15,outputPrice:.6,cacheWritesPrice:.15,cacheReadsPrice:.01,description:"OpenAI gpt-oss-120b open-weight model for production and high-reasoning use cases."}},Eit={"qwen3-coder-plus":{maxTokens:65536,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0,description:"Qwen3 Coder Plus - High-performance coding model with 1M context window for large codebases"},"qwen3-coder-flash":{maxTokens:65536,contextWindow:1e6,supportsImages:!1,supportsPromptCache:!1,inputPrice:0,outputPrice:0,cacheWritesPrice:0,cacheReadsPrice:0,description:"Qwen3 Coder Flash - Fast coding model with 1M context window optimized for speed"}},$cr="qwen3-coder-plus",yit="MiniMax-M2.7",Cit={"MiniMax-M2.7":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.375,cacheReadsPrice:.06,description:"Latest flagship model with enhanced reasoning and coding"},"MiniMax-M2.7-highspeed":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.6,outputPrice:2.4,cacheWritesPrice:.375,cacheReadsPrice:.06,description:"High-speed version of M2.7 for low-latency scenarios"},"MiniMax-M2.5":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2.5-highspeed":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,supportsReasoning:!0,inputPrice:.6,outputPrice:2.4,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2.1":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2.1-lightning":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!0,inputPrice:.6,outputPrice:2.4,cacheWritesPrice:.375,cacheReadsPrice:.03},"MiniMax-M2":{maxTokens:128e3,contextWindow:192e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.3,outputPrice:1.2,cacheWritesPrice:0,cacheReadsPrice:0}},vit="Hermes-4-405B",bit={"Hermes-4-405B":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.09,outputPrice:.37,description:"This is the largest model in the Hermes 4 family, and it is the fullest expression of our design, focused on advanced reasoning and creative depth rather than optimizing inference speed or cost."},"Hermes-4-70B":{maxTokens:8192,contextWindow:128e3,supportsImages:!1,supportsPromptCache:!1,inputPrice:.05,outputPrice:.2,description:"This incarnation of Hermes 4 balances scale and size. It handles complex reasoning tasks, while staying fast and cost effective. A versatile choice for many use cases."}}});function RH(t,e){let r=flu[t];return r?`${e}Mode${r}`:`${e}ModeApiModelId`}var flu,yke=ke(()=>{"use strict";rs();flu={openrouter:"OpenRouterModelId",dirac:"DiracModelId",openai:"OpenAiModelId",ollama:"OllamaModelId",lmstudio:"LmStudioModelId",litellm:"LiteLlmModelId",requesty:"RequestyModelId",together:"TogetherModelId",fireworks:"FireworksModelId",sapaicore:"SapAiCoreModelId",groq:"GroqModelId",baseten:"BasetenModelId",huggingface:"HuggingFaceModelId",aihubmix:"AihubmixModelId",hicap:"HicapModelId",nousResearch:"NousResearchModelId","vercel-ai-gateway":"VercelAiGatewayModelId"}});var Ycr,xGn=ke(()=>{"use strict";Ycr=(a=>(a.production="production",a.staging="staging",a.local="local",a.selfHosted="selfHosted",a))(Ycr||{})});var Le,Pr=ke(()=>{"use strict";Le=class t{static isVerbose=!1;static subscribers=new Set;static output(e){for(let r of t.subscribers)try{r(e)}catch{}}static subscribe(e){t.subscribers.add(e)}static error(e,...r){t.#e("ERROR",e,void 0,r)}static warn(e,...r){t.#e("WARN",e,void 0,r)}static log(e,...r){t.#e("LOG",e,void 0,r)}static debug(e,...r){t.#e("DEBUG",e,void 0,r)}static info(e,...r){t.#e("INFO",e,void 0,r)}static trace(e,...r){t.#e("TRACE",e,void 0,r)}static#e(e,r,i,a){try{let o=r;a.length>0&&(o+=` ${a.map(s=>{if(s instanceof Error)return`${s.message}${s.stack?`
11
11
  ${s.stack}`:""}`;try{return typeof s=="object"?JSON.stringify(s):String(s)}catch{return String(s)}}).join(" ")}`);let n=i?.message?` ${i.message}${i.stack?`
12
12
  ${i.stack}`:""}`:"";t.output(`${e} ${o}${n}`.trimEnd())}catch{}}}});import*as l0e from"fs/promises";import*as IGn from"os";import*as Jcr from"path";var U3,BI,Q3,q3=ke(()=>{"use strict";xGn();Pr();U3=class extends Error{constructor(e){super(e),this.name="DiracConfigurationError"}},BI=class t{static _instance=null;static _initialized=!1;static _extensionFsPath;onPremiseConfig=null;environment="production";isBundled=!1;constructor(){let e=process?.env?.DIRAC_ENVIRONMENT_OVERRIDE||process?.env?.DIRAC_ENVIRONMENT;e&&Object.values(Ycr).includes(e)&&(this.environment=e)}static async initialize(e){if(t._initialized)return;t._extensionFsPath=e,t._instance=new t;let r=await t.loadEndpointsFile();r&&(t._instance.onPremiseConfig=r,Le.log("Dirac running in self-hosted mode with custom endpoints")),t._initialized=!0}static isInitialized(){return t._initialized}static isSelfHosted(){return t._initialized?t.config.environment==="selfHosted":!0}static isBundledConfig(){if(!t._initialized||!t._instance)throw new Error("DiracEndpoint not initialized. Call DiracEndpoint.initialize() first.");return t._instance.isBundled}static get instance(){if(!t._initialized||!t._instance)throw new Error("DiracEndpoint not initialized. Call DiracEndpoint.initialize() first.");return t._instance}static get config(){return t.instance.config()}static getEndpointsFilePath(){return Jcr.join(IGn.homedir(),".dirac","endpoints.json")}static getBundledEndpointsFilePath(){return Jcr.join(t._extensionFsPath,"endpoints.json")}static async loadEndpointsFile(){let e=t.getBundledEndpointsFilePath();try{await l0e.access(e);let i=await l0e.readFile(e,"utf8"),a;try{a=JSON.parse(i)}catch(n){throw new U3(`Invalid JSON in bundled endpoints configuration file (${e}): ${n instanceof Error?n.message:String(n)}`)}let o=t.validateEndpointsSchema(a,e);return t._instance.isBundled=!0,o}catch(i){if(i instanceof U3)throw i}let r=t.getEndpointsFilePath();try{await l0e.access(r)}catch{return null}try{let i=await l0e.readFile(r,"utf8"),a;try{a=JSON.parse(i)}catch(o){throw new U3(`Invalid JSON in user endpoints configuration file (${r}): ${o instanceof Error?o.message:String(o)}`)}return t.validateEndpointsSchema(a,r)}catch(i){throw i instanceof U3?i:new U3(`Failed to read user endpoints configuration file (${r}): ${i instanceof Error?i.message:String(i)}`)}}static validateEndpointsSchema(e,r){if(typeof e!="object"||e===null)throw new U3(`Endpoints configuration file (${r}) must contain a JSON object`);let i=e,a=["appBaseUrl","apiBaseUrl"],o={};for(let n of a){let s=i[n];if(s==null)throw new U3(`Missing required field "${n}" in endpoints configuration file (${r})`);if(typeof s!="string")throw new U3(`Field "${n}" in endpoints configuration file (${r}) must be a string`);if(!s.trim())throw new U3(`Field "${n}" in endpoints configuration file (${r}) cannot be empty`);try{new URL(s)}catch{throw new U3(`Field "${n}" in endpoints configuration file (${r}) must be a valid URL. Got: "${s}"`)}o[n]=s}return o}config(){return this.getEnvironment()}setEnvironment(e){if(this.onPremiseConfig)throw new Error("Cannot change environment in on-premise mode. Endpoints are configured via ~/.dirac/endpoints.json");switch(e.toLowerCase()){case"staging":this.environment="staging";break;case"local":this.environment="local";break;default:this.environment="production";break}}getEnvironment(){if(this.onPremiseConfig)return{environment:"selfHosted",appBaseUrl:this.onPremiseConfig.appBaseUrl,apiBaseUrl:this.onPremiseConfig.apiBaseUrl};switch(this.environment){case"staging":return{environment:"staging",appBaseUrl:"https://staging-app.dirac.run",apiBaseUrl:"https://core-api.staging.int.dirac.run"};case"local":return{environment:"local",appBaseUrl:"http://localhost:3000",apiBaseUrl:"http://localhost:7777"};default:return{environment:"production",appBaseUrl:"https://app.dirac.run",apiBaseUrl:"https://api.dirac.run"}}}},Q3={config:()=>BI.config,setEnvironment:t=>BI.instance.setEnvironment(t),getEnvironment:()=>BI.instance.getEnvironment()}});var mHn=J((cpp,gHn)=>{"use strict";function W3(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}gHn.exports=W3;W3.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};W3.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};W3.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};W3.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};W3.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};W3.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};W3.prototype.start=W3.prototype.try;W3.prototype.errors=function(){return this._errors};W3.prototype.attempts=function(){return this._attempts};W3.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var a=this._errors[i],o=a.message,n=(t[o]||0)+1;t[o]=n,n>=r&&(e=a,r=n)}return e}});var EHn=J(jte=>{"use strict";var adu=mHn();jte.operation=function(t){var e=jte.timeouts(t);return new adu(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};jte.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<e.retries;a++)i.push(this.createTimeout(a,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(a,e)),i.sort(function(o,n){return o-n}),i};jte.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};jte.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var a=0;a<r.length;a++){var o=r[a],n=t[o];t[o]=function(u){var d=jte.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(c){d.retry(c)||(c&&(arguments[0]=d.mainError()),h.apply(this,arguments))}),d.attempt(function(){u.apply(t,f)})}.bind(t,n),t[o].options=e}}});var wlr=J((dpp,yHn)=>{"use strict";yHn.exports=EHn()});var vHn=J((fpp,Zit)=>{"use strict";var odu=wlr(),sdu=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"],Xit=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}},udu=(t,e,r)=>{let i=r.retries-(e-1);return t.attemptNumber=e,t.retriesLeft=i,t},cdu=t=>sdu.includes(t),CHn=(t,e)=>new Promise((r,i)=>{e={onFailedAttempt:()=>{},retries:10,...e};let a=odu.operation(e);a.attempt(async o=>{try{r(await t(o))}catch(n){if(!(n instanceof Error)){i(new TypeError(`Non-error was thrown: "${n}". You should only throw errors.`));return}if(n instanceof Xit)a.stop(),i(n.originalError);else if(n instanceof TypeError&&!cdu(n.message))a.stop(),i(n);else{udu(n,o,e);try{await e.onFailedAttempt(n)}catch(s){i(s);return}a.retry(n)||i(a.mainError())}}})});Zit.exports=CHn;Zit.exports.default=CHn;Zit.exports.AbortError=Xit});var Vke=J((hpp,RHn)=>{"use strict";var eat=Object.prototype.hasOwnProperty,wHn=Object.prototype.toString,bHn=Object.defineProperty,SHn=Object.getOwnPropertyDescriptor,xHn=function(e){return typeof Array.isArray=="function"?Array.isArray(e):wHn.call(e)==="[object Array]"},IHn=function(e){if(!e||wHn.call(e)!=="[object Object]")return!1;var r=eat.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&eat.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;var a;for(a in e);return typeof a>"u"||eat.call(e,a)},_Hn=function(e,r){bHn&&r.name==="__proto__"?bHn(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},THn=function(e,r){if(r==="__proto__")if(eat.call(e,r)){if(SHn)return SHn(e,r).value}else return;return e[r]};RHn.exports=function t(){var e,r,i,a,o,n,s=arguments[0],u=1,d=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});u<d;++u)if(e=arguments[u],e!=null)for(r in e)i=THn(s,r),a=THn(e,r),s!==a&&(f&&a&&(IHn(a)||(o=xHn(a)))?(o?(o=!1,n=i&&xHn(i)?i:[]):n=i&&IHn(i)?i:{},_Hn(s,{name:r,newValue:t(f,n,a)})):typeof a<"u"&&_Hn(s,{name:r,newValue:a}));return s}});var BHn=J((ppp,ldu)=>{ldu.exports={name:"gaxios",version:"7.1.3",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","@types/tmp":"0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.0.0",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.0-beta.13","null-loader":"^4.0.0","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"^5.8.3",webpack:"^5.35.0","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2",rimraf:"^5.0.1"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var kHn=J((App,DHn)=>{"use strict";var ddu=BHn();DHn.exports={pkg:ddu}});var Dlr=J(z3=>{"use strict";var PHn=z3&&z3.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(z3,"__esModule",{value:!0});z3.GaxiosError=z3.GAXIOS_ERROR_SYMBOL=void 0;z3.defaultErrorRedactor=OHn;var MHn=PHn(Vke()),fdu=PHn(kHn()),Rlr=fdu.default.pkg;z3.GAXIOS_ERROR_SYMBOL=Symbol.for(`${Rlr.name}-gaxios-error`);var Blr=class t extends Error{config;response;code;status;error;[z3.GAXIOS_ERROR_SYMBOL]=Rlr.version;static[Symbol.hasInstance](e){return e&&typeof e=="object"&&z3.GAXIOS_ERROR_SYMBOL in e&&e[z3.GAXIOS_ERROR_SYMBOL]===Rlr.version?!0:Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,r,i,a){if(super(e,{cause:a}),this.config=r,this.response=i,this.error=a instanceof Error?a:void 0,this.config=(0,MHn.default)(!0,{},r),this.response&&(this.response.config=(0,MHn.default)(!0,{},this.response.config)),this.response){try{this.response.data=hdu(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}a instanceof DOMException?this.code=a.name:a&&typeof a=="object"&&"code"in a&&(typeof a.code=="string"||typeof a.code=="number")&&(this.code=a.code)}static extractAPIErrorFromResponse(e,r="The request failed"){let i=r;if(typeof e.data=="string"&&(i=e.data),e.data&&typeof e.data=="object"&&"error"in e.data&&e.data.error&&!e.ok){if(typeof e.data.error=="string")return{message:e.data.error,code:e.status,status:e.statusText};if(typeof e.data.error=="object"){i="message"in e.data.error&&typeof e.data.error.message=="string"?e.data.error.message:i;let a="status"in e.data.error&&typeof e.data.error.status=="string"?e.data.error.status:e.statusText,o="code"in e.data.error&&typeof e.data.error.code=="number"?e.data.error.code:e.status;if("errors"in e.data.error&&Array.isArray(e.data.error.errors)){let n=[];for(let s of e.data.error.errors)typeof s=="object"&&"message"in s&&typeof s.message=="string"&&n.push(s.message);return Object.assign({message:n.join(`
13
13
  `)||i,code:o,status:a},e.data.error)}return Object.assign({message:i,code:o,status:a},e.data.error)}}return{message:i,code:e.status,status:e.statusText}}};z3.GaxiosError=Blr;function hdu(t,e){switch(t){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}function OHn(t){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function r(o){o&&o.forEach((n,s)=>{(/^authentication$/i.test(s)||/^authorization$/i.test(s)||/secret/i.test(s))&&o.set(s,e)})}function i(o,n){if(typeof o=="object"&&o!==null&&typeof o[n]=="string"){let s=o[n];(/grant_type=/i.test(s)||/assertion=/i.test(s)||/secret/i.test(s))&&(o[n]=e)}}function a(o){!o||typeof o!="object"||(o instanceof FormData||o instanceof URLSearchParams||"forEach"in o&&"set"in o?o.forEach((n,s)=>{(["grant_type","assertion"].includes(s)||/secret/.test(s))&&o.set(s,e)}):("grant_type"in o&&(o.grant_type=e),"assertion"in o&&(o.assertion=e),"client_secret"in o&&(o.client_secret=e)))}return t.config&&(r(t.config.headers),i(t.config,"data"),a(t.config.data),i(t.config,"body"),a(t.config.body),t.config.url.searchParams.has("token")&&t.config.url.searchParams.set("token",e),t.config.url.searchParams.has("client_secret")&&t.config.url.searchParams.set("client_secret",e)),t.response&&(OHn({config:t.response.config}),r(t.response.headers),t.response.bodyUsed&&(i(t.response,"data"),a(t.response.data))),t}});var FHn=J(klr=>{"use strict";Object.defineProperty(klr,"__esModule",{value:!0});klr.getRetryConfig=pdu;async function pdu(t){let e=NHn(t);if(!t||!t.config||!e&&!t.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let r=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||r,t.config.retryConfig=e,!await(e.shouldRetry||Adu)(t))return{shouldRetry:!1,config:t.config};let a=gdu(e);t.config.retryConfig.currentRetryAttempt+=1;let o=e.retryBackoff?e.retryBackoff(t,a):new Promise(n=>{setTimeout(n,a)});return e.onRetryAttempt&&await e.onRetryAttempt(t),await o,{shouldRetry:!0,config:t.config}}function Adu(t){let e=NHn(t);if(t.config.signal?.aborted&&t.code!=="TimeoutError"||t.code==="AbortError"||!e||e.retry===0||!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries||!e.httpMethodsToRetry||!e.httpMethodsToRetry.includes(t.config.method?.toUpperCase()||"GET"))return!1;if(t.response&&t.response.status){let r=!1;for(let[i,a]of e.statusCodesToRetry){let o=t.response.status;if(o>=i&&o<=a){r=!0;break}}if(!r)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}function NHn(t){if(t&&t.config&&t.config.retryConfig)return t.config.retryConfig}function gdu(t){let r=(t.currentRetryAttempt?0:t.retryDelay??100)+(Math.pow(t.retryDelayMultiplier,t.currentRetryAttempt)-1)/2*1e3,i=t.totalTimeout-(Date.now()-t.timeOfFirstRequest);return Math.min(r,i,t.maxRetryDelay)}});var Plr=J(tat=>{"use strict";Object.defineProperty(tat,"__esModule",{value:!0});tat.GaxiosInterceptorManager=void 0;var Mlr=class extends Set{};tat.GaxiosInterceptorManager=Mlr});var Wke=J((ypp,LHn)=>{"use strict";var F0e=1e3,L0e=F0e*60,U0e=L0e*60,$te=U0e*24,mdu=$te*7,Edu=$te*365.25;LHn.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return ydu(t);if(r==="number"&&isFinite(t))return e.long?vdu(t):Cdu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function ydu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Edu;case"weeks":case"week":case"w":return r*mdu;case"days":case"day":case"d":return r*$te;case"hours":case"hour":case"hrs":case"hr":case"h":return r*U0e;case"minutes":case"minute":case"mins":case"min":case"m":return r*L0e;case"seconds":case"second":case"secs":case"sec":case"s":return r*F0e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Cdu(t){var e=Math.abs(t);return e>=$te?Math.round(t/$te)+"d":e>=U0e?Math.round(t/U0e)+"h":e>=L0e?Math.round(t/L0e)+"m":e>=F0e?Math.round(t/F0e)+"s":t+"ms"}function vdu(t){var e=Math.abs(t);return e>=$te?rat(t,e,$te,"day"):e>=U0e?rat(t,e,U0e,"hour"):e>=L0e?rat(t,e,L0e,"minute"):e>=F0e?rat(t,e,F0e,"second"):t+" ms"}function rat(t,e,r,i){var a=e>=r*1.5;return Math.round(t/r)+" "+i+(a?"s":"")}});var Olr=J((Cpp,UHn)=>{"use strict";function bdu(t){r.debug=r,r.default=r,r.coerce=u,r.disable=n,r.enable=a,r.enabled=s,r.humanize=Wke(),r.destroy=d,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let h=0;for(let c=0;c<f.length;c++)h=(h<<5)-h+f.charCodeAt(c),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=e;function r(f){let h,c=null,p,A;function g(...y){if(!g.enabled)return;let I=g,w=Number(new Date),R=w-(h||w);I.diff=R,I.prev=h,I.curr=w,h=w,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let B=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(S,b)=>{if(S==="%%")return"%";B++;let T=r.formatters[b];if(typeof T=="function"){let m=y[B];S=T.call(I,m),y.splice(B,1),B--}return S}),r.formatArgs.call(I,y),(I.log||r.log).apply(I,y)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=i,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>c!==null?c:(p!==r.namespaces&&(p=r.namespaces,A=r.enabled(f)),A),set:y=>{c=y}}),typeof r.init=="function"&&r.init(g),g}function i(f,h){let c=r(this.namespace+(typeof h>"u"?":":h)+f);return c.log=this.log,c}function a(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let c of h)c[0]==="-"?r.skips.push(c.slice(1)):r.names.push(c)}function o(f,h){let c=0,p=0,A=-1,g=0;for(;c<f.length;)if(p<h.length&&(h[p]===f[c]||h[p]==="*"))h[p]==="*"?(A=p,g=c,p++):(c++,p++);else if(A!==-1)p=A+1,g++,c=g;else return!1;for(;p<h.length&&h[p]==="*";)p++;return p===h.length}function n(){let f=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),f}function s(f){for(let h of r.skips)if(o(f,h))return!1;for(let h of r.names)if(o(f,h))return!0;return!1}function u(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}UHn.exports=bdu});var QHn=J((MI,nat)=>{"use strict";MI.formatArgs=xdu;MI.save=Idu;MI.load=_du;MI.useColors=Sdu;MI.storage=Tdu();MI.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();MI.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Sdu(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xdu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+nat.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(r++,a==="%c"&&(i=r))}),t.splice(i,0,e)}MI.log=console.debug||console.log||(()=>{});function Idu(t){try{t?MI.storage.setItem("debug",t):MI.storage.removeItem("debug")}catch{}}function _du(){let t;try{t=MI.storage.getItem("debug")||MI.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Tdu(){try{return localStorage}catch{}}nat.exports=Olr()(MI);var{formatters:wdu}=nat.exports;wdu.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var GHn={};Zi(GHn,{createSupportsColor:()=>Nlr,default:()=>Pdu});import Flr from"node:process";import Rdu from"node:os";import qHn from"node:tty";function K3(t,e=globalThis.Deno?globalThis.Deno.args:Flr.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),a=e.indexOf("--");return i!==-1&&(a===-1||i<a)}function Bdu(){if("FORCE_COLOR"in F0)return F0.FORCE_COLOR==="true"?1:F0.FORCE_COLOR==="false"?0:F0.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(F0.FORCE_COLOR,10),3)}function Ddu(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function kdu(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=Bdu();i!==void 0&&(iat=i);let a=r?iat:i;if(a===0)return 0;if(r){if(K3("color=16m")||K3("color=full")||K3("color=truecolor"))return 3;if(K3("color=256"))return 2}if("TF_BUILD"in F0&&"AGENT_NAME"in F0)return 1;if(t&&!e&&a===void 0)return 0;let o=a||0;if(F0.TERM==="dumb")return o;if(Flr.platform==="win32"){let n=Rdu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in F0)return"GITHUB_ACTIONS"in F0||"GITEA_ACTIONS"in F0?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(n=>n in F0)||F0.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in F0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(F0.TEAMCITY_VERSION)?1:0;if(F0.COLORTERM==="truecolor"||F0.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in F0){let n=Number.parseInt((F0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(F0.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(F0.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(F0.TERM)||"COLORTERM"in F0?1:o}function Nlr(t,e={}){let r=kdu(t,{streamIsTTY:t&&t.isTTY,...e});return Ddu(r)}var F0,iat,Mdu,Pdu,HHn=ke(()=>{"use strict";({env:F0}=Flr);K3("no-color")||K3("no-colors")||K3("color=false")||K3("color=never")?iat=0:(K3("color")||K3("colors")||K3("color=true")||K3("color=always"))&&(iat=1);Mdu={stdout:Nlr({isTTY:qHn.isatty(1)}),stderr:Nlr({isTTY:qHn.isatty(2)})},Pdu=Mdu});var WHn=J((l1,oat)=>{"use strict";var Odu=qe("tty"),aat=qe("util");l1.init=Gdu;l1.log=Udu;l1.formatArgs=Fdu;l1.save=Qdu;l1.load=qdu;l1.useColors=Ndu;l1.destroy=aat.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");l1.colors=[6,2,3,4,5,1];try{let t=(HHn(),qt(GHn));t&&(t.stderr||t).level>=2&&(l1.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}l1.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,o)=>o.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function Ndu(){return"colors"in l1.inspectOpts?!!l1.inspectOpts.colors:Odu.isatty(process.stderr.fd)}function Fdu(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,a="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${a};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
@@ -1727,7 +1727,7 @@ API keys and subscription plans allow different models. Make sure the selected m
1727
1727
 
1728
1728
  ---
1729
1729
 
1730
- ${a}`):a}getModel(){return{id:"dify-workflow",info:{maxTokens:8192,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Dify workflow - model selection is configured in your Dify application"}}}async uploadFile(e,r,i="dirac-user"){let a=new FormData;a.append("file",new Blob([new Uint8Array(e)]),r),a.append("user",i);let o=await Ro(`${this.baseUrl}/files/upload`,{method:"POST",headers:this.headers(),body:a});if(!o.ok){let n=await o.text();throw new Error(`Dify file upload error: ${o.status} ${o.statusText} - ${n}`)}return o.json()}async stopGeneration(e,r="dirac-user"){let i=await Ro(`${this.baseUrl}/chat-messages/${e}/stop`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify({user:r})});if(!i.ok){let a=await i.text();throw new Error(`Dify stop generation error: ${i.status} ${i.statusText} - ${a}`)}}async getConversationHistory(e,r="dirac-user",i,a=20){let o=new URLSearchParams({user:r,limit:a.toString()});i&&o.append("first_id",i);let n=await Ro(`${this.baseUrl}/conversations/${e}/messages?${o}`,{headers:this.headers()});if(!n.ok){let s=await n.text();throw new Error(`Dify get conversation history error: ${n.status} ${n.statusText} - ${s}`)}return n.json()}async getConversations(e="dirac-user",r,i=20,a="-updated_at"){let o=new URLSearchParams({user:e,limit:i.toString(),sort_by:a});r&&o.append("last_id",r);let n=await Ro(`${this.baseUrl}/conversations?${o}`,{headers:this.headers()});if(!n.ok){let s=await n.text();throw new Error(`Dify get conversations error: ${n.status} ${n.statusText} - ${s}`)}return n.json()}async deleteConversation(e,r="dirac-user"){let i=await Ro(`${this.baseUrl}/conversations/${e}`,{method:"DELETE",headers:this.jsonHeaders(),body:JSON.stringify({user:r})});if(!i.ok){let a=await i.text();throw new Error(`Dify delete conversation error: ${i.status} ${i.statusText} - ${a}`)}}async renameConversation(e,r="dirac-user",i,a=!1){let o={user:r,auto_generate:a};i&&(o.name=i);let n=await Ro(`${this.baseUrl}/conversations/${e}/name`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify(o)});if(!n.ok){let s=await n.text();throw new Error(`Dify rename conversation error: ${n.status} ${n.statusText} - ${s}`)}return n.json()}async submitMessageFeedback(e,r,i,a="dirac-user"){let o={rating:r,user:a};i&&(o.content=i);let n=await Ro(`${this.baseUrl}/messages/${e}/feedbacks`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify(o)});if(!n.ok){let s=await n.text();throw new Error(`Dify submit feedback error: ${n.status} ${n.statusText} - ${s}`)}}getCurrentConversationId(){return this.conversationId}setConversationId(e){this.conversationId=e}resetConversation(){this.conversationId=null,this.currentTaskId=null}jsonHeaders(){return{...this.headers(),"Content-Type":"application/json"}}headers(){return{...zs(),Authorization:`Bearer ${this.apiKey}`}}};rs();Mo();var iFe=class{options;client;constructor(e){this.options=e}ensureClient(){if(!this.client){if(!this.options.doubaoApiKey)throw new Error("Doubao API key is required");try{this.client=Ru({baseURL:"https://ark.cn-beijing.volces.com/api/v3/",apiKey:this.options.doubaoApiKey})}catch(e){throw new Error(`Error creating Doubao client: ${e.message}`)}}return this.client}getModel(){let e=this.options.apiModelId;if(e&&e in ait){let r=e;return{id:r,info:ait[r]}}return{id:Qcr,info:ait[Qcr]}}async*createMessage(e,r){let i=this.ensureClient(),a=this.getModel(),o=[{role:"system",content:e},...ko(r)],n=await i.chat.completions.create({model:a.id,max_completion_tokens:a.info.maxTokens,messages:o,stream:!0,stream_options:{include_usage:!0},temperature:0});for await(let s of n){let u=s.choices?.[0]?.delta;u?.content&&(yield{type:"text",text:u.content}),s.usage&&(yield{type:"usage",inputTokens:s.usage.prompt_tokens||0,outputTokens:s.usage.completion_tokens||0,cacheReadTokens:s.usage.prompt_cache_hit_tokens||0,cacheWriteTokens:s.usage.prompt_cache_miss_tokens||0})}}};Ia([_a()],iFe.prototype,"createMessage",1);rs();Mo();var aFe=class{options;client;constructor(e){this.options=e}ensureClient(){if(!this.client){if(!this.options.fireworksApiKey)throw new Error("Fireworks API key is required");try{this.client=Ru({baseURL:"https://api.fireworks.ai/inference/v1",apiKey:this.options.fireworksApiKey})}catch(e){throw new Error(`Error creating Fireworks client: ${e.message}`)}}return this.client}async*createMessage(e,r){let i=this.ensureClient(),a=this.options.fireworksModelId??"",o=[{role:"system",content:e},...ko(r)],n=await i.chat.completions.create({model:a,messages:o,stream:!0,stream_options:{include_usage:!0},temperature:0}),s=null;for await(let u of n){let d=u.choices?.[0]?.delta;(s||d?.content?.includes("<think>"))&&(s=(s||"")+(d.content??"")),d?.content&&!s&&(yield{type:"text",text:d.content}),(s||d&&"reasoning_content"in d&&d.reasoning_content)&&(yield{type:"reasoning",reasoning:d.content||d.reasoning_content||""},s?.includes("</think>")&&(s=null)),u.usage&&(yield{type:"usage",inputTokens:u.usage.prompt_tokens||0,outputTokens:u.usage.completion_tokens||0,cacheReadTokens:u.usage.prompt_cache_hit_tokens||0,cacheWriteTokens:u.usage.prompt_cache_miss_tokens||0})}}getModel(){let e=this.options.fireworksModelId;if(e&&e in mit){let r=e;return{id:r,info:mit[r]}}return{id:git,info:mit[git]}}};Ia([_a()],aFe.prototype,"createMessage",1);rs();rs();function oFe(t){if(!t)return!1;let e=t.toLowerCase();return e.includes("gemini")||e.includes("gpt")||e.startsWith("openai/o")||e.includes("/o")||e.startsWith("o")||e.includes("grok")}var $W=32768;function aEc(t){let e=qie(t.providerId);return["dirac","anthropic","bedrock","gemini","vertex","openrouter","openai","minimax","openai-native","openai-compatible","openai-codex","baseten","vercel-ai-gateway","deepseek","oca"].some(r=>e===r)}function VOi(t){return t.id.toLowerCase().includes("grok")}function LR(t){return t?t.includes("grok-4")||t.includes("devstral")||t.includes("glm"):!1}function gEt(t){let e=["sonnet","opus","haiku"];return t in NS||e.some(r=>t.includes(r))}function WOi(t){return qie(t).includes("gemini-2.5")}function zOi(t){let e=qie(t);return e.includes("gpt-5")||e.includes("gpt5")}function KOi(t){let e=qie(t);return e.includes("gpt-5.1")||e.includes("gpt-5-1")}function jOi(t){let e=qie(t);return e.includes("gemini3")||e.includes("gemini-3")}function mEt(t){let e=qie(t),r=e.startsWith("google/gemini"),i=e.startsWith("gemini-");return(r||i)&&e.includes("flash")}function $Oi(t){return["lmstudio","ollama"].includes(qie(t.providerId))}function EEt(t,e){if(!e||!aEc(t))return!1;let r=t.model.id.toLowerCase();return!0}function yEt(t,e){return!0}function qie(t){return t.trim().toLowerCase()}Yp();ao();Pr();var o1d=[/got status: 429/i,/429 Too Many Requests/i,/rate limit exceeded/i,/too many requests/i];function s1d(t){switch(t){case"low":return hre.LOW;case"medium":return hre.MEDIUM;case"high":case"xhigh":return hre.HIGH;default:return hre.LOW}}function u1d(t,e){return e&&e>0?Math.min(e,$W):$W}var Moe=class{options;client;constructor(e){this.options=e}ensureClient(){if(!this.client){let e=this.options,r=zs();if(e.isVertex){let i=this.options.vertexProjectId??"not-provided",a=this.options.vertexRegion??"not-provided";try{this.client=new Are({vertexai:!0,project:i,location:a,httpOptions:{headers:r}})}catch(o){throw new Error(`Error creating Gemini Vertex AI client: ${o.message}`)}}else{if(!e.geminiApiKey)throw new Error("API key is required for Google Gemini when not using Vertex AI");try{this.client=new Are({apiKey:e.geminiApiKey,httpOptions:{headers:r}})}catch(i){throw new Error(`Error creating Gemini client: ${i.message}`)}}}return this.client}async*createMessage(e,r,i){let a=this.ensureClient(),{id:o,info:n}=this.getModel(),s=Tge(r),u=new Map,d=this.options.thinkingBudgetTokens??0,f=n.thinkingConfig?.maxBudget??24576,h=Math.min(d,f),c,p=(this.options.reasoningEffort||"").toLowerCase(),A=!p||p==="none"?"low":p;n.thinkingConfig?.supportsThinkingLevel&&(c=s1d(A));let g=u1d(o,n.maxTokens),y={httpOptions:this.options.geminiBaseUrl?{baseUrl:this.options.geminiBaseUrl}:void 0,systemInstruction:e,temperature:n.temperature??1.9,topP:.8,...g!==void 0?{maxOutputTokens:g}:{}};n.thinkingConfig&&(y.thinkingConfig={thinkingBudget:c?void 0:h,thinkingLevel:c,includeThoughts:h>0||!!c});let I=Date.now(),w,R,B,v=!1,S,b,T=0,m=0,E=0,C=0,x,k,F=i?.length;(F||this.options.geminiSearchEnabled)&&(y.tools=[],F&&y.tools.push({functionDeclarations:i}),this.options.geminiSearchEnabled&&y.tools.push({googleSearch:{}}),y.toolConfig={},F&&(y.toolConfig.functionCallingConfig={mode:Got.ANY}),this.options.geminiSearchEnabled&&(y.toolConfig.includeServerSideToolInvocations=!0)),Le.info(`Gemini: generating content with model ${o}`,{temperature:y.temperature,topP:y.topP,maxOutputTokens:y.maxOutputTokens,thinkingConfig:y.thinkingConfig,tools:y.tools?.map(L=>L.functionDeclarations?"tools":Object.keys(L)[0])});try{let L=await a.models.generateContentStream({model:o,contents:s,config:{...y}}),U=!0,Q;for await(let G of L){let N=G.responseId||"gemini-response";U&&(R=Date.now(),B=R-I,U=!1);let M=G?.candidates?.[0]?.content?.parts||[];for(let D of M){D.thoughtSignature&&(Q=D.thoughtSignature);let O=D.thoughtSignature||Q;if(D.thought&&D.text?yield{type:"reasoning",id:G.responseId,reasoning:D.text||"",signature:O}:D.text&&(yield{type:"text",text:D.text,id:G.responseId,signature:O}),D.functionCall){let q=D.functionCall,H=Object.entries(q.args||{}).filter(([z,V])=>!!V);if(q.args&&H.length>0){let V=q.id?.trim()??(()=>{let W=u.get(N)??0;return u.set(N,W+1),`${N}-tool-${W}`})();yield{type:"tool_calls",id:G.responseId,tool_call:{call_id:V,function:{id:V,name:q.name,arguments:JSON.stringify(q.args)}},signature:O}}}}let P=G.candidates?.[0];P?.groundingMetadata&&(b=P.groundingMetadata),G.usageMetadata&&(w=G.responseId,x=G.usageMetadata,T=x.promptTokenCount??T,m=x.candidatesTokenCount??m,C=x.thoughtsTokenCount??C,E=x.cachedContentTokenCount??E,k=G.candidates?.[0]?.finishReason)}if(v=!0,x){let G=this.calculateCost({info:n,inputTokens:T,outputTokens:m,thoughtsTokenCount:C,cacheReadTokens:E});if(yield{type:"usage",inputTokens:T-E,outputTokens:m,thoughtsTokenCount:C,cacheReadTokens:E,cacheWriteTokens:0,totalCost:G,id:w,stopReason:k},b&&b.groundingChunks?.length>0){let N=`
1730
+ ${a}`):a}getModel(){return{id:"dify-workflow",info:{maxTokens:8192,contextWindow:128e3,supportsImages:!0,supportsPromptCache:!1,inputPrice:0,outputPrice:0,description:"Dify workflow - model selection is configured in your Dify application"}}}async uploadFile(e,r,i="dirac-user"){let a=new FormData;a.append("file",new Blob([new Uint8Array(e)]),r),a.append("user",i);let o=await Ro(`${this.baseUrl}/files/upload`,{method:"POST",headers:this.headers(),body:a});if(!o.ok){let n=await o.text();throw new Error(`Dify file upload error: ${o.status} ${o.statusText} - ${n}`)}return o.json()}async stopGeneration(e,r="dirac-user"){let i=await Ro(`${this.baseUrl}/chat-messages/${e}/stop`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify({user:r})});if(!i.ok){let a=await i.text();throw new Error(`Dify stop generation error: ${i.status} ${i.statusText} - ${a}`)}}async getConversationHistory(e,r="dirac-user",i,a=20){let o=new URLSearchParams({user:r,limit:a.toString()});i&&o.append("first_id",i);let n=await Ro(`${this.baseUrl}/conversations/${e}/messages?${o}`,{headers:this.headers()});if(!n.ok){let s=await n.text();throw new Error(`Dify get conversation history error: ${n.status} ${n.statusText} - ${s}`)}return n.json()}async getConversations(e="dirac-user",r,i=20,a="-updated_at"){let o=new URLSearchParams({user:e,limit:i.toString(),sort_by:a});r&&o.append("last_id",r);let n=await Ro(`${this.baseUrl}/conversations?${o}`,{headers:this.headers()});if(!n.ok){let s=await n.text();throw new Error(`Dify get conversations error: ${n.status} ${n.statusText} - ${s}`)}return n.json()}async deleteConversation(e,r="dirac-user"){let i=await Ro(`${this.baseUrl}/conversations/${e}`,{method:"DELETE",headers:this.jsonHeaders(),body:JSON.stringify({user:r})});if(!i.ok){let a=await i.text();throw new Error(`Dify delete conversation error: ${i.status} ${i.statusText} - ${a}`)}}async renameConversation(e,r="dirac-user",i,a=!1){let o={user:r,auto_generate:a};i&&(o.name=i);let n=await Ro(`${this.baseUrl}/conversations/${e}/name`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify(o)});if(!n.ok){let s=await n.text();throw new Error(`Dify rename conversation error: ${n.status} ${n.statusText} - ${s}`)}return n.json()}async submitMessageFeedback(e,r,i,a="dirac-user"){let o={rating:r,user:a};i&&(o.content=i);let n=await Ro(`${this.baseUrl}/messages/${e}/feedbacks`,{method:"POST",headers:this.jsonHeaders(),body:JSON.stringify(o)});if(!n.ok){let s=await n.text();throw new Error(`Dify submit feedback error: ${n.status} ${n.statusText} - ${s}`)}}getCurrentConversationId(){return this.conversationId}setConversationId(e){this.conversationId=e}resetConversation(){this.conversationId=null,this.currentTaskId=null}jsonHeaders(){return{...this.headers(),"Content-Type":"application/json"}}headers(){return{...zs(),Authorization:`Bearer ${this.apiKey}`}}};rs();Mo();var iFe=class{options;client;constructor(e){this.options=e}ensureClient(){if(!this.client){if(!this.options.doubaoApiKey)throw new Error("Doubao API key is required");try{this.client=Ru({baseURL:"https://ark.cn-beijing.volces.com/api/v3/",apiKey:this.options.doubaoApiKey})}catch(e){throw new Error(`Error creating Doubao client: ${e.message}`)}}return this.client}getModel(){let e=this.options.apiModelId;if(e&&e in ait){let r=e;return{id:r,info:ait[r]}}return{id:Qcr,info:ait[Qcr]}}async*createMessage(e,r){let i=this.ensureClient(),a=this.getModel(),o=[{role:"system",content:e},...ko(r)],n=await i.chat.completions.create({model:a.id,max_completion_tokens:a.info.maxTokens,messages:o,stream:!0,stream_options:{include_usage:!0},temperature:0});for await(let s of n){let u=s.choices?.[0]?.delta;u?.content&&(yield{type:"text",text:u.content}),s.usage&&(yield{type:"usage",inputTokens:s.usage.prompt_tokens||0,outputTokens:s.usage.completion_tokens||0,cacheReadTokens:s.usage.prompt_cache_hit_tokens||0,cacheWriteTokens:s.usage.prompt_cache_miss_tokens||0})}}};Ia([_a()],iFe.prototype,"createMessage",1);rs();Mo();var aFe=class{options;client;constructor(e){this.options=e}ensureClient(){if(!this.client){if(!this.options.fireworksApiKey)throw new Error("Fireworks API key is required");try{this.client=Ru({baseURL:"https://api.fireworks.ai/inference/v1",apiKey:this.options.fireworksApiKey})}catch(e){throw new Error(`Error creating Fireworks client: ${e.message}`)}}return this.client}async*createMessage(e,r){let i=this.ensureClient(),a=this.options.fireworksModelId??"",o=[{role:"system",content:e},...ko(r)],n=await i.chat.completions.create({model:a,messages:o,stream:!0,stream_options:{include_usage:!0},temperature:0}),s=null;for await(let u of n){let d=u.choices?.[0]?.delta;(s||d?.content?.includes("<think>"))&&(s=(s||"")+(d.content??"")),d?.content&&!s&&(yield{type:"text",text:d.content}),(s||d&&"reasoning_content"in d&&d.reasoning_content)&&(yield{type:"reasoning",reasoning:d.content||d.reasoning_content||""},s?.includes("</think>")&&(s=null)),u.usage&&(yield{type:"usage",inputTokens:u.usage.prompt_tokens||0,outputTokens:u.usage.completion_tokens||0,cacheReadTokens:u.usage.prompt_cache_hit_tokens||0,cacheWriteTokens:u.usage.prompt_cache_miss_tokens||0})}}getModel(){let e=this.options.fireworksModelId;if(e&&e in mit){let r=e;return{id:r,info:mit[r]}}return{id:git,info:mit[git]}}};Ia([_a()],aFe.prototype,"createMessage",1);rs();rs();function oFe(t){if(!t)return!1;let e=t.toLowerCase();return e.includes("gemini")||e.includes("gpt")||e.startsWith("openai/o")||e.includes("/o")||e.startsWith("o")||e.includes("grok")}var $W=32768;function aEc(t){let e=qie(t.providerId);return["dirac","anthropic","bedrock","gemini","vertex","openrouter","openai","minimax","openai-native","openai-compatible","openai-codex","baseten","vercel-ai-gateway","deepseek","oca"].some(r=>e===r)}function VOi(t){return t.id.toLowerCase().includes("grok")}function LR(t){return t?t.includes("grok-4")||t.includes("devstral")||t.includes("glm"):!1}function gEt(t){let e=["sonnet","opus","haiku"];return t in NS||e.some(r=>t.includes(r))}function WOi(t){return qie(t).includes("gemini-2.5")}function zOi(t){let e=qie(t);return e.includes("gpt-5")||e.includes("gpt5")}function KOi(t){let e=qie(t);return e.includes("gpt-5.1")||e.includes("gpt-5-1")}function jOi(t){let e=qie(t);return e.includes("gemini3")||e.includes("gemini-3")}function mEt(t){let e=qie(t),r=e.startsWith("google/gemini"),i=e.startsWith("gemini-");return(r||i)&&e.includes("flash")}function $Oi(t){return["lmstudio","ollama"].includes(qie(t.providerId))}function EEt(t,e){if(!e||!aEc(t))return!1;let r=t.model.id.toLowerCase();return!0}function yEt(t,e){return!0}function qie(t){return t.trim().toLowerCase()}Yp();ao();Pr();var o1d=[/got status: 429/i,/429 Too Many Requests/i,/rate limit exceeded/i,/too many requests/i];function s1d(t){switch(t){case"low":return hre.LOW;case"medium":return hre.MEDIUM;case"high":case"xhigh":return hre.HIGH;default:return hre.LOW}}function u1d(t,e){return e&&e>0?Math.min(e,$W):$W}var Moe=class{options;client;constructor(e){this.options=e}ensureClient(){if(!this.client){let e=this.options,r=zs();if(e.isVertex){let i=this.options.vertexProjectId??"not-provided",a=this.options.vertexRegion??"not-provided";try{this.client=new Are({vertexai:!0,project:i,location:a,httpOptions:{headers:r}})}catch(o){throw new Error(`Error creating Gemini Vertex AI client: ${o.message}`)}}else{if(!e.geminiApiKey)throw new Error("API key is required for Google Gemini when not using Vertex AI");try{this.client=new Are({apiKey:e.geminiApiKey,httpOptions:{headers:r}})}catch(i){throw new Error(`Error creating Gemini client: ${i.message}`)}}}return this.client}async*createMessage(e,r,i){let a=this.ensureClient(),{id:o,info:n}=this.getModel(),s=Tge(r),u=new Map,d=this.options.thinkingBudgetTokens??0,f=n.thinkingConfig?.maxBudget??24576,h=Math.min(d,f),c,p=(this.options.reasoningEffort||"").toLowerCase(),A=!p||p==="none"?"low":p;n.thinkingConfig?.supportsThinkingLevel&&(c=s1d(A));let g=u1d(o,n.maxTokens),y={httpOptions:this.options.geminiBaseUrl?{baseUrl:this.options.geminiBaseUrl}:void 0,systemInstruction:e,temperature:n.temperature??1,topP:.7,...g!==void 0?{maxOutputTokens:g}:{}};n.thinkingConfig&&(y.thinkingConfig={thinkingBudget:c?void 0:h,thinkingLevel:c,includeThoughts:h>0||!!c});let I=Date.now(),w,R,B,v=!1,S,b,T=0,m=0,E=0,C=0,x,k,F=i?.length;(F||this.options.geminiSearchEnabled)&&(y.tools=[],F&&y.tools.push({functionDeclarations:i}),this.options.geminiSearchEnabled&&y.tools.push({googleSearch:{}}),y.toolConfig={},F&&(y.toolConfig.functionCallingConfig={mode:Got.ANY}),this.options.geminiSearchEnabled&&(y.toolConfig.includeServerSideToolInvocations=!0)),Le.info(`Gemini: generating content with model ${o}`,{temperature:y.temperature,topP:y.topP,maxOutputTokens:y.maxOutputTokens,thinkingConfig:y.thinkingConfig,tools:y.tools?.map(L=>L.functionDeclarations?"tools":Object.keys(L)[0])});try{let L=await a.models.generateContentStream({model:o,contents:s,config:{...y}}),U=!0,Q;for await(let G of L){let N=G.responseId||"gemini-response";U&&(R=Date.now(),B=R-I,U=!1);let M=G?.candidates?.[0]?.content?.parts||[];for(let D of M){D.thoughtSignature&&(Q=D.thoughtSignature);let O=D.thoughtSignature||Q;if(D.thought&&D.text?yield{type:"reasoning",id:G.responseId,reasoning:D.text||"",signature:O}:D.text&&(yield{type:"text",text:D.text,id:G.responseId,signature:O}),D.functionCall){let q=D.functionCall,H=Object.entries(q.args||{}).filter(([z,V])=>!!V);if(q.args&&H.length>0){let V=q.id?.trim()??(()=>{let W=u.get(N)??0;return u.set(N,W+1),`${N}-tool-${W}`})();yield{type:"tool_calls",id:G.responseId,tool_call:{call_id:V,function:{id:V,name:q.name,arguments:JSON.stringify(q.args)}},signature:O}}}}let P=G.candidates?.[0];P?.groundingMetadata&&(b=P.groundingMetadata),G.usageMetadata&&(w=G.responseId,x=G.usageMetadata,T=x.promptTokenCount??T,m=x.candidatesTokenCount??m,C=x.thoughtsTokenCount??C,E=x.cachedContentTokenCount??E,k=G.candidates?.[0]?.finishReason)}if(v=!0,x){let G=this.calculateCost({info:n,inputTokens:T,outputTokens:m,thoughtsTokenCount:C,cacheReadTokens:E});if(yield{type:"usage",inputTokens:T-E,outputTokens:m,thoughtsTokenCount:C,cacheReadTokens:E,cacheWriteTokens:0,totalCost:G,id:w,stopReason:k},b&&b.groundingChunks?.length>0){let N=`
1731
1731
 
1732
1732
  **Sources:**
1733
1733
  `;b.groundingChunks.forEach((M,P)=>{M.web&&(N+=`${P+1}. [${M.web.title||M.web.uri}](${M.web.uri})
@@ -5841,7 +5841,7 @@ ${ne}`:Array.isArray(te.content)&&te.content.push({type:"text",text:ne})}}let ee
5841
5841
  <div class="countdown">Feel free to close this window and continue in your ${r}</div>
5842
5842
  </div>
5843
5843
  </body>
5844
- </html>`}var sar=class{};var uar=class extends sar{setOnReplyCallback(e){}async ensureCommentsViewDisabled(){}addReviewComment(e){}startStreamingComment(e,r,i,a,o,n){}appendToStreamingComment(e){}endStreamingComment(){}addReviewComments(e){}clearAllComments(){}clearCommentsForFile(e){}getThreadCount(){return 0}async closeDiffViews(){}dispose(){}};var car=class extends hee{RESOURCE_HOSTNAME="internal.resources";getWebviewUrl(e){let r=new URL(`https://${this.RESOURCE_HOSTNAME}/`);return r.pathname=e,r.toString()}getCspSource(){return`'self' https://${this.RESOURCE_HOSTNAME}`}isVisible(){return!0}};io();Pr();var BLn="0.2.52";r0();zc();ru();var Dnu=Pt(Hfe(),1);io();import*as Srt from"fs/promises";gv();Pr();var lar=class extends Mee{connection;clientCapabilities;sessionIdResolver;constructor(e,r,i){super(),this.connection=e,this.clientCapabilities=r,this.sessionIdResolver=i}getSessionId(){let e=this.sessionIdResolver();if(!e)throw new Error("No active ACP session. Cannot perform file operation.");return e}canReadFile(){return this.clientCapabilities?.fs?.readTextFile===!0}canWriteFile(){return this.clientCapabilities?.fs?.writeTextFile===!0}async open(e,r){if(!this.canReadFile())return Le.debug("[ACPDiffViewProvider] Client does not support fs.readTextFile, falling back to local fs"),super.open(e,r);this.isEditing=!0;let i=await ih(),a=OA.resolveWorkspacePath(i,e,"ACPDiffViewProvider.open.absolutePath");this.absolutePath=typeof a=="string"?a:a.absolutePath,this.relPath=r?.displayPath??e;let o=this.editType==="modify";if(o){try{await In.workspace.saveOpenDocumentIfDirty({filePath:this.absolutePath})}catch{}try{Le.debug("[ACPDiffViewProvider] Reading file via ACP:",this.absolutePath);let u=await this.connection.readTextFile({sessionId:this.getSessionId(),path:this.absolutePath});this.originalContent=u.content,this.fileEncoding="utf8",Le.debug("[ACPDiffViewProvider] Read file successfully, length:",u.content.length)}catch(u){Le.debug("[ACPDiffViewProvider] ACP read failed, falling back to local fs:",u);let d=await Srt.readFile(this.absolutePath);this.fileEncoding=await phe(d),this.originalContent=Dnu.decode(d,this.fileEncoding)}}else this.originalContent="",this.fileEncoding="utf8";let n=await HEt(this.absolutePath);if(this.createdDirs=n,!o)if(this.canWriteFile())try{await this.connection.writeTextFile({sessionId:this.getSessionId(),path:this.absolutePath,content:""})}catch{await Srt.writeFile(this.absolutePath,"")}else await Srt.writeFile(this.absolutePath,"");let s=[];try{s=(await In.workspace.getDiagnostics({filePaths:[]})).fileDiagnostics}catch{s=[]}this.preDiagnostics=s,await this.openDiffEditor(),await this.scrollEditorToLine(0),this.streamedLines=[]}async scrollEditorToLine(e){}async openDiffEditor(){}async saveDocument(){if(!this.canWriteFile())return Le.debug("[ACPDiffViewProvider] Client does not support fs.writeTextFile, falling back to local fs"),super.saveDocument();let e=await this.getContent();if(!this.absolutePath||e===void 0)return!1;try{return Le.debug("[ACPDiffViewProvider] Writing file via ACP:",{path:this.absolutePath,contentLength:e.length}),await this.connection.writeTextFile({sessionId:this.getSessionId(),path:this.absolutePath,content:e}),Le.debug("[ACPDiffViewProvider] Write file successfully"),!0}catch(r){return Le.debug("[ACPDiffViewProvider] ACP write failed, falling back to local fs:",r),super.saveDocument()}}};Pr();var DLn=class{async openDiff(e){return Le.debug("[ACPDiffServiceClient] openDiff called (stub)"),Kc.OpenDiffResponse.create({})}async getDocumentText(e){return Le.debug("[ACPDiffServiceClient] getDocumentText called (stub)",{diffId:e.diffId}),Kc.GetDocumentTextResponse.create({content:""})}async replaceText(e){return Le.debug("[ACPDiffServiceClient] replaceText called (stub)"),Kc.ReplaceTextResponse.create({})}async scrollDiff(e){return Le.debug("[ACPDiffServiceClient] scrollDiff called (stub)"),Kc.ScrollDiffResponse.create({})}async truncateDocument(e){return Le.debug("[ACPDiffServiceClient] truncateDocument called (stub)"),Kc.TruncateDocumentResponse.create({})}async saveDocument(e){return Le.debug("[ACPDiffServiceClient] saveDocument called (stub)"),Kc.SaveDocumentResponse.create({})}async closeAllDiffs(e){return Le.debug("[ACPDiffServiceClient] closeAllDiffs called (stub)"),Kc.CloseAllDiffsResponse.create({})}async openMultiFileDiff(e){return Le.debug("[ACPDiffServiceClient] openMultiFileDiff called (stub)"),Kc.OpenMultiFileDiffResponse.create({})}},kLn=class{version;constructor(e,r,i){this.version=i}async debugLog(e){return Le.debug(e.value),zM.Empty.create()}async clipboardWriteText(e){return Le.debug("[ACPEnvServiceClient] clipboardWriteText called (stub)"),zM.Empty.create()}async clipboardReadText(e){return Le.debug("[ACPEnvServiceClient] clipboardReadText called (stub)"),zM.String.create({value:""})}async getHostVersion(e){return Kc.GetHostVersionResponse.create({version:this.version,platform:"Dirac ACP Agent",diracType:"CLI"})}async getIdeRedirectUri(e){return Le.debug("[ACPEnvServiceClient] getIdeRedirectUri called (stub)"),zM.String.create({value:""})}async getTelemetrySettings(e){return Kc.GetTelemetrySettingsResponse.create({isEnabled:Kc.Setting.DISABLED})}subscribeToTelemetrySettings(e,r){return r.onResponse(Kc.TelemetrySettingsEvent.create({isEnabled:Kc.Setting.DISABLED})),()=>{}}async shutdown(e){return Le.debug("[ACPEnvServiceClient] shutdown called (stub)"),zM.Empty.create()}async openExternal(e){let r=e.value||"";if(r){Le.debug(`[ACPEnvServiceClient] openExternal: ${r}`);let{openUrlInBrowser:i}=await Promise.resolve().then(()=>(Mnu(),knu));await i(r)}return zM.Empty.create()}},MLn=class{constructor(e,r){}async showTextDocument(e){return Le.debug("[ACPWindowServiceClient] showTextDocument called (stub)",{path:e.path}),Kc.TextEditorInfo.create({documentPath:e.path})}async showOpenDialogue(e){return Le.debug("[ACPWindowServiceClient] showOpenDialogue called (stub)"),Kc.SelectedResources.create({paths:[]})}async showMessage(e){return Le.debug("[ACPWindowServiceClient] showMessage called (stub)",{message:e.message,type:e.type}),Kc.SelectedResponse.create({})}async showInputBox(e){return Le.debug("[ACPWindowServiceClient] showInputBox called (stub)"),Kc.ShowInputBoxResponse.create({response:""})}async showSaveDialog(e){return Le.debug("[ACPWindowServiceClient] showSaveDialog called (stub)"),Kc.ShowSaveDialogResponse.create({selectedPath:""})}async openFile(e){return Le.debug("[ACPWindowServiceClient] openFile called (stub)",{filePath:e.filePath}),Kc.OpenFileResponse.create({})}async openSettings(e){return Le.debug("[ACPWindowServiceClient] openSettings called (stub)"),Kc.OpenSettingsResponse.create({})}async getOpenTabs(e){return Le.debug("[ACPWindowServiceClient] getOpenTabs called (stub)"),Kc.GetOpenTabsResponse.create({paths:[]})}async getVisibleTabs(e){return Le.debug("[ACPWindowServiceClient] getVisibleTabs called (stub)"),Kc.GetVisibleTabsResponse.create({paths:[]})}async getActiveEditor(e){return Le.debug("[ACPWindowServiceClient] getActiveEditor called (stub)"),Kc.GetActiveEditorResponse.create({})}},PLn=class{_clientCapabilities;cwdResolver;constructor(e,r,i){this._clientCapabilities=e,this.cwdResolver=i}getCwd(){return this.cwdResolver()??process.cwd()}async getWorkspacePaths(e){let r=this.getCwd();return Le.debug("[ACPWorkspaceServiceClient] getWorkspacePaths called",{cwd:r}),Kc.GetWorkspacePathsResponse.create({paths:[r]})}async saveOpenDocumentIfDirty(e){return Le.debug("[ACPWorkspaceServiceClient] saveOpenDocumentIfDirty called (stub)"),Kc.SaveOpenDocumentIfDirtyResponse.create({})}async getDiagnostics(e){return Le.debug("[ACPWorkspaceServiceClient] getDiagnostics called (stub)"),Kc.GetDiagnosticsResponse.create({fileDiagnostics:[]})}async openProblemsPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openProblemsPanel called (stub)"),Kc.OpenProblemsPanelResponse.create({})}async openInFileExplorerPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openInFileExplorerPanel called (stub)",{path:e.path}),Kc.OpenInFileExplorerPanelResponse.create({})}async openDiracSidebarPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openDiracSidebarPanel called (stub)"),Kc.OpenDiracSidebarPanelResponse.create({})}async openTerminalPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openTerminalPanel called (stub)"),Kc.OpenTerminalResponse.create({})}async executeCommandInTerminal(e){return Le.debug("[ACPWorkspaceServiceClient] executeCommandInTerminal called (stub)",{command:e.command,hasTerminalCapability:this._clientCapabilities?.terminal}),Kc.ExecuteCommandInTerminalResponse.create({})}async prepareDiagnostics(e){return Kc.PrepareDiagnosticsResponse.create({success:!0})}async openFolder(e){return Le.debug("[ACPWorkspaceServiceClient] openFolder called (stub)",{path:e.path}),Kc.OpenFolderResponse.create({success:!0})}},dar=class{workspaceClient;envClient;windowClient;diffClient;constructor(e,r,i,a){this.workspaceClient=new PLn(e,r,i),this.envClient=new kLn(e,r,a),this.windowClient=new MLn(e,r),this.diffClient=new DLn}};Pr();import{EventEmitter as jap}from"events";var OLn=class extends jap{isHot=!1;waitForShellIntegration=!1;_unretrievedOutput="";_continued=!1;_completed=!1;_hotTimeout=null;_exitWaitTimeout=null;manager;terminalId;pollInterval=null;constructor(e,r){super(),this.manager=e,this.terminalId=r}continue(){this._continued=!0,this.cleanup(),this.emit("continue")}getUnretrievedOutput(){let e=this._unretrievedOutput;return this._unretrievedOutput="",e}async terminate(){this.cleanup(),await this.manager.kill(this.terminalId)}cleanup(){this.stopPolling(),this._hotTimeout&&(clearTimeout(this._hotTimeout),this._hotTimeout=null),this._exitWaitTimeout&&(clearTimeout(this._exitWaitTimeout),this._exitWaitTimeout=null)}stopPolling(){this.pollInterval&&(clearInterval(this.pollInterval),this.pollInterval=null)}run(e){let r="";this.pollInterval=setInterval(async()=>{if(this._continued||this._completed){this.stopPolling();return}try{let i=await this.manager.getOutput(this.terminalId);if(!i.success){this.stopPolling(),this.emit("error",new Error(i.error||"Failed to get output"));return}if(i.output.length>r.length){let a=i.output.slice(r.length);this._unretrievedOutput+=a,r=i.output,this.setHot();let o=a.split(`
5844
+ </html>`}var sar=class{};var uar=class extends sar{setOnReplyCallback(e){}async ensureCommentsViewDisabled(){}addReviewComment(e){}startStreamingComment(e,r,i,a,o,n){}appendToStreamingComment(e){}endStreamingComment(){}addReviewComments(e){}clearAllComments(){}clearCommentsForFile(e){}getThreadCount(){return 0}async closeDiffViews(){}dispose(){}};var car=class extends hee{RESOURCE_HOSTNAME="internal.resources";getWebviewUrl(e){let r=new URL(`https://${this.RESOURCE_HOSTNAME}/`);return r.pathname=e,r.toString()}getCspSource(){return`'self' https://${this.RESOURCE_HOSTNAME}`}isVisible(){return!0}};io();Pr();var BLn="0.2.53";r0();zc();ru();var Dnu=Pt(Hfe(),1);io();import*as Srt from"fs/promises";gv();Pr();var lar=class extends Mee{connection;clientCapabilities;sessionIdResolver;constructor(e,r,i){super(),this.connection=e,this.clientCapabilities=r,this.sessionIdResolver=i}getSessionId(){let e=this.sessionIdResolver();if(!e)throw new Error("No active ACP session. Cannot perform file operation.");return e}canReadFile(){return this.clientCapabilities?.fs?.readTextFile===!0}canWriteFile(){return this.clientCapabilities?.fs?.writeTextFile===!0}async open(e,r){if(!this.canReadFile())return Le.debug("[ACPDiffViewProvider] Client does not support fs.readTextFile, falling back to local fs"),super.open(e,r);this.isEditing=!0;let i=await ih(),a=OA.resolveWorkspacePath(i,e,"ACPDiffViewProvider.open.absolutePath");this.absolutePath=typeof a=="string"?a:a.absolutePath,this.relPath=r?.displayPath??e;let o=this.editType==="modify";if(o){try{await In.workspace.saveOpenDocumentIfDirty({filePath:this.absolutePath})}catch{}try{Le.debug("[ACPDiffViewProvider] Reading file via ACP:",this.absolutePath);let u=await this.connection.readTextFile({sessionId:this.getSessionId(),path:this.absolutePath});this.originalContent=u.content,this.fileEncoding="utf8",Le.debug("[ACPDiffViewProvider] Read file successfully, length:",u.content.length)}catch(u){Le.debug("[ACPDiffViewProvider] ACP read failed, falling back to local fs:",u);let d=await Srt.readFile(this.absolutePath);this.fileEncoding=await phe(d),this.originalContent=Dnu.decode(d,this.fileEncoding)}}else this.originalContent="",this.fileEncoding="utf8";let n=await HEt(this.absolutePath);if(this.createdDirs=n,!o)if(this.canWriteFile())try{await this.connection.writeTextFile({sessionId:this.getSessionId(),path:this.absolutePath,content:""})}catch{await Srt.writeFile(this.absolutePath,"")}else await Srt.writeFile(this.absolutePath,"");let s=[];try{s=(await In.workspace.getDiagnostics({filePaths:[]})).fileDiagnostics}catch{s=[]}this.preDiagnostics=s,await this.openDiffEditor(),await this.scrollEditorToLine(0),this.streamedLines=[]}async scrollEditorToLine(e){}async openDiffEditor(){}async saveDocument(){if(!this.canWriteFile())return Le.debug("[ACPDiffViewProvider] Client does not support fs.writeTextFile, falling back to local fs"),super.saveDocument();let e=await this.getContent();if(!this.absolutePath||e===void 0)return!1;try{return Le.debug("[ACPDiffViewProvider] Writing file via ACP:",{path:this.absolutePath,contentLength:e.length}),await this.connection.writeTextFile({sessionId:this.getSessionId(),path:this.absolutePath,content:e}),Le.debug("[ACPDiffViewProvider] Write file successfully"),!0}catch(r){return Le.debug("[ACPDiffViewProvider] ACP write failed, falling back to local fs:",r),super.saveDocument()}}};Pr();var DLn=class{async openDiff(e){return Le.debug("[ACPDiffServiceClient] openDiff called (stub)"),Kc.OpenDiffResponse.create({})}async getDocumentText(e){return Le.debug("[ACPDiffServiceClient] getDocumentText called (stub)",{diffId:e.diffId}),Kc.GetDocumentTextResponse.create({content:""})}async replaceText(e){return Le.debug("[ACPDiffServiceClient] replaceText called (stub)"),Kc.ReplaceTextResponse.create({})}async scrollDiff(e){return Le.debug("[ACPDiffServiceClient] scrollDiff called (stub)"),Kc.ScrollDiffResponse.create({})}async truncateDocument(e){return Le.debug("[ACPDiffServiceClient] truncateDocument called (stub)"),Kc.TruncateDocumentResponse.create({})}async saveDocument(e){return Le.debug("[ACPDiffServiceClient] saveDocument called (stub)"),Kc.SaveDocumentResponse.create({})}async closeAllDiffs(e){return Le.debug("[ACPDiffServiceClient] closeAllDiffs called (stub)"),Kc.CloseAllDiffsResponse.create({})}async openMultiFileDiff(e){return Le.debug("[ACPDiffServiceClient] openMultiFileDiff called (stub)"),Kc.OpenMultiFileDiffResponse.create({})}},kLn=class{version;constructor(e,r,i){this.version=i}async debugLog(e){return Le.debug(e.value),zM.Empty.create()}async clipboardWriteText(e){return Le.debug("[ACPEnvServiceClient] clipboardWriteText called (stub)"),zM.Empty.create()}async clipboardReadText(e){return Le.debug("[ACPEnvServiceClient] clipboardReadText called (stub)"),zM.String.create({value:""})}async getHostVersion(e){return Kc.GetHostVersionResponse.create({version:this.version,platform:"Dirac ACP Agent",diracType:"CLI"})}async getIdeRedirectUri(e){return Le.debug("[ACPEnvServiceClient] getIdeRedirectUri called (stub)"),zM.String.create({value:""})}async getTelemetrySettings(e){return Kc.GetTelemetrySettingsResponse.create({isEnabled:Kc.Setting.DISABLED})}subscribeToTelemetrySettings(e,r){return r.onResponse(Kc.TelemetrySettingsEvent.create({isEnabled:Kc.Setting.DISABLED})),()=>{}}async shutdown(e){return Le.debug("[ACPEnvServiceClient] shutdown called (stub)"),zM.Empty.create()}async openExternal(e){let r=e.value||"";if(r){Le.debug(`[ACPEnvServiceClient] openExternal: ${r}`);let{openUrlInBrowser:i}=await Promise.resolve().then(()=>(Mnu(),knu));await i(r)}return zM.Empty.create()}},MLn=class{constructor(e,r){}async showTextDocument(e){return Le.debug("[ACPWindowServiceClient] showTextDocument called (stub)",{path:e.path}),Kc.TextEditorInfo.create({documentPath:e.path})}async showOpenDialogue(e){return Le.debug("[ACPWindowServiceClient] showOpenDialogue called (stub)"),Kc.SelectedResources.create({paths:[]})}async showMessage(e){return Le.debug("[ACPWindowServiceClient] showMessage called (stub)",{message:e.message,type:e.type}),Kc.SelectedResponse.create({})}async showInputBox(e){return Le.debug("[ACPWindowServiceClient] showInputBox called (stub)"),Kc.ShowInputBoxResponse.create({response:""})}async showSaveDialog(e){return Le.debug("[ACPWindowServiceClient] showSaveDialog called (stub)"),Kc.ShowSaveDialogResponse.create({selectedPath:""})}async openFile(e){return Le.debug("[ACPWindowServiceClient] openFile called (stub)",{filePath:e.filePath}),Kc.OpenFileResponse.create({})}async openSettings(e){return Le.debug("[ACPWindowServiceClient] openSettings called (stub)"),Kc.OpenSettingsResponse.create({})}async getOpenTabs(e){return Le.debug("[ACPWindowServiceClient] getOpenTabs called (stub)"),Kc.GetOpenTabsResponse.create({paths:[]})}async getVisibleTabs(e){return Le.debug("[ACPWindowServiceClient] getVisibleTabs called (stub)"),Kc.GetVisibleTabsResponse.create({paths:[]})}async getActiveEditor(e){return Le.debug("[ACPWindowServiceClient] getActiveEditor called (stub)"),Kc.GetActiveEditorResponse.create({})}},PLn=class{_clientCapabilities;cwdResolver;constructor(e,r,i){this._clientCapabilities=e,this.cwdResolver=i}getCwd(){return this.cwdResolver()??process.cwd()}async getWorkspacePaths(e){let r=this.getCwd();return Le.debug("[ACPWorkspaceServiceClient] getWorkspacePaths called",{cwd:r}),Kc.GetWorkspacePathsResponse.create({paths:[r]})}async saveOpenDocumentIfDirty(e){return Le.debug("[ACPWorkspaceServiceClient] saveOpenDocumentIfDirty called (stub)"),Kc.SaveOpenDocumentIfDirtyResponse.create({})}async getDiagnostics(e){return Le.debug("[ACPWorkspaceServiceClient] getDiagnostics called (stub)"),Kc.GetDiagnosticsResponse.create({fileDiagnostics:[]})}async openProblemsPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openProblemsPanel called (stub)"),Kc.OpenProblemsPanelResponse.create({})}async openInFileExplorerPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openInFileExplorerPanel called (stub)",{path:e.path}),Kc.OpenInFileExplorerPanelResponse.create({})}async openDiracSidebarPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openDiracSidebarPanel called (stub)"),Kc.OpenDiracSidebarPanelResponse.create({})}async openTerminalPanel(e){return Le.debug("[ACPWorkspaceServiceClient] openTerminalPanel called (stub)"),Kc.OpenTerminalResponse.create({})}async executeCommandInTerminal(e){return Le.debug("[ACPWorkspaceServiceClient] executeCommandInTerminal called (stub)",{command:e.command,hasTerminalCapability:this._clientCapabilities?.terminal}),Kc.ExecuteCommandInTerminalResponse.create({})}async prepareDiagnostics(e){return Kc.PrepareDiagnosticsResponse.create({success:!0})}async openFolder(e){return Le.debug("[ACPWorkspaceServiceClient] openFolder called (stub)",{path:e.path}),Kc.OpenFolderResponse.create({success:!0})}},dar=class{workspaceClient;envClient;windowClient;diffClient;constructor(e,r,i,a){this.workspaceClient=new PLn(e,r,i),this.envClient=new kLn(e,r,a),this.windowClient=new MLn(e,r),this.diffClient=new DLn}};Pr();import{EventEmitter as jap}from"events";var OLn=class extends jap{isHot=!1;waitForShellIntegration=!1;_unretrievedOutput="";_continued=!1;_completed=!1;_hotTimeout=null;_exitWaitTimeout=null;manager;terminalId;pollInterval=null;constructor(e,r){super(),this.manager=e,this.terminalId=r}continue(){this._continued=!0,this.cleanup(),this.emit("continue")}getUnretrievedOutput(){let e=this._unretrievedOutput;return this._unretrievedOutput="",e}async terminate(){this.cleanup(),await this.manager.kill(this.terminalId)}cleanup(){this.stopPolling(),this._hotTimeout&&(clearTimeout(this._hotTimeout),this._hotTimeout=null),this._exitWaitTimeout&&(clearTimeout(this._exitWaitTimeout),this._exitWaitTimeout=null)}stopPolling(){this.pollInterval&&(clearInterval(this.pollInterval),this.pollInterval=null)}run(e){let r="";this.pollInterval=setInterval(async()=>{if(this._continued||this._completed){this.stopPolling();return}try{let i=await this.manager.getOutput(this.terminalId);if(!i.success){this.stopPolling(),this.emit("error",new Error(i.error||"Failed to get output"));return}if(i.output.length>r.length){let a=i.output.slice(r.length);this._unretrievedOutput+=a,r=i.output,this.setHot();let o=a.split(`
5845
5845
  `);for(let n of o)n&&this.emit("line",n)}i.exitStatus&&(this._completed=!0,this.stopPolling(),this.emit("completed"))}catch(i){this.stopPolling(),this.emit("error",i instanceof Error?i:new Error(String(i)))}},100),this.manager.waitForExit(this.terminalId).then(i=>{i.success&&!this._continued&&!this._completed&&(this._exitWaitTimeout=setTimeout(()=>{!this._continued&&!this._completed&&(this._completed=!0,this.cleanup(),this.emit("completed"))},200))})}setHot(){this.isHot=!0,this._hotTimeout&&clearTimeout(this._hotTimeout),this._hotTimeout=setTimeout(()=>{this.isHot=!1},2e3)}},NLn=class{name;processId;shellIntegration;_managedTerminal;_manager;_cwd;constructor(e,r){this._managedTerminal=e,this._manager=r,this._cwd=e.cwd||"",this.name=`ACP Terminal ${e.numericId}`,this.processId=Promise.resolve(e.numericId),this.shellIntegration={cwd:{fsPath:this._cwd}}}sendText(e,r){Le.debug("[AcpTerminal] sendText not supported for ACP terminals")}show(){}hide(){}dispose(){this._manager.release(this._managedTerminal.id).catch(e=>{Le.debug("[AcpTerminal] Error releasing terminal:",e)})}};function $ap(t,e){let r=(async()=>{})().constructor.prototype,i=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(r,a)]);for(let[a,o]of i)if(o){let n=o.value.bind(e);Reflect.defineProperty(t,a,{...o,value:n})}return t.terminate&&typeof t.terminate=="function"&&Object.defineProperty(t,"terminate",{value:t.terminate.bind(t),writable:!1,enumerable:!1,configurable:!1}),t}var far=class{connection;clientCapabilities;sessionIdResolver;terminals=new Map;numericIdToStringId=new Map;nextNumericId=1;processes=new Map;terminalInfos=new Map;terminalReuseEnabled=!0;terminalOutputLineLimit=500;constructor(e,r,i){this.connection=e,this.clientCapabilities=r,this.sessionIdResolver=i}runCommand(e,r){let a=e.terminal._managedTerminal;e.busy=!0,e.lastCommand=r,e.lastActive=Date.now(),a.busy=!0,a.lastCommand=r;let o=new OLn(this,a.id);this.processes.set(a.numericId,o),o.once("completed",()=>{e.busy=!1,a.busy=!1}),o.once("error",s=>{e.busy=!1,a.busy=!1});let n=new Promise((s,u)=>{o.once("continue",()=>s()),o.once("completed",()=>s()),o.once("error",d=>u(d))});return this.runCommandInternal(a,r,o),$ap(o,n)}async runCommandInternal(e,r,i){try{let a={sessionId:this.getSessionId(),command:r,cwd:e.cwd},o=await this.connection.createTerminal(a);e.id&&this.terminals.has(e.id)&&this.terminals.delete(e.id),e.handle=o,e.id=o.id,this.terminals.set(o.id,e),this.numericIdToStringId.set(e.numericId,o.id),i.terminalId=o.id,i.run(r)}catch(a){i.emit("error",a instanceof Error?a:new Error(String(a)))}}async getOrCreateTerminal(e){for(let[s,u]of this.terminalInfos)if(!u.busy&&u.terminal._cwd===e)return u;if(this.terminalReuseEnabled){for(let[s,u]of this.terminalInfos)if(!u.busy){let d=u.terminal;return d._cwd=e,d.shellIntegration?.cwd&&(d.shellIntegration.cwd.fsPath=e),d._managedTerminal.cwd=e,u}}let r=this.nextNumericId++,a={id:`pending-${r}`,numericId:r,handle:null,command:"",cwd:e,createdAt:Date.now(),released:!1,busy:!1,lastCommand:""},o=new NLn(a,this),n={id:r,terminal:o,busy:!1,lastCommand:"",lastActive:Date.now()};return this.terminals.set(a.id,a),this.numericIdToStringId.set(r,a.id),this.terminalInfos.set(r,n),Le.debug("[AcpTerminalManager] Created terminal:",{numericId:r,cwd:e}),n}getTerminals(e){let r=[];for(let[i,a]of this.terminalInfos)a.busy===e&&r.push({id:i,lastCommand:a.lastCommand});return r}getUnretrievedOutput(e){let r=this.processes.get(e);return r?r.getUnretrievedOutput():""}isProcessHot(e){let r=this.processes.get(e);return r?r.isHot:!1}disposeAll(){this.releaseAll().catch(e=>{Le.debug("[AcpTerminalManager] Error releasing terminals:",e)}),this.terminals.clear(),this.numericIdToStringId.clear(),this.processes.clear(),this.terminalInfos.clear(),Le.debug("[AcpTerminalManager] disposeAll complete")}setShellIntegrationTimeout(e){}setTerminalReuseEnabled(e){this.terminalReuseEnabled=e}setTerminalOutputLineLimit(e){this.terminalOutputLineLimit=e}setDefaultTerminalProfile(e){}processOutput(e,r){let i=r!==void 0?r:this.terminalOutputLineLimit;if(e.length>i){let a=Math.floor(i/2),o=e.slice(0,a),n=e.slice(e.length-a);return`${o.join(`
5846
5846
  `)}
5847
5847
  ... (output truncated) ...