@cursor/sdk 1.0.34 → 1.0.35
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/bundled/index.js +263 -262
- package/dist/bundled/sqlite.js +17 -17
- package/dist/cjs/458.js +1 -1
- package/dist/cjs/689.js +1 -0
- package/dist/cjs/856.js +1 -1
- package/dist/cjs/agent/options.d.ts +6 -0
- package/dist/cjs/agent/options.d.ts.map +1 -1
- package/dist/cjs/agent/store/sdk-state-root.d.ts +3 -1
- package/dist/cjs/agent/store/sdk-state-root.d.ts.map +1 -1
- package/dist/cjs/custom-tools.d.ts +1 -1
- package/dist/cjs/custom-tools.d.ts.map +1 -1
- package/dist/cjs/executor-common.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/local-executor.d.ts.map +1 -1
- package/dist/cjs/options.d.ts +6 -0
- package/dist/cjs/options.d.ts.map +1 -1
- package/dist/cjs/platform.d.ts.map +1 -1
- package/dist/cjs/sqlite.js +1 -1
- package/dist/cjs/store/sdk-state-root.d.ts +3 -1
- package/dist/cjs/store/sdk-state-root.d.ts.map +1 -1
- package/dist/esm/458.js +1 -1
- package/dist/esm/689.js +1 -0
- package/dist/esm/856.js +1 -1
- package/dist/esm/agent/options.d.ts +6 -0
- package/dist/esm/agent/options.d.ts.map +1 -1
- package/dist/esm/agent/store/sdk-state-root.d.ts +3 -1
- package/dist/esm/agent/store/sdk-state-root.d.ts.map +1 -1
- package/dist/esm/custom-tools.d.ts +1 -1
- package/dist/esm/custom-tools.d.ts.map +1 -1
- package/dist/esm/executor-common.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/local-executor.d.ts.map +1 -1
- package/dist/esm/options.d.ts +6 -0
- package/dist/esm/options.d.ts.map +1 -1
- package/dist/esm/platform.d.ts.map +1 -1
- package/dist/esm/sqlite.js +1 -1
- package/dist/esm/store/sdk-state-root.d.ts +3 -1
- package/dist/esm/store/sdk-state-root.d.ts.map +1 -1
- package/package.json +53 -54
- package/dist/cjs/479.js +0 -1
- package/dist/esm/479.js +0 -1
package/dist/bundled/sqlite.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var ox=Object.create;var{getPrototypeOf:ex,defineProperty:CQ,getOwnPropertyNames:ZM}=Object;var $M=Object.prototype.hasOwnProperty;var yN=(Z,$,J)=>{J=Z!=null?ox(ex(Z)):{};let Y=$||!Z||!Z.__esModule?CQ(J,"default",{value:Z,enumerable:!0}):J;for(let X of ZM(Z))if(!$M.call(Y,X))CQ(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var P6=(Z,$)=>{for(var J in $)CQ(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var U=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as JM}from"@bufbuild/protobuf";function N(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function mN(Z,$,J){if(J.charAt(0)!=="#")return{kind:"scalar",T:Number(J)};let Y=$[Number(J.slice(1))];return typeof Y==="function"?{kind:"message",T:Y}:{kind:"enum",T:Z.getEnumType(Y)}}function YM(Z,$){let J=$[0].split("|"),Y=$.slice(1),X=[];for(let z=1;z<J.length;z++){let K=J[z].split(" "),Q=Number(K[0]),W=K[1],G=K[2],L=K[3],O=G.charAt(G.length-1);if(O==="?"||O==="*")L=O,G=G.slice(0,-1);let f=G.indexOf(",");if(f!==-1){X.push({no:Q,name:W,kind:"map",K:Number(G.slice(0,f)),V:mN(Z,Y,G.slice(f+1))});continue}let P=Object.assign({no:Q,name:W},mN(Z,Y,G));if(L==="?")P.opt=!0;else if(L==="*")P.repeated=!0;else if(L!==void 0)P.oneof=L;X.push(P)}return X}function XM(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function zM(Z,$){let J=(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,(X)=>"_"+X)).toLowerCase()+"_",Y=[];for(let X of $){if(!X.toLowerCase().startsWith(J))return $.slice();let z=X.slice(J.length);if(z===""||/^[0-9]/.test(z))return $.slice();Y.push(z)}return Y}function KM(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function w(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,Q;if(X===1){let L=KM(z);Q=Y.map((O)=>O[1]),K=Q.map((O)=>L+O)}else K=Y.map((L)=>L[1]),Q=X===void 0?zM(z,K):X;let W={},G=[];for(let L=0;L<Y.length;L++){let O=Y[L][0];W[Q[L]]=O,W[O]=Q[L],G.push({no:O,name:K[L]})}return Z.util.setEnumType(W,$+J,G),W}var B;var k=U(()=>{B=class B extends JM{static get typeName(){let Z=this;return N(Z,"typeName",Z.$p()+XM(Z.$()))}static get fields(){let Z=this,$=Z.$(),J=Z.runtime,Y=()=>YM(J,$);return N(Z,"fields",J.util.newFieldList(Y))}}});import{Message as eu,proto3 as R}from"@bufbuild/protobuf";var dK="agent.v1.",P0,V6,TQ,jN,RQ,u8,K9,H9,Q9,q9,W9,N9,B9,F9,G9,L9,w9,D9;var _N=U(()=>{k();P0=class P0 extends B{static get runtime(){return N(this,"runtime",R)}static $p(){return dK}};V6=w(R,dK,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),TQ=w(R,dK,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),jN=w(R,dK,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"]],1),RQ=w(R,dK,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);u8=class u8 extends P0{constructor(Z){super();this.type={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new u8().fromBinary(Z,$)}static fromJson(Z,$){return new u8().fromJson(Z,$)}static fromJsonString(Z,$){return new u8().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(u8,Z,$)}static $(){return["SubagentType|1 unspecified #0 type|2 computer_use #1 type|3 custom #2 type|4 explore #3 type|5 media_review #4 type|6 bash #5 type|7 browser_use #6 type|8 shell #7 type|9 vm_setup_helper #8 type|10 debug #9 type|11 cursor_guide #10 type|12 watch_video #11 type",K9,H9,D9,Q9,q9,W9,B9,N9,F9,G9,L9,w9]}};K9=class K9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new K9().fromBinary(Z,$)}static fromJson(Z,$){return new K9().fromJson(Z,$)}static fromJsonString(Z,$){return new K9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(K9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};H9=class H9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new H9().fromBinary(Z,$)}static fromJson(Z,$){return new H9().fromJson(Z,$)}static fromJsonString(Z,$){return new H9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(H9,Z,$)}static $(){return["SubagentTypeComputerUse"]}};Q9=class Q9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q9().fromBinary(Z,$)}static fromJson(Z,$){return new Q9().fromJson(Z,$)}static fromJsonString(Z,$){return new Q9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(Q9,Z,$)}static $(){return["SubagentTypeExplore"]}};q9=class q9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new q9().fromBinary(Z,$)}static fromJson(Z,$){return new q9().fromJson(Z,$)}static fromJsonString(Z,$){return new q9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(q9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};W9=class W9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new W9().fromBinary(Z,$)}static fromJson(Z,$){return new W9().fromJson(Z,$)}static fromJsonString(Z,$){return new W9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(W9,Z,$)}static $(){return["SubagentTypeBash"]}};N9=class N9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new N9().fromBinary(Z,$)}static fromJson(Z,$){return new N9().fromJson(Z,$)}static fromJsonString(Z,$){return new N9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(N9,Z,$)}static $(){return["SubagentTypeShell"]}};B9=class B9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new B9().fromBinary(Z,$)}static fromJson(Z,$){return new B9().fromJson(Z,$)}static fromJsonString(Z,$){return new B9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(B9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};F9=class F9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new F9().fromBinary(Z,$)}static fromJson(Z,$){return new F9().fromJson(Z,$)}static fromJsonString(Z,$){return new F9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(F9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};G9=class G9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new G9().fromBinary(Z,$)}static fromJson(Z,$){return new G9().fromJson(Z,$)}static fromJsonString(Z,$){return new G9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(G9,Z,$)}static $(){return["SubagentTypeDebug"]}};L9=class L9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new L9().fromBinary(Z,$)}static fromJson(Z,$){return new L9().fromJson(Z,$)}static fromJsonString(Z,$){return new L9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(L9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};w9=class w9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new w9().fromBinary(Z,$)}static fromJson(Z,$){return new w9().fromJson(Z,$)}static fromJsonString(Z,$){return new w9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(w9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};D9=class D9 extends P0{constructor(Z){super();this.name="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new D9().fromBinary(Z,$)}static fromJson(Z,$){return new D9().fromJson(Z,$)}static fromJsonString(Z,$){return new D9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(D9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as Yl,proto3 as U8}from"@bufbuild/protobuf";var kH="agent.v1.",fH,U9,I9,HM,_0,SN,gN;var EH=U(()=>{k();fH=class fH extends B{static get runtime(){return N(this,"runtime",U8)}static $p(){return kH}};U9=class U9 extends fH{constructor(Z){super();U8.util.initPartial(Z,this)}static fromBinary(Z,$){return new U9().fromBinary(Z,$)}static fromJson(Z,$){return new U9().fromJson(Z,$)}static fromJsonString(Z,$){return new U9().fromJsonString(Z,$)}static equals(Z,$){return U8.util.equals(U9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};I9=class I9 extends fH{constructor(Z){super();this.deny=[],this.allow=[],U8.util.initPartial(Z,this)}static fromBinary(Z,$){return new I9().fromBinary(Z,$)}static fromJson(Z,$){return new I9().fromJson(Z,$)}static fromJsonString(Z,$){return new I9().fromJsonString(Z,$)}static equals(Z,$){return U8.util.equals(I9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",HM,U9]}};HM=w(U8,kH,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);_0=class _0 extends fH{constructor(Z){super();this.type=SN.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=gN.UNSPECIFIED,this.additionalReadPaths=[],U8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _0().fromBinary(Z,$)}static fromJson(Z,$){return new _0().fromJson(Z,$)}static fromJsonString(Z,$){return new _0().fromJsonString(Z,$)}static equals(Z,$){return U8.util.equals(_0,Z,$)}static $(){return["SandboxPolicy|1 type #0|2 network_access 8?|3 additional_readwrite_paths 9*|4 additional_readonly_paths 9*|5 debug_output_dir 9?|7 disable_tmp_write 8?|8 allowlist_escalated 8?|9 enable_shared_build_cache 8?|10 network_policy #1?|11 network_policy_strict 8?|12 capture_denies 8?|13 skip_statsig_defaults 8?|14 read_boundary #2|15 additional_read_paths 9*",SN,I9,gN]}};SN=w(U8,kH,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),gN=w(U8,kH,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Hl,proto3 as A8,protoInt64 as bN}from"@bufbuild/protobuf";var QM="agent.v1.",cK,l8,p8,q0,i0;var x6=U(()=>{k();cK=class cK extends B{static get runtime(){return N(this,"runtime",A8)}static $p(){return QM}};l8=class l8 extends cK{constructor(Z){super();A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new l8().fromBinary(Z,$)}static fromJson(Z,$){return new l8().fromJson(Z,$)}static fromJsonString(Z,$){return new l8().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(l8,Z,$)}static $(){return["Range|1 start #0|2 end #0",p8]}};p8=class p8 extends cK{constructor(Z){super();this.line=0,this.column=0,A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new p8().fromBinary(Z,$)}static fromJson(Z,$){return new p8().fromJson(Z,$)}static fromJsonString(Z,$){return new p8().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(p8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};q0=class q0 extends cK{constructor(Z){super();this.filePath="",this.sizeBytes=bN.zero,this.lineCount=bN.zero,A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new q0().fromBinary(Z,$)}static fromJson(Z,$){return new q0().fromJson(Z,$)}static fromJsonString(Z,$){return new q0().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(q0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};i0=class i0 extends cK{constructor(Z){super();this.requestId="",this.reason="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new i0().fromBinary(Z,$)}static fromJson(Z,$){return new i0().fromJson(Z,$)}static fromJsonString(Z,$){return new i0().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(i0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as Nl,proto3 as yQ}from"@bufbuild/protobuf";var qM="agent.v1.",dN,i8;var cN=U(()=>{k();dN=class dN extends B{static get runtime(){return N(this,"runtime",yQ)}static $p(){return qM}};i8=class i8 extends dN{constructor(Z){super();this.hookEventName="",this.content="",yQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new i8().fromBinary(Z,$)}static fromJson(Z,$){return new i8().fromJson(Z,$)}static fromJsonString(Z,$){return new i8().fromJsonString(Z,$)}static equals(Z,$){return yQ.util.equals(i8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Ll,proto3 as C}from"@bufbuild/protobuf";var y9="agent.v1.",Z0,uN,WM,NM,O9,k9,f9,E9,P9,lN,V9,x9,M9,pN,M6,h6,h9,A9,v9,C9,T9,R9;var iN=U(()=>{EH();x6();k();Z0=class Z0 extends B{static get runtime(){return N(this,"runtime",C)}static $p(){return y9}};uN=w(C,y9,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),WM=w(C,y9,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),NM=w(C,y9,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);O9=class O9 extends Z0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new O9().fromBinary(Z,$)}static fromJson(Z,$){return new O9().fromJson(Z,$)}static fromJsonString(Z,$){return new O9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(O9,Z,$)}static $(){return["ShellCommandParsingResult|1 parsing_failed 8|2 executable_commands #0*|3 has_redirects 8|4 has_command_substitution 8|5 all_redirects_are_dev_null 8?|6 redirects #1*",f9,E9]}};k9=class k9 extends Z0{constructor(Z){super();this.type="",this.value="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new k9().fromBinary(Z,$)}static fromJson(Z,$){return new k9().fromJson(Z,$)}static fromJsonString(Z,$){return new k9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(k9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};f9=class f9 extends Z0{constructor(Z){super();this.name="",this.args=[],this.fullText="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new f9().fromBinary(Z,$)}static fromJson(Z,$){return new f9().fromJson(Z,$)}static fromJsonString(Z,$){return new f9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(f9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",k9]}};E9=class E9 extends Z0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new E9().fromBinary(Z,$)}static fromJson(Z,$){return new E9().fromJson(Z,$)}static fromJsonString(Z,$){return new E9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(E9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};P9=class P9 extends Z0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=lN.UNSPECIFIED,this.classificationFailed=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new P9().fromBinary(Z,$)}static fromJson(Z,$){return new P9().fromJson(Z,$)}static fromJsonString(Z,$){return new P9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(P9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",V9,lN]}};lN=w(C,y9,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);V9=class V9 extends Z0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new V9().fromBinary(Z,$)}static fromJson(Z,$){return new V9().fromJson(Z,$)}static fromJsonString(Z,$){return new V9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(V9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};x9=class x9 extends Z0{constructor(Z){super();this.pattern="",this.reason="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new x9().fromBinary(Z,$)}static fromJson(Z,$){return new x9().fromJson(Z,$)}static fromJsonString(Z,$){return new x9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(x9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};M9=class M9 extends Z0{constructor(Z){super();this.kind=pN.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M9().fromBinary(Z,$)}static fromJson(Z,$){return new M9().fromJson(Z,$)}static fromJsonString(Z,$){return new M9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",pN]}};pN=w(C,y9,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);M6=class M6 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeout=0,this.toolCallId="",this.simpleCommands=[],this.hasInputRedirect=!1,this.hasOutputRedirect=!1,this.isBackground=!1,this.skipApproval=!1,this.timeoutBehavior=uN.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M6().fromBinary(Z,$)}static fromJson(Z,$){return new M6().fromJson(Z,$)}static fromJsonString(Z,$){return new M6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M6,Z,$)}static $(){return["ShellArgs|1 command 9|2 working_directory 9|3 timeout 5|4 tool_call_id 9|5 simple_commands 9*|6 has_input_redirect 8|7 has_output_redirect 8|8 parsing_result #0|9 requested_sandbox_policy #1?|10 file_output_threshold_bytes 4?|11 is_background 8|12 skip_approval 8|13 timeout_behavior #2|14 hard_timeout 5?|15 description 9?|16 classifier_result #3?|17 close_stdin 8|18 output_notification #4?|19 smart_mode_approval #5?|20 hook_approval_requirement #6?|21 conversation_id 9?|22 admin_command_denylist 9*|23 request_id 9?|24 secret_scope_id 9?",O9,_0,uN,P9,x9,i0,M9]}};h6=class h6 extends Z0{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h6().fromBinary(Z,$)}static fromJson(Z,$){return new h6().fromJson(Z,$)}static fromJsonString(Z,$){return new h6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h6,Z,$)}static $(){return["ShellResult|1 success #0 result|2 failure #1 result|3 timeout #2 result|4 rejected #3 result|5 spawn_error #4 result|7 permission_denied #5 result|101 sandbox_policy #6?|102 is_background 8?|103 terminals_folder 9?|104 pid 13?",h9,A9,v9,C9,R9,T9,_0]}};h9=class h9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h9().fromBinary(Z,$)}static fromJson(Z,$){return new h9().fromJson(Z,$)}static fromJsonString(Z,$){return new h9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h9,Z,$)}static $(){return["ShellSuccess|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 shell_id 13?|10 interleaved_output 9?|11 pid 13?|12 ms_to_wait 5?|13 local_execution_time_ms 5?|14 background_reason #1?|15 output_head 9?|16 output_tail 9?|17 elided_chars 13?",q0,WM]}};A9=class A9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new A9().fromBinary(Z,$)}static fromJson(Z,$){return new A9().fromJson(Z,$)}static fromJsonString(Z,$){return new A9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(A9,Z,$)}static $(){return["ShellFailure|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 interleaved_output 9?|10 abort_reason #1?|11 aborted 8|12 local_execution_time_ms 5?|13 output_head 9?|14 output_tail 9?|15 elided_chars 13?",q0,NM]}};v9=class v9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new v9().fromBinary(Z,$)}static fromJson(Z,$){return new v9().fromJson(Z,$)}static fromJsonString(Z,$){return new v9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(v9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};C9=class C9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new C9().fromBinary(Z,$)}static fromJson(Z,$){return new C9().fromJson(Z,$)}static fromJsonString(Z,$){return new C9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(C9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};T9=class T9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new T9().fromBinary(Z,$)}static fromJson(Z,$){return new T9().fromJson(Z,$)}static fromJsonString(Z,$){return new T9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(T9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};R9=class R9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new R9().fromBinary(Z,$)}static fromJson(Z,$){return new R9().fromJson(Z,$)}static fromJsonString(Z,$){return new R9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(R9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as kl,proto3 as mQ}from"@bufbuild/protobuf";var BM="agent.v1.",nN,A6;var aN=U(()=>{iN();k();nN=class nN extends B{static get runtime(){return N(this,"runtime",mQ)}static $p(){return BM}};A6=class A6 extends nN{constructor(Z){super();mQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new A6().fromBinary(Z,$)}static fromJson(Z,$){return new A6().fromJson(Z,$)}static fromJsonString(Z,$){return new A6().fromJsonString(Z,$)}static equals(Z,$){return mQ.util.equals(A6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",M6,h6]}}});import{Message as xl,proto3 as n,protoInt64 as FM}from"@bufbuild/protobuf";var GM="agent.v1.",I8,v6,C6,m9,j9,_9,S9,g9,b9,d9;var rN=U(()=>{k();I8=class I8 extends B{static get runtime(){return N(this,"runtime",n)}static $p(){return GM}};v6=class v6 extends I8{constructor(Z){super();this.path="",this.toolCallId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new v6().fromBinary(Z,$)}static fromJson(Z,$){return new v6().fromJson(Z,$)}static fromJsonString(Z,$){return new v6().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(v6,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};C6=class C6 extends I8{constructor(Z){super();this.result={case:void 0},n.util.initPartial(Z,this)}static fromBinary(Z,$){return new C6().fromBinary(Z,$)}static fromJson(Z,$){return new C6().fromJson(Z,$)}static fromJsonString(Z,$){return new C6().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(C6,Z,$)}static $(){return["DeleteResult|1 success #0 result|2 file_not_found #1 result|3 not_file #2 result|4 permission_denied #3 result|5 file_busy #4 result|6 rejected #5 result|7 error #6 result",m9,j9,_9,S9,g9,b9,d9]}};m9=class m9 extends I8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=FM.zero,this.prevContent="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new m9().fromBinary(Z,$)}static fromJson(Z,$){return new m9().fromJson(Z,$)}static fromJsonString(Z,$){return new m9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(m9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};j9=class j9 extends I8{constructor(Z){super();this.path="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new j9().fromBinary(Z,$)}static fromJson(Z,$){return new j9().fromJson(Z,$)}static fromJsonString(Z,$){return new j9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(j9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};_9=class _9 extends I8{constructor(Z){super();this.path="",this.actualType="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new _9().fromBinary(Z,$)}static fromJson(Z,$){return new _9().fromJson(Z,$)}static fromJsonString(Z,$){return new _9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(_9,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};S9=class S9 extends I8{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,n.util.initPartial(Z,this)}static fromBinary(Z,$){return new S9().fromBinary(Z,$)}static fromJson(Z,$){return new S9().fromJson(Z,$)}static fromJsonString(Z,$){return new S9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(S9,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};g9=class g9 extends I8{constructor(Z){super();this.path="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new g9().fromBinary(Z,$)}static fromJson(Z,$){return new g9().fromJson(Z,$)}static fromJsonString(Z,$){return new g9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(g9,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};b9=class b9 extends I8{constructor(Z){super();this.path="",this.reason="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new b9().fromBinary(Z,$)}static fromJson(Z,$){return new b9().fromJson(Z,$)}static fromJsonString(Z,$){return new b9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(b9,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};d9=class d9 extends I8{constructor(Z){super();this.path="",this.error="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new d9().fromBinary(Z,$)}static fromJson(Z,$){return new d9().fromJson(Z,$)}static fromJsonString(Z,$){return new d9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(d9,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as vl,proto3 as jQ}from"@bufbuild/protobuf";var LM="agent.v1.",sN,T6;var tN=U(()=>{rN();k();sN=class sN extends B{static get runtime(){return N(this,"runtime",jQ)}static $p(){return LM}};T6=class T6 extends sN{constructor(Z){super();jQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new T6().fromBinary(Z,$)}static fromJson(Z,$){return new T6().fromJson(Z,$)}static fromJsonString(Z,$){return new T6().fromJsonString(Z,$)}static equals(Z,$){return jQ.util.equals(T6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",v6,C6]}}});import{Message as ml,proto3 as n0}from"@bufbuild/protobuf";var wM="agent.v1.",i9,c9,u9,l9,p9,R6;var oN=U(()=>{k();i9=class i9 extends B{static get runtime(){return N(this,"runtime",n0)}static $p(){return wM}};c9=class c9 extends i9{constructor(Z){super();this.globPattern="",n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c9().fromBinary(Z,$)}static fromJson(Z,$){return new c9().fromJson(Z,$)}static fromJsonString(Z,$){return new c9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(c9,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};u9=class u9 extends i9{constructor(Z){super();this.result={case:void 0},n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u9().fromBinary(Z,$)}static fromJson(Z,$){return new u9().fromJson(Z,$)}static fromJsonString(Z,$){return new u9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(u9,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",p9,l9]}};l9=class l9 extends i9{constructor(Z){super();this.error="",n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l9().fromBinary(Z,$)}static fromJson(Z,$){return new l9().fromJson(Z,$)}static fromJsonString(Z,$){return new l9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(l9,Z,$)}static $(){return["GlobToolError|1 error 9"]}};p9=class p9 extends i9{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(p9,Z,$)}static $(){return["GlobToolSuccess|1 pattern 9|2 path 9|3 files 9*|4 total_files 5|5 client_truncated 8|6 ripgrep_truncated 8"]}};R6=class R6 extends i9{constructor(Z){super();n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new R6().fromBinary(Z,$)}static fromJson(Z,$){return new R6().fromJson(Z,$)}static fromJsonString(Z,$){return new R6().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(R6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",c9,u9]}}});import{Message as gl,proto3 as d}from"@bufbuild/protobuf";var DM="agent.v1.",S0,y6,m6,n9,a9,r9,s9,t9,o9,e9,Z7,$7;var eN=U(()=>{EH();k();S0=class S0 extends B{static get runtime(){return N(this,"runtime",d)}static $p(){return DM}};y6=class y6 extends S0{constructor(Z){super();this.pattern="",this.toolCallId="",d.util.initPartial(Z,this)}static fromBinary(Z,$){return new y6().fromBinary(Z,$)}static fromJson(Z,$){return new y6().fromJson(Z,$)}static fromJsonString(Z,$){return new y6().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(y6,Z,$)}static $(){return["GrepArgs|1 pattern 9|2 path 9?|3 glob 9?|4 output_mode 9?|5 context_before 5?|6 context_after 5?|7 context 5?|8 case_insensitive 8?|9 type 9?|10 head_limit 5?|11 multiline 8?|12 sort 9?|13 sort_ascending 8?|14 tool_call_id 9|15 sandbox_policy #0?|16 offset 5?",_0]}};m6=class m6 extends S0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new m6().fromBinary(Z,$)}static fromJson(Z,$){return new m6().fromJson(Z,$)}static fromJsonString(Z,$){return new m6().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(m6,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",a9,n9]}};n9=class n9 extends S0{constructor(Z){super();this.error="",d.util.initPartial(Z,this)}static fromBinary(Z,$){return new n9().fromBinary(Z,$)}static fromJson(Z,$){return new n9().fromJson(Z,$)}static fromJsonString(Z,$){return new n9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(n9,Z,$)}static $(){return["GrepError|1 error 9"]}};a9=class a9 extends S0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new a9().fromBinary(Z,$)}static fromJson(Z,$){return new a9().fromJson(Z,$)}static fromJsonString(Z,$){return new a9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(a9,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",r9]}};r9=class r9 extends S0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new r9().fromBinary(Z,$)}static fromJson(Z,$){return new r9().fromJson(Z,$)}static fromJsonString(Z,$){return new r9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(r9,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",s9,o9,e9]}};s9=class s9 extends S0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new s9().fromBinary(Z,$)}static fromJson(Z,$){return new s9().fromJson(Z,$)}static fromJsonString(Z,$){return new s9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(s9,Z,$)}static $(){return["GrepCountResult|1 counts #0*|2 total_files 5|3 total_matches 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",t9]}};t9=class t9 extends S0{constructor(Z){super();this.file="",this.count=0,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new t9().fromBinary(Z,$)}static fromJson(Z,$){return new t9().fromJson(Z,$)}static fromJsonString(Z,$){return new t9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(t9,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};o9=class o9 extends S0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new o9().fromBinary(Z,$)}static fromJson(Z,$){return new o9().fromJson(Z,$)}static fromJsonString(Z,$){return new o9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(o9,Z,$)}static $(){return["GrepFilesResult|1 files 9*|2 total_files 5|3 client_truncated 8|4 ripgrep_truncated 8|5 head_limit_applied 5?|6 offset_applied 5?"]}};e9=class e9 extends S0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new e9().fromBinary(Z,$)}static fromJson(Z,$){return new e9().fromJson(Z,$)}static fromJsonString(Z,$){return new e9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(e9,Z,$)}static $(){return["GrepContentResult|1 matches #0*|2 total_lines 5|3 total_matched_lines 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",Z7]}};Z7=class Z7 extends S0{constructor(Z){super();this.file="",this.matches=[],d.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z7().fromBinary(Z,$)}static fromJson(Z,$){return new Z7().fromJson(Z,$)}static fromJsonString(Z,$){return new Z7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(Z7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",$7]}};$7=class $7 extends S0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new $7().fromBinary(Z,$)}static fromJson(Z,$){return new $7().fromJson(Z,$)}static fromJsonString(Z,$){return new $7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals($7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as ll,proto3 as _Q}from"@bufbuild/protobuf";var UM="agent.v1.",ZB,j6;var $B=U(()=>{eN();k();ZB=class ZB extends B{static get runtime(){return N(this,"runtime",_Q)}static $p(){return UM}};j6=class j6 extends ZB{constructor(Z){super();_Q.util.initPartial(Z,this)}static fromBinary(Z,$){return new j6().fromBinary(Z,$)}static fromJson(Z,$){return new j6().fromJson(Z,$)}static fromJsonString(Z,$){return new j6().fromJsonString(Z,$)}static equals(Z,$){return _Q.util.equals(j6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",y6,m6]}}});import{Message as rl,proto3 as V0}from"@bufbuild/protobuf";var YB="agent.v1.",_6,JB,J7,Y7,X7,z7,K7,v8;var SQ=U(()=>{k();_6=class _6 extends B{static get runtime(){return N(this,"runtime",V0)}static $p(){return YB}};JB=w(V0,YB,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);J7=class J7 extends _6{constructor(Z){super();V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J7().fromBinary(Z,$)}static fromJson(Z,$){return new J7().fromJson(Z,$)}static fromJsonString(Z,$){return new J7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(J7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};Y7=class Y7 extends _6{constructor(Z){super();this.globs=[],V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y7().fromBinary(Z,$)}static fromJson(Z,$){return new Y7().fromJson(Z,$)}static fromJsonString(Z,$){return new Y7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(Y7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};X7=class X7 extends _6{constructor(Z){super();this.description="",V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X7().fromBinary(Z,$)}static fromJson(Z,$){return new X7().fromJson(Z,$)}static fromJsonString(Z,$){return new X7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(X7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};z7=class z7 extends _6{constructor(Z){super();V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z7().fromBinary(Z,$)}static fromJson(Z,$){return new z7().fromJson(Z,$)}static fromJsonString(Z,$){return new z7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(z7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};K7=class K7 extends _6{constructor(Z){super();this.type={case:void 0},V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K7().fromBinary(Z,$)}static fromJson(Z,$){return new K7().fromJson(Z,$)}static fromJsonString(Z,$){return new K7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(K7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",J7,Y7,X7,z7]}};v8=class v8 extends _6{constructor(Z){super();this.fullPath="",this.content="",this.source=JB.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new v8().fromBinary(Z,$)}static fromJson(Z,$){return new v8().fromJson(Z,$)}static fromJsonString(Z,$){return new v8().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(v8,Z,$)}static $(){return["CursorRule|1 full_path 9|2 content 9|3 type #0|4 source #1|5 git_remote_origin 9?|6 parse_error 9?|7 environments 9*|8 disabled_environments 9*|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 scoped_to 9*|14 frontmatter 9|15 is_required 8?",K7,JB]}}});import{Message as el,proto3 as C0}from"@bufbuild/protobuf";var IM="agent.v1.",g6,S6,H7,Q7,q7,W7,N7;var XB=U(()=>{SQ();k();g6=class g6 extends B{static get runtime(){return N(this,"runtime",C0)}static $p(){return IM}};S6=class S6 extends g6{constructor(Z){super();C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S6().fromBinary(Z,$)}static fromJson(Z,$){return new S6().fromJson(Z,$)}static fromJsonString(Z,$){return new S6().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(S6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",H7,Q7]}};H7=class H7 extends g6{constructor(Z){super();this.path="",C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H7().fromBinary(Z,$)}static fromJson(Z,$){return new H7().fromJson(Z,$)}static fromJsonString(Z,$){return new H7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(H7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};Q7=class Q7 extends g6{constructor(Z){super();this.result={case:void 0},C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q7().fromBinary(Z,$)}static fromJson(Z,$){return new Q7().fromJson(Z,$)}static fromJsonString(Z,$){return new Q7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(Q7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",W7,N7]}};q7=class q7 extends g6{constructor(Z){super();this.startLine=0,this.endLine=0,C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q7().fromBinary(Z,$)}static fromJson(Z,$){return new q7().fromJson(Z,$)}static fromJsonString(Z,$){return new q7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(q7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};W7=class W7 extends g6{constructor(Z){super();this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W7().fromBinary(Z,$)}static fromJson(Z,$){return new W7().fromJson(Z,$)}static fromJsonString(Z,$){return new W7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(W7,Z,$)}static $(){return["ReadToolSuccess|1 content 9 output|6 data 12 output|9 data_blob_id 12 output|10 content_blob_id 12 output|2 is_empty 8|3 exceeded_limit 8|4 total_lines 13|5 file_size 13|7 path 9|8 read_range #0?|11 include_line_numbers 8?|12 related_cursor_rule_paths 9*|13 related_cursor_rules #1*",q7,v8]}};N7=class N7 extends g6{constructor(Z){super();this.errorMessage="",C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N7().fromBinary(Z,$)}static fromJson(Z,$){return new N7().fromJson(Z,$)}static fromJsonString(Z,$){return new N7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(N7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as Xp,proto3 as b,protoInt64 as zB}from"@bufbuild/protobuf";var KB="agent.v1.",g0,gQ,W0,b6,B7,F7,G7,L7,d6,w7,D7,U7,I7;var PH=U(()=>{k();g0=class g0 extends B{static get runtime(){return N(this,"runtime",b)}static $p(){return KB}};gQ=w(b,KB,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);W0=class W0 extends g0{constructor(Z){super();this.id="",this.content="",this.status=gQ.UNSPECIFIED,this.createdAt=zB.zero,this.updatedAt=zB.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new W0().fromBinary(Z,$)}static fromJson(Z,$){return new W0().fromJson(Z,$)}static fromJsonString(Z,$){return new W0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(W0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",gQ]}};b6=class b6 extends g0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new b6().fromBinary(Z,$)}static fromJson(Z,$){return new b6().fromJson(Z,$)}static fromJsonString(Z,$){return new b6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(b6,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",B7,F7]}};B7=class B7 extends g0{constructor(Z){super();this.todos=[],this.merge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new B7().fromBinary(Z,$)}static fromJson(Z,$){return new B7().fromJson(Z,$)}static fromJsonString(Z,$){return new B7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(B7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",W0]}};F7=class F7 extends g0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new F7().fromBinary(Z,$)}static fromJson(Z,$){return new F7().fromJson(Z,$)}static fromJsonString(Z,$){return new F7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(F7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",G7,L7]}};G7=class G7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new G7().fromBinary(Z,$)}static fromJson(Z,$){return new G7().fromJson(Z,$)}static fromJsonString(Z,$){return new G7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(G7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",W0]}};L7=class L7 extends g0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new L7().fromBinary(Z,$)}static fromJson(Z,$){return new L7().fromJson(Z,$)}static fromJsonString(Z,$){return new L7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(L7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};d6=class d6 extends g0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new d6().fromBinary(Z,$)}static fromJson(Z,$){return new d6().fromJson(Z,$)}static fromJsonString(Z,$){return new d6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(d6,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",w7,D7]}};w7=class w7 extends g0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new w7().fromBinary(Z,$)}static fromJson(Z,$){return new w7().fromJson(Z,$)}static fromJsonString(Z,$){return new w7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(w7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",gQ]}};D7=class D7 extends g0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new D7().fromBinary(Z,$)}static fromJson(Z,$){return new D7().fromJson(Z,$)}static fromJsonString(Z,$){return new D7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(D7,Z,$)}static $(){return["ReadTodosResult|1 success #0 result|2 error #1 result",U7,I7]}};U7=class U7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(U7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",W0]}};I7=class I7 extends g0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(I7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as Qp,proto3 as a}from"@bufbuild/protobuf";var OM="agent.v1.",O8,O7,k7,f7,E7,P7,V7,x7,M7,c6;var HB=U(()=>{k();O8=class O8 extends B{static get runtime(){return N(this,"runtime",a)}static $p(){return OM}};O7=class O7 extends O8{constructor(Z){super();this.path="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new O7().fromBinary(Z,$)}static fromJson(Z,$){return new O7().fromJson(Z,$)}static fromJsonString(Z,$){return new O7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(O7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};k7=class k7 extends O8{constructor(Z){super();this.result={case:void 0},a.util.initPartial(Z,this)}static fromBinary(Z,$){return new k7().fromBinary(Z,$)}static fromJson(Z,$){return new k7().fromJson(Z,$)}static fromJsonString(Z,$){return new k7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(k7,Z,$)}static $(){return["EditResult|1 success #0 result|2 file_not_found #1 result|3 read_permission_denied #2 result|4 write_permission_denied #3 result|6 rejected #4 result|7 error #5 result",f7,E7,P7,V7,x7,M7]}};f7=class f7 extends O8{constructor(Z){super();this.path="",this.afterFullFileContent="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new f7().fromBinary(Z,$)}static fromJson(Z,$){return new f7().fromJson(Z,$)}static fromJsonString(Z,$){return new f7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(f7,Z,$)}static $(){return["EditSuccess|1 path 9|3 lines_added 5?|4 lines_removed 5?|5 diff_string 9?|6 before_full_file_content 9?|7 after_full_file_content 9|8 message 9?"]}};E7=class E7 extends O8{constructor(Z){super();this.path="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new E7().fromBinary(Z,$)}static fromJson(Z,$){return new E7().fromJson(Z,$)}static fromJsonString(Z,$){return new E7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(E7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};P7=class P7 extends O8{constructor(Z){super();this.path="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new P7().fromBinary(Z,$)}static fromJson(Z,$){return new P7().fromJson(Z,$)}static fromJsonString(Z,$){return new P7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(P7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};V7=class V7 extends O8{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,a.util.initPartial(Z,this)}static fromBinary(Z,$){return new V7().fromBinary(Z,$)}static fromJson(Z,$){return new V7().fromJson(Z,$)}static fromJsonString(Z,$){return new V7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(V7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};x7=class x7 extends O8{constructor(Z){super();this.path="",this.reason="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new x7().fromBinary(Z,$)}static fromJson(Z,$){return new x7().fromJson(Z,$)}static fromJsonString(Z,$){return new x7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(x7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};M7=class M7 extends O8{constructor(Z){super();this.path="",this.error="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new M7().fromBinary(Z,$)}static fromJson(Z,$){return new M7().fromJson(Z,$)}static fromJsonString(Z,$){return new M7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(M7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};c6=class c6 extends O8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new c6().fromBinary(Z,$)}static fromJson(Z,$){return new c6().fromJson(Z,$)}static fromJsonString(Z,$){return new c6().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(c6,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",O7,k7]}}});import{Message as Bp,proto3 as u}from"@bufbuild/protobuf";var kM="agent.v1.",a0,u6,l6,h7,k8,A7,v7,C7,T7,R7,y7;var bQ=U(()=>{EH();k();a0=class a0 extends B{static get runtime(){return N(this,"runtime",u)}static $p(){return kM}};u6=class u6 extends a0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new u6().fromBinary(Z,$)}static fromJson(Z,$){return new u6().fromJson(Z,$)}static fromJsonString(Z,$){return new u6().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(u6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",_0]}};l6=class l6 extends a0{constructor(Z){super();this.result={case:void 0},u.util.initPartial(Z,this)}static fromBinary(Z,$){return new l6().fromBinary(Z,$)}static fromJson(Z,$){return new l6().fromJson(Z,$)}static fromJsonString(Z,$){return new l6().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(l6,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",h7,v7,C7,T7]}};h7=class h7 extends a0{constructor(Z){super();u.util.initPartial(Z,this)}static fromBinary(Z,$){return new h7().fromBinary(Z,$)}static fromJson(Z,$){return new h7().fromJson(Z,$)}static fromJsonString(Z,$){return new h7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(h7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",k8]}};k8=class k8 extends a0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,u.util.initPartial(Z,this)}static fromBinary(Z,$){return new k8().fromBinary(Z,$)}static fromJson(Z,$){return new k8().fromJson(Z,$)}static fromJsonString(Z,$){return new k8().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(k8,Z,$)}static $(){return["LsDirectoryTreeNode|1 abs_path 9|2 children_dirs #0*|3 children_files #1*|4 children_were_processed 8|5 full_subtree_extension_counts 9,5|6 num_files 5",k8,A7]}};A7=class A7 extends a0{constructor(Z){super();this.name="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new A7().fromBinary(Z,$)}static fromJson(Z,$){return new A7().fromJson(Z,$)}static fromJsonString(Z,$){return new A7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(A7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",R7]}};v7=class v7 extends a0{constructor(Z){super();this.path="",this.error="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new v7().fromBinary(Z,$)}static fromJson(Z,$){return new v7().fromJson(Z,$)}static fromJsonString(Z,$){return new v7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(v7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};C7=class C7 extends a0{constructor(Z){super();this.path="",this.reason="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new C7().fromBinary(Z,$)}static fromJson(Z,$){return new C7().fromJson(Z,$)}static fromJsonString(Z,$){return new C7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(C7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};T7=class T7 extends a0{constructor(Z){super();u.util.initPartial(Z,this)}static fromBinary(Z,$){return new T7().fromBinary(Z,$)}static fromJson(Z,$){return new T7().fromJson(Z,$)}static fromJsonString(Z,$){return new T7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(T7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",k8]}};R7=class R7 extends a0{constructor(Z){super();this.lastCommands=[],u.util.initPartial(Z,this)}static fromBinary(Z,$){return new R7().fromBinary(Z,$)}static fromJson(Z,$){return new R7().fromJson(Z,$)}static fromJsonString(Z,$){return new R7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(R7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",y7]}};y7=class y7 extends a0{constructor(Z){super();this.command="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new y7().fromBinary(Z,$)}static fromJson(Z,$){return new y7().fromJson(Z,$)}static fromJsonString(Z,$){return new y7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(y7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as Dp,proto3 as dQ}from"@bufbuild/protobuf";var fM="agent.v1.",QB,p6;var qB=U(()=>{bQ();k();QB=class QB extends B{static get runtime(){return N(this,"runtime",dQ)}static $p(){return fM}};p6=class p6 extends QB{constructor(Z){super();dQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new p6().fromBinary(Z,$)}static fromJson(Z,$){return new p6().fromJson(Z,$)}static fromJsonString(Z,$){return new p6().fromJsonString(Z,$)}static equals(Z,$){return dQ.util.equals(p6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",u6,l6]}}});import{Message as fp,proto3 as EM}from"@bufbuild/protobuf";var PM="agent.v1.",cQ;var WB=U(()=>{k();cQ=w(EM,PM,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as xp,proto3 as $0}from"@bufbuild/protobuf";var VM="agent.v1.",C8,i6,m7,j7,_7,S7,g7,b7,d7;var NB=U(()=>{WB();x6();k();C8=class C8 extends B{static get runtime(){return N(this,"runtime",$0)}static $p(){return VM}};i6=class i6 extends C8{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i6().fromBinary(Z,$)}static fromJson(Z,$){return new i6().fromJson(Z,$)}static fromJsonString(Z,$){return new i6().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(i6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",m7,j7]}};m7=class m7 extends C8{constructor(Z){super();this.paths=[],$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new m7().fromBinary(Z,$)}static fromJson(Z,$){return new m7().fromJson(Z,$)}static fromJsonString(Z,$){return new m7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(m7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};j7=class j7 extends C8{constructor(Z){super();this.result={case:void 0},$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new j7().fromBinary(Z,$)}static fromJson(Z,$){return new j7().fromJson(Z,$)}static fromJsonString(Z,$){return new j7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(j7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",_7,d7]}};_7=class _7 extends C8{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _7().fromBinary(Z,$)}static fromJson(Z,$){return new _7().fromJson(Z,$)}static fromJsonString(Z,$){return new _7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(_7,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",S7]}};S7=class S7 extends C8{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S7().fromBinary(Z,$)}static fromJson(Z,$){return new S7().fromJson(Z,$)}static fromJsonString(Z,$){return new S7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(S7,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",g7]}};g7=class g7 extends C8{constructor(Z){super();this.severity=cQ.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g7().fromBinary(Z,$)}static fromJson(Z,$){return new g7().fromJson(Z,$)}static fromJsonString(Z,$){return new g7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(g7,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",cQ,b7]}};b7=class b7 extends C8{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b7().fromBinary(Z,$)}static fromJson(Z,$){return new b7().fromJson(Z,$)}static fromJsonString(Z,$){return new b7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(b7,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",p8]}};d7=class d7 extends C8{constructor(Z){super();this.errorMessage="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d7().fromBinary(Z,$)}static fromJson(Z,$){return new d7().fromJson(Z,$)}static fromJsonString(Z,$){return new d7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(d7,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as Tp,proto3 as h,protoInt64 as xM,Struct as MM,Value as hM}from"@bufbuild/protobuf";var AM="agent.v1.",c,n6,c7,u7,l7,p7,n8,a6,r6,s6,t6,o6,i7,n7,a7,r7,e6,ZZ,s7,t7,o7,e7;var uQ=U(()=>{x6();k();c=class c extends B{static get runtime(){return N(this,"runtime",h)}static $p(){return AM}};n6=class n6 extends c{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n6().fromBinary(Z,$)}static fromJson(Z,$){return new n6().fromJson(Z,$)}static fromJsonString(Z,$){return new n6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n6,Z,$)}static $(){return["McpArgs|1 name 9|2 args 9,#0|3 tool_call_id 9|4 provider_identifier 9|5 tool_name 9|6 smart_mode_approval #1?|7 smart_mode_approval_only 8|8 skip_approval 8|9 server_identifier 9|10 symbolic_path_arguments #2*",hM,i0,c7]}};c7=class c7 extends c{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=xM.zero,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new c7().fromBinary(Z,$)}static fromJson(Z,$){return new c7().fromJson(Z,$)}static fromJsonString(Z,$){return new c7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(c7,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};u7=class u7 extends c{constructor(Z){super();this.text="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new u7().fromBinary(Z,$)}static fromJson(Z,$){return new u7().fromJson(Z,$)}static fromJsonString(Z,$){return new u7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(u7,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",q0]}};l7=class l7 extends c{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new l7().fromBinary(Z,$)}static fromJson(Z,$){return new l7().fromJson(Z,$)}static fromJsonString(Z,$){return new l7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(l7,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};p7=class p7 extends c{constructor(Z){super();this.content={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new p7().fromBinary(Z,$)}static fromJson(Z,$){return new p7().fromJson(Z,$)}static fromJsonString(Z,$){return new p7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(p7,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",u7,l7]}};n8=class n8 extends c{constructor(Z){super();this.body="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n8().fromBinary(Z,$)}static fromJson(Z,$){return new n8().fromJson(Z,$)}static fromJsonString(Z,$){return new n8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n8,Z,$)}static $(){return["SystemReminder|1 body 9"]}};a6=class a6 extends c{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new a6().fromBinary(Z,$)}static fromJson(Z,$){return new a6().fromJson(Z,$)}static fromJsonString(Z,$){return new a6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(a6,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*",p7,MM,n8]}};r6=class r6 extends c{constructor(Z){super();this.reason="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new r6().fromBinary(Z,$)}static fromJson(Z,$){return new r6().fromJson(Z,$)}static fromJsonString(Z,$){return new r6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(r6,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};s6=class s6 extends c{constructor(Z){super();this.error="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new s6().fromBinary(Z,$)}static fromJson(Z,$){return new s6().fromJson(Z,$)}static fromJsonString(Z,$){return new s6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(s6,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};t6=class t6 extends c{constructor(Z){super();h.util.initPartial(Z,this)}static fromBinary(Z,$){return new t6().fromBinary(Z,$)}static fromJson(Z,$){return new t6().fromJson(Z,$)}static fromJsonString(Z,$){return new t6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(t6,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};o6=class o6 extends c{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o6().fromBinary(Z,$)}static fromJson(Z,$){return new o6().fromJson(Z,$)}static fromJsonString(Z,$){return new o6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o6,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",n7,a7,r7]}};i7=class i7 extends c{constructor(Z){super();this.uri="",this.server="",this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new i7().fromBinary(Z,$)}static fromJson(Z,$){return new i7().fromJson(Z,$)}static fromJsonString(Z,$){return new i7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(i7,Z,$)}static $(){return["ListMcpResourcesExecResult.McpResource|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 server 9|6 annotations 9,9"]}};n7=class n7 extends c{constructor(Z){super();this.resources=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n7().fromBinary(Z,$)}static fromJson(Z,$){return new n7().fromJson(Z,$)}static fromJsonString(Z,$){return new n7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n7,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",i7]}};a7=class a7 extends c{constructor(Z){super();this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new a7().fromBinary(Z,$)}static fromJson(Z,$){return new a7().fromJson(Z,$)}static fromJsonString(Z,$){return new a7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(a7,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};r7=class r7 extends c{constructor(Z){super();this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new r7().fromBinary(Z,$)}static fromJson(Z,$){return new r7().fromJson(Z,$)}static fromJsonString(Z,$){return new r7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(r7,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};e6=class e6 extends c{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new e6().fromBinary(Z,$)}static fromJson(Z,$){return new e6().fromJson(Z,$)}static fromJsonString(Z,$){return new e6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(e6,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",i0]}};ZZ=class ZZ extends c{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZZ().fromBinary(Z,$)}static fromJson(Z,$){return new ZZ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(ZZ,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",s7,t7,o7,e7]}};s7=class s7 extends c{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new s7().fromBinary(Z,$)}static fromJson(Z,$){return new s7().fromJson(Z,$)}static fromJsonString(Z,$){return new s7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(s7,Z,$)}static $(){return["ReadMcpResourceSuccess|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 text 9 content|6 blob 12 content|7 annotations 9,9|8 download_path 9?|9 output_location #0?",q0]}};t7=class t7 extends c{constructor(Z){super();this.uri="",this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new t7().fromBinary(Z,$)}static fromJson(Z,$){return new t7().fromJson(Z,$)}static fromJsonString(Z,$){return new t7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(t7,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};o7=class o7 extends c{constructor(Z){super();this.uri="",this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o7().fromBinary(Z,$)}static fromJson(Z,$){return new o7().fromJson(Z,$)}static fromJsonString(Z,$){return new o7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o7,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};e7=class e7 extends c{constructor(Z){super();this.uri="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new e7().fromBinary(Z,$)}static fromJson(Z,$){return new e7().fromJson(Z,$)}static fromJsonString(Z,$){return new e7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(e7,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as _p,proto3 as JZ}from"@bufbuild/protobuf";var vM="agent.v1.",VH,Z5,$5,$Z;var BB=U(()=>{uQ();k();VH=class VH extends B{static get runtime(){return N(this,"runtime",JZ)}static $p(){return vM}};Z5=class Z5 extends VH{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],JZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z5().fromBinary(Z,$)}static fromJson(Z,$){return new Z5().fromJson(Z,$)}static fromJsonString(Z,$){return new Z5().fromJsonString(Z,$)}static equals(Z,$){return JZ.util.equals(Z5,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",n8]}};$5=class $5 extends VH{constructor(Z){super();this.result={case:void 0},JZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new $5().fromBinary(Z,$)}static fromJson(Z,$){return new $5().fromJson(Z,$)}static fromJsonString(Z,$){return new $5().fromJsonString(Z,$)}static equals(Z,$){return JZ.util.equals($5,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",a6,Z5,r6,s6]}};$Z=class $Z extends VH{constructor(Z){super();JZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Z().fromBinary(Z,$)}static fromJson(Z,$){return new $Z().fromJson(Z,$)}static fromJsonString(Z,$){return new $Z().fromJsonString(Z,$)}static equals(Z,$){return JZ.util.equals($Z,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",n6,$5]}}});import{Message as cp,proto3 as N0}from"@bufbuild/protobuf";var CM="aiserver.v1.",a8,J5,YZ,XZ,zZ,Y5,X5,z5;var FB=U(()=>{k();a8=class a8 extends B{static get runtime(){return N(this,"runtime",N0)}static $p(){return CM}};J5=class J5 extends a8{constructor(Z){super();this.line=0,this.column=0,N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J5().fromBinary(Z,$)}static fromJson(Z,$){return new J5().fromJson(Z,$)}static fromJsonString(Z,$){return new J5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(J5,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};YZ=class YZ extends a8{constructor(Z){super();N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new YZ().fromBinary(Z,$)}static fromJson(Z,$){return new YZ().fromJson(Z,$)}static fromJsonString(Z,$){return new YZ().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(YZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",J5]}};XZ=class XZ extends a8{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new XZ().fromBinary(Z,$)}static fromJson(Z,$){return new XZ().fromJson(Z,$)}static fromJsonString(Z,$){return new XZ().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(XZ,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};zZ=class zZ extends a8{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new zZ().fromBinary(Z,$)}static fromJson(Z,$){return new zZ().fromJson(Z,$)}static fromJsonString(Z,$){return new zZ().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(zZ,Z,$)}static $(){return["CodeBlock|1 relative_workspace_path 9|2 file_contents 9?|9 file_contents_length 5?|3 range #0|4 contents 9|5 signatures #1|6 override_contents 9?|7 original_contents 9?|8 detailed_lines #2*|10 file_git_context #3",YZ,Y5,XZ,z5]}};Y5=class Y5 extends a8{constructor(Z){super();this.ranges=[],N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y5().fromBinary(Z,$)}static fromJson(Z,$){return new Y5().fromJson(Z,$)}static fromJsonString(Z,$){return new Y5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(Y5,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",YZ]}};X5=class X5 extends a8{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X5().fromBinary(Z,$)}static fromJson(Z,$){return new X5().fromJson(Z,$)}static fromJsonString(Z,$){return new X5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(X5,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};z5=class z5 extends a8{constructor(Z){super();this.commits=[],N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z5().fromBinary(Z,$)}static fromJson(Z,$){return new z5().fromJson(Z,$)}static fromJsonString(Z,$){return new z5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(z5,Z,$)}static $(){return["FileGit|1 commits #0*",X5]}}});import{Message as sp,proto3 as lQ,protoInt64 as tp}from"@bufbuild/protobuf";var TM="aiserver.v1.",GB,KZ;var LB=U(()=>{FB();k();GB=class GB extends B{static get runtime(){return N(this,"runtime",lQ)}static $p(){return TM}};KZ=class KZ extends GB{constructor(Z){super();this.score=0,lQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new KZ().fromBinary(Z,$)}static fromJson(Z,$){return new KZ().fromJson(Z,$)}static fromJsonString(Z,$){return new KZ().fromJsonString(Z,$)}static equals(Z,$){return lQ.util.equals(KZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",zZ]}}});import{Message as Ji,proto3 as r0}from"@bufbuild/protobuf";var RM="agent.v1.",W5,HZ,K5,H5,Q5,q5;var wB=U(()=>{LB();k();W5=class W5 extends B{static get runtime(){return N(this,"runtime",r0)}static $p(){return RM}};HZ=class HZ extends W5{constructor(Z){super();r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HZ().fromBinary(Z,$)}static fromJson(Z,$){return new HZ().fromJson(Z,$)}static fromJsonString(Z,$){return new HZ().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(HZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",K5,H5]}};K5=class K5 extends W5{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K5().fromBinary(Z,$)}static fromJson(Z,$){return new K5().fromJson(Z,$)}static fromJsonString(Z,$){return new K5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(K5,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};H5=class H5 extends W5{constructor(Z){super();this.result={case:void 0},r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H5().fromBinary(Z,$)}static fromJson(Z,$){return new H5().fromJson(Z,$)}static fromJsonString(Z,$){return new H5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(H5,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",Q5,q5]}};Q5=class Q5 extends W5{constructor(Z){super();this.results="",this.codeResults=[],r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q5().fromBinary(Z,$)}static fromJson(Z,$){return new Q5().fromJson(Z,$)}static fromJsonString(Z,$){return new Q5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(Q5,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",KZ]}};q5=class q5 extends W5{constructor(Z){super();this.errorMessage="",r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q5().fromBinary(Z,$)}static fromJson(Z,$){return new q5().fromJson(Z,$)}static fromJsonString(Z,$){return new q5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(q5,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as Hi,proto3 as B0}from"@bufbuild/protobuf";var yM="agent.v1.",r8,QZ,N5,B5,qZ,F5,G5,WZ;var DB=U(()=>{PH();k();r8=class r8 extends B{static get runtime(){return N(this,"runtime",B0)}static $p(){return yM}};QZ=class QZ extends r8{constructor(Z){super();B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QZ().fromBinary(Z,$)}static fromJson(Z,$){return new QZ().fromJson(Z,$)}static fromJsonString(Z,$){return new QZ().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(QZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",B5,qZ]}};N5=class N5 extends r8{constructor(Z){super();this.name="",this.todos=[],B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N5().fromBinary(Z,$)}static fromJson(Z,$){return new N5().fromJson(Z,$)}static fromJsonString(Z,$){return new N5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(N5,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",W0]}};B5=class B5 extends r8{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B5().fromBinary(Z,$)}static fromJson(Z,$){return new B5().fromJson(Z,$)}static fromJsonString(Z,$){return new B5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(B5,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",W0,N5]}};qZ=class qZ extends r8{constructor(Z){super();this.result={case:void 0},this.planUri="",B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new qZ().fromBinary(Z,$)}static fromJson(Z,$){return new qZ().fromJson(Z,$)}static fromJsonString(Z,$){return new qZ().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(qZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",F5,G5]}};F5=class F5 extends r8{constructor(Z){super();B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F5().fromBinary(Z,$)}static fromJson(Z,$){return new F5().fromJson(Z,$)}static fromJsonString(Z,$){return new F5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(F5,Z,$)}static $(){return["CreatePlanSuccess"]}};G5=class G5 extends r8{constructor(Z){super();this.error="",B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G5().fromBinary(Z,$)}static fromJson(Z,$){return new G5().fromJson(Z,$)}static fromJsonString(Z,$){return new G5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(G5,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};WZ=class WZ extends r8{constructor(Z){super();B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new WZ().fromBinary(Z,$)}static fromJson(Z,$){return new WZ().fromJson(Z,$)}static fromJsonString(Z,$){return new WZ().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(WZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",qZ]}}});import{Message as Bi,proto3 as l}from"@bufbuild/protobuf";var mM="agent.v1.",s0,L5,w5,D5,U5,I5,O5,NZ,BZ,k5,f5;var UB=U(()=>{k();s0=class s0 extends B{static get runtime(){return N(this,"runtime",l)}static $p(){return mM}};L5=class L5 extends s0{constructor(Z){super();this.searchTerm="",this.toolCallId="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new L5().fromBinary(Z,$)}static fromJson(Z,$){return new L5().fromJson(Z,$)}static fromJsonString(Z,$){return new L5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(L5,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};w5=class w5 extends s0{constructor(Z){super();this.result={case:void 0},l.util.initPartial(Z,this)}static fromBinary(Z,$){return new w5().fromBinary(Z,$)}static fromJson(Z,$){return new w5().fromJson(Z,$)}static fromJsonString(Z,$){return new w5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(w5,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",D5,U5,I5]}};D5=class D5 extends s0{constructor(Z){super();this.references=[],l.util.initPartial(Z,this)}static fromBinary(Z,$){return new D5().fromBinary(Z,$)}static fromJson(Z,$){return new D5().fromJson(Z,$)}static fromJsonString(Z,$){return new D5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(D5,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",O5]}};U5=class U5 extends s0{constructor(Z){super();this.error="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new U5().fromBinary(Z,$)}static fromJson(Z,$){return new U5().fromJson(Z,$)}static fromJsonString(Z,$){return new U5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(U5,Z,$)}static $(){return["WebSearchError|1 error 9"]}};I5=class I5 extends s0{constructor(Z){super();this.reason="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new I5().fromBinary(Z,$)}static fromJson(Z,$){return new I5().fromJson(Z,$)}static fromJsonString(Z,$){return new I5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(I5,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};O5=class O5 extends s0{constructor(Z){super();this.title="",this.url="",this.chunk="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new O5().fromBinary(Z,$)}static fromJson(Z,$){return new O5().fromJson(Z,$)}static fromJsonString(Z,$){return new O5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(O5,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};NZ=class NZ extends s0{constructor(Z){super();l.util.initPartial(Z,this)}static fromBinary(Z,$){return new NZ().fromBinary(Z,$)}static fromJson(Z,$){return new NZ().fromJson(Z,$)}static fromJsonString(Z,$){return new NZ().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(NZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",L5,w5]}};BZ=class BZ extends s0{constructor(Z){super();this.result={case:void 0},l.util.initPartial(Z,this)}static fromBinary(Z,$){return new BZ().fromBinary(Z,$)}static fromJson(Z,$){return new BZ().fromJson(Z,$)}static fromJsonString(Z,$){return new BZ().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(BZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",k5,f5]}};k5=class k5 extends s0{constructor(Z){super();l.util.initPartial(Z,this)}static fromBinary(Z,$){return new k5().fromBinary(Z,$)}static fromJson(Z,$){return new k5().fromJson(Z,$)}static fromJsonString(Z,$){return new k5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(k5,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};f5=class f5 extends s0{constructor(Z){super();this.reason="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new f5().fromBinary(Z,$)}static fromJson(Z,$){return new f5().fromJson(Z,$)}static fromJsonString(Z,$){return new f5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(f5,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as wi,proto3 as uK}from"@bufbuild/protobuf";var jM="agent.v1.",pQ,FZ,GZ;var IB=U(()=>{uQ();k();pQ=class pQ extends B{static get runtime(){return N(this,"runtime",uK)}static $p(){return jM}};FZ=class FZ extends pQ{constructor(Z){super();uK.util.initPartial(Z,this)}static fromBinary(Z,$){return new FZ().fromBinary(Z,$)}static fromJson(Z,$){return new FZ().fromJson(Z,$)}static fromJsonString(Z,$){return new FZ().fromJsonString(Z,$)}static equals(Z,$){return uK.util.equals(FZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",t6,o6]}};GZ=class GZ extends pQ{constructor(Z){super();uK.util.initPartial(Z,this)}static fromBinary(Z,$){return new GZ().fromBinary(Z,$)}static fromJson(Z,$){return new GZ().fromJson(Z,$)}static fromJsonString(Z,$){return new GZ().fromJsonString(Z,$)}static equals(Z,$){return uK.util.equals(GZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",e6,ZZ]}}});import{Message as ki,proto3 as x0}from"@bufbuild/protobuf";var kB="agent.v1.",DZ,LZ,E5,P5,V5,wZ,OB,x5;var fB=U(()=>{k();DZ=class DZ extends B{static get runtime(){return N(this,"runtime",x0)}static $p(){return kB}};LZ=class LZ extends DZ{constructor(Z){super();x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LZ().fromBinary(Z,$)}static fromJson(Z,$){return new LZ().fromJson(Z,$)}static fromJsonString(Z,$){return new LZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(LZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",E5,P5]}};E5=class E5 extends DZ{constructor(Z){super();this.agentId="",x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E5().fromBinary(Z,$)}static fromJson(Z,$){return new E5().fromJson(Z,$)}static fromJsonString(Z,$){return new E5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(E5,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};P5=class P5 extends DZ{constructor(Z){super();this.result={case:void 0},x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P5().fromBinary(Z,$)}static fromJson(Z,$){return new P5().fromJson(Z,$)}static fromJsonString(Z,$){return new P5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(P5,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",V5,x5]}};V5=class V5 extends DZ{constructor(Z){super();this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V5().fromBinary(Z,$)}static fromJson(Z,$){return new V5().fromJson(Z,$)}static fromJsonString(Z,$){return new V5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(V5,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",wZ]}};wZ=class wZ extends DZ{constructor(Z){super();this.path="",this.changeType=OB.UNSPECIFIED,x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wZ().fromBinary(Z,$)}static fromJson(Z,$){return new wZ().fromJson(Z,$)}static fromJsonString(Z,$){return new wZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(wZ,Z,$)}static $(){return["AppliedAgentChange|1 path 9|2 change_type #0|3 before_content 9?|4 after_content 9?|5 error 9?|6 message_for_model 9?",OB]}};OB=w(x0,kB,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);x5=class x5 extends DZ{constructor(Z){super();this.error="",this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x5().fromBinary(Z,$)}static fromJson(Z,$){return new x5().fromJson(Z,$)}static fromJsonString(Z,$){return new x5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(x5,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",wZ]}}});import{Message as Vi,proto3 as p}from"@bufbuild/protobuf";var _M="agent.v1.",t0,UZ,IZ,M5,h5,A5,s8,v5,C5,T5,R5;var EB=U(()=>{k();t0=class t0 extends B{static get runtime(){return N(this,"runtime",p)}static $p(){return _M}};UZ=class UZ extends t0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new UZ().fromBinary(Z,$)}static fromJson(Z,$){return new UZ().fromJson(Z,$)}static fromJsonString(Z,$){return new UZ().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(UZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",IZ,s8]}};IZ=class IZ extends t0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new IZ().fromBinary(Z,$)}static fromJson(Z,$){return new IZ().fromJson(Z,$)}static fromJsonString(Z,$){return new IZ().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(IZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",M5]}};M5=class M5 extends t0{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,p.util.initPartial(Z,this)}static fromBinary(Z,$){return new M5().fromBinary(Z,$)}static fromJson(Z,$){return new M5().fromJson(Z,$)}static fromJsonString(Z,$){return new M5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(M5,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8",h5]}};h5=class h5 extends t0{constructor(Z){super();this.id="",this.label="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new h5().fromBinary(Z,$)}static fromJson(Z,$){return new h5().fromJson(Z,$)}static fromJsonString(Z,$){return new h5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(h5,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};A5=class A5 extends t0{constructor(Z){super();this.interactionId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new A5().fromBinary(Z,$)}static fromJson(Z,$){return new A5().fromJson(Z,$)}static fromJsonString(Z,$){return new A5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(A5,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};s8=class s8 extends t0{constructor(Z){super();this.result={case:void 0},p.util.initPartial(Z,this)}static fromBinary(Z,$){return new s8().fromBinary(Z,$)}static fromJson(Z,$){return new s8().fromJson(Z,$)}static fromJsonString(Z,$){return new s8().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(s8,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",v5,T5,R5,A5]}};v5=class v5 extends t0{constructor(Z){super();this.answers=[],p.util.initPartial(Z,this)}static fromBinary(Z,$){return new v5().fromBinary(Z,$)}static fromJson(Z,$){return new v5().fromJson(Z,$)}static fromJsonString(Z,$){return new v5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(v5,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",C5]}};C5=class C5 extends t0{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new C5().fromBinary(Z,$)}static fromJson(Z,$){return new C5().fromJson(Z,$)}static fromJsonString(Z,$){return new C5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(C5,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};T5=class T5 extends t0{constructor(Z){super();this.errorMessage="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new T5().fromBinary(Z,$)}static fromJson(Z,$){return new T5().fromJson(Z,$)}static fromJsonString(Z,$){return new T5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(T5,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};R5=class R5 extends t0{constructor(Z){super();this.reason="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new R5().fromBinary(Z,$)}static fromJson(Z,$){return new R5().fromJson(Z,$)}static fromJsonString(Z,$){return new R5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(R5,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as Ai,proto3 as T8}from"@bufbuild/protobuf";var SM="agent.v1.",lK,OZ,kZ,y5,m5;var PB=U(()=>{k();lK=class lK extends B{static get runtime(){return N(this,"runtime",T8)}static $p(){return SM}};OZ=class OZ extends lK{constructor(Z){super();this.url="",this.toolCallId="",T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new OZ().fromBinary(Z,$)}static fromJson(Z,$){return new OZ().fromJson(Z,$)}static fromJsonString(Z,$){return new OZ().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(OZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};kZ=class kZ extends lK{constructor(Z){super();this.result={case:void 0},T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new kZ().fromBinary(Z,$)}static fromJson(Z,$){return new kZ().fromJson(Z,$)}static fromJsonString(Z,$){return new kZ().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(kZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",y5,m5]}};y5=class y5 extends lK{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new y5().fromBinary(Z,$)}static fromJson(Z,$){return new y5().fromJson(Z,$)}static fromJsonString(Z,$){return new y5().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(y5,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};m5=class m5 extends lK{constructor(Z){super();this.url="",this.error="",T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m5().fromBinary(Z,$)}static fromJson(Z,$){return new m5().fromJson(Z,$)}static fromJsonString(Z,$){return new m5().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(m5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as Ri,proto3 as iQ}from"@bufbuild/protobuf";var gM="agent.v1.",VB,fZ;var xB=U(()=>{PB();k();VB=class VB extends B{static get runtime(){return N(this,"runtime",iQ)}static $p(){return gM}};fZ=class fZ extends VB{constructor(Z){super();iQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new fZ().fromBinary(Z,$)}static fromJson(Z,$){return new fZ().fromJson(Z,$)}static fromJsonString(Z,$){return new fZ().fromJsonString(Z,$)}static equals(Z,$){return iQ.util.equals(fZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",OZ,kZ]}}});import{Message as Si,proto3 as r}from"@bufbuild/protobuf";var bM="agent.v1.",f8,j5,_5,S5,g5,b5,EZ,PZ,d5,c5;var MB=U(()=>{k();f8=class f8 extends B{static get runtime(){return N(this,"runtime",r)}static $p(){return bM}};j5=class j5 extends f8{constructor(Z){super();this.targetModeId="",this.toolCallId="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new j5().fromBinary(Z,$)}static fromJson(Z,$){return new j5().fromJson(Z,$)}static fromJsonString(Z,$){return new j5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(j5,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};_5=class _5 extends f8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new _5().fromBinary(Z,$)}static fromJson(Z,$){return new _5().fromJson(Z,$)}static fromJsonString(Z,$){return new _5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(_5,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",S5,g5,b5]}};S5=class S5 extends f8{constructor(Z){super();this.fromModeId="",this.toModeId="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new S5().fromBinary(Z,$)}static fromJson(Z,$){return new S5().fromJson(Z,$)}static fromJsonString(Z,$){return new S5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(S5,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};g5=class g5 extends f8{constructor(Z){super();this.error="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new g5().fromBinary(Z,$)}static fromJson(Z,$){return new g5().fromJson(Z,$)}static fromJsonString(Z,$){return new g5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(g5,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};b5=class b5 extends f8{constructor(Z){super();this.reason="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new b5().fromBinary(Z,$)}static fromJson(Z,$){return new b5().fromJson(Z,$)}static fromJsonString(Z,$){return new b5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(b5,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};EZ=class EZ extends f8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new EZ().fromBinary(Z,$)}static fromJson(Z,$){return new EZ().fromJson(Z,$)}static fromJsonString(Z,$){return new EZ().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(EZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",j5,_5]}};PZ=class PZ extends f8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new PZ().fromBinary(Z,$)}static fromJson(Z,$){return new PZ().fromJson(Z,$)}static fromJsonString(Z,$){return new PZ().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(PZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",d5,c5]}};d5=class d5 extends f8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new d5().fromBinary(Z,$)}static fromJson(Z,$){return new d5().fromJson(Z,$)}static fromJsonString(Z,$){return new d5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(d5,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};c5=class c5 extends f8{constructor(Z){super();this.reason="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new c5().fromBinary(Z,$)}static fromJson(Z,$){return new c5().fromJson(Z,$)}static fromJsonString(Z,$){return new c5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(c5,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as ci,proto3 as J0}from"@bufbuild/protobuf";var dM="agent.v1.",R8,u5,l5,p5,i5,VZ,xZ,n5,a5;var hB=U(()=>{k();R8=class R8 extends B{static get runtime(){return N(this,"runtime",J0)}static $p(){return dM}};u5=class u5 extends R8{constructor(Z){super();this.description="",this.referenceImagePaths=[],J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u5().fromBinary(Z,$)}static fromJson(Z,$){return new u5().fromJson(Z,$)}static fromJsonString(Z,$){return new u5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(u5,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};l5=class l5 extends R8{constructor(Z){super();this.result={case:void 0},J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l5().fromBinary(Z,$)}static fromJson(Z,$){return new l5().fromJson(Z,$)}static fromJsonString(Z,$){return new l5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(l5,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",p5,i5]}};p5=class p5 extends R8{constructor(Z){super();this.filePath="",this.imageData="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p5().fromBinary(Z,$)}static fromJson(Z,$){return new p5().fromJson(Z,$)}static fromJsonString(Z,$){return new p5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(p5,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};i5=class i5 extends R8{constructor(Z){super();this.error="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i5().fromBinary(Z,$)}static fromJson(Z,$){return new i5().fromJson(Z,$)}static fromJsonString(Z,$){return new i5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(i5,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};VZ=class VZ extends R8{constructor(Z){super();J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VZ().fromBinary(Z,$)}static fromJson(Z,$){return new VZ().fromJson(Z,$)}static fromJsonString(Z,$){return new VZ().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(VZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",u5,l5]}};xZ=class xZ extends R8{constructor(Z){super();this.result={case:void 0},J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xZ().fromBinary(Z,$)}static fromJson(Z,$){return new xZ().fromJson(Z,$)}static fromJsonString(Z,$){return new xZ().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(xZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",n5,a5]}};n5=class n5 extends R8{constructor(Z){super();this.description="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n5().fromBinary(Z,$)}static fromJson(Z,$){return new n5().fromJson(Z,$)}static fromJsonString(Z,$){return new n5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(n5,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};a5=class a5 extends R8{constructor(Z){super();this.reason="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a5().fromBinary(Z,$)}static fromJson(Z,$){return new a5().fromJson(Z,$)}static fromJsonString(Z,$){return new a5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(a5,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as ii,proto3 as F0,protoInt64 as cM}from"@bufbuild/protobuf";var nQ="agent.v1.",AZ,AB,uM,MZ,hZ,r5,s5,t5,o5;var vB=U(()=>{k();AZ=class AZ extends B{static get runtime(){return N(this,"runtime",F0)}static $p(){return nQ}};AB=w(F0,nQ,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),uM=w(F0,nQ,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);MZ=class MZ extends AZ{constructor(Z){super();this.mode=AB.UNSPECIFIED,this.toolCallId="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MZ().fromBinary(Z,$)}static fromJson(Z,$){return new MZ().fromJson(Z,$)}static fromJsonString(Z,$){return new MZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(MZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",AB]}};hZ=class hZ extends AZ{constructor(Z){super();this.result={case:void 0},F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hZ().fromBinary(Z,$)}static fromJson(Z,$){return new hZ().fromJson(Z,$)}static fromJsonString(Z,$){return new hZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(hZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",r5,s5,t5,o5]}};r5=class r5 extends AZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r5().fromBinary(Z,$)}static fromJson(Z,$){return new r5().fromJson(Z,$)}static fromJsonString(Z,$){return new r5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(r5,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};s5=class s5 extends AZ{constructor(Z){super();this.path="",this.recordingDurationMs=cM.zero,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s5().fromBinary(Z,$)}static fromJson(Z,$){return new s5().fromJson(Z,$)}static fromJsonString(Z,$){return new s5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(s5,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",uM]}};t5=class t5 extends AZ{constructor(Z){super();F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new t5().fromBinary(Z,$)}static fromJson(Z,$){return new t5().fromJson(Z,$)}static fromJsonString(Z,$){return new t5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(t5,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};o5=class o5 extends AZ{constructor(Z){super();this.error="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o5().fromBinary(Z,$)}static fromJson(Z,$){return new o5().fromJson(Z,$)}static fromJsonString(Z,$){return new o5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(o5,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as si,proto3 as aQ}from"@bufbuild/protobuf";var lM="agent.v1.",CB,vZ;var TB=U(()=>{vB();k();CB=class CB extends B{static get runtime(){return N(this,"runtime",aQ)}static $p(){return lM}};vZ=class vZ extends CB{constructor(Z){super();aQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new vZ().fromBinary(Z,$)}static fromJson(Z,$){return new vZ().fromJson(Z,$)}static fromJsonString(Z,$){return new vZ().fromJsonString(Z,$)}static equals(Z,$){return aQ.util.equals(vZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",MZ,hZ]}}});import{Message as $n,proto3 as v}from"@bufbuild/protobuf";var xH="agent.v1.",s,t8,RB,yB,E8,e5,Z1,$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1,B1,F1,G1,CZ;var mB=U(()=>{k();s=class s extends B{static get runtime(){return N(this,"runtime",v)}static $p(){return xH}};t8=w(v,xH,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),RB=w(v,xH,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),yB=w(v,xH,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1);E8=class E8 extends s{constructor(Z){super();this.x=0,this.y=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new E8().fromBinary(Z,$)}static fromJson(Z,$){return new E8().fromJson(Z,$)}static fromJsonString(Z,$){return new E8().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(E8,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};e5=class e5 extends s{constructor(Z){super();this.toolCallId="",this.actions=[],v.util.initPartial(Z,this)}static fromBinary(Z,$){return new e5().fromBinary(Z,$)}static fromJson(Z,$){return new e5().fromJson(Z,$)}static fromJsonString(Z,$){return new e5().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(e5,Z,$)}static $(){return["ComputerUseArgs|1 tool_call_id 9|2 actions #0*|3 description 9?|4 bind_unmapped_characters 8?|5 desktop_lease_actor_id 9?|6 screenshot_settle_ms 5?",Z1]}};Z1=class Z1 extends s{constructor(Z){super();this.action={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z1().fromBinary(Z,$)}static fromJson(Z,$){return new Z1().fromJson(Z,$)}static fromJsonString(Z,$){return new Z1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(Z1,Z,$)}static $(){return["ComputerUseAction|1 mouse_move #0 action|2 click #1 action|3 mouse_down #2 action|4 mouse_up #3 action|5 drag #4 action|6 scroll #5 action|7 type #6 action|8 key #7 action|9 wait #8 action|10 screenshot #9 action|11 cursor_position #10 action",$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1]}};$1=class $1 extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new $1().fromBinary(Z,$)}static fromJson(Z,$){return new $1().fromJson(Z,$)}static fromJsonString(Z,$){return new $1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals($1,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",E8]}};J1=class J1 extends s{constructor(Z){super();this.button=t8.UNSPECIFIED,this.count=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new J1().fromBinary(Z,$)}static fromJson(Z,$){return new J1().fromJson(Z,$)}static fromJsonString(Z,$){return new J1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(J1,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",E8,t8]}};Y1=class Y1 extends s{constructor(Z){super();this.button=t8.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y1().fromBinary(Z,$)}static fromJson(Z,$){return new Y1().fromJson(Z,$)}static fromJsonString(Z,$){return new Y1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(Y1,Z,$)}static $(){return["MouseDownAction|1 button #0",t8]}};X1=class X1 extends s{constructor(Z){super();this.button=t8.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new X1().fromBinary(Z,$)}static fromJson(Z,$){return new X1().fromJson(Z,$)}static fromJsonString(Z,$){return new X1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(X1,Z,$)}static $(){return["MouseUpAction|1 button #0",t8]}};z1=class z1 extends s{constructor(Z){super();this.path=[],this.button=t8.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new z1().fromBinary(Z,$)}static fromJson(Z,$){return new z1().fromJson(Z,$)}static fromJsonString(Z,$){return new z1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(z1,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",E8,t8]}};K1=class K1 extends s{constructor(Z){super();this.direction=RB.UNSPECIFIED,this.amount=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new K1().fromBinary(Z,$)}static fromJson(Z,$){return new K1().fromJson(Z,$)}static fromJsonString(Z,$){return new K1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(K1,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",E8,RB]}};H1=class H1 extends s{constructor(Z){super();this.text="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new H1().fromBinary(Z,$)}static fromJson(Z,$){return new H1().fromJson(Z,$)}static fromJsonString(Z,$){return new H1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(H1,Z,$)}static $(){return["TypeAction|1 text 9"]}};Q1=class Q1 extends s{constructor(Z){super();this.key="",this.stroke=yB.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q1().fromBinary(Z,$)}static fromJson(Z,$){return new Q1().fromJson(Z,$)}static fromJsonString(Z,$){return new Q1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(Q1,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",yB]}};q1=class q1 extends s{constructor(Z){super();this.durationMs=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new q1().fromBinary(Z,$)}static fromJson(Z,$){return new q1().fromJson(Z,$)}static fromJsonString(Z,$){return new q1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(q1,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};W1=class W1 extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new W1().fromBinary(Z,$)}static fromJson(Z,$){return new W1().fromJson(Z,$)}static fromJsonString(Z,$){return new W1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(W1,Z,$)}static $(){return["ScreenshotAction"]}};N1=class N1 extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new N1().fromBinary(Z,$)}static fromJson(Z,$){return new N1().fromJson(Z,$)}static fromJsonString(Z,$){return new N1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(N1,Z,$)}static $(){return["CursorPositionAction"]}};B1=class B1 extends s{constructor(Z){super();this.result={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new B1().fromBinary(Z,$)}static fromJson(Z,$){return new B1().fromJson(Z,$)}static fromJsonString(Z,$){return new B1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(B1,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",F1,G1]}};F1=class F1 extends s{constructor(Z){super();this.actionCount=0,this.durationMs=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new F1().fromBinary(Z,$)}static fromJson(Z,$){return new F1().fromJson(Z,$)}static fromJsonString(Z,$){return new F1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(F1,Z,$)}static $(){return["ComputerUseSuccess|1 action_count 5|2 duration_ms 5|3 screenshot 9?|4 log 9?|5 screenshot_path 9?|6 cursor_position #0?",E8]}};G1=class G1 extends s{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new G1().fromBinary(Z,$)}static fromJson(Z,$){return new G1().fromJson(Z,$)}static fromJsonString(Z,$){return new G1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(G1,Z,$)}static $(){return["ComputerUseError|1 error 9|2 action_count 5|3 duration_ms 5|4 log 9?|5 screenshot 9?|6 screenshot_path 9?"]}};CZ=class CZ extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new CZ().fromBinary(Z,$)}static fromJson(Z,$){return new CZ().fromJson(Z,$)}static fromJsonString(Z,$){return new CZ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(CZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",e5,B1]}}});import{Message as zn,proto3 as y8}from"@bufbuild/protobuf";var pM="agent.v1.",pK,TZ,RZ,L1,w1;var jB=U(()=>{k();pK=class pK extends B{static get runtime(){return N(this,"runtime",y8)}static $p(){return pM}};TZ=class TZ extends pK{constructor(Z){super();this.shellId=0,this.chars="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(TZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};RZ=class RZ extends pK{constructor(Z){super();this.result={case:void 0},y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new RZ().fromBinary(Z,$)}static fromJson(Z,$){return new RZ().fromJson(Z,$)}static fromJsonString(Z,$){return new RZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",L1,w1]}};L1=class L1 extends pK{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new L1().fromBinary(Z,$)}static fromJson(Z,$){return new L1().fromJson(Z,$)}static fromJsonString(Z,$){return new L1().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(L1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};w1=class w1 extends pK{constructor(Z){super();this.error="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new w1().fromBinary(Z,$)}static fromJson(Z,$){return new w1().fromJson(Z,$)}static fromJsonString(Z,$){return new w1().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(w1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as qn,proto3 as rQ}from"@bufbuild/protobuf";var iM="agent.v1.",_B,yZ;var SB=U(()=>{jB();k();_B=class _B extends B{static get runtime(){return N(this,"runtime",rQ)}static $p(){return iM}};yZ=class yZ extends _B{constructor(Z){super();rQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new yZ().fromBinary(Z,$)}static fromJson(Z,$){return new yZ().fromJson(Z,$)}static fromJsonString(Z,$){return new yZ().fromJsonString(Z,$)}static equals(Z,$){return rQ.util.equals(yZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",TZ,RZ]}}});import{Message as Gn,proto3 as o0}from"@bufbuild/protobuf";var nM="agent.v1.",k1,D1,U1,I1,O1,mZ;var gB=U(()=>{k();k1=class k1 extends B{static get runtime(){return N(this,"runtime",o0)}static $p(){return nM}};D1=class D1 extends k1{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(D1,Z,$)}static $(){return["ReflectArgs|1 unexpected_action_outcomes 9|2 relevant_instructions 9|3 scenario_analysis 9|4 critical_synthesis 9|5 next_steps 9|6 tool_call_id 9"]}};U1=class U1 extends k1{constructor(Z){super();this.result={case:void 0},o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new U1().fromBinary(Z,$)}static fromJson(Z,$){return new U1().fromJson(Z,$)}static fromJsonString(Z,$){return new U1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(U1,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",I1,O1]}};I1=class I1 extends k1{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new I1().fromBinary(Z,$)}static fromJson(Z,$){return new I1().fromJson(Z,$)}static fromJsonString(Z,$){return new I1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(I1,Z,$)}static $(){return["ReflectSuccess"]}};O1=class O1 extends k1{constructor(Z){super();this.error="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O1().fromBinary(Z,$)}static fromJson(Z,$){return new O1().fromJson(Z,$)}static fromJsonString(Z,$){return new O1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(O1,Z,$)}static $(){return["ReflectError|1 error 9"]}};mZ=class mZ extends k1{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new mZ().fromBinary(Z,$)}static fromJson(Z,$){return new mZ().fromJson(Z,$)}static fromJsonString(Z,$){return new mZ().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(mZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",D1,U1]}}});import{Message as Un,proto3 as m8}from"@bufbuild/protobuf";var aM="agent.v1.",iK,jZ,o8,f1,_Z;var bB=U(()=>{k();iK=class iK extends B{static get runtime(){return N(this,"runtime",m8)}static $p(){return aM}};jZ=class jZ extends iK{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",m8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jZ().fromBinary(Z,$)}static fromJson(Z,$){return new jZ().fromJson(Z,$)}static fromJsonString(Z,$){return new jZ().fromJsonString(Z,$)}static equals(Z,$){return m8.util.equals(jZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};o8=class o8 extends iK{constructor(Z){super();this.result={case:void 0},m8.util.initPartial(Z,this)}static fromBinary(Z,$){return new o8().fromBinary(Z,$)}static fromJson(Z,$){return new o8().fromJson(Z,$)}static fromJsonString(Z,$){return new o8().fromJsonString(Z,$)}static equals(Z,$){return m8.util.equals(o8,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",f1]}};f1=class f1 extends iK{constructor(Z){super();m8.util.initPartial(Z,this)}static fromBinary(Z,$){return new f1().fromBinary(Z,$)}static fromJson(Z,$){return new f1().fromJson(Z,$)}static fromJsonString(Z,$){return new f1().fromJsonString(Z,$)}static equals(Z,$){return m8.util.equals(f1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};_Z=class _Z extends iK{constructor(Z){super();m8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Z().fromBinary(Z,$)}static fromJson(Z,$){return new _Z().fromJson(Z,$)}static fromJsonString(Z,$){return new _Z().fromJsonString(Z,$)}static equals(Z,$){return m8.util.equals(_Z,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",jZ,o8]}}});import{Message as fn,proto3 as e0}from"@bufbuild/protobuf";var rM="agent.v1.",M1,E1,P1,V1,x1,SZ;var dB=U(()=>{k();M1=class M1 extends B{static get runtime(){return N(this,"runtime",e0)}static $p(){return rM}};E1=class E1 extends M1{constructor(Z){super();this.toolCallId="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E1().fromBinary(Z,$)}static fromJson(Z,$){return new E1().fromJson(Z,$)}static fromJsonString(Z,$){return new E1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(E1,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};P1=class P1 extends M1{constructor(Z){super();this.result={case:void 0},e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P1().fromBinary(Z,$)}static fromJson(Z,$){return new P1().fromJson(Z,$)}static fromJsonString(Z,$){return new P1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(P1,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",V1,x1]}};V1=class V1 extends M1{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V1().fromBinary(Z,$)}static fromJson(Z,$){return new V1().fromJson(Z,$)}static fromJsonString(Z,$){return new V1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(V1,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};x1=class x1 extends M1{constructor(Z){super();this.error="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x1().fromBinary(Z,$)}static fromJson(Z,$){return new x1().fromJson(Z,$)}static fromJsonString(Z,$){return new x1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(x1,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};SZ=class SZ extends M1{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new SZ().fromBinary(Z,$)}static fromJson(Z,$){return new SZ().fromJson(Z,$)}static fromJsonString(Z,$){return new SZ().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(SZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",E1,P1]}}});import{Message as xn,proto3 as Z8}from"@bufbuild/protobuf";var sM="agent.v1.",T1,h1,A1,v1,C1,gZ;var cB=U(()=>{k();T1=class T1 extends B{static get runtime(){return N(this,"runtime",Z8)}static $p(){return sM}};h1=class h1 extends T1{constructor(Z){super();this.toolCallId="",Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new h1().fromBinary(Z,$)}static fromJson(Z,$){return new h1().fromJson(Z,$)}static fromJsonString(Z,$){return new h1().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(h1,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};A1=class A1 extends T1{constructor(Z){super();this.result={case:void 0},Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new A1().fromBinary(Z,$)}static fromJson(Z,$){return new A1().fromJson(Z,$)}static fromJsonString(Z,$){return new A1().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(A1,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",v1,C1]}};v1=class v1 extends T1{constructor(Z){super();Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new v1().fromBinary(Z,$)}static fromJson(Z,$){return new v1().fromJson(Z,$)}static fromJsonString(Z,$){return new v1().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(v1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};C1=class C1 extends T1{constructor(Z){super();this.error="",Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new C1().fromBinary(Z,$)}static fromJson(Z,$){return new C1().fromJson(Z,$)}static fromJsonString(Z,$){return new C1().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(C1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};gZ=class gZ extends T1{constructor(Z){super();Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new gZ().fromBinary(Z,$)}static fromJson(Z,$){return new gZ().fromJson(Z,$)}static fromJsonString(Z,$){return new gZ().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(gZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",h1,A1]}}});import{Message as vn,proto3 as t}from"@bufbuild/protobuf";var tM="agent.v1.",P8,R1,y1,m1,j1,_1,bZ,dZ,S1,g1;var uB=U(()=>{x6();k();P8=class P8 extends B{static get runtime(){return N(this,"runtime",t)}static $p(){return tM}};R1=class R1 extends P8{constructor(Z){super();this.url="",this.toolCallId="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new R1().fromBinary(Z,$)}static fromJson(Z,$){return new R1().fromJson(Z,$)}static fromJsonString(Z,$){return new R1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(R1,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};y1=class y1 extends P8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new y1().fromBinary(Z,$)}static fromJson(Z,$){return new y1().fromJson(Z,$)}static fromJsonString(Z,$){return new y1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(y1,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",m1,j1,_1]}};m1=class m1 extends P8{constructor(Z){super();this.url="",this.markdown="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new m1().fromBinary(Z,$)}static fromJson(Z,$){return new m1().fromJson(Z,$)}static fromJsonString(Z,$){return new m1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(m1,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",q0]}};j1=class j1 extends P8{constructor(Z){super();this.url="",this.error="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new j1().fromBinary(Z,$)}static fromJson(Z,$){return new j1().fromJson(Z,$)}static fromJsonString(Z,$){return new j1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(j1,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};_1=class _1 extends P8{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new _1().fromBinary(Z,$)}static fromJson(Z,$){return new _1().fromJson(Z,$)}static fromJsonString(Z,$){return new _1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(_1,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};bZ=class bZ extends P8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new bZ().fromBinary(Z,$)}static fromJson(Z,$){return new bZ().fromJson(Z,$)}static fromJsonString(Z,$){return new bZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(bZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",R1,y1]}};dZ=class dZ extends P8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new dZ().fromBinary(Z,$)}static fromJson(Z,$){return new dZ().fromJson(Z,$)}static fromJsonString(Z,$){return new dZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(dZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",S1,g1]}};S1=class S1 extends P8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new S1().fromBinary(Z,$)}static fromJson(Z,$){return new S1().fromJson(Z,$)}static fromJsonString(Z,$){return new S1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(S1,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};g1=class g1 extends P8{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new g1().fromBinary(Z,$)}static fromJson(Z,$){return new g1().fromJson(Z,$)}static fromJsonString(Z,$){return new g1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(g1,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as mn,proto3 as M0}from"@bufbuild/protobuf";var pB="agent.v1.",lZ,lB,cZ,b1,d1,c1,u1,uZ;var iB=U(()=>{k();lZ=class lZ extends B{static get runtime(){return N(this,"runtime",M0)}static $p(){return pB}};lB=w(M0,pB,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);cZ=class cZ extends lZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=lB.UNSPECIFIED,this.explanation="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new cZ().fromBinary(Z,$)}static fromJson(Z,$){return new cZ().fromJson(Z,$)}static fromJsonString(Z,$){return new cZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(cZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",lB]}};b1=class b1 extends lZ{constructor(Z){super();this.summary="",this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b1().fromBinary(Z,$)}static fromJson(Z,$){return new b1().fromJson(Z,$)}static fromJsonString(Z,$){return new b1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(b1,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",cZ]}};d1=class d1 extends lZ{constructor(Z){super();this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d1().fromBinary(Z,$)}static fromJson(Z,$){return new d1().fromJson(Z,$)}static fromJsonString(Z,$){return new d1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(d1,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",cZ]}};c1=class c1 extends lZ{constructor(Z){super();this.error="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c1().fromBinary(Z,$)}static fromJson(Z,$){return new c1().fromJson(Z,$)}static fromJsonString(Z,$){return new c1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(c1,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};u1=class u1 extends lZ{constructor(Z){super();this.result={case:void 0},M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u1().fromBinary(Z,$)}static fromJson(Z,$){return new u1().fromJson(Z,$)}static fromJsonString(Z,$){return new u1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(u1,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",d1,c1]}};uZ=class uZ extends lZ{constructor(Z){super();M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uZ().fromBinary(Z,$)}static fromJson(Z,$){return new uZ().fromJson(Z,$)}static fromJsonString(Z,$){return new uZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(uZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",b1,u1]}}});import{Message as gn,proto3 as $8}from"@bufbuild/protobuf";var oM="agent.v1.",a1,l1,p1,i1,n1,pZ;var nB=U(()=>{x6();k();a1=class a1 extends B{static get runtime(){return N(this,"runtime",$8)}static $p(){return oM}};l1=class l1 extends a1{constructor(Z){super();this.filePaths=[],this.commitHashes=[],$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new l1().fromBinary(Z,$)}static fromJson(Z,$){return new l1().fromJson(Z,$)}static fromJsonString(Z,$){return new l1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(l1,Z,$)}static $(){return["AiAttributionArgs|5 file_paths 9*|2 start_line 5?|3 end_line 5?|6 commit_hashes 9*|7 output_mode 9?|9 max_commits 5?|10 include_line_ranges 8?"]}};p1=class p1 extends a1{constructor(Z){super();this.result={case:void 0},$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new p1().fromBinary(Z,$)}static fromJson(Z,$){return new p1().fromJson(Z,$)}static fromJsonString(Z,$){return new p1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(p1,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",i1,n1]}};i1=class i1 extends a1{constructor(Z){super();this.attributionText="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new i1().fromBinary(Z,$)}static fromJson(Z,$){return new i1().fromJson(Z,$)}static fromJsonString(Z,$){return new i1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(i1,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",q0]}};n1=class n1 extends a1{constructor(Z){super();this.error="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n1().fromBinary(Z,$)}static fromJson(Z,$){return new n1().fromJson(Z,$)}static fromJsonString(Z,$){return new n1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(n1,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};pZ=class pZ extends a1{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new pZ().fromBinary(Z,$)}static fromJson(Z,$){return new pZ().fromJson(Z,$)}static fromJsonString(Z,$){return new pZ().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(pZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",l1,p1]}}});import{Message as ln,proto3 as y,protoInt64 as eM}from"@bufbuild/protobuf";var rB="agent.v1.",G0,aB,r1,s1,t1,o1,e1,ZJ,$J,e8,JJ,YJ,XJ,zJ,KJ,iZ;var sB=U(()=>{k();G0=class G0 extends B{static get runtime(){return N(this,"runtime",y)}static $p(){return rB}};aB=w(y,rB,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);r1=class r1 extends G0{constructor(Z){super();this.toolCallId="",this.action={case:void 0},y.util.initPartial(Z,this)}static fromBinary(Z,$){return new r1().fromBinary(Z,$)}static fromJson(Z,$){return new r1().fromJson(Z,$)}static fromJsonString(Z,$){return new r1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(r1,Z,$)}static $(){return["PrManagementArgs|1 tool_call_id 9|2 create_pr #0 action|3 update_pr #1 action|4 post_comment #2 action|5 resolve_comment #3 action|6 get_ci_status #4 action|7 set_pr_status #5 action",s1,t1,o1,e1,ZJ,$J]}};s1=class s1 extends G0{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],y.util.initPartial(Z,this)}static fromBinary(Z,$){return new s1().fromBinary(Z,$)}static fromJson(Z,$){return new s1().fromJson(Z,$)}static fromJsonString(Z,$){return new s1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(s1,Z,$)}static $(){return["CreatePrAction|1 title 9|2 body 9|3 base_branch 9?|4 draft 8?|5 branch_name 9|6 add_labels 9*|7 repo_url 9?|8 skip_branch_prefix_check 8?|9 stack_on_pr_number 3?"]}};t1=class t1 extends G0{constructor(Z){super();this.addLabels=[],this.removeLabels=[],y.util.initPartial(Z,this)}static fromBinary(Z,$){return new t1().fromBinary(Z,$)}static fromJson(Z,$){return new t1().fromJson(Z,$)}static fromJsonString(Z,$){return new t1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(t1,Z,$)}static $(){return["UpdatePrAction|1 pr_url 9?|2 title 9?|3 body 9?|4 base_branch 9?|5 branch_name 9?|6 add_labels 9*|7 remove_labels 9*|8 repo_url 9?|9 stack_on_pr_number 3?|10 clear_stack 8?|11 draft 8?"]}};o1=class o1 extends G0{constructor(Z){super();this.body="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new o1().fromBinary(Z,$)}static fromJson(Z,$){return new o1().fromJson(Z,$)}static fromJsonString(Z,$){return new o1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(o1,Z,$)}static $(){return["PostCommentAction|1 pr_url 9?|2 branch_name 9?|3 body 9|4 repo_url 9?|5 in_reply_to 3?|6 path 9?|7 line 5?|8 start_line 5?|9 side 9?|10 reply_to_reference 9?"]}};e1=class e1 extends G0{constructor(Z){super();this.commentId=eM.zero,y.util.initPartial(Z,this)}static fromBinary(Z,$){return new e1().fromBinary(Z,$)}static fromJson(Z,$){return new e1().fromJson(Z,$)}static fromJsonString(Z,$){return new e1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(e1,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};ZJ=class ZJ extends G0{constructor(Z){super();y.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZJ().fromBinary(Z,$)}static fromJson(Z,$){return new ZJ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(ZJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};$J=class $J extends G0{constructor(Z){super();this.status=aB.UNSPECIFIED,y.util.initPartial(Z,this)}static fromBinary(Z,$){return new $J().fromBinary(Z,$)}static fromJson(Z,$){return new $J().fromJson(Z,$)}static fromJsonString(Z,$){return new $J().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals($J,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",aB]}};e8=class e8 extends G0{constructor(Z){super();this.result={case:void 0},y.util.initPartial(Z,this)}static fromBinary(Z,$){return new e8().fromBinary(Z,$)}static fromJson(Z,$){return new e8().fromJson(Z,$)}static fromJsonString(Z,$){return new e8().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(e8,Z,$)}static $(){return["PrManagementResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 registered #3 result|5 needs_confirmation #4 result",JJ,YJ,XJ,zJ,KJ]}};JJ=class JJ extends G0{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new JJ().fromBinary(Z,$)}static fromJson(Z,$){return new JJ().fromJson(Z,$)}static fromJsonString(Z,$){return new JJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(JJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};YJ=class YJ extends G0{constructor(Z){super();this.error="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new YJ().fromBinary(Z,$)}static fromJson(Z,$){return new YJ().fromJson(Z,$)}static fromJsonString(Z,$){return new YJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(YJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};XJ=class XJ extends G0{constructor(Z){super();this.reason="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new XJ().fromBinary(Z,$)}static fromJson(Z,$){return new XJ().fromJson(Z,$)}static fromJsonString(Z,$){return new XJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(XJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};zJ=class zJ extends G0{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new zJ().fromBinary(Z,$)}static fromJson(Z,$){return new zJ().fromJson(Z,$)}static fromJsonString(Z,$){return new zJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(zJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};KJ=class KJ extends G0{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new KJ().fromBinary(Z,$)}static fromJson(Z,$){return new KJ().fromJson(Z,$)}static fromJsonString(Z,$){return new KJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(KJ,Z,$)}static $(){return["PrManagementNeedsConfirmation|1 message 9|2 discovered_pr_url 9|3 discovered_pr_number 5|4 discovered_pr_title 9|5 branch_name 9"]}};iZ=class iZ extends G0{constructor(Z){super();y.util.initPartial(Z,this)}static fromBinary(Z,$){return new iZ().fromBinary(Z,$)}static fromJson(Z,$){return new iZ().fromJson(Z,$)}static fromJsonString(Z,$){return new iZ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(iZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",r1,e8]}}});import{Message as rn,proto3 as o}from"@bufbuild/protobuf";var Zh="agent.v1.",V8,HJ,QJ,qJ,WJ,NJ,nZ,aZ,BJ,FJ;var tB=U(()=>{k();V8=class V8 extends B{static get runtime(){return N(this,"runtime",o)}static $p(){return Zh}};HJ=class HJ extends V8{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new HJ().fromBinary(Z,$)}static fromJson(Z,$){return new HJ().fromJson(Z,$)}static fromJsonString(Z,$){return new HJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(HJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};QJ=class QJ extends V8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new QJ().fromBinary(Z,$)}static fromJson(Z,$){return new QJ().fromJson(Z,$)}static fromJsonString(Z,$){return new QJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(QJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",qJ,WJ,NJ]}};qJ=class qJ extends V8{constructor(Z){super();this.serverIdentifier="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new qJ().fromBinary(Z,$)}static fromJson(Z,$){return new qJ().fromJson(Z,$)}static fromJsonString(Z,$){return new qJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(qJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};WJ=class WJ extends V8{constructor(Z){super();this.error="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new WJ().fromBinary(Z,$)}static fromJson(Z,$){return new WJ().fromJson(Z,$)}static fromJsonString(Z,$){return new WJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(WJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};NJ=class NJ extends V8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new NJ().fromBinary(Z,$)}static fromJson(Z,$){return new NJ().fromJson(Z,$)}static fromJsonString(Z,$){return new NJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(NJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};nZ=class nZ extends V8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new nZ().fromBinary(Z,$)}static fromJson(Z,$){return new nZ().fromJson(Z,$)}static fromJsonString(Z,$){return new nZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(nZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",HJ,QJ]}};aZ=class aZ extends V8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new aZ().fromBinary(Z,$)}static fromJson(Z,$){return new aZ().fromJson(Z,$)}static fromJsonString(Z,$){return new aZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(aZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",BJ,FJ]}};BJ=class BJ extends V8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new BJ().fromBinary(Z,$)}static fromJson(Z,$){return new BJ().fromJson(Z,$)}static fromJsonString(Z,$){return new BJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(BJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};FJ=class FJ extends V8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new FJ().fromBinary(Z,$)}static fromJson(Z,$){return new FJ().fromJson(Z,$)}static fromJsonString(Z,$){return new FJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(FJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as en,proto3 as L0,protoInt64 as MH}from"@bufbuild/protobuf";var $h="agent.v1.",Z6,GJ,rZ,sZ,LJ,wJ,DJ,tZ;var oB=U(()=>{k();Z6=class Z6 extends B{static get runtime(){return N(this,"runtime",L0)}static $p(){return $h}};GJ=class GJ extends Z6{constructor(Z){super();this.taskId="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GJ().fromBinary(Z,$)}static fromJson(Z,$){return new GJ().fromJson(Z,$)}static fromJsonString(Z,$){return new GJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(GJ,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};rZ=class rZ extends Z6{constructor(Z){super();this.taskId="",this.runtimeMs=MH.zero,this.outputFilePath="",this.outputLength=MH.zero,this.regexRequested=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rZ().fromBinary(Z,$)}static fromJson(Z,$){return new rZ().fromJson(Z,$)}static fromJsonString(Z,$){return new rZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(rZ,Z,$)}static $(){return["AwaitTaskComplete|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 exit_code 17?|8 wake_reason 9?"]}};sZ=class sZ extends Z6{constructor(Z){super();this.taskId="",this.runtimeMs=MH.zero,this.outputFilePath="",this.outputLength=MH.zero,this.regexRequested=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new sZ().fromBinary(Z,$)}static fromJson(Z,$){return new sZ().fromJson(Z,$)}static fromJsonString(Z,$){return new sZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(sZ,Z,$)}static $(){return["AwaitTaskStillRunning|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 wake_reason 9?"]}};LJ=class LJ extends Z6{constructor(Z){super();this.error="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LJ().fromBinary(Z,$)}static fromJson(Z,$){return new LJ().fromJson(Z,$)}static fromJsonString(Z,$){return new LJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(LJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};wJ=class wJ extends Z6{constructor(Z){super();this.awaitResult={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wJ().fromBinary(Z,$)}static fromJson(Z,$){return new wJ().fromJson(Z,$)}static fromJsonString(Z,$){return new wJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(wJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",rZ,sZ]}};DJ=class DJ extends Z6{constructor(Z){super();this.result={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DJ().fromBinary(Z,$)}static fromJson(Z,$){return new DJ().fromJson(Z,$)}static fromJsonString(Z,$){return new DJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(DJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",rZ,sZ,LJ,wJ]}};tZ=class tZ extends Z6{constructor(Z){super();L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new tZ().fromBinary(Z,$)}static fromJson(Z,$){return new tZ().fromJson(Z,$)}static fromJsonString(Z,$){return new tZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(tZ,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",GJ,DJ]}}});import{Message as Ya,proto3 as J8}from"@bufbuild/protobuf";var Jh="agent.v1.",fJ,UJ,IJ,OJ,kJ,oZ;var eB=U(()=>{k();fJ=class fJ extends B{static get runtime(){return N(this,"runtime",J8)}static $p(){return Jh}};UJ=class UJ extends fJ{constructor(Z){super();this.filePath="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new UJ().fromBinary(Z,$)}static fromJson(Z,$){return new UJ().fromJson(Z,$)}static fromJsonString(Z,$){return new UJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(UJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};IJ=class IJ extends fJ{constructor(Z){super();this.content="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new IJ().fromBinary(Z,$)}static fromJson(Z,$){return new IJ().fromJson(Z,$)}static fromJsonString(Z,$){return new IJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(IJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};OJ=class OJ extends fJ{constructor(Z){super();this.errorMessage="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new OJ().fromBinary(Z,$)}static fromJson(Z,$){return new OJ().fromJson(Z,$)}static fromJsonString(Z,$){return new OJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(OJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};kJ=class kJ extends fJ{constructor(Z){super();this.result={case:void 0},J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new kJ().fromBinary(Z,$)}static fromJson(Z,$){return new kJ().fromJson(Z,$)}static fromJsonString(Z,$){return new kJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(kJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",IJ,OJ]}};oZ=class oZ extends fJ{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oZ().fromBinary(Z,$)}static fromJson(Z,$){return new oZ().fromJson(Z,$)}static fromJsonString(Z,$){return new oZ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(oZ,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",UJ,kJ]}}});import{Message as Ha,proto3 as Y8}from"@bufbuild/protobuf";var Yh="agent.v1.",MJ,EJ,PJ,VJ,xJ,eZ;var ZF=U(()=>{k();MJ=class MJ extends B{static get runtime(){return N(this,"runtime",Y8)}static $p(){return Yh}};EJ=class EJ extends MJ{constructor(Z){super();this.toolCallId="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new EJ().fromBinary(Z,$)}static fromJson(Z,$){return new EJ().fromJson(Z,$)}static fromJsonString(Z,$){return new EJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(EJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};PJ=class PJ extends MJ{constructor(Z){super();this.result={case:void 0},Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new PJ().fromBinary(Z,$)}static fromJson(Z,$){return new PJ().fromJson(Z,$)}static fromJsonString(Z,$){return new PJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(PJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",VJ,xJ]}};VJ=class VJ extends MJ{constructor(Z){super();this.content="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new VJ().fromBinary(Z,$)}static fromJson(Z,$){return new VJ().fromJson(Z,$)}static fromJsonString(Z,$){return new VJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(VJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};xJ=class xJ extends MJ{constructor(Z){super();this.error="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new xJ().fromBinary(Z,$)}static fromJson(Z,$){return new xJ().fromJson(Z,$)}static fromJsonString(Z,$){return new xJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(xJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};eZ=class eZ extends MJ{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new eZ().fromBinary(Z,$)}static fromJson(Z,$){return new eZ().fromJson(Z,$)}static fromJsonString(Z,$){return new eZ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(eZ,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",EJ,PJ]}}});import{Message as Na,proto3 as X8}from"@bufbuild/protobuf";var Xh="agent.v1.",TJ,hJ,AJ,vJ,CJ,Z$;var $F=U(()=>{k();TJ=class TJ extends B{static get runtime(){return N(this,"runtime",X8)}static $p(){return Xh}};hJ=class hJ extends TJ{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new hJ().fromBinary(Z,$)}static fromJson(Z,$){return new hJ().fromJson(Z,$)}static fromJsonString(Z,$){return new hJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(hJ,Z,$)}static $(){return["ReportBugArgs|1 title 9|2 file 9|3 start_line 5|4 end_line 5|5 description 9|6 severity 9|7 category 9|8 rationale 9"]}};AJ=class AJ extends TJ{constructor(Z){super();this.output="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new AJ().fromBinary(Z,$)}static fromJson(Z,$){return new AJ().fromJson(Z,$)}static fromJsonString(Z,$){return new AJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(AJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};vJ=class vJ extends TJ{constructor(Z){super();this.errorMessage="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new vJ().fromBinary(Z,$)}static fromJson(Z,$){return new vJ().fromJson(Z,$)}static fromJsonString(Z,$){return new vJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(vJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};CJ=class CJ extends TJ{constructor(Z){super();this.result={case:void 0},X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(CJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",AJ,vJ]}};Z$=class Z$ extends TJ{constructor(Z){super();X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z$().fromBinary(Z,$)}static fromJson(Z,$){return new Z$().fromJson(Z,$)}static fromJsonString(Z,$){return new Z$().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(Z$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",hJ,CJ]}}});import{Message as La,proto3 as z8}from"@bufbuild/protobuf";var zh="agent.v1.",_J,RJ,yJ,mJ,jJ,$$;var JF=U(()=>{k();_J=class _J extends B{static get runtime(){return N(this,"runtime",z8)}static $p(){return zh}};RJ=class RJ extends _J{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new RJ().fromBinary(Z,$)}static fromJson(Z,$){return new RJ().fromJson(Z,$)}static fromJsonString(Z,$){return new RJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(RJ,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};yJ=class yJ extends _J{constructor(Z){super();this.currentStep="",this.messageIndex=0,z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yJ().fromBinary(Z,$)}static fromJson(Z,$){return new yJ().fromJson(Z,$)}static fromJsonString(Z,$){return new yJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(yJ,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};mJ=class mJ extends _J{constructor(Z){super();this.error="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mJ().fromBinary(Z,$)}static fromJson(Z,$){return new mJ().fromJson(Z,$)}static fromJsonString(Z,$){return new mJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(mJ,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};jJ=class jJ extends _J{constructor(Z){super();this.result={case:void 0},z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jJ().fromBinary(Z,$)}static fromJson(Z,$){return new jJ().fromJson(Z,$)}static fromJsonString(Z,$){return new jJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(jJ,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",yJ,mJ]}};$$=class $$ extends _J{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new $$().fromBinary(Z,$)}static fromJson(Z,$){return new $$().fromJson(Z,$)}static fromJsonString(Z,$){return new $$().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals($$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",RJ,jJ]}}});import{Message as Ia,proto3 as K8}from"@bufbuild/protobuf";var Kh="agent.v1.",cJ,SJ,gJ,bJ,dJ,J$;var YF=U(()=>{k();cJ=class cJ extends B{static get runtime(){return N(this,"runtime",K8)}static $p(){return Kh}};SJ=class SJ extends cJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SJ().fromBinary(Z,$)}static fromJson(Z,$){return new SJ().fromJson(Z,$)}static fromJsonString(Z,$){return new SJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(SJ,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};gJ=class gJ extends cJ{constructor(Z){super();this.finalSummary="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new gJ().fromBinary(Z,$)}static fromJson(Z,$){return new gJ().fromJson(Z,$)}static fromJsonString(Z,$){return new gJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(gJ,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};bJ=class bJ extends cJ{constructor(Z){super();this.error="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bJ().fromBinary(Z,$)}static fromJson(Z,$){return new bJ().fromJson(Z,$)}static fromJsonString(Z,$){return new bJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(bJ,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};dJ=class dJ extends cJ{constructor(Z){super();this.result={case:void 0},K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dJ().fromBinary(Z,$)}static fromJson(Z,$){return new dJ().fromJson(Z,$)}static fromJsonString(Z,$){return new dJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(dJ,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",gJ,bJ]}};J$=class J$ extends cJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new J$().fromBinary(Z,$)}static fromJson(Z,$){return new J$().fromJson(Z,$)}static fromJsonString(Z,$){return new J$().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(J$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",SJ,dJ]}}});import{Message as Ea,proto3 as b0}from"@bufbuild/protobuf";var zF="agent.v1.",nJ,XF,uJ,lJ,pJ,iJ,Y$;var KF=U(()=>{k();nJ=class nJ extends B{static get runtime(){return N(this,"runtime",b0)}static $p(){return zF}};XF=w(b0,zF,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);uJ=class uJ extends nJ{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uJ().fromBinary(Z,$)}static fromJson(Z,$){return new uJ().fromJson(Z,$)}static fromJsonString(Z,$){return new uJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(uJ,Z,$)}static $(){return["UpdatePrCodeTourArgs|1 feedback 9|2 tool_call_id 9|3 base_sha 9?|4 head_sha 9?|5 source_revision_id 9?|6 revision_id 9?|7 markdown 9?|8 heading 9?|9 artifact_path 9?|10 artifact_alt 9?|11 scope_commit_hashes 9*|12 explicit_user_prompt 9?"]}};lJ=class lJ extends nJ{constructor(Z){super();this.result={case:void 0},b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new lJ().fromBinary(Z,$)}static fromJson(Z,$){return new lJ().fromJson(Z,$)}static fromJsonString(Z,$){return new lJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(lJ,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",pJ,iJ]}};pJ=class pJ extends nJ{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=XF.UNSPECIFIED,b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pJ().fromBinary(Z,$)}static fromJson(Z,$){return new pJ().fromJson(Z,$)}static fromJsonString(Z,$){return new pJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(pJ,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",XF]}};iJ=class iJ extends nJ{constructor(Z){super();this.error="",b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new iJ().fromBinary(Z,$)}static fromJson(Z,$){return new iJ().fromJson(Z,$)}static fromJsonString(Z,$){return new iJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(iJ,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};Y$=class Y$ extends nJ{constructor(Z){super();b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y$().fromBinary(Z,$)}static fromJson(Z,$){return new Y$().fromJson(Z,$)}static fromJsonString(Z,$){return new Y$().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(Y$,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",uJ,lJ]}}});import{Message as Ma,proto3 as z0}from"@bufbuild/protobuf";var QF="agent.v1.",J6,HF,aJ,rJ,X$,sJ,tJ,$6,z$;var qF=U(()=>{k();J6=class J6 extends B{static get runtime(){return N(this,"runtime",z0)}static $p(){return QF}};HF=w(z0,QF,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);aJ=class aJ extends J6{constructor(Z){super();this.repoUrl="",this.ref="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new aJ().fromBinary(Z,$)}static fromJson(Z,$){return new aJ().fromJson(Z,$)}static fromJsonString(Z,$){return new aJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(aJ,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};rJ=class rJ extends J6{constructor(Z){super();this.installScript="",this.dockerfileContents="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rJ().fromBinary(Z,$)}static fromJson(Z,$){return new rJ().fromJson(Z,$)}static fromJsonString(Z,$){return new rJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(rJ,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};X$=class X$ extends J6{constructor(Z){super();this.mode=HF.UNSPECIFIED,this.checkoutRefOverrides=[],z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X$().fromBinary(Z,$)}static fromJson(Z,$){return new X$().fromJson(Z,$)}static fromJsonString(Z,$){return new X$().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(X$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",rJ,HF,aJ]}};sJ=class sJ extends J6{constructor(Z){super();this.setupLogs="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new sJ().fromBinary(Z,$)}static fromJson(Z,$){return new sJ().fromJson(Z,$)}static fromJsonString(Z,$){return new sJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(sJ,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};tJ=class tJ extends J6{constructor(Z){super();this.errorMessage="",this.setupLogs="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new tJ().fromBinary(Z,$)}static fromJson(Z,$){return new tJ().fromJson(Z,$)}static fromJsonString(Z,$){return new tJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(tJ,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};$6=class $6 extends J6{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $6().fromBinary(Z,$)}static fromJson(Z,$){return new $6().fromJson(Z,$)}static fromJsonString(Z,$){return new $6().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals($6,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",sJ,tJ]}};z$=class z$ extends J6{constructor(Z){super();this.associatedPodKey="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z$().fromBinary(Z,$)}static fromJson(Z,$){return new z$().fromJson(Z,$)}static fromJsonString(Z,$){return new z$().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(z$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",X$,$6]}}});import{Message as Ca,proto3 as H8}from"@bufbuild/protobuf";var Hh="agent.v1.",J3,oJ,eJ,Z3,$3,K$;var WF=U(()=>{k();J3=class J3 extends B{static get runtime(){return N(this,"runtime",H8)}static $p(){return Hh}};oJ=class oJ extends J3{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oJ().fromBinary(Z,$)}static fromJson(Z,$){return new oJ().fromJson(Z,$)}static fromJsonString(Z,$){return new oJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(oJ,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};eJ=class eJ extends J3{constructor(Z){super();this.result={case:void 0},H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new eJ().fromBinary(Z,$)}static fromJson(Z,$){return new eJ().fromJson(Z,$)}static fromJsonString(Z,$){return new eJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(eJ,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",Z3,$3]}};Z3=class Z3 extends J3{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z3().fromBinary(Z,$)}static fromJson(Z,$){return new Z3().fromJson(Z,$)}static fromJsonString(Z,$){return new Z3().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(Z3,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};$3=class $3 extends J3{constructor(Z){super();this.error="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new $3().fromBinary(Z,$)}static fromJson(Z,$){return new $3().fromJson(Z,$)}static fromJsonString(Z,$){return new $3().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals($3,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};K$=class K$ extends J3{constructor(Z){super();H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(K$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",oJ,eJ]}}});import{Message as ma,proto3 as w0}from"@bufbuild/protobuf";var Qh="agent.v1.",Y6,Y3,X3,z3,K3,H3,Q3,H$;var NF=U(()=>{k();Y6=class Y6 extends B{static get runtime(){return N(this,"runtime",w0)}static $p(){return Qh}};Y3=class Y3 extends Y6{constructor(Z){super();this.checkName="",this.tldr="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y3().fromBinary(Z,$)}static fromJson(Z,$){return new Y3().fromJson(Z,$)}static fromJsonString(Z,$){return new Y3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(Y3,Z,$)}static $(){return["RecordCiInvestigationFinding|1 check_name 9|2 details_url 9?|3 tldr 9|4 root_cause 9?|5 failing_signal 9?|6 suggested_next_step 9?|7 diff_relation 9?|8 diff_relation_evidence 9?|9 flake_assessment 9?|10 flake_evidence 9?|11 rerun_available 8?|12 rerun_evidence 9?|13 recommended_action 9?|14 recommended_action_evidence 9?|15 confidence 9?"]}};X3=class X3 extends Y6{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X3().fromBinary(Z,$)}static fromJson(Z,$){return new X3().fromJson(Z,$)}static fromJsonString(Z,$){return new X3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(X3,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};z3=class z3 extends Y6{constructor(Z){super();this.findings=[],this.toolCallId="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z3().fromBinary(Z,$)}static fromJson(Z,$){return new z3().fromJson(Z,$)}static fromJsonString(Z,$){return new z3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(z3,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",Y3,X3]}};K3=class K3 extends Y6{constructor(Z){super();this.message="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K3().fromBinary(Z,$)}static fromJson(Z,$){return new K3().fromJson(Z,$)}static fromJsonString(Z,$){return new K3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(K3,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};H3=class H3 extends Y6{constructor(Z){super();this.error="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H3().fromBinary(Z,$)}static fromJson(Z,$){return new H3().fromJson(Z,$)}static fromJsonString(Z,$){return new H3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(H3,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};Q3=class Q3 extends Y6{constructor(Z){super();this.result={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q3().fromBinary(Z,$)}static fromJson(Z,$){return new Q3().fromJson(Z,$)}static fromJsonString(Z,$){return new Q3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(Q3,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",K3,H3]}};H$=class H$ extends Y6{constructor(Z){super();w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H$().fromBinary(Z,$)}static fromJson(Z,$){return new H$().fromJson(Z,$)}static fromJsonString(Z,$){return new H$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(H$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",z3,Q3]}}});import{Message as ga,proto3 as D0,protoInt64 as qh}from"@bufbuild/protobuf";var Wh="agent.v1.",X6,q3,W3,N3,B3,F3,G3,Q$;var BF=U(()=>{k();X6=class X6 extends B{static get runtime(){return N(this,"runtime",D0)}static $p(){return Wh}};q3=class q3 extends X6{constructor(Z){super();this.content="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q3().fromBinary(Z,$)}static fromJson(Z,$){return new q3().fromJson(Z,$)}static fromJsonString(Z,$){return new q3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(q3,Z,$)}static $(){return["SendMessageText|1 content 9"]}};W3=class W3 extends X6{constructor(Z){super();this.url="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W3().fromBinary(Z,$)}static fromJson(Z,$){return new W3().fromJson(Z,$)}static fromJsonString(Z,$){return new W3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(W3,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};N3=class N3 extends X6{constructor(Z){super();this.message={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N3().fromBinary(Z,$)}static fromJson(Z,$){return new N3().fromJson(Z,$)}static fromJsonString(Z,$){return new N3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(N3,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message",q3,W3]}};B3=class B3 extends X6{constructor(Z){super();this.timestamp=qh.zero,this.messageId="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B3().fromBinary(Z,$)}static fromJson(Z,$){return new B3().fromJson(Z,$)}static fromJsonString(Z,$){return new B3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(B3,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};F3=class F3 extends X6{constructor(Z){super();this.error="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F3().fromBinary(Z,$)}static fromJson(Z,$){return new F3().fromJson(Z,$)}static fromJsonString(Z,$){return new F3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(F3,Z,$)}static $(){return["SendMessageError|1 error 9"]}};G3=class G3 extends X6{constructor(Z){super();this.result={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G3().fromBinary(Z,$)}static fromJson(Z,$){return new G3().fromJson(Z,$)}static fromJsonString(Z,$){return new G3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(G3,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",B3,F3]}};Q$=class Q$ extends X6{constructor(Z){super();D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q$().fromBinary(Z,$)}static fromJson(Z,$){return new Q$().fromJson(Z,$)}static fromJsonString(Z,$){return new Q$().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(Q$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",N3,G3]}}});import{Message as ua,proto3 as Q8}from"@bufbuild/protobuf";var Nh="agent.v1.",I3,L3,w3,D3,U3,q$;var FF=U(()=>{k();I3=class I3 extends B{static get runtime(){return N(this,"runtime",Q8)}static $p(){return Nh}};L3=class L3 extends I3{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new L3().fromBinary(Z,$)}static fromJson(Z,$){return new L3().fromJson(Z,$)}static fromJsonString(Z,$){return new L3().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(L3,Z,$)}static $(){return["FetchCloudAgentDataArgs|4 bc_ids 9*|6 sources 9*|7 statuses 9*|8 include_team_wide 8|9 include_archived 8|10 limit 5?|12 include_transcript 8|13 active_since 9"]}};w3=class w3 extends I3{constructor(Z){super();this.result={case:void 0},Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new w3().fromBinary(Z,$)}static fromJson(Z,$){return new w3().fromJson(Z,$)}static fromJsonString(Z,$){return new w3().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(w3,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",D3,U3]}};D3=class D3 extends I3{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new D3().fromBinary(Z,$)}static fromJson(Z,$){return new D3().fromJson(Z,$)}static fromJsonString(Z,$){return new D3().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(D3,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};U3=class U3 extends I3{constructor(Z){super();this.error="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new U3().fromBinary(Z,$)}static fromJson(Z,$){return new U3().fromJson(Z,$)}static fromJsonString(Z,$){return new U3().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(U3,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};q$=class q$ extends I3{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(q$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",L3,w3]}}});import{Message as na,proto3 as q8}from"@bufbuild/protobuf";var Bh="agent.v1.",P3,O3,k3,f3,E3,W$;var GF=U(()=>{k();P3=class P3 extends B{static get runtime(){return N(this,"runtime",q8)}static $p(){return Bh}};O3=class O3 extends P3{constructor(Z){super();this.message="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new O3().fromBinary(Z,$)}static fromJson(Z,$){return new O3().fromJson(Z,$)}static fromJsonString(Z,$){return new O3().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(O3,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};k3=class k3 extends P3{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new k3().fromBinary(Z,$)}static fromJson(Z,$){return new k3().fromJson(Z,$)}static fromJsonString(Z,$){return new k3().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(k3,Z,$)}static $(){return["SendToUserSuccess"]}};f3=class f3 extends P3{constructor(Z){super();this.error="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new f3().fromBinary(Z,$)}static fromJson(Z,$){return new f3().fromJson(Z,$)}static fromJsonString(Z,$){return new f3().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(f3,Z,$)}static $(){return["SendToUserError|1 error 9"]}};E3=class E3 extends P3{constructor(Z){super();this.result={case:void 0},q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E3().fromBinary(Z,$)}static fromJson(Z,$){return new E3().fromJson(Z,$)}static fromJsonString(Z,$){return new E3().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(E3,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",k3,f3]}};W$=class W$ extends P3{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new W$().fromBinary(Z,$)}static fromJson(Z,$){return new W$().fromJson(Z,$)}static fromJsonString(Z,$){return new W$().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(W$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",O3,E3]}}});import{Message as ta,proto3 as sQ}from"@bufbuild/protobuf";var Fh="agent.v1.",LF,K0;var V3=U(()=>{k();LF=class LF extends B{static get runtime(){return N(this,"runtime",sQ)}static $p(){return Fh}};K0=class K0 extends LF{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,sQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new K0().fromBinary(Z,$)}static fromJson(Z,$){return new K0().fromJson(Z,$)}static fromJsonString(Z,$){return new K0().fromJsonString(Z,$)}static equals(Z,$){return sQ.util.equals(K0,Z,$)}static $(){return["PiTruncation|1 truncated 8|2 truncated_by 9|3 total_lines 13|4 output_lines 13|5 output_bytes 13|6 max_lines 13?|7 max_bytes 13?|8 first_line_exceeds_limit 8|9 last_line_partial 8"]}}});import{Message as $r,proto3 as W8}from"@bufbuild/protobuf";var Gh="agent.v1.",v3,N$,x3,M3,h3,A3;var wF=U(()=>{V3();k();v3=class v3 extends B{static get runtime(){return N(this,"runtime",W8)}static $p(){return Gh}};N$=class N$ extends v3{constructor(Z){super();W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N$().fromBinary(Z,$)}static fromJson(Z,$){return new N$().fromJson(Z,$)}static fromJsonString(Z,$){return new N$().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(N$,Z,$)}static $(){return["PiReadToolCall|1 args #0|2 result #1",x3,M3]}};x3=class x3 extends v3{constructor(Z){super();this.path="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new x3().fromBinary(Z,$)}static fromJson(Z,$){return new x3().fromJson(Z,$)}static fromJsonString(Z,$){return new x3().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(x3,Z,$)}static $(){return["PiReadToolArgs|1 path 9|2 offset 5?|3 limit 5?"]}};M3=class M3 extends v3{constructor(Z){super();this.result={case:void 0},W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new M3().fromBinary(Z,$)}static fromJson(Z,$){return new M3().fromJson(Z,$)}static fromJsonString(Z,$){return new M3().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(M3,Z,$)}static $(){return["PiReadToolResult|1 success #0 result|2 error #1 result",h3,A3]}};h3=class h3 extends v3{constructor(Z){super();this.output="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new h3().fromBinary(Z,$)}static fromJson(Z,$){return new h3().fromJson(Z,$)}static fromJsonString(Z,$){return new h3().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(h3,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",K0]}};A3=class A3 extends v3{constructor(Z){super();this.error="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new A3().fromBinary(Z,$)}static fromJson(Z,$){return new A3().fromJson(Z,$)}static fromJsonString(Z,$){return new A3().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(A3,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as Kr,proto3 as N8}from"@bufbuild/protobuf";var Lh="agent.v1.",m3,B$,C3,T3,R3,y3;var DF=U(()=>{V3();k();m3=class m3 extends B{static get runtime(){return N(this,"runtime",N8)}static $p(){return Lh}};B$=class B$ extends m3{constructor(Z){super();N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new B$().fromBinary(Z,$)}static fromJson(Z,$){return new B$().fromJson(Z,$)}static fromJsonString(Z,$){return new B$().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(B$,Z,$)}static $(){return["PiBashToolCall|1 args #0|2 result #1",C3,T3]}};C3=class C3 extends m3{constructor(Z){super();this.command="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new C3().fromBinary(Z,$)}static fromJson(Z,$){return new C3().fromJson(Z,$)}static fromJsonString(Z,$){return new C3().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(C3,Z,$)}static $(){return["PiBashToolArgs|1 command 9|2 timeout 1?"]}};T3=class T3 extends m3{constructor(Z){super();this.result={case:void 0},N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new T3().fromBinary(Z,$)}static fromJson(Z,$){return new T3().fromJson(Z,$)}static fromJsonString(Z,$){return new T3().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(T3,Z,$)}static $(){return["PiBashToolResult|1 success #0 result|2 error #1 result",R3,y3]}};R3=class R3 extends m3{constructor(Z){super();this.output="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new R3().fromBinary(Z,$)}static fromJson(Z,$){return new R3().fromJson(Z,$)}static fromJsonString(Z,$){return new R3().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(R3,Z,$)}static $(){return["PiBashToolSuccess|1 output 9|2 truncation #0?|3 full_output_path 9?",K0]}};y3=class y3 extends m3{constructor(Z){super();this.error="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new y3().fromBinary(Z,$)}static fromJson(Z,$){return new y3().fromJson(Z,$)}static fromJsonString(Z,$){return new y3().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(y3,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",K0]}}});import{Message as Nr,proto3 as U0}from"@bufbuild/protobuf";var wh="agent.v1.",z6,j3,F$,_3,S3,g3,b3,d3;var UF=U(()=>{k();z6=class z6 extends B{static get runtime(){return N(this,"runtime",U0)}static $p(){return wh}};j3=class j3 extends z6{constructor(Z){super();this.oldText="",this.newText="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new j3().fromBinary(Z,$)}static fromJson(Z,$){return new j3().fromJson(Z,$)}static fromJsonString(Z,$){return new j3().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(j3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};F$=class F$ extends z6{constructor(Z){super();U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F$().fromBinary(Z,$)}static fromJson(Z,$){return new F$().fromJson(Z,$)}static fromJsonString(Z,$){return new F$().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(F$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",_3,S3]}};_3=class _3 extends z6{constructor(Z){super();this.path="",this.edits=[],U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _3().fromBinary(Z,$)}static fromJson(Z,$){return new _3().fromJson(Z,$)}static fromJsonString(Z,$){return new _3().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(_3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",j3]}};S3=class S3 extends z6{constructor(Z){super();this.result={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S3().fromBinary(Z,$)}static fromJson(Z,$){return new S3().fromJson(Z,$)}static fromJsonString(Z,$){return new S3().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(S3,Z,$)}static $(){return["PiEditToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",g3,b3,d3]}};g3=class g3 extends z6{constructor(Z){super();this.output="",this.diff="",this.patch="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g3().fromBinary(Z,$)}static fromJson(Z,$){return new g3().fromJson(Z,$)}static fromJsonString(Z,$){return new g3().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(g3,Z,$)}static $(){return["PiEditToolSuccess|1 output 9|2 diff 9|3 patch 9|4 first_changed_line 13?"]}};b3=class b3 extends z6{constructor(Z){super();this.error="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b3().fromBinary(Z,$)}static fromJson(Z,$){return new b3().fromJson(Z,$)}static fromJsonString(Z,$){return new b3().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(b3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};d3=class d3 extends z6{constructor(Z){super();this.reason="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d3().fromBinary(Z,$)}static fromJson(Z,$){return new d3().fromJson(Z,$)}static fromJsonString(Z,$){return new d3().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(d3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as Lr,proto3 as T0}from"@bufbuild/protobuf";var Dh="agent.v1.",L$,G$,c3,u3,l3,p3,i3;var IF=U(()=>{k();L$=class L$ extends B{static get runtime(){return N(this,"runtime",T0)}static $p(){return Dh}};G$=class G$ extends L${constructor(Z){super();T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G$().fromBinary(Z,$)}static fromJson(Z,$){return new G$().fromJson(Z,$)}static fromJsonString(Z,$){return new G$().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(G$,Z,$)}static $(){return["PiWriteToolCall|1 args #0|2 result #1",c3,u3]}};c3=class c3 extends L${constructor(Z){super();this.path="",this.content="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c3().fromBinary(Z,$)}static fromJson(Z,$){return new c3().fromJson(Z,$)}static fromJsonString(Z,$){return new c3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(c3,Z,$)}static $(){return["PiWriteToolArgs|1 path 9|2 content 9"]}};u3=class u3 extends L${constructor(Z){super();this.result={case:void 0},T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u3().fromBinary(Z,$)}static fromJson(Z,$){return new u3().fromJson(Z,$)}static fromJsonString(Z,$){return new u3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(u3,Z,$)}static $(){return["PiWriteToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",l3,p3,i3]}};l3=class l3 extends L${constructor(Z){super();this.output="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l3().fromBinary(Z,$)}static fromJson(Z,$){return new l3().fromJson(Z,$)}static fromJsonString(Z,$){return new l3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(l3,Z,$)}static $(){return["PiWriteToolSuccess|1 output 9"]}};p3=class p3 extends L${constructor(Z){super();this.error="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p3().fromBinary(Z,$)}static fromJson(Z,$){return new p3().fromJson(Z,$)}static fromJsonString(Z,$){return new p3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(p3,Z,$)}static $(){return["PiWriteToolError|1 error 9"]}};i3=class i3 extends L${constructor(Z){super();this.reason="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i3().fromBinary(Z,$)}static fromJson(Z,$){return new i3().fromJson(Z,$)}static fromJsonString(Z,$){return new i3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(i3,Z,$)}static $(){return["PiWriteToolRejected|1 reason 9"]}}});import{Message as Ir,proto3 as B8}from"@bufbuild/protobuf";var Uh="agent.v1.",t3,w$,n3,a3,r3,s3;var OF=U(()=>{V3();k();t3=class t3 extends B{static get runtime(){return N(this,"runtime",B8)}static $p(){return Uh}};w$=class w$ extends t3{constructor(Z){super();B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new w$().fromBinary(Z,$)}static fromJson(Z,$){return new w$().fromJson(Z,$)}static fromJsonString(Z,$){return new w$().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(w$,Z,$)}static $(){return["PiGrepToolCall|1 args #0|2 result #1",n3,a3]}};n3=class n3 extends t3{constructor(Z){super();this.pattern="",B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n3().fromBinary(Z,$)}static fromJson(Z,$){return new n3().fromJson(Z,$)}static fromJsonString(Z,$){return new n3().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(n3,Z,$)}static $(){return["PiGrepToolArgs|1 pattern 9|2 path 9?|3 glob 9?|4 ignore_case 8?|5 literal 8?|6 context 5?|7 limit 5?"]}};a3=class a3 extends t3{constructor(Z){super();this.result={case:void 0},B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new a3().fromBinary(Z,$)}static fromJson(Z,$){return new a3().fromJson(Z,$)}static fromJsonString(Z,$){return new a3().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(a3,Z,$)}static $(){return["PiGrepToolResult|1 success #0 result|2 error #1 result",r3,s3]}};r3=class r3 extends t3{constructor(Z){super();this.output="",this.linesTruncated=!1,B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new r3().fromBinary(Z,$)}static fromJson(Z,$){return new r3().fromJson(Z,$)}static fromJsonString(Z,$){return new r3().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(r3,Z,$)}static $(){return["PiGrepToolSuccess|1 output 9|2 truncation #0?|3 match_limit_reached 13?|4 lines_truncated 8",K0]}};s3=class s3 extends t3{constructor(Z){super();this.error="",B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new s3().fromBinary(Z,$)}static fromJson(Z,$){return new s3().fromJson(Z,$)}static fromJsonString(Z,$){return new s3().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(s3,Z,$)}static $(){return["PiGrepToolError|1 error 9"]}}});import{Message as Pr,proto3 as F8}from"@bufbuild/protobuf";var Ih="agent.v1.",JY,D$,o3,e3,ZY,$Y;var kF=U(()=>{V3();k();JY=class JY extends B{static get runtime(){return N(this,"runtime",F8)}static $p(){return Ih}};D$=class D$ extends JY{constructor(Z){super();F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new D$().fromBinary(Z,$)}static fromJson(Z,$){return new D$().fromJson(Z,$)}static fromJsonString(Z,$){return new D$().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(D$,Z,$)}static $(){return["PiFindToolCall|1 args #0|2 result #1",o3,e3]}};o3=class o3 extends JY{constructor(Z){super();this.pattern="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new o3().fromBinary(Z,$)}static fromJson(Z,$){return new o3().fromJson(Z,$)}static fromJsonString(Z,$){return new o3().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(o3,Z,$)}static $(){return["PiFindToolArgs|1 pattern 9|2 path 9?|3 limit 5?"]}};e3=class e3 extends JY{constructor(Z){super();this.result={case:void 0},F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new e3().fromBinary(Z,$)}static fromJson(Z,$){return new e3().fromJson(Z,$)}static fromJsonString(Z,$){return new e3().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(e3,Z,$)}static $(){return["PiFindToolResult|1 success #0 result|2 error #1 result",ZY,$Y]}};ZY=class ZY extends JY{constructor(Z){super();this.output="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZY().fromBinary(Z,$)}static fromJson(Z,$){return new ZY().fromJson(Z,$)}static fromJsonString(Z,$){return new ZY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(ZY,Z,$)}static $(){return["PiFindToolSuccess|1 output 9|2 truncation #0?|3 result_limit_reached 13?",K0]}};$Y=class $Y extends JY{constructor(Z){super();this.error="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Y().fromBinary(Z,$)}static fromJson(Z,$){return new $Y().fromJson(Z,$)}static fromJsonString(Z,$){return new $Y().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals($Y,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as Ar,proto3 as G8}from"@bufbuild/protobuf";var Oh="agent.v1.",HY,U$,YY,XY,zY,KY;var fF=U(()=>{V3();k();HY=class HY extends B{static get runtime(){return N(this,"runtime",G8)}static $p(){return Oh}};U$=class U$ extends HY{constructor(Z){super();G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new U$().fromBinary(Z,$)}static fromJson(Z,$){return new U$().fromJson(Z,$)}static fromJsonString(Z,$){return new U$().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(U$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",YY,XY]}};YY=class YY extends HY{constructor(Z){super();G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new YY().fromBinary(Z,$)}static fromJson(Z,$){return new YY().fromJson(Z,$)}static fromJsonString(Z,$){return new YY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(YY,Z,$)}static $(){return["PiLsToolArgs|1 path 9?|2 limit 5?"]}};XY=class XY extends HY{constructor(Z){super();this.result={case:void 0},G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new XY().fromBinary(Z,$)}static fromJson(Z,$){return new XY().fromJson(Z,$)}static fromJsonString(Z,$){return new XY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(XY,Z,$)}static $(){return["PiLsToolResult|1 success #0 result|2 error #1 result",zY,KY]}};zY=class zY extends HY{constructor(Z){super();this.output="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new zY().fromBinary(Z,$)}static fromJson(Z,$){return new zY().fromJson(Z,$)}static fromJsonString(Z,$){return new zY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(zY,Z,$)}static $(){return["PiLsToolSuccess|1 output 9|2 truncation #0?|3 entry_limit_reached 13?",K0]}};KY=class KY extends HY{constructor(Z){super();this.error="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new KY().fromBinary(Z,$)}static fromJson(Z,$){return new KY().fromJson(Z,$)}static fromJsonString(Z,$){return new KY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(KY,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as yr,proto3 as S}from"@bufbuild/protobuf";var kh="agent.v1.",R0,QY,qY,WY,NY,BY,FY,GY,I$,O$,LY,wY,DY;var EF=U(()=>{k();R0=class R0 extends B{static get runtime(){return N(this,"runtime",S)}static $p(){return kh}};QY=class QY extends R0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},S.util.initPartial(Z,this)}static fromBinary(Z,$){return new QY().fromBinary(Z,$)}static fromJson(Z,$){return new QY().fromJson(Z,$)}static fromJsonString(Z,$){return new QY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(QY,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target",qY]}};qY=class qY extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new qY().fromBinary(Z,$)}static fromJson(Z,$){return new qY().fromJson(Z,$)}static fromJsonString(Z,$){return new qY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(qY,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",WY]}};WY=class WY extends R0{constructor(Z){super();this.owner="",this.repo="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new WY().fromBinary(Z,$)}static fromJson(Z,$){return new WY().fromJson(Z,$)}static fromJsonString(Z,$){return new WY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(WY,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};NY=class NY extends R0{constructor(Z){super();this.result={case:void 0},S.util.initPartial(Z,this)}static fromBinary(Z,$){return new NY().fromBinary(Z,$)}static fromJson(Z,$){return new NY().fromJson(Z,$)}static fromJsonString(Z,$){return new NY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(NY,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result",BY,FY,GY]}};BY=class BY extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new BY().fromBinary(Z,$)}static fromJson(Z,$){return new BY().fromJson(Z,$)}static fromJsonString(Z,$){return new BY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(BY,Z,$)}static $(){return["ConnectScmSuccess"]}};FY=class FY extends R0{constructor(Z){super();this.error="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new FY().fromBinary(Z,$)}static fromJson(Z,$){return new FY().fromJson(Z,$)}static fromJsonString(Z,$){return new FY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(FY,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};GY=class GY extends R0{constructor(Z){super();this.reason="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new GY().fromBinary(Z,$)}static fromJson(Z,$){return new GY().fromJson(Z,$)}static fromJsonString(Z,$){return new GY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(GY,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};I$=class I$ extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new I$().fromBinary(Z,$)}static fromJson(Z,$){return new I$().fromJson(Z,$)}static fromJsonString(Z,$){return new I$().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(I$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",QY,NY]}};O$=class O$ extends R0{constructor(Z){super();this.result={case:void 0},S.util.initPartial(Z,this)}static fromBinary(Z,$){return new O$().fromBinary(Z,$)}static fromJson(Z,$){return new O$().fromJson(Z,$)}static fromJsonString(Z,$){return new O$().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(O$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",LY,wY,DY]}};LY=class LY extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new LY().fromBinary(Z,$)}static fromJson(Z,$){return new LY().fromJson(Z,$)}static fromJsonString(Z,$){return new LY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(LY,Z,$)}static $(){return["ConnectScmRequestResponse.Approved"]}};wY=class wY extends R0{constructor(Z){super();this.reason="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new wY().fromBinary(Z,$)}static fromJson(Z,$){return new wY().fromJson(Z,$)}static fromJsonString(Z,$){return new wY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(wY,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9"]}};DY=class DY extends R0{constructor(Z){super();this.error="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new DY().fromBinary(Z,$)}static fromJson(Z,$){return new DY().fromJson(Z,$)}static fromJsonString(Z,$){return new DY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(DY,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as Sr,proto3 as d0,protoInt64 as fh}from"@bufbuild/protobuf";var VF="agent.v1.",kY,PF,k$,f$,UY,IY,OY;var xF=U(()=>{k();kY=class kY extends B{static get runtime(){return N(this,"runtime",d0)}static $p(){return VF}};PF=w(d0,VF,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);k$=class k$ extends kY{constructor(Z){super();this.query="",this.toolCallId="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new k$().fromBinary(Z,$)}static fromJson(Z,$){return new k$().fromJson(Z,$)}static fromJsonString(Z,$){return new k$().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(k$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};f$=class f$ extends kY{constructor(Z){super();this.result={case:void 0},d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f$().fromBinary(Z,$)}static fromJson(Z,$){return new f$().fromJson(Z,$)}static fromJsonString(Z,$){return new f$().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(f$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",UY,OY]}};UY=class UY extends kY{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UY().fromBinary(Z,$)}static fromJson(Z,$){return new UY().fromJson(Z,$)}static fromJsonString(Z,$){return new UY().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(UY,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",IY]}};IY=class IY extends kY{constructor(Z){super();this.conversationId="",this.title="",this.source=PF.UNSPECIFIED,this.updatedAtMs=fh.zero,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IY().fromBinary(Z,$)}static fromJson(Z,$){return new IY().fromJson(Z,$)}static fromJsonString(Z,$){return new IY().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(IY,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",PF]}};OY=class OY extends kY{constructor(Z){super();this.error="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OY().fromBinary(Z,$)}static fromJson(Z,$){return new OY().fromJson(Z,$)}static fromJsonString(Z,$){return new OY().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(OY,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as cr,proto3 as tQ}from"@bufbuild/protobuf";var Eh="agent.v1.",MF,E$;var hF=U(()=>{xF();k();MF=class MF extends B{static get runtime(){return N(this,"runtime",tQ)}static $p(){return Eh}};E$=class E$ extends MF{constructor(Z){super();tQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new E$().fromBinary(Z,$)}static fromJson(Z,$){return new E$().fromJson(Z,$)}static fromJsonString(Z,$){return new E$().fromJsonString(Z,$)}static equals(Z,$){return tQ.util.equals(E$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",k$,f$]}}});import{Message as nr,proto3 as i}from"@bufbuild/protobuf";var AF="agent.v1.",x8,M$,fY,EY,P$,PY,V$,VY,xY,MY,x$;var vF=U(()=>{k();x8=class x8 extends B{static get runtime(){return N(this,"runtime",i)}static $p(){return AF}};M$=w(i,AF,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);fY=class fY extends x8{constructor(Z){super();this.objective="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new fY().fromBinary(Z,$)}static fromJson(Z,$){return new fY().fromJson(Z,$)}static fromJsonString(Z,$){return new fY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(fY,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};EY=class EY extends x8{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new EY().fromBinary(Z,$)}static fromJson(Z,$){return new EY().fromJson(Z,$)}static fromJsonString(Z,$){return new EY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(EY,Z,$)}static $(){return["CreateGoalSuccess"]}};P$=class P$ extends x8{constructor(Z){super();this.error="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new P$().fromBinary(Z,$)}static fromJson(Z,$){return new P$().fromJson(Z,$)}static fromJsonString(Z,$){return new P$().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(P$,Z,$)}static $(){return["GoalError|1 error 9"]}};PY=class PY extends x8{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new PY().fromBinary(Z,$)}static fromJson(Z,$){return new PY().fromJson(Z,$)}static fromJsonString(Z,$){return new PY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(PY,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",EY,P$]}};V$=class V$ extends x8{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new V$().fromBinary(Z,$)}static fromJson(Z,$){return new V$().fromJson(Z,$)}static fromJsonString(Z,$){return new V$().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(V$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",fY,PY]}};VY=class VY extends x8{constructor(Z){super();this.status=M$.UNSPECIFIED,i.util.initPartial(Z,this)}static fromBinary(Z,$){return new VY().fromBinary(Z,$)}static fromJson(Z,$){return new VY().fromJson(Z,$)}static fromJsonString(Z,$){return new VY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(VY,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",M$]}};xY=class xY extends x8{constructor(Z){super();this.status=M$.UNSPECIFIED,i.util.initPartial(Z,this)}static fromBinary(Z,$){return new xY().fromBinary(Z,$)}static fromJson(Z,$){return new xY().fromJson(Z,$)}static fromJsonString(Z,$){return new xY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(xY,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",M$]}};MY=class MY extends x8{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new MY().fromBinary(Z,$)}static fromJson(Z,$){return new MY().fromJson(Z,$)}static fromJsonString(Z,$){return new MY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(MY,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",xY,P$]}};x$=class x$ extends x8{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new x$().fromBinary(Z,$)}static fromJson(Z,$){return new x$().fromJson(Z,$)}static fromJsonString(Z,$){return new x$().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(x$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",VY,MY]}}});import{Message as tr,proto3 as x,protoInt64 as Ph}from"@bufbuild/protobuf";var CF="agent.v1.",_,Vh,hY,AY,vY,CY,TY,h$,RY,yY,mY,jY,A$,_Y,SY,gY,bY,v$,dY,cY,uY,lY,C$,pY,iY,nY,aY,T$;var TF=U(()=>{k();_=class _ extends B{static get runtime(){return N(this,"runtime",x)}static $p(){return CF}};Vh=w(x,CF,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);hY=class hY extends _{constructor(Z){super();this.toolCallId="",this.agentIds=[],x.util.initPartial(Z,this)}static fromBinary(Z,$){return new hY().fromBinary(Z,$)}static fromJson(Z,$){return new hY().fromJson(Z,$)}static fromJsonString(Z,$){return new hY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(hY,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};AY=class AY extends _{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=Ph.zero,x.util.initPartial(Z,this)}static fromBinary(Z,$){return new AY().fromBinary(Z,$)}static fromJson(Z,$){return new AY().fromJson(Z,$)}static fromJsonString(Z,$){return new AY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(AY,Z,$)}static $(){return["GetAgentStatusWorker|1 bc_id 9|2 name 9|3 lifecycle 9|4 turn_in_flight 8|5 last_terminal_turn_status 9|6 pr_url 9|7 last_activity_at_ms 4"]}};vY=class vY extends _{constructor(Z){super();this.workers=[],this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new vY().fromBinary(Z,$)}static fromJson(Z,$){return new vY().fromJson(Z,$)}static fromJsonString(Z,$){return new vY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(vY,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",AY]}};CY=class CY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new CY().fromBinary(Z,$)}static fromJson(Z,$){return new CY().fromJson(Z,$)}static fromJsonString(Z,$){return new CY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(CY,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};TY=class TY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new TY().fromBinary(Z,$)}static fromJson(Z,$){return new TY().fromJson(Z,$)}static fromJsonString(Z,$){return new TY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(TY,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",vY,CY]}};h$=class h$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new h$().fromBinary(Z,$)}static fromJson(Z,$){return new h$().fromJson(Z,$)}static fromJsonString(Z,$){return new h$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(h$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",hY,TY]}};RY=class RY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new RY().fromBinary(Z,$)}static fromJson(Z,$){return new RY().fromJson(Z,$)}static fromJsonString(Z,$){return new RY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(RY,Z,$)}static $(){return["SendToAgentArgs|1 tool_call_id 9|2 agent_id 9|3 message 9|4 delivery 9|5 title 9|6 model 9?"]}};yY=class yY extends _{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new yY().fromBinary(Z,$)}static fromJson(Z,$){return new yY().fromJson(Z,$)}static fromJsonString(Z,$){return new yY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(yY,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9"]}};mY=class mY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new mY().fromBinary(Z,$)}static fromJson(Z,$){return new mY().fromJson(Z,$)}static fromJsonString(Z,$){return new mY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(mY,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};jY=class jY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new jY().fromBinary(Z,$)}static fromJson(Z,$){return new jY().fromJson(Z,$)}static fromJsonString(Z,$){return new jY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(jY,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",yY,mY]}};A$=class A$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new A$().fromBinary(Z,$)}static fromJson(Z,$){return new A$().fromJson(Z,$)}static fromJsonString(Z,$){return new A$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(A$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",RY,jY]}};_Y=class _Y extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,x.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Y().fromBinary(Z,$)}static fromJson(Z,$){return new _Y().fromJson(Z,$)}static fromJsonString(Z,$){return new _Y().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(_Y,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};SY=class SY extends _{constructor(Z){super();this.transcript="",this.truncated=!1,x.util.initPartial(Z,this)}static fromBinary(Z,$){return new SY().fromBinary(Z,$)}static fromJson(Z,$){return new SY().fromJson(Z,$)}static fromJsonString(Z,$){return new SY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(SY,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};gY=class gY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new gY().fromBinary(Z,$)}static fromJson(Z,$){return new gY().fromJson(Z,$)}static fromJsonString(Z,$){return new gY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(gY,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};bY=class bY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new bY().fromBinary(Z,$)}static fromJson(Z,$){return new bY().fromJson(Z,$)}static fromJsonString(Z,$){return new bY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(bY,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",SY,gY]}};v$=class v$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new v$().fromBinary(Z,$)}static fromJson(Z,$){return new v$().fromJson(Z,$)}static fromJsonString(Z,$){return new v$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(v$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",_Y,bY]}};dY=class dY extends _{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new dY().fromBinary(Z,$)}static fromJson(Z,$){return new dY().fromJson(Z,$)}static fromJsonString(Z,$){return new dY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(dY,Z,$)}static $(){return["CreateAgentArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?"]}};cY=class cY extends _{constructor(Z){super();this.agentId="",this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new cY().fromBinary(Z,$)}static fromJson(Z,$){return new cY().fromJson(Z,$)}static fromJsonString(Z,$){return new cY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(cY,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};uY=class uY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new uY().fromBinary(Z,$)}static fromJson(Z,$){return new uY().fromJson(Z,$)}static fromJsonString(Z,$){return new uY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(uY,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",Vh]}};lY=class lY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new lY().fromBinary(Z,$)}static fromJson(Z,$){return new lY().fromJson(Z,$)}static fromJsonString(Z,$){return new lY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(lY,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",cY,uY]}};C$=class C$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new C$().fromBinary(Z,$)}static fromJson(Z,$){return new C$().fromJson(Z,$)}static fromJsonString(Z,$){return new C$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(C$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",dY,lY]}};pY=class pY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new pY().fromBinary(Z,$)}static fromJson(Z,$){return new pY().fromJson(Z,$)}static fromJsonString(Z,$){return new pY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(pY,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};iY=class iY extends _{constructor(Z){super();this.workerBcId="",this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new iY().fromBinary(Z,$)}static fromJson(Z,$){return new iY().fromJson(Z,$)}static fromJsonString(Z,$){return new iY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(iY,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};nY=class nY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new nY().fromBinary(Z,$)}static fromJson(Z,$){return new nY().fromJson(Z,$)}static fromJsonString(Z,$){return new nY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(nY,Z,$)}static $(){return["StopAgentError|1 error 9"]}};aY=class aY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new aY().fromBinary(Z,$)}static fromJson(Z,$){return new aY().fromJson(Z,$)}static fromJsonString(Z,$){return new aY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(aY,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",iY,nY]}};T$=class T$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new T$().fromBinary(Z,$)}static fromJson(Z,$){return new T$().fromJson(Z,$)}static fromJsonString(Z,$){return new T$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(T$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",pY,aY]}}});import{Message as $s,proto3 as y0,protoInt64 as xh}from"@bufbuild/protobuf";var Mh="agent.v1.",y$,rY,sY,tY,oY,eY,R$;var RF=U(()=>{k();y$=class y$ extends B{static get runtime(){return N(this,"runtime",y0)}static $p(){return Mh}};rY=class rY extends y${constructor(Z){super();this.toolCallId="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rY().fromBinary(Z,$)}static fromJson(Z,$){return new rY().fromJson(Z,$)}static fromJsonString(Z,$){return new rY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(rY,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?"]}};sY=class sY extends y${constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=xh.zero,this.isCurrent=!1,this.markdown="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new sY().fromBinary(Z,$)}static fromJson(Z,$){return new sY().fromJson(Z,$)}static fromJsonString(Z,$){return new sY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(sY,Z,$)}static $(){return["PrCodeTourRevisionSnapshot|1 revision_id 9|2 status 9|3 head_sha 9|4 feedback 9|5 updated_at_ms 3|6 is_current 8|7 markdown 9"]}};tY=class tY extends y${constructor(Z){super();this.revisions=[],y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new tY().fromBinary(Z,$)}static fromJson(Z,$){return new tY().fromJson(Z,$)}static fromJsonString(Z,$){return new tY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(tY,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*",sY]}};oY=class oY extends y${constructor(Z){super();this.error="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new oY().fromBinary(Z,$)}static fromJson(Z,$){return new oY().fromJson(Z,$)}static fromJsonString(Z,$){return new oY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(oY,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};eY=class eY extends y${constructor(Z){super();this.result={case:void 0},y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new eY().fromBinary(Z,$)}static fromJson(Z,$){return new eY().fromJson(Z,$)}static fromJsonString(Z,$){return new eY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(eY,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",tY,oY]}};R$=class R$ extends y${constructor(Z){super();y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new R$().fromBinary(Z,$)}static fromJson(Z,$){return new R$().fromJson(Z,$)}static fromJsonString(Z,$){return new R$().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(R$,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",rY,eY]}}});import{Message as zs,proto3 as m}from"@bufbuild/protobuf";var oQ="agent.v1.",h0,yF,mF,ZX,$X,JX,YX,XX,zX,KX,m$,HX,QX,qX,WX,j$;var jF=U(()=>{k();h0=class h0 extends B{static get runtime(){return N(this,"runtime",m)}static $p(){return oQ}};yF=w(m,oQ,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),mF=w(m,oQ,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);ZX=class ZX extends h0{constructor(Z){super();this.line=0,this.character=0,m.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZX().fromBinary(Z,$)}static fromJson(Z,$){return new ZX().fromJson(Z,$)}static fromJsonString(Z,$){return new ZX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(ZX,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};$X=class $X extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new $X().fromBinary(Z,$)}static fromJson(Z,$){return new $X().fromJson(Z,$)}static fromJsonString(Z,$){return new $X().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals($X,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",ZX]}};JX=class JX extends h0{constructor(Z){super();this.message="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new JX().fromBinary(Z,$)}static fromJson(Z,$){return new JX().fromJson(Z,$)}static fromJsonString(Z,$){return new JX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(JX,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",$X]}};YX=class YX extends h0{constructor(Z){super();this.contents="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new YX().fromBinary(Z,$)}static fromJson(Z,$){return new YX().fromJson(Z,$)}static fromJsonString(Z,$){return new YX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(YX,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};XX=class XX extends h0{constructor(Z){super();this.canvasId="",this.url="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new XX().fromBinary(Z,$)}static fromJson(Z,$){return new XX().fromJson(Z,$)}static fromJsonString(Z,$){return new XX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(XX,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9"]}};zX=class zX extends h0{constructor(Z){super();this.reason=yF.UNSPECIFIED,this.diagnostics=[],m.util.initPartial(Z,this)}static fromBinary(Z,$){return new zX().fromBinary(Z,$)}static fromJson(Z,$){return new zX().fromJson(Z,$)}static fromJsonString(Z,$){return new zX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(zX,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",yF,JX]}};KX=class KX extends h0{constructor(Z){super();this.result={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new KX().fromBinary(Z,$)}static fromJson(Z,$){return new KX().fromJson(Z,$)}static fromJsonString(Z,$){return new KX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(KX,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",XX,zX]}};m$=class m$ extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new m$().fromBinary(Z,$)}static fromJson(Z,$){return new m$().fromJson(Z,$)}static fromJsonString(Z,$){return new m$().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(m$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",YX,KX]}};HX=class HX extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new HX().fromBinary(Z,$)}static fromJson(Z,$){return new HX().fromJson(Z,$)}static fromJsonString(Z,$){return new HX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(HX,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};QX=class QX extends h0{constructor(Z){super();this.canvasId="",this.url="",this.source="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new QX().fromBinary(Z,$)}static fromJson(Z,$){return new QX().fromJson(Z,$)}static fromJsonString(Z,$){return new QX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(QX,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};qX=class qX extends h0{constructor(Z){super();this.reason=mF.UNSPECIFIED,m.util.initPartial(Z,this)}static fromBinary(Z,$){return new qX().fromBinary(Z,$)}static fromJson(Z,$){return new qX().fromJson(Z,$)}static fromJsonString(Z,$){return new qX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(qX,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",mF]}};WX=class WX extends h0{constructor(Z){super();this.result={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new WX().fromBinary(Z,$)}static fromJson(Z,$){return new WX().fromJson(Z,$)}static fromJsonString(Z,$){return new WX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(WX,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",QX,qX]}};j$=class j$ extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new j$().fromBinary(Z,$)}static fromJson(Z,$){return new j$().fromJson(Z,$)}static fromJsonString(Z,$){return new j$().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(j$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",HX,WX]}}});import{Message as qs,proto3 as L8}from"@bufbuild/protobuf";var hh="agent.v1.",LX,NX,BX,FX,GX,_$;var _F=U(()=>{k();LX=class LX extends B{static get runtime(){return N(this,"runtime",L8)}static $p(){return hh}};NX=class NX extends LX{constructor(Z){super();this.prompt="",this.referenceImagePaths=[],L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new NX().fromBinary(Z,$)}static fromJson(Z,$){return new NX().fromJson(Z,$)}static fromJsonString(Z,$){return new NX().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(NX,Z,$)}static $(){return["GenerateVideoArgs|1 prompt 9|2 file_path 9?|3 image_path 9?|4 reference_image_paths 9*|5 duration_seconds 13?|6 aspect_ratio 9?|7 resolution 9?"]}};BX=class BX extends LX{constructor(Z){super();this.result={case:void 0},L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new BX().fromBinary(Z,$)}static fromJson(Z,$){return new BX().fromJson(Z,$)}static fromJsonString(Z,$){return new BX().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(BX,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",FX,GX]}};FX=class FX extends LX{constructor(Z){super();this.filePath="",this.durationSeconds=0,L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new FX().fromBinary(Z,$)}static fromJson(Z,$){return new FX().fromJson(Z,$)}static fromJsonString(Z,$){return new FX().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(FX,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};GX=class GX extends LX{constructor(Z){super();this.error="",L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new GX().fromBinary(Z,$)}static fromJson(Z,$){return new GX().fromJson(Z,$)}static fromJsonString(Z,$){return new GX().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(GX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};_$=class _$ extends LX{constructor(Z){super();L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _$().fromBinary(Z,$)}static fromJson(Z,$){return new _$().fromJson(Z,$)}static fromJsonString(Z,$){return new _$().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(_$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",NX,BX]}}});import{Message as Fs,proto3 as I0}from"@bufbuild/protobuf";var Ah="agent.v1.",K6,wX,DX,UX,IX,OX,kX,S$;var SF=U(()=>{k();K6=class K6 extends B{static get runtime(){return N(this,"runtime",I0)}static $p(){return Ah}};wX=class wX extends K6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wX().fromBinary(Z,$)}static fromJson(Z,$){return new wX().fromJson(Z,$)}static fromJsonString(Z,$){return new wX().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(wX,Z,$)}static $(){return["XSearchArgs|1 query 9|2 from_date 9?|3 to_date 9?|4 allowed_x_handles 9*|5 excluded_x_handles 9*"]}};DX=class DX extends K6{constructor(Z){super();this.result={case:void 0},I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DX().fromBinary(Z,$)}static fromJson(Z,$){return new DX().fromJson(Z,$)}static fromJsonString(Z,$){return new DX().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(DX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",UX,OX,kX]}};UX=class UX extends K6{constructor(Z){super();this.answer="",this.citations=[],I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UX().fromBinary(Z,$)}static fromJson(Z,$){return new UX().fromJson(Z,$)}static fromJsonString(Z,$){return new UX().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(UX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",IX]}};IX=class IX extends K6{constructor(Z){super();this.url="",this.title="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IX().fromBinary(Z,$)}static fromJson(Z,$){return new IX().fromJson(Z,$)}static fromJsonString(Z,$){return new IX().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(IX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};OX=class OX extends K6{constructor(Z){super();this.error="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OX().fromBinary(Z,$)}static fromJson(Z,$){return new OX().fromJson(Z,$)}static fromJsonString(Z,$){return new OX().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(OX,Z,$)}static $(){return["XSearchError|1 error 9"]}};kX=class kX extends K6{constructor(Z){super();this.reason="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kX().fromBinary(Z,$)}static fromJson(Z,$){return new kX().fromJson(Z,$)}static fromJsonString(Z,$){return new kX().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(kX,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};S$=class S$ extends K6{constructor(Z){super();I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S$().fromBinary(Z,$)}static fromJson(Z,$){return new S$().fromJson(Z,$)}static fromJsonString(Z,$){return new S$().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(S$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",wX,DX]}}});import{Message as Ds,proto3 as eQ}from"@bufbuild/protobuf";var vh="agent.v1.",gF,g$;var bF=U(()=>{k();gF=class gF extends B{static get runtime(){return N(this,"runtime",eQ)}static $p(){return vh}};g$=class g$ extends gF{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],eQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new g$().fromBinary(Z,$)}static fromJson(Z,$){return new g$().fromJson(Z,$)}static fromJsonString(Z,$){return new g$().fromJsonString(Z,$)}static equals(Z,$){return eQ.util.equals(g$,Z,$)}static $(){return["AgentSkill|1 full_path 9|2 content 9|3 description 9|4 parse_error 9?|5 environments 9*|6 disabled_environments 9*|7 git_remote_origin 9?|8 disable_model_invocation 8|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 globs 9*|14 scoped_to 9*"]}}});import{Message as ks,proto3 as I,protoInt64 as dF}from"@bufbuild/protobuf";var uF="agent.v1.",M,cF,fX,EX,PX,b$,VX,xX,MX,hX,AX,vX,CX,TX,RX,yX,mX,jX,_X,SX,gX,bX,dX,cX,uX,lX,pX,iX,nX,aX,rX,sX,tX,oX,eX,Zz,$z,Jz,Yz,Xz,zz,Kz,Hz,Qz,qz,Wz,d$,Nz,Bz,Fz,Gz,Lz,wz,Dz,Uz;var lF=U(()=>{x6();bQ();SQ();bF();k();M=class M extends B{static get runtime(){return N(this,"runtime",I)}static $p(){return uF}};cF=w(I,uF,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);fX=class fX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new fX().fromBinary(Z,$)}static fromJson(Z,$){return new fX().fromJson(Z,$)}static fromJsonString(Z,$){return new fX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(fX,Z,$)}static $(){return["SelectedImage|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 path 9|4 dimension #2|7 mime_type 9",EX,b$,PX]}};EX=class EX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(EX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};PX=class PX extends M{constructor(Z){super();this.width=0,this.height=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new PX().fromBinary(Z,$)}static fromJson(Z,$){return new PX().fromJson(Z,$)}static fromJsonString(Z,$){return new PX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(PX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};b$=class b$ extends M{constructor(Z){super();this.uploadId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new b$().fromBinary(Z,$)}static fromJson(Z,$){return new b$().fromJson(Z,$)}static fromJsonString(Z,$){return new b$().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(b$,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};VX=class VX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new VX().fromBinary(Z,$)}static fromJson(Z,$){return new VX().fromJson(Z,$)}static fromJsonString(Z,$){return new VX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(VX,Z,$)}static $(){return["SelectedDocument|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 filename 9|4 mime_type 9|7 path 9",xX,b$]}};xX=class xX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new xX().fromBinary(Z,$)}static fromJson(Z,$){return new xX().fromJson(Z,$)}static fromJsonString(Z,$){return new xX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(xX,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};MX=class MX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new MX().fromBinary(Z,$)}static fromJson(Z,$){return new MX().fromJson(Z,$)}static fromJsonString(Z,$){return new MX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(MX,Z,$)}static $(){return["SelectedVideo|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|11 signed_url #1 data_or_blob_id|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",hX,AX]}};hX=class hX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new hX().fromBinary(Z,$)}static fromJson(Z,$){return new hX().fromJson(Z,$)}static fromJsonString(Z,$){return new hX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(hX,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};AX=class AX extends M{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=dF.zero,this.refreshAfterUnixMs=dF.zero,this.conversationId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(AX,Z,$)}static $(){return["SelectedVideo.SignedUrl|1 url 9|2 key 9|3 expires_at_unix_ms 3|4 refresh_after_unix_ms 3|5 conversation_id 9"]}};vX=class vX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new vX().fromBinary(Z,$)}static fromJson(Z,$){return new vX().fromJson(Z,$)}static fromJsonString(Z,$){return new vX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(vX,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};CX=class CX extends M{constructor(Z){super();this.content="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new CX().fromBinary(Z,$)}static fromJson(Z,$){return new CX().fromJson(Z,$)}static fromJsonString(Z,$){return new CX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(CX,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};TX=class TX extends M{constructor(Z){super();this.content="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(TX,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",l8]}};RX=class RX extends M{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(RX,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};yX=class yX extends M{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new yX().fromBinary(Z,$)}static fromJson(Z,$){return new yX().fromJson(Z,$)}static fromJsonString(Z,$){return new yX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(yX,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",l8]}};mX=class mX extends M{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new mX().fromBinary(Z,$)}static fromJson(Z,$){return new mX().fromJson(Z,$)}static fromJsonString(Z,$){return new mX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(mX,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",k8]}};jX=class jX extends M{constructor(Z){super();this.url="",this.uuid="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new jX().fromBinary(Z,$)}static fromJson(Z,$){return new jX().fromJson(Z,$)}static fromJsonString(Z,$){return new jX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(jX,Z,$)}static $(){return["SelectedExternalLink|1 url 9|2 uuid 9|3 pdf_content 9?|4 is_pdf 8?|5 filename 9?|6 blob_id 12?"]}};_X=class _X extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new _X().fromBinary(Z,$)}static fromJson(Z,$){return new _X().fromJson(Z,$)}static fromJsonString(Z,$){return new _X().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(_X,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",v8]}};SX=class SX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(SX,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};gX=class gX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new gX().fromBinary(Z,$)}static fromJson(Z,$){return new gX().fromJson(Z,$)}static fromJsonString(Z,$){return new gX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(gX,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};bX=class bX extends M{constructor(Z){super();this.sha="",this.message="",this.diff="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new bX().fromBinary(Z,$)}static fromJson(Z,$){return new bX().fromJson(Z,$)}static fromJsonString(Z,$){return new bX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(bX,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};dX=class dX extends M{constructor(Z){super();this.number=0,this.url="",this.folderPath="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new dX().fromBinary(Z,$)}static fromJson(Z,$){return new dX().fromJson(Z,$)}static fromJsonString(Z,$){return new dX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(dX,Z,$)}static $(){return["SelectedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9|5 summary_json 9?|6 description 9?|7 blob_id 12?"]}};cX=class cX extends M{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new cX().fromBinary(Z,$)}static fromJson(Z,$){return new cX().fromJson(Z,$)}static fromJsonString(Z,$){return new cX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(cX,Z,$)}static $(){return["SelectedGitPRDiffSelection|1 pr_url 9|2 file_path 9|3 start_line 5|4 end_line 5|5 diff_content 9?|6 blob_id 12?"]}};uX=class uX extends M{constructor(Z){super();this.pluginId="",this.capabilityType=cF.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new uX().fromBinary(Z,$)}static fromJson(Z,$){return new uX().fromJson(Z,$)}static fromJsonString(Z,$){return new uX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(uX,Z,$)}static $(){return["SelectedPluginCapabilityRef|1 plugin_id 9|2 capability_type #0|3 source_path 9|4 snapshot_token 9|5 resolved_commit_sha 9?",cF]}};lX=class lX extends M{constructor(Z){super();this.name="",this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new lX().fromBinary(Z,$)}static fromJson(Z,$){return new lX().fromJson(Z,$)}static fromJsonString(Z,$){return new lX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(lX,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",uX]}};pX=class pX extends M{constructor(Z){super();this.docId="",this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new pX().fromBinary(Z,$)}static fromJson(Z,$){return new pX().fromJson(Z,$)}static fromJsonString(Z,$){return new pX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(pX,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};iX=class iX extends M{constructor(Z){super();this.agentId="",this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new iX().fromBinary(Z,$)}static fromJson(Z,$){return new iX().fromJson(Z,$)}static fromJsonString(Z,$){return new iX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(iX,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};nX=class nX extends M{constructor(Z){super();this.name="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new nX().fromBinary(Z,$)}static fromJson(Z,$){return new nX().fromJson(Z,$)}static fromJsonString(Z,$){return new nX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(nX,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};aX=class aX extends M{constructor(Z){super();this.recentAgents=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(aX,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",nX]}};rX=class rX extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(rX,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};sX=class sX extends M{constructor(Z){super();this.callFrames=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(sX,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",rX]}};tX=class tX extends M{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(tX,Z,$)}static $(){return["SelectedConsoleLog|1 message 9|2 timestamp 1|3 level 9|4 client_name 9|5 session_id 9|6 stack_trace #0?|7 object_data_json 9?",sX]}};oX=class oX extends M{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(oX,Z,$)}static $(){return["SelectedUIElement|1 element 9|2 xpath 9|3 text_content 9|4 extra 9|5 component 9?|6 component_props_json 9?"]}};eX=class eX extends M{constructor(Z){super();this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(eX,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};Zz=class Zz extends M{constructor(Z){super();this.browserId="",this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Zz,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};$z=class $z extends M{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals($z,Z,$)}static $(){return["SelectedAgenticGitActionCommitParams|1 files_to_commit 9*|2 files_to_exclude_from_commit 9*|3 should_stage_all_changes 8|4 create_pr_draft 8?|5 files_to_commit_with_status #0*|6 files_to_exclude_from_commit_with_status #0*",Yz]}};Jz=class Jz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Jz,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};Yz=class Yz extends M{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Yz,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};Xz=class Xz extends M{constructor(Z){super();this.filesToPush=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Xz,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};zz=class zz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(zz,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};Kz=class Kz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Kz,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};Hz=class Hz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Hz,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};Qz=class Qz extends M{constructor(Z){super();this.remoteBranch="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Qz,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};qz=class qz extends M{constructor(Z){super();this.params={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(qz,Z,$)}static $(){return["SelectedAgenticGitAction|2 commit_params #0 params|6 commit_and_push_params #0 params|3 push_params #1 params|7 create_pr_params #1 params|8 create_pr_with_changes_params #0 params|4 fix_merge_conflicts_params #2 params|11 babysit_pr_in_cloud_params #3 params|14 apply_locally_params #4 params|15 checkout_branch_params #4 params|12 create_branch_and_commit_params #0 params|13 create_branch_commit_and_push_params #0 params|16 update_branch_params #5 params|17 create_branch_params #6 params|5 branch_context #7?|9 path_to_template_file 9?|10 path_to_template_dir 9?",$z,Xz,zz,Kz,Qz,Hz,Jz,Wz]}};Wz=class Wz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Wz,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};d$=class d$ extends M{constructor(Z){super();this.selectedImages=[],this.extraContext=[],this.extraContextEntries=[],this.files=[],this.codeSelections=[],this.terminals=[],this.terminalSelections=[],this.folders=[],this.externalLinks=[],this.cursorRules=[],this.cursorCommands=[],this.documentations=[],this.uiElements=[],this.consoleLogs=[],this.gitCommits=[],this.pastChats=[],this.gitPrDiffSelections=[],this.selectedPullRequests=[],this.selectedSubagents=[],this.selectedVideos=[],this.selectedBrowsers=[],this.selectedDocuments=[],this.selectedSkills=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new d$().fromBinary(Z,$)}static fromJson(Z,$){return new d$().fromJson(Z,$)}static fromJsonString(Z,$){return new d$().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(d$,Z,$)}static $(){return["SelectedContext|1 selected_images #0*|2 invocation_context #1?|3 extra_context 9*|16 extra_context_entries #2*|4 files #3*|5 code_selections #4*|6 terminals #5*|7 terminal_selections #6*|8 folders #7*|9 external_links #8*|10 cursor_rules #9*|18 git_diff #10?|11 git_diff_from_branch_to_main #11?|12 cursor_commands #12*|13 documentations #13*|14 ui_elements #14*|15 console_logs #15*|17 git_commits #16*|19 past_chats #17*|20 git_pr_diff_selections #18*|21 selected_pull_requests #19*|22 selected_subagents #20*|23 selected_videos #21*|24 selected_browsers #22*|25 selected_documents #23*|26 selected_skills #24*|27 recent_agents_context #25?|34 selected_agentic_git_action #26?",fX,Nz,vX,CX,TX,RX,yX,mX,jX,_X,SX,gX,lX,pX,oX,tX,bX,iX,cX,dX,eX,MX,Zz,VX,g$,aX,qz]}};Nz=class Nz extends M{constructor(Z){super();this.data={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Nz,Z,$)}static $(){return["InvocationContext|1 slack_thread #0 data|2 github_pr #1 data|3 ide_state #2 data|4 microsoft_teams_thread #3 data|10 blob_id 12 data",Bz,Gz,Lz,Fz]}};Bz=class Bz extends M{constructor(Z){super();this.thread="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Bz,Z,$)}static $(){return["InvocationContext.SlackThread|1 thread 9|2 channel_name 9?|3 channel_purpose 9?|4 channel_topic 9?|5 sender_name 9?|6 sender_id 9?|7 sender_type 9?|8 is_directly_addressed 8?"]}};Fz=class Fz extends M{constructor(Z){super();this.thread="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Fz,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};Gz=class Gz extends M{constructor(Z){super();this.title="",this.description="",this.comments="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Gz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?"]}};Lz=class Lz extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Lz,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",wz,Uz]}};wz=class wz extends M{constructor(Z){super();this.path="",this.totalLines=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(wz,Z,$)}static $(){return["InvocationContext.IdeState.File|1 path 9|2 relative_path 9?|3 cursor_position #0?|4 total_lines 5|5 active_command 9?",Dz]}};Dz=class Dz extends M{constructor(Z){super();this.line=0,this.text="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Dz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};Uz=class Uz extends M{constructor(Z){super();this.number=0,this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Uz,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as bs,proto3 as F,protoInt64 as hH}from"@bufbuild/protobuf";var a$="agent.v1.",E,nK,pF,iF,nF,Ch,Th,Iz,c$,Oz,kz,fz,Ez,Pz,Vz,xz,Mz,hz,Az,vz,Cz,Tz,Rz,u$,yz,mz,jz,_z,Sz,j8,gz,bz,dz,cz,uz,lz,pz,iz,nz,az,rz,sz,tz,H6,oz,ez,ZK,Q6,q6,_8,$K,l$,JK,p$,W6,YK,XK,N6,zK,B6,KK,HK,QK,qK,WK,NK,i$,BK,FK,GK,LK,F6,G6,n$,L6,wK,DK,m0,UK,IK;var AH=U(()=>{_N();aN();tN();oN();$B();XB();PH();HB();qB();NB();BB();wB();DB();UB();IB();fB();EB();xB();MB();hB();TB();mB();SB();gB();bB();dB();cB();uB();iB();nB();sB();tB();oB();eB();ZF();$F();JF();YF();KF();qF();WF();NF();BF();FF();GF();wF();DF();UF();IF();OF();kF();fF();EF();hF();vF();TF();RF();jF();_F();SF();cN();lF();k();E=class E extends B{static get runtime(){return N(this,"runtime",F)}static $p(){return a$}};nK=w(F,a$,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[6,"PROJECT"],[7,"MULTITASK"],[8,"CUSTOM"]],1),pF=w(F,a$,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),iF=w(F,a$,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"]],1),nF=w(F,a$,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),Ch=w(F,a$,"SimulatedMsgReason",[[0,"UNSPECIFIED"],[1,"PLAN_EXECUTION"],[2,"COMMIT_REMINDER"],[3,"BACKGROUND_TASK_COMPLETION"],[4,"DIFF_TAB_COMMIT"],[5,"DIFF_TAB_COMMIT_AND_PUSH"],[6,"DIFF_TAB_PUSH"],[7,"DIFF_TAB_CREATE_PR"],[8,"DIFF_TAB_FIX_MERGE_CONFLICTS"],[9,"USER_SENT_TO_SUBAGENT"],[10,"USER_INTERRUPTED_SUBAGENT"],[11,"USER_QUEUED_TO_SUBAGENT"],[12,"BABYSIT_PR_IN_CLOUD"],[13,"CI_PANEL_INVESTIGATE_FAILURE"],[14,"MULTITASK"],[15,"BUILD_IN_PARALLEL"],[16,"MULTITASK_SPLIT_PRS"],[17,"APPLY_LOCALLY"],[18,"CHECKOUT_BRANCH"],[19,"DIFF_TAB_UPDATE_BRANCH"],[20,"PR_TAB_BUGBOT_FIX"],[22,"RUN_BUGBOT_REVIEW"],[23,"RUN_SECURITY_REVIEW"],[24,"FSD_APPLY_FINDING"],[25,"FSD_UNDO_FINDING"],[26,"FSD_START"],[27,"FSD_PR_INTERRUPT"],[28,"SUBSCRIPTION"],[29,"DIFF_TAB_CREATE_BRANCH"],[30,"AGENT_STORE_CONFLICT"],[31,"GOAL_CONTINUATION"],[32,"PROJECT_KICKOFF"],[33,"MARKDOWN_PROMPT_BUTTON"],[34,"USER_QUICK_ACTION"],[35,"INTERACTION_RESPONSE"]],1),Th=w(F,a$,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"]],1);Iz=class Iz extends E{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=RQ.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=V6.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Iz().fromBinary(Z,$)}static fromJson(Z,$){return new Iz().fromJson(Z,$)}static fromJsonString(Z,$){return new Iz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Iz,Z,$)}static $(){return["TaskArgs|1 description 9|2 prompt 9|3 subagent_type #0|4 model 9?|5 resume 9?|6 agent_id 9?|7 attachments 9*|8 mode #1|9 responding_to_message_ids 9*|10 environment #2|11 machine #3?",u8,RQ,V6,c$]}};c$=class c$ extends E{constructor(Z){super();this.machine={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new c$().fromBinary(Z,$)}static fromJson(Z,$){return new c$().fromJson(Z,$)}static fromJsonString(Z,$){return new c$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(c$,Z,$)}static $(){return["TargetMachine|1 same_machine #0 machine|2 new_cloud_vm #1 machine|3 self_hosted_worker #2 machine|4 self_hosted_pool #3 machine",Oz,kz,fz,Ez]}};Oz=class Oz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Oz().fromBinary(Z,$)}static fromJson(Z,$){return new Oz().fromJson(Z,$)}static fromJsonString(Z,$){return new Oz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Oz,Z,$)}static $(){return["SameMachineTarget"]}};kz=class kz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new kz().fromBinary(Z,$)}static fromJson(Z,$){return new kz().fromJson(Z,$)}static fromJsonString(Z,$){return new kz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(kz,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};fz=class fz extends E{constructor(Z){super();this.workerId="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new fz().fromBinary(Z,$)}static fromJson(Z,$){return new fz().fromJson(Z,$)}static fromJsonString(Z,$){return new fz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(fz,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};Ez=class Ez extends E{constructor(Z){super();this.labels=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Ez().fromBinary(Z,$)}static fromJson(Z,$){return new Ez().fromJson(Z,$)}static fromJsonString(Z,$){return new Ez().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Ez,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",Pz]}};Pz=class Pz extends E{constructor(Z){super();this.key="",this.value="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Pz().fromBinary(Z,$)}static fromJson(Z,$){return new Pz().fromJson(Z,$)}static fromJsonString(Z,$){return new Pz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Pz,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};Vz=class Vz extends E{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=TQ.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Vz().fromBinary(Z,$)}static fromJson(Z,$){return new Vz().fromJson(Z,$)}static fromJsonString(Z,$){return new Vz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Vz,Z,$)}static $(){return["TaskSuccess|1 conversation_steps #0*|2 agent_id 9?|3 is_background 8|4 duration_ms 4?|5 result_suffix 9?|6 background_reason #1|7 transcript_path 9?",j8,TQ]}};xz=class xz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new xz().fromBinary(Z,$)}static fromJson(Z,$){return new xz().fromJson(Z,$)}static fromJsonString(Z,$){return new xz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(xz,Z,$)}static $(){return["TaskError|1 error 9"]}};Mz=class Mz extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Mz().fromBinary(Z,$)}static fromJson(Z,$){return new Mz().fromJson(Z,$)}static fromJsonString(Z,$){return new Mz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Mz,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",Vz,xz]}};hz=class hz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new hz().fromBinary(Z,$)}static fromJson(Z,$){return new hz().fromJson(Z,$)}static fromJsonString(Z,$){return new hz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(hz,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",Iz,Mz]}};Az=class Az extends E{constructor(Z){super();this.path="",this.branchName="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Az().fromBinary(Z,$)}static fromJson(Z,$){return new Az().fromJson(Z,$)}static fromJsonString(Z,$){return new Az().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Az,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};vz=class vz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new vz().fromBinary(Z,$)}static fromJson(Z,$){return new vz().fromJson(Z,$)}static fromJsonString(Z,$){return new vz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(vz,Z,$)}static $(){return["SetActiveBranchSuccess"]}};Cz=class Cz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Cz().fromBinary(Z,$)}static fromJson(Z,$){return new Cz().fromJson(Z,$)}static fromJsonString(Z,$){return new Cz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Cz,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};Tz=class Tz extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Tz().fromBinary(Z,$)}static fromJson(Z,$){return new Tz().fromJson(Z,$)}static fromJsonString(Z,$){return new Tz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Tz,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",vz,Cz]}};Rz=class Rz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Rz().fromBinary(Z,$)}static fromJson(Z,$){return new Rz().fromJson(Z,$)}static fromJsonString(Z,$){return new Rz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Rz,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",Az,Tz]}};u$=class u$ extends E{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new u$().fromBinary(Z,$)}static fromJson(Z,$){return new u$().fromJson(Z,$)}static fromJsonString(Z,$){return new u$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(u$,Z,$)}static $(){return["ToolCall|1 shell_tool_call #0 tool|3 delete_tool_call #1 tool|4 glob_tool_call #2 tool|5 grep_tool_call #3 tool|8 read_tool_call #4 tool|9 update_todos_tool_call #5 tool|10 read_todos_tool_call #6 tool|12 edit_tool_call #7 tool|13 ls_tool_call #8 tool|14 read_lints_tool_call #9 tool|15 mcp_tool_call #10 tool|16 sem_search_tool_call #11 tool|17 create_plan_tool_call #12 tool|18 web_search_tool_call #13 tool|19 task_tool_call #14 tool|20 list_mcp_resources_tool_call #15 tool|21 read_mcp_resource_tool_call #16 tool|22 apply_agent_diff_tool_call #17 tool|23 ask_question_tool_call #18 tool|24 fetch_tool_call #19 tool|25 switch_mode_tool_call #20 tool|28 generate_image_tool_call #21 tool|29 record_screen_tool_call #22 tool|30 computer_use_tool_call #23 tool|31 write_shell_stdin_tool_call #24 tool|32 reflect_tool_call #25 tool|33 setup_vm_environment_tool_call #26 tool|34 truncated_tool_call #27 tool|35 start_grind_execution_tool_call #28 tool|36 start_grind_planning_tool_call #29 tool|37 web_fetch_tool_call #30 tool|38 report_bugfix_results_tool_call #31 tool|39 ai_attribution_tool_call #32 tool|40 pr_management_tool_call #33 tool|41 mcp_auth_tool_call #34 tool|42 await_tool_call #35 tool|43 blame_by_file_path_tool_call #36 tool|44 get_mcp_tools_tool_call #37 tool|45 report_bug_tool_call #38 tool|46 set_active_branch_tool_call #39 tool|48 communicate_update_tool_call #40 tool|49 send_final_summary_tool_call #41 tool|50 update_pr_code_tour_tool_call #42 tool|51 replace_env_tool_call #43 tool|52 edit_pr_labels_tool_call #44 tool|53 record_ci_investigation_findings_tool_call #45 tool|55 send_message_tool_call #46 tool|56 fetch_cloud_agent_data_tool_call #47 tool|58 send_to_user_tool_call #48 tool|61 pi_read_tool_call #49 tool|62 pi_bash_tool_call #50 tool|63 pi_edit_tool_call #51 tool|64 pi_write_tool_call #52 tool|65 pi_grep_tool_call #53 tool|66 pi_find_tool_call #54 tool|67 pi_ls_tool_call #55 tool|68 connect_scm_tool_call #56 tool|69 search_conversations_tool_call #57 tool|70 create_goal_tool_call #58 tool|71 update_goal_tool_call #59 tool|73 get_agent_status_tool_call #60 tool|74 send_to_agent_tool_call #61 tool|75 read_agent_transcript_tool_call #62 tool|76 create_agent_tool_call #63 tool|77 stop_agent_tool_call #64 tool|78 get_pr_code_tour_tool_call #65 tool|79 write_canvas_tool_call #66 tool|80 read_canvas_tool_call #67 tool|81 generate_video_tool_call #68 tool|82 x_search_tool_call #69 tool|54 hook_additional_contexts #70*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",A6,T6,R6,j6,S6,b6,d6,c6,p6,i6,$Z,HZ,QZ,NZ,hz,FZ,GZ,LZ,UZ,fZ,EZ,VZ,vZ,CZ,yZ,mZ,_Z,Sz,SZ,gZ,bZ,uZ,pZ,iZ,nZ,tZ,oZ,eZ,Z$,Rz,$$,J$,Y$,z$,K$,H$,Q$,q$,W$,N$,B$,F$,G$,w$,D$,U$,I$,E$,V$,x$,h$,A$,v$,C$,T$,R$,m$,j$,_$,S$,i8]}};yz=class yz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new yz().fromBinary(Z,$)}static fromJson(Z,$){return new yz().fromJson(Z,$)}static fromJsonString(Z,$){return new yz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(yz,Z,$)}static $(){return["TruncatedToolCallArgs"]}};mz=class mz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new mz().fromBinary(Z,$)}static fromJson(Z,$){return new mz().fromJson(Z,$)}static fromJsonString(Z,$){return new mz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(mz,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};jz=class jz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new jz().fromBinary(Z,$)}static fromJson(Z,$){return new jz().fromJson(Z,$)}static fromJsonString(Z,$){return new jz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(jz,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};_z=class _z extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _z().fromBinary(Z,$)}static fromJson(Z,$){return new _z().fromJson(Z,$)}static fromJsonString(Z,$){return new _z().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_z,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",mz,jz]}};Sz=class Sz extends E{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Sz().fromBinary(Z,$)}static fromJson(Z,$){return new Sz().fromJson(Z,$)}static fromJsonString(Z,$){return new Sz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Sz,Z,$)}static $(){return["TruncatedToolCall|1 original_step_blob_id 12|2 args #0|3 result #1|4 original_step_size_bytes 13|5 preview #2",yz,_z,u$]}};j8=class j8 extends E{constructor(Z){super();this.message={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new j8().fromBinary(Z,$)}static fromJson(Z,$){return new j8().fromJson(Z,$)}static fromJsonString(Z,$){return new j8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(j8,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",ez,u$,ZK]}};gz=class gz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new gz().fromBinary(Z,$)}static fromJson(Z,$){return new gz().fromJson(Z,$)}static fromJsonString(Z,$){return new gz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(gz,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?"]}};bz=class bz extends E{constructor(Z){super();this.parentToolCallId="",this.environment=V6.UNSPECIFIED,this.status=pF.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new bz().fromBinary(Z,$)}static fromJson(Z,$){return new bz().fromJson(Z,$)}static fromJsonString(Z,$){return new bz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(bz,Z,$)}static $(){return["SubagentRunState|1 parent_tool_call_id 9|2 subagent_id 9?|3 environment #0|4 status #1|5 title 9?|6 detail 9?|7 transcript_path 9?|8 output_path 9?|9 completed_timestamp_ms 4?|10 completion_reason #2?",V6,pF,jN]}};dz=class dz extends E{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=iF.UNSPECIFIED,this.backgrounded=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new dz().fromBinary(Z,$)}static fromJson(Z,$){return new dz().fromJson(Z,$)}static fromJsonString(Z,$){return new dz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(dz,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",iF]}};cz=class cz extends E{constructor(Z){super();this.id="",this.label="",this.source=nF.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new cz().fromBinary(Z,$)}static fromJson(Z,$){return new cz().fromJson(Z,$)}static fromJsonString(Z,$){return new cz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(cz,Z,$)}static $(){return["SubmittedCustomMode|1 id 9|2 label 9|5 source #0|6 source_path 9?|7 source_hash 9?|10 managed_skill_id 9?|11 plugin_id 9?|12 plugin_snapshot_token 9?",nF]}};uz=class uz extends E{constructor(Z){super();this.id="",this.label="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new uz().fromBinary(Z,$)}static fromJson(Z,$){return new uz().fromJson(Z,$)}static fromJsonString(Z,$){return new uz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(uz,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};lz=class lz extends E{constructor(Z){super();this.nextMode=nK.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new lz().fromBinary(Z,$)}static fromJson(Z,$){return new lz().fromJson(Z,$)}static fromJsonString(Z,$){return new lz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(lz,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",nK,uz]}};pz=class pz extends E{constructor(Z){super();this.intent={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new pz().fromBinary(Z,$)}static fromJson(Z,$){return new pz().fromJson(Z,$)}static fromJsonString(Z,$){return new pz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(pz,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",cz,lz]}};iz=class iz extends E{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new iz().fromBinary(Z,$)}static fromJson(Z,$){return new iz().fromJson(Z,$)}static fromJsonString(Z,$){return new iz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(iz,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",UK]}};nz=class nz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new nz().fromBinary(Z,$)}static fromJson(Z,$){return new nz().fromJson(Z,$)}static fromJsonString(Z,$){return new nz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(nz,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};az=class az extends E{constructor(Z){super();this.planId="",this.planTitle="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new az().fromBinary(Z,$)}static fromJson(Z,$){return new az().fromJson(Z,$)}static fromJsonString(Z,$){return new az().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(az,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};rz=class rz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new rz().fromBinary(Z,$)}static fromJson(Z,$){return new rz().fromJson(Z,$)}static fromJsonString(Z,$){return new rz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(rz,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",sz,tz]}};sz=class sz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new sz().fromBinary(Z,$)}static fromJson(Z,$){return new sz().fromJson(Z,$)}static fromJsonString(Z,$){return new sz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(sz,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};tz=class tz extends E{constructor(Z){super();this.storeDir="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new tz().fromBinary(Z,$)}static fromJson(Z,$){return new tz().fromJson(Z,$)}static fromJsonString(Z,$){return new tz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(tz,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};H6=class H6 extends E{constructor(Z){super();this.text="",this.messageId="",this.mode=nK.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new H6().fromBinary(Z,$)}static fromJson(Z,$){return new H6().fromJson(Z,$)}static fromJsonString(Z,$){return new H6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(H6,Z,$)}static $(){return["UserMessage|1 text 9|2 message_id 9|3 selected_context #0?|4 mode #1|5 is_simulated_msg 8?|6 best_of_n_group_id 9?|7 try_use_best_of_n_promotion 8?|8 rich_text 9?|9 simulated_msg_reason #2?|10 conversation_state_blob_id 12|11 subagent_system_reminder 9?|13 triggering_user_info #3?|14 execute_plan_info #4?|15 simulated_message_metadata #5?|16 prompt_reference_id 9?|17 thread_id 9?|18 text_blob_id 12?|19 rich_text_blob_id 12?|21 hook_additional_contexts #6*|22 custom_mode_intent #7?|23 project_details #8?|24 turn_steer 8?|25 started_at_ms 4?|26 completed_at_ms 4?|27 sent_by_agent_id 9?|28 sent_by_voice_call 8?",d$,nK,Ch,gz,az,oz,i8,pz,rz]}};oz=class oz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new oz().fromBinary(Z,$)}static fromJson(Z,$){return new oz().fromJson(Z,$)}static fromJsonString(Z,$){return new oz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(oz,Z,$)}static $(){return["UserMessage.SimulatedMessageMetadata|1 title 9?|2 task_id 9?|3 fsd_finding_action 9?|4 url 9?|5 subscription_source #0?|6 subscription_event_display #1?|7 interaction_response #2?",Th,nz,iz]}};ez=class ez extends E{constructor(Z){super();this.text="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new ez().fromBinary(Z,$)}static fromJson(Z,$){return new ez().fromJson(Z,$)}static fromJsonString(Z,$){return new ez().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(ez,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};ZK=class ZK extends E{constructor(Z){super();this.text="",this.durationMs=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZK().fromBinary(Z,$)}static fromJson(Z,$){return new ZK().fromJson(Z,$)}static fromJsonString(Z,$){return new ZK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(ZK,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};Q6=class Q6 extends E{constructor(Z){super();this.command="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q6().fromBinary(Z,$)}static fromJson(Z,$){return new Q6().fromJson(Z,$)}static fromJsonString(Z,$){return new Q6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Q6,Z,$)}static $(){return["ShellCommand|1 command 9"]}};q6=class q6 extends E{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new q6().fromBinary(Z,$)}static fromJson(Z,$){return new q6().fromJson(Z,$)}static fromJsonString(Z,$){return new q6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(q6,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};_8=class _8 extends E{constructor(Z){super();this.turn={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _8().fromBinary(Z,$)}static fromJson(Z,$){return new _8().fromJson(Z,$)}static fromJsonString(Z,$){return new _8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",W6,N6]}};$K=class $K extends E{constructor(Z){super();this.plan="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new $K().fromBinary(Z,$)}static fromJson(Z,$){return new $K().fromJson(Z,$)}static fromJsonString(Z,$){return new $K().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals($K,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};l$=class l$ extends E{constructor(Z){super();this.id="",this.path="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new l$().fromBinary(Z,$)}static fromJson(Z,$){return new l$().fromJson(Z,$)}static fromJsonString(Z,$){return new l$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(l$,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};JK=class JK extends E{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=M$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new JK().fromBinary(Z,$)}static fromJson(Z,$){return new JK().fromJson(Z,$)}static fromJsonString(Z,$){return new JK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(JK,Z,$)}static $(){return["GoalState|1 conversation_id 9|2 goal_id 9|3 objective 9|4 status #0|5 idle_continuations_without_tool_calls 13|6 active_duration_ms 4?|7 last_accrued_at_ms 4?|8 continuation_count 13|9 agent_session_id 9?",M$]}};p$=class p$ extends E{constructor(Z){super();this.turn={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new p$().fromBinary(Z,$)}static fromJson(Z,$){return new p$().fromJson(Z,$)}static fromJsonString(Z,$){return new p$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(p$,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",YK,zK]}};W6=class W6 extends E{constructor(Z){super();this.steps=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new W6().fromBinary(Z,$)}static fromJson(Z,$){return new W6().fromJson(Z,$)}static fromJsonString(Z,$){return new W6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(W6,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",H6,j8]}};YK=class YK extends E{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new YK().fromBinary(Z,$)}static fromJson(Z,$){return new YK().fromJson(Z,$)}static fromJsonString(Z,$){return new YK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(YK,Z,$)}static $(){return["AgentConversationTurnStructure|1 user_message 12|2 steps 12*|3 request_id 9?|4 encrypted_model 9?|5 dynamic_tool_count 13?|6 send_message_step_indices 13*|7 routed_model_display_name 9?|8 subagent_dispatch_steps #0*|9 dynamic_tool_names 9*|10 user_message_id 9?|11 long_reasoning_reminder #1?|12 long_reasoning_reminder_exposure_logged 8",dz,XK]}};XK=class XK extends E{constructor(Z){super();this.remainingDelayCalls=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new XK().fromBinary(Z,$)}static fromJson(Z,$){return new XK().fromJson(Z,$)}static fromJsonString(Z,$){return new XK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(XK,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};N6=class N6 extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new N6().fromBinary(Z,$)}static fromJson(Z,$){return new N6().fromJson(Z,$)}static fromJsonString(Z,$){return new N6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(N6,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",Q6,q6]}};zK=class zK extends E{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),F.util.initPartial(Z,this)}static fromBinary(Z,$){return new zK().fromBinary(Z,$)}static fromJson(Z,$){return new zK().fromJson(Z,$)}static fromJsonString(Z,$){return new zK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(zK,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};B6=class B6 extends E{constructor(Z){super();this.summary="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new B6().fromBinary(Z,$)}static fromJson(Z,$){return new B6().fromJson(Z,$)}static fromJsonString(Z,$){return new B6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(B6,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};KK=class KK extends E{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),F.util.initPartial(Z,this)}static fromBinary(Z,$){return new KK().fromBinary(Z,$)}static fromJson(Z,$){return new KK().fromJson(Z,$)}static fromJsonString(Z,$){return new KK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(KK,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};HK=class HK extends E{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new HK().fromBinary(Z,$)}static fromJson(Z,$){return new HK().fromJson(Z,$)}static fromJsonString(Z,$){return new HK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(HK,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};QK=class QK extends E{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new QK().fromBinary(Z,$)}static fromJson(Z,$){return new QK().fromJson(Z,$)}static fromJsonString(Z,$){return new QK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(QK,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",HK]}};qK=class qK extends E{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new qK().fromBinary(Z,$)}static fromJson(Z,$){return new qK().fromJson(Z,$)}static fromJsonString(Z,$){return new qK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(qK,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};WK=class WK extends E{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new WK().fromBinary(Z,$)}static fromJson(Z,$){return new WK().fromJson(Z,$)}static fromJsonString(Z,$){return new WK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(WK,Z,$)}static $(){return["PromptContextNode|1 id 9|2 parent_id 9?|3 kind 9|4 label 9|5 category_id 9|6 estimated_tokens 13|7 character_count 13|9 content_available 8|11 source #0?|12 inline_content 9?",qK]}};NK=class NK extends E{constructor(Z){super();this.schemaVersion=0,this.nodes=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new NK().fromBinary(Z,$)}static fromJson(Z,$){return new NK().fromJson(Z,$)}static fromJsonString(Z,$){return new NK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(NK,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",WK]}};i$=class i$ extends E{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new i$().fromBinary(Z,$)}static fromJson(Z,$){return new i$().fromJson(Z,$)}static fromJsonString(Z,$){return new i$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(i$,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?|5 prompt_context_usage_snapshot_blob_id 12?",QK,NK]}};BK=class BK extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new BK().fromBinary(Z,$)}static fromJson(Z,$){return new BK().fromJson(Z,$)}static fromJsonString(Z,$){return new BK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(BK,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};FK=class FK extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new FK().fromBinary(Z,$)}static fromJson(Z,$){return new FK().fromJson(Z,$)}static fromJsonString(Z,$){return new FK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(FK,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};GK=class GK extends E{constructor(Z){super();this.durationMs=hH.zero,this.timestampMs=hH.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new GK().fromBinary(Z,$)}static fromJson(Z,$){return new GK().fromJson(Z,$)}static fromJsonString(Z,$){return new GK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(GK,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};LK=class LK extends E{constructor(Z){super();this.completedTurnCountCapped=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new LK().fromBinary(Z,$)}static fromJson(Z,$){return new LK().fromJson(Z,$)}static fromJsonString(Z,$){return new LK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(LK,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};F6=class F6 extends E{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new F6().fromBinary(Z,$)}static fromJson(Z,$){return new F6().fromJson(Z,$)}static fromJsonString(Z,$){return new F6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(F6,Z,$)}static $(){return["ConversationState|1 root_prompt_messages_json 9*|8 turns #0*|3 todos #1*|4 pending_tool_calls 9*|5 token_details #2|6 summary #3?|7 plan #4?|9 summary_archive #5?|10 file_states 9,#6|11 summary_archives #5*|12 plans 9,#7|13 communicate_update_history #8*|14 communicate_update_final_summary 9?|15 communicate_update_completed_subtitle 9?|16 communicate_update_states_by_parent_tool_call_id 9,#9",_8,W0,i$,B6,$K,KK,BK,l$,G6,n$]}};G6=class G6 extends E{constructor(Z){super();this.step="",this.messageIndex=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new G6().fromBinary(Z,$)}static fromJson(Z,$){return new G6().fromJson(Z,$)}static fromJsonString(Z,$){return new G6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(G6,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};n$=class n$ extends E{constructor(Z){super();this.history=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new n$().fromBinary(Z,$)}static fromJson(Z,$){return new n$().fromJson(Z,$)}static fromJsonString(Z,$){return new n$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(n$,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",G6]}};L6=class L6 extends E{constructor(Z){super();this.createdTimestampMs=hH.zero,this.lastUsedTimestampMs=hH.zero,this.environment=V6.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new L6().fromBinary(Z,$)}static fromJson(Z,$){return new L6().fromJson(Z,$)}static fromJsonString(Z,$){return new L6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(L6,Z,$)}static $(){return["SubagentPersistedState|1 conversation_state #0|2 created_timestamp_ms 4|3 last_used_timestamp_ms 4|4 subagent_type #1|5 model_id 9?|6 environment #2|7 cloud_subagent #3?|8 first_class_bc_id 9?|9 cloud_requested_environment_build_id 9?|10 machine #4?",m0,u8,V6,wK,c$]}};wK=class wK extends E{constructor(Z){super();this.bcId="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new wK().fromBinary(Z,$)}static fromJson(Z,$){return new wK().fromJson(Z,$)}static fromJsonString(Z,$){return new wK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(wK,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};DK=class DK extends E{constructor(Z){super();this.repoPath="",this.branchName="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new DK().fromBinary(Z,$)}static fromJson(Z,$){return new DK().fromJson(Z,$)}static fromJsonString(Z,$){return new DK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(DK,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};m0=class m0 extends E{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.previousWorkspaceUris=[],this.fileStates={},this.fileStatesV2={},this.summaryArchives=[],this.turnTimings=[],this.subagentStates={},this.selfSummaryCount=0,this.readPaths=[],this.plans={},this.trackedGitRepoBranches=[],this.communicateUpdateHistory=[],this.subagentThreads={},this.communicateUpdateStatesByParentToolCallId={},this.subagentRunsByParentToolCallId={},this.subagentStateRefs={},this.completedAskQuestionToolCallIds=[],this.durableSkillBlocks=[],this.recentUserMessageIds=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new m0().fromBinary(Z,$)}static fromJson(Z,$){return new m0().fromJson(Z,$)}static fromJsonString(Z,$){return new m0().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(m0,Z,$)}static $(){return["ConversationStateStructure|1 root_prompt_messages_json 12*|8 turns 12*|3 todos 12*|4 pending_tool_calls 9*|5 token_details #0|6 summary 12?|7 plan 12?|9 previous_workspace_uris 9*|10 mode #1?|11 summary_archive 12?|12 file_states 9,12|15 file_states_v2 9,#2|13 summary_archives 12*|14 turn_timings #3*|16 subagent_states 9,#4|17 self_summary_count 13|18 read_paths 9*|19 active_branch_name 9?|20 plans 9,#5|21 tracked_git_repo_branches #6*|22 agent_type 9?|23 communicate_update_history #7*|24 subagent_threads 9,9|25 communicate_update_final_summary 9?|28 communicate_update_completed_subtitle 9?|29 communicate_update_states_by_parent_tool_call_id 9,#8|30 subagent_runs_by_parent_tool_call_id 9,#9|26 conversation_started_timestamp_ms 4?|27 conversation_started_time_zone 9?|31 subagent_state_refs 9,12|32 goal_state #10?|33 is_root_project_conversation 8?|34 completed_ask_question_tool_call_ids 9*|35 durable_skill_blocks 9*|36 durable_custom_mode_id 9?|37 message_count_at_last_compaction 13?|38 recent_user_message_ids 9*|39 recent_user_message_ids_older_turn_count 13?|40 turn_telemetry #11?",i$,nK,FK,GK,L6,l$,DK,G6,n$,bz,JK,LK]}};UK=class UK extends E{constructor(Z){super();this.id=0,this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new UK().fromBinary(Z,$)}static fromJson(Z,$){return new UK().fromJson(Z,$)}static fromJsonString(Z,$){return new UK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(UK,Z,$)}static $(){return["InteractionResponse|1 id 13|2 web_search_request_response #0 result|3 ask_question_interaction_response #1 result|4 switch_mode_request_response #2 result|7 create_plan_request_response #3 result|8 setup_vm_environment_result #4 result|9 web_fetch_request_response #5 result|10 pr_management_result #6 result|11 mcp_auth_request_response #7 result|12 generate_image_request_response #8 result|13 replace_env_result #9 result|14 connect_scm_request_response #10 result",BZ,IK,PZ,WZ,o8,dZ,e8,aZ,xZ,$6,O$]}};IK=class IK extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new IK().fromBinary(Z,$)}static fromJson(Z,$){return new IK().fromJson(Z,$)}static fromJsonString(Z,$){return new IK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(IK,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",s8]}}});class OK{}var D=q((HG)=>{Object.defineProperty(HG,"__esModule",{value:!0});HG.createNotification=HG.nextNotification=HG.errorNotification=HG.COMPLETE_NOTIFICATION=HG.isObservable=HG.isArrayLike=HG.isPromise=HG.readableStreamLikeToAsyncGenerator=HG.isFunction=HG.getObservableInputType=HG.ObservableInputType=HG.subscribeToArray=HG.fromPromise=HG.fromArrayLike=HG.from=HG.reportUnhandledError=HG.Observable=HG.operate=HG.config=HG.Subscriber=HG.Subscription=HG.UnsubscriptionError=void 0;class aK extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
2
|
+
var JM=Object.create;var{getPrototypeOf:YM,defineProperty:TQ,getOwnPropertyNames:XM}=Object;var zM=Object.prototype.hasOwnProperty;var _N=(Z,$,J)=>{J=Z!=null?JM(YM(Z)):{};let Y=$||!Z||!Z.__esModule?TQ(J,"default",{value:Z,enumerable:!0}):J;for(let X of XM(Z))if(!zM.call(Y,X))TQ(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var P8=(Z,$)=>{for(var J in $)TQ(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var I=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as KM}from"@bufbuild/protobuf";function N(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function SN(Z,$,J){if(J.charAt(0)!=="#")return{kind:"scalar",T:Number(J)};let Y=$[Number(J.slice(1))];return typeof Y==="function"?{kind:"message",T:Y}:{kind:"enum",T:Z.getEnumType(Y)}}function HM(Z,$){let J=$[0].split("|"),Y=$.slice(1),X=[];for(let z=1;z<J.length;z++){let K=J[z].split(" "),Q=Number(K[0]),W=K[1],G=K[2],L=K[3],O=G.charAt(G.length-1);if(O==="?"||O==="*")L=O,G=G.slice(0,-1);let f=G.indexOf(",");if(f!==-1){X.push({no:Q,name:W,kind:"map",K:Number(G.slice(0,f)),V:SN(Z,Y,G.slice(f+1))});continue}let P=Object.assign({no:Q,name:W},SN(Z,Y,G));if(L==="?")P.opt=!0;else if(L==="*")P.repeated=!0;else if(L!==void 0)P.oneof=L;X.push(P)}return X}function QM(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function qM(Z,$){let J=(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,(X)=>"_"+X)).toLowerCase()+"_",Y=[];for(let X of $){if(!X.toLowerCase().startsWith(J))return $.slice();let z=X.slice(J.length);if(z===""||/^[0-9]/.test(z))return $.slice();Y.push(z)}return Y}function WM(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function w(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,Q;if(X===1){let L=WM(z);Q=Y.map((O)=>O[1]),K=Q.map((O)=>L+O)}else K=Y.map((L)=>L[1]),Q=X===void 0?qM(z,K):X;let W={},G=[];for(let L=0;L<Y.length;L++){let O=Y[L][0];W[Q[L]]=O,W[O]=Q[L],G.push({no:O,name:K[L]})}return Z.util.setEnumType(W,$+J,G),W}var B;var k=I(()=>{B=class B extends KM{static get typeName(){let Z=this;return N(Z,"typeName",Z.$p()+QM(Z.$()))}static get fields(){let Z=this,$=Z.$(),J=Z.runtime,Y=()=>HM(J,$);return N(Z,"fields",J.util.newFieldList(Y))}}});import{Message as Xl,proto3 as R}from"@bufbuild/protobuf";var cK="agent.v1.",P0,V8,RQ,gN,yQ,u6,K9,H9,Q9,q9,W9,N9,B9,F9,G9,L9,w9,D9;var bN=I(()=>{k();P0=class P0 extends B{static get runtime(){return N(this,"runtime",R)}static $p(){return cK}};V8=w(R,cK,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),RQ=w(R,cK,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),gN=w(R,cK,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"]],1),yQ=w(R,cK,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);u6=class u6 extends P0{constructor(Z){super();this.type={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new u6().fromBinary(Z,$)}static fromJson(Z,$){return new u6().fromJson(Z,$)}static fromJsonString(Z,$){return new u6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(u6,Z,$)}static $(){return["SubagentType|1 unspecified #0 type|2 computer_use #1 type|3 custom #2 type|4 explore #3 type|5 media_review #4 type|6 bash #5 type|7 browser_use #6 type|8 shell #7 type|9 vm_setup_helper #8 type|10 debug #9 type|11 cursor_guide #10 type|12 watch_video #11 type",K9,H9,D9,Q9,q9,W9,B9,N9,F9,G9,L9,w9]}};K9=class K9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new K9().fromBinary(Z,$)}static fromJson(Z,$){return new K9().fromJson(Z,$)}static fromJsonString(Z,$){return new K9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(K9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};H9=class H9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new H9().fromBinary(Z,$)}static fromJson(Z,$){return new H9().fromJson(Z,$)}static fromJsonString(Z,$){return new H9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(H9,Z,$)}static $(){return["SubagentTypeComputerUse"]}};Q9=class Q9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q9().fromBinary(Z,$)}static fromJson(Z,$){return new Q9().fromJson(Z,$)}static fromJsonString(Z,$){return new Q9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(Q9,Z,$)}static $(){return["SubagentTypeExplore"]}};q9=class q9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new q9().fromBinary(Z,$)}static fromJson(Z,$){return new q9().fromJson(Z,$)}static fromJsonString(Z,$){return new q9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(q9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};W9=class W9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new W9().fromBinary(Z,$)}static fromJson(Z,$){return new W9().fromJson(Z,$)}static fromJsonString(Z,$){return new W9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(W9,Z,$)}static $(){return["SubagentTypeBash"]}};N9=class N9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new N9().fromBinary(Z,$)}static fromJson(Z,$){return new N9().fromJson(Z,$)}static fromJsonString(Z,$){return new N9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(N9,Z,$)}static $(){return["SubagentTypeShell"]}};B9=class B9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new B9().fromBinary(Z,$)}static fromJson(Z,$){return new B9().fromJson(Z,$)}static fromJsonString(Z,$){return new B9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(B9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};F9=class F9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new F9().fromBinary(Z,$)}static fromJson(Z,$){return new F9().fromJson(Z,$)}static fromJsonString(Z,$){return new F9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(F9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};G9=class G9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new G9().fromBinary(Z,$)}static fromJson(Z,$){return new G9().fromJson(Z,$)}static fromJsonString(Z,$){return new G9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(G9,Z,$)}static $(){return["SubagentTypeDebug"]}};L9=class L9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new L9().fromBinary(Z,$)}static fromJson(Z,$){return new L9().fromJson(Z,$)}static fromJsonString(Z,$){return new L9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(L9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};w9=class w9 extends P0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new w9().fromBinary(Z,$)}static fromJson(Z,$){return new w9().fromJson(Z,$)}static fromJsonString(Z,$){return new w9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(w9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};D9=class D9 extends P0{constructor(Z){super();this.name="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new D9().fromBinary(Z,$)}static fromJson(Z,$){return new D9().fromJson(Z,$)}static fromJsonString(Z,$){return new D9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(D9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as Ql,proto3 as I6}from"@bufbuild/protobuf";var kH="agent.v1.",fH,I9,U9,NM,_0,dN,cN;var EH=I(()=>{k();fH=class fH extends B{static get runtime(){return N(this,"runtime",I6)}static $p(){return kH}};I9=class I9 extends fH{constructor(Z){super();I6.util.initPartial(Z,this)}static fromBinary(Z,$){return new I9().fromBinary(Z,$)}static fromJson(Z,$){return new I9().fromJson(Z,$)}static fromJsonString(Z,$){return new I9().fromJsonString(Z,$)}static equals(Z,$){return I6.util.equals(I9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};U9=class U9 extends fH{constructor(Z){super();this.deny=[],this.allow=[],I6.util.initPartial(Z,this)}static fromBinary(Z,$){return new U9().fromBinary(Z,$)}static fromJson(Z,$){return new U9().fromJson(Z,$)}static fromJsonString(Z,$){return new U9().fromJsonString(Z,$)}static equals(Z,$){return I6.util.equals(U9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",NM,I9]}};NM=w(I6,kH,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);_0=class _0 extends fH{constructor(Z){super();this.type=dN.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=cN.UNSPECIFIED,this.additionalReadPaths=[],I6.util.initPartial(Z,this)}static fromBinary(Z,$){return new _0().fromBinary(Z,$)}static fromJson(Z,$){return new _0().fromJson(Z,$)}static fromJsonString(Z,$){return new _0().fromJsonString(Z,$)}static equals(Z,$){return I6.util.equals(_0,Z,$)}static $(){return["SandboxPolicy|1 type #0|2 network_access 8?|3 additional_readwrite_paths 9*|4 additional_readonly_paths 9*|5 debug_output_dir 9?|7 disable_tmp_write 8?|8 allowlist_escalated 8?|9 enable_shared_build_cache 8?|10 network_policy #1?|11 network_policy_strict 8?|12 capture_denies 8?|13 skip_statsig_defaults 8?|14 read_boundary #2|15 additional_read_paths 9*",dN,U9,cN]}};dN=w(I6,kH,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),cN=w(I6,kH,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Bl,proto3 as A6,protoInt64 as uN}from"@bufbuild/protobuf";var BM="agent.v1.",uK,l6,p6,q0,i0;var x8=I(()=>{k();uK=class uK extends B{static get runtime(){return N(this,"runtime",A6)}static $p(){return BM}};l6=class l6 extends uK{constructor(Z){super();A6.util.initPartial(Z,this)}static fromBinary(Z,$){return new l6().fromBinary(Z,$)}static fromJson(Z,$){return new l6().fromJson(Z,$)}static fromJsonString(Z,$){return new l6().fromJsonString(Z,$)}static equals(Z,$){return A6.util.equals(l6,Z,$)}static $(){return["Range|1 start #0|2 end #0",p6]}};p6=class p6 extends uK{constructor(Z){super();this.line=0,this.column=0,A6.util.initPartial(Z,this)}static fromBinary(Z,$){return new p6().fromBinary(Z,$)}static fromJson(Z,$){return new p6().fromJson(Z,$)}static fromJsonString(Z,$){return new p6().fromJsonString(Z,$)}static equals(Z,$){return A6.util.equals(p6,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};q0=class q0 extends uK{constructor(Z){super();this.filePath="",this.sizeBytes=uN.zero,this.lineCount=uN.zero,A6.util.initPartial(Z,this)}static fromBinary(Z,$){return new q0().fromBinary(Z,$)}static fromJson(Z,$){return new q0().fromJson(Z,$)}static fromJsonString(Z,$){return new q0().fromJsonString(Z,$)}static equals(Z,$){return A6.util.equals(q0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};i0=class i0 extends uK{constructor(Z){super();this.requestId="",this.reason="",A6.util.initPartial(Z,this)}static fromBinary(Z,$){return new i0().fromBinary(Z,$)}static fromJson(Z,$){return new i0().fromJson(Z,$)}static fromJsonString(Z,$){return new i0().fromJsonString(Z,$)}static equals(Z,$){return A6.util.equals(i0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as wl,proto3 as mQ}from"@bufbuild/protobuf";var FM="agent.v1.",lN,i6;var pN=I(()=>{k();lN=class lN extends B{static get runtime(){return N(this,"runtime",mQ)}static $p(){return FM}};i6=class i6 extends lN{constructor(Z){super();this.hookEventName="",this.content="",mQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new i6().fromBinary(Z,$)}static fromJson(Z,$){return new i6().fromJson(Z,$)}static fromJsonString(Z,$){return new i6().fromJsonString(Z,$)}static equals(Z,$){return mQ.util.equals(i6,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Ol,proto3 as C}from"@bufbuild/protobuf";var y9="agent.v1.",Z0,iN,GM,LM,O9,k9,f9,E9,P9,nN,V9,x9,M9,aN,M8,h8,h9,A9,v9,C9,T9,R9;var rN=I(()=>{EH();x8();k();Z0=class Z0 extends B{static get runtime(){return N(this,"runtime",C)}static $p(){return y9}};iN=w(C,y9,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),GM=w(C,y9,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),LM=w(C,y9,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);O9=class O9 extends Z0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new O9().fromBinary(Z,$)}static fromJson(Z,$){return new O9().fromJson(Z,$)}static fromJsonString(Z,$){return new O9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(O9,Z,$)}static $(){return["ShellCommandParsingResult|1 parsing_failed 8|2 executable_commands #0*|3 has_redirects 8|4 has_command_substitution 8|5 all_redirects_are_dev_null 8?|6 redirects #1*",f9,E9]}};k9=class k9 extends Z0{constructor(Z){super();this.type="",this.value="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new k9().fromBinary(Z,$)}static fromJson(Z,$){return new k9().fromJson(Z,$)}static fromJsonString(Z,$){return new k9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(k9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};f9=class f9 extends Z0{constructor(Z){super();this.name="",this.args=[],this.fullText="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new f9().fromBinary(Z,$)}static fromJson(Z,$){return new f9().fromJson(Z,$)}static fromJsonString(Z,$){return new f9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(f9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",k9]}};E9=class E9 extends Z0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new E9().fromBinary(Z,$)}static fromJson(Z,$){return new E9().fromJson(Z,$)}static fromJsonString(Z,$){return new E9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(E9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};P9=class P9 extends Z0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=nN.UNSPECIFIED,this.classificationFailed=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new P9().fromBinary(Z,$)}static fromJson(Z,$){return new P9().fromJson(Z,$)}static fromJsonString(Z,$){return new P9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(P9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",V9,nN]}};nN=w(C,y9,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);V9=class V9 extends Z0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new V9().fromBinary(Z,$)}static fromJson(Z,$){return new V9().fromJson(Z,$)}static fromJsonString(Z,$){return new V9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(V9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};x9=class x9 extends Z0{constructor(Z){super();this.pattern="",this.reason="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new x9().fromBinary(Z,$)}static fromJson(Z,$){return new x9().fromJson(Z,$)}static fromJsonString(Z,$){return new x9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(x9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};M9=class M9 extends Z0{constructor(Z){super();this.kind=aN.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M9().fromBinary(Z,$)}static fromJson(Z,$){return new M9().fromJson(Z,$)}static fromJsonString(Z,$){return new M9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",aN]}};aN=w(C,y9,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);M8=class M8 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeout=0,this.toolCallId="",this.simpleCommands=[],this.hasInputRedirect=!1,this.hasOutputRedirect=!1,this.isBackground=!1,this.skipApproval=!1,this.timeoutBehavior=iN.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M8().fromBinary(Z,$)}static fromJson(Z,$){return new M8().fromJson(Z,$)}static fromJsonString(Z,$){return new M8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M8,Z,$)}static $(){return["ShellArgs|1 command 9|2 working_directory 9|3 timeout 5|4 tool_call_id 9|5 simple_commands 9*|6 has_input_redirect 8|7 has_output_redirect 8|8 parsing_result #0|9 requested_sandbox_policy #1?|10 file_output_threshold_bytes 4?|11 is_background 8|12 skip_approval 8|13 timeout_behavior #2|14 hard_timeout 5?|15 description 9?|16 classifier_result #3?|17 close_stdin 8|18 output_notification #4?|19 smart_mode_approval #5?|20 hook_approval_requirement #6?|21 conversation_id 9?|22 admin_command_denylist 9*|23 request_id 9?|24 secret_scope_id 9?",O9,_0,iN,P9,x9,i0,M9]}};h8=class h8 extends Z0{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h8().fromBinary(Z,$)}static fromJson(Z,$){return new h8().fromJson(Z,$)}static fromJsonString(Z,$){return new h8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h8,Z,$)}static $(){return["ShellResult|1 success #0 result|2 failure #1 result|3 timeout #2 result|4 rejected #3 result|5 spawn_error #4 result|7 permission_denied #5 result|101 sandbox_policy #6?|102 is_background 8?|103 terminals_folder 9?|104 pid 13?",h9,A9,v9,C9,R9,T9,_0]}};h9=class h9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h9().fromBinary(Z,$)}static fromJson(Z,$){return new h9().fromJson(Z,$)}static fromJsonString(Z,$){return new h9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h9,Z,$)}static $(){return["ShellSuccess|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 shell_id 13?|10 interleaved_output 9?|11 pid 13?|12 ms_to_wait 5?|13 local_execution_time_ms 5?|14 background_reason #1?|15 output_head 9?|16 output_tail 9?|17 elided_chars 13?",q0,GM]}};A9=class A9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new A9().fromBinary(Z,$)}static fromJson(Z,$){return new A9().fromJson(Z,$)}static fromJsonString(Z,$){return new A9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(A9,Z,$)}static $(){return["ShellFailure|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 interleaved_output 9?|10 abort_reason #1?|11 aborted 8|12 local_execution_time_ms 5?|13 output_head 9?|14 output_tail 9?|15 elided_chars 13?",q0,LM]}};v9=class v9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new v9().fromBinary(Z,$)}static fromJson(Z,$){return new v9().fromJson(Z,$)}static fromJsonString(Z,$){return new v9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(v9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};C9=class C9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new C9().fromBinary(Z,$)}static fromJson(Z,$){return new C9().fromJson(Z,$)}static fromJsonString(Z,$){return new C9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(C9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};T9=class T9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new T9().fromBinary(Z,$)}static fromJson(Z,$){return new T9().fromJson(Z,$)}static fromJsonString(Z,$){return new T9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(T9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};R9=class R9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new R9().fromBinary(Z,$)}static fromJson(Z,$){return new R9().fromJson(Z,$)}static fromJsonString(Z,$){return new R9().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(R9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as xl,proto3 as jQ}from"@bufbuild/protobuf";var wM="agent.v1.",sN,A8;var tN=I(()=>{rN();k();sN=class sN extends B{static get runtime(){return N(this,"runtime",jQ)}static $p(){return wM}};A8=class A8 extends sN{constructor(Z){super();jQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new A8().fromBinary(Z,$)}static fromJson(Z,$){return new A8().fromJson(Z,$)}static fromJsonString(Z,$){return new A8().fromJsonString(Z,$)}static equals(Z,$){return jQ.util.equals(A8,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",M8,h8]}}});import{Message as Cl,proto3 as n,protoInt64 as DM}from"@bufbuild/protobuf";var IM="agent.v1.",U6,v8,C8,m9,j9,_9,S9,g9,b9,d9;var oN=I(()=>{k();U6=class U6 extends B{static get runtime(){return N(this,"runtime",n)}static $p(){return IM}};v8=class v8 extends U6{constructor(Z){super();this.path="",this.toolCallId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new v8().fromBinary(Z,$)}static fromJson(Z,$){return new v8().fromJson(Z,$)}static fromJsonString(Z,$){return new v8().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(v8,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};C8=class C8 extends U6{constructor(Z){super();this.result={case:void 0},n.util.initPartial(Z,this)}static fromBinary(Z,$){return new C8().fromBinary(Z,$)}static fromJson(Z,$){return new C8().fromJson(Z,$)}static fromJsonString(Z,$){return new C8().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(C8,Z,$)}static $(){return["DeleteResult|1 success #0 result|2 file_not_found #1 result|3 not_file #2 result|4 permission_denied #3 result|5 file_busy #4 result|6 rejected #5 result|7 error #6 result",m9,j9,_9,S9,g9,b9,d9]}};m9=class m9 extends U6{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=DM.zero,this.prevContent="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new m9().fromBinary(Z,$)}static fromJson(Z,$){return new m9().fromJson(Z,$)}static fromJsonString(Z,$){return new m9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(m9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};j9=class j9 extends U6{constructor(Z){super();this.path="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new j9().fromBinary(Z,$)}static fromJson(Z,$){return new j9().fromJson(Z,$)}static fromJsonString(Z,$){return new j9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(j9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};_9=class _9 extends U6{constructor(Z){super();this.path="",this.actualType="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new _9().fromBinary(Z,$)}static fromJson(Z,$){return new _9().fromJson(Z,$)}static fromJsonString(Z,$){return new _9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(_9,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};S9=class S9 extends U6{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,n.util.initPartial(Z,this)}static fromBinary(Z,$){return new S9().fromBinary(Z,$)}static fromJson(Z,$){return new S9().fromJson(Z,$)}static fromJsonString(Z,$){return new S9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(S9,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};g9=class g9 extends U6{constructor(Z){super();this.path="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new g9().fromBinary(Z,$)}static fromJson(Z,$){return new g9().fromJson(Z,$)}static fromJsonString(Z,$){return new g9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(g9,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};b9=class b9 extends U6{constructor(Z){super();this.path="",this.reason="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new b9().fromBinary(Z,$)}static fromJson(Z,$){return new b9().fromJson(Z,$)}static fromJsonString(Z,$){return new b9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(b9,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};d9=class d9 extends U6{constructor(Z){super();this.path="",this.error="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new d9().fromBinary(Z,$)}static fromJson(Z,$){return new d9().fromJson(Z,$)}static fromJsonString(Z,$){return new d9().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(d9,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as ml,proto3 as _Q}from"@bufbuild/protobuf";var UM="agent.v1.",eN,T8;var ZB=I(()=>{oN();k();eN=class eN extends B{static get runtime(){return N(this,"runtime",_Q)}static $p(){return UM}};T8=class T8 extends eN{constructor(Z){super();_Q.util.initPartial(Z,this)}static fromBinary(Z,$){return new T8().fromBinary(Z,$)}static fromJson(Z,$){return new T8().fromJson(Z,$)}static fromJsonString(Z,$){return new T8().fromJsonString(Z,$)}static equals(Z,$){return _Q.util.equals(T8,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",v8,C8]}}});import{Message as bl,proto3 as n0}from"@bufbuild/protobuf";var OM="agent.v1.",i9,c9,u9,l9,p9,R8;var $B=I(()=>{k();i9=class i9 extends B{static get runtime(){return N(this,"runtime",n0)}static $p(){return OM}};c9=class c9 extends i9{constructor(Z){super();this.globPattern="",n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c9().fromBinary(Z,$)}static fromJson(Z,$){return new c9().fromJson(Z,$)}static fromJsonString(Z,$){return new c9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(c9,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};u9=class u9 extends i9{constructor(Z){super();this.result={case:void 0},n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u9().fromBinary(Z,$)}static fromJson(Z,$){return new u9().fromJson(Z,$)}static fromJsonString(Z,$){return new u9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(u9,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",p9,l9]}};l9=class l9 extends i9{constructor(Z){super();this.error="",n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l9().fromBinary(Z,$)}static fromJson(Z,$){return new l9().fromJson(Z,$)}static fromJsonString(Z,$){return new l9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(l9,Z,$)}static $(){return["GlobToolError|1 error 9"]}};p9=class p9 extends i9{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(p9,Z,$)}static $(){return["GlobToolSuccess|1 pattern 9|2 path 9|3 files 9*|4 total_files 5|5 client_truncated 8|6 ripgrep_truncated 8"]}};R8=class R8 extends i9{constructor(Z){super();n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new R8().fromBinary(Z,$)}static fromJson(Z,$){return new R8().fromJson(Z,$)}static fromJsonString(Z,$){return new R8().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(R8,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",c9,u9]}}});import{Message as ll,proto3 as d}from"@bufbuild/protobuf";var kM="agent.v1.",S0,y8,m8,n9,a9,r9,s9,t9,o9,e9,Z7,$7;var JB=I(()=>{EH();k();S0=class S0 extends B{static get runtime(){return N(this,"runtime",d)}static $p(){return kM}};y8=class y8 extends S0{constructor(Z){super();this.pattern="",this.toolCallId="",d.util.initPartial(Z,this)}static fromBinary(Z,$){return new y8().fromBinary(Z,$)}static fromJson(Z,$){return new y8().fromJson(Z,$)}static fromJsonString(Z,$){return new y8().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(y8,Z,$)}static $(){return["GrepArgs|1 pattern 9|2 path 9?|3 glob 9?|4 output_mode 9?|5 context_before 5?|6 context_after 5?|7 context 5?|8 case_insensitive 8?|9 type 9?|10 head_limit 5?|11 multiline 8?|12 sort 9?|13 sort_ascending 8?|14 tool_call_id 9|15 sandbox_policy #0?|16 offset 5?",_0]}};m8=class m8 extends S0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new m8().fromBinary(Z,$)}static fromJson(Z,$){return new m8().fromJson(Z,$)}static fromJsonString(Z,$){return new m8().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(m8,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",a9,n9]}};n9=class n9 extends S0{constructor(Z){super();this.error="",d.util.initPartial(Z,this)}static fromBinary(Z,$){return new n9().fromBinary(Z,$)}static fromJson(Z,$){return new n9().fromJson(Z,$)}static fromJsonString(Z,$){return new n9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(n9,Z,$)}static $(){return["GrepError|1 error 9"]}};a9=class a9 extends S0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new a9().fromBinary(Z,$)}static fromJson(Z,$){return new a9().fromJson(Z,$)}static fromJsonString(Z,$){return new a9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(a9,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",r9]}};r9=class r9 extends S0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new r9().fromBinary(Z,$)}static fromJson(Z,$){return new r9().fromJson(Z,$)}static fromJsonString(Z,$){return new r9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(r9,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",s9,o9,e9]}};s9=class s9 extends S0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new s9().fromBinary(Z,$)}static fromJson(Z,$){return new s9().fromJson(Z,$)}static fromJsonString(Z,$){return new s9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(s9,Z,$)}static $(){return["GrepCountResult|1 counts #0*|2 total_files 5|3 total_matches 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",t9]}};t9=class t9 extends S0{constructor(Z){super();this.file="",this.count=0,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new t9().fromBinary(Z,$)}static fromJson(Z,$){return new t9().fromJson(Z,$)}static fromJsonString(Z,$){return new t9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(t9,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};o9=class o9 extends S0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new o9().fromBinary(Z,$)}static fromJson(Z,$){return new o9().fromJson(Z,$)}static fromJsonString(Z,$){return new o9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(o9,Z,$)}static $(){return["GrepFilesResult|1 files 9*|2 total_files 5|3 client_truncated 8|4 ripgrep_truncated 8|5 head_limit_applied 5?|6 offset_applied 5?"]}};e9=class e9 extends S0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new e9().fromBinary(Z,$)}static fromJson(Z,$){return new e9().fromJson(Z,$)}static fromJsonString(Z,$){return new e9().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(e9,Z,$)}static $(){return["GrepContentResult|1 matches #0*|2 total_lines 5|3 total_matched_lines 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",Z7]}};Z7=class Z7 extends S0{constructor(Z){super();this.file="",this.matches=[],d.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z7().fromBinary(Z,$)}static fromJson(Z,$){return new Z7().fromJson(Z,$)}static fromJsonString(Z,$){return new Z7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(Z7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",$7]}};$7=class $7 extends S0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new $7().fromBinary(Z,$)}static fromJson(Z,$){return new $7().fromJson(Z,$)}static fromJsonString(Z,$){return new $7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals($7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as rl,proto3 as SQ}from"@bufbuild/protobuf";var fM="agent.v1.",YB,j8;var XB=I(()=>{JB();k();YB=class YB extends B{static get runtime(){return N(this,"runtime",SQ)}static $p(){return fM}};j8=class j8 extends YB{constructor(Z){super();SQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new j8().fromBinary(Z,$)}static fromJson(Z,$){return new j8().fromJson(Z,$)}static fromJsonString(Z,$){return new j8().fromJsonString(Z,$)}static equals(Z,$){return SQ.util.equals(j8,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",y8,m8]}}});import{Message as Zp,proto3 as V0}from"@bufbuild/protobuf";var KB="agent.v1.",_8,zB,J7,Y7,X7,z7,K7,v6;var gQ=I(()=>{k();_8=class _8 extends B{static get runtime(){return N(this,"runtime",V0)}static $p(){return KB}};zB=w(V0,KB,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);J7=class J7 extends _8{constructor(Z){super();V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J7().fromBinary(Z,$)}static fromJson(Z,$){return new J7().fromJson(Z,$)}static fromJsonString(Z,$){return new J7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(J7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};Y7=class Y7 extends _8{constructor(Z){super();this.globs=[],V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y7().fromBinary(Z,$)}static fromJson(Z,$){return new Y7().fromJson(Z,$)}static fromJsonString(Z,$){return new Y7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(Y7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};X7=class X7 extends _8{constructor(Z){super();this.description="",V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X7().fromBinary(Z,$)}static fromJson(Z,$){return new X7().fromJson(Z,$)}static fromJsonString(Z,$){return new X7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(X7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};z7=class z7 extends _8{constructor(Z){super();V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z7().fromBinary(Z,$)}static fromJson(Z,$){return new z7().fromJson(Z,$)}static fromJsonString(Z,$){return new z7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(z7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};K7=class K7 extends _8{constructor(Z){super();this.type={case:void 0},V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K7().fromBinary(Z,$)}static fromJson(Z,$){return new K7().fromJson(Z,$)}static fromJsonString(Z,$){return new K7().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(K7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",J7,Y7,X7,z7]}};v6=class v6 extends _8{constructor(Z){super();this.fullPath="",this.content="",this.source=zB.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new v6().fromBinary(Z,$)}static fromJson(Z,$){return new v6().fromJson(Z,$)}static fromJsonString(Z,$){return new v6().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(v6,Z,$)}static $(){return["CursorRule|1 full_path 9|2 content 9|3 type #0|4 source #1|5 git_remote_origin 9?|6 parse_error 9?|7 environments 9*|8 disabled_environments 9*|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 scoped_to 9*|14 frontmatter 9|15 is_required 8?",K7,zB]}}});import{Message as Xp,proto3 as C0}from"@bufbuild/protobuf";var EM="agent.v1.",g8,S8,H7,Q7,q7,W7,N7;var HB=I(()=>{gQ();k();g8=class g8 extends B{static get runtime(){return N(this,"runtime",C0)}static $p(){return EM}};S8=class S8 extends g8{constructor(Z){super();C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S8().fromBinary(Z,$)}static fromJson(Z,$){return new S8().fromJson(Z,$)}static fromJsonString(Z,$){return new S8().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(S8,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",H7,Q7]}};H7=class H7 extends g8{constructor(Z){super();this.path="",C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H7().fromBinary(Z,$)}static fromJson(Z,$){return new H7().fromJson(Z,$)}static fromJsonString(Z,$){return new H7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(H7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};Q7=class Q7 extends g8{constructor(Z){super();this.result={case:void 0},C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q7().fromBinary(Z,$)}static fromJson(Z,$){return new Q7().fromJson(Z,$)}static fromJsonString(Z,$){return new Q7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(Q7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",W7,N7]}};q7=class q7 extends g8{constructor(Z){super();this.startLine=0,this.endLine=0,C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q7().fromBinary(Z,$)}static fromJson(Z,$){return new q7().fromJson(Z,$)}static fromJsonString(Z,$){return new q7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(q7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};W7=class W7 extends g8{constructor(Z){super();this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W7().fromBinary(Z,$)}static fromJson(Z,$){return new W7().fromJson(Z,$)}static fromJsonString(Z,$){return new W7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(W7,Z,$)}static $(){return["ReadToolSuccess|1 content 9 output|6 data 12 output|9 data_blob_id 12 output|10 content_blob_id 12 output|2 is_empty 8|3 exceeded_limit 8|4 total_lines 13|5 file_size 13|7 path 9|8 read_range #0?|11 include_line_numbers 8?|12 related_cursor_rule_paths 9*|13 related_cursor_rules #1*",q7,v6]}};N7=class N7 extends g8{constructor(Z){super();this.errorMessage="",C0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N7().fromBinary(Z,$)}static fromJson(Z,$){return new N7().fromJson(Z,$)}static fromJsonString(Z,$){return new N7().fromJsonString(Z,$)}static equals(Z,$){return C0.util.equals(N7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as qp,proto3 as b,protoInt64 as QB}from"@bufbuild/protobuf";var qB="agent.v1.",g0,bQ,W0,b8,B7,F7,G7,L7,d8,w7,D7,I7,U7;var PH=I(()=>{k();g0=class g0 extends B{static get runtime(){return N(this,"runtime",b)}static $p(){return qB}};bQ=w(b,qB,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);W0=class W0 extends g0{constructor(Z){super();this.id="",this.content="",this.status=bQ.UNSPECIFIED,this.createdAt=QB.zero,this.updatedAt=QB.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new W0().fromBinary(Z,$)}static fromJson(Z,$){return new W0().fromJson(Z,$)}static fromJsonString(Z,$){return new W0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(W0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",bQ]}};b8=class b8 extends g0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new b8().fromBinary(Z,$)}static fromJson(Z,$){return new b8().fromJson(Z,$)}static fromJsonString(Z,$){return new b8().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(b8,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",B7,F7]}};B7=class B7 extends g0{constructor(Z){super();this.todos=[],this.merge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new B7().fromBinary(Z,$)}static fromJson(Z,$){return new B7().fromJson(Z,$)}static fromJsonString(Z,$){return new B7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(B7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",W0]}};F7=class F7 extends g0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new F7().fromBinary(Z,$)}static fromJson(Z,$){return new F7().fromJson(Z,$)}static fromJsonString(Z,$){return new F7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(F7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",G7,L7]}};G7=class G7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new G7().fromBinary(Z,$)}static fromJson(Z,$){return new G7().fromJson(Z,$)}static fromJsonString(Z,$){return new G7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(G7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",W0]}};L7=class L7 extends g0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new L7().fromBinary(Z,$)}static fromJson(Z,$){return new L7().fromJson(Z,$)}static fromJsonString(Z,$){return new L7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(L7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};d8=class d8 extends g0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new d8().fromBinary(Z,$)}static fromJson(Z,$){return new d8().fromJson(Z,$)}static fromJsonString(Z,$){return new d8().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(d8,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",w7,D7]}};w7=class w7 extends g0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new w7().fromBinary(Z,$)}static fromJson(Z,$){return new w7().fromJson(Z,$)}static fromJsonString(Z,$){return new w7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(w7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",bQ]}};D7=class D7 extends g0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new D7().fromBinary(Z,$)}static fromJson(Z,$){return new D7().fromJson(Z,$)}static fromJsonString(Z,$){return new D7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(D7,Z,$)}static $(){return["ReadTodosResult|1 success #0 result|2 error #1 result",I7,U7]}};I7=class I7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(I7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",W0]}};U7=class U7 extends g0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(U7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as Fp,proto3 as a}from"@bufbuild/protobuf";var PM="agent.v1.",O6,O7,k7,f7,E7,P7,V7,x7,M7,c8;var WB=I(()=>{k();O6=class O6 extends B{static get runtime(){return N(this,"runtime",a)}static $p(){return PM}};O7=class O7 extends O6{constructor(Z){super();this.path="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new O7().fromBinary(Z,$)}static fromJson(Z,$){return new O7().fromJson(Z,$)}static fromJsonString(Z,$){return new O7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(O7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};k7=class k7 extends O6{constructor(Z){super();this.result={case:void 0},a.util.initPartial(Z,this)}static fromBinary(Z,$){return new k7().fromBinary(Z,$)}static fromJson(Z,$){return new k7().fromJson(Z,$)}static fromJsonString(Z,$){return new k7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(k7,Z,$)}static $(){return["EditResult|1 success #0 result|2 file_not_found #1 result|3 read_permission_denied #2 result|4 write_permission_denied #3 result|6 rejected #4 result|7 error #5 result",f7,E7,P7,V7,x7,M7]}};f7=class f7 extends O6{constructor(Z){super();this.path="",this.afterFullFileContent="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new f7().fromBinary(Z,$)}static fromJson(Z,$){return new f7().fromJson(Z,$)}static fromJsonString(Z,$){return new f7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(f7,Z,$)}static $(){return["EditSuccess|1 path 9|3 lines_added 5?|4 lines_removed 5?|5 diff_string 9?|6 before_full_file_content 9?|7 after_full_file_content 9|8 message 9?"]}};E7=class E7 extends O6{constructor(Z){super();this.path="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new E7().fromBinary(Z,$)}static fromJson(Z,$){return new E7().fromJson(Z,$)}static fromJsonString(Z,$){return new E7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(E7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};P7=class P7 extends O6{constructor(Z){super();this.path="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new P7().fromBinary(Z,$)}static fromJson(Z,$){return new P7().fromJson(Z,$)}static fromJsonString(Z,$){return new P7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(P7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};V7=class V7 extends O6{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,a.util.initPartial(Z,this)}static fromBinary(Z,$){return new V7().fromBinary(Z,$)}static fromJson(Z,$){return new V7().fromJson(Z,$)}static fromJsonString(Z,$){return new V7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(V7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};x7=class x7 extends O6{constructor(Z){super();this.path="",this.reason="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new x7().fromBinary(Z,$)}static fromJson(Z,$){return new x7().fromJson(Z,$)}static fromJsonString(Z,$){return new x7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(x7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};M7=class M7 extends O6{constructor(Z){super();this.path="",this.error="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new M7().fromBinary(Z,$)}static fromJson(Z,$){return new M7().fromJson(Z,$)}static fromJsonString(Z,$){return new M7().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(M7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};c8=class c8 extends O6{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new c8().fromBinary(Z,$)}static fromJson(Z,$){return new c8().fromJson(Z,$)}static fromJsonString(Z,$){return new c8().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(c8,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",O7,k7]}}});import{Message as Dp,proto3 as u}from"@bufbuild/protobuf";var VM="agent.v1.",a0,u8,l8,h7,k6,A7,v7,C7,T7,R7,y7;var dQ=I(()=>{EH();k();a0=class a0 extends B{static get runtime(){return N(this,"runtime",u)}static $p(){return VM}};u8=class u8 extends a0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new u8().fromBinary(Z,$)}static fromJson(Z,$){return new u8().fromJson(Z,$)}static fromJsonString(Z,$){return new u8().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(u8,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",_0]}};l8=class l8 extends a0{constructor(Z){super();this.result={case:void 0},u.util.initPartial(Z,this)}static fromBinary(Z,$){return new l8().fromBinary(Z,$)}static fromJson(Z,$){return new l8().fromJson(Z,$)}static fromJsonString(Z,$){return new l8().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(l8,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",h7,v7,C7,T7]}};h7=class h7 extends a0{constructor(Z){super();u.util.initPartial(Z,this)}static fromBinary(Z,$){return new h7().fromBinary(Z,$)}static fromJson(Z,$){return new h7().fromJson(Z,$)}static fromJsonString(Z,$){return new h7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(h7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",k6]}};k6=class k6 extends a0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,u.util.initPartial(Z,this)}static fromBinary(Z,$){return new k6().fromBinary(Z,$)}static fromJson(Z,$){return new k6().fromJson(Z,$)}static fromJsonString(Z,$){return new k6().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(k6,Z,$)}static $(){return["LsDirectoryTreeNode|1 abs_path 9|2 children_dirs #0*|3 children_files #1*|4 children_were_processed 8|5 full_subtree_extension_counts 9,5|6 num_files 5",k6,A7]}};A7=class A7 extends a0{constructor(Z){super();this.name="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new A7().fromBinary(Z,$)}static fromJson(Z,$){return new A7().fromJson(Z,$)}static fromJsonString(Z,$){return new A7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(A7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",R7]}};v7=class v7 extends a0{constructor(Z){super();this.path="",this.error="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new v7().fromBinary(Z,$)}static fromJson(Z,$){return new v7().fromJson(Z,$)}static fromJsonString(Z,$){return new v7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(v7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};C7=class C7 extends a0{constructor(Z){super();this.path="",this.reason="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new C7().fromBinary(Z,$)}static fromJson(Z,$){return new C7().fromJson(Z,$)}static fromJsonString(Z,$){return new C7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(C7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};T7=class T7 extends a0{constructor(Z){super();u.util.initPartial(Z,this)}static fromBinary(Z,$){return new T7().fromBinary(Z,$)}static fromJson(Z,$){return new T7().fromJson(Z,$)}static fromJsonString(Z,$){return new T7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(T7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",k6]}};R7=class R7 extends a0{constructor(Z){super();this.lastCommands=[],u.util.initPartial(Z,this)}static fromBinary(Z,$){return new R7().fromBinary(Z,$)}static fromJson(Z,$){return new R7().fromJson(Z,$)}static fromJsonString(Z,$){return new R7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(R7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",y7]}};y7=class y7 extends a0{constructor(Z){super();this.command="",u.util.initPartial(Z,this)}static fromBinary(Z,$){return new y7().fromBinary(Z,$)}static fromJson(Z,$){return new y7().fromJson(Z,$)}static fromJsonString(Z,$){return new y7().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(y7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as fp,proto3 as cQ}from"@bufbuild/protobuf";var xM="agent.v1.",NB,p8;var BB=I(()=>{dQ();k();NB=class NB extends B{static get runtime(){return N(this,"runtime",cQ)}static $p(){return xM}};p8=class p8 extends NB{constructor(Z){super();cQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new p8().fromBinary(Z,$)}static fromJson(Z,$){return new p8().fromJson(Z,$)}static fromJsonString(Z,$){return new p8().fromJsonString(Z,$)}static equals(Z,$){return cQ.util.equals(p8,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",u8,l8]}}});import{Message as Mp,proto3 as MM}from"@bufbuild/protobuf";var hM="agent.v1.",uQ;var FB=I(()=>{k();uQ=w(MM,hM,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as Cp,proto3 as $0}from"@bufbuild/protobuf";var AM="agent.v1.",C6,i8,m7,j7,_7,S7,g7,b7,d7;var GB=I(()=>{FB();x8();k();C6=class C6 extends B{static get runtime(){return N(this,"runtime",$0)}static $p(){return AM}};i8=class i8 extends C6{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i8().fromBinary(Z,$)}static fromJson(Z,$){return new i8().fromJson(Z,$)}static fromJsonString(Z,$){return new i8().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(i8,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",m7,j7]}};m7=class m7 extends C6{constructor(Z){super();this.paths=[],$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new m7().fromBinary(Z,$)}static fromJson(Z,$){return new m7().fromJson(Z,$)}static fromJsonString(Z,$){return new m7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(m7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};j7=class j7 extends C6{constructor(Z){super();this.result={case:void 0},$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new j7().fromBinary(Z,$)}static fromJson(Z,$){return new j7().fromJson(Z,$)}static fromJsonString(Z,$){return new j7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(j7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",_7,d7]}};_7=class _7 extends C6{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _7().fromBinary(Z,$)}static fromJson(Z,$){return new _7().fromJson(Z,$)}static fromJsonString(Z,$){return new _7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(_7,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",S7]}};S7=class S7 extends C6{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S7().fromBinary(Z,$)}static fromJson(Z,$){return new S7().fromJson(Z,$)}static fromJsonString(Z,$){return new S7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(S7,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",g7]}};g7=class g7 extends C6{constructor(Z){super();this.severity=uQ.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g7().fromBinary(Z,$)}static fromJson(Z,$){return new g7().fromJson(Z,$)}static fromJsonString(Z,$){return new g7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(g7,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",uQ,b7]}};b7=class b7 extends C6{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b7().fromBinary(Z,$)}static fromJson(Z,$){return new b7().fromJson(Z,$)}static fromJsonString(Z,$){return new b7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(b7,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",p6]}};d7=class d7 extends C6{constructor(Z){super();this.errorMessage="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d7().fromBinary(Z,$)}static fromJson(Z,$){return new d7().fromJson(Z,$)}static fromJsonString(Z,$){return new d7().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(d7,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as _p,proto3 as h,protoInt64 as vM,Struct as CM,Value as TM}from"@bufbuild/protobuf";var RM="agent.v1.",c,n8,c7,u7,l7,p7,n6,a8,r8,s8,t8,o8,i7,n7,a7,r7,e8,ZZ,s7,t7,o7,e7;var lQ=I(()=>{x8();k();c=class c extends B{static get runtime(){return N(this,"runtime",h)}static $p(){return RM}};n8=class n8 extends c{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n8().fromBinary(Z,$)}static fromJson(Z,$){return new n8().fromJson(Z,$)}static fromJsonString(Z,$){return new n8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n8,Z,$)}static $(){return["McpArgs|1 name 9|2 args 9,#0|3 tool_call_id 9|4 provider_identifier 9|5 tool_name 9|6 smart_mode_approval #1?|7 smart_mode_approval_only 8|8 skip_approval 8|9 server_identifier 9|10 symbolic_path_arguments #2*",TM,i0,c7]}};c7=class c7 extends c{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=vM.zero,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new c7().fromBinary(Z,$)}static fromJson(Z,$){return new c7().fromJson(Z,$)}static fromJsonString(Z,$){return new c7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(c7,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};u7=class u7 extends c{constructor(Z){super();this.text="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new u7().fromBinary(Z,$)}static fromJson(Z,$){return new u7().fromJson(Z,$)}static fromJsonString(Z,$){return new u7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(u7,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",q0]}};l7=class l7 extends c{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new l7().fromBinary(Z,$)}static fromJson(Z,$){return new l7().fromJson(Z,$)}static fromJsonString(Z,$){return new l7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(l7,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};p7=class p7 extends c{constructor(Z){super();this.content={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new p7().fromBinary(Z,$)}static fromJson(Z,$){return new p7().fromJson(Z,$)}static fromJsonString(Z,$){return new p7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(p7,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",u7,l7]}};n6=class n6 extends c{constructor(Z){super();this.body="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n6().fromBinary(Z,$)}static fromJson(Z,$){return new n6().fromJson(Z,$)}static fromJsonString(Z,$){return new n6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n6,Z,$)}static $(){return["SystemReminder|1 body 9"]}};a8=class a8 extends c{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new a8().fromBinary(Z,$)}static fromJson(Z,$){return new a8().fromJson(Z,$)}static fromJsonString(Z,$){return new a8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(a8,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*",p7,CM,n6]}};r8=class r8 extends c{constructor(Z){super();this.reason="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new r8().fromBinary(Z,$)}static fromJson(Z,$){return new r8().fromJson(Z,$)}static fromJsonString(Z,$){return new r8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(r8,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};s8=class s8 extends c{constructor(Z){super();this.error="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new s8().fromBinary(Z,$)}static fromJson(Z,$){return new s8().fromJson(Z,$)}static fromJsonString(Z,$){return new s8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(s8,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};t8=class t8 extends c{constructor(Z){super();h.util.initPartial(Z,this)}static fromBinary(Z,$){return new t8().fromBinary(Z,$)}static fromJson(Z,$){return new t8().fromJson(Z,$)}static fromJsonString(Z,$){return new t8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(t8,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};o8=class o8 extends c{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o8().fromBinary(Z,$)}static fromJson(Z,$){return new o8().fromJson(Z,$)}static fromJsonString(Z,$){return new o8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o8,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",n7,a7,r7]}};i7=class i7 extends c{constructor(Z){super();this.uri="",this.server="",this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new i7().fromBinary(Z,$)}static fromJson(Z,$){return new i7().fromJson(Z,$)}static fromJsonString(Z,$){return new i7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(i7,Z,$)}static $(){return["ListMcpResourcesExecResult.McpResource|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 server 9|6 annotations 9,9"]}};n7=class n7 extends c{constructor(Z){super();this.resources=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n7().fromBinary(Z,$)}static fromJson(Z,$){return new n7().fromJson(Z,$)}static fromJsonString(Z,$){return new n7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n7,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",i7]}};a7=class a7 extends c{constructor(Z){super();this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new a7().fromBinary(Z,$)}static fromJson(Z,$){return new a7().fromJson(Z,$)}static fromJsonString(Z,$){return new a7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(a7,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};r7=class r7 extends c{constructor(Z){super();this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new r7().fromBinary(Z,$)}static fromJson(Z,$){return new r7().fromJson(Z,$)}static fromJsonString(Z,$){return new r7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(r7,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};e8=class e8 extends c{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new e8().fromBinary(Z,$)}static fromJson(Z,$){return new e8().fromJson(Z,$)}static fromJsonString(Z,$){return new e8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(e8,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",i0]}};ZZ=class ZZ extends c{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZZ().fromBinary(Z,$)}static fromJson(Z,$){return new ZZ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(ZZ,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",s7,t7,o7,e7]}};s7=class s7 extends c{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new s7().fromBinary(Z,$)}static fromJson(Z,$){return new s7().fromJson(Z,$)}static fromJsonString(Z,$){return new s7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(s7,Z,$)}static $(){return["ReadMcpResourceSuccess|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 text 9 content|6 blob 12 content|7 annotations 9,9|8 download_path 9?|9 output_location #0?|10 meta_json 9?",q0]}};t7=class t7 extends c{constructor(Z){super();this.uri="",this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new t7().fromBinary(Z,$)}static fromJson(Z,$){return new t7().fromJson(Z,$)}static fromJsonString(Z,$){return new t7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(t7,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};o7=class o7 extends c{constructor(Z){super();this.uri="",this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o7().fromBinary(Z,$)}static fromJson(Z,$){return new o7().fromJson(Z,$)}static fromJsonString(Z,$){return new o7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o7,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};e7=class e7 extends c{constructor(Z){super();this.uri="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new e7().fromBinary(Z,$)}static fromJson(Z,$){return new e7().fromJson(Z,$)}static fromJsonString(Z,$){return new e7().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(e7,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as cp,proto3 as JZ}from"@bufbuild/protobuf";var yM="agent.v1.",VH,Z5,$5,$Z;var LB=I(()=>{lQ();k();VH=class VH extends B{static get runtime(){return N(this,"runtime",JZ)}static $p(){return yM}};Z5=class Z5 extends VH{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],JZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z5().fromBinary(Z,$)}static fromJson(Z,$){return new Z5().fromJson(Z,$)}static fromJsonString(Z,$){return new Z5().fromJsonString(Z,$)}static equals(Z,$){return JZ.util.equals(Z5,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",n6]}};$5=class $5 extends VH{constructor(Z){super();this.result={case:void 0},JZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new $5().fromBinary(Z,$)}static fromJson(Z,$){return new $5().fromJson(Z,$)}static fromJsonString(Z,$){return new $5().fromJsonString(Z,$)}static equals(Z,$){return JZ.util.equals($5,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",a8,Z5,r8,s8]}};$Z=class $Z extends VH{constructor(Z){super();JZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Z().fromBinary(Z,$)}static fromJson(Z,$){return new $Z().fromJson(Z,$)}static fromJsonString(Z,$){return new $Z().fromJsonString(Z,$)}static equals(Z,$){return JZ.util.equals($Z,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",n8,$5]}}});import{Message as np,proto3 as N0}from"@bufbuild/protobuf";var mM="aiserver.v1.",a6,J5,YZ,XZ,zZ,Y5,X5,z5;var wB=I(()=>{k();a6=class a6 extends B{static get runtime(){return N(this,"runtime",N0)}static $p(){return mM}};J5=class J5 extends a6{constructor(Z){super();this.line=0,this.column=0,N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J5().fromBinary(Z,$)}static fromJson(Z,$){return new J5().fromJson(Z,$)}static fromJsonString(Z,$){return new J5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(J5,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};YZ=class YZ extends a6{constructor(Z){super();N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new YZ().fromBinary(Z,$)}static fromJson(Z,$){return new YZ().fromJson(Z,$)}static fromJsonString(Z,$){return new YZ().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(YZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",J5]}};XZ=class XZ extends a6{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new XZ().fromBinary(Z,$)}static fromJson(Z,$){return new XZ().fromJson(Z,$)}static fromJsonString(Z,$){return new XZ().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(XZ,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};zZ=class zZ extends a6{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new zZ().fromBinary(Z,$)}static fromJson(Z,$){return new zZ().fromJson(Z,$)}static fromJsonString(Z,$){return new zZ().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(zZ,Z,$)}static $(){return["CodeBlock|1 relative_workspace_path 9|2 file_contents 9?|9 file_contents_length 5?|3 range #0|4 contents 9|5 signatures #1|6 override_contents 9?|7 original_contents 9?|8 detailed_lines #2*|10 file_git_context #3",YZ,Y5,XZ,z5]}};Y5=class Y5 extends a6{constructor(Z){super();this.ranges=[],N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y5().fromBinary(Z,$)}static fromJson(Z,$){return new Y5().fromJson(Z,$)}static fromJsonString(Z,$){return new Y5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(Y5,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",YZ]}};X5=class X5 extends a6{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X5().fromBinary(Z,$)}static fromJson(Z,$){return new X5().fromJson(Z,$)}static fromJsonString(Z,$){return new X5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(X5,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};z5=class z5 extends a6{constructor(Z){super();this.commits=[],N0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z5().fromBinary(Z,$)}static fromJson(Z,$){return new z5().fromJson(Z,$)}static fromJsonString(Z,$){return new z5().fromJsonString(Z,$)}static equals(Z,$){return N0.util.equals(z5,Z,$)}static $(){return["FileGit|1 commits #0*",X5]}}});import{Message as $i,proto3 as pQ,protoInt64 as Ji}from"@bufbuild/protobuf";var jM="aiserver.v1.",DB,KZ;var IB=I(()=>{wB();k();DB=class DB extends B{static get runtime(){return N(this,"runtime",pQ)}static $p(){return jM}};KZ=class KZ extends DB{constructor(Z){super();this.score=0,pQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new KZ().fromBinary(Z,$)}static fromJson(Z,$){return new KZ().fromJson(Z,$)}static fromJsonString(Z,$){return new KZ().fromJsonString(Z,$)}static equals(Z,$){return pQ.util.equals(KZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",zZ]}}});import{Message as Hi,proto3 as r0}from"@bufbuild/protobuf";var _M="agent.v1.",W5,HZ,K5,H5,Q5,q5;var UB=I(()=>{IB();k();W5=class W5 extends B{static get runtime(){return N(this,"runtime",r0)}static $p(){return _M}};HZ=class HZ extends W5{constructor(Z){super();r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HZ().fromBinary(Z,$)}static fromJson(Z,$){return new HZ().fromJson(Z,$)}static fromJsonString(Z,$){return new HZ().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(HZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",K5,H5]}};K5=class K5 extends W5{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K5().fromBinary(Z,$)}static fromJson(Z,$){return new K5().fromJson(Z,$)}static fromJsonString(Z,$){return new K5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(K5,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};H5=class H5 extends W5{constructor(Z){super();this.result={case:void 0},r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H5().fromBinary(Z,$)}static fromJson(Z,$){return new H5().fromJson(Z,$)}static fromJsonString(Z,$){return new H5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(H5,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",Q5,q5]}};Q5=class Q5 extends W5{constructor(Z){super();this.results="",this.codeResults=[],r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q5().fromBinary(Z,$)}static fromJson(Z,$){return new Q5().fromJson(Z,$)}static fromJsonString(Z,$){return new Q5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(Q5,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",KZ]}};q5=class q5 extends W5{constructor(Z){super();this.errorMessage="",r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q5().fromBinary(Z,$)}static fromJson(Z,$){return new q5().fromJson(Z,$)}static fromJsonString(Z,$){return new q5().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(q5,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as Bi,proto3 as B0}from"@bufbuild/protobuf";var SM="agent.v1.",r6,QZ,N5,B5,qZ,F5,G5,WZ;var OB=I(()=>{PH();k();r6=class r6 extends B{static get runtime(){return N(this,"runtime",B0)}static $p(){return SM}};QZ=class QZ extends r6{constructor(Z){super();B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QZ().fromBinary(Z,$)}static fromJson(Z,$){return new QZ().fromJson(Z,$)}static fromJsonString(Z,$){return new QZ().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(QZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",B5,qZ]}};N5=class N5 extends r6{constructor(Z){super();this.name="",this.todos=[],B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N5().fromBinary(Z,$)}static fromJson(Z,$){return new N5().fromJson(Z,$)}static fromJsonString(Z,$){return new N5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(N5,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",W0]}};B5=class B5 extends r6{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B5().fromBinary(Z,$)}static fromJson(Z,$){return new B5().fromJson(Z,$)}static fromJsonString(Z,$){return new B5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(B5,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",W0,N5]}};qZ=class qZ extends r6{constructor(Z){super();this.result={case:void 0},this.planUri="",B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new qZ().fromBinary(Z,$)}static fromJson(Z,$){return new qZ().fromJson(Z,$)}static fromJsonString(Z,$){return new qZ().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(qZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",F5,G5]}};F5=class F5 extends r6{constructor(Z){super();B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F5().fromBinary(Z,$)}static fromJson(Z,$){return new F5().fromJson(Z,$)}static fromJsonString(Z,$){return new F5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(F5,Z,$)}static $(){return["CreatePlanSuccess"]}};G5=class G5 extends r6{constructor(Z){super();this.error="",B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G5().fromBinary(Z,$)}static fromJson(Z,$){return new G5().fromJson(Z,$)}static fromJsonString(Z,$){return new G5().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(G5,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};WZ=class WZ extends r6{constructor(Z){super();B0.util.initPartial(Z,this)}static fromBinary(Z,$){return new WZ().fromBinary(Z,$)}static fromJson(Z,$){return new WZ().fromJson(Z,$)}static fromJsonString(Z,$){return new WZ().fromJsonString(Z,$)}static equals(Z,$){return B0.util.equals(WZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",qZ]}}});import{Message as Di,proto3 as l}from"@bufbuild/protobuf";var gM="agent.v1.",s0,L5,w5,D5,I5,U5,O5,NZ,BZ,k5,f5;var kB=I(()=>{k();s0=class s0 extends B{static get runtime(){return N(this,"runtime",l)}static $p(){return gM}};L5=class L5 extends s0{constructor(Z){super();this.searchTerm="",this.toolCallId="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new L5().fromBinary(Z,$)}static fromJson(Z,$){return new L5().fromJson(Z,$)}static fromJsonString(Z,$){return new L5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(L5,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};w5=class w5 extends s0{constructor(Z){super();this.result={case:void 0},l.util.initPartial(Z,this)}static fromBinary(Z,$){return new w5().fromBinary(Z,$)}static fromJson(Z,$){return new w5().fromJson(Z,$)}static fromJsonString(Z,$){return new w5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(w5,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",D5,I5,U5]}};D5=class D5 extends s0{constructor(Z){super();this.references=[],l.util.initPartial(Z,this)}static fromBinary(Z,$){return new D5().fromBinary(Z,$)}static fromJson(Z,$){return new D5().fromJson(Z,$)}static fromJsonString(Z,$){return new D5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(D5,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",O5]}};I5=class I5 extends s0{constructor(Z){super();this.error="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new I5().fromBinary(Z,$)}static fromJson(Z,$){return new I5().fromJson(Z,$)}static fromJsonString(Z,$){return new I5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(I5,Z,$)}static $(){return["WebSearchError|1 error 9"]}};U5=class U5 extends s0{constructor(Z){super();this.reason="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new U5().fromBinary(Z,$)}static fromJson(Z,$){return new U5().fromJson(Z,$)}static fromJsonString(Z,$){return new U5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(U5,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};O5=class O5 extends s0{constructor(Z){super();this.title="",this.url="",this.chunk="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new O5().fromBinary(Z,$)}static fromJson(Z,$){return new O5().fromJson(Z,$)}static fromJsonString(Z,$){return new O5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(O5,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};NZ=class NZ extends s0{constructor(Z){super();l.util.initPartial(Z,this)}static fromBinary(Z,$){return new NZ().fromBinary(Z,$)}static fromJson(Z,$){return new NZ().fromJson(Z,$)}static fromJsonString(Z,$){return new NZ().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(NZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",L5,w5]}};BZ=class BZ extends s0{constructor(Z){super();this.result={case:void 0},l.util.initPartial(Z,this)}static fromBinary(Z,$){return new BZ().fromBinary(Z,$)}static fromJson(Z,$){return new BZ().fromJson(Z,$)}static fromJsonString(Z,$){return new BZ().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(BZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",k5,f5]}};k5=class k5 extends s0{constructor(Z){super();l.util.initPartial(Z,this)}static fromBinary(Z,$){return new k5().fromBinary(Z,$)}static fromJson(Z,$){return new k5().fromJson(Z,$)}static fromJsonString(Z,$){return new k5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(k5,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};f5=class f5 extends s0{constructor(Z){super();this.reason="",l.util.initPartial(Z,this)}static fromBinary(Z,$){return new f5().fromBinary(Z,$)}static fromJson(Z,$){return new f5().fromJson(Z,$)}static fromJsonString(Z,$){return new f5().fromJsonString(Z,$)}static equals(Z,$){return l.util.equals(f5,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as ki,proto3 as lK}from"@bufbuild/protobuf";var bM="agent.v1.",iQ,FZ,GZ;var fB=I(()=>{lQ();k();iQ=class iQ extends B{static get runtime(){return N(this,"runtime",lK)}static $p(){return bM}};FZ=class FZ extends iQ{constructor(Z){super();lK.util.initPartial(Z,this)}static fromBinary(Z,$){return new FZ().fromBinary(Z,$)}static fromJson(Z,$){return new FZ().fromJson(Z,$)}static fromJsonString(Z,$){return new FZ().fromJsonString(Z,$)}static equals(Z,$){return lK.util.equals(FZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",t8,o8]}};GZ=class GZ extends iQ{constructor(Z){super();lK.util.initPartial(Z,this)}static fromBinary(Z,$){return new GZ().fromBinary(Z,$)}static fromJson(Z,$){return new GZ().fromJson(Z,$)}static fromJsonString(Z,$){return new GZ().fromJsonString(Z,$)}static equals(Z,$){return lK.util.equals(GZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",e8,ZZ]}}});import{Message as xi,proto3 as x0}from"@bufbuild/protobuf";var PB="agent.v1.",DZ,LZ,E5,P5,V5,wZ,EB,x5;var VB=I(()=>{k();DZ=class DZ extends B{static get runtime(){return N(this,"runtime",x0)}static $p(){return PB}};LZ=class LZ extends DZ{constructor(Z){super();x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LZ().fromBinary(Z,$)}static fromJson(Z,$){return new LZ().fromJson(Z,$)}static fromJsonString(Z,$){return new LZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(LZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",E5,P5]}};E5=class E5 extends DZ{constructor(Z){super();this.agentId="",x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E5().fromBinary(Z,$)}static fromJson(Z,$){return new E5().fromJson(Z,$)}static fromJsonString(Z,$){return new E5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(E5,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};P5=class P5 extends DZ{constructor(Z){super();this.result={case:void 0},x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P5().fromBinary(Z,$)}static fromJson(Z,$){return new P5().fromJson(Z,$)}static fromJsonString(Z,$){return new P5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(P5,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",V5,x5]}};V5=class V5 extends DZ{constructor(Z){super();this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V5().fromBinary(Z,$)}static fromJson(Z,$){return new V5().fromJson(Z,$)}static fromJsonString(Z,$){return new V5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(V5,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",wZ]}};wZ=class wZ extends DZ{constructor(Z){super();this.path="",this.changeType=EB.UNSPECIFIED,x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wZ().fromBinary(Z,$)}static fromJson(Z,$){return new wZ().fromJson(Z,$)}static fromJsonString(Z,$){return new wZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(wZ,Z,$)}static $(){return["AppliedAgentChange|1 path 9|2 change_type #0|3 before_content 9?|4 after_content 9?|5 error 9?|6 message_for_model 9?",EB]}};EB=w(x0,PB,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);x5=class x5 extends DZ{constructor(Z){super();this.error="",this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x5().fromBinary(Z,$)}static fromJson(Z,$){return new x5().fromJson(Z,$)}static fromJsonString(Z,$){return new x5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(x5,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",wZ]}}});import{Message as vi,proto3 as p}from"@bufbuild/protobuf";var dM="agent.v1.",t0,IZ,UZ,M5,h5,A5,s6,v5,C5,T5,R5;var xB=I(()=>{k();t0=class t0 extends B{static get runtime(){return N(this,"runtime",p)}static $p(){return dM}};IZ=class IZ extends t0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new IZ().fromBinary(Z,$)}static fromJson(Z,$){return new IZ().fromJson(Z,$)}static fromJsonString(Z,$){return new IZ().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(IZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",UZ,s6]}};UZ=class UZ extends t0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new UZ().fromBinary(Z,$)}static fromJson(Z,$){return new UZ().fromJson(Z,$)}static fromJsonString(Z,$){return new UZ().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(UZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",M5]}};M5=class M5 extends t0{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,p.util.initPartial(Z,this)}static fromBinary(Z,$){return new M5().fromBinary(Z,$)}static fromJson(Z,$){return new M5().fromJson(Z,$)}static fromJsonString(Z,$){return new M5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(M5,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8",h5]}};h5=class h5 extends t0{constructor(Z){super();this.id="",this.label="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new h5().fromBinary(Z,$)}static fromJson(Z,$){return new h5().fromJson(Z,$)}static fromJsonString(Z,$){return new h5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(h5,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};A5=class A5 extends t0{constructor(Z){super();this.interactionId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new A5().fromBinary(Z,$)}static fromJson(Z,$){return new A5().fromJson(Z,$)}static fromJsonString(Z,$){return new A5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(A5,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};s6=class s6 extends t0{constructor(Z){super();this.result={case:void 0},p.util.initPartial(Z,this)}static fromBinary(Z,$){return new s6().fromBinary(Z,$)}static fromJson(Z,$){return new s6().fromJson(Z,$)}static fromJsonString(Z,$){return new s6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(s6,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",v5,T5,R5,A5]}};v5=class v5 extends t0{constructor(Z){super();this.answers=[],p.util.initPartial(Z,this)}static fromBinary(Z,$){return new v5().fromBinary(Z,$)}static fromJson(Z,$){return new v5().fromJson(Z,$)}static fromJsonString(Z,$){return new v5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(v5,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",C5]}};C5=class C5 extends t0{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new C5().fromBinary(Z,$)}static fromJson(Z,$){return new C5().fromJson(Z,$)}static fromJsonString(Z,$){return new C5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(C5,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};T5=class T5 extends t0{constructor(Z){super();this.errorMessage="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new T5().fromBinary(Z,$)}static fromJson(Z,$){return new T5().fromJson(Z,$)}static fromJsonString(Z,$){return new T5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(T5,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};R5=class R5 extends t0{constructor(Z){super();this.reason="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new R5().fromBinary(Z,$)}static fromJson(Z,$){return new R5().fromJson(Z,$)}static fromJsonString(Z,$){return new R5().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(R5,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as yi,proto3 as T6}from"@bufbuild/protobuf";var cM="agent.v1.",pK,OZ,kZ,y5,m5;var MB=I(()=>{k();pK=class pK extends B{static get runtime(){return N(this,"runtime",T6)}static $p(){return cM}};OZ=class OZ extends pK{constructor(Z){super();this.url="",this.toolCallId="",T6.util.initPartial(Z,this)}static fromBinary(Z,$){return new OZ().fromBinary(Z,$)}static fromJson(Z,$){return new OZ().fromJson(Z,$)}static fromJsonString(Z,$){return new OZ().fromJsonString(Z,$)}static equals(Z,$){return T6.util.equals(OZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};kZ=class kZ extends pK{constructor(Z){super();this.result={case:void 0},T6.util.initPartial(Z,this)}static fromBinary(Z,$){return new kZ().fromBinary(Z,$)}static fromJson(Z,$){return new kZ().fromJson(Z,$)}static fromJsonString(Z,$){return new kZ().fromJsonString(Z,$)}static equals(Z,$){return T6.util.equals(kZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",y5,m5]}};y5=class y5 extends pK{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",T6.util.initPartial(Z,this)}static fromBinary(Z,$){return new y5().fromBinary(Z,$)}static fromJson(Z,$){return new y5().fromJson(Z,$)}static fromJsonString(Z,$){return new y5().fromJsonString(Z,$)}static equals(Z,$){return T6.util.equals(y5,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};m5=class m5 extends pK{constructor(Z){super();this.url="",this.error="",T6.util.initPartial(Z,this)}static fromBinary(Z,$){return new m5().fromBinary(Z,$)}static fromJson(Z,$){return new m5().fromJson(Z,$)}static fromJsonString(Z,$){return new m5().fromJsonString(Z,$)}static equals(Z,$){return T6.util.equals(m5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as Si,proto3 as nQ}from"@bufbuild/protobuf";var uM="agent.v1.",hB,fZ;var AB=I(()=>{MB();k();hB=class hB extends B{static get runtime(){return N(this,"runtime",nQ)}static $p(){return uM}};fZ=class fZ extends hB{constructor(Z){super();nQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new fZ().fromBinary(Z,$)}static fromJson(Z,$){return new fZ().fromJson(Z,$)}static fromJsonString(Z,$){return new fZ().fromJsonString(Z,$)}static equals(Z,$){return nQ.util.equals(fZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",OZ,kZ]}}});import{Message as ui,proto3 as r}from"@bufbuild/protobuf";var lM="agent.v1.",f6,j5,_5,S5,g5,b5,EZ,PZ,d5,c5;var vB=I(()=>{k();f6=class f6 extends B{static get runtime(){return N(this,"runtime",r)}static $p(){return lM}};j5=class j5 extends f6{constructor(Z){super();this.targetModeId="",this.toolCallId="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new j5().fromBinary(Z,$)}static fromJson(Z,$){return new j5().fromJson(Z,$)}static fromJsonString(Z,$){return new j5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(j5,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};_5=class _5 extends f6{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new _5().fromBinary(Z,$)}static fromJson(Z,$){return new _5().fromJson(Z,$)}static fromJsonString(Z,$){return new _5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(_5,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",S5,g5,b5]}};S5=class S5 extends f6{constructor(Z){super();this.fromModeId="",this.toModeId="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new S5().fromBinary(Z,$)}static fromJson(Z,$){return new S5().fromJson(Z,$)}static fromJsonString(Z,$){return new S5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(S5,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};g5=class g5 extends f6{constructor(Z){super();this.error="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new g5().fromBinary(Z,$)}static fromJson(Z,$){return new g5().fromJson(Z,$)}static fromJsonString(Z,$){return new g5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(g5,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};b5=class b5 extends f6{constructor(Z){super();this.reason="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new b5().fromBinary(Z,$)}static fromJson(Z,$){return new b5().fromJson(Z,$)}static fromJsonString(Z,$){return new b5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(b5,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};EZ=class EZ extends f6{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new EZ().fromBinary(Z,$)}static fromJson(Z,$){return new EZ().fromJson(Z,$)}static fromJsonString(Z,$){return new EZ().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(EZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",j5,_5]}};PZ=class PZ extends f6{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new PZ().fromBinary(Z,$)}static fromJson(Z,$){return new PZ().fromJson(Z,$)}static fromJsonString(Z,$){return new PZ().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(PZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",d5,c5]}};d5=class d5 extends f6{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new d5().fromBinary(Z,$)}static fromJson(Z,$){return new d5().fromJson(Z,$)}static fromJsonString(Z,$){return new d5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(d5,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};c5=class c5 extends f6{constructor(Z){super();this.reason="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new c5().fromBinary(Z,$)}static fromJson(Z,$){return new c5().fromJson(Z,$)}static fromJsonString(Z,$){return new c5().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(c5,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as ni,proto3 as J0}from"@bufbuild/protobuf";var pM="agent.v1.",R6,u5,l5,p5,i5,VZ,xZ,n5,a5;var CB=I(()=>{k();R6=class R6 extends B{static get runtime(){return N(this,"runtime",J0)}static $p(){return pM}};u5=class u5 extends R6{constructor(Z){super();this.description="",this.referenceImagePaths=[],J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u5().fromBinary(Z,$)}static fromJson(Z,$){return new u5().fromJson(Z,$)}static fromJsonString(Z,$){return new u5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(u5,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};l5=class l5 extends R6{constructor(Z){super();this.result={case:void 0},J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l5().fromBinary(Z,$)}static fromJson(Z,$){return new l5().fromJson(Z,$)}static fromJsonString(Z,$){return new l5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(l5,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",p5,i5]}};p5=class p5 extends R6{constructor(Z){super();this.filePath="",this.imageData="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p5().fromBinary(Z,$)}static fromJson(Z,$){return new p5().fromJson(Z,$)}static fromJsonString(Z,$){return new p5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(p5,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};i5=class i5 extends R6{constructor(Z){super();this.error="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i5().fromBinary(Z,$)}static fromJson(Z,$){return new i5().fromJson(Z,$)}static fromJsonString(Z,$){return new i5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(i5,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};VZ=class VZ extends R6{constructor(Z){super();J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VZ().fromBinary(Z,$)}static fromJson(Z,$){return new VZ().fromJson(Z,$)}static fromJsonString(Z,$){return new VZ().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(VZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",u5,l5]}};xZ=class xZ extends R6{constructor(Z){super();this.result={case:void 0},J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xZ().fromBinary(Z,$)}static fromJson(Z,$){return new xZ().fromJson(Z,$)}static fromJsonString(Z,$){return new xZ().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(xZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",n5,a5]}};n5=class n5 extends R6{constructor(Z){super();this.description="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n5().fromBinary(Z,$)}static fromJson(Z,$){return new n5().fromJson(Z,$)}static fromJsonString(Z,$){return new n5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(n5,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};a5=class a5 extends R6{constructor(Z){super();this.reason="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a5().fromBinary(Z,$)}static fromJson(Z,$){return new a5().fromJson(Z,$)}static fromJsonString(Z,$){return new a5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(a5,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as ti,proto3 as F0,protoInt64 as iM}from"@bufbuild/protobuf";var aQ="agent.v1.",AZ,TB,nM,MZ,hZ,r5,s5,t5,o5;var RB=I(()=>{k();AZ=class AZ extends B{static get runtime(){return N(this,"runtime",F0)}static $p(){return aQ}};TB=w(F0,aQ,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),nM=w(F0,aQ,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);MZ=class MZ extends AZ{constructor(Z){super();this.mode=TB.UNSPECIFIED,this.toolCallId="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MZ().fromBinary(Z,$)}static fromJson(Z,$){return new MZ().fromJson(Z,$)}static fromJsonString(Z,$){return new MZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(MZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",TB]}};hZ=class hZ extends AZ{constructor(Z){super();this.result={case:void 0},F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hZ().fromBinary(Z,$)}static fromJson(Z,$){return new hZ().fromJson(Z,$)}static fromJsonString(Z,$){return new hZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(hZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",r5,s5,t5,o5]}};r5=class r5 extends AZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r5().fromBinary(Z,$)}static fromJson(Z,$){return new r5().fromJson(Z,$)}static fromJsonString(Z,$){return new r5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(r5,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};s5=class s5 extends AZ{constructor(Z){super();this.path="",this.recordingDurationMs=iM.zero,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s5().fromBinary(Z,$)}static fromJson(Z,$){return new s5().fromJson(Z,$)}static fromJsonString(Z,$){return new s5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(s5,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",nM]}};t5=class t5 extends AZ{constructor(Z){super();F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new t5().fromBinary(Z,$)}static fromJson(Z,$){return new t5().fromJson(Z,$)}static fromJsonString(Z,$){return new t5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(t5,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};o5=class o5 extends AZ{constructor(Z){super();this.error="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o5().fromBinary(Z,$)}static fromJson(Z,$){return new o5().fromJson(Z,$)}static fromJsonString(Z,$){return new o5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(o5,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as $n,proto3 as rQ}from"@bufbuild/protobuf";var aM="agent.v1.",yB,vZ;var mB=I(()=>{RB();k();yB=class yB extends B{static get runtime(){return N(this,"runtime",rQ)}static $p(){return aM}};vZ=class vZ extends yB{constructor(Z){super();rQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new vZ().fromBinary(Z,$)}static fromJson(Z,$){return new vZ().fromJson(Z,$)}static fromJsonString(Z,$){return new vZ().fromJsonString(Z,$)}static equals(Z,$){return rQ.util.equals(vZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",MZ,hZ]}}});import{Message as Kn,proto3 as v}from"@bufbuild/protobuf";var xH="agent.v1.",s,t6,jB,_B,E6,e5,Z1,$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1,B1,F1,G1,CZ;var SB=I(()=>{k();s=class s extends B{static get runtime(){return N(this,"runtime",v)}static $p(){return xH}};t6=w(v,xH,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),jB=w(v,xH,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),_B=w(v,xH,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1);E6=class E6 extends s{constructor(Z){super();this.x=0,this.y=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new E6().fromBinary(Z,$)}static fromJson(Z,$){return new E6().fromJson(Z,$)}static fromJsonString(Z,$){return new E6().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(E6,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};e5=class e5 extends s{constructor(Z){super();this.toolCallId="",this.actions=[],v.util.initPartial(Z,this)}static fromBinary(Z,$){return new e5().fromBinary(Z,$)}static fromJson(Z,$){return new e5().fromJson(Z,$)}static fromJsonString(Z,$){return new e5().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(e5,Z,$)}static $(){return["ComputerUseArgs|1 tool_call_id 9|2 actions #0*|3 description 9?|4 bind_unmapped_characters 8?|5 desktop_lease_actor_id 9?|6 screenshot_settle_ms 5?",Z1]}};Z1=class Z1 extends s{constructor(Z){super();this.action={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z1().fromBinary(Z,$)}static fromJson(Z,$){return new Z1().fromJson(Z,$)}static fromJsonString(Z,$){return new Z1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(Z1,Z,$)}static $(){return["ComputerUseAction|1 mouse_move #0 action|2 click #1 action|3 mouse_down #2 action|4 mouse_up #3 action|5 drag #4 action|6 scroll #5 action|7 type #6 action|8 key #7 action|9 wait #8 action|10 screenshot #9 action|11 cursor_position #10 action",$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1]}};$1=class $1 extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new $1().fromBinary(Z,$)}static fromJson(Z,$){return new $1().fromJson(Z,$)}static fromJsonString(Z,$){return new $1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals($1,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",E6]}};J1=class J1 extends s{constructor(Z){super();this.button=t6.UNSPECIFIED,this.count=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new J1().fromBinary(Z,$)}static fromJson(Z,$){return new J1().fromJson(Z,$)}static fromJsonString(Z,$){return new J1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(J1,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",E6,t6]}};Y1=class Y1 extends s{constructor(Z){super();this.button=t6.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y1().fromBinary(Z,$)}static fromJson(Z,$){return new Y1().fromJson(Z,$)}static fromJsonString(Z,$){return new Y1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(Y1,Z,$)}static $(){return["MouseDownAction|1 button #0",t6]}};X1=class X1 extends s{constructor(Z){super();this.button=t6.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new X1().fromBinary(Z,$)}static fromJson(Z,$){return new X1().fromJson(Z,$)}static fromJsonString(Z,$){return new X1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(X1,Z,$)}static $(){return["MouseUpAction|1 button #0",t6]}};z1=class z1 extends s{constructor(Z){super();this.path=[],this.button=t6.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new z1().fromBinary(Z,$)}static fromJson(Z,$){return new z1().fromJson(Z,$)}static fromJsonString(Z,$){return new z1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(z1,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",E6,t6]}};K1=class K1 extends s{constructor(Z){super();this.direction=jB.UNSPECIFIED,this.amount=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new K1().fromBinary(Z,$)}static fromJson(Z,$){return new K1().fromJson(Z,$)}static fromJsonString(Z,$){return new K1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(K1,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",E6,jB]}};H1=class H1 extends s{constructor(Z){super();this.text="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new H1().fromBinary(Z,$)}static fromJson(Z,$){return new H1().fromJson(Z,$)}static fromJsonString(Z,$){return new H1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(H1,Z,$)}static $(){return["TypeAction|1 text 9"]}};Q1=class Q1 extends s{constructor(Z){super();this.key="",this.stroke=_B.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q1().fromBinary(Z,$)}static fromJson(Z,$){return new Q1().fromJson(Z,$)}static fromJsonString(Z,$){return new Q1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(Q1,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",_B]}};q1=class q1 extends s{constructor(Z){super();this.durationMs=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new q1().fromBinary(Z,$)}static fromJson(Z,$){return new q1().fromJson(Z,$)}static fromJsonString(Z,$){return new q1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(q1,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};W1=class W1 extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new W1().fromBinary(Z,$)}static fromJson(Z,$){return new W1().fromJson(Z,$)}static fromJsonString(Z,$){return new W1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(W1,Z,$)}static $(){return["ScreenshotAction"]}};N1=class N1 extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new N1().fromBinary(Z,$)}static fromJson(Z,$){return new N1().fromJson(Z,$)}static fromJsonString(Z,$){return new N1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(N1,Z,$)}static $(){return["CursorPositionAction"]}};B1=class B1 extends s{constructor(Z){super();this.result={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new B1().fromBinary(Z,$)}static fromJson(Z,$){return new B1().fromJson(Z,$)}static fromJsonString(Z,$){return new B1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(B1,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",F1,G1]}};F1=class F1 extends s{constructor(Z){super();this.actionCount=0,this.durationMs=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new F1().fromBinary(Z,$)}static fromJson(Z,$){return new F1().fromJson(Z,$)}static fromJsonString(Z,$){return new F1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(F1,Z,$)}static $(){return["ComputerUseSuccess|1 action_count 5|2 duration_ms 5|3 screenshot 9?|4 log 9?|5 screenshot_path 9?|6 cursor_position #0?",E6]}};G1=class G1 extends s{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new G1().fromBinary(Z,$)}static fromJson(Z,$){return new G1().fromJson(Z,$)}static fromJsonString(Z,$){return new G1().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(G1,Z,$)}static $(){return["ComputerUseError|1 error 9|2 action_count 5|3 duration_ms 5|4 log 9?|5 screenshot 9?|6 screenshot_path 9?"]}};CZ=class CZ extends s{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new CZ().fromBinary(Z,$)}static fromJson(Z,$){return new CZ().fromJson(Z,$)}static fromJsonString(Z,$){return new CZ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(CZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",e5,B1]}}});import{Message as Wn,proto3 as y6}from"@bufbuild/protobuf";var rM="agent.v1.",iK,TZ,RZ,L1,w1;var gB=I(()=>{k();iK=class iK extends B{static get runtime(){return N(this,"runtime",y6)}static $p(){return rM}};TZ=class TZ extends iK{constructor(Z){super();this.shellId=0,this.chars="",y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return y6.util.equals(TZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};RZ=class RZ extends iK{constructor(Z){super();this.result={case:void 0},y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new RZ().fromBinary(Z,$)}static fromJson(Z,$){return new RZ().fromJson(Z,$)}static fromJsonString(Z,$){return new RZ().fromJsonString(Z,$)}static equals(Z,$){return y6.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",L1,w1]}};L1=class L1 extends iK{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new L1().fromBinary(Z,$)}static fromJson(Z,$){return new L1().fromJson(Z,$)}static fromJsonString(Z,$){return new L1().fromJsonString(Z,$)}static equals(Z,$){return y6.util.equals(L1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};w1=class w1 extends iK{constructor(Z){super();this.error="",y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new w1().fromBinary(Z,$)}static fromJson(Z,$){return new w1().fromJson(Z,$)}static fromJsonString(Z,$){return new w1().fromJsonString(Z,$)}static equals(Z,$){return y6.util.equals(w1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as Gn,proto3 as sQ}from"@bufbuild/protobuf";var sM="agent.v1.",bB,yZ;var dB=I(()=>{gB();k();bB=class bB extends B{static get runtime(){return N(this,"runtime",sQ)}static $p(){return sM}};yZ=class yZ extends bB{constructor(Z){super();sQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new yZ().fromBinary(Z,$)}static fromJson(Z,$){return new yZ().fromJson(Z,$)}static fromJsonString(Z,$){return new yZ().fromJsonString(Z,$)}static equals(Z,$){return sQ.util.equals(yZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",TZ,RZ]}}});import{Message as Un,proto3 as o0}from"@bufbuild/protobuf";var tM="agent.v1.",k1,D1,I1,U1,O1,mZ;var cB=I(()=>{k();k1=class k1 extends B{static get runtime(){return N(this,"runtime",o0)}static $p(){return tM}};D1=class D1 extends k1{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(D1,Z,$)}static $(){return["ReflectArgs|1 unexpected_action_outcomes 9|2 relevant_instructions 9|3 scenario_analysis 9|4 critical_synthesis 9|5 next_steps 9|6 tool_call_id 9"]}};I1=class I1 extends k1{constructor(Z){super();this.result={case:void 0},o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new I1().fromBinary(Z,$)}static fromJson(Z,$){return new I1().fromJson(Z,$)}static fromJsonString(Z,$){return new I1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(I1,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",U1,O1]}};U1=class U1 extends k1{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new U1().fromBinary(Z,$)}static fromJson(Z,$){return new U1().fromJson(Z,$)}static fromJsonString(Z,$){return new U1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(U1,Z,$)}static $(){return["ReflectSuccess"]}};O1=class O1 extends k1{constructor(Z){super();this.error="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O1().fromBinary(Z,$)}static fromJson(Z,$){return new O1().fromJson(Z,$)}static fromJsonString(Z,$){return new O1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(O1,Z,$)}static $(){return["ReflectError|1 error 9"]}};mZ=class mZ extends k1{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new mZ().fromBinary(Z,$)}static fromJson(Z,$){return new mZ().fromJson(Z,$)}static fromJsonString(Z,$){return new mZ().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(mZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",D1,I1]}}});import{Message as En,proto3 as m6}from"@bufbuild/protobuf";var oM="agent.v1.",nK,jZ,o6,f1,_Z;var uB=I(()=>{k();nK=class nK extends B{static get runtime(){return N(this,"runtime",m6)}static $p(){return oM}};jZ=class jZ extends nK{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",m6.util.initPartial(Z,this)}static fromBinary(Z,$){return new jZ().fromBinary(Z,$)}static fromJson(Z,$){return new jZ().fromJson(Z,$)}static fromJsonString(Z,$){return new jZ().fromJsonString(Z,$)}static equals(Z,$){return m6.util.equals(jZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};o6=class o6 extends nK{constructor(Z){super();this.result={case:void 0},m6.util.initPartial(Z,this)}static fromBinary(Z,$){return new o6().fromBinary(Z,$)}static fromJson(Z,$){return new o6().fromJson(Z,$)}static fromJsonString(Z,$){return new o6().fromJsonString(Z,$)}static equals(Z,$){return m6.util.equals(o6,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",f1]}};f1=class f1 extends nK{constructor(Z){super();m6.util.initPartial(Z,this)}static fromBinary(Z,$){return new f1().fromBinary(Z,$)}static fromJson(Z,$){return new f1().fromJson(Z,$)}static fromJsonString(Z,$){return new f1().fromJsonString(Z,$)}static equals(Z,$){return m6.util.equals(f1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};_Z=class _Z extends nK{constructor(Z){super();m6.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Z().fromBinary(Z,$)}static fromJson(Z,$){return new _Z().fromJson(Z,$)}static fromJsonString(Z,$){return new _Z().fromJsonString(Z,$)}static equals(Z,$){return m6.util.equals(_Z,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",jZ,o6]}}});import{Message as Mn,proto3 as e0}from"@bufbuild/protobuf";var eM="agent.v1.",M1,E1,P1,V1,x1,SZ;var lB=I(()=>{k();M1=class M1 extends B{static get runtime(){return N(this,"runtime",e0)}static $p(){return eM}};E1=class E1 extends M1{constructor(Z){super();this.toolCallId="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E1().fromBinary(Z,$)}static fromJson(Z,$){return new E1().fromJson(Z,$)}static fromJsonString(Z,$){return new E1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(E1,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};P1=class P1 extends M1{constructor(Z){super();this.result={case:void 0},e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P1().fromBinary(Z,$)}static fromJson(Z,$){return new P1().fromJson(Z,$)}static fromJsonString(Z,$){return new P1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(P1,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",V1,x1]}};V1=class V1 extends M1{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V1().fromBinary(Z,$)}static fromJson(Z,$){return new V1().fromJson(Z,$)}static fromJsonString(Z,$){return new V1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(V1,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};x1=class x1 extends M1{constructor(Z){super();this.error="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x1().fromBinary(Z,$)}static fromJson(Z,$){return new x1().fromJson(Z,$)}static fromJsonString(Z,$){return new x1().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(x1,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};SZ=class SZ extends M1{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new SZ().fromBinary(Z,$)}static fromJson(Z,$){return new SZ().fromJson(Z,$)}static fromJsonString(Z,$){return new SZ().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(SZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",E1,P1]}}});import{Message as Cn,proto3 as Z6}from"@bufbuild/protobuf";var Zh="agent.v1.",T1,h1,A1,v1,C1,gZ;var pB=I(()=>{k();T1=class T1 extends B{static get runtime(){return N(this,"runtime",Z6)}static $p(){return Zh}};h1=class h1 extends T1{constructor(Z){super();this.toolCallId="",Z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new h1().fromBinary(Z,$)}static fromJson(Z,$){return new h1().fromJson(Z,$)}static fromJsonString(Z,$){return new h1().fromJsonString(Z,$)}static equals(Z,$){return Z6.util.equals(h1,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};A1=class A1 extends T1{constructor(Z){super();this.result={case:void 0},Z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new A1().fromBinary(Z,$)}static fromJson(Z,$){return new A1().fromJson(Z,$)}static fromJsonString(Z,$){return new A1().fromJsonString(Z,$)}static equals(Z,$){return Z6.util.equals(A1,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",v1,C1]}};v1=class v1 extends T1{constructor(Z){super();Z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new v1().fromBinary(Z,$)}static fromJson(Z,$){return new v1().fromJson(Z,$)}static fromJsonString(Z,$){return new v1().fromJsonString(Z,$)}static equals(Z,$){return Z6.util.equals(v1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};C1=class C1 extends T1{constructor(Z){super();this.error="",Z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new C1().fromBinary(Z,$)}static fromJson(Z,$){return new C1().fromJson(Z,$)}static fromJsonString(Z,$){return new C1().fromJsonString(Z,$)}static equals(Z,$){return Z6.util.equals(C1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};gZ=class gZ extends T1{constructor(Z){super();Z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new gZ().fromBinary(Z,$)}static fromJson(Z,$){return new gZ().fromJson(Z,$)}static fromJsonString(Z,$){return new gZ().fromJsonString(Z,$)}static equals(Z,$){return Z6.util.equals(gZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",h1,A1]}}});import{Message as mn,proto3 as t}from"@bufbuild/protobuf";var $h="agent.v1.",P6,R1,y1,m1,j1,_1,bZ,dZ,S1,g1;var iB=I(()=>{x8();k();P6=class P6 extends B{static get runtime(){return N(this,"runtime",t)}static $p(){return $h}};R1=class R1 extends P6{constructor(Z){super();this.url="",this.toolCallId="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new R1().fromBinary(Z,$)}static fromJson(Z,$){return new R1().fromJson(Z,$)}static fromJsonString(Z,$){return new R1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(R1,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};y1=class y1 extends P6{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new y1().fromBinary(Z,$)}static fromJson(Z,$){return new y1().fromJson(Z,$)}static fromJsonString(Z,$){return new y1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(y1,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",m1,j1,_1]}};m1=class m1 extends P6{constructor(Z){super();this.url="",this.markdown="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new m1().fromBinary(Z,$)}static fromJson(Z,$){return new m1().fromJson(Z,$)}static fromJsonString(Z,$){return new m1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(m1,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",q0]}};j1=class j1 extends P6{constructor(Z){super();this.url="",this.error="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new j1().fromBinary(Z,$)}static fromJson(Z,$){return new j1().fromJson(Z,$)}static fromJsonString(Z,$){return new j1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(j1,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};_1=class _1 extends P6{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new _1().fromBinary(Z,$)}static fromJson(Z,$){return new _1().fromJson(Z,$)}static fromJsonString(Z,$){return new _1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(_1,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};bZ=class bZ extends P6{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new bZ().fromBinary(Z,$)}static fromJson(Z,$){return new bZ().fromJson(Z,$)}static fromJsonString(Z,$){return new bZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(bZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",R1,y1]}};dZ=class dZ extends P6{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new dZ().fromBinary(Z,$)}static fromJson(Z,$){return new dZ().fromJson(Z,$)}static fromJsonString(Z,$){return new dZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(dZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",S1,g1]}};S1=class S1 extends P6{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new S1().fromBinary(Z,$)}static fromJson(Z,$){return new S1().fromJson(Z,$)}static fromJsonString(Z,$){return new S1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(S1,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};g1=class g1 extends P6{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new g1().fromBinary(Z,$)}static fromJson(Z,$){return new g1().fromJson(Z,$)}static fromJsonString(Z,$){return new g1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(g1,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as bn,proto3 as M0}from"@bufbuild/protobuf";var aB="agent.v1.",lZ,nB,cZ,b1,d1,c1,u1,uZ;var rB=I(()=>{k();lZ=class lZ extends B{static get runtime(){return N(this,"runtime",M0)}static $p(){return aB}};nB=w(M0,aB,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);cZ=class cZ extends lZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=nB.UNSPECIFIED,this.explanation="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new cZ().fromBinary(Z,$)}static fromJson(Z,$){return new cZ().fromJson(Z,$)}static fromJsonString(Z,$){return new cZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(cZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",nB]}};b1=class b1 extends lZ{constructor(Z){super();this.summary="",this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b1().fromBinary(Z,$)}static fromJson(Z,$){return new b1().fromJson(Z,$)}static fromJsonString(Z,$){return new b1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(b1,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",cZ]}};d1=class d1 extends lZ{constructor(Z){super();this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d1().fromBinary(Z,$)}static fromJson(Z,$){return new d1().fromJson(Z,$)}static fromJsonString(Z,$){return new d1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(d1,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",cZ]}};c1=class c1 extends lZ{constructor(Z){super();this.error="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c1().fromBinary(Z,$)}static fromJson(Z,$){return new c1().fromJson(Z,$)}static fromJsonString(Z,$){return new c1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(c1,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};u1=class u1 extends lZ{constructor(Z){super();this.result={case:void 0},M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u1().fromBinary(Z,$)}static fromJson(Z,$){return new u1().fromJson(Z,$)}static fromJsonString(Z,$){return new u1().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(u1,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",d1,c1]}};uZ=class uZ extends lZ{constructor(Z){super();M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uZ().fromBinary(Z,$)}static fromJson(Z,$){return new uZ().fromJson(Z,$)}static fromJsonString(Z,$){return new uZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(uZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",b1,u1]}}});import{Message as ln,proto3 as $6}from"@bufbuild/protobuf";var Jh="agent.v1.",a1,l1,p1,i1,n1,pZ;var sB=I(()=>{x8();k();a1=class a1 extends B{static get runtime(){return N(this,"runtime",$6)}static $p(){return Jh}};l1=class l1 extends a1{constructor(Z){super();this.filePaths=[],this.commitHashes=[],$6.util.initPartial(Z,this)}static fromBinary(Z,$){return new l1().fromBinary(Z,$)}static fromJson(Z,$){return new l1().fromJson(Z,$)}static fromJsonString(Z,$){return new l1().fromJsonString(Z,$)}static equals(Z,$){return $6.util.equals(l1,Z,$)}static $(){return["AiAttributionArgs|5 file_paths 9*|2 start_line 5?|3 end_line 5?|6 commit_hashes 9*|7 output_mode 9?|9 max_commits 5?|10 include_line_ranges 8?"]}};p1=class p1 extends a1{constructor(Z){super();this.result={case:void 0},$6.util.initPartial(Z,this)}static fromBinary(Z,$){return new p1().fromBinary(Z,$)}static fromJson(Z,$){return new p1().fromJson(Z,$)}static fromJsonString(Z,$){return new p1().fromJsonString(Z,$)}static equals(Z,$){return $6.util.equals(p1,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",i1,n1]}};i1=class i1 extends a1{constructor(Z){super();this.attributionText="",$6.util.initPartial(Z,this)}static fromBinary(Z,$){return new i1().fromBinary(Z,$)}static fromJson(Z,$){return new i1().fromJson(Z,$)}static fromJsonString(Z,$){return new i1().fromJsonString(Z,$)}static equals(Z,$){return $6.util.equals(i1,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",q0]}};n1=class n1 extends a1{constructor(Z){super();this.error="",$6.util.initPartial(Z,this)}static fromBinary(Z,$){return new n1().fromBinary(Z,$)}static fromJson(Z,$){return new n1().fromJson(Z,$)}static fromJsonString(Z,$){return new n1().fromJsonString(Z,$)}static equals(Z,$){return $6.util.equals(n1,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};pZ=class pZ extends a1{constructor(Z){super();$6.util.initPartial(Z,this)}static fromBinary(Z,$){return new pZ().fromBinary(Z,$)}static fromJson(Z,$){return new pZ().fromJson(Z,$)}static fromJsonString(Z,$){return new pZ().fromJsonString(Z,$)}static equals(Z,$){return $6.util.equals(pZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",l1,p1]}}});import{Message as sn,proto3 as y,protoInt64 as Yh}from"@bufbuild/protobuf";var oB="agent.v1.",G0,tB,r1,s1,t1,o1,e1,ZJ,$J,e6,JJ,YJ,XJ,zJ,KJ,iZ;var eB=I(()=>{k();G0=class G0 extends B{static get runtime(){return N(this,"runtime",y)}static $p(){return oB}};tB=w(y,oB,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);r1=class r1 extends G0{constructor(Z){super();this.toolCallId="",this.action={case:void 0},y.util.initPartial(Z,this)}static fromBinary(Z,$){return new r1().fromBinary(Z,$)}static fromJson(Z,$){return new r1().fromJson(Z,$)}static fromJsonString(Z,$){return new r1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(r1,Z,$)}static $(){return["PrManagementArgs|1 tool_call_id 9|2 create_pr #0 action|3 update_pr #1 action|4 post_comment #2 action|5 resolve_comment #3 action|6 get_ci_status #4 action|7 set_pr_status #5 action",s1,t1,o1,e1,ZJ,$J]}};s1=class s1 extends G0{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],y.util.initPartial(Z,this)}static fromBinary(Z,$){return new s1().fromBinary(Z,$)}static fromJson(Z,$){return new s1().fromJson(Z,$)}static fromJsonString(Z,$){return new s1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(s1,Z,$)}static $(){return["CreatePrAction|1 title 9|2 body 9|3 base_branch 9?|4 draft 8?|5 branch_name 9|6 add_labels 9*|7 repo_url 9?|8 skip_branch_prefix_check 8?|9 stack_on_pr_number 3?"]}};t1=class t1 extends G0{constructor(Z){super();this.addLabels=[],this.removeLabels=[],y.util.initPartial(Z,this)}static fromBinary(Z,$){return new t1().fromBinary(Z,$)}static fromJson(Z,$){return new t1().fromJson(Z,$)}static fromJsonString(Z,$){return new t1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(t1,Z,$)}static $(){return["UpdatePrAction|1 pr_url 9?|2 title 9?|3 body 9?|4 base_branch 9?|5 branch_name 9?|6 add_labels 9*|7 remove_labels 9*|8 repo_url 9?|9 stack_on_pr_number 3?|10 clear_stack 8?|11 draft 8?"]}};o1=class o1 extends G0{constructor(Z){super();this.body="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new o1().fromBinary(Z,$)}static fromJson(Z,$){return new o1().fromJson(Z,$)}static fromJsonString(Z,$){return new o1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(o1,Z,$)}static $(){return["PostCommentAction|1 pr_url 9?|2 branch_name 9?|3 body 9|4 repo_url 9?|5 in_reply_to 3?|6 path 9?|7 line 5?|8 start_line 5?|9 side 9?|10 reply_to_reference 9?"]}};e1=class e1 extends G0{constructor(Z){super();this.commentId=Yh.zero,y.util.initPartial(Z,this)}static fromBinary(Z,$){return new e1().fromBinary(Z,$)}static fromJson(Z,$){return new e1().fromJson(Z,$)}static fromJsonString(Z,$){return new e1().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(e1,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};ZJ=class ZJ extends G0{constructor(Z){super();y.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZJ().fromBinary(Z,$)}static fromJson(Z,$){return new ZJ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(ZJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};$J=class $J extends G0{constructor(Z){super();this.status=tB.UNSPECIFIED,y.util.initPartial(Z,this)}static fromBinary(Z,$){return new $J().fromBinary(Z,$)}static fromJson(Z,$){return new $J().fromJson(Z,$)}static fromJsonString(Z,$){return new $J().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals($J,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",tB]}};e6=class e6 extends G0{constructor(Z){super();this.result={case:void 0},y.util.initPartial(Z,this)}static fromBinary(Z,$){return new e6().fromBinary(Z,$)}static fromJson(Z,$){return new e6().fromJson(Z,$)}static fromJsonString(Z,$){return new e6().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(e6,Z,$)}static $(){return["PrManagementResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 registered #3 result|5 needs_confirmation #4 result",JJ,YJ,XJ,zJ,KJ]}};JJ=class JJ extends G0{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new JJ().fromBinary(Z,$)}static fromJson(Z,$){return new JJ().fromJson(Z,$)}static fromJsonString(Z,$){return new JJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(JJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};YJ=class YJ extends G0{constructor(Z){super();this.error="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new YJ().fromBinary(Z,$)}static fromJson(Z,$){return new YJ().fromJson(Z,$)}static fromJsonString(Z,$){return new YJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(YJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};XJ=class XJ extends G0{constructor(Z){super();this.reason="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new XJ().fromBinary(Z,$)}static fromJson(Z,$){return new XJ().fromJson(Z,$)}static fromJsonString(Z,$){return new XJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(XJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};zJ=class zJ extends G0{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new zJ().fromBinary(Z,$)}static fromJson(Z,$){return new zJ().fromJson(Z,$)}static fromJsonString(Z,$){return new zJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(zJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};KJ=class KJ extends G0{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",y.util.initPartial(Z,this)}static fromBinary(Z,$){return new KJ().fromBinary(Z,$)}static fromJson(Z,$){return new KJ().fromJson(Z,$)}static fromJsonString(Z,$){return new KJ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(KJ,Z,$)}static $(){return["PrManagementNeedsConfirmation|1 message 9|2 discovered_pr_url 9|3 discovered_pr_number 5|4 discovered_pr_title 9|5 branch_name 9"]}};iZ=class iZ extends G0{constructor(Z){super();y.util.initPartial(Z,this)}static fromBinary(Z,$){return new iZ().fromBinary(Z,$)}static fromJson(Z,$){return new iZ().fromJson(Z,$)}static fromJsonString(Z,$){return new iZ().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(iZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",r1,e6]}}});import{Message as Za,proto3 as o}from"@bufbuild/protobuf";var Xh="agent.v1.",V6,HJ,QJ,qJ,WJ,NJ,nZ,aZ,BJ,FJ;var ZF=I(()=>{k();V6=class V6 extends B{static get runtime(){return N(this,"runtime",o)}static $p(){return Xh}};HJ=class HJ extends V6{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new HJ().fromBinary(Z,$)}static fromJson(Z,$){return new HJ().fromJson(Z,$)}static fromJsonString(Z,$){return new HJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(HJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};QJ=class QJ extends V6{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new QJ().fromBinary(Z,$)}static fromJson(Z,$){return new QJ().fromJson(Z,$)}static fromJsonString(Z,$){return new QJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(QJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",qJ,WJ,NJ]}};qJ=class qJ extends V6{constructor(Z){super();this.serverIdentifier="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new qJ().fromBinary(Z,$)}static fromJson(Z,$){return new qJ().fromJson(Z,$)}static fromJsonString(Z,$){return new qJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(qJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};WJ=class WJ extends V6{constructor(Z){super();this.error="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new WJ().fromBinary(Z,$)}static fromJson(Z,$){return new WJ().fromJson(Z,$)}static fromJsonString(Z,$){return new WJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(WJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};NJ=class NJ extends V6{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new NJ().fromBinary(Z,$)}static fromJson(Z,$){return new NJ().fromJson(Z,$)}static fromJsonString(Z,$){return new NJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(NJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};nZ=class nZ extends V6{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new nZ().fromBinary(Z,$)}static fromJson(Z,$){return new nZ().fromJson(Z,$)}static fromJsonString(Z,$){return new nZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(nZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",HJ,QJ]}};aZ=class aZ extends V6{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new aZ().fromBinary(Z,$)}static fromJson(Z,$){return new aZ().fromJson(Z,$)}static fromJsonString(Z,$){return new aZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(aZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",BJ,FJ]}};BJ=class BJ extends V6{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new BJ().fromBinary(Z,$)}static fromJson(Z,$){return new BJ().fromJson(Z,$)}static fromJsonString(Z,$){return new BJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(BJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};FJ=class FJ extends V6{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new FJ().fromBinary(Z,$)}static fromJson(Z,$){return new FJ().fromJson(Z,$)}static fromJsonString(Z,$){return new FJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(FJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as Xa,proto3 as L0,protoInt64 as MH}from"@bufbuild/protobuf";var zh="agent.v1.",Z8,GJ,rZ,sZ,LJ,wJ,DJ,tZ;var $F=I(()=>{k();Z8=class Z8 extends B{static get runtime(){return N(this,"runtime",L0)}static $p(){return zh}};GJ=class GJ extends Z8{constructor(Z){super();this.taskId="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GJ().fromBinary(Z,$)}static fromJson(Z,$){return new GJ().fromJson(Z,$)}static fromJsonString(Z,$){return new GJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(GJ,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};rZ=class rZ extends Z8{constructor(Z){super();this.taskId="",this.runtimeMs=MH.zero,this.outputFilePath="",this.outputLength=MH.zero,this.regexRequested=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rZ().fromBinary(Z,$)}static fromJson(Z,$){return new rZ().fromJson(Z,$)}static fromJsonString(Z,$){return new rZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(rZ,Z,$)}static $(){return["AwaitTaskComplete|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 exit_code 17?|8 wake_reason 9?"]}};sZ=class sZ extends Z8{constructor(Z){super();this.taskId="",this.runtimeMs=MH.zero,this.outputFilePath="",this.outputLength=MH.zero,this.regexRequested=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new sZ().fromBinary(Z,$)}static fromJson(Z,$){return new sZ().fromJson(Z,$)}static fromJsonString(Z,$){return new sZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(sZ,Z,$)}static $(){return["AwaitTaskStillRunning|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 wake_reason 9?"]}};LJ=class LJ extends Z8{constructor(Z){super();this.error="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LJ().fromBinary(Z,$)}static fromJson(Z,$){return new LJ().fromJson(Z,$)}static fromJsonString(Z,$){return new LJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(LJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};wJ=class wJ extends Z8{constructor(Z){super();this.awaitResult={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wJ().fromBinary(Z,$)}static fromJson(Z,$){return new wJ().fromJson(Z,$)}static fromJsonString(Z,$){return new wJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(wJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",rZ,sZ]}};DJ=class DJ extends Z8{constructor(Z){super();this.result={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DJ().fromBinary(Z,$)}static fromJson(Z,$){return new DJ().fromJson(Z,$)}static fromJsonString(Z,$){return new DJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(DJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",rZ,sZ,LJ,wJ]}};tZ=class tZ extends Z8{constructor(Z){super();L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new tZ().fromBinary(Z,$)}static fromJson(Z,$){return new tZ().fromJson(Z,$)}static fromJsonString(Z,$){return new tZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(tZ,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",GJ,DJ]}}});import{Message as Qa,proto3 as J6}from"@bufbuild/protobuf";var Kh="agent.v1.",fJ,IJ,UJ,OJ,kJ,oZ;var JF=I(()=>{k();fJ=class fJ extends B{static get runtime(){return N(this,"runtime",J6)}static $p(){return Kh}};IJ=class IJ extends fJ{constructor(Z){super();this.filePath="",J6.util.initPartial(Z,this)}static fromBinary(Z,$){return new IJ().fromBinary(Z,$)}static fromJson(Z,$){return new IJ().fromJson(Z,$)}static fromJsonString(Z,$){return new IJ().fromJsonString(Z,$)}static equals(Z,$){return J6.util.equals(IJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};UJ=class UJ extends fJ{constructor(Z){super();this.content="",J6.util.initPartial(Z,this)}static fromBinary(Z,$){return new UJ().fromBinary(Z,$)}static fromJson(Z,$){return new UJ().fromJson(Z,$)}static fromJsonString(Z,$){return new UJ().fromJsonString(Z,$)}static equals(Z,$){return J6.util.equals(UJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};OJ=class OJ extends fJ{constructor(Z){super();this.errorMessage="",J6.util.initPartial(Z,this)}static fromBinary(Z,$){return new OJ().fromBinary(Z,$)}static fromJson(Z,$){return new OJ().fromJson(Z,$)}static fromJsonString(Z,$){return new OJ().fromJsonString(Z,$)}static equals(Z,$){return J6.util.equals(OJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};kJ=class kJ extends fJ{constructor(Z){super();this.result={case:void 0},J6.util.initPartial(Z,this)}static fromBinary(Z,$){return new kJ().fromBinary(Z,$)}static fromJson(Z,$){return new kJ().fromJson(Z,$)}static fromJsonString(Z,$){return new kJ().fromJsonString(Z,$)}static equals(Z,$){return J6.util.equals(kJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",UJ,OJ]}};oZ=class oZ extends fJ{constructor(Z){super();J6.util.initPartial(Z,this)}static fromBinary(Z,$){return new oZ().fromBinary(Z,$)}static fromJson(Z,$){return new oZ().fromJson(Z,$)}static fromJsonString(Z,$){return new oZ().fromJsonString(Z,$)}static equals(Z,$){return J6.util.equals(oZ,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",IJ,kJ]}}});import{Message as Ba,proto3 as Y6}from"@bufbuild/protobuf";var Hh="agent.v1.",MJ,EJ,PJ,VJ,xJ,eZ;var YF=I(()=>{k();MJ=class MJ extends B{static get runtime(){return N(this,"runtime",Y6)}static $p(){return Hh}};EJ=class EJ extends MJ{constructor(Z){super();this.toolCallId="",Y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new EJ().fromBinary(Z,$)}static fromJson(Z,$){return new EJ().fromJson(Z,$)}static fromJsonString(Z,$){return new EJ().fromJsonString(Z,$)}static equals(Z,$){return Y6.util.equals(EJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};PJ=class PJ extends MJ{constructor(Z){super();this.result={case:void 0},Y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new PJ().fromBinary(Z,$)}static fromJson(Z,$){return new PJ().fromJson(Z,$)}static fromJsonString(Z,$){return new PJ().fromJsonString(Z,$)}static equals(Z,$){return Y6.util.equals(PJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",VJ,xJ]}};VJ=class VJ extends MJ{constructor(Z){super();this.content="",Y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new VJ().fromBinary(Z,$)}static fromJson(Z,$){return new VJ().fromJson(Z,$)}static fromJsonString(Z,$){return new VJ().fromJsonString(Z,$)}static equals(Z,$){return Y6.util.equals(VJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};xJ=class xJ extends MJ{constructor(Z){super();this.error="",Y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new xJ().fromBinary(Z,$)}static fromJson(Z,$){return new xJ().fromJson(Z,$)}static fromJsonString(Z,$){return new xJ().fromJsonString(Z,$)}static equals(Z,$){return Y6.util.equals(xJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};eZ=class eZ extends MJ{constructor(Z){super();Y6.util.initPartial(Z,this)}static fromBinary(Z,$){return new eZ().fromBinary(Z,$)}static fromJson(Z,$){return new eZ().fromJson(Z,$)}static fromJsonString(Z,$){return new eZ().fromJsonString(Z,$)}static equals(Z,$){return Y6.util.equals(eZ,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",EJ,PJ]}}});import{Message as wa,proto3 as X6}from"@bufbuild/protobuf";var Qh="agent.v1.",TJ,hJ,AJ,vJ,CJ,Z$;var XF=I(()=>{k();TJ=class TJ extends B{static get runtime(){return N(this,"runtime",X6)}static $p(){return Qh}};hJ=class hJ extends TJ{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",X6.util.initPartial(Z,this)}static fromBinary(Z,$){return new hJ().fromBinary(Z,$)}static fromJson(Z,$){return new hJ().fromJson(Z,$)}static fromJsonString(Z,$){return new hJ().fromJsonString(Z,$)}static equals(Z,$){return X6.util.equals(hJ,Z,$)}static $(){return["ReportBugArgs|1 title 9|2 file 9|3 start_line 5|4 end_line 5|5 description 9|6 severity 9|7 category 9|8 rationale 9"]}};AJ=class AJ extends TJ{constructor(Z){super();this.output="",X6.util.initPartial(Z,this)}static fromBinary(Z,$){return new AJ().fromBinary(Z,$)}static fromJson(Z,$){return new AJ().fromJson(Z,$)}static fromJsonString(Z,$){return new AJ().fromJsonString(Z,$)}static equals(Z,$){return X6.util.equals(AJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};vJ=class vJ extends TJ{constructor(Z){super();this.errorMessage="",X6.util.initPartial(Z,this)}static fromBinary(Z,$){return new vJ().fromBinary(Z,$)}static fromJson(Z,$){return new vJ().fromJson(Z,$)}static fromJsonString(Z,$){return new vJ().fromJsonString(Z,$)}static equals(Z,$){return X6.util.equals(vJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};CJ=class CJ extends TJ{constructor(Z){super();this.result={case:void 0},X6.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return X6.util.equals(CJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",AJ,vJ]}};Z$=class Z$ extends TJ{constructor(Z){super();X6.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z$().fromBinary(Z,$)}static fromJson(Z,$){return new Z$().fromJson(Z,$)}static fromJsonString(Z,$){return new Z$().fromJsonString(Z,$)}static equals(Z,$){return X6.util.equals(Z$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",hJ,CJ]}}});import{Message as Oa,proto3 as z6}from"@bufbuild/protobuf";var qh="agent.v1.",_J,RJ,yJ,mJ,jJ,$$;var zF=I(()=>{k();_J=class _J extends B{static get runtime(){return N(this,"runtime",z6)}static $p(){return qh}};RJ=class RJ extends _J{constructor(Z){super();z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new RJ().fromBinary(Z,$)}static fromJson(Z,$){return new RJ().fromJson(Z,$)}static fromJsonString(Z,$){return new RJ().fromJsonString(Z,$)}static equals(Z,$){return z6.util.equals(RJ,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};yJ=class yJ extends _J{constructor(Z){super();this.currentStep="",this.messageIndex=0,z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new yJ().fromBinary(Z,$)}static fromJson(Z,$){return new yJ().fromJson(Z,$)}static fromJsonString(Z,$){return new yJ().fromJsonString(Z,$)}static equals(Z,$){return z6.util.equals(yJ,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};mJ=class mJ extends _J{constructor(Z){super();this.error="",z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new mJ().fromBinary(Z,$)}static fromJson(Z,$){return new mJ().fromJson(Z,$)}static fromJsonString(Z,$){return new mJ().fromJsonString(Z,$)}static equals(Z,$){return z6.util.equals(mJ,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};jJ=class jJ extends _J{constructor(Z){super();this.result={case:void 0},z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new jJ().fromBinary(Z,$)}static fromJson(Z,$){return new jJ().fromJson(Z,$)}static fromJsonString(Z,$){return new jJ().fromJsonString(Z,$)}static equals(Z,$){return z6.util.equals(jJ,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",yJ,mJ]}};$$=class $$ extends _J{constructor(Z){super();z6.util.initPartial(Z,this)}static fromBinary(Z,$){return new $$().fromBinary(Z,$)}static fromJson(Z,$){return new $$().fromJson(Z,$)}static fromJsonString(Z,$){return new $$().fromJsonString(Z,$)}static equals(Z,$){return z6.util.equals($$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",RJ,jJ]}}});import{Message as Pa,proto3 as K6}from"@bufbuild/protobuf";var Wh="agent.v1.",cJ,SJ,gJ,bJ,dJ,J$;var KF=I(()=>{k();cJ=class cJ extends B{static get runtime(){return N(this,"runtime",K6)}static $p(){return Wh}};SJ=class SJ extends cJ{constructor(Z){super();K6.util.initPartial(Z,this)}static fromBinary(Z,$){return new SJ().fromBinary(Z,$)}static fromJson(Z,$){return new SJ().fromJson(Z,$)}static fromJsonString(Z,$){return new SJ().fromJsonString(Z,$)}static equals(Z,$){return K6.util.equals(SJ,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};gJ=class gJ extends cJ{constructor(Z){super();this.finalSummary="",K6.util.initPartial(Z,this)}static fromBinary(Z,$){return new gJ().fromBinary(Z,$)}static fromJson(Z,$){return new gJ().fromJson(Z,$)}static fromJsonString(Z,$){return new gJ().fromJsonString(Z,$)}static equals(Z,$){return K6.util.equals(gJ,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};bJ=class bJ extends cJ{constructor(Z){super();this.error="",K6.util.initPartial(Z,this)}static fromBinary(Z,$){return new bJ().fromBinary(Z,$)}static fromJson(Z,$){return new bJ().fromJson(Z,$)}static fromJsonString(Z,$){return new bJ().fromJsonString(Z,$)}static equals(Z,$){return K6.util.equals(bJ,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};dJ=class dJ extends cJ{constructor(Z){super();this.result={case:void 0},K6.util.initPartial(Z,this)}static fromBinary(Z,$){return new dJ().fromBinary(Z,$)}static fromJson(Z,$){return new dJ().fromJson(Z,$)}static fromJsonString(Z,$){return new dJ().fromJsonString(Z,$)}static equals(Z,$){return K6.util.equals(dJ,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",gJ,bJ]}};J$=class J$ extends cJ{constructor(Z){super();K6.util.initPartial(Z,this)}static fromBinary(Z,$){return new J$().fromBinary(Z,$)}static fromJson(Z,$){return new J$().fromJson(Z,$)}static fromJsonString(Z,$){return new J$().fromJsonString(Z,$)}static equals(Z,$){return K6.util.equals(J$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",SJ,dJ]}}});import{Message as ha,proto3 as b0}from"@bufbuild/protobuf";var QF="agent.v1.",nJ,HF,uJ,lJ,pJ,iJ,Y$;var qF=I(()=>{k();nJ=class nJ extends B{static get runtime(){return N(this,"runtime",b0)}static $p(){return QF}};HF=w(b0,QF,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);uJ=class uJ extends nJ{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uJ().fromBinary(Z,$)}static fromJson(Z,$){return new uJ().fromJson(Z,$)}static fromJsonString(Z,$){return new uJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(uJ,Z,$)}static $(){return["UpdatePrCodeTourArgs|1 feedback 9|2 tool_call_id 9|3 base_sha 9?|4 head_sha 9?|5 source_revision_id 9?|6 revision_id 9?|7 markdown 9?|8 heading 9?|9 artifact_path 9?|10 artifact_alt 9?|11 scope_commit_hashes 9*|12 explicit_user_prompt 9?"]}};lJ=class lJ extends nJ{constructor(Z){super();this.result={case:void 0},b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new lJ().fromBinary(Z,$)}static fromJson(Z,$){return new lJ().fromJson(Z,$)}static fromJsonString(Z,$){return new lJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(lJ,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",pJ,iJ]}};pJ=class pJ extends nJ{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=HF.UNSPECIFIED,b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pJ().fromBinary(Z,$)}static fromJson(Z,$){return new pJ().fromJson(Z,$)}static fromJsonString(Z,$){return new pJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(pJ,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",HF]}};iJ=class iJ extends nJ{constructor(Z){super();this.error="",b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new iJ().fromBinary(Z,$)}static fromJson(Z,$){return new iJ().fromJson(Z,$)}static fromJsonString(Z,$){return new iJ().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(iJ,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};Y$=class Y$ extends nJ{constructor(Z){super();b0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y$().fromBinary(Z,$)}static fromJson(Z,$){return new Y$().fromJson(Z,$)}static fromJsonString(Z,$){return new Y$().fromJsonString(Z,$)}static equals(Z,$){return b0.util.equals(Y$,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",uJ,lJ]}}});import{Message as Ta,proto3 as z0}from"@bufbuild/protobuf";var NF="agent.v1.",J8,WF,aJ,rJ,X$,sJ,tJ,$8,z$;var BF=I(()=>{k();J8=class J8 extends B{static get runtime(){return N(this,"runtime",z0)}static $p(){return NF}};WF=w(z0,NF,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);aJ=class aJ extends J8{constructor(Z){super();this.repoUrl="",this.ref="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new aJ().fromBinary(Z,$)}static fromJson(Z,$){return new aJ().fromJson(Z,$)}static fromJsonString(Z,$){return new aJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(aJ,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};rJ=class rJ extends J8{constructor(Z){super();this.installScript="",this.dockerfileContents="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rJ().fromBinary(Z,$)}static fromJson(Z,$){return new rJ().fromJson(Z,$)}static fromJsonString(Z,$){return new rJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(rJ,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};X$=class X$ extends J8{constructor(Z){super();this.mode=WF.UNSPECIFIED,this.checkoutRefOverrides=[],z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X$().fromBinary(Z,$)}static fromJson(Z,$){return new X$().fromJson(Z,$)}static fromJsonString(Z,$){return new X$().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(X$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",rJ,WF,aJ]}};sJ=class sJ extends J8{constructor(Z){super();this.setupLogs="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new sJ().fromBinary(Z,$)}static fromJson(Z,$){return new sJ().fromJson(Z,$)}static fromJsonString(Z,$){return new sJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(sJ,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};tJ=class tJ extends J8{constructor(Z){super();this.errorMessage="",this.setupLogs="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new tJ().fromBinary(Z,$)}static fromJson(Z,$){return new tJ().fromJson(Z,$)}static fromJsonString(Z,$){return new tJ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(tJ,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};$8=class $8 extends J8{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $8().fromBinary(Z,$)}static fromJson(Z,$){return new $8().fromJson(Z,$)}static fromJsonString(Z,$){return new $8().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals($8,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",sJ,tJ]}};z$=class z$ extends J8{constructor(Z){super();this.associatedPodKey="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z$().fromBinary(Z,$)}static fromJson(Z,$){return new z$().fromJson(Z,$)}static fromJsonString(Z,$){return new z$().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(z$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",X$,$8]}}});import{Message as ja,proto3 as H6}from"@bufbuild/protobuf";var Nh="agent.v1.",J3,oJ,eJ,Z3,$3,K$;var FF=I(()=>{k();J3=class J3 extends B{static get runtime(){return N(this,"runtime",H6)}static $p(){return Nh}};oJ=class oJ extends J3{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],H6.util.initPartial(Z,this)}static fromBinary(Z,$){return new oJ().fromBinary(Z,$)}static fromJson(Z,$){return new oJ().fromJson(Z,$)}static fromJsonString(Z,$){return new oJ().fromJsonString(Z,$)}static equals(Z,$){return H6.util.equals(oJ,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};eJ=class eJ extends J3{constructor(Z){super();this.result={case:void 0},H6.util.initPartial(Z,this)}static fromBinary(Z,$){return new eJ().fromBinary(Z,$)}static fromJson(Z,$){return new eJ().fromJson(Z,$)}static fromJsonString(Z,$){return new eJ().fromJsonString(Z,$)}static equals(Z,$){return H6.util.equals(eJ,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",Z3,$3]}};Z3=class Z3 extends J3{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",H6.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z3().fromBinary(Z,$)}static fromJson(Z,$){return new Z3().fromJson(Z,$)}static fromJsonString(Z,$){return new Z3().fromJsonString(Z,$)}static equals(Z,$){return H6.util.equals(Z3,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};$3=class $3 extends J3{constructor(Z){super();this.error="",H6.util.initPartial(Z,this)}static fromBinary(Z,$){return new $3().fromBinary(Z,$)}static fromJson(Z,$){return new $3().fromJson(Z,$)}static fromJsonString(Z,$){return new $3().fromJsonString(Z,$)}static equals(Z,$){return H6.util.equals($3,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};K$=class K$ extends J3{constructor(Z){super();H6.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return H6.util.equals(K$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",oJ,eJ]}}});import{Message as ba,proto3 as w0}from"@bufbuild/protobuf";var Bh="agent.v1.",Y8,Y3,X3,z3,K3,H3,Q3,H$;var GF=I(()=>{k();Y8=class Y8 extends B{static get runtime(){return N(this,"runtime",w0)}static $p(){return Bh}};Y3=class Y3 extends Y8{constructor(Z){super();this.checkName="",this.tldr="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y3().fromBinary(Z,$)}static fromJson(Z,$){return new Y3().fromJson(Z,$)}static fromJsonString(Z,$){return new Y3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(Y3,Z,$)}static $(){return["RecordCiInvestigationFinding|1 check_name 9|2 details_url 9?|3 tldr 9|4 root_cause 9?|5 failing_signal 9?|6 suggested_next_step 9?|7 diff_relation 9?|8 diff_relation_evidence 9?|9 flake_assessment 9?|10 flake_evidence 9?|11 rerun_available 8?|12 rerun_evidence 9?|13 recommended_action 9?|14 recommended_action_evidence 9?|15 confidence 9?"]}};X3=class X3 extends Y8{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X3().fromBinary(Z,$)}static fromJson(Z,$){return new X3().fromJson(Z,$)}static fromJsonString(Z,$){return new X3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(X3,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};z3=class z3 extends Y8{constructor(Z){super();this.findings=[],this.toolCallId="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z3().fromBinary(Z,$)}static fromJson(Z,$){return new z3().fromJson(Z,$)}static fromJsonString(Z,$){return new z3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(z3,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",Y3,X3]}};K3=class K3 extends Y8{constructor(Z){super();this.message="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K3().fromBinary(Z,$)}static fromJson(Z,$){return new K3().fromJson(Z,$)}static fromJsonString(Z,$){return new K3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(K3,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};H3=class H3 extends Y8{constructor(Z){super();this.error="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H3().fromBinary(Z,$)}static fromJson(Z,$){return new H3().fromJson(Z,$)}static fromJsonString(Z,$){return new H3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(H3,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};Q3=class Q3 extends Y8{constructor(Z){super();this.result={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q3().fromBinary(Z,$)}static fromJson(Z,$){return new Q3().fromJson(Z,$)}static fromJsonString(Z,$){return new Q3().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(Q3,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",K3,H3]}};H$=class H$ extends Y8{constructor(Z){super();w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H$().fromBinary(Z,$)}static fromJson(Z,$){return new H$().fromJson(Z,$)}static fromJsonString(Z,$){return new H$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(H$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",z3,Q3]}}});import{Message as la,proto3 as D0,protoInt64 as Fh}from"@bufbuild/protobuf";var Gh="agent.v1.",X8,q3,W3,N3,B3,F3,G3,Q$;var LF=I(()=>{k();X8=class X8 extends B{static get runtime(){return N(this,"runtime",D0)}static $p(){return Gh}};q3=class q3 extends X8{constructor(Z){super();this.content="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q3().fromBinary(Z,$)}static fromJson(Z,$){return new q3().fromJson(Z,$)}static fromJsonString(Z,$){return new q3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(q3,Z,$)}static $(){return["SendMessageText|1 content 9"]}};W3=class W3 extends X8{constructor(Z){super();this.url="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W3().fromBinary(Z,$)}static fromJson(Z,$){return new W3().fromJson(Z,$)}static fromJsonString(Z,$){return new W3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(W3,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};N3=class N3 extends X8{constructor(Z){super();this.message={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N3().fromBinary(Z,$)}static fromJson(Z,$){return new N3().fromJson(Z,$)}static fromJsonString(Z,$){return new N3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(N3,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message",q3,W3]}};B3=class B3 extends X8{constructor(Z){super();this.timestamp=Fh.zero,this.messageId="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B3().fromBinary(Z,$)}static fromJson(Z,$){return new B3().fromJson(Z,$)}static fromJsonString(Z,$){return new B3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(B3,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};F3=class F3 extends X8{constructor(Z){super();this.error="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F3().fromBinary(Z,$)}static fromJson(Z,$){return new F3().fromJson(Z,$)}static fromJsonString(Z,$){return new F3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(F3,Z,$)}static $(){return["SendMessageError|1 error 9"]}};G3=class G3 extends X8{constructor(Z){super();this.result={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G3().fromBinary(Z,$)}static fromJson(Z,$){return new G3().fromJson(Z,$)}static fromJsonString(Z,$){return new G3().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(G3,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",B3,F3]}};Q$=class Q$ extends X8{constructor(Z){super();D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q$().fromBinary(Z,$)}static fromJson(Z,$){return new Q$().fromJson(Z,$)}static fromJsonString(Z,$){return new Q$().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(Q$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",N3,G3]}}});import{Message as aa,proto3 as Q6}from"@bufbuild/protobuf";var Lh="agent.v1.",U3,L3,w3,D3,I3,q$;var wF=I(()=>{k();U3=class U3 extends B{static get runtime(){return N(this,"runtime",Q6)}static $p(){return Lh}};L3=class L3 extends U3{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",Q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new L3().fromBinary(Z,$)}static fromJson(Z,$){return new L3().fromJson(Z,$)}static fromJsonString(Z,$){return new L3().fromJsonString(Z,$)}static equals(Z,$){return Q6.util.equals(L3,Z,$)}static $(){return["FetchCloudAgentDataArgs|4 bc_ids 9*|6 sources 9*|7 statuses 9*|8 include_team_wide 8|9 include_archived 8|10 limit 5?|12 include_transcript 8|13 active_since 9"]}};w3=class w3 extends U3{constructor(Z){super();this.result={case:void 0},Q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new w3().fromBinary(Z,$)}static fromJson(Z,$){return new w3().fromJson(Z,$)}static fromJsonString(Z,$){return new w3().fromJsonString(Z,$)}static equals(Z,$){return Q6.util.equals(w3,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",D3,I3]}};D3=class D3 extends U3{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],Q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new D3().fromBinary(Z,$)}static fromJson(Z,$){return new D3().fromJson(Z,$)}static fromJsonString(Z,$){return new D3().fromJsonString(Z,$)}static equals(Z,$){return Q6.util.equals(D3,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};I3=class I3 extends U3{constructor(Z){super();this.error="",Q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new I3().fromBinary(Z,$)}static fromJson(Z,$){return new I3().fromJson(Z,$)}static fromJsonString(Z,$){return new I3().fromJsonString(Z,$)}static equals(Z,$){return Q6.util.equals(I3,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};q$=class q$ extends U3{constructor(Z){super();Q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return Q6.util.equals(q$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",L3,w3]}}});import{Message as oa,proto3 as q6}from"@bufbuild/protobuf";var wh="agent.v1.",P3,O3,k3,f3,E3,W$;var DF=I(()=>{k();P3=class P3 extends B{static get runtime(){return N(this,"runtime",q6)}static $p(){return wh}};O3=class O3 extends P3{constructor(Z){super();this.message="",q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new O3().fromBinary(Z,$)}static fromJson(Z,$){return new O3().fromJson(Z,$)}static fromJsonString(Z,$){return new O3().fromJsonString(Z,$)}static equals(Z,$){return q6.util.equals(O3,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};k3=class k3 extends P3{constructor(Z){super();q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new k3().fromBinary(Z,$)}static fromJson(Z,$){return new k3().fromJson(Z,$)}static fromJsonString(Z,$){return new k3().fromJsonString(Z,$)}static equals(Z,$){return q6.util.equals(k3,Z,$)}static $(){return["SendToUserSuccess"]}};f3=class f3 extends P3{constructor(Z){super();this.error="",q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new f3().fromBinary(Z,$)}static fromJson(Z,$){return new f3().fromJson(Z,$)}static fromJsonString(Z,$){return new f3().fromJsonString(Z,$)}static equals(Z,$){return q6.util.equals(f3,Z,$)}static $(){return["SendToUserError|1 error 9"]}};E3=class E3 extends P3{constructor(Z){super();this.result={case:void 0},q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new E3().fromBinary(Z,$)}static fromJson(Z,$){return new E3().fromJson(Z,$)}static fromJsonString(Z,$){return new E3().fromJsonString(Z,$)}static equals(Z,$){return q6.util.equals(E3,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",k3,f3]}};W$=class W$ extends P3{constructor(Z){super();q6.util.initPartial(Z,this)}static fromBinary(Z,$){return new W$().fromBinary(Z,$)}static fromJson(Z,$){return new W$().fromJson(Z,$)}static fromJsonString(Z,$){return new W$().fromJsonString(Z,$)}static equals(Z,$){return q6.util.equals(W$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",O3,E3]}}});import{Message as Jr,proto3 as tQ}from"@bufbuild/protobuf";var Dh="agent.v1.",IF,K0;var V3=I(()=>{k();IF=class IF extends B{static get runtime(){return N(this,"runtime",tQ)}static $p(){return Dh}};K0=class K0 extends IF{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,tQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new K0().fromBinary(Z,$)}static fromJson(Z,$){return new K0().fromJson(Z,$)}static fromJsonString(Z,$){return new K0().fromJsonString(Z,$)}static equals(Z,$){return tQ.util.equals(K0,Z,$)}static $(){return["PiTruncation|1 truncated 8|2 truncated_by 9|3 total_lines 13|4 output_lines 13|5 output_bytes 13|6 max_lines 13?|7 max_bytes 13?|8 first_line_exceeds_limit 8|9 last_line_partial 8"]}}});import{Message as Kr,proto3 as W6}from"@bufbuild/protobuf";var Ih="agent.v1.",v3,N$,x3,M3,h3,A3;var UF=I(()=>{V3();k();v3=class v3 extends B{static get runtime(){return N(this,"runtime",W6)}static $p(){return Ih}};N$=class N$ extends v3{constructor(Z){super();W6.util.initPartial(Z,this)}static fromBinary(Z,$){return new N$().fromBinary(Z,$)}static fromJson(Z,$){return new N$().fromJson(Z,$)}static fromJsonString(Z,$){return new N$().fromJsonString(Z,$)}static equals(Z,$){return W6.util.equals(N$,Z,$)}static $(){return["PiReadToolCall|1 args #0|2 result #1",x3,M3]}};x3=class x3 extends v3{constructor(Z){super();this.path="",W6.util.initPartial(Z,this)}static fromBinary(Z,$){return new x3().fromBinary(Z,$)}static fromJson(Z,$){return new x3().fromJson(Z,$)}static fromJsonString(Z,$){return new x3().fromJsonString(Z,$)}static equals(Z,$){return W6.util.equals(x3,Z,$)}static $(){return["PiReadToolArgs|1 path 9|2 offset 5?|3 limit 5?"]}};M3=class M3 extends v3{constructor(Z){super();this.result={case:void 0},W6.util.initPartial(Z,this)}static fromBinary(Z,$){return new M3().fromBinary(Z,$)}static fromJson(Z,$){return new M3().fromJson(Z,$)}static fromJsonString(Z,$){return new M3().fromJsonString(Z,$)}static equals(Z,$){return W6.util.equals(M3,Z,$)}static $(){return["PiReadToolResult|1 success #0 result|2 error #1 result",h3,A3]}};h3=class h3 extends v3{constructor(Z){super();this.output="",W6.util.initPartial(Z,this)}static fromBinary(Z,$){return new h3().fromBinary(Z,$)}static fromJson(Z,$){return new h3().fromJson(Z,$)}static fromJsonString(Z,$){return new h3().fromJsonString(Z,$)}static equals(Z,$){return W6.util.equals(h3,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",K0]}};A3=class A3 extends v3{constructor(Z){super();this.error="",W6.util.initPartial(Z,this)}static fromBinary(Z,$){return new A3().fromBinary(Z,$)}static fromJson(Z,$){return new A3().fromJson(Z,$)}static fromJsonString(Z,$){return new A3().fromJsonString(Z,$)}static equals(Z,$){return W6.util.equals(A3,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as Nr,proto3 as N6}from"@bufbuild/protobuf";var Uh="agent.v1.",m3,B$,C3,T3,R3,y3;var OF=I(()=>{V3();k();m3=class m3 extends B{static get runtime(){return N(this,"runtime",N6)}static $p(){return Uh}};B$=class B$ extends m3{constructor(Z){super();N6.util.initPartial(Z,this)}static fromBinary(Z,$){return new B$().fromBinary(Z,$)}static fromJson(Z,$){return new B$().fromJson(Z,$)}static fromJsonString(Z,$){return new B$().fromJsonString(Z,$)}static equals(Z,$){return N6.util.equals(B$,Z,$)}static $(){return["PiBashToolCall|1 args #0|2 result #1",C3,T3]}};C3=class C3 extends m3{constructor(Z){super();this.command="",N6.util.initPartial(Z,this)}static fromBinary(Z,$){return new C3().fromBinary(Z,$)}static fromJson(Z,$){return new C3().fromJson(Z,$)}static fromJsonString(Z,$){return new C3().fromJsonString(Z,$)}static equals(Z,$){return N6.util.equals(C3,Z,$)}static $(){return["PiBashToolArgs|1 command 9|2 timeout 1?"]}};T3=class T3 extends m3{constructor(Z){super();this.result={case:void 0},N6.util.initPartial(Z,this)}static fromBinary(Z,$){return new T3().fromBinary(Z,$)}static fromJson(Z,$){return new T3().fromJson(Z,$)}static fromJsonString(Z,$){return new T3().fromJsonString(Z,$)}static equals(Z,$){return N6.util.equals(T3,Z,$)}static $(){return["PiBashToolResult|1 success #0 result|2 error #1 result",R3,y3]}};R3=class R3 extends m3{constructor(Z){super();this.output="",N6.util.initPartial(Z,this)}static fromBinary(Z,$){return new R3().fromBinary(Z,$)}static fromJson(Z,$){return new R3().fromJson(Z,$)}static fromJsonString(Z,$){return new R3().fromJsonString(Z,$)}static equals(Z,$){return N6.util.equals(R3,Z,$)}static $(){return["PiBashToolSuccess|1 output 9|2 truncation #0?|3 full_output_path 9?",K0]}};y3=class y3 extends m3{constructor(Z){super();this.error="",N6.util.initPartial(Z,this)}static fromBinary(Z,$){return new y3().fromBinary(Z,$)}static fromJson(Z,$){return new y3().fromJson(Z,$)}static fromJsonString(Z,$){return new y3().fromJsonString(Z,$)}static equals(Z,$){return N6.util.equals(y3,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",K0]}}});import{Message as wr,proto3 as I0}from"@bufbuild/protobuf";var Oh="agent.v1.",z8,j3,F$,_3,S3,g3,b3,d3;var kF=I(()=>{k();z8=class z8 extends B{static get runtime(){return N(this,"runtime",I0)}static $p(){return Oh}};j3=class j3 extends z8{constructor(Z){super();this.oldText="",this.newText="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new j3().fromBinary(Z,$)}static fromJson(Z,$){return new j3().fromJson(Z,$)}static fromJsonString(Z,$){return new j3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(j3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};F$=class F$ extends z8{constructor(Z){super();I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F$().fromBinary(Z,$)}static fromJson(Z,$){return new F$().fromJson(Z,$)}static fromJsonString(Z,$){return new F$().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(F$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",_3,S3]}};_3=class _3 extends z8{constructor(Z){super();this.path="",this.edits=[],I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _3().fromBinary(Z,$)}static fromJson(Z,$){return new _3().fromJson(Z,$)}static fromJsonString(Z,$){return new _3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(_3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",j3]}};S3=class S3 extends z8{constructor(Z){super();this.result={case:void 0},I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S3().fromBinary(Z,$)}static fromJson(Z,$){return new S3().fromJson(Z,$)}static fromJsonString(Z,$){return new S3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(S3,Z,$)}static $(){return["PiEditToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",g3,b3,d3]}};g3=class g3 extends z8{constructor(Z){super();this.output="",this.diff="",this.patch="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g3().fromBinary(Z,$)}static fromJson(Z,$){return new g3().fromJson(Z,$)}static fromJsonString(Z,$){return new g3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(g3,Z,$)}static $(){return["PiEditToolSuccess|1 output 9|2 diff 9|3 patch 9|4 first_changed_line 13?"]}};b3=class b3 extends z8{constructor(Z){super();this.error="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b3().fromBinary(Z,$)}static fromJson(Z,$){return new b3().fromJson(Z,$)}static fromJsonString(Z,$){return new b3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(b3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};d3=class d3 extends z8{constructor(Z){super();this.reason="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d3().fromBinary(Z,$)}static fromJson(Z,$){return new d3().fromJson(Z,$)}static fromJsonString(Z,$){return new d3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(d3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as Or,proto3 as T0}from"@bufbuild/protobuf";var kh="agent.v1.",L$,G$,c3,u3,l3,p3,i3;var fF=I(()=>{k();L$=class L$ extends B{static get runtime(){return N(this,"runtime",T0)}static $p(){return kh}};G$=class G$ extends L${constructor(Z){super();T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G$().fromBinary(Z,$)}static fromJson(Z,$){return new G$().fromJson(Z,$)}static fromJsonString(Z,$){return new G$().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(G$,Z,$)}static $(){return["PiWriteToolCall|1 args #0|2 result #1",c3,u3]}};c3=class c3 extends L${constructor(Z){super();this.path="",this.content="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c3().fromBinary(Z,$)}static fromJson(Z,$){return new c3().fromJson(Z,$)}static fromJsonString(Z,$){return new c3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(c3,Z,$)}static $(){return["PiWriteToolArgs|1 path 9|2 content 9"]}};u3=class u3 extends L${constructor(Z){super();this.result={case:void 0},T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u3().fromBinary(Z,$)}static fromJson(Z,$){return new u3().fromJson(Z,$)}static fromJsonString(Z,$){return new u3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(u3,Z,$)}static $(){return["PiWriteToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",l3,p3,i3]}};l3=class l3 extends L${constructor(Z){super();this.output="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l3().fromBinary(Z,$)}static fromJson(Z,$){return new l3().fromJson(Z,$)}static fromJsonString(Z,$){return new l3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(l3,Z,$)}static $(){return["PiWriteToolSuccess|1 output 9"]}};p3=class p3 extends L${constructor(Z){super();this.error="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p3().fromBinary(Z,$)}static fromJson(Z,$){return new p3().fromJson(Z,$)}static fromJsonString(Z,$){return new p3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(p3,Z,$)}static $(){return["PiWriteToolError|1 error 9"]}};i3=class i3 extends L${constructor(Z){super();this.reason="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i3().fromBinary(Z,$)}static fromJson(Z,$){return new i3().fromJson(Z,$)}static fromJsonString(Z,$){return new i3().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(i3,Z,$)}static $(){return["PiWriteToolRejected|1 reason 9"]}}});import{Message as Pr,proto3 as B6}from"@bufbuild/protobuf";var fh="agent.v1.",t3,w$,n3,a3,r3,s3;var EF=I(()=>{V3();k();t3=class t3 extends B{static get runtime(){return N(this,"runtime",B6)}static $p(){return fh}};w$=class w$ extends t3{constructor(Z){super();B6.util.initPartial(Z,this)}static fromBinary(Z,$){return new w$().fromBinary(Z,$)}static fromJson(Z,$){return new w$().fromJson(Z,$)}static fromJsonString(Z,$){return new w$().fromJsonString(Z,$)}static equals(Z,$){return B6.util.equals(w$,Z,$)}static $(){return["PiGrepToolCall|1 args #0|2 result #1",n3,a3]}};n3=class n3 extends t3{constructor(Z){super();this.pattern="",B6.util.initPartial(Z,this)}static fromBinary(Z,$){return new n3().fromBinary(Z,$)}static fromJson(Z,$){return new n3().fromJson(Z,$)}static fromJsonString(Z,$){return new n3().fromJsonString(Z,$)}static equals(Z,$){return B6.util.equals(n3,Z,$)}static $(){return["PiGrepToolArgs|1 pattern 9|2 path 9?|3 glob 9?|4 ignore_case 8?|5 literal 8?|6 context 5?|7 limit 5?"]}};a3=class a3 extends t3{constructor(Z){super();this.result={case:void 0},B6.util.initPartial(Z,this)}static fromBinary(Z,$){return new a3().fromBinary(Z,$)}static fromJson(Z,$){return new a3().fromJson(Z,$)}static fromJsonString(Z,$){return new a3().fromJsonString(Z,$)}static equals(Z,$){return B6.util.equals(a3,Z,$)}static $(){return["PiGrepToolResult|1 success #0 result|2 error #1 result",r3,s3]}};r3=class r3 extends t3{constructor(Z){super();this.output="",this.linesTruncated=!1,B6.util.initPartial(Z,this)}static fromBinary(Z,$){return new r3().fromBinary(Z,$)}static fromJson(Z,$){return new r3().fromJson(Z,$)}static fromJsonString(Z,$){return new r3().fromJsonString(Z,$)}static equals(Z,$){return B6.util.equals(r3,Z,$)}static $(){return["PiGrepToolSuccess|1 output 9|2 truncation #0?|3 match_limit_reached 13?|4 lines_truncated 8",K0]}};s3=class s3 extends t3{constructor(Z){super();this.error="",B6.util.initPartial(Z,this)}static fromBinary(Z,$){return new s3().fromBinary(Z,$)}static fromJson(Z,$){return new s3().fromJson(Z,$)}static fromJsonString(Z,$){return new s3().fromJsonString(Z,$)}static equals(Z,$){return B6.util.equals(s3,Z,$)}static $(){return["PiGrepToolError|1 error 9"]}}});import{Message as Ar,proto3 as F6}from"@bufbuild/protobuf";var Eh="agent.v1.",JY,D$,o3,e3,ZY,$Y;var PF=I(()=>{V3();k();JY=class JY extends B{static get runtime(){return N(this,"runtime",F6)}static $p(){return Eh}};D$=class D$ extends JY{constructor(Z){super();F6.util.initPartial(Z,this)}static fromBinary(Z,$){return new D$().fromBinary(Z,$)}static fromJson(Z,$){return new D$().fromJson(Z,$)}static fromJsonString(Z,$){return new D$().fromJsonString(Z,$)}static equals(Z,$){return F6.util.equals(D$,Z,$)}static $(){return["PiFindToolCall|1 args #0|2 result #1",o3,e3]}};o3=class o3 extends JY{constructor(Z){super();this.pattern="",F6.util.initPartial(Z,this)}static fromBinary(Z,$){return new o3().fromBinary(Z,$)}static fromJson(Z,$){return new o3().fromJson(Z,$)}static fromJsonString(Z,$){return new o3().fromJsonString(Z,$)}static equals(Z,$){return F6.util.equals(o3,Z,$)}static $(){return["PiFindToolArgs|1 pattern 9|2 path 9?|3 limit 5?"]}};e3=class e3 extends JY{constructor(Z){super();this.result={case:void 0},F6.util.initPartial(Z,this)}static fromBinary(Z,$){return new e3().fromBinary(Z,$)}static fromJson(Z,$){return new e3().fromJson(Z,$)}static fromJsonString(Z,$){return new e3().fromJsonString(Z,$)}static equals(Z,$){return F6.util.equals(e3,Z,$)}static $(){return["PiFindToolResult|1 success #0 result|2 error #1 result",ZY,$Y]}};ZY=class ZY extends JY{constructor(Z){super();this.output="",F6.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZY().fromBinary(Z,$)}static fromJson(Z,$){return new ZY().fromJson(Z,$)}static fromJsonString(Z,$){return new ZY().fromJsonString(Z,$)}static equals(Z,$){return F6.util.equals(ZY,Z,$)}static $(){return["PiFindToolSuccess|1 output 9|2 truncation #0?|3 result_limit_reached 13?",K0]}};$Y=class $Y extends JY{constructor(Z){super();this.error="",F6.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Y().fromBinary(Z,$)}static fromJson(Z,$){return new $Y().fromJson(Z,$)}static fromJsonString(Z,$){return new $Y().fromJsonString(Z,$)}static equals(Z,$){return F6.util.equals($Y,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as yr,proto3 as G6}from"@bufbuild/protobuf";var Ph="agent.v1.",HY,I$,YY,XY,zY,KY;var VF=I(()=>{V3();k();HY=class HY extends B{static get runtime(){return N(this,"runtime",G6)}static $p(){return Ph}};I$=class I$ extends HY{constructor(Z){super();G6.util.initPartial(Z,this)}static fromBinary(Z,$){return new I$().fromBinary(Z,$)}static fromJson(Z,$){return new I$().fromJson(Z,$)}static fromJsonString(Z,$){return new I$().fromJsonString(Z,$)}static equals(Z,$){return G6.util.equals(I$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",YY,XY]}};YY=class YY extends HY{constructor(Z){super();G6.util.initPartial(Z,this)}static fromBinary(Z,$){return new YY().fromBinary(Z,$)}static fromJson(Z,$){return new YY().fromJson(Z,$)}static fromJsonString(Z,$){return new YY().fromJsonString(Z,$)}static equals(Z,$){return G6.util.equals(YY,Z,$)}static $(){return["PiLsToolArgs|1 path 9?|2 limit 5?"]}};XY=class XY extends HY{constructor(Z){super();this.result={case:void 0},G6.util.initPartial(Z,this)}static fromBinary(Z,$){return new XY().fromBinary(Z,$)}static fromJson(Z,$){return new XY().fromJson(Z,$)}static fromJsonString(Z,$){return new XY().fromJsonString(Z,$)}static equals(Z,$){return G6.util.equals(XY,Z,$)}static $(){return["PiLsToolResult|1 success #0 result|2 error #1 result",zY,KY]}};zY=class zY extends HY{constructor(Z){super();this.output="",G6.util.initPartial(Z,this)}static fromBinary(Z,$){return new zY().fromBinary(Z,$)}static fromJson(Z,$){return new zY().fromJson(Z,$)}static fromJsonString(Z,$){return new zY().fromJsonString(Z,$)}static equals(Z,$){return G6.util.equals(zY,Z,$)}static $(){return["PiLsToolSuccess|1 output 9|2 truncation #0?|3 entry_limit_reached 13?",K0]}};KY=class KY extends HY{constructor(Z){super();this.error="",G6.util.initPartial(Z,this)}static fromBinary(Z,$){return new KY().fromBinary(Z,$)}static fromJson(Z,$){return new KY().fromJson(Z,$)}static fromJsonString(Z,$){return new KY().fromJsonString(Z,$)}static equals(Z,$){return G6.util.equals(KY,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as gr,proto3 as S}from"@bufbuild/protobuf";var Vh="agent.v1.",R0,QY,qY,WY,NY,BY,FY,GY,U$,O$,LY,wY,DY;var xF=I(()=>{k();R0=class R0 extends B{static get runtime(){return N(this,"runtime",S)}static $p(){return Vh}};QY=class QY extends R0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},S.util.initPartial(Z,this)}static fromBinary(Z,$){return new QY().fromBinary(Z,$)}static fromJson(Z,$){return new QY().fromJson(Z,$)}static fromJsonString(Z,$){return new QY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(QY,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target",qY]}};qY=class qY extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new qY().fromBinary(Z,$)}static fromJson(Z,$){return new qY().fromJson(Z,$)}static fromJsonString(Z,$){return new qY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(qY,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",WY]}};WY=class WY extends R0{constructor(Z){super();this.owner="",this.repo="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new WY().fromBinary(Z,$)}static fromJson(Z,$){return new WY().fromJson(Z,$)}static fromJsonString(Z,$){return new WY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(WY,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};NY=class NY extends R0{constructor(Z){super();this.result={case:void 0},S.util.initPartial(Z,this)}static fromBinary(Z,$){return new NY().fromBinary(Z,$)}static fromJson(Z,$){return new NY().fromJson(Z,$)}static fromJsonString(Z,$){return new NY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(NY,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result",BY,FY,GY]}};BY=class BY extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new BY().fromBinary(Z,$)}static fromJson(Z,$){return new BY().fromJson(Z,$)}static fromJsonString(Z,$){return new BY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(BY,Z,$)}static $(){return["ConnectScmSuccess"]}};FY=class FY extends R0{constructor(Z){super();this.error="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new FY().fromBinary(Z,$)}static fromJson(Z,$){return new FY().fromJson(Z,$)}static fromJsonString(Z,$){return new FY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(FY,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};GY=class GY extends R0{constructor(Z){super();this.reason="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new GY().fromBinary(Z,$)}static fromJson(Z,$){return new GY().fromJson(Z,$)}static fromJsonString(Z,$){return new GY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(GY,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};U$=class U$ extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new U$().fromBinary(Z,$)}static fromJson(Z,$){return new U$().fromJson(Z,$)}static fromJsonString(Z,$){return new U$().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(U$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",QY,NY]}};O$=class O$ extends R0{constructor(Z){super();this.result={case:void 0},S.util.initPartial(Z,this)}static fromBinary(Z,$){return new O$().fromBinary(Z,$)}static fromJson(Z,$){return new O$().fromJson(Z,$)}static fromJsonString(Z,$){return new O$().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(O$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",LY,wY,DY]}};LY=class LY extends R0{constructor(Z){super();S.util.initPartial(Z,this)}static fromBinary(Z,$){return new LY().fromBinary(Z,$)}static fromJson(Z,$){return new LY().fromJson(Z,$)}static fromJsonString(Z,$){return new LY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(LY,Z,$)}static $(){return["ConnectScmRequestResponse.Approved"]}};wY=class wY extends R0{constructor(Z){super();this.reason="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new wY().fromBinary(Z,$)}static fromJson(Z,$){return new wY().fromJson(Z,$)}static fromJsonString(Z,$){return new wY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(wY,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9"]}};DY=class DY extends R0{constructor(Z){super();this.error="",S.util.initPartial(Z,this)}static fromBinary(Z,$){return new DY().fromBinary(Z,$)}static fromJson(Z,$){return new DY().fromJson(Z,$)}static fromJsonString(Z,$){return new DY().fromJsonString(Z,$)}static equals(Z,$){return S.util.equals(DY,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as ur,proto3 as d0,protoInt64 as xh}from"@bufbuild/protobuf";var hF="agent.v1.",kY,MF,k$,f$,IY,UY,OY;var AF=I(()=>{k();kY=class kY extends B{static get runtime(){return N(this,"runtime",d0)}static $p(){return hF}};MF=w(d0,hF,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);k$=class k$ extends kY{constructor(Z){super();this.query="",this.toolCallId="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new k$().fromBinary(Z,$)}static fromJson(Z,$){return new k$().fromJson(Z,$)}static fromJsonString(Z,$){return new k$().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(k$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};f$=class f$ extends kY{constructor(Z){super();this.result={case:void 0},d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f$().fromBinary(Z,$)}static fromJson(Z,$){return new f$().fromJson(Z,$)}static fromJsonString(Z,$){return new f$().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(f$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",IY,OY]}};IY=class IY extends kY{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IY().fromBinary(Z,$)}static fromJson(Z,$){return new IY().fromJson(Z,$)}static fromJsonString(Z,$){return new IY().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(IY,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",UY]}};UY=class UY extends kY{constructor(Z){super();this.conversationId="",this.title="",this.source=MF.UNSPECIFIED,this.updatedAtMs=xh.zero,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UY().fromBinary(Z,$)}static fromJson(Z,$){return new UY().fromJson(Z,$)}static fromJsonString(Z,$){return new UY().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(UY,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",MF]}};OY=class OY extends kY{constructor(Z){super();this.error="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OY().fromBinary(Z,$)}static fromJson(Z,$){return new OY().fromJson(Z,$)}static fromJsonString(Z,$){return new OY().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(OY,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as nr,proto3 as oQ}from"@bufbuild/protobuf";var Mh="agent.v1.",vF,E$;var CF=I(()=>{AF();k();vF=class vF extends B{static get runtime(){return N(this,"runtime",oQ)}static $p(){return Mh}};E$=class E$ extends vF{constructor(Z){super();oQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new E$().fromBinary(Z,$)}static fromJson(Z,$){return new E$().fromJson(Z,$)}static fromJsonString(Z,$){return new E$().fromJsonString(Z,$)}static equals(Z,$){return oQ.util.equals(E$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",k$,f$]}}});import{Message as or,proto3 as i}from"@bufbuild/protobuf";var TF="agent.v1.",x6,M$,fY,EY,P$,PY,V$,VY,xY,MY,x$;var RF=I(()=>{k();x6=class x6 extends B{static get runtime(){return N(this,"runtime",i)}static $p(){return TF}};M$=w(i,TF,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);fY=class fY extends x6{constructor(Z){super();this.objective="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new fY().fromBinary(Z,$)}static fromJson(Z,$){return new fY().fromJson(Z,$)}static fromJsonString(Z,$){return new fY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(fY,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};EY=class EY extends x6{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new EY().fromBinary(Z,$)}static fromJson(Z,$){return new EY().fromJson(Z,$)}static fromJsonString(Z,$){return new EY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(EY,Z,$)}static $(){return["CreateGoalSuccess"]}};P$=class P$ extends x6{constructor(Z){super();this.error="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new P$().fromBinary(Z,$)}static fromJson(Z,$){return new P$().fromJson(Z,$)}static fromJsonString(Z,$){return new P$().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(P$,Z,$)}static $(){return["GoalError|1 error 9"]}};PY=class PY extends x6{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new PY().fromBinary(Z,$)}static fromJson(Z,$){return new PY().fromJson(Z,$)}static fromJsonString(Z,$){return new PY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(PY,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",EY,P$]}};V$=class V$ extends x6{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new V$().fromBinary(Z,$)}static fromJson(Z,$){return new V$().fromJson(Z,$)}static fromJsonString(Z,$){return new V$().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(V$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",fY,PY]}};VY=class VY extends x6{constructor(Z){super();this.status=M$.UNSPECIFIED,i.util.initPartial(Z,this)}static fromBinary(Z,$){return new VY().fromBinary(Z,$)}static fromJson(Z,$){return new VY().fromJson(Z,$)}static fromJsonString(Z,$){return new VY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(VY,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",M$]}};xY=class xY extends x6{constructor(Z){super();this.status=M$.UNSPECIFIED,i.util.initPartial(Z,this)}static fromBinary(Z,$){return new xY().fromBinary(Z,$)}static fromJson(Z,$){return new xY().fromJson(Z,$)}static fromJsonString(Z,$){return new xY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(xY,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",M$]}};MY=class MY extends x6{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new MY().fromBinary(Z,$)}static fromJson(Z,$){return new MY().fromJson(Z,$)}static fromJsonString(Z,$){return new MY().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(MY,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",xY,P$]}};x$=class x$ extends x6{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new x$().fromBinary(Z,$)}static fromJson(Z,$){return new x$().fromJson(Z,$)}static fromJsonString(Z,$){return new x$().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(x$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",VY,MY]}}});import{Message as Js,proto3 as x,protoInt64 as hh}from"@bufbuild/protobuf";var yF="agent.v1.",_,Ah,hY,AY,vY,CY,TY,h$,RY,yY,mY,jY,A$,_Y,SY,gY,bY,v$,dY,cY,uY,lY,C$,pY,iY,nY,aY,T$;var mF=I(()=>{k();_=class _ extends B{static get runtime(){return N(this,"runtime",x)}static $p(){return yF}};Ah=w(x,yF,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);hY=class hY extends _{constructor(Z){super();this.toolCallId="",this.agentIds=[],x.util.initPartial(Z,this)}static fromBinary(Z,$){return new hY().fromBinary(Z,$)}static fromJson(Z,$){return new hY().fromJson(Z,$)}static fromJsonString(Z,$){return new hY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(hY,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};AY=class AY extends _{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=hh.zero,x.util.initPartial(Z,this)}static fromBinary(Z,$){return new AY().fromBinary(Z,$)}static fromJson(Z,$){return new AY().fromJson(Z,$)}static fromJsonString(Z,$){return new AY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(AY,Z,$)}static $(){return["GetAgentStatusWorker|1 bc_id 9|2 name 9|3 lifecycle 9|4 turn_in_flight 8|5 last_terminal_turn_status 9|6 pr_url 9|7 last_activity_at_ms 4"]}};vY=class vY extends _{constructor(Z){super();this.workers=[],this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new vY().fromBinary(Z,$)}static fromJson(Z,$){return new vY().fromJson(Z,$)}static fromJsonString(Z,$){return new vY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(vY,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",AY]}};CY=class CY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new CY().fromBinary(Z,$)}static fromJson(Z,$){return new CY().fromJson(Z,$)}static fromJsonString(Z,$){return new CY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(CY,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};TY=class TY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new TY().fromBinary(Z,$)}static fromJson(Z,$){return new TY().fromJson(Z,$)}static fromJsonString(Z,$){return new TY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(TY,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",vY,CY]}};h$=class h$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new h$().fromBinary(Z,$)}static fromJson(Z,$){return new h$().fromJson(Z,$)}static fromJsonString(Z,$){return new h$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(h$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",hY,TY]}};RY=class RY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new RY().fromBinary(Z,$)}static fromJson(Z,$){return new RY().fromJson(Z,$)}static fromJsonString(Z,$){return new RY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(RY,Z,$)}static $(){return["SendToAgentArgs|1 tool_call_id 9|2 agent_id 9|3 message 9|4 delivery 9|5 title 9|6 model 9?"]}};yY=class yY extends _{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new yY().fromBinary(Z,$)}static fromJson(Z,$){return new yY().fromJson(Z,$)}static fromJsonString(Z,$){return new yY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(yY,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9"]}};mY=class mY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new mY().fromBinary(Z,$)}static fromJson(Z,$){return new mY().fromJson(Z,$)}static fromJsonString(Z,$){return new mY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(mY,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};jY=class jY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new jY().fromBinary(Z,$)}static fromJson(Z,$){return new jY().fromJson(Z,$)}static fromJsonString(Z,$){return new jY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(jY,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",yY,mY]}};A$=class A$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new A$().fromBinary(Z,$)}static fromJson(Z,$){return new A$().fromJson(Z,$)}static fromJsonString(Z,$){return new A$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(A$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",RY,jY]}};_Y=class _Y extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,x.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Y().fromBinary(Z,$)}static fromJson(Z,$){return new _Y().fromJson(Z,$)}static fromJsonString(Z,$){return new _Y().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(_Y,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};SY=class SY extends _{constructor(Z){super();this.transcript="",this.truncated=!1,x.util.initPartial(Z,this)}static fromBinary(Z,$){return new SY().fromBinary(Z,$)}static fromJson(Z,$){return new SY().fromJson(Z,$)}static fromJsonString(Z,$){return new SY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(SY,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};gY=class gY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new gY().fromBinary(Z,$)}static fromJson(Z,$){return new gY().fromJson(Z,$)}static fromJsonString(Z,$){return new gY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(gY,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};bY=class bY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new bY().fromBinary(Z,$)}static fromJson(Z,$){return new bY().fromJson(Z,$)}static fromJsonString(Z,$){return new bY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(bY,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",SY,gY]}};v$=class v$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new v$().fromBinary(Z,$)}static fromJson(Z,$){return new v$().fromJson(Z,$)}static fromJsonString(Z,$){return new v$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(v$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",_Y,bY]}};dY=class dY extends _{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new dY().fromBinary(Z,$)}static fromJson(Z,$){return new dY().fromJson(Z,$)}static fromJsonString(Z,$){return new dY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(dY,Z,$)}static $(){return["CreateAgentArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?"]}};cY=class cY extends _{constructor(Z){super();this.agentId="",this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new cY().fromBinary(Z,$)}static fromJson(Z,$){return new cY().fromJson(Z,$)}static fromJsonString(Z,$){return new cY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(cY,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};uY=class uY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new uY().fromBinary(Z,$)}static fromJson(Z,$){return new uY().fromJson(Z,$)}static fromJsonString(Z,$){return new uY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(uY,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",Ah]}};lY=class lY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new lY().fromBinary(Z,$)}static fromJson(Z,$){return new lY().fromJson(Z,$)}static fromJsonString(Z,$){return new lY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(lY,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",cY,uY]}};C$=class C$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new C$().fromBinary(Z,$)}static fromJson(Z,$){return new C$().fromJson(Z,$)}static fromJsonString(Z,$){return new C$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(C$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",dY,lY]}};pY=class pY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new pY().fromBinary(Z,$)}static fromJson(Z,$){return new pY().fromJson(Z,$)}static fromJsonString(Z,$){return new pY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(pY,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};iY=class iY extends _{constructor(Z){super();this.workerBcId="",this.message="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new iY().fromBinary(Z,$)}static fromJson(Z,$){return new iY().fromJson(Z,$)}static fromJsonString(Z,$){return new iY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(iY,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};nY=class nY extends _{constructor(Z){super();this.error="",x.util.initPartial(Z,this)}static fromBinary(Z,$){return new nY().fromBinary(Z,$)}static fromJson(Z,$){return new nY().fromJson(Z,$)}static fromJsonString(Z,$){return new nY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(nY,Z,$)}static $(){return["StopAgentError|1 error 9"]}};aY=class aY extends _{constructor(Z){super();this.result={case:void 0},x.util.initPartial(Z,this)}static fromBinary(Z,$){return new aY().fromBinary(Z,$)}static fromJson(Z,$){return new aY().fromJson(Z,$)}static fromJsonString(Z,$){return new aY().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(aY,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",iY,nY]}};T$=class T$ extends _{constructor(Z){super();x.util.initPartial(Z,this)}static fromBinary(Z,$){return new T$().fromBinary(Z,$)}static fromJson(Z,$){return new T$().fromJson(Z,$)}static fromJsonString(Z,$){return new T$().fromJsonString(Z,$)}static equals(Z,$){return x.util.equals(T$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",pY,aY]}}});import{Message as Ks,proto3 as y0,protoInt64 as vh}from"@bufbuild/protobuf";var Ch="agent.v1.",y$,rY,sY,tY,oY,eY,R$;var jF=I(()=>{k();y$=class y$ extends B{static get runtime(){return N(this,"runtime",y0)}static $p(){return Ch}};rY=class rY extends y${constructor(Z){super();this.toolCallId="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rY().fromBinary(Z,$)}static fromJson(Z,$){return new rY().fromJson(Z,$)}static fromJsonString(Z,$){return new rY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(rY,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?"]}};sY=class sY extends y${constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=vh.zero,this.isCurrent=!1,this.markdown="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new sY().fromBinary(Z,$)}static fromJson(Z,$){return new sY().fromJson(Z,$)}static fromJsonString(Z,$){return new sY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(sY,Z,$)}static $(){return["PrCodeTourRevisionSnapshot|1 revision_id 9|2 status 9|3 head_sha 9|4 feedback 9|5 updated_at_ms 3|6 is_current 8|7 markdown 9"]}};tY=class tY extends y${constructor(Z){super();this.revisions=[],y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new tY().fromBinary(Z,$)}static fromJson(Z,$){return new tY().fromJson(Z,$)}static fromJsonString(Z,$){return new tY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(tY,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*",sY]}};oY=class oY extends y${constructor(Z){super();this.error="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new oY().fromBinary(Z,$)}static fromJson(Z,$){return new oY().fromJson(Z,$)}static fromJsonString(Z,$){return new oY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(oY,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};eY=class eY extends y${constructor(Z){super();this.result={case:void 0},y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new eY().fromBinary(Z,$)}static fromJson(Z,$){return new eY().fromJson(Z,$)}static fromJsonString(Z,$){return new eY().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(eY,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",tY,oY]}};R$=class R$ extends y${constructor(Z){super();y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new R$().fromBinary(Z,$)}static fromJson(Z,$){return new R$().fromJson(Z,$)}static fromJsonString(Z,$){return new R$().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(R$,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",rY,eY]}}});import{Message as Ws,proto3 as m}from"@bufbuild/protobuf";var eQ="agent.v1.",h0,_F,SF,ZX,$X,JX,YX,XX,zX,KX,m$,HX,QX,qX,WX,j$;var gF=I(()=>{k();h0=class h0 extends B{static get runtime(){return N(this,"runtime",m)}static $p(){return eQ}};_F=w(m,eQ,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),SF=w(m,eQ,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);ZX=class ZX extends h0{constructor(Z){super();this.line=0,this.character=0,m.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZX().fromBinary(Z,$)}static fromJson(Z,$){return new ZX().fromJson(Z,$)}static fromJsonString(Z,$){return new ZX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(ZX,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};$X=class $X extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new $X().fromBinary(Z,$)}static fromJson(Z,$){return new $X().fromJson(Z,$)}static fromJsonString(Z,$){return new $X().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals($X,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",ZX]}};JX=class JX extends h0{constructor(Z){super();this.message="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new JX().fromBinary(Z,$)}static fromJson(Z,$){return new JX().fromJson(Z,$)}static fromJsonString(Z,$){return new JX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(JX,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",$X]}};YX=class YX extends h0{constructor(Z){super();this.contents="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new YX().fromBinary(Z,$)}static fromJson(Z,$){return new YX().fromJson(Z,$)}static fromJsonString(Z,$){return new YX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(YX,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};XX=class XX extends h0{constructor(Z){super();this.canvasId="",this.url="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new XX().fromBinary(Z,$)}static fromJson(Z,$){return new XX().fromJson(Z,$)}static fromJsonString(Z,$){return new XX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(XX,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9"]}};zX=class zX extends h0{constructor(Z){super();this.reason=_F.UNSPECIFIED,this.diagnostics=[],m.util.initPartial(Z,this)}static fromBinary(Z,$){return new zX().fromBinary(Z,$)}static fromJson(Z,$){return new zX().fromJson(Z,$)}static fromJsonString(Z,$){return new zX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(zX,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",_F,JX]}};KX=class KX extends h0{constructor(Z){super();this.result={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new KX().fromBinary(Z,$)}static fromJson(Z,$){return new KX().fromJson(Z,$)}static fromJsonString(Z,$){return new KX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(KX,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",XX,zX]}};m$=class m$ extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new m$().fromBinary(Z,$)}static fromJson(Z,$){return new m$().fromJson(Z,$)}static fromJsonString(Z,$){return new m$().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(m$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",YX,KX]}};HX=class HX extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new HX().fromBinary(Z,$)}static fromJson(Z,$){return new HX().fromJson(Z,$)}static fromJsonString(Z,$){return new HX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(HX,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};QX=class QX extends h0{constructor(Z){super();this.canvasId="",this.url="",this.source="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new QX().fromBinary(Z,$)}static fromJson(Z,$){return new QX().fromJson(Z,$)}static fromJsonString(Z,$){return new QX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(QX,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};qX=class qX extends h0{constructor(Z){super();this.reason=SF.UNSPECIFIED,m.util.initPartial(Z,this)}static fromBinary(Z,$){return new qX().fromBinary(Z,$)}static fromJson(Z,$){return new qX().fromJson(Z,$)}static fromJsonString(Z,$){return new qX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(qX,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",SF]}};WX=class WX extends h0{constructor(Z){super();this.result={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new WX().fromBinary(Z,$)}static fromJson(Z,$){return new WX().fromJson(Z,$)}static fromJsonString(Z,$){return new WX().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(WX,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",QX,qX]}};j$=class j$ extends h0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new j$().fromBinary(Z,$)}static fromJson(Z,$){return new j$().fromJson(Z,$)}static fromJsonString(Z,$){return new j$().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(j$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",HX,WX]}}});import{Message as Gs,proto3 as L6}from"@bufbuild/protobuf";var Th="agent.v1.",LX,NX,BX,FX,GX,_$;var bF=I(()=>{k();LX=class LX extends B{static get runtime(){return N(this,"runtime",L6)}static $p(){return Th}};NX=class NX extends LX{constructor(Z){super();this.prompt="",this.referenceImagePaths=[],L6.util.initPartial(Z,this)}static fromBinary(Z,$){return new NX().fromBinary(Z,$)}static fromJson(Z,$){return new NX().fromJson(Z,$)}static fromJsonString(Z,$){return new NX().fromJsonString(Z,$)}static equals(Z,$){return L6.util.equals(NX,Z,$)}static $(){return["GenerateVideoArgs|1 prompt 9|2 file_path 9?|3 image_path 9?|4 reference_image_paths 9*|5 duration_seconds 13?|6 aspect_ratio 9?|7 resolution 9?"]}};BX=class BX extends LX{constructor(Z){super();this.result={case:void 0},L6.util.initPartial(Z,this)}static fromBinary(Z,$){return new BX().fromBinary(Z,$)}static fromJson(Z,$){return new BX().fromJson(Z,$)}static fromJsonString(Z,$){return new BX().fromJsonString(Z,$)}static equals(Z,$){return L6.util.equals(BX,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",FX,GX]}};FX=class FX extends LX{constructor(Z){super();this.filePath="",this.durationSeconds=0,L6.util.initPartial(Z,this)}static fromBinary(Z,$){return new FX().fromBinary(Z,$)}static fromJson(Z,$){return new FX().fromJson(Z,$)}static fromJsonString(Z,$){return new FX().fromJsonString(Z,$)}static equals(Z,$){return L6.util.equals(FX,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};GX=class GX extends LX{constructor(Z){super();this.error="",L6.util.initPartial(Z,this)}static fromBinary(Z,$){return new GX().fromBinary(Z,$)}static fromJson(Z,$){return new GX().fromJson(Z,$)}static fromJsonString(Z,$){return new GX().fromJsonString(Z,$)}static equals(Z,$){return L6.util.equals(GX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};_$=class _$ extends LX{constructor(Z){super();L6.util.initPartial(Z,this)}static fromBinary(Z,$){return new _$().fromBinary(Z,$)}static fromJson(Z,$){return new _$().fromJson(Z,$)}static fromJsonString(Z,$){return new _$().fromJsonString(Z,$)}static equals(Z,$){return L6.util.equals(_$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",NX,BX]}}});import{Message as Is,proto3 as U0}from"@bufbuild/protobuf";var Rh="agent.v1.",K8,wX,DX,IX,UX,OX,kX,S$;var dF=I(()=>{k();K8=class K8 extends B{static get runtime(){return N(this,"runtime",U0)}static $p(){return Rh}};wX=class wX extends K8{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wX().fromBinary(Z,$)}static fromJson(Z,$){return new wX().fromJson(Z,$)}static fromJsonString(Z,$){return new wX().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(wX,Z,$)}static $(){return["XSearchArgs|1 query 9|2 from_date 9?|3 to_date 9?|4 allowed_x_handles 9*|5 excluded_x_handles 9*"]}};DX=class DX extends K8{constructor(Z){super();this.result={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DX().fromBinary(Z,$)}static fromJson(Z,$){return new DX().fromJson(Z,$)}static fromJsonString(Z,$){return new DX().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(DX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",IX,OX,kX]}};IX=class IX extends K8{constructor(Z){super();this.answer="",this.citations=[],U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IX().fromBinary(Z,$)}static fromJson(Z,$){return new IX().fromJson(Z,$)}static fromJsonString(Z,$){return new IX().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(IX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",UX]}};UX=class UX extends K8{constructor(Z){super();this.url="",this.title="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UX().fromBinary(Z,$)}static fromJson(Z,$){return new UX().fromJson(Z,$)}static fromJsonString(Z,$){return new UX().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(UX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};OX=class OX extends K8{constructor(Z){super();this.error="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OX().fromBinary(Z,$)}static fromJson(Z,$){return new OX().fromJson(Z,$)}static fromJsonString(Z,$){return new OX().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(OX,Z,$)}static $(){return["XSearchError|1 error 9"]}};kX=class kX extends K8{constructor(Z){super();this.reason="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kX().fromBinary(Z,$)}static fromJson(Z,$){return new kX().fromJson(Z,$)}static fromJsonString(Z,$){return new kX().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(kX,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};S$=class S$ extends K8{constructor(Z){super();U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S$().fromBinary(Z,$)}static fromJson(Z,$){return new S$().fromJson(Z,$)}static fromJsonString(Z,$){return new S$().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(S$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",wX,DX]}}});import{Message as fs,proto3 as Zq}from"@bufbuild/protobuf";var yh="agent.v1.",cF,g$;var uF=I(()=>{k();cF=class cF extends B{static get runtime(){return N(this,"runtime",Zq)}static $p(){return yh}};g$=class g$ extends cF{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],this.argumentHint="",this.disableUserInvocation=!1,Zq.util.initPartial(Z,this)}static fromBinary(Z,$){return new g$().fromBinary(Z,$)}static fromJson(Z,$){return new g$().fromJson(Z,$)}static fromJsonString(Z,$){return new g$().fromJsonString(Z,$)}static equals(Z,$){return Zq.util.equals(g$,Z,$)}static $(){return["AgentSkill|1 full_path 9|2 content 9|3 description 9|4 parse_error 9?|5 environments 9*|6 disabled_environments 9*|7 git_remote_origin 9?|8 disable_model_invocation 8|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 globs 9*|14 scoped_to 9*|15 argument_hint 9|16 disable_user_invocation 8"]}}});import{Message as xs,proto3 as U,protoInt64 as lF}from"@bufbuild/protobuf";var iF="agent.v1.",M,pF,fX,EX,PX,b$,VX,xX,MX,hX,AX,vX,CX,TX,RX,yX,mX,jX,_X,SX,gX,bX,dX,cX,uX,lX,pX,iX,nX,aX,rX,sX,tX,oX,eX,Zz,$z,Jz,Yz,Xz,zz,Kz,Hz,Qz,qz,Wz,d$,Nz,Bz,Fz,Gz,Lz,wz,Dz,Iz;var nF=I(()=>{x8();dQ();gQ();uF();k();M=class M extends B{static get runtime(){return N(this,"runtime",U)}static $p(){return iF}};pF=w(U,iF,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);fX=class fX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new fX().fromBinary(Z,$)}static fromJson(Z,$){return new fX().fromJson(Z,$)}static fromJsonString(Z,$){return new fX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(fX,Z,$)}static $(){return["SelectedImage|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 path 9|4 dimension #2|7 mime_type 9",EX,b$,PX]}};EX=class EX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),U.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(EX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};PX=class PX extends M{constructor(Z){super();this.width=0,this.height=0,U.util.initPartial(Z,this)}static fromBinary(Z,$){return new PX().fromBinary(Z,$)}static fromJson(Z,$){return new PX().fromJson(Z,$)}static fromJsonString(Z,$){return new PX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(PX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};b$=class b$ extends M{constructor(Z){super();this.uploadId="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new b$().fromBinary(Z,$)}static fromJson(Z,$){return new b$().fromJson(Z,$)}static fromJsonString(Z,$){return new b$().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(b$,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};VX=class VX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new VX().fromBinary(Z,$)}static fromJson(Z,$){return new VX().fromJson(Z,$)}static fromJsonString(Z,$){return new VX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(VX,Z,$)}static $(){return["SelectedDocument|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 filename 9|4 mime_type 9|7 path 9",xX,b$]}};xX=class xX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),U.util.initPartial(Z,this)}static fromBinary(Z,$){return new xX().fromBinary(Z,$)}static fromJson(Z,$){return new xX().fromJson(Z,$)}static fromJsonString(Z,$){return new xX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(xX,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};MX=class MX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,U.util.initPartial(Z,this)}static fromBinary(Z,$){return new MX().fromBinary(Z,$)}static fromJson(Z,$){return new MX().fromJson(Z,$)}static fromJsonString(Z,$){return new MX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(MX,Z,$)}static $(){return["SelectedVideo|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|11 signed_url #1 data_or_blob_id|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",hX,AX]}};hX=class hX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),U.util.initPartial(Z,this)}static fromBinary(Z,$){return new hX().fromBinary(Z,$)}static fromJson(Z,$){return new hX().fromJson(Z,$)}static fromJsonString(Z,$){return new hX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(hX,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};AX=class AX extends M{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=lF.zero,this.refreshAfterUnixMs=lF.zero,this.conversationId="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(AX,Z,$)}static $(){return["SelectedVideo.SignedUrl|1 url 9|2 key 9|3 expires_at_unix_ms 3|4 refresh_after_unix_ms 3|5 conversation_id 9"]}};vX=class vX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},U.util.initPartial(Z,this)}static fromBinary(Z,$){return new vX().fromBinary(Z,$)}static fromJson(Z,$){return new vX().fromJson(Z,$)}static fromJsonString(Z,$){return new vX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(vX,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};CX=class CX extends M{constructor(Z){super();this.content="",this.path="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new CX().fromBinary(Z,$)}static fromJson(Z,$){return new CX().fromJson(Z,$)}static fromJsonString(Z,$){return new CX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(CX,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};TX=class TX extends M{constructor(Z){super();this.content="",this.path="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(TX,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",l6]}};RX=class RX extends M{constructor(Z){super();this.content="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(RX,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};yX=class yX extends M{constructor(Z){super();this.content="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new yX().fromBinary(Z,$)}static fromJson(Z,$){return new yX().fromJson(Z,$)}static fromJsonString(Z,$){return new yX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(yX,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",l6]}};mX=class mX extends M{constructor(Z){super();this.path="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new mX().fromBinary(Z,$)}static fromJson(Z,$){return new mX().fromJson(Z,$)}static fromJsonString(Z,$){return new mX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(mX,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",k6]}};jX=class jX extends M{constructor(Z){super();this.url="",this.uuid="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new jX().fromBinary(Z,$)}static fromJson(Z,$){return new jX().fromJson(Z,$)}static fromJsonString(Z,$){return new jX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(jX,Z,$)}static $(){return["SelectedExternalLink|1 url 9|2 uuid 9|3 pdf_content 9?|4 is_pdf 8?|5 filename 9?|6 blob_id 12?"]}};_X=class _X extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new _X().fromBinary(Z,$)}static fromJson(Z,$){return new _X().fromJson(Z,$)}static fromJsonString(Z,$){return new _X().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(_X,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",v6]}};SX=class SX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,U.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(SX,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};gX=class gX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,U.util.initPartial(Z,this)}static fromBinary(Z,$){return new gX().fromBinary(Z,$)}static fromJson(Z,$){return new gX().fromJson(Z,$)}static fromJsonString(Z,$){return new gX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(gX,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};bX=class bX extends M{constructor(Z){super();this.sha="",this.message="",this.diff="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new bX().fromBinary(Z,$)}static fromJson(Z,$){return new bX().fromJson(Z,$)}static fromJsonString(Z,$){return new bX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(bX,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};dX=class dX extends M{constructor(Z){super();this.number=0,this.url="",this.folderPath="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new dX().fromBinary(Z,$)}static fromJson(Z,$){return new dX().fromJson(Z,$)}static fromJsonString(Z,$){return new dX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(dX,Z,$)}static $(){return["SelectedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9|5 summary_json 9?|6 description 9?|7 blob_id 12?"]}};cX=class cX extends M{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,U.util.initPartial(Z,this)}static fromBinary(Z,$){return new cX().fromBinary(Z,$)}static fromJson(Z,$){return new cX().fromJson(Z,$)}static fromJsonString(Z,$){return new cX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(cX,Z,$)}static $(){return["SelectedGitPRDiffSelection|1 pr_url 9|2 file_path 9|3 start_line 5|4 end_line 5|5 diff_content 9?|6 blob_id 12?"]}};uX=class uX extends M{constructor(Z){super();this.pluginId="",this.capabilityType=pF.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new uX().fromBinary(Z,$)}static fromJson(Z,$){return new uX().fromJson(Z,$)}static fromJsonString(Z,$){return new uX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(uX,Z,$)}static $(){return["SelectedPluginCapabilityRef|1 plugin_id 9|2 capability_type #0|3 source_path 9|4 snapshot_token 9|5 resolved_commit_sha 9?",pF]}};lX=class lX extends M{constructor(Z){super();this.name="",this.content="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new lX().fromBinary(Z,$)}static fromJson(Z,$){return new lX().fromJson(Z,$)}static fromJsonString(Z,$){return new lX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(lX,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",uX]}};pX=class pX extends M{constructor(Z){super();this.docId="",this.name="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new pX().fromBinary(Z,$)}static fromJson(Z,$){return new pX().fromJson(Z,$)}static fromJsonString(Z,$){return new pX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(pX,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};iX=class iX extends M{constructor(Z){super();this.agentId="",this.name="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new iX().fromBinary(Z,$)}static fromJson(Z,$){return new iX().fromJson(Z,$)}static fromJsonString(Z,$){return new iX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(iX,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};nX=class nX extends M{constructor(Z){super();this.name="",this.path="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new nX().fromBinary(Z,$)}static fromJson(Z,$){return new nX().fromJson(Z,$)}static fromJsonString(Z,$){return new nX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(nX,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};aX=class aX extends M{constructor(Z){super();this.recentAgents=[],U.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(aX,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",nX]}};rX=class rX extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(rX,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};sX=class sX extends M{constructor(Z){super();this.callFrames=[],U.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(sX,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",rX]}};tX=class tX extends M{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(tX,Z,$)}static $(){return["SelectedConsoleLog|1 message 9|2 timestamp 1|3 level 9|4 client_name 9|5 session_id 9|6 stack_trace #0?|7 object_data_json 9?",sX]}};oX=class oX extends M{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(oX,Z,$)}static $(){return["SelectedUIElement|1 element 9|2 xpath 9|3 text_content 9|4 extra 9|5 component 9?|6 component_props_json 9?"]}};eX=class eX extends M{constructor(Z){super();this.name="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(eX,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};Zz=class Zz extends M{constructor(Z){super();this.browserId="",this.url="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Zz,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};$z=class $z extends M{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],U.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals($z,Z,$)}static $(){return["SelectedAgenticGitActionCommitParams|1 files_to_commit 9*|2 files_to_exclude_from_commit 9*|3 should_stage_all_changes 8|4 create_pr_draft 8?|5 files_to_commit_with_status #0*|6 files_to_exclude_from_commit_with_status #0*",Yz]}};Jz=class Jz extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Jz,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};Yz=class Yz extends M{constructor(Z){super();this.path="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Yz,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};Xz=class Xz extends M{constructor(Z){super();this.filesToPush=[],U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Xz,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};zz=class zz extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(zz,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};Kz=class Kz extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Kz,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};Hz=class Hz extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Hz,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};Qz=class Qz extends M{constructor(Z){super();this.remoteBranch="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Qz,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};qz=class qz extends M{constructor(Z){super();this.params={case:void 0},U.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(qz,Z,$)}static $(){return["SelectedAgenticGitAction|2 commit_params #0 params|6 commit_and_push_params #0 params|3 push_params #1 params|7 create_pr_params #1 params|8 create_pr_with_changes_params #0 params|4 fix_merge_conflicts_params #2 params|11 babysit_pr_in_cloud_params #3 params|14 apply_locally_params #4 params|15 checkout_branch_params #4 params|12 create_branch_and_commit_params #0 params|13 create_branch_commit_and_push_params #0 params|16 update_branch_params #5 params|17 create_branch_params #6 params|5 branch_context #7?|9 path_to_template_file 9?|10 path_to_template_dir 9?",$z,Xz,zz,Kz,Qz,Hz,Jz,Wz]}};Wz=class Wz extends M{constructor(Z){super();U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Wz,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};d$=class d$ extends M{constructor(Z){super();this.selectedImages=[],this.extraContext=[],this.extraContextEntries=[],this.files=[],this.codeSelections=[],this.terminals=[],this.terminalSelections=[],this.folders=[],this.externalLinks=[],this.cursorRules=[],this.cursorCommands=[],this.documentations=[],this.uiElements=[],this.consoleLogs=[],this.gitCommits=[],this.pastChats=[],this.gitPrDiffSelections=[],this.selectedPullRequests=[],this.selectedSubagents=[],this.selectedVideos=[],this.selectedBrowsers=[],this.selectedDocuments=[],this.selectedSkills=[],U.util.initPartial(Z,this)}static fromBinary(Z,$){return new d$().fromBinary(Z,$)}static fromJson(Z,$){return new d$().fromJson(Z,$)}static fromJsonString(Z,$){return new d$().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(d$,Z,$)}static $(){return["SelectedContext|1 selected_images #0*|2 invocation_context #1?|3 extra_context 9*|16 extra_context_entries #2*|4 files #3*|5 code_selections #4*|6 terminals #5*|7 terminal_selections #6*|8 folders #7*|9 external_links #8*|10 cursor_rules #9*|18 git_diff #10?|11 git_diff_from_branch_to_main #11?|12 cursor_commands #12*|13 documentations #13*|14 ui_elements #14*|15 console_logs #15*|17 git_commits #16*|19 past_chats #17*|20 git_pr_diff_selections #18*|21 selected_pull_requests #19*|22 selected_subagents #20*|23 selected_videos #21*|24 selected_browsers #22*|25 selected_documents #23*|26 selected_skills #24*|27 recent_agents_context #25?|34 selected_agentic_git_action #26?",fX,Nz,vX,CX,TX,RX,yX,mX,jX,_X,SX,gX,lX,pX,oX,tX,bX,iX,cX,dX,eX,MX,Zz,VX,g$,aX,qz]}};Nz=class Nz extends M{constructor(Z){super();this.data={case:void 0},U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Nz,Z,$)}static $(){return["InvocationContext|1 slack_thread #0 data|2 github_pr #1 data|3 ide_state #2 data|4 microsoft_teams_thread #3 data|10 blob_id 12 data",Bz,Gz,Lz,Fz]}};Bz=class Bz extends M{constructor(Z){super();this.thread="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Bz,Z,$)}static $(){return["InvocationContext.SlackThread|1 thread 9|2 channel_name 9?|3 channel_purpose 9?|4 channel_topic 9?|5 sender_name 9?|6 sender_id 9?|7 sender_type 9?|8 is_directly_addressed 8?"]}};Fz=class Fz extends M{constructor(Z){super();this.thread="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Fz,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};Gz=class Gz extends M{constructor(Z){super();this.title="",this.description="",this.comments="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Gz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?"]}};Lz=class Lz extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Lz,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",wz,Iz]}};wz=class wz extends M{constructor(Z){super();this.path="",this.totalLines=0,U.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(wz,Z,$)}static $(){return["InvocationContext.IdeState.File|1 path 9|2 relative_path 9?|3 cursor_position #0?|4 total_lines 5|5 active_command 9?",Dz]}};Dz=class Dz extends M{constructor(Z){super();this.line=0,this.text="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Dz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};Iz=class Iz extends M{constructor(Z){super();this.number=0,this.url="",U.util.initPartial(Z,this)}static fromBinary(Z,$){return new Iz().fromBinary(Z,$)}static fromJson(Z,$){return new Iz().fromJson(Z,$)}static fromJsonString(Z,$){return new Iz().fromJsonString(Z,$)}static equals(Z,$){return U.util.equals(Iz,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as ps,proto3 as F,protoInt64 as hH}from"@bufbuild/protobuf";var a$="agent.v1.",E,aK,aF,rF,sF,mh,jh,Uz,c$,Oz,kz,fz,Ez,Pz,Vz,xz,Mz,hz,Az,vz,Cz,Tz,Rz,u$,yz,mz,jz,_z,Sz,j6,gz,bz,dz,cz,uz,lz,pz,iz,nz,az,rz,sz,tz,H8,oz,ez,ZK,Q8,q8,_6,$K,l$,JK,p$,W8,YK,XK,N8,zK,B8,KK,HK,QK,qK,WK,NK,i$,BK,FK,GK,LK,F8,G8,n$,L8,wK,DK,m0,IK,UK;var AH=I(()=>{bN();tN();ZB();$B();XB();HB();PH();WB();BB();GB();LB();UB();OB();kB();fB();VB();xB();AB();vB();CB();mB();SB();dB();cB();uB();lB();pB();iB();rB();sB();eB();ZF();$F();JF();YF();XF();zF();KF();qF();BF();FF();GF();LF();wF();DF();UF();OF();kF();fF();EF();PF();VF();xF();CF();RF();mF();jF();gF();bF();dF();pN();nF();k();E=class E extends B{static get runtime(){return N(this,"runtime",F)}static $p(){return a$}};aK=w(F,a$,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),aF=w(F,a$,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),rF=w(F,a$,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"]],1),sF=w(F,a$,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),mh=w(F,a$,"SimulatedMsgReason",[[0,"UNSPECIFIED"],[1,"PLAN_EXECUTION"],[2,"COMMIT_REMINDER"],[3,"BACKGROUND_TASK_COMPLETION"],[4,"DIFF_TAB_COMMIT"],[5,"DIFF_TAB_COMMIT_AND_PUSH"],[6,"DIFF_TAB_PUSH"],[7,"DIFF_TAB_CREATE_PR"],[8,"DIFF_TAB_FIX_MERGE_CONFLICTS"],[9,"USER_SENT_TO_SUBAGENT"],[10,"USER_INTERRUPTED_SUBAGENT"],[11,"USER_QUEUED_TO_SUBAGENT"],[12,"BABYSIT_PR_IN_CLOUD"],[13,"CI_PANEL_INVESTIGATE_FAILURE"],[14,"MULTITASK"],[15,"BUILD_IN_PARALLEL"],[16,"MULTITASK_SPLIT_PRS"],[17,"APPLY_LOCALLY"],[18,"CHECKOUT_BRANCH"],[19,"DIFF_TAB_UPDATE_BRANCH"],[20,"PR_TAB_BUGBOT_FIX"],[22,"RUN_BUGBOT_REVIEW"],[23,"RUN_SECURITY_REVIEW"],[24,"FSD_APPLY_FINDING"],[25,"FSD_UNDO_FINDING"],[26,"FSD_START"],[27,"FSD_PR_INTERRUPT"],[28,"SUBSCRIPTION"],[29,"DIFF_TAB_CREATE_BRANCH"],[30,"AGENT_STORE_CONFLICT"],[31,"GOAL_CONTINUATION"],[32,"PROJECT_KICKOFF"],[33,"MARKDOWN_PROMPT_BUTTON"],[34,"USER_QUICK_ACTION"],[35,"INTERACTION_RESPONSE"]],1),jh=w(F,a$,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1);Uz=class Uz extends E{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=yQ.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=V8.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Uz,Z,$)}static $(){return["TaskArgs|1 description 9|2 prompt 9|3 subagent_type #0|4 model 9?|5 resume 9?|6 agent_id 9?|7 attachments 9*|8 mode #1|9 responding_to_message_ids 9*|10 environment #2|11 machine #3?",u6,yQ,V8,c$]}};c$=class c$ extends E{constructor(Z){super();this.machine={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new c$().fromBinary(Z,$)}static fromJson(Z,$){return new c$().fromJson(Z,$)}static fromJsonString(Z,$){return new c$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(c$,Z,$)}static $(){return["TargetMachine|1 same_machine #0 machine|2 new_cloud_vm #1 machine|3 self_hosted_worker #2 machine|4 self_hosted_pool #3 machine",Oz,kz,fz,Ez]}};Oz=class Oz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Oz().fromBinary(Z,$)}static fromJson(Z,$){return new Oz().fromJson(Z,$)}static fromJsonString(Z,$){return new Oz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Oz,Z,$)}static $(){return["SameMachineTarget"]}};kz=class kz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new kz().fromBinary(Z,$)}static fromJson(Z,$){return new kz().fromJson(Z,$)}static fromJsonString(Z,$){return new kz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(kz,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};fz=class fz extends E{constructor(Z){super();this.workerId="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new fz().fromBinary(Z,$)}static fromJson(Z,$){return new fz().fromJson(Z,$)}static fromJsonString(Z,$){return new fz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(fz,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};Ez=class Ez extends E{constructor(Z){super();this.labels=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Ez().fromBinary(Z,$)}static fromJson(Z,$){return new Ez().fromJson(Z,$)}static fromJsonString(Z,$){return new Ez().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Ez,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",Pz]}};Pz=class Pz extends E{constructor(Z){super();this.key="",this.value="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Pz().fromBinary(Z,$)}static fromJson(Z,$){return new Pz().fromJson(Z,$)}static fromJsonString(Z,$){return new Pz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Pz,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};Vz=class Vz extends E{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=RQ.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Vz().fromBinary(Z,$)}static fromJson(Z,$){return new Vz().fromJson(Z,$)}static fromJsonString(Z,$){return new Vz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Vz,Z,$)}static $(){return["TaskSuccess|1 conversation_steps #0*|2 agent_id 9?|3 is_background 8|4 duration_ms 4?|5 result_suffix 9?|6 background_reason #1|7 transcript_path 9?",j6,RQ]}};xz=class xz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new xz().fromBinary(Z,$)}static fromJson(Z,$){return new xz().fromJson(Z,$)}static fromJsonString(Z,$){return new xz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(xz,Z,$)}static $(){return["TaskError|1 error 9"]}};Mz=class Mz extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Mz().fromBinary(Z,$)}static fromJson(Z,$){return new Mz().fromJson(Z,$)}static fromJsonString(Z,$){return new Mz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Mz,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",Vz,xz]}};hz=class hz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new hz().fromBinary(Z,$)}static fromJson(Z,$){return new hz().fromJson(Z,$)}static fromJsonString(Z,$){return new hz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(hz,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",Uz,Mz]}};Az=class Az extends E{constructor(Z){super();this.path="",this.branchName="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Az().fromBinary(Z,$)}static fromJson(Z,$){return new Az().fromJson(Z,$)}static fromJsonString(Z,$){return new Az().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Az,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};vz=class vz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new vz().fromBinary(Z,$)}static fromJson(Z,$){return new vz().fromJson(Z,$)}static fromJsonString(Z,$){return new vz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(vz,Z,$)}static $(){return["SetActiveBranchSuccess"]}};Cz=class Cz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Cz().fromBinary(Z,$)}static fromJson(Z,$){return new Cz().fromJson(Z,$)}static fromJsonString(Z,$){return new Cz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Cz,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};Tz=class Tz extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Tz().fromBinary(Z,$)}static fromJson(Z,$){return new Tz().fromJson(Z,$)}static fromJsonString(Z,$){return new Tz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Tz,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",vz,Cz]}};Rz=class Rz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Rz().fromBinary(Z,$)}static fromJson(Z,$){return new Rz().fromJson(Z,$)}static fromJsonString(Z,$){return new Rz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Rz,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",Az,Tz]}};u$=class u$ extends E{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new u$().fromBinary(Z,$)}static fromJson(Z,$){return new u$().fromJson(Z,$)}static fromJsonString(Z,$){return new u$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(u$,Z,$)}static $(){return["ToolCall|1 shell_tool_call #0 tool|3 delete_tool_call #1 tool|4 glob_tool_call #2 tool|5 grep_tool_call #3 tool|8 read_tool_call #4 tool|9 update_todos_tool_call #5 tool|10 read_todos_tool_call #6 tool|12 edit_tool_call #7 tool|13 ls_tool_call #8 tool|14 read_lints_tool_call #9 tool|15 mcp_tool_call #10 tool|16 sem_search_tool_call #11 tool|17 create_plan_tool_call #12 tool|18 web_search_tool_call #13 tool|19 task_tool_call #14 tool|20 list_mcp_resources_tool_call #15 tool|21 read_mcp_resource_tool_call #16 tool|22 apply_agent_diff_tool_call #17 tool|23 ask_question_tool_call #18 tool|24 fetch_tool_call #19 tool|25 switch_mode_tool_call #20 tool|28 generate_image_tool_call #21 tool|29 record_screen_tool_call #22 tool|30 computer_use_tool_call #23 tool|31 write_shell_stdin_tool_call #24 tool|32 reflect_tool_call #25 tool|33 setup_vm_environment_tool_call #26 tool|34 truncated_tool_call #27 tool|35 start_grind_execution_tool_call #28 tool|36 start_grind_planning_tool_call #29 tool|37 web_fetch_tool_call #30 tool|38 report_bugfix_results_tool_call #31 tool|39 ai_attribution_tool_call #32 tool|40 pr_management_tool_call #33 tool|41 mcp_auth_tool_call #34 tool|42 await_tool_call #35 tool|43 blame_by_file_path_tool_call #36 tool|44 get_mcp_tools_tool_call #37 tool|45 report_bug_tool_call #38 tool|46 set_active_branch_tool_call #39 tool|48 communicate_update_tool_call #40 tool|49 send_final_summary_tool_call #41 tool|50 update_pr_code_tour_tool_call #42 tool|51 replace_env_tool_call #43 tool|52 edit_pr_labels_tool_call #44 tool|53 record_ci_investigation_findings_tool_call #45 tool|55 send_message_tool_call #46 tool|56 fetch_cloud_agent_data_tool_call #47 tool|58 send_to_user_tool_call #48 tool|61 pi_read_tool_call #49 tool|62 pi_bash_tool_call #50 tool|63 pi_edit_tool_call #51 tool|64 pi_write_tool_call #52 tool|65 pi_grep_tool_call #53 tool|66 pi_find_tool_call #54 tool|67 pi_ls_tool_call #55 tool|68 connect_scm_tool_call #56 tool|69 search_conversations_tool_call #57 tool|70 create_goal_tool_call #58 tool|71 update_goal_tool_call #59 tool|73 get_agent_status_tool_call #60 tool|74 send_to_agent_tool_call #61 tool|75 read_agent_transcript_tool_call #62 tool|76 create_agent_tool_call #63 tool|77 stop_agent_tool_call #64 tool|78 get_pr_code_tour_tool_call #65 tool|79 write_canvas_tool_call #66 tool|80 read_canvas_tool_call #67 tool|81 generate_video_tool_call #68 tool|82 x_search_tool_call #69 tool|54 hook_additional_contexts #70*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",A8,T8,R8,j8,S8,b8,d8,c8,p8,i8,$Z,HZ,QZ,NZ,hz,FZ,GZ,LZ,IZ,fZ,EZ,VZ,vZ,CZ,yZ,mZ,_Z,Sz,SZ,gZ,bZ,uZ,pZ,iZ,nZ,tZ,oZ,eZ,Z$,Rz,$$,J$,Y$,z$,K$,H$,Q$,q$,W$,N$,B$,F$,G$,w$,D$,I$,U$,E$,V$,x$,h$,A$,v$,C$,T$,R$,m$,j$,_$,S$,i6]}};yz=class yz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new yz().fromBinary(Z,$)}static fromJson(Z,$){return new yz().fromJson(Z,$)}static fromJsonString(Z,$){return new yz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(yz,Z,$)}static $(){return["TruncatedToolCallArgs"]}};mz=class mz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new mz().fromBinary(Z,$)}static fromJson(Z,$){return new mz().fromJson(Z,$)}static fromJsonString(Z,$){return new mz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(mz,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};jz=class jz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new jz().fromBinary(Z,$)}static fromJson(Z,$){return new jz().fromJson(Z,$)}static fromJsonString(Z,$){return new jz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(jz,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};_z=class _z extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _z().fromBinary(Z,$)}static fromJson(Z,$){return new _z().fromJson(Z,$)}static fromJsonString(Z,$){return new _z().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_z,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",mz,jz]}};Sz=class Sz extends E{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Sz().fromBinary(Z,$)}static fromJson(Z,$){return new Sz().fromJson(Z,$)}static fromJsonString(Z,$){return new Sz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Sz,Z,$)}static $(){return["TruncatedToolCall|1 original_step_blob_id 12|2 args #0|3 result #1|4 original_step_size_bytes 13|5 preview #2",yz,_z,u$]}};j6=class j6 extends E{constructor(Z){super();this.message={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new j6().fromBinary(Z,$)}static fromJson(Z,$){return new j6().fromJson(Z,$)}static fromJsonString(Z,$){return new j6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(j6,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",ez,u$,ZK]}};gz=class gz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new gz().fromBinary(Z,$)}static fromJson(Z,$){return new gz().fromJson(Z,$)}static fromJsonString(Z,$){return new gz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(gz,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?"]}};bz=class bz extends E{constructor(Z){super();this.parentToolCallId="",this.environment=V8.UNSPECIFIED,this.status=aF.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new bz().fromBinary(Z,$)}static fromJson(Z,$){return new bz().fromJson(Z,$)}static fromJsonString(Z,$){return new bz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(bz,Z,$)}static $(){return["SubagentRunState|1 parent_tool_call_id 9|2 subagent_id 9?|3 environment #0|4 status #1|5 title 9?|6 detail 9?|7 transcript_path 9?|8 output_path 9?|9 completed_timestamp_ms 4?|10 completion_reason #2?",V8,aF,gN]}};dz=class dz extends E{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=rF.UNSPECIFIED,this.backgrounded=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new dz().fromBinary(Z,$)}static fromJson(Z,$){return new dz().fromJson(Z,$)}static fromJsonString(Z,$){return new dz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(dz,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",rF]}};cz=class cz extends E{constructor(Z){super();this.id="",this.label="",this.source=sF.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new cz().fromBinary(Z,$)}static fromJson(Z,$){return new cz().fromJson(Z,$)}static fromJsonString(Z,$){return new cz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(cz,Z,$)}static $(){return["SubmittedCustomMode|1 id 9|2 label 9|5 source #0|6 source_path 9?|7 source_hash 9?|10 managed_skill_id 9?|11 plugin_id 9?|12 plugin_snapshot_token 9?",sF]}};uz=class uz extends E{constructor(Z){super();this.id="",this.label="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new uz().fromBinary(Z,$)}static fromJson(Z,$){return new uz().fromJson(Z,$)}static fromJsonString(Z,$){return new uz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(uz,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};lz=class lz extends E{constructor(Z){super();this.nextMode=aK.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new lz().fromBinary(Z,$)}static fromJson(Z,$){return new lz().fromJson(Z,$)}static fromJsonString(Z,$){return new lz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(lz,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",aK,uz]}};pz=class pz extends E{constructor(Z){super();this.intent={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new pz().fromBinary(Z,$)}static fromJson(Z,$){return new pz().fromJson(Z,$)}static fromJsonString(Z,$){return new pz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(pz,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",cz,lz]}};iz=class iz extends E{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new iz().fromBinary(Z,$)}static fromJson(Z,$){return new iz().fromJson(Z,$)}static fromJsonString(Z,$){return new iz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(iz,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",IK]}};nz=class nz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new nz().fromBinary(Z,$)}static fromJson(Z,$){return new nz().fromJson(Z,$)}static fromJsonString(Z,$){return new nz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(nz,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};az=class az extends E{constructor(Z){super();this.planId="",this.planTitle="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new az().fromBinary(Z,$)}static fromJson(Z,$){return new az().fromJson(Z,$)}static fromJsonString(Z,$){return new az().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(az,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};rz=class rz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new rz().fromBinary(Z,$)}static fromJson(Z,$){return new rz().fromJson(Z,$)}static fromJsonString(Z,$){return new rz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(rz,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",sz,tz]}};sz=class sz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new sz().fromBinary(Z,$)}static fromJson(Z,$){return new sz().fromJson(Z,$)}static fromJsonString(Z,$){return new sz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(sz,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};tz=class tz extends E{constructor(Z){super();this.storeDir="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new tz().fromBinary(Z,$)}static fromJson(Z,$){return new tz().fromJson(Z,$)}static fromJsonString(Z,$){return new tz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(tz,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};H8=class H8 extends E{constructor(Z){super();this.text="",this.messageId="",this.mode=aK.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new H8().fromBinary(Z,$)}static fromJson(Z,$){return new H8().fromJson(Z,$)}static fromJsonString(Z,$){return new H8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(H8,Z,$)}static $(){return["UserMessage|1 text 9|2 message_id 9|3 selected_context #0?|4 mode #1|5 is_simulated_msg 8?|6 best_of_n_group_id 9?|7 try_use_best_of_n_promotion 8?|8 rich_text 9?|9 simulated_msg_reason #2?|10 conversation_state_blob_id 12|11 subagent_system_reminder 9?|13 triggering_user_info #3?|14 execute_plan_info #4?|15 simulated_message_metadata #5?|16 prompt_reference_id 9?|17 thread_id 9?|18 text_blob_id 12?|19 rich_text_blob_id 12?|21 hook_additional_contexts #6*|22 custom_mode_intent #7?|23 project_details #8?|24 turn_steer 8?|25 started_at_ms 4?|26 completed_at_ms 4?|27 sent_by_agent_id 9?|28 sent_by_voice_call 8?",d$,aK,mh,gz,az,oz,i6,pz,rz]}};oz=class oz extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new oz().fromBinary(Z,$)}static fromJson(Z,$){return new oz().fromJson(Z,$)}static fromJsonString(Z,$){return new oz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(oz,Z,$)}static $(){return["UserMessage.SimulatedMessageMetadata|1 title 9?|2 task_id 9?|3 fsd_finding_action 9?|4 url 9?|5 subscription_source #0?|6 subscription_event_display #1?|7 interaction_response #2?",jh,nz,iz]}};ez=class ez extends E{constructor(Z){super();this.text="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new ez().fromBinary(Z,$)}static fromJson(Z,$){return new ez().fromJson(Z,$)}static fromJsonString(Z,$){return new ez().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(ez,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};ZK=class ZK extends E{constructor(Z){super();this.text="",this.durationMs=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZK().fromBinary(Z,$)}static fromJson(Z,$){return new ZK().fromJson(Z,$)}static fromJsonString(Z,$){return new ZK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(ZK,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};Q8=class Q8 extends E{constructor(Z){super();this.command="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q8().fromBinary(Z,$)}static fromJson(Z,$){return new Q8().fromJson(Z,$)}static fromJsonString(Z,$){return new Q8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Q8,Z,$)}static $(){return["ShellCommand|1 command 9"]}};q8=class q8 extends E{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new q8().fromBinary(Z,$)}static fromJson(Z,$){return new q8().fromJson(Z,$)}static fromJsonString(Z,$){return new q8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(q8,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};_6=class _6 extends E{constructor(Z){super();this.turn={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _6().fromBinary(Z,$)}static fromJson(Z,$){return new _6().fromJson(Z,$)}static fromJsonString(Z,$){return new _6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_6,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",W8,N8]}};$K=class $K extends E{constructor(Z){super();this.plan="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new $K().fromBinary(Z,$)}static fromJson(Z,$){return new $K().fromJson(Z,$)}static fromJsonString(Z,$){return new $K().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals($K,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};l$=class l$ extends E{constructor(Z){super();this.id="",this.path="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new l$().fromBinary(Z,$)}static fromJson(Z,$){return new l$().fromJson(Z,$)}static fromJsonString(Z,$){return new l$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(l$,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};JK=class JK extends E{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=M$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new JK().fromBinary(Z,$)}static fromJson(Z,$){return new JK().fromJson(Z,$)}static fromJsonString(Z,$){return new JK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(JK,Z,$)}static $(){return["GoalState|1 conversation_id 9|2 goal_id 9|3 objective 9|4 status #0|5 idle_continuations_without_tool_calls 13|6 active_duration_ms 4?|7 last_accrued_at_ms 4?|8 continuation_count 13|9 agent_session_id 9?",M$]}};p$=class p$ extends E{constructor(Z){super();this.turn={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new p$().fromBinary(Z,$)}static fromJson(Z,$){return new p$().fromJson(Z,$)}static fromJsonString(Z,$){return new p$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(p$,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",YK,zK]}};W8=class W8 extends E{constructor(Z){super();this.steps=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new W8().fromBinary(Z,$)}static fromJson(Z,$){return new W8().fromJson(Z,$)}static fromJsonString(Z,$){return new W8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(W8,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",H8,j6]}};YK=class YK extends E{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new YK().fromBinary(Z,$)}static fromJson(Z,$){return new YK().fromJson(Z,$)}static fromJsonString(Z,$){return new YK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(YK,Z,$)}static $(){return["AgentConversationTurnStructure|1 user_message 12|2 steps 12*|3 request_id 9?|4 encrypted_model 9?|5 dynamic_tool_count 13?|6 send_message_step_indices 13*|7 routed_model_display_name 9?|8 subagent_dispatch_steps #0*|9 dynamic_tool_names 9*|10 user_message_id 9?|11 long_reasoning_reminder #1?|12 long_reasoning_reminder_exposure_logged 8",dz,XK]}};XK=class XK extends E{constructor(Z){super();this.remainingDelayCalls=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new XK().fromBinary(Z,$)}static fromJson(Z,$){return new XK().fromJson(Z,$)}static fromJsonString(Z,$){return new XK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(XK,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};N8=class N8 extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new N8().fromBinary(Z,$)}static fromJson(Z,$){return new N8().fromJson(Z,$)}static fromJsonString(Z,$){return new N8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(N8,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",Q8,q8]}};zK=class zK extends E{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),F.util.initPartial(Z,this)}static fromBinary(Z,$){return new zK().fromBinary(Z,$)}static fromJson(Z,$){return new zK().fromJson(Z,$)}static fromJsonString(Z,$){return new zK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(zK,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};B8=class B8 extends E{constructor(Z){super();this.summary="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new B8().fromBinary(Z,$)}static fromJson(Z,$){return new B8().fromJson(Z,$)}static fromJsonString(Z,$){return new B8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(B8,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};KK=class KK extends E{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),F.util.initPartial(Z,this)}static fromBinary(Z,$){return new KK().fromBinary(Z,$)}static fromJson(Z,$){return new KK().fromJson(Z,$)}static fromJsonString(Z,$){return new KK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(KK,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};HK=class HK extends E{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new HK().fromBinary(Z,$)}static fromJson(Z,$){return new HK().fromJson(Z,$)}static fromJsonString(Z,$){return new HK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(HK,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};QK=class QK extends E{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new QK().fromBinary(Z,$)}static fromJson(Z,$){return new QK().fromJson(Z,$)}static fromJsonString(Z,$){return new QK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(QK,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",HK]}};qK=class qK extends E{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new qK().fromBinary(Z,$)}static fromJson(Z,$){return new qK().fromJson(Z,$)}static fromJsonString(Z,$){return new qK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(qK,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};WK=class WK extends E{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new WK().fromBinary(Z,$)}static fromJson(Z,$){return new WK().fromJson(Z,$)}static fromJsonString(Z,$){return new WK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(WK,Z,$)}static $(){return["PromptContextNode|1 id 9|2 parent_id 9?|3 kind 9|4 label 9|5 category_id 9|6 estimated_tokens 13|7 character_count 13|9 content_available 8|11 source #0?|12 inline_content 9?",qK]}};NK=class NK extends E{constructor(Z){super();this.schemaVersion=0,this.nodes=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new NK().fromBinary(Z,$)}static fromJson(Z,$){return new NK().fromJson(Z,$)}static fromJsonString(Z,$){return new NK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(NK,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",WK]}};i$=class i$ extends E{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new i$().fromBinary(Z,$)}static fromJson(Z,$){return new i$().fromJson(Z,$)}static fromJsonString(Z,$){return new i$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(i$,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?|5 prompt_context_usage_snapshot_blob_id 12?",QK,NK]}};BK=class BK extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new BK().fromBinary(Z,$)}static fromJson(Z,$){return new BK().fromJson(Z,$)}static fromJsonString(Z,$){return new BK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(BK,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};FK=class FK extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new FK().fromBinary(Z,$)}static fromJson(Z,$){return new FK().fromJson(Z,$)}static fromJsonString(Z,$){return new FK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(FK,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};GK=class GK extends E{constructor(Z){super();this.durationMs=hH.zero,this.timestampMs=hH.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new GK().fromBinary(Z,$)}static fromJson(Z,$){return new GK().fromJson(Z,$)}static fromJsonString(Z,$){return new GK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(GK,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};LK=class LK extends E{constructor(Z){super();this.completedTurnCountCapped=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new LK().fromBinary(Z,$)}static fromJson(Z,$){return new LK().fromJson(Z,$)}static fromJsonString(Z,$){return new LK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(LK,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};F8=class F8 extends E{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new F8().fromBinary(Z,$)}static fromJson(Z,$){return new F8().fromJson(Z,$)}static fromJsonString(Z,$){return new F8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(F8,Z,$)}static $(){return["ConversationState|1 root_prompt_messages_json 9*|8 turns #0*|3 todos #1*|4 pending_tool_calls 9*|5 token_details #2|6 summary #3?|7 plan #4?|9 summary_archive #5?|10 file_states 9,#6|11 summary_archives #5*|12 plans 9,#7|13 communicate_update_history #8*|14 communicate_update_final_summary 9?|15 communicate_update_completed_subtitle 9?|16 communicate_update_states_by_parent_tool_call_id 9,#9",_6,W0,i$,B8,$K,KK,BK,l$,G8,n$]}};G8=class G8 extends E{constructor(Z){super();this.step="",this.messageIndex=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new G8().fromBinary(Z,$)}static fromJson(Z,$){return new G8().fromJson(Z,$)}static fromJsonString(Z,$){return new G8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(G8,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};n$=class n$ extends E{constructor(Z){super();this.history=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new n$().fromBinary(Z,$)}static fromJson(Z,$){return new n$().fromJson(Z,$)}static fromJsonString(Z,$){return new n$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(n$,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",G8]}};L8=class L8 extends E{constructor(Z){super();this.createdTimestampMs=hH.zero,this.lastUsedTimestampMs=hH.zero,this.environment=V8.UNSPECIFIED,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new L8().fromBinary(Z,$)}static fromJson(Z,$){return new L8().fromJson(Z,$)}static fromJsonString(Z,$){return new L8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(L8,Z,$)}static $(){return["SubagentPersistedState|1 conversation_state #0|2 created_timestamp_ms 4|3 last_used_timestamp_ms 4|4 subagent_type #1|5 model_id 9?|6 environment #2|7 cloud_subagent #3?|8 first_class_bc_id 9?|9 cloud_requested_environment_build_id 9?|10 machine #4?",m0,u6,V8,wK,c$]}};wK=class wK extends E{constructor(Z){super();this.bcId="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new wK().fromBinary(Z,$)}static fromJson(Z,$){return new wK().fromJson(Z,$)}static fromJsonString(Z,$){return new wK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(wK,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};DK=class DK extends E{constructor(Z){super();this.repoPath="",this.branchName="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new DK().fromBinary(Z,$)}static fromJson(Z,$){return new DK().fromJson(Z,$)}static fromJsonString(Z,$){return new DK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(DK,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};m0=class m0 extends E{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.previousWorkspaceUris=[],this.fileStates={},this.fileStatesV2={},this.summaryArchives=[],this.turnTimings=[],this.subagentStates={},this.selfSummaryCount=0,this.readPaths=[],this.plans={},this.trackedGitRepoBranches=[],this.communicateUpdateHistory=[],this.subagentThreads={},this.communicateUpdateStatesByParentToolCallId={},this.subagentRunsByParentToolCallId={},this.subagentStateRefs={},this.completedAskQuestionToolCallIds=[],this.durableSkillBlocks=[],this.recentUserMessageIds=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new m0().fromBinary(Z,$)}static fromJson(Z,$){return new m0().fromJson(Z,$)}static fromJsonString(Z,$){return new m0().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(m0,Z,$)}static $(){return["ConversationStateStructure|1 root_prompt_messages_json 12*|8 turns 12*|3 todos 12*|4 pending_tool_calls 9*|5 token_details #0|6 summary 12?|7 plan 12?|9 previous_workspace_uris 9*|10 mode #1?|11 summary_archive 12?|12 file_states 9,12|15 file_states_v2 9,#2|13 summary_archives 12*|14 turn_timings #3*|16 subagent_states 9,#4|17 self_summary_count 13|18 read_paths 9*|19 active_branch_name 9?|20 plans 9,#5|21 tracked_git_repo_branches #6*|22 agent_type 9?|23 communicate_update_history #7*|24 subagent_threads 9,9|25 communicate_update_final_summary 9?|28 communicate_update_completed_subtitle 9?|29 communicate_update_states_by_parent_tool_call_id 9,#8|30 subagent_runs_by_parent_tool_call_id 9,#9|26 conversation_started_timestamp_ms 4?|27 conversation_started_time_zone 9?|31 subagent_state_refs 9,12|32 goal_state #10?|33 is_root_project_conversation 8?|34 completed_ask_question_tool_call_ids 9*|35 durable_skill_blocks 9*|36 durable_custom_mode_id 9?|37 message_count_at_last_compaction 13?|38 recent_user_message_ids 9*|39 recent_user_message_ids_older_turn_count 13?|40 turn_telemetry #11?",i$,aK,FK,GK,L8,l$,DK,G8,n$,bz,JK,LK]}};IK=class IK extends E{constructor(Z){super();this.id=0,this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new IK().fromBinary(Z,$)}static fromJson(Z,$){return new IK().fromJson(Z,$)}static fromJsonString(Z,$){return new IK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(IK,Z,$)}static $(){return["InteractionResponse|1 id 13|2 web_search_request_response #0 result|3 ask_question_interaction_response #1 result|4 switch_mode_request_response #2 result|7 create_plan_request_response #3 result|8 setup_vm_environment_result #4 result|9 web_fetch_request_response #5 result|10 pr_management_result #6 result|11 mcp_auth_request_response #7 result|12 generate_image_request_response #8 result|13 replace_env_result #9 result|14 connect_scm_request_response #10 result",BZ,UK,PZ,WZ,o6,dZ,e6,aZ,xZ,$8,O$]}};UK=class UK extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new UK().fromBinary(Z,$)}static fromJson(Z,$){return new UK().fromJson(Z,$)}static fromJsonString(Z,$){return new UK().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(UK,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",s6]}}});class OK{}var D=q((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.createNotification=WG.nextNotification=WG.errorNotification=WG.COMPLETE_NOTIFICATION=WG.isObservable=WG.isArrayLike=WG.isPromise=WG.readableStreamLikeToAsyncGenerator=WG.isFunction=WG.getObservableInputType=WG.ObservableInputType=WG.subscribeToArray=WG.fromPromise=WG.fromArrayLike=WG.from=WG.reportUnhandledError=WG.Observable=WG.operate=WG.config=WG.Subscriber=WG.Subscription=WG.UnsubscriptionError=void 0;class rK extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
3
3
|
${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
4
|
-
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}HG.UnsubscriptionError=aK;class fK{initialTeardown;static EMPTY=(()=>{let Z=new fK;return Z.closed=!0,Z})();closed=!1;_finalizers=null;constructor(Z){this.initialTeardown=Z}unsubscribe(){let Z;if(!this.closed){this.closed=!0;let{initialTeardown:$}=this;if(k0($))try{$()}catch(Y){Z=Y instanceof aK?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{aF(Y)}catch(X){if(Z=Z??[],X instanceof aK)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new aK(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)aF(Z);else{if(Z&&"add"in Z)Z.add(()=>{this.remove(Z)});this._finalizers??=new Set,this._finalizers.add(Z)}}remove(Z){this._finalizers?.delete(Z)}}HG.Subscription=fK;if(typeof Symbol.dispose==="symbol")fK.prototype[Symbol.dispose]=fK.prototype.unsubscribe;function aF(Z){if(k0(Z))Z();else Z.unsubscribe()}class r$ extends fK{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof r$?Z:jh(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?Rh:this._next,this._error=this._errorOverride?yh:this._error,this._complete=this._completeOverride?mh:this._complete,_h(Z))Z.add(this)}next(Z){if(this.isStopped)Zq(KG(Z),this);else this._next(Z)}error(Z){if(this.isStopped)Zq(zG(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)Zq(HG.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()}unsubscribe(){if(!this.closed)this.isStopped=!0,super.unsubscribe(),this._onFinalize?.()}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}HG.Subscriber=r$;HG.config={onUnhandledError:null,onStoppedNotification:null};function Rh(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function yh(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function mh(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class sF{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){kK(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){kK(J)}else kK(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){kK($)}}}function jh(Z){return new sF(!Z||k0(Z)?{next:Z??void 0}:Z)}function Zq(Z,$){let{onStoppedNotification:J}=HG.config;J&&setTimeout(()=>J(Z,$))}function _h(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function Sh({destination:Z,...$}){return new r$(Z,$)}HG.operate=Sh;class S8{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof r$?Z:new r$(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new r$({next:(X)=>{try{Z(X)}catch(z){J(z),Y.unsubscribe()}},error:J,complete:$});this.subscribe(Y)})}_subscribe(Z){return}[Symbol.observable??"@@observable"](){return this}pipe(...Z){return Z.reduce(gh,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(W)=>{$=!0,J=W;while(z.length){let[G,L]=z.shift();L(W)}},Q=()=>{Y=!0;while(z.length){let[W]=z.shift();W({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(W)=>{if(z.length){let[G]=z.shift();G({value:W,done:!1})}else X.push(W)},error:K,complete:Q});if(X.length)return Promise.resolve({value:X.shift(),done:!1});if(Y)return Promise.resolve({value:void 0,done:!0});if($)return Promise.reject(J);return new Promise((W,G)=>{z.push([W,G])})},throw:(W)=>{return Z?.unsubscribe(),K(W),Promise.reject(W)},return:()=>{return Z?.unsubscribe(),Q(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}HG.Observable=S8;function gh(Z,$){return $(Z)}function kK(Z){setTimeout(()=>{let{onUnhandledError:$}=HG.config;if($)$(Z);else throw Z})}HG.reportUnhandledError=kK;function bh(Z){switch($G(Z)){case O0.Own:return Z;case O0.InteropObservable:return dh(Z);case O0.ArrayLike:return tF(Z);case O0.Promise:return oF(Z);case O0.AsyncIterable:return eF(Z);case O0.Iterable:return ch(Z);case O0.ReadableStreamLike:return uh(Z)}}HG.from=bh;function dh(Z){return new S8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function tF(Z){return new S8(($)=>{ZG(Z,$)})}HG.fromArrayLike=tF;function oF(Z){return new S8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,kK)})}HG.fromPromise=oF;function ch(Z){return new S8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function eF(Z){return new S8(($)=>{lh(Z,$).catch((J)=>$.error(J))})}function uh(Z){return eF(JG(Z))}async function lh(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function ZG(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}HG.subscribeToArray=ZG;var O0;(function(Z){Z[Z.Own=0]="Own",Z[Z.InteropObservable=1]="InteropObservable",Z[Z.ArrayLike=2]="ArrayLike",Z[Z.Promise=3]="Promise",Z[Z.AsyncIterable=4]="AsyncIterable",Z[Z.Iterable=5]="Iterable",Z[Z.ReadableStreamLike=6]="ReadableStreamLike"})(O0=HG.ObservableInputType||(HG.ObservableInputType={}));function $G(Z){if(Z instanceof S8)return O0.Own;if(nh(Z))return O0.InteropObservable;if(XG(Z))return O0.ArrayLike;if(YG(Z))return O0.Promise;if(ph(Z))return O0.AsyncIterable;if(ah(Z))return O0.Iterable;if(ih(Z))return O0.ReadableStreamLike;throw TypeError(`You provided ${Z!==null&&typeof Z==="object"?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}HG.getObservableInputType=$G;function k0(Z){return typeof Z==="function"}HG.isFunction=k0;function ph(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*JG(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}HG.readableStreamLikeToAsyncGenerator=JG;function ih(Z){return k0(Z?.getReader)}function YG(Z){return k0(Z?.then)}HG.isPromise=YG;function nh(Z){return k0(Z[Symbol.observable??"@@observable"])}function ah(Z){return k0(Z?.[Symbol.iterator])}function XG(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}HG.isArrayLike=XG;function rh(Z){return!!Z&&(Z instanceof S8||k0(Z.lift)&&k0(Z.subscribe))}HG.isObservable=rh;HG.COMPLETE_NOTIFICATION=(()=>vH("C",void 0,void 0))();function zG(Z){return vH("E",void 0,Z)}HG.errorNotification=zG;function KG(Z){return vH("N",Z,void 0)}HG.nextNotification=KG;function vH(Z,$,J){return{kind:Z,value:$,error:J}}HG.createNotification=vH});var NG=q((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.performanceTimestampProvider=void 0;WG.performanceTimestampProvider={now(){return(WG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Yq=q((BG)=>{Object.defineProperty(BG,"__esModule",{value:!0});BG.animationFrameProvider=void 0;var GA=D();BG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=BG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new GA.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=BG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=BG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var DG=q((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.animationFrames=void 0;var LA=D(),wA=NG(),FG=Yq();function DA(Z){return Z?GG(Z):UA}LG.animationFrames=DA;function GG(Z){return new LA.Observable(($)=>{let J=Z||wA.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=FG.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)FG.animationFrameProvider.cancelAnimationFrame(X)}})}var UA=GG()});var H0=q((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.Subject=void 0;var Xq=D();class UG extends Xq.Observable{_closed=!1;get closed(){return this._closed}_observerCounter=0;currentObservers=new Map;observerSnapshot;get observers(){return this.observerSnapshot??=Array.from(this.currentObservers.values())}hasError=!1;thrownError=null;constructor(){super()}_clearObservers(){this.currentObservers.clear(),this.observerSnapshot=void 0}next(Z){if(!this._closed){let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].next(Z)}}error(Z){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=Z;let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].error(Z);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;let{observers:Z}=this,$=Z.length;for(let J=0;J<$;J++)Z[J].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(Z){return this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){if(this.hasError||this._closed)return Xq.Subscription.EMPTY;let{currentObservers:$}=this,J=this._observerCounter++;return $.set(J,Z),this.observerSnapshot=void 0,Z.add(()=>{$.delete(J),this.observerSnapshot=void 0}),Z}_checkFinalizedStatuses(Z){let{hasError:$,thrownError:J,_closed:Y}=this;if($)Z.error(J);else if(Y)Z.complete()}asObservable(){return new Xq.Observable((Z)=>this.subscribe(Z))}}IG.Subject=UG});var PG=q((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0});fG.BehaviorSubject=void 0;var IA=H0();class kG extends IA.Subject{_value;constructor(Z){super();this._value=Z}get value(){return this.getValue()}_subscribe(Z){let $=super._subscribe(Z);return!$.closed&&Z.next(this._value),$}getValue(){let{hasError:Z,thrownError:$,_value:J}=this;if(Z)throw $;return J}next(Z){super.next(this._value=Z)}}fG.BehaviorSubject=kG});var CH=q((VG)=>{Object.defineProperty(VG,"__esModule",{value:!0});VG.dateTimestampProvider=void 0;VG.dateTimestampProvider={now(){return(VG.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Kq=q((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.ReplaySubject=void 0;var OA=H0(),kA=CH();class xG extends OA.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=kA.dateTimestampProvider){super();this._bufferSize=Z,this._windowTime=$,this._timestampProvider=J,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,$)}next(Z){let{_closed:$,_buffer:J,_infiniteTimeWindow:Y,_timestampProvider:X,_windowTime:z}=this;if(!$)J.push(Z),!Y&&J.push(X.now()+z);this._trimBuffer(),super.next(Z)}_subscribe(Z){this._trimBuffer();let $=this._innerSubscribe(Z),{_infiniteTimeWindow:J,_buffer:Y}=this,X=Y.slice();for(let z=0;z<X.length&&!Z.closed;z+=J?1:2)Z.next(X[z]);return this._checkFinalizedStatuses(Z),$}_trimBuffer(){let{_bufferSize:Z,_timestampProvider:$,_buffer:J,_infiniteTimeWindow:Y}=this,X=(Y?1:2)*Z;if(Z<1/0&&X<J.length&&J.splice(0,J.length-X),!Y){let z=$.now(),K=0;for(let Q=1;Q<J.length&&J[Q]<=z;Q+=2)K=Q;K&&J.splice(0,K+1)}}}MG.ReplaySubject=xG});var Hq=q((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.AsyncSubject=void 0;var fA=H0();class AG extends fA.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(Z){let{hasError:$,_hasValue:J,_value:Y,thrownError:X,_closed:z,_isComplete:K}=this;if($)Z.error(X);else if(z||K)J&&Z.next(Y),Z.complete()}next(Z){if(!this._closed)this._value=Z,this._hasValue=!0}complete(){let{_hasValue:Z,_value:$,_isComplete:J}=this;if(!J)this._isComplete=!0,Z&&super.next($),super.complete()}}vG.AsyncSubject=AG});var mG=q((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.Action=void 0;var EA=D();class TG extends EA.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}RG.Action=TG});var _G=q((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.intervalProvider=void 0;jG.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=jG.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=jG.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var s$=q((SG)=>{Object.defineProperty(SG,"__esModule",{value:!0});SG.arrRemove=void 0;function PA(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}SG.arrRemove=PA});var EK=q((cG)=>{Object.defineProperty(cG,"__esModule",{value:!0});cG.AsyncAction=void 0;var VA=mG(),bG=_G(),xA=s$();class dG extends VA.Action{scheduler;work;id;state;delay;pending=!1;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if(this.closed)return this;this.state=Z;let J=this.id,Y=this.scheduler;if(J!=null)this.id=this.recycleAsyncId(Y,J,$);return this.pending=!0,this.delay=$,this.id=this.id??this.requestAsyncId(Y,this.id,$),this}requestAsyncId(Z,$,J=0){return bG.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)bG.intervalProvider.clearInterval($);return}execute(Z,$){if(this.closed)return Error("executing a cancelled action");this.pending=!1;let J=this._execute(Z,$);if(J)return J;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)}_execute(Z,$){let J=!1,Y;try{this.work(Z)}catch(X){J=!0,Y=X?X:Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){let{id:Z,scheduler:$}=this,{actions:J}=$;if(this.work=this.state=this.scheduler=null,this.pending=!1,(0,xA.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}cG.AsyncAction=dG});var nG=q((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.TestTools=pG.Immediate=void 0;var MA=1,Qq,RH={};function lG(Z){if(Z in RH)return delete RH[Z],!0;return!1}pG.Immediate={setImmediate(Z){let $=MA++;if(RH[$]=!0,!Qq)Qq=Promise.resolve();return Qq.then(()=>lG($)&&Z()),$},clearImmediate(Z){lG(Z)}};pG.TestTools={pending(){return Object.keys(RH).length}}});var rG=q((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.immediateProvider=void 0;var AA=nG(),{setImmediate:vA,clearImmediate:CA}=AA.Immediate;aG.immediateProvider={setImmediate(...Z){let{delegate:$}=aG.immediateProvider;return($?.setImmediate||vA)(...Z)},clearImmediate(Z){let{delegate:$}=aG.immediateProvider;return($?.clearImmediate||CA)(Z)},delegate:void 0}});var ZL=q((oG)=>{Object.defineProperty(oG,"__esModule",{value:!0});oG.AsapAction=void 0;var TA=EK(),sG=rG();class tG extends TA.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=sG.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$){if(sG.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}oG.AsapAction=tG});var Wq=q(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.Scheduler=void 0;var RA=CH();class qq{schedulerActionCtor;static now=RA.dateTimestampProvider.now;constructor(Z,$=qq.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}$L.Scheduler=qq});var PK=q((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.AsyncScheduler=void 0;var YL=Wq();class XL extends YL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=YL.Scheduler.now){super(Z,$)}flush(Z){let{actions:$}=this;if(this._active){$.push(Z);return}let J;this._active=!0;do if(J=Z.execute(Z.state,Z.delay))break;while(Z=$.shift());if(this._active=!1,J){while(Z=$.shift())Z.unsubscribe();throw J}}}zL.AsyncScheduler=XL});var WL=q((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.AsapScheduler=void 0;var yA=PK();class HL extends yA.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}QL.AsapScheduler=HL});var FL=q((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.asapScheduler=void 0;var mA=ZL(),jA=WL();NL.asapScheduler=new jA.AsapScheduler(mA.AsapAction)});var A0=q((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.asyncScheduler=void 0;var _A=EK(),SA=PK();GL.asyncScheduler=new SA.AsyncScheduler(_A.AsyncAction)});var IL=q((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.QueueAction=void 0;var gA=EK();class wL extends gA.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if($>0)return super.schedule(Z,$);return this.delay=$,this.state=Z,this.scheduler.flush(this),this}execute(Z,$){return $>0||this.closed?super.execute(Z,$):this._execute(Z,$)}requestAsyncId(Z,$,J=0){if(J!=null&&J>0||J==null&&this.delay>0)return super.requestAsyncId(Z,$,J);return Z.flush(this),0}}DL.QueueAction=wL});var EL=q((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.QueueScheduler=void 0;var bA=PK();class OL extends bA.AsyncScheduler{}kL.QueueScheduler=OL});var xL=q((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.queueScheduler=void 0;var dA=IL(),cA=EL();PL.queueScheduler=new cA.QueueScheduler(dA.QueueAction)});var CL=q((AL)=>{Object.defineProperty(AL,"__esModule",{value:!0});AL.AnimationFrameAction=void 0;var uA=EK(),ML=Yq();class hL extends uA.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=ML.animationFrameProvider.requestAnimationFrame(()=>Z.flush(void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$)ML.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}AL.AnimationFrameAction=hL});var mL=q((RL)=>{Object.defineProperty(RL,"__esModule",{value:!0});RL.AnimationFrameScheduler=void 0;var lA=PK();class TL extends lA.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}RL.AnimationFrameScheduler=TL});var SL=q((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.animationFrameScheduler=void 0;var pA=CL(),iA=mL();jL.animationFrameScheduler=new iA.AnimationFrameScheduler(pA.AnimationFrameAction)});var cL=q((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.VirtualAction=bL.VirtualTimeScheduler=void 0;var nA=EK(),aA=D(),rA=PK();class gL extends rA.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=sK,$=1/0){super(Z,()=>this.frame);this.maxFrames=$}flush(){let{actions:Z,maxFrames:$}=this,J,Y;while((Y=Z[0])&&Y.delay<=$)if(Z.shift(),this.frame=Y.delay,J=Y.execute(Y.state,Y.delay))break;if(J){while(Y=Z.shift())Y.unsubscribe();throw J}}}bL.VirtualTimeScheduler=gL;class sK extends nA.AsyncAction{scheduler;work;index;active=!0;constructor(Z,$,J=Z.index+=1){super(Z,$);this.scheduler=Z,this.work=$,this.index=J,this.index=Z.index=J}schedule(Z,$=0){if(Number.isFinite($)){if(!this.id)return super.schedule(Z,$);this.active=!1;let J=new sK(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return aA.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(sK.sortActions),1}recycleAsyncId(Z,$,J=0){return}_execute(Z,$){if(this.active===!0)return super._execute(Z,$)}static sortActions(Z,$){if(Z.delay===$.delay)if(Z.index===$.index)return 0;else if(Z.index>$.index)return 1;else return-1;else if(Z.delay>$.delay)return 1;else return-1}}bL.VirtualAction=sK});var Nq=q((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.rx=void 0;var tA=D();function oA(Z,...$){return $.reduce(eA,(0,tA.from)(Z))}uL.rx=oA;function eA(Z,$){return $(Z)}});var Bq=q((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.pipe=void 0;function Zv(...Z){return Z.length===1?Z[0]:($)=>Z.reduce($v,$)}pL.pipe=Zv;function $v(Z,$){return $(Z)}});var Y0=q((nL)=>{Object.defineProperty(nL,"__esModule",{value:!0});nL.noop=void 0;function Jv(){}nL.noop=Jv});var v0=q((rL)=>{Object.defineProperty(rL,"__esModule",{value:!0});rL.identity=void 0;function Yv(Z){return Z}rL.identity=Yv});var g8=q((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.EmptyError=void 0;class tL extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}oL.EmptyError=tL});var Jw=q((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.lastValueFrom=void 0;var Xv=g8();function zv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(Q)=>{K=Q,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new Xv.EmptyError)}})})}Zw.lastValueFrom=zv});var zw=q((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.firstValueFrom=void 0;var Kv=D(),Hv=g8();function Qv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new Kv.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new Hv.EmptyError)}});Z.subscribe(z)})}Yw.firstValueFrom=Qv});var Fq=q((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.ArgumentOutOfRangeError=void 0;class Kw extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}Hw.ArgumentOutOfRangeError=Kw});var Gq=q((Ww)=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.NotFoundError=void 0;class qw extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}Ww.NotFoundError=qw});var Lq=q((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.SequenceError=void 0;class Bw extends Error{constructor(Z){super(Z);this.name="SequenceError"}}Fw.SequenceError=Bw});var mH=q((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.isValidDate=void 0;function qv(Z){return Z instanceof Date&&!isNaN(Z)}Lw.isValidDate=qv});var c0=q((Dw)=>{Object.defineProperty(Dw,"__esModule",{value:!0});Dw.executeSchedule=void 0;function Wv(Z,$,J,Y=0,X=!1){if(!Z.closed){let z=$.schedule(function(){if(J(),X)Z.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(Z.add(z),!X)return z}}Dw.executeSchedule=Wv});var jH=q((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.timeout=Iw.TimeoutError=void 0;var Nv=A0(),Bv=mH(),wq=D(),Fv=c0();class Dq extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}Iw.TimeoutError=Dq;function Gv(Z,$){let{first:J,each:Y,with:X=Lv,scheduler:z=$??Nv.asyncScheduler,meta:K=null}=(0,Bv.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new wq.Observable((W)=>{let G,L,O=null,f=0,P=(V)=>{L=(0,Fv.executeSchedule)(W,z,()=>{try{G.unsubscribe(),(0,wq.from)(X({meta:K,lastValue:O,seen:f})).subscribe(W)}catch(T){W.error(T)}},V)};G=Q.subscribe((0,wq.operate)({destination:W,next:(V)=>{L?.unsubscribe(),f++,W.next(O=V),Y>0&&P(Y)},finalize:()=>{L?.unsubscribe(),O=null}})),!f&&P(J!=null?typeof J==="number"?J:+J-z.now():Y)})}Iw.timeout=Gv;function Lv(Z){throw new Dq(Z)}});var tK=q((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.isScheduler=void 0;var Dv=D();function Uv(Z){return Z&&(0,Dv.isFunction)(Z.schedule)}kw.isScheduler=Uv});var VK=q((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.map=void 0;var Ew=D();function Iv(Z){return($)=>new Ew.Observable((J)=>{let Y=0;$.subscribe((0,Ew.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}Pw.map=Iv});var xK=q((xw)=>{Object.defineProperty(xw,"__esModule",{value:!0});xw.mapOneOrManyArgs=void 0;var Ov=VK(),{isArray:kv}=Array;function fv(Z,$){return kv($)?Z(...$):Z($)}function Ev(Z){return(0,Ov.map)(($)=>fv(Z,$))}xw.mapOneOrManyArgs=Ev});var _H=q((Aw)=>{Object.defineProperty(Aw,"__esModule",{value:!0});Aw.observeOn=void 0;var Uq=c0(),hw=D();function Pv(Z,$=0){return(J)=>new hw.Observable((Y)=>{J.subscribe((0,hw.operate)({destination:Y,next:(X)=>(0,Uq.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,Uq.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,Uq.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}Aw.observeOn=Pv});var SH=q((Cw)=>{Object.defineProperty(Cw,"__esModule",{value:!0});Cw.subscribeOn=void 0;var Vv=D();function xv(Z,$=0){return(J)=>new Vv.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}Cw.subscribeOn=xv});var mw=q((Rw)=>{Object.defineProperty(Rw,"__esModule",{value:!0});Rw.scheduleObservable=void 0;var Mv=D(),hv=_H(),Av=SH();function vv(Z,$){return(0,Mv.from)(Z).pipe((0,Av.subscribeOn)($),(0,hv.observeOn)($))}Rw.scheduleObservable=vv});var Sw=q((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.schedulePromise=void 0;var Cv=D(),Tv=_H(),Rv=SH();function yv(Z,$){return(0,Cv.from)(Z).pipe((0,Rv.subscribeOn)($),(0,Tv.observeOn)($))}jw.schedulePromise=yv});var cw=q((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.scheduleArray=void 0;var mv=D(),gw=c0();function jv(Z,$){return new mv.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,gw.executeSchedule)(J,$,X)};return(0,gw.executeSchedule)(J,$,X)})}bw.scheduleArray=jv});var iw=q((lw)=>{Object.defineProperty(lw,"__esModule",{value:!0});lw.iterator=lw.getSymbolIterator=void 0;function uw(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}lw.getSymbolIterator=uw;lw.iterator=uw()});var Iq=q((rw)=>{Object.defineProperty(rw,"__esModule",{value:!0});rw.scheduleIterable=void 0;var nw=D(),Sv=iw(),aw=c0();function gv(Z,$){return new nw.Observable((J)=>{let Y;return(0,aw.executeSchedule)(J,$,()=>{Y=Z[Sv.iterator](),(0,aw.executeSchedule)(J,$,()=>{let X,z;try{({value:X,done:z}=Y.next())}catch(K){J.error(K);return}if(z)J.complete();else J.next(X)},0,!0)}),()=>(0,nw.isFunction)(Y?.return)&&Y.return()})}rw.scheduleIterable=gv});var Oq=q((ow)=>{Object.defineProperty(ow,"__esModule",{value:!0});ow.scheduleAsyncIterable=void 0;var bv=D(),tw=c0();function dv(Z,$){if(!Z)throw Error("Iterable cannot be null");return new bv.Observable((J)=>{(0,tw.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,tw.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}ow.scheduleAsyncIterable=dv});var JD=q((ZD)=>{Object.defineProperty(ZD,"__esModule",{value:!0});ZD.scheduleReadableStreamLike=void 0;var cv=D(),uv=Oq();function lv(Z,$){return(0,uv.scheduleAsyncIterable)((0,cv.readableStreamLikeToAsyncGenerator)(Z),$)}ZD.scheduleReadableStreamLike=lv});var oK=q((YD)=>{Object.defineProperty(YD,"__esModule",{value:!0});YD.scheduled=void 0;var pv=mw(),iv=Sw(),nv=cw(),av=Iq(),rv=Oq(),w6=D(),sv=JD();function tv(Z,$){switch((0,w6.getObservableInputType)(Z)){case w6.ObservableInputType.Own:case w6.ObservableInputType.InteropObservable:return(0,pv.scheduleObservable)(Z,$);case w6.ObservableInputType.Promise:return(0,iv.schedulePromise)(Z,$);case w6.ObservableInputType.ArrayLike:return(0,nv.scheduleArray)(Z,$);case w6.ObservableInputType.Iterable:return(0,av.scheduleIterable)(Z,$);case w6.ObservableInputType.AsyncIterable:return(0,rv.scheduleAsyncIterable)(Z,$);case w6.ObservableInputType.ReadableStreamLike:return(0,sv.scheduleReadableStreamLike)(Z,$)}}YD.scheduled=tv});var fq=q((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.bindCallbackInternals=void 0;var ov=tK(),ev=D(),ZC=xK(),$C=Hq(),JC=oK();function kq(Z,$,J,Y){if(J)if((0,ov.isScheduler)(J))Y=J;else return function(...X){return(0,ZC.mapOneOrManyArgs)(J)(kq(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,JC.scheduled)(kq(Z,$).apply(this,X),Y)};return function(...X){let z=new $C.AsyncSubject,K=!0;return new ev.Observable((Q)=>{let W=z.subscribe(Q);if(K){K=!1;let G=!1,L=!1;if($.apply(this,[...X,(...O)=>{if(Z){let f=O.shift();if(f!=null){z.error(f);return}}if(z.next(1<O.length?O:O[0]),L=!0,G)z.complete()}]),L)z.complete();G=!0}return W})}}zD.bindCallbackInternals=kq});var qD=q((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.bindCallback=void 0;var YC=fq();function XC(Z,$,J){return(0,YC.bindCallbackInternals)(!1,Z,$,J)}HD.bindCallback=XC});var BD=q((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.bindNodeCallback=void 0;var zC=fq();function KC(Z,$,J){return(0,zC.bindCallbackInternals)(!0,Z,$,J)}WD.bindNodeCallback=KC});var Eq=q((GD)=>{Object.defineProperty(GD,"__esModule",{value:!0});GD.arrayOrObject=GD.argsArgArrayOrObject=void 0;var{isArray:HC}=Array,{getPrototypeOf:QC,prototype:qC,keys:WC}=Object;function NC(Z){if(Z.length===1){let $=Z[0],J=FD($);if(J)return J}return{args:Z,keys:null}}GD.argsArgArrayOrObject=NC;function FD(Z){if(HC(Z))return{args:Z,keys:null};if(BC(Z)){let $=WC(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}GD.arrayOrObject=FD;function BC(Z){return Z&&typeof Z==="object"&&QC(Z)===qC}});var Pq=q((wD)=>{Object.defineProperty(wD,"__esModule",{value:!0});wD.createObject=void 0;function GC(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}wD.createObject=GC});var M8=q((UD)=>{Object.defineProperty(UD,"__esModule",{value:!0});UD.EMPTY=void 0;var LC=D();UD.EMPTY=new LC.Observable((Z)=>Z.complete())});var gH=q((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.combineLatestInit=fD.combineLatest=void 0;var Vq=D(),wC=Eq(),OD=v0(),DC=Pq(),UC=M8();function IC(Z,$){let J=(0,wC.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return UC.EMPTY;return new Vq.Observable(kD(Y,X?(z)=>(0,DC.createObject)(X,z):$?(z)=>$(...z):OD.identity))}fD.combineLatest=IC;function kD(Z,$=OD.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,Vq.from)(Z[Q]),G=!1;W.subscribe((0,Vq.operate)({destination:J,next:(L)=>{if(X[Q]=L,!G)G=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}fD.combineLatestInit=kD});var bH=q((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.mergeInternals=void 0;var xq=D(),kC=c0();function fC(Z,$,J,Y,X,z,K,Q){let W=[],G=0,L=0,O=!1,f=()=>{if(O&&!W.length&&!G)$.complete()},P=(T)=>G<Y?V(T):W.push(T),V=(T)=>{z&&$.next(T),G++;let E0=!1;(0,xq.from)(J(T,L++)).subscribe((0,xq.operate)({destination:$,next:(X0)=>{if(X?.(X0),z)P(X0);else $.next(X0)},complete:()=>{E0=!0},finalize:()=>{if(E0)try{G--;while(W.length&&G<Y){let X0=W.shift();if(K)(0,kC.executeSchedule)($,K,()=>V(X0));else V(X0)}f()}catch(X0){$.error(X0)}}}))};return Z.subscribe((0,xq.operate)({destination:$,next:P,complete:()=>{O=!0,f()}})),()=>{Q?.()}}PD.mergeInternals=fC});var t$=q((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.mergeMap=void 0;var EC=D(),PC=bH();function VC(Z,$=1/0){return(J)=>new EC.Observable((Y)=>(0,PC.mergeInternals)(J,Y,Z,$))}xD.mergeMap=VC});var eK=q((hD)=>{Object.defineProperty(hD,"__esModule",{value:!0});hD.mergeAll=void 0;var xC=t$(),MC=v0();function hC(Z=1/0){return(0,xC.mergeMap)(MC.identity,Z)}hD.mergeAll=hC});var dH=q((vD)=>{Object.defineProperty(vD,"__esModule",{value:!0});vD.concatAll=void 0;var AC=eK();function vC(){return(0,AC.mergeAll)(1)}vD.concatAll=vC});var D6=q((TD)=>{Object.defineProperty(TD,"__esModule",{value:!0});TD.popNumber=TD.popScheduler=TD.popResultSelector=void 0;var CC=D(),TC=tK();function Mq(Z){return Z[Z.length-1]}function RC(Z){return(0,CC.isFunction)(Mq(Z))?Z.pop():void 0}TD.popResultSelector=RC;function yC(Z){return(0,TC.isScheduler)(Mq(Z))?Z.pop():void 0}TD.popScheduler=yC;function mC(Z,$){return typeof Mq(Z)==="number"?Z.pop():$}TD.popNumber=mC});var hq=q((yD)=>{Object.defineProperty(yD,"__esModule",{value:!0});yD.concat=void 0;var SC=D(),gC=dH(),bC=D6(),dC=oK();function cC(...Z){let $=(0,bC.popScheduler)(Z);return(0,gC.concatAll)()($?(0,dC.scheduled)(Z,$):(0,SC.from)(Z))}yD.concat=cC});var ZH=q((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.defer=void 0;var jD=D();function uC(Z){return new jD.Observable(($)=>{(0,jD.from)(Z()).subscribe($)})}_D.defer=uC});var dD=q((gD)=>{Object.defineProperty(gD,"__esModule",{value:!0});gD.connectable=void 0;var lC=H0(),pC=D(),iC=ZH(),nC={connector:()=>new lC.Subject,resetOnDisconnect:!0};function aC(Z,$=nC){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new pC.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,iC.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}gD.connectable=aC});var lD=q((cD)=>{Object.defineProperty(cD,"__esModule",{value:!0});cD.forkJoin=void 0;var Aq=D(),rC=Eq(),sC=D6(),tC=xK(),oC=Pq(),eC=g8();function ZT(...Z){let $=(0,sC.popResultSelector)(Z),{args:J,keys:Y}=(0,rC.argsArgArrayOrObject)(Z),X=new Aq.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let Q=Array(K),W=K,G=K;for(let L=0;L<K;L++){let O=!1;(0,Aq.from)(J[L]).subscribe((0,Aq.operate)({destination:z,next:(f)=>{if(!O)O=!0,G--;Q[L]=f},complete:()=>W--,finalize:()=>{if(!W||!O)if(G===0)z.next(Y?(0,oC.createObject)(Y,Q):Q),z.complete();else z.error(new eC.EmptyError)}}))}});return $?(0,tC.mapOneOrManyArgs)($)(X):X}cD.forkJoin=ZT});var oD=q((sD)=>{Object.defineProperty(sD,"__esModule",{value:!0});sD.fromEvent=void 0;var b8=D(),$T=xK(),JT=["addListener","removeListener"],YT=["addEventListener","removeEventListener"],XT=["on","off"];function iD(Z,$,J,Y){if((0,b8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,$T.mapOneOrManyArgs)(Y)(iD(Z,$,J));let X=nD(Z)||aD(Z)||rD(Z);if(!X&&!(0,b8.isArrayLike)(Z))throw TypeError("Invalid event target");return new b8.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)pD(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];pD(K,z,W,$,J)}})}sD.fromEvent=iD;function pD(Z,$,J,Y,X){let[z,K]=zT(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function zT(Z){return rD(Z)?YT:nD(Z)?JT:aD(Z)?XT:[]}function nD(Z){return(0,b8.isFunction)(Z.addListener)&&(0,b8.isFunction)(Z.removeListener)}function aD(Z){return(0,b8.isFunction)(Z.on)&&(0,b8.isFunction)(Z.off)}function rD(Z){return(0,b8.isFunction)(Z.addEventListener)&&(0,b8.isFunction)(Z.removeEventListener)}});var Y2=q(($2)=>{Object.defineProperty($2,"__esModule",{value:!0});$2.fromEventPattern=void 0;var eD=D(),KT=xK();function Z2(Z,$,J){if(J)return(0,KT.mapOneOrManyArgs)(J)(Z2(Z,$));return new eD.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,eD.isFunction)($)?()=>$(X,z):void 0})}$2.fromEventPattern=Z2});var H2=q((z2)=>{Object.defineProperty(z2,"__esModule",{value:!0});z2.generate=void 0;var X2=v0(),HT=tK(),QT=ZH(),qT=Iq();function WT(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=X2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,HT.isScheduler)(Y))z=X2.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,QT.defer)(X?()=>(0,qT.scheduleIterable)(Q(),X):Q)}z2.generate=WT});var W2=q((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.iif=void 0;var NT=ZH();function BT(Z,$,J){return(0,NT.defer)(()=>Z()?$:J)}Q2.iif=BT});var U6=q((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});B2.timer=void 0;var FT=D(),GT=A0(),LT=tK(),wT=mH(),N2=c0();function DT(Z=0,$,J=GT.asyncScheduler){let Y=-1;if($!=null)if((0,LT.isScheduler)($))J=$;else Y=$;return new FT.Observable((X)=>{let z=(0,wT.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,N2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,N2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}B2.timer=DT});var vq=q((G2)=>{Object.defineProperty(G2,"__esModule",{value:!0});G2.interval=void 0;var UT=A0(),IT=U6();function OT(Z=0,$=UT.asyncScheduler){if(Z<0)Z=0;return(0,IT.timer)(Z,Z,$)}G2.interval=OT});var O2=q((U2)=>{Object.defineProperty(U2,"__esModule",{value:!0});U2.merge=void 0;var w2=D(),kT=eK(),fT=M8(),D2=D6(),ET=oK();function PT(...Z){let $=(0,D2.popScheduler)(Z),J=(0,D2.popNumber)(Z,1/0),Y=Z;return!Y.length?fT.EMPTY:Y.length===1?(0,w2.from)(Y[0]):(0,kT.mergeAll)(J)($?(0,ET.scheduled)(Y,$):(0,w2.from)(Y))}U2.merge=PT});var E2=q((k2)=>{Object.defineProperty(k2,"__esModule",{value:!0});k2.of=void 0;var VT=D();function xT(...Z){return(0,VT.fromArrayLike)(Z)}k2.of=xT});var $H=q((P2)=>{Object.defineProperty(P2,"__esModule",{value:!0});P2.argsOrArgArray=void 0;var{isArray:MT}=Array;function hT(Z){return Z.length===1&&MT(Z[0])?Z[0]:Z}P2.argsOrArgArray=hT});var Tq=q((M2)=>{Object.defineProperty(M2,"__esModule",{value:!0});M2.onErrorResumeNext=void 0;var Cq=D(),AT=$H(),x2=Y0();function vT(...Z){let $=(0,AT.argsOrArgArray)(Z);return new Cq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Cq.from)($[Y++])}catch(Q){X();return}let K=(0,Cq.operate)({destination:J,error:x2.noop,complete:x2.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}M2.onErrorResumeNext=vT});var C2=q((A2)=>{Object.defineProperty(A2,"__esModule",{value:!0});A2.not=void 0;function CT(Z,$){return(J,Y)=>!Z.call($,J,Y)}A2.not=CT});var cH=q((R2)=>{Object.defineProperty(R2,"__esModule",{value:!0});R2.filter=void 0;var T2=D();function TT(Z,$){return(J)=>new T2.Observable((Y)=>{let X=0;J.subscribe((0,T2.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}R2.filter=TT});var g2=q((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.partition=void 0;var RT=C2(),m2=cH(),j2=D();function yT(Z,$,J){return[(0,m2.filter)($,J)((0,j2.from)(Z)),(0,m2.filter)((0,RT.not)($,J))((0,j2.from)(Z))]}_2.partition=yT});var Rq=q((d2)=>{Object.defineProperty(d2,"__esModule",{value:!0});d2.raceInit=d2.race=void 0;var uH=D(),mT=$H();function jT(...Z){return Z=(0,mT.argsOrArgArray)(Z),Z.length===1?(0,uH.from)(Z[0]):new uH.Observable(b2(Z))}d2.race=jT;function b2(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,uH.from)(Z[Y]).subscribe((0,uH.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}d2.raceInit=b2});var i2=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.range=void 0;var ST=D(),gT=M8(),u2=c0();function bT(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return gT.EMPTY;let Y=$+Z;return new ST.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,u2.executeSchedule)(X,J,K)}else X.complete()};(0,u2.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}l2.range=bT});var r2=q((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});n2.throwError=void 0;var dT=D();function cT(Z){return new dT.Observable(($)=>{$.error(Z())})}n2.throwError=cT});var e2=q((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.using=void 0;var s2=D(),uT=M8();function lT(Z,$){return new s2.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,s2.from)(X):uT.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}t2.using=lT});var lH=q((ZU)=>{Object.defineProperty(ZU,"__esModule",{value:!0});ZU.zip=void 0;var yq=D(),pT=$H(),iT=M8(),nT=D6();function aT(...Z){let $=(0,nT.popResultSelector)(Z),J=(0,pT.argsOrArgArray)(Z);return J.length?new yq.Observable((Y)=>{let X=J.map(()=>[]),z=J.map(()=>!1);Y.add(()=>{X=z=null});for(let K=0;!Y.closed&&K<J.length;K++)(0,yq.from)(J[K]).subscribe((0,yq.operate)({destination:Y,next:(Q)=>{if(X[K].push(Q),X.every((W)=>W.length)){let W=X.map((G)=>G.shift());if(Y.next($?$(...W):W),X.some((G,L)=>!G.length&&z[L]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):iT.EMPTY}ZU.zip=aT});var XU=q((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.NEVER=void 0;var rT=D(),sT=Y0();JU.NEVER=new rT.Observable(sT.noop)});var KU=q((zU)=>{Object.defineProperty(zU,"__esModule",{value:!0})});var mq=q((HU)=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.audit=void 0;var pH=D();function tT(Z){return($)=>new pH.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,Q=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let G=X;X=null,J.next(G)}K&&J.complete()},W=()=>{z=null,K&&J.complete()};$.subscribe((0,pH.operate)({destination:J,next:(G)=>{if(Y=!0,X=G,!z)(0,pH.from)(Z(G)).subscribe(z=(0,pH.operate)({destination:J,next:Q,complete:W}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}HU.audit=tT});var NU=q((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.auditTime=void 0;var oT=A0(),eT=mq(),ZR=U6();function $R(Z,$=oT.asyncScheduler){return(0,eT.audit)(()=>(0,ZR.timer)(Z,$))}qU.auditTime=$R});var GU=q((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.buffer=void 0;var iH=D(),JR=Y0();function YR(Z){return($)=>new iH.Observable((J)=>{let Y=[];return(0,iH.from)(Z).subscribe((0,iH.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:JR.noop})),$.subscribe((0,iH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}BU.buffer=YR});var UU=q((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.bufferCount=void 0;var LU=D(),XR=s$();function zR(Z,$=null){return $=$??Z,(J)=>new LU.Observable((Y)=>{let X=[],z=0;J.subscribe((0,LU.operate)({destination:Y,next:(K)=>{let Q=null;if(z++%$===0)X.push([]);for(let W of X)if(W.push(K),Z<=W.length)Q=Q??[],Q.push(W);if(Q)for(let W of Q)(0,XR.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}wU.bufferCount=zR});var fU=q((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.bufferTime=void 0;var jq=D(),KR=s$(),HR=A0(),QR=D6(),IU=c0();function qR(Z,...$){let J=(0,QR.popScheduler)($)??HR.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new jq.Observable((K)=>{let Q=[],W=!1,G=(f)=>{let{buffer:P,subs:V}=f;V.unsubscribe(),(0,KR.arrRemove)(Q,f),K.next(P),W&&L()},L=()=>{if(Q){let f=new jq.Subscription;K.add(f);let V={buffer:[],subs:f};Q.push(V),(0,IU.executeSchedule)(f,J,()=>G(V),Z)}};if(Y!==null&&Y>=0)(0,IU.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(0,jq.operate)({destination:K,next:(f)=>{let P=Q.slice();for(let V of P){let{buffer:T}=V;T.push(f),X<=T.length&&G(V)}},complete:()=>{while(Q?.length)K.next(Q.shift().buffer);O?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>Q=null});z.subscribe(O)})}OU.bufferTime=qR});var xU=q((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.bufferToggle=void 0;var o$=D(),EU=Y0(),WR=s$();function NR(Z,$){return(J)=>new o$.Observable((Y)=>{let X=[];(0,o$.from)(Z).subscribe((0,o$.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let Q=new o$.Subscription,W=()=>{(0,WR.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,o$.from)($(z)).subscribe((0,o$.operate)({destination:Y,next:W,complete:EU.noop})))},complete:EU.noop})),J.subscribe((0,o$.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}PU.bufferToggle=NR});var AU=q((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.bufferWhen=void 0;var nH=D(),BR=Y0();function FR(Z){return($)=>new nH.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,nH.from)(Z()).subscribe(X=(0,nH.operate)({destination:J,next:z,complete:BR.noop}))};z(),$.subscribe((0,nH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}MU.bufferWhen=FR});var RU=q((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.catchError=void 0;var _q=D();function vU(Z){return($)=>new _q.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,_q.operate)({destination:J,error:(K)=>{if(z=(0,_q.from)(Z(K,vU(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}CU.catchError=vU});var Sq=q((yU)=>{Object.defineProperty(yU,"__esModule",{value:!0});yU.scanInternals=void 0;var GR=D();function LR(Z,$,J,Y,X,z,K){let Q=J,W=$,G=0;z.subscribe((0,GR.operate)({destination:K,next:(L)=>{let O=G++;W=Q?Z(W,L,O):(Q=!0,L),Y&&K.next(W)},complete:X?()=>{Q&&K.next(W),K.complete()}:void 0}))}yU.scanInternals=LR});var MK=q((jU)=>{Object.defineProperty(jU,"__esModule",{value:!0});jU.reduce=void 0;var wR=Sq(),DR=D();function UR(Z,$){let J=arguments.length>=2;return(Y)=>new DR.Observable((X)=>(0,wR.scanInternals)(Z,$,J,!1,!0,Y,X))}jU.reduce=UR});var gq=q((SU)=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.toArray=void 0;var IR=MK(),OR=D(),kR=(Z,$)=>(Z.push($),Z);function fR(){return(Z)=>new OR.Observable(($)=>{(0,IR.reduce)(kR,[])(Z).subscribe($)})}SU.toArray=fR});var bq=q((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.joinAllInternals=void 0;var ER=v0(),PR=xK(),VR=Bq(),xR=t$(),MR=gq();function hR(Z,$){return(0,VR.pipe)((0,MR.toArray)(),(0,xR.mergeMap)((J)=>Z(J)),$?(0,PR.mapOneOrManyArgs)($):ER.identity)}bU.joinAllInternals=hR});var lU=q((cU)=>{Object.defineProperty(cU,"__esModule",{value:!0});cU.combineLatestAll=void 0;var AR=gH(),vR=bq();function CR(Z){return(0,vR.joinAllInternals)(AR.combineLatest,Z)}cU.combineLatestAll=CR});var nU=q((pU)=>{Object.defineProperty(pU,"__esModule",{value:!0});pU.combineLatestWith=void 0;var TR=gH(),RR=D();function yR(...Z){return($)=>new RR.Observable((J)=>(0,TR.combineLatestInit)([$,...Z])(J))}pU.combineLatestWith=yR});var dq=q((aU)=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.concatMap=void 0;var mR=t$();function jR(Z){return(0,mR.mergeMap)(Z,1)}aU.concatMap=jR});var oU=q((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.concatMapTo=void 0;var _R=dq();function SR(Z){return(0,_R.concatMap)(()=>Z)}sU.concatMapTo=SR});var JI=q((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.concatWith=void 0;var eU=D(),gR=dH();function bR(...Z){return($)=>new eU.Observable((J)=>{(0,gR.concatAll)()((0,eU.from)([$,...Z])).subscribe(J)})}ZI.concatWith=bR});var zI=q((YI)=>{Object.defineProperty(YI,"__esModule",{value:!0});YI.fromSubscribable=void 0;var dR=D();function cR(Z){return new dR.Observable(($)=>Z.subscribe($))}YI.fromSubscribable=cR});var qI=q((HI)=>{Object.defineProperty(HI,"__esModule",{value:!0});HI.connect=void 0;var KI=D(),uR=H0(),lR=zI(),pR={connector:()=>new uR.Subject};function iR(Z,$=pR){let{connector:J}=$;return(Y)=>new KI.Observable((X)=>{let z=J();(0,KI.from)(Z((0,lR.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}HI.connect=iR});var BI=q((WI)=>{Object.defineProperty(WI,"__esModule",{value:!0});WI.count=void 0;var nR=MK();function aR(Z){return(0,nR.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}WI.count=aR});var LI=q((FI)=>{Object.defineProperty(FI,"__esModule",{value:!0});FI.debounce=void 0;var aH=D(),rR=Y0();function sR(Z){return($)=>new aH.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let Q=X;X=null,J.next(Q)}};$.subscribe((0,aH.operate)({destination:J,next:(Q)=>{z?.unsubscribe(),Y=!0,X=Q,z=(0,aH.operate)({destination:J,next:K,complete:rR.noop}),(0,aH.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}FI.debounce=sR});var II=q((DI)=>{Object.defineProperty(DI,"__esModule",{value:!0});DI.debounceTime=void 0;var tR=A0(),wI=D(),oR=c0();function eR(Z,$=tR.asyncScheduler){return(J)=>new wI.Observable((Y)=>{let X,z;J.subscribe((0,wI.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,oR.executeSchedule)(Y,$,()=>{z=void 0;let Q=X;X=null,Y.next(Q)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}DI.debounceTime=eR});var EI=q((kI)=>{Object.defineProperty(kI,"__esModule",{value:!0});kI.defaultIfEmpty=void 0;var OI=D();function Zy(Z){return($)=>new OI.Observable((J)=>{let Y=!1;$.subscribe((0,OI.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}kI.defaultIfEmpty=Zy});var cq=q((VI)=>{Object.defineProperty(VI,"__esModule",{value:!0});VI.take=void 0;var $y=M8(),PI=D();function Jy(Z){return Z<=0?()=>$y.EMPTY:($)=>new PI.Observable((J)=>{let Y=0,X=(0,PI.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}VI.take=Jy});var uq=q((hI)=>{Object.defineProperty(hI,"__esModule",{value:!0});hI.ignoreElements=void 0;var MI=D(),Yy=Y0();function Xy(){return(Z)=>new MI.Observable(($)=>{Z.subscribe((0,MI.operate)({destination:$,next:Yy.noop}))})}hI.ignoreElements=Xy});var pq=q((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.delayWhen=void 0;var zy=hq(),vI=cq(),Ky=uq(),Hy=t$(),lq=Nq(),Qy=VK();function CI(Z,$){if($)return(J)=>(0,zy.concat)((0,lq.rx)($,(0,vI.take)(1),(0,Ky.ignoreElements)()),(0,lq.rx)(J,CI(Z)));return(0,Hy.mergeMap)((J,Y)=>(0,lq.rx)(Z(J,Y),(0,vI.take)(1),(0,Qy.map)(()=>J)))}TI.delayWhen=CI});var jI=q((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.delay=void 0;var qy=A0(),Wy=pq(),Ny=U6();function By(Z,$=qy.asyncScheduler){let J=(0,Ny.timer)(Z,$);return(0,Wy.delayWhen)(()=>J)}yI.delay=By});var gI=q((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.observeNotification=void 0;function Fy(Z,$){let{kind:J,value:Y,error:X}=Z;if(typeof J!=="string")throw TypeError('Invalid notification, missing "kind"');J==="N"?$.next?.(Y):J==="E"?$.error?.(X):$.complete?.()}_I.observeNotification=Fy});var uI=q((dI)=>{Object.defineProperty(dI,"__esModule",{value:!0});dI.dematerialize=void 0;var Gy=gI(),bI=D();function Ly(){return(Z)=>new bI.Observable(($)=>{Z.subscribe((0,bI.operate)({destination:$,next:(J)=>(0,Gy.observeNotification)(J,$)}))})}dI.dematerialize=Ly});var iI=q((lI)=>{Object.defineProperty(lI,"__esModule",{value:!0});lI.distinct=void 0;var rH=D(),wy=Y0();function Dy(Z,$){return(J)=>new rH.Observable((Y)=>{let X=new Set;J.subscribe((0,rH.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,rH.from)($).subscribe((0,rH.operate)({destination:Y,next:()=>X.clear(),complete:wy.noop}))})}lI.distinct=Dy});var iq=q((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.distinctUntilChanged=void 0;var Uy=v0(),nI=D();function Iy(Z,$=Uy.identity){return Z=Z??Oy,(J)=>new nI.Observable((Y)=>{let X,z=!0;J.subscribe((0,nI.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}aI.distinctUntilChanged=Iy;function Oy(Z,$){return Z===$}});var oI=q((sI)=>{Object.defineProperty(sI,"__esModule",{value:!0});sI.distinctUntilKeyChanged=void 0;var ky=iq();function fy(Z,$){return(0,ky.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}sI.distinctUntilKeyChanged=fy});var YO=q(($O)=>{Object.defineProperty($O,"__esModule",{value:!0});$O.elementAt=void 0;var eI=Fq(),ZO=D();function Ey(Z,$){if(Z<0)throw new eI.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new ZO.Observable((X)=>{let z=0,K=(0,ZO.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new eI.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}$O.elementAt=Ey});var KO=q((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.endWith=void 0;var nq=D();function Py(...Z){return($)=>new nq.Observable((J)=>{$.subscribe((0,nq.operate)({destination:J,complete:()=>{(0,nq.subscribeToArray)(Z,J)}}))})}XO.endWith=Py});var WO=q((QO)=>{Object.defineProperty(QO,"__esModule",{value:!0});QO.every=void 0;var HO=D();function Vy(Z,$){return(J)=>new HO.Observable((Y)=>{let X=0;J.subscribe((0,HO.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}QO.every=Vy});var aq=q((NO)=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.exhaustMap=void 0;var sH=D();function xy(Z){return($)=>new sH.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,sH.operate)({destination:J,next:(K)=>{if(!X)X=(0,sH.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,sH.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}NO.exhaustMap=xy});var LO=q((FO)=>{Object.defineProperty(FO,"__esModule",{value:!0});FO.exhaustAll=void 0;var My=aq(),hy=v0();function Ay(){return(0,My.exhaustMap)(hy.identity)}FO.exhaustAll=Ay});var UO=q((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.expand=void 0;var vy=D(),Cy=bH();function Ty(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new vy.Observable((X)=>(0,Cy.mergeInternals)(Y,X,Z,$,void 0,!0,J))}wO.expand=Ty});var kO=q((IO)=>{Object.defineProperty(IO,"__esModule",{value:!0});IO.finalize=void 0;var Ry=D();function yy(Z){return($)=>new Ry.Observable((J)=>{$.subscribe(J),J.add(Z)})}IO.finalize=yy});var rq=q((PO)=>{Object.defineProperty(PO,"__esModule",{value:!0});PO.createFind=PO.find=void 0;var fO=D();function my(Z){return($)=>new fO.Observable((J)=>EO(Z,"value",$,J))}PO.find=my;function EO(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,fO.operate)({destination:Y,next:(K)=>{let Q=z++;if(Z(K,Q,J))Y.next(X?Q:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}PO.createFind=EO});var hO=q((xO)=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.findIndex=void 0;var _y=D(),Sy=rq();function gy(Z){return($)=>new _y.Observable((J)=>(0,Sy.createFind)(Z,"index",$,J))}xO.findIndex=gy});var TO=q((vO)=>{Object.defineProperty(vO,"__esModule",{value:!0});vO.first=void 0;var AO=D(),by=g8();function dy(Z,$){let J=arguments.length>=2;return(Y)=>new AO.Observable((X)=>{let z=0,K=(0,AO.operate)({destination:X,next:(Q)=>{if(Z?Z(Q,z++,Y):!0)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new by.EmptyError)}});Y.subscribe(K)})}vO.first=dy});var mO=q((RO)=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.groupBy=void 0;var JH=D(),cy=H0();function uy(Z,$,J,Y){return(X)=>new JH.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let Q=new Map,W=(f)=>{Q.forEach(f),f(z)},G=(f)=>W((P)=>P.error(f)),L=(0,JH.operate)({destination:z,next:(f)=>{try{let P=Z(f),V=Q.get(P);if(!V){Q.set(P,V=Y?Y():new cy.Subject);let T=O(P,V);if(z.next(T),J){let E0=(0,JH.operate)({destination:V,next:()=>{V.complete(),E0?.unsubscribe()},finalize:()=>Q.delete(P)});L.add((0,JH.from)(J(T)).subscribe(E0))}}V.next(K?K(f):f)}catch(P){G(P)}},error:G,complete:()=>W((f)=>f.complete()),finalize:()=>Q.clear()});X.subscribe(L);function O(f,P){let V=new JH.Observable((T)=>P.subscribe(T));return V.key=f,V}})}RO.groupBy=uy});var gO=q((_O)=>{Object.defineProperty(_O,"__esModule",{value:!0});_O.isEmpty=void 0;var jO=D();function ly(){return(Z)=>new jO.Observable(($)=>{Z.subscribe((0,jO.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}_O.isEmpty=ly});var uO=q((dO)=>{Object.defineProperty(dO,"__esModule",{value:!0});dO.last=void 0;var bO=D(),py=g8();function iy(Z,$){let J=arguments.length>=2;return(Y)=>new bO.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,bO.operate)({destination:X,next(W){if(!Z||Z(W,z++,Y))K=!0,Q=W},complete(){if(K)X.next(Q),X.complete();else if(J)X.next($),X.complete();else X.error(new py.EmptyError)}}))})}dO.last=iy});var iO=q((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.mapTo=void 0;var ny=VK();function ay(Z){return(0,ny.map)(()=>Z)}lO.mapTo=ay});var rO=q((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.materialize=void 0;var YH=D();function ry(){return(Z)=>new YH.Observable(($)=>{Z.subscribe((0,YH.operate)({destination:$,next:(J)=>{$.next((0,YH.nextNotification)(J))},error:(J)=>{$.next((0,YH.errorNotification)(J)),$.complete()},complete:()=>{$.next(YH.COMPLETE_NOTIFICATION),$.complete()}}))})}nO.materialize=ry});var oO=q((sO)=>{Object.defineProperty(sO,"__esModule",{value:!0});sO.max=void 0;var sy=MK(),ty=D();function oy(Z){return(0,sy.reduce)((0,ty.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}sO.max=oy});var $k=q((eO)=>{Object.defineProperty(eO,"__esModule",{value:!0});eO.mergeMapTo=void 0;var ey=t$();function Zm(Z,$){return(0,ey.mergeMap)(()=>Z,$)}eO.mergeMapTo=Zm});var Xk=q((Jk)=>{Object.defineProperty(Jk,"__esModule",{value:!0});Jk.mergeScan=void 0;var $m=D(),Jm=bH();function Ym(Z,$,J=1/0){return(Y)=>new $m.Observable((X)=>{let z=$;return(0,Jm.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}Jk.mergeScan=Ym});var Qk=q((Kk)=>{Object.defineProperty(Kk,"__esModule",{value:!0});Kk.mergeWith=void 0;var zk=D(),Xm=eK();function zm(...Z){return($)=>new zk.Observable((J)=>{(0,Xm.mergeAll)()((0,zk.from)([$,...Z])).subscribe(J)})}Kk.mergeWith=zm});var Nk=q((qk)=>{Object.defineProperty(qk,"__esModule",{value:!0});qk.min=void 0;var Km=MK(),Hm=D();function Qm(Z){return(0,Km.reduce)((0,Hm.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}qk.min=Qm});var Gk=q((Bk)=>{Object.defineProperty(Bk,"__esModule",{value:!0});Bk.onErrorResumeNextWith=void 0;var qm=$H(),Wm=Tq();function Nm(...Z){let $=(0,qm.argsOrArgArray)(Z);return(J)=>(0,Wm.onErrorResumeNext)(J,...$)}Bk.onErrorResumeNextWith=Nm});var Uk=q((wk)=>{Object.defineProperty(wk,"__esModule",{value:!0});wk.pairwise=void 0;var Lk=D();function Bm(){return(Z)=>new Lk.Observable(($)=>{let J,Y=!1;Z.subscribe((0,Lk.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}wk.pairwise=Bm});var kk=q((Ik)=>{Object.defineProperty(Ik,"__esModule",{value:!0});Ik.raceWith=void 0;var Fm=Rq(),Gm=D(),Lm=v0();function wm(...Z){return!Z.length?Lm.identity:($)=>new Gm.Observable((J)=>{(0,Fm.raceInit)([$,...Z])(J)})}Ik.raceWith=wm});var Pk=q((fk)=>{Object.defineProperty(fk,"__esModule",{value:!0});fk.repeat=void 0;var tH=D(),Dm=M8(),Um=U6();function Im(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>Dm.EMPTY:(Y)=>new tH.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let G=typeof J==="number"?(0,Um.timer)(J):(0,tH.from)(J(z)),L=(0,tH.operate)({destination:X,next:()=>{L.unsubscribe(),W()}});G.subscribe(L)}else W()},W=()=>{let G=!1;if(K=Y.subscribe((0,tH.operate)({destination:X,complete:()=>{if(++z<$)if(K)Q();else G=!0;else X.complete()}})),G)Q()};W()})}fk.repeat=Im});var Mk=q((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.repeatWhen=void 0;var oH=D(),Om=H0();function km(Z){return($)=>new oH.Observable((J)=>{let Y,X=!1,z,K=!1,Q=!1,W=()=>Q&&K&&(J.complete(),!0),G=()=>{if(!z)z=new Om.Subject,(0,oH.from)(Z(z)).subscribe((0,oH.operate)({destination:J,next:()=>{if(Y)L();else X=!0},complete:()=>{K=!0,W()}}));return z},L=()=>{if(Q=!1,Y=$.subscribe((0,oH.operate)({destination:J,complete:()=>{Q=!0,!W()&&G().next()}})),X)Y.unsubscribe(),Y=null,X=!1,L()};L()})}Vk.repeatWhen=km});var vk=q((hk)=>{Object.defineProperty(hk,"__esModule",{value:!0});hk.retry=void 0;var eH=D(),fm=v0(),Em=U6();function Pm(Z=1/0){let $;if(Z&&typeof Z==="object")$=Z;else $={count:Z};let{count:J=1/0,delay:Y,resetOnSuccess:X=!1}=$;return J<=0?fm.identity:(z)=>new eH.Observable((K)=>{let Q=0,W,G=()=>{let L=!1;if(W=z.subscribe((0,eH.operate)({destination:K,next:(O)=>{if(X)Q=0;K.next(O)},error:(O)=>{if(Q++<J){let f=()=>{if(W)W.unsubscribe(),W=null,G();else L=!0};if(Y!=null){let P=typeof Y==="number"?(0,Em.timer)(Y):(0,eH.from)(Y(O,Q)),V=(0,eH.operate)({destination:K,next:()=>{V.unsubscribe(),f()},complete:()=>{K.complete()}});P.subscribe(V)}else f()}else K.error(O)}})),L)W.unsubscribe(),W=null,G()};G()})}hk.retry=Pm});var Rk=q((Ck)=>{Object.defineProperty(Ck,"__esModule",{value:!0});Ck.retryWhen=void 0;var ZQ=D(),Vm=H0();function xm(Z){return($)=>new ZQ.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,ZQ.operate)({destination:J,error:(Q)=>{if(!z)z=new Vm.Subject,(0,ZQ.from)(Z(z)).subscribe((0,ZQ.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(Q)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}Ck.retryWhen=xm});var sq=q((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.sample=void 0;var $Q=D(),Mm=Y0();function hm(Z){return($)=>new $Q.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,$Q.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,$Q.from)(Z).subscribe((0,$Q.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:Mm.noop}))})}yk.sample=hm});var Sk=q((jk)=>{Object.defineProperty(jk,"__esModule",{value:!0});jk.sampleTime=void 0;var Am=A0(),vm=sq(),Cm=vq();function Tm(Z,$=Am.asyncScheduler){return(0,vm.sample)((0,Cm.interval)(Z,$))}jk.sampleTime=Tm});var dk=q((gk)=>{Object.defineProperty(gk,"__esModule",{value:!0});gk.scan=void 0;var Rm=D(),ym=Sq();function mm(Z,$){let J=arguments.length>=2;return(Y)=>new Rm.Observable((X)=>(0,ym.scanInternals)(Z,$,J,!0,!1,Y,X))}gk.scan=mm});var pk=q((uk)=>{Object.defineProperty(uk,"__esModule",{value:!0});uk.sequenceEqual=void 0;var tq=D();function jm(Z,$=(J,Y)=>J===Y){return(J)=>new tq.Observable((Y)=>{let X=ck(),z=ck(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,G)=>{let L=(0,tq.operate)({destination:Y,next:(O)=>{let{buffer:f,complete:P}=G;if(f.length===0)P?K(!1):W.buffer.push(O);else!$(O,f.shift())&&K(!1)},complete:()=>{W.complete=!0;let{complete:O,buffer:f}=G;O&&K(f.length===0),L?.unsubscribe()}});return L};J.subscribe(Q(X,z)),(0,tq.from)(Z).subscribe(Q(z,X))})}uk.sequenceEqual=jm;function ck(){return{buffer:[],complete:!1}}});var eq=q((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.share=void 0;var XH=D(),_m=H0();function Sm(Z={}){let{connector:$=()=>new _m.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,Q,W,G=0,L=!1,O=!1,f=()=>{Q?.unsubscribe(),Q=void 0},P=()=>{f(),K=W=void 0,L=O=!1},V=()=>{let T=K;P(),T?.unsubscribe()};return new XH.Observable((T)=>{if(G++,!O&&!L)f();let E0=W=W??$();if(T.add(()=>{if(G--,G===0&&!O&&!L)Q=oq(V,X)}),E0.subscribe(T),!K&&G>0)K=new XH.Subscriber({next:(X0)=>E0.next(X0),error:(X0)=>{O=!0,f(),Q=oq(P,J,X0),E0.error(X0)},complete:()=>{L=!0,f(),Q=oq(P,Y),E0.complete()}}),(0,XH.from)(z).subscribe(K)})}}ik.share=Sm;function oq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new XH.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,XH.from)($(...J)).subscribe(Y)}});var sk=q((ak)=>{Object.defineProperty(ak,"__esModule",{value:!0});ak.shareReplay=void 0;var gm=Kq(),bm=eq();function dm(Z,$,J){let Y,X=!1;if(Z&&typeof Z==="object")({bufferSize:Y=1/0,windowTime:$=1/0,refCount:X=!1,scheduler:J}=Z);else Y=Z??1/0;return(0,bm.share)({connector:()=>new gm.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}ak.shareReplay=dm});var Zf=q((ok)=>{Object.defineProperty(ok,"__esModule",{value:!0});ok.single=void 0;var tk=D(),cm=g8(),um=Lq(),lm=Gq();function pm(Z){return($)=>new tk.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,tk.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new um.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new lm.NotFoundError("No matching values"):new cm.EmptyError)}}))})}ok.single=pm});var Yf=q(($f)=>{Object.defineProperty($f,"__esModule",{value:!0});$f.skip=void 0;var im=cH();function nm(Z){return(0,im.filter)(($,J)=>Z<=J)}$f.skip=nm});var Hf=q((zf)=>{Object.defineProperty(zf,"__esModule",{value:!0});zf.skipLast=void 0;var am=v0(),Xf=D();function rm(Z){return Z<=0?am.identity:($)=>new Xf.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,Xf.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let Q=K%Z,W=Y[Q];Y[Q]=z,J.next(W)}}})),()=>{Y=null}})}zf.skipLast=rm});var Wf=q((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.skipUntil=void 0;var JQ=D(),sm=Y0();function tm(Z){return($)=>new JQ.Observable((J)=>{let Y=!1,X=(0,JQ.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:sm.noop});(0,JQ.from)(Z).subscribe(X),$.subscribe((0,JQ.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}Qf.skipUntil=tm});var Gf=q((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.skipWhile=void 0;var Nf=D();function om(Z){return($)=>new Nf.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,Nf.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}Bf.skipWhile=om});var Df=q((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.startWith=void 0;var ZW=D();function em(...Z){return($)=>new ZW.Observable((J)=>{(0,ZW.subscribeToArray)(Z,(0,ZW.operate)({destination:J,complete:()=>$.subscribe(J)}))})}Lf.startWith=em});var zH=q((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});Uf.switchMap=void 0;var YQ=D();function Zj(Z){return($)=>new YQ.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,YQ.operate)({destination:J,next:(Q)=>{Y?.unsubscribe();let W=X++;(0,YQ.from)(Z(Q,W)).subscribe(Y=(0,YQ.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}Uf.switchMap=Zj});var ff=q((Of)=>{Object.defineProperty(Of,"__esModule",{value:!0});Of.switchAll=void 0;var $j=zH(),Jj=v0();function Yj(){return(0,$j.switchMap)(Jj.identity)}Of.switchAll=Yj});var Vf=q((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.switchMapTo=void 0;var Xj=zH();function zj(Z){return(0,Xj.switchMap)(()=>Z)}Ef.switchMapTo=zj});var Af=q((Mf)=>{Object.defineProperty(Mf,"__esModule",{value:!0});Mf.switchScan=void 0;var Kj=zH(),xf=D();function Hj(Z,$){return(J)=>new xf.Observable((Y)=>{let X=$;return(0,Kj.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,xf.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}Mf.switchScan=Hj});var Rf=q((Cf)=>{Object.defineProperty(Cf,"__esModule",{value:!0});Cf.takeLast=void 0;var Qj=M8(),vf=D();function qj(Z){return Z<=0?()=>Qj.EMPTY:($)=>new vf.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,vf.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let Q=0;Q<K;Q++)J.next(Y[(z+Q)%Z]);J.complete()},finalize:()=>{Y=null}}))})}Cf.takeLast=qj});var jf=q((yf)=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.takeUntil=void 0;var $W=D(),Wj=Y0();function Nj(Z){return($)=>new $W.Observable((J)=>{(0,$W.from)(Z).subscribe((0,$W.operate)({destination:J,next:()=>J.complete(),complete:Wj.noop})),!J.closed&&$.subscribe(J)})}yf.takeUntil=Nj});var bf=q((Sf)=>{Object.defineProperty(Sf,"__esModule",{value:!0});Sf.takeWhile=void 0;var _f=D();function Bj(Z,$=!1){return(J)=>new _f.Observable((Y)=>{let X=0,z=(0,_f.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}Sf.takeWhile=Bj});var uf=q((df)=>{Object.defineProperty(df,"__esModule",{value:!0});df.tap=void 0;var JW=D(),Fj=v0();function Gj(Z){let $=(0,JW.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new JW.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,JW.operate)({destination:Y,next:(z)=>{$.next?.(z),Y.next(z)},error:(z)=>{X=!1,$.error?.(z),Y.error(z)},complete:()=>{X=!1,$.complete?.(),Y.complete()},finalize:()=>{if(X)$.unsubscribe?.();$.finalize?.()}}))}):Fj.identity}df.tap=Gj});var YW=q((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.throttle=void 0;var XQ=D();function Lj(Z,$){return(J)=>new XQ.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,Q=null,W=null,G=!1,L=()=>{if(W?.unsubscribe(),W=null,z)P(),G&&Y.complete()},O=()=>{W=null,G&&Y.complete()},f=(V)=>W=(0,XQ.from)(Z(V)).subscribe((0,XQ.operate)({destination:Y,next:L,complete:O})),P=()=>{if(K){K=!1;let V=Q;Q=null,Y.next(V),!G&&f(V)}};J.subscribe((0,XQ.operate)({destination:Y,next:(V)=>{K=!0,Q=V,!(W&&!W.closed)&&(X?P():f(V))},complete:()=>{G=!0,!(z&&K&&W&&!W.closed)&&Y.complete()}}))})}lf.throttle=Lj});var rf=q((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});nf.throttleTime=void 0;var wj=A0(),Dj=YW(),Uj=U6();function Ij(Z,$=wj.asyncScheduler,J){let Y=(0,Uj.timer)(Z,$);return(0,Dj.throttle)(()=>Y,J)}nf.throttleTime=Ij});var ef=q((tf)=>{Object.defineProperty(tf,"__esModule",{value:!0});tf.throwIfEmpty=void 0;var Oj=g8(),sf=D();function kj(Z=fj){return($)=>new sf.Observable((J)=>{let Y=!1;$.subscribe((0,sf.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}tf.throwIfEmpty=kj;function fj(){return new Oj.EmptyError}});var YE=q(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.TimeInterval=$E.timeInterval=void 0;var Ej=A0(),ZE=D();function Pj(Z=Ej.asyncScheduler){return($)=>new ZE.Observable((J)=>{let Y=Z.now();$.subscribe((0,ZE.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new XW(X,K))}}))})}$E.timeInterval=Pj;class XW{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}$E.TimeInterval=XW});var KE=q((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.timeoutWith=void 0;var xj=A0(),Mj=mH(),hj=jH();function Aj(Z,$,J){let Y,X,z;if(J=J??xj.asyncScheduler,(0,Mj.isValidDate)(Z))Y=Z;else if(typeof Z==="number")X=Z;if($)z=()=>$;else throw TypeError("No observable provided to switch to");if(Y==null&&X==null)throw TypeError("No timeout provided.");return(0,hj.timeout)({first:Y,each:X,scheduler:J,with:z})}XE.timeoutWith=Aj});var qE=q((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.timestamp=void 0;var vj=CH(),Cj=VK();function Tj(Z=vj.dateTimestampProvider){return(0,Cj.map)(($)=>({value:$,timestamp:Z.now()}))}HE.timestamp=Tj});var FE=q((NE)=>{Object.defineProperty(NE,"__esModule",{value:!0});NE.window=void 0;var zQ=D(),WE=H0(),Rj=Y0();function yj(Z){return($)=>new zQ.Observable((J)=>{let Y=new WE.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,zQ.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,zQ.from)(Z).subscribe((0,zQ.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new WE.Subject)},complete:Rj.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}NE.window=yj});var UE=q((wE)=>{Object.defineProperty(wE,"__esModule",{value:!0});wE.windowCount=void 0;var GE=D(),LE=H0();function mj(Z,$=0){let J=$>0?$:Z;return(Y)=>new GE.Observable((X)=>{let z=[new LE.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,GE.operate)({destination:X,next:(W)=>{for(let L of z)L.next(W);let G=Q-Z+1;if(G>=0&&G%J===0)z.shift().complete();if(++Q%J===0){let L=new LE.Subject;z.push(L),X.next(L.asObservable())}},error:(W)=>{while(z.length>0)z.shift().error(W);X.error(W)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}wE.windowCount=mj});var fE=q((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.windowTime=void 0;var jj=H0(),_j=A0(),zW=D(),Sj=s$(),gj=D6(),IE=c0();function bj(Z,...$){let J=(0,gj.popScheduler)($)??_j.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new zW.Observable((K)=>{let Q=[],W=!1,G=(P)=>{let{window:V,subs:T}=P;V.complete(),T.unsubscribe(),(0,Sj.arrRemove)(Q,P),W&&L()},L=()=>{if(Q){let P=new zW.Subscription;K.add(P);let V=new jj.Subject,T={window:V,subs:P,seen:0};Q.push(T),K.next(V.asObservable()),(0,IE.executeSchedule)(P,J,()=>G(T),Z)}};if(Y!==null&&Y>=0)(0,IE.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(P)=>Q.slice().forEach(P),f=(P)=>{O(({window:V})=>P(V)),P(K),K.unsubscribe()};return z.subscribe((0,zW.operate)({destination:K,next:(P)=>{O((V)=>{V.window.next(P),X<=++V.seen&&G(V)})},error:(P)=>f((V)=>V.error(P)),complete:()=>f((P)=>P.complete())})),()=>{Q=null}})}OE.windowTime=bj});var xE=q((PE)=>{Object.defineProperty(PE,"__esModule",{value:!0});PE.windowToggle=void 0;var e$=D(),dj=H0(),EE=Y0(),cj=s$();function uj(Z,$){return(J)=>new e$.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,e$.from)(Z).subscribe((0,e$.operate)({destination:Y,next:(K)=>{let Q=new dj.Subject;X.push(Q);let W=new e$.Subscription,G=()=>{(0,cj.arrRemove)(X,Q),Q.complete(),W.unsubscribe()},L;try{L=(0,e$.from)($(K))}catch(O){z(O);return}Y.next(Q),W.add(L.subscribe((0,e$.operate)({destination:Y,next:G,error:z,complete:EE.noop})))},complete:EE.noop})),J.subscribe((0,e$.operate)({destination:Y,next:(K)=>{let Q=X.slice();for(let W of Q)W.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}PE.windowToggle=uj});var AE=q((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.windowWhen=void 0;var KQ=D(),lj=H0(),pj=Y0();function ij(Z){return($)=>new KQ.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new lj.Subject,J.next(Y.asObservable());let Q;try{Q=(0,KQ.from)(Z())}catch(W){z(W);return}Q.subscribe(X=(0,KQ.operate)({destination:J,next:K,error:z,complete:pj.noop}))};K(),$.subscribe((0,KQ.operate)({destination:J,next:(Q)=>Y.next(Q),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}ME.windowWhen=ij});var TE=q((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.withLatestFrom=void 0;var HQ=D(),nj=v0(),aj=Y0(),rj=D6();function sj(...Z){let $=(0,rj.popResultSelector)(Z);return(J)=>new HQ.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),Q=!1;for(let W=0;W<X;W++)(0,HQ.from)(Z[W]).subscribe((0,HQ.operate)({destination:Y,next:(G)=>{if(z[W]=G,!Q&&!K[W])K[W]=!0,(Q=K.every(nj.identity))&&(K=null)},complete:aj.noop}));J.subscribe((0,HQ.operate)({destination:Y,next:(W)=>{if(Q){let G=[W,...z];Y.next($?$(...G):G)}}}))})}vE.withLatestFrom=sj});var mE=q((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.zipAll=void 0;var tj=lH(),oj=bq();function ej(Z){return(0,oj.joinAllInternals)(tj.zip,Z)}RE.zipAll=ej});var SE=q((jE)=>{Object.defineProperty(jE,"__esModule",{value:!0});jE.zipWith=void 0;var Z_=D(),$_=lH();function J_(...Z){return($)=>new Z_.Observable((J)=>{(0,$_.zip)($,...Z).subscribe(J)})}jE.zipWith=J_});var bE=q((H)=>{var Y_=H&&H.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;var X=Object.getOwnPropertyDescriptor($,J);if(!X||("get"in X?!$.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return $[J]}};Object.defineProperty(Z,Y,X)}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),X_=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))Y_($,Z,J)};Object.defineProperty(H,"__esModule",{value:!0});H.throwError=H.range=H.race=H.partition=H.onErrorResumeNext=H.of=H.merge=H.interval=H.iif=H.generate=H.fromEventPattern=H.fromEvent=H.forkJoin=H.defer=H.connectable=H.concat=H.combineLatest=H.bindNodeCallback=H.bindCallback=H.TimeoutError=H.SequenceError=H.NotFoundError=H.EmptyError=H.ArgumentOutOfRangeError=H.firstValueFrom=H.lastValueFrom=H.identity=H.noop=H.pipe=H.rx=H.Scheduler=H.VirtualAction=H.VirtualTimeScheduler=H.animationFrameScheduler=H.queueScheduler=H.asyncScheduler=H.asapScheduler=H.AsyncSubject=H.ReplaySubject=H.BehaviorSubject=H.Subject=H.animationFrames=H.isObservable=H.UnsubscriptionError=H.operate=H.Subscriber=H.Subscription=H.config=H.from=H.Observable=void 0;H.max=H.materialize=H.mapTo=H.map=H.last=H.isEmpty=H.ignoreElements=H.groupBy=H.first=H.findIndex=H.find=H.finalize=H.filter=H.expand=H.exhaustMap=H.exhaustAll=H.every=H.endWith=H.elementAt=H.distinctUntilKeyChanged=H.distinctUntilChanged=H.distinct=H.dematerialize=H.delayWhen=H.delay=H.defaultIfEmpty=H.debounceTime=H.debounce=H.count=H.connect=H.concatWith=H.concatMapTo=H.concatMap=H.concatAll=H.combineLatestWith=H.combineLatestAll=H.catchError=H.bufferWhen=H.bufferToggle=H.bufferTime=H.bufferCount=H.buffer=H.auditTime=H.audit=H.NEVER=H.EMPTY=H.scheduled=H.zip=H.using=H.timer=void 0;H.windowWhen=H.windowToggle=H.windowTime=H.windowCount=H.window=H.toArray=H.timestamp=H.timeoutWith=H.timeout=H.timeInterval=H.throwIfEmpty=H.throttleTime=H.throttle=H.tap=H.takeWhile=H.takeUntil=H.takeLast=H.take=H.switchScan=H.switchMapTo=H.switchMap=H.switchAll=H.subscribeOn=H.startWith=H.skipWhile=H.skipUntil=H.skipLast=H.skip=H.single=H.shareReplay=H.share=H.sequenceEqual=H.scan=H.sampleTime=H.sample=H.retryWhen=H.retry=H.repeatWhen=H.repeat=H.reduce=H.raceWith=H.pairwise=H.onErrorResumeNextWith=H.observeOn=H.min=H.mergeWith=H.mergeScan=H.mergeMapTo=H.mergeMap=H.mergeAll=void 0;H.zipWith=H.zipAll=H.withLatestFrom=void 0;var I6=D();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return I6.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return I6.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return I6.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return I6.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return I6.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return I6.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return I6.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return I6.isObservable}});var z_=DG();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return z_.animationFrames}});var K_=H0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return K_.Subject}});var H_=PG();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return H_.BehaviorSubject}});var Q_=Kq();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return Q_.ReplaySubject}});var q_=Hq();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return q_.AsyncSubject}});var W_=FL();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return W_.asapScheduler}});var N_=A0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return N_.asyncScheduler}});var B_=xL();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return B_.queueScheduler}});var F_=SL();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return F_.animationFrameScheduler}});var gE=cL();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return gE.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return gE.VirtualAction}});var G_=Wq();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return G_.Scheduler}});var L_=Nq();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return L_.rx}});var w_=Bq();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return w_.pipe}});var D_=Y0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return D_.noop}});var U_=v0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return U_.identity}});var I_=Jw();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return I_.lastValueFrom}});var O_=zw();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return O_.firstValueFrom}});var k_=Fq();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return k_.ArgumentOutOfRangeError}});var f_=g8();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return f_.EmptyError}});var E_=Gq();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return E_.NotFoundError}});var P_=Lq();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return P_.SequenceError}});var V_=jH();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return V_.TimeoutError}});var x_=qD();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return x_.bindCallback}});var M_=BD();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return M_.bindNodeCallback}});var h_=gH();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return h_.combineLatest}});var A_=hq();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return A_.concat}});var v_=dD();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return v_.connectable}});var C_=ZH();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return C_.defer}});var T_=lD();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return T_.forkJoin}});var R_=oD();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return R_.fromEvent}});var y_=Y2();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return y_.fromEventPattern}});var m_=H2();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return m_.generate}});var j_=W2();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return j_.iif}});var __=vq();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return __.interval}});var S_=O2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return S_.merge}});var g_=E2();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return g_.of}});var b_=Tq();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return b_.onErrorResumeNext}});var d_=g2();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return d_.partition}});var c_=Rq();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return c_.race}});var u_=i2();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return u_.range}});var l_=r2();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return l_.throwError}});var p_=U6();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return p_.timer}});var i_=e2();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return i_.using}});var n_=lH();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return n_.zip}});var a_=oK();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return a_.scheduled}});var r_=M8();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return r_.EMPTY}});var s_=XU();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return s_.NEVER}});X_(KU(),H);var t_=mq();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return t_.audit}});var o_=NU();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return o_.auditTime}});var e_=GU();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return e_.buffer}});var ZS=UU();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return ZS.bufferCount}});var $S=fU();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return $S.bufferTime}});var JS=xU();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return JS.bufferToggle}});var YS=AU();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return YS.bufferWhen}});var XS=RU();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return XS.catchError}});var zS=lU();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return zS.combineLatestAll}});var KS=nU();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return KS.combineLatestWith}});var HS=dH();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return HS.concatAll}});var QS=dq();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return QS.concatMap}});var qS=oU();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return qS.concatMapTo}});var WS=JI();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return WS.concatWith}});var NS=qI();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return NS.connect}});var BS=BI();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return BS.count}});var FS=LI();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return FS.debounce}});var GS=II();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return GS.debounceTime}});var LS=EI();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return LS.defaultIfEmpty}});var wS=jI();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return wS.delay}});var DS=pq();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return DS.delayWhen}});var US=uI();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return US.dematerialize}});var IS=iI();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return IS.distinct}});var OS=iq();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return OS.distinctUntilChanged}});var kS=oI();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return kS.distinctUntilKeyChanged}});var fS=YO();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return fS.elementAt}});var ES=KO();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return ES.endWith}});var PS=WO();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return PS.every}});var VS=LO();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return VS.exhaustAll}});var xS=aq();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return xS.exhaustMap}});var MS=UO();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return MS.expand}});var hS=cH();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return hS.filter}});var AS=kO();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return AS.finalize}});var vS=rq();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return vS.find}});var CS=hO();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return CS.findIndex}});var TS=TO();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return TS.first}});var RS=mO();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return RS.groupBy}});var yS=uq();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return yS.ignoreElements}});var mS=gO();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return mS.isEmpty}});var jS=uO();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return jS.last}});var _S=VK();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return _S.map}});var SS=iO();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return SS.mapTo}});var gS=rO();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return gS.materialize}});var bS=oO();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return bS.max}});var dS=eK();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return dS.mergeAll}});var cS=t$();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return cS.mergeMap}});var uS=$k();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return uS.mergeMapTo}});var lS=Xk();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return lS.mergeScan}});var pS=Qk();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return pS.mergeWith}});var iS=Nk();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return iS.min}});var nS=_H();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return nS.observeOn}});var aS=Gk();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return aS.onErrorResumeNextWith}});var rS=Uk();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return rS.pairwise}});var sS=kk();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return sS.raceWith}});var tS=MK();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return tS.reduce}});var oS=Pk();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return oS.repeat}});var eS=Mk();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return eS.repeatWhen}});var Zg=vk();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return Zg.retry}});var $g=Rk();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return $g.retryWhen}});var Jg=sq();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return Jg.sample}});var Yg=Sk();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return Yg.sampleTime}});var Xg=dk();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return Xg.scan}});var zg=pk();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return zg.sequenceEqual}});var Kg=eq();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return Kg.share}});var Hg=sk();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return Hg.shareReplay}});var Qg=Zf();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return Qg.single}});var qg=Yf();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return qg.skip}});var Wg=Hf();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return Wg.skipLast}});var Ng=Wf();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return Ng.skipUntil}});var Bg=Gf();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return Bg.skipWhile}});var Fg=Df();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return Fg.startWith}});var Gg=SH();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return Gg.subscribeOn}});var Lg=ff();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return Lg.switchAll}});var wg=zH();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return wg.switchMap}});var Dg=Vf();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return Dg.switchMapTo}});var Ug=Af();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return Ug.switchScan}});var Ig=cq();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return Ig.take}});var Og=Rf();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Og.takeLast}});var kg=jf();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return kg.takeUntil}});var fg=bf();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return fg.takeWhile}});var Eg=uf();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return Eg.tap}});var Pg=YW();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return Pg.throttle}});var Vg=rf();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Vg.throttleTime}});var xg=ef();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return xg.throwIfEmpty}});var Mg=YE();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return Mg.timeInterval}});var hg=jH();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return hg.timeout}});var Ag=KE();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return Ag.timeoutWith}});var vg=qE();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return vg.timestamp}});var Cg=gq();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return Cg.toArray}});var Tg=FE();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return Tg.window}});var Rg=UE();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return Rg.windowCount}});var yg=fE();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return yg.windowTime}});var mg=xE();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return mg.windowToggle}});var jg=AE();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return jg.windowWhen}});var _g=TE();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return _g.withLatestFrom}});var Sg=mE();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return Sg.zipAll}});var gg=SE();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return gg.zipWith}})});async function KW(Z,$,J){let{max:Y=4}=J??{},X=(K)=>A.defer(()=>A.from($(Z[K])).pipe(A.map((Q)=>({idx:K,v:Q})))),z=A.from(Z.map((K,Q)=>Q)).pipe(A.map(X),A.mergeAll(Y),A.reduce((K,Q)=>{return K[Q.idx]=Q.v,K},[]));return A.firstValueFrom(z)}class dE{opQueue=new A.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(A.mergeAll($),A.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=A.defer(()=>A.from(Z()).pipe(A.map((X)=>({id:$,result:X})),A.catchError((X)=>A.of({id:$,error:X})))),Y=A.firstValueFrom(this.opResultStream.pipe(A.filter((X)=>X.id===$))).then((X)=>{if(X.error)return Promise.reject(X.error);else return Promise.resolve(X.result)});return this.opQueue.next(J),Y}enqueueList(Z,$){if(Z.length===0)return Promise.resolve(new Map);return A.firstValueFrom(A.from(Z).pipe(A.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),A.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=A.lastValueFrom(this.opResultStream.pipe(A.materialize(),A.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var A;var cE=U(()=>{A=yN(bE(),1)});function uE(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function HW(Z,$){let J=uE($);return`${Z}/.cursor/projects/${J}`}var KH=U(()=>{cE()});var iE=q((lE)=>{Object.defineProperty(lE,"__esModule",{value:!0});lE._globalThis=void 0;lE._globalThis=typeof globalThis==="object"?globalThis:global});var nE=q((Z9)=>{var bg=Z9&&Z9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),dg=Z9&&Z9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))bg($,Z,J)};Object.defineProperty(Z9,"__esModule",{value:!0});dg(iE(),Z9)});var aE=q(($9)=>{var cg=$9&&$9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),ug=$9&&$9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))cg($,Z,J)};Object.defineProperty($9,"__esModule",{value:!0});ug(nE(),$9)});var QW=q((rE)=>{Object.defineProperty(rE,"__esModule",{value:!0});rE.VERSION=void 0;rE.VERSION="1.9.0"});var $P=q((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.isCompatible=eE._makeCompatibilityCheck=void 0;var lg=QW(),tE=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function oE(Z){let $=new Set([Z]),J=new Set,Y=Z.match(tE);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(W){return W===Z};function z(Q){return J.add(Q),!1}function K(Q){return $.add(Q),!0}return function(W){if($.has(W))return!0;if(J.has(W))return!1;let G=W.match(tE);if(!G)return z(W);let L={major:+G[1],minor:+G[2],patch:+G[3],prerelease:G[4]};if(L.prerelease!=null)return z(W);if(X.major!==L.major)return z(W);if(X.major===0){if(X.minor===L.minor&&X.patch<=L.patch)return K(W);return z(W)}if(X.minor<=L.minor)return K(W);return z(W)}}eE._makeCompatibilityCheck=oE;eE.isCompatible=oE(lg.VERSION)});var J9=q((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.unregisterGlobal=JP.getGlobal=JP.registerGlobal=void 0;var ig=aE(),hK=QW(),ng=$P(),ag=hK.VERSION.split(".")[0],HH=Symbol.for(`opentelemetry.js.api.${ag}`),QH=ig._globalThis;function rg(Z,$,J,Y=!1){var X;let z=QH[HH]=(X=QH[HH])!==null&&X!==void 0?X:{version:hK.VERSION};if(!Y&&z[Z]){let K=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return J.error(K.stack||K.message),!1}if(z.version!==hK.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${hK.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${hK.VERSION}.`),!0}JP.registerGlobal=rg;function sg(Z){var $,J;let Y=($=QH[HH])===null||$===void 0?void 0:$.version;if(!Y||!(0,ng.isCompatible)(Y))return;return(J=QH[HH])===null||J===void 0?void 0:J[Z]}JP.getGlobal=sg;function tg(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${hK.VERSION}.`);let J=QH[HH];if(J)delete J[Z]}JP.unregisterGlobal=tg});var HP=q((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.DiagComponentLogger=void 0;var Zb=J9();class XP{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return qH("debug",this._namespace,Z)}error(...Z){return qH("error",this._namespace,Z)}info(...Z){return qH("info",this._namespace,Z)}warn(...Z){return qH("warn",this._namespace,Z)}verbose(...Z){return qH("verbose",this._namespace,Z)}}zP.DiagComponentLogger=XP;function qH(Z,$,J){let Y=(0,Zb.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var QQ=q((QP)=>{Object.defineProperty(QP,"__esModule",{value:!0});QP.DiagLogLevel=void 0;var $b;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})($b=QP.DiagLogLevel||(QP.DiagLogLevel={}))});var NP=q((qP)=>{Object.defineProperty(qP,"__esModule",{value:!0});qP.createLogLevelDiagLogger=void 0;var d8=QQ();function Jb(Z,$){if(Z<d8.DiagLogLevel.NONE)Z=d8.DiagLogLevel.NONE;else if(Z>d8.DiagLogLevel.ALL)Z=d8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",d8.DiagLogLevel.ERROR),warn:J("warn",d8.DiagLogLevel.WARN),info:J("info",d8.DiagLogLevel.INFO),debug:J("debug",d8.DiagLogLevel.DEBUG),verbose:J("verbose",d8.DiagLogLevel.VERBOSE)}}qP.createLogLevelDiagLogger=Jb});var Y9=q((FP)=>{Object.defineProperty(FP,"__esModule",{value:!0});FP.DiagAPI=void 0;var Yb=HP(),Xb=NP(),BP=QQ(),qQ=J9(),zb="diag";class WW{constructor(){function Z(Y){return function(...X){let z=(0,qQ.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:BP.DiagLogLevel.INFO})=>{var z,K,Q;if(Y===$){let L=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=L.stack)!==null&&z!==void 0?z:L.message),!1}if(typeof X==="number")X={logLevel:X};let W=(0,qQ.getGlobal)("diag"),G=(0,Xb.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:BP.DiagLogLevel.INFO,Y);if(W&&!X.suppressOverrideMessage){let L=(Q=Error().stack)!==null&&Q!==void 0?Q:"<failed to generate stacktrace>";W.warn(`Current logger will be overwritten from ${L}`),G.warn(`Current logger will overwrite one already registered from ${L}`)}return(0,qQ.registerGlobal)("diag",G,$,!0)};$.setLogger=J,$.disable=()=>{(0,qQ.unregisterGlobal)(zb,$)},$.createComponentLogger=(Y)=>{return new Yb.DiagComponentLogger(Y)},$.verbose=Z("verbose"),$.debug=Z("debug"),$.info=Z("info"),$.warn=Z("warn"),$.error=Z("error")}static instance(){if(!this._instance)this._instance=new WW;return this._instance}}FP.DiagAPI=WW});var DP=q((LP)=>{Object.defineProperty(LP,"__esModule",{value:!0});LP.BaggageImpl=void 0;class AK{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let $=this._entries.get(Z);if(!$)return;return Object.assign({},$)}getAllEntries(){return Array.from(this._entries.entries()).map(([Z,$])=>[Z,$])}setEntry(Z,$){let J=new AK(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new AK(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new AK(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new AK}}LP.BaggageImpl=AK});var OP=q((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.baggageEntryMetadataSymbol=void 0;UP.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var NW=q((kP)=>{Object.defineProperty(kP,"__esModule",{value:!0});kP.baggageEntryMetadataFromString=kP.createBaggage=void 0;var Kb=Y9(),Hb=DP(),Qb=OP(),qb=Kb.DiagAPI.instance();function Wb(Z={}){return new Hb.BaggageImpl(new Map(Object.entries(Z)))}kP.createBaggage=Wb;function Nb(Z){if(typeof Z!=="string")qb.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:Qb.baggageEntryMetadataSymbol,toString(){return Z}}}kP.baggageEntryMetadataFromString=Nb});var WH=q((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.ROOT_CONTEXT=EP.createContextKey=void 0;function Fb(Z){return Symbol.for(Z)}EP.createContextKey=Fb;class WQ{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new WQ($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new WQ($._currentContext);return Y._currentContext.delete(J),Y}}}EP.ROOT_CONTEXT=new WQ});var hP=q((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.DiagConsoleLogger=void 0;var BW=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class VP{constructor(){function Z($){return function(...J){if(console){let Y=console[$];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,J)}}}for(let $=0;$<BW.length;$++)this[BW[$].n]=Z(BW[$].c)}}xP.DiagConsoleLogger=VP});var kW=q((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.createNoopMeter=AP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=AP.NOOP_OBSERVABLE_GAUGE_METRIC=AP.NOOP_OBSERVABLE_COUNTER_METRIC=AP.NOOP_UP_DOWN_COUNTER_METRIC=AP.NOOP_HISTOGRAM_METRIC=AP.NOOP_GAUGE_METRIC=AP.NOOP_COUNTER_METRIC=AP.NOOP_METER=AP.NoopObservableUpDownCounterMetric=AP.NoopObservableGaugeMetric=AP.NoopObservableCounterMetric=AP.NoopObservableMetric=AP.NoopHistogramMetric=AP.NoopGaugeMetric=AP.NoopUpDownCounterMetric=AP.NoopCounterMetric=AP.NoopMetric=AP.NoopMeter=void 0;class FW{constructor(){}createGauge(Z,$){return AP.NOOP_GAUGE_METRIC}createHistogram(Z,$){return AP.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return AP.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return AP.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return AP.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return AP.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return AP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}AP.NoopMeter=FW;class vK{}AP.NoopMetric=vK;class GW extends vK{add(Z,$){}}AP.NoopCounterMetric=GW;class LW extends vK{add(Z,$){}}AP.NoopUpDownCounterMetric=LW;class wW extends vK{record(Z,$){}}AP.NoopGaugeMetric=wW;class DW extends vK{record(Z,$){}}AP.NoopHistogramMetric=DW;class NH{addCallback(Z){}removeCallback(Z){}}AP.NoopObservableMetric=NH;class UW extends NH{}AP.NoopObservableCounterMetric=UW;class IW extends NH{}AP.NoopObservableGaugeMetric=IW;class OW extends NH{}AP.NoopObservableUpDownCounterMetric=OW;AP.NOOP_METER=new FW;AP.NOOP_COUNTER_METRIC=new GW;AP.NOOP_GAUGE_METRIC=new wW;AP.NOOP_HISTOGRAM_METRIC=new DW;AP.NOOP_UP_DOWN_COUNTER_METRIC=new LW;AP.NOOP_OBSERVABLE_COUNTER_METRIC=new UW;AP.NOOP_OBSERVABLE_GAUGE_METRIC=new IW;AP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new OW;function Lb(){return AP.NOOP_METER}AP.createNoopMeter=Lb});var bP=q((gP)=>{Object.defineProperty(gP,"__esModule",{value:!0});gP.ValueType=void 0;var xb;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(xb=gP.ValueType||(gP.ValueType={}))});var EW=q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.defaultTextMapSetter=dP.defaultTextMapGetter=void 0;dP.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};dP.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var iP=q((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.NoopContextManager=void 0;var hb=WH();class uP{active(){return hb.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}lP.NoopContextManager=uP});var BH=q((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.ContextAPI=void 0;var Ab=iP(),PW=J9(),nP=Y9(),VW="context",vb=new Ab.NoopContextManager;class xW{constructor(){}static getInstance(){if(!this._instance)this._instance=new xW;return this._instance}setGlobalContextManager(Z){return(0,PW.registerGlobal)(VW,Z,nP.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,$,J,...Y){return this._getContextManager().with(Z,$,J,...Y)}bind(Z,$){return this._getContextManager().bind(Z,$)}_getContextManager(){return(0,PW.getGlobal)(VW)||vb}disable(){this._getContextManager().disable(),(0,PW.unregisterGlobal)(VW,nP.DiagAPI.instance())}}aP.ContextAPI=xW});var hW=q((sP)=>{Object.defineProperty(sP,"__esModule",{value:!0});sP.TraceFlags=void 0;var Cb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Cb=sP.TraceFlags||(sP.TraceFlags={}))});var NQ=q((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.INVALID_SPAN_CONTEXT=tP.INVALID_TRACEID=tP.INVALID_SPANID=void 0;var Tb=hW();tP.INVALID_SPANID="0000000000000000";tP.INVALID_TRACEID="00000000000000000000000000000000";tP.INVALID_SPAN_CONTEXT={traceId:tP.INVALID_TRACEID,spanId:tP.INVALID_SPANID,traceFlags:Tb.TraceFlags.NONE}});var BQ=q((JV)=>{Object.defineProperty(JV,"__esModule",{value:!0});JV.NonRecordingSpan=void 0;var Rb=NQ();class $V{constructor(Z=Rb.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,$){return this}setAttributes(Z){return this}addEvent(Z,$){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,$){}}JV.NonRecordingSpan=$V});var CW=q((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});zV.getSpanContext=zV.setSpanContext=zV.deleteSpan=zV.setSpan=zV.getActiveSpan=zV.getSpan=void 0;var yb=WH(),mb=BQ(),jb=BH(),AW=(0,yb.createContextKey)("OpenTelemetry Context Key SPAN");function vW(Z){return Z.getValue(AW)||void 0}zV.getSpan=vW;function _b(){return vW(jb.ContextAPI.getInstance().active())}zV.getActiveSpan=_b;function XV(Z,$){return Z.setValue(AW,$)}zV.setSpan=XV;function Sb(Z){return Z.deleteValue(AW)}zV.deleteSpan=Sb;function gb(Z,$){return XV(Z,new mb.NonRecordingSpan($))}zV.setSpanContext=gb;function bb(Z){var $;return($=vW(Z))===null||$===void 0?void 0:$.spanContext()}zV.getSpanContext=bb});var FQ=q((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});WV.wrapSpanContext=WV.isSpanContextValid=WV.isValidSpanId=WV.isValidTraceId=void 0;var HV=NQ(),ib=BQ(),nb=/^([0-9a-f]{32})$/i,ab=/^[0-9a-f]{16}$/i;function QV(Z){return nb.test(Z)&&Z!==HV.INVALID_TRACEID}WV.isValidTraceId=QV;function qV(Z){return ab.test(Z)&&Z!==HV.INVALID_SPANID}WV.isValidSpanId=qV;function rb(Z){return QV(Z.traceId)&&qV(Z.spanId)}WV.isSpanContextValid=rb;function sb(Z){return new ib.NonRecordingSpan(Z)}WV.wrapSpanContext=sb});var yW=q((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.NoopTracer=void 0;var Zd=BH(),BV=CW(),TW=BQ(),$d=FQ(),RW=Zd.ContextAPI.getInstance();class FV{startSpan(Z,$,J=RW.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new TW.NonRecordingSpan;let X=J&&(0,BV.getSpanContext)(J);if(Jd(X)&&(0,$d.isSpanContextValid)(X))return new TW.NonRecordingSpan(X);else return new TW.NonRecordingSpan}startActiveSpan(Z,$,J,Y){let X,z,K;if(arguments.length<2)return;else if(arguments.length===2)K=$;else if(arguments.length===3)X=$,K=J;else X=$,z=J,K=Y;let Q=z!==null&&z!==void 0?z:RW.active(),W=this.startSpan(Z,X,Q),G=(0,BV.setSpan)(Q,W);return RW.with(G,K,void 0,W)}}GV.NoopTracer=FV;function Jd(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var mW=q((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});DV.ProxyTracer=void 0;var Yd=yW(),Xd=new Yd.NoopTracer;class wV{constructor(Z,$,J,Y){this._provider=Z,this.name=$,this.version=J,this.options=Y}startSpan(Z,$,J){return this._getTracer().startSpan(Z,$,J)}startActiveSpan(Z,$,J,Y){let X=this._getTracer();return Reflect.apply(X.startActiveSpan,X,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return Xd;return this._delegate=Z,this._delegate}}DV.ProxyTracer=wV});var fV=q((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.NoopTracerProvider=void 0;var zd=yW();class IV{getTracer(Z,$,J){return new zd.NoopTracer}}OV.NoopTracerProvider=IV});var jW=q((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.ProxyTracerProvider=void 0;var Kd=mW(),Hd=fV(),Qd=new Hd.NoopTracerProvider;class EV{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Kd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Qd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}PV.ProxyTracerProvider=EV});var MV=q((xV)=>{Object.defineProperty(xV,"__esModule",{value:!0});xV.SamplingDecision=void 0;var qd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(qd=xV.SamplingDecision||(xV.SamplingDecision={}))});var AV=q((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.SpanKind=void 0;var Wd;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})(Wd=hV.SpanKind||(hV.SpanKind={}))});var CV=q((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.SpanStatusCode=void 0;var Nd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Nd=vV.SpanStatusCode||(vV.SpanStatusCode={}))});var yV=q((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.validateValue=TV.validateKey=void 0;var bW="[_0-9a-z-*/]",Bd=`[a-z]${bW}{0,255}`,Fd=`[a-z0-9]${bW}{0,240}@[a-z]${bW}{0,13}`,Gd=new RegExp(`^(?:${Bd}|${Fd})$`),Ld=/^[ -~]{0,255}[!-~]$/,wd=/,|=/;function Dd(Z){return Gd.test(Z)}TV.validateKey=Dd;function Ud(Z){return Ld.test(Z)&&!wd.test(Z)}TV.validateValue=Ud});var dV=q((gV)=>{Object.defineProperty(gV,"__esModule",{value:!0});gV.TraceStateImpl=void 0;var mV=yV(),jV=32,Od=512,_V=",",SV="=";class dW{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,$){let J=this._clone();if(J._internalState.has(Z))J._internalState.delete(Z);return J._internalState.set(Z,$),J}unset(Z){let $=this._clone();return $._internalState.delete(Z),$}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,$)=>{return Z.push($+SV+this.get($)),Z},[]).join(_V)}_parse(Z){if(Z.length>Od)return;if(this._internalState=Z.split(_V).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(SV);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,mV.validateKey)(z)&&(0,mV.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>jV)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,jV))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new dW;return Z._internalState=new Map(this._internalState),Z}}gV.TraceStateImpl=dW});var lV=q((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.createTraceState=void 0;var kd=dV();function fd(Z){return new kd.TraceStateImpl(Z)}cV.createTraceState=fd});var nV=q((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.context=void 0;var Ed=BH();pV.context=Ed.ContextAPI.getInstance()});var sV=q((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.diag=void 0;var Pd=Y9();aV.diag=Pd.DiagAPI.instance()});var eV=q((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.NOOP_METER_PROVIDER=tV.NoopMeterProvider=void 0;var Vd=kW();class cW{getMeter(Z,$,J){return Vd.NOOP_METER}}tV.NoopMeterProvider=cW;tV.NOOP_METER_PROVIDER=new cW});var Y4=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.MetricsAPI=void 0;var Md=eV(),uW=J9(),Z4=Y9(),lW="metrics";class pW{constructor(){}static getInstance(){if(!this._instance)this._instance=new pW;return this._instance}setGlobalMeterProvider(Z){return(0,uW.registerGlobal)(lW,Z,Z4.DiagAPI.instance())}getMeterProvider(){return(0,uW.getGlobal)(lW)||Md.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,uW.unregisterGlobal)(lW,Z4.DiagAPI.instance())}}$4.MetricsAPI=pW});var K4=q((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.metrics=void 0;var hd=Y4();X4.metrics=hd.MetricsAPI.getInstance()});var W4=q((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.NoopTextMapPropagator=void 0;class H4{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}Q4.NoopTextMapPropagator=H4});var G4=q((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.deleteBaggage=B4.setBaggage=B4.getActiveBaggage=B4.getBaggage=void 0;var Ad=BH(),vd=WH(),iW=(0,vd.createContextKey)("OpenTelemetry Baggage Key");function N4(Z){return Z.getValue(iW)||void 0}B4.getBaggage=N4;function Cd(){return N4(Ad.ContextAPI.getInstance().active())}B4.getActiveBaggage=Cd;function Td(Z,$){return Z.setValue(iW,$)}B4.setBaggage=Td;function Rd(Z){return Z.deleteValue(iW)}B4.deleteBaggage=Rd});var I4=q((D4)=>{Object.defineProperty(D4,"__esModule",{value:!0});D4.PropagationAPI=void 0;var nW=J9(),_d=W4(),L4=EW(),GQ=G4(),Sd=NW(),w4=Y9(),aW="propagation",gd=new _d.NoopTextMapPropagator;class rW{constructor(){this.createBaggage=Sd.createBaggage,this.getBaggage=GQ.getBaggage,this.getActiveBaggage=GQ.getActiveBaggage,this.setBaggage=GQ.setBaggage,this.deleteBaggage=GQ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new rW;return this._instance}setGlobalPropagator(Z){return(0,nW.registerGlobal)(aW,Z,w4.DiagAPI.instance())}inject(Z,$,J=L4.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=L4.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,nW.unregisterGlobal)(aW,w4.DiagAPI.instance())}_getGlobalPropagator(){return(0,nW.getGlobal)(aW)||gd}}D4.PropagationAPI=rW});var f4=q((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.propagation=void 0;var bd=I4();O4.propagation=bd.PropagationAPI.getInstance()});var h4=q((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.TraceAPI=void 0;var sW=J9(),E4=jW(),P4=FQ(),CK=CW(),V4=Y9(),tW="trace";class oW{constructor(){this._proxyTracerProvider=new E4.ProxyTracerProvider,this.wrapSpanContext=P4.wrapSpanContext,this.isSpanContextValid=P4.isSpanContextValid,this.deleteSpan=CK.deleteSpan,this.getSpan=CK.getSpan,this.getActiveSpan=CK.getActiveSpan,this.getSpanContext=CK.getSpanContext,this.setSpan=CK.setSpan,this.setSpanContext=CK.setSpanContext}static getInstance(){if(!this._instance)this._instance=new oW;return this._instance}setGlobalTracerProvider(Z){let $=(0,sW.registerGlobal)(tW,this._proxyTracerProvider,V4.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,sW.getGlobal)(tW)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,sW.unregisterGlobal)(tW,V4.DiagAPI.instance()),this._proxyTracerProvider=new E4.ProxyTracerProvider}}x4.TraceAPI=oW});var C4=q((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.trace=void 0;var dd=h4();A4.trace=dd.TraceAPI.getInstance()});var g4=q((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.trace=j.propagation=j.metrics=j.diag=j.context=j.INVALID_SPAN_CONTEXT=j.INVALID_TRACEID=j.INVALID_SPANID=j.isValidSpanId=j.isValidTraceId=j.isSpanContextValid=j.createTraceState=j.TraceFlags=j.SpanStatusCode=j.SpanKind=j.SamplingDecision=j.ProxyTracerProvider=j.ProxyTracer=j.defaultTextMapSetter=j.defaultTextMapGetter=j.ValueType=j.createNoopMeter=j.DiagLogLevel=j.DiagConsoleLogger=j.ROOT_CONTEXT=j.createContextKey=j.baggageEntryMetadataFromString=void 0;var cd=NW();Object.defineProperty(j,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return cd.baggageEntryMetadataFromString}});var T4=WH();Object.defineProperty(j,"createContextKey",{enumerable:!0,get:function(){return T4.createContextKey}});Object.defineProperty(j,"ROOT_CONTEXT",{enumerable:!0,get:function(){return T4.ROOT_CONTEXT}});var ud=hP();Object.defineProperty(j,"DiagConsoleLogger",{enumerable:!0,get:function(){return ud.DiagConsoleLogger}});var ld=QQ();Object.defineProperty(j,"DiagLogLevel",{enumerable:!0,get:function(){return ld.DiagLogLevel}});var pd=kW();Object.defineProperty(j,"createNoopMeter",{enumerable:!0,get:function(){return pd.createNoopMeter}});var id=bP();Object.defineProperty(j,"ValueType",{enumerable:!0,get:function(){return id.ValueType}});var R4=EW();Object.defineProperty(j,"defaultTextMapGetter",{enumerable:!0,get:function(){return R4.defaultTextMapGetter}});Object.defineProperty(j,"defaultTextMapSetter",{enumerable:!0,get:function(){return R4.defaultTextMapSetter}});var nd=mW();Object.defineProperty(j,"ProxyTracer",{enumerable:!0,get:function(){return nd.ProxyTracer}});var ad=jW();Object.defineProperty(j,"ProxyTracerProvider",{enumerable:!0,get:function(){return ad.ProxyTracerProvider}});var rd=MV();Object.defineProperty(j,"SamplingDecision",{enumerable:!0,get:function(){return rd.SamplingDecision}});var sd=AV();Object.defineProperty(j,"SpanKind",{enumerable:!0,get:function(){return sd.SpanKind}});var td=CV();Object.defineProperty(j,"SpanStatusCode",{enumerable:!0,get:function(){return td.SpanStatusCode}});var od=hW();Object.defineProperty(j,"TraceFlags",{enumerable:!0,get:function(){return od.TraceFlags}});var ed=lV();Object.defineProperty(j,"createTraceState",{enumerable:!0,get:function(){return ed.createTraceState}});var eW=FQ();Object.defineProperty(j,"isSpanContextValid",{enumerable:!0,get:function(){return eW.isSpanContextValid}});Object.defineProperty(j,"isValidTraceId",{enumerable:!0,get:function(){return eW.isValidTraceId}});Object.defineProperty(j,"isValidSpanId",{enumerable:!0,get:function(){return eW.isValidSpanId}});var ZN=NQ();Object.defineProperty(j,"INVALID_SPANID",{enumerable:!0,get:function(){return ZN.INVALID_SPANID}});Object.defineProperty(j,"INVALID_TRACEID",{enumerable:!0,get:function(){return ZN.INVALID_TRACEID}});Object.defineProperty(j,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return ZN.INVALID_SPAN_CONTEXT}});var y4=nV();Object.defineProperty(j,"context",{enumerable:!0,get:function(){return y4.context}});var m4=sV();Object.defineProperty(j,"diag",{enumerable:!0,get:function(){return m4.diag}});var j4=K4();Object.defineProperty(j,"metrics",{enumerable:!0,get:function(){return j4.metrics}});var _4=f4();Object.defineProperty(j,"propagation",{enumerable:!0,get:function(){return _4.propagation}});var S4=C4();Object.defineProperty(j,"trace",{enumerable:!0,get:function(){return S4.trace}});j.default={context:y4.context,diag:m4.diag,metrics:j4.metrics,propagation:_4.propagation,trace:S4.trace}});function c4(Z){if(FH+Z>LQ.length)crypto.getRandomValues(LQ),FH=0;let $="",J=FH+Z;for(let Y=FH;Y<J;Y++)$+=Xc[LQ[Y]];return FH=J,$}function d4(Z,$){if(Z===void 0)return $;if(typeof Z==="number")return Z;if(Z instanceof Date)return Z.getTime();let[J,Y]=Z;return J*1000+Y/1e6}class u4{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:f0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=c4(8),this._parentSpanId=Y,this._kind=$.kind||f0.SpanKind.INTERNAL,this._startTime=d4($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{GH?.spanStarted({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}notifySpanUpdated(){try{GH?.spanUpdated({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}spanContext(){return{traceId:this._traceId,spanId:this._spanId,traceFlags:1,isRemote:!1}}setAttribute(Z,$){if(!this._ended)this._attributes[Z]=String($),this.notifySpanUpdated();return this}setAttributes(Z){if(!this._ended){for(let[$,J]of Object.entries(Z))this._attributes[$]=String(J);this.notifySpanUpdated()}return this}addEvent(){return this}addLink(){return this}addLinks(){return this}setStatus(Z){if(!this._ended)this._status=Z;return this}updateName(Z){if(!this._ended)this._name=Z,this.notifySpanUpdated();return this}end(Z){if(this._ended)return;this._ended=!0,this._endTime=d4(Z,Date.now());let $=this._endTime,J={traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,endTime:$,attributes:{...this._attributes},error:this._status.code===f0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{GH?.spanEnded(J)}catch{}if(b4)try{b4(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class l4{startSpan(Z,$,J){let Y=J||f0.context.active(),X=f0.trace.getSpanContext(Y),z,K,Q;if(X?.traceId)z=X.traceId,K=X.spanId,Q=(X.traceFlags&1)===1||GH!==void 0;else Q=GH!==void 0||Yc?.(Z)||Math.random()<Jc,z=c4(16);if(!Q)return f0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new u4(Z,$||{},z,K)}startActiveSpan(Z,...$){let J={},Y,X;if($.length===1)X=$[0];else if($.length===2)J=$[0],X=$[1];else J=$[0],Y=$[1],X=$[2];let z=this.startSpan(Z,J,Y),K=f0.trace.setSpan(Y||f0.context.active(),z);return f0.context.with(K,()=>{try{let Q=X(z);if(Q&&typeof Q.then==="function")return Q.then((W)=>{return z.end(),W},(W)=>{throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:W?.message}),z.end(),W});return z.end(),Q}catch(Q){throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:Q?.message}),z.end(),Q}})}}class zc{tracer=new l4;getTracer(){return this.tracer}}var f0,b4,GH,Jc=0.01,Yc,Xc,LQ,FH;var p4=U(()=>{f0=yN(g4(),1),Xc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),LQ=new Uint8Array(1024),FH=LQ.length});function h8(Z,$){return{symbol:Z,defaultValue:$}}function $N(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),$;let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)}}}class O6{values;signal;parent;name;constructor(Z,$,J,Y){if(this.parent=Z,this.values=J||new Map,this.name=Y,$)this.signal=$;else if(Z)this.signal=Z.signal;else this.signal=new AbortController().signal}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(Z){if(this.values.has(Z.symbol))return this.values.get(Z.symbol);if(this.parent)return this.parent.get(Z);return Z.defaultValue}with(Z,$){let J=new Map(this.values);return J.set(Z.symbol,$),new O6(this,void 0,J)}withCancel(){let Z=$N(this.signal);return[new O6(this,Z.signal),(J)=>Z.abort(J)]}withTimeout(Z){let $=$N(this.signal),J=new O6(this,$.signal),Y=setTimeout(()=>{$.abort(Error("context deadline exceeded"))},Z);return $.signal.addEventListener("abort",()=>{clearTimeout(Y)},{once:!0}),J}withDeadline(Z){let $=Z.getTime()-Date.now();if($<=0){let J=$N(this.signal);return J.abort(Error("context deadline exceeded")),new O6(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new O6(this,void 0,void 0,Z)}withDetached(){return new O6(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function c8(){return new O6}function Nc(Z){if(typeof Z==="boolean")return Z;if(typeof process>"u")return!1;let $=process.env??{};if("NO_COLOR"in $)return!1;if($.TERM==="dumb")return!1;let J=$.FORCE_COLOR;if(J==="1"||J==="true")return!0;if(J==="0")return!1;return Boolean(process.stdout?.isTTY)}function Bc(Z){let J=(P)=>(V)=>Z?`\x1B[${P.join(";")}m${V}\x1B[0m`:V,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),Q=J([33]),W=J([34]),G=J([35]),L=J([36]),O=J([1]),f=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:Q,blue:W,magenta:G,cyan:L,bold:O,level:(P,V)=>{switch(P){case"debug":return G(V);case"info":return W(V);case"warn":return Q(V);case"error":return f(V);default:return P}}}}function Fc(Z){return{indent:" ".repeat(Z.indent??Kc),maxDepth:Z.maxDepth??Hc,maxEntries:Z.maxEntries??Qc,maxArrayLength:Z.maxArrayLength??qc,maxStringLength:Z.maxStringLength??Wc,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Gc(Z){return Z.toISOString().slice(11,23)}function i4(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function JN(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Lc(Z){return typeof Z==="object"&&Z!==null&&Z.kind==="summary"&&typeof Z.summary==="string"}function wc(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Dc(Z,$,J,Y){if(!$.inlineSerializer)return Z;try{let X=$.inlineSerializer(Z,{path:J,depth:Y});return X===void 0?Z:X}catch{return Z}}function k6(Z,$,J,Y,X,z){let K=Dc(Z,$,z,Y);if(Lc(K))return J.dim(`<${K.summary}>`);if(Z=K,Z===null)return J.gray("null");if(Z===void 0)return J.gray("undefined");if(typeof Z==="string"){let Q=wc(Z,$.maxStringLength);return J.green(JSON.stringify(Q))}if(typeof Z==="number")return J.yellow(String(Z));if(typeof Z==="boolean")return J.magenta(String(Z));if(typeof Z==="bigint")return J.yellow(`${Z}n`);if(typeof Z==="symbol")return J.cyan(Z.toString());if(typeof Z==="function"){let Q=Z.name?` ${Z.name}`:"";return J.dim(`[Function${Q}]`)}if(Z instanceof Date){let Q=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(Q)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(JN(Z))return a4(Z,$,J,Y,X,z);if(Array.isArray(Z))return n4(Z,$,J,Y,X,z);if(typeof ArrayBuffer<"u"&&Z instanceof ArrayBuffer)return J.dim(`ArrayBuffer(${Z.byteLength})`);if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&ArrayBuffer.isView(Z)){let Q=Z,W=Q.constructor?.name??"TypedArray";return J.dim(`${W}(${Q.byteLength})`)}if(Z instanceof Map)return Uc(Z,$,J,Y,X,z);if(Z instanceof Set)return n4(Array.from(Z.values()),$,J,Y,X,z);return Ic(Z,$,J,Y,X,z)}function a4(Z,$,J,Y,X,z){let K=Z;if(X.has(K))return J.dim("[Circular]");X.add(K);let Q=typeof Z.name==="string"?Z.name:"Error",W=typeof Z.message==="string"?Z.message:"",G=W?`${Q}: ${W}`:Q,L=J.red(G);if("cause"in Z&&Z.cause!==void 0){let O=k6(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${O}`}return X.delete(K),L}function n4(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`[Array(${Z.length})]`);if(X.has(Z))return J.dim("[Circular]");if(X.add(Z),Z.length===0){let L=J.dim("[]");return X.delete(Z),L}let K=Math.min(Z.length,$.maxArrayLength),Q=Z.slice(0,K).map((L,O)=>k6(L,$,J,Y+1,X,z.concat(O)));if(Z.length>K)Q.push(J.dim(`... ${Z.length-K} more`));let W=J.dim(", "),G=`${J.dim("[")}${Q.join(W)}${J.dim("]")}`;return X.delete(Z),G}function Uc(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`Map(${Z.size})`);if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Array.from(Z.entries()),Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,f])=>{let P=k6(O,$,J,Y+1,X,z.concat("<key>")),V=k6(f,$,J,Y+1,X,z.concat(String(O)));return`${P} ${J.dim("=>")} ${V}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),L=`${J.dim("Map{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),L}function Ic(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let O=Z?.constructor?.name??"Object";return J.dim(`[${O}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let O=J.dim("{}");return X.delete(Z),O}let Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,f])=>{let P=k6(f,$,J,Y+1,X,z.concat(O));return`${J.cyan(O)}: ${P}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),L=`${J.dim("{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),L}function Oc(Z={}){let $=Fc(Z),J=Bc(Nc(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Gc(z.timestamp)));let Q=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,Q));let W=z.level==="error"?J.bold(z.message):z.message;if(K.push(W),$.includeContextPath&&i4(z.context)){let f=z.context.getPath();if(f.length>0)K.push(J.dim(`ctx=${f.join("/")}`))}let G=new WeakSet;if(!i4(z.context)&&z.context&&Object.keys(z.context).length>0){let f=k6(z.context,$,J,0,G,["context"]);K.push(`${J.dim("context=")}${f}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let f=k6(z.metadata,$,J,0,G,["metadata"]);K.push(`${J.dim("meta=")}${f}`)}let L=[K.join(" ")];if(z.error!==void 0){let f=JN(z.error)?a4(z.error,$,J,0,G,["error"]):k6(z.error,$,J,0,G,["error"]);if(L[0]=`${L[0]} ${J.dim("error=")}${f}`,JN(z.error)&&typeof z.error.stack==="string"){let P=z.error.stack.split(`
|
|
4
|
+
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}WG.UnsubscriptionError=rK;class fK{initialTeardown;static EMPTY=(()=>{let Z=new fK;return Z.closed=!0,Z})();closed=!1;_finalizers=null;constructor(Z){this.initialTeardown=Z}unsubscribe(){let Z;if(!this.closed){this.closed=!0;let{initialTeardown:$}=this;if(k0($))try{$()}catch(Y){Z=Y instanceof rK?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{tF(Y)}catch(X){if(Z=Z??[],X instanceof rK)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new rK(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)tF(Z);else{if(Z&&"add"in Z)Z.add(()=>{this.remove(Z)});this._finalizers??=new Set,this._finalizers.add(Z)}}remove(Z){this._finalizers?.delete(Z)}}WG.Subscription=fK;if(typeof Symbol.dispose==="symbol")fK.prototype[Symbol.dispose]=fK.prototype.unsubscribe;function tF(Z){if(k0(Z))Z();else Z.unsubscribe()}class r$ extends fK{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof r$?Z:bh(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?_h:this._next,this._error=this._errorOverride?Sh:this._error,this._complete=this._completeOverride?gh:this._complete,dh(Z))Z.add(this)}next(Z){if(this.isStopped)$q(qG(Z),this);else this._next(Z)}error(Z){if(this.isStopped)$q(QG(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)$q(WG.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()}unsubscribe(){if(!this.closed)this.isStopped=!0,super.unsubscribe(),this._onFinalize?.()}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}WG.Subscriber=r$;WG.config={onUnhandledError:null,onStoppedNotification:null};function _h(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function Sh(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function gh(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class eF{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){kK(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){kK(J)}else kK(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){kK($)}}}function bh(Z){return new eF(!Z||k0(Z)?{next:Z??void 0}:Z)}function $q(Z,$){let{onStoppedNotification:J}=WG.config;J&&setTimeout(()=>J(Z,$))}function dh(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function ch({destination:Z,...$}){return new r$(Z,$)}WG.operate=ch;class S6{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof r$?Z:new r$(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new r$({next:(X)=>{try{Z(X)}catch(z){J(z),Y.unsubscribe()}},error:J,complete:$});this.subscribe(Y)})}_subscribe(Z){return}[Symbol.observable??"@@observable"](){return this}pipe(...Z){return Z.reduce(uh,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(W)=>{$=!0,J=W;while(z.length){let[G,L]=z.shift();L(W)}},Q=()=>{Y=!0;while(z.length){let[W]=z.shift();W({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(W)=>{if(z.length){let[G]=z.shift();G({value:W,done:!1})}else X.push(W)},error:K,complete:Q});if(X.length)return Promise.resolve({value:X.shift(),done:!1});if(Y)return Promise.resolve({value:void 0,done:!0});if($)return Promise.reject(J);return new Promise((W,G)=>{z.push([W,G])})},throw:(W)=>{return Z?.unsubscribe(),K(W),Promise.reject(W)},return:()=>{return Z?.unsubscribe(),Q(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}WG.Observable=S6;function uh(Z,$){return $(Z)}function kK(Z){setTimeout(()=>{let{onUnhandledError:$}=WG.config;if($)$(Z);else throw Z})}WG.reportUnhandledError=kK;function lh(Z){switch(XG(Z)){case O0.Own:return Z;case O0.InteropObservable:return ph(Z);case O0.ArrayLike:return ZG(Z);case O0.Promise:return $G(Z);case O0.AsyncIterable:return JG(Z);case O0.Iterable:return ih(Z);case O0.ReadableStreamLike:return nh(Z)}}WG.from=lh;function ph(Z){return new S6(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function ZG(Z){return new S6(($)=>{YG(Z,$)})}WG.fromArrayLike=ZG;function $G(Z){return new S6(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,kK)})}WG.fromPromise=$G;function ih(Z){return new S6(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function JG(Z){return new S6(($)=>{ah(Z,$).catch((J)=>$.error(J))})}function nh(Z){return JG(zG(Z))}async function ah(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function YG(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}WG.subscribeToArray=YG;var O0;(function(Z){Z[Z.Own=0]="Own",Z[Z.InteropObservable=1]="InteropObservable",Z[Z.ArrayLike=2]="ArrayLike",Z[Z.Promise=3]="Promise",Z[Z.AsyncIterable=4]="AsyncIterable",Z[Z.Iterable=5]="Iterable",Z[Z.ReadableStreamLike=6]="ReadableStreamLike"})(O0=WG.ObservableInputType||(WG.ObservableInputType={}));function XG(Z){if(Z instanceof S6)return O0.Own;if(th(Z))return O0.InteropObservable;if(HG(Z))return O0.ArrayLike;if(KG(Z))return O0.Promise;if(rh(Z))return O0.AsyncIterable;if(oh(Z))return O0.Iterable;if(sh(Z))return O0.ReadableStreamLike;throw TypeError(`You provided ${Z!==null&&typeof Z==="object"?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}WG.getObservableInputType=XG;function k0(Z){return typeof Z==="function"}WG.isFunction=k0;function rh(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*zG(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}WG.readableStreamLikeToAsyncGenerator=zG;function sh(Z){return k0(Z?.getReader)}function KG(Z){return k0(Z?.then)}WG.isPromise=KG;function th(Z){return k0(Z[Symbol.observable??"@@observable"])}function oh(Z){return k0(Z?.[Symbol.iterator])}function HG(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}WG.isArrayLike=HG;function eh(Z){return!!Z&&(Z instanceof S6||k0(Z.lift)&&k0(Z.subscribe))}WG.isObservable=eh;WG.COMPLETE_NOTIFICATION=(()=>vH("C",void 0,void 0))();function QG(Z){return vH("E",void 0,Z)}WG.errorNotification=QG;function qG(Z){return vH("N",Z,void 0)}WG.nextNotification=qG;function vH(Z,$,J){return{kind:Z,value:$,error:J}}WG.createNotification=vH});var GG=q((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.performanceTimestampProvider=void 0;FG.performanceTimestampProvider={now(){return(FG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Xq=q((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.animationFrameProvider=void 0;var IA=D();LG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=LG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new IA.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=LG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=LG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var OG=q((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.animationFrames=void 0;var UA=D(),OA=GG(),wG=Xq();function kA(Z){return Z?DG(Z):fA}IG.animationFrames=kA;function DG(Z){return new UA.Observable(($)=>{let J=Z||OA.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=wG.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)wG.animationFrameProvider.cancelAnimationFrame(X)}})}var fA=DG()});var H0=q((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0});fG.Subject=void 0;var zq=D();class kG extends zq.Observable{_closed=!1;get closed(){return this._closed}_observerCounter=0;currentObservers=new Map;observerSnapshot;get observers(){return this.observerSnapshot??=Array.from(this.currentObservers.values())}hasError=!1;thrownError=null;constructor(){super()}_clearObservers(){this.currentObservers.clear(),this.observerSnapshot=void 0}next(Z){if(!this._closed){let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].next(Z)}}error(Z){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=Z;let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].error(Z);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;let{observers:Z}=this,$=Z.length;for(let J=0;J<$;J++)Z[J].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(Z){return this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){if(this.hasError||this._closed)return zq.Subscription.EMPTY;let{currentObservers:$}=this,J=this._observerCounter++;return $.set(J,Z),this.observerSnapshot=void 0,Z.add(()=>{$.delete(J),this.observerSnapshot=void 0}),Z}_checkFinalizedStatuses(Z){let{hasError:$,thrownError:J,_closed:Y}=this;if($)Z.error(J);else if(Y)Z.complete()}asObservable(){return new zq.Observable((Z)=>this.subscribe(Z))}}fG.Subject=kG});var MG=q((VG)=>{Object.defineProperty(VG,"__esModule",{value:!0});VG.BehaviorSubject=void 0;var EA=H0();class PG extends EA.Subject{_value;constructor(Z){super();this._value=Z}get value(){return this.getValue()}_subscribe(Z){let $=super._subscribe(Z);return!$.closed&&Z.next(this._value),$}getValue(){let{hasError:Z,thrownError:$,_value:J}=this;if(Z)throw $;return J}next(Z){super.next(this._value=Z)}}VG.BehaviorSubject=PG});var CH=q((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.dateTimestampProvider=void 0;hG.dateTimestampProvider={now(){return(hG.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Hq=q((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.ReplaySubject=void 0;var PA=H0(),VA=CH();class AG extends PA.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=VA.dateTimestampProvider){super();this._bufferSize=Z,this._windowTime=$,this._timestampProvider=J,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,$)}next(Z){let{_closed:$,_buffer:J,_infiniteTimeWindow:Y,_timestampProvider:X,_windowTime:z}=this;if(!$)J.push(Z),!Y&&J.push(X.now()+z);this._trimBuffer(),super.next(Z)}_subscribe(Z){this._trimBuffer();let $=this._innerSubscribe(Z),{_infiniteTimeWindow:J,_buffer:Y}=this,X=Y.slice();for(let z=0;z<X.length&&!Z.closed;z+=J?1:2)Z.next(X[z]);return this._checkFinalizedStatuses(Z),$}_trimBuffer(){let{_bufferSize:Z,_timestampProvider:$,_buffer:J,_infiniteTimeWindow:Y}=this,X=(Y?1:2)*Z;if(Z<1/0&&X<J.length&&J.splice(0,J.length-X),!Y){let z=$.now(),K=0;for(let Q=1;Q<J.length&&J[Q]<=z;Q+=2)K=Q;K&&J.splice(0,K+1)}}}vG.ReplaySubject=AG});var Qq=q((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.AsyncSubject=void 0;var xA=H0();class TG extends xA.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(Z){let{hasError:$,_hasValue:J,_value:Y,thrownError:X,_closed:z,_isComplete:K}=this;if($)Z.error(X);else if(z||K)J&&Z.next(Y),Z.complete()}next(Z){if(!this._closed)this._value=Z,this._hasValue=!0}complete(){let{_hasValue:Z,_value:$,_isComplete:J}=this;if(!J)this._isComplete=!0,Z&&super.next($),super.complete()}}RG.AsyncSubject=TG});var SG=q((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.Action=void 0;var MA=D();class mG extends MA.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}jG.Action=mG});var bG=q((gG)=>{Object.defineProperty(gG,"__esModule",{value:!0});gG.intervalProvider=void 0;gG.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=gG.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=gG.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var s$=q((dG)=>{Object.defineProperty(dG,"__esModule",{value:!0});dG.arrRemove=void 0;function hA(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}dG.arrRemove=hA});var EK=q((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.AsyncAction=void 0;var AA=SG(),uG=bG(),vA=s$();class lG extends AA.Action{scheduler;work;id;state;delay;pending=!1;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if(this.closed)return this;this.state=Z;let J=this.id,Y=this.scheduler;if(J!=null)this.id=this.recycleAsyncId(Y,J,$);return this.pending=!0,this.delay=$,this.id=this.id??this.requestAsyncId(Y,this.id,$),this}requestAsyncId(Z,$,J=0){return uG.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)uG.intervalProvider.clearInterval($);return}execute(Z,$){if(this.closed)return Error("executing a cancelled action");this.pending=!1;let J=this._execute(Z,$);if(J)return J;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)}_execute(Z,$){let J=!1,Y;try{this.work(Z)}catch(X){J=!0,Y=X?X:Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){let{id:Z,scheduler:$}=this,{actions:J}=$;if(this.work=this.state=this.scheduler=null,this.pending=!1,(0,vA.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}pG.AsyncAction=lG});var sG=q((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.TestTools=aG.Immediate=void 0;var CA=1,qq,RH={};function nG(Z){if(Z in RH)return delete RH[Z],!0;return!1}aG.Immediate={setImmediate(Z){let $=CA++;if(RH[$]=!0,!qq)qq=Promise.resolve();return qq.then(()=>nG($)&&Z()),$},clearImmediate(Z){nG(Z)}};aG.TestTools={pending(){return Object.keys(RH).length}}});var oG=q((tG)=>{Object.defineProperty(tG,"__esModule",{value:!0});tG.immediateProvider=void 0;var RA=sG(),{setImmediate:yA,clearImmediate:mA}=RA.Immediate;tG.immediateProvider={setImmediate(...Z){let{delegate:$}=tG.immediateProvider;return($?.setImmediate||yA)(...Z)},clearImmediate(Z){let{delegate:$}=tG.immediateProvider;return($?.clearImmediate||mA)(Z)},delegate:void 0}});var YL=q(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.AsapAction=void 0;var jA=EK(),eG=oG();class ZL extends jA.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=eG.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$){if(eG.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}$L.AsapAction=ZL});var Nq=q((XL)=>{Object.defineProperty(XL,"__esModule",{value:!0});XL.Scheduler=void 0;var _A=CH();class Wq{schedulerActionCtor;static now=_A.dateTimestampProvider.now;constructor(Z,$=Wq.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}XL.Scheduler=Wq});var PK=q((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.AsyncScheduler=void 0;var KL=Nq();class HL extends KL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=KL.Scheduler.now){super(Z,$)}flush(Z){let{actions:$}=this;if(this._active){$.push(Z);return}let J;this._active=!0;do if(J=Z.execute(Z.state,Z.delay))break;while(Z=$.shift());if(this._active=!1,J){while(Z=$.shift())Z.unsubscribe();throw J}}}QL.AsyncScheduler=HL});var FL=q((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.AsapScheduler=void 0;var SA=PK();class WL extends SA.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}NL.AsapScheduler=WL});var wL=q((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.asapScheduler=void 0;var gA=YL(),bA=FL();GL.asapScheduler=new bA.AsapScheduler(gA.AsapAction)});var A0=q((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.asyncScheduler=void 0;var dA=EK(),cA=PK();DL.asyncScheduler=new cA.AsyncScheduler(dA.AsyncAction)});var fL=q((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.QueueAction=void 0;var uA=EK();class UL extends uA.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if($>0)return super.schedule(Z,$);return this.delay=$,this.state=Z,this.scheduler.flush(this),this}execute(Z,$){return $>0||this.closed?super.execute(Z,$):this._execute(Z,$)}requestAsyncId(Z,$,J=0){if(J!=null&&J>0||J==null&&this.delay>0)return super.requestAsyncId(Z,$,J);return Z.flush(this),0}}OL.QueueAction=UL});var xL=q((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.QueueScheduler=void 0;var lA=PK();class EL extends lA.AsyncScheduler{}PL.QueueScheduler=EL});var AL=q((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.queueScheduler=void 0;var pA=fL(),iA=xL();ML.queueScheduler=new iA.QueueScheduler(pA.QueueAction)});var yL=q((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.AnimationFrameAction=void 0;var nA=EK(),vL=Xq();class CL extends nA.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=vL.animationFrameProvider.requestAnimationFrame(()=>Z.flush(void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$)vL.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}TL.AnimationFrameAction=CL});var SL=q((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.AnimationFrameScheduler=void 0;var aA=PK();class mL extends aA.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}jL.AnimationFrameScheduler=mL});var dL=q((gL)=>{Object.defineProperty(gL,"__esModule",{value:!0});gL.animationFrameScheduler=void 0;var rA=yL(),sA=SL();gL.animationFrameScheduler=new sA.AnimationFrameScheduler(rA.AnimationFrameAction)});var pL=q((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.VirtualAction=uL.VirtualTimeScheduler=void 0;var tA=EK(),oA=D(),eA=PK();class cL extends eA.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=tK,$=1/0){super(Z,()=>this.frame);this.maxFrames=$}flush(){let{actions:Z,maxFrames:$}=this,J,Y;while((Y=Z[0])&&Y.delay<=$)if(Z.shift(),this.frame=Y.delay,J=Y.execute(Y.state,Y.delay))break;if(J){while(Y=Z.shift())Y.unsubscribe();throw J}}}uL.VirtualTimeScheduler=cL;class tK extends tA.AsyncAction{scheduler;work;index;active=!0;constructor(Z,$,J=Z.index+=1){super(Z,$);this.scheduler=Z,this.work=$,this.index=J,this.index=Z.index=J}schedule(Z,$=0){if(Number.isFinite($)){if(!this.id)return super.schedule(Z,$);this.active=!1;let J=new tK(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return oA.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(tK.sortActions),1}recycleAsyncId(Z,$,J=0){return}_execute(Z,$){if(this.active===!0)return super._execute(Z,$)}static sortActions(Z,$){if(Z.delay===$.delay)if(Z.index===$.index)return 0;else if(Z.index>$.index)return 1;else return-1;else if(Z.delay>$.delay)return 1;else return-1}}uL.VirtualAction=tK});var Bq=q((iL)=>{Object.defineProperty(iL,"__esModule",{value:!0});iL.rx=void 0;var $v=D();function Jv(Z,...$){return $.reduce(Yv,(0,$v.from)(Z))}iL.rx=Jv;function Yv(Z,$){return $(Z)}});var Fq=q((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.pipe=void 0;function Xv(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(zv,$)}aL.pipe=Xv;function zv(Z,$){return $(Z)}});var Y0=q((sL)=>{Object.defineProperty(sL,"__esModule",{value:!0});sL.noop=void 0;function Kv(){}sL.noop=Kv});var v0=q((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.identity=void 0;function Hv(Z){return Z}oL.identity=Hv});var g6=q(($w)=>{Object.defineProperty($w,"__esModule",{value:!0});$w.EmptyError=void 0;class Zw extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}$w.EmptyError=Zw});var zw=q((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.lastValueFrom=void 0;var Qv=g6();function qv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(Q)=>{K=Q,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new Qv.EmptyError)}})})}Yw.lastValueFrom=qv});var Qw=q((Kw)=>{Object.defineProperty(Kw,"__esModule",{value:!0});Kw.firstValueFrom=void 0;var Wv=D(),Nv=g6();function Bv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new Wv.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new Nv.EmptyError)}});Z.subscribe(z)})}Kw.firstValueFrom=Bv});var Gq=q((Ww)=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.ArgumentOutOfRangeError=void 0;class qw extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}Ww.ArgumentOutOfRangeError=qw});var Lq=q((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.NotFoundError=void 0;class Bw extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}Fw.NotFoundError=Bw});var wq=q((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.SequenceError=void 0;class Lw extends Error{constructor(Z){super(Z);this.name="SequenceError"}}ww.SequenceError=Lw});var mH=q((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.isValidDate=void 0;function Fv(Z){return Z instanceof Date&&!isNaN(Z)}Iw.isValidDate=Fv});var c0=q((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.executeSchedule=void 0;function Gv(Z,$,J,Y=0,X=!1){if(!Z.closed){let z=$.schedule(function(){if(J(),X)Z.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(Z.add(z),!X)return z}}Ow.executeSchedule=Gv});var jH=q((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.timeout=fw.TimeoutError=void 0;var Lv=A0(),wv=mH(),Dq=D(),Dv=c0();class Iq extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}fw.TimeoutError=Iq;function Iv(Z,$){let{first:J,each:Y,with:X=Uv,scheduler:z=$??Lv.asyncScheduler,meta:K=null}=(0,wv.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new Dq.Observable((W)=>{let G,L,O=null,f=0,P=(V)=>{L=(0,Dv.executeSchedule)(W,z,()=>{try{G.unsubscribe(),(0,Dq.from)(X({meta:K,lastValue:O,seen:f})).subscribe(W)}catch(T){W.error(T)}},V)};G=Q.subscribe((0,Dq.operate)({destination:W,next:(V)=>{L?.unsubscribe(),f++,W.next(O=V),Y>0&&P(Y)},finalize:()=>{L?.unsubscribe(),O=null}})),!f&&P(J!=null?typeof J==="number"?J:+J-z.now():Y)})}fw.timeout=Iv;function Uv(Z){throw new Iq(Z)}});var oK=q((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.isScheduler=void 0;var kv=D();function fv(Z){return Z&&(0,kv.isFunction)(Z.schedule)}Pw.isScheduler=fv});var VK=q((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.map=void 0;var xw=D();function Ev(Z){return($)=>new xw.Observable((J)=>{let Y=0;$.subscribe((0,xw.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}Mw.map=Ev});var xK=q((Aw)=>{Object.defineProperty(Aw,"__esModule",{value:!0});Aw.mapOneOrManyArgs=void 0;var Pv=VK(),{isArray:Vv}=Array;function xv(Z,$){return Vv($)?Z(...$):Z($)}function Mv(Z){return(0,Pv.map)(($)=>xv(Z,$))}Aw.mapOneOrManyArgs=Mv});var _H=q((Tw)=>{Object.defineProperty(Tw,"__esModule",{value:!0});Tw.observeOn=void 0;var Uq=c0(),Cw=D();function hv(Z,$=0){return(J)=>new Cw.Observable((Y)=>{J.subscribe((0,Cw.operate)({destination:Y,next:(X)=>(0,Uq.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,Uq.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,Uq.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}Tw.observeOn=hv});var SH=q((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});yw.subscribeOn=void 0;var Av=D();function vv(Z,$=0){return(J)=>new Av.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}yw.subscribeOn=vv});var Sw=q((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.scheduleObservable=void 0;var Cv=D(),Tv=_H(),Rv=SH();function yv(Z,$){return(0,Cv.from)(Z).pipe((0,Rv.subscribeOn)($),(0,Tv.observeOn)($))}jw.scheduleObservable=yv});var dw=q((gw)=>{Object.defineProperty(gw,"__esModule",{value:!0});gw.schedulePromise=void 0;var mv=D(),jv=_H(),_v=SH();function Sv(Z,$){return(0,mv.from)(Z).pipe((0,_v.subscribeOn)($),(0,jv.observeOn)($))}gw.schedulePromise=Sv});var pw=q((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.scheduleArray=void 0;var gv=D(),cw=c0();function bv(Z,$){return new gv.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,cw.executeSchedule)(J,$,X)};return(0,cw.executeSchedule)(J,$,X)})}uw.scheduleArray=bv});var rw=q((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});nw.iterator=nw.getSymbolIterator=void 0;function iw(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}nw.getSymbolIterator=iw;nw.iterator=iw()});var Oq=q((ow)=>{Object.defineProperty(ow,"__esModule",{value:!0});ow.scheduleIterable=void 0;var sw=D(),cv=rw(),tw=c0();function uv(Z,$){return new sw.Observable((J)=>{let Y;return(0,tw.executeSchedule)(J,$,()=>{Y=Z[cv.iterator](),(0,tw.executeSchedule)(J,$,()=>{let X,z;try{({value:X,done:z}=Y.next())}catch(K){J.error(K);return}if(z)J.complete();else J.next(X)},0,!0)}),()=>(0,sw.isFunction)(Y?.return)&&Y.return()})}ow.scheduleIterable=uv});var kq=q(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.scheduleAsyncIterable=void 0;var lv=D(),ZD=c0();function pv(Z,$){if(!Z)throw Error("Iterable cannot be null");return new lv.Observable((J)=>{(0,ZD.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,ZD.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}$D.scheduleAsyncIterable=pv});var zD=q((YD)=>{Object.defineProperty(YD,"__esModule",{value:!0});YD.scheduleReadableStreamLike=void 0;var iv=D(),nv=kq();function av(Z,$){return(0,nv.scheduleAsyncIterable)((0,iv.readableStreamLikeToAsyncGenerator)(Z),$)}YD.scheduleReadableStreamLike=av});var eK=q((KD)=>{Object.defineProperty(KD,"__esModule",{value:!0});KD.scheduled=void 0;var rv=Sw(),sv=dw(),tv=pw(),ov=Oq(),ev=kq(),w8=D(),ZC=zD();function $C(Z,$){switch((0,w8.getObservableInputType)(Z)){case w8.ObservableInputType.Own:case w8.ObservableInputType.InteropObservable:return(0,rv.scheduleObservable)(Z,$);case w8.ObservableInputType.Promise:return(0,sv.schedulePromise)(Z,$);case w8.ObservableInputType.ArrayLike:return(0,tv.scheduleArray)(Z,$);case w8.ObservableInputType.Iterable:return(0,ov.scheduleIterable)(Z,$);case w8.ObservableInputType.AsyncIterable:return(0,ev.scheduleAsyncIterable)(Z,$);case w8.ObservableInputType.ReadableStreamLike:return(0,ZC.scheduleReadableStreamLike)(Z,$)}}KD.scheduled=$C});var Eq=q((QD)=>{Object.defineProperty(QD,"__esModule",{value:!0});QD.bindCallbackInternals=void 0;var JC=oK(),YC=D(),XC=xK(),zC=Qq(),KC=eK();function fq(Z,$,J,Y){if(J)if((0,JC.isScheduler)(J))Y=J;else return function(...X){return(0,XC.mapOneOrManyArgs)(J)(fq(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,KC.scheduled)(fq(Z,$).apply(this,X),Y)};return function(...X){let z=new zC.AsyncSubject,K=!0;return new YC.Observable((Q)=>{let W=z.subscribe(Q);if(K){K=!1;let G=!1,L=!1;if($.apply(this,[...X,(...O)=>{if(Z){let f=O.shift();if(f!=null){z.error(f);return}}if(z.next(1<O.length?O:O[0]),L=!0,G)z.complete()}]),L)z.complete();G=!0}return W})}}QD.bindCallbackInternals=fq});var BD=q((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.bindCallback=void 0;var HC=Eq();function QC(Z,$,J){return(0,HC.bindCallbackInternals)(!1,Z,$,J)}WD.bindCallback=QC});var LD=q((FD)=>{Object.defineProperty(FD,"__esModule",{value:!0});FD.bindNodeCallback=void 0;var qC=Eq();function WC(Z,$,J){return(0,qC.bindCallbackInternals)(!0,Z,$,J)}FD.bindNodeCallback=WC});var Pq=q((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.arrayOrObject=DD.argsArgArrayOrObject=void 0;var{isArray:NC}=Array,{getPrototypeOf:BC,prototype:FC,keys:GC}=Object;function LC(Z){if(Z.length===1){let $=Z[0],J=wD($);if(J)return J}return{args:Z,keys:null}}DD.argsArgArrayOrObject=LC;function wD(Z){if(NC(Z))return{args:Z,keys:null};if(wC(Z)){let $=GC(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}DD.arrayOrObject=wD;function wC(Z){return Z&&typeof Z==="object"&&BC(Z)===FC}});var Vq=q((UD)=>{Object.defineProperty(UD,"__esModule",{value:!0});UD.createObject=void 0;function IC(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}UD.createObject=IC});var M6=q((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.EMPTY=void 0;var UC=D();kD.EMPTY=new UC.Observable((Z)=>Z.complete())});var gH=q((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.combineLatestInit=VD.combineLatest=void 0;var xq=D(),OC=Pq(),ED=v0(),kC=Vq(),fC=M6();function EC(Z,$){let J=(0,OC.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return fC.EMPTY;return new xq.Observable(PD(Y,X?(z)=>(0,kC.createObject)(X,z):$?(z)=>$(...z):ED.identity))}VD.combineLatest=EC;function PD(Z,$=ED.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,xq.from)(Z[Q]),G=!1;W.subscribe((0,xq.operate)({destination:J,next:(L)=>{if(X[Q]=L,!G)G=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}VD.combineLatestInit=PD});var bH=q((MD)=>{Object.defineProperty(MD,"__esModule",{value:!0});MD.mergeInternals=void 0;var Mq=D(),VC=c0();function xC(Z,$,J,Y,X,z,K,Q){let W=[],G=0,L=0,O=!1,f=()=>{if(O&&!W.length&&!G)$.complete()},P=(T)=>G<Y?V(T):W.push(T),V=(T)=>{z&&$.next(T),G++;let E0=!1;(0,Mq.from)(J(T,L++)).subscribe((0,Mq.operate)({destination:$,next:(X0)=>{if(X?.(X0),z)P(X0);else $.next(X0)},complete:()=>{E0=!0},finalize:()=>{if(E0)try{G--;while(W.length&&G<Y){let X0=W.shift();if(K)(0,VC.executeSchedule)($,K,()=>V(X0));else V(X0)}f()}catch(X0){$.error(X0)}}}))};return Z.subscribe((0,Mq.operate)({destination:$,next:P,complete:()=>{O=!0,f()}})),()=>{Q?.()}}MD.mergeInternals=xC});var t$=q((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.mergeMap=void 0;var MC=D(),hC=bH();function AC(Z,$=1/0){return(J)=>new MC.Observable((Y)=>(0,hC.mergeInternals)(J,Y,Z,$))}AD.mergeMap=AC});var ZH=q((CD)=>{Object.defineProperty(CD,"__esModule",{value:!0});CD.mergeAll=void 0;var vC=t$(),CC=v0();function TC(Z=1/0){return(0,vC.mergeMap)(CC.identity,Z)}CD.mergeAll=TC});var dH=q((RD)=>{Object.defineProperty(RD,"__esModule",{value:!0});RD.concatAll=void 0;var RC=ZH();function yC(){return(0,RC.mergeAll)(1)}RD.concatAll=yC});var D8=q((mD)=>{Object.defineProperty(mD,"__esModule",{value:!0});mD.popNumber=mD.popScheduler=mD.popResultSelector=void 0;var mC=D(),jC=oK();function hq(Z){return Z[Z.length-1]}function _C(Z){return(0,mC.isFunction)(hq(Z))?Z.pop():void 0}mD.popResultSelector=_C;function SC(Z){return(0,jC.isScheduler)(hq(Z))?Z.pop():void 0}mD.popScheduler=SC;function gC(Z,$){return typeof hq(Z)==="number"?Z.pop():$}mD.popNumber=gC});var Aq=q((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.concat=void 0;var cC=D(),uC=dH(),lC=D8(),pC=eK();function iC(...Z){let $=(0,lC.popScheduler)(Z);return(0,uC.concatAll)()($?(0,pC.scheduled)(Z,$):(0,cC.from)(Z))}_D.concat=iC});var $H=q((bD)=>{Object.defineProperty(bD,"__esModule",{value:!0});bD.defer=void 0;var gD=D();function nC(Z){return new gD.Observable(($)=>{(0,gD.from)(Z()).subscribe($)})}bD.defer=nC});var lD=q((cD)=>{Object.defineProperty(cD,"__esModule",{value:!0});cD.connectable=void 0;var aC=H0(),rC=D(),sC=$H(),tC={connector:()=>new aC.Subject,resetOnDisconnect:!0};function oC(Z,$=tC){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new rC.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,sC.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}cD.connectable=oC});var nD=q((pD)=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.forkJoin=void 0;var vq=D(),eC=Pq(),ZT=D8(),$T=xK(),JT=Vq(),YT=g6();function XT(...Z){let $=(0,ZT.popResultSelector)(Z),{args:J,keys:Y}=(0,eC.argsArgArrayOrObject)(Z),X=new vq.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let Q=Array(K),W=K,G=K;for(let L=0;L<K;L++){let O=!1;(0,vq.from)(J[L]).subscribe((0,vq.operate)({destination:z,next:(f)=>{if(!O)O=!0,G--;Q[L]=f},complete:()=>W--,finalize:()=>{if(!W||!O)if(G===0)z.next(Y?(0,JT.createObject)(Y,Q):Q),z.complete();else z.error(new YT.EmptyError)}}))}});return $?(0,$T.mapOneOrManyArgs)($)(X):X}pD.forkJoin=XT});var $2=q((eD)=>{Object.defineProperty(eD,"__esModule",{value:!0});eD.fromEvent=void 0;var b6=D(),zT=xK(),KT=["addListener","removeListener"],HT=["addEventListener","removeEventListener"],QT=["on","off"];function rD(Z,$,J,Y){if((0,b6.isFunction)(J))Y=J,J=void 0;if(Y)return(0,zT.mapOneOrManyArgs)(Y)(rD(Z,$,J));let X=sD(Z)||tD(Z)||oD(Z);if(!X&&!(0,b6.isArrayLike)(Z))throw TypeError("Invalid event target");return new b6.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)aD(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];aD(K,z,W,$,J)}})}eD.fromEvent=rD;function aD(Z,$,J,Y,X){let[z,K]=qT(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function qT(Z){return oD(Z)?HT:sD(Z)?KT:tD(Z)?QT:[]}function sD(Z){return(0,b6.isFunction)(Z.addListener)&&(0,b6.isFunction)(Z.removeListener)}function tD(Z){return(0,b6.isFunction)(Z.on)&&(0,b6.isFunction)(Z.off)}function oD(Z){return(0,b6.isFunction)(Z.addEventListener)&&(0,b6.isFunction)(Z.removeEventListener)}});var K2=q((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});X2.fromEventPattern=void 0;var J2=D(),WT=xK();function Y2(Z,$,J){if(J)return(0,WT.mapOneOrManyArgs)(J)(Y2(Z,$));return new J2.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,J2.isFunction)($)?()=>$(X,z):void 0})}X2.fromEventPattern=Y2});var W2=q((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.generate=void 0;var H2=v0(),NT=oK(),BT=$H(),FT=Oq();function GT(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=H2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,NT.isScheduler)(Y))z=H2.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,BT.defer)(X?()=>(0,FT.scheduleIterable)(Q(),X):Q)}Q2.generate=GT});var F2=q((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});N2.iif=void 0;var LT=$H();function wT(Z,$,J){return(0,LT.defer)(()=>Z()?$:J)}N2.iif=wT});var I8=q((L2)=>{Object.defineProperty(L2,"__esModule",{value:!0});L2.timer=void 0;var DT=D(),IT=A0(),UT=oK(),OT=mH(),G2=c0();function kT(Z=0,$,J=IT.asyncScheduler){let Y=-1;if($!=null)if((0,UT.isScheduler)($))J=$;else Y=$;return new DT.Observable((X)=>{let z=(0,OT.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,G2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,G2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}L2.timer=kT});var Cq=q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.interval=void 0;var fT=A0(),ET=I8();function PT(Z=0,$=fT.asyncScheduler){if(Z<0)Z=0;return(0,ET.timer)(Z,Z,$)}D2.interval=PT});var E2=q((k2)=>{Object.defineProperty(k2,"__esModule",{value:!0});k2.merge=void 0;var U2=D(),VT=ZH(),xT=M6(),O2=D8(),MT=eK();function hT(...Z){let $=(0,O2.popScheduler)(Z),J=(0,O2.popNumber)(Z,1/0),Y=Z;return!Y.length?xT.EMPTY:Y.length===1?(0,U2.from)(Y[0]):(0,VT.mergeAll)(J)($?(0,MT.scheduled)(Y,$):(0,U2.from)(Y))}k2.merge=hT});var x2=q((P2)=>{Object.defineProperty(P2,"__esModule",{value:!0});P2.of=void 0;var AT=D();function vT(...Z){return(0,AT.fromArrayLike)(Z)}P2.of=vT});var JH=q((M2)=>{Object.defineProperty(M2,"__esModule",{value:!0});M2.argsOrArgArray=void 0;var{isArray:CT}=Array;function TT(Z){return Z.length===1&&CT(Z[0])?Z[0]:Z}M2.argsOrArgArray=TT});var Rq=q((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});v2.onErrorResumeNext=void 0;var Tq=D(),RT=JH(),A2=Y0();function yT(...Z){let $=(0,RT.argsOrArgArray)(Z);return new Tq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Tq.from)($[Y++])}catch(Q){X();return}let K=(0,Tq.operate)({destination:J,error:A2.noop,complete:A2.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}v2.onErrorResumeNext=yT});var y2=q((T2)=>{Object.defineProperty(T2,"__esModule",{value:!0});T2.not=void 0;function mT(Z,$){return(J,Y)=>!Z.call($,J,Y)}T2.not=mT});var cH=q((j2)=>{Object.defineProperty(j2,"__esModule",{value:!0});j2.filter=void 0;var m2=D();function jT(Z,$){return(J)=>new m2.Observable((Y)=>{let X=0;J.subscribe((0,m2.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}j2.filter=jT});var c2=q((b2)=>{Object.defineProperty(b2,"__esModule",{value:!0});b2.partition=void 0;var _T=y2(),S2=cH(),g2=D();function ST(Z,$,J){return[(0,S2.filter)($,J)((0,g2.from)(Z)),(0,S2.filter)((0,_T.not)($,J))((0,g2.from)(Z))]}b2.partition=ST});var yq=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.raceInit=l2.race=void 0;var uH=D(),gT=JH();function bT(...Z){return Z=(0,gT.argsOrArgArray)(Z),Z.length===1?(0,uH.from)(Z[0]):new uH.Observable(u2(Z))}l2.race=bT;function u2(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,uH.from)(Z[Y]).subscribe((0,uH.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}l2.raceInit=u2});var r2=q((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});n2.range=void 0;var cT=D(),uT=M6(),i2=c0();function lT(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return uT.EMPTY;let Y=$+Z;return new cT.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,i2.executeSchedule)(X,J,K)}else X.complete()};(0,i2.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}n2.range=lT});var o2=q((s2)=>{Object.defineProperty(s2,"__esModule",{value:!0});s2.throwError=void 0;var pT=D();function iT(Z){return new pT.Observable(($)=>{$.error(Z())})}s2.throwError=iT});var JI=q((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.using=void 0;var e2=D(),nT=M6();function aT(Z,$){return new e2.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,e2.from)(X):nT.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}ZI.using=aT});var lH=q((YI)=>{Object.defineProperty(YI,"__esModule",{value:!0});YI.zip=void 0;var mq=D(),rT=JH(),sT=M6(),tT=D8();function oT(...Z){let $=(0,tT.popResultSelector)(Z),J=(0,rT.argsOrArgArray)(Z);return J.length?new mq.Observable((Y)=>{let X=J.map(()=>[]),z=J.map(()=>!1);Y.add(()=>{X=z=null});for(let K=0;!Y.closed&&K<J.length;K++)(0,mq.from)(J[K]).subscribe((0,mq.operate)({destination:Y,next:(Q)=>{if(X[K].push(Q),X.every((W)=>W.length)){let W=X.map((G)=>G.shift());if(Y.next($?$(...W):W),X.some((G,L)=>!G.length&&z[L]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):sT.EMPTY}YI.zip=oT});var HI=q((zI)=>{Object.defineProperty(zI,"__esModule",{value:!0});zI.NEVER=void 0;var eT=D(),ZR=Y0();zI.NEVER=new eT.Observable(ZR.noop)});var qI=q((QI)=>{Object.defineProperty(QI,"__esModule",{value:!0})});var jq=q((WI)=>{Object.defineProperty(WI,"__esModule",{value:!0});WI.audit=void 0;var pH=D();function $R(Z){return($)=>new pH.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,Q=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let G=X;X=null,J.next(G)}K&&J.complete()},W=()=>{z=null,K&&J.complete()};$.subscribe((0,pH.operate)({destination:J,next:(G)=>{if(Y=!0,X=G,!z)(0,pH.from)(Z(G)).subscribe(z=(0,pH.operate)({destination:J,next:Q,complete:W}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}WI.audit=$R});var GI=q((BI)=>{Object.defineProperty(BI,"__esModule",{value:!0});BI.auditTime=void 0;var JR=A0(),YR=jq(),XR=I8();function zR(Z,$=JR.asyncScheduler){return(0,YR.audit)(()=>(0,XR.timer)(Z,$))}BI.auditTime=zR});var DI=q((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.buffer=void 0;var iH=D(),KR=Y0();function HR(Z){return($)=>new iH.Observable((J)=>{let Y=[];return(0,iH.from)(Z).subscribe((0,iH.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:KR.noop})),$.subscribe((0,iH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}LI.buffer=HR});var kI=q((UI)=>{Object.defineProperty(UI,"__esModule",{value:!0});UI.bufferCount=void 0;var II=D(),QR=s$();function qR(Z,$=null){return $=$??Z,(J)=>new II.Observable((Y)=>{let X=[],z=0;J.subscribe((0,II.operate)({destination:Y,next:(K)=>{let Q=null;if(z++%$===0)X.push([]);for(let W of X)if(W.push(K),Z<=W.length)Q=Q??[],Q.push(W);if(Q)for(let W of Q)(0,QR.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}UI.bufferCount=qR});var VI=q((EI)=>{Object.defineProperty(EI,"__esModule",{value:!0});EI.bufferTime=void 0;var _q=D(),WR=s$(),NR=A0(),BR=D8(),fI=c0();function FR(Z,...$){let J=(0,BR.popScheduler)($)??NR.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new _q.Observable((K)=>{let Q=[],W=!1,G=(f)=>{let{buffer:P,subs:V}=f;V.unsubscribe(),(0,WR.arrRemove)(Q,f),K.next(P),W&&L()},L=()=>{if(Q){let f=new _q.Subscription;K.add(f);let V={buffer:[],subs:f};Q.push(V),(0,fI.executeSchedule)(f,J,()=>G(V),Z)}};if(Y!==null&&Y>=0)(0,fI.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(0,_q.operate)({destination:K,next:(f)=>{let P=Q.slice();for(let V of P){let{buffer:T}=V;T.push(f),X<=T.length&&G(V)}},complete:()=>{while(Q?.length)K.next(Q.shift().buffer);O?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>Q=null});z.subscribe(O)})}EI.bufferTime=FR});var AI=q((MI)=>{Object.defineProperty(MI,"__esModule",{value:!0});MI.bufferToggle=void 0;var o$=D(),xI=Y0(),GR=s$();function LR(Z,$){return(J)=>new o$.Observable((Y)=>{let X=[];(0,o$.from)(Z).subscribe((0,o$.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let Q=new o$.Subscription,W=()=>{(0,GR.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,o$.from)($(z)).subscribe((0,o$.operate)({destination:Y,next:W,complete:xI.noop})))},complete:xI.noop})),J.subscribe((0,o$.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}MI.bufferToggle=LR});var TI=q((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.bufferWhen=void 0;var nH=D(),wR=Y0();function DR(Z){return($)=>new nH.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,nH.from)(Z()).subscribe(X=(0,nH.operate)({destination:J,next:z,complete:wR.noop}))};z(),$.subscribe((0,nH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}vI.bufferWhen=DR});var jI=q((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.catchError=void 0;var Sq=D();function RI(Z){return($)=>new Sq.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,Sq.operate)({destination:J,error:(K)=>{if(z=(0,Sq.from)(Z(K,RI(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}yI.catchError=RI});var gq=q((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.scanInternals=void 0;var IR=D();function UR(Z,$,J,Y,X,z,K){let Q=J,W=$,G=0;z.subscribe((0,IR.operate)({destination:K,next:(L)=>{let O=G++;W=Q?Z(W,L,O):(Q=!0,L),Y&&K.next(W)},complete:X?()=>{Q&&K.next(W),K.complete()}:void 0}))}_I.scanInternals=UR});var MK=q((gI)=>{Object.defineProperty(gI,"__esModule",{value:!0});gI.reduce=void 0;var OR=gq(),kR=D();function fR(Z,$){let J=arguments.length>=2;return(Y)=>new kR.Observable((X)=>(0,OR.scanInternals)(Z,$,J,!1,!0,Y,X))}gI.reduce=fR});var bq=q((dI)=>{Object.defineProperty(dI,"__esModule",{value:!0});dI.toArray=void 0;var ER=MK(),PR=D(),VR=(Z,$)=>(Z.push($),Z);function xR(){return(Z)=>new PR.Observable(($)=>{(0,ER.reduce)(VR,[])(Z).subscribe($)})}dI.toArray=xR});var dq=q((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.joinAllInternals=void 0;var MR=v0(),hR=xK(),AR=Fq(),vR=t$(),CR=bq();function TR(Z,$){return(0,AR.pipe)((0,CR.toArray)(),(0,vR.mergeMap)((J)=>Z(J)),$?(0,hR.mapOneOrManyArgs)($):MR.identity)}uI.joinAllInternals=TR});var nI=q((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.combineLatestAll=void 0;var RR=gH(),yR=dq();function mR(Z){return(0,yR.joinAllInternals)(RR.combineLatest,Z)}pI.combineLatestAll=mR});var sI=q((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.combineLatestWith=void 0;var jR=gH(),_R=D();function SR(...Z){return($)=>new _R.Observable((J)=>(0,jR.combineLatestInit)([$,...Z])(J))}aI.combineLatestWith=SR});var cq=q((tI)=>{Object.defineProperty(tI,"__esModule",{value:!0});tI.concatMap=void 0;var gR=t$();function bR(Z){return(0,gR.mergeMap)(Z,1)}tI.concatMap=bR});var $U=q((eI)=>{Object.defineProperty(eI,"__esModule",{value:!0});eI.concatMapTo=void 0;var dR=cq();function cR(Z){return(0,dR.concatMap)(()=>Z)}eI.concatMapTo=cR});var zU=q((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.concatWith=void 0;var JU=D(),uR=dH();function lR(...Z){return($)=>new JU.Observable((J)=>{(0,uR.concatAll)()((0,JU.from)([$,...Z])).subscribe(J)})}YU.concatWith=lR});var QU=q((KU)=>{Object.defineProperty(KU,"__esModule",{value:!0});KU.fromSubscribable=void 0;var pR=D();function iR(Z){return new pR.Observable(($)=>Z.subscribe($))}KU.fromSubscribable=iR});var BU=q((WU)=>{Object.defineProperty(WU,"__esModule",{value:!0});WU.connect=void 0;var qU=D(),nR=H0(),aR=QU(),rR={connector:()=>new nR.Subject};function sR(Z,$=rR){let{connector:J}=$;return(Y)=>new qU.Observable((X)=>{let z=J();(0,qU.from)(Z((0,aR.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}WU.connect=sR});var LU=q((FU)=>{Object.defineProperty(FU,"__esModule",{value:!0});FU.count=void 0;var tR=MK();function oR(Z){return(0,tR.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}FU.count=oR});var IU=q((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.debounce=void 0;var aH=D(),eR=Y0();function Zy(Z){return($)=>new aH.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let Q=X;X=null,J.next(Q)}};$.subscribe((0,aH.operate)({destination:J,next:(Q)=>{z?.unsubscribe(),Y=!0,X=Q,z=(0,aH.operate)({destination:J,next:K,complete:eR.noop}),(0,aH.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}wU.debounce=Zy});var fU=q((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.debounceTime=void 0;var $y=A0(),UU=D(),Jy=c0();function Yy(Z,$=$y.asyncScheduler){return(J)=>new UU.Observable((Y)=>{let X,z;J.subscribe((0,UU.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,Jy.executeSchedule)(Y,$,()=>{z=void 0;let Q=X;X=null,Y.next(Q)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}OU.debounceTime=Yy});var xU=q((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.defaultIfEmpty=void 0;var EU=D();function Xy(Z){return($)=>new EU.Observable((J)=>{let Y=!1;$.subscribe((0,EU.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}PU.defaultIfEmpty=Xy});var uq=q((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.take=void 0;var zy=M6(),MU=D();function Ky(Z){return Z<=0?()=>zy.EMPTY:($)=>new MU.Observable((J)=>{let Y=0,X=(0,MU.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}hU.take=Ky});var lq=q((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.ignoreElements=void 0;var vU=D(),Hy=Y0();function Qy(){return(Z)=>new vU.Observable(($)=>{Z.subscribe((0,vU.operate)({destination:$,next:Hy.noop}))})}CU.ignoreElements=Qy});var iq=q((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.delayWhen=void 0;var qy=Aq(),RU=uq(),Wy=lq(),Ny=t$(),pq=Bq(),By=VK();function yU(Z,$){if($)return(J)=>(0,qy.concat)((0,pq.rx)($,(0,RU.take)(1),(0,Wy.ignoreElements)()),(0,pq.rx)(J,yU(Z)));return(0,Ny.mergeMap)((J,Y)=>(0,pq.rx)(Z(J,Y),(0,RU.take)(1),(0,By.map)(()=>J)))}mU.delayWhen=yU});var gU=q((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.delay=void 0;var Fy=A0(),Gy=iq(),Ly=I8();function wy(Z,$=Fy.asyncScheduler){let J=(0,Ly.timer)(Z,$);return(0,Gy.delayWhen)(()=>J)}_U.delay=wy});var cU=q((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.observeNotification=void 0;function Dy(Z,$){let{kind:J,value:Y,error:X}=Z;if(typeof J!=="string")throw TypeError('Invalid notification, missing "kind"');J==="N"?$.next?.(Y):J==="E"?$.error?.(X):$.complete?.()}bU.observeNotification=Dy});var iU=q((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.dematerialize=void 0;var Iy=cU(),uU=D();function Uy(){return(Z)=>new uU.Observable(($)=>{Z.subscribe((0,uU.operate)({destination:$,next:(J)=>(0,Iy.observeNotification)(J,$)}))})}lU.dematerialize=Uy});var rU=q((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.distinct=void 0;var rH=D(),Oy=Y0();function ky(Z,$){return(J)=>new rH.Observable((Y)=>{let X=new Set;J.subscribe((0,rH.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,rH.from)($).subscribe((0,rH.operate)({destination:Y,next:()=>X.clear(),complete:Oy.noop}))})}nU.distinct=ky});var nq=q((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.distinctUntilChanged=void 0;var fy=v0(),sU=D();function Ey(Z,$=fy.identity){return Z=Z??Py,(J)=>new sU.Observable((Y)=>{let X,z=!0;J.subscribe((0,sU.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}tU.distinctUntilChanged=Ey;function Py(Z,$){return Z===$}});var $O=q((eU)=>{Object.defineProperty(eU,"__esModule",{value:!0});eU.distinctUntilKeyChanged=void 0;var Vy=nq();function xy(Z,$){return(0,Vy.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}eU.distinctUntilKeyChanged=xy});var KO=q((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.elementAt=void 0;var JO=Gq(),YO=D();function My(Z,$){if(Z<0)throw new JO.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new YO.Observable((X)=>{let z=0,K=(0,YO.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new JO.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}XO.elementAt=My});var qO=q((HO)=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.endWith=void 0;var aq=D();function hy(...Z){return($)=>new aq.Observable((J)=>{$.subscribe((0,aq.operate)({destination:J,complete:()=>{(0,aq.subscribeToArray)(Z,J)}}))})}HO.endWith=hy});var FO=q((NO)=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.every=void 0;var WO=D();function Ay(Z,$){return(J)=>new WO.Observable((Y)=>{let X=0;J.subscribe((0,WO.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}NO.every=Ay});var rq=q((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.exhaustMap=void 0;var sH=D();function vy(Z){return($)=>new sH.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,sH.operate)({destination:J,next:(K)=>{if(!X)X=(0,sH.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,sH.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}GO.exhaustMap=vy});var IO=q((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.exhaustAll=void 0;var Cy=rq(),Ty=v0();function Ry(){return(0,Cy.exhaustMap)(Ty.identity)}wO.exhaustAll=Ry});var kO=q((UO)=>{Object.defineProperty(UO,"__esModule",{value:!0});UO.expand=void 0;var yy=D(),my=bH();function jy(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new yy.Observable((X)=>(0,my.mergeInternals)(Y,X,Z,$,void 0,!0,J))}UO.expand=jy});var PO=q((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.finalize=void 0;var _y=D();function Sy(Z){return($)=>new _y.Observable((J)=>{$.subscribe(J),J.add(Z)})}fO.finalize=Sy});var sq=q((MO)=>{Object.defineProperty(MO,"__esModule",{value:!0});MO.createFind=MO.find=void 0;var VO=D();function gy(Z){return($)=>new VO.Observable((J)=>xO(Z,"value",$,J))}MO.find=gy;function xO(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,VO.operate)({destination:Y,next:(K)=>{let Q=z++;if(Z(K,Q,J))Y.next(X?Q:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}MO.createFind=xO});var CO=q((AO)=>{Object.defineProperty(AO,"__esModule",{value:!0});AO.findIndex=void 0;var dy=D(),cy=sq();function uy(Z){return($)=>new dy.Observable((J)=>(0,cy.createFind)(Z,"index",$,J))}AO.findIndex=uy});var mO=q((RO)=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.first=void 0;var TO=D(),ly=g6();function py(Z,$){let J=arguments.length>=2;return(Y)=>new TO.Observable((X)=>{let z=0,K=(0,TO.operate)({destination:X,next:(Q)=>{if(Z?Z(Q,z++,Y):!0)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new ly.EmptyError)}});Y.subscribe(K)})}RO.first=py});var SO=q((jO)=>{Object.defineProperty(jO,"__esModule",{value:!0});jO.groupBy=void 0;var YH=D(),iy=H0();function ny(Z,$,J,Y){return(X)=>new YH.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let Q=new Map,W=(f)=>{Q.forEach(f),f(z)},G=(f)=>W((P)=>P.error(f)),L=(0,YH.operate)({destination:z,next:(f)=>{try{let P=Z(f),V=Q.get(P);if(!V){Q.set(P,V=Y?Y():new iy.Subject);let T=O(P,V);if(z.next(T),J){let E0=(0,YH.operate)({destination:V,next:()=>{V.complete(),E0?.unsubscribe()},finalize:()=>Q.delete(P)});L.add((0,YH.from)(J(T)).subscribe(E0))}}V.next(K?K(f):f)}catch(P){G(P)}},error:G,complete:()=>W((f)=>f.complete()),finalize:()=>Q.clear()});X.subscribe(L);function O(f,P){let V=new YH.Observable((T)=>P.subscribe(T));return V.key=f,V}})}jO.groupBy=ny});var cO=q((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.isEmpty=void 0;var gO=D();function ay(){return(Z)=>new gO.Observable(($)=>{Z.subscribe((0,gO.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}bO.isEmpty=ay});var iO=q((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.last=void 0;var uO=D(),ry=g6();function sy(Z,$){let J=arguments.length>=2;return(Y)=>new uO.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,uO.operate)({destination:X,next(W){if(!Z||Z(W,z++,Y))K=!0,Q=W},complete(){if(K)X.next(Q),X.complete();else if(J)X.next($),X.complete();else X.error(new ry.EmptyError)}}))})}lO.last=sy});var rO=q((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.mapTo=void 0;var ty=VK();function oy(Z){return(0,ty.map)(()=>Z)}nO.mapTo=oy});var oO=q((sO)=>{Object.defineProperty(sO,"__esModule",{value:!0});sO.materialize=void 0;var XH=D();function ey(){return(Z)=>new XH.Observable(($)=>{Z.subscribe((0,XH.operate)({destination:$,next:(J)=>{$.next((0,XH.nextNotification)(J))},error:(J)=>{$.next((0,XH.errorNotification)(J)),$.complete()},complete:()=>{$.next(XH.COMPLETE_NOTIFICATION),$.complete()}}))})}sO.materialize=ey});var $k=q((eO)=>{Object.defineProperty(eO,"__esModule",{value:!0});eO.max=void 0;var Zm=MK(),$m=D();function Jm(Z){return(0,Zm.reduce)((0,$m.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}eO.max=Jm});var Xk=q((Jk)=>{Object.defineProperty(Jk,"__esModule",{value:!0});Jk.mergeMapTo=void 0;var Ym=t$();function Xm(Z,$){return(0,Ym.mergeMap)(()=>Z,$)}Jk.mergeMapTo=Xm});var Hk=q((zk)=>{Object.defineProperty(zk,"__esModule",{value:!0});zk.mergeScan=void 0;var zm=D(),Km=bH();function Hm(Z,$,J=1/0){return(Y)=>new zm.Observable((X)=>{let z=$;return(0,Km.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}zk.mergeScan=Hm});var Nk=q((qk)=>{Object.defineProperty(qk,"__esModule",{value:!0});qk.mergeWith=void 0;var Qk=D(),Qm=ZH();function qm(...Z){return($)=>new Qk.Observable((J)=>{(0,Qm.mergeAll)()((0,Qk.from)([$,...Z])).subscribe(J)})}qk.mergeWith=qm});var Gk=q((Bk)=>{Object.defineProperty(Bk,"__esModule",{value:!0});Bk.min=void 0;var Wm=MK(),Nm=D();function Bm(Z){return(0,Wm.reduce)((0,Nm.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}Bk.min=Bm});var Dk=q((Lk)=>{Object.defineProperty(Lk,"__esModule",{value:!0});Lk.onErrorResumeNextWith=void 0;var Fm=JH(),Gm=Rq();function Lm(...Z){let $=(0,Fm.argsOrArgArray)(Z);return(J)=>(0,Gm.onErrorResumeNext)(J,...$)}Lk.onErrorResumeNextWith=Lm});var kk=q((Uk)=>{Object.defineProperty(Uk,"__esModule",{value:!0});Uk.pairwise=void 0;var Ik=D();function wm(){return(Z)=>new Ik.Observable(($)=>{let J,Y=!1;Z.subscribe((0,Ik.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}Uk.pairwise=wm});var Pk=q((fk)=>{Object.defineProperty(fk,"__esModule",{value:!0});fk.raceWith=void 0;var Dm=yq(),Im=D(),Um=v0();function Om(...Z){return!Z.length?Um.identity:($)=>new Im.Observable((J)=>{(0,Dm.raceInit)([$,...Z])(J)})}fk.raceWith=Om});var Mk=q((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.repeat=void 0;var tH=D(),km=M6(),fm=I8();function Em(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>km.EMPTY:(Y)=>new tH.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let G=typeof J==="number"?(0,fm.timer)(J):(0,tH.from)(J(z)),L=(0,tH.operate)({destination:X,next:()=>{L.unsubscribe(),W()}});G.subscribe(L)}else W()},W=()=>{let G=!1;if(K=Y.subscribe((0,tH.operate)({destination:X,complete:()=>{if(++z<$)if(K)Q();else G=!0;else X.complete()}})),G)Q()};W()})}Vk.repeat=Em});var vk=q((hk)=>{Object.defineProperty(hk,"__esModule",{value:!0});hk.repeatWhen=void 0;var oH=D(),Pm=H0();function Vm(Z){return($)=>new oH.Observable((J)=>{let Y,X=!1,z,K=!1,Q=!1,W=()=>Q&&K&&(J.complete(),!0),G=()=>{if(!z)z=new Pm.Subject,(0,oH.from)(Z(z)).subscribe((0,oH.operate)({destination:J,next:()=>{if(Y)L();else X=!0},complete:()=>{K=!0,W()}}));return z},L=()=>{if(Q=!1,Y=$.subscribe((0,oH.operate)({destination:J,complete:()=>{Q=!0,!W()&&G().next()}})),X)Y.unsubscribe(),Y=null,X=!1,L()};L()})}hk.repeatWhen=Vm});var Rk=q((Ck)=>{Object.defineProperty(Ck,"__esModule",{value:!0});Ck.retry=void 0;var eH=D(),xm=v0(),Mm=I8();function hm(Z=1/0){let $;if(Z&&typeof Z==="object")$=Z;else $={count:Z};let{count:J=1/0,delay:Y,resetOnSuccess:X=!1}=$;return J<=0?xm.identity:(z)=>new eH.Observable((K)=>{let Q=0,W,G=()=>{let L=!1;if(W=z.subscribe((0,eH.operate)({destination:K,next:(O)=>{if(X)Q=0;K.next(O)},error:(O)=>{if(Q++<J){let f=()=>{if(W)W.unsubscribe(),W=null,G();else L=!0};if(Y!=null){let P=typeof Y==="number"?(0,Mm.timer)(Y):(0,eH.from)(Y(O,Q)),V=(0,eH.operate)({destination:K,next:()=>{V.unsubscribe(),f()},complete:()=>{K.complete()}});P.subscribe(V)}else f()}else K.error(O)}})),L)W.unsubscribe(),W=null,G()};G()})}Ck.retry=hm});var jk=q((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.retryWhen=void 0;var ZQ=D(),Am=H0();function vm(Z){return($)=>new ZQ.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,ZQ.operate)({destination:J,error:(Q)=>{if(!z)z=new Am.Subject,(0,ZQ.from)(Z(z)).subscribe((0,ZQ.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(Q)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}yk.retryWhen=vm});var tq=q((_k)=>{Object.defineProperty(_k,"__esModule",{value:!0});_k.sample=void 0;var $Q=D(),Cm=Y0();function Tm(Z){return($)=>new $Q.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,$Q.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,$Q.from)(Z).subscribe((0,$Q.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:Cm.noop}))})}_k.sample=Tm});var dk=q((gk)=>{Object.defineProperty(gk,"__esModule",{value:!0});gk.sampleTime=void 0;var Rm=A0(),ym=tq(),mm=Cq();function jm(Z,$=Rm.asyncScheduler){return(0,ym.sample)((0,mm.interval)(Z,$))}gk.sampleTime=jm});var lk=q((ck)=>{Object.defineProperty(ck,"__esModule",{value:!0});ck.scan=void 0;var _m=D(),Sm=gq();function gm(Z,$){let J=arguments.length>=2;return(Y)=>new _m.Observable((X)=>(0,Sm.scanInternals)(Z,$,J,!0,!1,Y,X))}ck.scan=gm});var ak=q((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.sequenceEqual=void 0;var oq=D();function bm(Z,$=(J,Y)=>J===Y){return(J)=>new oq.Observable((Y)=>{let X=pk(),z=pk(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,G)=>{let L=(0,oq.operate)({destination:Y,next:(O)=>{let{buffer:f,complete:P}=G;if(f.length===0)P?K(!1):W.buffer.push(O);else!$(O,f.shift())&&K(!1)},complete:()=>{W.complete=!0;let{complete:O,buffer:f}=G;O&&K(f.length===0),L?.unsubscribe()}});return L};J.subscribe(Q(X,z)),(0,oq.from)(Z).subscribe(Q(z,X))})}ik.sequenceEqual=bm;function pk(){return{buffer:[],complete:!1}}});var ZW=q((rk)=>{Object.defineProperty(rk,"__esModule",{value:!0});rk.share=void 0;var zH=D(),dm=H0();function cm(Z={}){let{connector:$=()=>new dm.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,Q,W,G=0,L=!1,O=!1,f=()=>{Q?.unsubscribe(),Q=void 0},P=()=>{f(),K=W=void 0,L=O=!1},V=()=>{let T=K;P(),T?.unsubscribe()};return new zH.Observable((T)=>{if(G++,!O&&!L)f();let E0=W=W??$();if(T.add(()=>{if(G--,G===0&&!O&&!L)Q=eq(V,X)}),E0.subscribe(T),!K&&G>0)K=new zH.Subscriber({next:(X0)=>E0.next(X0),error:(X0)=>{O=!0,f(),Q=eq(P,J,X0),E0.error(X0)},complete:()=>{L=!0,f(),Q=eq(P,Y),E0.complete()}}),(0,zH.from)(z).subscribe(K)})}}rk.share=cm;function eq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new zH.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,zH.from)($(...J)).subscribe(Y)}});var ek=q((tk)=>{Object.defineProperty(tk,"__esModule",{value:!0});tk.shareReplay=void 0;var um=Hq(),lm=ZW();function pm(Z,$,J){let Y,X=!1;if(Z&&typeof Z==="object")({bufferSize:Y=1/0,windowTime:$=1/0,refCount:X=!1,scheduler:J}=Z);else Y=Z??1/0;return(0,lm.share)({connector:()=>new um.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}tk.shareReplay=pm});var Yf=q(($f)=>{Object.defineProperty($f,"__esModule",{value:!0});$f.single=void 0;var Zf=D(),im=g6(),nm=wq(),am=Lq();function rm(Z){return($)=>new Zf.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,Zf.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new nm.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new am.NotFoundError("No matching values"):new im.EmptyError)}}))})}$f.single=rm});var Kf=q((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});Xf.skip=void 0;var sm=cH();function tm(Z){return(0,sm.filter)(($,J)=>Z<=J)}Xf.skip=tm});var Wf=q((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.skipLast=void 0;var om=v0(),Hf=D();function em(Z){return Z<=0?om.identity:($)=>new Hf.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,Hf.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let Q=K%Z,W=Y[Q];Y[Q]=z,J.next(W)}}})),()=>{Y=null}})}Qf.skipLast=em});var Ff=q((Nf)=>{Object.defineProperty(Nf,"__esModule",{value:!0});Nf.skipUntil=void 0;var JQ=D(),Zj=Y0();function $j(Z){return($)=>new JQ.Observable((J)=>{let Y=!1,X=(0,JQ.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:Zj.noop});(0,JQ.from)(Z).subscribe(X),$.subscribe((0,JQ.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}Nf.skipUntil=$j});var Df=q((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.skipWhile=void 0;var Gf=D();function Jj(Z){return($)=>new Gf.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,Gf.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}Lf.skipWhile=Jj});var Of=q((If)=>{Object.defineProperty(If,"__esModule",{value:!0});If.startWith=void 0;var $W=D();function Yj(...Z){return($)=>new $W.Observable((J)=>{(0,$W.subscribeToArray)(Z,(0,$W.operate)({destination:J,complete:()=>$.subscribe(J)}))})}If.startWith=Yj});var KH=q((kf)=>{Object.defineProperty(kf,"__esModule",{value:!0});kf.switchMap=void 0;var YQ=D();function Xj(Z){return($)=>new YQ.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,YQ.operate)({destination:J,next:(Q)=>{Y?.unsubscribe();let W=X++;(0,YQ.from)(Z(Q,W)).subscribe(Y=(0,YQ.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}kf.switchMap=Xj});var Vf=q((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.switchAll=void 0;var zj=KH(),Kj=v0();function Hj(){return(0,zj.switchMap)(Kj.identity)}Ef.switchAll=Hj});var hf=q((xf)=>{Object.defineProperty(xf,"__esModule",{value:!0});xf.switchMapTo=void 0;var Qj=KH();function qj(Z){return(0,Qj.switchMap)(()=>Z)}xf.switchMapTo=qj});var Tf=q((vf)=>{Object.defineProperty(vf,"__esModule",{value:!0});vf.switchScan=void 0;var Wj=KH(),Af=D();function Nj(Z,$){return(J)=>new Af.Observable((Y)=>{let X=$;return(0,Wj.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,Af.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}vf.switchScan=Nj});var jf=q((yf)=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.takeLast=void 0;var Bj=M6(),Rf=D();function Fj(Z){return Z<=0?()=>Bj.EMPTY:($)=>new Rf.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,Rf.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let Q=0;Q<K;Q++)J.next(Y[(z+Q)%Z]);J.complete()},finalize:()=>{Y=null}}))})}yf.takeLast=Fj});var gf=q((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});_f.takeUntil=void 0;var JW=D(),Gj=Y0();function Lj(Z){return($)=>new JW.Observable((J)=>{(0,JW.from)(Z).subscribe((0,JW.operate)({destination:J,next:()=>J.complete(),complete:Gj.noop})),!J.closed&&$.subscribe(J)})}_f.takeUntil=Lj});var uf=q((df)=>{Object.defineProperty(df,"__esModule",{value:!0});df.takeWhile=void 0;var bf=D();function wj(Z,$=!1){return(J)=>new bf.Observable((Y)=>{let X=0,z=(0,bf.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}df.takeWhile=wj});var nf=q((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.tap=void 0;var YW=D(),Dj=v0();function Ij(Z){let $=(0,YW.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new YW.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,YW.operate)({destination:Y,next:(z)=>{$.next?.(z),Y.next(z)},error:(z)=>{X=!1,$.error?.(z),Y.error(z)},complete:()=>{X=!1,$.complete?.(),Y.complete()},finalize:()=>{if(X)$.unsubscribe?.();$.finalize?.()}}))}):Dj.identity}lf.tap=Ij});var XW=q((af)=>{Object.defineProperty(af,"__esModule",{value:!0});af.throttle=void 0;var XQ=D();function Uj(Z,$){return(J)=>new XQ.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,Q=null,W=null,G=!1,L=()=>{if(W?.unsubscribe(),W=null,z)P(),G&&Y.complete()},O=()=>{W=null,G&&Y.complete()},f=(V)=>W=(0,XQ.from)(Z(V)).subscribe((0,XQ.operate)({destination:Y,next:L,complete:O})),P=()=>{if(K){K=!1;let V=Q;Q=null,Y.next(V),!G&&f(V)}};J.subscribe((0,XQ.operate)({destination:Y,next:(V)=>{K=!0,Q=V,!(W&&!W.closed)&&(X?P():f(V))},complete:()=>{G=!0,!(z&&K&&W&&!W.closed)&&Y.complete()}}))})}af.throttle=Uj});var of=q((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});sf.throttleTime=void 0;var Oj=A0(),kj=XW(),fj=I8();function Ej(Z,$=Oj.asyncScheduler,J){let Y=(0,fj.timer)(Z,$);return(0,kj.throttle)(()=>Y,J)}sf.throttleTime=Ej});var JE=q((ZE)=>{Object.defineProperty(ZE,"__esModule",{value:!0});ZE.throwIfEmpty=void 0;var Pj=g6(),ef=D();function Vj(Z=xj){return($)=>new ef.Observable((J)=>{let Y=!1;$.subscribe((0,ef.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}ZE.throwIfEmpty=Vj;function xj(){return new Pj.EmptyError}});var KE=q((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.TimeInterval=XE.timeInterval=void 0;var Mj=A0(),YE=D();function hj(Z=Mj.asyncScheduler){return($)=>new YE.Observable((J)=>{let Y=Z.now();$.subscribe((0,YE.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new zW(X,K))}}))})}XE.timeInterval=hj;class zW{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}XE.TimeInterval=zW});var qE=q((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.timeoutWith=void 0;var vj=A0(),Cj=mH(),Tj=jH();function Rj(Z,$,J){let Y,X,z;if(J=J??vj.asyncScheduler,(0,Cj.isValidDate)(Z))Y=Z;else if(typeof Z==="number")X=Z;if($)z=()=>$;else throw TypeError("No observable provided to switch to");if(Y==null&&X==null)throw TypeError("No timeout provided.");return(0,Tj.timeout)({first:Y,each:X,scheduler:J,with:z})}HE.timeoutWith=Rj});var BE=q((WE)=>{Object.defineProperty(WE,"__esModule",{value:!0});WE.timestamp=void 0;var yj=CH(),mj=VK();function jj(Z=yj.dateTimestampProvider){return(0,mj.map)(($)=>({value:$,timestamp:Z.now()}))}WE.timestamp=jj});var wE=q((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.window=void 0;var zQ=D(),FE=H0(),_j=Y0();function Sj(Z){return($)=>new zQ.Observable((J)=>{let Y=new FE.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,zQ.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,zQ.from)(Z).subscribe((0,zQ.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new FE.Subject)},complete:_j.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}GE.window=Sj});var kE=q((UE)=>{Object.defineProperty(UE,"__esModule",{value:!0});UE.windowCount=void 0;var DE=D(),IE=H0();function gj(Z,$=0){let J=$>0?$:Z;return(Y)=>new DE.Observable((X)=>{let z=[new IE.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,DE.operate)({destination:X,next:(W)=>{for(let L of z)L.next(W);let G=Q-Z+1;if(G>=0&&G%J===0)z.shift().complete();if(++Q%J===0){let L=new IE.Subject;z.push(L),X.next(L.asObservable())}},error:(W)=>{while(z.length>0)z.shift().error(W);X.error(W)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}UE.windowCount=gj});var VE=q((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.windowTime=void 0;var bj=H0(),dj=A0(),KW=D(),cj=s$(),uj=D8(),fE=c0();function lj(Z,...$){let J=(0,uj.popScheduler)($)??dj.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new KW.Observable((K)=>{let Q=[],W=!1,G=(P)=>{let{window:V,subs:T}=P;V.complete(),T.unsubscribe(),(0,cj.arrRemove)(Q,P),W&&L()},L=()=>{if(Q){let P=new KW.Subscription;K.add(P);let V=new bj.Subject,T={window:V,subs:P,seen:0};Q.push(T),K.next(V.asObservable()),(0,fE.executeSchedule)(P,J,()=>G(T),Z)}};if(Y!==null&&Y>=0)(0,fE.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(P)=>Q.slice().forEach(P),f=(P)=>{O(({window:V})=>P(V)),P(K),K.unsubscribe()};return z.subscribe((0,KW.operate)({destination:K,next:(P)=>{O((V)=>{V.window.next(P),X<=++V.seen&&G(V)})},error:(P)=>f((V)=>V.error(P)),complete:()=>f((P)=>P.complete())})),()=>{Q=null}})}EE.windowTime=lj});var AE=q((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.windowToggle=void 0;var e$=D(),pj=H0(),xE=Y0(),ij=s$();function nj(Z,$){return(J)=>new e$.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,e$.from)(Z).subscribe((0,e$.operate)({destination:Y,next:(K)=>{let Q=new pj.Subject;X.push(Q);let W=new e$.Subscription,G=()=>{(0,ij.arrRemove)(X,Q),Q.complete(),W.unsubscribe()},L;try{L=(0,e$.from)($(K))}catch(O){z(O);return}Y.next(Q),W.add(L.subscribe((0,e$.operate)({destination:Y,next:G,error:z,complete:xE.noop})))},complete:xE.noop})),J.subscribe((0,e$.operate)({destination:Y,next:(K)=>{let Q=X.slice();for(let W of Q)W.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}ME.windowToggle=nj});var TE=q((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.windowWhen=void 0;var KQ=D(),aj=H0(),rj=Y0();function sj(Z){return($)=>new KQ.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new aj.Subject,J.next(Y.asObservable());let Q;try{Q=(0,KQ.from)(Z())}catch(W){z(W);return}Q.subscribe(X=(0,KQ.operate)({destination:J,next:K,error:z,complete:rj.noop}))};K(),$.subscribe((0,KQ.operate)({destination:J,next:(Q)=>Y.next(Q),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}vE.windowWhen=sj});var mE=q((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.withLatestFrom=void 0;var HQ=D(),tj=v0(),oj=Y0(),ej=D8();function Z_(...Z){let $=(0,ej.popResultSelector)(Z);return(J)=>new HQ.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),Q=!1;for(let W=0;W<X;W++)(0,HQ.from)(Z[W]).subscribe((0,HQ.operate)({destination:Y,next:(G)=>{if(z[W]=G,!Q&&!K[W])K[W]=!0,(Q=K.every(tj.identity))&&(K=null)},complete:oj.noop}));J.subscribe((0,HQ.operate)({destination:Y,next:(W)=>{if(Q){let G=[W,...z];Y.next($?$(...G):G)}}}))})}RE.withLatestFrom=Z_});var SE=q((jE)=>{Object.defineProperty(jE,"__esModule",{value:!0});jE.zipAll=void 0;var $_=lH(),J_=dq();function Y_(Z){return(0,J_.joinAllInternals)($_.zip,Z)}jE.zipAll=Y_});var dE=q((gE)=>{Object.defineProperty(gE,"__esModule",{value:!0});gE.zipWith=void 0;var X_=D(),z_=lH();function K_(...Z){return($)=>new X_.Observable((J)=>{(0,z_.zip)($,...Z).subscribe(J)})}gE.zipWith=K_});var uE=q((H)=>{var H_=H&&H.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;var X=Object.getOwnPropertyDescriptor($,J);if(!X||("get"in X?!$.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return $[J]}};Object.defineProperty(Z,Y,X)}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),Q_=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))H_($,Z,J)};Object.defineProperty(H,"__esModule",{value:!0});H.throwError=H.range=H.race=H.partition=H.onErrorResumeNext=H.of=H.merge=H.interval=H.iif=H.generate=H.fromEventPattern=H.fromEvent=H.forkJoin=H.defer=H.connectable=H.concat=H.combineLatest=H.bindNodeCallback=H.bindCallback=H.TimeoutError=H.SequenceError=H.NotFoundError=H.EmptyError=H.ArgumentOutOfRangeError=H.firstValueFrom=H.lastValueFrom=H.identity=H.noop=H.pipe=H.rx=H.Scheduler=H.VirtualAction=H.VirtualTimeScheduler=H.animationFrameScheduler=H.queueScheduler=H.asyncScheduler=H.asapScheduler=H.AsyncSubject=H.ReplaySubject=H.BehaviorSubject=H.Subject=H.animationFrames=H.isObservable=H.UnsubscriptionError=H.operate=H.Subscriber=H.Subscription=H.config=H.from=H.Observable=void 0;H.max=H.materialize=H.mapTo=H.map=H.last=H.isEmpty=H.ignoreElements=H.groupBy=H.first=H.findIndex=H.find=H.finalize=H.filter=H.expand=H.exhaustMap=H.exhaustAll=H.every=H.endWith=H.elementAt=H.distinctUntilKeyChanged=H.distinctUntilChanged=H.distinct=H.dematerialize=H.delayWhen=H.delay=H.defaultIfEmpty=H.debounceTime=H.debounce=H.count=H.connect=H.concatWith=H.concatMapTo=H.concatMap=H.concatAll=H.combineLatestWith=H.combineLatestAll=H.catchError=H.bufferWhen=H.bufferToggle=H.bufferTime=H.bufferCount=H.buffer=H.auditTime=H.audit=H.NEVER=H.EMPTY=H.scheduled=H.zip=H.using=H.timer=void 0;H.windowWhen=H.windowToggle=H.windowTime=H.windowCount=H.window=H.toArray=H.timestamp=H.timeoutWith=H.timeout=H.timeInterval=H.throwIfEmpty=H.throttleTime=H.throttle=H.tap=H.takeWhile=H.takeUntil=H.takeLast=H.take=H.switchScan=H.switchMapTo=H.switchMap=H.switchAll=H.subscribeOn=H.startWith=H.skipWhile=H.skipUntil=H.skipLast=H.skip=H.single=H.shareReplay=H.share=H.sequenceEqual=H.scan=H.sampleTime=H.sample=H.retryWhen=H.retry=H.repeatWhen=H.repeat=H.reduce=H.raceWith=H.pairwise=H.onErrorResumeNextWith=H.observeOn=H.min=H.mergeWith=H.mergeScan=H.mergeMapTo=H.mergeMap=H.mergeAll=void 0;H.zipWith=H.zipAll=H.withLatestFrom=void 0;var U8=D();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return U8.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return U8.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return U8.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return U8.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return U8.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return U8.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return U8.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return U8.isObservable}});var q_=OG();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return q_.animationFrames}});var W_=H0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return W_.Subject}});var N_=MG();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return N_.BehaviorSubject}});var B_=Hq();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return B_.ReplaySubject}});var F_=Qq();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return F_.AsyncSubject}});var G_=wL();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return G_.asapScheduler}});var L_=A0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return L_.asyncScheduler}});var w_=AL();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return w_.queueScheduler}});var D_=dL();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return D_.animationFrameScheduler}});var cE=pL();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return cE.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return cE.VirtualAction}});var I_=Nq();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return I_.Scheduler}});var U_=Bq();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return U_.rx}});var O_=Fq();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return O_.pipe}});var k_=Y0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return k_.noop}});var f_=v0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return f_.identity}});var E_=zw();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return E_.lastValueFrom}});var P_=Qw();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return P_.firstValueFrom}});var V_=Gq();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return V_.ArgumentOutOfRangeError}});var x_=g6();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return x_.EmptyError}});var M_=Lq();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return M_.NotFoundError}});var h_=wq();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return h_.SequenceError}});var A_=jH();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return A_.TimeoutError}});var v_=BD();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return v_.bindCallback}});var C_=LD();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return C_.bindNodeCallback}});var T_=gH();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return T_.combineLatest}});var R_=Aq();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return R_.concat}});var y_=lD();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return y_.connectable}});var m_=$H();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return m_.defer}});var j_=nD();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return j_.forkJoin}});var __=$2();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return __.fromEvent}});var S_=K2();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return S_.fromEventPattern}});var g_=W2();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return g_.generate}});var b_=F2();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return b_.iif}});var d_=Cq();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return d_.interval}});var c_=E2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return c_.merge}});var u_=x2();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return u_.of}});var l_=Rq();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return l_.onErrorResumeNext}});var p_=c2();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return p_.partition}});var i_=yq();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return i_.race}});var n_=r2();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return n_.range}});var a_=o2();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return a_.throwError}});var r_=I8();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return r_.timer}});var s_=JI();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return s_.using}});var t_=lH();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return t_.zip}});var o_=eK();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return o_.scheduled}});var e_=M6();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return e_.EMPTY}});var ZS=HI();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return ZS.NEVER}});Q_(qI(),H);var $S=jq();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return $S.audit}});var JS=GI();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return JS.auditTime}});var YS=DI();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return YS.buffer}});var XS=kI();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return XS.bufferCount}});var zS=VI();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return zS.bufferTime}});var KS=AI();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return KS.bufferToggle}});var HS=TI();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return HS.bufferWhen}});var QS=jI();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return QS.catchError}});var qS=nI();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return qS.combineLatestAll}});var WS=sI();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return WS.combineLatestWith}});var NS=dH();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return NS.concatAll}});var BS=cq();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return BS.concatMap}});var FS=$U();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return FS.concatMapTo}});var GS=zU();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return GS.concatWith}});var LS=BU();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return LS.connect}});var wS=LU();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return wS.count}});var DS=IU();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return DS.debounce}});var IS=fU();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return IS.debounceTime}});var US=xU();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return US.defaultIfEmpty}});var OS=gU();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return OS.delay}});var kS=iq();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return kS.delayWhen}});var fS=iU();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return fS.dematerialize}});var ES=rU();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return ES.distinct}});var PS=nq();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return PS.distinctUntilChanged}});var VS=$O();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return VS.distinctUntilKeyChanged}});var xS=KO();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return xS.elementAt}});var MS=qO();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return MS.endWith}});var hS=FO();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return hS.every}});var AS=IO();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return AS.exhaustAll}});var vS=rq();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return vS.exhaustMap}});var CS=kO();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return CS.expand}});var TS=cH();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return TS.filter}});var RS=PO();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return RS.finalize}});var yS=sq();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return yS.find}});var mS=CO();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return mS.findIndex}});var jS=mO();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return jS.first}});var _S=SO();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return _S.groupBy}});var SS=lq();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return SS.ignoreElements}});var gS=cO();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return gS.isEmpty}});var bS=iO();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return bS.last}});var dS=VK();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return dS.map}});var cS=rO();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return cS.mapTo}});var uS=oO();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return uS.materialize}});var lS=$k();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return lS.max}});var pS=ZH();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return pS.mergeAll}});var iS=t$();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return iS.mergeMap}});var nS=Xk();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return nS.mergeMapTo}});var aS=Hk();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return aS.mergeScan}});var rS=Nk();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return rS.mergeWith}});var sS=Gk();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return sS.min}});var tS=_H();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return tS.observeOn}});var oS=Dk();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return oS.onErrorResumeNextWith}});var eS=kk();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return eS.pairwise}});var Zg=Pk();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return Zg.raceWith}});var $g=MK();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return $g.reduce}});var Jg=Mk();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return Jg.repeat}});var Yg=vk();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return Yg.repeatWhen}});var Xg=Rk();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return Xg.retry}});var zg=jk();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return zg.retryWhen}});var Kg=tq();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return Kg.sample}});var Hg=dk();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return Hg.sampleTime}});var Qg=lk();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return Qg.scan}});var qg=ak();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return qg.sequenceEqual}});var Wg=ZW();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return Wg.share}});var Ng=ek();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return Ng.shareReplay}});var Bg=Yf();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return Bg.single}});var Fg=Kf();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return Fg.skip}});var Gg=Wf();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return Gg.skipLast}});var Lg=Ff();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return Lg.skipUntil}});var wg=Df();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return wg.skipWhile}});var Dg=Of();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return Dg.startWith}});var Ig=SH();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return Ig.subscribeOn}});var Ug=Vf();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return Ug.switchAll}});var Og=KH();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return Og.switchMap}});var kg=hf();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return kg.switchMapTo}});var fg=Tf();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return fg.switchScan}});var Eg=uq();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return Eg.take}});var Pg=jf();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Pg.takeLast}});var Vg=gf();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return Vg.takeUntil}});var xg=uf();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return xg.takeWhile}});var Mg=nf();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return Mg.tap}});var hg=XW();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return hg.throttle}});var Ag=of();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Ag.throttleTime}});var vg=JE();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return vg.throwIfEmpty}});var Cg=KE();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return Cg.timeInterval}});var Tg=jH();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return Tg.timeout}});var Rg=qE();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return Rg.timeoutWith}});var yg=BE();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return yg.timestamp}});var mg=bq();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return mg.toArray}});var jg=wE();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return jg.window}});var _g=kE();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return _g.windowCount}});var Sg=VE();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return Sg.windowTime}});var gg=AE();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return gg.windowToggle}});var bg=TE();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return bg.windowWhen}});var dg=mE();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return dg.withLatestFrom}});var cg=SE();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return cg.zipAll}});var ug=dE();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return ug.zipWith}})});async function HW(Z,$,J){let{max:Y=4}=J??{},X=(K)=>A.defer(()=>A.from($(Z[K])).pipe(A.map((Q)=>({idx:K,v:Q})))),z=A.from(Z.map((K,Q)=>Q)).pipe(A.map(X),A.mergeAll(Y),A.reduce((K,Q)=>{return K[Q.idx]=Q.v,K},[]));return A.firstValueFrom(z)}class lE{opQueue=new A.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(A.mergeAll($),A.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=A.defer(()=>A.from(Z()).pipe(A.map((X)=>({id:$,result:X})),A.catchError((X)=>A.of({id:$,error:X})))),Y=A.firstValueFrom(this.opResultStream.pipe(A.filter((X)=>X.id===$))).then((X)=>{if(X.error)return Promise.reject(X.error);else return Promise.resolve(X.result)});return this.opQueue.next(J),Y}enqueueList(Z,$){if(Z.length===0)return Promise.resolve(new Map);return A.firstValueFrom(A.from(Z).pipe(A.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),A.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=A.lastValueFrom(this.opResultStream.pipe(A.materialize(),A.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var A;var pE=I(()=>{A=_N(uE(),1)});import{randomUUID as lg}from"crypto";function QQ(){return lg({disableEntropyCache:!0})}var iE=()=>{};function nE(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function QW(Z,$){let J=nE($);return`${Z}/.cursor/projects/${J}`}var hK=I(()=>{pE();iE()});var sE=q((aE)=>{Object.defineProperty(aE,"__esModule",{value:!0});aE._globalThis=void 0;aE._globalThis=typeof globalThis==="object"?globalThis:global});var tE=q((Z9)=>{var pg=Z9&&Z9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),ig=Z9&&Z9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))pg($,Z,J)};Object.defineProperty(Z9,"__esModule",{value:!0});ig(sE(),Z9)});var oE=q(($9)=>{var ng=$9&&$9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),ag=$9&&$9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))ng($,Z,J)};Object.defineProperty($9,"__esModule",{value:!0});ag(tE(),$9)});var qW=q((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.VERSION=void 0;eE.VERSION="1.9.0"});var zP=q((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.isCompatible=YP._makeCompatibilityCheck=void 0;var rg=qW(),$P=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function JP(Z){let $=new Set([Z]),J=new Set,Y=Z.match($P);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(W){return W===Z};function z(Q){return J.add(Q),!1}function K(Q){return $.add(Q),!0}return function(W){if($.has(W))return!0;if(J.has(W))return!1;let G=W.match($P);if(!G)return z(W);let L={major:+G[1],minor:+G[2],patch:+G[3],prerelease:G[4]};if(L.prerelease!=null)return z(W);if(X.major!==L.major)return z(W);if(X.major===0){if(X.minor===L.minor&&X.patch<=L.patch)return K(W);return z(W)}if(X.minor<=L.minor)return K(W);return z(W)}}YP._makeCompatibilityCheck=JP;YP.isCompatible=JP(rg.VERSION)});var J9=q((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.unregisterGlobal=KP.getGlobal=KP.registerGlobal=void 0;var tg=oE(),AK=qW(),og=zP(),eg=AK.VERSION.split(".")[0],HH=Symbol.for(`opentelemetry.js.api.${eg}`),QH=tg._globalThis;function Zb(Z,$,J,Y=!1){var X;let z=QH[HH]=(X=QH[HH])!==null&&X!==void 0?X:{version:AK.VERSION};if(!Y&&z[Z]){let K=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return J.error(K.stack||K.message),!1}if(z.version!==AK.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${AK.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${AK.VERSION}.`),!0}KP.registerGlobal=Zb;function $b(Z){var $,J;let Y=($=QH[HH])===null||$===void 0?void 0:$.version;if(!Y||!(0,og.isCompatible)(Y))return;return(J=QH[HH])===null||J===void 0?void 0:J[Z]}KP.getGlobal=$b;function Jb(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${AK.VERSION}.`);let J=QH[HH];if(J)delete J[Z]}KP.unregisterGlobal=Jb});var NP=q((qP)=>{Object.defineProperty(qP,"__esModule",{value:!0});qP.DiagComponentLogger=void 0;var zb=J9();class QP{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return qH("debug",this._namespace,Z)}error(...Z){return qH("error",this._namespace,Z)}info(...Z){return qH("info",this._namespace,Z)}warn(...Z){return qH("warn",this._namespace,Z)}verbose(...Z){return qH("verbose",this._namespace,Z)}}qP.DiagComponentLogger=QP;function qH(Z,$,J){let Y=(0,zb.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var qQ=q((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.DiagLogLevel=void 0;var Kb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})(Kb=BP.DiagLogLevel||(BP.DiagLogLevel={}))});var LP=q((FP)=>{Object.defineProperty(FP,"__esModule",{value:!0});FP.createLogLevelDiagLogger=void 0;var d6=qQ();function Hb(Z,$){if(Z<d6.DiagLogLevel.NONE)Z=d6.DiagLogLevel.NONE;else if(Z>d6.DiagLogLevel.ALL)Z=d6.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",d6.DiagLogLevel.ERROR),warn:J("warn",d6.DiagLogLevel.WARN),info:J("info",d6.DiagLogLevel.INFO),debug:J("debug",d6.DiagLogLevel.DEBUG),verbose:J("verbose",d6.DiagLogLevel.VERBOSE)}}FP.createLogLevelDiagLogger=Hb});var Y9=q((DP)=>{Object.defineProperty(DP,"__esModule",{value:!0});DP.DiagAPI=void 0;var Qb=NP(),qb=LP(),wP=qQ(),WQ=J9(),Wb="diag";class NW{constructor(){function Z(Y){return function(...X){let z=(0,WQ.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:wP.DiagLogLevel.INFO})=>{var z,K,Q;if(Y===$){let L=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=L.stack)!==null&&z!==void 0?z:L.message),!1}if(typeof X==="number")X={logLevel:X};let W=(0,WQ.getGlobal)("diag"),G=(0,qb.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:wP.DiagLogLevel.INFO,Y);if(W&&!X.suppressOverrideMessage){let L=(Q=Error().stack)!==null&&Q!==void 0?Q:"<failed to generate stacktrace>";W.warn(`Current logger will be overwritten from ${L}`),G.warn(`Current logger will overwrite one already registered from ${L}`)}return(0,WQ.registerGlobal)("diag",G,$,!0)};$.setLogger=J,$.disable=()=>{(0,WQ.unregisterGlobal)(Wb,$)},$.createComponentLogger=(Y)=>{return new Qb.DiagComponentLogger(Y)},$.verbose=Z("verbose"),$.debug=Z("debug"),$.info=Z("info"),$.warn=Z("warn"),$.error=Z("error")}static instance(){if(!this._instance)this._instance=new NW;return this._instance}}DP.DiagAPI=NW});var kP=q((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.BaggageImpl=void 0;class vK{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let $=this._entries.get(Z);if(!$)return;return Object.assign({},$)}getAllEntries(){return Array.from(this._entries.entries()).map(([Z,$])=>[Z,$])}setEntry(Z,$){let J=new vK(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new vK(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new vK(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new vK}}UP.BaggageImpl=vK});var PP=q((fP)=>{Object.defineProperty(fP,"__esModule",{value:!0});fP.baggageEntryMetadataSymbol=void 0;fP.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var BW=q((VP)=>{Object.defineProperty(VP,"__esModule",{value:!0});VP.baggageEntryMetadataFromString=VP.createBaggage=void 0;var Nb=Y9(),Bb=kP(),Fb=PP(),Gb=Nb.DiagAPI.instance();function Lb(Z={}){return new Bb.BaggageImpl(new Map(Object.entries(Z)))}VP.createBaggage=Lb;function wb(Z){if(typeof Z!=="string")Gb.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:Fb.baggageEntryMetadataSymbol,toString(){return Z}}}VP.baggageEntryMetadataFromString=wb});var WH=q((MP)=>{Object.defineProperty(MP,"__esModule",{value:!0});MP.ROOT_CONTEXT=MP.createContextKey=void 0;function Ib(Z){return Symbol.for(Z)}MP.createContextKey=Ib;class NQ{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new NQ($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new NQ($._currentContext);return Y._currentContext.delete(J),Y}}}MP.ROOT_CONTEXT=new NQ});var TP=q((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.DiagConsoleLogger=void 0;var FW=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class AP{constructor(){function Z($){return function(...J){if(console){let Y=console[$];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,J)}}}for(let $=0;$<FW.length;$++)this[FW[$].n]=Z(FW[$].c)}}vP.DiagConsoleLogger=AP});var fW=q((RP)=>{Object.defineProperty(RP,"__esModule",{value:!0});RP.createNoopMeter=RP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=RP.NOOP_OBSERVABLE_GAUGE_METRIC=RP.NOOP_OBSERVABLE_COUNTER_METRIC=RP.NOOP_UP_DOWN_COUNTER_METRIC=RP.NOOP_HISTOGRAM_METRIC=RP.NOOP_GAUGE_METRIC=RP.NOOP_COUNTER_METRIC=RP.NOOP_METER=RP.NoopObservableUpDownCounterMetric=RP.NoopObservableGaugeMetric=RP.NoopObservableCounterMetric=RP.NoopObservableMetric=RP.NoopHistogramMetric=RP.NoopGaugeMetric=RP.NoopUpDownCounterMetric=RP.NoopCounterMetric=RP.NoopMetric=RP.NoopMeter=void 0;class GW{constructor(){}createGauge(Z,$){return RP.NOOP_GAUGE_METRIC}createHistogram(Z,$){return RP.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return RP.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return RP.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return RP.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return RP.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return RP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}RP.NoopMeter=GW;class CK{}RP.NoopMetric=CK;class LW extends CK{add(Z,$){}}RP.NoopCounterMetric=LW;class wW extends CK{add(Z,$){}}RP.NoopUpDownCounterMetric=wW;class DW extends CK{record(Z,$){}}RP.NoopGaugeMetric=DW;class IW extends CK{record(Z,$){}}RP.NoopHistogramMetric=IW;class NH{addCallback(Z){}removeCallback(Z){}}RP.NoopObservableMetric=NH;class UW extends NH{}RP.NoopObservableCounterMetric=UW;class OW extends NH{}RP.NoopObservableGaugeMetric=OW;class kW extends NH{}RP.NoopObservableUpDownCounterMetric=kW;RP.NOOP_METER=new GW;RP.NOOP_COUNTER_METRIC=new LW;RP.NOOP_GAUGE_METRIC=new DW;RP.NOOP_HISTOGRAM_METRIC=new IW;RP.NOOP_UP_DOWN_COUNTER_METRIC=new wW;RP.NOOP_OBSERVABLE_COUNTER_METRIC=new UW;RP.NOOP_OBSERVABLE_GAUGE_METRIC=new OW;RP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new kW;function Ob(){return RP.NOOP_METER}RP.createNoopMeter=Ob});var lP=q((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.ValueType=void 0;var Cb;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(Cb=uP.ValueType||(uP.ValueType={}))});var PW=q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.defaultTextMapSetter=pP.defaultTextMapGetter=void 0;pP.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};pP.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var sP=q((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.NoopContextManager=void 0;var Rb=WH();class nP{active(){return Rb.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}aP.NoopContextManager=nP});var BH=q((oP)=>{Object.defineProperty(oP,"__esModule",{value:!0});oP.ContextAPI=void 0;var yb=sP(),VW=J9(),tP=Y9(),xW="context",mb=new yb.NoopContextManager;class MW{constructor(){}static getInstance(){if(!this._instance)this._instance=new MW;return this._instance}setGlobalContextManager(Z){return(0,VW.registerGlobal)(xW,Z,tP.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,$,J,...Y){return this._getContextManager().with(Z,$,J,...Y)}bind(Z,$){return this._getContextManager().bind(Z,$)}_getContextManager(){return(0,VW.getGlobal)(xW)||mb}disable(){this._getContextManager().disable(),(0,VW.unregisterGlobal)(xW,tP.DiagAPI.instance())}}oP.ContextAPI=MW});var AW=q((ZV)=>{Object.defineProperty(ZV,"__esModule",{value:!0});ZV.TraceFlags=void 0;var jb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(jb=ZV.TraceFlags||(ZV.TraceFlags={}))});var BQ=q(($V)=>{Object.defineProperty($V,"__esModule",{value:!0});$V.INVALID_SPAN_CONTEXT=$V.INVALID_TRACEID=$V.INVALID_SPANID=void 0;var _b=AW();$V.INVALID_SPANID="0000000000000000";$V.INVALID_TRACEID="00000000000000000000000000000000";$V.INVALID_SPAN_CONTEXT={traceId:$V.INVALID_TRACEID,spanId:$V.INVALID_SPANID,traceFlags:_b.TraceFlags.NONE}});var FQ=q((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});KV.NonRecordingSpan=void 0;var Sb=BQ();class zV{constructor(Z=Sb.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,$){return this}setAttributes(Z){return this}addEvent(Z,$){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,$){}}KV.NonRecordingSpan=zV});var TW=q((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.getSpanContext=qV.setSpanContext=qV.deleteSpan=qV.setSpan=qV.getActiveSpan=qV.getSpan=void 0;var gb=WH(),bb=FQ(),db=BH(),vW=(0,gb.createContextKey)("OpenTelemetry Context Key SPAN");function CW(Z){return Z.getValue(vW)||void 0}qV.getSpan=CW;function cb(){return CW(db.ContextAPI.getInstance().active())}qV.getActiveSpan=cb;function QV(Z,$){return Z.setValue(vW,$)}qV.setSpan=QV;function ub(Z){return Z.deleteValue(vW)}qV.deleteSpan=ub;function lb(Z,$){return QV(Z,new bb.NonRecordingSpan($))}qV.setSpanContext=lb;function pb(Z){var $;return($=CW(Z))===null||$===void 0?void 0:$.spanContext()}qV.getSpanContext=pb});var GQ=q((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.wrapSpanContext=GV.isSpanContextValid=GV.isValidSpanId=GV.isValidTraceId=void 0;var NV=BQ(),tb=FQ(),ob=/^([0-9a-f]{32})$/i,eb=/^[0-9a-f]{16}$/i;function BV(Z){return ob.test(Z)&&Z!==NV.INVALID_TRACEID}GV.isValidTraceId=BV;function FV(Z){return eb.test(Z)&&Z!==NV.INVALID_SPANID}GV.isValidSpanId=FV;function Zd(Z){return BV(Z.traceId)&&FV(Z.spanId)}GV.isSpanContextValid=Zd;function $d(Z){return new tb.NonRecordingSpan(Z)}GV.wrapSpanContext=$d});var mW=q((IV)=>{Object.defineProperty(IV,"__esModule",{value:!0});IV.NoopTracer=void 0;var zd=BH(),wV=TW(),RW=FQ(),Kd=GQ(),yW=zd.ContextAPI.getInstance();class DV{startSpan(Z,$,J=yW.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new RW.NonRecordingSpan;let X=J&&(0,wV.getSpanContext)(J);if(Hd(X)&&(0,Kd.isSpanContextValid)(X))return new RW.NonRecordingSpan(X);else return new RW.NonRecordingSpan}startActiveSpan(Z,$,J,Y){let X,z,K;if(arguments.length<2)return;else if(arguments.length===2)K=$;else if(arguments.length===3)X=$,K=J;else X=$,z=J,K=Y;let Q=z!==null&&z!==void 0?z:yW.active(),W=this.startSpan(Z,X,Q),G=(0,wV.setSpan)(Q,W);return yW.with(G,K,void 0,W)}}IV.NoopTracer=DV;function Hd(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var jW=q((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});kV.ProxyTracer=void 0;var Qd=mW(),qd=new Qd.NoopTracer;class OV{constructor(Z,$,J,Y){this._provider=Z,this.name=$,this.version=J,this.options=Y}startSpan(Z,$,J){return this._getTracer().startSpan(Z,$,J)}startActiveSpan(Z,$,J,Y){let X=this._getTracer();return Reflect.apply(X.startActiveSpan,X,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return qd;return this._delegate=Z,this._delegate}}kV.ProxyTracer=OV});var xV=q((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.NoopTracerProvider=void 0;var Wd=mW();class EV{getTracer(Z,$,J){return new Wd.NoopTracer}}PV.NoopTracerProvider=EV});var _W=q((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.ProxyTracerProvider=void 0;var Nd=jW(),Bd=xV(),Fd=new Bd.NoopTracerProvider;class MV{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Nd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Fd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}hV.ProxyTracerProvider=MV});var CV=q((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.SamplingDecision=void 0;var Gd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Gd=vV.SamplingDecision||(vV.SamplingDecision={}))});var RV=q((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.SpanKind=void 0;var Ld;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})(Ld=TV.SpanKind||(TV.SpanKind={}))});var mV=q((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.SpanStatusCode=void 0;var wd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(wd=yV.SpanStatusCode||(yV.SpanStatusCode={}))});var SV=q((jV)=>{Object.defineProperty(jV,"__esModule",{value:!0});jV.validateValue=jV.validateKey=void 0;var dW="[_0-9a-z-*/]",Dd=`[a-z]${dW}{0,255}`,Id=`[a-z0-9]${dW}{0,240}@[a-z]${dW}{0,13}`,Ud=new RegExp(`^(?:${Dd}|${Id})$`),Od=/^[ -~]{0,255}[!-~]$/,kd=/,|=/;function fd(Z){return Ud.test(Z)}jV.validateKey=fd;function Ed(Z){return Od.test(Z)&&!kd.test(Z)}jV.validateValue=Ed});var pV=q((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});uV.TraceStateImpl=void 0;var gV=SV(),bV=32,Vd=512,dV=",",cV="=";class cW{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,$){let J=this._clone();if(J._internalState.has(Z))J._internalState.delete(Z);return J._internalState.set(Z,$),J}unset(Z){let $=this._clone();return $._internalState.delete(Z),$}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,$)=>{return Z.push($+cV+this.get($)),Z},[]).join(dV)}_parse(Z){if(Z.length>Vd)return;if(this._internalState=Z.split(dV).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(cV);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,gV.validateKey)(z)&&(0,gV.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>bV)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,bV))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new cW;return Z._internalState=new Map(this._internalState),Z}}uV.TraceStateImpl=cW});var aV=q((iV)=>{Object.defineProperty(iV,"__esModule",{value:!0});iV.createTraceState=void 0;var xd=pV();function Md(Z){return new xd.TraceStateImpl(Z)}iV.createTraceState=Md});var tV=q((rV)=>{Object.defineProperty(rV,"__esModule",{value:!0});rV.context=void 0;var hd=BH();rV.context=hd.ContextAPI.getInstance()});var Z4=q((oV)=>{Object.defineProperty(oV,"__esModule",{value:!0});oV.diag=void 0;var Ad=Y9();oV.diag=Ad.DiagAPI.instance()});var Y4=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.NOOP_METER_PROVIDER=$4.NoopMeterProvider=void 0;var vd=fW();class uW{getMeter(Z,$,J){return vd.NOOP_METER}}$4.NoopMeterProvider=uW;$4.NOOP_METER_PROVIDER=new uW});var H4=q((z4)=>{Object.defineProperty(z4,"__esModule",{value:!0});z4.MetricsAPI=void 0;var Td=Y4(),lW=J9(),X4=Y9(),pW="metrics";class iW{constructor(){}static getInstance(){if(!this._instance)this._instance=new iW;return this._instance}setGlobalMeterProvider(Z){return(0,lW.registerGlobal)(pW,Z,X4.DiagAPI.instance())}getMeterProvider(){return(0,lW.getGlobal)(pW)||Td.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,lW.unregisterGlobal)(pW,X4.DiagAPI.instance())}}z4.MetricsAPI=iW});var W4=q((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.metrics=void 0;var Rd=H4();Q4.metrics=Rd.MetricsAPI.getInstance()});var G4=q((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.NoopTextMapPropagator=void 0;class N4{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}B4.NoopTextMapPropagator=N4});var I4=q((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.deleteBaggage=w4.setBaggage=w4.getActiveBaggage=w4.getBaggage=void 0;var yd=BH(),md=WH(),nW=(0,md.createContextKey)("OpenTelemetry Baggage Key");function L4(Z){return Z.getValue(nW)||void 0}w4.getBaggage=L4;function jd(){return L4(yd.ContextAPI.getInstance().active())}w4.getActiveBaggage=jd;function _d(Z,$){return Z.setValue(nW,$)}w4.setBaggage=_d;function Sd(Z){return Z.deleteValue(nW)}w4.deleteBaggage=Sd});var E4=q((k4)=>{Object.defineProperty(k4,"__esModule",{value:!0});k4.PropagationAPI=void 0;var aW=J9(),cd=G4(),U4=PW(),LQ=I4(),ud=BW(),O4=Y9(),rW="propagation",ld=new cd.NoopTextMapPropagator;class sW{constructor(){this.createBaggage=ud.createBaggage,this.getBaggage=LQ.getBaggage,this.getActiveBaggage=LQ.getActiveBaggage,this.setBaggage=LQ.setBaggage,this.deleteBaggage=LQ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new sW;return this._instance}setGlobalPropagator(Z){return(0,aW.registerGlobal)(rW,Z,O4.DiagAPI.instance())}inject(Z,$,J=U4.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=U4.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,aW.unregisterGlobal)(rW,O4.DiagAPI.instance())}_getGlobalPropagator(){return(0,aW.getGlobal)(rW)||ld}}k4.PropagationAPI=sW});var x4=q((P4)=>{Object.defineProperty(P4,"__esModule",{value:!0});P4.propagation=void 0;var pd=E4();P4.propagation=pd.PropagationAPI.getInstance()});var T4=q((v4)=>{Object.defineProperty(v4,"__esModule",{value:!0});v4.TraceAPI=void 0;var tW=J9(),M4=_W(),h4=GQ(),TK=TW(),A4=Y9(),oW="trace";class eW{constructor(){this._proxyTracerProvider=new M4.ProxyTracerProvider,this.wrapSpanContext=h4.wrapSpanContext,this.isSpanContextValid=h4.isSpanContextValid,this.deleteSpan=TK.deleteSpan,this.getSpan=TK.getSpan,this.getActiveSpan=TK.getActiveSpan,this.getSpanContext=TK.getSpanContext,this.setSpan=TK.setSpan,this.setSpanContext=TK.setSpanContext}static getInstance(){if(!this._instance)this._instance=new eW;return this._instance}setGlobalTracerProvider(Z){let $=(0,tW.registerGlobal)(oW,this._proxyTracerProvider,A4.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,tW.getGlobal)(oW)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,tW.unregisterGlobal)(oW,A4.DiagAPI.instance()),this._proxyTracerProvider=new M4.ProxyTracerProvider}}v4.TraceAPI=eW});var m4=q((R4)=>{Object.defineProperty(R4,"__esModule",{value:!0});R4.trace=void 0;var id=T4();R4.trace=id.TraceAPI.getInstance()});var u4=q((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.trace=j.propagation=j.metrics=j.diag=j.context=j.INVALID_SPAN_CONTEXT=j.INVALID_TRACEID=j.INVALID_SPANID=j.isValidSpanId=j.isValidTraceId=j.isSpanContextValid=j.createTraceState=j.TraceFlags=j.SpanStatusCode=j.SpanKind=j.SamplingDecision=j.ProxyTracerProvider=j.ProxyTracer=j.defaultTextMapSetter=j.defaultTextMapGetter=j.ValueType=j.createNoopMeter=j.DiagLogLevel=j.DiagConsoleLogger=j.ROOT_CONTEXT=j.createContextKey=j.baggageEntryMetadataFromString=void 0;var nd=BW();Object.defineProperty(j,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return nd.baggageEntryMetadataFromString}});var j4=WH();Object.defineProperty(j,"createContextKey",{enumerable:!0,get:function(){return j4.createContextKey}});Object.defineProperty(j,"ROOT_CONTEXT",{enumerable:!0,get:function(){return j4.ROOT_CONTEXT}});var ad=TP();Object.defineProperty(j,"DiagConsoleLogger",{enumerable:!0,get:function(){return ad.DiagConsoleLogger}});var rd=qQ();Object.defineProperty(j,"DiagLogLevel",{enumerable:!0,get:function(){return rd.DiagLogLevel}});var sd=fW();Object.defineProperty(j,"createNoopMeter",{enumerable:!0,get:function(){return sd.createNoopMeter}});var td=lP();Object.defineProperty(j,"ValueType",{enumerable:!0,get:function(){return td.ValueType}});var _4=PW();Object.defineProperty(j,"defaultTextMapGetter",{enumerable:!0,get:function(){return _4.defaultTextMapGetter}});Object.defineProperty(j,"defaultTextMapSetter",{enumerable:!0,get:function(){return _4.defaultTextMapSetter}});var od=jW();Object.defineProperty(j,"ProxyTracer",{enumerable:!0,get:function(){return od.ProxyTracer}});var ed=_W();Object.defineProperty(j,"ProxyTracerProvider",{enumerable:!0,get:function(){return ed.ProxyTracerProvider}});var Zc=CV();Object.defineProperty(j,"SamplingDecision",{enumerable:!0,get:function(){return Zc.SamplingDecision}});var $c=RV();Object.defineProperty(j,"SpanKind",{enumerable:!0,get:function(){return $c.SpanKind}});var Jc=mV();Object.defineProperty(j,"SpanStatusCode",{enumerable:!0,get:function(){return Jc.SpanStatusCode}});var Yc=AW();Object.defineProperty(j,"TraceFlags",{enumerable:!0,get:function(){return Yc.TraceFlags}});var Xc=aV();Object.defineProperty(j,"createTraceState",{enumerable:!0,get:function(){return Xc.createTraceState}});var ZN=GQ();Object.defineProperty(j,"isSpanContextValid",{enumerable:!0,get:function(){return ZN.isSpanContextValid}});Object.defineProperty(j,"isValidTraceId",{enumerable:!0,get:function(){return ZN.isValidTraceId}});Object.defineProperty(j,"isValidSpanId",{enumerable:!0,get:function(){return ZN.isValidSpanId}});var $N=BQ();Object.defineProperty(j,"INVALID_SPANID",{enumerable:!0,get:function(){return $N.INVALID_SPANID}});Object.defineProperty(j,"INVALID_TRACEID",{enumerable:!0,get:function(){return $N.INVALID_TRACEID}});Object.defineProperty(j,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return $N.INVALID_SPAN_CONTEXT}});var S4=tV();Object.defineProperty(j,"context",{enumerable:!0,get:function(){return S4.context}});var g4=Z4();Object.defineProperty(j,"diag",{enumerable:!0,get:function(){return g4.diag}});var b4=W4();Object.defineProperty(j,"metrics",{enumerable:!0,get:function(){return b4.metrics}});var d4=x4();Object.defineProperty(j,"propagation",{enumerable:!0,get:function(){return d4.propagation}});var c4=m4();Object.defineProperty(j,"trace",{enumerable:!0,get:function(){return c4.trace}});j.default={context:S4.context,diag:g4.diag,metrics:b4.metrics,propagation:d4.propagation,trace:c4.trace}});function i4(Z){if(FH+Z>wQ.length)crypto.getRandomValues(wQ),FH=0;let $="",J=FH+Z;for(let Y=FH;Y<J;Y++)$+=qc[wQ[Y]];return FH=J,$}function p4(Z,$){if(Z===void 0)return $;if(typeof Z==="number")return Z;if(Z instanceof Date)return Z.getTime();let[J,Y]=Z;return J*1000+Y/1e6}class n4{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:f0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=i4(8),this._parentSpanId=Y,this._kind=$.kind||f0.SpanKind.INTERNAL,this._startTime=p4($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{GH?.spanStarted({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}notifySpanUpdated(){try{GH?.spanUpdated({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}spanContext(){return{traceId:this._traceId,spanId:this._spanId,traceFlags:1,isRemote:!1}}setAttribute(Z,$){if(!this._ended)this._attributes[Z]=String($),this.notifySpanUpdated();return this}setAttributes(Z){if(!this._ended){for(let[$,J]of Object.entries(Z))this._attributes[$]=String(J);this.notifySpanUpdated()}return this}addEvent(){return this}addLink(){return this}addLinks(){return this}setStatus(Z){if(!this._ended)this._status=Z;return this}updateName(Z){if(!this._ended)this._name=Z,this.notifySpanUpdated();return this}end(Z){if(this._ended)return;this._ended=!0,this._endTime=p4(Z,Date.now());let $=this._endTime,J={traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,endTime:$,attributes:{...this._attributes},error:this._status.code===f0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{GH?.spanEnded(J)}catch{}if(l4)try{l4(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class a4{startSpan(Z,$,J){let Y=J||f0.context.active(),X=f0.trace.getSpanContext(Y),z,K,Q;if(X?.traceId)z=X.traceId,K=X.spanId,Q=(X.traceFlags&1)===1||GH!==void 0;else Q=GH!==void 0||Qc?.(Z)||Math.random()<Hc,z=i4(16);if(!Q)return f0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new n4(Z,$||{},z,K)}startActiveSpan(Z,...$){let J={},Y,X;if($.length===1)X=$[0];else if($.length===2)J=$[0],X=$[1];else J=$[0],Y=$[1],X=$[2];let z=this.startSpan(Z,J,Y),K=f0.trace.setSpan(Y||f0.context.active(),z);return f0.context.with(K,()=>{try{let Q=X(z);if(Q&&typeof Q.then==="function")return Q.then((W)=>{return z.end(),W},(W)=>{throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:W?.message}),z.end(),W});return z.end(),Q}catch(Q){throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:Q?.message}),z.end(),Q}})}}class Wc{tracer=new a4;getTracer(){return this.tracer}}var f0,l4,GH,Hc=0.01,Qc,qc,wQ,FH;var r4=I(()=>{f0=_N(u4(),1),qc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),wQ=new Uint8Array(1024),FH=wQ.length});function h6(Z,$){return{symbol:Z,defaultValue:$}}function JN(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),$;let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)}}}class O8{values;signal;parent;name;constructor(Z,$,J,Y){if(this.parent=Z,this.values=J||new Map,this.name=Y,$)this.signal=$;else if(Z)this.signal=Z.signal;else this.signal=new AbortController().signal}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(Z){if(this.values.has(Z.symbol))return this.values.get(Z.symbol);if(this.parent)return this.parent.get(Z);return Z.defaultValue}with(Z,$){let J=new Map(this.values);return J.set(Z.symbol,$),new O8(this,void 0,J)}withCancel(){let Z=JN(this.signal);return[new O8(this,Z.signal),(J)=>Z.abort(J)]}withTimeout(Z){let $=JN(this.signal),J=new O8(this,$.signal),Y=setTimeout(()=>{$.abort(Error("context deadline exceeded"))},Z);return $.signal.addEventListener("abort",()=>{clearTimeout(Y)},{once:!0}),J}withDeadline(Z){let $=Z.getTime()-Date.now();if($<=0){let J=JN(this.signal);return J.abort(Error("context deadline exceeded")),new O8(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new O8(this,void 0,void 0,Z)}withDetached(){return new O8(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function c6(){return new O8}function wc(Z){if(typeof Z==="boolean")return Z;if(typeof process>"u")return!1;let $=process.env??{};if("NO_COLOR"in $)return!1;if($.TERM==="dumb")return!1;let J=$.FORCE_COLOR;if(J==="1"||J==="true")return!0;if(J==="0")return!1;return Boolean(process.stdout?.isTTY)}function Dc(Z){let J=(P)=>(V)=>Z?`\x1B[${P.join(";")}m${V}\x1B[0m`:V,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),Q=J([33]),W=J([34]),G=J([35]),L=J([36]),O=J([1]),f=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:Q,blue:W,magenta:G,cyan:L,bold:O,level:(P,V)=>{switch(P){case"debug":return G(V);case"info":return W(V);case"warn":return Q(V);case"error":return f(V);default:return P}}}}function Ic(Z){return{indent:" ".repeat(Z.indent??Nc),maxDepth:Z.maxDepth??Bc,maxEntries:Z.maxEntries??Fc,maxArrayLength:Z.maxArrayLength??Gc,maxStringLength:Z.maxStringLength??Lc,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Uc(Z){return Z.toISOString().slice(11,23)}function s4(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function YN(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Oc(Z){return typeof Z==="object"&&Z!==null&&Z.kind==="summary"&&typeof Z.summary==="string"}function kc(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function fc(Z,$,J,Y){if(!$.inlineSerializer)return Z;try{let X=$.inlineSerializer(Z,{path:J,depth:Y});return X===void 0?Z:X}catch{return Z}}function k8(Z,$,J,Y,X,z){let K=fc(Z,$,z,Y);if(Oc(K))return J.dim(`<${K.summary}>`);if(Z=K,Z===null)return J.gray("null");if(Z===void 0)return J.gray("undefined");if(typeof Z==="string"){let Q=kc(Z,$.maxStringLength);return J.green(JSON.stringify(Q))}if(typeof Z==="number")return J.yellow(String(Z));if(typeof Z==="boolean")return J.magenta(String(Z));if(typeof Z==="bigint")return J.yellow(`${Z}n`);if(typeof Z==="symbol")return J.cyan(Z.toString());if(typeof Z==="function"){let Q=Z.name?` ${Z.name}`:"";return J.dim(`[Function${Q}]`)}if(Z instanceof Date){let Q=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(Q)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(YN(Z))return o4(Z,$,J,Y,X,z);if(Array.isArray(Z))return t4(Z,$,J,Y,X,z);if(typeof ArrayBuffer<"u"&&Z instanceof ArrayBuffer)return J.dim(`ArrayBuffer(${Z.byteLength})`);if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&ArrayBuffer.isView(Z)){let Q=Z,W=Q.constructor?.name??"TypedArray";return J.dim(`${W}(${Q.byteLength})`)}if(Z instanceof Map)return Ec(Z,$,J,Y,X,z);if(Z instanceof Set)return t4(Array.from(Z.values()),$,J,Y,X,z);return Pc(Z,$,J,Y,X,z)}function o4(Z,$,J,Y,X,z){let K=Z;if(X.has(K))return J.dim("[Circular]");X.add(K);let Q=typeof Z.name==="string"?Z.name:"Error",W=typeof Z.message==="string"?Z.message:"",G=W?`${Q}: ${W}`:Q,L=J.red(G);if("cause"in Z&&Z.cause!==void 0){let O=k8(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${O}`}return X.delete(K),L}function t4(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`[Array(${Z.length})]`);if(X.has(Z))return J.dim("[Circular]");if(X.add(Z),Z.length===0){let L=J.dim("[]");return X.delete(Z),L}let K=Math.min(Z.length,$.maxArrayLength),Q=Z.slice(0,K).map((L,O)=>k8(L,$,J,Y+1,X,z.concat(O)));if(Z.length>K)Q.push(J.dim(`... ${Z.length-K} more`));let W=J.dim(", "),G=`${J.dim("[")}${Q.join(W)}${J.dim("]")}`;return X.delete(Z),G}function Ec(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`Map(${Z.size})`);if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Array.from(Z.entries()),Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,f])=>{let P=k8(O,$,J,Y+1,X,z.concat("<key>")),V=k8(f,$,J,Y+1,X,z.concat(String(O)));return`${P} ${J.dim("=>")} ${V}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),L=`${J.dim("Map{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),L}function Pc(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let O=Z?.constructor?.name??"Object";return J.dim(`[${O}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let O=J.dim("{}");return X.delete(Z),O}let Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,f])=>{let P=k8(f,$,J,Y+1,X,z.concat(O));return`${J.cyan(O)}: ${P}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),L=`${J.dim("{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),L}function Vc(Z={}){let $=Ic(Z),J=Dc(wc(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Uc(z.timestamp)));let Q=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,Q));let W=z.level==="error"?J.bold(z.message):z.message;if(K.push(W),$.includeContextPath&&s4(z.context)){let f=z.context.getPath();if(f.length>0)K.push(J.dim(`ctx=${f.join("/")}`))}let G=new WeakSet;if(!s4(z.context)&&z.context&&Object.keys(z.context).length>0){let f=k8(z.context,$,J,0,G,["context"]);K.push(`${J.dim("context=")}${f}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let f=k8(z.metadata,$,J,0,G,["metadata"]);K.push(`${J.dim("meta=")}${f}`)}let L=[K.join(" ")];if(z.error!==void 0){let f=YN(z.error)?o4(z.error,$,J,0,G,["error"]):k8(z.error,$,J,0,G,["error"]);if(L[0]=`${L[0]} ${J.dim("error=")}${f}`,YN(z.error)&&typeof z.error.stack==="string"){let P=z.error.stack.split(`
|
|
5
5
|
`).slice(1);for(let V of P){let T=V.trim();if(T)L.push(`${$.indent}${J.dim(T)}`)}}}let O=L.join(`
|
|
6
|
-
`);switch(z.level){case"debug":case"info":Y.log(O);break;case"warn":Y.warn(O);break;case"error":Y.error(O);break;default:{let f=z.level;throw Error(`Unhandled log level: ${f}`)}}}}}function Pc(Z){return Z.get(Ec)}function u0(Z){function $(J,Y){let X=new Date;Pc(J).log(J,{...Y,timestamp:X,logger:Z})}return{debug:(J,Y,X)=>{$(J,{level:"debug",message:Y,context:J,metadata:X})},info:(J,Y,X)=>{$(J,{level:"info",message:Y,context:J,metadata:X})},warn:(J,Y,X)=>{$(J,{level:"warn",message:Y,context:J,metadata:X})},error:(J,Y,X,z)=>{$(J,{level:"error",message:Y,context:J,error:X,metadata:z})}}}var Kc=2,Hc=6,Qc=50,qc=40,Wc=200,kc,fc,Ec;var r4=U(()=>{w8();kc=Oc(),fc={log:(Z,$)=>kc.log(Z,$)},Ec=h8(Symbol("loggerBackend"),fc)});var BZ0,FZ0,GZ0,LZ0,wZ0;var s4=U(()=>{BZ0=h8(Symbol("otel.span"),void 0),FZ0=h8(Symbol("otel.root_span"),void 0),GZ0=h8(Symbol("otel.root_start_ms"),void 0),LZ0=h8(Symbol("otel.suppress_child_spans"),!1),wZ0=h8(Symbol("otel.inheritable_span_attributes"),{})});var w8=U(()=>{p4();r4();s4()});function wQ(Z){return Z.get(xc)}function f6(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{wQ(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{wQ(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{wQ(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{wQ(Y).record(Y,J,X,z)}}}var Vc,xc;var X9=U(()=>{w8();Vc={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},xc=h8(Symbol("metricsBackend"),Vc)});class YN{serialize(Z){return hc.encode(Z)}deserialize(Z){return Mc.decode(Z)}getBlobType(){return{kind:"string"}}}class D8{proto;constructor(Z){this.proto=Z}serialize(Z){return Z.toBinary()}deserialize(Z){return this.proto.fromBinary(Z)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function Q0(Z){if(typeof Buffer<"u")return Buffer.from(Z).toString("hex");let $="";for(let J=0;J<Z.length;J++)$+=Ac[Z[J]];return $}function l0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");let J=new Uint8Array($.length/2);for(let Y=0;Y<$.length;Y+=2)J[Y/2]=parseInt($.slice(Y,Y+2),16);return J}var Mc,hc,DQ,Ac;var TK=U(()=>{Mc=new TextDecoder,hc=new TextEncoder;DQ=new YN;Ac=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"))});function UQ(Z){let $=Z.buffer;if(typeof SharedArrayBuffer<"u"&&$ instanceof SharedArrayBuffer)return new Uint8Array(Z);return new Uint8Array($,Z.byteOffset,Z.byteLength)}async function LH(Z){let $=await crypto.subtle.digest("SHA-256",UQ(Z));return new Uint8Array($)}var TZ0,RZ0;var RK=U(()=>{X9();TK();TZ0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),RZ0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function vc(Z){if(Z.length===0)return"";let $=Z.slice(0,3).map((Y)=>Y.slice(0,12));return` (${Z.length===1?`missing blob ${$[0]}`:`${Z.length} missing blobs: ${$.join(", ")}${Z.length>$.length?", \u2026":""}`})`}var wH;var IQ=U(()=>{wH=class wH extends Error{isUsageError=!0;isBlobNotFound=!0;blobIdHexes;constructor(Z,$){super(`This conversation's data is missing and can't be restored. Start a new chat to continue.${vc(Z)}`,$?.cause!==void 0?{cause:$.cause}:void 0);this.name="BlobNotFoundError",this.blobIdHexes=[...Z]}}});async function XN(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await KW(X,async([W,G])=>{let L=await J.getBlob(Z,G);if(L===void 0){if(Y[W]===void 0)return{kind:"missing",blobIdHex:Q0(G)};return Cc.warn(Z,"Subagent state ref blob not found; falling back to inline entry",{subagentId:W}),{kind:"fallback"}}try{return{kind:"loaded",subagentId:W,state:L6.fromBinary(L)}}catch(O){return{kind:"failed",error:O}}},{max:t4}),K=z.flatMap((W)=>W.kind==="missing"?[W.blobIdHex]:[]);if(K.length>0)throw new wH(K);let Q=z.find((W)=>W.kind==="failed");if(Q!==void 0&&Q.kind==="failed")throw Q.error;for(let W of z)if(W.kind==="loaded")Y[W.subagentId]=W.state;return Y}var t4=8,Cc;var zN=U(()=>{w8();AH();KH();IQ();TK();Cc=u0("@anysphere/agent-kv:subagent-states")});import{z as e}from"zod";function Rc(){let Z=new Uint8Array(o4);return crypto.getRandomValues(Z),Q0(Z)}function e4(Z){return typeof Z==="string"&&Z.length===o4*2&&Tc.test(Z)}function yc(){if(KN===null)KN=e.object({agentId:e.string(),latestRootBlobId:e.custom((Z)=>Z instanceof Uint8Array,{message:"Expected Uint8Array"}),name:e.string(),createdAt:e.number(),mode:e.enum(HN),isRunEverything:e.boolean(),approvalMode:e.enum(QN).optional(),lastUsedModel:e.string().optional(),lastDebugServerPort:e.number().int().positive().optional(),currentPlanUri:e.string().optional(),subagentInfo:e.union([e.object({parentAgentId:e.string().min(1),rootParentAgentId:e.string().min(1),toolCallId:e.string().min(1),typeName:e.string().min(1)}),e.undefined()]),blobEncryptionKey:e.string().optional()});return KN}function jc(Z){return mc.has(Z)}function Sc(Z){return _c.has(Z)}function gc(Z){if(!Z||typeof Z!=="object")return;let $=Z;if(typeof $.parentAgentId!=="string"||$.parentAgentId.length===0||typeof $.rootParentAgentId!=="string"||$.rootParentAgentId.length===0||typeof $.toolCallId!=="string"||$.toolCallId.length===0||typeof $.typeName!=="string"||$.typeName.length===0)return;return{parentAgentId:$.parentAgentId,rootParentAgentId:$.rootParentAgentId,toolCallId:$.toolCallId,typeName:$.typeName}}class OQ{serialize(Z){let $=Q0(Z.latestRootBlobId);return DQ.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(DQ.deserialize(Z)),J=DH($.agentId),Y=typeof $.latestRootBlobId==="string"?l0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&jc(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&Sc(Q)?Q:void 0,G=gc($.subagentInfo),L=e4($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return yc().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:G,blobEncryptionKey:L})}getBlobType(){return{kind:"json"}}}async function $x(Z,$,J){let Y=new F6,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let G=Zx.deserialize(W),L;switch(G.turn.case){case"agentConversationTurn":{let O=G.turn.value,f=await J.getBlob(Z,O.userMessage);if(!f)continue;let P=dc.deserialize(f),V=[];for(let E0 of O.steps){let X0=await J.getBlob(Z,E0);if(X0){let tx=cc.deserialize(X0);V.push(tx)}}let T=new W6({userMessage:P,steps:V});L=new _8({turn:{case:"agentConversationTurn",value:T}});break}case"shellConversationTurn":{let O=G.turn.value,f=await J.getBlob(Z,O.shellCommand);if(!f)continue;let P=lc.deserialize(f),V=await J.getBlob(Z,O.shellOutput);if(!V)continue;let T=pc.deserialize(V),E0=new N6({shellCommand:P,shellOutput:T});L=new _8({turn:{case:"shellConversationTurn",value:E0}});break}}if(!L)continue;X.push(L)}Y.turns=X;let K=[];for(let Q of $.todos){let W=await J.getBlob(Z,Q);if(W){let G=bc.deserialize(W);K.push(G)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=uc.deserialize(Q);Y.summary=W}}return Y}class UH{blobStore;metadataStore;conversationStateStructure;serde=new D8(m0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new m0,this.fixedRootBlobId=J.fixedRootBlobId}subscribeToMetadata(Z,$){return this.metadataStore.subscribe(Z,()=>{$(this.metadataStore.get(Z))})}setMetadata(Z,$){this.metadataStore.set(Z,$)}getMetadata(Z){return this.metadataStore.get(Z)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}async getLastRequestIdFromConversation(Z){let $=this.conversationStateStructure.turns;if($.length===0)return null;for(let J=$.length-1;J>=0;J--){let Y=$[J],X=await this.blobStore.getBlob(Z,Y);if(!X)continue;let z=Zx.deserialize(X);if(z.turn.case==="agentConversationTurn")return z.turn.value.requestId??null}return null}async getFullConversation(Z){return this.deserializeConversationStateStructure(Z,this.conversationStateStructure)}async deserializeConversationStateStructure(Z,$){return $x(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await XN(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let Q=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:Q,createdTimestampMs:K.createdTimestampMs,lastUsedTimestampMs:K.lastUsedTimestampMs,subagentType:K.subagentType}}return{conversationState:J,subagentStates:Y}}getLatestCheckpoint(){return this.getConversationStateStructure()}async handleCheckpoint(Z,$){let J=this.serde.serialize($),Y=this.fixedRootBlobId??await LH(J);await this.blobStore.setBlob(Z,Y,J),this.setMetadata("latestRootBlobId",Y),this.conversationStateStructure=$}async resetFromDb(Z){await this.tryResetFromDb(Z)}async tryResetFromDb(Z){try{let $=this.getMetadata("latestRootBlobId");if(!$||$.length===0)return this.conversationStateStructure=new m0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new m0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new m0,!1}}async dispose(){if(this.blobStore instanceof OK)await this.blobStore.dispose()}}var HN,QN,o4=32,Tc,KN=null,DH=(Z)=>({agentId:Z??crypto.randomUUID(),latestRootBlobId:new Uint8Array,name:"New Agent",mode:"default",isRunEverything:!1,approvalMode:void 0,createdAt:Date.now(),lastUsedModel:void 0,lastDebugServerPort:void 0,currentPlanUri:void 0,subagentInfo:void 0,blobEncryptionKey:Rc()}),mc,_c,bc,dc,cc,Zx,uc,lc,pc;var Jx=U(()=>{AH();PH();KH();RK();TK();zN();HN=["default","plan","debug","search"],QN=["allowlist","unrestricted","auto-review"],Tc=/^[0-9a-f]+$/;mc=new Set(HN);_c=new Set(QN);bc=new D8(W0),dc=new D8(H6),cc=new D8(j8),Zx=new D8(p$),uc=new D8(B6),lc=new D8(Q6),pc=new D8(q6)});var eZ0,Z$0,$$0,J$0,Y$0,X$0,z$0,K$0,H$0,Q$0;var Yx=U(()=>{w8();X9();RK();eZ0=u0("@anysphere/agent-kv"),Z$0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),$$0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),J$0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),Y$0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),X$0=f6("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),z$0=f6("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),K$0=f6("agent_kv.nearby.decrypt_fallback_success",{description:"Number of nearby blob reads where the primary encryption key failed but the fallback key decrypted the blob"}),H$0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),Q$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as B$0,proto3 as F$0}from"@bufbuild/protobuf";var Xx=()=>{};var f$0,E$0,P$0;var zx=U(()=>{w8();X9();Xx();RK();f$0=u0("ControlledKvManager"),E$0=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),P$0=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var A$0,v$0,C$0,T$0;var BN=U(()=>{w8();X9();A$0=u0("@anysphere/agent-kv"),v$0=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),C$0=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),T$0=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var FN=U(()=>{BN()});var u$0,l$0,p$0,i$0;var Kx=U(()=>{w8();X9();IQ();RK();TK();FN();u$0=u0("@anysphere/agent-kv:reference"),l$0=f6("agent_kv.lazy_reference.cache_miss",{description:"Number of large or slow LazyReference cache misses that require loading and deserializing a blob",labelNames:["blob_type"]}),p$0=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),i$0=g("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]})});var s$0,t$0,o$0,e$0,Z90,$90;var Hx=U(()=>{w8();X9();s$0=u0("RetryBlobStore"),t$0=f6("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),o$0=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),e$0=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),Z90=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),$90=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var IH=U(()=>{Jx();IQ();RK();Yx();zx();Kx();Hx();TK();zN();FN();BN()});class Gx{subscribersByRun=new Map;async publishRunEventAppended(Z){let $=this.subscribersByRun.get(Z.runId);if(!$)return;for(let J of $){if(J.closed)continue;let Y=J.waiters.shift();if(Y)Y({value:Z,done:!1});else J.queue.push(Z)}}subscribeRunEvents(Z){let $={closed:!1,queue:[],waiters:[]},J=this.subscribersByRun.get(Z.runId)??new Set;J.add($),this.subscribersByRun.set(Z.runId,J);let Y=Z.signal,X=()=>{if(Y?.removeEventListener("abort",X),$.closed)return;if($.closed=!0,J.delete($),J.size===0)this.subscribersByRun.delete(Z.runId);while($.waiters.length>0)$.waiters.shift()?.({value:void 0,done:!0})};if(Y?.aborted)X();else Y?.addEventListener("abort",X,{once:!0});return{[Symbol.asyncIterator]:()=>({next:async()=>{let z=$.queue.shift();if(z)return{value:z,done:!1};if($.closed||Y?.aborted)return X(),{value:void 0,done:!0};return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),{value:void 0,done:!0}}})}}}function Lx(){return new Gx}import{chmodSync as Lu,existsSync as wu,mkdirSync as Du}from"fs";function _K(Z){if(!wu(Z))Du(Z,{recursive:!0,mode:wx});try{Lu(Z,wx)}catch{}}var wx=448;var EN=()=>{};var PN;var Dx=U(()=>{PN=class PN extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var Ix={};P6(Ix,{openBunSqliteDriver:()=>Iu});import{Database as Uu}from"bun:sqlite";class Ux{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.run(Z)}run(Z,$=[]){let{changes:J}=this.prepare(Z).run(...$);return{changes:Number(J)}}get(Z,$=[]){return this.prepare(Z).get(...$)??void 0}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function Iu(Z){return new Ux(new Uu(Z,{create:!0}))}var Ox=()=>{};class VN{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var fx={};P6(fx,{openNodeSqliteDriver:()=>Ou});class kx{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.exec(Z)}run(Z,$=[]){let J=this.prepare(Z).run(...$);return{changes:Number(J.changes)}}get(Z,$=[]){return this.prepare(Z).get(...$)}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function Ou(Z){return new kx(new VN(Z))}var Ex=()=>{};function ku(Z){if((typeof Z==="object"&&Z!==null&&"code"in Z&&typeof Z.code==="string"?Z.code:void 0)==="ERR_UNKNOWN_BUILTIN_MODULE")return!0;return(Z instanceof Error?Z.message.toLowerCase():String(Z).toLowerCase()).includes("node:sqlite")}function fu(){return typeof globalThis.Bun<"u"}async function SK(Z){if(fu())return(await Promise.resolve().then(() => (Ox(),Ix))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (Ex(),fx))}catch(J){if(ku(J))throw new PN("node:sqlite is not available in this runtime. The default local agent store requires Node >= 22.13 (or another runtime that implements node:sqlite). Configure a JsonlLocalAgentStore instead.",{cause:J});throw J}return $.openNodeSqliteDriver(Z)}var xQ=U(()=>{Dx()});var Px={};P6(Px,{SQLiteBlobStoreWithMetadata:()=>MN});import{existsSync as Eu,mkdirSync as Pu,rmSync as Vu}from"fs";import{basename as xu,dirname as xN}from"path";var MQ,MN;var Vx=U(()=>{IH();KH();xQ();MQ=new OQ;MN=class MN extends OK{dbPath;driverPromise;driver;metadata;listeners={agentId:new Set,latestRootBlobId:new Set,name:new Set,createdAt:new Set,mode:new Set,isRunEverything:new Set,approvalMode:new Set,lastUsedModel:new Set,lastDebugServerPort:new Set,currentPlanUri:new Set,subagentInfo:new Set};persistScheduled=!1;isDisposing=!1;disposePromise;static async initAndLoad(Z){let $=new MN(Z);return await $.getDriver(),$}constructor(Z){super();this.dbPath=Z;let $=xu(xN(this.dbPath));this.metadata=DH($)}async getDriver(){if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=xN(this.dbPath);if(!Eu(J))Pu(J,{recursive:!0});let Y=await SK(this.dbPath);try{this.initializeDriver(Y)}catch(X){throw Y.close(),X}return this.driver=Y,Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
6
|
+
`);switch(z.level){case"debug":case"info":Y.log(O);break;case"warn":Y.warn(O);break;case"error":Y.error(O);break;default:{let f=z.level;throw Error(`Unhandled log level: ${f}`)}}}}}function Ac(Z){return Z.get(hc)}function u0(Z){function $(J,Y){let X=new Date;Ac(J).log(J,{...Y,timestamp:X,logger:Z})}return{debug:(J,Y,X)=>{$(J,{level:"debug",message:Y,context:J,metadata:X})},info:(J,Y,X)=>{$(J,{level:"info",message:Y,context:J,metadata:X})},warn:(J,Y,X)=>{$(J,{level:"warn",message:Y,context:J,metadata:X})},error:(J,Y,X,z)=>{$(J,{level:"error",message:Y,context:J,error:X,metadata:z})}}}var Nc=2,Bc=6,Fc=50,Gc=40,Lc=200,xc,Mc,hc;var e4=I(()=>{w6();xc=Vc(),Mc={log:(Z,$)=>xc.log(Z,$)},hc=h6(Symbol("loggerBackend"),Mc)});var OZ0,kZ0,fZ0,EZ0,PZ0;var Zx=I(()=>{OZ0=h6(Symbol("otel.span"),void 0),kZ0=h6(Symbol("otel.root_span"),void 0),fZ0=h6(Symbol("otel.root_start_ms"),void 0),EZ0=h6(Symbol("otel.suppress_child_spans"),!1),PZ0=h6(Symbol("otel.inheritable_span_attributes"),{})});var w6=I(()=>{r4();e4();Zx()});function DQ(Z){return Z.get(Cc)}function f8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{DQ(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{DQ(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{DQ(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{DQ(Y).record(Y,J,X,z)}}}var vc,Cc;var X9=I(()=>{w6();vc={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},Cc=h6(Symbol("metricsBackend"),vc)});class XN{serialize(Z){return Rc.encode(Z)}deserialize(Z){return Tc.decode(Z)}getBlobType(){return{kind:"string"}}}class D6{proto;constructor(Z){this.proto=Z}serialize(Z){return Z.toBinary()}deserialize(Z){return this.proto.fromBinary(Z)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function Q0(Z){if(typeof Buffer<"u")return Buffer.from(Z).toString("hex");let $="";for(let J=0;J<Z.length;J++)$+=yc[Z[J]];return $}function l0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");let J=new Uint8Array($.length/2);for(let Y=0;Y<$.length;Y+=2)J[Y/2]=parseInt($.slice(Y,Y+2),16);return J}var Tc,Rc,IQ,yc;var RK=I(()=>{Tc=new TextDecoder,Rc=new TextEncoder;IQ=new XN;yc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"))});function UQ(Z){let $=Z.buffer;if(typeof SharedArrayBuffer<"u"&&$ instanceof SharedArrayBuffer)return new Uint8Array(Z);return new Uint8Array($,Z.byteOffset,Z.byteLength)}async function LH(Z){let $=await crypto.subtle.digest("SHA-256",UQ(Z));return new Uint8Array($)}var bZ0,dZ0;var yK=I(()=>{X9();RK();bZ0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),dZ0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function mc(Z){if(Z.length===0)return"";let $=Z.slice(0,3).map((Y)=>Y.slice(0,12));return` (${Z.length===1?`missing blob ${$[0]}`:`${Z.length} missing blobs: ${$.join(", ")}${Z.length>$.length?", \u2026":""}`})`}var wH;var OQ=I(()=>{wH=class wH extends Error{isUsageError=!0;isBlobNotFound=!0;blobIdHexes;constructor(Z,$){super(`This conversation's data is missing and can't be restored. Start a new chat to continue.${mc(Z)}`,$?.cause!==void 0?{cause:$.cause}:void 0);this.name="BlobNotFoundError",this.blobIdHexes=[...Z]}}});async function zN(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await HW(X,async([W,G])=>{let L=await J.getBlob(Z,G);if(L===void 0){if(Y[W]===void 0)return{kind:"missing",blobIdHex:Q0(G)};return jc.warn(Z,"Subagent state ref blob not found; falling back to inline entry",{subagentId:W}),{kind:"fallback"}}try{return{kind:"loaded",subagentId:W,state:L8.fromBinary(L)}}catch(O){return{kind:"failed",error:O}}},{max:$x}),K=z.flatMap((W)=>W.kind==="missing"?[W.blobIdHex]:[]);if(K.length>0)throw new wH(K);let Q=z.find((W)=>W.kind==="failed");if(Q!==void 0&&Q.kind==="failed")throw Q.error;for(let W of z)if(W.kind==="loaded")Y[W.subagentId]=W.state;return Y}var $x=8,jc;var KN=I(()=>{w6();AH();hK();OQ();RK();jc=u0("@anysphere/agent-kv:subagent-states")});import{z as e}from"zod";function Sc(){let Z=new Uint8Array(Jx);return crypto.getRandomValues(Z),Q0(Z)}function Yx(Z){return typeof Z==="string"&&Z.length===Jx*2&&_c.test(Z)}function gc(){if(HN===null)HN=e.object({agentId:e.string(),latestRootBlobId:e.custom((Z)=>Z instanceof Uint8Array,{message:"Expected Uint8Array"}),name:e.string(),createdAt:e.number(),mode:e.enum(QN),isRunEverything:e.boolean(),approvalMode:e.enum(qN).optional(),lastUsedModel:e.string().optional(),lastDebugServerPort:e.number().int().positive().optional(),currentPlanUri:e.string().optional(),subagentInfo:e.union([e.object({parentAgentId:e.string().min(1),rootParentAgentId:e.string().min(1),toolCallId:e.string().min(1),typeName:e.string().min(1)}),e.undefined()]),blobEncryptionKey:e.string().optional()});return HN}function dc(Z){return bc.has(Z)}function uc(Z){return cc.has(Z)}function lc(Z){if(!Z||typeof Z!=="object")return;let $=Z;if(typeof $.parentAgentId!=="string"||$.parentAgentId.length===0||typeof $.rootParentAgentId!=="string"||$.rootParentAgentId.length===0||typeof $.toolCallId!=="string"||$.toolCallId.length===0||typeof $.typeName!=="string"||$.typeName.length===0)return;return{parentAgentId:$.parentAgentId,rootParentAgentId:$.rootParentAgentId,toolCallId:$.toolCallId,typeName:$.typeName}}class kQ{serialize(Z){let $=Q0(Z.latestRootBlobId);return IQ.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(IQ.deserialize(Z)),J=DH($.agentId),Y=typeof $.latestRootBlobId==="string"?l0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&dc(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&uc(Q)?Q:void 0,G=lc($.subagentInfo),L=Yx($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return gc().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:G,blobEncryptionKey:L})}getBlobType(){return{kind:"json"}}}async function zx(Z,$,J){let Y=new F8,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let G=Xx.deserialize(W),L;switch(G.turn.case){case"agentConversationTurn":{let O=G.turn.value,f=await J.getBlob(Z,O.userMessage);if(!f)continue;let P=ic.deserialize(f),V=[];for(let E0 of O.steps){let X0=await J.getBlob(Z,E0);if(X0){let $M=nc.deserialize(X0);V.push($M)}}let T=new W8({userMessage:P,steps:V});L=new _6({turn:{case:"agentConversationTurn",value:T}});break}case"shellConversationTurn":{let O=G.turn.value,f=await J.getBlob(Z,O.shellCommand);if(!f)continue;let P=rc.deserialize(f),V=await J.getBlob(Z,O.shellOutput);if(!V)continue;let T=sc.deserialize(V),E0=new N8({shellCommand:P,shellOutput:T});L=new _6({turn:{case:"shellConversationTurn",value:E0}});break}}if(!L)continue;X.push(L)}Y.turns=X;let K=[];for(let Q of $.todos){let W=await J.getBlob(Z,Q);if(W){let G=pc.deserialize(W);K.push(G)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=ac.deserialize(Q);Y.summary=W}}return Y}class IH{blobStore;metadataStore;conversationStateStructure;serde=new D6(m0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new m0,this.fixedRootBlobId=J.fixedRootBlobId}subscribeToMetadata(Z,$){return this.metadataStore.subscribe(Z,()=>{$(this.metadataStore.get(Z))})}setMetadata(Z,$){this.metadataStore.set(Z,$)}getMetadata(Z){return this.metadataStore.get(Z)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}async getLastRequestIdFromConversation(Z){let $=this.conversationStateStructure.turns;if($.length===0)return null;for(let J=$.length-1;J>=0;J--){let Y=$[J],X=await this.blobStore.getBlob(Z,Y);if(!X)continue;let z=Xx.deserialize(X);if(z.turn.case==="agentConversationTurn")return z.turn.value.requestId??null}return null}async getFullConversation(Z){return this.deserializeConversationStateStructure(Z,this.conversationStateStructure)}async deserializeConversationStateStructure(Z,$){return zx(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await zN(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let Q=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:Q,createdTimestampMs:K.createdTimestampMs,lastUsedTimestampMs:K.lastUsedTimestampMs,subagentType:K.subagentType}}return{conversationState:J,subagentStates:Y}}getLatestCheckpoint(){return this.getConversationStateStructure()}async handleCheckpoint(Z,$){let J=this.serde.serialize($),Y=this.fixedRootBlobId??await LH(J);await this.blobStore.setBlob(Z,Y,J),this.setMetadata("latestRootBlobId",Y),this.conversationStateStructure=$}async resetFromDb(Z){await this.tryResetFromDb(Z)}async tryResetFromDb(Z){try{let $=this.getMetadata("latestRootBlobId");if(!$||$.length===0)return this.conversationStateStructure=new m0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new m0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new m0,!1}}async dispose(){if(this.blobStore instanceof OK)await this.blobStore.dispose()}}var QN,qN,Jx=32,_c,HN=null,DH=(Z)=>({agentId:Z??crypto.randomUUID(),latestRootBlobId:new Uint8Array,name:"New Agent",mode:"default",isRunEverything:!1,approvalMode:void 0,createdAt:Date.now(),lastUsedModel:void 0,lastDebugServerPort:void 0,currentPlanUri:void 0,subagentInfo:void 0,blobEncryptionKey:Sc()}),bc,cc,pc,ic,nc,Xx,ac,rc,sc;var Kx=I(()=>{AH();PH();hK();yK();RK();KN();QN=["default","plan","debug","search"],qN=["allowlist","unrestricted","auto-review"],_c=/^[0-9a-f]+$/;bc=new Set(QN);cc=new Set(qN);pc=new D6(W0),ic=new D6(H8),nc=new D6(j6),Xx=new D6(p$),ac=new D6(B8),rc=new D6(Q8),sc=new D6(q8)});var H$0,Q$0,q$0,W$0,N$0,B$0,F$0,G$0,L$0,w$0;var Hx=I(()=>{w6();X9();yK();H$0=u0("@anysphere/agent-kv"),Q$0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),q$0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),W$0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),N$0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),B$0=f8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),F$0=f8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),G$0=f8("agent_kv.nearby.decrypt_fallback_success",{description:"Number of nearby blob reads where the primary encryption key failed but the fallback key decrypted the blob"}),L$0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),w$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as O$0,proto3 as k$0}from"@bufbuild/protobuf";var Qx=()=>{};var v$0,C$0,T$0;var qx=I(()=>{w6();X9();Qx();yK();v$0=u0("ControlledKvManager"),C$0=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),T$0=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var _$0,S$0,g$0,b$0;var FN=I(()=>{w6();X9();_$0=u0("@anysphere/agent-kv"),S$0=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),g$0=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),b$0=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var GN=I(()=>{FN()});var t$0,o$0,e$0,Z90;var Wx=I(()=>{w6();X9();OQ();yK();RK();GN();t$0=u0("@anysphere/agent-kv:reference"),o$0=f8("agent_kv.lazy_reference.cache_miss",{description:"Number of large or slow LazyReference cache misses that require loading and deserializing a blob",labelNames:["blob_type"]}),e$0=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),Z90=g("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]})});var X90,z90,K90,H90,Q90,q90;var Nx=I(()=>{w6();X9();X90=u0("RetryBlobStore"),z90=f8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),K90=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),H90=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),Q90=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),q90=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var UH=I(()=>{Kx();OQ();yK();Hx();qx();Wx();Nx();RK();KN();GN();FN()});class Ux{subscribersByRun=new Map;async publishRunEventAppended(Z){let $=this.subscribersByRun.get(Z.runId);if(!$)return;for(let J of $){if(J.closed)continue;let Y=J.waiters.shift();if(Y)Y({value:Z,done:!1});else J.queue.push(Z)}}subscribeRunEvents(Z){let $={closed:!1,queue:[],waiters:[]},J=this.subscribersByRun.get(Z.runId)??new Set;J.add($),this.subscribersByRun.set(Z.runId,J);let Y=Z.signal,X=()=>{if(Y?.removeEventListener("abort",X),$.closed)return;if($.closed=!0,J.delete($),J.size===0)this.subscribersByRun.delete(Z.runId);while($.waiters.length>0)$.waiters.shift()?.({value:void 0,done:!0})};if(Y?.aborted)X();else Y?.addEventListener("abort",X,{once:!0});return{[Symbol.asyncIterator]:()=>({next:async()=>{let z=$.queue.shift();if(z)return{value:z,done:!1};if($.closed||Y?.aborted)return X(),{value:void 0,done:!0};return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),{value:void 0,done:!0}}})}}}function Ox(){return new Ux}import{chmodSync as ku,existsSync as fu,mkdirSync as Eu}from"fs";function SK(Z){if(!fu(Z))Eu(Z,{recursive:!0,mode:kx});try{ku(Z,kx)}catch{}}var kx=448;var xN=()=>{};var MN;var fx=I(()=>{MN=class MN extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var Px={};P8(Px,{openBunSqliteDriver:()=>Vu});import{Database as Pu}from"bun:sqlite";class Ex{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.run(Z)}run(Z,$=[]){let{changes:J}=this.prepare(Z).run(...$);return{changes:Number(J)}}get(Z,$=[]){return this.prepare(Z).get(...$)??void 0}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function Vu(Z){return new Ex(new Pu(Z,{create:!0}))}var Vx=()=>{};class hN{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var Mx={};P8(Mx,{openNodeSqliteDriver:()=>xu});class xx{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.exec(Z)}run(Z,$=[]){let J=this.prepare(Z).run(...$);return{changes:Number(J.changes)}}get(Z,$=[]){return this.prepare(Z).get(...$)}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function xu(Z){return new xx(new hN(Z))}var hx=()=>{};function Mu(Z){if((typeof Z==="object"&&Z!==null&&"code"in Z&&typeof Z.code==="string"?Z.code:void 0)==="ERR_UNKNOWN_BUILTIN_MODULE")return!0;return(Z instanceof Error?Z.message.toLowerCase():String(Z).toLowerCase()).includes("node:sqlite")}function hu(){return typeof globalThis.Bun<"u"}async function gK(Z){if(hu())return(await Promise.resolve().then(() => (Vx(),Px))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (hx(),Mx))}catch(J){if(Mu(J))throw new MN("node:sqlite is not available in this runtime. The default local agent store requires Node >= 22.13 (or another runtime that implements node:sqlite). Configure a JsonlLocalAgentStore instead.",{cause:J});throw J}return $.openNodeSqliteDriver(Z)}var MQ=I(()=>{fx()});var Ax={};P8(Ax,{SQLiteBlobStoreWithMetadata:()=>vN});import{existsSync as Au,mkdirSync as vu,rmSync as Cu}from"fs";import{basename as Tu,dirname as AN}from"path";var hQ,vN;var vx=I(()=>{UH();hK();MQ();hQ=new kQ;vN=class vN extends OK{dbPath;driverPromise;driver;metadata;listeners={agentId:new Set,latestRootBlobId:new Set,name:new Set,createdAt:new Set,mode:new Set,isRunEverything:new Set,approvalMode:new Set,lastUsedModel:new Set,lastDebugServerPort:new Set,currentPlanUri:new Set,subagentInfo:new Set};persistScheduled=!1;isDisposing=!1;disposePromise;static async initAndLoad(Z){let $=new vN(Z);return await $.getDriver(),$}constructor(Z){super();this.dbPath=Z;let $=Tu(AN(this.dbPath));this.metadata=DH($)}async getDriver(){if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=AN(this.dbPath);if(!Au(J))vu(J,{recursive:!0});let Y=await gK(this.dbPath);try{this.initializeDriver(Y)}catch(X){throw Y.close(),X}return this.driver=Y,Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
7
7
|
PRAGMA synchronous = NORMAL;
|
|
8
8
|
PRAGMA busy_timeout = 5000;
|
|
9
9
|
PRAGMA user_version = 1;
|
|
10
10
|
CREATE TABLE IF NOT EXISTS blobs (id TEXT PRIMARY KEY, data BLOB);
|
|
11
|
-
CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);`);let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]);if($?.value){let Y=l0($.value);this.metadata=
|
|
11
|
+
CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);`);let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]);if($?.value){let Y=l0($.value);this.metadata=hQ.deserialize(Y);return}let J=hQ.serialize(this.metadata);Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",Q0(J)])}async getBlob(Z,$){if(this.isDisposing)return;let J=Q0($),X=(await this.getDriver()).get("SELECT data FROM blobs WHERE id = ?",[J]);return X?.data==null?void 0:new Uint8Array(X.data)}async listBlobIds(){if(this.isDisposing)return[];return(await this.getDriver()).all("SELECT id FROM blobs ORDER BY id ASC").map((J)=>J.id)}async deleteBlob(Z){if(this.isDisposing)return;(await this.getDriver()).run("DELETE FROM blobs WHERE id = ?",[Z])}async setBlob(Z,$,J){if(this.isDisposing)return;let Y=Q0($),X=Buffer.from(J);(await this.getDriver()).run("INSERT OR REPLACE INTO blobs (id, data) VALUES (?, ?)",[Y,X])}async setBlobLocallyOnly(Z,$,J){return Promise.resolve()}async flush(Z){return Promise.resolve()}get(Z){return this.metadata[Z]}valuesEqual(Z,$,J){if(Z==="latestRootBlobId"){let Y=$,X=J;if(Y===X)return!0;if(!Y||!X)return!1;if(Y.length!==X.length)return!1;for(let z=0;z<Y.length;z++)if(Y[z]!==X[z])return!1;return!0}return $===J}schedulePersist(){if(this.isDisposing||!this.driver)return;if(this.persistScheduled)return;this.persistScheduled=!0,queueMicrotask(()=>{if(this.persistScheduled=!1,this.isDisposing||!this.driver)return;this.persistMetadata()})}set(Z,$){let J=this.metadata[Z];if(this.valuesEqual(Z,J,$))return;if(this.metadata={...this.metadata,[Z]:$},this.driver)this.schedulePersist();let Y=this.listeners[Z];if(Y&&Y.size>0)queueMicrotask(()=>{Y.forEach((X)=>{X()})})}persistMetadata(){let Z=this.driver;if(!Z)return;let $=hQ.serialize(this.metadata);Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",Q0($)])}subscribe(Z,$){let J=this.listeners[Z];if(J)return J.add($),()=>J.delete($);return()=>{}}async dispose(){if(this.disposePromise)return this.disposePromise;if(!this.driverPromise)return;return this.disposePromise=this.cleanup().then(()=>{this.driverPromise=void 0,this.driver=void 0}),this.disposePromise}async cleanup(){if(!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(!Z){this.driverPromise=void 0,this.driver=void 0;return}this.persistScheduled=!1,this.persistMetadata(),this.isDisposing=!0;let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]),J=0;if($?.value){let z=l0($.value);J=hQ.deserialize(z).latestRootBlobId.length}let Y=Z.get("SELECT COUNT(*) AS count FROM blobs"),X=Number(Y?.count??0);if(Z.close(),J===0&&X===0){this.driverPromise=void 0,this.driver=void 0;let z=AN(this.dbPath);try{Cu(z,{recursive:!0,force:!0})}catch{}}}}});var Rx={};P8(Rx,{LocalAgentCheckpointStore:()=>Tx});import{createHash as Ru}from"crypto";import{rm as yu}from"fs/promises";import{join as AQ}from"path";class Tx{options;stores=new Map;constructor(Z){this.options=Z}async loadLatest(Z){let{agentStore:$}=await this.getOrCreate(Z),J=$.getMetadata("latestRootBlobId");if(!J||J.length===0)return null;return await $.resetFromDb(c6()),$.getConversationStateStructure()}async saveCheckpoint(Z,$){let{agentStore:J}=await this.getOrCreate(Z);return await J.handleCheckpoint(c6(),$),{blobId:Q0(J.getMetadata("latestRootBlobId")),storeKind:"local-sqlite"}}async getBlobStore(Z){return(await this.getOrCreate(Z)).sqliteStore}async listCheckpointBlobIds(Z){let{sqliteStore:$}=await this.getOrCreate(Z);return $.listBlobIds()}async getFullConversation(Z){let{agentStore:$}=await this.getOrCreate(Z);return await $.resetFromDb(c6()),$.getFullConversation(c6())}async dispose(){let Z=[...this.stores.values()];this.stores.clear();let $=await Promise.allSettled(Z);await Promise.all($.filter((J)=>J.status==="fulfilled").map((J)=>J.value.sqliteStore.dispose()))}async deleteAgent(Z){let $=this.stores.get(Z);if($){this.stores.delete(Z);let Y=await $.catch(()=>{return});if(Y)await Y.sqliteStore.dispose().catch(()=>{return})}let J=AQ(this.options.stateRoot,"agents",Cx(Z));await yu(J,{recursive:!0,force:!0})}async getOrCreate(Z){let $=this.stores.get(Z);if($)return $;let J;return J=this.createEntry(Z).catch((Y)=>{if(this.stores.get(Z)===J)this.stores.delete(Z);throw Y}),this.stores.set(Z,J),J}async createEntry(Z){let $=AQ(this.options.stateRoot,"agents"),J=AQ($,Cx(Z));SK(this.options.stateRoot),SK($),SK(J);let{SQLiteBlobStoreWithMetadata:Y}=await Promise.resolve().then(() => (vx(),Ax)),X=await Y.initAndLoad(AQ(J,"store.db"));try{X.set("agentId",Z);let z=new IH(X,X);return await z.resetFromDb(c6()),{sqliteStore:X,agentStore:z}}catch(z){throw await X.dispose().catch(()=>{return}),z}}}function Cx(Z){return`agent-${Ru("sha256").update(Z).digest("hex")}`}var yx=I(()=>{UH();w6();xN()});function mx(){return`agent-${QQ()}`}function CN(){return`run-${QQ()}`}var jx=I(()=>{hK()});function OH(Z){return mu.has(Z)}var mu;var _x=I(()=>{mu=new Set(["FINISHED","ERROR","CANCELLED","EXPIRED"])});var dx={};P8(dx,{SqliteAgentRunStore:()=>yN});import{dirname as ju,join as _u}from"path";function gx(Z){if(Z.length===0)return[];let $=[];for(let J=0;J<Z.length;J+=Sx)$.push(Z.slice(J,J+Sx));return $}function z9(){return new Date().toISOString()}function vQ(Z){return Z?new Date(Z):null}function dK(Z,$){if(!Z)return $;return JSON.parse(Z)}function bK(Z){return JSON.stringify(Z)}function E8(Z){return Z?bK(Z):null}function Su(Z,$){if(Z===null)return null;if($===null)return{id:Z};return{id:Z,params:dK($,[])}}function TN(Z){let $=Z?.params;return $&&$.length>0?bK($):null}function RN(Z){return{agentId:Z.agent_id,workspaceRef:Z.workspace_ref,status:Z.status,activeRunId:Z.active_run_id,latestCheckpointRef:dK(Z.latest_checkpoint_ref_json,null),name:Z.name,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),metadata:dK(Z.metadata_json,{})}}function CQ(Z){return{runId:Z.run_id,requestId:Z.request_id,agentId:Z.agent_id,turnNumber:Z.turn_number,status:Z.status,model:Su(Z.model,Z.model_params_json),startCheckpointRef:dK(Z.start_checkpoint_ref_json,null),latestCheckpointRef:dK(Z.latest_checkpoint_ref_json,null),errorCode:Z.error_code,usageRef:Z.usage_ref,usage:dK(Z.usage_json??null,null),result:Z.result,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),startedAt:vQ(Z.started_at),finishedAt:vQ(Z.finished_at),cancelledAt:vQ(Z.cancelled_at),expiredAt:vQ(Z.expired_at)}}function bx(Z){let $=Z?.limit??50,J=Z?.cursor?Number.parseInt(Z.cursor,10):0,Y=Number.isFinite(J)&&J>0?J:0;return{limit:$,offset:Y}}class yN{options;driverPromise;disposed=!1;static async open(Z){let $=new yN(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get stateRoot(){return this.options.stateRoot}get dbPath(){return _u(this.options.stateRoot,"index.db")}async createAgent(Z){let $=await this.getDriver();return p0($,()=>{let J=Z.agentId??mx(),Y=CN(),X=z9();$.run(`INSERT INTO agents (
|
|
12
12
|
agent_id, workspace_ref, status, active_run_id,
|
|
13
13
|
latest_checkpoint_ref_json, name,
|
|
14
14
|
metadata_json, created_at, updated_at
|
|
15
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[J,Z.workspaceRef,"IDLE",Y,null,Z.name??null,
|
|
15
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[J,Z.workspaceRef,"IDLE",Y,null,Z.name??null,bK(Z.metadata??{}),X,X]),$.run(`INSERT INTO runs (
|
|
16
16
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
17
17
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
18
18
|
error_code, usage_ref, usage_json, result,
|
|
19
19
|
created_at, updated_at, started_at, finished_at,
|
|
20
20
|
cancelled_at, expired_at
|
|
21
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Y,Z.requestId??null,J,1,"QUEUED",Z.model?.id??null,
|
|
21
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Y,Z.requestId??null,J,1,"QUEUED",Z.model?.id??null,TN(Z.model),null,null,null,null,null,null,X,X,null,null,null,null]);let z=this.getAgentFromDb($,J),K=this.getRunFromDb($,J,Y);if(!z||!K)throw Error(`Failed to create agent ${J}`);return{agent:z,run:K}})}async createFollowUpRun(Z,$){let J=await this.getDriver();return p0(J,()=>{let Y=this.getAgentFromDb(J,Z);if(!Y)throw Error(`Agent ${Z} not found`);if(Y.status==="ARCHIVED")throw Error(`Cannot create follow-up run on archived agent ${Z}. Unarchive it first.`);if(Y.activeRunId){let W=this.getRunFromDb(J,Z,Y.activeRunId);if(W&&!OH(W.status))throw Error(`Agent ${Z} already has active run`)}let X=J.get("SELECT COUNT(*) as count FROM runs WHERE agent_id = ?",[Z]),z=CN(),K=z9();J.run(`INSERT INTO runs (
|
|
22
22
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
23
23
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
24
24
|
error_code, usage_ref, usage_json, result,
|
|
25
25
|
created_at, updated_at, started_at, finished_at,
|
|
26
26
|
cancelled_at, expired_at
|
|
27
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[z,$.requestId??null,Z,(X?.count??0)+1,"QUEUED",$.model?.id??null,
|
|
27
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[z,$.requestId??null,Z,(X?.count??0)+1,"QUEUED",$.model?.id??null,TN($.model),E8(Y.latestCheckpointRef),Y.latestCheckpointRef?E8(Y.latestCheckpointRef):null,null,null,null,null,K,K,null,null,null,null]),J.run("UPDATE agents SET active_run_id = ?, status = ?, metadata_json = ?, updated_at = ? WHERE agent_id = ?",[z,"IDLE",bK({...Y.metadata,...$.metadata}),K,Z]);let Q=this.getRunFromDb(J,Z,z);if(!Q)throw Error(`Failed to create run ${z}`);return Q})}async listAgents(Z){let $=await this.getDriver(),{limit:J,offset:Y}=bx(Z),X=$.all("SELECT * FROM agents ORDER BY updated_at DESC LIMIT ? OFFSET ?",[J+1,Y]),z=X.slice(0,J),K=X.length>J?String(Y+J):void 0;return{items:z.map(RN),...K?{nextCursor:K}:{}}}async getAgent(Z){let $=await this.getDriver();return this.getAgentFromDb($,Z)}async listRuns(Z,$){let J=await this.getDriver(),{limit:Y,offset:X}=bx($),z=J.all("SELECT * FROM runs WHERE agent_id = ? ORDER BY turn_number ASC LIMIT ? OFFSET ?",[Z,Y+1,X]),K=z.slice(0,Y),Q=z.length>Y?String(X+Y):void 0;return{items:K.map(CQ),...Q?{nextCursor:Q}:{}}}async getRun(Z,$){let J=await this.getDriver();return this.getRunFromDb(J,Z,$)}async markRunStarting(Z,$,J){let Y=await this.getDriver();p0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(OH(X.status))throw Error(`Cannot start terminal run ${$}`);let z=z9();Y.run("UPDATE runs SET request_id = COALESCE(?, request_id), status = ?, started_at = COALESCE(started_at, ?), updated_at = ? WHERE run_id = ? AND agent_id = ?",[J?.requestId??null,"RUNNING",z,z,$,Z]),Y.run(`UPDATE agents
|
|
28
28
|
SET active_run_id = ?,
|
|
29
29
|
status = CASE
|
|
30
30
|
WHEN status = 'ARCHIVED' THEN status
|
|
@@ -34,10 +34,10 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
34
34
|
WHERE agent_id = ?`,[$,z,Z])})}async patchCheckpoint(Z,$,J){let Y=await this.getDriver();p0(Y,()=>{this.requireRunFromDb(Y,Z,$);let X=z9();Y.run(`UPDATE runs
|
|
35
35
|
SET latest_checkpoint_ref_json = ?,
|
|
36
36
|
updated_at = ?
|
|
37
|
-
WHERE run_id = ? AND agent_id = ?`,[
|
|
37
|
+
WHERE run_id = ? AND agent_id = ?`,[E8(J),X,$,Z]),Y.run(`UPDATE agents
|
|
38
38
|
SET latest_checkpoint_ref_json = ?,
|
|
39
39
|
updated_at = ?
|
|
40
|
-
WHERE agent_id = ?`,[
|
|
40
|
+
WHERE agent_id = ?`,[E8(J),X,Z])})}async markRunTerminal(Z,$,J){let Y=await this.getDriver();p0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(OH(X.status)){if(J.usage!==void 0&&(X.usage===null||X.usage===void 0)){let W=J.usage===null?null:JSON.stringify(J.usage);Y.run("UPDATE runs SET usage_json = ? WHERE run_id = ? AND agent_id = ?",[W,$,Z])}return}let z=z9(),K=J.usage!==void 0?J.usage:X.usage??null,Q=K===null||K===void 0?null:JSON.stringify(K);Y.run(`UPDATE runs
|
|
41
41
|
SET status = ?,
|
|
42
42
|
error_code = COALESCE(?, error_code),
|
|
43
43
|
usage_ref = COALESCE(?, usage_ref),
|
|
@@ -63,11 +63,11 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
63
63
|
name = ?,
|
|
64
64
|
metadata_json = ?,
|
|
65
65
|
updated_at = ?
|
|
66
|
-
WHERE agent_id = ?`,[Z.workspaceRef,Z.status,Z.activeRunId,
|
|
66
|
+
WHERE agent_id = ?`,[Z.workspaceRef,Z.status,Z.activeRunId,E8(Z.latestCheckpointRef),Z.name,bK(Z.metadata),X,Z.agentId]);return}$.run(`INSERT INTO agents (
|
|
67
67
|
agent_id, workspace_ref, status, active_run_id,
|
|
68
68
|
latest_checkpoint_ref_json, name,
|
|
69
69
|
metadata_json, created_at, updated_at
|
|
70
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,
|
|
70
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,E8(Z.latestCheckpointRef),Z.name,bK(Z.metadata),Y,X])})}async upsertRunRecord(Z){let $=await this.getDriver();p0($,()=>{let J=this.getRunFromDb($,Z.agentId,Z.runId),Y=Z.createdAt.toISOString(),X=Z.updatedAt.toISOString(),z=Z.startedAt?.toISOString()??null,K=Z.finishedAt?.toISOString()??null,Q=Z.cancelledAt?.toISOString()??null,W=Z.expiredAt?.toISOString()??null,G=Z.usage===null||Z.usage===void 0?null:JSON.stringify(Z.usage),L=[Z.requestId??null,Z.turnNumber,Z.status,Z.model?.id??null,TN(Z.model),E8(Z.startCheckpointRef),E8(Z.latestCheckpointRef),Z.errorCode,Z.usageRef,G,Z.result,X,z,K,Q,W];if(J){$.run(`UPDATE runs SET
|
|
71
71
|
request_id = ?,
|
|
72
72
|
turn_number = ?,
|
|
73
73
|
status = ?,
|
|
@@ -90,7 +90,7 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
90
90
|
error_code, usage_ref, usage_json, result,
|
|
91
91
|
created_at, updated_at, started_at, finished_at,
|
|
92
92
|
cancelled_at, expired_at
|
|
93
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,...L.slice(0,1),Z.agentId,...L.slice(1,11),Y,...L.slice(11)])})}async listAllAgentRecords(){return(await this.getDriver()).all("SELECT * FROM agents",[]).map(
|
|
93
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,...L.slice(0,1),Z.agentId,...L.slice(1,11),Y,...L.slice(11)])})}async listAllAgentRecords(){return(await this.getDriver()).all("SELECT * FROM agents",[]).map(RN)}async listAllRunRecords(Z){let $=await this.getDriver();if(Z&&Z.length>0){let Y=[];for(let X of gx(Z)){let z=X.map(()=>"?").join(", "),K=$.all(`SELECT * FROM runs WHERE agent_id IN (${z})`,[...X]);Y.push(...K.map(CQ))}return Y}return $.all("SELECT * FROM runs",[]).map(CQ)}async deleteRunRecordsForAgents(Z){if(Z.length===0)return;let $=await this.getDriver();p0($,()=>{for(let J of gx(Z)){let Y=J.map(()=>"?").join(", ");$.run(`DELETE FROM runs WHERE agent_id IN (${Y})`,[...J])}})}async deleteRunRecordsByKeys(Z){if(Z.length===0)return;let $=await this.getDriver();p0($,()=>{for(let{agentId:J,runId:Y}of Z)$.run("DELETE FROM runs WHERE agent_id = ? AND run_id = ?",[J,Y])})}async dispose(){if(this.disposed=!0,!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(Z)Z.close();this.driverPromise=void 0}async getDriver(){if(this.disposed)throw Error("SqliteAgentRunStore has been disposed");if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=ju(this.dbPath);SK(J);let Y=await gK(this.dbPath);try{gu(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}getAgentFromDb(Z,$){let J=Z.get("SELECT * FROM agents WHERE agent_id = ?",[$]);return J?RN(J):null}getRunFromDb(Z,$,J){let Y=Z.get("SELECT * FROM runs WHERE run_id = ? AND agent_id = ?",[J,$]);return Y?CQ(Y):null}requireRunFromDb(Z,$,J){let Y=this.getRunFromDb(Z,$,J);if(!Y)throw Error(`Run ${J} not found for agent ${$}`);return Y}}function p0(Z,$){Z.exec("BEGIN IMMEDIATE");try{let J=$();return Z.exec("COMMIT"),J}catch(J){try{Z.exec("ROLLBACK")}catch{}throw J}}function gu(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
94
94
|
PRAGMA synchronous = NORMAL;
|
|
95
95
|
PRAGMA busy_timeout = 5000;
|
|
96
96
|
PRAGMA foreign_keys = ON;
|
|
@@ -126,16 +126,16 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
126
126
|
cancelled_at TEXT,
|
|
127
127
|
expired_at TEXT,
|
|
128
128
|
UNIQUE(agent_id, turn_number)
|
|
129
|
-
);`);let $=Z.all("PRAGMA table_info(runs)");if(!$.some((J)=>J.name==="request_id"))Z.exec("ALTER TABLE runs ADD COLUMN request_id TEXT");if(!$.some((J)=>J.name==="model_params_json"))Z.exec("ALTER TABLE runs ADD COLUMN model_params_json TEXT");if(!$.some((J)=>J.name==="result"))Z.exec("ALTER TABLE runs ADD COLUMN result TEXT");if(!$.some((J)=>J.name==="usage_json"))Z.exec("ALTER TABLE runs ADD COLUMN usage_json TEXT")}var
|
|
129
|
+
);`);let $=Z.all("PRAGMA table_info(runs)");if(!$.some((J)=>J.name==="request_id"))Z.exec("ALTER TABLE runs ADD COLUMN request_id TEXT");if(!$.some((J)=>J.name==="model_params_json"))Z.exec("ALTER TABLE runs ADD COLUMN model_params_json TEXT");if(!$.some((J)=>J.name==="result"))Z.exec("ALTER TABLE runs ADD COLUMN result TEXT");if(!$.some((J)=>J.name==="usage_json"))Z.exec("ALTER TABLE runs ADD COLUMN usage_json TEXT")}var Sx=100;var cx=I(()=>{jx();xN();MQ();_x()});function ux(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}var px={};P8(px,{SqliteRunEventStore:()=>mN});import{existsSync as bu,mkdirSync as du}from"fs";import{dirname as cu,join as uu}from"path";function lu(){return new Date().toISOString()}function lx(Z){return{runId:Z.run_id,seq:Z.seq,offset:Z.offset,eventType:Z.event_type,payload:Z.payload_json?JSON.parse(Z.payload_json):null,payloadRef:Z.payload_ref,idempotencyKey:Z.idempotency_key,createdAt:new Date(Z.created_at)}}class mN{options;driverPromise;disposed=!1;static async open(Z){let $=new mN(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get dbPath(){return uu(this.options.stateRoot,"index.db")}async appendRunEvent(Z){let $=await this.getDriver();$.exec("BEGIN IMMEDIATE");try{let J=Z.idempotencyKey??null;if(J){let Q=$.get(`SELECT *
|
|
130
130
|
FROM run_events
|
|
131
131
|
WHERE run_id = ? AND idempotency_key = ?
|
|
132
|
-
LIMIT 1`,[Z.runId,J]);if(Q)return $.exec("COMMIT"),
|
|
132
|
+
LIMIT 1`,[Z.runId,J]);if(Q)return $.exec("COMMIT"),lx(Q)}let X=($.get("SELECT MAX(seq) as max_seq FROM run_events WHERE run_id = ?",[Z.runId])?.max_seq??0)+1,z=String(X),K=lu();return $.run(`INSERT INTO run_events (
|
|
133
133
|
run_id, seq, offset, event_type, payload_json, payload_ref, idempotency_key, created_at
|
|
134
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,X,z,Z.eventType,JSON.stringify(Z.payload??null),Z.payloadRef??null,J,K]),$.exec("COMMIT"),{runId:Z.runId,seq:X,offset:z,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:J,createdAt:new Date(K)}}catch(J){try{$.exec("ROLLBACK")}catch{}throw J}}async listRunEvents(Z){let $=await this.getDriver(),J=
|
|
134
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,X,z,Z.eventType,JSON.stringify(Z.payload??null),Z.payloadRef??null,J,K]),$.exec("COMMIT"),{runId:Z.runId,seq:X,offset:z,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:J,createdAt:new Date(K)}}catch(J){try{$.exec("ROLLBACK")}catch{}throw J}}async listRunEvents(Z){let $=await this.getDriver(),J=ux(Z.afterOffset),Y=Z.limit??100,X=$.all(`SELECT *
|
|
135
135
|
FROM run_events
|
|
136
136
|
WHERE run_id = ? AND seq > ?
|
|
137
137
|
ORDER BY seq ASC
|
|
138
|
-
LIMIT ?`,[Z.runId,J,Y+1]),z=X.length>Y,K=X.slice(0,Y).map(
|
|
138
|
+
LIMIT ?`,[Z.runId,J,Y+1]),z=X.length>Y,K=X.slice(0,Y).map(lx);return{events:K,...z&&K.length>0?{nextOffset:K[K.length-1]?.offset}:{}}}async deleteRunEvents(Z){(await this.getDriver()).run("DELETE FROM run_events WHERE run_id = ?",[Z.runId])}async dispose(){if(this.disposed=!0,!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(Z)Z.close();this.driverPromise=void 0}async getDriver(){if(this.disposed)throw Error("SqliteRunEventStore has been disposed");if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=cu(this.dbPath);if(!bu(J))du(J,{recursive:!0});let Y=await gK(this.dbPath);try{pu(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}}function pu(Z){if(Z.exec(`PRAGMA journal_mode = WAL;
|
|
139
139
|
PRAGMA synchronous = NORMAL;
|
|
140
140
|
PRAGMA busy_timeout = 5000;
|
|
141
141
|
PRAGMA foreign_keys = ON;
|
|
@@ -152,4 +152,4 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
152
152
|
UNIQUE(run_id, offset)
|
|
153
153
|
);`),!Z.all("PRAGMA table_info(run_events)").some((J)=>J.name==="idempotency_key"))Z.exec("ALTER TABLE run_events ADD COLUMN idempotency_key TEXT");Z.exec(`CREATE UNIQUE INDEX IF NOT EXISTS run_events_idempotency_key_idx
|
|
154
154
|
ON run_events (run_id, idempotency_key)
|
|
155
|
-
WHERE idempotency_key IS NOT NULL`)}var cx=U(()=>{xQ()});var nx={};P6(nx,{createDefaultLocalRunEventStore:()=>px,createDefaultLocalRunEventNotifier:()=>ix,createDefaultLocalAgentStores:()=>du,createDefaultLocalAgentRunStore:()=>lx,createDefaultLocalAgentCheckpointStore:()=>ux});async function ux(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (Ax(),hx));return new $({stateRoot:Z.stateRoot})}async function lx(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (Sx(),_x));return $.open(Z)}async function px(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (cx(),dx));return $.open(Z)}function ix(){return Lx()}async function du(Z){return{store:await lx(Z),checkpointStore:await ux(Z),eventStore:await px(Z),eventNotifier:ix()}}var ax=()=>{};IH();w8();function yK(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:sc(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?GN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function mK(Z){let $=Z.finishedAt?.getTime()??Z.cancelledAt?.getTime()??Z.expiredAt?.getTime()??null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:oc(Z.status),model:Z.model??null,result:Z.result??null,error:Z.errorCode??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),startedAt:Z.startedAt?.getTime()??null,endedAt:$,startCheckpointRef:Z.startCheckpointRef?GN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?GN(Z.latestCheckpointRef):null}}function kQ(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:tc(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?LN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function fQ(Z){let $=ec(Z.status),J=Z.endedAt?new Date(Z.endedAt):null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$,model:Z.model??null,startCheckpointRef:Z.startCheckpointRef?LN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?LN(Z.latestCheckpointRef):null,errorCode:Z.error??null,result:Z.result??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),startedAt:Z.startedAt?new Date(Z.startedAt):null,finishedAt:$==="FINISHED"?J:null,cancelledAt:$==="CANCELLED"?J:null,expiredAt:$==="EXPIRED"?J:null}}function GN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function LN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function sc(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function tc(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function oc(Z){switch(Z){case"QUEUED":return"queued";case"CREATING":return"running";case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired"}}function ec(Z){switch(Z){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED"}}IH();AH();class IN{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(wN(Z.runId,$));if(K)return DN(K)}let J=this.eventsByRunId.get(Z.runId)??[],X=(J.at(-1)?.seq??0)+1,z={runId:Z.runId,seq:X,offset:String(X),eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:$,createdAt:Date.now()};if(J.push(z),this.eventsByRunId.set(Z.runId,J),$)this.idempotencyKeys.set(wN(Z.runId,$),z);return DN(z)}async list(Z){let $=Nu(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>DN(z));return{items:X,...Y.length>X.length&&X.length>0?{nextOffset:X.at(-1)?.offset}:{}}}async delete(Z){let $=Z.filter.runIds&&Z.filter.runIds.length>0?Z.filter.runIds:[...this.eventsByRunId.keys()];for(let J of $){let Y=this.eventsByRunId.get(J);if(!Y)continue;for(let X of Y)if(X.idempotencyKey)this.idempotencyKeys.delete(wN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function Qx(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?UN(Y):null},create:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(X?.has(J))throw Error(`Checkpoint blob ${J} already exists for agent ${$}`);if(!X)X=new Map,Z.set($,X);X.set(J,UN(Y))},update:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(!X?.has(J))throw Error(`Checkpoint blob ${J} not found for agent ${$}`);X.set(J,UN(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of Xu(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Yu(Z,J);return kN(Y,J)}}}function ON(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function qx(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>ON(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>fN([...$.values()],J?.filter)}}function Zu(Z){return{get:($)=>Z.get($),create:($)=>{Z.set($.agentId,structuredClone($))},set:($,J)=>{Z.set($,structuredClone(J))},delete:($)=>{Z.delete($)},has:($)=>Z.has($),values:()=>Z.values()}}class $u{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new IN;checkpoints=Qx(this.checkpointBytes);agents=qx({agentRows:Zu(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(EQ(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=EQ(Z.agentId,Z.runId);if(this.runMap.has($))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},update:async({run:Z})=>{let $=EQ(Z.agentId,Z.runId);if(!this.runMap.has($))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},delete:async(Z)=>{for(let $ of Wx(this.runMap.values(),Z.filter))this.runMap.delete(EQ($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>jK(Y,$));return VQ(J,$)}}}class Ju{bundles=new Map;checkpointBytes=new Map;runEvents=new IN;checkpoints=Qx(this.checkpointBytes);agents=qx({agentRows:{get:(Z)=>this.bundles.get(Z)?.agent,create:(Z)=>{this.bundles.set(Z.agentId,{agent:structuredClone(Z),runs:new Map})},set:(Z,$)=>{let J=this.bundles.get(Z);if(!J)throw Error(`Agent ${Z} not found`);this.bundles.set(Z,{agent:structuredClone($),runs:J.runs})},delete:(Z)=>{this.bundles.delete(Z)},has:(Z)=>this.bundles.has(Z),values:()=>[...this.bundles.values()].map((Z)=>Z.agent)}});runs={get:async({agentId:Z,runId:$})=>{let J=this.bundles.get(Z)?.runs.get($);return J?structuredClone(J):null},create:async({run:Z})=>{let $=this.requireBundle(Z.agentId);if($.runs.has(Z.runId))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},update:async({run:Z})=>{let $=this.bundles.get(Z.agentId);if(!$?.runs.has(Z.runId))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},delete:async(Z)=>{for(let $ of Wx([...this.bundles.values()].flatMap((J)=>[...J.runs.values()]),Z.filter))this.bundles.get($.agentId)?.runs.delete($.runId)},list:async(Z)=>{let $=Z?.filter,J=[...this.bundles.values()].flatMap((Y)=>[...Y.runs.values()]).filter((Y)=>jK(Y,$));return VQ(J,$)}};requireBundle(Z){let $=this.bundles.get(Z);if($)return $;let J={agent:{agentId:Z,cwd:"",status:"idle",createdAt:Date.now(),updatedAt:Date.now()},runs:new Map};return this.bundles.set(Z,J),J}}function PQ(Z,$){if(!$?.agentIds?.length&&!$?.blobIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.blobIds?.length&&!$.blobIds.includes(Z.blobId))return!1;return!0}function Yu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(PQ({agentId:Y,blobId:z},$))J.push(z);return J}function Xu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(PQ({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function kN(Z,$){let J=[...Z].sort((Q,W)=>Q.localeCompare(W)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((Q)=>Q>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function jK(Z,$){if(!$?.agentIds?.length&&!$?.runIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.runIds?.length&&!$.runIds.includes(Z.runId))return!1;return!0}function Wx(Z,$){return[...Z].filter((J)=>jK(J,$))}function fN(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(zu),X=$?.limit??50,z=Y;if($?.cursor){let W=qu($.cursor);z=Y.filter((G)=>Hu(G,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:Nx({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function VQ(Z,$){let J=[...Z].sort(Ku),Y=$?.limit??50,X=J;if($?.cursor){let Q=Wu($.cursor);X=J.filter((W)=>Qu(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:Nx({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function zu(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Ku(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Hu(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Qu(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function Nx(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function qu(Z){let $=Bx(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Wu(Z){let $=Bx(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function Bx(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(typeof $==="object"&&$!==null&&!Array.isArray($))return $}catch{}throw Error("Invalid list cursor")}function EQ(Z,$){return`${Z}:${$}`}function Nu(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}function wN(Z,$){return`${Z}:${$}`}function DN(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function UN(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}KH();import{createHash as Bu}from"crypto";import{homedir as Fu}from"os";import{join as Gu}from"path";function Fx(Z){let $=Bu("md5").update(Z).digest("hex");return Gu(HW(Fu(),Z),"sdk-agent-store",$)}function cu(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function rx(Z){return{runId:Z.runId,seq:Z.seq,offset:Z.offset,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:Z.idempotencyKey??null,createdAt:Z.createdAt.getTime()}}function uu(Z,$,J){if(typeof Z.upsertAgentRecord!=="function")throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(typeof J.appendRunEvent!=="function")throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(typeof $.listCheckpointBlobIds!=="function")throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}async function sx(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function lu(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return rx(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(rx),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function pu(Z){let $=c8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,l0(Y));return z?cu(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,l0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,l0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,l0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,l0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await sx(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);for(let Q of X)await K.deleteBlob(Q);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await sx(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(PQ({agentId:K,blobId:W},Y))z.push(W)}return kN(z,Y)}}}async function iu(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function nu(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?yK(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(kQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return yK(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(kQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return yK(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(yK).filter((Y)=>ON(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await iu(Z,Y.agentId);for(let z of X)await Z.eventStore.deleteRunEvents({runId:z});await Z.checkpointStore.deleteAgent(Y.agentId),await Z.runStore.deleteAgent(Y.agentId)}},list:async($)=>{let J=(await Z.runStore.listAllAgentRecords()).map(yK);return fN(J,$?.filter)}}}function au(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?mK(Y):null},create:async({run:$})=>{if(await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} already exists for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(fQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return mK(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(fQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return mK(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(mK).filter((z)=>jK(z,J));if(X.length===0)return;for(let z of X)await Z.eventStore.deleteRunEvents({runId:z.runId});await Z.runStore.deleteRunRecordsByKeys(X.map((z)=>({agentId:z.agentId,runId:z.runId})))},list:async($)=>{let J=$?.filter,X=(await Z.runStore.listAllRunRecords(J?.agentIds)).map(mK).filter((z)=>jK(z,J));return VQ(X,J)}}}class RN{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??Fx(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (ax(),nx)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return uu(X,K,z),new RN({stateRoot:$,workspaceRef:Z.workspaceRef,runStore:X,checkpointStore:K,eventStore:z})}constructor(Z){this.stateRoot=Z.stateRoot,this.workspaceRef=Z.workspaceRef,this.deps={runStore:Z.runStore,checkpointStore:Z.checkpointStore,eventStore:Z.eventStore},this.agents=nu(this.deps),this.checkpoints=pu(this.deps),this.runs=au(this.deps),this.runEvents=lu(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{RN as SqliteLocalAgentStore};
|
|
155
|
+
WHERE idempotency_key IS NOT NULL`)}var ix=I(()=>{MQ()});var tx={};P8(tx,{createDefaultLocalRunEventStore:()=>rx,createDefaultLocalRunEventNotifier:()=>sx,createDefaultLocalAgentStores:()=>iu,createDefaultLocalAgentRunStore:()=>ax,createDefaultLocalAgentCheckpointStore:()=>nx});async function nx(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (yx(),Rx));return new $({stateRoot:Z.stateRoot})}async function ax(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (cx(),dx));return $.open(Z)}async function rx(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (ix(),px));return $.open(Z)}function sx(){return Ox()}async function iu(Z){return{store:await ax(Z),checkpointStore:await nx(Z),eventStore:await rx(Z),eventNotifier:sx()}}var ox=()=>{};UH();w6();function mK(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:$u(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?LN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function jK(Z){let $=Z.finishedAt?.getTime()??Z.cancelledAt?.getTime()??Z.expiredAt?.getTime()??null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:Yu(Z.status),model:Z.model??null,result:Z.result??null,error:Z.errorCode??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),startedAt:Z.startedAt?.getTime()??null,endedAt:$,startCheckpointRef:Z.startCheckpointRef?LN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?LN(Z.latestCheckpointRef):null}}function fQ(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:Ju(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?wN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function EQ(Z){let $=Xu(Z.status),J=Z.endedAt?new Date(Z.endedAt):null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$,model:Z.model??null,startCheckpointRef:Z.startCheckpointRef?wN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?wN(Z.latestCheckpointRef):null,errorCode:Z.error??null,result:Z.result??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),startedAt:Z.startedAt?new Date(Z.startedAt):null,finishedAt:$==="FINISHED"?J:null,cancelledAt:$==="CANCELLED"?J:null,expiredAt:$==="EXPIRED"?J:null}}function LN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function wN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function $u(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function Ju(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function Yu(Z){switch(Z){case"QUEUED":return"queued";case"CREATING":return"running";case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired"}}function Xu(Z){switch(Z){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED"}}UH();AH();class ON{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(DN(Z.runId,$));if(K)return IN(K)}let J=this.eventsByRunId.get(Z.runId)??[],X=(J.at(-1)?.seq??0)+1,z={runId:Z.runId,seq:X,offset:String(X),eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:$,createdAt:Date.now()};if(J.push(z),this.eventsByRunId.set(Z.runId,J),$)this.idempotencyKeys.set(DN(Z.runId,$),z);return IN(z)}async list(Z){let $=wu(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>IN(z));return{items:X,...Y.length>X.length&&X.length>0?{nextOffset:X.at(-1)?.offset}:{}}}async delete(Z){let $=Z.filter.runIds&&Z.filter.runIds.length>0?Z.filter.runIds:[...this.eventsByRunId.keys()];for(let J of $){let Y=this.eventsByRunId.get(J);if(!Y)continue;for(let X of Y)if(X.idempotencyKey)this.idempotencyKeys.delete(DN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function Bx(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?UN(Y):null},create:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(X?.has(J))throw Error(`Checkpoint blob ${J} already exists for agent ${$}`);if(!X)X=new Map,Z.set($,X);X.set(J,UN(Y))},update:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(!X?.has(J))throw Error(`Checkpoint blob ${J} not found for agent ${$}`);X.set(J,UN(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of qu(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Qu(Z,J);return fN(Y,J)}}}function kN(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function Fx(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>kN(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>EN([...$.values()],J?.filter)}}function zu(Z){return{get:($)=>Z.get($),create:($)=>{Z.set($.agentId,structuredClone($))},set:($,J)=>{Z.set($,structuredClone(J))},delete:($)=>{Z.delete($)},has:($)=>Z.has($),values:()=>Z.values()}}class Ku{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new ON;checkpoints=Bx(this.checkpointBytes);agents=Fx({agentRows:zu(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(PQ(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=PQ(Z.agentId,Z.runId);if(this.runMap.has($))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},update:async({run:Z})=>{let $=PQ(Z.agentId,Z.runId);if(!this.runMap.has($))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},delete:async(Z)=>{for(let $ of Gx(this.runMap.values(),Z.filter))this.runMap.delete(PQ($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>_K(Y,$));return xQ(J,$)}}}class Hu{bundles=new Map;checkpointBytes=new Map;runEvents=new ON;checkpoints=Bx(this.checkpointBytes);agents=Fx({agentRows:{get:(Z)=>this.bundles.get(Z)?.agent,create:(Z)=>{this.bundles.set(Z.agentId,{agent:structuredClone(Z),runs:new Map})},set:(Z,$)=>{let J=this.bundles.get(Z);if(!J)throw Error(`Agent ${Z} not found`);this.bundles.set(Z,{agent:structuredClone($),runs:J.runs})},delete:(Z)=>{this.bundles.delete(Z)},has:(Z)=>this.bundles.has(Z),values:()=>[...this.bundles.values()].map((Z)=>Z.agent)}});runs={get:async({agentId:Z,runId:$})=>{let J=this.bundles.get(Z)?.runs.get($);return J?structuredClone(J):null},create:async({run:Z})=>{let $=this.requireBundle(Z.agentId);if($.runs.has(Z.runId))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},update:async({run:Z})=>{let $=this.bundles.get(Z.agentId);if(!$?.runs.has(Z.runId))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},delete:async(Z)=>{for(let $ of Gx([...this.bundles.values()].flatMap((J)=>[...J.runs.values()]),Z.filter))this.bundles.get($.agentId)?.runs.delete($.runId)},list:async(Z)=>{let $=Z?.filter,J=[...this.bundles.values()].flatMap((Y)=>[...Y.runs.values()]).filter((Y)=>_K(Y,$));return xQ(J,$)}};requireBundle(Z){let $=this.bundles.get(Z);if($)return $;let J={agent:{agentId:Z,cwd:"",status:"idle",createdAt:Date.now(),updatedAt:Date.now()},runs:new Map};return this.bundles.set(Z,J),J}}function VQ(Z,$){if(!$?.agentIds?.length&&!$?.blobIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.blobIds?.length&&!$.blobIds.includes(Z.blobId))return!1;return!0}function Qu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(VQ({agentId:Y,blobId:z},$))J.push(z);return J}function qu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(VQ({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function fN(Z,$){let J=[...Z].sort((Q,W)=>Q.localeCompare(W)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((Q)=>Q>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function _K(Z,$){if(!$?.agentIds?.length&&!$?.runIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.runIds?.length&&!$.runIds.includes(Z.runId))return!1;return!0}function Gx(Z,$){return[...Z].filter((J)=>_K(J,$))}function EN(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(Wu),X=$?.limit??50,z=Y;if($?.cursor){let W=Gu($.cursor);z=Y.filter((G)=>Bu(G,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:Lx({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function xQ(Z,$){let J=[...Z].sort(Nu),Y=$?.limit??50,X=J;if($?.cursor){let Q=Lu($.cursor);X=J.filter((W)=>Fu(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:Lx({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function Wu(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Nu(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Bu(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Fu(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function Lx(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function Gu(Z){let $=wx(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Lu(Z){let $=wx(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function wx(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(typeof $==="object"&&$!==null&&!Array.isArray($))return $}catch{}throw Error("Invalid list cursor")}function PQ(Z,$){return`${Z}:${$}`}function wu(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}function DN(Z,$){return`${Z}:${$}`}function IN(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function UN(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}hK();import{createHash as Dx}from"crypto";import{existsSync as PN,renameSync as Du}from"fs";import{homedir as Iu}from"os";import{join as VN}from"path";function Ix(Z){let $=VN(QW(Iu(),Z),"sdk-agent-store"),J=VN($,Dx("sha256").update(Z).digest("hex"));if(PN(J))return J;let Y=Uu(Z);if(Y===void 0)return J;let X=VN($,Y);if(!PN(X))return J;try{return Du(X,J),J}catch{return PN(X)?X:J}}function Uu(Z){try{return Dx("md5").update(Z).digest("hex")}catch($){if(Ou($))return;throw $}}function Ou(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function nu(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function ex(Z){return{runId:Z.runId,seq:Z.seq,offset:Z.offset,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:Z.idempotencyKey??null,createdAt:Z.createdAt.getTime()}}function au(Z,$,J){if(typeof Z.upsertAgentRecord!=="function")throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(typeof J.appendRunEvent!=="function")throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(typeof $.listCheckpointBlobIds!=="function")throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}async function ZM(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function ru(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return ex(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(ex),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function su(Z){let $=c6();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,l0(Y));return z?nu(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,l0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,l0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,l0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,l0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await ZM(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);for(let Q of X)await K.deleteBlob(Q);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await ZM(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(VQ({agentId:K,blobId:W},Y))z.push(W)}return fN(z,Y)}}}async function tu(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function ou(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?mK(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(fQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return mK(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(fQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return mK(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(mK).filter((Y)=>kN(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await tu(Z,Y.agentId);for(let z of X)await Z.eventStore.deleteRunEvents({runId:z});await Z.checkpointStore.deleteAgent(Y.agentId),await Z.runStore.deleteAgent(Y.agentId)}},list:async($)=>{let J=(await Z.runStore.listAllAgentRecords()).map(mK);return EN(J,$?.filter)}}}function eu(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?jK(Y):null},create:async({run:$})=>{if(await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} already exists for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(EQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return jK(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(EQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return jK(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(jK).filter((z)=>_K(z,J));if(X.length===0)return;for(let z of X)await Z.eventStore.deleteRunEvents({runId:z.runId});await Z.runStore.deleteRunRecordsByKeys(X.map((z)=>({agentId:z.agentId,runId:z.runId})))},list:async($)=>{let J=$?.filter,X=(await Z.runStore.listAllRunRecords(J?.agentIds)).map(jK).filter((z)=>_K(z,J));return xQ(X,J)}}}class jN{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??Ix(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (ox(),tx)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return au(X,K,z),new jN({stateRoot:$,workspaceRef:Z.workspaceRef,runStore:X,checkpointStore:K,eventStore:z})}constructor(Z){this.stateRoot=Z.stateRoot,this.workspaceRef=Z.workspaceRef,this.deps={runStore:Z.runStore,checkpointStore:Z.checkpointStore,eventStore:Z.eventStore},this.agents=ou(this.deps),this.checkpoints=su(this.deps),this.runs=eu(this.deps),this.runEvents=ru(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{jN as SqliteLocalAgentStore};
|