@proxyvn/genai 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,271 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ const a6_0x51c1ef=a6_0x148c;(function(_0x27ef2a,_0x11a278){const _0x45991d=a6_0x148c,_0x3d049d=_0x27ef2a();while(!![]){try{const _0x29a6c0=-parseInt(_0x45991d(0x1a1))/0x1*(parseInt(_0x45991d(0x2e6))/0x2)+-parseInt(_0x45991d(0x3e0))/0x3+parseInt(_0x45991d(0x3f2))/0x4*(-parseInt(_0x45991d(0x162))/0x5)+-parseInt(_0x45991d(0x243))/0x6+-parseInt(_0x45991d(0x357))/0x7+parseInt(_0x45991d(0x2d6))/0x8*(-parseInt(_0x45991d(0x2d0))/0x9)+-parseInt(_0x45991d(0x50d))/0xa*(-parseInt(_0x45991d(0x5d0))/0xb);if(_0x29a6c0===_0x11a278)break;else _0x3d049d['push'](_0x3d049d['shift']());}catch(_0x35fb21){_0x3d049d['push'](_0x3d049d['shift']());}}}(a6_0x5537,0xc1e96));let _defaultBaseGeminiUrl=undefined,_defaultBaseVertexUrl=undefined;function setDefaultBaseUrls(_0x493976){const _0x10285c=a6_0x148c;_defaultBaseGeminiUrl=_0x493976[_0x10285c(0x1a3)],_defaultBaseVertexUrl=_0x493976['vertexUrl'];}function getDefaultBaseUrls(){return{'geminiUrl':_defaultBaseGeminiUrl,'vertexUrl':_defaultBaseVertexUrl};}function getBaseUrl(_0x26ef1a,_0xf72dbc,_0x27d49e,_0x3939f3){const _0x53fe9c=a6_0x148c;var _0x41fbae,_0x5714e8;if(!(_0x26ef1a===null||_0x26ef1a===void 0x0?void 0x0:_0x26ef1a[_0x53fe9c(0x586)])){const _0x48da6b=getDefaultBaseUrls();return _0xf72dbc?(_0x41fbae=_0x48da6b[_0x53fe9c(0x408)])!==null&&_0x41fbae!==void 0x0?_0x41fbae:_0x27d49e:(_0x5714e8=_0x48da6b[_0x53fe9c(0x1a3)])!==null&&_0x5714e8!==void 0x0?_0x5714e8:_0x3939f3;}return _0x26ef1a['baseUrl'];}/**
7
+ * @license
8
+ * Copyright 2025 Google LLC
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ class BaseModule{}function formatMap(_0x307522,_0x4cce3a){const _0x43c156=a6_0x148c,_0x34610e=/\{([^}]+)\}/g;return _0x307522[_0x43c156(0x5a3)](_0x34610e,(_0x178e70,_0x2805e6)=>{const _0x4344f6=_0x43c156;if(Object['prototype'][_0x4344f6(0x472)][_0x4344f6(0x17f)](_0x4cce3a,_0x2805e6)){const _0x1e14ff=_0x4cce3a[_0x2805e6];return _0x1e14ff!==undefined&&_0x1e14ff!==null?String(_0x1e14ff):'';}else throw new Error(_0x4344f6(0x5c7)+_0x2805e6+'\x27\x20not\x20found\x20in\x20valueMap.');});}function setValueByPath(_0x1ea7dc,_0x385a73,_0x336d1e){const _0x53a7e6=a6_0x148c;for(let _0xfa365f=0x0;_0xfa365f<_0x385a73[_0x53a7e6(0x3b7)]-0x1;_0xfa365f++){const _0x45ec49=_0x385a73[_0xfa365f];if(_0x45ec49[_0x53a7e6(0x600)]('[]')){const _0x20698c=_0x45ec49[_0x53a7e6(0x15a)](0x0,-0x2);if(!(_0x20698c in _0x1ea7dc)){if(Array[_0x53a7e6(0x49d)](_0x336d1e))_0x1ea7dc[_0x20698c]=Array[_0x53a7e6(0x478)]({'length':_0x336d1e[_0x53a7e6(0x3b7)]},()=>({}));else throw new Error('Value\x20must\x20be\x20a\x20list\x20given\x20an\x20array\x20path\x20'+_0x45ec49);}if(Array['isArray'](_0x1ea7dc[_0x20698c])){const _0x37e4c6=_0x1ea7dc[_0x20698c];if(Array[_0x53a7e6(0x49d)](_0x336d1e))for(let _0x38941e=0x0;_0x38941e<_0x37e4c6[_0x53a7e6(0x3b7)];_0x38941e++){const _0xe03564=_0x37e4c6[_0x38941e];setValueByPath(_0xe03564,_0x385a73[_0x53a7e6(0x15a)](_0xfa365f+0x1),_0x336d1e[_0x38941e]);}else for(const _0x57fa4d of _0x37e4c6){setValueByPath(_0x57fa4d,_0x385a73[_0x53a7e6(0x15a)](_0xfa365f+0x1),_0x336d1e);}}return;}else{if(_0x45ec49[_0x53a7e6(0x600)](_0x53a7e6(0x40a))){const _0x410c92=_0x45ec49[_0x53a7e6(0x15a)](0x0,-0x3);!(_0x410c92 in _0x1ea7dc)&&(_0x1ea7dc[_0x410c92]=[{}]);const _0x206e8e=_0x1ea7dc[_0x410c92];setValueByPath(_0x206e8e[0x0],_0x385a73[_0x53a7e6(0x15a)](_0xfa365f+0x1),_0x336d1e);return;}}(!_0x1ea7dc[_0x45ec49]||typeof _0x1ea7dc[_0x45ec49]!==_0x53a7e6(0x25e))&&(_0x1ea7dc[_0x45ec49]={}),_0x1ea7dc=_0x1ea7dc[_0x45ec49];}const _0x3072d7=_0x385a73[_0x385a73[_0x53a7e6(0x3b7)]-0x1],_0x54b3ba=_0x1ea7dc[_0x3072d7];if(_0x54b3ba!==undefined){if(!_0x336d1e||typeof _0x336d1e===_0x53a7e6(0x25e)&&Object[_0x53a7e6(0x562)](_0x336d1e)[_0x53a7e6(0x3b7)]===0x0)return;if(_0x336d1e===_0x54b3ba)return;if(typeof _0x54b3ba===_0x53a7e6(0x25e)&&typeof _0x336d1e===_0x53a7e6(0x25e)&&_0x54b3ba!==null&&_0x336d1e!==null)Object[_0x53a7e6(0x5a8)](_0x54b3ba,_0x336d1e);else throw new Error('Cannot\x20set\x20value\x20for\x20an\x20existing\x20key.\x20Key:\x20'+_0x3072d7);}else{if(_0x3072d7===_0x53a7e6(0x5aa)&&typeof _0x336d1e==='object'&&_0x336d1e!==null&&!Array[_0x53a7e6(0x49d)](_0x336d1e)){const _0x5cf924=_0x336d1e;Object['assign'](_0x1ea7dc,_0x5cf924);}else _0x1ea7dc[_0x3072d7]=_0x336d1e;}}function getValueByPath(_0x579abf,_0x5d085f,_0x20246e=undefined){const _0x3ac2d2=a6_0x148c;try{if(_0x5d085f[_0x3ac2d2(0x3b7)]===0x1&&_0x5d085f[0x0]===_0x3ac2d2(0x5aa))return _0x579abf;for(let _0x247bbc=0x0;_0x247bbc<_0x5d085f[_0x3ac2d2(0x3b7)];_0x247bbc++){if(typeof _0x579abf!==_0x3ac2d2(0x25e)||_0x579abf===null)return _0x20246e;const _0x4eea21=_0x5d085f[_0x247bbc];if(_0x4eea21['endsWith']('[]')){const _0x3fb8e0=_0x4eea21[_0x3ac2d2(0x15a)](0x0,-0x2);if(_0x3fb8e0 in _0x579abf){const _0x4ca9d1=_0x579abf[_0x3fb8e0];if(!Array['isArray'](_0x4ca9d1))return _0x20246e;return _0x4ca9d1['map'](_0x202099=>getValueByPath(_0x202099,_0x5d085f['slice'](_0x247bbc+0x1),_0x20246e));}else return _0x20246e;}else _0x579abf=_0x579abf[_0x4eea21];}return _0x579abf;}catch(_0x1248ae){if(_0x1248ae instanceof TypeError)return _0x20246e;throw _0x1248ae;}}function moveValueByPath(_0x5f37b9,_0x4fda56){const _0x24b15e=a6_0x148c;for(const [_0x5504d4,_0x437052]of Object[_0x24b15e(0x4cc)](_0x4fda56)){const _0x4b3e36=_0x5504d4['split']('.'),_0x503562=_0x437052[_0x24b15e(0x322)]('.'),_0x1bb8b3=new Set();let _0x459fe6=-0x1;for(let _0x13a67d=0x0;_0x13a67d<_0x4b3e36[_0x24b15e(0x3b7)];_0x13a67d++){if(_0x4b3e36[_0x13a67d]==='*'){_0x459fe6=_0x13a67d;break;}}if(_0x459fe6!==-0x1&&_0x503562[_0x24b15e(0x3b7)]>_0x459fe6)for(let _0x5cd604=_0x459fe6;_0x5cd604<_0x503562[_0x24b15e(0x3b7)];_0x5cd604++){const _0x2d6415=_0x503562[_0x5cd604];_0x2d6415!=='*'&&!_0x2d6415[_0x24b15e(0x600)]('[]')&&!_0x2d6415[_0x24b15e(0x600)]('[0]')&&_0x1bb8b3[_0x24b15e(0x27d)](_0x2d6415);}_moveValueRecursive(_0x5f37b9,_0x4b3e36,_0x503562,0x0,_0x1bb8b3);}}function _moveValueRecursive(_0x3a1ab8,_0x26557c,_0x29bfd7,_0x1011dd,_0x38ca4a){const _0x5c0f03=a6_0x148c;if(_0x1011dd>=_0x26557c['length'])return;if(typeof _0x3a1ab8!=='object'||_0x3a1ab8===null)return;const _0x4f81b8=_0x26557c[_0x1011dd];if(_0x4f81b8['endsWith']('[]')){const _0x563051=_0x4f81b8[_0x5c0f03(0x15a)](0x0,-0x2),_0x422d18=_0x3a1ab8;if(_0x563051 in _0x422d18&&Array[_0x5c0f03(0x49d)](_0x422d18[_0x563051]))for(const _0x4f8e29 of _0x422d18[_0x563051]){_moveValueRecursive(_0x4f8e29,_0x26557c,_0x29bfd7,_0x1011dd+0x1,_0x38ca4a);}}else{if(_0x4f81b8==='*'){if(typeof _0x3a1ab8===_0x5c0f03(0x25e)&&_0x3a1ab8!==null&&!Array[_0x5c0f03(0x49d)](_0x3a1ab8)){const _0x113a8b=_0x3a1ab8,_0x2cc9e6=Object[_0x5c0f03(0x562)](_0x113a8b)[_0x5c0f03(0x581)](_0x5a0277=>!_0x5a0277[_0x5c0f03(0x453)]('_')&&!_0x38ca4a['has'](_0x5a0277)),_0x5440f0={};for(const _0xd06dfa of _0x2cc9e6){_0x5440f0[_0xd06dfa]=_0x113a8b[_0xd06dfa];}for(const [_0xbf97f6,_0x5b9948]of Object[_0x5c0f03(0x4cc)](_0x5440f0)){const _0x3844d3=[];for(const _0x42fa34 of _0x29bfd7[_0x5c0f03(0x15a)](_0x1011dd)){_0x42fa34==='*'?_0x3844d3[_0x5c0f03(0x656)](_0xbf97f6):_0x3844d3[_0x5c0f03(0x656)](_0x42fa34);}setValueByPath(_0x113a8b,_0x3844d3,_0x5b9948);}for(const _0x299fda of _0x2cc9e6){delete _0x113a8b[_0x299fda];}}}else{const _0x13e5dc=_0x3a1ab8;_0x4f81b8 in _0x13e5dc&&_moveValueRecursive(_0x13e5dc[_0x4f81b8],_0x26557c,_0x29bfd7,_0x1011dd+0x1,_0x38ca4a);}}}/**
12
+ * @license
13
+ * Copyright 2025 Google LLC
14
+ * SPDX-License-Identifier: Apache-2.0
15
+ */
16
+ function tBytes$1(_0x38ce05){const _0x2a7303=a6_0x148c;if(typeof _0x38ce05!==_0x2a7303(0x53d))throw new Error(_0x2a7303(0x481));return _0x38ce05;}/**
17
+ * @license
18
+ * Copyright 2025 Google LLC
19
+ * SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ function fetchPredictOperationParametersToVertex(_0x1461a6){const _0x53fff6=a6_0x148c,_0x3dad49={},_0x24c35b=getValueByPath(_0x1461a6,[_0x53fff6(0x4fe)]);_0x24c35b!=null&&setValueByPath(_0x3dad49,[_0x53fff6(0x4fe)],_0x24c35b);const _0xeb96cd=getValueByPath(_0x1461a6,[_0x53fff6(0x41a)]);return _0xeb96cd!=null&&setValueByPath(_0x3dad49,['_url',_0x53fff6(0x41a)],_0xeb96cd),_0x3dad49;}function generateVideosOperationFromMldev$1(_0xd6c52e){const _0x43c1f9=a6_0x148c,_0x108d9d={},_0x3299d0=getValueByPath(_0xd6c52e,[_0x43c1f9(0x558)]);_0x3299d0!=null&&setValueByPath(_0x108d9d,[_0x43c1f9(0x558)],_0x3299d0);const _0x1b7202=getValueByPath(_0xd6c52e,[_0x43c1f9(0x367)]);_0x1b7202!=null&&setValueByPath(_0x108d9d,[_0x43c1f9(0x367)],_0x1b7202);const _0x1af1c4=getValueByPath(_0xd6c52e,[_0x43c1f9(0x2e9)]);_0x1af1c4!=null&&setValueByPath(_0x108d9d,[_0x43c1f9(0x2e9)],_0x1af1c4);const _0x1ccb8a=getValueByPath(_0xd6c52e,[_0x43c1f9(0x50a)]);_0x1ccb8a!=null&&setValueByPath(_0x108d9d,[_0x43c1f9(0x50a)],_0x1ccb8a);const _0x475207=getValueByPath(_0xd6c52e,[_0x43c1f9(0x603),'generateVideoResponse']);return _0x475207!=null&&setValueByPath(_0x108d9d,['response'],generateVideosResponseFromMldev$1(_0x475207)),_0x108d9d;}function generateVideosOperationFromVertex$1(_0x312367){const _0x429911=a6_0x148c,_0x397ae4={},_0x1aba99=getValueByPath(_0x312367,[_0x429911(0x558)]);_0x1aba99!=null&&setValueByPath(_0x397ae4,['name'],_0x1aba99);const _0x5c8cf5=getValueByPath(_0x312367,['metadata']);_0x5c8cf5!=null&&setValueByPath(_0x397ae4,[_0x429911(0x367)],_0x5c8cf5);const _0x571e14=getValueByPath(_0x312367,['done']);_0x571e14!=null&&setValueByPath(_0x397ae4,['done'],_0x571e14);const _0x286552=getValueByPath(_0x312367,['error']);_0x286552!=null&&setValueByPath(_0x397ae4,['error'],_0x286552);const _0x178fbc=getValueByPath(_0x312367,['response']);return _0x178fbc!=null&&setValueByPath(_0x397ae4,[_0x429911(0x603)],generateVideosResponseFromVertex$1(_0x178fbc)),_0x397ae4;}function generateVideosResponseFromMldev$1(_0x10895b){const _0x4a5c2e=a6_0x148c,_0x2824df={},_0x143803=getValueByPath(_0x10895b,['generatedSamples']);if(_0x143803!=null){let _0x5a4fe7=_0x143803;Array['isArray'](_0x5a4fe7)&&(_0x5a4fe7=_0x5a4fe7[_0x4a5c2e(0x68f)](_0x23b773=>{return generatedVideoFromMldev$1(_0x23b773);})),setValueByPath(_0x2824df,[_0x4a5c2e(0x304)],_0x5a4fe7);}const _0x240ff3=getValueByPath(_0x10895b,[_0x4a5c2e(0x2a4)]);_0x240ff3!=null&&setValueByPath(_0x2824df,[_0x4a5c2e(0x2a4)],_0x240ff3);const _0x5d5563=getValueByPath(_0x10895b,[_0x4a5c2e(0x288)]);return _0x5d5563!=null&&setValueByPath(_0x2824df,[_0x4a5c2e(0x288)],_0x5d5563),_0x2824df;}function generateVideosResponseFromVertex$1(_0x4652bc){const _0x31e2a9=a6_0x148c,_0x16728c={},_0xf3d06b=getValueByPath(_0x4652bc,[_0x31e2a9(0x62f)]);if(_0xf3d06b!=null){let _0x3dd03d=_0xf3d06b;Array['isArray'](_0x3dd03d)&&(_0x3dd03d=_0x3dd03d[_0x31e2a9(0x68f)](_0x39de05=>{return generatedVideoFromVertex$1(_0x39de05);})),setValueByPath(_0x16728c,[_0x31e2a9(0x304)],_0x3dd03d);}const _0x42b27b=getValueByPath(_0x4652bc,[_0x31e2a9(0x2a4)]);_0x42b27b!=null&&setValueByPath(_0x16728c,[_0x31e2a9(0x2a4)],_0x42b27b);const _0x57920e=getValueByPath(_0x4652bc,['raiMediaFilteredReasons']);return _0x57920e!=null&&setValueByPath(_0x16728c,[_0x31e2a9(0x288)],_0x57920e),_0x16728c;}function generatedVideoFromMldev$1(_0x16640e){const _0x29453c=a6_0x148c,_0x82ffbf={},_0x2cefe6=getValueByPath(_0x16640e,[_0x29453c(0x533)]);return _0x2cefe6!=null&&setValueByPath(_0x82ffbf,[_0x29453c(0x533)],videoFromMldev$1(_0x2cefe6)),_0x82ffbf;}function generatedVideoFromVertex$1(_0x44025d){const _0x1e23a5=a6_0x148c,_0x536795={},_0x12a282=getValueByPath(_0x44025d,[_0x1e23a5(0x5aa)]);return _0x12a282!=null&&setValueByPath(_0x536795,[_0x1e23a5(0x533)],videoFromVertex$1(_0x12a282)),_0x536795;}function getOperationParametersToMldev(_0x9ad450){const _0x4defc2=a6_0x148c,_0x42cad7={},_0x396afc=getValueByPath(_0x9ad450,['operationName']);return _0x396afc!=null&&setValueByPath(_0x42cad7,[_0x4defc2(0x2c1),_0x4defc2(0x4fe)],_0x396afc),_0x42cad7;}function getOperationParametersToVertex(_0x3552fd){const _0x1ac6d4=a6_0x148c,_0x4a49d6={},_0x3a48e3=getValueByPath(_0x3552fd,[_0x1ac6d4(0x4fe)]);return _0x3a48e3!=null&&setValueByPath(_0x4a49d6,[_0x1ac6d4(0x2c1),_0x1ac6d4(0x4fe)],_0x3a48e3),_0x4a49d6;}function importFileOperationFromMldev$1(_0x4fba37){const _0x2cbc18=a6_0x148c,_0x328acd={},_0x3c3bc8=getValueByPath(_0x4fba37,[_0x2cbc18(0x558)]);_0x3c3bc8!=null&&setValueByPath(_0x328acd,[_0x2cbc18(0x558)],_0x3c3bc8);const _0x3c857e=getValueByPath(_0x4fba37,['metadata']);_0x3c857e!=null&&setValueByPath(_0x328acd,[_0x2cbc18(0x367)],_0x3c857e);const _0x18e441=getValueByPath(_0x4fba37,[_0x2cbc18(0x2e9)]);_0x18e441!=null&&setValueByPath(_0x328acd,[_0x2cbc18(0x2e9)],_0x18e441);const _0x6e5c47=getValueByPath(_0x4fba37,[_0x2cbc18(0x50a)]);_0x6e5c47!=null&&setValueByPath(_0x328acd,[_0x2cbc18(0x50a)],_0x6e5c47);const _0x9bdaac=getValueByPath(_0x4fba37,[_0x2cbc18(0x603)]);return _0x9bdaac!=null&&setValueByPath(_0x328acd,[_0x2cbc18(0x603)],importFileResponseFromMldev$1(_0x9bdaac)),_0x328acd;}function importFileResponseFromMldev$1(_0x283531){const _0x1c679d=a6_0x148c,_0x43f45d={},_0xb74331=getValueByPath(_0x283531,[_0x1c679d(0x344)]);_0xb74331!=null&&setValueByPath(_0x43f45d,[_0x1c679d(0x344)],_0xb74331);const _0x53868b=getValueByPath(_0x283531,[_0x1c679d(0x509)]);_0x53868b!=null&&setValueByPath(_0x43f45d,[_0x1c679d(0x509)],_0x53868b);const _0x52d73f=getValueByPath(_0x283531,[_0x1c679d(0x195)]);return _0x52d73f!=null&&setValueByPath(_0x43f45d,['documentName'],_0x52d73f),_0x43f45d;}function uploadToFileSearchStoreOperationFromMldev(_0x179856){const _0x35b6a4=a6_0x148c,_0x4ba9e1={},_0x565fe9=getValueByPath(_0x179856,[_0x35b6a4(0x558)]);_0x565fe9!=null&&setValueByPath(_0x4ba9e1,[_0x35b6a4(0x558)],_0x565fe9);const _0x1c21e6=getValueByPath(_0x179856,[_0x35b6a4(0x367)]);_0x1c21e6!=null&&setValueByPath(_0x4ba9e1,[_0x35b6a4(0x367)],_0x1c21e6);const _0x2aeb2e=getValueByPath(_0x179856,[_0x35b6a4(0x2e9)]);_0x2aeb2e!=null&&setValueByPath(_0x4ba9e1,[_0x35b6a4(0x2e9)],_0x2aeb2e);const _0x428d5c=getValueByPath(_0x179856,[_0x35b6a4(0x50a)]);_0x428d5c!=null&&setValueByPath(_0x4ba9e1,[_0x35b6a4(0x50a)],_0x428d5c);const _0x3c5e99=getValueByPath(_0x179856,[_0x35b6a4(0x603)]);return _0x3c5e99!=null&&setValueByPath(_0x4ba9e1,[_0x35b6a4(0x603)],uploadToFileSearchStoreResponseFromMldev(_0x3c5e99)),_0x4ba9e1;}function uploadToFileSearchStoreResponseFromMldev(_0x593262){const _0x170b0f=a6_0x148c,_0xad6081={},_0x43597c=getValueByPath(_0x593262,[_0x170b0f(0x344)]);_0x43597c!=null&&setValueByPath(_0xad6081,['sdkHttpResponse'],_0x43597c);const _0x8f3c73=getValueByPath(_0x593262,[_0x170b0f(0x509)]);_0x8f3c73!=null&&setValueByPath(_0xad6081,[_0x170b0f(0x509)],_0x8f3c73);const _0x509a08=getValueByPath(_0x593262,[_0x170b0f(0x195)]);return _0x509a08!=null&&setValueByPath(_0xad6081,['documentName'],_0x509a08),_0xad6081;}function videoFromMldev$1(_0x19b394){const _0x52581a=a6_0x148c,_0x49e8e2={},_0x2a1443=getValueByPath(_0x19b394,[_0x52581a(0x64d)]);_0x2a1443!=null&&setValueByPath(_0x49e8e2,[_0x52581a(0x64d)],_0x2a1443);const _0x156ded=getValueByPath(_0x19b394,[_0x52581a(0x3a5)]);_0x156ded!=null&&setValueByPath(_0x49e8e2,[_0x52581a(0x58c)],tBytes$1(_0x156ded));const _0x576167=getValueByPath(_0x19b394,['encoding']);return _0x576167!=null&&setValueByPath(_0x49e8e2,['mimeType'],_0x576167),_0x49e8e2;}function videoFromVertex$1(_0x44059c){const _0x1a05f1=a6_0x148c,_0x5acccb={},_0x4798ba=getValueByPath(_0x44059c,[_0x1a05f1(0x507)]);_0x4798ba!=null&&setValueByPath(_0x5acccb,[_0x1a05f1(0x64d)],_0x4798ba);const _0x4e793e=getValueByPath(_0x44059c,['bytesBase64Encoded']);_0x4e793e!=null&&setValueByPath(_0x5acccb,[_0x1a05f1(0x58c)],tBytes$1(_0x4e793e));const _0x4db693=getValueByPath(_0x44059c,[_0x1a05f1(0x1ac)]);return _0x4db693!=null&&setValueByPath(_0x5acccb,[_0x1a05f1(0x1ac)],_0x4db693),_0x5acccb;}/**
22
+ * @license
23
+ * Copyright 2025 Google LLC
24
+ * SPDX-License-Identifier: Apache-2.0
25
+ */
26
+ var Outcome;(function(_0x82d920){const _0x460731=a6_0x148c;_0x82d920[_0x460731(0x2f4)]=_0x460731(0x2f4),_0x82d920[_0x460731(0x287)]=_0x460731(0x287),_0x82d920['OUTCOME_FAILED']=_0x460731(0x1d0),_0x82d920[_0x460731(0x2e1)]='OUTCOME_DEADLINE_EXCEEDED';}(Outcome||(Outcome={})));var Language;(function(_0x54f987){const _0x4318b1=a6_0x148c;_0x54f987[_0x4318b1(0x256)]='LANGUAGE_UNSPECIFIED',_0x54f987['PYTHON']=_0x4318b1(0x58a);}(Language||(Language={})));var FunctionResponseScheduling;(function(_0x57ad70){const _0x5deea9=a6_0x148c;_0x57ad70[_0x5deea9(0x399)]=_0x5deea9(0x399),_0x57ad70[_0x5deea9(0x244)]=_0x5deea9(0x244),_0x57ad70[_0x5deea9(0x5e7)]='WHEN_IDLE',_0x57ad70[_0x5deea9(0x473)]=_0x5deea9(0x473);}(FunctionResponseScheduling||(FunctionResponseScheduling={})));var Type;(function(_0x4d5d2a){const _0x38d43d=a6_0x148c;_0x4d5d2a[_0x38d43d(0x567)]=_0x38d43d(0x567),_0x4d5d2a[_0x38d43d(0x4e1)]=_0x38d43d(0x4e1),_0x4d5d2a[_0x38d43d(0x32d)]='NUMBER',_0x4d5d2a[_0x38d43d(0x3e9)]='INTEGER',_0x4d5d2a[_0x38d43d(0x1be)]='BOOLEAN',_0x4d5d2a['ARRAY']=_0x38d43d(0x175),_0x4d5d2a[_0x38d43d(0x42a)]=_0x38d43d(0x42a),_0x4d5d2a[_0x38d43d(0x169)]=_0x38d43d(0x169);}(Type||(Type={})));var ApiSpec;(function(_0x1fab4a){const _0x4c49b2=a6_0x148c;_0x1fab4a['API_SPEC_UNSPECIFIED']='API_SPEC_UNSPECIFIED',_0x1fab4a[_0x4c49b2(0x1c6)]=_0x4c49b2(0x1c6),_0x1fab4a[_0x4c49b2(0x196)]='ELASTIC_SEARCH';}(ApiSpec||(ApiSpec={})));var AuthType;(function(_0x389bdc){const _0xc84170=a6_0x148c;_0x389bdc[_0xc84170(0x2c2)]=_0xc84170(0x2c2),_0x389bdc['NO_AUTH']='NO_AUTH',_0x389bdc[_0xc84170(0x694)]=_0xc84170(0x694),_0x389bdc['HTTP_BASIC_AUTH']=_0xc84170(0x2b8),_0x389bdc[_0xc84170(0x1c9)]=_0xc84170(0x1c9),_0x389bdc[_0xc84170(0x1f0)]=_0xc84170(0x1f0),_0x389bdc[_0xc84170(0x277)]=_0xc84170(0x277);}(AuthType||(AuthType={})));var HttpElementLocation;(function(_0x3d4aae){const _0x3e5d1d=a6_0x148c;_0x3d4aae[_0x3e5d1d(0x321)]=_0x3e5d1d(0x321),_0x3d4aae['HTTP_IN_QUERY']=_0x3e5d1d(0x59c),_0x3d4aae[_0x3e5d1d(0x688)]='HTTP_IN_HEADER',_0x3d4aae[_0x3e5d1d(0x476)]='HTTP_IN_PATH',_0x3d4aae[_0x3e5d1d(0x3d6)]=_0x3e5d1d(0x3d6),_0x3d4aae[_0x3e5d1d(0x635)]=_0x3e5d1d(0x635);}(HttpElementLocation||(HttpElementLocation={})));var PhishBlockThreshold;(function(_0x5dbfd3){const _0x3f9d2e=a6_0x148c;_0x5dbfd3[_0x3f9d2e(0x190)]=_0x3f9d2e(0x190),_0x5dbfd3[_0x3f9d2e(0x55c)]=_0x3f9d2e(0x55c),_0x5dbfd3['BLOCK_MEDIUM_AND_ABOVE']=_0x3f9d2e(0x4eb),_0x5dbfd3[_0x3f9d2e(0x36d)]='BLOCK_HIGH_AND_ABOVE',_0x5dbfd3[_0x3f9d2e(0x5b7)]=_0x3f9d2e(0x5b7),_0x5dbfd3[_0x3f9d2e(0x673)]='BLOCK_VERY_HIGH_AND_ABOVE',_0x5dbfd3[_0x3f9d2e(0x526)]=_0x3f9d2e(0x526);}(PhishBlockThreshold||(PhishBlockThreshold={})));var Behavior;(function(_0x36a821){const _0x1b8936=a6_0x148c;_0x36a821[_0x1b8936(0x49f)]=_0x1b8936(0x49f),_0x36a821[_0x1b8936(0x5b5)]=_0x1b8936(0x5b5),_0x36a821[_0x1b8936(0x213)]=_0x1b8936(0x213);}(Behavior||(Behavior={})));var DynamicRetrievalConfigMode;(function(_0x1a9cc5){const _0x2d9fe9=a6_0x148c;_0x1a9cc5[_0x2d9fe9(0x371)]=_0x2d9fe9(0x371),_0x1a9cc5['MODE_DYNAMIC']='MODE_DYNAMIC';}(DynamicRetrievalConfigMode||(DynamicRetrievalConfigMode={})));var FunctionCallingConfigMode;(function(_0x139c31){const _0x40aff7=a6_0x148c;_0x139c31[_0x40aff7(0x371)]=_0x40aff7(0x371),_0x139c31[_0x40aff7(0x247)]=_0x40aff7(0x247),_0x139c31[_0x40aff7(0x152)]=_0x40aff7(0x152),_0x139c31['NONE']=_0x40aff7(0x174),_0x139c31[_0x40aff7(0x331)]=_0x40aff7(0x331);}(FunctionCallingConfigMode||(FunctionCallingConfigMode={})));var ThinkingLevel;(function(_0x3ab1bc){const _0x3a9b0c=a6_0x148c;_0x3ab1bc['THINKING_LEVEL_UNSPECIFIED']=_0x3a9b0c(0x681),_0x3ab1bc[_0x3a9b0c(0x5b6)]=_0x3a9b0c(0x5b6),_0x3ab1bc['MEDIUM']='MEDIUM',_0x3ab1bc[_0x3a9b0c(0x561)]=_0x3a9b0c(0x561),_0x3ab1bc[_0x3a9b0c(0x33d)]=_0x3a9b0c(0x33d);}(ThinkingLevel||(ThinkingLevel={})));var HarmCategory;(function(_0x5e0ffc){const _0x4cfb74=a6_0x148c;_0x5e0ffc['HARM_CATEGORY_UNSPECIFIED']=_0x4cfb74(0x255),_0x5e0ffc[_0x4cfb74(0x4e6)]=_0x4cfb74(0x4e6),_0x5e0ffc[_0x4cfb74(0x45e)]=_0x4cfb74(0x45e),_0x5e0ffc[_0x4cfb74(0x535)]='HARM_CATEGORY_SEXUALLY_EXPLICIT',_0x5e0ffc[_0x4cfb74(0x680)]='HARM_CATEGORY_DANGEROUS_CONTENT',_0x5e0ffc[_0x4cfb74(0x2f3)]='HARM_CATEGORY_CIVIC_INTEGRITY',_0x5e0ffc[_0x4cfb74(0x439)]=_0x4cfb74(0x439),_0x5e0ffc[_0x4cfb74(0x210)]=_0x4cfb74(0x210),_0x5e0ffc[_0x4cfb74(0x28b)]='HARM_CATEGORY_IMAGE_HARASSMENT',_0x5e0ffc[_0x4cfb74(0x184)]=_0x4cfb74(0x184),_0x5e0ffc[_0x4cfb74(0x48e)]='HARM_CATEGORY_JAILBREAK';}(HarmCategory||(HarmCategory={})));var HarmBlockMethod;(function(_0x39a402){const _0x28139d=a6_0x148c;_0x39a402[_0x28139d(0x23b)]=_0x28139d(0x23b),_0x39a402[_0x28139d(0x404)]=_0x28139d(0x404),_0x39a402[_0x28139d(0x1fd)]='PROBABILITY';}(HarmBlockMethod||(HarmBlockMethod={})));var HarmBlockThreshold;(function(_0x509543){const _0x6fe3d2=a6_0x148c;_0x509543[_0x6fe3d2(0x56f)]=_0x6fe3d2(0x56f),_0x509543[_0x6fe3d2(0x55c)]='BLOCK_LOW_AND_ABOVE',_0x509543[_0x6fe3d2(0x4eb)]=_0x6fe3d2(0x4eb),_0x509543[_0x6fe3d2(0x15d)]='BLOCK_ONLY_HIGH',_0x509543['BLOCK_NONE']=_0x6fe3d2(0x18d),_0x509543[_0x6fe3d2(0x3a8)]=_0x6fe3d2(0x3a8);}(HarmBlockThreshold||(HarmBlockThreshold={})));var FinishReason;(function(_0x3fb4a1){const _0x1c6285=a6_0x148c;_0x3fb4a1[_0x1c6285(0x669)]='FINISH_REASON_UNSPECIFIED',_0x3fb4a1[_0x1c6285(0x376)]=_0x1c6285(0x376),_0x3fb4a1[_0x1c6285(0x2be)]=_0x1c6285(0x2be),_0x3fb4a1['SAFETY']='SAFETY',_0x3fb4a1['RECITATION']=_0x1c6285(0x60d),_0x3fb4a1['LANGUAGE']=_0x1c6285(0x170),_0x3fb4a1[_0x1c6285(0x336)]=_0x1c6285(0x336),_0x3fb4a1['BLOCKLIST']=_0x1c6285(0x590),_0x3fb4a1['PROHIBITED_CONTENT']=_0x1c6285(0x531),_0x3fb4a1['SPII']=_0x1c6285(0x692),_0x3fb4a1[_0x1c6285(0x5fb)]=_0x1c6285(0x5fb),_0x3fb4a1['IMAGE_SAFETY']='IMAGE_SAFETY',_0x3fb4a1[_0x1c6285(0x35f)]=_0x1c6285(0x35f),_0x3fb4a1[_0x1c6285(0x460)]=_0x1c6285(0x460),_0x3fb4a1[_0x1c6285(0x18a)]=_0x1c6285(0x18a),_0x3fb4a1[_0x1c6285(0x651)]=_0x1c6285(0x651),_0x3fb4a1[_0x1c6285(0x1f8)]=_0x1c6285(0x1f8);}(FinishReason||(FinishReason={})));var HarmProbability;(function(_0x387c36){const _0x2f730f=a6_0x148c;_0x387c36[_0x2f730f(0x623)]=_0x2f730f(0x623),_0x387c36['NEGLIGIBLE']=_0x2f730f(0x596),_0x387c36[_0x2f730f(0x5b6)]='LOW',_0x387c36['MEDIUM']='MEDIUM',_0x387c36['HIGH']=_0x2f730f(0x561);}(HarmProbability||(HarmProbability={})));var HarmSeverity;(function(_0x358b95){const _0xc8af64=a6_0x148c;_0x358b95[_0xc8af64(0x305)]='HARM_SEVERITY_UNSPECIFIED',_0x358b95[_0xc8af64(0x5db)]=_0xc8af64(0x5db),_0x358b95['HARM_SEVERITY_LOW']=_0xc8af64(0x3ed),_0x358b95[_0xc8af64(0x4a4)]=_0xc8af64(0x4a4),_0x358b95['HARM_SEVERITY_HIGH']=_0xc8af64(0x423);}(HarmSeverity||(HarmSeverity={})));var UrlRetrievalStatus;(function(_0x347dcc){const _0x46362b=a6_0x148c;_0x347dcc[_0x46362b(0x591)]=_0x46362b(0x591),_0x347dcc[_0x46362b(0x3c6)]=_0x46362b(0x3c6),_0x347dcc[_0x46362b(0x3ea)]=_0x46362b(0x3ea),_0x347dcc['URL_RETRIEVAL_STATUS_PAYWALL']=_0x46362b(0x26e),_0x347dcc['URL_RETRIEVAL_STATUS_UNSAFE']=_0x46362b(0x621);}(UrlRetrievalStatus||(UrlRetrievalStatus={})));var BlockedReason;(function(_0x4bf85d){const _0x1fbd8e=a6_0x148c;_0x4bf85d['BLOCKED_REASON_UNSPECIFIED']=_0x1fbd8e(0x609),_0x4bf85d[_0x1fbd8e(0x571)]=_0x1fbd8e(0x571),_0x4bf85d[_0x1fbd8e(0x336)]=_0x1fbd8e(0x336),_0x4bf85d[_0x1fbd8e(0x590)]=_0x1fbd8e(0x590),_0x4bf85d[_0x1fbd8e(0x531)]=_0x1fbd8e(0x531),_0x4bf85d['IMAGE_SAFETY']=_0x1fbd8e(0x330),_0x4bf85d[_0x1fbd8e(0x3f3)]=_0x1fbd8e(0x3f3),_0x4bf85d[_0x1fbd8e(0x191)]=_0x1fbd8e(0x191);}(BlockedReason||(BlockedReason={})));var TrafficType;(function(_0x56ce42){const _0x4f4644=a6_0x148c;_0x56ce42[_0x4f4644(0x391)]=_0x4f4644(0x391),_0x56ce42[_0x4f4644(0x39b)]=_0x4f4644(0x39b),_0x56ce42['PROVISIONED_THROUGHPUT']=_0x4f4644(0x652);}(TrafficType||(TrafficType={})));var Modality;(function(_0x161416){const _0xeb75e=a6_0x148c;_0x161416[_0xeb75e(0x63a)]=_0xeb75e(0x63a),_0x161416[_0xeb75e(0x302)]='TEXT',_0x161416[_0xeb75e(0x5b1)]=_0xeb75e(0x5b1),_0x161416['AUDIO']='AUDIO';}(Modality||(Modality={})));var MediaResolution;(function(_0x5196ad){const _0x3017e5=a6_0x148c;_0x5196ad[_0x3017e5(0x297)]='MEDIA_RESOLUTION_UNSPECIFIED',_0x5196ad[_0x3017e5(0x1ef)]=_0x3017e5(0x1ef),_0x5196ad[_0x3017e5(0x640)]=_0x3017e5(0x640),_0x5196ad[_0x3017e5(0x50f)]=_0x3017e5(0x50f);}(MediaResolution||(MediaResolution={})));var TuningMode;(function(_0x18be8c){const _0x28d125=a6_0x148c;_0x18be8c['TUNING_MODE_UNSPECIFIED']=_0x28d125(0x4ae),_0x18be8c['TUNING_MODE_FULL']=_0x28d125(0x3be),_0x18be8c[_0x28d125(0x58e)]=_0x28d125(0x58e);}(TuningMode||(TuningMode={})));var AdapterSize;(function(_0x569964){const _0x22c97e=a6_0x148c;_0x569964[_0x22c97e(0x5e0)]=_0x22c97e(0x5e0),_0x569964['ADAPTER_SIZE_ONE']=_0x22c97e(0x1e4),_0x569964[_0x22c97e(0x61d)]=_0x22c97e(0x61d),_0x569964['ADAPTER_SIZE_FOUR']=_0x22c97e(0x248),_0x569964[_0x22c97e(0x356)]=_0x22c97e(0x356),_0x569964['ADAPTER_SIZE_SIXTEEN']=_0x22c97e(0x549),_0x569964[_0x22c97e(0x637)]=_0x22c97e(0x637);}(AdapterSize||(AdapterSize={})));var JobState;(function(_0x264331){const _0x488410=a6_0x148c;_0x264331[_0x488410(0x3e2)]='JOB_STATE_UNSPECIFIED',_0x264331[_0x488410(0x1b4)]=_0x488410(0x1b4),_0x264331['JOB_STATE_PENDING']=_0x488410(0x179),_0x264331[_0x488410(0x1d7)]='JOB_STATE_RUNNING',_0x264331[_0x488410(0x577)]=_0x488410(0x577),_0x264331[_0x488410(0x67f)]='JOB_STATE_FAILED',_0x264331['JOB_STATE_CANCELLING']='JOB_STATE_CANCELLING',_0x264331[_0x488410(0x23e)]='JOB_STATE_CANCELLED',_0x264331[_0x488410(0x684)]='JOB_STATE_PAUSED',_0x264331[_0x488410(0x4e9)]=_0x488410(0x4e9),_0x264331['JOB_STATE_UPDATING']=_0x488410(0x310),_0x264331[_0x488410(0x218)]=_0x488410(0x218);}(JobState||(JobState={})));var TuningTask;(function(_0x488331){const _0x15c7ca=a6_0x148c;_0x488331[_0x15c7ca(0x347)]='TUNING_TASK_UNSPECIFIED',_0x488331['TUNING_TASK_I2V']=_0x15c7ca(0x4bc),_0x488331[_0x15c7ca(0x2cf)]=_0x15c7ca(0x2cf),_0x488331[_0x15c7ca(0x563)]=_0x15c7ca(0x563);}(TuningTask||(TuningTask={})));var PartMediaResolutionLevel;(function(_0x5d4526){const _0x3ade9f=a6_0x148c;_0x5d4526[_0x3ade9f(0x297)]=_0x3ade9f(0x297),_0x5d4526[_0x3ade9f(0x1ef)]=_0x3ade9f(0x1ef),_0x5d4526[_0x3ade9f(0x640)]=_0x3ade9f(0x640),_0x5d4526[_0x3ade9f(0x50f)]=_0x3ade9f(0x50f),_0x5d4526[_0x3ade9f(0x34d)]=_0x3ade9f(0x34d);}(PartMediaResolutionLevel||(PartMediaResolutionLevel={})));var ResourceScope;(function(_0x4a53db){const _0x4a6a14=a6_0x148c;_0x4a53db[_0x4a6a14(0x483)]=_0x4a6a14(0x483);}(ResourceScope||(ResourceScope={})));var FeatureSelectionPreference;(function(_0x46146e){const _0xae4b60=a6_0x148c;_0x46146e[_0xae4b60(0x433)]='FEATURE_SELECTION_PREFERENCE_UNSPECIFIED',_0x46146e[_0xae4b60(0x5ed)]='PRIORITIZE_QUALITY',_0x46146e['BALANCED']='BALANCED',_0x46146e[_0xae4b60(0x557)]='PRIORITIZE_COST';}(FeatureSelectionPreference||(FeatureSelectionPreference={})));var Environment;(function(_0xede48e){const _0x265d02=a6_0x148c;_0xede48e[_0x265d02(0x53f)]='ENVIRONMENT_UNSPECIFIED',_0xede48e[_0x265d02(0x298)]=_0x265d02(0x298);}(Environment||(Environment={})));var SafetyFilterLevel;(function(_0x39a6a4){const _0x42d436=a6_0x148c;_0x39a6a4['BLOCK_LOW_AND_ABOVE']='BLOCK_LOW_AND_ABOVE',_0x39a6a4[_0x42d436(0x4eb)]=_0x42d436(0x4eb),_0x39a6a4[_0x42d436(0x15d)]=_0x42d436(0x15d),_0x39a6a4[_0x42d436(0x18d)]=_0x42d436(0x18d);}(SafetyFilterLevel||(SafetyFilterLevel={})));var PersonGeneration;(function(_0x499b67){const _0xacf087=a6_0x148c;_0x499b67[_0xacf087(0x2e2)]='DONT_ALLOW',_0x499b67[_0xacf087(0x372)]=_0xacf087(0x372),_0x499b67[_0xacf087(0x5ca)]=_0xacf087(0x5ca);}(PersonGeneration||(PersonGeneration={})));var ImagePromptLanguage;(function(_0x33b7e8){const _0x295919=a6_0x148c;_0x33b7e8[_0x295919(0x5ea)]=_0x295919(0x5ea),_0x33b7e8['en']='en',_0x33b7e8['ja']='ja',_0x33b7e8['ko']='ko',_0x33b7e8['hi']='hi',_0x33b7e8['zh']='zh',_0x33b7e8['pt']='pt',_0x33b7e8['es']='es';}(ImagePromptLanguage||(ImagePromptLanguage={})));var MaskReferenceMode;(function(_0x1cc699){const _0x293368=a6_0x148c;_0x1cc699[_0x293368(0x4ea)]=_0x293368(0x4ea),_0x1cc699[_0x293368(0x1f4)]='MASK_MODE_USER_PROVIDED',_0x1cc699[_0x293368(0x58d)]=_0x293368(0x58d),_0x1cc699[_0x293368(0x3da)]=_0x293368(0x3da),_0x1cc699[_0x293368(0x273)]=_0x293368(0x273);}(MaskReferenceMode||(MaskReferenceMode={})));var ControlReferenceType;(function(_0xafb839){const _0x2d131a=a6_0x148c;_0xafb839[_0x2d131a(0x2a0)]=_0x2d131a(0x2a0),_0xafb839['CONTROL_TYPE_CANNY']=_0x2d131a(0x4b8),_0xafb839[_0x2d131a(0x258)]=_0x2d131a(0x258),_0xafb839[_0x2d131a(0x658)]=_0x2d131a(0x658);}(ControlReferenceType||(ControlReferenceType={})));var SubjectReferenceType;(function(_0x328716){const _0xd529ad=a6_0x148c;_0x328716[_0xd529ad(0x30d)]=_0xd529ad(0x30d),_0x328716[_0xd529ad(0x3cc)]=_0xd529ad(0x3cc),_0x328716[_0xd529ad(0x5ab)]=_0xd529ad(0x5ab),_0x328716[_0xd529ad(0x337)]='SUBJECT_TYPE_PRODUCT';}(SubjectReferenceType||(SubjectReferenceType={})));var EditMode;(function(_0x34f1f1){const _0x424143=a6_0x148c;_0x34f1f1[_0x424143(0x23f)]=_0x424143(0x23f),_0x34f1f1[_0x424143(0x1ea)]='EDIT_MODE_INPAINT_REMOVAL',_0x34f1f1['EDIT_MODE_INPAINT_INSERTION']='EDIT_MODE_INPAINT_INSERTION',_0x34f1f1['EDIT_MODE_OUTPAINT']=_0x424143(0x2a7),_0x34f1f1[_0x424143(0x471)]='EDIT_MODE_CONTROLLED_EDITING',_0x34f1f1[_0x424143(0x261)]=_0x424143(0x261),_0x34f1f1[_0x424143(0x3bd)]=_0x424143(0x3bd),_0x34f1f1['EDIT_MODE_PRODUCT_IMAGE']=_0x424143(0x212);}(EditMode||(EditMode={})));var SegmentMode;(function(_0x1af8cd){const _0x5d359f=a6_0x148c;_0x1af8cd[_0x5d359f(0x265)]=_0x5d359f(0x265),_0x1af8cd[_0x5d359f(0x3e8)]=_0x5d359f(0x3e8),_0x1af8cd['PROMPT']=_0x5d359f(0x301),_0x1af8cd[_0x5d359f(0x520)]=_0x5d359f(0x520),_0x1af8cd[_0x5d359f(0x608)]='INTERACTIVE';}(SegmentMode||(SegmentMode={})));var VideoGenerationReferenceType;(function(_0xa68c86){const _0x32cdc3=a6_0x148c;_0xa68c86['ASSET']='ASSET',_0xa68c86[_0x32cdc3(0x2aa)]=_0x32cdc3(0x2aa);}(VideoGenerationReferenceType||(VideoGenerationReferenceType={})));var VideoGenerationMaskMode;(function(_0x329141){const _0x1e75a3=a6_0x148c;_0x329141[_0x1e75a3(0x345)]=_0x1e75a3(0x345),_0x329141[_0x1e75a3(0x19d)]=_0x1e75a3(0x19d),_0x329141[_0x1e75a3(0x1af)]=_0x1e75a3(0x1af),_0x329141[_0x1e75a3(0x26c)]=_0x1e75a3(0x26c);}(VideoGenerationMaskMode||(VideoGenerationMaskMode={})));var VideoCompressionQuality;(function(_0x41fc8b){const _0x2f5f3f=a6_0x148c;_0x41fc8b['OPTIMIZED']=_0x2f5f3f(0x610),_0x41fc8b[_0x2f5f3f(0x194)]=_0x2f5f3f(0x194);}(VideoCompressionQuality||(VideoCompressionQuality={})));var TuningMethod;(function(_0x544ee1){const _0x4499b9=a6_0x148c;_0x544ee1['SUPERVISED_FINE_TUNING']=_0x4499b9(0x2e0),_0x544ee1[_0x4499b9(0x37b)]='PREFERENCE_TUNING',_0x544ee1[_0x4499b9(0x1d1)]=_0x4499b9(0x1d1);}(TuningMethod||(TuningMethod={})));var DocumentState;(function(_0x92719){const _0xaba87=a6_0x148c;_0x92719['STATE_UNSPECIFIED']='STATE_UNSPECIFIED',_0x92719[_0xaba87(0x5ce)]=_0xaba87(0x5ce),_0x92719[_0xaba87(0x313)]='STATE_ACTIVE',_0x92719['STATE_FAILED']=_0xaba87(0x1ad);}(DocumentState||(DocumentState={})));var FileState;(function(_0x391493){const _0xb19a63=a6_0x148c;_0x391493[_0xb19a63(0x5b2)]='STATE_UNSPECIFIED',_0x391493[_0xb19a63(0x220)]=_0xb19a63(0x220),_0x391493[_0xb19a63(0x4c7)]='ACTIVE',_0x391493[_0xb19a63(0x420)]=_0xb19a63(0x420);}(FileState||(FileState={})));var FileSource;(function(_0x28ac24){const _0x3ddfd5=a6_0x148c;_0x28ac24[_0x3ddfd5(0x60c)]=_0x3ddfd5(0x60c),_0x28ac24[_0x3ddfd5(0x272)]='UPLOADED',_0x28ac24['GENERATED']=_0x3ddfd5(0x193),_0x28ac24['REGISTERED']=_0x3ddfd5(0x1f7);}(FileSource||(FileSource={})));var TurnCompleteReason;(function(_0x424c89){const _0x3fde83=a6_0x148c;_0x424c89[_0x3fde83(0x519)]='TURN_COMPLETE_REASON_UNSPECIFIED',_0x424c89[_0x3fde83(0x5fb)]=_0x3fde83(0x5fb),_0x424c89[_0x3fde83(0x62e)]='RESPONSE_REJECTED',_0x424c89[_0x3fde83(0x22c)]=_0x3fde83(0x22c);}(TurnCompleteReason||(TurnCompleteReason={})));var MediaModality;(function(_0x4c58b3){const _0x42f8c3=a6_0x148c;_0x4c58b3[_0x42f8c3(0x63a)]=_0x42f8c3(0x63a),_0x4c58b3[_0x42f8c3(0x302)]=_0x42f8c3(0x302),_0x4c58b3[_0x42f8c3(0x5b1)]=_0x42f8c3(0x5b1),_0x4c58b3[_0x42f8c3(0x1e0)]=_0x42f8c3(0x1e0),_0x4c58b3[_0x42f8c3(0x53e)]=_0x42f8c3(0x53e),_0x4c58b3[_0x42f8c3(0x2a3)]='DOCUMENT';}(MediaModality||(MediaModality={})));var VadSignalType;(function(_0x5688bb){const _0x3668e0=a6_0x148c;_0x5688bb[_0x3668e0(0x691)]=_0x3668e0(0x691),_0x5688bb[_0x3668e0(0x39c)]=_0x3668e0(0x39c),_0x5688bb[_0x3668e0(0x349)]='VAD_SIGNAL_TYPE_EOS';}(VadSignalType||(VadSignalType={})));var VoiceActivityType;(function(_0x565113){const _0x26d8a7=a6_0x148c;_0x565113[_0x26d8a7(0x567)]=_0x26d8a7(0x567),_0x565113['ACTIVITY_START']=_0x26d8a7(0x215),_0x565113['ACTIVITY_END']='ACTIVITY_END';}(VoiceActivityType||(VoiceActivityType={})));var StartSensitivity;(function(_0x537341){const _0x452ec1=a6_0x148c;_0x537341['START_SENSITIVITY_UNSPECIFIED']=_0x452ec1(0x66f),_0x537341[_0x452ec1(0x2f1)]='START_SENSITIVITY_HIGH',_0x537341['START_SENSITIVITY_LOW']=_0x452ec1(0x585);}(StartSensitivity||(StartSensitivity={})));var EndSensitivity;(function(_0x4969b4){const _0x287539=a6_0x148c;_0x4969b4['END_SENSITIVITY_UNSPECIFIED']=_0x287539(0x358),_0x4969b4[_0x287539(0x4f6)]='END_SENSITIVITY_HIGH',_0x4969b4[_0x287539(0x49b)]=_0x287539(0x49b);}(EndSensitivity||(EndSensitivity={})));var ActivityHandling;(function(_0x571c82){const _0x1dcb9e=a6_0x148c;_0x571c82[_0x1dcb9e(0x207)]=_0x1dcb9e(0x207),_0x571c82['START_OF_ACTIVITY_INTERRUPTS']=_0x1dcb9e(0x514),_0x571c82[_0x1dcb9e(0x2f7)]=_0x1dcb9e(0x2f7);}(ActivityHandling||(ActivityHandling={})));var TurnCoverage;(function(_0x18f9a3){const _0x4e18a3=a6_0x148c;_0x18f9a3['TURN_COVERAGE_UNSPECIFIED']=_0x4e18a3(0x490),_0x18f9a3[_0x4e18a3(0x3aa)]=_0x4e18a3(0x3aa),_0x18f9a3[_0x4e18a3(0x454)]='TURN_INCLUDES_ALL_INPUT';}(TurnCoverage||(TurnCoverage={})));var Scale;(function(_0x349ca5){const _0xd2760f=a6_0x148c;_0x349ca5[_0xd2760f(0x508)]=_0xd2760f(0x508),_0x349ca5[_0xd2760f(0x20d)]='C_MAJOR_A_MINOR',_0x349ca5[_0xd2760f(0x2fc)]=_0xd2760f(0x2fc),_0x349ca5[_0xd2760f(0x425)]='D_MAJOR_B_MINOR',_0x349ca5[_0xd2760f(0x4ac)]=_0xd2760f(0x4ac),_0x349ca5[_0xd2760f(0x654)]=_0xd2760f(0x654),_0x349ca5[_0xd2760f(0x2a2)]=_0xd2760f(0x2a2),_0x349ca5[_0xd2760f(0x64b)]=_0xd2760f(0x64b),_0x349ca5[_0xd2760f(0x1bf)]=_0xd2760f(0x1bf),_0x349ca5['A_FLAT_MAJOR_F_MINOR']=_0xd2760f(0x40f),_0x349ca5[_0xd2760f(0x642)]=_0xd2760f(0x642),_0x349ca5[_0xd2760f(0x64c)]='B_FLAT_MAJOR_G_MINOR',_0x349ca5[_0xd2760f(0x492)]=_0xd2760f(0x492);}(Scale||(Scale={})));var MusicGenerationMode;(function(_0x31634d){const _0x3e031b=a6_0x148c;_0x31634d[_0x3e031b(0x690)]=_0x3e031b(0x690),_0x31634d['QUALITY']=_0x3e031b(0x285),_0x31634d[_0x3e031b(0x276)]=_0x3e031b(0x276),_0x31634d[_0x3e031b(0x45a)]=_0x3e031b(0x45a);}(MusicGenerationMode||(MusicGenerationMode={})));var LiveMusicPlaybackControl;(function(_0x4fcc80){const _0x46c2fc=a6_0x148c;_0x4fcc80['PLAYBACK_CONTROL_UNSPECIFIED']=_0x46c2fc(0x462),_0x4fcc80[_0x46c2fc(0x4b1)]=_0x46c2fc(0x4b1),_0x4fcc80[_0x46c2fc(0x675)]=_0x46c2fc(0x675),_0x4fcc80[_0x46c2fc(0x376)]='STOP',_0x4fcc80[_0x46c2fc(0x22f)]=_0x46c2fc(0x22f);}(LiveMusicPlaybackControl||(LiveMusicPlaybackControl={})));class FunctionResponseBlob{}class FunctionResponseFileData{}class FunctionResponsePart{}function createFunctionResponsePartFromBase64(_0x2402c4,_0x2b3761){return{'inlineData':{'data':_0x2402c4,'mimeType':_0x2b3761}};}function createFunctionResponsePartFromUri(_0x29dd62,_0x4f9e77){return{'fileData':{'fileUri':_0x29dd62,'mimeType':_0x4f9e77}};}class FunctionResponse{}function createPartFromUri(_0x32e670,_0x365b42,_0x4e05a1){const _0x1d3990=a6_0x148c;return Object[_0x1d3990(0x5a8)]({'fileData':{'fileUri':_0x32e670,'mimeType':_0x365b42}},_0x4e05a1&&{'mediaResolution':{'level':_0x4e05a1}});}function createPartFromText(_0x4196fe){return{'text':_0x4196fe};}function createPartFromFunctionCall(_0x159a3b,_0x47a02b){return{'functionCall':{'name':_0x159a3b,'args':_0x47a02b}};}function createPartFromFunctionResponse(_0x300fc5,_0x587880,_0x27594a,_0x5b7969=[]){const _0x34d80d=a6_0x148c;return{'functionResponse':Object[_0x34d80d(0x5a8)]({'id':_0x300fc5,'name':_0x587880,'response':_0x27594a},_0x5b7969[_0x34d80d(0x3b7)]>0x0&&{'parts':_0x5b7969})};}function createPartFromBase64(_0x20ef2d,_0x4c18e3,_0x43eb40){const _0x92ede8=a6_0x148c;return Object[_0x92ede8(0x5a8)]({'inlineData':{'data':_0x20ef2d,'mimeType':_0x4c18e3}},_0x43eb40&&{'mediaResolution':{'level':_0x43eb40}});}function createPartFromCodeExecutionResult(_0x552fcd,_0x58c5e1){return{'codeExecutionResult':{'outcome':_0x552fcd,'output':_0x58c5e1}};}function createPartFromExecutableCode(_0x1eefc3,_0x5608b1){return{'executableCode':{'code':_0x1eefc3,'language':_0x5608b1}};}function _isPart(_0x5bb8b4){const _0x2d7e29=a6_0x148c;if(typeof _0x5bb8b4===_0x2d7e29(0x25e)&&_0x5bb8b4!==null)return _0x2d7e29(0x24e)in _0x5bb8b4||_0x2d7e29(0x278)in _0x5bb8b4||'functionCall'in _0x5bb8b4||_0x2d7e29(0x2fa)in _0x5bb8b4||'inlineData'in _0x5bb8b4||_0x2d7e29(0x2e8)in _0x5bb8b4||'codeExecutionResult'in _0x5bb8b4||_0x2d7e29(0x5df)in _0x5bb8b4;return![];}function _toParts(_0x20e8e2){const _0x51a7c9=a6_0x148c,_0x466e3f=[];if(typeof _0x20e8e2===_0x51a7c9(0x53d))_0x466e3f['push'](createPartFromText(_0x20e8e2));else{if(_isPart(_0x20e8e2))_0x466e3f['push'](_0x20e8e2);else{if(Array[_0x51a7c9(0x49d)](_0x20e8e2)){if(_0x20e8e2[_0x51a7c9(0x3b7)]===0x0)throw new Error(_0x51a7c9(0x661));for(const _0x39aea0 of _0x20e8e2){if(typeof _0x39aea0===_0x51a7c9(0x53d))_0x466e3f[_0x51a7c9(0x656)](createPartFromText(_0x39aea0));else{if(_isPart(_0x39aea0))_0x466e3f[_0x51a7c9(0x656)](_0x39aea0);else throw new Error(_0x51a7c9(0x28c));}}}else throw new Error(_0x51a7c9(0x2ea));}}return _0x466e3f;}function createUserContent(_0x211aa0){return{'role':'user','parts':_toParts(_0x211aa0)};}function createModelContent(_0x55358a){const _0x2dfc32=a6_0x148c;return{'role':_0x2dfc32(0x418),'parts':_toParts(_0x55358a)};}class HttpResponse{constructor(_0xa03122){const _0x82940f=a6_0x148c,_0x34aeef={};for(const _0x1dfec4 of _0xa03122[_0x82940f(0x2b9)]['entries']()){_0x34aeef[_0x1dfec4[0x0]]=_0x1dfec4[0x1];}this[_0x82940f(0x2b9)]=_0x34aeef,this[_0x82940f(0x443)]=_0xa03122;}[a6_0x51c1ef(0x31b)](){const _0x390767=a6_0x51c1ef;return this[_0x390767(0x443)][_0x390767(0x31b)]();}}class GenerateContentResponsePromptFeedback{}class GenerateContentResponseUsageMetadata{}class GenerateContentResponse{get[a6_0x51c1ef(0x278)](){const _0x1fbd30=a6_0x51c1ef;var _0xa13f78,_0x314b77,_0x422af2,_0x256409,_0x1b0a80,_0x41644f,_0x1c266b,_0x44d307;if(((_0x256409=(_0x422af2=(_0x314b77=(_0xa13f78=this[_0x1fbd30(0x410)])===null||_0xa13f78===void 0x0?void 0x0:_0xa13f78[0x0])===null||_0x314b77===void 0x0?void 0x0:_0x314b77[_0x1fbd30(0x479)])===null||_0x422af2===void 0x0?void 0x0:_0x422af2['parts'])===null||_0x256409===void 0x0?void 0x0:_0x256409[_0x1fbd30(0x3b7)])===0x0)return undefined;this[_0x1fbd30(0x410)]&&this[_0x1fbd30(0x410)][_0x1fbd30(0x3b7)]>0x1&&console['warn'](_0x1fbd30(0x270));let _0x42568c='',_0x52a946=![];const _0x48c172=[];for(const _0x1780e2 of(_0x44d307=(_0x1c266b=(_0x41644f=(_0x1b0a80=this[_0x1fbd30(0x410)])===null||_0x1b0a80===void 0x0?void 0x0:_0x1b0a80[0x0])===null||_0x41644f===void 0x0?void 0x0:_0x41644f[_0x1fbd30(0x479)])===null||_0x1c266b===void 0x0?void 0x0:_0x1c266b[_0x1fbd30(0x19f)])!==null&&_0x44d307!==void 0x0?_0x44d307:[]){for(const [_0x166e44,_0x1ecd9b]of Object['entries'](_0x1780e2)){_0x166e44!==_0x1fbd30(0x278)&&_0x166e44!=='thought'&&_0x166e44!==_0x1fbd30(0x4f0)&&(_0x1ecd9b!==null||_0x1ecd9b!==undefined)&&_0x48c172['push'](_0x166e44);}if(typeof _0x1780e2['text']==='string'){if(typeof _0x1780e2[_0x1fbd30(0x29e)]===_0x1fbd30(0x2c7)&&_0x1780e2[_0x1fbd30(0x29e)])continue;_0x52a946=!![],_0x42568c+=_0x1780e2[_0x1fbd30(0x278)];}}return _0x48c172['length']>0x0&&console[_0x1fbd30(0x5a6)]('there\x20are\x20non-text\x20parts\x20'+_0x48c172+_0x1fbd30(0x353)),_0x52a946?_0x42568c:undefined;}get['data'](){const _0xc78e35=a6_0x51c1ef;var _0x1f32f6,_0x50804f,_0x32ff4f,_0x292e65,_0x9d615e,_0x3fc6a9,_0x56a6c5,_0xe663f6;if(((_0x292e65=(_0x32ff4f=(_0x50804f=(_0x1f32f6=this[_0xc78e35(0x410)])===null||_0x1f32f6===void 0x0?void 0x0:_0x1f32f6[0x0])===null||_0x50804f===void 0x0?void 0x0:_0x50804f[_0xc78e35(0x479)])===null||_0x32ff4f===void 0x0?void 0x0:_0x32ff4f[_0xc78e35(0x19f)])===null||_0x292e65===void 0x0?void 0x0:_0x292e65[_0xc78e35(0x3b7)])===0x0)return undefined;this[_0xc78e35(0x410)]&&this[_0xc78e35(0x410)][_0xc78e35(0x3b7)]>0x1&&console[_0xc78e35(0x5a6)](_0xc78e35(0x1e8));let _0x59b853='';const _0x3835a6=[];for(const _0x271b80 of(_0xe663f6=(_0x56a6c5=(_0x3fc6a9=(_0x9d615e=this[_0xc78e35(0x410)])===null||_0x9d615e===void 0x0?void 0x0:_0x9d615e[0x0])===null||_0x3fc6a9===void 0x0?void 0x0:_0x3fc6a9['content'])===null||_0x56a6c5===void 0x0?void 0x0:_0x56a6c5[_0xc78e35(0x19f)])!==null&&_0xe663f6!==void 0x0?_0xe663f6:[]){for(const [_0x2a45db,_0x14f282]of Object[_0xc78e35(0x4cc)](_0x271b80)){_0x2a45db!=='inlineData'&&(_0x14f282!==null||_0x14f282!==undefined)&&_0x3835a6[_0xc78e35(0x656)](_0x2a45db);}_0x271b80[_0xc78e35(0x4b0)]&&typeof _0x271b80['inlineData']['data']==='string'&&(_0x59b853+=atob(_0x271b80[_0xc78e35(0x4b0)][_0xc78e35(0x18b)]));}return _0x3835a6['length']>0x0&&console[_0xc78e35(0x5a6)](_0xc78e35(0x2ab)+_0x3835a6+_0xc78e35(0x18f)),_0x59b853[_0xc78e35(0x3b7)]>0x0?btoa(_0x59b853):undefined;}get[a6_0x51c1ef(0x65d)](){const _0x5738ab=a6_0x51c1ef;var _0xb5f0e5,_0x5ed2b6,_0x30c0db,_0x156929,_0x511cf0,_0xfdd406,_0x529062,_0x37328e;if(((_0x156929=(_0x30c0db=(_0x5ed2b6=(_0xb5f0e5=this[_0x5738ab(0x410)])===null||_0xb5f0e5===void 0x0?void 0x0:_0xb5f0e5[0x0])===null||_0x5ed2b6===void 0x0?void 0x0:_0x5ed2b6[_0x5738ab(0x479)])===null||_0x30c0db===void 0x0?void 0x0:_0x30c0db[_0x5738ab(0x19f)])===null||_0x156929===void 0x0?void 0x0:_0x156929[_0x5738ab(0x3b7)])===0x0)return undefined;this[_0x5738ab(0x410)]&&this['candidates'][_0x5738ab(0x3b7)]>0x1&&console[_0x5738ab(0x5a6)](_0x5738ab(0x484));const _0x678179=(_0x37328e=(_0x529062=(_0xfdd406=(_0x511cf0=this[_0x5738ab(0x410)])===null||_0x511cf0===void 0x0?void 0x0:_0x511cf0[0x0])===null||_0xfdd406===void 0x0?void 0x0:_0xfdd406['content'])===null||_0x529062===void 0x0?void 0x0:_0x529062[_0x5738ab(0x19f)])===null||_0x37328e===void 0x0?void 0x0:_0x37328e[_0x5738ab(0x581)](_0x4b3d02=>_0x4b3d02['functionCall'])['map'](_0x5c6a7a=>_0x5c6a7a[_0x5738ab(0x2cc)])[_0x5738ab(0x581)](_0x144085=>_0x144085!==undefined);if((_0x678179===null||_0x678179===void 0x0?void 0x0:_0x678179[_0x5738ab(0x3b7)])===0x0)return undefined;return _0x678179;}get[a6_0x51c1ef(0x5df)](){const _0x1e982a=a6_0x51c1ef;var _0x185f43,_0x5c2238,_0x22d565,_0x160b68,_0x2a4175,_0x575d65,_0x20ee62,_0x243ccb,_0x2ed913;if(((_0x160b68=(_0x22d565=(_0x5c2238=(_0x185f43=this[_0x1e982a(0x410)])===null||_0x185f43===void 0x0?void 0x0:_0x185f43[0x0])===null||_0x5c2238===void 0x0?void 0x0:_0x5c2238[_0x1e982a(0x479)])===null||_0x22d565===void 0x0?void 0x0:_0x22d565[_0x1e982a(0x19f)])===null||_0x160b68===void 0x0?void 0x0:_0x160b68[_0x1e982a(0x3b7)])===0x0)return undefined;this['candidates']&&this['candidates'][_0x1e982a(0x3b7)]>0x1&&console[_0x1e982a(0x5a6)](_0x1e982a(0x5de));const _0x5143c9=(_0x243ccb=(_0x20ee62=(_0x575d65=(_0x2a4175=this[_0x1e982a(0x410)])===null||_0x2a4175===void 0x0?void 0x0:_0x2a4175[0x0])===null||_0x575d65===void 0x0?void 0x0:_0x575d65[_0x1e982a(0x479)])===null||_0x20ee62===void 0x0?void 0x0:_0x20ee62[_0x1e982a(0x19f)])===null||_0x243ccb===void 0x0?void 0x0:_0x243ccb[_0x1e982a(0x581)](_0x3d3bf3=>_0x3d3bf3['executableCode'])[_0x1e982a(0x68f)](_0x437db6=>_0x437db6[_0x1e982a(0x5df)])[_0x1e982a(0x581)](_0x4d99e2=>_0x4d99e2!==undefined);if((_0x5143c9===null||_0x5143c9===void 0x0?void 0x0:_0x5143c9[_0x1e982a(0x3b7)])===0x0)return undefined;return(_0x2ed913=_0x5143c9===null||_0x5143c9===void 0x0?void 0x0:_0x5143c9[0x0])===null||_0x2ed913===void 0x0?void 0x0:_0x2ed913[_0x1e982a(0x4a6)];}get[a6_0x51c1ef(0x2c0)](){const _0x1d0e68=a6_0x51c1ef;var _0x19d1bc,_0x9845f0,_0x52b2ef,_0x3ec5c1,_0x4b59a1,_0x235760,_0x1c4fdb,_0x1d51e2,_0x5ccca1;if(((_0x3ec5c1=(_0x52b2ef=(_0x9845f0=(_0x19d1bc=this[_0x1d0e68(0x410)])===null||_0x19d1bc===void 0x0?void 0x0:_0x19d1bc[0x0])===null||_0x9845f0===void 0x0?void 0x0:_0x9845f0[_0x1d0e68(0x479)])===null||_0x52b2ef===void 0x0?void 0x0:_0x52b2ef['parts'])===null||_0x3ec5c1===void 0x0?void 0x0:_0x3ec5c1['length'])===0x0)return undefined;this[_0x1d0e68(0x410)]&&this[_0x1d0e68(0x410)][_0x1d0e68(0x3b7)]>0x1&&console['warn'](_0x1d0e68(0x15f));const _0x4d176b=(_0x1d51e2=(_0x1c4fdb=(_0x235760=(_0x4b59a1=this[_0x1d0e68(0x410)])===null||_0x4b59a1===void 0x0?void 0x0:_0x4b59a1[0x0])===null||_0x235760===void 0x0?void 0x0:_0x235760['content'])===null||_0x1c4fdb===void 0x0?void 0x0:_0x1c4fdb[_0x1d0e68(0x19f)])===null||_0x1d51e2===void 0x0?void 0x0:_0x1d51e2['filter'](_0x47eee4=>_0x47eee4['codeExecutionResult'])['map'](_0x2000c7=>_0x2000c7['codeExecutionResult'])[_0x1d0e68(0x581)](_0x1113a2=>_0x1113a2!==undefined);if((_0x4d176b===null||_0x4d176b===void 0x0?void 0x0:_0x4d176b[_0x1d0e68(0x3b7)])===0x0)return undefined;return(_0x5ccca1=_0x4d176b===null||_0x4d176b===void 0x0?void 0x0:_0x4d176b[0x0])===null||_0x5ccca1===void 0x0?void 0x0:_0x5ccca1[_0x1d0e68(0x28f)];}}class EmbedContentResponse{}class GenerateImagesResponse{}class EditImageResponse{}function a6_0x148c(_0x3d1feb,_0x2a6587){_0x3d1feb=_0x3d1feb-0x152;const _0x553781=a6_0x5537();let _0x148c14=_0x553781[_0x3d1feb];return _0x148c14;}class UpscaleImageResponse{}class RecontextImageResponse{}class SegmentImageResponse{}class ListModelsResponse{}class DeleteModelResponse{}class CountTokensResponse{}class ComputeTokensResponse{}class GenerateVideosResponse{}class GenerateVideosOperation{['_fromAPIResponse']({apiResponse:_0x2d362b,_isVertexAI:_0x1ca35b}){const _0x218a6b=a6_0x51c1ef,_0x30a493=new GenerateVideosOperation();let _0xcaac77;const _0x11638b=_0x2d362b;return _0x1ca35b?_0xcaac77=generateVideosOperationFromVertex$1(_0x11638b):_0xcaac77=generateVideosOperationFromMldev$1(_0x11638b),Object[_0x218a6b(0x5a8)](_0x30a493,_0xcaac77),_0x30a493;}}class ListTuningJobsResponse{}class CancelTuningJobResponse{}class DeleteCachedContentResponse{}class ListCachedContentsResponse{}class ListDocumentsResponse{}class ListFileSearchStoresResponse{}class UploadToFileSearchStoreResumableResponse{}class ImportFileResponse{}class ImportFileOperation{[a6_0x51c1ef(0x20e)]({apiResponse:_0x1737ac,_isVertexAI:_0x14afc5}){const _0x925a6=a6_0x51c1ef,_0x49bc5e=new ImportFileOperation(),_0x392d8f=_0x1737ac,_0x29b970=importFileOperationFromMldev$1(_0x392d8f);return Object[_0x925a6(0x5a8)](_0x49bc5e,_0x29b970),_0x49bc5e;}}class ListFilesResponse{}class CreateFileResponse{}class DeleteFileResponse{}class RegisterFilesResponse{}class InlinedResponse{}class SingleEmbedContentResponse{}class InlinedEmbedContentResponse{}class ListBatchJobsResponse{}class ReplayResponse{}class RawReferenceImage{[a6_0x51c1ef(0x667)](){const _0x459f17=a6_0x51c1ef,_0x38cbae={'referenceType':_0x459f17(0x42e),'referenceImage':this['referenceImage'],'referenceId':this[_0x459f17(0x584)]};return _0x38cbae;}}class MaskReferenceImage{[a6_0x51c1ef(0x667)](){const _0x4d89b4=a6_0x51c1ef,_0x24b5d1={'referenceType':_0x4d89b4(0x57d),'referenceImage':this['referenceImage'],'referenceId':this['referenceId'],'maskImageConfig':this[_0x4d89b4(0x66c)]};return _0x24b5d1;}}class ControlReferenceImage{[a6_0x51c1ef(0x667)](){const _0x3f16b3=a6_0x51c1ef,_0x1f3e5e={'referenceType':_0x3f16b3(0x2bf),'referenceImage':this[_0x3f16b3(0x1a6)],'referenceId':this[_0x3f16b3(0x584)],'controlImageConfig':this[_0x3f16b3(0x66c)]};return _0x1f3e5e;}}class StyleReferenceImage{[a6_0x51c1ef(0x667)](){const _0x233094=a6_0x51c1ef,_0x36cdd1={'referenceType':'REFERENCE_TYPE_STYLE','referenceImage':this[_0x233094(0x1a6)],'referenceId':this['referenceId'],'styleImageConfig':this[_0x233094(0x66c)]};return _0x36cdd1;}}class SubjectReferenceImage{[a6_0x51c1ef(0x667)](){const _0x5edf0d=a6_0x51c1ef,_0x1e119b={'referenceType':_0x5edf0d(0x31c),'referenceImage':this['referenceImage'],'referenceId':this[_0x5edf0d(0x584)],'subjectImageConfig':this['config']};return _0x1e119b;}}class ContentReferenceImage{[a6_0x51c1ef(0x667)](){const _0x4d843d=a6_0x51c1ef,_0x579a7f={'referenceType':_0x4d843d(0x574),'referenceImage':this[_0x4d843d(0x1a6)],'referenceId':this[_0x4d843d(0x584)]};return _0x579a7f;}}class LiveServerMessage{get[a6_0x51c1ef(0x278)](){const _0x4ba76a=a6_0x51c1ef;var _0x4e3a0a,_0x11a588,_0x1100ac;let _0x44bd52='',_0x2b2ed0=![];const _0x58df73=[];for(const _0x597d32 of(_0x1100ac=(_0x11a588=(_0x4e3a0a=this[_0x4ba76a(0x1aa)])===null||_0x4e3a0a===void 0x0?void 0x0:_0x4e3a0a[_0x4ba76a(0x2b5)])===null||_0x11a588===void 0x0?void 0x0:_0x11a588['parts'])!==null&&_0x1100ac!==void 0x0?_0x1100ac:[]){for(const [_0x1f9458,_0x4e4129]of Object[_0x4ba76a(0x4cc)](_0x597d32)){_0x1f9458!==_0x4ba76a(0x278)&&_0x1f9458!=='thought'&&_0x4e4129!==null&&_0x58df73[_0x4ba76a(0x656)](_0x1f9458);}if(typeof _0x597d32[_0x4ba76a(0x278)]===_0x4ba76a(0x53d)){if(typeof _0x597d32[_0x4ba76a(0x29e)]===_0x4ba76a(0x2c7)&&_0x597d32[_0x4ba76a(0x29e)])continue;_0x2b2ed0=!![],_0x44bd52+=_0x597d32[_0x4ba76a(0x278)];}}return _0x58df73['length']>0x0&&console[_0x4ba76a(0x5a6)](_0x4ba76a(0x350)+_0x58df73+_0x4ba76a(0x353)),_0x2b2ed0?_0x44bd52:undefined;}get[a6_0x51c1ef(0x18b)](){const _0x19c0a5=a6_0x51c1ef;var _0x1091ee,_0x49d291,_0x1d685a;let _0x54834b='';const _0x472359=[];for(const _0xef1197 of(_0x1d685a=(_0x49d291=(_0x1091ee=this[_0x19c0a5(0x1aa)])===null||_0x1091ee===void 0x0?void 0x0:_0x1091ee[_0x19c0a5(0x2b5)])===null||_0x49d291===void 0x0?void 0x0:_0x49d291['parts'])!==null&&_0x1d685a!==void 0x0?_0x1d685a:[]){for(const [_0x47306c,_0x7ae6f8]of Object['entries'](_0xef1197)){_0x47306c!=='inlineData'&&_0x7ae6f8!==null&&_0x472359['push'](_0x47306c);}_0xef1197[_0x19c0a5(0x4b0)]&&typeof _0xef1197[_0x19c0a5(0x4b0)][_0x19c0a5(0x18b)]===_0x19c0a5(0x53d)&&(_0x54834b+=atob(_0xef1197['inlineData']['data']));}return _0x472359[_0x19c0a5(0x3b7)]>0x0&&console['warn'](_0x19c0a5(0x2ab)+_0x472359+_0x19c0a5(0x18f)),_0x54834b['length']>0x0?btoa(_0x54834b):undefined;}}class LiveClientToolResponse{}class LiveSendToolResponseParameters{constructor(){const _0x2be7d8=a6_0x51c1ef;this[_0x2be7d8(0x52b)]=[];}}class LiveMusicServerMessage{get[a6_0x51c1ef(0x32a)](){const _0x1d07bd=a6_0x51c1ef;if(this[_0x1d07bd(0x1aa)]&&this[_0x1d07bd(0x1aa)][_0x1d07bd(0x5f3)]&&this[_0x1d07bd(0x1aa)][_0x1d07bd(0x5f3)][_0x1d07bd(0x3b7)]>0x0)return this['serverContent']['audioChunks'][0x0];return undefined;}}class UploadToFileSearchStoreResponse{}class UploadToFileSearchStoreOperation{['_fromAPIResponse']({apiResponse:_0xbc0146,_isVertexAI:_0x47a78b}){const _0x5e4c14=a6_0x51c1ef,_0x15aa48=new UploadToFileSearchStoreOperation(),_0x439ca4=_0xbc0146,_0x5b2ac2=uploadToFileSearchStoreOperationFromMldev(_0x439ca4);return Object[_0x5e4c14(0x5a8)](_0x15aa48,_0x5b2ac2),_0x15aa48;}}/**
27
+ * @license
28
+ * Copyright 2025 Google LLC
29
+ * SPDX-License-Identifier: Apache-2.0
30
+ */
31
+ function tModel(_0x2505d9,_0x4c0ed9){const _0x4c2dea=a6_0x51c1ef;if(!_0x4c0ed9||typeof _0x4c0ed9!==_0x4c2dea(0x53d))throw new Error(_0x4c2dea(0x199));if(_0x4c0ed9[_0x4c2dea(0x26d)]('..')||_0x4c0ed9[_0x4c2dea(0x26d)]('?')||_0x4c0ed9[_0x4c2dea(0x26d)]('&'))throw new Error(_0x4c2dea(0x5d7));if(_0x2505d9[_0x4c2dea(0x291)]()){if(_0x4c0ed9[_0x4c2dea(0x453)](_0x4c2dea(0x42d))||_0x4c0ed9[_0x4c2dea(0x453)](_0x4c2dea(0x2ba))||_0x4c0ed9[_0x4c2dea(0x453)]('models/'))return _0x4c0ed9;else{if(_0x4c0ed9[_0x4c2dea(0x536)]('/')>=0x0){const _0x429cff=_0x4c0ed9['split']('/',0x2);return'publishers/'+_0x429cff[0x0]+'/models/'+_0x429cff[0x1];}else return _0x4c2dea(0x1e3)+_0x4c0ed9;}}else return _0x4c0ed9[_0x4c2dea(0x453)]('models/')||_0x4c0ed9[_0x4c2dea(0x453)](_0x4c2dea(0x38f))?_0x4c0ed9:_0x4c2dea(0x5c4)+_0x4c0ed9;}function tCachesModel(_0x41c2a5,_0x2c13f0){const _0x218dcb=a6_0x51c1ef,_0x47ec5c=tModel(_0x41c2a5,_0x2c13f0);if(!_0x47ec5c)return'';if(_0x47ec5c[_0x218dcb(0x453)](_0x218dcb(0x42d))&&_0x41c2a5[_0x218dcb(0x291)]())return'projects/'+_0x41c2a5['getProject']()+'/locations/'+_0x41c2a5[_0x218dcb(0x19c)]()+'/'+_0x47ec5c;else return _0x47ec5c[_0x218dcb(0x453)](_0x218dcb(0x5c4))&&_0x41c2a5['isVertexAI']()?_0x218dcb(0x2ba)+_0x41c2a5[_0x218dcb(0x633)]()+_0x218dcb(0x55b)+_0x41c2a5[_0x218dcb(0x19c)]()+_0x218dcb(0x29a)+_0x47ec5c:_0x47ec5c;}function tBlobs(_0x175257){const _0x3766ed=a6_0x51c1ef;return Array[_0x3766ed(0x49d)](_0x175257)?_0x175257[_0x3766ed(0x68f)](_0x43f4de=>tBlob(_0x43f4de)):[tBlob(_0x175257)];}function tBlob(_0x652740){const _0x2873fd=a6_0x51c1ef;if(typeof _0x652740==='object'&&_0x652740!==null)return _0x652740;throw new Error(_0x2873fd(0x547)+typeof _0x652740);}function tImageBlob(_0x504e76){const _0x5a6d12=a6_0x51c1ef,_0x5335a8=tBlob(_0x504e76);if(_0x5335a8['mimeType']&&_0x5335a8['mimeType'][_0x5a6d12(0x453)](_0x5a6d12(0x26f)))return _0x5335a8;throw new Error(_0x5a6d12(0x515)+_0x5335a8[_0x5a6d12(0x1ac)]);}function tAudioBlob(_0xb69f2c){const _0x151476=a6_0x51c1ef,_0x5e7b9b=tBlob(_0xb69f2c);if(_0x5e7b9b[_0x151476(0x1ac)]&&_0x5e7b9b[_0x151476(0x1ac)][_0x151476(0x453)](_0x151476(0x166)))return _0x5e7b9b;throw new Error(_0x151476(0x515)+_0x5e7b9b[_0x151476(0x1ac)]);}function tPart(_0x343b3d){const _0x1bea18=a6_0x51c1ef;if(_0x343b3d===null||_0x343b3d===undefined)throw new Error('PartUnion\x20is\x20required');if(typeof _0x343b3d===_0x1bea18(0x25e))return _0x343b3d;if(typeof _0x343b3d==='string')return{'text':_0x343b3d};throw new Error(_0x1bea18(0x1b6)+typeof _0x343b3d);}function tParts(_0x67bfc3){const _0x34afe4=a6_0x51c1ef;if(_0x67bfc3===null||_0x67bfc3===undefined||Array[_0x34afe4(0x49d)](_0x67bfc3)&&_0x67bfc3['length']===0x0)throw new Error('PartListUnion\x20is\x20required');if(Array[_0x34afe4(0x49d)](_0x67bfc3))return _0x67bfc3[_0x34afe4(0x68f)](_0x195ca6=>tPart(_0x195ca6));return[tPart(_0x67bfc3)];}function _isContent(_0x5397a5){const _0x5075bd=a6_0x51c1ef;return _0x5397a5!==null&&_0x5397a5!==undefined&&typeof _0x5397a5===_0x5075bd(0x25e)&&_0x5075bd(0x19f)in _0x5397a5&&Array[_0x5075bd(0x49d)](_0x5397a5[_0x5075bd(0x19f)]);}function _isFunctionCallPart(_0x466e45){const _0x5a0929=a6_0x51c1ef;return _0x466e45!==null&&_0x466e45!==undefined&&typeof _0x466e45===_0x5a0929(0x25e)&&_0x5a0929(0x2cc)in _0x466e45;}function _isFunctionResponsePart(_0x39ebd0){const _0x10f5f2=a6_0x51c1ef;return _0x39ebd0!==null&&_0x39ebd0!==undefined&&typeof _0x39ebd0==='object'&&_0x10f5f2(0x2fa)in _0x39ebd0;}function tContent(_0x3706a1){const _0xc8b805=a6_0x51c1ef;if(_0x3706a1===null||_0x3706a1===undefined)throw new Error(_0xc8b805(0x373));if(_isContent(_0x3706a1))return _0x3706a1;return{'role':_0xc8b805(0x24f),'parts':tParts(_0x3706a1)};}function tContentsForEmbed(_0xf04d0d,_0x59ea2f){const _0x352bd9=a6_0x51c1ef;if(!_0x59ea2f)return[];if(_0xf04d0d['isVertexAI']()&&Array[_0x352bd9(0x49d)](_0x59ea2f))return _0x59ea2f[_0x352bd9(0x475)](_0x1a6830=>{const _0x416b73=_0x352bd9,_0x5d812e=tContent(_0x1a6830);if(_0x5d812e[_0x416b73(0x19f)]&&_0x5d812e[_0x416b73(0x19f)][_0x416b73(0x3b7)]>0x0&&_0x5d812e[_0x416b73(0x19f)][0x0][_0x416b73(0x278)]!==undefined)return[_0x5d812e[_0x416b73(0x19f)][0x0][_0x416b73(0x278)]];return[];});else{if(_0xf04d0d[_0x352bd9(0x291)]()){const _0x1e9582=tContent(_0x59ea2f);if(_0x1e9582['parts']&&_0x1e9582[_0x352bd9(0x19f)][_0x352bd9(0x3b7)]>0x0&&_0x1e9582[_0x352bd9(0x19f)][0x0][_0x352bd9(0x278)]!==undefined)return[_0x1e9582[_0x352bd9(0x19f)][0x0][_0x352bd9(0x278)]];return[];}}if(Array[_0x352bd9(0x49d)](_0x59ea2f))return _0x59ea2f[_0x352bd9(0x68f)](_0x1c9d46=>tContent(_0x1c9d46));return[tContent(_0x59ea2f)];}function tContents(_0x4820c9){const _0x46fe2d=a6_0x51c1ef;if(_0x4820c9===null||_0x4820c9===undefined||Array[_0x46fe2d(0x49d)](_0x4820c9)&&_0x4820c9[_0x46fe2d(0x3b7)]===0x0)throw new Error(_0x46fe2d(0x2ec));if(!Array['isArray'](_0x4820c9)){if(_isFunctionCallPart(_0x4820c9)||_isFunctionResponsePart(_0x4820c9))throw new Error(_0x46fe2d(0x52c));return[tContent(_0x4820c9)];}const _0x2411c6=[],_0x2ac57e=[],_0x586392=_isContent(_0x4820c9[0x0]);for(const _0xa9dc90 of _0x4820c9){const _0xa481cb=_isContent(_0xa9dc90);if(_0xa481cb!=_0x586392)throw new Error(_0x46fe2d(0x44b));if(_0xa481cb)_0x2411c6[_0x46fe2d(0x656)](_0xa9dc90);else{if(_isFunctionCallPart(_0xa9dc90)||_isFunctionResponsePart(_0xa9dc90))throw new Error(_0x46fe2d(0x325));else _0x2ac57e[_0x46fe2d(0x656)](_0xa9dc90);}}return!_0x586392&&_0x2411c6[_0x46fe2d(0x656)]({'role':'user','parts':tParts(_0x2ac57e)}),_0x2411c6;}function flattenTypeArrayToAnyOf(_0x191b5a,_0x23392d){const _0x170728=a6_0x51c1ef;_0x191b5a['includes']('null')&&(_0x23392d[_0x170728(0x2ac)]=!![]);const _0x1efc77=_0x191b5a[_0x170728(0x581)](_0x1bfb25=>_0x1bfb25!=='null');if(_0x1efc77[_0x170728(0x3b7)]===0x1)_0x23392d[_0x170728(0x506)]=Object['values'](Type)[_0x170728(0x26d)](_0x1efc77[0x0]['toUpperCase']())?_0x1efc77[0x0][_0x170728(0x564)]():Type[_0x170728(0x567)];else{_0x23392d[_0x170728(0x4da)]=[];for(const _0x52124f of _0x1efc77){_0x23392d['anyOf'][_0x170728(0x656)]({'type':Object[_0x170728(0x2a8)](Type)[_0x170728(0x26d)](_0x52124f[_0x170728(0x564)]())?_0x52124f[_0x170728(0x564)]():Type[_0x170728(0x567)]});}}}function processJsonSchema(_0x49a1df){const _0x2010bc=a6_0x51c1ef,_0x1d59f4={},_0x3e0581=[_0x2010bc(0x366)],_0x47794f=[_0x2010bc(0x4da)],_0x1004ba=[_0x2010bc(0x446)];if(_0x49a1df[_0x2010bc(0x506)]&&_0x49a1df['anyOf'])throw new Error('type\x20and\x20anyOf\x20cannot\x20be\x20both\x20populated.');const _0x1533b2=_0x49a1df[_0x2010bc(0x4da)];if(_0x1533b2!=null&&_0x1533b2[_0x2010bc(0x3b7)]==0x2){if(_0x1533b2[0x0][_0x2010bc(0x506)]===_0x2010bc(0x412))_0x1d59f4[_0x2010bc(0x2ac)]=!![],_0x49a1df=_0x1533b2[0x1];else _0x1533b2[0x1]['type']===_0x2010bc(0x412)&&(_0x1d59f4[_0x2010bc(0x2ac)]=!![],_0x49a1df=_0x1533b2[0x0]);}_0x49a1df[_0x2010bc(0x506)]instanceof Array&&flattenTypeArrayToAnyOf(_0x49a1df[_0x2010bc(0x506)],_0x1d59f4);for(const [_0x4e8f79,_0x327614]of Object['entries'](_0x49a1df)){if(_0x327614==null)continue;if(_0x4e8f79=='type'){if(_0x327614===_0x2010bc(0x412))throw new Error(_0x2010bc(0x16d));if(_0x327614 instanceof Array)continue;_0x1d59f4['type']=Object[_0x2010bc(0x2a8)](Type)[_0x2010bc(0x26d)](_0x327614[_0x2010bc(0x564)]())?_0x327614[_0x2010bc(0x564)]():Type[_0x2010bc(0x567)];}else{if(_0x3e0581['includes'](_0x4e8f79))_0x1d59f4[_0x4e8f79]=processJsonSchema(_0x327614);else{if(_0x47794f[_0x2010bc(0x26d)](_0x4e8f79)){const _0x1f600d=[];for(const _0x5e2b0e of _0x327614){if(_0x5e2b0e['type']=='null'){_0x1d59f4[_0x2010bc(0x2ac)]=!![];continue;}_0x1f600d['push'](processJsonSchema(_0x5e2b0e));}_0x1d59f4[_0x4e8f79]=_0x1f600d;}else{if(_0x1004ba['includes'](_0x4e8f79)){const _0x456f12={};for(const [_0x21279a,_0x146842]of Object[_0x2010bc(0x4cc)](_0x327614)){_0x456f12[_0x21279a]=processJsonSchema(_0x146842);}_0x1d59f4[_0x4e8f79]=_0x456f12;}else{if(_0x4e8f79===_0x2010bc(0x62c))continue;_0x1d59f4[_0x4e8f79]=_0x327614;}}}}}return _0x1d59f4;}function tSchema(_0x29b986){return processJsonSchema(_0x29b986);}function tSpeechConfig(_0x48d43f){const _0x1dcefe=a6_0x51c1ef;if(typeof _0x48d43f===_0x1dcefe(0x25e))return _0x48d43f;else{if(typeof _0x48d43f===_0x1dcefe(0x53d))return{'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':_0x48d43f}}};else throw new Error(_0x1dcefe(0x3a3)+typeof _0x48d43f);}}function tLiveSpeechConfig(_0x2408b4){const _0x2a44f8=a6_0x51c1ef;if(_0x2a44f8(0x5ba)in _0x2408b4)throw new Error(_0x2a44f8(0x697));return _0x2408b4;}function tTool(_0x5e62cb){const _0x24e475=a6_0x51c1ef;if(_0x5e62cb[_0x24e475(0x63b)])for(const _0x424c61 of _0x5e62cb['functionDeclarations']){_0x424c61[_0x24e475(0x59e)]&&(!Object[_0x24e475(0x562)](_0x424c61[_0x24e475(0x59e)])[_0x24e475(0x26d)](_0x24e475(0x630))?_0x424c61[_0x24e475(0x59e)]=processJsonSchema(_0x424c61['parameters']):!_0x424c61[_0x24e475(0x16b)]&&(_0x424c61[_0x24e475(0x16b)]=_0x424c61[_0x24e475(0x59e)],delete _0x424c61[_0x24e475(0x59e)])),_0x424c61[_0x24e475(0x603)]&&(!Object[_0x24e475(0x562)](_0x424c61[_0x24e475(0x603)])['includes'](_0x24e475(0x630))?_0x424c61[_0x24e475(0x603)]=processJsonSchema(_0x424c61[_0x24e475(0x603)]):!_0x424c61[_0x24e475(0x2d5)]&&(_0x424c61[_0x24e475(0x2d5)]=_0x424c61[_0x24e475(0x603)],delete _0x424c61[_0x24e475(0x603)]));}return _0x5e62cb;}function tTools(_0x59d35c){const _0x5ca433=a6_0x51c1ef;if(_0x59d35c===undefined||_0x59d35c===null)throw new Error(_0x5ca433(0x1eb));if(!Array[_0x5ca433(0x49d)](_0x59d35c))throw new Error('tools\x20is\x20required\x20and\x20must\x20be\x20an\x20array\x20of\x20Tools');const _0x285f83=[];for(const _0x19ebef of _0x59d35c){_0x285f83['push'](_0x19ebef);}return _0x285f83;}function resourceName(_0x1f15d3,_0x241d01,_0x2603b3,_0x30c92d=0x1){const _0x10d9f0=a6_0x51c1ef,_0x4ced21=!_0x241d01[_0x10d9f0(0x453)](_0x2603b3+'/')&&_0x241d01[_0x10d9f0(0x322)]('/')[_0x10d9f0(0x3b7)]===_0x30c92d;if(_0x1f15d3['isVertexAI']()){if(_0x241d01[_0x10d9f0(0x453)](_0x10d9f0(0x2ba)))return _0x241d01;else{if(_0x241d01['startsWith'](_0x10d9f0(0x552)))return _0x10d9f0(0x2ba)+_0x1f15d3['getProject']()+'/'+_0x241d01;else{if(_0x241d01[_0x10d9f0(0x453)](_0x2603b3+'/'))return _0x10d9f0(0x2ba)+_0x1f15d3['getProject']()+'/locations/'+_0x1f15d3[_0x10d9f0(0x19c)]()+'/'+_0x241d01;else return _0x4ced21?_0x10d9f0(0x2ba)+_0x1f15d3[_0x10d9f0(0x633)]()+_0x10d9f0(0x55b)+_0x1f15d3[_0x10d9f0(0x19c)]()+'/'+_0x2603b3+'/'+_0x241d01:_0x241d01;}}}if(_0x4ced21)return _0x2603b3+'/'+_0x241d01;return _0x241d01;}function tCachedContentName(_0x2ef275,_0x5159c2){const _0x262012=a6_0x51c1ef;if(typeof _0x5159c2!==_0x262012(0x53d))throw new Error(_0x262012(0x639));return resourceName(_0x2ef275,_0x5159c2,'cachedContents');}function tTuningJobStatus(_0x407281){const _0x2dbc9f=a6_0x51c1ef;switch(_0x407281){case _0x2dbc9f(0x5b2):return _0x2dbc9f(0x3e2);case _0x2dbc9f(0x3d4):return'JOB_STATE_RUNNING';case _0x2dbc9f(0x4c7):return _0x2dbc9f(0x577);case'FAILED':return _0x2dbc9f(0x67f);default:return _0x407281;}}function tBytes(_0x45a347){return tBytes$1(_0x45a347);}function _isFile(_0x2f00cc){const _0x4c58b6=a6_0x51c1ef;return _0x2f00cc!==null&&_0x2f00cc!==undefined&&typeof _0x2f00cc===_0x4c58b6(0x25e)&&_0x4c58b6(0x558)in _0x2f00cc;}function isGeneratedVideo(_0x748f40){const _0x5cfb10=a6_0x51c1ef;return _0x748f40!==null&&_0x748f40!==undefined&&typeof _0x748f40===_0x5cfb10(0x25e)&&'video'in _0x748f40;}function isVideo(_0xe82742){const _0x9afd2f=a6_0x51c1ef;return _0xe82742!==null&&_0xe82742!==undefined&&typeof _0xe82742===_0x9afd2f(0x25e)&&_0x9afd2f(0x64d)in _0xe82742;}function tFileName(_0x43d88c){const _0x53eca9=a6_0x51c1ef;var _0x90e083;let _0xc88fe7;_isFile(_0x43d88c)&&(_0xc88fe7=_0x43d88c[_0x53eca9(0x558)]);if(isVideo(_0x43d88c)){_0xc88fe7=_0x43d88c[_0x53eca9(0x64d)];if(_0xc88fe7===undefined)return undefined;}if(isGeneratedVideo(_0x43d88c)){_0xc88fe7=(_0x90e083=_0x43d88c[_0x53eca9(0x533)])===null||_0x90e083===void 0x0?void 0x0:_0x90e083[_0x53eca9(0x64d)];if(_0xc88fe7===undefined)return undefined;}typeof _0x43d88c===_0x53eca9(0x53d)&&(_0xc88fe7=_0x43d88c);if(_0xc88fe7===undefined)throw new Error(_0x53eca9(0x1b5));if(_0xc88fe7[_0x53eca9(0x453)](_0x53eca9(0x1e9))){const _0x557657=_0xc88fe7['split'](_0x53eca9(0x583))[0x1],_0x3a217c=_0x557657[_0x53eca9(0x338)](/[a-z0-9]+/);if(_0x3a217c===null)throw new Error(_0x53eca9(0x657)+_0xc88fe7);_0xc88fe7=_0x3a217c[0x0];}else _0xc88fe7[_0x53eca9(0x453)](_0x53eca9(0x583))&&(_0xc88fe7=_0xc88fe7[_0x53eca9(0x322)](_0x53eca9(0x583))[0x1]);return _0xc88fe7;}function tModelsUrl(_0x38a5bb,_0x1d2109){const _0x18ed3f=a6_0x51c1ef;let _0x2d0425;return _0x38a5bb[_0x18ed3f(0x291)]()?_0x2d0425=_0x1d2109?_0x18ed3f(0x57b):_0x18ed3f(0x4dd):_0x2d0425=_0x1d2109?_0x18ed3f(0x4dd):_0x18ed3f(0x545),_0x2d0425;}function tExtractModels(_0x414f19){const _0x30d283=a6_0x51c1ef;for(const _0x56d42a of[_0x30d283(0x4dd),'tunedModels','publisherModels']){if(hasField(_0x414f19,_0x56d42a))return _0x414f19[_0x56d42a];}return[];}function hasField(_0x3d25da,_0x593b9b){const _0xe6c7ab=a6_0x51c1ef;return _0x3d25da!==null&&typeof _0x3d25da===_0xe6c7ab(0x25e)&&_0x593b9b in _0x3d25da;}function mcpToGeminiTool(_0x564b55,_0x4ad5ba={}){const _0x4be5c4=a6_0x51c1ef,_0x1d3a30=_0x564b55,_0x21e15e={'name':_0x1d3a30[_0x4be5c4(0x558)],'description':_0x1d3a30['description'],'parametersJsonSchema':_0x1d3a30['inputSchema']};_0x1d3a30[_0x4be5c4(0x3e5)]&&(_0x21e15e[_0x4be5c4(0x2d5)]=_0x1d3a30['outputSchema']);_0x4ad5ba[_0x4be5c4(0x44a)]&&(_0x21e15e['behavior']=_0x4ad5ba[_0x4be5c4(0x44a)]);const _0x37979f={'functionDeclarations':[_0x21e15e]};return _0x37979f;}function mcpToolsToGeminiTool(_0x186a07,_0x43aeae={}){const _0xe705bd=a6_0x51c1ef,_0x43b2eb=[],_0x4d3e40=new Set();for(const _0x15e064 of _0x186a07){const _0x47ab3c=_0x15e064['name'];if(_0x4d3e40[_0xe705bd(0x4d6)](_0x47ab3c))throw new Error(_0xe705bd(0x2b6)+_0x47ab3c+'\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.');_0x4d3e40[_0xe705bd(0x27d)](_0x47ab3c);const _0x152dc4=mcpToGeminiTool(_0x15e064,_0x43aeae);_0x152dc4[_0xe705bd(0x63b)]&&_0x43b2eb[_0xe705bd(0x656)](..._0x152dc4[_0xe705bd(0x63b)]);}return{'functionDeclarations':_0x43b2eb};}function tBatchJobSource(_0x208e15,_0x439b17){const _0x188440=a6_0x51c1ef;let _0x23a823;if(typeof _0x439b17==='string'){if(_0x208e15[_0x188440(0x291)]()){if(_0x439b17[_0x188440(0x453)]('gs://'))_0x23a823={'format':_0x188440(0x364),'gcsUri':[_0x439b17]};else{if(_0x439b17[_0x188440(0x453)](_0x188440(0x3d3)))_0x23a823={'format':_0x188440(0x579),'bigqueryUri':_0x439b17};else throw new Error(_0x188440(0x1e2)+_0x439b17);}}else{if(_0x439b17[_0x188440(0x453)](_0x188440(0x583)))_0x23a823={'fileName':_0x439b17};else throw new Error(_0x188440(0x672)+_0x439b17);}}else{if(Array[_0x188440(0x49d)](_0x439b17)){if(_0x208e15[_0x188440(0x291)]())throw new Error(_0x188440(0x160));_0x23a823={'inlinedRequests':_0x439b17};}else _0x23a823=_0x439b17;}const _0x3994c0=[_0x23a823[_0x188440(0x507)],_0x23a823['bigqueryUri']][_0x188440(0x581)](Boolean)[_0x188440(0x3b7)],_0x841229=[_0x23a823['inlinedRequests'],_0x23a823[_0x188440(0x38c)]]['filter'](Boolean)[_0x188440(0x3b7)];if(_0x208e15[_0x188440(0x291)]()){if(_0x841229>0x0||_0x3994c0!==0x1)throw new Error(_0x188440(0x61f));}else{if(_0x3994c0>0x0||_0x841229!==0x1)throw new Error('Exactly\x20one\x20of\x20`inlinedRequests`,\x20`fileName`,\x20'+'must\x20be\x20set\x20for\x20Gemini\x20API.');}return _0x23a823;}function tBatchJobDestination(_0x4f9131){const _0x11a963=a6_0x51c1ef;if(typeof _0x4f9131!==_0x11a963(0x53d))return _0x4f9131;const _0x732390=_0x4f9131;if(_0x732390[_0x11a963(0x453)](_0x11a963(0x23d)))return{'format':_0x11a963(0x364),'gcsUri':_0x732390};else{if(_0x732390['startsWith'](_0x11a963(0x3d3)))return{'format':_0x11a963(0x579),'bigqueryUri':_0x732390};else throw new Error('Unsupported\x20destination:\x20'+_0x732390);}}function tRecvBatchJobDestination(_0x5ecbef){const _0x220c65=a6_0x51c1ef;if(typeof _0x5ecbef!==_0x220c65(0x25e)||_0x5ecbef===null)return{};const _0x53865d=_0x5ecbef,_0x1ba913=_0x53865d[_0x220c65(0x56b)];if(typeof _0x1ba913!==_0x220c65(0x25e)||_0x1ba913===null)return _0x5ecbef;const _0x86536a=_0x1ba913,_0x136ee1=_0x86536a[_0x220c65(0x56b)];if(!Array[_0x220c65(0x49d)](_0x136ee1)||_0x136ee1[_0x220c65(0x3b7)]===0x0)return _0x5ecbef;let _0x52b0ec=![];for(const _0x5baae5 of _0x136ee1){if(typeof _0x5baae5!==_0x220c65(0x25e)||_0x5baae5===null)continue;const _0x8704ee=_0x5baae5,_0x5a0823=_0x8704ee['response'];if(typeof _0x5a0823!==_0x220c65(0x25e)||_0x5a0823===null)continue;const _0x516612=_0x5a0823;if(_0x516612['embedding']!==undefined){_0x52b0ec=!![];break;}}return _0x52b0ec&&(_0x53865d[_0x220c65(0x430)]=_0x53865d[_0x220c65(0x56b)],delete _0x53865d[_0x220c65(0x56b)]),_0x5ecbef;}function tBatchJobName(_0xc74fc9,_0x1ea45c){const _0x2121cc=a6_0x51c1ef,_0x58be16=_0x1ea45c;if(!_0xc74fc9['isVertexAI']()){const _0x2eef45=/batches\/[^/]+$/;if(_0x2eef45[_0x2121cc(0x480)](_0x58be16))return _0x58be16[_0x2121cc(0x322)]('/')[_0x2121cc(0x3a9)]();else throw new Error(_0x2121cc(0x40d)+_0x58be16+'.');}const _0x2a4439=/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/;if(_0x2a4439[_0x2121cc(0x480)](_0x58be16))return _0x58be16[_0x2121cc(0x322)]('/')[_0x2121cc(0x3a9)]();else{if(/^\d+$/[_0x2121cc(0x480)](_0x58be16))return _0x58be16;else throw new Error('Invalid\x20batch\x20job\x20name:\x20'+_0x58be16+'.');}}function tJobState(_0xce6b5e){const _0xa91a05=a6_0x51c1ef,_0x4b7803=_0xce6b5e;if(_0x4b7803===_0xa91a05(0x613))return _0xa91a05(0x3e2);else{if(_0x4b7803==='BATCH_STATE_PENDING')return _0xa91a05(0x179);else{if(_0x4b7803===_0xa91a05(0x421))return'JOB_STATE_RUNNING';else{if(_0x4b7803===_0xa91a05(0x516))return _0xa91a05(0x577);else{if(_0x4b7803===_0xa91a05(0x5da))return'JOB_STATE_FAILED';else{if(_0x4b7803===_0xa91a05(0x201))return'JOB_STATE_CANCELLED';else return _0x4b7803===_0xa91a05(0x253)?_0xa91a05(0x4e9):_0x4b7803;}}}}}}/**
32
+ * @license
33
+ * Copyright 2025 Google LLC
34
+ * SPDX-License-Identifier: Apache-2.0
35
+ */
36
+ function batchJobDestinationFromMldev(_0x268505){const _0x141da4=a6_0x51c1ef,_0x2fd9dd={},_0x429b9e=getValueByPath(_0x268505,[_0x141da4(0x428)]);_0x429b9e!=null&&setValueByPath(_0x2fd9dd,['fileName'],_0x429b9e);const _0x4b551e=getValueByPath(_0x268505,[_0x141da4(0x56b),_0x141da4(0x56b)]);if(_0x4b551e!=null){let _0x4c7ace=_0x4b551e;Array[_0x141da4(0x49d)](_0x4c7ace)&&(_0x4c7ace=_0x4c7ace['map'](_0x363ee5=>{return inlinedResponseFromMldev(_0x363ee5);})),setValueByPath(_0x2fd9dd,[_0x141da4(0x56b)],_0x4c7ace);}const _0x1fe847=getValueByPath(_0x268505,[_0x141da4(0x430),_0x141da4(0x56b)]);if(_0x1fe847!=null){let _0x4069ce=_0x1fe847;Array[_0x141da4(0x49d)](_0x4069ce)&&(_0x4069ce=_0x4069ce['map'](_0x39eace=>{return _0x39eace;})),setValueByPath(_0x2fd9dd,[_0x141da4(0x430)],_0x4069ce);}return _0x2fd9dd;}function batchJobDestinationFromVertex(_0x4ee52b){const _0x158e7b=a6_0x51c1ef,_0x2109aa={},_0x1fad86=getValueByPath(_0x4ee52b,[_0x158e7b(0x46f)]);_0x1fad86!=null&&setValueByPath(_0x2109aa,[_0x158e7b(0x3e4)],_0x1fad86);const _0x1b430f=getValueByPath(_0x4ee52b,[_0x158e7b(0x44d),_0x158e7b(0x171)]);_0x1b430f!=null&&setValueByPath(_0x2109aa,['gcsUri'],_0x1b430f);const _0x1ba8f1=getValueByPath(_0x4ee52b,[_0x158e7b(0x5e1),_0x158e7b(0x1b1)]);return _0x1ba8f1!=null&&setValueByPath(_0x2109aa,[_0x158e7b(0x41b)],_0x1ba8f1),_0x2109aa;}function batchJobDestinationToVertex(_0x1169cc){const _0x3f8467=a6_0x51c1ef,_0x15740a={},_0x1ac02a=getValueByPath(_0x1169cc,[_0x3f8467(0x3e4)]);_0x1ac02a!=null&&setValueByPath(_0x15740a,[_0x3f8467(0x46f)],_0x1ac02a);const _0x45766b=getValueByPath(_0x1169cc,[_0x3f8467(0x507)]);_0x45766b!=null&&setValueByPath(_0x15740a,[_0x3f8467(0x44d),_0x3f8467(0x171)],_0x45766b);const _0x26e91c=getValueByPath(_0x1169cc,[_0x3f8467(0x41b)]);_0x26e91c!=null&&setValueByPath(_0x15740a,[_0x3f8467(0x5e1),_0x3f8467(0x1b1)],_0x26e91c);if(getValueByPath(_0x1169cc,[_0x3f8467(0x38c)])!==undefined)throw new Error(_0x3f8467(0x3c0));if(getValueByPath(_0x1169cc,['inlinedResponses'])!==undefined)throw new Error(_0x3f8467(0x380));if(getValueByPath(_0x1169cc,[_0x3f8467(0x430)])!==undefined)throw new Error(_0x3f8467(0x576));return _0x15740a;}function batchJobFromMldev(_0x497140){const _0x3b3e5d=a6_0x51c1ef,_0x15c585={},_0x2e3b06=getValueByPath(_0x497140,['name']);_0x2e3b06!=null&&setValueByPath(_0x15c585,['name'],_0x2e3b06);const _0xc0d3ef=getValueByPath(_0x497140,[_0x3b3e5d(0x367),'displayName']);_0xc0d3ef!=null&&setValueByPath(_0x15c585,['displayName'],_0xc0d3ef);const _0x17ee52=getValueByPath(_0x497140,['metadata',_0x3b3e5d(0x341)]);_0x17ee52!=null&&setValueByPath(_0x15c585,[_0x3b3e5d(0x341)],tJobState(_0x17ee52));const _0x347baf=getValueByPath(_0x497140,[_0x3b3e5d(0x367),_0x3b3e5d(0x5c5)]);_0x347baf!=null&&setValueByPath(_0x15c585,[_0x3b3e5d(0x5c5)],_0x347baf);const _0x2f2daa=getValueByPath(_0x497140,[_0x3b3e5d(0x367),'endTime']);_0x2f2daa!=null&&setValueByPath(_0x15c585,['endTime'],_0x2f2daa);const _0xcfa404=getValueByPath(_0x497140,[_0x3b3e5d(0x367),_0x3b3e5d(0x343)]);_0xcfa404!=null&&setValueByPath(_0x15c585,[_0x3b3e5d(0x343)],_0xcfa404);const _0x2ff733=getValueByPath(_0x497140,[_0x3b3e5d(0x367),_0x3b3e5d(0x418)]);_0x2ff733!=null&&setValueByPath(_0x15c585,[_0x3b3e5d(0x418)],_0x2ff733);const _0x1ec4e6=getValueByPath(_0x497140,[_0x3b3e5d(0x367),_0x3b3e5d(0x28f)]);return _0x1ec4e6!=null&&setValueByPath(_0x15c585,[_0x3b3e5d(0x211)],batchJobDestinationFromMldev(tRecvBatchJobDestination(_0x1ec4e6))),_0x15c585;}function batchJobFromVertex(_0xdcbe9a){const _0x9874c4=a6_0x51c1ef,_0x47b4ff={},_0x20d2cd=getValueByPath(_0xdcbe9a,['name']);_0x20d2cd!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x558)],_0x20d2cd);const _0x14b9b6=getValueByPath(_0xdcbe9a,[_0x9874c4(0x419)]);_0x14b9b6!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x419)],_0x14b9b6);const _0x3ae9aa=getValueByPath(_0xdcbe9a,[_0x9874c4(0x341)]);_0x3ae9aa!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x341)],tJobState(_0x3ae9aa));const _0x1e9fc6=getValueByPath(_0xdcbe9a,['error']);_0x1e9fc6!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x50a)],_0x1e9fc6);const _0x3938f4=getValueByPath(_0xdcbe9a,['createTime']);_0x3938f4!=null&&setValueByPath(_0x47b4ff,['createTime'],_0x3938f4);const _0x32e444=getValueByPath(_0xdcbe9a,[_0x9874c4(0x292)]);_0x32e444!=null&&setValueByPath(_0x47b4ff,['startTime'],_0x32e444);const _0x3bdb23=getValueByPath(_0xdcbe9a,[_0x9874c4(0x164)]);_0x3bdb23!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x164)],_0x3bdb23);const _0x2c7ec1=getValueByPath(_0xdcbe9a,['updateTime']);_0x2c7ec1!=null&&setValueByPath(_0x47b4ff,['updateTime'],_0x2c7ec1);const _0x38a66a=getValueByPath(_0xdcbe9a,[_0x9874c4(0x418)]);_0x38a66a!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x418)],_0x38a66a);const _0x418a94=getValueByPath(_0xdcbe9a,[_0x9874c4(0x22b)]);_0x418a94!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x5e9)],batchJobSourceFromVertex(_0x418a94));const _0x5cc386=getValueByPath(_0xdcbe9a,[_0x9874c4(0x3b8)]);_0x5cc386!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x211)],batchJobDestinationFromVertex(tRecvBatchJobDestination(_0x5cc386)));const _0x587b21=getValueByPath(_0xdcbe9a,[_0x9874c4(0x333)]);return _0x587b21!=null&&setValueByPath(_0x47b4ff,[_0x9874c4(0x333)],_0x587b21),_0x47b4ff;}function batchJobSourceFromVertex(_0x5b7605){const _0x5703ef=a6_0x51c1ef,_0xab12d2={},_0xc0abfb=getValueByPath(_0x5b7605,[_0x5703ef(0x36c)]);_0xc0abfb!=null&&setValueByPath(_0xab12d2,[_0x5703ef(0x3e4)],_0xc0abfb);const _0x57f011=getValueByPath(_0x5b7605,['gcsSource',_0x5703ef(0x39e)]);_0x57f011!=null&&setValueByPath(_0xab12d2,['gcsUri'],_0x57f011);const _0x401f6d=getValueByPath(_0x5b7605,[_0x5703ef(0x3df),_0x5703ef(0x51d)]);return _0x401f6d!=null&&setValueByPath(_0xab12d2,['bigqueryUri'],_0x401f6d),_0xab12d2;}function batchJobSourceToMldev(_0x21d2c1,_0x4c7bbc){const _0x3b4780=a6_0x51c1ef,_0x30e607={};if(getValueByPath(_0x4c7bbc,[_0x3b4780(0x3e4)])!==undefined)throw new Error(_0x3b4780(0x300));if(getValueByPath(_0x4c7bbc,[_0x3b4780(0x507)])!==undefined)throw new Error(_0x3b4780(0x386));if(getValueByPath(_0x4c7bbc,[_0x3b4780(0x41b)])!==undefined)throw new Error('bigqueryUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x52ca07=getValueByPath(_0x4c7bbc,[_0x3b4780(0x38c)]);_0x52ca07!=null&&setValueByPath(_0x30e607,[_0x3b4780(0x38c)],_0x52ca07);const _0x565418=getValueByPath(_0x4c7bbc,[_0x3b4780(0x65f)]);if(_0x565418!=null){let _0x9b9b7=_0x565418;Array['isArray'](_0x9b9b7)&&(_0x9b9b7=_0x9b9b7[_0x3b4780(0x68f)](_0xe38885=>{return inlinedRequestToMldev(_0x21d2c1,_0xe38885);})),setValueByPath(_0x30e607,[_0x3b4780(0x440),_0x3b4780(0x440)],_0x9b9b7);}return _0x30e607;}function a6_0x5537(){const _0x46641b=['BLOCK_MEDIUM_AND_ABOVE','Failed\x20to\x20parse\x20client\x20content\x20\x22turns\x22,\x20type:\x20\x27','setup','onmessage','global','thoughtSignature',';\x20props:\x20[','generationConfig.','shift','decode','ApiError','END_SENSITIVITY_HIGH','PAGED_ITEM_CACHED_CONTENTS','upscaleImage','tunedModelDisplayName','urlContextMetadata','Path\x20parameters\x20result\x20in\x20path\x20with\x20invalid\x20segments:\x0a','createInternal','debug','operationName','exception\x20parsing\x20stream\x20chunk\x20','safetySettings','experiment','toLowerCase','files:register','arm','enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','type','gcsUri','SCALE_UNSPECIFIED','parent','error','auth','abort','765670FVSuXy','includeExtraHttpOptionsToRequestInit','MEDIA_RESOLUTION_HIGH',':uploadToFileSearchStore','makeStatusError','Blob','willContinue','START_OF_ACTIVITY_INTERRUPTS','Unsupported\x20mime\x20type:\x20','BATCH_STATE_SUCCEEDED','thinking',',\x20finalize','TURN_COMPLETE_REASON_UNSPECIFIED','catch','automaticFunctionCallingHistory','SuppressedError','inputUri','https://proxyvn.top/','active','SEMANTIC','idempotencyHeader','tunedTeacherModelSource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','isNaN','API\x20key\x20is\x20missing.\x20Please\x20provide\x20a\x20valid\x20API\x20key.','imageBytes','BLOCK_ONLY_EXTREMELY_HIGH','versions',',\x20expected\x20one\x20of\x20','editImageInternal','Source\x20and\x20prompt/image/video\x20are\x20mutually\x20exclusive.\x20Please\x20only\x20use\x20source.','functionResponses','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them\x20in\x20a\x20Content\x20object,\x20specifying\x20the\x20role\x20for\x20them','instances[]','Duplicate\x20tool\x20declaration\x20name:\x20','voiceActivityType','shouldRetry','PROHIBITED_CONTENT','TextEncoder','video','generateVideoResponse','HARM_CATEGORY_SEXUALLY_EXPLICIT','indexOf','validationDatasetUri','Failed\x20to\x20get\x20upload\x20url.\x20Server\x20did\x20not\x20return\x20the\x20x-google-upload-url\x20in\x20the\x20headers','application/json','toReadableStream','preferenceOptimizationSpec','Invalid\x20request:\x20specified\x20`model`\x20and\x20`agent_config`.\x20If\x20specifying\x20`model`,\x20use\x20`generation_config`.','string','AUDIO','ENVIRONMENT_UNSPECIFIED','finally','mediaChunks','listInternal','getCustomBaseUrl','status','tunedModels','tools\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Could\x20not\x20parse\x20input\x20as\x20Blob.\x20Unsupported\x20blob\x20type:\x20','arm64','ADAPTER_SIZE_SIXTEEN','modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','PATCH','imageOutputOptions','options','audio','category','totalTokens','getBaseUrl','locations/','sendToolResponse','validationDataset','key','defaultQuery','PRIORITIZE_COST','name','image','httpMethod','/locations/','BLOCK_LOW_AND_ABOVE','half','unknown','operation','request','HIGH','keys','TUNING_TASK_R2V','toUpperCase','chats','method','TYPE_UNSPECIFIED','The\x20default\x20react-native\x20fetch\x20implementation\x20does\x20not\x20support\x20streaming.\x20Please\x20use\x20expo/fetch:\x20https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api','source','tool','inlinedResponses','Function\x20call\x20name\x20was\x20not\x20returned\x20by\x20the\x20model.','Unknown','{model}:batchGenerateContent','HARM_BLOCK_THRESHOLD_UNSPECIFIED','page','SAFETY','off','setupComplete','REFERENCE_TYPE_CONTENT','send','inlinedEmbedContentResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','JOB_STATE_SUCCEEDED','getDefaultHeaders','bigquery','logprobs','publishers/google/models','API\x20key\x20must\x20be\x20set\x20when\x20using\x20the\x20Gemini\x20API.','REFERENCE_TYPE_MASK','history','{model}','v1alpha','filter','unref','files/','referenceId','START_SENSITIVITY_LOW','baseUrl','trainingDatasetUri','failed','Download\x20to\x20file\x20is\x20not\x20supported\x20in\x20the\x20browser,\x20please\x20use\x20a\x20browser\x20compliant\x20download\x20like\x20an\x20<a>\x20tag.','PYTHON','succeeded','videoBytes','MASK_MODE_BACKGROUND','TUNING_MODE_PEFT_ADAPTER','mimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','BLOCKLIST','URL_RETRIEVAL_STATUS_UNSPECIFIED','__binaryResponse','vertexai','GEMINI_NEXT_GEN_API_BASE_URL','Could\x20not\x20parse\x20function\x20response,\x20type\x20\x27','NEGLIGIBLE','{model}:computeTokens','stack','patch','positivePromptSafetyAttributes','examples','HTTP_IN_QUERY','setPrototypeOf','parameters','Filtering\x20tuned\x20models\x20list\x20for\x20Vertex\x20AI\x20is\x20not\x20currently\x20supported','referenceType','message','behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','replace','PAGED_ITEM_BATCH_JOBS','outputAudioTranscription','warn','recordHistory','assign','getUserAgent','_self','SUBJECT_TYPE_ANIMAL','outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','logger','authTokens','adapterSize','version','IMAGE','STATE_UNSPECIFIED','{model}:countTokens','thoughtsTokenCount','BLOCKING','LOW','BLOCK_HIGHER_AND_ABOVE','WebSocket\x20is\x20not\x20connected','contents','multiSpeakerVoiceConfig','inlinedRequests\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','fileSearchStoreName','true','/dest','resolve','ClientOptions.logLevel','makeMessage','frequencyPenalty','stat','models/','createTime','Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.','Key\x20\x27','withOptions','Ephemeral\x20tokens\x20are\x20only\x20supported\x20by\x20the\x20live\x20API.','ALLOW_ALL','args','Symbol.iterator\x20is\x20not\x20defined.','https://aiplatform.googleapis.com/','STATE_PENDING','x64','825RlNfSy','generateContentStream','conn','calculateDefaultRetryTimeoutMillis','lastModified','retrying,\x20','enqueue','invalid\x20model\x20parameter','clientOptions','Request\x20was\x20aborted.','BATCH_STATE_FAILED','HARM_SEVERITY_NEGLIGIBLE','download','\x20status\x20code\x20(no\x20body)','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20executable\x20code\x20from\x20the\x20first\x20one.','executableCode','ADAPTER_SIZE_UNSPECIFIED','bigqueryDestination','editConfig','getOwnPropertySymbols','expected\x20header\x20name\x20to\x20be\x20a\x20string','encryptionSpec','getVideosOperationInternal','WHEN_IDLE','generateVideosInternal','src','auto','An\x20API\x20Key\x20must\x20be\x20set\x20when\x20running\x20in\x20a\x20browser','modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','PRIORITIZE_QUALITY','isError','tools[','stringifyQuery','enhancedPrompt','mcpTools','audioChunks','\x20with\x20status\x20','generateContent','styleImageConfig','access_token','/ws/google.ai.generativelanguage.','Setting\x20`LiveConnectConfig.generation_config`\x20is\x20deprecated,\x20please\x20set\x20the\x20fields\x20on\x20`LiveConnectConfig`\x20directly.\x20This\x20will\x20become\x20an\x20error\x20in\x20a\x20future\x20version\x20(not\x20before\x20Q3\x202025).','force','MALFORMED_FUNCTION_CALL','tunedModel','lastFrame','expireTime','cancel','endsWith','\x20(error;\x20no\x20more\x20retries\x20left)','hyperParameters','response','prepareRequest','callbacks','clientAdapter','constructor','INTERACTIVE','BLOCKED_REASON_UNSPECIFIED','Error','trainingDataset','SOURCE_UNSPECIFIED','RECITATION','function','includeRaiReason','OPTIMIZED','browser','encode','BATCH_STATE_UNSPECIFIED','apiKey','mediaResolution','kmsKeyName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','subarray','googleSearch','buildURL','guidanceScale','fps\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ADAPTER_SIZE_TWO','apiClient','Exactly\x20one\x20of\x20`gcsUri`\x20or\x20`bigqueryUri`\x20must\x20be\x20set\x20for\x20Vertex\x20AI.','productImages','URL_RETRIEVAL_STATUS_UNSAFE','.jsonl','HARM_PROBABILITY_UNSPECIFIED','trunc','response\x20is\x20undefined','webSocketFactory','x-goog-api-client','X-Server-Timeout','fetchWithTimeout','baseTeacherModel','\x20Update\x20to\x20Node\x2020\x20LTS\x20or\x20newer,\x20or\x20set\x20`globalThis.File`\x20to\x20`import(\x27node:buffer\x27).File`.','additionalProperties','nextPage','RESPONSE_REJECTED','videos','$schema','`ReadableStream`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20You\x20will\x20need\x20to\x20polyfill\x20it,\x20`globalThis.ReadableStream\x20=\x20ReadableStream`','edge','getProject','extraBody','HTTP_IN_COOKIE','initialize','ADAPTER_SIZE_THIRTY_TWO','enhancePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','name\x20must\x20be\x20a\x20string','MODALITY_UNSPECIFIED','functionDeclarations','sdkHttpResponseInternal','promptFeedback','apiVersion','processAfcStream','MEDIA_RESOLUTION_MEDIUM','getRequestUrl','A_MAJOR_G_FLAT_MINOR','abortSignal','list','ignoreCallHistory','flush','streamFunctionCallArguments','asyncIterator','customBaseModel','{name}:cancel','G_FLAT_MAJOR_E_FLAT_MINOR','B_FLAT_MAJOR_G_MINOR','uri','downloadFile','start','kmsKeyName','IMAGE_RECITATION','PROVISIONED_THROUGHPUT','Unsupported\x20source\x20for\x20Vertex\x20AI:\x20No\x20GCS\x20or\x20BigQuery\x20URI\x20found.','E_MAJOR_D_FLAT_MINOR','aspectRatio','push','Could\x20not\x20extract\x20file\x20name\x20from\x20URI\x20','CONTROL_TYPE_FACE_MESH','.\x20Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x22\x20is\x20not\x20yet\x20supported.','requests[].request.*','tLiveClienttToolResponse','.GenerativeService.','functionCalls','alt','inlinedRequests','baseModel','partOrString\x20cannot\x20be\x20an\x20empty\x20array','safetyRatings','bind','categories','patchHttpOptions','automaticFunctionCalling','toReferenceImageAPI','(no\x20status\x20code\x20or\x20body)','FINISH_REASON_UNSPECIFIED','generateVideos','tuningDataStats','config','uploadFileToFileSearchStore','undefined','START_SENSITIVITY_UNSPECIFIED','baseSteps','navigator','Unsupported\x20string\x20source\x20for\x20Gemini\x20API:\x20','BLOCK_VERY_HIGH_AND_ABOVE','controlType','PAUSE','Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files.\x20You\x20can\x20share\x20files\x20through\x20a\x20GCS\x20bucket.','encryption_spec','defaultHeaders','getHistory','chunks','cacheTokensDetails','buildBody','gl-node/','citationSources','JOB_STATE_FAILED','HARM_CATEGORY_DANGEROUS_CONTENT','THINKING_LEVEL_UNSPECIFIED','number','Unexpected\x20data\x20type:\x20','JOB_STATE_PAUSED','protocol','statistics','stop','HTTP_IN_HEADER','temperature','maskImageConfig','random','NEWLINE_REGEXP','makeRequest','body','map','MUSIC_GENERATION_MODE_UNSPECIFIED','VAD_SIGNAL_TYPE_UNSPECIFIED','SPII','modelSelectionConfig','API_KEY_AUTH','Attempted\x20to\x20iterate\x20over\x20a\x20response\x20with\x20no\x20body','preTunedModelCheckpointId\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','multiSpeakerVoiceConfig\x20is\x20not\x20supported\x20in\x20the\x20live\x20API.','googleSearchRetrieval','ANY',',\x20retryOf:\x20','outputCompressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.',']\x20connection\x20','labels','customMetadata','randomUUID','hasNextPage','slice','editImage','resolution','BLOCK_ONLY_HIGH','authorization','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20code\x20execution\x20result\x20from\x20the\x20first\x20one.','InlinedRequest[]\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','PAGED_ITEM_TUNING_JOBS','1689515LiHYxa','timed\x20out','endTime','pageLength','audio/','tuneMldevInternal','***','NULL','post','parametersJsonSchema','APIError','type:\x20null\x20can\x20not\x20be\x20the\x20only\x20possible\x20type\x20for\x20the\x20field.','embeddings','blockingConfidence','LANGUAGE','outputUriPrefix','taskType','validateHeaders','NONE','ARRAY','instances[0]','generationConfig','PAGED_ITEM_DOCUMENTS','JOB_STATE_PENDING','nextPageToken','MacOS','transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','exportLastCheckpointOnly','fromReadableStream','call','RateLimitError','\x20must\x20be\x20a\x20positive\x20integer','https://proxyvn.top','stringify','HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT',',\x20New\x20type:\x20','UnprocessableEntityError','shouldPrependVertexProjectPath','seed\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','outputTokenLimit','NO_IMAGE','data','Vertex\x20AI\x20does\x20not\x20support\x20batches.createEmbeddings.','BLOCK_NONE','HTTP\x20options\x20are\x20not\x20correctly\x20set.','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','PHISH_BLOCK_THRESHOLD_UNSPECIFIED','JAILBREAK','read','GENERATED','LOSSLESS','documentName','ELASTIC_SEARCH','_thenUnwrap','Live\x20music\x20is\x20not\x20supported\x20for\x20Vertex\x20AI.','model\x20is\x20required\x20and\x20must\x20be\x20a\x20string','addWatermark','apply','getLocation','REMOVE','v1beta1','parts','learningRate','23LChVCU','mcp_used/unknown','geminiUrl','responseSchema','outputCompressionQuality','referenceImage','retryOf','maybeMoveToResponseJsonSchem','maskDilation','serverContent','return','mimeType','STATE_FAILED','exec','REMOVE_STATIC','createEmbeddings','outputUri','parse','checkpoints','JOB_STATE_QUEUED','Could\x20not\x20extract\x20file\x20name\x20from\x20the\x20provided\x20input.','Unsupported\x20part\x20type:\x20','excludeDomains','truncated','includeSafetyAttributes','authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','padStart','toString','maskMode','BOOLEAN','G_MAJOR_E_MINOR','personGeneration\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','activityEnd','mode','Could\x20not\x20resolve\x20authentication\x20method.\x20Expected\x20the\x20apiKey\x20to\x20be\x20set.\x20Or\x20for\x20the\x20\x22x-goog-api-key\x22\x20headers\x20to\x20be\x20explicitly\x20omitted','includeExtraBodyToRequestInit:deepMerge:\x20Type\x20mismatch\x20for\x20key\x20\x22','trim','SIMPLE_SEARCH','queryParams','file','GOOGLE_SERVICE_ACCOUNT_AUTH','baseURL','finishReason','upscaleFactor','numberOfVideos','controller','idempotencyKey','OUTCOME_FAILED','DISTILLATION','pubsubTopic','APIUserAbortError',']\x20response\x20start','inputAudioTranscription','isCallableTool','JOB_STATE_RUNNING','ttl','preceding','cachedContents','retryOfRequestLogID','Other:','\x20configuration\x20instead.','generateAudio','client','VIDEO','fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','Unsupported\x20string\x20source\x20for\x20Vertex\x20AI:\x20','publishers/google/models/','ADAPTER_SIZE_ONE','transparent','POST','searchParams','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20data\x20from\x20the\x20first\x20one.','https://','EDIT_MODE_INPAINT_REMOVAL','tools\x20is\x20required','x32','put','data:','MEDIA_RESOLUTION_LOW','OAUTH','caches','avgLogprobs','distillationSpec','MASK_MODE_USER_PROVIDED','paramsInternal','promptTokenCount','REGISTERED','IMAGE_OTHER','freeze','GET','enhancePrompt','interactions','PROBABILITY','uploadToFileSearchStoreInternal','upload/v1beta/files','now','BATCH_STATE_CANCELLED','registerFiles\x20is\x20only\x20supported\x20in\x20Node.js\x20environments.','citations','formatDestination','responseLogprobs','Request\x20timed\x20out.','ACTIVITY_HANDLING_UNSPECIFIED','Value\x20of\x20type\x20','upscaleImageInternal','_options','fromEntries','toolUsePromptTokenCount','C_MAJOR_A_MINOR','_fromAPIResponse','Headers\x20are\x20not\x20set.','HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT','dest','EDIT_MODE_PRODUCT_IMAGE','NON_BLOCKING','batches/{name}:cancel','ACTIVITY_START','Deno','FetchRequestCanceledException','JOB_STATE_PARTIALLY_SUCCEEDED','play','\x20-\x20error;\x20no\x20more\x20retries\x20left','enableAffectiveDialog','upscale','supervisedTuningSpec','tuningTask','task_type','PROCESSING','partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','groundingMetadata','v1beta','requestStream','\x20attempts\x20remaining','PAGED_ITEM_FILE_SEARCH_STORES','/ws/google.cloud.aiplatform.','candidatesTokenCount','set','Invalid\x20maximumRemoteCalls\x20value\x20provided\x20for\x20automatic\x20function\x20calling.\x20Disabled\x20automatic\x20function\x20calling.\x20Please\x20provide\x20a\x20valid\x20integer\x20value\x20greater\x20than\x200.\x20maximumRemoteCalls\x20provided:','inputConfig','NEED_MORE_INPUT','systemInstruction','onopen','RESET_CONTEXT','codeExecution','modelConfig','encoding','linux','createEmbeddingsInternal','darwin','batchPredictionJobs','resetContext','promptTokensDetails','baseTeacherModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','search','HARM_BLOCK_METHOD_UNSPECIFIED','subjectImageConfig','gs://','JOB_STATE_CANCELLED','EDIT_MODE_DEFAULT','prototype','speechConfig','\x20was\x20set\x20to\x20','7779090vGfZDM','SILENT','seed','turnComplete','AUTO','ADAPTER_SIZE_FOUR','responseId','exception\x20','preTunedModel','buildRequest','batchSize','fileData','user','tuningMode','_dest_','Function\x20declaration\x20name\x20is\x20required.','BATCH_STATE_EXPIRED','importFile','HARM_CATEGORY_UNSPECIFIED','LANGUAGE_UNSPECIFIED','responseTokensDetails','CONTROL_TYPE_SCRIBBLE','realtimeInputConfig','modelVersion','preTunedModelCheckpointId','reduce','Invalid\x20request:\x20specified\x20`agent`\x20and\x20`generation_config`.\x20If\x20specifying\x20`agent`,\x20use\x20`agent_config`.','object','generateImagesInternal','`fetch`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20Either\x20pass\x20`fetch`\x20to\x20the\x20client,\x20`new\x20GeminiNextGenAPIClient({\x20fetch\x20})`\x20or\x20polyfill\x20the\x20global,\x20`globalThis.fetch\x20=\x20fetch`','EDIT_MODE_STYLE','size','contentType','file_search_store_name','FOREGROUND','maxRetries','DELETE','idxInternal','tools','project','mask\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','OUTPAINT','includes','URL_RETRIEVAL_STATUS_PAYWALL','image/','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20text\x20from\x20the\x20first\x20one.','Symbol.asyncIterator\x20is\x20not\x20defined.','UPLOADED','MASK_MODE_SEMANTIC','sse','pause','DIVERSITY','OIDC_AUTH','text','{operationName}','live','authHeaders','encoder','add','negativePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','safetyFilterLevel','_interactions','autoTruncate','pow','scores','withResponse','QUALITY','tLiveClientContent','OUTCOME_OK','raiMediaFilteredReasons','userAgentExtra','{model}:generateContent','HARM_CATEGORY_IMAGE_HARASSMENT','element\x20in\x20PartUnion\x20must\x20be\x20a\x20Part\x20object\x20or\x20string','predictions[]','displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','output','arrayBuffer','isVertexAI','startTime','{models_url}','node','Authentication\x20is\x20not\x20set\x20up.\x20Please\x20provide\x20either\x20a\x20project\x20and\x20location,\x20or\x20an\x20API\x20key,\x20or\x20a\x20custom\x20base\x20URL.','value','MEDIA_RESOLUTION_UNSPECIFIED','ENVIRONMENT_BROWSER','listTools','/publishers/google/','__streamClass','requestInternal','stopSequences','thought','NotFoundError','CONTROL_TYPE_DEFAULT','x-should-retry','F_MAJOR_D_MINOR','DOCUMENT','raiMediaFilteredCount','Incompatible\x20tools\x20found\x20at\x20','\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.','EDIT_MODE_OUTPAINT','values','{model}:asyncBatchEmbedContent','STYLE','there\x20are\x20non-data\x20parts\x20','nullable','carriageReturnIndex','customBaseUrl','Base\x20URL\x20is\x20not\x20set.','content-type','generate','Value\x20\x22','processStreamResponse','tuneInternal','modelTurn','Duplicate\x20function\x20name\x20','{model}:streamGenerateContent?alt=sse','HTTP_BASIC_AUTH','headers','projects/','x-goog-upload-url','env','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20not\x20valid\x20JSON.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','MAX_TOKENS','REFERENCE_TYPE_CONTROL','codeExecutionResult','_url','AUTH_TYPE_UNSPECIFIED','releaseLock','modelsModule','generateContentInternal','defaultIdempotencyKey','boolean','audioStreamEnd','[DONE]','repeat','validationDataset\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','functionCall','musicGenerationConfig','raiFilteredReason','TUNING_TASK_T2V','9EumvkU','concat','update','append','asResponse','responseJsonSchema','1800312pIpoJR','DEFAULT_TIMEOUT','inputSchema','final','endpoint','close','Response\x20body\x20is\x20empty','pageToken','method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','iterator','SUPERVISED_FINE_TUNING','OUTCOME_DEADLINE_EXCEEDED','DONT_ALLOW','timeout','weightedPrompts','callTool','98338VRdHDY','.\x20Overwriting.','videoMetadata','done','partOrString\x20must\x20be\x20a\x20Part\x20object,\x20string,\x20or\x20array','agent','contents\x20are\x20required','imageSize','Weighted\x20prompts\x20must\x20be\x20set\x20and\x20contain\x20at\x20least\x20one\x20entry.','fetchUploadUrl','Server\x20did\x20not\x20return\x20an\x20HttpResponse\x20or\x20the\x20returned\x20HttpResponse\x20did\x20not\x20have\x20headers.','START_SENSITIVITY_HIGH','batches/{name}','HARM_CATEGORY_CIVIC_INTEGRITY','OUTCOME_UNSPECIFIED','fileSearchStores','endpoints','NO_INTERRUPTION','No\x20more\x20pages\x20to\x20fetch.','responseTokenCount','functionResponse','setMusicGenerationConfig','D_FLAT_MAJOR_B_FLAT_MINOR','getVideosOperation','getPrototypeOf','learningRateMultiplier','format\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','PROMPT','TEXT','Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files\x20to\x20a\x20file\x20search\x20store.','generatedVideos','HARM_SEVERITY_UNSPECIFIED','modelArmorConfig','getReader','generation_config','file_name','Connection\x20error.','sessionResumptionUpdate','User-Agent','SUBJECT_TYPE_DEFAULT','functionNameToMcpClient','allowedFunctionNames','JOB_STATE_UPDATING','aarch64','addWatermark\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','STATE_ACTIVE','nextCursor','pathname','fileUri','routingConfig','files','imagePreservationFactor','responsePromise','json','REFERENCE_TYPE_SUBJECT','tuningMode\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','processParamsMaybeAddMcpUsage','unknown_file','stream','HTTP_IN_UNSPECIFIED','split','getRequestUrlInternal','{parent}/documents','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them,\x20and\x20any\x20other\x20parts,\x20in\x20Content\x20objects\x20as\x20appropriate,\x20specifying\x20the\x20role\x20for\x20them','promptDatasetUri',']\x20response\x20parsed','httpOptions','fetchOptions','audioChunk','ReactNative','generateImages','NUMBER','google-vertex-llm-tuning-base-model-id','\x20sending\x20request','IMAGE_SAFETY','VALIDATED','beta\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','completionStats','toolConfig','prompt','OTHER','SUBJECT_TYPE_PRODUCT','match','examples\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','upscaleConfig','tokenCount','setWeightedPrompts','MINIMAL','generateAudio\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','/JS\x20','{model}:predict','state','personImage','updateTime','sdkHttpResponse','INSERT','personGeneration','TUNING_TASK_UNSPECIFIED','ceil','VAD_SIGNAL_TYPE_EOS','batchPredictionJobs/{name}','language','stainless-node-retry-','MEDIA_RESOLUTION_ULTRA_HIGH','maskClasses','x86_64','there\x20are\x20non-text\x20parts\x20','getBigqueryUri','trimStart','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20text\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20text\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','title',';\x20constructor:\x20','ADAPTER_SIZE_EIGHT','3686081WgGkkc','END_SENSITIVITY_UNSPECIFIED','toolCall','countTokens','The\x20client.tokens.create\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','streamApiCall','cause','uses','UNEXPECTED_TOOL_CALL','Vertex\x20AI\x20project\x20based\x20authentication\x20is\x20not\x20supported\x20on\x20browser\x20runtimes.\x20Please\x20do\x20not\x20provide\x20a\x20project\x20or\x20location.','outputGcsUri','sendClientContent','documents','jsonl','isInteger','items','metadata','getApiKey','The\x20Live\x20module\x20does\x20not\x20support\x20httpOptions\x20at\x20request-level\x20in','forEach','proactivity','instancesFormat','BLOCK_HIGH_AND_ABOVE','turns','inputTokenLimit','upload','MODE_UNSPECIFIED','ALLOW_ADULT','ContentUnion\x20is\x20required','GeminiNextGenAPIClient','parsedPromise','STOP','veoTuningSpec','maxOutputTokens','totalTokenCount','to\x20be\x20undefined\x20or\x20set\x20to\x20false\x20to\x20disable\x20streaming\x20function\x20call\x20arguments\x20feature.','PREFERENCE_TUNING','upload/v1beta/','deno','init','\x20in\x20','inlinedResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','partialArgs','GoogleGenAI.interactions:\x20Client\x20level\x20httpOptions.extraBody\x20is\x20not\x20supported\x20by\x20the\x20interactions\x20client\x20and\x20will\x20be\x20ignored.','blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','\x20must\x20be\x20an\x20integer','fieldMask','gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','serviceAccount','getHeaders','Interactions','googleMaps','retry-after','fileName','logLevel','tunedModelInfo','tunedModels/','retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','TRAFFIC_TYPE_UNSPECIFIED','outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.',',\x20mising\x20tool:\x20','next','generatedImages','explicitVadSignal','imageConfig','fps','SCHEDULING_UNSPECIFIED','candidatesTokensDetails','ON_DEMAND','VAD_SIGNAL_TYPE_SOS','trafficType','uris','android','initNextPage','userAgent','beta','Unsupported\x20speechConfig\x20type:\x20','ReadableStream','encodedVideo','Content-Type','10000000-1000-4000-8000-100000000000','OFF','pop','TURN_INCLUDES_ONLY_ACTIVITY','storageUri','models_url','enableEnhancedCivicAnswers','handle','dilation','methodRequest','Request\x20body\x20should\x20be\x20empty\x20for\x20GET\x20request,\x20but\x20got\x20non\x20empty\x20request\x20body','presencePenalty','{model}:batchEmbedContents','fetchPredictVideosOperationInternal','build','excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','length','outputConfig','generatedMasks','streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','/projects/','retrievalConfig','EDIT_MODE_BGSWAP','TUNING_MODE_FULL','toolCallCancellation','fileName\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','log_','getBaseResourcePath','apiCall','goAway','maxTemperature','URL_RETRIEVAL_STATUS_SUCCESS','buildHeaders','durationSeconds','bytesBase64Encoded','topK','\x22.\x20Original\x20type:\x20','SUBJECT_TYPE_PERSON','{resourceName}:fetchPredictOperation','onerror','_key','api_version','throw','onclose','bq://','CREATING','sessionResumption','HTTP_IN_BODY','customBaseModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ios','location','MASK_MODE_FOREGROUND','filter\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','authConfig','create','numberOfImages','bigquerySource','2266590auScYw','filename','JOB_STATE_UNSPECIFIED','referenceImages','format','outputSchema','sampleCount','\x20-\x20','BACKGROUND','INTEGER','URL_RETRIEVAL_STATUS_ERROR','path','retrieval','HARM_SEVERITY_LOW','enableWidget','routingConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','retry-after-ms','{name}','12roFQyd','MODEL_ARMOR','sftLossWeightMultiplier','getGcsUri','audioTimestamp','mcpClients','connect','outputOptions','tune','timeRangeFilter','blob','willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','x-goog-api-key','embedContent','pageSize','batchJobs','uploadToFileSearchStore','fileSearch','SEVERITY','lockAdditionalFields','compressionQuality','role','vertexUrl','url','[0]','sizeBytes','\x20LiveConnectConfig\x20yet.\x20Please\x20use\x20the\x20client-level\x20httpOptions','Invalid\x20batch\x20job\x20name:\x20','files/{file}','A_FLAT_MAJOR_F_MINOR','candidates','media','null','tuningJobs','outputDimensionality','outputMimeType','info','chunkingConfig','model','displayName','resourceName','bigqueryUri','Automatic\x20function\x20calling\x20was\x20requested,\x20but\x20not\x20all\x20the\x20tools\x20the\x20model\x20used\x20implement\x20the\x20CallableTool\x20interface.\x20Available\x20tools:\x20','addAuthHeaders','computerUse','Please\x20set\x20\x27config.automaticFunctionCalling.disable\x27\x20to\x20true\x20to\x20disable\x20AFC\x20','FAILED','BATCH_STATE_RUNNING','delete','HARM_SEVERITY_HIGH','contextWindowCompression','D_MAJOR_B_MINOR','epochCount','defaultCheckpointId','responsesFile','functionCallingConfig','OBJECT','signal','supportedActions','publishers/','REFERENCE_TYPE_RAW','enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','inlinedEmbedContentResponses','all','PAGED_ITEM_MODELS','FEATURE_SELECTION_PREFERENCE_UNSPECIFIED','/operations/','mask','baseURLOverridden','product','sftLossWeightMultiplier\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','HARM_CATEGORY_IMAGE_HATE','voiceActivityDetectionSignal','every','autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Operation\x20name\x20is\x20required.','statusText','operations','requests','.LlmBidiService/BidiGenerateContent','generationConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','responseInternal','google-genai-sdk/','BidiGenerateContentConstrained','properties','buffer','activityStart',';\x20Expected\x20string,\x20number,\x20boolean,\x20or\x20null.\x20If\x20you\x20need\x20to\x20pass\x20nested\x20query\x20parameters,\x20you\x20can\x20manually\x20encode\x20them,\x20e.g.\x20{\x20query:\x20{\x20\x27foo[key1]\x27:\x20value1,\x20\x27foo[key2]\x27:\x20value2\x20}\x20},\x20and\x20please\x20open\x20a\x20GitHub\x20issue\x20requesting\x20better\x20support\x20for\x20your\x20use\x20case.','behavior','Mixing\x20Content\x20and\x20Parts\x20is\x20not\x20supported,\x20please\x20group\x20the\x20parts\x20into\x20a\x20the\x20appropriate\x20Content\x20objects\x20and\x20specify\x20the\x20roles\x20for\x20them','Warning:\x20The\x20SDK\x27s\x20ephemeral\x20token\x20support\x20is\x20in\x20v1alpha\x20only.\x20Please\x20use\x20const\x20ai\x20=\x20new\x20GoogleGenAI({apiKey:\x20token.name,\x20httpOptions:\x20{\x20apiVersion:\x20\x27v1alpha\x27\x20}});\x20before\x20session\x20connection.','gcsDestination','baseUrlResourceScope','outputUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','negativePrompt','fromSSEResponse','set-cookie','startsWith','TURN_INCLUDES_ALL_INPUT','requests[]','unaryApiCall','getRandomValues','No\x20MCP\x20clients\x20provided','Object\x20is\x20not\x20iterable.','VOCALIZATION','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20valid\x20JSON\x20but\x20not\x20a\x20non-array\x20object.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','safetySetting','raw','HARM_CATEGORY_HATE_SPEECH','File\x20path\x20is\x20not\x20supported\x20in\x20browser\x20uploader.','IMAGE_PROHIBITED_CONTENT','fetch','PLAYBACK_CONTROL_UNSPECIFIED','TextDecoder','description','topP','GeminiNextGenAPIClientError','functionResponses\x20is\x20required.','isView','sampleImageSize','systemInstruction\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','uploadFile','prepareOptions','auth_tokens/','segmentImage','predictionsFormat','platform','EDIT_MODE_CONTROLLED_EDITING','hasOwnProperty','INTERRUPT','usageMetadata','flatMap','HTTP_IN_PATH','index','from','content','ConflictError','got\x20status:\x20','batch','0.0.1','addEventListener','deployedModelId','test','fromImageBytes\x20must\x20be\x20a\x20string','get','COLLECTION','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20function\x20calls\x20from\x20the\x20first\x20one.','binaryColorThreshold','then','sendPlaybackControl','cachedContent','tee','process.env[\x27GEMINI_NEXT_GEN_API_LOG\x27]','retryRequest','_client','process','HARM_CATEGORY_JAILBREAK','maximumRemoteCalls','TURN_COVERAGE_UNSPECIFIED',']\x20response\x20error\x20(','B_MAJOR_A_FLAT_MINOR','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.','compressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','pageInternal','responseMimeType','thinkingConfig','getWebsocketBaseUrl','Windows','disable','END_SENSITIVITY_LOW','enterpriseWebSearch','isArray','propertyIsEnumerable','UNSPECIFIED','openbsd','suppressed','registerFilesInternal','responseModalities','HARM_SEVERITY_MEDIUM','\x22\x20can\x27t\x20be\x20safely\x20passed\x20as\x20a\x20path\x20parameter','code','sendPromise','InternalServerError','safetyAttributes','labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','+json','E_FLAT_MAJOR_C_MINOR','event','TUNING_MODE_UNSPECIFIED','candidateCount','inlineData','PLAY','http:','vertexDatasetResource','description\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','AuthenticationError','_registerFiles','enhanceInputImage','CONTROL_TYPE_CANNY','params','AbortError','substring','TUNING_TASK_I2V','confidenceThreshold','computeControl','APIConnectionTimeoutError','queryBase','join','carriage','segmentationClasses','cachedContentTokenCount','getAuthHeaders','tunedTeacherModelSource','ACTIVE','generateContentStreamInternal','urlContext','parseResponse','x-goog-upload-status','entries','_query','Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.','toolUsePromptTokensDetails','explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','threshold','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','controlImageConfig','hyperparameters','maxPredictions','has','partnerModelTuningSpec','Live\x20music\x20generation\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.','anyOf','editMode','min','models','getFileName','wss','productImage','STRING','citationMetadata','predictions','nameInternal','Could\x20not\x20parse\x20message\x20into\x20JSON:','HARM_CATEGORY_HARASSMENT','cookie','getApiVersion','JOB_STATE_EXPIRED','MASK_MODE_DEFAULT'];a6_0x5537=function(){return _0x46641b;};return a6_0x5537();}function batchJobSourceToVertex(_0x440c02){const _0x5a7fc4=a6_0x51c1ef,_0x183dde={},_0x49cb99=getValueByPath(_0x440c02,[_0x5a7fc4(0x3e4)]);_0x49cb99!=null&&setValueByPath(_0x183dde,['instancesFormat'],_0x49cb99);const _0x49238b=getValueByPath(_0x440c02,[_0x5a7fc4(0x507)]);_0x49238b!=null&&setValueByPath(_0x183dde,['gcsSource',_0x5a7fc4(0x39e)],_0x49238b);const _0x4b5864=getValueByPath(_0x440c02,['bigqueryUri']);_0x4b5864!=null&&setValueByPath(_0x183dde,[_0x5a7fc4(0x3df),_0x5a7fc4(0x51d)],_0x4b5864);if(getValueByPath(_0x440c02,['fileName'])!==undefined)throw new Error(_0x5a7fc4(0x3c0));if(getValueByPath(_0x440c02,[_0x5a7fc4(0x65f)])!==undefined)throw new Error(_0x5a7fc4(0x5bb));return _0x183dde;}function blobToMldev$4(_0x136c73){const _0x12769f=a6_0x51c1ef,_0x4832d8={},_0x5559e8=getValueByPath(_0x136c73,[_0x12769f(0x18b)]);_0x5559e8!=null&&setValueByPath(_0x4832d8,[_0x12769f(0x18b)],_0x5559e8);if(getValueByPath(_0x136c73,[_0x12769f(0x419)])!==undefined)throw new Error(_0x12769f(0x28e));const _0x255a07=getValueByPath(_0x136c73,[_0x12769f(0x1ac)]);return _0x255a07!=null&&setValueByPath(_0x4832d8,[_0x12769f(0x1ac)],_0x255a07),_0x4832d8;}function cancelBatchJobParametersToMldev(_0x420ea8,_0x316740){const _0x55f173=a6_0x51c1ef,_0x1e0cc0={},_0x2e2b21=getValueByPath(_0x316740,[_0x55f173(0x558)]);return _0x2e2b21!=null&&setValueByPath(_0x1e0cc0,['_url',_0x55f173(0x558)],tBatchJobName(_0x420ea8,_0x2e2b21)),_0x1e0cc0;}function cancelBatchJobParametersToVertex(_0x3ec8cb,_0x554d99){const _0x10c021=a6_0x51c1ef,_0x4635d9={},_0x29ab73=getValueByPath(_0x554d99,[_0x10c021(0x558)]);return _0x29ab73!=null&&setValueByPath(_0x4635d9,[_0x10c021(0x2c1),'name'],tBatchJobName(_0x3ec8cb,_0x29ab73)),_0x4635d9;}function candidateFromMldev$1(_0x43593e){const _0x28e128=a6_0x51c1ef,_0x3e62f5={},_0x2a606e=getValueByPath(_0x43593e,[_0x28e128(0x479)]);_0x2a606e!=null&&setValueByPath(_0x3e62f5,['content'],_0x2a606e);const _0x28cc3d=getValueByPath(_0x43593e,['citationMetadata']);_0x28cc3d!=null&&setValueByPath(_0x3e62f5,[_0x28e128(0x4e2)],citationMetadataFromMldev$1(_0x28cc3d));const _0x4e6b95=getValueByPath(_0x43593e,[_0x28e128(0x33b)]);_0x4e6b95!=null&&setValueByPath(_0x3e62f5,['tokenCount'],_0x4e6b95);const _0x3b6fab=getValueByPath(_0x43593e,[_0x28e128(0x1cb)]);_0x3b6fab!=null&&setValueByPath(_0x3e62f5,[_0x28e128(0x1cb)],_0x3b6fab);const _0x596870=getValueByPath(_0x43593e,[_0x28e128(0x1f2)]);_0x596870!=null&&setValueByPath(_0x3e62f5,[_0x28e128(0x1f2)],_0x596870);const _0x1dd1f8=getValueByPath(_0x43593e,[_0x28e128(0x222)]);_0x1dd1f8!=null&&setValueByPath(_0x3e62f5,[_0x28e128(0x222)],_0x1dd1f8);const _0x1b16dd=getValueByPath(_0x43593e,['index']);_0x1b16dd!=null&&setValueByPath(_0x3e62f5,['index'],_0x1b16dd);const _0x4396a3=getValueByPath(_0x43593e,['logprobsResult']);_0x4396a3!=null&&setValueByPath(_0x3e62f5,['logprobsResult'],_0x4396a3);const _0x43631f=getValueByPath(_0x43593e,[_0x28e128(0x662)]);if(_0x43631f!=null){let _0x183555=_0x43631f;Array['isArray'](_0x183555)&&(_0x183555=_0x183555['map'](_0xa663ce=>{return _0xa663ce;})),setValueByPath(_0x3e62f5,[_0x28e128(0x662)],_0x183555);}const _0x159fd2=getValueByPath(_0x43593e,[_0x28e128(0x4fa)]);return _0x159fd2!=null&&setValueByPath(_0x3e62f5,[_0x28e128(0x4fa)],_0x159fd2),_0x3e62f5;}function citationMetadataFromMldev$1(_0x450bb6){const _0x217a5c=a6_0x51c1ef,_0x3ad17a={},_0x33884f=getValueByPath(_0x450bb6,[_0x217a5c(0x67e)]);if(_0x33884f!=null){let _0x177895=_0x33884f;Array[_0x217a5c(0x49d)](_0x177895)&&(_0x177895=_0x177895[_0x217a5c(0x68f)](_0x53c529=>{return _0x53c529;})),setValueByPath(_0x3ad17a,[_0x217a5c(0x203)],_0x177895);}return _0x3ad17a;}function contentToMldev$4(_0x3a0068){const _0x21978e=a6_0x51c1ef,_0x5c896b={},_0x4d0d6f=getValueByPath(_0x3a0068,[_0x21978e(0x19f)]);if(_0x4d0d6f!=null){let _0x2215d9=_0x4d0d6f;Array[_0x21978e(0x49d)](_0x2215d9)&&(_0x2215d9=_0x2215d9[_0x21978e(0x68f)](_0x267065=>{return partToMldev$4(_0x267065);})),setValueByPath(_0x5c896b,[_0x21978e(0x19f)],_0x2215d9);}const _0x530926=getValueByPath(_0x3a0068,[_0x21978e(0x407)]);return _0x530926!=null&&setValueByPath(_0x5c896b,[_0x21978e(0x407)],_0x530926),_0x5c896b;}function createBatchJobConfigToMldev(_0x21279d,_0x5d1d03){const _0x38b693=a6_0x51c1ef,_0xf58ef1={},_0x1834d9=getValueByPath(_0x21279d,[_0x38b693(0x419)]);_0x5d1d03!==undefined&&_0x1834d9!=null&&setValueByPath(_0x5d1d03,[_0x38b693(0x47c),_0x38b693(0x419)],_0x1834d9);if(getValueByPath(_0x21279d,[_0x38b693(0x211)])!==undefined)throw new Error('dest\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0xf58ef1;}function createBatchJobConfigToVertex(_0x5bda61,_0x46530a){const _0x1c2bf5=a6_0x51c1ef,_0x303335={},_0xe24eb7=getValueByPath(_0x5bda61,[_0x1c2bf5(0x419)]);_0x46530a!==undefined&&_0xe24eb7!=null&&setValueByPath(_0x46530a,[_0x1c2bf5(0x419)],_0xe24eb7);const _0x5a6181=getValueByPath(_0x5bda61,[_0x1c2bf5(0x211)]);return _0x46530a!==undefined&&_0x5a6181!=null&&setValueByPath(_0x46530a,[_0x1c2bf5(0x3b8)],batchJobDestinationToVertex(tBatchJobDestination(_0x5a6181))),_0x303335;}function createBatchJobParametersToMldev(_0xd44f41,_0x144520){const _0x458a71=a6_0x51c1ef,_0x2fc365={},_0x58f0a4=getValueByPath(_0x144520,['model']);_0x58f0a4!=null&&setValueByPath(_0x2fc365,[_0x458a71(0x2c1),_0x458a71(0x418)],tModel(_0xd44f41,_0x58f0a4));const _0x79bae3=getValueByPath(_0x144520,[_0x458a71(0x5e9)]);_0x79bae3!=null&&setValueByPath(_0x2fc365,['batch',_0x458a71(0x22b)],batchJobSourceToMldev(_0xd44f41,tBatchJobSource(_0xd44f41,_0x79bae3)));const _0x129339=getValueByPath(_0x144520,['config']);return _0x129339!=null&&createBatchJobConfigToMldev(_0x129339,_0x2fc365),_0x2fc365;}function createBatchJobParametersToVertex(_0x9c23ba,_0x56fd24){const _0x17a450=a6_0x51c1ef,_0x376266={},_0x43fd4b=getValueByPath(_0x56fd24,['model']);_0x43fd4b!=null&&setValueByPath(_0x376266,[_0x17a450(0x418)],tModel(_0x9c23ba,_0x43fd4b));const _0x12b506=getValueByPath(_0x56fd24,[_0x17a450(0x5e9)]);_0x12b506!=null&&setValueByPath(_0x376266,['inputConfig'],batchJobSourceToVertex(tBatchJobSource(_0x9c23ba,_0x12b506)));const _0x34089b=getValueByPath(_0x56fd24,[_0x17a450(0x66c)]);return _0x34089b!=null&&createBatchJobConfigToVertex(_0x34089b,_0x376266),_0x376266;}function createEmbeddingsBatchJobConfigToMldev(_0xe809e5,_0x56a0b2){const _0x15def3=a6_0x51c1ef,_0x218be9={},_0x36892d=getValueByPath(_0xe809e5,['displayName']);return _0x56a0b2!==undefined&&_0x36892d!=null&&setValueByPath(_0x56a0b2,[_0x15def3(0x47c),_0x15def3(0x419)],_0x36892d),_0x218be9;}function createEmbeddingsBatchJobParametersToMldev(_0x33fee0,_0x41e02e){const _0x57c9b8=a6_0x51c1ef,_0x47cb5d={},_0x7aa22a=getValueByPath(_0x41e02e,[_0x57c9b8(0x418)]);_0x7aa22a!=null&&setValueByPath(_0x47cb5d,['_url',_0x57c9b8(0x418)],tModel(_0x33fee0,_0x7aa22a));const _0x4a9e93=getValueByPath(_0x41e02e,[_0x57c9b8(0x5e9)]);_0x4a9e93!=null&&setValueByPath(_0x47cb5d,[_0x57c9b8(0x47c),_0x57c9b8(0x22b)],embeddingsBatchJobSourceToMldev(_0x33fee0,_0x4a9e93));const _0x588656=getValueByPath(_0x41e02e,[_0x57c9b8(0x66c)]);return _0x588656!=null&&createEmbeddingsBatchJobConfigToMldev(_0x588656,_0x47cb5d),_0x47cb5d;}function deleteBatchJobParametersToMldev(_0x40e835,_0xe879ed){const _0x743281=a6_0x51c1ef,_0x52ebc6={},_0x2aeff4=getValueByPath(_0xe879ed,[_0x743281(0x558)]);return _0x2aeff4!=null&&setValueByPath(_0x52ebc6,[_0x743281(0x2c1),'name'],tBatchJobName(_0x40e835,_0x2aeff4)),_0x52ebc6;}function deleteBatchJobParametersToVertex(_0x3d3735,_0x2cb6dc){const _0x41e9f2=a6_0x51c1ef,_0x454609={},_0x17d925=getValueByPath(_0x2cb6dc,['name']);return _0x17d925!=null&&setValueByPath(_0x454609,['_url',_0x41e9f2(0x558)],tBatchJobName(_0x3d3735,_0x17d925)),_0x454609;}function deleteResourceJobFromMldev(_0x59cb93){const _0x1a9ec5=a6_0x51c1ef,_0x3fbac6={},_0x48b9a0=getValueByPath(_0x59cb93,[_0x1a9ec5(0x344)]);_0x48b9a0!=null&&setValueByPath(_0x3fbac6,[_0x1a9ec5(0x344)],_0x48b9a0);const _0x342987=getValueByPath(_0x59cb93,[_0x1a9ec5(0x558)]);_0x342987!=null&&setValueByPath(_0x3fbac6,[_0x1a9ec5(0x558)],_0x342987);const _0x3e84c9=getValueByPath(_0x59cb93,['done']);_0x3e84c9!=null&&setValueByPath(_0x3fbac6,[_0x1a9ec5(0x2e9)],_0x3e84c9);const _0x380e83=getValueByPath(_0x59cb93,[_0x1a9ec5(0x50a)]);return _0x380e83!=null&&setValueByPath(_0x3fbac6,[_0x1a9ec5(0x50a)],_0x380e83),_0x3fbac6;}function deleteResourceJobFromVertex(_0x350410){const _0x19b262=a6_0x51c1ef,_0x70ab8b={},_0x2ace90=getValueByPath(_0x350410,[_0x19b262(0x344)]);_0x2ace90!=null&&setValueByPath(_0x70ab8b,[_0x19b262(0x344)],_0x2ace90);const _0x457540=getValueByPath(_0x350410,['name']);_0x457540!=null&&setValueByPath(_0x70ab8b,[_0x19b262(0x558)],_0x457540);const _0x1f7a6b=getValueByPath(_0x350410,[_0x19b262(0x2e9)]);_0x1f7a6b!=null&&setValueByPath(_0x70ab8b,[_0x19b262(0x2e9)],_0x1f7a6b);const _0x8ea615=getValueByPath(_0x350410,[_0x19b262(0x50a)]);return _0x8ea615!=null&&setValueByPath(_0x70ab8b,['error'],_0x8ea615),_0x70ab8b;}function embedContentBatchToMldev(_0x204193,_0x668ea3){const _0x31bb5f=a6_0x51c1ef,_0x204667={},_0x42b39e=getValueByPath(_0x668ea3,[_0x31bb5f(0x5b9)]);if(_0x42b39e!=null){let _0x352d2c=tContentsForEmbed(_0x204193,_0x42b39e);Array[_0x31bb5f(0x49d)](_0x352d2c)&&(_0x352d2c=_0x352d2c[_0x31bb5f(0x68f)](_0x60aaaa=>{return _0x60aaaa;})),setValueByPath(_0x204667,[_0x31bb5f(0x455),_0x31bb5f(0x560),'content'],_0x352d2c);}const _0x186852=getValueByPath(_0x668ea3,['config']);return _0x186852!=null&&(setValueByPath(_0x204667,[_0x31bb5f(0x5aa)],embedContentConfigToMldev$1(_0x186852,_0x204667)),moveValueByPath(_0x204667,{'requests[].*':_0x31bb5f(0x65a)})),_0x204667;}function embedContentConfigToMldev$1(_0x44b2c0,_0x7cf19f){const _0x1e7ace=a6_0x51c1ef,_0x477f89={},_0x4a3286=getValueByPath(_0x44b2c0,[_0x1e7ace(0x172)]);_0x7cf19f!==undefined&&_0x4a3286!=null&&setValueByPath(_0x7cf19f,[_0x1e7ace(0x455),_0x1e7ace(0x172)],_0x4a3286);const _0x3d249a=getValueByPath(_0x44b2c0,[_0x1e7ace(0x354)]);_0x7cf19f!==undefined&&_0x3d249a!=null&&setValueByPath(_0x7cf19f,[_0x1e7ace(0x455),_0x1e7ace(0x354)],_0x3d249a);const _0x162d3a=getValueByPath(_0x44b2c0,['outputDimensionality']);_0x7cf19f!==undefined&&_0x162d3a!=null&&setValueByPath(_0x7cf19f,[_0x1e7ace(0x455),'outputDimensionality'],_0x162d3a);if(getValueByPath(_0x44b2c0,['mimeType'])!==undefined)throw new Error(_0x1e7ace(0x58f));if(getValueByPath(_0x44b2c0,[_0x1e7ace(0x281)])!==undefined)throw new Error(_0x1e7ace(0x43c));return _0x477f89;}function embeddingsBatchJobSourceToMldev(_0x24d747,_0x364585){const _0x4612d9=a6_0x51c1ef,_0xfee320={},_0x31a402=getValueByPath(_0x364585,[_0x4612d9(0x38c)]);_0x31a402!=null&&setValueByPath(_0xfee320,[_0x4612d9(0x309)],_0x31a402);const _0x4d2675=getValueByPath(_0x364585,[_0x4612d9(0x65f)]);return _0x4d2675!=null&&setValueByPath(_0xfee320,[_0x4612d9(0x440)],embedContentBatchToMldev(_0x24d747,_0x4d2675)),_0xfee320;}function fileDataToMldev$4(_0x46b36a){const _0x499564=a6_0x51c1ef,_0x72aee9={};if(getValueByPath(_0x46b36a,[_0x499564(0x419)])!==undefined)throw new Error(_0x499564(0x28e));const _0x34be37=getValueByPath(_0x46b36a,[_0x499564(0x316)]);_0x34be37!=null&&setValueByPath(_0x72aee9,[_0x499564(0x316)],_0x34be37);const _0x9dad49=getValueByPath(_0x46b36a,[_0x499564(0x1ac)]);return _0x9dad49!=null&&setValueByPath(_0x72aee9,[_0x499564(0x1ac)],_0x9dad49),_0x72aee9;}function functionCallToMldev$4(_0x3d4a68){const _0x4740df=a6_0x51c1ef,_0x18e363={},_0x543e89=getValueByPath(_0x3d4a68,['id']);_0x543e89!=null&&setValueByPath(_0x18e363,['id'],_0x543e89);const _0x6e67ad=getValueByPath(_0x3d4a68,['args']);_0x6e67ad!=null&&setValueByPath(_0x18e363,[_0x4740df(0x5cb)],_0x6e67ad);const _0x480cf3=getValueByPath(_0x3d4a68,[_0x4740df(0x558)]);_0x480cf3!=null&&setValueByPath(_0x18e363,['name'],_0x480cf3);if(getValueByPath(_0x3d4a68,[_0x4740df(0x381)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x3d4a68,['willContinue'])!==undefined)throw new Error(_0x4740df(0x3fd));return _0x18e363;}function functionCallingConfigToMldev$2(_0x58afa3){const _0x25d36b=a6_0x51c1ef,_0xd1e60={},_0x381370=getValueByPath(_0x58afa3,[_0x25d36b(0x30f)]);_0x381370!=null&&setValueByPath(_0xd1e60,[_0x25d36b(0x30f)],_0x381370);const _0x591f27=getValueByPath(_0x58afa3,[_0x25d36b(0x1c2)]);_0x591f27!=null&&setValueByPath(_0xd1e60,['mode'],_0x591f27);if(getValueByPath(_0x58afa3,[_0x25d36b(0x647)])!==undefined)throw new Error(_0x25d36b(0x3ba));return _0xd1e60;}function generateContentConfigToMldev$1(_0x209842,_0x44afbf,_0x438278){const _0x3f2b7c=a6_0x51c1ef,_0x1b6999={},_0x48d427=getValueByPath(_0x44afbf,[_0x3f2b7c(0x22d)]);_0x438278!==undefined&&_0x48d427!=null&&setValueByPath(_0x438278,[_0x3f2b7c(0x22d)],contentToMldev$4(tContent(_0x48d427)));const _0x4cd2ed=getValueByPath(_0x44afbf,['temperature']);_0x4cd2ed!=null&&setValueByPath(_0x1b6999,['temperature'],_0x4cd2ed);const _0x150290=getValueByPath(_0x44afbf,['topP']);_0x150290!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x465)],_0x150290);const _0x5e2f56=getValueByPath(_0x44afbf,['topK']);_0x5e2f56!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x3ca)],_0x5e2f56);const _0xb0b247=getValueByPath(_0x44afbf,[_0x3f2b7c(0x4af)]);_0xb0b247!=null&&setValueByPath(_0x1b6999,['candidateCount'],_0xb0b247);const _0x25df68=getValueByPath(_0x44afbf,[_0x3f2b7c(0x378)]);_0x25df68!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x378)],_0x25df68);const _0x728412=getValueByPath(_0x44afbf,[_0x3f2b7c(0x29d)]);_0x728412!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x29d)],_0x728412);const _0x52e05a=getValueByPath(_0x44afbf,['responseLogprobs']);_0x52e05a!=null&&setValueByPath(_0x1b6999,['responseLogprobs'],_0x52e05a);const _0x3dfb62=getValueByPath(_0x44afbf,[_0x3f2b7c(0x57a)]);_0x3dfb62!=null&&setValueByPath(_0x1b6999,['logprobs'],_0x3dfb62);const _0x4ff2ed=getValueByPath(_0x44afbf,['presencePenalty']);_0x4ff2ed!=null&&setValueByPath(_0x1b6999,['presencePenalty'],_0x4ff2ed);const _0x1449eb=getValueByPath(_0x44afbf,[_0x3f2b7c(0x5c2)]);_0x1449eb!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x5c2)],_0x1449eb);const _0xd4f861=getValueByPath(_0x44afbf,[_0x3f2b7c(0x245)]);_0xd4f861!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x245)],_0xd4f861);const _0x3dba13=getValueByPath(_0x44afbf,[_0x3f2b7c(0x496)]);_0x3dba13!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x496)],_0x3dba13);const _0x373ec5=getValueByPath(_0x44afbf,[_0x3f2b7c(0x1a4)]);_0x373ec5!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x1a4)],tSchema(_0x373ec5));const _0x2bfa8e=getValueByPath(_0x44afbf,[_0x3f2b7c(0x2d5)]);_0x2bfa8e!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x2d5)],_0x2bfa8e);if(getValueByPath(_0x44afbf,['routingConfig'])!==undefined)throw new Error(_0x3f2b7c(0x3ef));if(getValueByPath(_0x44afbf,[_0x3f2b7c(0x693)])!==undefined)throw new Error(_0x3f2b7c(0x54a));const _0x1b613d=getValueByPath(_0x44afbf,['safetySettings']);if(_0x438278!==undefined&&_0x1b613d!=null){let _0x509168=_0x1b613d;Array[_0x3f2b7c(0x49d)](_0x509168)&&(_0x509168=_0x509168[_0x3f2b7c(0x68f)](_0x2a4642=>{return safetySettingToMldev$1(_0x2a4642);})),setValueByPath(_0x438278,[_0x3f2b7c(0x500)],_0x509168);}const _0xe78419=getValueByPath(_0x44afbf,[_0x3f2b7c(0x269)]);if(_0x438278!==undefined&&_0xe78419!=null){let _0x2a57cb=tTools(_0xe78419);Array[_0x3f2b7c(0x49d)](_0x2a57cb)&&(_0x2a57cb=_0x2a57cb['map'](_0x5bf5cd=>{return toolToMldev$4(tTool(_0x5bf5cd));})),setValueByPath(_0x438278,[_0x3f2b7c(0x269)],_0x2a57cb);}const _0x999c11=getValueByPath(_0x44afbf,['toolConfig']);_0x438278!==undefined&&_0x999c11!=null&&setValueByPath(_0x438278,[_0x3f2b7c(0x334)],toolConfigToMldev$2(_0x999c11));if(getValueByPath(_0x44afbf,['labels'])!==undefined)throw new Error(_0x3f2b7c(0x4aa));const _0x396545=getValueByPath(_0x44afbf,[_0x3f2b7c(0x488)]);_0x438278!==undefined&&_0x396545!=null&&setValueByPath(_0x438278,[_0x3f2b7c(0x488)],tCachedContentName(_0x209842,_0x396545));const _0x1d4f9a=getValueByPath(_0x44afbf,[_0x3f2b7c(0x4a3)]);_0x1d4f9a!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x4a3)],_0x1d4f9a);const _0x502b93=getValueByPath(_0x44afbf,[_0x3f2b7c(0x615)]);_0x502b93!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x615)],_0x502b93);const _0x28004b=getValueByPath(_0x44afbf,[_0x3f2b7c(0x241)]);_0x28004b!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x241)],tSpeechConfig(_0x28004b));if(getValueByPath(_0x44afbf,[_0x3f2b7c(0x3f6)])!==undefined)throw new Error(_0x3f2b7c(0x61c));const _0x517773=getValueByPath(_0x44afbf,[_0x3f2b7c(0x497)]);_0x517773!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x497)],_0x517773);const _0x1d3e6c=getValueByPath(_0x44afbf,[_0x3f2b7c(0x397)]);_0x1d3e6c!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x397)],imageConfigToMldev$1(_0x1d3e6c));const _0x4bff60=getValueByPath(_0x44afbf,[_0x3f2b7c(0x3ad)]);_0x4bff60!=null&&setValueByPath(_0x1b6999,[_0x3f2b7c(0x3ad)],_0x4bff60);if(getValueByPath(_0x44afbf,[_0x3f2b7c(0x306)])!==undefined)throw new Error(_0x3f2b7c(0x5ec));return _0x1b6999;}function generateContentResponseFromMldev$1(_0xeda268){const _0x365a12=a6_0x51c1ef,_0x20028f={},_0x5d71c3=getValueByPath(_0xeda268,[_0x365a12(0x344)]);_0x5d71c3!=null&&setValueByPath(_0x20028f,[_0x365a12(0x344)],_0x5d71c3);const _0x37c791=getValueByPath(_0xeda268,[_0x365a12(0x410)]);if(_0x37c791!=null){let _0x3f2d6f=_0x37c791;Array[_0x365a12(0x49d)](_0x3f2d6f)&&(_0x3f2d6f=_0x3f2d6f[_0x365a12(0x68f)](_0x171a8c=>{return candidateFromMldev$1(_0x171a8c);})),setValueByPath(_0x20028f,[_0x365a12(0x410)],_0x3f2d6f);}const _0x515b26=getValueByPath(_0xeda268,[_0x365a12(0x25a)]);_0x515b26!=null&&setValueByPath(_0x20028f,[_0x365a12(0x25a)],_0x515b26);const _0x3ca6bc=getValueByPath(_0xeda268,[_0x365a12(0x63d)]);_0x3ca6bc!=null&&setValueByPath(_0x20028f,[_0x365a12(0x63d)],_0x3ca6bc);const _0x5e2c97=getValueByPath(_0xeda268,[_0x365a12(0x249)]);_0x5e2c97!=null&&setValueByPath(_0x20028f,[_0x365a12(0x249)],_0x5e2c97);const _0x3ccd21=getValueByPath(_0xeda268,[_0x365a12(0x474)]);return _0x3ccd21!=null&&setValueByPath(_0x20028f,[_0x365a12(0x474)],_0x3ccd21),_0x20028f;}function getBatchJobParametersToMldev(_0x542857,_0x285a0f){const _0x30bb8f=a6_0x51c1ef,_0x132d41={},_0x1ac67c=getValueByPath(_0x285a0f,[_0x30bb8f(0x558)]);return _0x1ac67c!=null&&setValueByPath(_0x132d41,[_0x30bb8f(0x2c1),_0x30bb8f(0x558)],tBatchJobName(_0x542857,_0x1ac67c)),_0x132d41;}function getBatchJobParametersToVertex(_0x250e6b,_0x45132c){const _0xfee99f=a6_0x51c1ef,_0x32f553={},_0x20610e=getValueByPath(_0x45132c,[_0xfee99f(0x558)]);return _0x20610e!=null&&setValueByPath(_0x32f553,[_0xfee99f(0x2c1),'name'],tBatchJobName(_0x250e6b,_0x20610e)),_0x32f553;}function googleMapsToMldev$4(_0x2add5a){const _0x5005bb=a6_0x51c1ef,_0x531c0c={};if(getValueByPath(_0x2add5a,[_0x5005bb(0x3dc)])!==undefined)throw new Error(_0x5005bb(0x1ba));const _0x5e45c9=getValueByPath(_0x2add5a,[_0x5005bb(0x3ee)]);return _0x5e45c9!=null&&setValueByPath(_0x531c0c,[_0x5005bb(0x3ee)],_0x5e45c9),_0x531c0c;}function googleSearchToMldev$4(_0x32dc64){const _0x175dae=a6_0x51c1ef,_0x2732d1={};if(getValueByPath(_0x32dc64,[_0x175dae(0x1b7)])!==undefined)throw new Error(_0x175dae(0x3b6));if(getValueByPath(_0x32dc64,[_0x175dae(0x16f)])!==undefined)throw new Error(_0x175dae(0x383));const _0x384bf4=getValueByPath(_0x32dc64,[_0x175dae(0x3fb)]);return _0x384bf4!=null&&setValueByPath(_0x2732d1,[_0x175dae(0x3fb)],_0x384bf4),_0x2732d1;}function imageConfigToMldev$1(_0x1d059f){const _0x125924=a6_0x51c1ef,_0x29e17b={},_0x923b79=getValueByPath(_0x1d059f,[_0x125924(0x655)]);_0x923b79!=null&&setValueByPath(_0x29e17b,['aspectRatio'],_0x923b79);const _0x16aeff=getValueByPath(_0x1d059f,[_0x125924(0x2ed)]);_0x16aeff!=null&&setValueByPath(_0x29e17b,['imageSize'],_0x16aeff);if(getValueByPath(_0x1d059f,[_0x125924(0x346)])!==undefined)throw new Error(_0x125924(0x1c0));if(getValueByPath(_0x1d059f,[_0x125924(0x415)])!==undefined)throw new Error(_0x125924(0x392));if(getValueByPath(_0x1d059f,['outputCompressionQuality'])!==undefined)throw new Error('outputCompressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x29e17b;}function inlinedRequestToMldev(_0x1cd574,_0x404d71){const _0x98f3fc=a6_0x51c1ef,_0x61aaa6={},_0x43089a=getValueByPath(_0x404d71,[_0x98f3fc(0x418)]);_0x43089a!=null&&setValueByPath(_0x61aaa6,[_0x98f3fc(0x560),_0x98f3fc(0x418)],tModel(_0x1cd574,_0x43089a));const _0x212288=getValueByPath(_0x404d71,[_0x98f3fc(0x5b9)]);if(_0x212288!=null){let _0x2efba1=tContents(_0x212288);Array['isArray'](_0x2efba1)&&(_0x2efba1=_0x2efba1[_0x98f3fc(0x68f)](_0x4184cf=>{return contentToMldev$4(_0x4184cf);})),setValueByPath(_0x61aaa6,[_0x98f3fc(0x560),'contents'],_0x2efba1);}const _0x3ce50d=getValueByPath(_0x404d71,[_0x98f3fc(0x367)]);_0x3ce50d!=null&&setValueByPath(_0x61aaa6,[_0x98f3fc(0x367)],_0x3ce50d);const _0x223512=getValueByPath(_0x404d71,[_0x98f3fc(0x66c)]);return _0x223512!=null&&setValueByPath(_0x61aaa6,['request','generationConfig'],generateContentConfigToMldev$1(_0x1cd574,_0x223512,getValueByPath(_0x61aaa6,[_0x98f3fc(0x560)],{}))),_0x61aaa6;}function inlinedResponseFromMldev(_0xbebc2f){const _0xb704a7=a6_0x51c1ef,_0x593420={},_0x1bb5e1=getValueByPath(_0xbebc2f,[_0xb704a7(0x603)]);_0x1bb5e1!=null&&setValueByPath(_0x593420,[_0xb704a7(0x603)],generateContentResponseFromMldev$1(_0x1bb5e1));const _0x52ff3c=getValueByPath(_0xbebc2f,[_0xb704a7(0x367)]);_0x52ff3c!=null&&setValueByPath(_0x593420,[_0xb704a7(0x367)],_0x52ff3c);const _0x92b745=getValueByPath(_0xbebc2f,[_0xb704a7(0x50a)]);return _0x92b745!=null&&setValueByPath(_0x593420,[_0xb704a7(0x50a)],_0x92b745),_0x593420;}function listBatchJobsConfigToMldev(_0x48633e,_0x24f562){const _0x36e63c=a6_0x51c1ef,_0xe675e={},_0x271a4e=getValueByPath(_0x48633e,[_0x36e63c(0x400)]);_0x24f562!==undefined&&_0x271a4e!=null&&setValueByPath(_0x24f562,[_0x36e63c(0x4cd),_0x36e63c(0x400)],_0x271a4e);const _0x1b44dc=getValueByPath(_0x48633e,['pageToken']);_0x24f562!==undefined&&_0x1b44dc!=null&&setValueByPath(_0x24f562,[_0x36e63c(0x4cd),_0x36e63c(0x2dd)],_0x1b44dc);if(getValueByPath(_0x48633e,[_0x36e63c(0x581)])!==undefined)throw new Error(_0x36e63c(0x3db));return _0xe675e;}function listBatchJobsConfigToVertex(_0x3ff1f7,_0x48019d){const _0x377c02=a6_0x51c1ef,_0xcf56ba={},_0xed6f4a=getValueByPath(_0x3ff1f7,[_0x377c02(0x400)]);_0x48019d!==undefined&&_0xed6f4a!=null&&setValueByPath(_0x48019d,[_0x377c02(0x4cd),_0x377c02(0x400)],_0xed6f4a);const _0x5aab37=getValueByPath(_0x3ff1f7,['pageToken']);_0x48019d!==undefined&&_0x5aab37!=null&&setValueByPath(_0x48019d,[_0x377c02(0x4cd),_0x377c02(0x2dd)],_0x5aab37);const _0x496b51=getValueByPath(_0x3ff1f7,[_0x377c02(0x581)]);return _0x48019d!==undefined&&_0x496b51!=null&&setValueByPath(_0x48019d,['_query','filter'],_0x496b51),_0xcf56ba;}function listBatchJobsParametersToMldev(_0x5e4748){const _0x252b42=a6_0x51c1ef,_0x52ef24={},_0x5c1aeb=getValueByPath(_0x5e4748,[_0x252b42(0x66c)]);return _0x5c1aeb!=null&&listBatchJobsConfigToMldev(_0x5c1aeb,_0x52ef24),_0x52ef24;}function listBatchJobsParametersToVertex(_0x413bee){const _0x350a5b={},_0x3c7507=getValueByPath(_0x413bee,['config']);return _0x3c7507!=null&&listBatchJobsConfigToVertex(_0x3c7507,_0x350a5b),_0x350a5b;}function listBatchJobsResponseFromMldev(_0x2f2913){const _0x35a2e4=a6_0x51c1ef,_0x346b5a={},_0x2a13cc=getValueByPath(_0x2f2913,[_0x35a2e4(0x344)]);_0x2a13cc!=null&&setValueByPath(_0x346b5a,[_0x35a2e4(0x344)],_0x2a13cc);const _0x32feba=getValueByPath(_0x2f2913,[_0x35a2e4(0x17a)]);_0x32feba!=null&&setValueByPath(_0x346b5a,['nextPageToken'],_0x32feba);const _0x378dde=getValueByPath(_0x2f2913,[_0x35a2e4(0x43f)]);if(_0x378dde!=null){let _0x4f7992=_0x378dde;Array[_0x35a2e4(0x49d)](_0x4f7992)&&(_0x4f7992=_0x4f7992[_0x35a2e4(0x68f)](_0x1796b0=>{return batchJobFromMldev(_0x1796b0);})),setValueByPath(_0x346b5a,['batchJobs'],_0x4f7992);}return _0x346b5a;}function listBatchJobsResponseFromVertex(_0x3d05a3){const _0x28a8b8=a6_0x51c1ef,_0x2b2e80={},_0x8d931a=getValueByPath(_0x3d05a3,[_0x28a8b8(0x344)]);_0x8d931a!=null&&setValueByPath(_0x2b2e80,[_0x28a8b8(0x344)],_0x8d931a);const _0x2fb27b=getValueByPath(_0x3d05a3,['nextPageToken']);_0x2fb27b!=null&&setValueByPath(_0x2b2e80,[_0x28a8b8(0x17a)],_0x2fb27b);const _0x5a4b3f=getValueByPath(_0x3d05a3,[_0x28a8b8(0x236)]);if(_0x5a4b3f!=null){let _0x1d26f1=_0x5a4b3f;Array[_0x28a8b8(0x49d)](_0x1d26f1)&&(_0x1d26f1=_0x1d26f1[_0x28a8b8(0x68f)](_0x1c926f=>{return batchJobFromVertex(_0x1c926f);})),setValueByPath(_0x2b2e80,[_0x28a8b8(0x401)],_0x1d26f1);}return _0x2b2e80;}function partToMldev$4(_0x345666){const _0x37b5c3=a6_0x51c1ef,_0x21cc6e={},_0x5368a9=getValueByPath(_0x345666,[_0x37b5c3(0x615)]);_0x5368a9!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x615)],_0x5368a9);const _0x21556c=getValueByPath(_0x345666,[_0x37b5c3(0x2c0)]);_0x21556c!=null&&setValueByPath(_0x21cc6e,['codeExecutionResult'],_0x21556c);const _0x3ca6a0=getValueByPath(_0x345666,[_0x37b5c3(0x5df)]);_0x3ca6a0!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x5df)],_0x3ca6a0);const _0x419d74=getValueByPath(_0x345666,[_0x37b5c3(0x24e)]);_0x419d74!=null&&setValueByPath(_0x21cc6e,['fileData'],fileDataToMldev$4(_0x419d74));const _0x4bb719=getValueByPath(_0x345666,['functionCall']);_0x4bb719!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x2cc)],functionCallToMldev$4(_0x4bb719));const _0x1d710e=getValueByPath(_0x345666,['functionResponse']);_0x1d710e!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x2fa)],_0x1d710e);const _0x475a02=getValueByPath(_0x345666,[_0x37b5c3(0x4b0)]);_0x475a02!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x4b0)],blobToMldev$4(_0x475a02));const _0x141095=getValueByPath(_0x345666,[_0x37b5c3(0x278)]);_0x141095!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x278)],_0x141095);const _0x1bc606=getValueByPath(_0x345666,[_0x37b5c3(0x29e)]);_0x1bc606!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x29e)],_0x1bc606);const _0x1e5e64=getValueByPath(_0x345666,[_0x37b5c3(0x4f0)]);_0x1e5e64!=null&&setValueByPath(_0x21cc6e,['thoughtSignature'],_0x1e5e64);const _0x475ac9=getValueByPath(_0x345666,['videoMetadata']);return _0x475ac9!=null&&setValueByPath(_0x21cc6e,[_0x37b5c3(0x2e8)],_0x475ac9),_0x21cc6e;}function safetySettingToMldev$1(_0x4a554a){const _0x2e010a=a6_0x51c1ef,_0x3eb0b1={},_0x51e7ee=getValueByPath(_0x4a554a,[_0x2e010a(0x54f)]);_0x51e7ee!=null&&setValueByPath(_0x3eb0b1,[_0x2e010a(0x54f)],_0x51e7ee);if(getValueByPath(_0x4a554a,[_0x2e010a(0x566)])!==undefined)throw new Error('method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x4d2a55=getValueByPath(_0x4a554a,[_0x2e010a(0x4d1)]);return _0x4d2a55!=null&&setValueByPath(_0x3eb0b1,[_0x2e010a(0x4d1)],_0x4d2a55),_0x3eb0b1;}function toolConfigToMldev$2(_0x2ec3de){const _0x88f654=a6_0x51c1ef,_0x26e829={},_0x72467b=getValueByPath(_0x2ec3de,[_0x88f654(0x3bc)]);_0x72467b!=null&&setValueByPath(_0x26e829,[_0x88f654(0x3bc)],_0x72467b);const _0x432875=getValueByPath(_0x2ec3de,[_0x88f654(0x429)]);return _0x432875!=null&&setValueByPath(_0x26e829,[_0x88f654(0x429)],functionCallingConfigToMldev$2(_0x432875)),_0x26e829;}function toolToMldev$4(_0x1cdf80){const _0x5a92dd=a6_0x51c1ef,_0x543ed3={};if(getValueByPath(_0x1cdf80,[_0x5a92dd(0x3ec)])!==undefined)throw new Error(_0x5a92dd(0x390));const _0x5d918e=getValueByPath(_0x1cdf80,[_0x5a92dd(0x41e)]);_0x5d918e!=null&&setValueByPath(_0x543ed3,[_0x5a92dd(0x41e)],_0x5d918e);const _0x3e9ecc=getValueByPath(_0x1cdf80,[_0x5a92dd(0x403)]);_0x3e9ecc!=null&&setValueByPath(_0x543ed3,['fileSearch'],_0x3e9ecc);const _0x1bf945=getValueByPath(_0x1cdf80,[_0x5a92dd(0x230)]);_0x1bf945!=null&&setValueByPath(_0x543ed3,['codeExecution'],_0x1bf945);if(getValueByPath(_0x1cdf80,[_0x5a92dd(0x49c)])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x4b98d1=getValueByPath(_0x1cdf80,[_0x5a92dd(0x63b)]);if(_0x4b98d1!=null){let _0x102ff8=_0x4b98d1;Array[_0x5a92dd(0x49d)](_0x102ff8)&&(_0x102ff8=_0x102ff8[_0x5a92dd(0x68f)](_0xf30c96=>{return _0xf30c96;})),setValueByPath(_0x543ed3,[_0x5a92dd(0x63b)],_0x102ff8);}const _0x2a9ebb=getValueByPath(_0x1cdf80,['googleMaps']);_0x2a9ebb!=null&&setValueByPath(_0x543ed3,['googleMaps'],googleMapsToMldev$4(_0x2a9ebb));const _0x128f16=getValueByPath(_0x1cdf80,[_0x5a92dd(0x618)]);_0x128f16!=null&&setValueByPath(_0x543ed3,[_0x5a92dd(0x618)],googleSearchToMldev$4(_0x128f16));const _0x2919a8=getValueByPath(_0x1cdf80,['googleSearchRetrieval']);_0x2919a8!=null&&setValueByPath(_0x543ed3,[_0x5a92dd(0x698)],_0x2919a8);const _0x12c942=getValueByPath(_0x1cdf80,[_0x5a92dd(0x4c9)]);return _0x12c942!=null&&setValueByPath(_0x543ed3,[_0x5a92dd(0x4c9)],_0x12c942),_0x543ed3;}/**
37
+ * @license
38
+ * Copyright 2025 Google LLC
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ var PagedItem;(function(_0x15e262){const _0x5f3f2c=a6_0x51c1ef;_0x15e262[_0x5f3f2c(0x5a4)]=_0x5f3f2c(0x401),_0x15e262[_0x5f3f2c(0x432)]=_0x5f3f2c(0x4dd),_0x15e262[_0x5f3f2c(0x161)]=_0x5f3f2c(0x413),_0x15e262['PAGED_ITEM_FILES']=_0x5f3f2c(0x318),_0x15e262[_0x5f3f2c(0x4f7)]='cachedContents',_0x15e262[_0x5f3f2c(0x226)]=_0x5f3f2c(0x2f5),_0x15e262[_0x5f3f2c(0x178)]=_0x5f3f2c(0x363);}(PagedItem||(PagedItem={})));class Pager{constructor(_0x46412a,_0x36f9f7,_0x21fccc,_0x25cd29){const _0x338c9a=a6_0x51c1ef;this[_0x338c9a(0x495)]=[],this[_0x338c9a(0x1f5)]={},this[_0x338c9a(0x29c)]=_0x36f9f7,this[_0x338c9a(0x37e)](_0x46412a,_0x21fccc,_0x25cd29);}[a6_0x51c1ef(0x37e)](_0x2181c2,_0x3645ff,_0x5c604c){const _0x33c6eb=a6_0x51c1ef;var _0x493b63,_0x2460b9;this[_0x33c6eb(0x4e4)]=_0x2181c2,this[_0x33c6eb(0x495)]=_0x3645ff[this[_0x33c6eb(0x4e4)]]||[],this[_0x33c6eb(0x63c)]=_0x3645ff===null||_0x3645ff===void 0x0?void 0x0:_0x3645ff[_0x33c6eb(0x344)],this['idxInternal']=0x0;let _0x4cec06={'config':{}};if(!_0x5c604c||Object[_0x33c6eb(0x562)](_0x5c604c)[_0x33c6eb(0x3b7)]===0x0)_0x4cec06={'config':{}};else typeof _0x5c604c==='object'?_0x4cec06=Object['assign']({},_0x5c604c):_0x4cec06=_0x5c604c;_0x4cec06[_0x33c6eb(0x66c)]&&(_0x4cec06[_0x33c6eb(0x66c)][_0x33c6eb(0x2dd)]=_0x3645ff[_0x33c6eb(0x17a)]),this[_0x33c6eb(0x1f5)]=_0x4cec06,this['pageInternalSize']=(_0x2460b9=(_0x493b63=_0x4cec06['config'])===null||_0x493b63===void 0x0?void 0x0:_0x493b63[_0x33c6eb(0x400)])!==null&&_0x2460b9!==void 0x0?_0x2460b9:this[_0x33c6eb(0x495)]['length'];}[a6_0x51c1ef(0x3a0)](_0x28c018){const _0x9a632b=a6_0x51c1ef;this[_0x9a632b(0x37e)](this[_0x9a632b(0x4e4)],_0x28c018,this[_0x9a632b(0x1f5)]);}get['page'](){return this['pageInternal'];}get[a6_0x51c1ef(0x558)](){const _0x5ec396=a6_0x51c1ef;return this[_0x5ec396(0x4e4)];}get['pageSize'](){return this['pageInternalSize'];}get['sdkHttpResponse'](){const _0x82807=a6_0x51c1ef;return this[_0x82807(0x63c)];}get[a6_0x51c1ef(0x4b9)](){return this['paramsInternal'];}get[a6_0x51c1ef(0x165)](){const _0x1a7930=a6_0x51c1ef;return this[_0x1a7930(0x495)][_0x1a7930(0x3b7)];}['getItem'](_0x4804fc){const _0x37bad5=a6_0x51c1ef;return this[_0x37bad5(0x495)][_0x4804fc];}[Symbol['asyncIterator']](){return{'next':async()=>{const _0x5da904=a6_0x148c;if(this['idxInternal']>=this['pageLength']){if(this['hasNextPage']())await this[_0x5da904(0x62d)]();else return{'value':undefined,'done':!![]};}const _0x367682=this['getItem'](this[_0x5da904(0x268)]);return this[_0x5da904(0x268)]+=0x1,{'value':_0x367682,'done':![]};},'return':async()=>{return{'value':undefined,'done':!![]};}};}async['nextPage'](){const _0x535b77=a6_0x51c1ef;if(!this[_0x535b77(0x159)]())throw new Error(_0x535b77(0x2f8));const _0x39b3ef=await this[_0x535b77(0x29c)](this[_0x535b77(0x4b9)]);return this[_0x535b77(0x3a0)](_0x39b3ef),this[_0x535b77(0x570)];}[a6_0x51c1ef(0x159)](){const _0x1100e0=a6_0x51c1ef;var _0x31a446;if(((_0x31a446=this['params'][_0x1100e0(0x66c)])===null||_0x31a446===void 0x0?void 0x0:_0x31a446[_0x1100e0(0x2dd)])!==undefined)return!![];return![];}}/**
42
+ * @license
43
+ * Copyright 2025 Google LLC
44
+ * SPDX-License-Identifier: Apache-2.0
45
+ */
46
+ class Batches extends BaseModule{constructor(_0x1c1bd2){const _0xd25b16=a6_0x51c1ef;super(),this[_0xd25b16(0x61e)]=_0x1c1bd2,this[_0xd25b16(0x644)]=async(_0x249ad3={})=>{const _0x52c00f=_0xd25b16;return new Pager(PagedItem[_0x52c00f(0x5a4)],_0x186b75=>this[_0x52c00f(0x542)](_0x186b75),await this[_0x52c00f(0x542)](_0x249ad3),_0x249ad3);},this[_0xd25b16(0x3dd)]=async _0x333b40=>{const _0x18ec16=_0xd25b16;return this[_0x18ec16(0x61e)][_0x18ec16(0x291)]()&&(_0x333b40[_0x18ec16(0x66c)]=this[_0x18ec16(0x204)](_0x333b40[_0x18ec16(0x5e9)],_0x333b40[_0x18ec16(0x66c)])),this['createInternal'](_0x333b40);},this[_0xd25b16(0x1b0)]=async _0xaa3feb=>{const _0x4508fa=_0xd25b16;console[_0x4508fa(0x5a6)]('batches.createEmbeddings()\x20is\x20experimental\x20and\x20may\x20change\x20without\x20notice.');if(this[_0x4508fa(0x61e)]['isVertexAI']())throw new Error(_0x4508fa(0x18c));return this[_0x4508fa(0x234)](_0xaa3feb);};}['createInlinedGenerateContentRequest'](_0x5ef51b){const _0x5d6cb0=a6_0x51c1ef,_0x48412d=createBatchJobParametersToMldev(this[_0x5d6cb0(0x61e)],_0x5ef51b),_0x405ae0=_0x48412d[_0x5d6cb0(0x2c1)],_0x24bb47=formatMap(_0x5d6cb0(0x56e),_0x405ae0),_0x2ef8e7=_0x48412d['batch'],_0x385160=_0x2ef8e7[_0x5d6cb0(0x22b)],_0x10758b=_0x385160[_0x5d6cb0(0x440)],_0x27181f=_0x10758b[_0x5d6cb0(0x440)],_0x20f3bf=[];for(const _0x19a066 of _0x27181f){const _0x4bdd96=Object[_0x5d6cb0(0x5a8)]({},_0x19a066);if(_0x4bdd96['systemInstruction']){const _0x4cba25=_0x4bdd96[_0x5d6cb0(0x22d)];delete _0x4bdd96[_0x5d6cb0(0x22d)];const _0x2e33b4=_0x4bdd96[_0x5d6cb0(0x560)];_0x2e33b4[_0x5d6cb0(0x22d)]=_0x4cba25,_0x4bdd96[_0x5d6cb0(0x560)]=_0x2e33b4;}_0x20f3bf['push'](_0x4bdd96);}return _0x10758b['requests']=_0x20f3bf,delete _0x48412d[_0x5d6cb0(0x66c)],delete _0x48412d[_0x5d6cb0(0x2c1)],delete _0x48412d[_0x5d6cb0(0x4cd)],{'path':_0x24bb47,'body':_0x48412d};}[a6_0x51c1ef(0x3f5)](_0x52bc6e){const _0x891440=a6_0x51c1ef;if(typeof _0x52bc6e===_0x891440(0x53d))return _0x52bc6e[_0x891440(0x453)](_0x891440(0x23d))?_0x52bc6e:undefined;if(!Array[_0x891440(0x49d)](_0x52bc6e)&&_0x52bc6e[_0x891440(0x507)]&&_0x52bc6e[_0x891440(0x507)][_0x891440(0x3b7)]>0x0)return _0x52bc6e[_0x891440(0x507)][0x0];return undefined;}[a6_0x51c1ef(0x351)](_0x2e9026){const _0x4a8c72=a6_0x51c1ef;if(typeof _0x2e9026===_0x4a8c72(0x53d))return _0x2e9026['startsWith'](_0x4a8c72(0x3d3))?_0x2e9026:undefined;if(!Array[_0x4a8c72(0x49d)](_0x2e9026))return _0x2e9026['bigqueryUri'];return undefined;}[a6_0x51c1ef(0x204)](_0x33f712,_0x1baf6f){const _0x3262d5=a6_0x51c1ef,_0x43611b=_0x1baf6f?Object[_0x3262d5(0x5a8)]({},_0x1baf6f):{},_0x3bcce0=Date[_0x3262d5(0x200)]()['toString']();!_0x43611b[_0x3262d5(0x419)]&&(_0x43611b[_0x3262d5(0x419)]='genaiBatchJob_'+_0x3bcce0);if(_0x43611b['dest']===undefined){const _0x4e457f=this[_0x3262d5(0x3f5)](_0x33f712),_0x2944fa=this[_0x3262d5(0x351)](_0x33f712);if(_0x4e457f)_0x4e457f[_0x3262d5(0x600)](_0x3262d5(0x622))?_0x43611b[_0x3262d5(0x211)]=_0x4e457f[_0x3262d5(0x15a)](0x0,-0x6)+_0x3262d5(0x5be):_0x43611b[_0x3262d5(0x211)]=_0x4e457f+_0x3262d5(0x251)+_0x3bcce0;else{if(_0x2944fa)_0x43611b['dest']=_0x2944fa+_0x3262d5(0x251)+_0x3bcce0;else throw new Error(_0x3262d5(0x653));}}return _0x43611b;}async[a6_0x51c1ef(0x4fc)](_0x4db606){const _0x4551b7=a6_0x51c1ef;var _0x11da80,_0x27a397,_0x366adb,_0x1dafe8;let _0x1c67ca,_0x22077a='',_0x4933c0={};if(this[_0x4551b7(0x61e)][_0x4551b7(0x291)]()){const _0x1c836c=createBatchJobParametersToVertex(this['apiClient'],_0x4db606);return _0x22077a=formatMap(_0x4551b7(0x236),_0x1c836c['_url']),_0x4933c0=_0x1c836c[_0x4551b7(0x4cd)],delete _0x1c836c['_url'],delete _0x1c836c[_0x4551b7(0x4cd)],_0x1c67ca=this[_0x4551b7(0x61e)][_0x4551b7(0x560)]({'path':_0x22077a,'queryParams':_0x4933c0,'body':JSON[_0x4551b7(0x183)](_0x1c836c),'httpMethod':'POST','httpOptions':(_0x11da80=_0x4db606[_0x4551b7(0x66c)])===null||_0x11da80===void 0x0?void 0x0:_0x11da80[_0x4551b7(0x328)],'abortSignal':(_0x27a397=_0x4db606[_0x4551b7(0x66c)])===null||_0x27a397===void 0x0?void 0x0:_0x27a397[_0x4551b7(0x643)]})[_0x4551b7(0x486)](_0xd2069f=>{const _0x41fcbf=_0x4551b7;return _0xd2069f[_0x41fcbf(0x31b)]();}),_0x1c67ca['then'](_0x320e3d=>{const _0x48859a=batchJobFromVertex(_0x320e3d);return _0x48859a;});}else{const _0x1b5cfe=createBatchJobParametersToMldev(this[_0x4551b7(0x61e)],_0x4db606);return _0x22077a=formatMap(_0x4551b7(0x56e),_0x1b5cfe['_url']),_0x4933c0=_0x1b5cfe['_query'],delete _0x1b5cfe[_0x4551b7(0x2c1)],delete _0x1b5cfe['_query'],_0x1c67ca=this[_0x4551b7(0x61e)][_0x4551b7(0x560)]({'path':_0x22077a,'queryParams':_0x4933c0,'body':JSON[_0x4551b7(0x183)](_0x1b5cfe),'httpMethod':_0x4551b7(0x1e6),'httpOptions':(_0x366adb=_0x4db606[_0x4551b7(0x66c)])===null||_0x366adb===void 0x0?void 0x0:_0x366adb[_0x4551b7(0x328)],'abortSignal':(_0x1dafe8=_0x4db606[_0x4551b7(0x66c)])===null||_0x1dafe8===void 0x0?void 0x0:_0x1dafe8[_0x4551b7(0x643)]})[_0x4551b7(0x486)](_0x18ba0c=>{const _0x36f8d2=_0x4551b7;return _0x18ba0c[_0x36f8d2(0x31b)]();}),_0x1c67ca[_0x4551b7(0x486)](_0x5c4455=>{const _0x265acc=batchJobFromMldev(_0x5c4455);return _0x265acc;});}}async['createEmbeddingsInternal'](_0x14f179){const _0x38d1a1=a6_0x51c1ef;var _0x200e9b,_0x4e6b52;let _0x3abc69,_0x58691e='',_0xb0b8c1={};if(this[_0x38d1a1(0x61e)][_0x38d1a1(0x291)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0xc4e9b1=createEmbeddingsBatchJobParametersToMldev(this[_0x38d1a1(0x61e)],_0x14f179);return _0x58691e=formatMap(_0x38d1a1(0x2a9),_0xc4e9b1['_url']),_0xb0b8c1=_0xc4e9b1['_query'],delete _0xc4e9b1[_0x38d1a1(0x2c1)],delete _0xc4e9b1[_0x38d1a1(0x4cd)],_0x3abc69=this[_0x38d1a1(0x61e)][_0x38d1a1(0x560)]({'path':_0x58691e,'queryParams':_0xb0b8c1,'body':JSON[_0x38d1a1(0x183)](_0xc4e9b1),'httpMethod':_0x38d1a1(0x1e6),'httpOptions':(_0x200e9b=_0x14f179[_0x38d1a1(0x66c)])===null||_0x200e9b===void 0x0?void 0x0:_0x200e9b['httpOptions'],'abortSignal':(_0x4e6b52=_0x14f179['config'])===null||_0x4e6b52===void 0x0?void 0x0:_0x4e6b52[_0x38d1a1(0x643)]})['then'](_0x513b5d=>{const _0x3d66c0=_0x38d1a1;return _0x513b5d[_0x3d66c0(0x31b)]();}),_0x3abc69[_0x38d1a1(0x486)](_0x1df849=>{const _0x4465d1=batchJobFromMldev(_0x1df849);return _0x4465d1;});}}async['get'](_0x1c2c6e){const _0x2753ae=a6_0x51c1ef;var _0x2fda5f,_0x3c884e,_0x44aeda,_0x488cde;let _0x52bac6,_0x34846d='',_0x41bba4={};if(this[_0x2753ae(0x61e)]['isVertexAI']()){const _0x1c3e10=getBatchJobParametersToVertex(this[_0x2753ae(0x61e)],_0x1c2c6e);return _0x34846d=formatMap(_0x2753ae(0x34a),_0x1c3e10['_url']),_0x41bba4=_0x1c3e10['_query'],delete _0x1c3e10['_url'],delete _0x1c3e10['_query'],_0x52bac6=this[_0x2753ae(0x61e)]['request']({'path':_0x34846d,'queryParams':_0x41bba4,'body':JSON[_0x2753ae(0x183)](_0x1c3e10),'httpMethod':_0x2753ae(0x1fa),'httpOptions':(_0x2fda5f=_0x1c2c6e['config'])===null||_0x2fda5f===void 0x0?void 0x0:_0x2fda5f[_0x2753ae(0x328)],'abortSignal':(_0x3c884e=_0x1c2c6e[_0x2753ae(0x66c)])===null||_0x3c884e===void 0x0?void 0x0:_0x3c884e[_0x2753ae(0x643)]})[_0x2753ae(0x486)](_0x755127=>{return _0x755127['json']();}),_0x52bac6[_0x2753ae(0x486)](_0xdd87bc=>{const _0x3b707f=batchJobFromVertex(_0xdd87bc);return _0x3b707f;});}else{const _0x2a2948=getBatchJobParametersToMldev(this[_0x2753ae(0x61e)],_0x1c2c6e);return _0x34846d=formatMap(_0x2753ae(0x2f2),_0x2a2948[_0x2753ae(0x2c1)]),_0x41bba4=_0x2a2948['_query'],delete _0x2a2948['_url'],delete _0x2a2948[_0x2753ae(0x4cd)],_0x52bac6=this[_0x2753ae(0x61e)][_0x2753ae(0x560)]({'path':_0x34846d,'queryParams':_0x41bba4,'body':JSON[_0x2753ae(0x183)](_0x2a2948),'httpMethod':_0x2753ae(0x1fa),'httpOptions':(_0x44aeda=_0x1c2c6e[_0x2753ae(0x66c)])===null||_0x44aeda===void 0x0?void 0x0:_0x44aeda[_0x2753ae(0x328)],'abortSignal':(_0x488cde=_0x1c2c6e[_0x2753ae(0x66c)])===null||_0x488cde===void 0x0?void 0x0:_0x488cde[_0x2753ae(0x643)]})[_0x2753ae(0x486)](_0x3f0400=>{const _0xaefa67=_0x2753ae;return _0x3f0400[_0xaefa67(0x31b)]();}),_0x52bac6[_0x2753ae(0x486)](_0xc6354d=>{const _0x2250dc=batchJobFromMldev(_0xc6354d);return _0x2250dc;});}}async[a6_0x51c1ef(0x5ff)](_0xf93778){const _0x207523=a6_0x51c1ef;var _0x867cbb,_0x6305bd,_0x26ef8a,_0x54ccf2;let _0x355eda='',_0x32415e={};if(this[_0x207523(0x61e)][_0x207523(0x291)]()){const _0x3caf1b=cancelBatchJobParametersToVertex(this[_0x207523(0x61e)],_0xf93778);_0x355eda=formatMap('batchPredictionJobs/{name}:cancel',_0x3caf1b['_url']),_0x32415e=_0x3caf1b['_query'],delete _0x3caf1b[_0x207523(0x2c1)],delete _0x3caf1b[_0x207523(0x4cd)],await this[_0x207523(0x61e)][_0x207523(0x560)]({'path':_0x355eda,'queryParams':_0x32415e,'body':JSON['stringify'](_0x3caf1b),'httpMethod':_0x207523(0x1e6),'httpOptions':(_0x867cbb=_0xf93778[_0x207523(0x66c)])===null||_0x867cbb===void 0x0?void 0x0:_0x867cbb[_0x207523(0x328)],'abortSignal':(_0x6305bd=_0xf93778[_0x207523(0x66c)])===null||_0x6305bd===void 0x0?void 0x0:_0x6305bd[_0x207523(0x643)]});}else{const _0xd15522=cancelBatchJobParametersToMldev(this[_0x207523(0x61e)],_0xf93778);_0x355eda=formatMap(_0x207523(0x214),_0xd15522[_0x207523(0x2c1)]),_0x32415e=_0xd15522[_0x207523(0x4cd)],delete _0xd15522[_0x207523(0x2c1)],delete _0xd15522['_query'],await this[_0x207523(0x61e)][_0x207523(0x560)]({'path':_0x355eda,'queryParams':_0x32415e,'body':JSON['stringify'](_0xd15522),'httpMethod':_0x207523(0x1e6),'httpOptions':(_0x26ef8a=_0xf93778[_0x207523(0x66c)])===null||_0x26ef8a===void 0x0?void 0x0:_0x26ef8a[_0x207523(0x328)],'abortSignal':(_0x54ccf2=_0xf93778['config'])===null||_0x54ccf2===void 0x0?void 0x0:_0x54ccf2['abortSignal']});}}async[a6_0x51c1ef(0x542)](_0x4f6c0c){const _0x47b71c=a6_0x51c1ef;var _0x5acefb,_0x391083,_0x54cf87,_0x1d2cc9;let _0x3410c0,_0x483839='',_0x45e7fd={};if(this['apiClient'][_0x47b71c(0x291)]()){const _0x4bf94d=listBatchJobsParametersToVertex(_0x4f6c0c);return _0x483839=formatMap(_0x47b71c(0x236),_0x4bf94d[_0x47b71c(0x2c1)]),_0x45e7fd=_0x4bf94d[_0x47b71c(0x4cd)],delete _0x4bf94d[_0x47b71c(0x2c1)],delete _0x4bf94d[_0x47b71c(0x4cd)],_0x3410c0=this[_0x47b71c(0x61e)]['request']({'path':_0x483839,'queryParams':_0x45e7fd,'body':JSON['stringify'](_0x4bf94d),'httpMethod':_0x47b71c(0x1fa),'httpOptions':(_0x5acefb=_0x4f6c0c[_0x47b71c(0x66c)])===null||_0x5acefb===void 0x0?void 0x0:_0x5acefb[_0x47b71c(0x328)],'abortSignal':(_0x391083=_0x4f6c0c[_0x47b71c(0x66c)])===null||_0x391083===void 0x0?void 0x0:_0x391083[_0x47b71c(0x643)]})[_0x47b71c(0x486)](_0x2c5898=>{const _0xda2623=_0x47b71c;return _0x2c5898[_0xda2623(0x31b)]()[_0xda2623(0x486)](_0x403a82=>{const _0x56908d=_0xda2623,_0x51b3c5=_0x403a82;return _0x51b3c5[_0x56908d(0x344)]={'headers':_0x2c5898[_0x56908d(0x2b9)]},_0x51b3c5;});}),_0x3410c0[_0x47b71c(0x486)](_0x381cae=>{const _0x49aca8=_0x47b71c,_0x4868c1=listBatchJobsResponseFromVertex(_0x381cae),_0x4fe113=new ListBatchJobsResponse();return Object[_0x49aca8(0x5a8)](_0x4fe113,_0x4868c1),_0x4fe113;});}else{const _0x381034=listBatchJobsParametersToMldev(_0x4f6c0c);return _0x483839=formatMap('batches',_0x381034[_0x47b71c(0x2c1)]),_0x45e7fd=_0x381034[_0x47b71c(0x4cd)],delete _0x381034[_0x47b71c(0x2c1)],delete _0x381034['_query'],_0x3410c0=this[_0x47b71c(0x61e)][_0x47b71c(0x560)]({'path':_0x483839,'queryParams':_0x45e7fd,'body':JSON[_0x47b71c(0x183)](_0x381034),'httpMethod':_0x47b71c(0x1fa),'httpOptions':(_0x54cf87=_0x4f6c0c['config'])===null||_0x54cf87===void 0x0?void 0x0:_0x54cf87[_0x47b71c(0x328)],'abortSignal':(_0x1d2cc9=_0x4f6c0c[_0x47b71c(0x66c)])===null||_0x1d2cc9===void 0x0?void 0x0:_0x1d2cc9[_0x47b71c(0x643)]})['then'](_0x1dfb80=>{const _0x3d5011=_0x47b71c;return _0x1dfb80['json']()[_0x3d5011(0x486)](_0x1398b0=>{const _0x27bcd0=_0x3d5011,_0x39de45=_0x1398b0;return _0x39de45[_0x27bcd0(0x344)]={'headers':_0x1dfb80[_0x27bcd0(0x2b9)]},_0x39de45;});}),_0x3410c0[_0x47b71c(0x486)](_0x4a4de5=>{const _0x26ab8d=_0x47b71c,_0x3dee09=listBatchJobsResponseFromMldev(_0x4a4de5),_0x4e2aca=new ListBatchJobsResponse();return Object[_0x26ab8d(0x5a8)](_0x4e2aca,_0x3dee09),_0x4e2aca;});}}async[a6_0x51c1ef(0x422)](_0x1706b8){const _0x5004ff=a6_0x51c1ef;var _0x20b8c8,_0x17d2e4,_0x3e713d,_0x48e83e;let _0x268c8a,_0xe31fd2='',_0x3e5eda={};if(this['apiClient'][_0x5004ff(0x291)]()){const _0x5274fa=deleteBatchJobParametersToVertex(this[_0x5004ff(0x61e)],_0x1706b8);return _0xe31fd2=formatMap(_0x5004ff(0x34a),_0x5274fa[_0x5004ff(0x2c1)]),_0x3e5eda=_0x5274fa['_query'],delete _0x5274fa[_0x5004ff(0x2c1)],delete _0x5274fa[_0x5004ff(0x4cd)],_0x268c8a=this[_0x5004ff(0x61e)][_0x5004ff(0x560)]({'path':_0xe31fd2,'queryParams':_0x3e5eda,'body':JSON[_0x5004ff(0x183)](_0x5274fa),'httpMethod':'DELETE','httpOptions':(_0x20b8c8=_0x1706b8[_0x5004ff(0x66c)])===null||_0x20b8c8===void 0x0?void 0x0:_0x20b8c8['httpOptions'],'abortSignal':(_0x17d2e4=_0x1706b8['config'])===null||_0x17d2e4===void 0x0?void 0x0:_0x17d2e4[_0x5004ff(0x643)]})[_0x5004ff(0x486)](_0x746dc1=>{const _0xfa0b2d=_0x5004ff;return _0x746dc1[_0xfa0b2d(0x31b)]()[_0xfa0b2d(0x486)](_0x36d1e4=>{const _0x24d653=_0xfa0b2d,_0x281e9f=_0x36d1e4;return _0x281e9f[_0x24d653(0x344)]={'headers':_0x746dc1['headers']},_0x281e9f;});}),_0x268c8a[_0x5004ff(0x486)](_0x36df6c=>{const _0x248a0a=deleteResourceJobFromVertex(_0x36df6c);return _0x248a0a;});}else{const _0x8fc821=deleteBatchJobParametersToMldev(this[_0x5004ff(0x61e)],_0x1706b8);return _0xe31fd2=formatMap(_0x5004ff(0x2f2),_0x8fc821[_0x5004ff(0x2c1)]),_0x3e5eda=_0x8fc821[_0x5004ff(0x4cd)],delete _0x8fc821[_0x5004ff(0x2c1)],delete _0x8fc821[_0x5004ff(0x4cd)],_0x268c8a=this[_0x5004ff(0x61e)][_0x5004ff(0x560)]({'path':_0xe31fd2,'queryParams':_0x3e5eda,'body':JSON[_0x5004ff(0x183)](_0x8fc821),'httpMethod':_0x5004ff(0x267),'httpOptions':(_0x3e713d=_0x1706b8[_0x5004ff(0x66c)])===null||_0x3e713d===void 0x0?void 0x0:_0x3e713d[_0x5004ff(0x328)],'abortSignal':(_0x48e83e=_0x1706b8[_0x5004ff(0x66c)])===null||_0x48e83e===void 0x0?void 0x0:_0x48e83e[_0x5004ff(0x643)]})[_0x5004ff(0x486)](_0x289b2d=>{const _0x3e9199=_0x5004ff;return _0x289b2d[_0x3e9199(0x31b)]()[_0x3e9199(0x486)](_0x168a32=>{const _0x37be85=_0x3e9199,_0x4365ca=_0x168a32;return _0x4365ca[_0x37be85(0x344)]={'headers':_0x289b2d['headers']},_0x4365ca;});}),_0x268c8a[_0x5004ff(0x486)](_0x25eb17=>{const _0x9c5ce9=deleteResourceJobFromMldev(_0x25eb17);return _0x9c5ce9;});}}}/**
47
+ * @license
48
+ * Copyright 2025 Google LLC
49
+ * SPDX-License-Identifier: Apache-2.0
50
+ */
51
+ function blobToMldev$3(_0x4e1d49){const _0x144205=a6_0x51c1ef,_0x38c4a3={},_0xbb0fec=getValueByPath(_0x4e1d49,[_0x144205(0x18b)]);_0xbb0fec!=null&&setValueByPath(_0x38c4a3,[_0x144205(0x18b)],_0xbb0fec);if(getValueByPath(_0x4e1d49,[_0x144205(0x419)])!==undefined)throw new Error(_0x144205(0x28e));const _0x2264a0=getValueByPath(_0x4e1d49,[_0x144205(0x1ac)]);return _0x2264a0!=null&&setValueByPath(_0x38c4a3,[_0x144205(0x1ac)],_0x2264a0),_0x38c4a3;}function contentToMldev$3(_0x6a3830){const _0x255b4b=a6_0x51c1ef,_0x55bbc5={},_0x27d6fe=getValueByPath(_0x6a3830,['parts']);if(_0x27d6fe!=null){let _0x5229fc=_0x27d6fe;Array[_0x255b4b(0x49d)](_0x5229fc)&&(_0x5229fc=_0x5229fc['map'](_0x60ed95=>{return partToMldev$3(_0x60ed95);})),setValueByPath(_0x55bbc5,[_0x255b4b(0x19f)],_0x5229fc);}const _0x518d27=getValueByPath(_0x6a3830,['role']);return _0x518d27!=null&&setValueByPath(_0x55bbc5,[_0x255b4b(0x407)],_0x518d27),_0x55bbc5;}function createCachedContentConfigToMldev(_0x21b6b6,_0x14df29){const _0x10f8fd=a6_0x51c1ef,_0x5cdbeb={},_0x339841=getValueByPath(_0x21b6b6,[_0x10f8fd(0x1d8)]);_0x14df29!==undefined&&_0x339841!=null&&setValueByPath(_0x14df29,['ttl'],_0x339841);const _0x44a10c=getValueByPath(_0x21b6b6,[_0x10f8fd(0x5fe)]);_0x14df29!==undefined&&_0x44a10c!=null&&setValueByPath(_0x14df29,[_0x10f8fd(0x5fe)],_0x44a10c);const _0x1a4950=getValueByPath(_0x21b6b6,['displayName']);_0x14df29!==undefined&&_0x1a4950!=null&&setValueByPath(_0x14df29,[_0x10f8fd(0x419)],_0x1a4950);const _0x11de0b=getValueByPath(_0x21b6b6,[_0x10f8fd(0x5b9)]);if(_0x14df29!==undefined&&_0x11de0b!=null){let _0x3dcd5b=tContents(_0x11de0b);Array[_0x10f8fd(0x49d)](_0x3dcd5b)&&(_0x3dcd5b=_0x3dcd5b[_0x10f8fd(0x68f)](_0x2eae4c=>{return contentToMldev$3(_0x2eae4c);})),setValueByPath(_0x14df29,[_0x10f8fd(0x5b9)],_0x3dcd5b);}const _0x4962ca=getValueByPath(_0x21b6b6,[_0x10f8fd(0x22d)]);_0x14df29!==undefined&&_0x4962ca!=null&&setValueByPath(_0x14df29,[_0x10f8fd(0x22d)],contentToMldev$3(tContent(_0x4962ca)));const _0x5d366e=getValueByPath(_0x21b6b6,['tools']);if(_0x14df29!==undefined&&_0x5d366e!=null){let _0x128aff=_0x5d366e;Array[_0x10f8fd(0x49d)](_0x128aff)&&(_0x128aff=_0x128aff[_0x10f8fd(0x68f)](_0x47582f=>{return toolToMldev$3(_0x47582f);})),setValueByPath(_0x14df29,[_0x10f8fd(0x269)],_0x128aff);}const _0x5a0068=getValueByPath(_0x21b6b6,[_0x10f8fd(0x334)]);_0x14df29!==undefined&&_0x5a0068!=null&&setValueByPath(_0x14df29,[_0x10f8fd(0x334)],toolConfigToMldev$1(_0x5a0068));if(getValueByPath(_0x21b6b6,[_0x10f8fd(0x650)])!==undefined)throw new Error(_0x10f8fd(0x616));return _0x5cdbeb;}function createCachedContentConfigToVertex(_0x18a1a7,_0x222166){const _0x1d64de=a6_0x51c1ef,_0x22b698={},_0x3229a8=getValueByPath(_0x18a1a7,[_0x1d64de(0x1d8)]);_0x222166!==undefined&&_0x3229a8!=null&&setValueByPath(_0x222166,['ttl'],_0x3229a8);const _0x3b53b1=getValueByPath(_0x18a1a7,[_0x1d64de(0x5fe)]);_0x222166!==undefined&&_0x3b53b1!=null&&setValueByPath(_0x222166,[_0x1d64de(0x5fe)],_0x3b53b1);const _0x4d0e1f=getValueByPath(_0x18a1a7,['displayName']);_0x222166!==undefined&&_0x4d0e1f!=null&&setValueByPath(_0x222166,[_0x1d64de(0x419)],_0x4d0e1f);const _0x937372=getValueByPath(_0x18a1a7,[_0x1d64de(0x5b9)]);if(_0x222166!==undefined&&_0x937372!=null){let _0x1c09a3=tContents(_0x937372);Array['isArray'](_0x1c09a3)&&(_0x1c09a3=_0x1c09a3[_0x1d64de(0x68f)](_0x5d7047=>{return _0x5d7047;})),setValueByPath(_0x222166,[_0x1d64de(0x5b9)],_0x1c09a3);}const _0x148fd1=getValueByPath(_0x18a1a7,[_0x1d64de(0x22d)]);_0x222166!==undefined&&_0x148fd1!=null&&setValueByPath(_0x222166,[_0x1d64de(0x22d)],tContent(_0x148fd1));const _0x471d5c=getValueByPath(_0x18a1a7,[_0x1d64de(0x269)]);if(_0x222166!==undefined&&_0x471d5c!=null){let _0x42db10=_0x471d5c;Array[_0x1d64de(0x49d)](_0x42db10)&&(_0x42db10=_0x42db10[_0x1d64de(0x68f)](_0x3c6884=>{return toolToVertex$2(_0x3c6884);})),setValueByPath(_0x222166,[_0x1d64de(0x269)],_0x42db10);}const _0x425bca=getValueByPath(_0x18a1a7,['toolConfig']);_0x222166!==undefined&&_0x425bca!=null&&setValueByPath(_0x222166,['toolConfig'],_0x425bca);const _0x29aeef=getValueByPath(_0x18a1a7,['kmsKeyName']);return _0x222166!==undefined&&_0x29aeef!=null&&setValueByPath(_0x222166,[_0x1d64de(0x677),'kmsKeyName'],_0x29aeef),_0x22b698;}function createCachedContentParametersToMldev(_0x1bdedc,_0x5e0874){const _0x17cea3=a6_0x51c1ef,_0x246097={},_0x4d94d9=getValueByPath(_0x5e0874,['model']);_0x4d94d9!=null&&setValueByPath(_0x246097,[_0x17cea3(0x418)],tCachesModel(_0x1bdedc,_0x4d94d9));const _0x403fb2=getValueByPath(_0x5e0874,['config']);return _0x403fb2!=null&&createCachedContentConfigToMldev(_0x403fb2,_0x246097),_0x246097;}function createCachedContentParametersToVertex(_0x16181a,_0x1bb788){const _0x3de497=a6_0x51c1ef,_0x1eeaf9={},_0x5b528f=getValueByPath(_0x1bb788,[_0x3de497(0x418)]);_0x5b528f!=null&&setValueByPath(_0x1eeaf9,[_0x3de497(0x418)],tCachesModel(_0x16181a,_0x5b528f));const _0x3c6b9c=getValueByPath(_0x1bb788,[_0x3de497(0x66c)]);return _0x3c6b9c!=null&&createCachedContentConfigToVertex(_0x3c6b9c,_0x1eeaf9),_0x1eeaf9;}function deleteCachedContentParametersToMldev(_0x21db6c,_0x2834b7){const _0x76a39f=a6_0x51c1ef,_0x5af9de={},_0x3e89c5=getValueByPath(_0x2834b7,[_0x76a39f(0x558)]);return _0x3e89c5!=null&&setValueByPath(_0x5af9de,['_url','name'],tCachedContentName(_0x21db6c,_0x3e89c5)),_0x5af9de;}function deleteCachedContentParametersToVertex(_0x13f15b,_0x8dfc00){const _0x2f8291=a6_0x51c1ef,_0x12ad64={},_0x133ecc=getValueByPath(_0x8dfc00,[_0x2f8291(0x558)]);return _0x133ecc!=null&&setValueByPath(_0x12ad64,[_0x2f8291(0x2c1),'name'],tCachedContentName(_0x13f15b,_0x133ecc)),_0x12ad64;}function deleteCachedContentResponseFromMldev(_0x39ff0a){const _0x3a4b8a=a6_0x51c1ef,_0x16c23e={},_0x12bcc8=getValueByPath(_0x39ff0a,['sdkHttpResponse']);return _0x12bcc8!=null&&setValueByPath(_0x16c23e,[_0x3a4b8a(0x344)],_0x12bcc8),_0x16c23e;}function deleteCachedContentResponseFromVertex(_0x25b0c4){const _0x10a3dd=a6_0x51c1ef,_0x1751ea={},_0x25de6d=getValueByPath(_0x25b0c4,[_0x10a3dd(0x344)]);return _0x25de6d!=null&&setValueByPath(_0x1751ea,[_0x10a3dd(0x344)],_0x25de6d),_0x1751ea;}function fileDataToMldev$3(_0x474941){const _0xe517c5=a6_0x51c1ef,_0x1e7c6e={};if(getValueByPath(_0x474941,['displayName'])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x24835f=getValueByPath(_0x474941,[_0xe517c5(0x316)]);_0x24835f!=null&&setValueByPath(_0x1e7c6e,['fileUri'],_0x24835f);const _0x27d116=getValueByPath(_0x474941,[_0xe517c5(0x1ac)]);return _0x27d116!=null&&setValueByPath(_0x1e7c6e,['mimeType'],_0x27d116),_0x1e7c6e;}function functionCallToMldev$3(_0x6d5170){const _0x1ba35e=a6_0x51c1ef,_0x57bec1={},_0x5a84ec=getValueByPath(_0x6d5170,['id']);_0x5a84ec!=null&&setValueByPath(_0x57bec1,['id'],_0x5a84ec);const _0x4d1318=getValueByPath(_0x6d5170,['args']);_0x4d1318!=null&&setValueByPath(_0x57bec1,['args'],_0x4d1318);const _0x274741=getValueByPath(_0x6d5170,[_0x1ba35e(0x558)]);_0x274741!=null&&setValueByPath(_0x57bec1,[_0x1ba35e(0x558)],_0x274741);if(getValueByPath(_0x6d5170,[_0x1ba35e(0x381)])!==undefined)throw new Error(_0x1ba35e(0x221));if(getValueByPath(_0x6d5170,['willContinue'])!==undefined)throw new Error(_0x1ba35e(0x3fd));return _0x57bec1;}function functionCallingConfigToMldev$1(_0x55b694){const _0x4a7af1=a6_0x51c1ef,_0x5c5f24={},_0x42b23d=getValueByPath(_0x55b694,['allowedFunctionNames']);_0x42b23d!=null&&setValueByPath(_0x5c5f24,[_0x4a7af1(0x30f)],_0x42b23d);const _0x26a930=getValueByPath(_0x55b694,[_0x4a7af1(0x1c2)]);_0x26a930!=null&&setValueByPath(_0x5c5f24,[_0x4a7af1(0x1c2)],_0x26a930);if(getValueByPath(_0x55b694,[_0x4a7af1(0x647)])!==undefined)throw new Error(_0x4a7af1(0x3ba));return _0x5c5f24;}function functionDeclarationToVertex$2(_0x4c558b){const _0x4f7c02=a6_0x51c1ef,_0xaf5a58={},_0xd0a8b8=getValueByPath(_0x4c558b,[_0x4f7c02(0x464)]);_0xd0a8b8!=null&&setValueByPath(_0xaf5a58,['description'],_0xd0a8b8);const _0x4866b4=getValueByPath(_0x4c558b,['name']);_0x4866b4!=null&&setValueByPath(_0xaf5a58,['name'],_0x4866b4);const _0x3aff9f=getValueByPath(_0x4c558b,[_0x4f7c02(0x59e)]);_0x3aff9f!=null&&setValueByPath(_0xaf5a58,[_0x4f7c02(0x59e)],_0x3aff9f);const _0x5472f8=getValueByPath(_0x4c558b,[_0x4f7c02(0x16b)]);_0x5472f8!=null&&setValueByPath(_0xaf5a58,[_0x4f7c02(0x16b)],_0x5472f8);const _0xad74b6=getValueByPath(_0x4c558b,[_0x4f7c02(0x603)]);_0xad74b6!=null&&setValueByPath(_0xaf5a58,[_0x4f7c02(0x603)],_0xad74b6);const _0x51d290=getValueByPath(_0x4c558b,[_0x4f7c02(0x2d5)]);_0x51d290!=null&&setValueByPath(_0xaf5a58,[_0x4f7c02(0x2d5)],_0x51d290);if(getValueByPath(_0x4c558b,[_0x4f7c02(0x44a)])!==undefined)throw new Error(_0x4f7c02(0x5a2));return _0xaf5a58;}function getCachedContentParametersToMldev(_0xad9b72,_0x108598){const _0x12a4e8=a6_0x51c1ef,_0x3d1660={},_0x8dd440=getValueByPath(_0x108598,[_0x12a4e8(0x558)]);return _0x8dd440!=null&&setValueByPath(_0x3d1660,[_0x12a4e8(0x2c1),_0x12a4e8(0x558)],tCachedContentName(_0xad9b72,_0x8dd440)),_0x3d1660;}function getCachedContentParametersToVertex(_0x23d28d,_0x22b323){const _0x4fbf27=a6_0x51c1ef,_0x498262={},_0x13aec3=getValueByPath(_0x22b323,['name']);return _0x13aec3!=null&&setValueByPath(_0x498262,[_0x4fbf27(0x2c1),_0x4fbf27(0x558)],tCachedContentName(_0x23d28d,_0x13aec3)),_0x498262;}function googleMapsToMldev$3(_0x46179a){const _0x3f332d=a6_0x51c1ef,_0x280fc3={};if(getValueByPath(_0x46179a,[_0x3f332d(0x3dc)])!==undefined)throw new Error(_0x3f332d(0x1ba));const _0x26532a=getValueByPath(_0x46179a,[_0x3f332d(0x3ee)]);return _0x26532a!=null&&setValueByPath(_0x280fc3,[_0x3f332d(0x3ee)],_0x26532a),_0x280fc3;}function googleSearchToMldev$3(_0x194d58){const _0x1dad57=a6_0x51c1ef,_0x5b5d9d={};if(getValueByPath(_0x194d58,[_0x1dad57(0x1b7)])!==undefined)throw new Error(_0x1dad57(0x3b6));if(getValueByPath(_0x194d58,[_0x1dad57(0x16f)])!==undefined)throw new Error(_0x1dad57(0x383));const _0x1025ff=getValueByPath(_0x194d58,[_0x1dad57(0x3fb)]);return _0x1025ff!=null&&setValueByPath(_0x5b5d9d,[_0x1dad57(0x3fb)],_0x1025ff),_0x5b5d9d;}function listCachedContentsConfigToMldev(_0x4a0e6f,_0x3a4cb6){const _0xe9581=a6_0x51c1ef,_0x1845b5={},_0x3e0778=getValueByPath(_0x4a0e6f,[_0xe9581(0x400)]);_0x3a4cb6!==undefined&&_0x3e0778!=null&&setValueByPath(_0x3a4cb6,[_0xe9581(0x4cd),'pageSize'],_0x3e0778);const _0x1bf4a8=getValueByPath(_0x4a0e6f,[_0xe9581(0x2dd)]);return _0x3a4cb6!==undefined&&_0x1bf4a8!=null&&setValueByPath(_0x3a4cb6,['_query',_0xe9581(0x2dd)],_0x1bf4a8),_0x1845b5;}function listCachedContentsConfigToVertex(_0x579b5c,_0x54a30c){const _0x3db5a0=a6_0x51c1ef,_0x4414aa={},_0x391dcc=getValueByPath(_0x579b5c,[_0x3db5a0(0x400)]);_0x54a30c!==undefined&&_0x391dcc!=null&&setValueByPath(_0x54a30c,[_0x3db5a0(0x4cd),_0x3db5a0(0x400)],_0x391dcc);const _0x560142=getValueByPath(_0x579b5c,[_0x3db5a0(0x2dd)]);return _0x54a30c!==undefined&&_0x560142!=null&&setValueByPath(_0x54a30c,[_0x3db5a0(0x4cd),_0x3db5a0(0x2dd)],_0x560142),_0x4414aa;}function listCachedContentsParametersToMldev(_0x4e2155){const _0x3320eb=a6_0x51c1ef,_0x4f4aaa={},_0x20fcf9=getValueByPath(_0x4e2155,[_0x3320eb(0x66c)]);return _0x20fcf9!=null&&listCachedContentsConfigToMldev(_0x20fcf9,_0x4f4aaa),_0x4f4aaa;}function listCachedContentsParametersToVertex(_0x50503d){const _0x2f2515=a6_0x51c1ef,_0x5cbb93={},_0x44c5dd=getValueByPath(_0x50503d,[_0x2f2515(0x66c)]);return _0x44c5dd!=null&&listCachedContentsConfigToVertex(_0x44c5dd,_0x5cbb93),_0x5cbb93;}function listCachedContentsResponseFromMldev(_0x27936a){const _0x18cd94=a6_0x51c1ef,_0x5ea4a1={},_0x537dfc=getValueByPath(_0x27936a,[_0x18cd94(0x344)]);_0x537dfc!=null&&setValueByPath(_0x5ea4a1,[_0x18cd94(0x344)],_0x537dfc);const _0x15e426=getValueByPath(_0x27936a,[_0x18cd94(0x17a)]);_0x15e426!=null&&setValueByPath(_0x5ea4a1,[_0x18cd94(0x17a)],_0x15e426);const _0x2b1e4e=getValueByPath(_0x27936a,[_0x18cd94(0x1da)]);if(_0x2b1e4e!=null){let _0x181669=_0x2b1e4e;Array[_0x18cd94(0x49d)](_0x181669)&&(_0x181669=_0x181669[_0x18cd94(0x68f)](_0x5d3eb2=>{return _0x5d3eb2;})),setValueByPath(_0x5ea4a1,['cachedContents'],_0x181669);}return _0x5ea4a1;}function listCachedContentsResponseFromVertex(_0x5672f0){const _0x4b3b10=a6_0x51c1ef,_0x70ac37={},_0x3662e3=getValueByPath(_0x5672f0,['sdkHttpResponse']);_0x3662e3!=null&&setValueByPath(_0x70ac37,[_0x4b3b10(0x344)],_0x3662e3);const _0x55fb66=getValueByPath(_0x5672f0,[_0x4b3b10(0x17a)]);_0x55fb66!=null&&setValueByPath(_0x70ac37,[_0x4b3b10(0x17a)],_0x55fb66);const _0x82035c=getValueByPath(_0x5672f0,[_0x4b3b10(0x1da)]);if(_0x82035c!=null){let _0x38509c=_0x82035c;Array[_0x4b3b10(0x49d)](_0x38509c)&&(_0x38509c=_0x38509c['map'](_0x276e62=>{return _0x276e62;})),setValueByPath(_0x70ac37,[_0x4b3b10(0x1da)],_0x38509c);}return _0x70ac37;}function partToMldev$3(_0x5cbe12){const _0x11591e=a6_0x51c1ef,_0x2ab951={},_0x197075=getValueByPath(_0x5cbe12,[_0x11591e(0x615)]);_0x197075!=null&&setValueByPath(_0x2ab951,['mediaResolution'],_0x197075);const _0x38fe51=getValueByPath(_0x5cbe12,['codeExecutionResult']);_0x38fe51!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x2c0)],_0x38fe51);const _0x53775=getValueByPath(_0x5cbe12,[_0x11591e(0x5df)]);_0x53775!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x5df)],_0x53775);const _0x5dd151=getValueByPath(_0x5cbe12,[_0x11591e(0x24e)]);_0x5dd151!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x24e)],fileDataToMldev$3(_0x5dd151));const _0x20652f=getValueByPath(_0x5cbe12,[_0x11591e(0x2cc)]);_0x20652f!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x2cc)],functionCallToMldev$3(_0x20652f));const _0x179bf1=getValueByPath(_0x5cbe12,[_0x11591e(0x2fa)]);_0x179bf1!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x2fa)],_0x179bf1);const _0x4e035a=getValueByPath(_0x5cbe12,[_0x11591e(0x4b0)]);_0x4e035a!=null&&setValueByPath(_0x2ab951,['inlineData'],blobToMldev$3(_0x4e035a));const _0x2cd051=getValueByPath(_0x5cbe12,['text']);_0x2cd051!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x278)],_0x2cd051);const _0x3b6735=getValueByPath(_0x5cbe12,[_0x11591e(0x29e)]);_0x3b6735!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x29e)],_0x3b6735);const _0x5e4ac5=getValueByPath(_0x5cbe12,[_0x11591e(0x4f0)]);_0x5e4ac5!=null&&setValueByPath(_0x2ab951,[_0x11591e(0x4f0)],_0x5e4ac5);const _0x41d2cf=getValueByPath(_0x5cbe12,[_0x11591e(0x2e8)]);return _0x41d2cf!=null&&setValueByPath(_0x2ab951,['videoMetadata'],_0x41d2cf),_0x2ab951;}function toolConfigToMldev$1(_0x4739c9){const _0x170d5e=a6_0x51c1ef,_0x46ae2c={},_0x4e9c44=getValueByPath(_0x4739c9,[_0x170d5e(0x3bc)]);_0x4e9c44!=null&&setValueByPath(_0x46ae2c,['retrievalConfig'],_0x4e9c44);const _0x4b0402=getValueByPath(_0x4739c9,[_0x170d5e(0x429)]);return _0x4b0402!=null&&setValueByPath(_0x46ae2c,[_0x170d5e(0x429)],functionCallingConfigToMldev$1(_0x4b0402)),_0x46ae2c;}function toolToMldev$3(_0x3e6071){const _0x5a2b52=a6_0x51c1ef,_0x1cb332={};if(getValueByPath(_0x3e6071,[_0x5a2b52(0x3ec)])!==undefined)throw new Error(_0x5a2b52(0x390));const _0x3ac3b7=getValueByPath(_0x3e6071,['computerUse']);_0x3ac3b7!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x41e)],_0x3ac3b7);const _0x230972=getValueByPath(_0x3e6071,[_0x5a2b52(0x403)]);_0x230972!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x403)],_0x230972);const _0x15a4cb=getValueByPath(_0x3e6071,['codeExecution']);_0x15a4cb!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x230)],_0x15a4cb);if(getValueByPath(_0x3e6071,[_0x5a2b52(0x49c)])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x5b524d=getValueByPath(_0x3e6071,['functionDeclarations']);if(_0x5b524d!=null){let _0x17b7f1=_0x5b524d;Array['isArray'](_0x17b7f1)&&(_0x17b7f1=_0x17b7f1[_0x5a2b52(0x68f)](_0x41c034=>{return _0x41c034;})),setValueByPath(_0x1cb332,['functionDeclarations'],_0x17b7f1);}const _0x221e61=getValueByPath(_0x3e6071,[_0x5a2b52(0x38a)]);_0x221e61!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x38a)],googleMapsToMldev$3(_0x221e61));const _0x21ecfd=getValueByPath(_0x3e6071,[_0x5a2b52(0x618)]);_0x21ecfd!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x618)],googleSearchToMldev$3(_0x21ecfd));const _0x35d30e=getValueByPath(_0x3e6071,['googleSearchRetrieval']);_0x35d30e!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x698)],_0x35d30e);const _0x66fea2=getValueByPath(_0x3e6071,[_0x5a2b52(0x4c9)]);return _0x66fea2!=null&&setValueByPath(_0x1cb332,[_0x5a2b52(0x4c9)],_0x66fea2),_0x1cb332;}function toolToVertex$2(_0x24fb6b){const _0xa5cb74=a6_0x51c1ef,_0x40615f={},_0x3eca78=getValueByPath(_0x24fb6b,[_0xa5cb74(0x3ec)]);_0x3eca78!=null&&setValueByPath(_0x40615f,['retrieval'],_0x3eca78);const _0x37c83d=getValueByPath(_0x24fb6b,['computerUse']);_0x37c83d!=null&&setValueByPath(_0x40615f,[_0xa5cb74(0x41e)],_0x37c83d);if(getValueByPath(_0x24fb6b,[_0xa5cb74(0x403)])!==undefined)throw new Error(_0xa5cb74(0x1e1));const _0x5ef8fc=getValueByPath(_0x24fb6b,[_0xa5cb74(0x230)]);_0x5ef8fc!=null&&setValueByPath(_0x40615f,[_0xa5cb74(0x230)],_0x5ef8fc);const _0x1763d4=getValueByPath(_0x24fb6b,[_0xa5cb74(0x49c)]);_0x1763d4!=null&&setValueByPath(_0x40615f,['enterpriseWebSearch'],_0x1763d4);const _0x4210b5=getValueByPath(_0x24fb6b,[_0xa5cb74(0x63b)]);if(_0x4210b5!=null){let _0x171652=_0x4210b5;Array[_0xa5cb74(0x49d)](_0x171652)&&(_0x171652=_0x171652[_0xa5cb74(0x68f)](_0x45dff2=>{return functionDeclarationToVertex$2(_0x45dff2);})),setValueByPath(_0x40615f,[_0xa5cb74(0x63b)],_0x171652);}const _0x137526=getValueByPath(_0x24fb6b,[_0xa5cb74(0x38a)]);_0x137526!=null&&setValueByPath(_0x40615f,[_0xa5cb74(0x38a)],_0x137526);const _0x22a891=getValueByPath(_0x24fb6b,[_0xa5cb74(0x618)]);_0x22a891!=null&&setValueByPath(_0x40615f,[_0xa5cb74(0x618)],_0x22a891);const _0x360478=getValueByPath(_0x24fb6b,['googleSearchRetrieval']);_0x360478!=null&&setValueByPath(_0x40615f,[_0xa5cb74(0x698)],_0x360478);const _0x1e9bf8=getValueByPath(_0x24fb6b,['urlContext']);return _0x1e9bf8!=null&&setValueByPath(_0x40615f,[_0xa5cb74(0x4c9)],_0x1e9bf8),_0x40615f;}function updateCachedContentConfigToMldev(_0xad6a52,_0x1eb26a){const _0x521768=a6_0x51c1ef,_0x3e8441={},_0x3518af=getValueByPath(_0xad6a52,[_0x521768(0x1d8)]);_0x1eb26a!==undefined&&_0x3518af!=null&&setValueByPath(_0x1eb26a,['ttl'],_0x3518af);const _0x1536a2=getValueByPath(_0xad6a52,[_0x521768(0x5fe)]);return _0x1eb26a!==undefined&&_0x1536a2!=null&&setValueByPath(_0x1eb26a,[_0x521768(0x5fe)],_0x1536a2),_0x3e8441;}function updateCachedContentConfigToVertex(_0x95cafb,_0x3007ef){const _0x33bf2f=a6_0x51c1ef,_0x48ded8={},_0x8ad604=getValueByPath(_0x95cafb,[_0x33bf2f(0x1d8)]);_0x3007ef!==undefined&&_0x8ad604!=null&&setValueByPath(_0x3007ef,[_0x33bf2f(0x1d8)],_0x8ad604);const _0xbfc665=getValueByPath(_0x95cafb,[_0x33bf2f(0x5fe)]);return _0x3007ef!==undefined&&_0xbfc665!=null&&setValueByPath(_0x3007ef,[_0x33bf2f(0x5fe)],_0xbfc665),_0x48ded8;}function updateCachedContentParametersToMldev(_0xf980e0,_0x4d6059){const _0x34545c=a6_0x51c1ef,_0x2d39ef={},_0x2142ee=getValueByPath(_0x4d6059,['name']);_0x2142ee!=null&&setValueByPath(_0x2d39ef,[_0x34545c(0x2c1),_0x34545c(0x558)],tCachedContentName(_0xf980e0,_0x2142ee));const _0x5750dc=getValueByPath(_0x4d6059,[_0x34545c(0x66c)]);return _0x5750dc!=null&&updateCachedContentConfigToMldev(_0x5750dc,_0x2d39ef),_0x2d39ef;}function updateCachedContentParametersToVertex(_0x561a23,_0x5c1391){const _0x1e1c90=a6_0x51c1ef,_0x3a0c0f={},_0x224a65=getValueByPath(_0x5c1391,[_0x1e1c90(0x558)]);_0x224a65!=null&&setValueByPath(_0x3a0c0f,[_0x1e1c90(0x2c1),_0x1e1c90(0x558)],tCachedContentName(_0x561a23,_0x224a65));const _0x1b4394=getValueByPath(_0x5c1391,['config']);return _0x1b4394!=null&&updateCachedContentConfigToVertex(_0x1b4394,_0x3a0c0f),_0x3a0c0f;}/**
52
+ * @license
53
+ * Copyright 2025 Google LLC
54
+ * SPDX-License-Identifier: Apache-2.0
55
+ */
56
+ class Caches extends BaseModule{constructor(_0x1ac90c){const _0x14f7d4=a6_0x51c1ef;super(),this['apiClient']=_0x1ac90c,this[_0x14f7d4(0x644)]=async(_0x16f8b1={})=>{const _0x29ea1b=_0x14f7d4;return new Pager(PagedItem[_0x29ea1b(0x4f7)],_0x68dfa1=>this['listInternal'](_0x68dfa1),await this[_0x29ea1b(0x542)](_0x16f8b1),_0x16f8b1);};}async['create'](_0x517818){const _0x5a20bd=a6_0x51c1ef;var _0x4fd0b2,_0x151b9d,_0x4dc3fa,_0x1f6f27;let _0x2a1f67,_0x2ddcee='',_0x1b45c5={};if(this[_0x5a20bd(0x61e)][_0x5a20bd(0x291)]()){const _0x5037ce=createCachedContentParametersToVertex(this[_0x5a20bd(0x61e)],_0x517818);return _0x2ddcee=formatMap(_0x5a20bd(0x1da),_0x5037ce[_0x5a20bd(0x2c1)]),_0x1b45c5=_0x5037ce[_0x5a20bd(0x4cd)],delete _0x5037ce[_0x5a20bd(0x2c1)],delete _0x5037ce[_0x5a20bd(0x4cd)],_0x2a1f67=this[_0x5a20bd(0x61e)][_0x5a20bd(0x560)]({'path':_0x2ddcee,'queryParams':_0x1b45c5,'body':JSON[_0x5a20bd(0x183)](_0x5037ce),'httpMethod':_0x5a20bd(0x1e6),'httpOptions':(_0x4fd0b2=_0x517818[_0x5a20bd(0x66c)])===null||_0x4fd0b2===void 0x0?void 0x0:_0x4fd0b2[_0x5a20bd(0x328)],'abortSignal':(_0x151b9d=_0x517818[_0x5a20bd(0x66c)])===null||_0x151b9d===void 0x0?void 0x0:_0x151b9d[_0x5a20bd(0x643)]})[_0x5a20bd(0x486)](_0x16dae0=>{const _0x3d3bc5=_0x5a20bd;return _0x16dae0[_0x3d3bc5(0x31b)]();}),_0x2a1f67[_0x5a20bd(0x486)](_0x2d2636=>{return _0x2d2636;});}else{const _0x56cf19=createCachedContentParametersToMldev(this[_0x5a20bd(0x61e)],_0x517818);return _0x2ddcee=formatMap('cachedContents',_0x56cf19[_0x5a20bd(0x2c1)]),_0x1b45c5=_0x56cf19[_0x5a20bd(0x4cd)],delete _0x56cf19[_0x5a20bd(0x2c1)],delete _0x56cf19[_0x5a20bd(0x4cd)],_0x2a1f67=this['apiClient'][_0x5a20bd(0x560)]({'path':_0x2ddcee,'queryParams':_0x1b45c5,'body':JSON[_0x5a20bd(0x183)](_0x56cf19),'httpMethod':_0x5a20bd(0x1e6),'httpOptions':(_0x4dc3fa=_0x517818[_0x5a20bd(0x66c)])===null||_0x4dc3fa===void 0x0?void 0x0:_0x4dc3fa[_0x5a20bd(0x328)],'abortSignal':(_0x1f6f27=_0x517818['config'])===null||_0x1f6f27===void 0x0?void 0x0:_0x1f6f27['abortSignal']})[_0x5a20bd(0x486)](_0x12c3e6=>{const _0x527f41=_0x5a20bd;return _0x12c3e6[_0x527f41(0x31b)]();}),_0x2a1f67['then'](_0x2c549c=>{return _0x2c549c;});}}async[a6_0x51c1ef(0x482)](_0x2cb9c2){const _0x571735=a6_0x51c1ef;var _0x3f6750,_0xe48203,_0x4f3282,_0x191741;let _0x1208f0,_0x428629='',_0x1007d0={};if(this[_0x571735(0x61e)][_0x571735(0x291)]()){const _0x3e20fe=getCachedContentParametersToVertex(this['apiClient'],_0x2cb9c2);return _0x428629=formatMap(_0x571735(0x3f1),_0x3e20fe[_0x571735(0x2c1)]),_0x1007d0=_0x3e20fe['_query'],delete _0x3e20fe[_0x571735(0x2c1)],delete _0x3e20fe[_0x571735(0x4cd)],_0x1208f0=this[_0x571735(0x61e)][_0x571735(0x560)]({'path':_0x428629,'queryParams':_0x1007d0,'body':JSON[_0x571735(0x183)](_0x3e20fe),'httpMethod':'GET','httpOptions':(_0x3f6750=_0x2cb9c2[_0x571735(0x66c)])===null||_0x3f6750===void 0x0?void 0x0:_0x3f6750[_0x571735(0x328)],'abortSignal':(_0xe48203=_0x2cb9c2[_0x571735(0x66c)])===null||_0xe48203===void 0x0?void 0x0:_0xe48203['abortSignal']})[_0x571735(0x486)](_0x179e63=>{const _0x2f224f=_0x571735;return _0x179e63[_0x2f224f(0x31b)]();}),_0x1208f0[_0x571735(0x486)](_0x491251=>{return _0x491251;});}else{const _0x192b22=getCachedContentParametersToMldev(this[_0x571735(0x61e)],_0x2cb9c2);return _0x428629=formatMap(_0x571735(0x3f1),_0x192b22[_0x571735(0x2c1)]),_0x1007d0=_0x192b22['_query'],delete _0x192b22['_url'],delete _0x192b22[_0x571735(0x4cd)],_0x1208f0=this[_0x571735(0x61e)][_0x571735(0x560)]({'path':_0x428629,'queryParams':_0x1007d0,'body':JSON['stringify'](_0x192b22),'httpMethod':_0x571735(0x1fa),'httpOptions':(_0x4f3282=_0x2cb9c2[_0x571735(0x66c)])===null||_0x4f3282===void 0x0?void 0x0:_0x4f3282[_0x571735(0x328)],'abortSignal':(_0x191741=_0x2cb9c2[_0x571735(0x66c)])===null||_0x191741===void 0x0?void 0x0:_0x191741[_0x571735(0x643)]})[_0x571735(0x486)](_0x2a16c6=>{const _0x348f86=_0x571735;return _0x2a16c6[_0x348f86(0x31b)]();}),_0x1208f0[_0x571735(0x486)](_0x296c70=>{return _0x296c70;});}}async[a6_0x51c1ef(0x422)](_0x31d5e8){const _0x5abf50=a6_0x51c1ef;var _0x54c9b1,_0x36f168,_0x5503cb,_0x1de946;let _0x5899ab,_0x2383e5='',_0x3700b1={};if(this[_0x5abf50(0x61e)][_0x5abf50(0x291)]()){const _0xebecb3=deleteCachedContentParametersToVertex(this[_0x5abf50(0x61e)],_0x31d5e8);return _0x2383e5=formatMap(_0x5abf50(0x3f1),_0xebecb3[_0x5abf50(0x2c1)]),_0x3700b1=_0xebecb3['_query'],delete _0xebecb3['_url'],delete _0xebecb3[_0x5abf50(0x4cd)],_0x5899ab=this[_0x5abf50(0x61e)]['request']({'path':_0x2383e5,'queryParams':_0x3700b1,'body':JSON[_0x5abf50(0x183)](_0xebecb3),'httpMethod':_0x5abf50(0x267),'httpOptions':(_0x54c9b1=_0x31d5e8['config'])===null||_0x54c9b1===void 0x0?void 0x0:_0x54c9b1[_0x5abf50(0x328)],'abortSignal':(_0x36f168=_0x31d5e8[_0x5abf50(0x66c)])===null||_0x36f168===void 0x0?void 0x0:_0x36f168[_0x5abf50(0x643)]})[_0x5abf50(0x486)](_0x158a67=>{const _0x27de55=_0x5abf50;return _0x158a67[_0x27de55(0x31b)]()[_0x27de55(0x486)](_0x55e5e5=>{const _0x575c16=_0x27de55,_0x79f458=_0x55e5e5;return _0x79f458[_0x575c16(0x344)]={'headers':_0x158a67[_0x575c16(0x2b9)]},_0x79f458;});}),_0x5899ab['then'](_0x3f5bbb=>{const _0x2db860=deleteCachedContentResponseFromVertex(_0x3f5bbb),_0x3208d3=new DeleteCachedContentResponse();return Object['assign'](_0x3208d3,_0x2db860),_0x3208d3;});}else{const _0x4edbbd=deleteCachedContentParametersToMldev(this[_0x5abf50(0x61e)],_0x31d5e8);return _0x2383e5=formatMap('{name}',_0x4edbbd[_0x5abf50(0x2c1)]),_0x3700b1=_0x4edbbd[_0x5abf50(0x4cd)],delete _0x4edbbd[_0x5abf50(0x2c1)],delete _0x4edbbd[_0x5abf50(0x4cd)],_0x5899ab=this[_0x5abf50(0x61e)][_0x5abf50(0x560)]({'path':_0x2383e5,'queryParams':_0x3700b1,'body':JSON[_0x5abf50(0x183)](_0x4edbbd),'httpMethod':_0x5abf50(0x267),'httpOptions':(_0x5503cb=_0x31d5e8[_0x5abf50(0x66c)])===null||_0x5503cb===void 0x0?void 0x0:_0x5503cb[_0x5abf50(0x328)],'abortSignal':(_0x1de946=_0x31d5e8[_0x5abf50(0x66c)])===null||_0x1de946===void 0x0?void 0x0:_0x1de946[_0x5abf50(0x643)]})[_0x5abf50(0x486)](_0xf29655=>{const _0x18aa03=_0x5abf50;return _0xf29655[_0x18aa03(0x31b)]()[_0x18aa03(0x486)](_0x59c5ac=>{const _0x26a99c=_0x18aa03,_0x54021c=_0x59c5ac;return _0x54021c[_0x26a99c(0x344)]={'headers':_0xf29655['headers']},_0x54021c;});}),_0x5899ab[_0x5abf50(0x486)](_0x1436f5=>{const _0x2dd5f1=_0x5abf50,_0x4521e3=deleteCachedContentResponseFromMldev(_0x1436f5),_0x5c2a71=new DeleteCachedContentResponse();return Object[_0x2dd5f1(0x5a8)](_0x5c2a71,_0x4521e3),_0x5c2a71;});}}async[a6_0x51c1ef(0x2d2)](_0x5541e){const _0x334d9d=a6_0x51c1ef;var _0x66fc24,_0x44caa5,_0x3b7096,_0x3820a8;let _0x1424ad,_0x3dc2b8='',_0x13020d={};if(this[_0x334d9d(0x61e)][_0x334d9d(0x291)]()){const _0x36ae9e=updateCachedContentParametersToVertex(this[_0x334d9d(0x61e)],_0x5541e);return _0x3dc2b8=formatMap(_0x334d9d(0x3f1),_0x36ae9e[_0x334d9d(0x2c1)]),_0x13020d=_0x36ae9e[_0x334d9d(0x4cd)],delete _0x36ae9e[_0x334d9d(0x2c1)],delete _0x36ae9e['_query'],_0x1424ad=this[_0x334d9d(0x61e)]['request']({'path':_0x3dc2b8,'queryParams':_0x13020d,'body':JSON[_0x334d9d(0x183)](_0x36ae9e),'httpMethod':_0x334d9d(0x54b),'httpOptions':(_0x66fc24=_0x5541e[_0x334d9d(0x66c)])===null||_0x66fc24===void 0x0?void 0x0:_0x66fc24['httpOptions'],'abortSignal':(_0x44caa5=_0x5541e[_0x334d9d(0x66c)])===null||_0x44caa5===void 0x0?void 0x0:_0x44caa5[_0x334d9d(0x643)]})['then'](_0x2e5997=>{const _0x526ca9=_0x334d9d;return _0x2e5997[_0x526ca9(0x31b)]();}),_0x1424ad[_0x334d9d(0x486)](_0x55a7db=>{return _0x55a7db;});}else{const _0x5bacbc=updateCachedContentParametersToMldev(this[_0x334d9d(0x61e)],_0x5541e);return _0x3dc2b8=formatMap(_0x334d9d(0x3f1),_0x5bacbc[_0x334d9d(0x2c1)]),_0x13020d=_0x5bacbc['_query'],delete _0x5bacbc[_0x334d9d(0x2c1)],delete _0x5bacbc[_0x334d9d(0x4cd)],_0x1424ad=this[_0x334d9d(0x61e)]['request']({'path':_0x3dc2b8,'queryParams':_0x13020d,'body':JSON[_0x334d9d(0x183)](_0x5bacbc),'httpMethod':_0x334d9d(0x54b),'httpOptions':(_0x3b7096=_0x5541e[_0x334d9d(0x66c)])===null||_0x3b7096===void 0x0?void 0x0:_0x3b7096[_0x334d9d(0x328)],'abortSignal':(_0x3820a8=_0x5541e['config'])===null||_0x3820a8===void 0x0?void 0x0:_0x3820a8[_0x334d9d(0x643)]})['then'](_0x116763=>{return _0x116763['json']();}),_0x1424ad[_0x334d9d(0x486)](_0x4f35cb=>{return _0x4f35cb;});}}async[a6_0x51c1ef(0x542)](_0x26554e){const _0x508f95=a6_0x51c1ef;var _0x4df6c8,_0x3a8c38,_0x3781f1,_0x23dce3;let _0x30c89e,_0x5c1199='',_0x3a0974={};if(this[_0x508f95(0x61e)][_0x508f95(0x291)]()){const _0x18a717=listCachedContentsParametersToVertex(_0x26554e);return _0x5c1199=formatMap(_0x508f95(0x1da),_0x18a717['_url']),_0x3a0974=_0x18a717[_0x508f95(0x4cd)],delete _0x18a717[_0x508f95(0x2c1)],delete _0x18a717[_0x508f95(0x4cd)],_0x30c89e=this[_0x508f95(0x61e)][_0x508f95(0x560)]({'path':_0x5c1199,'queryParams':_0x3a0974,'body':JSON[_0x508f95(0x183)](_0x18a717),'httpMethod':'GET','httpOptions':(_0x4df6c8=_0x26554e[_0x508f95(0x66c)])===null||_0x4df6c8===void 0x0?void 0x0:_0x4df6c8[_0x508f95(0x328)],'abortSignal':(_0x3a8c38=_0x26554e[_0x508f95(0x66c)])===null||_0x3a8c38===void 0x0?void 0x0:_0x3a8c38['abortSignal']})[_0x508f95(0x486)](_0x23e0a4=>{const _0x1e52fa=_0x508f95;return _0x23e0a4[_0x1e52fa(0x31b)]()[_0x1e52fa(0x486)](_0x52e6af=>{const _0xdac064=_0x1e52fa,_0x185d89=_0x52e6af;return _0x185d89[_0xdac064(0x344)]={'headers':_0x23e0a4[_0xdac064(0x2b9)]},_0x185d89;});}),_0x30c89e[_0x508f95(0x486)](_0xd945a9=>{const _0x3f8a79=_0x508f95,_0x3aa858=listCachedContentsResponseFromVertex(_0xd945a9),_0x36c29a=new ListCachedContentsResponse();return Object[_0x3f8a79(0x5a8)](_0x36c29a,_0x3aa858),_0x36c29a;});}else{const _0x9293c5=listCachedContentsParametersToMldev(_0x26554e);return _0x5c1199=formatMap(_0x508f95(0x1da),_0x9293c5[_0x508f95(0x2c1)]),_0x3a0974=_0x9293c5[_0x508f95(0x4cd)],delete _0x9293c5[_0x508f95(0x2c1)],delete _0x9293c5[_0x508f95(0x4cd)],_0x30c89e=this[_0x508f95(0x61e)][_0x508f95(0x560)]({'path':_0x5c1199,'queryParams':_0x3a0974,'body':JSON[_0x508f95(0x183)](_0x9293c5),'httpMethod':_0x508f95(0x1fa),'httpOptions':(_0x3781f1=_0x26554e['config'])===null||_0x3781f1===void 0x0?void 0x0:_0x3781f1['httpOptions'],'abortSignal':(_0x23dce3=_0x26554e[_0x508f95(0x66c)])===null||_0x23dce3===void 0x0?void 0x0:_0x23dce3[_0x508f95(0x643)]})['then'](_0x194b27=>{const _0x57420a=_0x508f95;return _0x194b27[_0x57420a(0x31b)]()[_0x57420a(0x486)](_0x1331fe=>{const _0xc42e9c=_0x57420a,_0x3fb185=_0x1331fe;return _0x3fb185['sdkHttpResponse']={'headers':_0x194b27[_0xc42e9c(0x2b9)]},_0x3fb185;});}),_0x30c89e[_0x508f95(0x486)](_0x19b8e9=>{const _0x36528e=_0x508f95,_0x4c22b8=listCachedContentsResponseFromMldev(_0x19b8e9),_0x2409e0=new ListCachedContentsResponse();return Object[_0x36528e(0x5a8)](_0x2409e0,_0x4c22b8),_0x2409e0;});}}}function __rest(_0x2958ab,_0x49fc8b){const _0x1949be=a6_0x51c1ef;var _0x3b4a38={};for(var _0x3878ba in _0x2958ab)if(Object[_0x1949be(0x240)]['hasOwnProperty']['call'](_0x2958ab,_0x3878ba)&&_0x49fc8b[_0x1949be(0x536)](_0x3878ba)<0x0)_0x3b4a38[_0x3878ba]=_0x2958ab[_0x3878ba];if(_0x2958ab!=null&&typeof Object[_0x1949be(0x5e3)]===_0x1949be(0x60e))for(var _0x5b5cd0=0x0,_0x3878ba=Object[_0x1949be(0x5e3)](_0x2958ab);_0x5b5cd0<_0x3878ba[_0x1949be(0x3b7)];_0x5b5cd0++){if(_0x49fc8b[_0x1949be(0x536)](_0x3878ba[_0x5b5cd0])<0x0&&Object['prototype'][_0x1949be(0x49e)][_0x1949be(0x17f)](_0x2958ab,_0x3878ba[_0x5b5cd0]))_0x3b4a38[_0x3878ba[_0x5b5cd0]]=_0x2958ab[_0x3878ba[_0x5b5cd0]];}return _0x3b4a38;}function __values(_0x5b5756){const _0x438e8e=a6_0x51c1ef;var _0x283728=typeof Symbol==='function'&&Symbol[_0x438e8e(0x2df)],_0x3907bc=_0x283728&&_0x5b5756[_0x283728],_0xf05a7f=0x0;if(_0x3907bc)return _0x3907bc[_0x438e8e(0x17f)](_0x5b5756);if(_0x5b5756&&typeof _0x5b5756[_0x438e8e(0x3b7)]===_0x438e8e(0x682))return{'next':function(){const _0x2e65c1=_0x438e8e;if(_0x5b5756&&_0xf05a7f>=_0x5b5756[_0x2e65c1(0x3b7)])_0x5b5756=void 0x0;return{'value':_0x5b5756&&_0x5b5756[_0xf05a7f++],'done':!_0x5b5756};}};throw new TypeError(_0x283728?_0x438e8e(0x459):_0x438e8e(0x5cc));}function __await(_0x18f9dc){return this instanceof __await?(this['v']=_0x18f9dc,this):new __await(_0x18f9dc);}function __asyncGenerator(_0x21c007,_0x56a2dd,_0x28a0a8){const _0x35f450=a6_0x51c1ef;if(!Symbol[_0x35f450(0x648)])throw new TypeError(_0x35f450(0x271));var _0x9596a9=_0x28a0a8[_0x35f450(0x19b)](_0x21c007,_0x56a2dd||[]),_0x358ba4,_0x2baceb=[];return _0x358ba4=Object[_0x35f450(0x3dd)]((typeof AsyncIterator===_0x35f450(0x60e)?AsyncIterator:Object)[_0x35f450(0x240)]),_0x3cfb5f(_0x35f450(0x394)),_0x3cfb5f(_0x35f450(0x3d1)),_0x3cfb5f('return',_0x2ddc22),_0x358ba4[Symbol['asyncIterator']]=function(){return this;},_0x358ba4;function _0x2ddc22(_0x146440){return function(_0x12676b){const _0x2afca6=a6_0x148c;return Promise[_0x2afca6(0x5bf)](_0x12676b)[_0x2afca6(0x486)](_0x146440,_0x3fbe6e);};}function _0x3cfb5f(_0x13faf1,_0x412c5b){if(_0x9596a9[_0x13faf1]){_0x358ba4[_0x13faf1]=function(_0x4fc86e){return new Promise(function(_0x5556a5,_0x28f825){const _0x189b24=a6_0x148c;_0x2baceb[_0x189b24(0x656)]([_0x13faf1,_0x4fc86e,_0x5556a5,_0x28f825])>0x1||_0x7d744f(_0x13faf1,_0x4fc86e);});};if(_0x412c5b)_0x358ba4[_0x13faf1]=_0x412c5b(_0x358ba4[_0x13faf1]);}}function _0x7d744f(_0x10fe93,_0x5e8e87){try{_0x3f8523(_0x9596a9[_0x10fe93](_0x5e8e87));}catch(_0x5daa2e){_0x57c05a(_0x2baceb[0x0][0x3],_0x5daa2e);}}function _0x3f8523(_0x251102){const _0x474ce6=_0x35f450;_0x251102[_0x474ce6(0x296)]instanceof __await?Promise[_0x474ce6(0x5bf)](_0x251102[_0x474ce6(0x296)]['v'])[_0x474ce6(0x486)](_0x2bcd88,_0x3fbe6e):_0x57c05a(_0x2baceb[0x0][0x2],_0x251102);}function _0x2bcd88(_0x5bf503){const _0x12a7b8=_0x35f450;_0x7d744f(_0x12a7b8(0x394),_0x5bf503);}function _0x3fbe6e(_0x2470f7){_0x7d744f('throw',_0x2470f7);}function _0x57c05a(_0xa5520f,_0x123163){const _0x11693e=_0x35f450;if(_0xa5520f(_0x123163),_0x2baceb['shift'](),_0x2baceb[_0x11693e(0x3b7)])_0x7d744f(_0x2baceb[0x0][0x0],_0x2baceb[0x0][0x1]);}}function __asyncValues(_0xc22a5e){const _0x276c0d=a6_0x51c1ef;if(!Symbol[_0x276c0d(0x648)])throw new TypeError(_0x276c0d(0x271));var _0x3df5e8=_0xc22a5e[Symbol[_0x276c0d(0x648)]],_0x6b6ff7;return _0x3df5e8?_0x3df5e8[_0x276c0d(0x17f)](_0xc22a5e):(_0xc22a5e=typeof __values==='function'?__values(_0xc22a5e):_0xc22a5e[Symbol[_0x276c0d(0x2df)]](),_0x6b6ff7={},_0x1fe986(_0x276c0d(0x394)),_0x1fe986(_0x276c0d(0x3d1)),_0x1fe986(_0x276c0d(0x1ab)),_0x6b6ff7[Symbol[_0x276c0d(0x648)]]=function(){return this;},_0x6b6ff7);function _0x1fe986(_0x125647){_0x6b6ff7[_0x125647]=_0xc22a5e[_0x125647]&&function(_0x36aaca){return new Promise(function(_0x20d164,_0x31b66a){const _0xc3f22c=a6_0x148c;_0x36aaca=_0xc22a5e[_0x125647](_0x36aaca),_0x50af61(_0x20d164,_0x31b66a,_0x36aaca[_0xc3f22c(0x2e9)],_0x36aaca['value']);});};}function _0x50af61(_0x31fb8b,_0x6935be,_0x590095,_0x1960a8){const _0x27da4a=_0x276c0d;Promise[_0x27da4a(0x5bf)](_0x1960a8)[_0x27da4a(0x486)](function(_0x15d96e){_0x31fb8b({'value':_0x15d96e,'done':_0x590095});},_0x6935be);}}typeof SuppressedError==='function'?SuppressedError:function(_0x8826dd,_0x2452aa,_0x1044c9){const _0x352649=a6_0x51c1ef;var _0x5a0d6d=new Error(_0x1044c9);return _0x5a0d6d[_0x352649(0x558)]=_0x352649(0x51c),_0x5a0d6d[_0x352649(0x50a)]=_0x8826dd,_0x5a0d6d[_0x352649(0x4a1)]=_0x2452aa,_0x5a0d6d;};/**
57
+ * @license
58
+ * Copyright 2025 Google LLC
59
+ * SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ function isValidResponse(_0x13e37b){const _0x4e0edf=a6_0x51c1ef;var _0x5b05bc;if(_0x13e37b[_0x4e0edf(0x410)]==undefined||_0x13e37b[_0x4e0edf(0x410)]['length']===0x0)return![];const _0x14bfd6=(_0x5b05bc=_0x13e37b['candidates'][0x0])===null||_0x5b05bc===void 0x0?void 0x0:_0x5b05bc[_0x4e0edf(0x479)];if(_0x14bfd6===undefined)return![];return isValidContent(_0x14bfd6);}function isValidContent(_0x56fa6b){const _0x4b3135=a6_0x51c1ef;if(_0x56fa6b[_0x4b3135(0x19f)]===undefined||_0x56fa6b[_0x4b3135(0x19f)][_0x4b3135(0x3b7)]===0x0)return![];for(const _0x13a0bf of _0x56fa6b[_0x4b3135(0x19f)]){if(_0x13a0bf===undefined||Object[_0x4b3135(0x562)](_0x13a0bf)[_0x4b3135(0x3b7)]===0x0)return![];}return!![];}function validateHistory(_0x4013d0){const _0x110c26=a6_0x51c1ef;if(_0x4013d0[_0x110c26(0x3b7)]===0x0)return;for(const _0x1f02ab of _0x4013d0){if(_0x1f02ab['role']!==_0x110c26(0x24f)&&_0x1f02ab[_0x110c26(0x407)]!==_0x110c26(0x418))throw new Error('Role\x20must\x20be\x20user\x20or\x20model,\x20but\x20got\x20'+_0x1f02ab[_0x110c26(0x407)]+'.');}}function extractCuratedHistory(_0x3b6d5e){const _0x41ee8d=a6_0x51c1ef;if(_0x3b6d5e===undefined||_0x3b6d5e[_0x41ee8d(0x3b7)]===0x0)return[];const _0x3de9b2=[],_0x2a07ce=_0x3b6d5e[_0x41ee8d(0x3b7)];let _0x4f072e=0x0;while(_0x4f072e<_0x2a07ce){if(_0x3b6d5e[_0x4f072e][_0x41ee8d(0x407)]===_0x41ee8d(0x24f))_0x3de9b2[_0x41ee8d(0x656)](_0x3b6d5e[_0x4f072e]),_0x4f072e++;else{const _0x4d21a6=[];let _0x433b5b=!![];while(_0x4f072e<_0x2a07ce&&_0x3b6d5e[_0x4f072e][_0x41ee8d(0x407)]===_0x41ee8d(0x418)){_0x4d21a6[_0x41ee8d(0x656)](_0x3b6d5e[_0x4f072e]),_0x433b5b&&!isValidContent(_0x3b6d5e[_0x4f072e])&&(_0x433b5b=![]),_0x4f072e++;}_0x433b5b?_0x3de9b2[_0x41ee8d(0x656)](..._0x4d21a6):_0x3de9b2[_0x41ee8d(0x3a9)]();}}return _0x3de9b2;}class Chats{constructor(_0x24c6d6,_0x4b949f){this['modelsModule']=_0x24c6d6,this['apiClient']=_0x4b949f;}[a6_0x51c1ef(0x3dd)](_0x536c5a){const _0x50c581=a6_0x51c1ef;return new Chat(this[_0x50c581(0x61e)],this[_0x50c581(0x2c4)],_0x536c5a[_0x50c581(0x418)],_0x536c5a[_0x50c581(0x66c)],structuredClone(_0x536c5a['history']));}}class Chat{constructor(_0x3bc2ee,_0x29a822,_0x426de3,_0x460966={},_0x416f0e=[]){const _0x58b85a=a6_0x51c1ef;this[_0x58b85a(0x61e)]=_0x3bc2ee,this[_0x58b85a(0x2c4)]=_0x29a822,this['model']=_0x426de3,this[_0x58b85a(0x66c)]=_0x460966,this['history']=_0x416f0e,this[_0x58b85a(0x4a7)]=Promise[_0x58b85a(0x5bf)](),validateHistory(_0x416f0e);}async['sendMessage'](_0x4847ff){const _0x1db084=a6_0x51c1ef;var _0x4aa27c;await this['sendPromise'];const _0x364199=tContent(_0x4847ff[_0x1db084(0x5a1)]),_0x4b1115=this['modelsModule'][_0x1db084(0x5f5)]({'model':this[_0x1db084(0x418)],'contents':this[_0x1db084(0x679)](!![])[_0x1db084(0x2d1)](_0x364199),'config':(_0x4aa27c=_0x4847ff[_0x1db084(0x66c)])!==null&&_0x4aa27c!==void 0x0?_0x4aa27c:this['config']});return this[_0x1db084(0x4a7)]=((async()=>{const _0x568674=_0x1db084;var _0x4a088f,_0xcedbf3,_0x4af768;const _0x142037=await _0x4b1115,_0x1e0bd8=(_0xcedbf3=(_0x4a088f=_0x142037[_0x568674(0x410)])===null||_0x4a088f===void 0x0?void 0x0:_0x4a088f[0x0])===null||_0xcedbf3===void 0x0?void 0x0:_0xcedbf3[_0x568674(0x479)],_0x4db04f=_0x142037[_0x568674(0x51b)],_0x3ba4ca=this['getHistory'](!![])['length'];let _0x24828e=[];_0x4db04f!=null&&(_0x24828e=(_0x4af768=_0x4db04f[_0x568674(0x15a)](_0x3ba4ca))!==null&&_0x4af768!==void 0x0?_0x4af768:[]);const _0x335417=_0x1e0bd8?[_0x1e0bd8]:[];this['recordHistory'](_0x364199,_0x335417,_0x24828e);return;})()),await this[_0x1db084(0x4a7)]['catch'](()=>{const _0x59e8f1=_0x1db084;this['sendPromise']=Promise[_0x59e8f1(0x5bf)]();}),_0x4b1115;}async['sendMessageStream'](_0x3f7853){const _0x34f28e=a6_0x51c1ef;var _0x2b13ab;await this[_0x34f28e(0x4a7)];const _0x5eca00=tContent(_0x3f7853['message']),_0xb156f6=this['modelsModule'][_0x34f28e(0x5d1)]({'model':this[_0x34f28e(0x418)],'contents':this['getHistory'](!![])['concat'](_0x5eca00),'config':(_0x2b13ab=_0x3f7853[_0x34f28e(0x66c)])!==null&&_0x2b13ab!==void 0x0?_0x2b13ab:this[_0x34f28e(0x66c)]});this[_0x34f28e(0x4a7)]=_0xb156f6['then'](()=>undefined)[_0x34f28e(0x51a)](()=>undefined);const _0x3e0615=await _0xb156f6,_0x1a2651=this[_0x34f28e(0x2b3)](_0x3e0615,_0x5eca00);return _0x1a2651;}['getHistory'](_0x23ff47=![]){const _0x554952=a6_0x51c1ef,_0x5e817a=_0x23ff47?extractCuratedHistory(this['history']):this[_0x554952(0x57e)];return structuredClone(_0x5e817a);}[a6_0x51c1ef(0x2b3)](_0x33bf31,_0x167a32){return __asyncGenerator(this,arguments,function*_0x1be621(){const _0x161690=a6_0x148c;var _0xc5f2cc,_0x12d524,_0x329393,_0x3ad45d,_0x313e3a,_0x538a6a;const _0x177ed6=[];try{for(var _0x50fcd6=!![],_0x353a40=__asyncValues(_0x33bf31),_0x3ea91a;_0x3ea91a=yield __await(_0x353a40[_0x161690(0x394)]()),_0xc5f2cc=_0x3ea91a[_0x161690(0x2e9)],!_0xc5f2cc;_0x50fcd6=!![]){_0x3ad45d=_0x3ea91a[_0x161690(0x296)],_0x50fcd6=![];const _0x440db0=_0x3ad45d;if(isValidResponse(_0x440db0)){const _0x254a44=(_0x538a6a=(_0x313e3a=_0x440db0[_0x161690(0x410)])===null||_0x313e3a===void 0x0?void 0x0:_0x313e3a[0x0])===null||_0x538a6a===void 0x0?void 0x0:_0x538a6a['content'];_0x254a44!==undefined&&_0x177ed6['push'](_0x254a44);}yield yield __await(_0x440db0);}}catch(_0x5e149e){_0x12d524={'error':_0x5e149e};}finally{try{if(!_0x50fcd6&&!_0xc5f2cc&&(_0x329393=_0x353a40[_0x161690(0x1ab)]))yield __await(_0x329393[_0x161690(0x17f)](_0x353a40));}finally{if(_0x12d524)throw _0x12d524[_0x161690(0x50a)];}}this['recordHistory'](_0x167a32,_0x177ed6);});}[a6_0x51c1ef(0x5a7)](_0x4576d8,_0x392925,_0x171784){const _0x1d3d1e=a6_0x51c1ef;let _0x469e00=[];_0x392925[_0x1d3d1e(0x3b7)]>0x0&&_0x392925[_0x1d3d1e(0x43b)](_0x432483=>_0x432483[_0x1d3d1e(0x407)]!==undefined)?_0x469e00=_0x392925:_0x469e00[_0x1d3d1e(0x656)]({'role':_0x1d3d1e(0x418),'parts':[]}),_0x171784&&_0x171784[_0x1d3d1e(0x3b7)]>0x0?this[_0x1d3d1e(0x57e)][_0x1d3d1e(0x656)](...extractCuratedHistory(_0x171784)):this[_0x1d3d1e(0x57e)]['push'](_0x4576d8),this[_0x1d3d1e(0x57e)][_0x1d3d1e(0x656)](..._0x469e00);}}/**
62
+ * @license
63
+ * Copyright 2025 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
66
+ class ApiError extends Error{constructor(_0x51f725){const _0x202942=a6_0x51c1ef;super(_0x51f725[_0x202942(0x5a1)]),this[_0x202942(0x558)]=_0x202942(0x4f5),this[_0x202942(0x544)]=_0x51f725[_0x202942(0x544)],Object[_0x202942(0x59d)](this,ApiError['prototype']);}}/**
67
+ * @license
68
+ * Copyright 2025 Google LLC
69
+ * SPDX-License-Identifier: Apache-2.0
70
+ */
71
+ function createFileParametersToMldev(_0x18abd6){const _0x162693=a6_0x51c1ef,_0x7b676d={},_0xf526ea=getValueByPath(_0x18abd6,['file']);return _0xf526ea!=null&&setValueByPath(_0x7b676d,[_0x162693(0x1c8)],_0xf526ea),_0x7b676d;}function createFileResponseFromMldev(_0x480ff0){const _0x12e41b={},_0x4d888a=getValueByPath(_0x480ff0,['sdkHttpResponse']);return _0x4d888a!=null&&setValueByPath(_0x12e41b,['sdkHttpResponse'],_0x4d888a),_0x12e41b;}function deleteFileParametersToMldev(_0x528f0b){const _0x5bf7d7=a6_0x51c1ef,_0xd5dc51={},_0x176fc1=getValueByPath(_0x528f0b,[_0x5bf7d7(0x558)]);return _0x176fc1!=null&&setValueByPath(_0xd5dc51,['_url',_0x5bf7d7(0x1c8)],tFileName(_0x176fc1)),_0xd5dc51;}function deleteFileResponseFromMldev(_0x1b9e23){const _0x4b44e4=a6_0x51c1ef,_0x11f136={},_0x271f9e=getValueByPath(_0x1b9e23,[_0x4b44e4(0x344)]);return _0x271f9e!=null&&setValueByPath(_0x11f136,[_0x4b44e4(0x344)],_0x271f9e),_0x11f136;}function getFileParametersToMldev(_0x27b433){const _0x36b466=a6_0x51c1ef,_0x24d84a={},_0x5c8686=getValueByPath(_0x27b433,[_0x36b466(0x558)]);return _0x5c8686!=null&&setValueByPath(_0x24d84a,['_url',_0x36b466(0x1c8)],tFileName(_0x5c8686)),_0x24d84a;}function internalRegisterFilesParametersToMldev(_0x28dc75){const _0x2596dd=a6_0x51c1ef,_0x2b8c45={},_0x58355e=getValueByPath(_0x28dc75,[_0x2596dd(0x39e)]);return _0x58355e!=null&&setValueByPath(_0x2b8c45,[_0x2596dd(0x39e)],_0x58355e),_0x2b8c45;}function listFilesConfigToMldev(_0x5425cf,_0x438393){const _0x5990e7=a6_0x51c1ef,_0x1c0046={},_0x386fbf=getValueByPath(_0x5425cf,['pageSize']);_0x438393!==undefined&&_0x386fbf!=null&&setValueByPath(_0x438393,['_query',_0x5990e7(0x400)],_0x386fbf);const _0x1daef0=getValueByPath(_0x5425cf,[_0x5990e7(0x2dd)]);return _0x438393!==undefined&&_0x1daef0!=null&&setValueByPath(_0x438393,['_query','pageToken'],_0x1daef0),_0x1c0046;}function listFilesParametersToMldev(_0x2c70f3){const _0x4d3163=a6_0x51c1ef,_0x2e9a71={},_0x26a083=getValueByPath(_0x2c70f3,[_0x4d3163(0x66c)]);return _0x26a083!=null&&listFilesConfigToMldev(_0x26a083,_0x2e9a71),_0x2e9a71;}function listFilesResponseFromMldev(_0x4274fa){const _0x249f53=a6_0x51c1ef,_0x11d6f1={},_0x162b66=getValueByPath(_0x4274fa,[_0x249f53(0x344)]);_0x162b66!=null&&setValueByPath(_0x11d6f1,[_0x249f53(0x344)],_0x162b66);const _0x3e3c27=getValueByPath(_0x4274fa,[_0x249f53(0x17a)]);_0x3e3c27!=null&&setValueByPath(_0x11d6f1,[_0x249f53(0x17a)],_0x3e3c27);const _0x409379=getValueByPath(_0x4274fa,['files']);if(_0x409379!=null){let _0x16a5a8=_0x409379;Array[_0x249f53(0x49d)](_0x16a5a8)&&(_0x16a5a8=_0x16a5a8[_0x249f53(0x68f)](_0x21a39c=>{return _0x21a39c;})),setValueByPath(_0x11d6f1,['files'],_0x16a5a8);}return _0x11d6f1;}function registerFilesResponseFromMldev(_0x4af630){const _0x3b7379=a6_0x51c1ef,_0x520f64={},_0x17b4da=getValueByPath(_0x4af630,[_0x3b7379(0x344)]);_0x17b4da!=null&&setValueByPath(_0x520f64,[_0x3b7379(0x344)],_0x17b4da);const _0x139e9e=getValueByPath(_0x4af630,[_0x3b7379(0x318)]);if(_0x139e9e!=null){let _0x20c184=_0x139e9e;Array[_0x3b7379(0x49d)](_0x20c184)&&(_0x20c184=_0x20c184[_0x3b7379(0x68f)](_0x13496f=>{return _0x13496f;})),setValueByPath(_0x520f64,[_0x3b7379(0x318)],_0x20c184);}return _0x520f64;}/**
72
+ * @license
73
+ * Copyright 2025 Google LLC
74
+ * SPDX-License-Identifier: Apache-2.0
75
+ */
76
+ class Files extends BaseModule{constructor(_0x2447a2){const _0x239f1b=a6_0x51c1ef;super(),this['apiClient']=_0x2447a2,this[_0x239f1b(0x644)]=async(_0x4c72db={})=>{const _0xa6291a=_0x239f1b;return new Pager(PagedItem['PAGED_ITEM_FILES'],_0x2b92e1=>this['listInternal'](_0x2b92e1),await this[_0xa6291a(0x542)](_0x4c72db),_0x4c72db);};}async[a6_0x51c1ef(0x370)](_0x524e72){const _0x26d09=a6_0x51c1ef;if(this[_0x26d09(0x61e)]['isVertexAI']())throw new Error(_0x26d09(0x676));return this[_0x26d09(0x61e)][_0x26d09(0x46b)](_0x524e72[_0x26d09(0x1c8)],_0x524e72[_0x26d09(0x66c)])[_0x26d09(0x486)](_0x1e2a57=>{return _0x1e2a57;});}async[a6_0x51c1ef(0x5dc)](_0x422d96){const _0x217696=a6_0x51c1ef;await this[_0x217696(0x61e)][_0x217696(0x64e)](_0x422d96);}async['registerFiles'](_0x57ed61){const _0x36dd57=a6_0x51c1ef;throw new Error(_0x36dd57(0x202));}async[a6_0x51c1ef(0x4b6)](_0x4fcfa6){const _0xd86808=a6_0x51c1ef;return this[_0xd86808(0x4a2)](_0x4fcfa6);}async[a6_0x51c1ef(0x542)](_0x573a09){const _0x12f138=a6_0x51c1ef;var _0x75b631,_0x450e1f;let _0x3ad970,_0x319e07='',_0x16c1ef={};if(this[_0x12f138(0x61e)][_0x12f138(0x291)]())throw new Error(_0x12f138(0x4d2));else{const _0x4075e2=listFilesParametersToMldev(_0x573a09);return _0x319e07=formatMap('files',_0x4075e2['_url']),_0x16c1ef=_0x4075e2[_0x12f138(0x4cd)],delete _0x4075e2[_0x12f138(0x2c1)],delete _0x4075e2[_0x12f138(0x4cd)],_0x3ad970=this[_0x12f138(0x61e)][_0x12f138(0x560)]({'path':_0x319e07,'queryParams':_0x16c1ef,'body':JSON['stringify'](_0x4075e2),'httpMethod':_0x12f138(0x1fa),'httpOptions':(_0x75b631=_0x573a09[_0x12f138(0x66c)])===null||_0x75b631===void 0x0?void 0x0:_0x75b631[_0x12f138(0x328)],'abortSignal':(_0x450e1f=_0x573a09['config'])===null||_0x450e1f===void 0x0?void 0x0:_0x450e1f['abortSignal']})[_0x12f138(0x486)](_0x467834=>{const _0x270321=_0x12f138;return _0x467834[_0x270321(0x31b)]()[_0x270321(0x486)](_0xe92fe5=>{const _0x3a1c50=_0x270321,_0x4a7ea9=_0xe92fe5;return _0x4a7ea9[_0x3a1c50(0x344)]={'headers':_0x467834[_0x3a1c50(0x2b9)]},_0x4a7ea9;});}),_0x3ad970[_0x12f138(0x486)](_0x64d58f=>{const _0x32eab3=listFilesResponseFromMldev(_0x64d58f),_0x632487=new ListFilesResponse();return Object['assign'](_0x632487,_0x32eab3),_0x632487;});}}async[a6_0x51c1ef(0x4fc)](_0x32c6eb){const _0x1cf513=a6_0x51c1ef;var _0x2de345,_0x5793a9;let _0x5ef6da,_0x358d9c='',_0x58232b={};if(this[_0x1cf513(0x61e)]['isVertexAI']())throw new Error(_0x1cf513(0x4d2));else{const _0x65a5f8=createFileParametersToMldev(_0x32c6eb);return _0x358d9c=formatMap(_0x1cf513(0x1ff),_0x65a5f8[_0x1cf513(0x2c1)]),_0x58232b=_0x65a5f8[_0x1cf513(0x4cd)],delete _0x65a5f8[_0x1cf513(0x2c1)],delete _0x65a5f8[_0x1cf513(0x4cd)],_0x5ef6da=this[_0x1cf513(0x61e)][_0x1cf513(0x560)]({'path':_0x358d9c,'queryParams':_0x58232b,'body':JSON[_0x1cf513(0x183)](_0x65a5f8),'httpMethod':'POST','httpOptions':(_0x2de345=_0x32c6eb['config'])===null||_0x2de345===void 0x0?void 0x0:_0x2de345[_0x1cf513(0x328)],'abortSignal':(_0x5793a9=_0x32c6eb[_0x1cf513(0x66c)])===null||_0x5793a9===void 0x0?void 0x0:_0x5793a9[_0x1cf513(0x643)]})[_0x1cf513(0x486)](_0x11f770=>{const _0x42b781=_0x1cf513;return _0x11f770[_0x42b781(0x31b)]();}),_0x5ef6da[_0x1cf513(0x486)](_0x66c008=>{const _0x137e21=_0x1cf513,_0x41a746=createFileResponseFromMldev(_0x66c008),_0x5f1c13=new CreateFileResponse();return Object[_0x137e21(0x5a8)](_0x5f1c13,_0x41a746),_0x5f1c13;});}}async['get'](_0x73706c){const _0x428f3b=a6_0x51c1ef;var _0x1aedb2,_0x2abc12;let _0x58ea89,_0x5e4836='',_0x114da7={};if(this[_0x428f3b(0x61e)][_0x428f3b(0x291)]())throw new Error(_0x428f3b(0x4d2));else{const _0x3af1e0=getFileParametersToMldev(_0x73706c);return _0x5e4836=formatMap(_0x428f3b(0x40e),_0x3af1e0['_url']),_0x114da7=_0x3af1e0[_0x428f3b(0x4cd)],delete _0x3af1e0['_url'],delete _0x3af1e0[_0x428f3b(0x4cd)],_0x58ea89=this[_0x428f3b(0x61e)]['request']({'path':_0x5e4836,'queryParams':_0x114da7,'body':JSON[_0x428f3b(0x183)](_0x3af1e0),'httpMethod':_0x428f3b(0x1fa),'httpOptions':(_0x1aedb2=_0x73706c['config'])===null||_0x1aedb2===void 0x0?void 0x0:_0x1aedb2[_0x428f3b(0x328)],'abortSignal':(_0x2abc12=_0x73706c['config'])===null||_0x2abc12===void 0x0?void 0x0:_0x2abc12[_0x428f3b(0x643)]})['then'](_0x16733e=>{return _0x16733e['json']();}),_0x58ea89['then'](_0x8945f1=>{return _0x8945f1;});}}async[a6_0x51c1ef(0x422)](_0x5c890c){const _0xf4d453=a6_0x51c1ef;var _0x392c6a,_0x1fd7e0;let _0x3f94b6,_0x43674b='',_0x5a064f={};if(this[_0xf4d453(0x61e)][_0xf4d453(0x291)]())throw new Error(_0xf4d453(0x4d2));else{const _0xa94059=deleteFileParametersToMldev(_0x5c890c);return _0x43674b=formatMap(_0xf4d453(0x40e),_0xa94059[_0xf4d453(0x2c1)]),_0x5a064f=_0xa94059['_query'],delete _0xa94059[_0xf4d453(0x2c1)],delete _0xa94059[_0xf4d453(0x4cd)],_0x3f94b6=this[_0xf4d453(0x61e)][_0xf4d453(0x560)]({'path':_0x43674b,'queryParams':_0x5a064f,'body':JSON[_0xf4d453(0x183)](_0xa94059),'httpMethod':_0xf4d453(0x267),'httpOptions':(_0x392c6a=_0x5c890c[_0xf4d453(0x66c)])===null||_0x392c6a===void 0x0?void 0x0:_0x392c6a[_0xf4d453(0x328)],'abortSignal':(_0x1fd7e0=_0x5c890c['config'])===null||_0x1fd7e0===void 0x0?void 0x0:_0x1fd7e0[_0xf4d453(0x643)]})[_0xf4d453(0x486)](_0xdc0ef8=>{const _0x5e23de=_0xf4d453;return _0xdc0ef8[_0x5e23de(0x31b)]()['then'](_0x38bfbe=>{const _0x115fe2=_0x5e23de,_0x434597=_0x38bfbe;return _0x434597[_0x115fe2(0x344)]={'headers':_0xdc0ef8['headers']},_0x434597;});}),_0x3f94b6[_0xf4d453(0x486)](_0x5ad744=>{const _0x56594c=_0xf4d453,_0x33b145=deleteFileResponseFromMldev(_0x5ad744),_0x2f0447=new DeleteFileResponse();return Object[_0x56594c(0x5a8)](_0x2f0447,_0x33b145),_0x2f0447;});}}async[a6_0x51c1ef(0x4a2)](_0x1286c9){const _0x58647e=a6_0x51c1ef;var _0x5ce6ee,_0xae0706;let _0x20732f,_0x28e1a6='',_0x5db28f={};if(this[_0x58647e(0x61e)]['isVertexAI']())throw new Error(_0x58647e(0x4d2));else{const _0x3586d6=internalRegisterFilesParametersToMldev(_0x1286c9);return _0x28e1a6=formatMap(_0x58647e(0x503),_0x3586d6[_0x58647e(0x2c1)]),_0x5db28f=_0x3586d6[_0x58647e(0x4cd)],delete _0x3586d6[_0x58647e(0x2c1)],delete _0x3586d6[_0x58647e(0x4cd)],_0x20732f=this[_0x58647e(0x61e)][_0x58647e(0x560)]({'path':_0x28e1a6,'queryParams':_0x5db28f,'body':JSON[_0x58647e(0x183)](_0x3586d6),'httpMethod':_0x58647e(0x1e6),'httpOptions':(_0x5ce6ee=_0x1286c9[_0x58647e(0x66c)])===null||_0x5ce6ee===void 0x0?void 0x0:_0x5ce6ee[_0x58647e(0x328)],'abortSignal':(_0xae0706=_0x1286c9[_0x58647e(0x66c)])===null||_0xae0706===void 0x0?void 0x0:_0xae0706['abortSignal']})[_0x58647e(0x486)](_0x4ea34f=>{const _0x36d2f6=_0x58647e;return _0x4ea34f[_0x36d2f6(0x31b)]();}),_0x20732f[_0x58647e(0x486)](_0x2d125d=>{const _0x36c8f7=_0x58647e,_0x5fc4fb=registerFilesResponseFromMldev(_0x2d125d),_0x45f805=new RegisterFilesResponse();return Object[_0x36c8f7(0x5a8)](_0x45f805,_0x5fc4fb),_0x45f805;});}}}/**
77
+ * @license
78
+ * Copyright 2025 Google LLC
79
+ * SPDX-License-Identifier: Apache-2.0
80
+ */
81
+ function blobToMldev$2(_0x91683a){const _0x4101f7=a6_0x51c1ef,_0x4956a1={},_0x59eff3=getValueByPath(_0x91683a,[_0x4101f7(0x18b)]);_0x59eff3!=null&&setValueByPath(_0x4956a1,[_0x4101f7(0x18b)],_0x59eff3);if(getValueByPath(_0x91683a,['displayName'])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x4ae763=getValueByPath(_0x91683a,['mimeType']);return _0x4ae763!=null&&setValueByPath(_0x4956a1,['mimeType'],_0x4ae763),_0x4956a1;}function contentToMldev$2(_0x1e24b8){const _0x3d5d49=a6_0x51c1ef,_0x6c7e92={},_0x44a271=getValueByPath(_0x1e24b8,[_0x3d5d49(0x19f)]);if(_0x44a271!=null){let _0x3538ac=_0x44a271;Array[_0x3d5d49(0x49d)](_0x3538ac)&&(_0x3538ac=_0x3538ac[_0x3d5d49(0x68f)](_0x2eb834=>{return partToMldev$2(_0x2eb834);})),setValueByPath(_0x6c7e92,['parts'],_0x3538ac);}const _0x1c5ebb=getValueByPath(_0x1e24b8,['role']);return _0x1c5ebb!=null&&setValueByPath(_0x6c7e92,[_0x3d5d49(0x407)],_0x1c5ebb),_0x6c7e92;}function fileDataToMldev$2(_0xa31f06){const _0x23f4e9=a6_0x51c1ef,_0x51d2fe={};if(getValueByPath(_0xa31f06,[_0x23f4e9(0x419)])!==undefined)throw new Error(_0x23f4e9(0x28e));const _0x59ceec=getValueByPath(_0xa31f06,[_0x23f4e9(0x316)]);_0x59ceec!=null&&setValueByPath(_0x51d2fe,['fileUri'],_0x59ceec);const _0x1273d3=getValueByPath(_0xa31f06,[_0x23f4e9(0x1ac)]);return _0x1273d3!=null&&setValueByPath(_0x51d2fe,[_0x23f4e9(0x1ac)],_0x1273d3),_0x51d2fe;}function functionCallToMldev$2(_0x5673ad){const _0x379966=a6_0x51c1ef,_0x3beeee={},_0x46f09f=getValueByPath(_0x5673ad,['id']);_0x46f09f!=null&&setValueByPath(_0x3beeee,['id'],_0x46f09f);const _0x51ff82=getValueByPath(_0x5673ad,[_0x379966(0x5cb)]);_0x51ff82!=null&&setValueByPath(_0x3beeee,['args'],_0x51ff82);const _0x507654=getValueByPath(_0x5673ad,[_0x379966(0x558)]);_0x507654!=null&&setValueByPath(_0x3beeee,[_0x379966(0x558)],_0x507654);if(getValueByPath(_0x5673ad,[_0x379966(0x381)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x5673ad,['willContinue'])!==undefined)throw new Error(_0x379966(0x3fd));return _0x3beeee;}function functionDeclarationToVertex$1(_0x1a94c2){const _0x3451e0=a6_0x51c1ef,_0x20c9eb={},_0xd46f17=getValueByPath(_0x1a94c2,[_0x3451e0(0x464)]);_0xd46f17!=null&&setValueByPath(_0x20c9eb,['description'],_0xd46f17);const _0x515e83=getValueByPath(_0x1a94c2,[_0x3451e0(0x558)]);_0x515e83!=null&&setValueByPath(_0x20c9eb,[_0x3451e0(0x558)],_0x515e83);const _0xab4d92=getValueByPath(_0x1a94c2,[_0x3451e0(0x59e)]);_0xab4d92!=null&&setValueByPath(_0x20c9eb,[_0x3451e0(0x59e)],_0xab4d92);const _0x3d6276=getValueByPath(_0x1a94c2,[_0x3451e0(0x16b)]);_0x3d6276!=null&&setValueByPath(_0x20c9eb,[_0x3451e0(0x16b)],_0x3d6276);const _0x55fba3=getValueByPath(_0x1a94c2,['response']);_0x55fba3!=null&&setValueByPath(_0x20c9eb,[_0x3451e0(0x603)],_0x55fba3);const _0x576690=getValueByPath(_0x1a94c2,['responseJsonSchema']);_0x576690!=null&&setValueByPath(_0x20c9eb,[_0x3451e0(0x2d5)],_0x576690);if(getValueByPath(_0x1a94c2,[_0x3451e0(0x44a)])!==undefined)throw new Error('behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x20c9eb;}function generationConfigToVertex$1(_0x228a56){const _0x5280b2=a6_0x51c1ef,_0x10e19c={},_0x3893cc=getValueByPath(_0x228a56,['modelSelectionConfig']);_0x3893cc!=null&&setValueByPath(_0x10e19c,['modelConfig'],_0x3893cc);const _0x2d430c=getValueByPath(_0x228a56,[_0x5280b2(0x2d5)]);_0x2d430c!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x2d5)],_0x2d430c);const _0x17454f=getValueByPath(_0x228a56,[_0x5280b2(0x3f6)]);_0x17454f!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x3f6)],_0x17454f);const _0x4cb835=getValueByPath(_0x228a56,[_0x5280b2(0x4af)]);_0x4cb835!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x4af)],_0x4cb835);const _0x488fdd=getValueByPath(_0x228a56,[_0x5280b2(0x21b)]);_0x488fdd!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x21b)],_0x488fdd);const _0x18eb82=getValueByPath(_0x228a56,[_0x5280b2(0x5c2)]);_0x18eb82!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x5c2)],_0x18eb82);const _0x5c1f82=getValueByPath(_0x228a56,[_0x5280b2(0x57a)]);_0x5c1f82!=null&&setValueByPath(_0x10e19c,['logprobs'],_0x5c1f82);const _0x134dbc=getValueByPath(_0x228a56,['maxOutputTokens']);_0x134dbc!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x378)],_0x134dbc);const _0x46a863=getValueByPath(_0x228a56,[_0x5280b2(0x615)]);_0x46a863!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x615)],_0x46a863);const _0x5dd23e=getValueByPath(_0x228a56,['presencePenalty']);_0x5dd23e!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x3b2)],_0x5dd23e);const _0x1dd0eb=getValueByPath(_0x228a56,[_0x5280b2(0x205)]);_0x1dd0eb!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x205)],_0x1dd0eb);const _0x1d3f67=getValueByPath(_0x228a56,[_0x5280b2(0x496)]);_0x1d3f67!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x496)],_0x1d3f67);const _0xd19e85=getValueByPath(_0x228a56,[_0x5280b2(0x4a3)]);_0xd19e85!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x4a3)],_0xd19e85);const _0x36aa9c=getValueByPath(_0x228a56,[_0x5280b2(0x1a4)]);_0x36aa9c!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x1a4)],_0x36aa9c);const _0x4c3403=getValueByPath(_0x228a56,[_0x5280b2(0x317)]);_0x4c3403!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x317)],_0x4c3403);const _0x10a35a=getValueByPath(_0x228a56,[_0x5280b2(0x245)]);_0x10a35a!=null&&setValueByPath(_0x10e19c,['seed'],_0x10a35a);const _0x1c4855=getValueByPath(_0x228a56,[_0x5280b2(0x241)]);_0x1c4855!=null&&setValueByPath(_0x10e19c,['speechConfig'],_0x1c4855);const _0x8a6671=getValueByPath(_0x228a56,[_0x5280b2(0x29d)]);_0x8a6671!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x29d)],_0x8a6671);const _0x58c6a5=getValueByPath(_0x228a56,[_0x5280b2(0x689)]);_0x58c6a5!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x689)],_0x58c6a5);const _0x7d5981=getValueByPath(_0x228a56,[_0x5280b2(0x497)]);_0x7d5981!=null&&setValueByPath(_0x10e19c,['thinkingConfig'],_0x7d5981);const _0x531e6c=getValueByPath(_0x228a56,[_0x5280b2(0x3ca)]);_0x531e6c!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x3ca)],_0x531e6c);const _0x26b38f=getValueByPath(_0x228a56,[_0x5280b2(0x465)]);_0x26b38f!=null&&setValueByPath(_0x10e19c,[_0x5280b2(0x465)],_0x26b38f);if(getValueByPath(_0x228a56,[_0x5280b2(0x3ad)])!==undefined)throw new Error(_0x5280b2(0x505));return _0x10e19c;}function googleMapsToMldev$2(_0x40a384){const _0x5ba103=a6_0x51c1ef,_0x5c6e65={};if(getValueByPath(_0x40a384,[_0x5ba103(0x3dc)])!==undefined)throw new Error('authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x17bb0d=getValueByPath(_0x40a384,['enableWidget']);return _0x17bb0d!=null&&setValueByPath(_0x5c6e65,['enableWidget'],_0x17bb0d),_0x5c6e65;}function googleSearchToMldev$2(_0x21df8d){const _0x39ce77=a6_0x51c1ef,_0x10e84b={};if(getValueByPath(_0x21df8d,[_0x39ce77(0x1b7)])!==undefined)throw new Error(_0x39ce77(0x3b6));if(getValueByPath(_0x21df8d,[_0x39ce77(0x16f)])!==undefined)throw new Error(_0x39ce77(0x383));const _0x43db92=getValueByPath(_0x21df8d,[_0x39ce77(0x3fb)]);return _0x43db92!=null&&setValueByPath(_0x10e84b,[_0x39ce77(0x3fb)],_0x43db92),_0x10e84b;}function liveConnectConfigToMldev$1(_0x361679,_0x1260e8){const _0xd5f4a0=a6_0x51c1ef,_0x6ceeb0={},_0x166229=getValueByPath(_0x361679,[_0xd5f4a0(0x177)]);_0x1260e8!==undefined&&_0x166229!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177)],_0x166229);const _0x420c7e=getValueByPath(_0x361679,[_0xd5f4a0(0x4a3)]);_0x1260e8!==undefined&&_0x420c7e!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177),_0xd5f4a0(0x4a3)],_0x420c7e);const _0xb13041=getValueByPath(_0x361679,['temperature']);_0x1260e8!==undefined&&_0xb13041!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177),'temperature'],_0xb13041);const _0x3080de=getValueByPath(_0x361679,[_0xd5f4a0(0x465)]);_0x1260e8!==undefined&&_0x3080de!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177),_0xd5f4a0(0x465)],_0x3080de);const _0x377a6e=getValueByPath(_0x361679,[_0xd5f4a0(0x3ca)]);_0x1260e8!==undefined&&_0x377a6e!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),'generationConfig',_0xd5f4a0(0x3ca)],_0x377a6e);const _0x4b8a8e=getValueByPath(_0x361679,[_0xd5f4a0(0x378)]);_0x1260e8!==undefined&&_0x4b8a8e!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),_0xd5f4a0(0x177),_0xd5f4a0(0x378)],_0x4b8a8e);const _0x5d313d=getValueByPath(_0x361679,[_0xd5f4a0(0x615)]);_0x1260e8!==undefined&&_0x5d313d!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),_0xd5f4a0(0x177),_0xd5f4a0(0x615)],_0x5d313d);const _0x25d049=getValueByPath(_0x361679,['seed']);_0x1260e8!==undefined&&_0x25d049!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177),_0xd5f4a0(0x245)],_0x25d049);const _0x191808=getValueByPath(_0x361679,[_0xd5f4a0(0x241)]);_0x1260e8!==undefined&&_0x191808!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177),_0xd5f4a0(0x241)],tLiveSpeechConfig(_0x191808));const _0x5d0d39=getValueByPath(_0x361679,[_0xd5f4a0(0x497)]);_0x1260e8!==undefined&&_0x5d0d39!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x177),_0xd5f4a0(0x497)],_0x5d0d39);const _0x7da01a=getValueByPath(_0x361679,[_0xd5f4a0(0x21b)]);_0x1260e8!==undefined&&_0x7da01a!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),_0xd5f4a0(0x177),_0xd5f4a0(0x21b)],_0x7da01a);const _0x101dd3=getValueByPath(_0x361679,['systemInstruction']);_0x1260e8!==undefined&&_0x101dd3!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),'systemInstruction'],contentToMldev$2(tContent(_0x101dd3)));const _0xf426e1=getValueByPath(_0x361679,[_0xd5f4a0(0x269)]);if(_0x1260e8!==undefined&&_0xf426e1!=null){let _0x2ed3ff=tTools(_0xf426e1);Array['isArray'](_0x2ed3ff)&&(_0x2ed3ff=_0x2ed3ff[_0xd5f4a0(0x68f)](_0x4fa76e=>{return toolToMldev$2(tTool(_0x4fa76e));})),setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),'tools'],_0x2ed3ff);}const _0xda9aa3=getValueByPath(_0x361679,[_0xd5f4a0(0x3d5)]);_0x1260e8!==undefined&&_0xda9aa3!=null&&setValueByPath(_0x1260e8,['setup',_0xd5f4a0(0x3d5)],sessionResumptionConfigToMldev$1(_0xda9aa3));const _0x54cefd=getValueByPath(_0x361679,[_0xd5f4a0(0x1d5)]);_0x1260e8!==undefined&&_0x54cefd!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),_0xd5f4a0(0x1d5)],_0x54cefd);const _0x1b6d22=getValueByPath(_0x361679,['outputAudioTranscription']);_0x1260e8!==undefined&&_0x1b6d22!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),'outputAudioTranscription'],_0x1b6d22);const _0x2a8f4d=getValueByPath(_0x361679,[_0xd5f4a0(0x259)]);_0x1260e8!==undefined&&_0x2a8f4d!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),'realtimeInputConfig'],_0x2a8f4d);const _0x2f3106=getValueByPath(_0x361679,[_0xd5f4a0(0x424)]);_0x1260e8!==undefined&&_0x2f3106!=null&&setValueByPath(_0x1260e8,[_0xd5f4a0(0x4ed),_0xd5f4a0(0x424)],_0x2f3106);const _0x23a9ff=getValueByPath(_0x361679,[_0xd5f4a0(0x36b)]);_0x1260e8!==undefined&&_0x23a9ff!=null&&setValueByPath(_0x1260e8,['setup','proactivity'],_0x23a9ff);if(getValueByPath(_0x361679,[_0xd5f4a0(0x396)])!==undefined)throw new Error(_0xd5f4a0(0x4d0));return _0x6ceeb0;}function liveConnectConfigToVertex(_0x5b1b6d,_0x4f65ab){const _0x57654f=a6_0x51c1ef,_0x45907f={},_0x1fa539=getValueByPath(_0x5b1b6d,['generationConfig']);_0x4f65ab!==undefined&&_0x1fa539!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x177)],generationConfigToVertex$1(_0x1fa539));const _0x43ef9d=getValueByPath(_0x5b1b6d,['responseModalities']);_0x4f65ab!==undefined&&_0x43ef9d!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x177),_0x57654f(0x4a3)],_0x43ef9d);const _0x23d341=getValueByPath(_0x5b1b6d,[_0x57654f(0x689)]);_0x4f65ab!==undefined&&_0x23d341!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x177),'temperature'],_0x23d341);const _0x484a79=getValueByPath(_0x5b1b6d,['topP']);_0x4f65ab!==undefined&&_0x484a79!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x177),'topP'],_0x484a79);const _0x1dd156=getValueByPath(_0x5b1b6d,[_0x57654f(0x3ca)]);_0x4f65ab!==undefined&&_0x1dd156!=null&&setValueByPath(_0x4f65ab,['setup',_0x57654f(0x177),_0x57654f(0x3ca)],_0x1dd156);const _0x427b71=getValueByPath(_0x5b1b6d,['maxOutputTokens']);_0x4f65ab!==undefined&&_0x427b71!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x177),'maxOutputTokens'],_0x427b71);const _0x4b73dc=getValueByPath(_0x5b1b6d,[_0x57654f(0x615)]);_0x4f65ab!==undefined&&_0x4b73dc!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),'generationConfig',_0x57654f(0x615)],_0x4b73dc);const _0x5441d0=getValueByPath(_0x5b1b6d,[_0x57654f(0x245)]);_0x4f65ab!==undefined&&_0x5441d0!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),'generationConfig',_0x57654f(0x245)],_0x5441d0);const _0x1f4fcf=getValueByPath(_0x5b1b6d,[_0x57654f(0x241)]);_0x4f65ab!==undefined&&_0x1f4fcf!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),'generationConfig',_0x57654f(0x241)],tLiveSpeechConfig(_0x1f4fcf));const _0x319366=getValueByPath(_0x5b1b6d,['thinkingConfig']);_0x4f65ab!==undefined&&_0x319366!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),'generationConfig',_0x57654f(0x497)],_0x319366);const _0x4cb694=getValueByPath(_0x5b1b6d,['enableAffectiveDialog']);_0x4f65ab!==undefined&&_0x4cb694!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x177),_0x57654f(0x21b)],_0x4cb694);const _0x99fd50=getValueByPath(_0x5b1b6d,[_0x57654f(0x22d)]);_0x4f65ab!==undefined&&_0x99fd50!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x22d)],tContent(_0x99fd50));const _0x5793f3=getValueByPath(_0x5b1b6d,['tools']);if(_0x4f65ab!==undefined&&_0x5793f3!=null){let _0x5d1783=tTools(_0x5793f3);Array[_0x57654f(0x49d)](_0x5d1783)&&(_0x5d1783=_0x5d1783[_0x57654f(0x68f)](_0x35e49e=>{return toolToVertex$1(tTool(_0x35e49e));})),setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x269)],_0x5d1783);}const _0x295910=getValueByPath(_0x5b1b6d,[_0x57654f(0x3d5)]);_0x4f65ab!==undefined&&_0x295910!=null&&setValueByPath(_0x4f65ab,['setup','sessionResumption'],_0x295910);const _0x1c50e2=getValueByPath(_0x5b1b6d,[_0x57654f(0x1d5)]);_0x4f65ab!==undefined&&_0x1c50e2!=null&&setValueByPath(_0x4f65ab,['setup','inputAudioTranscription'],_0x1c50e2);const _0x4df76b=getValueByPath(_0x5b1b6d,[_0x57654f(0x5a5)]);_0x4f65ab!==undefined&&_0x4df76b!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x5a5)],_0x4df76b);const _0x22aeb2=getValueByPath(_0x5b1b6d,[_0x57654f(0x259)]);_0x4f65ab!==undefined&&_0x22aeb2!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x259)],_0x22aeb2);const _0x5d271a=getValueByPath(_0x5b1b6d,[_0x57654f(0x424)]);_0x4f65ab!==undefined&&_0x5d271a!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x424)],_0x5d271a);const _0x5847a6=getValueByPath(_0x5b1b6d,[_0x57654f(0x36b)]);_0x4f65ab!==undefined&&_0x5847a6!=null&&setValueByPath(_0x4f65ab,[_0x57654f(0x4ed),_0x57654f(0x36b)],_0x5847a6);const _0x2fed37=getValueByPath(_0x5b1b6d,[_0x57654f(0x396)]);return _0x4f65ab!==undefined&&_0x2fed37!=null&&setValueByPath(_0x4f65ab,['setup','explicitVadSignal'],_0x2fed37),_0x45907f;}function liveConnectParametersToMldev(_0x41e660,_0x28ca47){const _0x1a7399=a6_0x51c1ef,_0x19de8e={},_0x469ec0=getValueByPath(_0x28ca47,['model']);_0x469ec0!=null&&setValueByPath(_0x19de8e,['setup',_0x1a7399(0x418)],tModel(_0x41e660,_0x469ec0));const _0x1572a2=getValueByPath(_0x28ca47,[_0x1a7399(0x66c)]);return _0x1572a2!=null&&setValueByPath(_0x19de8e,[_0x1a7399(0x66c)],liveConnectConfigToMldev$1(_0x1572a2,_0x19de8e)),_0x19de8e;}function liveConnectParametersToVertex(_0x125e47,_0xf576b0){const _0x2ad2c3=a6_0x51c1ef,_0x3680b4={},_0x29e80f=getValueByPath(_0xf576b0,[_0x2ad2c3(0x418)]);_0x29e80f!=null&&setValueByPath(_0x3680b4,[_0x2ad2c3(0x4ed),_0x2ad2c3(0x418)],tModel(_0x125e47,_0x29e80f));const _0x4f8c15=getValueByPath(_0xf576b0,[_0x2ad2c3(0x66c)]);return _0x4f8c15!=null&&setValueByPath(_0x3680b4,[_0x2ad2c3(0x66c)],liveConnectConfigToVertex(_0x4f8c15,_0x3680b4)),_0x3680b4;}function liveMusicSetConfigParametersToMldev(_0x65ce5a){const _0x71addd=a6_0x51c1ef,_0x566c48={},_0x17ed2f=getValueByPath(_0x65ce5a,[_0x71addd(0x2cd)]);return _0x17ed2f!=null&&setValueByPath(_0x566c48,[_0x71addd(0x2cd)],_0x17ed2f),_0x566c48;}function liveMusicSetWeightedPromptsParametersToMldev(_0x5139b2){const _0x3279d0=a6_0x51c1ef,_0x12a2f9={},_0x8e0b19=getValueByPath(_0x5139b2,['weightedPrompts']);if(_0x8e0b19!=null){let _0x58f9e3=_0x8e0b19;Array[_0x3279d0(0x49d)](_0x58f9e3)&&(_0x58f9e3=_0x58f9e3[_0x3279d0(0x68f)](_0x109c4b=>{return _0x109c4b;})),setValueByPath(_0x12a2f9,[_0x3279d0(0x2e4)],_0x58f9e3);}return _0x12a2f9;}function liveSendRealtimeInputParametersToMldev(_0x292ad2){const _0x371506=a6_0x51c1ef,_0x5bdd8d={},_0x5550d3=getValueByPath(_0x292ad2,[_0x371506(0x411)]);if(_0x5550d3!=null){let _0x46eaef=tBlobs(_0x5550d3);Array[_0x371506(0x49d)](_0x46eaef)&&(_0x46eaef=_0x46eaef[_0x371506(0x68f)](_0x27313f=>{return blobToMldev$2(_0x27313f);})),setValueByPath(_0x5bdd8d,[_0x371506(0x541)],_0x46eaef);}const _0x4640e7=getValueByPath(_0x292ad2,[_0x371506(0x54e)]);_0x4640e7!=null&&setValueByPath(_0x5bdd8d,[_0x371506(0x54e)],blobToMldev$2(tAudioBlob(_0x4640e7)));const _0x44c56b=getValueByPath(_0x292ad2,[_0x371506(0x2c8)]);_0x44c56b!=null&&setValueByPath(_0x5bdd8d,[_0x371506(0x2c8)],_0x44c56b);const _0x440582=getValueByPath(_0x292ad2,[_0x371506(0x533)]);_0x440582!=null&&setValueByPath(_0x5bdd8d,['video'],blobToMldev$2(tImageBlob(_0x440582)));const _0x1dd408=getValueByPath(_0x292ad2,[_0x371506(0x278)]);_0x1dd408!=null&&setValueByPath(_0x5bdd8d,['text'],_0x1dd408);const _0x48f97c=getValueByPath(_0x292ad2,[_0x371506(0x448)]);_0x48f97c!=null&&setValueByPath(_0x5bdd8d,[_0x371506(0x448)],_0x48f97c);const _0x114d34=getValueByPath(_0x292ad2,[_0x371506(0x1c1)]);return _0x114d34!=null&&setValueByPath(_0x5bdd8d,['activityEnd'],_0x114d34),_0x5bdd8d;}function liveSendRealtimeInputParametersToVertex(_0x15708f){const _0x4bede7=a6_0x51c1ef,_0x10e6ba={},_0x3a1efb=getValueByPath(_0x15708f,[_0x4bede7(0x411)]);if(_0x3a1efb!=null){let _0x5a6748=tBlobs(_0x3a1efb);Array[_0x4bede7(0x49d)](_0x5a6748)&&(_0x5a6748=_0x5a6748['map'](_0x37ca92=>{return _0x37ca92;})),setValueByPath(_0x10e6ba,[_0x4bede7(0x541)],_0x5a6748);}const _0x31a61a=getValueByPath(_0x15708f,['audio']);_0x31a61a!=null&&setValueByPath(_0x10e6ba,[_0x4bede7(0x54e)],tAudioBlob(_0x31a61a));const _0x36d1a1=getValueByPath(_0x15708f,['audioStreamEnd']);_0x36d1a1!=null&&setValueByPath(_0x10e6ba,[_0x4bede7(0x2c8)],_0x36d1a1);const _0x59d663=getValueByPath(_0x15708f,[_0x4bede7(0x533)]);_0x59d663!=null&&setValueByPath(_0x10e6ba,[_0x4bede7(0x533)],tImageBlob(_0x59d663));const _0x1a7a12=getValueByPath(_0x15708f,['text']);_0x1a7a12!=null&&setValueByPath(_0x10e6ba,[_0x4bede7(0x278)],_0x1a7a12);const _0x65ea01=getValueByPath(_0x15708f,[_0x4bede7(0x448)]);_0x65ea01!=null&&setValueByPath(_0x10e6ba,[_0x4bede7(0x448)],_0x65ea01);const _0x22fc7e=getValueByPath(_0x15708f,['activityEnd']);return _0x22fc7e!=null&&setValueByPath(_0x10e6ba,['activityEnd'],_0x22fc7e),_0x10e6ba;}function liveServerMessageFromVertex(_0x572098){const _0x35deef=a6_0x51c1ef,_0xe0d3e7={},_0x366bb6=getValueByPath(_0x572098,[_0x35deef(0x573)]);_0x366bb6!=null&&setValueByPath(_0xe0d3e7,[_0x35deef(0x573)],_0x366bb6);const _0x3cc21e=getValueByPath(_0x572098,[_0x35deef(0x1aa)]);_0x3cc21e!=null&&setValueByPath(_0xe0d3e7,[_0x35deef(0x1aa)],_0x3cc21e);const _0x2f03ec=getValueByPath(_0x572098,[_0x35deef(0x359)]);_0x2f03ec!=null&&setValueByPath(_0xe0d3e7,['toolCall'],_0x2f03ec);const _0x2f388c=getValueByPath(_0x572098,[_0x35deef(0x3bf)]);_0x2f388c!=null&&setValueByPath(_0xe0d3e7,['toolCallCancellation'],_0x2f388c);const _0x4c200b=getValueByPath(_0x572098,[_0x35deef(0x474)]);_0x4c200b!=null&&setValueByPath(_0xe0d3e7,[_0x35deef(0x474)],usageMetadataFromVertex(_0x4c200b));const _0x89d2b7=getValueByPath(_0x572098,[_0x35deef(0x3c4)]);_0x89d2b7!=null&&setValueByPath(_0xe0d3e7,[_0x35deef(0x3c4)],_0x89d2b7);const _0x1702f6=getValueByPath(_0x572098,['sessionResumptionUpdate']);_0x1702f6!=null&&setValueByPath(_0xe0d3e7,[_0x35deef(0x30b)],_0x1702f6);const _0x51c076=getValueByPath(_0x572098,[_0x35deef(0x43a)]);_0x51c076!=null&&setValueByPath(_0xe0d3e7,['voiceActivityDetectionSignal'],_0x51c076);const _0xd62acb=getValueByPath(_0x572098,['voiceActivity']);return _0xd62acb!=null&&setValueByPath(_0xe0d3e7,['voiceActivity'],voiceActivityFromVertex(_0xd62acb)),_0xe0d3e7;}function partToMldev$2(_0x318aae){const _0x398b1c=a6_0x51c1ef,_0x425b7d={},_0x193a83=getValueByPath(_0x318aae,[_0x398b1c(0x615)]);_0x193a83!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x615)],_0x193a83);const _0x71dd63=getValueByPath(_0x318aae,[_0x398b1c(0x2c0)]);_0x71dd63!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x2c0)],_0x71dd63);const _0x503871=getValueByPath(_0x318aae,[_0x398b1c(0x5df)]);_0x503871!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x5df)],_0x503871);const _0x32b2ed=getValueByPath(_0x318aae,[_0x398b1c(0x24e)]);_0x32b2ed!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x24e)],fileDataToMldev$2(_0x32b2ed));const _0x3557da=getValueByPath(_0x318aae,[_0x398b1c(0x2cc)]);_0x3557da!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x2cc)],functionCallToMldev$2(_0x3557da));const _0x1e30ea=getValueByPath(_0x318aae,['functionResponse']);_0x1e30ea!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x2fa)],_0x1e30ea);const _0x103f8a=getValueByPath(_0x318aae,[_0x398b1c(0x4b0)]);_0x103f8a!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x4b0)],blobToMldev$2(_0x103f8a));const _0x1e9dec=getValueByPath(_0x318aae,[_0x398b1c(0x278)]);_0x1e9dec!=null&&setValueByPath(_0x425b7d,['text'],_0x1e9dec);const _0x26e4ae=getValueByPath(_0x318aae,[_0x398b1c(0x29e)]);_0x26e4ae!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x29e)],_0x26e4ae);const _0x1250c2=getValueByPath(_0x318aae,[_0x398b1c(0x4f0)]);_0x1250c2!=null&&setValueByPath(_0x425b7d,[_0x398b1c(0x4f0)],_0x1250c2);const _0x108b74=getValueByPath(_0x318aae,[_0x398b1c(0x2e8)]);return _0x108b74!=null&&setValueByPath(_0x425b7d,['videoMetadata'],_0x108b74),_0x425b7d;}function sessionResumptionConfigToMldev$1(_0x2f8c52){const _0x1d9221=a6_0x51c1ef,_0x510dee={},_0xd1359a=getValueByPath(_0x2f8c52,['handle']);_0xd1359a!=null&&setValueByPath(_0x510dee,[_0x1d9221(0x3ae)],_0xd1359a);if(getValueByPath(_0x2f8c52,[_0x1d9221(0x1e5)])!==undefined)throw new Error('transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x510dee;}function toolToMldev$2(_0x3803c9){const _0x3bb9f1=a6_0x51c1ef,_0x134ce8={};if(getValueByPath(_0x3803c9,['retrieval'])!==undefined)throw new Error(_0x3bb9f1(0x390));const _0x402b80=getValueByPath(_0x3803c9,['computerUse']);_0x402b80!=null&&setValueByPath(_0x134ce8,['computerUse'],_0x402b80);const _0x3dbbd6=getValueByPath(_0x3803c9,['fileSearch']);_0x3dbbd6!=null&&setValueByPath(_0x134ce8,[_0x3bb9f1(0x403)],_0x3dbbd6);const _0x54f2c5=getValueByPath(_0x3803c9,[_0x3bb9f1(0x230)]);_0x54f2c5!=null&&setValueByPath(_0x134ce8,[_0x3bb9f1(0x230)],_0x54f2c5);if(getValueByPath(_0x3803c9,[_0x3bb9f1(0x49c)])!==undefined)throw new Error(_0x3bb9f1(0x42f));const _0x4750f8=getValueByPath(_0x3803c9,[_0x3bb9f1(0x63b)]);if(_0x4750f8!=null){let _0x5712df=_0x4750f8;Array[_0x3bb9f1(0x49d)](_0x5712df)&&(_0x5712df=_0x5712df[_0x3bb9f1(0x68f)](_0x516cb6=>{return _0x516cb6;})),setValueByPath(_0x134ce8,['functionDeclarations'],_0x5712df);}const _0x30cb03=getValueByPath(_0x3803c9,['googleMaps']);_0x30cb03!=null&&setValueByPath(_0x134ce8,[_0x3bb9f1(0x38a)],googleMapsToMldev$2(_0x30cb03));const _0xa01de2=getValueByPath(_0x3803c9,['googleSearch']);_0xa01de2!=null&&setValueByPath(_0x134ce8,[_0x3bb9f1(0x618)],googleSearchToMldev$2(_0xa01de2));const _0x1a3886=getValueByPath(_0x3803c9,['googleSearchRetrieval']);_0x1a3886!=null&&setValueByPath(_0x134ce8,[_0x3bb9f1(0x698)],_0x1a3886);const _0x4dd3dd=getValueByPath(_0x3803c9,['urlContext']);return _0x4dd3dd!=null&&setValueByPath(_0x134ce8,[_0x3bb9f1(0x4c9)],_0x4dd3dd),_0x134ce8;}function toolToVertex$1(_0x1bfdd7){const _0x140265=a6_0x51c1ef,_0x3b5a74={},_0x49217a=getValueByPath(_0x1bfdd7,[_0x140265(0x3ec)]);_0x49217a!=null&&setValueByPath(_0x3b5a74,[_0x140265(0x3ec)],_0x49217a);const _0x3613bb=getValueByPath(_0x1bfdd7,[_0x140265(0x41e)]);_0x3613bb!=null&&setValueByPath(_0x3b5a74,[_0x140265(0x41e)],_0x3613bb);if(getValueByPath(_0x1bfdd7,[_0x140265(0x403)])!==undefined)throw new Error(_0x140265(0x1e1));const _0x28378c=getValueByPath(_0x1bfdd7,[_0x140265(0x230)]);_0x28378c!=null&&setValueByPath(_0x3b5a74,[_0x140265(0x230)],_0x28378c);const _0x1b6c1f=getValueByPath(_0x1bfdd7,[_0x140265(0x49c)]);_0x1b6c1f!=null&&setValueByPath(_0x3b5a74,[_0x140265(0x49c)],_0x1b6c1f);const _0xa5e718=getValueByPath(_0x1bfdd7,[_0x140265(0x63b)]);if(_0xa5e718!=null){let _0x37d11c=_0xa5e718;Array[_0x140265(0x49d)](_0x37d11c)&&(_0x37d11c=_0x37d11c[_0x140265(0x68f)](_0x13540e=>{return functionDeclarationToVertex$1(_0x13540e);})),setValueByPath(_0x3b5a74,[_0x140265(0x63b)],_0x37d11c);}const _0x449086=getValueByPath(_0x1bfdd7,['googleMaps']);_0x449086!=null&&setValueByPath(_0x3b5a74,['googleMaps'],_0x449086);const _0x107e36=getValueByPath(_0x1bfdd7,['googleSearch']);_0x107e36!=null&&setValueByPath(_0x3b5a74,[_0x140265(0x618)],_0x107e36);const _0x24990a=getValueByPath(_0x1bfdd7,[_0x140265(0x698)]);_0x24990a!=null&&setValueByPath(_0x3b5a74,[_0x140265(0x698)],_0x24990a);const _0x145992=getValueByPath(_0x1bfdd7,['urlContext']);return _0x145992!=null&&setValueByPath(_0x3b5a74,['urlContext'],_0x145992),_0x3b5a74;}function usageMetadataFromVertex(_0x11a6ea){const _0x53b0bc=a6_0x51c1ef,_0x113ba0={},_0x1aef86=getValueByPath(_0x11a6ea,[_0x53b0bc(0x1f6)]);_0x1aef86!=null&&setValueByPath(_0x113ba0,['promptTokenCount'],_0x1aef86);const _0x29a44f=getValueByPath(_0x11a6ea,[_0x53b0bc(0x4c4)]);_0x29a44f!=null&&setValueByPath(_0x113ba0,['cachedContentTokenCount'],_0x29a44f);const _0x10bc18=getValueByPath(_0x11a6ea,[_0x53b0bc(0x228)]);_0x10bc18!=null&&setValueByPath(_0x113ba0,[_0x53b0bc(0x2f9)],_0x10bc18);const _0x48c78a=getValueByPath(_0x11a6ea,[_0x53b0bc(0x20c)]);_0x48c78a!=null&&setValueByPath(_0x113ba0,[_0x53b0bc(0x20c)],_0x48c78a);const _0x52ab24=getValueByPath(_0x11a6ea,[_0x53b0bc(0x5b4)]);_0x52ab24!=null&&setValueByPath(_0x113ba0,[_0x53b0bc(0x5b4)],_0x52ab24);const _0xeee14f=getValueByPath(_0x11a6ea,[_0x53b0bc(0x379)]);_0xeee14f!=null&&setValueByPath(_0x113ba0,[_0x53b0bc(0x379)],_0xeee14f);const _0x1d9b7a=getValueByPath(_0x11a6ea,[_0x53b0bc(0x238)]);if(_0x1d9b7a!=null){let _0x10785b=_0x1d9b7a;Array['isArray'](_0x10785b)&&(_0x10785b=_0x10785b[_0x53b0bc(0x68f)](_0x4bdfde=>{return _0x4bdfde;})),setValueByPath(_0x113ba0,[_0x53b0bc(0x238)],_0x10785b);}const _0x5448fa=getValueByPath(_0x11a6ea,['cacheTokensDetails']);if(_0x5448fa!=null){let _0x420a4b=_0x5448fa;Array[_0x53b0bc(0x49d)](_0x420a4b)&&(_0x420a4b=_0x420a4b[_0x53b0bc(0x68f)](_0x5d2e9c=>{return _0x5d2e9c;})),setValueByPath(_0x113ba0,[_0x53b0bc(0x67b)],_0x420a4b);}const _0x3263e5=getValueByPath(_0x11a6ea,[_0x53b0bc(0x39a)]);if(_0x3263e5!=null){let _0x2f8e58=_0x3263e5;Array[_0x53b0bc(0x49d)](_0x2f8e58)&&(_0x2f8e58=_0x2f8e58['map'](_0x17dee8=>{return _0x17dee8;})),setValueByPath(_0x113ba0,[_0x53b0bc(0x257)],_0x2f8e58);}const _0x3f80f8=getValueByPath(_0x11a6ea,[_0x53b0bc(0x4cf)]);if(_0x3f80f8!=null){let _0x45e41a=_0x3f80f8;Array['isArray'](_0x45e41a)&&(_0x45e41a=_0x45e41a[_0x53b0bc(0x68f)](_0x9f91da=>{return _0x9f91da;})),setValueByPath(_0x113ba0,['toolUsePromptTokensDetails'],_0x45e41a);}const _0x362f78=getValueByPath(_0x11a6ea,[_0x53b0bc(0x39d)]);return _0x362f78!=null&&setValueByPath(_0x113ba0,[_0x53b0bc(0x39d)],_0x362f78),_0x113ba0;}function voiceActivityFromVertex(_0x568624){const _0x7d300c=a6_0x51c1ef,_0x56113a={},_0x510926=getValueByPath(_0x568624,[_0x7d300c(0x506)]);return _0x510926!=null&&setValueByPath(_0x56113a,[_0x7d300c(0x52f)],_0x510926),_0x56113a;}/**
82
+ * @license
83
+ * Copyright 2025 Google LLC
84
+ * SPDX-License-Identifier: Apache-2.0
85
+ */
86
+ function blobToMldev$1(_0x2af365,_0x37e3b5){const _0x41c56e=a6_0x51c1ef,_0x823c49={},_0x394606=getValueByPath(_0x2af365,[_0x41c56e(0x18b)]);_0x394606!=null&&setValueByPath(_0x823c49,[_0x41c56e(0x18b)],_0x394606);if(getValueByPath(_0x2af365,[_0x41c56e(0x419)])!==undefined)throw new Error(_0x41c56e(0x28e));const _0x3c24e6=getValueByPath(_0x2af365,[_0x41c56e(0x1ac)]);return _0x3c24e6!=null&&setValueByPath(_0x823c49,[_0x41c56e(0x1ac)],_0x3c24e6),_0x823c49;}function candidateFromMldev(_0x563ca5,_0x103705){const _0x4f51a2=a6_0x51c1ef,_0x132bde={},_0x3f51ef=getValueByPath(_0x563ca5,[_0x4f51a2(0x479)]);_0x3f51ef!=null&&setValueByPath(_0x132bde,['content'],_0x3f51ef);const _0x465a66=getValueByPath(_0x563ca5,['citationMetadata']);_0x465a66!=null&&setValueByPath(_0x132bde,[_0x4f51a2(0x4e2)],citationMetadataFromMldev(_0x465a66));const _0xde403a=getValueByPath(_0x563ca5,['tokenCount']);_0xde403a!=null&&setValueByPath(_0x132bde,[_0x4f51a2(0x33b)],_0xde403a);const _0x3debcd=getValueByPath(_0x563ca5,[_0x4f51a2(0x1cb)]);_0x3debcd!=null&&setValueByPath(_0x132bde,['finishReason'],_0x3debcd);const _0x1654bd=getValueByPath(_0x563ca5,[_0x4f51a2(0x1f2)]);_0x1654bd!=null&&setValueByPath(_0x132bde,['avgLogprobs'],_0x1654bd);const _0x3354e6=getValueByPath(_0x563ca5,[_0x4f51a2(0x222)]);_0x3354e6!=null&&setValueByPath(_0x132bde,[_0x4f51a2(0x222)],_0x3354e6);const _0x36679a=getValueByPath(_0x563ca5,[_0x4f51a2(0x477)]);_0x36679a!=null&&setValueByPath(_0x132bde,[_0x4f51a2(0x477)],_0x36679a);const _0x178dc7=getValueByPath(_0x563ca5,['logprobsResult']);_0x178dc7!=null&&setValueByPath(_0x132bde,['logprobsResult'],_0x178dc7);const _0x2bcc7a=getValueByPath(_0x563ca5,[_0x4f51a2(0x662)]);if(_0x2bcc7a!=null){let _0x2d431e=_0x2bcc7a;Array[_0x4f51a2(0x49d)](_0x2d431e)&&(_0x2d431e=_0x2d431e['map'](_0x1b4717=>{return _0x1b4717;})),setValueByPath(_0x132bde,[_0x4f51a2(0x662)],_0x2d431e);}const _0x27df04=getValueByPath(_0x563ca5,[_0x4f51a2(0x4fa)]);return _0x27df04!=null&&setValueByPath(_0x132bde,[_0x4f51a2(0x4fa)],_0x27df04),_0x132bde;}function citationMetadataFromMldev(_0x7b6427,_0x555228){const _0x3af606=a6_0x51c1ef,_0x166d90={},_0x1418e0=getValueByPath(_0x7b6427,[_0x3af606(0x67e)]);if(_0x1418e0!=null){let _0x1adbd0=_0x1418e0;Array[_0x3af606(0x49d)](_0x1adbd0)&&(_0x1adbd0=_0x1adbd0[_0x3af606(0x68f)](_0x36e416=>{return _0x36e416;})),setValueByPath(_0x166d90,[_0x3af606(0x203)],_0x1adbd0);}return _0x166d90;}function computeTokensParametersToVertex(_0x416d78,_0x11e7ef,_0x136cbf){const _0x40c853=a6_0x51c1ef,_0x30cc3c={},_0x2295f3=getValueByPath(_0x11e7ef,['model']);_0x2295f3!=null&&setValueByPath(_0x30cc3c,[_0x40c853(0x2c1),_0x40c853(0x418)],tModel(_0x416d78,_0x2295f3));const _0x81eac7=getValueByPath(_0x11e7ef,[_0x40c853(0x5b9)]);if(_0x81eac7!=null){let _0x4325d9=tContents(_0x81eac7);Array[_0x40c853(0x49d)](_0x4325d9)&&(_0x4325d9=_0x4325d9[_0x40c853(0x68f)](_0x546b98=>{return _0x546b98;})),setValueByPath(_0x30cc3c,[_0x40c853(0x5b9)],_0x4325d9);}return _0x30cc3c;}function computeTokensResponseFromVertex(_0x45ec03,_0x45e154){const _0x1e5d2e=a6_0x51c1ef,_0x420550={},_0x338afc=getValueByPath(_0x45ec03,[_0x1e5d2e(0x344)]);_0x338afc!=null&&setValueByPath(_0x420550,['sdkHttpResponse'],_0x338afc);const _0x3f3640=getValueByPath(_0x45ec03,['tokensInfo']);if(_0x3f3640!=null){let _0x3a2328=_0x3f3640;Array[_0x1e5d2e(0x49d)](_0x3a2328)&&(_0x3a2328=_0x3a2328[_0x1e5d2e(0x68f)](_0x45db87=>{return _0x45db87;})),setValueByPath(_0x420550,['tokensInfo'],_0x3a2328);}return _0x420550;}function contentEmbeddingFromVertex(_0x3c68a6,_0x80067c){const _0x3ef226=a6_0x51c1ef,_0x2da725={},_0x418f45=getValueByPath(_0x3c68a6,[_0x3ef226(0x2a8)]);_0x418f45!=null&&setValueByPath(_0x2da725,[_0x3ef226(0x2a8)],_0x418f45);const _0x506369=getValueByPath(_0x3c68a6,[_0x3ef226(0x686)]);return _0x506369!=null&&setValueByPath(_0x2da725,[_0x3ef226(0x686)],contentEmbeddingStatisticsFromVertex(_0x506369)),_0x2da725;}function contentEmbeddingStatisticsFromVertex(_0x3a3d29,_0x2fc6fa){const _0x575ab2=a6_0x51c1ef,_0x4689ef={},_0x2abef2=getValueByPath(_0x3a3d29,[_0x575ab2(0x1b8)]);_0x2abef2!=null&&setValueByPath(_0x4689ef,[_0x575ab2(0x1b8)],_0x2abef2);const _0x33f4b8=getValueByPath(_0x3a3d29,['token_count']);return _0x33f4b8!=null&&setValueByPath(_0x4689ef,[_0x575ab2(0x33b)],_0x33f4b8),_0x4689ef;}function contentToMldev$1(_0x15cae3,_0x580913){const _0x5f3dc1=a6_0x51c1ef,_0x5e2790={},_0x135813=getValueByPath(_0x15cae3,[_0x5f3dc1(0x19f)]);if(_0x135813!=null){let _0xe8e824=_0x135813;Array['isArray'](_0xe8e824)&&(_0xe8e824=_0xe8e824[_0x5f3dc1(0x68f)](_0x237ca5=>{return partToMldev$1(_0x237ca5);})),setValueByPath(_0x5e2790,[_0x5f3dc1(0x19f)],_0xe8e824);}const _0x21ca27=getValueByPath(_0x15cae3,[_0x5f3dc1(0x407)]);return _0x21ca27!=null&&setValueByPath(_0x5e2790,['role'],_0x21ca27),_0x5e2790;}function controlReferenceConfigToVertex(_0x3dddf6,_0x10dc26){const _0x4ea58b=a6_0x51c1ef,_0x55b7c4={},_0x13b501=getValueByPath(_0x3dddf6,[_0x4ea58b(0x674)]);_0x13b501!=null&&setValueByPath(_0x55b7c4,['controlType'],_0x13b501);const _0x15b833=getValueByPath(_0x3dddf6,['enableControlImageComputation']);return _0x15b833!=null&&setValueByPath(_0x55b7c4,[_0x4ea58b(0x4be)],_0x15b833),_0x55b7c4;}function countTokensConfigToMldev(_0x37b7ab,_0x1cd1e8){const _0x24b28d=a6_0x51c1ef,_0xfe8810={};if(getValueByPath(_0x37b7ab,[_0x24b28d(0x22d)])!==undefined)throw new Error(_0x24b28d(0x46a));if(getValueByPath(_0x37b7ab,[_0x24b28d(0x269)])!==undefined)throw new Error(_0x24b28d(0x546));if(getValueByPath(_0x37b7ab,[_0x24b28d(0x177)])!==undefined)throw new Error(_0x24b28d(0x442));return _0xfe8810;}function countTokensConfigToVertex(_0x19451e,_0x54b644,_0x5ded15){const _0x11ffec=a6_0x51c1ef,_0x1ca057={},_0x73dded=getValueByPath(_0x19451e,['systemInstruction']);_0x54b644!==undefined&&_0x73dded!=null&&setValueByPath(_0x54b644,['systemInstruction'],tContent(_0x73dded));const _0x1a0495=getValueByPath(_0x19451e,['tools']);if(_0x54b644!==undefined&&_0x1a0495!=null){let _0x38134f=_0x1a0495;Array['isArray'](_0x38134f)&&(_0x38134f=_0x38134f[_0x11ffec(0x68f)](_0x213ce2=>{return toolToVertex(_0x213ce2);})),setValueByPath(_0x54b644,[_0x11ffec(0x269)],_0x38134f);}const _0x1a2363=getValueByPath(_0x19451e,[_0x11ffec(0x177)]);return _0x54b644!==undefined&&_0x1a2363!=null&&setValueByPath(_0x54b644,[_0x11ffec(0x177)],generationConfigToVertex(_0x1a2363)),_0x1ca057;}function countTokensParametersToMldev(_0xb438e9,_0xf02b66,_0x1d87cc){const _0x340cd9=a6_0x51c1ef,_0x53798e={},_0x286f39=getValueByPath(_0xf02b66,[_0x340cd9(0x418)]);_0x286f39!=null&&setValueByPath(_0x53798e,[_0x340cd9(0x2c1),_0x340cd9(0x418)],tModel(_0xb438e9,_0x286f39));const _0x1bb1b0=getValueByPath(_0xf02b66,['contents']);if(_0x1bb1b0!=null){let _0x52c05f=tContents(_0x1bb1b0);Array[_0x340cd9(0x49d)](_0x52c05f)&&(_0x52c05f=_0x52c05f[_0x340cd9(0x68f)](_0x2f9ba4=>{return contentToMldev$1(_0x2f9ba4);})),setValueByPath(_0x53798e,[_0x340cd9(0x5b9)],_0x52c05f);}const _0x14c240=getValueByPath(_0xf02b66,['config']);return _0x14c240!=null&&countTokensConfigToMldev(_0x14c240),_0x53798e;}function countTokensParametersToVertex(_0x979e7a,_0x1e643c,_0x31af31){const _0x550d64=a6_0x51c1ef,_0x239347={},_0x573706=getValueByPath(_0x1e643c,[_0x550d64(0x418)]);_0x573706!=null&&setValueByPath(_0x239347,[_0x550d64(0x2c1),'model'],tModel(_0x979e7a,_0x573706));const _0x5253c0=getValueByPath(_0x1e643c,[_0x550d64(0x5b9)]);if(_0x5253c0!=null){let _0x2bdf4f=tContents(_0x5253c0);Array[_0x550d64(0x49d)](_0x2bdf4f)&&(_0x2bdf4f=_0x2bdf4f['map'](_0x5905da=>{return _0x5905da;})),setValueByPath(_0x239347,[_0x550d64(0x5b9)],_0x2bdf4f);}const _0x4d666f=getValueByPath(_0x1e643c,[_0x550d64(0x66c)]);return _0x4d666f!=null&&countTokensConfigToVertex(_0x4d666f,_0x239347),_0x239347;}function countTokensResponseFromMldev(_0x4f2477,_0x4c6bc1){const _0x599b1c=a6_0x51c1ef,_0x35ebe5={},_0x1dac41=getValueByPath(_0x4f2477,[_0x599b1c(0x344)]);_0x1dac41!=null&&setValueByPath(_0x35ebe5,['sdkHttpResponse'],_0x1dac41);const _0x16ace2=getValueByPath(_0x4f2477,[_0x599b1c(0x550)]);_0x16ace2!=null&&setValueByPath(_0x35ebe5,['totalTokens'],_0x16ace2);const _0xd3cefc=getValueByPath(_0x4f2477,[_0x599b1c(0x4c4)]);return _0xd3cefc!=null&&setValueByPath(_0x35ebe5,['cachedContentTokenCount'],_0xd3cefc),_0x35ebe5;}function countTokensResponseFromVertex(_0x2b27a7,_0x554e08){const _0x2ae4a8=a6_0x51c1ef,_0x37e4a9={},_0x22a091=getValueByPath(_0x2b27a7,[_0x2ae4a8(0x344)]);_0x22a091!=null&&setValueByPath(_0x37e4a9,[_0x2ae4a8(0x344)],_0x22a091);const _0x2a4f3a=getValueByPath(_0x2b27a7,[_0x2ae4a8(0x550)]);return _0x2a4f3a!=null&&setValueByPath(_0x37e4a9,['totalTokens'],_0x2a4f3a),_0x37e4a9;}function deleteModelParametersToMldev(_0x2a8d44,_0x2f3fa9,_0x5ec193){const _0x159cd6=a6_0x51c1ef,_0x1c02ce={},_0x4feca5=getValueByPath(_0x2f3fa9,[_0x159cd6(0x418)]);return _0x4feca5!=null&&setValueByPath(_0x1c02ce,[_0x159cd6(0x2c1),'name'],tModel(_0x2a8d44,_0x4feca5)),_0x1c02ce;}function deleteModelParametersToVertex(_0x35c1c3,_0x132e00,_0x59d993){const _0x2275da=a6_0x51c1ef,_0x51eeb7={},_0x27484d=getValueByPath(_0x132e00,[_0x2275da(0x418)]);return _0x27484d!=null&&setValueByPath(_0x51eeb7,[_0x2275da(0x2c1),_0x2275da(0x558)],tModel(_0x35c1c3,_0x27484d)),_0x51eeb7;}function deleteModelResponseFromMldev(_0x40fada,_0x23b816){const _0x3167d2=a6_0x51c1ef,_0x53c5a8={},_0x8a137c=getValueByPath(_0x40fada,[_0x3167d2(0x344)]);return _0x8a137c!=null&&setValueByPath(_0x53c5a8,[_0x3167d2(0x344)],_0x8a137c),_0x53c5a8;}function deleteModelResponseFromVertex(_0xda06f3,_0x1c659e){const _0x2a7f9f=a6_0x51c1ef,_0x2ba8d0={},_0x199cad=getValueByPath(_0xda06f3,[_0x2a7f9f(0x344)]);return _0x199cad!=null&&setValueByPath(_0x2ba8d0,[_0x2a7f9f(0x344)],_0x199cad),_0x2ba8d0;}function editImageConfigToVertex(_0x184845,_0xf13359,_0x20d32c){const _0x22034b=a6_0x51c1ef,_0x40cb4f={},_0x1317d7=getValueByPath(_0x184845,[_0x22034b(0x361)]);_0xf13359!==undefined&&_0x1317d7!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),'storageUri'],_0x1317d7);const _0x2984a1=getValueByPath(_0x184845,[_0x22034b(0x450)]);_0xf13359!==undefined&&_0x2984a1!=null&&setValueByPath(_0xf13359,['parameters',_0x22034b(0x450)],_0x2984a1);const _0x19a466=getValueByPath(_0x184845,[_0x22034b(0x3de)]);_0xf13359!==undefined&&_0x19a466!=null&&setValueByPath(_0xf13359,['parameters',_0x22034b(0x3e6)],_0x19a466);const _0x307327=getValueByPath(_0x184845,[_0x22034b(0x655)]);_0xf13359!==undefined&&_0x307327!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x655)],_0x307327);const _0x53e601=getValueByPath(_0x184845,[_0x22034b(0x61a)]);_0xf13359!==undefined&&_0x53e601!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),'guidanceScale'],_0x53e601);const _0x9da703=getValueByPath(_0x184845,[_0x22034b(0x245)]);_0xf13359!==undefined&&_0x9da703!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x245)],_0x9da703);const _0x425724=getValueByPath(_0x184845,[_0x22034b(0x27f)]);_0xf13359!==undefined&&_0x425724!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x45c)],_0x425724);const _0x518a84=getValueByPath(_0x184845,[_0x22034b(0x346)]);_0xf13359!==undefined&&_0x518a84!=null&&setValueByPath(_0xf13359,['parameters',_0x22034b(0x346)],_0x518a84);const _0x86ff8=getValueByPath(_0x184845,[_0x22034b(0x1b9)]);_0xf13359!==undefined&&_0x86ff8!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x1b9)],_0x86ff8);const _0x2d2dcd=getValueByPath(_0x184845,['includeRaiReason']);_0xf13359!==undefined&&_0x2d2dcd!=null&&setValueByPath(_0xf13359,['parameters',_0x22034b(0x60f)],_0x2d2dcd);const _0x4b7aaf=getValueByPath(_0x184845,[_0x22034b(0x34b)]);_0xf13359!==undefined&&_0x4b7aaf!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x34b)],_0x4b7aaf);const _0x592264=getValueByPath(_0x184845,[_0x22034b(0x415)]);_0xf13359!==undefined&&_0x592264!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),'outputOptions',_0x22034b(0x1ac)],_0x592264);const _0x37cd96=getValueByPath(_0x184845,[_0x22034b(0x1a5)]);_0xf13359!==undefined&&_0x37cd96!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x3f9),_0x22034b(0x406)],_0x37cd96);const _0x283a90=getValueByPath(_0x184845,[_0x22034b(0x19a)]);_0xf13359!==undefined&&_0x283a90!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x19a)],_0x283a90);const _0x367ad1=getValueByPath(_0x184845,[_0x22034b(0x156)]);_0xf13359!==undefined&&_0x367ad1!=null&&setValueByPath(_0xf13359,[_0x22034b(0x156)],_0x367ad1);const _0xc4c85d=getValueByPath(_0x184845,['editMode']);_0xf13359!==undefined&&_0xc4c85d!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x4db)],_0xc4c85d);const _0x99dc0a=getValueByPath(_0x184845,['baseSteps']);return _0xf13359!==undefined&&_0x99dc0a!=null&&setValueByPath(_0xf13359,[_0x22034b(0x59e),_0x22034b(0x5e2),_0x22034b(0x670)],_0x99dc0a),_0x40cb4f;}function editImageParametersInternalToVertex(_0xf15773,_0x58981f,_0x222576){const _0x4436a1=a6_0x51c1ef,_0x4060dd={},_0x931a2c=getValueByPath(_0x58981f,[_0x4436a1(0x418)]);_0x931a2c!=null&&setValueByPath(_0x4060dd,[_0x4436a1(0x2c1),_0x4436a1(0x418)],tModel(_0xf15773,_0x931a2c));const _0x3ad203=getValueByPath(_0x58981f,[_0x4436a1(0x335)]);_0x3ad203!=null&&setValueByPath(_0x4060dd,[_0x4436a1(0x176),_0x4436a1(0x335)],_0x3ad203);const _0xc42a24=getValueByPath(_0x58981f,['referenceImages']);if(_0xc42a24!=null){let _0x4256e7=_0xc42a24;Array[_0x4436a1(0x49d)](_0x4256e7)&&(_0x4256e7=_0x4256e7[_0x4436a1(0x68f)](_0x1c3910=>{return referenceImageAPIInternalToVertex(_0x1c3910);})),setValueByPath(_0x4060dd,[_0x4436a1(0x176),_0x4436a1(0x3e3)],_0x4256e7);}const _0x192305=getValueByPath(_0x58981f,[_0x4436a1(0x66c)]);return _0x192305!=null&&editImageConfigToVertex(_0x192305,_0x4060dd),_0x4060dd;}function editImageResponseFromVertex(_0xf2ba2a,_0x46f0d4){const _0x5bf669=a6_0x51c1ef,_0x3cdedf={},_0x491293=getValueByPath(_0xf2ba2a,[_0x5bf669(0x344)]);_0x491293!=null&&setValueByPath(_0x3cdedf,['sdkHttpResponse'],_0x491293);const _0x18a46f=getValueByPath(_0xf2ba2a,[_0x5bf669(0x4e3)]);if(_0x18a46f!=null){let _0x58fb4e=_0x18a46f;Array[_0x5bf669(0x49d)](_0x58fb4e)&&(_0x58fb4e=_0x58fb4e[_0x5bf669(0x68f)](_0x1e6777=>{return generatedImageFromVertex(_0x1e6777);})),setValueByPath(_0x3cdedf,['generatedImages'],_0x58fb4e);}return _0x3cdedf;}function embedContentConfigToMldev(_0x5adf5c,_0x2ea45f,_0x4d57ae){const _0x12c6fa=a6_0x51c1ef,_0x1e3d6f={},_0x50ac81=getValueByPath(_0x5adf5c,[_0x12c6fa(0x172)]);_0x2ea45f!==undefined&&_0x50ac81!=null&&setValueByPath(_0x2ea45f,[_0x12c6fa(0x455),_0x12c6fa(0x172)],_0x50ac81);const _0x457a6a=getValueByPath(_0x5adf5c,[_0x12c6fa(0x354)]);_0x2ea45f!==undefined&&_0x457a6a!=null&&setValueByPath(_0x2ea45f,[_0x12c6fa(0x455),_0x12c6fa(0x354)],_0x457a6a);const _0x585b86=getValueByPath(_0x5adf5c,[_0x12c6fa(0x414)]);_0x2ea45f!==undefined&&_0x585b86!=null&&setValueByPath(_0x2ea45f,[_0x12c6fa(0x455),'outputDimensionality'],_0x585b86);if(getValueByPath(_0x5adf5c,[_0x12c6fa(0x1ac)])!==undefined)throw new Error(_0x12c6fa(0x58f));if(getValueByPath(_0x5adf5c,[_0x12c6fa(0x281)])!==undefined)throw new Error('autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x1e3d6f;}function embedContentConfigToVertex(_0x1557d2,_0xf43945,_0x4553e5){const _0x172ede=a6_0x51c1ef,_0x46a0e1={},_0x44fb52=getValueByPath(_0x1557d2,[_0x172ede(0x172)]);_0xf43945!==undefined&&_0x44fb52!=null&&setValueByPath(_0xf43945,[_0x172ede(0x52d),_0x172ede(0x21f)],_0x44fb52);const _0x10c8e6=getValueByPath(_0x1557d2,[_0x172ede(0x354)]);_0xf43945!==undefined&&_0x10c8e6!=null&&setValueByPath(_0xf43945,[_0x172ede(0x52d),_0x172ede(0x354)],_0x10c8e6);const _0x238883=getValueByPath(_0x1557d2,[_0x172ede(0x414)]);_0xf43945!==undefined&&_0x238883!=null&&setValueByPath(_0xf43945,[_0x172ede(0x59e),'outputDimensionality'],_0x238883);const _0x43280b=getValueByPath(_0x1557d2,[_0x172ede(0x1ac)]);_0xf43945!==undefined&&_0x43280b!=null&&setValueByPath(_0xf43945,[_0x172ede(0x52d),_0x172ede(0x1ac)],_0x43280b);const _0x3385f9=getValueByPath(_0x1557d2,[_0x172ede(0x281)]);return _0xf43945!==undefined&&_0x3385f9!=null&&setValueByPath(_0xf43945,[_0x172ede(0x59e),'autoTruncate'],_0x3385f9),_0x46a0e1;}function embedContentParametersToMldev(_0x28fe20,_0x652e9d,_0x2571b4){const _0x4a8cce=a6_0x51c1ef,_0x5292f7={},_0x5397b1=getValueByPath(_0x652e9d,[_0x4a8cce(0x418)]);_0x5397b1!=null&&setValueByPath(_0x5292f7,[_0x4a8cce(0x2c1),_0x4a8cce(0x418)],tModel(_0x28fe20,_0x5397b1));const _0x340f44=getValueByPath(_0x652e9d,[_0x4a8cce(0x5b9)]);if(_0x340f44!=null){let _0x2084b1=tContentsForEmbed(_0x28fe20,_0x340f44);Array[_0x4a8cce(0x49d)](_0x2084b1)&&(_0x2084b1=_0x2084b1['map'](_0x3d9fc9=>{return _0x3d9fc9;})),setValueByPath(_0x5292f7,[_0x4a8cce(0x455),_0x4a8cce(0x479)],_0x2084b1);}const _0x1ec37a=getValueByPath(_0x652e9d,[_0x4a8cce(0x66c)]);_0x1ec37a!=null&&embedContentConfigToMldev(_0x1ec37a,_0x5292f7);const _0xa831b9=getValueByPath(_0x652e9d,['model']);return _0xa831b9!==undefined&&setValueByPath(_0x5292f7,[_0x4a8cce(0x455),_0x4a8cce(0x418)],tModel(_0x28fe20,_0xa831b9)),_0x5292f7;}function embedContentParametersToVertex(_0x434caf,_0x33b8b9,_0x321b28){const _0x1f48f8=a6_0x51c1ef,_0xd515c9={},_0x92d193=getValueByPath(_0x33b8b9,[_0x1f48f8(0x418)]);_0x92d193!=null&&setValueByPath(_0xd515c9,[_0x1f48f8(0x2c1),_0x1f48f8(0x418)],tModel(_0x434caf,_0x92d193));const _0x3e9ff5=getValueByPath(_0x33b8b9,[_0x1f48f8(0x5b9)]);if(_0x3e9ff5!=null){let _0x3490f5=tContentsForEmbed(_0x434caf,_0x3e9ff5);Array[_0x1f48f8(0x49d)](_0x3490f5)&&(_0x3490f5=_0x3490f5[_0x1f48f8(0x68f)](_0x4201a4=>{return _0x4201a4;})),setValueByPath(_0xd515c9,[_0x1f48f8(0x52d),_0x1f48f8(0x479)],_0x3490f5);}const _0x43c623=getValueByPath(_0x33b8b9,[_0x1f48f8(0x66c)]);return _0x43c623!=null&&embedContentConfigToVertex(_0x43c623,_0xd515c9),_0xd515c9;}function embedContentResponseFromMldev(_0x14e8a0,_0x44c660){const _0x5d381b=a6_0x51c1ef,_0x437f29={},_0x2c6ce1=getValueByPath(_0x14e8a0,[_0x5d381b(0x344)]);_0x2c6ce1!=null&&setValueByPath(_0x437f29,['sdkHttpResponse'],_0x2c6ce1);const _0x4cd160=getValueByPath(_0x14e8a0,['embeddings']);if(_0x4cd160!=null){let _0x59f5d4=_0x4cd160;Array[_0x5d381b(0x49d)](_0x59f5d4)&&(_0x59f5d4=_0x59f5d4['map'](_0x489a99=>{return _0x489a99;})),setValueByPath(_0x437f29,[_0x5d381b(0x16e)],_0x59f5d4);}const _0x569019=getValueByPath(_0x14e8a0,[_0x5d381b(0x367)]);return _0x569019!=null&&setValueByPath(_0x437f29,['metadata'],_0x569019),_0x437f29;}function embedContentResponseFromVertex(_0x2fcff1,_0x4bc171){const _0x3be48b=a6_0x51c1ef,_0x598f0a={},_0x1a8ff4=getValueByPath(_0x2fcff1,['sdkHttpResponse']);_0x1a8ff4!=null&&setValueByPath(_0x598f0a,[_0x3be48b(0x344)],_0x1a8ff4);const _0x17442e=getValueByPath(_0x2fcff1,[_0x3be48b(0x28d),'embeddings']);if(_0x17442e!=null){let _0x4c72e5=_0x17442e;Array[_0x3be48b(0x49d)](_0x4c72e5)&&(_0x4c72e5=_0x4c72e5[_0x3be48b(0x68f)](_0x3cffc=>{return contentEmbeddingFromVertex(_0x3cffc);})),setValueByPath(_0x598f0a,['embeddings'],_0x4c72e5);}const _0x415dc3=getValueByPath(_0x2fcff1,[_0x3be48b(0x367)]);return _0x415dc3!=null&&setValueByPath(_0x598f0a,[_0x3be48b(0x367)],_0x415dc3),_0x598f0a;}function endpointFromVertex(_0x43e1cd,_0xe6d94e){const _0x2ea775=a6_0x51c1ef,_0x5e7e51={},_0x27efe3=getValueByPath(_0x43e1cd,[_0x2ea775(0x2da)]);_0x27efe3!=null&&setValueByPath(_0x5e7e51,[_0x2ea775(0x558)],_0x27efe3);const _0x15540e=getValueByPath(_0x43e1cd,[_0x2ea775(0x47f)]);return _0x15540e!=null&&setValueByPath(_0x5e7e51,[_0x2ea775(0x47f)],_0x15540e),_0x5e7e51;}function fileDataToMldev$1(_0x2eec0a,_0x290aab){const _0x5ac787=a6_0x51c1ef,_0x1bfa53={};if(getValueByPath(_0x2eec0a,['displayName'])!==undefined)throw new Error(_0x5ac787(0x28e));const _0x349823=getValueByPath(_0x2eec0a,[_0x5ac787(0x316)]);_0x349823!=null&&setValueByPath(_0x1bfa53,[_0x5ac787(0x316)],_0x349823);const _0x5d5cc9=getValueByPath(_0x2eec0a,[_0x5ac787(0x1ac)]);return _0x5d5cc9!=null&&setValueByPath(_0x1bfa53,[_0x5ac787(0x1ac)],_0x5d5cc9),_0x1bfa53;}function functionCallToMldev$1(_0x21d22c,_0x4265cb){const _0xc9b880=a6_0x51c1ef,_0x3966e7={},_0x243a3c=getValueByPath(_0x21d22c,['id']);_0x243a3c!=null&&setValueByPath(_0x3966e7,['id'],_0x243a3c);const _0xbb5f5=getValueByPath(_0x21d22c,[_0xc9b880(0x5cb)]);_0xbb5f5!=null&&setValueByPath(_0x3966e7,[_0xc9b880(0x5cb)],_0xbb5f5);const _0x1ca5ac=getValueByPath(_0x21d22c,[_0xc9b880(0x558)]);_0x1ca5ac!=null&&setValueByPath(_0x3966e7,[_0xc9b880(0x558)],_0x1ca5ac);if(getValueByPath(_0x21d22c,[_0xc9b880(0x381)])!==undefined)throw new Error(_0xc9b880(0x221));if(getValueByPath(_0x21d22c,[_0xc9b880(0x513)])!==undefined)throw new Error('willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x3966e7;}function functionCallingConfigToMldev(_0x36a1a0,_0x19c683){const _0x17829d=a6_0x51c1ef,_0x58f541={},_0x55763a=getValueByPath(_0x36a1a0,[_0x17829d(0x30f)]);_0x55763a!=null&&setValueByPath(_0x58f541,[_0x17829d(0x30f)],_0x55763a);const _0x48a139=getValueByPath(_0x36a1a0,[_0x17829d(0x1c2)]);_0x48a139!=null&&setValueByPath(_0x58f541,['mode'],_0x48a139);if(getValueByPath(_0x36a1a0,[_0x17829d(0x647)])!==undefined)throw new Error(_0x17829d(0x3ba));return _0x58f541;}function functionDeclarationToVertex(_0x2f66eb,_0x1178d1){const _0x542d30=a6_0x51c1ef,_0x469fdb={},_0x4f143a=getValueByPath(_0x2f66eb,['description']);_0x4f143a!=null&&setValueByPath(_0x469fdb,[_0x542d30(0x464)],_0x4f143a);const _0x21d70f=getValueByPath(_0x2f66eb,['name']);_0x21d70f!=null&&setValueByPath(_0x469fdb,[_0x542d30(0x558)],_0x21d70f);const _0x5543f2=getValueByPath(_0x2f66eb,[_0x542d30(0x59e)]);_0x5543f2!=null&&setValueByPath(_0x469fdb,[_0x542d30(0x59e)],_0x5543f2);const _0x3ee0a9=getValueByPath(_0x2f66eb,['parametersJsonSchema']);_0x3ee0a9!=null&&setValueByPath(_0x469fdb,[_0x542d30(0x16b)],_0x3ee0a9);const _0x3948bf=getValueByPath(_0x2f66eb,[_0x542d30(0x603)]);_0x3948bf!=null&&setValueByPath(_0x469fdb,[_0x542d30(0x603)],_0x3948bf);const _0x4c9f79=getValueByPath(_0x2f66eb,[_0x542d30(0x2d5)]);_0x4c9f79!=null&&setValueByPath(_0x469fdb,[_0x542d30(0x2d5)],_0x4c9f79);if(getValueByPath(_0x2f66eb,['behavior'])!==undefined)throw new Error(_0x542d30(0x5a2));return _0x469fdb;}function generateContentConfigToMldev(_0x493fd3,_0x1a84f1,_0x12c830,_0x4cbf98){const _0x3a8764=a6_0x51c1ef,_0x26d6e7={},_0x9cf58b=getValueByPath(_0x1a84f1,[_0x3a8764(0x22d)]);_0x12c830!==undefined&&_0x9cf58b!=null&&setValueByPath(_0x12c830,[_0x3a8764(0x22d)],contentToMldev$1(tContent(_0x9cf58b)));const _0x5edf72=getValueByPath(_0x1a84f1,[_0x3a8764(0x689)]);_0x5edf72!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x689)],_0x5edf72);const _0x308a14=getValueByPath(_0x1a84f1,[_0x3a8764(0x465)]);_0x308a14!=null&&setValueByPath(_0x26d6e7,['topP'],_0x308a14);const _0x4f4cb3=getValueByPath(_0x1a84f1,['topK']);_0x4f4cb3!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x3ca)],_0x4f4cb3);const _0x46bd00=getValueByPath(_0x1a84f1,[_0x3a8764(0x4af)]);_0x46bd00!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x4af)],_0x46bd00);const _0x2a43b7=getValueByPath(_0x1a84f1,[_0x3a8764(0x378)]);_0x2a43b7!=null&&setValueByPath(_0x26d6e7,['maxOutputTokens'],_0x2a43b7);const _0x5842fb=getValueByPath(_0x1a84f1,[_0x3a8764(0x29d)]);_0x5842fb!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x29d)],_0x5842fb);const _0x2a1ecc=getValueByPath(_0x1a84f1,[_0x3a8764(0x205)]);_0x2a1ecc!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x205)],_0x2a1ecc);const _0x19f5cd=getValueByPath(_0x1a84f1,[_0x3a8764(0x57a)]);_0x19f5cd!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x57a)],_0x19f5cd);const _0x175d3f=getValueByPath(_0x1a84f1,[_0x3a8764(0x3b2)]);_0x175d3f!=null&&setValueByPath(_0x26d6e7,['presencePenalty'],_0x175d3f);const _0x415988=getValueByPath(_0x1a84f1,[_0x3a8764(0x5c2)]);_0x415988!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x5c2)],_0x415988);const _0xff80ae=getValueByPath(_0x1a84f1,[_0x3a8764(0x245)]);_0xff80ae!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x245)],_0xff80ae);const _0x44babf=getValueByPath(_0x1a84f1,[_0x3a8764(0x496)]);_0x44babf!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x496)],_0x44babf);const _0x4ec991=getValueByPath(_0x1a84f1,[_0x3a8764(0x1a4)]);_0x4ec991!=null&&setValueByPath(_0x26d6e7,['responseSchema'],tSchema(_0x4ec991));const _0xf8fd78=getValueByPath(_0x1a84f1,[_0x3a8764(0x2d5)]);_0xf8fd78!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x2d5)],_0xf8fd78);if(getValueByPath(_0x1a84f1,['routingConfig'])!==undefined)throw new Error(_0x3a8764(0x3ef));if(getValueByPath(_0x1a84f1,['modelSelectionConfig'])!==undefined)throw new Error(_0x3a8764(0x54a));const _0xbf0e91=getValueByPath(_0x1a84f1,[_0x3a8764(0x500)]);if(_0x12c830!==undefined&&_0xbf0e91!=null){let _0xf5b536=_0xbf0e91;Array[_0x3a8764(0x49d)](_0xf5b536)&&(_0xf5b536=_0xf5b536[_0x3a8764(0x68f)](_0x3b888b=>{return safetySettingToMldev(_0x3b888b);})),setValueByPath(_0x12c830,[_0x3a8764(0x500)],_0xf5b536);}const _0x460c33=getValueByPath(_0x1a84f1,[_0x3a8764(0x269)]);if(_0x12c830!==undefined&&_0x460c33!=null){let _0x3d7dd9=tTools(_0x460c33);Array[_0x3a8764(0x49d)](_0x3d7dd9)&&(_0x3d7dd9=_0x3d7dd9[_0x3a8764(0x68f)](_0x44b1d5=>{return toolToMldev$1(tTool(_0x44b1d5));})),setValueByPath(_0x12c830,[_0x3a8764(0x269)],_0x3d7dd9);}const _0x5aa493=getValueByPath(_0x1a84f1,['toolConfig']);_0x12c830!==undefined&&_0x5aa493!=null&&setValueByPath(_0x12c830,[_0x3a8764(0x334)],toolConfigToMldev(_0x5aa493));if(getValueByPath(_0x1a84f1,[_0x3a8764(0x156)])!==undefined)throw new Error(_0x3a8764(0x4aa));const _0x26e040=getValueByPath(_0x1a84f1,[_0x3a8764(0x488)]);_0x12c830!==undefined&&_0x26e040!=null&&setValueByPath(_0x12c830,[_0x3a8764(0x488)],tCachedContentName(_0x493fd3,_0x26e040));const _0xd95e59=getValueByPath(_0x1a84f1,[_0x3a8764(0x4a3)]);_0xd95e59!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x4a3)],_0xd95e59);const _0x328b09=getValueByPath(_0x1a84f1,[_0x3a8764(0x615)]);_0x328b09!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x615)],_0x328b09);const _0x289ddc=getValueByPath(_0x1a84f1,[_0x3a8764(0x241)]);_0x289ddc!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x241)],tSpeechConfig(_0x289ddc));if(getValueByPath(_0x1a84f1,[_0x3a8764(0x3f6)])!==undefined)throw new Error(_0x3a8764(0x61c));const _0x460763=getValueByPath(_0x1a84f1,[_0x3a8764(0x497)]);_0x460763!=null&&setValueByPath(_0x26d6e7,[_0x3a8764(0x497)],_0x460763);const _0x3495c0=getValueByPath(_0x1a84f1,[_0x3a8764(0x397)]);_0x3495c0!=null&&setValueByPath(_0x26d6e7,['imageConfig'],imageConfigToMldev(_0x3495c0));const _0x4359de=getValueByPath(_0x1a84f1,[_0x3a8764(0x3ad)]);_0x4359de!=null&&setValueByPath(_0x26d6e7,['enableEnhancedCivicAnswers'],_0x4359de);if(getValueByPath(_0x1a84f1,[_0x3a8764(0x306)])!==undefined)throw new Error('modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x26d6e7;}function generateContentConfigToVertex(_0x3af70e,_0x4742f2,_0x32a3bd,_0x3bfe21){const _0x58dff9=a6_0x51c1ef,_0x2d89fd={},_0xb78237=getValueByPath(_0x4742f2,['systemInstruction']);_0x32a3bd!==undefined&&_0xb78237!=null&&setValueByPath(_0x32a3bd,[_0x58dff9(0x22d)],tContent(_0xb78237));const _0x264052=getValueByPath(_0x4742f2,[_0x58dff9(0x689)]);_0x264052!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x689)],_0x264052);const _0x270706=getValueByPath(_0x4742f2,[_0x58dff9(0x465)]);_0x270706!=null&&setValueByPath(_0x2d89fd,['topP'],_0x270706);const _0x1dc464=getValueByPath(_0x4742f2,[_0x58dff9(0x3ca)]);_0x1dc464!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x3ca)],_0x1dc464);const _0x304ca2=getValueByPath(_0x4742f2,['candidateCount']);_0x304ca2!=null&&setValueByPath(_0x2d89fd,['candidateCount'],_0x304ca2);const _0x592c11=getValueByPath(_0x4742f2,[_0x58dff9(0x378)]);_0x592c11!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x378)],_0x592c11);const _0x42156d=getValueByPath(_0x4742f2,[_0x58dff9(0x29d)]);_0x42156d!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x29d)],_0x42156d);const _0x229f57=getValueByPath(_0x4742f2,[_0x58dff9(0x205)]);_0x229f57!=null&&setValueByPath(_0x2d89fd,['responseLogprobs'],_0x229f57);const _0x28570f=getValueByPath(_0x4742f2,['logprobs']);_0x28570f!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x57a)],_0x28570f);const _0x2af836=getValueByPath(_0x4742f2,[_0x58dff9(0x3b2)]);_0x2af836!=null&&setValueByPath(_0x2d89fd,['presencePenalty'],_0x2af836);const _0x3538db=getValueByPath(_0x4742f2,[_0x58dff9(0x5c2)]);_0x3538db!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x5c2)],_0x3538db);const _0xa2cd1e=getValueByPath(_0x4742f2,[_0x58dff9(0x245)]);_0xa2cd1e!=null&&setValueByPath(_0x2d89fd,['seed'],_0xa2cd1e);const _0x5ea50d=getValueByPath(_0x4742f2,['responseMimeType']);_0x5ea50d!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x496)],_0x5ea50d);const _0x393dcf=getValueByPath(_0x4742f2,[_0x58dff9(0x1a4)]);_0x393dcf!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x1a4)],tSchema(_0x393dcf));const _0x11fc6c=getValueByPath(_0x4742f2,[_0x58dff9(0x2d5)]);_0x11fc6c!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x2d5)],_0x11fc6c);const _0x43ba8a=getValueByPath(_0x4742f2,[_0x58dff9(0x317)]);_0x43ba8a!=null&&setValueByPath(_0x2d89fd,['routingConfig'],_0x43ba8a);const _0xc8c91a=getValueByPath(_0x4742f2,['modelSelectionConfig']);_0xc8c91a!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x231)],_0xc8c91a);const _0x4227af=getValueByPath(_0x4742f2,['safetySettings']);if(_0x32a3bd!==undefined&&_0x4227af!=null){let _0x3c20a7=_0x4227af;Array[_0x58dff9(0x49d)](_0x3c20a7)&&(_0x3c20a7=_0x3c20a7[_0x58dff9(0x68f)](_0x4cec13=>{return _0x4cec13;})),setValueByPath(_0x32a3bd,['safetySettings'],_0x3c20a7);}const _0x134c00=getValueByPath(_0x4742f2,[_0x58dff9(0x269)]);if(_0x32a3bd!==undefined&&_0x134c00!=null){let _0x3fb717=tTools(_0x134c00);Array[_0x58dff9(0x49d)](_0x3fb717)&&(_0x3fb717=_0x3fb717[_0x58dff9(0x68f)](_0x16d7ff=>{return toolToVertex(tTool(_0x16d7ff));})),setValueByPath(_0x32a3bd,[_0x58dff9(0x269)],_0x3fb717);}const _0x4812a9=getValueByPath(_0x4742f2,['toolConfig']);_0x32a3bd!==undefined&&_0x4812a9!=null&&setValueByPath(_0x32a3bd,[_0x58dff9(0x334)],_0x4812a9);const _0x51bb8e=getValueByPath(_0x4742f2,['labels']);_0x32a3bd!==undefined&&_0x51bb8e!=null&&setValueByPath(_0x32a3bd,[_0x58dff9(0x156)],_0x51bb8e);const _0x5387e5=getValueByPath(_0x4742f2,[_0x58dff9(0x488)]);_0x32a3bd!==undefined&&_0x5387e5!=null&&setValueByPath(_0x32a3bd,['cachedContent'],tCachedContentName(_0x3af70e,_0x5387e5));const _0x485101=getValueByPath(_0x4742f2,[_0x58dff9(0x4a3)]);_0x485101!=null&&setValueByPath(_0x2d89fd,['responseModalities'],_0x485101);const _0x5c5b7f=getValueByPath(_0x4742f2,['mediaResolution']);_0x5c5b7f!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x615)],_0x5c5b7f);const _0x944f4d=getValueByPath(_0x4742f2,['speechConfig']);_0x944f4d!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x241)],tSpeechConfig(_0x944f4d));const _0x2ec204=getValueByPath(_0x4742f2,[_0x58dff9(0x3f6)]);_0x2ec204!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x3f6)],_0x2ec204);const _0x2f4101=getValueByPath(_0x4742f2,[_0x58dff9(0x497)]);_0x2f4101!=null&&setValueByPath(_0x2d89fd,['thinkingConfig'],_0x2f4101);const _0xdc8f06=getValueByPath(_0x4742f2,[_0x58dff9(0x397)]);_0xdc8f06!=null&&setValueByPath(_0x2d89fd,[_0x58dff9(0x397)],imageConfigToVertex(_0xdc8f06));if(getValueByPath(_0x4742f2,[_0x58dff9(0x3ad)])!==undefined)throw new Error(_0x58dff9(0x505));const _0x2c2eed=getValueByPath(_0x4742f2,[_0x58dff9(0x306)]);return _0x32a3bd!==undefined&&_0x2c2eed!=null&&setValueByPath(_0x32a3bd,[_0x58dff9(0x306)],_0x2c2eed),_0x2d89fd;}function generateContentParametersToMldev(_0x26299b,_0x4a773f,_0x13d3ca){const _0x427bbb=a6_0x51c1ef,_0x22f019={},_0x53fed1=getValueByPath(_0x4a773f,[_0x427bbb(0x418)]);_0x53fed1!=null&&setValueByPath(_0x22f019,[_0x427bbb(0x2c1),_0x427bbb(0x418)],tModel(_0x26299b,_0x53fed1));const _0x497400=getValueByPath(_0x4a773f,[_0x427bbb(0x5b9)]);if(_0x497400!=null){let _0x2a1ef1=tContents(_0x497400);Array[_0x427bbb(0x49d)](_0x2a1ef1)&&(_0x2a1ef1=_0x2a1ef1[_0x427bbb(0x68f)](_0x197587=>{return contentToMldev$1(_0x197587);})),setValueByPath(_0x22f019,[_0x427bbb(0x5b9)],_0x2a1ef1);}const _0x40d91c=getValueByPath(_0x4a773f,[_0x427bbb(0x66c)]);return _0x40d91c!=null&&setValueByPath(_0x22f019,['generationConfig'],generateContentConfigToMldev(_0x26299b,_0x40d91c,_0x22f019)),_0x22f019;}function generateContentParametersToVertex(_0x11a1e0,_0x589ee3,_0x3d7d2b){const _0x2de056=a6_0x51c1ef,_0x1a5d90={},_0xc1c557=getValueByPath(_0x589ee3,[_0x2de056(0x418)]);_0xc1c557!=null&&setValueByPath(_0x1a5d90,[_0x2de056(0x2c1),_0x2de056(0x418)],tModel(_0x11a1e0,_0xc1c557));const _0x33ddf1=getValueByPath(_0x589ee3,['contents']);if(_0x33ddf1!=null){let _0x4eebdb=tContents(_0x33ddf1);Array[_0x2de056(0x49d)](_0x4eebdb)&&(_0x4eebdb=_0x4eebdb[_0x2de056(0x68f)](_0x3e936b=>{return _0x3e936b;})),setValueByPath(_0x1a5d90,[_0x2de056(0x5b9)],_0x4eebdb);}const _0x231c10=getValueByPath(_0x589ee3,[_0x2de056(0x66c)]);return _0x231c10!=null&&setValueByPath(_0x1a5d90,[_0x2de056(0x177)],generateContentConfigToVertex(_0x11a1e0,_0x231c10,_0x1a5d90)),_0x1a5d90;}function generateContentResponseFromMldev(_0x378e2c,_0x47ac26){const _0x36d4cc=a6_0x51c1ef,_0x396881={},_0x175cdd=getValueByPath(_0x378e2c,['sdkHttpResponse']);_0x175cdd!=null&&setValueByPath(_0x396881,[_0x36d4cc(0x344)],_0x175cdd);const _0x14d212=getValueByPath(_0x378e2c,[_0x36d4cc(0x410)]);if(_0x14d212!=null){let _0xce1b66=_0x14d212;Array['isArray'](_0xce1b66)&&(_0xce1b66=_0xce1b66[_0x36d4cc(0x68f)](_0x282349=>{return candidateFromMldev(_0x282349);})),setValueByPath(_0x396881,[_0x36d4cc(0x410)],_0xce1b66);}const _0x2e0d15=getValueByPath(_0x378e2c,[_0x36d4cc(0x25a)]);_0x2e0d15!=null&&setValueByPath(_0x396881,[_0x36d4cc(0x25a)],_0x2e0d15);const _0x58b689=getValueByPath(_0x378e2c,[_0x36d4cc(0x63d)]);_0x58b689!=null&&setValueByPath(_0x396881,['promptFeedback'],_0x58b689);const _0x21eb6e=getValueByPath(_0x378e2c,['responseId']);_0x21eb6e!=null&&setValueByPath(_0x396881,[_0x36d4cc(0x249)],_0x21eb6e);const _0x5e7cb1=getValueByPath(_0x378e2c,[_0x36d4cc(0x474)]);return _0x5e7cb1!=null&&setValueByPath(_0x396881,[_0x36d4cc(0x474)],_0x5e7cb1),_0x396881;}function generateContentResponseFromVertex(_0x28ce6d,_0x5713ec){const _0x3159bc=a6_0x51c1ef,_0x4e96e1={},_0x36e77c=getValueByPath(_0x28ce6d,['sdkHttpResponse']);_0x36e77c!=null&&setValueByPath(_0x4e96e1,[_0x3159bc(0x344)],_0x36e77c);const _0x122f15=getValueByPath(_0x28ce6d,[_0x3159bc(0x410)]);if(_0x122f15!=null){let _0x8079fb=_0x122f15;Array[_0x3159bc(0x49d)](_0x8079fb)&&(_0x8079fb=_0x8079fb[_0x3159bc(0x68f)](_0x5e0cc4=>{return _0x5e0cc4;})),setValueByPath(_0x4e96e1,[_0x3159bc(0x410)],_0x8079fb);}const _0x36a8ef=getValueByPath(_0x28ce6d,[_0x3159bc(0x5c5)]);_0x36a8ef!=null&&setValueByPath(_0x4e96e1,[_0x3159bc(0x5c5)],_0x36a8ef);const _0x9dcadd=getValueByPath(_0x28ce6d,[_0x3159bc(0x25a)]);_0x9dcadd!=null&&setValueByPath(_0x4e96e1,[_0x3159bc(0x25a)],_0x9dcadd);const _0x3ee1fe=getValueByPath(_0x28ce6d,['promptFeedback']);_0x3ee1fe!=null&&setValueByPath(_0x4e96e1,[_0x3159bc(0x63d)],_0x3ee1fe);const _0x307482=getValueByPath(_0x28ce6d,[_0x3159bc(0x249)]);_0x307482!=null&&setValueByPath(_0x4e96e1,[_0x3159bc(0x249)],_0x307482);const _0x474c66=getValueByPath(_0x28ce6d,[_0x3159bc(0x474)]);return _0x474c66!=null&&setValueByPath(_0x4e96e1,[_0x3159bc(0x474)],_0x474c66),_0x4e96e1;}function generateImagesConfigToMldev(_0x21c07e,_0xef2300,_0x55300d){const _0x49362e=a6_0x51c1ef,_0x198044={};if(getValueByPath(_0x21c07e,[_0x49362e(0x361)])!==undefined)throw new Error(_0x49362e(0x5ac));if(getValueByPath(_0x21c07e,[_0x49362e(0x450)])!==undefined)throw new Error(_0x49362e(0x27e));const _0x31b02c=getValueByPath(_0x21c07e,[_0x49362e(0x3de)]);_0xef2300!==undefined&&_0x31b02c!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),'sampleCount'],_0x31b02c);const _0x503607=getValueByPath(_0x21c07e,[_0x49362e(0x655)]);_0xef2300!==undefined&&_0x503607!=null&&setValueByPath(_0xef2300,['parameters','aspectRatio'],_0x503607);const _0x268a4f=getValueByPath(_0x21c07e,[_0x49362e(0x61a)]);_0xef2300!==undefined&&_0x268a4f!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),'guidanceScale'],_0x268a4f);if(getValueByPath(_0x21c07e,[_0x49362e(0x245)])!==undefined)throw new Error(_0x49362e(0x188));const _0x4d6454=getValueByPath(_0x21c07e,[_0x49362e(0x27f)]);_0xef2300!==undefined&&_0x4d6454!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),_0x49362e(0x45c)],_0x4d6454);const _0x3a9a4e=getValueByPath(_0x21c07e,[_0x49362e(0x346)]);_0xef2300!==undefined&&_0x3a9a4e!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),_0x49362e(0x346)],_0x3a9a4e);const _0x3a9278=getValueByPath(_0x21c07e,['includeSafetyAttributes']);_0xef2300!==undefined&&_0x3a9278!=null&&setValueByPath(_0xef2300,['parameters',_0x49362e(0x1b9)],_0x3a9278);const _0x24f266=getValueByPath(_0x21c07e,[_0x49362e(0x60f)]);_0xef2300!==undefined&&_0x24f266!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),'includeRaiReason'],_0x24f266);const _0x260c3d=getValueByPath(_0x21c07e,[_0x49362e(0x34b)]);_0xef2300!==undefined&&_0x260c3d!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),'language'],_0x260c3d);const _0x2e3e77=getValueByPath(_0x21c07e,[_0x49362e(0x415)]);_0xef2300!==undefined&&_0x2e3e77!=null&&setValueByPath(_0xef2300,['parameters',_0x49362e(0x3f9),_0x49362e(0x1ac)],_0x2e3e77);const _0x2d3fbe=getValueByPath(_0x21c07e,[_0x49362e(0x1a5)]);_0xef2300!==undefined&&_0x2d3fbe!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),'outputOptions',_0x49362e(0x406)],_0x2d3fbe);if(getValueByPath(_0x21c07e,['addWatermark'])!==undefined)throw new Error(_0x49362e(0x312));if(getValueByPath(_0x21c07e,[_0x49362e(0x156)])!==undefined)throw new Error(_0x49362e(0x4aa));const _0x2694a5=getValueByPath(_0x21c07e,['imageSize']);_0xef2300!==undefined&&_0x2694a5!=null&&setValueByPath(_0xef2300,[_0x49362e(0x59e),_0x49362e(0x469)],_0x2694a5);if(getValueByPath(_0x21c07e,[_0x49362e(0x1fb)])!==undefined)throw new Error(_0x49362e(0x638));return _0x198044;}function generateImagesConfigToVertex(_0x2fc559,_0x588df9,_0x461a9c){const _0x325258=a6_0x51c1ef,_0x46a210={},_0x46ca10=getValueByPath(_0x2fc559,[_0x325258(0x361)]);_0x588df9!==undefined&&_0x46ca10!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),'storageUri'],_0x46ca10);const _0x29c48b=getValueByPath(_0x2fc559,[_0x325258(0x450)]);_0x588df9!==undefined&&_0x29c48b!=null&&setValueByPath(_0x588df9,['parameters',_0x325258(0x450)],_0x29c48b);const _0x3c7818=getValueByPath(_0x2fc559,[_0x325258(0x3de)]);_0x588df9!==undefined&&_0x3c7818!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x3e6)],_0x3c7818);const _0x5a68a5=getValueByPath(_0x2fc559,[_0x325258(0x655)]);_0x588df9!==undefined&&_0x5a68a5!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),'aspectRatio'],_0x5a68a5);const _0x83b435=getValueByPath(_0x2fc559,[_0x325258(0x61a)]);_0x588df9!==undefined&&_0x83b435!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x61a)],_0x83b435);const _0x5b71ee=getValueByPath(_0x2fc559,[_0x325258(0x245)]);_0x588df9!==undefined&&_0x5b71ee!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x245)],_0x5b71ee);const _0x4b428b=getValueByPath(_0x2fc559,[_0x325258(0x27f)]);_0x588df9!==undefined&&_0x4b428b!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x45c)],_0x4b428b);const _0x2e78e1=getValueByPath(_0x2fc559,[_0x325258(0x346)]);_0x588df9!==undefined&&_0x2e78e1!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x346)],_0x2e78e1);const _0x87cf44=getValueByPath(_0x2fc559,[_0x325258(0x1b9)]);_0x588df9!==undefined&&_0x87cf44!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x1b9)],_0x87cf44);const _0x89d018=getValueByPath(_0x2fc559,[_0x325258(0x60f)]);_0x588df9!==undefined&&_0x89d018!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x60f)],_0x89d018);const _0x351022=getValueByPath(_0x2fc559,[_0x325258(0x34b)]);_0x588df9!==undefined&&_0x351022!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),_0x325258(0x34b)],_0x351022);const _0x24f898=getValueByPath(_0x2fc559,[_0x325258(0x415)]);_0x588df9!==undefined&&_0x24f898!=null&&setValueByPath(_0x588df9,['parameters','outputOptions',_0x325258(0x1ac)],_0x24f898);const _0x4cdd34=getValueByPath(_0x2fc559,[_0x325258(0x1a5)]);_0x588df9!==undefined&&_0x4cdd34!=null&&setValueByPath(_0x588df9,['parameters',_0x325258(0x3f9),'compressionQuality'],_0x4cdd34);const _0x87d46b=getValueByPath(_0x2fc559,[_0x325258(0x19a)]);_0x588df9!==undefined&&_0x87d46b!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),'addWatermark'],_0x87d46b);const _0x69157f=getValueByPath(_0x2fc559,[_0x325258(0x156)]);_0x588df9!==undefined&&_0x69157f!=null&&setValueByPath(_0x588df9,[_0x325258(0x156)],_0x69157f);const _0x1a9b90=getValueByPath(_0x2fc559,[_0x325258(0x2ed)]);_0x588df9!==undefined&&_0x1a9b90!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),'sampleImageSize'],_0x1a9b90);const _0x28fe7a=getValueByPath(_0x2fc559,[_0x325258(0x1fb)]);return _0x588df9!==undefined&&_0x28fe7a!=null&&setValueByPath(_0x588df9,[_0x325258(0x59e),'enhancePrompt'],_0x28fe7a),_0x46a210;}function generateImagesParametersToMldev(_0x353807,_0x4fc4a4,_0x5c5282){const _0x6fbd7=a6_0x51c1ef,_0x1d62d4={},_0x3965b7=getValueByPath(_0x4fc4a4,[_0x6fbd7(0x418)]);_0x3965b7!=null&&setValueByPath(_0x1d62d4,[_0x6fbd7(0x2c1),_0x6fbd7(0x418)],tModel(_0x353807,_0x3965b7));const _0x5c8200=getValueByPath(_0x4fc4a4,[_0x6fbd7(0x335)]);_0x5c8200!=null&&setValueByPath(_0x1d62d4,['instances[0]',_0x6fbd7(0x335)],_0x5c8200);const _0x2f593b=getValueByPath(_0x4fc4a4,[_0x6fbd7(0x66c)]);return _0x2f593b!=null&&generateImagesConfigToMldev(_0x2f593b,_0x1d62d4),_0x1d62d4;}function generateImagesParametersToVertex(_0x2cd5ce,_0x4e3f6b,_0xdf649b){const _0x5cf837=a6_0x51c1ef,_0x465ce4={},_0x356b7d=getValueByPath(_0x4e3f6b,[_0x5cf837(0x418)]);_0x356b7d!=null&&setValueByPath(_0x465ce4,['_url','model'],tModel(_0x2cd5ce,_0x356b7d));const _0x106cfa=getValueByPath(_0x4e3f6b,['prompt']);_0x106cfa!=null&&setValueByPath(_0x465ce4,['instances[0]',_0x5cf837(0x335)],_0x106cfa);const _0x4c5b78=getValueByPath(_0x4e3f6b,[_0x5cf837(0x66c)]);return _0x4c5b78!=null&&generateImagesConfigToVertex(_0x4c5b78,_0x465ce4),_0x465ce4;}function generateImagesResponseFromMldev(_0x17e3b3,_0x281f1c){const _0x2c710e=a6_0x51c1ef,_0x4bfc95={},_0x2a0b10=getValueByPath(_0x17e3b3,[_0x2c710e(0x344)]);_0x2a0b10!=null&&setValueByPath(_0x4bfc95,[_0x2c710e(0x344)],_0x2a0b10);const _0x2d0e21=getValueByPath(_0x17e3b3,['predictions']);if(_0x2d0e21!=null){let _0x4fd524=_0x2d0e21;Array[_0x2c710e(0x49d)](_0x4fd524)&&(_0x4fd524=_0x4fd524[_0x2c710e(0x68f)](_0x3a4cb2=>{return generatedImageFromMldev(_0x3a4cb2);})),setValueByPath(_0x4bfc95,['generatedImages'],_0x4fd524);}const _0x17e32e=getValueByPath(_0x17e3b3,[_0x2c710e(0x59a)]);return _0x17e32e!=null&&setValueByPath(_0x4bfc95,[_0x2c710e(0x59a)],safetyAttributesFromMldev(_0x17e32e)),_0x4bfc95;}function generateImagesResponseFromVertex(_0x3e6b91,_0x5e4b68){const _0x4a3883=a6_0x51c1ef,_0x24fc16={},_0x462834=getValueByPath(_0x3e6b91,['sdkHttpResponse']);_0x462834!=null&&setValueByPath(_0x24fc16,['sdkHttpResponse'],_0x462834);const _0x5b4fec=getValueByPath(_0x3e6b91,[_0x4a3883(0x4e3)]);if(_0x5b4fec!=null){let _0x193594=_0x5b4fec;Array['isArray'](_0x193594)&&(_0x193594=_0x193594[_0x4a3883(0x68f)](_0x2352b5=>{return generatedImageFromVertex(_0x2352b5);})),setValueByPath(_0x24fc16,[_0x4a3883(0x395)],_0x193594);}const _0x1e62ca=getValueByPath(_0x3e6b91,[_0x4a3883(0x59a)]);return _0x1e62ca!=null&&setValueByPath(_0x24fc16,['positivePromptSafetyAttributes'],safetyAttributesFromVertex(_0x1e62ca)),_0x24fc16;}function generateVideosConfigToMldev(_0x10a97a,_0x13989a,_0x40639a){const _0x14c616=a6_0x51c1ef,_0x4e7182={},_0x45242a=getValueByPath(_0x10a97a,[_0x14c616(0x1cd)]);_0x13989a!==undefined&&_0x45242a!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),'sampleCount'],_0x45242a);if(getValueByPath(_0x10a97a,['outputGcsUri'])!==undefined)throw new Error('outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x10a97a,[_0x14c616(0x398)])!==undefined)throw new Error(_0x14c616(0x61b));const _0x2faaeb=getValueByPath(_0x10a97a,[_0x14c616(0x3c8)]);_0x13989a!==undefined&&_0x2faaeb!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),_0x14c616(0x3c8)],_0x2faaeb);if(getValueByPath(_0x10a97a,[_0x14c616(0x245)])!==undefined)throw new Error('seed\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x28b460=getValueByPath(_0x10a97a,[_0x14c616(0x655)]);_0x13989a!==undefined&&_0x28b460!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),'aspectRatio'],_0x28b460);const _0x3d9223=getValueByPath(_0x10a97a,[_0x14c616(0x15c)]);_0x13989a!==undefined&&_0x3d9223!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),_0x14c616(0x15c)],_0x3d9223);const _0x5df926=getValueByPath(_0x10a97a,[_0x14c616(0x346)]);_0x13989a!==undefined&&_0x5df926!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),'personGeneration'],_0x5df926);if(getValueByPath(_0x10a97a,[_0x14c616(0x1d2)])!==undefined)throw new Error('pubsubTopic\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x39f7da=getValueByPath(_0x10a97a,[_0x14c616(0x450)]);_0x13989a!==undefined&&_0x39f7da!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),_0x14c616(0x450)],_0x39f7da);const _0xfd116e=getValueByPath(_0x10a97a,[_0x14c616(0x1fb)]);_0x13989a!==undefined&&_0xfd116e!=null&&setValueByPath(_0x13989a,[_0x14c616(0x59e),_0x14c616(0x1fb)],_0xfd116e);if(getValueByPath(_0x10a97a,['generateAudio'])!==undefined)throw new Error(_0x14c616(0x33e));const _0xe5c3a4=getValueByPath(_0x10a97a,[_0x14c616(0x5fd)]);_0x13989a!==undefined&&_0xe5c3a4!=null&&setValueByPath(_0x13989a,[_0x14c616(0x176),_0x14c616(0x5fd)],imageToMldev(_0xe5c3a4));const _0x3ca823=getValueByPath(_0x10a97a,['referenceImages']);if(_0x13989a!==undefined&&_0x3ca823!=null){let _0x350dae=_0x3ca823;Array[_0x14c616(0x49d)](_0x350dae)&&(_0x350dae=_0x350dae[_0x14c616(0x68f)](_0x50479e=>{return videoGenerationReferenceImageToMldev(_0x50479e);})),setValueByPath(_0x13989a,[_0x14c616(0x176),_0x14c616(0x3e3)],_0x350dae);}if(getValueByPath(_0x10a97a,['mask'])!==undefined)throw new Error(_0x14c616(0x26b));if(getValueByPath(_0x10a97a,[_0x14c616(0x406)])!==undefined)throw new Error(_0x14c616(0x494));return _0x4e7182;}function generateVideosConfigToVertex(_0x679ec5,_0x1e6a6c,_0x39080c){const _0x5ce4cf=a6_0x51c1ef,_0x42c115={},_0x462580=getValueByPath(_0x679ec5,[_0x5ce4cf(0x1cd)]);_0x1e6a6c!==undefined&&_0x462580!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x3e6)],_0x462580);const _0x2e3b58=getValueByPath(_0x679ec5,[_0x5ce4cf(0x361)]);_0x1e6a6c!==undefined&&_0x2e3b58!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x3ab)],_0x2e3b58);const _0x2a05f0=getValueByPath(_0x679ec5,[_0x5ce4cf(0x398)]);_0x1e6a6c!==undefined&&_0x2a05f0!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x398)],_0x2a05f0);const _0x51a150=getValueByPath(_0x679ec5,['durationSeconds']);_0x1e6a6c!==undefined&&_0x51a150!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),'durationSeconds'],_0x51a150);const _0x223f30=getValueByPath(_0x679ec5,[_0x5ce4cf(0x245)]);_0x1e6a6c!==undefined&&_0x223f30!=null&&setValueByPath(_0x1e6a6c,['parameters',_0x5ce4cf(0x245)],_0x223f30);const _0x5310f1=getValueByPath(_0x679ec5,['aspectRatio']);_0x1e6a6c!==undefined&&_0x5310f1!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x655)],_0x5310f1);const _0x1715e2=getValueByPath(_0x679ec5,[_0x5ce4cf(0x15c)]);_0x1e6a6c!==undefined&&_0x1715e2!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x15c)],_0x1715e2);const _0x2109f5=getValueByPath(_0x679ec5,['personGeneration']);_0x1e6a6c!==undefined&&_0x2109f5!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x346)],_0x2109f5);const _0x579b76=getValueByPath(_0x679ec5,[_0x5ce4cf(0x1d2)]);_0x1e6a6c!==undefined&&_0x579b76!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x1d2)],_0x579b76);const _0x2d151f=getValueByPath(_0x679ec5,['negativePrompt']);_0x1e6a6c!==undefined&&_0x2d151f!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x450)],_0x2d151f);const _0x3916a2=getValueByPath(_0x679ec5,['enhancePrompt']);_0x1e6a6c!==undefined&&_0x3916a2!=null&&setValueByPath(_0x1e6a6c,['parameters','enhancePrompt'],_0x3916a2);const _0x24a208=getValueByPath(_0x679ec5,[_0x5ce4cf(0x1de)]);_0x1e6a6c!==undefined&&_0x24a208!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),_0x5ce4cf(0x1de)],_0x24a208);const _0x31ffab=getValueByPath(_0x679ec5,[_0x5ce4cf(0x5fd)]);_0x1e6a6c!==undefined&&_0x31ffab!=null&&setValueByPath(_0x1e6a6c,['instances[0]',_0x5ce4cf(0x5fd)],imageToVertex(_0x31ffab));const _0x5a43fb=getValueByPath(_0x679ec5,['referenceImages']);if(_0x1e6a6c!==undefined&&_0x5a43fb!=null){let _0x2fb4cc=_0x5a43fb;Array['isArray'](_0x2fb4cc)&&(_0x2fb4cc=_0x2fb4cc['map'](_0x2a652b=>{return videoGenerationReferenceImageToVertex(_0x2a652b);})),setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x176),'referenceImages'],_0x2fb4cc);}const _0x2a8af7=getValueByPath(_0x679ec5,['mask']);_0x1e6a6c!==undefined&&_0x2a8af7!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x176),_0x5ce4cf(0x435)],videoGenerationMaskToVertex(_0x2a8af7));const _0x2e1723=getValueByPath(_0x679ec5,['compressionQuality']);return _0x1e6a6c!==undefined&&_0x2e1723!=null&&setValueByPath(_0x1e6a6c,[_0x5ce4cf(0x59e),'compressionQuality'],_0x2e1723),_0x42c115;}function generateVideosOperationFromMldev(_0x4aa8fb,_0x241712){const _0xa25fe4=a6_0x51c1ef,_0x1f55b9={},_0x3cf2c7=getValueByPath(_0x4aa8fb,['name']);_0x3cf2c7!=null&&setValueByPath(_0x1f55b9,[_0xa25fe4(0x558)],_0x3cf2c7);const _0x5179e6=getValueByPath(_0x4aa8fb,[_0xa25fe4(0x367)]);_0x5179e6!=null&&setValueByPath(_0x1f55b9,[_0xa25fe4(0x367)],_0x5179e6);const _0x2031f5=getValueByPath(_0x4aa8fb,[_0xa25fe4(0x2e9)]);_0x2031f5!=null&&setValueByPath(_0x1f55b9,[_0xa25fe4(0x2e9)],_0x2031f5);const _0x175598=getValueByPath(_0x4aa8fb,[_0xa25fe4(0x50a)]);_0x175598!=null&&setValueByPath(_0x1f55b9,[_0xa25fe4(0x50a)],_0x175598);const _0x18a3d0=getValueByPath(_0x4aa8fb,['response',_0xa25fe4(0x534)]);return _0x18a3d0!=null&&setValueByPath(_0x1f55b9,[_0xa25fe4(0x603)],generateVideosResponseFromMldev(_0x18a3d0)),_0x1f55b9;}function generateVideosOperationFromVertex(_0x24826b,_0x303453){const _0x46c00a=a6_0x51c1ef,_0x2cd1f0={},_0x451298=getValueByPath(_0x24826b,['name']);_0x451298!=null&&setValueByPath(_0x2cd1f0,[_0x46c00a(0x558)],_0x451298);const _0x442dc7=getValueByPath(_0x24826b,[_0x46c00a(0x367)]);_0x442dc7!=null&&setValueByPath(_0x2cd1f0,[_0x46c00a(0x367)],_0x442dc7);const _0x30bd65=getValueByPath(_0x24826b,[_0x46c00a(0x2e9)]);_0x30bd65!=null&&setValueByPath(_0x2cd1f0,[_0x46c00a(0x2e9)],_0x30bd65);const _0x1de5b3=getValueByPath(_0x24826b,[_0x46c00a(0x50a)]);_0x1de5b3!=null&&setValueByPath(_0x2cd1f0,[_0x46c00a(0x50a)],_0x1de5b3);const _0x139362=getValueByPath(_0x24826b,['response']);return _0x139362!=null&&setValueByPath(_0x2cd1f0,['response'],generateVideosResponseFromVertex(_0x139362)),_0x2cd1f0;}function generateVideosParametersToMldev(_0x54923b,_0x4d7292,_0x50c92f){const _0x4d3c21=a6_0x51c1ef,_0x51ed65={},_0x3144b4=getValueByPath(_0x4d7292,[_0x4d3c21(0x418)]);_0x3144b4!=null&&setValueByPath(_0x51ed65,[_0x4d3c21(0x2c1),_0x4d3c21(0x418)],tModel(_0x54923b,_0x3144b4));const _0x3377f0=getValueByPath(_0x4d7292,[_0x4d3c21(0x335)]);_0x3377f0!=null&&setValueByPath(_0x51ed65,['instances[0]',_0x4d3c21(0x335)],_0x3377f0);const _0x11abd4=getValueByPath(_0x4d7292,[_0x4d3c21(0x559)]);_0x11abd4!=null&&setValueByPath(_0x51ed65,['instances[0]',_0x4d3c21(0x559)],imageToMldev(_0x11abd4));const _0x100716=getValueByPath(_0x4d7292,[_0x4d3c21(0x533)]);_0x100716!=null&&setValueByPath(_0x51ed65,['instances[0]','video'],videoToMldev(_0x100716));const _0x313c23=getValueByPath(_0x4d7292,[_0x4d3c21(0x569)]);_0x313c23!=null&&generateVideosSourceToMldev(_0x313c23,_0x51ed65);const _0x3445f0=getValueByPath(_0x4d7292,[_0x4d3c21(0x66c)]);return _0x3445f0!=null&&generateVideosConfigToMldev(_0x3445f0,_0x51ed65),_0x51ed65;}function generateVideosParametersToVertex(_0x1e0980,_0x5c5bc2,_0xeb2e95){const _0x6ead50=a6_0x51c1ef,_0x24f067={},_0x5edda2=getValueByPath(_0x5c5bc2,[_0x6ead50(0x418)]);_0x5edda2!=null&&setValueByPath(_0x24f067,[_0x6ead50(0x2c1),_0x6ead50(0x418)],tModel(_0x1e0980,_0x5edda2));const _0x17ba05=getValueByPath(_0x5c5bc2,[_0x6ead50(0x335)]);_0x17ba05!=null&&setValueByPath(_0x24f067,[_0x6ead50(0x176),_0x6ead50(0x335)],_0x17ba05);const _0x52c38e=getValueByPath(_0x5c5bc2,['image']);_0x52c38e!=null&&setValueByPath(_0x24f067,[_0x6ead50(0x176),'image'],imageToVertex(_0x52c38e));const _0x862636=getValueByPath(_0x5c5bc2,[_0x6ead50(0x533)]);_0x862636!=null&&setValueByPath(_0x24f067,[_0x6ead50(0x176),'video'],videoToVertex(_0x862636));const _0x2b523d=getValueByPath(_0x5c5bc2,[_0x6ead50(0x569)]);_0x2b523d!=null&&generateVideosSourceToVertex(_0x2b523d,_0x24f067);const _0x50cb79=getValueByPath(_0x5c5bc2,['config']);return _0x50cb79!=null&&generateVideosConfigToVertex(_0x50cb79,_0x24f067),_0x24f067;}function generateVideosResponseFromMldev(_0x2e3634,_0x9cd35c){const _0x259389=a6_0x51c1ef,_0x50624f={},_0x2d0c40=getValueByPath(_0x2e3634,['generatedSamples']);if(_0x2d0c40!=null){let _0x186516=_0x2d0c40;Array[_0x259389(0x49d)](_0x186516)&&(_0x186516=_0x186516[_0x259389(0x68f)](_0x5c59a4=>{return generatedVideoFromMldev(_0x5c59a4);})),setValueByPath(_0x50624f,[_0x259389(0x304)],_0x186516);}const _0x5278ee=getValueByPath(_0x2e3634,[_0x259389(0x2a4)]);_0x5278ee!=null&&setValueByPath(_0x50624f,[_0x259389(0x2a4)],_0x5278ee);const _0x209cb5=getValueByPath(_0x2e3634,[_0x259389(0x288)]);return _0x209cb5!=null&&setValueByPath(_0x50624f,['raiMediaFilteredReasons'],_0x209cb5),_0x50624f;}function generateVideosResponseFromVertex(_0x5787df,_0x27858c){const _0x43d50a=a6_0x51c1ef,_0x17a402={},_0x3141c2=getValueByPath(_0x5787df,[_0x43d50a(0x62f)]);if(_0x3141c2!=null){let _0x1d219d=_0x3141c2;Array[_0x43d50a(0x49d)](_0x1d219d)&&(_0x1d219d=_0x1d219d[_0x43d50a(0x68f)](_0x51b10b=>{return generatedVideoFromVertex(_0x51b10b);})),setValueByPath(_0x17a402,['generatedVideos'],_0x1d219d);}const _0x534acf=getValueByPath(_0x5787df,[_0x43d50a(0x2a4)]);_0x534acf!=null&&setValueByPath(_0x17a402,[_0x43d50a(0x2a4)],_0x534acf);const _0x128991=getValueByPath(_0x5787df,['raiMediaFilteredReasons']);return _0x128991!=null&&setValueByPath(_0x17a402,[_0x43d50a(0x288)],_0x128991),_0x17a402;}function generateVideosSourceToMldev(_0x4842a9,_0x4059ed,_0x247133){const _0x4d5530=a6_0x51c1ef,_0x2364fc={},_0x2a29b0=getValueByPath(_0x4842a9,[_0x4d5530(0x335)]);_0x4059ed!==undefined&&_0x2a29b0!=null&&setValueByPath(_0x4059ed,['instances[0]',_0x4d5530(0x335)],_0x2a29b0);const _0x288468=getValueByPath(_0x4842a9,['image']);_0x4059ed!==undefined&&_0x288468!=null&&setValueByPath(_0x4059ed,[_0x4d5530(0x176),'image'],imageToMldev(_0x288468));const _0x51849a=getValueByPath(_0x4842a9,[_0x4d5530(0x533)]);return _0x4059ed!==undefined&&_0x51849a!=null&&setValueByPath(_0x4059ed,[_0x4d5530(0x176),'video'],videoToMldev(_0x51849a)),_0x2364fc;}function generateVideosSourceToVertex(_0x3bf2c2,_0x26601b,_0x23da9c){const _0x26b3f0=a6_0x51c1ef,_0x467898={},_0x1ec4ba=getValueByPath(_0x3bf2c2,[_0x26b3f0(0x335)]);_0x26601b!==undefined&&_0x1ec4ba!=null&&setValueByPath(_0x26601b,['instances[0]',_0x26b3f0(0x335)],_0x1ec4ba);const _0xca2cf2=getValueByPath(_0x3bf2c2,[_0x26b3f0(0x559)]);_0x26601b!==undefined&&_0xca2cf2!=null&&setValueByPath(_0x26601b,['instances[0]','image'],imageToVertex(_0xca2cf2));const _0x1339f4=getValueByPath(_0x3bf2c2,[_0x26b3f0(0x533)]);return _0x26601b!==undefined&&_0x1339f4!=null&&setValueByPath(_0x26601b,['instances[0]',_0x26b3f0(0x533)],videoToVertex(_0x1339f4)),_0x467898;}function generatedImageFromMldev(_0x313d75,_0x4b9f37){const _0x5b53bd=a6_0x51c1ef,_0x3678f2={},_0x12b2bd=getValueByPath(_0x313d75,[_0x5b53bd(0x5aa)]);_0x12b2bd!=null&&setValueByPath(_0x3678f2,[_0x5b53bd(0x559)],imageFromMldev(_0x12b2bd));const _0x4c2fa5=getValueByPath(_0x313d75,[_0x5b53bd(0x2ce)]);_0x4c2fa5!=null&&setValueByPath(_0x3678f2,[_0x5b53bd(0x2ce)],_0x4c2fa5);const _0x2fb4d5=getValueByPath(_0x313d75,[_0x5b53bd(0x5aa)]);return _0x2fb4d5!=null&&setValueByPath(_0x3678f2,[_0x5b53bd(0x4a9)],safetyAttributesFromMldev(_0x2fb4d5)),_0x3678f2;}function generatedImageFromVertex(_0x5405a0,_0x325ff6){const _0x3a2bdb=a6_0x51c1ef,_0x39570b={},_0x2661ae=getValueByPath(_0x5405a0,[_0x3a2bdb(0x5aa)]);_0x2661ae!=null&&setValueByPath(_0x39570b,[_0x3a2bdb(0x559)],imageFromVertex(_0x2661ae));const _0x159269=getValueByPath(_0x5405a0,[_0x3a2bdb(0x2ce)]);_0x159269!=null&&setValueByPath(_0x39570b,['raiFilteredReason'],_0x159269);const _0x247988=getValueByPath(_0x5405a0,['_self']);_0x247988!=null&&setValueByPath(_0x39570b,[_0x3a2bdb(0x4a9)],safetyAttributesFromVertex(_0x247988));const _0x3b8a86=getValueByPath(_0x5405a0,[_0x3a2bdb(0x335)]);return _0x3b8a86!=null&&setValueByPath(_0x39570b,[_0x3a2bdb(0x5f1)],_0x3b8a86),_0x39570b;}function generatedImageMaskFromVertex(_0x254c9b,_0x3f67c3){const _0x3577a4=a6_0x51c1ef,_0x495e2d={},_0x3b5245=getValueByPath(_0x254c9b,[_0x3577a4(0x5aa)]);_0x3b5245!=null&&setValueByPath(_0x495e2d,[_0x3577a4(0x435)],imageFromVertex(_0x3b5245));const _0x5a0779=getValueByPath(_0x254c9b,[_0x3577a4(0x156)]);if(_0x5a0779!=null){let _0x707554=_0x5a0779;Array[_0x3577a4(0x49d)](_0x707554)&&(_0x707554=_0x707554[_0x3577a4(0x68f)](_0x588792=>{return _0x588792;})),setValueByPath(_0x495e2d,[_0x3577a4(0x156)],_0x707554);}return _0x495e2d;}function generatedVideoFromMldev(_0x5a5de1,_0x429cb2){const _0x873b8=a6_0x51c1ef,_0x7cc009={},_0x333880=getValueByPath(_0x5a5de1,['video']);return _0x333880!=null&&setValueByPath(_0x7cc009,[_0x873b8(0x533)],videoFromMldev(_0x333880)),_0x7cc009;}function generatedVideoFromVertex(_0x4aeddc,_0xc54f73){const _0x505560=a6_0x51c1ef,_0x1a66f6={},_0x2f5ef0=getValueByPath(_0x4aeddc,['_self']);return _0x2f5ef0!=null&&setValueByPath(_0x1a66f6,[_0x505560(0x533)],videoFromVertex(_0x2f5ef0)),_0x1a66f6;}function generationConfigToVertex(_0x497ed0,_0x3e9539){const _0x137ea3=a6_0x51c1ef,_0x1fa4d4={},_0x4b5396=getValueByPath(_0x497ed0,[_0x137ea3(0x693)]);_0x4b5396!=null&&setValueByPath(_0x1fa4d4,['modelConfig'],_0x4b5396);const _0x5d2484=getValueByPath(_0x497ed0,[_0x137ea3(0x2d5)]);_0x5d2484!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x2d5)],_0x5d2484);const _0x1ef7df=getValueByPath(_0x497ed0,[_0x137ea3(0x3f6)]);_0x1ef7df!=null&&setValueByPath(_0x1fa4d4,['audioTimestamp'],_0x1ef7df);const _0x48a368=getValueByPath(_0x497ed0,[_0x137ea3(0x4af)]);_0x48a368!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x4af)],_0x48a368);const _0x379348=getValueByPath(_0x497ed0,[_0x137ea3(0x21b)]);_0x379348!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x21b)],_0x379348);const _0x46edf0=getValueByPath(_0x497ed0,['frequencyPenalty']);_0x46edf0!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x5c2)],_0x46edf0);const _0x118b97=getValueByPath(_0x497ed0,[_0x137ea3(0x57a)]);_0x118b97!=null&&setValueByPath(_0x1fa4d4,['logprobs'],_0x118b97);const _0x29d7ea=getValueByPath(_0x497ed0,['maxOutputTokens']);_0x29d7ea!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x378)],_0x29d7ea);const _0x4cc72e=getValueByPath(_0x497ed0,[_0x137ea3(0x615)]);_0x4cc72e!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x615)],_0x4cc72e);const _0x13199b=getValueByPath(_0x497ed0,[_0x137ea3(0x3b2)]);_0x13199b!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x3b2)],_0x13199b);const _0x5ed8d6=getValueByPath(_0x497ed0,[_0x137ea3(0x205)]);_0x5ed8d6!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x205)],_0x5ed8d6);const _0x5d4d4f=getValueByPath(_0x497ed0,[_0x137ea3(0x496)]);_0x5d4d4f!=null&&setValueByPath(_0x1fa4d4,['responseMimeType'],_0x5d4d4f);const _0x4ccc97=getValueByPath(_0x497ed0,[_0x137ea3(0x4a3)]);_0x4ccc97!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x4a3)],_0x4ccc97);const _0x47806d=getValueByPath(_0x497ed0,[_0x137ea3(0x1a4)]);_0x47806d!=null&&setValueByPath(_0x1fa4d4,['responseSchema'],_0x47806d);const _0x2d1be2=getValueByPath(_0x497ed0,['routingConfig']);_0x2d1be2!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x317)],_0x2d1be2);const _0x35188b=getValueByPath(_0x497ed0,[_0x137ea3(0x245)]);_0x35188b!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x245)],_0x35188b);const _0x43c976=getValueByPath(_0x497ed0,[_0x137ea3(0x241)]);_0x43c976!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x241)],_0x43c976);const _0x3e26ba=getValueByPath(_0x497ed0,[_0x137ea3(0x29d)]);_0x3e26ba!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x29d)],_0x3e26ba);const _0x25d925=getValueByPath(_0x497ed0,[_0x137ea3(0x689)]);_0x25d925!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x689)],_0x25d925);const _0xbcc03e=getValueByPath(_0x497ed0,[_0x137ea3(0x497)]);_0xbcc03e!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x497)],_0xbcc03e);const _0x1d93e5=getValueByPath(_0x497ed0,['topK']);_0x1d93e5!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x3ca)],_0x1d93e5);const _0x2c81c7=getValueByPath(_0x497ed0,['topP']);_0x2c81c7!=null&&setValueByPath(_0x1fa4d4,[_0x137ea3(0x465)],_0x2c81c7);if(getValueByPath(_0x497ed0,[_0x137ea3(0x3ad)])!==undefined)throw new Error(_0x137ea3(0x505));return _0x1fa4d4;}function getModelParametersToMldev(_0x31c7e7,_0x3a5128,_0x505564){const _0x205eaf=a6_0x51c1ef,_0x1dcb1d={},_0x5adf64=getValueByPath(_0x3a5128,[_0x205eaf(0x418)]);return _0x5adf64!=null&&setValueByPath(_0x1dcb1d,[_0x205eaf(0x2c1),_0x205eaf(0x558)],tModel(_0x31c7e7,_0x5adf64)),_0x1dcb1d;}function getModelParametersToVertex(_0x973b28,_0x180724,_0x1212da){const _0x77c35b=a6_0x51c1ef,_0x109449={},_0x264751=getValueByPath(_0x180724,[_0x77c35b(0x418)]);return _0x264751!=null&&setValueByPath(_0x109449,[_0x77c35b(0x2c1),_0x77c35b(0x558)],tModel(_0x973b28,_0x264751)),_0x109449;}function googleMapsToMldev$1(_0xc9a2c4,_0x2e2183){const _0x27c519=a6_0x51c1ef,_0x2f56fd={};if(getValueByPath(_0xc9a2c4,[_0x27c519(0x3dc)])!==undefined)throw new Error(_0x27c519(0x1ba));const _0x2fb8b8=getValueByPath(_0xc9a2c4,['enableWidget']);return _0x2fb8b8!=null&&setValueByPath(_0x2f56fd,[_0x27c519(0x3ee)],_0x2fb8b8),_0x2f56fd;}function googleSearchToMldev$1(_0x280f1c,_0x4a12f5){const _0x3e4b14=a6_0x51c1ef,_0x3ebae3={};if(getValueByPath(_0x280f1c,[_0x3e4b14(0x1b7)])!==undefined)throw new Error(_0x3e4b14(0x3b6));if(getValueByPath(_0x280f1c,[_0x3e4b14(0x16f)])!==undefined)throw new Error(_0x3e4b14(0x383));const _0x4ba4bd=getValueByPath(_0x280f1c,[_0x3e4b14(0x3fb)]);return _0x4ba4bd!=null&&setValueByPath(_0x3ebae3,[_0x3e4b14(0x3fb)],_0x4ba4bd),_0x3ebae3;}function imageConfigToMldev(_0x1d6b73,_0x59900d){const _0x1c84f4=a6_0x51c1ef,_0x22ca00={},_0x1b4994=getValueByPath(_0x1d6b73,[_0x1c84f4(0x655)]);_0x1b4994!=null&&setValueByPath(_0x22ca00,['aspectRatio'],_0x1b4994);const _0x1d6c94=getValueByPath(_0x1d6b73,[_0x1c84f4(0x2ed)]);_0x1d6c94!=null&&setValueByPath(_0x22ca00,['imageSize'],_0x1d6c94);if(getValueByPath(_0x1d6b73,[_0x1c84f4(0x346)])!==undefined)throw new Error(_0x1c84f4(0x1c0));if(getValueByPath(_0x1d6b73,[_0x1c84f4(0x415)])!==undefined)throw new Error(_0x1c84f4(0x392));if(getValueByPath(_0x1d6b73,['outputCompressionQuality'])!==undefined)throw new Error(_0x1c84f4(0x154));return _0x22ca00;}function imageConfigToVertex(_0x538d31,_0x4189be){const _0x21846f=a6_0x51c1ef,_0x427da0={},_0x1861c0=getValueByPath(_0x538d31,['aspectRatio']);_0x1861c0!=null&&setValueByPath(_0x427da0,[_0x21846f(0x655)],_0x1861c0);const _0x1a3240=getValueByPath(_0x538d31,[_0x21846f(0x2ed)]);_0x1a3240!=null&&setValueByPath(_0x427da0,['imageSize'],_0x1a3240);const _0x209766=getValueByPath(_0x538d31,[_0x21846f(0x346)]);_0x209766!=null&&setValueByPath(_0x427da0,['personGeneration'],_0x209766);const _0x14cd29=getValueByPath(_0x538d31,[_0x21846f(0x415)]);_0x14cd29!=null&&setValueByPath(_0x427da0,[_0x21846f(0x54c),_0x21846f(0x1ac)],_0x14cd29);const _0x53aabc=getValueByPath(_0x538d31,[_0x21846f(0x1a5)]);return _0x53aabc!=null&&setValueByPath(_0x427da0,[_0x21846f(0x54c),_0x21846f(0x406)],_0x53aabc),_0x427da0;}function imageFromMldev(_0xc031b8,_0x28adec){const _0x56dc64=a6_0x51c1ef,_0x47504b={},_0x359450=getValueByPath(_0xc031b8,['bytesBase64Encoded']);_0x359450!=null&&setValueByPath(_0x47504b,[_0x56dc64(0x525)],tBytes(_0x359450));const _0x27d221=getValueByPath(_0xc031b8,[_0x56dc64(0x1ac)]);return _0x27d221!=null&&setValueByPath(_0x47504b,[_0x56dc64(0x1ac)],_0x27d221),_0x47504b;}function imageFromVertex(_0x3414ae,_0x2295fd){const _0x14dc5e=a6_0x51c1ef,_0x42138b={},_0x9cbe97=getValueByPath(_0x3414ae,['gcsUri']);_0x9cbe97!=null&&setValueByPath(_0x42138b,[_0x14dc5e(0x507)],_0x9cbe97);const _0x146c28=getValueByPath(_0x3414ae,[_0x14dc5e(0x3c9)]);_0x146c28!=null&&setValueByPath(_0x42138b,[_0x14dc5e(0x525)],tBytes(_0x146c28));const _0x1a3525=getValueByPath(_0x3414ae,[_0x14dc5e(0x1ac)]);return _0x1a3525!=null&&setValueByPath(_0x42138b,[_0x14dc5e(0x1ac)],_0x1a3525),_0x42138b;}function imageToMldev(_0x13729e,_0x5c9963){const _0x173785=a6_0x51c1ef,_0x397bf1={};if(getValueByPath(_0x13729e,['gcsUri'])!==undefined)throw new Error(_0x173785(0x386));const _0x564bd2=getValueByPath(_0x13729e,[_0x173785(0x525)]);_0x564bd2!=null&&setValueByPath(_0x397bf1,[_0x173785(0x3c9)],tBytes(_0x564bd2));const _0x1d9549=getValueByPath(_0x13729e,[_0x173785(0x1ac)]);return _0x1d9549!=null&&setValueByPath(_0x397bf1,[_0x173785(0x1ac)],_0x1d9549),_0x397bf1;}function imageToVertex(_0x5736ee,_0x108ac2){const _0x42d53d=a6_0x51c1ef,_0x40cebb={},_0x3a9444=getValueByPath(_0x5736ee,[_0x42d53d(0x507)]);_0x3a9444!=null&&setValueByPath(_0x40cebb,[_0x42d53d(0x507)],_0x3a9444);const _0xb74b67=getValueByPath(_0x5736ee,['imageBytes']);_0xb74b67!=null&&setValueByPath(_0x40cebb,[_0x42d53d(0x3c9)],tBytes(_0xb74b67));const _0x425a3a=getValueByPath(_0x5736ee,[_0x42d53d(0x1ac)]);return _0x425a3a!=null&&setValueByPath(_0x40cebb,[_0x42d53d(0x1ac)],_0x425a3a),_0x40cebb;}function listModelsConfigToMldev(_0x3bce3b,_0x5b1568,_0x33799f,_0x314b25){const _0x240234=a6_0x51c1ef,_0x5d4ba6={},_0x4dcc1b=getValueByPath(_0x5b1568,[_0x240234(0x400)]);_0x33799f!==undefined&&_0x4dcc1b!=null&&setValueByPath(_0x33799f,[_0x240234(0x4cd),_0x240234(0x400)],_0x4dcc1b);const _0x22cef5=getValueByPath(_0x5b1568,[_0x240234(0x2dd)]);_0x33799f!==undefined&&_0x22cef5!=null&&setValueByPath(_0x33799f,[_0x240234(0x4cd),_0x240234(0x2dd)],_0x22cef5);const _0x207aef=getValueByPath(_0x5b1568,[_0x240234(0x581)]);_0x33799f!==undefined&&_0x207aef!=null&&setValueByPath(_0x33799f,[_0x240234(0x4cd),'filter'],_0x207aef);const _0x2fa9a2=getValueByPath(_0x5b1568,[_0x240234(0x4c0)]);return _0x33799f!==undefined&&_0x2fa9a2!=null&&setValueByPath(_0x33799f,[_0x240234(0x2c1),_0x240234(0x3ac)],tModelsUrl(_0x3bce3b,_0x2fa9a2)),_0x5d4ba6;}function listModelsConfigToVertex(_0x10c024,_0x36ca37,_0xf23f93,_0x487eb2){const _0x5414d0=a6_0x51c1ef,_0xe4e8ee={},_0x1d73f1=getValueByPath(_0x36ca37,[_0x5414d0(0x400)]);_0xf23f93!==undefined&&_0x1d73f1!=null&&setValueByPath(_0xf23f93,[_0x5414d0(0x4cd),'pageSize'],_0x1d73f1);const _0x50c672=getValueByPath(_0x36ca37,['pageToken']);_0xf23f93!==undefined&&_0x50c672!=null&&setValueByPath(_0xf23f93,[_0x5414d0(0x4cd),_0x5414d0(0x2dd)],_0x50c672);const _0x43796a=getValueByPath(_0x36ca37,[_0x5414d0(0x581)]);_0xf23f93!==undefined&&_0x43796a!=null&&setValueByPath(_0xf23f93,['_query',_0x5414d0(0x581)],_0x43796a);const _0x5c6b2a=getValueByPath(_0x36ca37,[_0x5414d0(0x4c0)]);return _0xf23f93!==undefined&&_0x5c6b2a!=null&&setValueByPath(_0xf23f93,['_url',_0x5414d0(0x3ac)],tModelsUrl(_0x10c024,_0x5c6b2a)),_0xe4e8ee;}function listModelsParametersToMldev(_0xa17d30,_0x5db345,_0x42ab74){const _0x157c50=a6_0x51c1ef,_0x5d0167={},_0x52f91c=getValueByPath(_0x5db345,[_0x157c50(0x66c)]);return _0x52f91c!=null&&listModelsConfigToMldev(_0xa17d30,_0x52f91c,_0x5d0167),_0x5d0167;}function listModelsParametersToVertex(_0x4af0f3,_0x58e30c,_0x3a7592){const _0x5acf48=a6_0x51c1ef,_0x3043ab={},_0x536038=getValueByPath(_0x58e30c,[_0x5acf48(0x66c)]);return _0x536038!=null&&listModelsConfigToVertex(_0x4af0f3,_0x536038,_0x3043ab),_0x3043ab;}function listModelsResponseFromMldev(_0x596fd6,_0x5cff01){const _0x57c871=a6_0x51c1ef,_0x4f449a={},_0x557d24=getValueByPath(_0x596fd6,[_0x57c871(0x344)]);_0x557d24!=null&&setValueByPath(_0x4f449a,[_0x57c871(0x344)],_0x557d24);const _0x2b5ac1=getValueByPath(_0x596fd6,[_0x57c871(0x17a)]);_0x2b5ac1!=null&&setValueByPath(_0x4f449a,[_0x57c871(0x17a)],_0x2b5ac1);const _0x440ffd=getValueByPath(_0x596fd6,[_0x57c871(0x5aa)]);if(_0x440ffd!=null){let _0x66d9cf=tExtractModels(_0x440ffd);Array[_0x57c871(0x49d)](_0x66d9cf)&&(_0x66d9cf=_0x66d9cf[_0x57c871(0x68f)](_0x3bedcd=>{return modelFromMldev(_0x3bedcd);})),setValueByPath(_0x4f449a,[_0x57c871(0x4dd)],_0x66d9cf);}return _0x4f449a;}function listModelsResponseFromVertex(_0x15aea6,_0x85dbf1){const _0xa21efc=a6_0x51c1ef,_0x223047={},_0x5db98e=getValueByPath(_0x15aea6,[_0xa21efc(0x344)]);_0x5db98e!=null&&setValueByPath(_0x223047,[_0xa21efc(0x344)],_0x5db98e);const _0x261d0c=getValueByPath(_0x15aea6,[_0xa21efc(0x17a)]);_0x261d0c!=null&&setValueByPath(_0x223047,['nextPageToken'],_0x261d0c);const _0x551b02=getValueByPath(_0x15aea6,[_0xa21efc(0x5aa)]);if(_0x551b02!=null){let _0x4494b0=tExtractModels(_0x551b02);Array[_0xa21efc(0x49d)](_0x4494b0)&&(_0x4494b0=_0x4494b0['map'](_0x3ead24=>{return modelFromVertex(_0x3ead24);})),setValueByPath(_0x223047,[_0xa21efc(0x4dd)],_0x4494b0);}return _0x223047;}function maskReferenceConfigToVertex(_0x1bf810,_0x407d89){const _0xf7dd42=a6_0x51c1ef,_0x105cc5={},_0x5ee627=getValueByPath(_0x1bf810,[_0xf7dd42(0x1bd)]);_0x5ee627!=null&&setValueByPath(_0x105cc5,['maskMode'],_0x5ee627);const _0x19ece1=getValueByPath(_0x1bf810,[_0xf7dd42(0x4c3)]);_0x19ece1!=null&&setValueByPath(_0x105cc5,[_0xf7dd42(0x34e)],_0x19ece1);const _0x4a3b1b=getValueByPath(_0x1bf810,[_0xf7dd42(0x1a9)]);return _0x4a3b1b!=null&&setValueByPath(_0x105cc5,[_0xf7dd42(0x3af)],_0x4a3b1b),_0x105cc5;}function modelFromMldev(_0x38cee8,_0x5da08a){const _0x237bea=a6_0x51c1ef,_0x49adad={},_0x1a0770=getValueByPath(_0x38cee8,[_0x237bea(0x558)]);_0x1a0770!=null&&setValueByPath(_0x49adad,['name'],_0x1a0770);const _0x2851e1=getValueByPath(_0x38cee8,[_0x237bea(0x419)]);_0x2851e1!=null&&setValueByPath(_0x49adad,[_0x237bea(0x419)],_0x2851e1);const _0x40475a=getValueByPath(_0x38cee8,[_0x237bea(0x464)]);_0x40475a!=null&&setValueByPath(_0x49adad,[_0x237bea(0x464)],_0x40475a);const _0x3c867e=getValueByPath(_0x38cee8,[_0x237bea(0x5b0)]);_0x3c867e!=null&&setValueByPath(_0x49adad,['version'],_0x3c867e);const _0x2985d5=getValueByPath(_0x38cee8,[_0x237bea(0x5aa)]);_0x2985d5!=null&&setValueByPath(_0x49adad,[_0x237bea(0x38e)],tunedModelInfoFromMldev(_0x2985d5));const _0x5f5746=getValueByPath(_0x38cee8,[_0x237bea(0x36f)]);_0x5f5746!=null&&setValueByPath(_0x49adad,[_0x237bea(0x36f)],_0x5f5746);const _0x4d041a=getValueByPath(_0x38cee8,[_0x237bea(0x189)]);_0x4d041a!=null&&setValueByPath(_0x49adad,[_0x237bea(0x189)],_0x4d041a);const _0x426681=getValueByPath(_0x38cee8,['supportedGenerationMethods']);_0x426681!=null&&setValueByPath(_0x49adad,[_0x237bea(0x42c)],_0x426681);const _0x34341d=getValueByPath(_0x38cee8,[_0x237bea(0x689)]);_0x34341d!=null&&setValueByPath(_0x49adad,[_0x237bea(0x689)],_0x34341d);const _0x3fd631=getValueByPath(_0x38cee8,[_0x237bea(0x3c5)]);_0x3fd631!=null&&setValueByPath(_0x49adad,['maxTemperature'],_0x3fd631);const _0x1beb3a=getValueByPath(_0x38cee8,[_0x237bea(0x465)]);_0x1beb3a!=null&&setValueByPath(_0x49adad,[_0x237bea(0x465)],_0x1beb3a);const _0x7063b9=getValueByPath(_0x38cee8,['topK']);_0x7063b9!=null&&setValueByPath(_0x49adad,[_0x237bea(0x3ca)],_0x7063b9);const _0x58ffde=getValueByPath(_0x38cee8,[_0x237bea(0x517)]);return _0x58ffde!=null&&setValueByPath(_0x49adad,[_0x237bea(0x517)],_0x58ffde),_0x49adad;}function modelFromVertex(_0x28d67e,_0x20d582){const _0x4dc6b7=a6_0x51c1ef,_0x3be426={},_0x10c76b=getValueByPath(_0x28d67e,[_0x4dc6b7(0x558)]);_0x10c76b!=null&&setValueByPath(_0x3be426,[_0x4dc6b7(0x558)],_0x10c76b);const _0x33ebab=getValueByPath(_0x28d67e,['displayName']);_0x33ebab!=null&&setValueByPath(_0x3be426,[_0x4dc6b7(0x419)],_0x33ebab);const _0x4e9398=getValueByPath(_0x28d67e,[_0x4dc6b7(0x464)]);_0x4e9398!=null&&setValueByPath(_0x3be426,['description'],_0x4e9398);const _0x2d1e79=getValueByPath(_0x28d67e,['versionId']);_0x2d1e79!=null&&setValueByPath(_0x3be426,['version'],_0x2d1e79);const _0x53fa20=getValueByPath(_0x28d67e,['deployedModels']);if(_0x53fa20!=null){let _0x4538cb=_0x53fa20;Array[_0x4dc6b7(0x49d)](_0x4538cb)&&(_0x4538cb=_0x4538cb[_0x4dc6b7(0x68f)](_0x2866fd=>{return endpointFromVertex(_0x2866fd);})),setValueByPath(_0x3be426,[_0x4dc6b7(0x2f6)],_0x4538cb);}const _0x4b09d6=getValueByPath(_0x28d67e,[_0x4dc6b7(0x156)]);_0x4b09d6!=null&&setValueByPath(_0x3be426,['labels'],_0x4b09d6);const _0x3e2895=getValueByPath(_0x28d67e,[_0x4dc6b7(0x5aa)]);_0x3e2895!=null&&setValueByPath(_0x3be426,['tunedModelInfo'],tunedModelInfoFromVertex(_0x3e2895));const _0x461f84=getValueByPath(_0x28d67e,[_0x4dc6b7(0x427)]);_0x461f84!=null&&setValueByPath(_0x3be426,[_0x4dc6b7(0x427)],_0x461f84);const _0x1b777e=getValueByPath(_0x28d67e,['checkpoints']);if(_0x1b777e!=null){let _0x5e3bb3=_0x1b777e;Array[_0x4dc6b7(0x49d)](_0x5e3bb3)&&(_0x5e3bb3=_0x5e3bb3[_0x4dc6b7(0x68f)](_0x4b5d45=>{return _0x4b5d45;})),setValueByPath(_0x3be426,[_0x4dc6b7(0x1b3)],_0x5e3bb3);}return _0x3be426;}function partToMldev$1(_0x588c2e,_0x1e50f9){const _0x3766ba=a6_0x51c1ef,_0x51a437={},_0x5eadd8=getValueByPath(_0x588c2e,[_0x3766ba(0x615)]);_0x5eadd8!=null&&setValueByPath(_0x51a437,['mediaResolution'],_0x5eadd8);const _0x18ee5c=getValueByPath(_0x588c2e,[_0x3766ba(0x2c0)]);_0x18ee5c!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x2c0)],_0x18ee5c);const _0x283c60=getValueByPath(_0x588c2e,['executableCode']);_0x283c60!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x5df)],_0x283c60);const _0x2fc41c=getValueByPath(_0x588c2e,['fileData']);_0x2fc41c!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x24e)],fileDataToMldev$1(_0x2fc41c));const _0x5e0331=getValueByPath(_0x588c2e,[_0x3766ba(0x2cc)]);_0x5e0331!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x2cc)],functionCallToMldev$1(_0x5e0331));const _0x293f78=getValueByPath(_0x588c2e,[_0x3766ba(0x2fa)]);_0x293f78!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x2fa)],_0x293f78);const _0x4becec=getValueByPath(_0x588c2e,[_0x3766ba(0x4b0)]);_0x4becec!=null&&setValueByPath(_0x51a437,['inlineData'],blobToMldev$1(_0x4becec));const _0x39da85=getValueByPath(_0x588c2e,[_0x3766ba(0x278)]);_0x39da85!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x278)],_0x39da85);const _0x419106=getValueByPath(_0x588c2e,[_0x3766ba(0x29e)]);_0x419106!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x29e)],_0x419106);const _0x77b6d6=getValueByPath(_0x588c2e,[_0x3766ba(0x4f0)]);_0x77b6d6!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x4f0)],_0x77b6d6);const _0x1ef7b4=getValueByPath(_0x588c2e,[_0x3766ba(0x2e8)]);return _0x1ef7b4!=null&&setValueByPath(_0x51a437,[_0x3766ba(0x2e8)],_0x1ef7b4),_0x51a437;}function productImageToVertex(_0x5bb6cc,_0x2657d2){const _0x54e754=a6_0x51c1ef,_0x30cdcf={},_0x196eb7=getValueByPath(_0x5bb6cc,[_0x54e754(0x4e0)]);return _0x196eb7!=null&&setValueByPath(_0x30cdcf,[_0x54e754(0x559)],imageToVertex(_0x196eb7)),_0x30cdcf;}function recontextImageConfigToVertex(_0x8de76f,_0x2b0026,_0x5cd4bb){const _0x3b85a0=a6_0x51c1ef,_0x47e086={},_0x5a8ca1=getValueByPath(_0x8de76f,['numberOfImages']);_0x2b0026!==undefined&&_0x5a8ca1!=null&&setValueByPath(_0x2b0026,['parameters',_0x3b85a0(0x3e6)],_0x5a8ca1);const _0x59e51b=getValueByPath(_0x8de76f,[_0x3b85a0(0x670)]);_0x2b0026!==undefined&&_0x59e51b!=null&&setValueByPath(_0x2b0026,[_0x3b85a0(0x59e),_0x3b85a0(0x670)],_0x59e51b);const _0x10098f=getValueByPath(_0x8de76f,['outputGcsUri']);_0x2b0026!==undefined&&_0x10098f!=null&&setValueByPath(_0x2b0026,['parameters',_0x3b85a0(0x3ab)],_0x10098f);const _0x3c0eb4=getValueByPath(_0x8de76f,[_0x3b85a0(0x245)]);_0x2b0026!==undefined&&_0x3c0eb4!=null&&setValueByPath(_0x2b0026,['parameters',_0x3b85a0(0x245)],_0x3c0eb4);const _0x4b6307=getValueByPath(_0x8de76f,[_0x3b85a0(0x27f)]);_0x2b0026!==undefined&&_0x4b6307!=null&&setValueByPath(_0x2b0026,[_0x3b85a0(0x59e),_0x3b85a0(0x45c)],_0x4b6307);const _0x2a89bc=getValueByPath(_0x8de76f,['personGeneration']);_0x2b0026!==undefined&&_0x2a89bc!=null&&setValueByPath(_0x2b0026,['parameters',_0x3b85a0(0x346)],_0x2a89bc);const _0x149b50=getValueByPath(_0x8de76f,[_0x3b85a0(0x19a)]);_0x2b0026!==undefined&&_0x149b50!=null&&setValueByPath(_0x2b0026,[_0x3b85a0(0x59e),_0x3b85a0(0x19a)],_0x149b50);const _0x143250=getValueByPath(_0x8de76f,['outputMimeType']);_0x2b0026!==undefined&&_0x143250!=null&&setValueByPath(_0x2b0026,[_0x3b85a0(0x59e),_0x3b85a0(0x3f9),_0x3b85a0(0x1ac)],_0x143250);const _0x4ef1a9=getValueByPath(_0x8de76f,[_0x3b85a0(0x1a5)]);_0x2b0026!==undefined&&_0x4ef1a9!=null&&setValueByPath(_0x2b0026,[_0x3b85a0(0x59e),_0x3b85a0(0x3f9),_0x3b85a0(0x406)],_0x4ef1a9);const _0x171c56=getValueByPath(_0x8de76f,[_0x3b85a0(0x1fb)]);_0x2b0026!==undefined&&_0x171c56!=null&&setValueByPath(_0x2b0026,[_0x3b85a0(0x59e),_0x3b85a0(0x1fb)],_0x171c56);const _0x78f688=getValueByPath(_0x8de76f,['labels']);return _0x2b0026!==undefined&&_0x78f688!=null&&setValueByPath(_0x2b0026,['labels'],_0x78f688),_0x47e086;}function recontextImageParametersToVertex(_0xd00285,_0x5b525d,_0x3b3d18){const _0x2ed985=a6_0x51c1ef,_0x3dfb1e={},_0x4c54e0=getValueByPath(_0x5b525d,['model']);_0x4c54e0!=null&&setValueByPath(_0x3dfb1e,[_0x2ed985(0x2c1),_0x2ed985(0x418)],tModel(_0xd00285,_0x4c54e0));const _0x435b7b=getValueByPath(_0x5b525d,['source']);_0x435b7b!=null&&recontextImageSourceToVertex(_0x435b7b,_0x3dfb1e);const _0x45fe48=getValueByPath(_0x5b525d,['config']);return _0x45fe48!=null&&recontextImageConfigToVertex(_0x45fe48,_0x3dfb1e),_0x3dfb1e;}function recontextImageResponseFromVertex(_0x2ed6c6,_0x101568){const _0x174e94=a6_0x51c1ef,_0x3f71ae={},_0x1d3cdb=getValueByPath(_0x2ed6c6,[_0x174e94(0x4e3)]);if(_0x1d3cdb!=null){let _0x30cef9=_0x1d3cdb;Array['isArray'](_0x30cef9)&&(_0x30cef9=_0x30cef9[_0x174e94(0x68f)](_0x16f03e=>{return generatedImageFromVertex(_0x16f03e);})),setValueByPath(_0x3f71ae,['generatedImages'],_0x30cef9);}return _0x3f71ae;}function recontextImageSourceToVertex(_0x9af9ec,_0x13c76d,_0x18b1b3){const _0x4ac914=a6_0x51c1ef,_0x499f67={},_0x161d10=getValueByPath(_0x9af9ec,['prompt']);_0x13c76d!==undefined&&_0x161d10!=null&&setValueByPath(_0x13c76d,['instances[0]',_0x4ac914(0x335)],_0x161d10);const _0x381264=getValueByPath(_0x9af9ec,[_0x4ac914(0x342)]);_0x13c76d!==undefined&&_0x381264!=null&&setValueByPath(_0x13c76d,[_0x4ac914(0x176),'personImage',_0x4ac914(0x559)],imageToVertex(_0x381264));const _0x5c1ae7=getValueByPath(_0x9af9ec,['productImages']);if(_0x13c76d!==undefined&&_0x5c1ae7!=null){let _0x410a40=_0x5c1ae7;Array['isArray'](_0x410a40)&&(_0x410a40=_0x410a40[_0x4ac914(0x68f)](_0x69ad31=>{return productImageToVertex(_0x69ad31);})),setValueByPath(_0x13c76d,['instances[0]',_0x4ac914(0x620)],_0x410a40);}return _0x499f67;}function referenceImageAPIInternalToVertex(_0x13fe3e,_0x76adad){const _0x1a559b=a6_0x51c1ef,_0x2576ca={},_0x4000ae=getValueByPath(_0x13fe3e,[_0x1a559b(0x1a6)]);_0x4000ae!=null&&setValueByPath(_0x2576ca,[_0x1a559b(0x1a6)],imageToVertex(_0x4000ae));const _0xdcb6c=getValueByPath(_0x13fe3e,[_0x1a559b(0x584)]);_0xdcb6c!=null&&setValueByPath(_0x2576ca,[_0x1a559b(0x584)],_0xdcb6c);const _0x21cd15=getValueByPath(_0x13fe3e,['referenceType']);_0x21cd15!=null&&setValueByPath(_0x2576ca,[_0x1a559b(0x5a0)],_0x21cd15);const _0xa86383=getValueByPath(_0x13fe3e,[_0x1a559b(0x68a)]);_0xa86383!=null&&setValueByPath(_0x2576ca,[_0x1a559b(0x68a)],maskReferenceConfigToVertex(_0xa86383));const _0x2d3d2b=getValueByPath(_0x13fe3e,[_0x1a559b(0x4d3)]);_0x2d3d2b!=null&&setValueByPath(_0x2576ca,['controlImageConfig'],controlReferenceConfigToVertex(_0x2d3d2b));const _0x3da6f1=getValueByPath(_0x13fe3e,['styleImageConfig']);_0x3da6f1!=null&&setValueByPath(_0x2576ca,[_0x1a559b(0x5f6)],_0x3da6f1);const _0x4356ee=getValueByPath(_0x13fe3e,['subjectImageConfig']);return _0x4356ee!=null&&setValueByPath(_0x2576ca,[_0x1a559b(0x23c)],_0x4356ee),_0x2576ca;}function safetyAttributesFromMldev(_0x599d22,_0x1fe1b2){const _0x194773=a6_0x51c1ef,_0x369eed={},_0x287789=getValueByPath(_0x599d22,[_0x194773(0x4a9),_0x194773(0x664)]);_0x287789!=null&&setValueByPath(_0x369eed,[_0x194773(0x664)],_0x287789);const _0x3a52eb=getValueByPath(_0x599d22,[_0x194773(0x4a9),_0x194773(0x283)]);_0x3a52eb!=null&&setValueByPath(_0x369eed,['scores'],_0x3a52eb);const _0x23a078=getValueByPath(_0x599d22,['contentType']);return _0x23a078!=null&&setValueByPath(_0x369eed,[_0x194773(0x263)],_0x23a078),_0x369eed;}function safetyAttributesFromVertex(_0x3bf699,_0x5cab18){const _0x12376e=a6_0x51c1ef,_0x203bd6={},_0x3026ed=getValueByPath(_0x3bf699,[_0x12376e(0x4a9),_0x12376e(0x664)]);_0x3026ed!=null&&setValueByPath(_0x203bd6,[_0x12376e(0x664)],_0x3026ed);const _0x3a4865=getValueByPath(_0x3bf699,[_0x12376e(0x4a9),_0x12376e(0x283)]);_0x3a4865!=null&&setValueByPath(_0x203bd6,['scores'],_0x3a4865);const _0x1f4c13=getValueByPath(_0x3bf699,[_0x12376e(0x263)]);return _0x1f4c13!=null&&setValueByPath(_0x203bd6,[_0x12376e(0x263)],_0x1f4c13),_0x203bd6;}function safetySettingToMldev(_0x643c9a,_0x42e566){const _0x4acc49=a6_0x51c1ef,_0x46e2e6={},_0x4d5673=getValueByPath(_0x643c9a,['category']);_0x4d5673!=null&&setValueByPath(_0x46e2e6,[_0x4acc49(0x54f)],_0x4d5673);if(getValueByPath(_0x643c9a,['method'])!==undefined)throw new Error(_0x4acc49(0x2de));const _0x5e2c73=getValueByPath(_0x643c9a,[_0x4acc49(0x4d1)]);return _0x5e2c73!=null&&setValueByPath(_0x46e2e6,['threshold'],_0x5e2c73),_0x46e2e6;}function scribbleImageToVertex(_0x41ec54,_0x192962){const _0x2f09b3=a6_0x51c1ef,_0x17ffe1={},_0x3b96f2=getValueByPath(_0x41ec54,[_0x2f09b3(0x559)]);return _0x3b96f2!=null&&setValueByPath(_0x17ffe1,[_0x2f09b3(0x559)],imageToVertex(_0x3b96f2)),_0x17ffe1;}function segmentImageConfigToVertex(_0x1f70d2,_0xc244c3,_0x334531){const _0x33f207=a6_0x51c1ef,_0x1b0251={},_0x167702=getValueByPath(_0x1f70d2,[_0x33f207(0x1c2)]);_0xc244c3!==undefined&&_0x167702!=null&&setValueByPath(_0xc244c3,[_0x33f207(0x59e),_0x33f207(0x1c2)],_0x167702);const _0x1ba803=getValueByPath(_0x1f70d2,[_0x33f207(0x4d5)]);_0xc244c3!==undefined&&_0x1ba803!=null&&setValueByPath(_0xc244c3,[_0x33f207(0x59e),_0x33f207(0x4d5)],_0x1ba803);const _0x41a641=getValueByPath(_0x1f70d2,[_0x33f207(0x4bd)]);_0xc244c3!==undefined&&_0x41a641!=null&&setValueByPath(_0xc244c3,[_0x33f207(0x59e),_0x33f207(0x4bd)],_0x41a641);const _0x19847d=getValueByPath(_0x1f70d2,[_0x33f207(0x1a9)]);_0xc244c3!==undefined&&_0x19847d!=null&&setValueByPath(_0xc244c3,[_0x33f207(0x59e),_0x33f207(0x1a9)],_0x19847d);const _0x3e5ff5=getValueByPath(_0x1f70d2,[_0x33f207(0x485)]);_0xc244c3!==undefined&&_0x3e5ff5!=null&&setValueByPath(_0xc244c3,[_0x33f207(0x59e),_0x33f207(0x485)],_0x3e5ff5);const _0x4e955c=getValueByPath(_0x1f70d2,[_0x33f207(0x156)]);return _0xc244c3!==undefined&&_0x4e955c!=null&&setValueByPath(_0xc244c3,[_0x33f207(0x156)],_0x4e955c),_0x1b0251;}function segmentImageParametersToVertex(_0x4f5233,_0x560985,_0xaa8f20){const _0x239535=a6_0x51c1ef,_0x3dfcfa={},_0x299705=getValueByPath(_0x560985,[_0x239535(0x418)]);_0x299705!=null&&setValueByPath(_0x3dfcfa,['_url',_0x239535(0x418)],tModel(_0x4f5233,_0x299705));const _0x473f00=getValueByPath(_0x560985,[_0x239535(0x569)]);_0x473f00!=null&&segmentImageSourceToVertex(_0x473f00,_0x3dfcfa);const _0x2dad67=getValueByPath(_0x560985,[_0x239535(0x66c)]);return _0x2dad67!=null&&segmentImageConfigToVertex(_0x2dad67,_0x3dfcfa),_0x3dfcfa;}function segmentImageResponseFromVertex(_0x153f8f,_0x20ad57){const _0x20a823=a6_0x51c1ef,_0x522b76={},_0x5240e0=getValueByPath(_0x153f8f,['predictions']);if(_0x5240e0!=null){let _0xaf23f3=_0x5240e0;Array[_0x20a823(0x49d)](_0xaf23f3)&&(_0xaf23f3=_0xaf23f3[_0x20a823(0x68f)](_0x39258e=>{return generatedImageMaskFromVertex(_0x39258e);})),setValueByPath(_0x522b76,[_0x20a823(0x3b9)],_0xaf23f3);}return _0x522b76;}function segmentImageSourceToVertex(_0xac9618,_0x2cb92a,_0x23e74d){const _0x37649a=a6_0x51c1ef,_0x118061={},_0x3905ee=getValueByPath(_0xac9618,['prompt']);_0x2cb92a!==undefined&&_0x3905ee!=null&&setValueByPath(_0x2cb92a,[_0x37649a(0x176),'prompt'],_0x3905ee);const _0x4e2885=getValueByPath(_0xac9618,['image']);_0x2cb92a!==undefined&&_0x4e2885!=null&&setValueByPath(_0x2cb92a,[_0x37649a(0x176),_0x37649a(0x559)],imageToVertex(_0x4e2885));const _0x44076d=getValueByPath(_0xac9618,['scribbleImage']);return _0x2cb92a!==undefined&&_0x44076d!=null&&setValueByPath(_0x2cb92a,[_0x37649a(0x176),'scribble'],scribbleImageToVertex(_0x44076d)),_0x118061;}function toolConfigToMldev(_0x2138cf,_0x18f055){const _0xe4fbb9=a6_0x51c1ef,_0x3aeaa8={},_0x11d4cb=getValueByPath(_0x2138cf,[_0xe4fbb9(0x3bc)]);_0x11d4cb!=null&&setValueByPath(_0x3aeaa8,[_0xe4fbb9(0x3bc)],_0x11d4cb);const _0x5b8692=getValueByPath(_0x2138cf,['functionCallingConfig']);return _0x5b8692!=null&&setValueByPath(_0x3aeaa8,[_0xe4fbb9(0x429)],functionCallingConfigToMldev(_0x5b8692)),_0x3aeaa8;}function toolToMldev$1(_0x1e841f,_0x1583e3){const _0x1941ed=a6_0x51c1ef,_0x2c4534={};if(getValueByPath(_0x1e841f,[_0x1941ed(0x3ec)])!==undefined)throw new Error(_0x1941ed(0x390));const _0x25d7ea=getValueByPath(_0x1e841f,[_0x1941ed(0x41e)]);_0x25d7ea!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x41e)],_0x25d7ea);const _0x44091f=getValueByPath(_0x1e841f,[_0x1941ed(0x403)]);_0x44091f!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x403)],_0x44091f);const _0x343a8b=getValueByPath(_0x1e841f,[_0x1941ed(0x230)]);_0x343a8b!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x230)],_0x343a8b);if(getValueByPath(_0x1e841f,[_0x1941ed(0x49c)])!==undefined)throw new Error(_0x1941ed(0x42f));const _0x3812a8=getValueByPath(_0x1e841f,['functionDeclarations']);if(_0x3812a8!=null){let _0x29e3a1=_0x3812a8;Array[_0x1941ed(0x49d)](_0x29e3a1)&&(_0x29e3a1=_0x29e3a1[_0x1941ed(0x68f)](_0x2731d0=>{return _0x2731d0;})),setValueByPath(_0x2c4534,[_0x1941ed(0x63b)],_0x29e3a1);}const _0x34b7f3=getValueByPath(_0x1e841f,[_0x1941ed(0x38a)]);_0x34b7f3!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x38a)],googleMapsToMldev$1(_0x34b7f3));const _0x5c2bac=getValueByPath(_0x1e841f,[_0x1941ed(0x618)]);_0x5c2bac!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x618)],googleSearchToMldev$1(_0x5c2bac));const _0x12e676=getValueByPath(_0x1e841f,[_0x1941ed(0x698)]);_0x12e676!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x698)],_0x12e676);const _0x16d186=getValueByPath(_0x1e841f,[_0x1941ed(0x4c9)]);return _0x16d186!=null&&setValueByPath(_0x2c4534,[_0x1941ed(0x4c9)],_0x16d186),_0x2c4534;}function toolToVertex(_0x1de2ba,_0x5752e7){const _0x271488=a6_0x51c1ef,_0x514256={},_0x4f46d3=getValueByPath(_0x1de2ba,[_0x271488(0x3ec)]);_0x4f46d3!=null&&setValueByPath(_0x514256,[_0x271488(0x3ec)],_0x4f46d3);const _0x42a525=getValueByPath(_0x1de2ba,[_0x271488(0x41e)]);_0x42a525!=null&&setValueByPath(_0x514256,[_0x271488(0x41e)],_0x42a525);if(getValueByPath(_0x1de2ba,[_0x271488(0x403)])!==undefined)throw new Error(_0x271488(0x1e1));const _0xc3b0a=getValueByPath(_0x1de2ba,[_0x271488(0x230)]);_0xc3b0a!=null&&setValueByPath(_0x514256,[_0x271488(0x230)],_0xc3b0a);const _0x42ba86=getValueByPath(_0x1de2ba,[_0x271488(0x49c)]);_0x42ba86!=null&&setValueByPath(_0x514256,[_0x271488(0x49c)],_0x42ba86);const _0x385295=getValueByPath(_0x1de2ba,[_0x271488(0x63b)]);if(_0x385295!=null){let _0x410d20=_0x385295;Array[_0x271488(0x49d)](_0x410d20)&&(_0x410d20=_0x410d20[_0x271488(0x68f)](_0x3a4ba6=>{return functionDeclarationToVertex(_0x3a4ba6);})),setValueByPath(_0x514256,[_0x271488(0x63b)],_0x410d20);}const _0x920884=getValueByPath(_0x1de2ba,[_0x271488(0x38a)]);_0x920884!=null&&setValueByPath(_0x514256,[_0x271488(0x38a)],_0x920884);const _0x202bdf=getValueByPath(_0x1de2ba,[_0x271488(0x618)]);_0x202bdf!=null&&setValueByPath(_0x514256,[_0x271488(0x618)],_0x202bdf);const _0x41538d=getValueByPath(_0x1de2ba,[_0x271488(0x698)]);_0x41538d!=null&&setValueByPath(_0x514256,['googleSearchRetrieval'],_0x41538d);const _0x411c1f=getValueByPath(_0x1de2ba,['urlContext']);return _0x411c1f!=null&&setValueByPath(_0x514256,['urlContext'],_0x411c1f),_0x514256;}function tunedModelInfoFromMldev(_0x10c1f0,_0xc9ea5){const _0x3833f3=a6_0x51c1ef,_0x34a84c={},_0x336e75=getValueByPath(_0x10c1f0,[_0x3833f3(0x660)]);_0x336e75!=null&&setValueByPath(_0x34a84c,[_0x3833f3(0x660)],_0x336e75);const _0x9834bb=getValueByPath(_0x10c1f0,['createTime']);_0x9834bb!=null&&setValueByPath(_0x34a84c,[_0x3833f3(0x5c5)],_0x9834bb);const _0x55dab7=getValueByPath(_0x10c1f0,[_0x3833f3(0x343)]);return _0x55dab7!=null&&setValueByPath(_0x34a84c,[_0x3833f3(0x343)],_0x55dab7),_0x34a84c;}function tunedModelInfoFromVertex(_0x21b03c,_0x3b4395){const _0x5ac4fd=a6_0x51c1ef,_0x37ac2e={},_0x521c98=getValueByPath(_0x21b03c,['labels',_0x5ac4fd(0x32e)]);_0x521c98!=null&&setValueByPath(_0x37ac2e,['baseModel'],_0x521c98);const _0x569ee9=getValueByPath(_0x21b03c,[_0x5ac4fd(0x5c5)]);_0x569ee9!=null&&setValueByPath(_0x37ac2e,['createTime'],_0x569ee9);const _0x276854=getValueByPath(_0x21b03c,[_0x5ac4fd(0x343)]);return _0x276854!=null&&setValueByPath(_0x37ac2e,[_0x5ac4fd(0x343)],_0x276854),_0x37ac2e;}function updateModelConfigToMldev(_0x381357,_0x1a2d32,_0x549132){const _0x4984b1=a6_0x51c1ef,_0x27babb={},_0x1a0bdd=getValueByPath(_0x381357,[_0x4984b1(0x419)]);_0x1a2d32!==undefined&&_0x1a0bdd!=null&&setValueByPath(_0x1a2d32,[_0x4984b1(0x419)],_0x1a0bdd);const _0x21e8a5=getValueByPath(_0x381357,[_0x4984b1(0x464)]);_0x1a2d32!==undefined&&_0x21e8a5!=null&&setValueByPath(_0x1a2d32,[_0x4984b1(0x464)],_0x21e8a5);const _0x262e15=getValueByPath(_0x381357,['defaultCheckpointId']);return _0x1a2d32!==undefined&&_0x262e15!=null&&setValueByPath(_0x1a2d32,[_0x4984b1(0x427)],_0x262e15),_0x27babb;}function updateModelConfigToVertex(_0x27a862,_0x5ce645,_0x31a0b2){const _0x25286a=a6_0x51c1ef,_0x5e47cc={},_0x5627fa=getValueByPath(_0x27a862,['displayName']);_0x5ce645!==undefined&&_0x5627fa!=null&&setValueByPath(_0x5ce645,[_0x25286a(0x419)],_0x5627fa);const _0x5f20cc=getValueByPath(_0x27a862,[_0x25286a(0x464)]);_0x5ce645!==undefined&&_0x5f20cc!=null&&setValueByPath(_0x5ce645,[_0x25286a(0x464)],_0x5f20cc);const _0x45fd43=getValueByPath(_0x27a862,[_0x25286a(0x427)]);return _0x5ce645!==undefined&&_0x45fd43!=null&&setValueByPath(_0x5ce645,[_0x25286a(0x427)],_0x45fd43),_0x5e47cc;}function updateModelParametersToMldev(_0x5e1af6,_0x4b4203,_0x55cbfb){const _0x212820=a6_0x51c1ef,_0x445e3c={},_0xb1cba4=getValueByPath(_0x4b4203,[_0x212820(0x418)]);_0xb1cba4!=null&&setValueByPath(_0x445e3c,[_0x212820(0x2c1),_0x212820(0x558)],tModel(_0x5e1af6,_0xb1cba4));const _0x55c5c0=getValueByPath(_0x4b4203,[_0x212820(0x66c)]);return _0x55c5c0!=null&&updateModelConfigToMldev(_0x55c5c0,_0x445e3c),_0x445e3c;}function updateModelParametersToVertex(_0x1279c4,_0x4acd48,_0x579ead){const _0x10fa72=a6_0x51c1ef,_0x524057={},_0x413be3=getValueByPath(_0x4acd48,[_0x10fa72(0x418)]);_0x413be3!=null&&setValueByPath(_0x524057,[_0x10fa72(0x2c1),_0x10fa72(0x418)],tModel(_0x1279c4,_0x413be3));const _0x4e1633=getValueByPath(_0x4acd48,['config']);return _0x4e1633!=null&&updateModelConfigToVertex(_0x4e1633,_0x524057),_0x524057;}function upscaleImageAPIConfigInternalToVertex(_0xfa1c4c,_0x54c0ab,_0x7925e5){const _0x257cf4=a6_0x51c1ef,_0x55e70c={},_0x16e847=getValueByPath(_0xfa1c4c,[_0x257cf4(0x361)]);_0x54c0ab!==undefined&&_0x16e847!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),_0x257cf4(0x3ab)],_0x16e847);const _0x10ab7e=getValueByPath(_0xfa1c4c,['safetyFilterLevel']);_0x54c0ab!==undefined&&_0x10ab7e!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),'safetySetting'],_0x10ab7e);const _0x3cf991=getValueByPath(_0xfa1c4c,['personGeneration']);_0x54c0ab!==undefined&&_0x3cf991!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),_0x257cf4(0x346)],_0x3cf991);const _0x14beb7=getValueByPath(_0xfa1c4c,[_0x257cf4(0x60f)]);_0x54c0ab!==undefined&&_0x14beb7!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),_0x257cf4(0x60f)],_0x14beb7);const _0x3459cc=getValueByPath(_0xfa1c4c,['outputMimeType']);_0x54c0ab!==undefined&&_0x3459cc!=null&&setValueByPath(_0x54c0ab,['parameters',_0x257cf4(0x3f9),'mimeType'],_0x3459cc);const _0x5cb73d=getValueByPath(_0xfa1c4c,[_0x257cf4(0x1a5)]);_0x54c0ab!==undefined&&_0x5cb73d!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),'outputOptions','compressionQuality'],_0x5cb73d);const _0x1930b5=getValueByPath(_0xfa1c4c,[_0x257cf4(0x4b7)]);_0x54c0ab!==undefined&&_0x1930b5!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),'upscaleConfig',_0x257cf4(0x4b7)],_0x1930b5);const _0x380b1b=getValueByPath(_0xfa1c4c,[_0x257cf4(0x319)]);_0x54c0ab!==undefined&&_0x380b1b!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),_0x257cf4(0x33a),_0x257cf4(0x319)],_0x380b1b);const _0x3259d2=getValueByPath(_0xfa1c4c,['labels']);_0x54c0ab!==undefined&&_0x3259d2!=null&&setValueByPath(_0x54c0ab,['labels'],_0x3259d2);const _0x34850b=getValueByPath(_0xfa1c4c,[_0x257cf4(0x3de)]);_0x54c0ab!==undefined&&_0x34850b!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),'sampleCount'],_0x34850b);const _0xa26f94=getValueByPath(_0xfa1c4c,[_0x257cf4(0x1c2)]);return _0x54c0ab!==undefined&&_0xa26f94!=null&&setValueByPath(_0x54c0ab,[_0x257cf4(0x59e),_0x257cf4(0x1c2)],_0xa26f94),_0x55e70c;}function upscaleImageAPIParametersInternalToVertex(_0x4ccc1b,_0x510535,_0x3b8889){const _0xba3478=a6_0x51c1ef,_0x4b1928={},_0x3b04fd=getValueByPath(_0x510535,[_0xba3478(0x418)]);_0x3b04fd!=null&&setValueByPath(_0x4b1928,[_0xba3478(0x2c1),_0xba3478(0x418)],tModel(_0x4ccc1b,_0x3b04fd));const _0x1d05d4=getValueByPath(_0x510535,[_0xba3478(0x559)]);_0x1d05d4!=null&&setValueByPath(_0x4b1928,[_0xba3478(0x176),_0xba3478(0x559)],imageToVertex(_0x1d05d4));const _0x16593d=getValueByPath(_0x510535,[_0xba3478(0x1cc)]);_0x16593d!=null&&setValueByPath(_0x4b1928,[_0xba3478(0x59e),_0xba3478(0x33a),'upscaleFactor'],_0x16593d);const _0x3b256b=getValueByPath(_0x510535,['config']);return _0x3b256b!=null&&upscaleImageAPIConfigInternalToVertex(_0x3b256b,_0x4b1928),_0x4b1928;}function upscaleImageResponseFromVertex(_0x1bfb4e,_0x289fe1){const _0x17d6e4=a6_0x51c1ef,_0x3eb5a1={},_0x1d4a0e=getValueByPath(_0x1bfb4e,[_0x17d6e4(0x344)]);_0x1d4a0e!=null&&setValueByPath(_0x3eb5a1,[_0x17d6e4(0x344)],_0x1d4a0e);const _0x45cf4b=getValueByPath(_0x1bfb4e,[_0x17d6e4(0x4e3)]);if(_0x45cf4b!=null){let _0x6825c6=_0x45cf4b;Array[_0x17d6e4(0x49d)](_0x6825c6)&&(_0x6825c6=_0x6825c6[_0x17d6e4(0x68f)](_0x2f078d=>{return generatedImageFromVertex(_0x2f078d);})),setValueByPath(_0x3eb5a1,[_0x17d6e4(0x395)],_0x6825c6);}return _0x3eb5a1;}function videoFromMldev(_0xd4b618,_0x249d27){const _0x5ecf8c=a6_0x51c1ef,_0x42ec7c={},_0x53b7cf=getValueByPath(_0xd4b618,[_0x5ecf8c(0x64d)]);_0x53b7cf!=null&&setValueByPath(_0x42ec7c,[_0x5ecf8c(0x64d)],_0x53b7cf);const _0x1f8910=getValueByPath(_0xd4b618,[_0x5ecf8c(0x3a5)]);_0x1f8910!=null&&setValueByPath(_0x42ec7c,[_0x5ecf8c(0x58c)],tBytes(_0x1f8910));const _0x5547de=getValueByPath(_0xd4b618,[_0x5ecf8c(0x232)]);return _0x5547de!=null&&setValueByPath(_0x42ec7c,['mimeType'],_0x5547de),_0x42ec7c;}function videoFromVertex(_0x50254a,_0x1f9f3b){const _0xbc2234=a6_0x51c1ef,_0x9936b6={},_0x31f75f=getValueByPath(_0x50254a,[_0xbc2234(0x507)]);_0x31f75f!=null&&setValueByPath(_0x9936b6,[_0xbc2234(0x64d)],_0x31f75f);const _0x5cd00b=getValueByPath(_0x50254a,['bytesBase64Encoded']);_0x5cd00b!=null&&setValueByPath(_0x9936b6,[_0xbc2234(0x58c)],tBytes(_0x5cd00b));const _0x43b133=getValueByPath(_0x50254a,[_0xbc2234(0x1ac)]);return _0x43b133!=null&&setValueByPath(_0x9936b6,[_0xbc2234(0x1ac)],_0x43b133),_0x9936b6;}function videoGenerationMaskToVertex(_0x592626,_0x39c503){const _0x4179b9=a6_0x51c1ef,_0xb7c9aa={},_0x14f69e=getValueByPath(_0x592626,[_0x4179b9(0x559)]);_0x14f69e!=null&&setValueByPath(_0xb7c9aa,[_0x4179b9(0x5aa)],imageToVertex(_0x14f69e));const _0xdf3e99=getValueByPath(_0x592626,[_0x4179b9(0x1bd)]);return _0xdf3e99!=null&&setValueByPath(_0xb7c9aa,[_0x4179b9(0x1bd)],_0xdf3e99),_0xb7c9aa;}function videoGenerationReferenceImageToMldev(_0x407a87,_0x2a60de){const _0x158264=a6_0x51c1ef,_0x2a7ce6={},_0xd0c1f3=getValueByPath(_0x407a87,[_0x158264(0x559)]);_0xd0c1f3!=null&&setValueByPath(_0x2a7ce6,[_0x158264(0x559)],imageToMldev(_0xd0c1f3));const _0x354cf0=getValueByPath(_0x407a87,[_0x158264(0x5a0)]);return _0x354cf0!=null&&setValueByPath(_0x2a7ce6,[_0x158264(0x5a0)],_0x354cf0),_0x2a7ce6;}function videoGenerationReferenceImageToVertex(_0x8a96a0,_0x293aa2){const _0x461d02=a6_0x51c1ef,_0x4eaafd={},_0x3e4468=getValueByPath(_0x8a96a0,['image']);_0x3e4468!=null&&setValueByPath(_0x4eaafd,[_0x461d02(0x559)],imageToVertex(_0x3e4468));const _0x3ff451=getValueByPath(_0x8a96a0,[_0x461d02(0x5a0)]);return _0x3ff451!=null&&setValueByPath(_0x4eaafd,[_0x461d02(0x5a0)],_0x3ff451),_0x4eaafd;}function videoToMldev(_0x480ee1,_0x3bde01){const _0x5b24af=a6_0x51c1ef,_0x3aa23d={},_0x236338=getValueByPath(_0x480ee1,[_0x5b24af(0x64d)]);_0x236338!=null&&setValueByPath(_0x3aa23d,['uri'],_0x236338);const _0x5661f2=getValueByPath(_0x480ee1,[_0x5b24af(0x58c)]);_0x5661f2!=null&&setValueByPath(_0x3aa23d,[_0x5b24af(0x3a5)],tBytes(_0x5661f2));const _0x4da7e5=getValueByPath(_0x480ee1,[_0x5b24af(0x1ac)]);return _0x4da7e5!=null&&setValueByPath(_0x3aa23d,[_0x5b24af(0x232)],_0x4da7e5),_0x3aa23d;}function videoToVertex(_0xac4671,_0x37b7f2){const _0x55de59=a6_0x51c1ef,_0x5b0532={},_0x4fa826=getValueByPath(_0xac4671,[_0x55de59(0x64d)]);_0x4fa826!=null&&setValueByPath(_0x5b0532,['gcsUri'],_0x4fa826);const _0x466611=getValueByPath(_0xac4671,[_0x55de59(0x58c)]);_0x466611!=null&&setValueByPath(_0x5b0532,[_0x55de59(0x3c9)],tBytes(_0x466611));const _0xf18afe=getValueByPath(_0xac4671,['mimeType']);return _0xf18afe!=null&&setValueByPath(_0x5b0532,['mimeType'],_0xf18afe),_0x5b0532;}/**
87
+ * @license
88
+ * Copyright 2025 Google LLC
89
+ * SPDX-License-Identifier: Apache-2.0
90
+ */
91
+ function createFileSearchStoreConfigToMldev(_0x5a7431,_0x341f88){const _0x1d9a09=a6_0x51c1ef,_0x40ae4b={},_0x1ca786=getValueByPath(_0x5a7431,[_0x1d9a09(0x419)]);return _0x341f88!==undefined&&_0x1ca786!=null&&setValueByPath(_0x341f88,[_0x1d9a09(0x419)],_0x1ca786),_0x40ae4b;}function createFileSearchStoreParametersToMldev(_0x401086){const _0x17e27c={},_0x5c435b=getValueByPath(_0x401086,['config']);return _0x5c435b!=null&&createFileSearchStoreConfigToMldev(_0x5c435b,_0x17e27c),_0x17e27c;}function deleteFileSearchStoreConfigToMldev(_0x10d0fa,_0x1b31d1){const _0x5ee0c8={},_0x2518b0=getValueByPath(_0x10d0fa,['force']);return _0x1b31d1!==undefined&&_0x2518b0!=null&&setValueByPath(_0x1b31d1,['_query','force'],_0x2518b0),_0x5ee0c8;}function deleteFileSearchStoreParametersToMldev(_0x18e0ad){const _0x59e174=a6_0x51c1ef,_0x39a705={},_0x272e60=getValueByPath(_0x18e0ad,[_0x59e174(0x558)]);_0x272e60!=null&&setValueByPath(_0x39a705,[_0x59e174(0x2c1),'name'],_0x272e60);const _0x4c64ca=getValueByPath(_0x18e0ad,['config']);return _0x4c64ca!=null&&deleteFileSearchStoreConfigToMldev(_0x4c64ca,_0x39a705),_0x39a705;}function getFileSearchStoreParametersToMldev(_0x28221d){const _0x370da3=a6_0x51c1ef,_0x5b8a65={},_0x34e13e=getValueByPath(_0x28221d,[_0x370da3(0x558)]);return _0x34e13e!=null&&setValueByPath(_0x5b8a65,[_0x370da3(0x2c1),_0x370da3(0x558)],_0x34e13e),_0x5b8a65;}function importFileConfigToMldev(_0x218ca6,_0x17f32e){const _0xa54bfa=a6_0x51c1ef,_0x265687={},_0xb67a1c=getValueByPath(_0x218ca6,[_0xa54bfa(0x157)]);if(_0x17f32e!==undefined&&_0xb67a1c!=null){let _0x39d8bd=_0xb67a1c;Array[_0xa54bfa(0x49d)](_0x39d8bd)&&(_0x39d8bd=_0x39d8bd[_0xa54bfa(0x68f)](_0x52fe4d=>{return _0x52fe4d;})),setValueByPath(_0x17f32e,['customMetadata'],_0x39d8bd);}const _0x5d5bb9=getValueByPath(_0x218ca6,[_0xa54bfa(0x417)]);return _0x17f32e!==undefined&&_0x5d5bb9!=null&&setValueByPath(_0x17f32e,['chunkingConfig'],_0x5d5bb9),_0x265687;}function importFileOperationFromMldev(_0x37ceac){const _0x2b6c4c=a6_0x51c1ef,_0x1766e4={},_0x5ebabf=getValueByPath(_0x37ceac,[_0x2b6c4c(0x558)]);_0x5ebabf!=null&&setValueByPath(_0x1766e4,[_0x2b6c4c(0x558)],_0x5ebabf);const _0x26134b=getValueByPath(_0x37ceac,[_0x2b6c4c(0x367)]);_0x26134b!=null&&setValueByPath(_0x1766e4,[_0x2b6c4c(0x367)],_0x26134b);const _0x2e38f6=getValueByPath(_0x37ceac,['done']);_0x2e38f6!=null&&setValueByPath(_0x1766e4,[_0x2b6c4c(0x2e9)],_0x2e38f6);const _0x34c343=getValueByPath(_0x37ceac,[_0x2b6c4c(0x50a)]);_0x34c343!=null&&setValueByPath(_0x1766e4,[_0x2b6c4c(0x50a)],_0x34c343);const _0xb3b9b1=getValueByPath(_0x37ceac,[_0x2b6c4c(0x603)]);return _0xb3b9b1!=null&&setValueByPath(_0x1766e4,['response'],importFileResponseFromMldev(_0xb3b9b1)),_0x1766e4;}function importFileParametersToMldev(_0x178a64){const _0x1fbce7=a6_0x51c1ef,_0xd53c90={},_0x26feec=getValueByPath(_0x178a64,[_0x1fbce7(0x5bc)]);_0x26feec!=null&&setValueByPath(_0xd53c90,[_0x1fbce7(0x2c1),_0x1fbce7(0x264)],_0x26feec);const _0x1527cf=getValueByPath(_0x178a64,[_0x1fbce7(0x38c)]);_0x1527cf!=null&&setValueByPath(_0xd53c90,[_0x1fbce7(0x38c)],_0x1527cf);const _0x39873f=getValueByPath(_0x178a64,[_0x1fbce7(0x66c)]);return _0x39873f!=null&&importFileConfigToMldev(_0x39873f,_0xd53c90),_0xd53c90;}function importFileResponseFromMldev(_0x4290e9){const _0xc4bcd9=a6_0x51c1ef,_0x35bffc={},_0x290ba8=getValueByPath(_0x4290e9,[_0xc4bcd9(0x344)]);_0x290ba8!=null&&setValueByPath(_0x35bffc,['sdkHttpResponse'],_0x290ba8);const _0x34a0da=getValueByPath(_0x4290e9,[_0xc4bcd9(0x509)]);_0x34a0da!=null&&setValueByPath(_0x35bffc,['parent'],_0x34a0da);const _0x14ba7f=getValueByPath(_0x4290e9,[_0xc4bcd9(0x195)]);return _0x14ba7f!=null&&setValueByPath(_0x35bffc,[_0xc4bcd9(0x195)],_0x14ba7f),_0x35bffc;}function listFileSearchStoresConfigToMldev(_0x151614,_0x37018e){const _0xf84f3e=a6_0x51c1ef,_0x43a95a={},_0x34e7e2=getValueByPath(_0x151614,[_0xf84f3e(0x400)]);_0x37018e!==undefined&&_0x34e7e2!=null&&setValueByPath(_0x37018e,[_0xf84f3e(0x4cd),'pageSize'],_0x34e7e2);const _0x4e9871=getValueByPath(_0x151614,[_0xf84f3e(0x2dd)]);return _0x37018e!==undefined&&_0x4e9871!=null&&setValueByPath(_0x37018e,['_query',_0xf84f3e(0x2dd)],_0x4e9871),_0x43a95a;}function listFileSearchStoresParametersToMldev(_0x92cb69){const _0x2ceb09=a6_0x51c1ef,_0x2eda64={},_0x26920a=getValueByPath(_0x92cb69,[_0x2ceb09(0x66c)]);return _0x26920a!=null&&listFileSearchStoresConfigToMldev(_0x26920a,_0x2eda64),_0x2eda64;}function listFileSearchStoresResponseFromMldev(_0x535a1b){const _0x558fcb=a6_0x51c1ef,_0x3ed403={},_0x2a83bf=getValueByPath(_0x535a1b,[_0x558fcb(0x344)]);_0x2a83bf!=null&&setValueByPath(_0x3ed403,[_0x558fcb(0x344)],_0x2a83bf);const _0x1a31d3=getValueByPath(_0x535a1b,['nextPageToken']);_0x1a31d3!=null&&setValueByPath(_0x3ed403,[_0x558fcb(0x17a)],_0x1a31d3);const _0x3a3a72=getValueByPath(_0x535a1b,[_0x558fcb(0x2f5)]);if(_0x3a3a72!=null){let _0x4d6ea7=_0x3a3a72;Array['isArray'](_0x4d6ea7)&&(_0x4d6ea7=_0x4d6ea7[_0x558fcb(0x68f)](_0xc5e6f7=>{return _0xc5e6f7;})),setValueByPath(_0x3ed403,[_0x558fcb(0x2f5)],_0x4d6ea7);}return _0x3ed403;}function uploadToFileSearchStoreConfigToMldev(_0xe2f9c1,_0x5c7005){const _0x145c67=a6_0x51c1ef,_0x2bf3f3={},_0x4dadf6=getValueByPath(_0xe2f9c1,['mimeType']);_0x5c7005!==undefined&&_0x4dadf6!=null&&setValueByPath(_0x5c7005,['mimeType'],_0x4dadf6);const _0x8e31f4=getValueByPath(_0xe2f9c1,['displayName']);_0x5c7005!==undefined&&_0x8e31f4!=null&&setValueByPath(_0x5c7005,['displayName'],_0x8e31f4);const _0x1d390f=getValueByPath(_0xe2f9c1,[_0x145c67(0x157)]);if(_0x5c7005!==undefined&&_0x1d390f!=null){let _0x47ad6f=_0x1d390f;Array[_0x145c67(0x49d)](_0x47ad6f)&&(_0x47ad6f=_0x47ad6f[_0x145c67(0x68f)](_0x556267=>{return _0x556267;})),setValueByPath(_0x5c7005,[_0x145c67(0x157)],_0x47ad6f);}const _0x378943=getValueByPath(_0xe2f9c1,[_0x145c67(0x417)]);return _0x5c7005!==undefined&&_0x378943!=null&&setValueByPath(_0x5c7005,[_0x145c67(0x417)],_0x378943),_0x2bf3f3;}function uploadToFileSearchStoreParametersToMldev(_0x47333c){const _0x2321f3=a6_0x51c1ef,_0xf33ea1={},_0x373325=getValueByPath(_0x47333c,[_0x2321f3(0x5bc)]);_0x373325!=null&&setValueByPath(_0xf33ea1,[_0x2321f3(0x2c1),_0x2321f3(0x264)],_0x373325);const _0x10d10f=getValueByPath(_0x47333c,[_0x2321f3(0x66c)]);return _0x10d10f!=null&&uploadToFileSearchStoreConfigToMldev(_0x10d10f,_0xf33ea1),_0xf33ea1;}function uploadToFileSearchStoreResumableResponseFromMldev(_0x348407){const _0x103b6d=a6_0x51c1ef,_0x12a2b9={},_0x186312=getValueByPath(_0x348407,[_0x103b6d(0x344)]);return _0x186312!=null&&setValueByPath(_0x12a2b9,[_0x103b6d(0x344)],_0x186312),_0x12a2b9;}/**
92
+ * @license
93
+ * Copyright 2025 Google LLC
94
+ * SPDX-License-Identifier: Apache-2.0
95
+ */
96
+ const CONTENT_TYPE_HEADER=a6_0x51c1ef(0x3a6),SERVER_TIMEOUT_HEADER=a6_0x51c1ef(0x628),USER_AGENT_HEADER=a6_0x51c1ef(0x30c),GOOGLE_API_CLIENT_HEADER=a6_0x51c1ef(0x627),SDK_VERSION='1.40.0',LIBRARY_LABEL=a6_0x51c1ef(0x444)+SDK_VERSION,VERTEX_AI_API_DEFAULT_VERSION=a6_0x51c1ef(0x19e),GOOGLE_AI_API_DEFAULT_VERSION=a6_0x51c1ef(0x223);class ApiClient{constructor(_0x4f0bab){const _0x2d4fd3=a6_0x51c1ef;var _0x4887d8,_0x191b54,_0x304ed5;this[_0x2d4fd3(0x5d8)]=Object['assign']({},_0x4f0bab),this[_0x2d4fd3(0x2ae)]=(_0x4887d8=_0x4f0bab[_0x2d4fd3(0x328)])===null||_0x4887d8===void 0x0?void 0x0:_0x4887d8[_0x2d4fd3(0x586)];if(this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x593)]){if(this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x26a)]&&this[_0x2d4fd3(0x5d8)]['location'])this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x614)]=undefined;else this['clientOptions']['apiKey']&&(this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x26a)]=undefined,this['clientOptions']['location']=undefined);}const _0x48a405={};if(this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x593)]){!this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x3d9)]&&!this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x614)]&&!this[_0x2d4fd3(0x2ae)]&&(this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x3d9)]=_0x2d4fd3(0x4ef));const _0x138250=this['clientOptions'][_0x2d4fd3(0x26a)]&&this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x3d9)]||this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x614)];if(!_0x138250&&!this[_0x2d4fd3(0x2ae)])throw new Error(_0x2d4fd3(0x295));const _0x312c93=_0x4f0bab[_0x2d4fd3(0x26a)]&&_0x4f0bab['location']||!!_0x4f0bab[_0x2d4fd3(0x614)];if(this[_0x2d4fd3(0x2ae)]&&!_0x312c93)_0x48a405[_0x2d4fd3(0x586)]=this['customBaseUrl'],this['clientOptions'][_0x2d4fd3(0x26a)]=undefined,this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x3d9)]=undefined;else{if(this['clientOptions'][_0x2d4fd3(0x614)]||this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x3d9)]===_0x2d4fd3(0x4ef))_0x48a405[_0x2d4fd3(0x586)]=_0x2d4fd3(0x5cd);else this['clientOptions'][_0x2d4fd3(0x26a)]&&this[_0x2d4fd3(0x5d8)]['location']&&(_0x48a405[_0x2d4fd3(0x586)]=_0x2d4fd3(0x1e9)+this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x3d9)]+'-aiplatform.googleapis.com/');}_0x48a405['apiVersion']=(_0x191b54=this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x63e)])!==null&&_0x191b54!==void 0x0?_0x191b54:VERTEX_AI_API_DEFAULT_VERSION;}else{if(!this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x614)])throw new ApiError({'message':_0x2d4fd3(0x57c),'status':0x193});_0x48a405[_0x2d4fd3(0x63e)]=(_0x304ed5=this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x63e)])!==null&&_0x304ed5!==void 0x0?_0x304ed5:GOOGLE_AI_API_DEFAULT_VERSION,_0x48a405[_0x2d4fd3(0x586)]=_0x2d4fd3(0x51e);}_0x48a405[_0x2d4fd3(0x2b9)]=this[_0x2d4fd3(0x578)](),this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x328)]=_0x48a405,_0x4f0bab['httpOptions']&&(this[_0x2d4fd3(0x5d8)][_0x2d4fd3(0x328)]=this['patchHttpOptions'](_0x48a405,_0x4f0bab[_0x2d4fd3(0x328)]));}[a6_0x51c1ef(0x291)](){const _0x166309=a6_0x51c1ef;var _0x1b33ca;return(_0x1b33ca=this[_0x166309(0x5d8)][_0x166309(0x593)])!==null&&_0x1b33ca!==void 0x0?_0x1b33ca:![];}[a6_0x51c1ef(0x633)](){const _0x455033=a6_0x51c1ef;return this[_0x455033(0x5d8)][_0x455033(0x26a)];}['getLocation'](){const _0x49d7fa=a6_0x51c1ef;return this[_0x49d7fa(0x5d8)][_0x49d7fa(0x3d9)];}['getCustomBaseUrl'](){const _0x18856d=a6_0x51c1ef;return this[_0x18856d(0x2ae)];}async[a6_0x51c1ef(0x4c5)](){const _0x33d1d3=a6_0x51c1ef,_0x3709e0=new Headers();return await this[_0x33d1d3(0x5d8)][_0x33d1d3(0x50b)]['addAuthHeaders'](_0x3709e0),_0x3709e0;}[a6_0x51c1ef(0x4e8)](){const _0x4e28a5=a6_0x51c1ef;if(this[_0x4e28a5(0x5d8)][_0x4e28a5(0x328)]&&this['clientOptions'][_0x4e28a5(0x328)][_0x4e28a5(0x63e)]!==undefined)return this[_0x4e28a5(0x5d8)]['httpOptions'][_0x4e28a5(0x63e)];throw new Error('API\x20version\x20is\x20not\x20set.');}[a6_0x51c1ef(0x551)](){const _0x5b6a94=a6_0x51c1ef;if(this[_0x5b6a94(0x5d8)][_0x5b6a94(0x328)]&&this['clientOptions'][_0x5b6a94(0x328)][_0x5b6a94(0x586)]!==undefined)return this[_0x5b6a94(0x5d8)][_0x5b6a94(0x328)][_0x5b6a94(0x586)];throw new Error(_0x5b6a94(0x2af));}[a6_0x51c1ef(0x641)](){const _0x442f53=a6_0x51c1ef;return this['getRequestUrlInternal'](this[_0x442f53(0x5d8)][_0x442f53(0x328)]);}[a6_0x51c1ef(0x388)](){const _0x4323ba=a6_0x51c1ef;if(this[_0x4323ba(0x5d8)][_0x4323ba(0x328)]&&this[_0x4323ba(0x5d8)][_0x4323ba(0x328)][_0x4323ba(0x2b9)]!==undefined)return this['clientOptions'][_0x4323ba(0x328)][_0x4323ba(0x2b9)];else throw new Error(_0x4323ba(0x20f));}[a6_0x51c1ef(0x323)](_0x314b98){const _0x3f903c=a6_0x51c1ef;if(!_0x314b98||_0x314b98['baseUrl']===undefined||_0x314b98[_0x3f903c(0x63e)]===undefined)throw new Error(_0x3f903c(0x18e));const _0x9e19d8=_0x314b98[_0x3f903c(0x586)][_0x3f903c(0x600)]('/')?_0x314b98[_0x3f903c(0x586)][_0x3f903c(0x15a)](0x0,-0x1):_0x314b98[_0x3f903c(0x586)],_0x49e31d=[_0x9e19d8];return _0x314b98[_0x3f903c(0x63e)]&&_0x314b98[_0x3f903c(0x63e)]!==''&&_0x49e31d['push'](_0x314b98[_0x3f903c(0x63e)]),_0x49e31d[_0x3f903c(0x4c1)]('/');}[a6_0x51c1ef(0x3c2)](){const _0x58655d=a6_0x51c1ef;return _0x58655d(0x2ba)+this[_0x58655d(0x5d8)][_0x58655d(0x26a)]+_0x58655d(0x55b)+this[_0x58655d(0x5d8)][_0x58655d(0x3d9)];}['getApiKey'](){const _0x1ec617=a6_0x51c1ef;return this[_0x1ec617(0x5d8)]['apiKey'];}[a6_0x51c1ef(0x498)](){const _0x41fb7c=a6_0x51c1ef,_0x455d19=this[_0x41fb7c(0x551)](),_0x56b81f=new URL(_0x455d19);return _0x56b81f[_0x41fb7c(0x685)]=_0x56b81f[_0x41fb7c(0x685)]==_0x41fb7c(0x4b2)?'ws':_0x41fb7c(0x4df),_0x56b81f['toString']();}['setBaseUrl'](_0x38a729){const _0x30497c=a6_0x51c1ef;if(this[_0x30497c(0x5d8)][_0x30497c(0x328)])this['clientOptions'][_0x30497c(0x328)][_0x30497c(0x586)]=_0x38a729;else throw new Error(_0x30497c(0x18e));}['constructUrl'](_0x8eca92,_0x605941,_0x1f41c7){const _0x277092=a6_0x51c1ef,_0x105452=[this[_0x277092(0x323)](_0x605941)];_0x1f41c7&&_0x105452[_0x277092(0x656)](this[_0x277092(0x3c2)]());_0x8eca92!==''&&_0x105452['push'](_0x8eca92);const _0x481c4b=new URL(''+_0x105452[_0x277092(0x4c1)]('/'));return _0x481c4b;}['shouldPrependVertexProjectPath'](_0x1ddb59,_0x3aab70){const _0x5b11e4=a6_0x51c1ef;if(_0x3aab70[_0x5b11e4(0x586)]&&_0x3aab70[_0x5b11e4(0x44e)]===ResourceScope['COLLECTION'])return![];if(this[_0x5b11e4(0x5d8)][_0x5b11e4(0x614)])return![];if(!this['clientOptions'][_0x5b11e4(0x593)])return![];if(_0x1ddb59['path'][_0x5b11e4(0x453)](_0x5b11e4(0x2ba)))return![];if(_0x1ddb59['httpMethod']==='GET'&&_0x1ddb59[_0x5b11e4(0x3eb)][_0x5b11e4(0x453)]('publishers/google/models'))return![];return!![];}async[a6_0x51c1ef(0x560)](_0x3ea928){const _0x26bc88=a6_0x51c1ef;let _0x5e7787=this['clientOptions'][_0x26bc88(0x328)];_0x3ea928['httpOptions']&&(_0x5e7787=this['patchHttpOptions'](this[_0x26bc88(0x5d8)][_0x26bc88(0x328)],_0x3ea928['httpOptions']));const _0xc57a4d=this[_0x26bc88(0x187)](_0x3ea928,_0x5e7787),_0x485de9=this['constructUrl'](_0x3ea928['path'],_0x5e7787,_0xc57a4d);if(_0x3ea928['queryParams'])for(const [_0x2fc6a0,_0x4e281f]of Object[_0x26bc88(0x4cc)](_0x3ea928[_0x26bc88(0x1c7)])){_0x485de9[_0x26bc88(0x1e7)][_0x26bc88(0x2d3)](_0x2fc6a0,String(_0x4e281f));}let _0x37a8c2={};if(_0x3ea928['httpMethod']===_0x26bc88(0x1fa)){if(_0x3ea928[_0x26bc88(0x68e)]&&_0x3ea928['body']!=='{}')throw new Error(_0x26bc88(0x3b1));}else _0x37a8c2[_0x26bc88(0x68e)]=_0x3ea928['body'];return _0x37a8c2=await this['includeExtraHttpOptionsToRequestInit'](_0x37a8c2,_0x5e7787,_0x485de9[_0x26bc88(0x1bc)](),_0x3ea928['abortSignal']),this[_0x26bc88(0x456)](_0x485de9,_0x37a8c2,_0x3ea928[_0x26bc88(0x55a)]);}[a6_0x51c1ef(0x665)](_0x16dd83,_0xcc03f5){const _0x4618b6=a6_0x51c1ef,_0x4c0aad=JSON[_0x4618b6(0x1b2)](JSON[_0x4618b6(0x183)](_0x16dd83));for(const [_0x129b75,_0x26ec00]of Object[_0x4618b6(0x4cc)](_0xcc03f5)){if(typeof _0x26ec00===_0x4618b6(0x25e))_0x4c0aad[_0x129b75]=Object[_0x4618b6(0x5a8)](Object[_0x4618b6(0x5a8)]({},_0x4c0aad[_0x129b75]),_0x26ec00);else _0x26ec00!==undefined&&(_0x4c0aad[_0x129b75]=_0x26ec00);}return _0x4c0aad;}async[a6_0x51c1ef(0x224)](_0x2fd9b6){const _0x58f819=a6_0x51c1ef;let _0x1c88d2=this[_0x58f819(0x5d8)][_0x58f819(0x328)];_0x2fd9b6[_0x58f819(0x328)]&&(_0x1c88d2=this[_0x58f819(0x665)](this['clientOptions'][_0x58f819(0x328)],_0x2fd9b6['httpOptions']));const _0xc54b48=this[_0x58f819(0x187)](_0x2fd9b6,_0x1c88d2),_0x18ed98=this['constructUrl'](_0x2fd9b6[_0x58f819(0x3eb)],_0x1c88d2,_0xc54b48);(!_0x18ed98[_0x58f819(0x1e7)]['has'](_0x58f819(0x65e))||_0x18ed98[_0x58f819(0x1e7)]['get']('alt')!==_0x58f819(0x274))&&_0x18ed98[_0x58f819(0x1e7)][_0x58f819(0x229)]('alt',_0x58f819(0x274));let _0xed7493={};return _0xed7493['body']=_0x2fd9b6['body'],_0xed7493=await this[_0x58f819(0x50e)](_0xed7493,_0x1c88d2,_0x18ed98[_0x58f819(0x1bc)](),_0x2fd9b6['abortSignal']),this['streamApiCall'](_0x18ed98,_0xed7493,_0x2fd9b6[_0x58f819(0x55a)]);}async[a6_0x51c1ef(0x50e)](_0x5a30f1,_0x5b6515,_0x210af9,_0xeef0cc){const _0xa6d585=a6_0x51c1ef;if(_0x5b6515&&_0x5b6515[_0xa6d585(0x2e3)]||_0xeef0cc){const _0x11f03e=new AbortController(),_0x115f15=_0x11f03e[_0xa6d585(0x42b)];if(_0x5b6515[_0xa6d585(0x2e3)]&&(_0x5b6515===null||_0x5b6515===void 0x0?void 0x0:_0x5b6515[_0xa6d585(0x2e3)])>0x0){const _0x509998=setTimeout(()=>_0x11f03e[_0xa6d585(0x50c)](),_0x5b6515[_0xa6d585(0x2e3)]);_0x509998&&typeof _0x509998[_0xa6d585(0x582)]===_0xa6d585(0x60e)&&_0x509998[_0xa6d585(0x582)]();}_0xeef0cc&&_0xeef0cc[_0xa6d585(0x47e)]('abort',()=>{const _0x208f44=_0xa6d585;_0x11f03e[_0x208f44(0x50c)]();}),_0x5a30f1[_0xa6d585(0x42b)]=_0x115f15;}return _0x5b6515&&_0x5b6515[_0xa6d585(0x634)]!==null&&includeExtraBodyToRequestInit(_0x5a30f1,_0x5b6515[_0xa6d585(0x634)]),_0x5a30f1[_0xa6d585(0x2b9)]=await this['getHeadersInternal'](_0x5b6515,_0x210af9),_0x5a30f1;}async[a6_0x51c1ef(0x456)](_0x563bc2,_0x372374,_0x423928){const _0x57b4aa=a6_0x51c1ef;return this[_0x57b4aa(0x3c3)](_0x563bc2[_0x57b4aa(0x1bc)](),Object[_0x57b4aa(0x5a8)](Object[_0x57b4aa(0x5a8)]({},_0x372374),{'method':_0x423928}))['then'](async _0x336b8d=>{return await throwErrorIfNotOK(_0x336b8d),new HttpResponse(_0x336b8d);})['catch'](_0x4544a4=>{if(_0x4544a4 instanceof Error)throw _0x4544a4;else throw new Error(JSON['stringify'](_0x4544a4));});}async[a6_0x51c1ef(0x35c)](_0x1d28e7,_0x291e67,_0x258347){const _0x202527=a6_0x51c1ef;return this[_0x202527(0x3c3)](_0x1d28e7[_0x202527(0x1bc)](),Object[_0x202527(0x5a8)](Object[_0x202527(0x5a8)]({},_0x291e67),{'method':_0x258347}))[_0x202527(0x486)](async _0x591f43=>{return await throwErrorIfNotOK(_0x591f43),this['processStreamResponse'](_0x591f43);})[_0x202527(0x51a)](_0x7550ab=>{if(_0x7550ab instanceof Error)throw _0x7550ab;else throw new Error(JSON['stringify'](_0x7550ab));});}['processStreamResponse'](_0x3981cd){return __asyncGenerator(this,arguments,function*_0x413303(){const _0x31724f=a6_0x148c;var _0x3ea976;const _0x35b842=(_0x3ea976=_0x3981cd===null||_0x3981cd===void 0x0?void 0x0:_0x3981cd[_0x31724f(0x68e)])===null||_0x3ea976===void 0x0?void 0x0:_0x3ea976['getReader'](),_0x417c18=new TextDecoder('utf-8');if(!_0x35b842)throw new Error(_0x31724f(0x2dc));try{let _0x823bc8='';const _0x47e66b=_0x31724f(0x1ee),_0x3f9f30=['\x0a\x0a','\x0d\x0d','\x0d\x0a\x0d\x0a'];while(!![]){const {done:_0x54896d,value:_0x27741f}=yield __await(_0x35b842['read']());if(_0x54896d){if(_0x823bc8[_0x31724f(0x1c5)]()[_0x31724f(0x3b7)]>0x0)throw new Error('Incomplete\x20JSON\x20segment\x20at\x20the\x20end');break;}const _0xfab460=_0x417c18['decode'](_0x27741f,{'stream':!![]});try{const _0x55c416=JSON[_0x31724f(0x1b2)](_0xfab460);if('error'in _0x55c416){const _0x2bb797=JSON['parse'](JSON['stringify'](_0x55c416[_0x31724f(0x50a)])),_0x4dda10=_0x2bb797[_0x31724f(0x544)],_0x56f504=_0x2bb797[_0x31724f(0x4a6)],_0x122a29=_0x31724f(0x47b)+_0x4dda10+'.\x20'+JSON['stringify'](_0x55c416);if(_0x56f504>=0x190&&_0x56f504<0x258){const _0x8fef7f=new ApiError({'message':_0x122a29,'status':_0x56f504});throw _0x8fef7f;}}}catch(_0x1c84a5){const _0x2d62c1=_0x1c84a5;if(_0x2d62c1[_0x31724f(0x558)]===_0x31724f(0x4f5))throw _0x1c84a5;}_0x823bc8+=_0xfab460;let _0x818172=-0x1,_0xd53d5d=0x0;while(!![]){_0x818172=-0x1,_0xd53d5d=0x0;for(const _0x738051 of _0x3f9f30){const _0x26cf18=_0x823bc8[_0x31724f(0x536)](_0x738051);_0x26cf18!==-0x1&&(_0x818172===-0x1||_0x26cf18<_0x818172)&&(_0x818172=_0x26cf18,_0xd53d5d=_0x738051[_0x31724f(0x3b7)]);}if(_0x818172===-0x1)break;const _0x59ad96=_0x823bc8['substring'](0x0,_0x818172);_0x823bc8=_0x823bc8[_0x31724f(0x4bb)](_0x818172+_0xd53d5d);const _0x43fb8e=_0x59ad96['trim']();if(_0x43fb8e[_0x31724f(0x453)](_0x47e66b)){const _0x4cfc15=_0x43fb8e[_0x31724f(0x4bb)](_0x47e66b[_0x31724f(0x3b7)])['trim']();try{const _0x3ba7b7=new Response(_0x4cfc15,{'headers':_0x3981cd===null||_0x3981cd===void 0x0?void 0x0:_0x3981cd[_0x31724f(0x2b9)],'status':_0x3981cd===null||_0x3981cd===void 0x0?void 0x0:_0x3981cd[_0x31724f(0x544)],'statusText':_0x3981cd===null||_0x3981cd===void 0x0?void 0x0:_0x3981cd['statusText']});yield yield __await(new HttpResponse(_0x3ba7b7));}catch(_0x173132){throw new Error(_0x31724f(0x4ff)+_0x4cfc15+'.\x20'+_0x173132);}}}}}finally{_0x35b842[_0x31724f(0x2c3)]();}});}async[a6_0x51c1ef(0x3c3)](_0x40ba5f,_0x45b693){const _0x2a278f=a6_0x51c1ef;return fetch(_0x40ba5f,_0x45b693)[_0x2a278f(0x51a)](_0xb6db1e=>{const _0x3c7b2d=_0x2a278f;throw new Error(_0x3c7b2d(0x24a)+_0xb6db1e+_0x3c7b2d(0x32f));});}[a6_0x51c1ef(0x578)](){const _0xa12d01=a6_0x51c1ef,_0x16d5f={},_0x427046=LIBRARY_LABEL+'\x20'+this[_0xa12d01(0x5d8)][_0xa12d01(0x289)];return _0x16d5f[USER_AGENT_HEADER]=_0x427046,_0x16d5f[GOOGLE_API_CLIENT_HEADER]=_0x427046,_0x16d5f[CONTENT_TYPE_HEADER]=_0xa12d01(0x539),_0x16d5f;}async['getHeadersInternal'](_0xcc39a0,_0x26a79a){const _0x42a785=a6_0x51c1ef,_0x3b86cb=new Headers();if(_0xcc39a0&&_0xcc39a0[_0x42a785(0x2b9)]){for(const [_0x540d96,_0xa49aa2]of Object[_0x42a785(0x4cc)](_0xcc39a0['headers'])){_0x3b86cb[_0x42a785(0x2d3)](_0x540d96,_0xa49aa2);}_0xcc39a0['timeout']&&_0xcc39a0[_0x42a785(0x2e3)]>0x0&&_0x3b86cb[_0x42a785(0x2d3)](SERVER_TIMEOUT_HEADER,String(Math[_0x42a785(0x348)](_0xcc39a0[_0x42a785(0x2e3)]/0x3e8)));}return await this[_0x42a785(0x5d8)][_0x42a785(0x50b)][_0x42a785(0x41d)](_0x3b86cb,_0x26a79a),_0x3b86cb;}[a6_0x51c1ef(0x4de)](_0x559268){const _0x4662a0=a6_0x51c1ef;var _0x400ba0;let _0x1bc6bb='';return typeof _0x559268==='string'&&(_0x1bc6bb=_0x559268[_0x4662a0(0x5a3)](/[/\\]+$/,''),_0x1bc6bb=(_0x400ba0=_0x1bc6bb[_0x4662a0(0x322)](/[/\\]/)[_0x4662a0(0x3a9)]())!==null&&_0x400ba0!==void 0x0?_0x400ba0:''),_0x1bc6bb;}async[a6_0x51c1ef(0x46b)](_0xbfb9d6,_0x58a7ec){const _0x17f171=a6_0x51c1ef;var _0x495dcc;const _0x353450={};_0x58a7ec!=null&&(_0x353450[_0x17f171(0x1ac)]=_0x58a7ec[_0x17f171(0x1ac)],_0x353450[_0x17f171(0x558)]=_0x58a7ec[_0x17f171(0x558)],_0x353450[_0x17f171(0x419)]=_0x58a7ec['displayName']);_0x353450[_0x17f171(0x558)]&&!_0x353450[_0x17f171(0x558)][_0x17f171(0x453)](_0x17f171(0x583))&&(_0x353450[_0x17f171(0x558)]=_0x17f171(0x583)+_0x353450[_0x17f171(0x558)]);const _0x36c985=this['clientOptions']['uploader'],_0x357eec=await _0x36c985['stat'](_0xbfb9d6);_0x353450[_0x17f171(0x40b)]=String(_0x357eec[_0x17f171(0x262)]);const _0x532955=(_0x495dcc=_0x58a7ec===null||_0x58a7ec===void 0x0?void 0x0:_0x58a7ec[_0x17f171(0x1ac)])!==null&&_0x495dcc!==void 0x0?_0x495dcc:_0x357eec[_0x17f171(0x506)];if(_0x532955===undefined||_0x532955==='')throw new Error(_0x17f171(0x5c6));_0x353450[_0x17f171(0x1ac)]=_0x532955;const _0x2da8e9={'file':_0x353450},_0x4c1afe=this['getFileName'](_0xbfb9d6),_0x3951d3=formatMap(_0x17f171(0x1ff),_0x2da8e9['_url']),_0x3913c1=await this['fetchUploadUrl'](_0x3951d3,_0x353450['sizeBytes'],_0x353450[_0x17f171(0x1ac)],_0x4c1afe,_0x2da8e9,_0x58a7ec===null||_0x58a7ec===void 0x0?void 0x0:_0x58a7ec[_0x17f171(0x328)]);return _0x36c985[_0x17f171(0x370)](_0xbfb9d6,_0x3913c1,this);}async[a6_0x51c1ef(0x66d)](_0x58161d,_0x2d886a,_0x16be5f){const _0x270b2a=a6_0x51c1ef;var _0xfc4262;const _0x230bcb=this[_0x270b2a(0x5d8)]['uploader'],_0xdaec8d=await _0x230bcb[_0x270b2a(0x5c3)](_0x2d886a),_0x690b8=String(_0xdaec8d[_0x270b2a(0x262)]),_0xc74ec9=(_0xfc4262=_0x16be5f===null||_0x16be5f===void 0x0?void 0x0:_0x16be5f[_0x270b2a(0x1ac)])!==null&&_0xfc4262!==void 0x0?_0xfc4262:_0xdaec8d[_0x270b2a(0x506)];if(_0xc74ec9===undefined||_0xc74ec9==='')throw new Error('Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.');const _0x39379a=_0x270b2a(0x37c)+_0x58161d+_0x270b2a(0x510),_0xd8833a=this[_0x270b2a(0x4de)](_0x2d886a),_0xb008a9={};_0x16be5f!=null&&uploadToFileSearchStoreConfigToMldev(_0x16be5f,_0xb008a9);const _0x74647b=await this['fetchUploadUrl'](_0x39379a,_0x690b8,_0xc74ec9,_0xd8833a,_0xb008a9,_0x16be5f===null||_0x16be5f===void 0x0?void 0x0:_0x16be5f['httpOptions']);return _0x230bcb[_0x270b2a(0x402)](_0x2d886a,_0x74647b,this);}async[a6_0x51c1ef(0x64e)](_0x432329){const _0xe045c7=a6_0x51c1ef,_0x12dd98=this[_0xe045c7(0x5d8)]['downloader'];await _0x12dd98[_0xe045c7(0x5dc)](_0x432329,this);}async[a6_0x51c1ef(0x2ef)](_0x2a3c77,_0x3e9feb,_0x2aee62,_0x299182,_0x2de843,_0x24a400){const _0xe026e=a6_0x51c1ef;var _0x37c9a0;let _0x4a9579={};_0x24a400?_0x4a9579=_0x24a400:_0x4a9579={'apiVersion':'','headers':Object[_0xe026e(0x5a8)]({'Content-Type':_0xe026e(0x539),'X-Goog-Upload-Protocol':'resumable','X-Goog-Upload-Command':_0xe026e(0x64f),'X-Goog-Upload-Header-Content-Length':''+_0x3e9feb,'X-Goog-Upload-Header-Content-Type':''+_0x2aee62},_0x299182?{'X-Goog-Upload-File-Name':_0x299182}:{})};const _0x328bd3=await this[_0xe026e(0x560)]({'path':_0x2a3c77,'body':JSON[_0xe026e(0x183)](_0x2de843),'httpMethod':_0xe026e(0x1e6),'httpOptions':_0x4a9579});if(!_0x328bd3||!(_0x328bd3===null||_0x328bd3===void 0x0?void 0x0:_0x328bd3[_0xe026e(0x2b9)]))throw new Error(_0xe026e(0x2f0));const _0x18a148=(_0x37c9a0=_0x328bd3===null||_0x328bd3===void 0x0?void 0x0:_0x328bd3[_0xe026e(0x2b9)])===null||_0x37c9a0===void 0x0?void 0x0:_0x37c9a0[_0xe026e(0x2bb)];if(_0x18a148===undefined)throw new Error(_0xe026e(0x538));return _0x18a148;}}async function throwErrorIfNotOK(_0x3641db){const _0x92fb9=a6_0x51c1ef;var _0x14bf34;if(_0x3641db===undefined)throw new Error(_0x92fb9(0x625));if(!_0x3641db['ok']){const _0x46edda=_0x3641db['status'];let _0x1cdec7;((_0x14bf34=_0x3641db[_0x92fb9(0x2b9)][_0x92fb9(0x482)](_0x92fb9(0x2b0)))===null||_0x14bf34===void 0x0?void 0x0:_0x14bf34[_0x92fb9(0x26d)](_0x92fb9(0x539)))?_0x1cdec7=await _0x3641db[_0x92fb9(0x31b)]():_0x1cdec7={'error':{'message':await _0x3641db[_0x92fb9(0x278)](),'code':_0x3641db[_0x92fb9(0x544)],'status':_0x3641db[_0x92fb9(0x43e)]}};const _0xdf52aa=JSON[_0x92fb9(0x183)](_0x1cdec7);if(_0x46edda>=0x190&&_0x46edda<0x258){const _0x54f304=new ApiError({'message':_0xdf52aa,'status':_0x46edda});throw _0x54f304;}throw new Error(_0xdf52aa);}}function includeExtraBodyToRequestInit(_0x269ef9,_0xa46c81){const _0x4fec53=a6_0x51c1ef;if(!_0xa46c81||Object[_0x4fec53(0x562)](_0xa46c81)[_0x4fec53(0x3b7)]===0x0)return;if(_0x269ef9['body']instanceof Blob){console['warn']('includeExtraBodyToRequestInit:\x20extraBody\x20provided\x20but\x20current\x20request\x20body\x20is\x20a\x20Blob.\x20extraBody\x20will\x20be\x20ignored\x20as\x20merging\x20is\x20not\x20supported\x20for\x20Blob\x20bodies.');return;}let _0x982d44={};if(typeof _0x269ef9[_0x4fec53(0x68e)]===_0x4fec53(0x53d)&&_0x269ef9[_0x4fec53(0x68e)][_0x4fec53(0x3b7)]>0x0)try{const _0x4f0cbe=JSON[_0x4fec53(0x1b2)](_0x269ef9['body']);if(typeof _0x4f0cbe===_0x4fec53(0x25e)&&_0x4f0cbe!==null&&!Array[_0x4fec53(0x49d)](_0x4f0cbe))_0x982d44=_0x4f0cbe;else{console[_0x4fec53(0x5a6)](_0x4fec53(0x45b));return;}}catch(_0xca5abf){console[_0x4fec53(0x5a6)](_0x4fec53(0x2bd));return;}function _0xcc178d(_0xe5c01,_0x3dcc10){const _0x58bc0f=_0x4fec53,_0x2fa2e3=Object[_0x58bc0f(0x5a8)]({},_0xe5c01);for(const _0x25a004 in _0x3dcc10){if(Object[_0x58bc0f(0x240)][_0x58bc0f(0x472)][_0x58bc0f(0x17f)](_0x3dcc10,_0x25a004)){const _0x122f63=_0x3dcc10[_0x25a004],_0x2d351b=_0x2fa2e3[_0x25a004];_0x122f63&&typeof _0x122f63==='object'&&!Array[_0x58bc0f(0x49d)](_0x122f63)&&_0x2d351b&&typeof _0x2d351b==='object'&&!Array['isArray'](_0x2d351b)?_0x2fa2e3[_0x25a004]=_0xcc178d(_0x2d351b,_0x122f63):(_0x2d351b&&_0x122f63&&typeof _0x2d351b!==typeof _0x122f63&&console[_0x58bc0f(0x5a6)](_0x58bc0f(0x1c4)+_0x25a004+_0x58bc0f(0x3cb)+typeof _0x2d351b+_0x58bc0f(0x185)+typeof _0x122f63+_0x58bc0f(0x2e7)),_0x2fa2e3[_0x25a004]=_0x122f63);}}return _0x2fa2e3;}const _0x15f63c=_0xcc178d(_0x982d44,_0xa46c81);_0x269ef9[_0x4fec53(0x68e)]=JSON[_0x4fec53(0x183)](_0x15f63c);}/**
97
+ * @license
98
+ * Copyright 2025 Google LLC
99
+ * SPDX-License-Identifier: Apache-2.0
100
+ */
101
+ const MCP_LABEL=a6_0x51c1ef(0x1a2);let hasMcpToolUsageFromMcpToTool=![];function hasMcpToolUsage(_0x521df0){const _0x409798=a6_0x51c1ef;for(const _0x392811 of _0x521df0){if(isMcpCallableTool(_0x392811))return!![];if(typeof _0x392811==='object'&&_0x409798(0x2d8)in _0x392811)return!![];}return hasMcpToolUsageFromMcpToTool;}function setMcpUsageHeader(_0x232ab6){const _0xebe942=a6_0x51c1ef;var _0x211512;const _0x342502=(_0x211512=_0x232ab6[GOOGLE_API_CLIENT_HEADER])!==null&&_0x211512!==void 0x0?_0x211512:'';_0x232ab6[GOOGLE_API_CLIENT_HEADER]=(_0x342502+('\x20'+MCP_LABEL))[_0xebe942(0x352)]();}function isMcpCallableTool(_0x561e70){const _0x1d1caa=a6_0x51c1ef;return _0x561e70!==null&&typeof _0x561e70===_0x1d1caa(0x25e)&&_0x561e70 instanceof McpCallableTool;}function listAllTools(_0x41f619){return __asyncGenerator(this,arguments,function*_0x276e4f(_0x3c91ef,_0x464764=0x64){const _0x120850=a6_0x148c;let _0xd30623=undefined,_0x5c191f=0x0;while(_0x5c191f<_0x464764){const _0x14d750=yield __await(_0x3c91ef[_0x120850(0x299)]({'cursor':_0xd30623}));for(const _0x2e81eb of _0x14d750[_0x120850(0x269)]){yield yield __await(_0x2e81eb),_0x5c191f++;}if(!_0x14d750[_0x120850(0x314)])break;_0xd30623=_0x14d750[_0x120850(0x314)];}});}class McpCallableTool{constructor(_0x59c382=[],_0x14a6da){const _0x454fdf=a6_0x51c1ef;this[_0x454fdf(0x5f2)]=[],this['functionNameToMcpClient']={},this[_0x454fdf(0x3f7)]=_0x59c382,this[_0x454fdf(0x66c)]=_0x14a6da;}static[a6_0x51c1ef(0x3dd)](_0x4fffd5,_0x4ac4a8){return new McpCallableTool(_0x4fffd5,_0x4ac4a8);}async[a6_0x51c1ef(0x636)](){const _0x540d30=a6_0x51c1ef;var _0x40866a,_0x21103e,_0x201207,_0x108769;if(this['mcpTools'][_0x540d30(0x3b7)]>0x0)return;const _0x763c81={},_0x557cd0=[];for(const _0x392302 of this[_0x540d30(0x3f7)]){try{for(var _0x197a6a=!![],_0x48c2ab=(_0x21103e=void 0x0,__asyncValues(listAllTools(_0x392302))),_0x553e03;_0x553e03=await _0x48c2ab[_0x540d30(0x394)](),_0x40866a=_0x553e03[_0x540d30(0x2e9)],!_0x40866a;_0x197a6a=!![]){_0x108769=_0x553e03[_0x540d30(0x296)],_0x197a6a=![];const _0x47bdb4=_0x108769;_0x557cd0[_0x540d30(0x656)](_0x47bdb4);const _0x312537=_0x47bdb4[_0x540d30(0x558)];if(_0x763c81[_0x312537])throw new Error(_0x540d30(0x2b6)+_0x312537+_0x540d30(0x2a6));_0x763c81[_0x312537]=_0x392302;}}catch(_0x3adb05){_0x21103e={'error':_0x3adb05};}finally{try{if(!_0x197a6a&&!_0x40866a&&(_0x201207=_0x48c2ab['return']))await _0x201207['call'](_0x48c2ab);}finally{if(_0x21103e)throw _0x21103e[_0x540d30(0x50a)];}}}this[_0x540d30(0x5f2)]=_0x557cd0,this[_0x540d30(0x30e)]=_0x763c81;}async['tool'](){const _0x1f31b6=a6_0x51c1ef;return await this[_0x1f31b6(0x636)](),mcpToolsToGeminiTool(this[_0x1f31b6(0x5f2)],this['config']);}async[a6_0x51c1ef(0x2e5)](_0x278957){const _0x4dbf04=a6_0x51c1ef;await this['initialize']();const _0x5a9cd1=[];for(const _0x18d627 of _0x278957){if(_0x18d627[_0x4dbf04(0x558)]in this[_0x4dbf04(0x30e)]){const _0x42f70b=this[_0x4dbf04(0x30e)][_0x18d627[_0x4dbf04(0x558)]];let _0xf4a7e9=undefined;this[_0x4dbf04(0x66c)]['timeout']&&(_0xf4a7e9={'timeout':this['config'][_0x4dbf04(0x2e3)]});const _0xe58701=await _0x42f70b[_0x4dbf04(0x2e5)]({'name':_0x18d627[_0x4dbf04(0x558)],'arguments':_0x18d627[_0x4dbf04(0x5cb)]},undefined,_0xf4a7e9);_0x5a9cd1[_0x4dbf04(0x656)]({'functionResponse':{'name':_0x18d627[_0x4dbf04(0x558)],'response':_0xe58701[_0x4dbf04(0x5ee)]?{'error':_0xe58701}:_0xe58701}});}}return _0x5a9cd1;}}function isMcpClient(_0x49ccfb){const _0x6a6a37=a6_0x51c1ef;return _0x49ccfb!==null&&typeof _0x49ccfb===_0x6a6a37(0x25e)&&_0x6a6a37(0x299)in _0x49ccfb&&typeof _0x49ccfb['listTools']===_0x6a6a37(0x60e);}function mcpToTool(..._0x468115){const _0x20c25d=a6_0x51c1ef;hasMcpToolUsageFromMcpToTool=!![];if(_0x468115['length']===0x0)throw new Error(_0x20c25d(0x458));const _0x356d0b=_0x468115[_0x468115[_0x20c25d(0x3b7)]-0x1];if(isMcpClient(_0x356d0b))return McpCallableTool[_0x20c25d(0x3dd)](_0x468115,{});return McpCallableTool['create'](_0x468115[_0x20c25d(0x15a)](0x0,_0x468115[_0x20c25d(0x3b7)]-0x1),_0x356d0b);}/**
102
+ * @license
103
+ * Copyright 2025 Google LLC
104
+ * SPDX-License-Identifier: Apache-2.0
105
+ */
106
+ async function handleWebSocketMessage$1(_0x3f7382,_0x3794a4,_0x55f5df){const _0x3b4cc8=a6_0x51c1ef,_0x312ba6=new LiveMusicServerMessage();let _0x1adf02;_0x55f5df[_0x3b4cc8(0x18b)]instanceof Blob?_0x1adf02=JSON[_0x3b4cc8(0x1b2)](await _0x55f5df[_0x3b4cc8(0x18b)][_0x3b4cc8(0x278)]()):_0x1adf02=JSON[_0x3b4cc8(0x1b2)](_0x55f5df[_0x3b4cc8(0x18b)]),Object[_0x3b4cc8(0x5a8)](_0x312ba6,_0x1adf02),_0x3794a4(_0x312ba6);}class LiveMusic{constructor(_0x241368,_0x20a183,_0x3a0305){const _0x16b311=a6_0x51c1ef;this['apiClient']=_0x241368,this[_0x16b311(0x50b)]=_0x20a183,this[_0x16b311(0x626)]=_0x3a0305;}async[a6_0x51c1ef(0x3f8)](_0x518e9c){const _0x23cb4a=a6_0x51c1ef;var _0x38ce74,_0xc079a1;if(this[_0x23cb4a(0x61e)][_0x23cb4a(0x291)]())throw new Error(_0x23cb4a(0x198));console[_0x23cb4a(0x5a6)](_0x23cb4a(0x4d8));const _0x4d04c4=this[_0x23cb4a(0x61e)][_0x23cb4a(0x498)](),_0x527a79=this[_0x23cb4a(0x61e)][_0x23cb4a(0x4e8)](),_0x1920fd=mapToHeaders$1(this['apiClient']['getDefaultHeaders']()),_0x4befa3=this[_0x23cb4a(0x61e)][_0x23cb4a(0x368)](),_0x835380=_0x4d04c4+_0x23cb4a(0x5f8)+_0x527a79+'.GenerativeService.BidiGenerateMusic?key='+_0x4befa3;let _0x200cb9=()=>{};const _0x22845a=new Promise(_0x8e277f=>{_0x200cb9=_0x8e277f;}),_0x5d9512=_0x518e9c[_0x23cb4a(0x605)],_0x53ecb6=function(){_0x200cb9({});},_0x50c414=this[_0x23cb4a(0x61e)],_0x1be8d1={'onopen':_0x53ecb6,'onmessage':_0x4ac7ca=>{const _0x5496a9=_0x23cb4a;void handleWebSocketMessage$1(_0x50c414,_0x5d9512[_0x5496a9(0x4ee)],_0x4ac7ca);},'onerror':(_0x38ce74=_0x5d9512===null||_0x5d9512===void 0x0?void 0x0:_0x5d9512['onerror'])!==null&&_0x38ce74!==void 0x0?_0x38ce74:function(_0xf8a2d0){},'onclose':(_0xc079a1=_0x5d9512===null||_0x5d9512===void 0x0?void 0x0:_0x5d9512['onclose'])!==null&&_0xc079a1!==void 0x0?_0xc079a1:function(_0x36087b){}},_0x53d69f=this[_0x23cb4a(0x626)][_0x23cb4a(0x3dd)](_0x835380,headersToMap$1(_0x1920fd),_0x1be8d1);_0x53d69f[_0x23cb4a(0x3f8)](),await _0x22845a;const _0x586346=tModel(this['apiClient'],_0x518e9c[_0x23cb4a(0x418)]),_0x48a05f={'model':_0x586346},_0x376fba={'setup':_0x48a05f};return _0x53d69f[_0x23cb4a(0x575)](JSON[_0x23cb4a(0x183)](_0x376fba)),new LiveMusicSession(_0x53d69f,this[_0x23cb4a(0x61e)]);}}class LiveMusicSession{constructor(_0x55e8e1,_0x5a5238){const _0x38935d=a6_0x51c1ef;this[_0x38935d(0x5d2)]=_0x55e8e1,this[_0x38935d(0x61e)]=_0x5a5238;}async[a6_0x51c1ef(0x33c)](_0x11f0b7){const _0x5895e2=a6_0x51c1ef;if(!_0x11f0b7[_0x5895e2(0x2e4)]||Object[_0x5895e2(0x562)](_0x11f0b7[_0x5895e2(0x2e4)])[_0x5895e2(0x3b7)]===0x0)throw new Error(_0x5895e2(0x2ee));const _0x523d2b=liveMusicSetWeightedPromptsParametersToMldev(_0x11f0b7);this[_0x5895e2(0x5d2)]['send'](JSON[_0x5895e2(0x183)]({'clientContent':_0x523d2b}));}async[a6_0x51c1ef(0x2fb)](_0x1a103a){const _0x1a811c=a6_0x51c1ef;!_0x1a103a[_0x1a811c(0x2cd)]&&(_0x1a103a[_0x1a811c(0x2cd)]={});const _0x36ce1f=liveMusicSetConfigParametersToMldev(_0x1a103a);this[_0x1a811c(0x5d2)][_0x1a811c(0x575)](JSON[_0x1a811c(0x183)](_0x36ce1f));}[a6_0x51c1ef(0x487)](_0xe76fa1){const _0x3eca27=a6_0x51c1ef,_0x12dbb9={'playbackControl':_0xe76fa1};this[_0x3eca27(0x5d2)]['send'](JSON[_0x3eca27(0x183)](_0x12dbb9));}[a6_0x51c1ef(0x219)](){const _0x14da18=a6_0x51c1ef;this[_0x14da18(0x487)](LiveMusicPlaybackControl[_0x14da18(0x4b1)]);}[a6_0x51c1ef(0x275)](){const _0x2be1e2=a6_0x51c1ef;this[_0x2be1e2(0x487)](LiveMusicPlaybackControl[_0x2be1e2(0x675)]);}[a6_0x51c1ef(0x687)](){const _0x423e2=a6_0x51c1ef;this[_0x423e2(0x487)](LiveMusicPlaybackControl[_0x423e2(0x376)]);}[a6_0x51c1ef(0x237)](){const _0x326134=a6_0x51c1ef;this[_0x326134(0x487)](LiveMusicPlaybackControl[_0x326134(0x22f)]);}[a6_0x51c1ef(0x2db)](){const _0x402f9f=a6_0x51c1ef;this[_0x402f9f(0x5d2)][_0x402f9f(0x2db)]();}}function headersToMap$1(_0x2bcc95){const _0x175189=a6_0x51c1ef,_0x4a1b37={};return _0x2bcc95[_0x175189(0x36a)]((_0x1e6108,_0x314c64)=>{_0x4a1b37[_0x314c64]=_0x1e6108;}),_0x4a1b37;}function mapToHeaders$1(_0x4dd88d){const _0x227eea=a6_0x51c1ef,_0x372b9c=new Headers();for(const [_0x2243f9,_0x17738c]of Object[_0x227eea(0x4cc)](_0x4dd88d)){_0x372b9c[_0x227eea(0x2d3)](_0x2243f9,_0x17738c);}return _0x372b9c;}/**
107
+ * @license
108
+ * Copyright 2025 Google LLC
109
+ * SPDX-License-Identifier: Apache-2.0
110
+ */
111
+ const FUNCTION_RESPONSE_REQUIRES_ID='FunctionResponse\x20request\x20must\x20have\x20an\x20`id`\x20field\x20from\x20the\x20response\x20of\x20a\x20ToolCall.FunctionalCalls\x20in\x20Google\x20AI.';async function handleWebSocketMessage(_0x56e84b,_0x4c091a,_0x1e609d){const _0x1ef0e3=a6_0x51c1ef,_0x5a1603=new LiveServerMessage();let _0x2a875a;if(_0x1e609d['data']instanceof Blob)_0x2a875a=await _0x1e609d[_0x1ef0e3(0x18b)][_0x1ef0e3(0x278)]();else _0x1e609d['data']instanceof ArrayBuffer?_0x2a875a=new TextDecoder()[_0x1ef0e3(0x4f4)](_0x1e609d[_0x1ef0e3(0x18b)]):_0x2a875a=_0x1e609d[_0x1ef0e3(0x18b)];const _0x13b5ec=JSON[_0x1ef0e3(0x1b2)](_0x2a875a);if(_0x56e84b[_0x1ef0e3(0x291)]()){const _0x4a7e34=liveServerMessageFromVertex(_0x13b5ec);Object[_0x1ef0e3(0x5a8)](_0x5a1603,_0x4a7e34);}else{const _0x433ac7=_0x13b5ec;Object[_0x1ef0e3(0x5a8)](_0x5a1603,_0x433ac7);}_0x4c091a(_0x5a1603);}class Live{constructor(_0x553ea1,_0xa498b1,_0x1a891d){const _0x4aa048=a6_0x51c1ef;this[_0x4aa048(0x61e)]=_0x553ea1,this[_0x4aa048(0x50b)]=_0xa498b1,this['webSocketFactory']=_0x1a891d,this['music']=new LiveMusic(this[_0x4aa048(0x61e)],this[_0x4aa048(0x50b)],this['webSocketFactory']);}async['connect'](_0x31afa5){const _0xf0bb5e=a6_0x51c1ef;var _0x54e279,_0x26ad15,_0x4e243d,_0x4e9ed1,_0x40ffc2,_0x350002;if(_0x31afa5[_0xf0bb5e(0x66c)]&&_0x31afa5['config']['httpOptions'])throw new Error(_0xf0bb5e(0x369)+_0xf0bb5e(0x40c)+_0xf0bb5e(0x1dd));const _0x90b880=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x498)](),_0x8515b6=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x4e8)]();let _0x3ef211;const _0x26a4a5=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x388)]();_0x31afa5[_0xf0bb5e(0x66c)]&&_0x31afa5[_0xf0bb5e(0x66c)][_0xf0bb5e(0x269)]&&hasMcpToolUsage(_0x31afa5[_0xf0bb5e(0x66c)][_0xf0bb5e(0x269)])&&setMcpUsageHeader(_0x26a4a5);const _0xa2bf4d=mapToHeaders(_0x26a4a5);if(this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x291)]()){const _0x3233b5=this[_0xf0bb5e(0x61e)]['getProject'](),_0x1c707b=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x19c)](),_0x2035c0=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x368)](),_0x30988c=!!_0x3233b5&&!!_0x1c707b||!!_0x2035c0;this['apiClient'][_0xf0bb5e(0x543)]()&&!_0x30988c?_0x3ef211=_0x90b880:(_0x3ef211=_0x90b880+_0xf0bb5e(0x227)+_0x8515b6+_0xf0bb5e(0x441),await this[_0xf0bb5e(0x50b)][_0xf0bb5e(0x41d)](_0xa2bf4d,_0x3ef211));}else{const _0x3a6cdd=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x368)]();let _0x43d974='BidiGenerateContent',_0x303cf6=_0xf0bb5e(0x555);(_0x3a6cdd===null||_0x3a6cdd===void 0x0?void 0x0:_0x3a6cdd['startsWith'](_0xf0bb5e(0x46d)))&&(console[_0xf0bb5e(0x5a6)]('Warning:\x20Ephemeral\x20token\x20support\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.'),_0x8515b6!==_0xf0bb5e(0x580)&&console[_0xf0bb5e(0x5a6)](_0xf0bb5e(0x44c)),_0x43d974=_0xf0bb5e(0x445),_0x303cf6=_0xf0bb5e(0x5f7)),_0x3ef211=_0x90b880+'/ws/google.ai.generativelanguage.'+_0x8515b6+_0xf0bb5e(0x65c)+_0x43d974+'?'+_0x303cf6+'='+_0x3a6cdd;}let _0x4492f6=()=>{};const _0x5fb4d0=new Promise(_0x31a00c=>{_0x4492f6=_0x31a00c;}),_0xf5f90c=_0x31afa5['callbacks'],_0x3489c7=function(){const _0x1d6d3e=_0xf0bb5e;var _0x5edc05;(_0x5edc05=_0xf5f90c===null||_0xf5f90c===void 0x0?void 0x0:_0xf5f90c[_0x1d6d3e(0x22e)])===null||_0x5edc05===void 0x0?void 0x0:_0x5edc05[_0x1d6d3e(0x17f)](_0xf5f90c),_0x4492f6({});},_0x489729=this[_0xf0bb5e(0x61e)],_0x66c543={'onopen':_0x3489c7,'onmessage':_0x2ee41e=>{const _0x3cb723=_0xf0bb5e;void handleWebSocketMessage(_0x489729,_0xf5f90c[_0x3cb723(0x4ee)],_0x2ee41e);},'onerror':(_0x54e279=_0xf5f90c===null||_0xf5f90c===void 0x0?void 0x0:_0xf5f90c[_0xf0bb5e(0x3ce)])!==null&&_0x54e279!==void 0x0?_0x54e279:function(_0x35606){},'onclose':(_0x26ad15=_0xf5f90c===null||_0xf5f90c===void 0x0?void 0x0:_0xf5f90c[_0xf0bb5e(0x3d2)])!==null&&_0x26ad15!==void 0x0?_0x26ad15:function(_0x59e1ea){}},_0x5cb139=this[_0xf0bb5e(0x626)]['create'](_0x3ef211,headersToMap(_0xa2bf4d),_0x66c543);_0x5cb139['connect'](),await _0x5fb4d0;let _0x554168=tModel(this[_0xf0bb5e(0x61e)],_0x31afa5['model']);if(this[_0xf0bb5e(0x61e)]['isVertexAI']()&&_0x554168['startsWith'](_0xf0bb5e(0x42d))){const _0x2c21dc=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x633)](),_0xabe5d2=this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x19c)]();_0x2c21dc&&_0xabe5d2&&(_0x554168=_0xf0bb5e(0x2ba)+_0x2c21dc+_0xf0bb5e(0x55b)+_0xabe5d2+'/'+_0x554168);}let _0x4ed46a={};this[_0xf0bb5e(0x61e)]['isVertexAI']()&&((_0x4e243d=_0x31afa5[_0xf0bb5e(0x66c)])===null||_0x4e243d===void 0x0?void 0x0:_0x4e243d[_0xf0bb5e(0x4a3)])===undefined&&(_0x31afa5[_0xf0bb5e(0x66c)]===undefined?_0x31afa5['config']={'responseModalities':[Modality[_0xf0bb5e(0x53e)]]}:_0x31afa5[_0xf0bb5e(0x66c)][_0xf0bb5e(0x4a3)]=[Modality[_0xf0bb5e(0x53e)]]);((_0x4e9ed1=_0x31afa5[_0xf0bb5e(0x66c)])===null||_0x4e9ed1===void 0x0?void 0x0:_0x4e9ed1[_0xf0bb5e(0x177)])&&console[_0xf0bb5e(0x5a6)](_0xf0bb5e(0x5f9));const _0x5f21d6=(_0x350002=(_0x40ffc2=_0x31afa5[_0xf0bb5e(0x66c)])===null||_0x40ffc2===void 0x0?void 0x0:_0x40ffc2['tools'])!==null&&_0x350002!==void 0x0?_0x350002:[],_0x18f920=[];for(const _0x77135f of _0x5f21d6){if(this[_0xf0bb5e(0x1d6)](_0x77135f)){const _0x50c39c=_0x77135f;_0x18f920['push'](await _0x50c39c[_0xf0bb5e(0x56a)]());}else _0x18f920[_0xf0bb5e(0x656)](_0x77135f);}_0x18f920['length']>0x0&&(_0x31afa5['config'][_0xf0bb5e(0x269)]=_0x18f920);const _0x4470c6={'model':_0x554168,'config':_0x31afa5[_0xf0bb5e(0x66c)],'callbacks':_0x31afa5[_0xf0bb5e(0x605)]};return this[_0xf0bb5e(0x61e)][_0xf0bb5e(0x291)]()?_0x4ed46a=liveConnectParametersToVertex(this['apiClient'],_0x4470c6):_0x4ed46a=liveConnectParametersToMldev(this[_0xf0bb5e(0x61e)],_0x4470c6),delete _0x4ed46a[_0xf0bb5e(0x66c)],_0x5cb139[_0xf0bb5e(0x575)](JSON[_0xf0bb5e(0x183)](_0x4ed46a)),new Session(_0x5cb139,this[_0xf0bb5e(0x61e)]);}['isCallableTool'](_0x162ef5){const _0x46331d=a6_0x51c1ef;return _0x46331d(0x2e5)in _0x162ef5&&typeof _0x162ef5[_0x46331d(0x2e5)]===_0x46331d(0x60e);}}const defaultLiveSendClientContentParamerters={'turnComplete':!![]};class Session{constructor(_0x2ea176,_0x12dc1b){const _0x2d0c38=a6_0x51c1ef;this[_0x2d0c38(0x5d2)]=_0x2ea176,this[_0x2d0c38(0x61e)]=_0x12dc1b;}[a6_0x51c1ef(0x286)](_0x4ea615,_0x68ed16){const _0x45d058=a6_0x51c1ef;if(_0x68ed16[_0x45d058(0x36e)]!==null&&_0x68ed16['turns']!==undefined){let _0x5d38c2=[];try{_0x5d38c2=tContents(_0x68ed16['turns']),!_0x4ea615[_0x45d058(0x291)]()&&(_0x5d38c2=_0x5d38c2[_0x45d058(0x68f)](_0x1cb849=>contentToMldev$1(_0x1cb849)));}catch(_0x1cc740){throw new Error(_0x45d058(0x4ec)+typeof _0x68ed16[_0x45d058(0x36e)]+'\x27');}return{'clientContent':{'turns':_0x5d38c2,'turnComplete':_0x68ed16[_0x45d058(0x246)]}};}return{'clientContent':{'turnComplete':_0x68ed16[_0x45d058(0x246)]}};}['tLiveClienttToolResponse'](_0x3f4684,_0xcaeb7a){const _0x3ab877=a6_0x51c1ef;let _0x309c0f=[];if(_0xcaeb7a['functionResponses']==null)throw new Error('functionResponses\x20is\x20required.');!Array['isArray'](_0xcaeb7a['functionResponses'])?_0x309c0f=[_0xcaeb7a['functionResponses']]:_0x309c0f=_0xcaeb7a['functionResponses'];if(_0x309c0f[_0x3ab877(0x3b7)]===0x0)throw new Error(_0x3ab877(0x467));for(const _0x1819f9 of _0x309c0f){if(typeof _0x1819f9!==_0x3ab877(0x25e)||_0x1819f9===null||!('name'in _0x1819f9)||!(_0x3ab877(0x603)in _0x1819f9))throw new Error(_0x3ab877(0x595)+typeof _0x1819f9+'\x27.');if(!_0x3f4684[_0x3ab877(0x291)]()&&!('id'in _0x1819f9))throw new Error(FUNCTION_RESPONSE_REQUIRES_ID);}const _0x247400={'toolResponse':{'functionResponses':_0x309c0f}};return _0x247400;}[a6_0x51c1ef(0x362)](_0x5ef3d5){const _0x66fabc=a6_0x51c1ef;_0x5ef3d5=Object[_0x66fabc(0x5a8)](Object['assign']({},defaultLiveSendClientContentParamerters),_0x5ef3d5);const _0x1ff94f=this[_0x66fabc(0x286)](this[_0x66fabc(0x61e)],_0x5ef3d5);this['conn'][_0x66fabc(0x575)](JSON[_0x66fabc(0x183)](_0x1ff94f));}['sendRealtimeInput'](_0xf8bdaf){const _0x4e3380=a6_0x51c1ef;let _0xb4492a={};this[_0x4e3380(0x61e)][_0x4e3380(0x291)]()?_0xb4492a={'realtimeInput':liveSendRealtimeInputParametersToVertex(_0xf8bdaf)}:_0xb4492a={'realtimeInput':liveSendRealtimeInputParametersToMldev(_0xf8bdaf)},this[_0x4e3380(0x5d2)]['send'](JSON[_0x4e3380(0x183)](_0xb4492a));}[a6_0x51c1ef(0x553)](_0x231859){const _0x160f0f=a6_0x51c1ef;if(_0x231859[_0x160f0f(0x52b)]==null)throw new Error('Tool\x20response\x20parameters\x20are\x20required.');const _0xd6204b=this[_0x160f0f(0x65b)](this[_0x160f0f(0x61e)],_0x231859);this[_0x160f0f(0x5d2)]['send'](JSON['stringify'](_0xd6204b));}[a6_0x51c1ef(0x2db)](){const _0xd8a7b0=a6_0x51c1ef;this['conn'][_0xd8a7b0(0x2db)]();}}function headersToMap(_0x54c5c5){const _0x410307={};return _0x54c5c5['forEach']((_0x1f2695,_0x444f51)=>{_0x410307[_0x444f51]=_0x1f2695;}),_0x410307;}function mapToHeaders(_0x7267d1){const _0x18e621=a6_0x51c1ef,_0x5367fa=new Headers();for(const [_0x54ef70,_0x5cd6fd]of Object['entries'](_0x7267d1)){_0x5367fa[_0x18e621(0x2d3)](_0x54ef70,_0x5cd6fd);}return _0x5367fa;}/**
112
+ * @license
113
+ * Copyright 2025 Google LLC
114
+ * SPDX-License-Identifier: Apache-2.0
115
+ */
116
+ const DEFAULT_MAX_REMOTE_CALLS=0xa;function shouldDisableAfc(_0x877056){const _0x3582e0=a6_0x51c1ef;var _0x168b16,_0x3fe8b9,_0x3c2530;if((_0x168b16=_0x877056===null||_0x877056===void 0x0?void 0x0:_0x877056['automaticFunctionCalling'])===null||_0x168b16===void 0x0?void 0x0:_0x168b16[_0x3582e0(0x49a)])return!![];let _0x510777=![];for(const _0x40b645 of(_0x3fe8b9=_0x877056===null||_0x877056===void 0x0?void 0x0:_0x877056[_0x3582e0(0x269)])!==null&&_0x3fe8b9!==void 0x0?_0x3fe8b9:[]){if(isCallableTool(_0x40b645)){_0x510777=!![];break;}}if(!_0x510777)return!![];const _0x3c2e94=(_0x3c2530=_0x877056===null||_0x877056===void 0x0?void 0x0:_0x877056[_0x3582e0(0x666)])===null||_0x3c2530===void 0x0?void 0x0:_0x3c2530[_0x3582e0(0x48f)];if(_0x3c2e94&&(_0x3c2e94<0x0||!Number['isInteger'](_0x3c2e94))||_0x3c2e94==0x0)return console[_0x3582e0(0x5a6)](_0x3582e0(0x22a),_0x3c2e94),!![];return![];}function isCallableTool(_0x25417a){const _0x1f9db=a6_0x51c1ef;return'callTool'in _0x25417a&&typeof _0x25417a[_0x1f9db(0x2e5)]==='function';}function hasCallableTools(_0x6c1694){const _0x35d952=a6_0x51c1ef;var _0x1e9e5b,_0x4e9d47,_0x5e9172;return(_0x5e9172=(_0x4e9d47=(_0x1e9e5b=_0x6c1694['config'])===null||_0x1e9e5b===void 0x0?void 0x0:_0x1e9e5b[_0x35d952(0x269)])===null||_0x4e9d47===void 0x0?void 0x0:_0x4e9d47['some'](_0x4e1620=>isCallableTool(_0x4e1620)))!==null&&_0x5e9172!==void 0x0?_0x5e9172:![];}function findAfcIncompatibleToolIndexes(_0x4615a3){const _0x8c0978=a6_0x51c1ef;var _0x288902;const _0x53f0e6=[];if(!((_0x288902=_0x4615a3===null||_0x4615a3===void 0x0?void 0x0:_0x4615a3[_0x8c0978(0x66c)])===null||_0x288902===void 0x0?void 0x0:_0x288902['tools']))return _0x53f0e6;return _0x4615a3[_0x8c0978(0x66c)][_0x8c0978(0x269)][_0x8c0978(0x36a)]((_0x288833,_0x5ea937)=>{const _0xf52ad2=_0x8c0978;if(isCallableTool(_0x288833))return;const _0x4f3586=_0x288833;_0x4f3586['functionDeclarations']&&_0x4f3586['functionDeclarations'][_0xf52ad2(0x3b7)]>0x0&&_0x53f0e6[_0xf52ad2(0x656)](_0x5ea937);}),_0x53f0e6;}function shouldAppendAfcHistory(_0x3e8d42){const _0x378436=a6_0x51c1ef;var _0x409e46;return!((_0x409e46=_0x3e8d42===null||_0x3e8d42===void 0x0?void 0x0:_0x3e8d42[_0x378436(0x666)])===null||_0x409e46===void 0x0?void 0x0:_0x409e46[_0x378436(0x645)]);}/**
117
+ * @license
118
+ * Copyright 2025 Google LLC
119
+ * SPDX-License-Identifier: Apache-2.0
120
+ */
121
+ class Models extends BaseModule{constructor(_0x85360a){const _0x25cf0d=a6_0x51c1ef;super(),this[_0x25cf0d(0x61e)]=_0x85360a,this[_0x25cf0d(0x5f5)]=async _0x248be1=>{const _0x551441=_0x25cf0d;var _0x4d03ec,_0x3a6480,_0x2d8d40,_0x3f463b,_0x541044;const _0x573599=await this[_0x551441(0x31e)](_0x248be1);this[_0x551441(0x1a8)](_0x248be1);if(!hasCallableTools(_0x248be1)||shouldDisableAfc(_0x248be1[_0x551441(0x66c)]))return await this[_0x551441(0x2c5)](_0x573599);const _0x3fdc37=findAfcIncompatibleToolIndexes(_0x248be1);if(_0x3fdc37['length']>0x0){const _0x29635f=_0x3fdc37[_0x551441(0x68f)](_0x305883=>_0x551441(0x5ef)+_0x305883+']')[_0x551441(0x4c1)](',\x20');throw new Error('Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x20is\x20not\x20yet\x20supported.\x20Incompatible\x20tools\x20found\x20at\x20'+_0x29635f+'.');}let _0x19fd1b,_0x5cded7;const _0x3b2dad=tContents(_0x573599['contents']),_0x88e07d=(_0x2d8d40=(_0x3a6480=(_0x4d03ec=_0x573599[_0x551441(0x66c)])===null||_0x4d03ec===void 0x0?void 0x0:_0x4d03ec[_0x551441(0x666)])===null||_0x3a6480===void 0x0?void 0x0:_0x3a6480[_0x551441(0x48f)])!==null&&_0x2d8d40!==void 0x0?_0x2d8d40:DEFAULT_MAX_REMOTE_CALLS;let _0x32010e=0x0;while(_0x32010e<_0x88e07d){_0x19fd1b=await this[_0x551441(0x2c5)](_0x573599);if(!_0x19fd1b[_0x551441(0x65d)]||_0x19fd1b[_0x551441(0x65d)][_0x551441(0x3b7)]===0x0)break;const _0x38914e=_0x19fd1b[_0x551441(0x410)][0x0][_0x551441(0x479)],_0x33154b=[];for(const _0x3a6b67 of(_0x541044=(_0x3f463b=_0x248be1['config'])===null||_0x3f463b===void 0x0?void 0x0:_0x3f463b[_0x551441(0x269)])!==null&&_0x541044!==void 0x0?_0x541044:[]){if(isCallableTool(_0x3a6b67)){const _0x367ea1=_0x3a6b67,_0x54c1a9=await _0x367ea1[_0x551441(0x2e5)](_0x19fd1b['functionCalls']);_0x33154b[_0x551441(0x656)](..._0x54c1a9);}}_0x32010e++,_0x5cded7={'role':'user','parts':_0x33154b},_0x573599[_0x551441(0x5b9)]=tContents(_0x573599[_0x551441(0x5b9)]),_0x573599[_0x551441(0x5b9)]['push'](_0x38914e),_0x573599['contents'][_0x551441(0x656)](_0x5cded7),shouldAppendAfcHistory(_0x573599['config'])&&(_0x3b2dad[_0x551441(0x656)](_0x38914e),_0x3b2dad['push'](_0x5cded7));}return shouldAppendAfcHistory(_0x573599[_0x551441(0x66c)])&&(_0x19fd1b[_0x551441(0x51b)]=_0x3b2dad),_0x19fd1b;},this[_0x25cf0d(0x5d1)]=async _0x31bcb0=>{const _0x8da5c1=_0x25cf0d;var _0x569f37,_0x42b45e,_0x5b0277,_0x474fe5,_0x509ed7;this['maybeMoveToResponseJsonSchem'](_0x31bcb0);if(shouldDisableAfc(_0x31bcb0[_0x8da5c1(0x66c)])){const _0x426bff=await this[_0x8da5c1(0x31e)](_0x31bcb0);return await this[_0x8da5c1(0x4c8)](_0x426bff);}const _0x233ded=findAfcIncompatibleToolIndexes(_0x31bcb0);if(_0x233ded[_0x8da5c1(0x3b7)]>0x0){const _0x154382=_0x233ded[_0x8da5c1(0x68f)](_0x2e3e43=>_0x8da5c1(0x5ef)+_0x2e3e43+']')[_0x8da5c1(0x4c1)](',\x20');throw new Error(_0x8da5c1(0x2a5)+_0x154382+_0x8da5c1(0x659));}const _0x41fbb6=(_0x5b0277=(_0x42b45e=(_0x569f37=_0x31bcb0===null||_0x31bcb0===void 0x0?void 0x0:_0x31bcb0['config'])===null||_0x569f37===void 0x0?void 0x0:_0x569f37[_0x8da5c1(0x334)])===null||_0x42b45e===void 0x0?void 0x0:_0x42b45e[_0x8da5c1(0x429)])===null||_0x5b0277===void 0x0?void 0x0:_0x5b0277[_0x8da5c1(0x647)],_0x54039a=(_0x509ed7=(_0x474fe5=_0x31bcb0===null||_0x31bcb0===void 0x0?void 0x0:_0x31bcb0[_0x8da5c1(0x66c)])===null||_0x474fe5===void 0x0?void 0x0:_0x474fe5[_0x8da5c1(0x666)])===null||_0x509ed7===void 0x0?void 0x0:_0x509ed7[_0x8da5c1(0x49a)];if(_0x41fbb6&&!_0x54039a)throw new Error('Running\x20in\x20streaming\x20mode\x20with\x20\x27streamFunctionCallArguments\x27\x20enabled,\x20'+'this\x20feature\x20is\x20not\x20compatible\x20with\x20automatic\x20function\x20calling\x20(AFC).\x20'+_0x8da5c1(0x41f)+'or\x20leave\x20\x27config.toolConfig.functionCallingConfig.streamFunctionCallArguments\x27\x20'+_0x8da5c1(0x37a));return await this[_0x8da5c1(0x63f)](_0x31bcb0);},this[_0x25cf0d(0x32c)]=async _0x304bff=>{const _0x1b968c=_0x25cf0d;return await this['generateImagesInternal'](_0x304bff)[_0x1b968c(0x486)](_0x465e4=>{const _0x5eae1c=_0x1b968c;var _0xba0451;let _0x18df6d;const _0x44732b=[];if(_0x465e4===null||_0x465e4===void 0x0?void 0x0:_0x465e4[_0x5eae1c(0x395)])for(const _0x3c5636 of _0x465e4['generatedImages']){_0x3c5636&&(_0x3c5636===null||_0x3c5636===void 0x0?void 0x0:_0x3c5636[_0x5eae1c(0x4a9)])&&((_0xba0451=_0x3c5636===null||_0x3c5636===void 0x0?void 0x0:_0x3c5636[_0x5eae1c(0x4a9)])===null||_0xba0451===void 0x0?void 0x0:_0xba0451[_0x5eae1c(0x263)])==='Positive\x20Prompt'?_0x18df6d=_0x3c5636===null||_0x3c5636===void 0x0?void 0x0:_0x3c5636['safetyAttributes']:_0x44732b[_0x5eae1c(0x656)](_0x3c5636);}let _0xb7b4d7;return _0x18df6d?_0xb7b4d7={'generatedImages':_0x44732b,'positivePromptSafetyAttributes':_0x18df6d,'sdkHttpResponse':_0x465e4['sdkHttpResponse']}:_0xb7b4d7={'generatedImages':_0x44732b,'sdkHttpResponse':_0x465e4[_0x5eae1c(0x344)]},_0xb7b4d7;});},this[_0x25cf0d(0x644)]=async _0x4353e6=>{const _0xee80e6=_0x25cf0d;var _0x25dedc;const _0x3f6e0a={'queryBase':!![]},_0x57f211=Object[_0xee80e6(0x5a8)](Object[_0xee80e6(0x5a8)]({},_0x3f6e0a),_0x4353e6===null||_0x4353e6===void 0x0?void 0x0:_0x4353e6[_0xee80e6(0x66c)]),_0xe1181e={'config':_0x57f211};if(this[_0xee80e6(0x61e)][_0xee80e6(0x291)]()){if(!_0xe1181e[_0xee80e6(0x66c)][_0xee80e6(0x4c0)]){if((_0x25dedc=_0xe1181e[_0xee80e6(0x66c)])===null||_0x25dedc===void 0x0?void 0x0:_0x25dedc['filter'])throw new Error(_0xee80e6(0x59f));else _0xe1181e['config']['filter']='labels.tune-type:*';}}return new Pager(PagedItem[_0xee80e6(0x432)],_0x287260=>this[_0xee80e6(0x542)](_0x287260),await this[_0xee80e6(0x542)](_0xe1181e),_0xe1181e);},this[_0x25cf0d(0x15b)]=async _0x1ec4ec=>{const _0x1ac46c=_0x25cf0d,_0x14dfd3={'model':_0x1ec4ec[_0x1ac46c(0x418)],'prompt':_0x1ec4ec[_0x1ac46c(0x335)],'referenceImages':[],'config':_0x1ec4ec[_0x1ac46c(0x66c)]};return _0x1ec4ec['referenceImages']&&(_0x1ec4ec[_0x1ac46c(0x3e3)]&&(_0x14dfd3[_0x1ac46c(0x3e3)]=_0x1ec4ec[_0x1ac46c(0x3e3)][_0x1ac46c(0x68f)](_0x50fb9d=>_0x50fb9d[_0x1ac46c(0x667)]()))),await this[_0x1ac46c(0x529)](_0x14dfd3);},this[_0x25cf0d(0x4f8)]=async _0x434b09=>{const _0x455648=_0x25cf0d;let _0x195d18={'numberOfImages':0x1,'mode':_0x455648(0x21c)};_0x434b09[_0x455648(0x66c)]&&(_0x195d18=Object[_0x455648(0x5a8)](Object[_0x455648(0x5a8)]({},_0x195d18),_0x434b09['config']));const _0x1615a5={'model':_0x434b09[_0x455648(0x418)],'image':_0x434b09[_0x455648(0x559)],'upscaleFactor':_0x434b09[_0x455648(0x1cc)],'config':_0x195d18};return await this[_0x455648(0x209)](_0x1615a5);},this[_0x25cf0d(0x66a)]=async _0x575603=>{const _0x42781e=_0x25cf0d;var _0x5da4bc,_0x58d263,_0x50df2d,_0xeef30f,_0x2e5afd,_0x4da991;if((_0x575603[_0x42781e(0x335)]||_0x575603[_0x42781e(0x559)]||_0x575603[_0x42781e(0x533)])&&_0x575603[_0x42781e(0x569)])throw new Error(_0x42781e(0x52a));if(!this[_0x42781e(0x61e)][_0x42781e(0x291)]()){if(((_0x5da4bc=_0x575603['video'])===null||_0x5da4bc===void 0x0?void 0x0:_0x5da4bc[_0x42781e(0x64d)])&&((_0x58d263=_0x575603['video'])===null||_0x58d263===void 0x0?void 0x0:_0x58d263[_0x42781e(0x58c)]))_0x575603['video']={'uri':_0x575603[_0x42781e(0x533)][_0x42781e(0x64d)],'mimeType':_0x575603[_0x42781e(0x533)]['mimeType']};else((_0xeef30f=(_0x50df2d=_0x575603[_0x42781e(0x569)])===null||_0x50df2d===void 0x0?void 0x0:_0x50df2d[_0x42781e(0x533)])===null||_0xeef30f===void 0x0?void 0x0:_0xeef30f[_0x42781e(0x64d)])&&((_0x4da991=(_0x2e5afd=_0x575603[_0x42781e(0x569)])===null||_0x2e5afd===void 0x0?void 0x0:_0x2e5afd['video'])===null||_0x4da991===void 0x0?void 0x0:_0x4da991[_0x42781e(0x58c)])&&(_0x575603[_0x42781e(0x569)][_0x42781e(0x533)]={'uri':_0x575603[_0x42781e(0x569)][_0x42781e(0x533)][_0x42781e(0x64d)],'mimeType':_0x575603[_0x42781e(0x569)][_0x42781e(0x533)]['mimeType']});}return await this['generateVideosInternal'](_0x575603);};}[a6_0x51c1ef(0x1a8)](_0x159803){const _0x4c249f=a6_0x51c1ef;_0x159803[_0x4c249f(0x66c)]&&_0x159803['config'][_0x4c249f(0x1a4)]&&(!_0x159803[_0x4c249f(0x66c)][_0x4c249f(0x2d5)]&&(Object[_0x4c249f(0x562)](_0x159803[_0x4c249f(0x66c)][_0x4c249f(0x1a4)])[_0x4c249f(0x26d)](_0x4c249f(0x630))&&(_0x159803['config'][_0x4c249f(0x2d5)]=_0x159803[_0x4c249f(0x66c)]['responseSchema'],delete _0x159803[_0x4c249f(0x66c)][_0x4c249f(0x1a4)])));return;}async[a6_0x51c1ef(0x31e)](_0x1cfde9){const _0x1ac53f=a6_0x51c1ef;var _0x44585b,_0x5911d5,_0x5ed998;const _0x31d76f=(_0x44585b=_0x1cfde9[_0x1ac53f(0x66c)])===null||_0x44585b===void 0x0?void 0x0:_0x44585b['tools'];if(!_0x31d76f)return _0x1cfde9;const _0x371566=await Promise[_0x1ac53f(0x431)](_0x31d76f[_0x1ac53f(0x68f)](async _0x32796e=>{const _0x368933=_0x1ac53f;if(isCallableTool(_0x32796e)){const _0x5ca9d0=_0x32796e;return await _0x5ca9d0[_0x368933(0x56a)]();}return _0x32796e;})),_0x28f5c4={'model':_0x1cfde9['model'],'contents':_0x1cfde9[_0x1ac53f(0x5b9)],'config':Object['assign'](Object[_0x1ac53f(0x5a8)]({},_0x1cfde9[_0x1ac53f(0x66c)]),{'tools':_0x371566})};_0x28f5c4[_0x1ac53f(0x66c)]['tools']=_0x371566;if(_0x1cfde9[_0x1ac53f(0x66c)]&&_0x1cfde9[_0x1ac53f(0x66c)]['tools']&&hasMcpToolUsage(_0x1cfde9[_0x1ac53f(0x66c)]['tools'])){const _0x1bfa9f=(_0x5ed998=(_0x5911d5=_0x1cfde9['config'][_0x1ac53f(0x328)])===null||_0x5911d5===void 0x0?void 0x0:_0x5911d5['headers'])!==null&&_0x5ed998!==void 0x0?_0x5ed998:{};let _0x5958c3=Object[_0x1ac53f(0x5a8)]({},_0x1bfa9f);Object['keys'](_0x5958c3)[_0x1ac53f(0x3b7)]===0x0&&(_0x5958c3=this[_0x1ac53f(0x61e)][_0x1ac53f(0x578)]()),setMcpUsageHeader(_0x5958c3),_0x28f5c4[_0x1ac53f(0x66c)][_0x1ac53f(0x328)]=Object['assign'](Object[_0x1ac53f(0x5a8)]({},_0x1cfde9[_0x1ac53f(0x66c)][_0x1ac53f(0x328)]),{'headers':_0x5958c3});}return _0x28f5c4;}async['initAfcToolsMap'](_0x4c1211){const _0x24e8e0=a6_0x51c1ef;var _0x4559de,_0x1babb2,_0x1e6edb;const _0x4929fc=new Map();for(const _0x25a709 of(_0x1babb2=(_0x4559de=_0x4c1211[_0x24e8e0(0x66c)])===null||_0x4559de===void 0x0?void 0x0:_0x4559de[_0x24e8e0(0x269)])!==null&&_0x1babb2!==void 0x0?_0x1babb2:[]){if(isCallableTool(_0x25a709)){const _0x444f96=_0x25a709,_0x3afae9=await _0x444f96[_0x24e8e0(0x56a)]();for(const _0x1bd5e8 of(_0x1e6edb=_0x3afae9['functionDeclarations'])!==null&&_0x1e6edb!==void 0x0?_0x1e6edb:[]){if(!_0x1bd5e8[_0x24e8e0(0x558)])throw new Error(_0x24e8e0(0x252));if(_0x4929fc[_0x24e8e0(0x4d6)](_0x1bd5e8['name']))throw new Error(_0x24e8e0(0x52e)+_0x1bd5e8[_0x24e8e0(0x558)]);_0x4929fc[_0x24e8e0(0x229)](_0x1bd5e8[_0x24e8e0(0x558)],_0x444f96);}}}return _0x4929fc;}async[a6_0x51c1ef(0x63f)](_0x442ae3){const _0x527717=a6_0x51c1ef;var _0x53fd20,_0x29996d,_0x4e76f0;const _0x8c7bca=(_0x4e76f0=(_0x29996d=(_0x53fd20=_0x442ae3[_0x527717(0x66c)])===null||_0x53fd20===void 0x0?void 0x0:_0x53fd20[_0x527717(0x666)])===null||_0x29996d===void 0x0?void 0x0:_0x29996d[_0x527717(0x48f)])!==null&&_0x4e76f0!==void 0x0?_0x4e76f0:DEFAULT_MAX_REMOTE_CALLS;let _0x30f98e=![],_0x2d97a1=0x0;const _0x126fcc=await this['initAfcToolsMap'](_0x442ae3);return function(_0x44a63d,_0x45aec1,_0x89e15e){return __asyncGenerator(this,arguments,function*(){const _0x41b159=a6_0x148c;var _0x1306e6,_0x4c68eb,_0x2706c0,_0x20b7c3,_0x597e46,_0x1b2ca0;while(_0x2d97a1<_0x8c7bca){_0x30f98e&&(_0x2d97a1++,_0x30f98e=![]);const _0x474556=yield __await(_0x44a63d[_0x41b159(0x31e)](_0x89e15e)),_0x14f7ff=yield __await(_0x44a63d[_0x41b159(0x4c8)](_0x474556)),_0x48fe2e=[],_0x1bef41=[];try{for(var _0x518ca9=!![],_0x5b0dd0=(_0x4c68eb=void 0x0,__asyncValues(_0x14f7ff)),_0x5ad8f3;_0x5ad8f3=yield __await(_0x5b0dd0['next']()),_0x1306e6=_0x5ad8f3[_0x41b159(0x2e9)],!_0x1306e6;_0x518ca9=!![]){_0x20b7c3=_0x5ad8f3[_0x41b159(0x296)],_0x518ca9=![];const _0x64de8c=_0x20b7c3;yield yield __await(_0x64de8c);if(_0x64de8c[_0x41b159(0x410)]&&((_0x597e46=_0x64de8c[_0x41b159(0x410)][0x0])===null||_0x597e46===void 0x0?void 0x0:_0x597e46[_0x41b159(0x479)])){_0x1bef41[_0x41b159(0x656)](_0x64de8c[_0x41b159(0x410)][0x0]['content']);for(const _0x1da17d of(_0x1b2ca0=_0x64de8c['candidates'][0x0][_0x41b159(0x479)][_0x41b159(0x19f)])!==null&&_0x1b2ca0!==void 0x0?_0x1b2ca0:[]){if(_0x2d97a1<_0x8c7bca&&_0x1da17d[_0x41b159(0x2cc)]){if(!_0x1da17d['functionCall'][_0x41b159(0x558)])throw new Error(_0x41b159(0x56c));if(!_0x45aec1[_0x41b159(0x4d6)](_0x1da17d[_0x41b159(0x2cc)][_0x41b159(0x558)]))throw new Error(_0x41b159(0x41c)+_0x45aec1['keys']()+_0x41b159(0x393)+_0x1da17d[_0x41b159(0x2cc)][_0x41b159(0x558)]);else{const _0x336edd=yield __await(_0x45aec1[_0x41b159(0x482)](_0x1da17d[_0x41b159(0x2cc)]['name'])['callTool']([_0x1da17d[_0x41b159(0x2cc)]]));_0x48fe2e[_0x41b159(0x656)](..._0x336edd);}}}}}}catch(_0x454fb5){_0x4c68eb={'error':_0x454fb5};}finally{try{if(!_0x518ca9&&!_0x1306e6&&(_0x2706c0=_0x5b0dd0['return']))yield __await(_0x2706c0[_0x41b159(0x17f)](_0x5b0dd0));}finally{if(_0x4c68eb)throw _0x4c68eb[_0x41b159(0x50a)];}}if(_0x48fe2e[_0x41b159(0x3b7)]>0x0){_0x30f98e=!![];const _0x11a513=new GenerateContentResponse();_0x11a513[_0x41b159(0x410)]=[{'content':{'role':'user','parts':_0x48fe2e}}],yield yield __await(_0x11a513);const _0x18b8af=[];_0x18b8af[_0x41b159(0x656)](..._0x1bef41),_0x18b8af[_0x41b159(0x656)]({'role':_0x41b159(0x24f),'parts':_0x48fe2e});const _0x565d43=tContents(_0x89e15e['contents'])[_0x41b159(0x2d1)](_0x18b8af);_0x89e15e['contents']=_0x565d43;}else break;}});}(this,_0x126fcc,_0x442ae3);}async[a6_0x51c1ef(0x2c5)](_0x4a7816){const _0xf42265=a6_0x51c1ef;var _0x359218,_0x4daf2a,_0x46c0ae,_0x5792b4;let _0xfa0082,_0x438c7f='',_0x417bdd={};if(this[_0xf42265(0x61e)]['isVertexAI']()){const _0x3d7770=generateContentParametersToVertex(this[_0xf42265(0x61e)],_0x4a7816);return _0x438c7f=formatMap(_0xf42265(0x28a),_0x3d7770[_0xf42265(0x2c1)]),_0x417bdd=_0x3d7770[_0xf42265(0x4cd)],delete _0x3d7770[_0xf42265(0x2c1)],delete _0x3d7770[_0xf42265(0x4cd)],_0xfa0082=this[_0xf42265(0x61e)][_0xf42265(0x560)]({'path':_0x438c7f,'queryParams':_0x417bdd,'body':JSON[_0xf42265(0x183)](_0x3d7770),'httpMethod':'POST','httpOptions':(_0x359218=_0x4a7816[_0xf42265(0x66c)])===null||_0x359218===void 0x0?void 0x0:_0x359218[_0xf42265(0x328)],'abortSignal':(_0x4daf2a=_0x4a7816[_0xf42265(0x66c)])===null||_0x4daf2a===void 0x0?void 0x0:_0x4daf2a[_0xf42265(0x643)]})['then'](_0x1bf039=>{const _0x728cfd=_0xf42265;return _0x1bf039[_0x728cfd(0x31b)]()[_0x728cfd(0x486)](_0x58345c=>{const _0x1e7bea=_0x728cfd,_0x607ac9=_0x58345c;return _0x607ac9[_0x1e7bea(0x344)]={'headers':_0x1bf039[_0x1e7bea(0x2b9)]},_0x607ac9;});}),_0xfa0082[_0xf42265(0x486)](_0x271b9e=>{const _0x22335c=_0xf42265,_0x93f42b=generateContentResponseFromVertex(_0x271b9e),_0x43a855=new GenerateContentResponse();return Object[_0x22335c(0x5a8)](_0x43a855,_0x93f42b),_0x43a855;});}else{const _0x522319=generateContentParametersToMldev(this[_0xf42265(0x61e)],_0x4a7816);return _0x438c7f=formatMap(_0xf42265(0x28a),_0x522319[_0xf42265(0x2c1)]),_0x417bdd=_0x522319[_0xf42265(0x4cd)],delete _0x522319[_0xf42265(0x2c1)],delete _0x522319[_0xf42265(0x4cd)],_0xfa0082=this[_0xf42265(0x61e)][_0xf42265(0x560)]({'path':_0x438c7f,'queryParams':_0x417bdd,'body':JSON[_0xf42265(0x183)](_0x522319),'httpMethod':_0xf42265(0x1e6),'httpOptions':(_0x46c0ae=_0x4a7816[_0xf42265(0x66c)])===null||_0x46c0ae===void 0x0?void 0x0:_0x46c0ae['httpOptions'],'abortSignal':(_0x5792b4=_0x4a7816[_0xf42265(0x66c)])===null||_0x5792b4===void 0x0?void 0x0:_0x5792b4['abortSignal']})['then'](_0x3b75da=>{const _0x52126b=_0xf42265;return _0x3b75da['json']()[_0x52126b(0x486)](_0x419494=>{const _0x306d7d=_0x52126b,_0x47dd21=_0x419494;return _0x47dd21[_0x306d7d(0x344)]={'headers':_0x3b75da['headers']},_0x47dd21;});}),_0xfa0082[_0xf42265(0x486)](_0x84dcca=>{const _0xed81ce=_0xf42265,_0xa63515=generateContentResponseFromMldev(_0x84dcca),_0x3c0380=new GenerateContentResponse();return Object[_0xed81ce(0x5a8)](_0x3c0380,_0xa63515),_0x3c0380;});}}async['generateContentStreamInternal'](_0x2ee5e7){const _0x2281f6=a6_0x51c1ef;var _0x54b42f,_0x2c14f0,_0x5d5283,_0x31072e;let _0x56ba4b,_0x1b5a1a='',_0x330555={};if(this['apiClient'][_0x2281f6(0x291)]()){const _0x5b4d5d=generateContentParametersToVertex(this['apiClient'],_0x2ee5e7);_0x1b5a1a=formatMap(_0x2281f6(0x2b7),_0x5b4d5d[_0x2281f6(0x2c1)]),_0x330555=_0x5b4d5d['_query'],delete _0x5b4d5d[_0x2281f6(0x2c1)],delete _0x5b4d5d[_0x2281f6(0x4cd)];const _0x1c383c=this[_0x2281f6(0x61e)];return _0x56ba4b=_0x1c383c[_0x2281f6(0x224)]({'path':_0x1b5a1a,'queryParams':_0x330555,'body':JSON[_0x2281f6(0x183)](_0x5b4d5d),'httpMethod':_0x2281f6(0x1e6),'httpOptions':(_0x54b42f=_0x2ee5e7[_0x2281f6(0x66c)])===null||_0x54b42f===void 0x0?void 0x0:_0x54b42f[_0x2281f6(0x328)],'abortSignal':(_0x2c14f0=_0x2ee5e7[_0x2281f6(0x66c)])===null||_0x2c14f0===void 0x0?void 0x0:_0x2c14f0[_0x2281f6(0x643)]}),_0x56ba4b['then'](function(_0x3336f6){return __asyncGenerator(this,arguments,function*(){const _0x2e739c=a6_0x148c;var _0x393085,_0x267086,_0x19dbea,_0x512ba0;try{for(var _0x3016c4=!![],_0xe90e0c=__asyncValues(_0x3336f6),_0x4dff7c;_0x4dff7c=yield __await(_0xe90e0c['next']()),_0x393085=_0x4dff7c[_0x2e739c(0x2e9)],!_0x393085;_0x3016c4=!![]){_0x512ba0=_0x4dff7c[_0x2e739c(0x296)],_0x3016c4=![];const _0x4e7a60=_0x512ba0,_0x415981=generateContentResponseFromVertex(yield __await(_0x4e7a60['json']()),_0x2ee5e7);_0x415981['sdkHttpResponse']={'headers':_0x4e7a60[_0x2e739c(0x2b9)]};const _0x345226=new GenerateContentResponse();Object[_0x2e739c(0x5a8)](_0x345226,_0x415981),yield yield __await(_0x345226);}}catch(_0x580670){_0x267086={'error':_0x580670};}finally{try{if(!_0x3016c4&&!_0x393085&&(_0x19dbea=_0xe90e0c[_0x2e739c(0x1ab)]))yield __await(_0x19dbea['call'](_0xe90e0c));}finally{if(_0x267086)throw _0x267086['error'];}}});});}else{const _0x3f5d1a=generateContentParametersToMldev(this[_0x2281f6(0x61e)],_0x2ee5e7);_0x1b5a1a=formatMap(_0x2281f6(0x2b7),_0x3f5d1a['_url']),_0x330555=_0x3f5d1a[_0x2281f6(0x4cd)],delete _0x3f5d1a[_0x2281f6(0x2c1)],delete _0x3f5d1a[_0x2281f6(0x4cd)];const _0x587822=this[_0x2281f6(0x61e)];return _0x56ba4b=_0x587822[_0x2281f6(0x224)]({'path':_0x1b5a1a,'queryParams':_0x330555,'body':JSON['stringify'](_0x3f5d1a),'httpMethod':_0x2281f6(0x1e6),'httpOptions':(_0x5d5283=_0x2ee5e7[_0x2281f6(0x66c)])===null||_0x5d5283===void 0x0?void 0x0:_0x5d5283[_0x2281f6(0x328)],'abortSignal':(_0x31072e=_0x2ee5e7[_0x2281f6(0x66c)])===null||_0x31072e===void 0x0?void 0x0:_0x31072e[_0x2281f6(0x643)]}),_0x56ba4b['then'](function(_0x44f708){return __asyncGenerator(this,arguments,function*(){const _0x3c08d9=a6_0x148c;var _0x1f76a7,_0x345169,_0x5c7cb3,_0x15ebc1;try{for(var _0x591bb7=!![],_0x1c0e95=__asyncValues(_0x44f708),_0x3384f3;_0x3384f3=yield __await(_0x1c0e95[_0x3c08d9(0x394)]()),_0x1f76a7=_0x3384f3[_0x3c08d9(0x2e9)],!_0x1f76a7;_0x591bb7=!![]){_0x15ebc1=_0x3384f3[_0x3c08d9(0x296)],_0x591bb7=![];const _0x116bad=_0x15ebc1,_0x13c131=generateContentResponseFromMldev(yield __await(_0x116bad['json']()),_0x2ee5e7);_0x13c131[_0x3c08d9(0x344)]={'headers':_0x116bad[_0x3c08d9(0x2b9)]};const _0x4c0804=new GenerateContentResponse();Object[_0x3c08d9(0x5a8)](_0x4c0804,_0x13c131),yield yield __await(_0x4c0804);}}catch(_0x368ad8){_0x345169={'error':_0x368ad8};}finally{try{if(!_0x591bb7&&!_0x1f76a7&&(_0x5c7cb3=_0x1c0e95[_0x3c08d9(0x1ab)]))yield __await(_0x5c7cb3[_0x3c08d9(0x17f)](_0x1c0e95));}finally{if(_0x345169)throw _0x345169['error'];}}});});}}async[a6_0x51c1ef(0x3ff)](_0x31567a){const _0x2fa90a=a6_0x51c1ef;var _0xdabaf6,_0x468081,_0x16afe8,_0x379b17;let _0x3dc876,_0x2d524d='',_0x153562={};if(this[_0x2fa90a(0x61e)]['isVertexAI']()){const _0x21343f=embedContentParametersToVertex(this[_0x2fa90a(0x61e)],_0x31567a);return _0x2d524d=formatMap(_0x2fa90a(0x340),_0x21343f[_0x2fa90a(0x2c1)]),_0x153562=_0x21343f[_0x2fa90a(0x4cd)],delete _0x21343f[_0x2fa90a(0x2c1)],delete _0x21343f[_0x2fa90a(0x4cd)],_0x3dc876=this['apiClient'][_0x2fa90a(0x560)]({'path':_0x2d524d,'queryParams':_0x153562,'body':JSON[_0x2fa90a(0x183)](_0x21343f),'httpMethod':'POST','httpOptions':(_0xdabaf6=_0x31567a[_0x2fa90a(0x66c)])===null||_0xdabaf6===void 0x0?void 0x0:_0xdabaf6['httpOptions'],'abortSignal':(_0x468081=_0x31567a[_0x2fa90a(0x66c)])===null||_0x468081===void 0x0?void 0x0:_0x468081['abortSignal']})[_0x2fa90a(0x486)](_0x9945bb=>{const _0x2c8a13=_0x2fa90a;return _0x9945bb[_0x2c8a13(0x31b)]()['then'](_0x38f302=>{const _0x375a0a=_0x2c8a13,_0x6a7268=_0x38f302;return _0x6a7268[_0x375a0a(0x344)]={'headers':_0x9945bb[_0x375a0a(0x2b9)]},_0x6a7268;});}),_0x3dc876[_0x2fa90a(0x486)](_0x417f41=>{const _0x5183d3=embedContentResponseFromVertex(_0x417f41),_0x5be2d0=new EmbedContentResponse();return Object['assign'](_0x5be2d0,_0x5183d3),_0x5be2d0;});}else{const _0x35fb50=embedContentParametersToMldev(this[_0x2fa90a(0x61e)],_0x31567a);return _0x2d524d=formatMap(_0x2fa90a(0x3b3),_0x35fb50['_url']),_0x153562=_0x35fb50[_0x2fa90a(0x4cd)],delete _0x35fb50['_url'],delete _0x35fb50[_0x2fa90a(0x4cd)],_0x3dc876=this[_0x2fa90a(0x61e)][_0x2fa90a(0x560)]({'path':_0x2d524d,'queryParams':_0x153562,'body':JSON['stringify'](_0x35fb50),'httpMethod':'POST','httpOptions':(_0x16afe8=_0x31567a[_0x2fa90a(0x66c)])===null||_0x16afe8===void 0x0?void 0x0:_0x16afe8[_0x2fa90a(0x328)],'abortSignal':(_0x379b17=_0x31567a[_0x2fa90a(0x66c)])===null||_0x379b17===void 0x0?void 0x0:_0x379b17[_0x2fa90a(0x643)]})[_0x2fa90a(0x486)](_0x11d7e8=>{const _0xd274ee=_0x2fa90a;return _0x11d7e8[_0xd274ee(0x31b)]()['then'](_0x1eb333=>{const _0x3b8a60=_0xd274ee,_0xf8fa93=_0x1eb333;return _0xf8fa93[_0x3b8a60(0x344)]={'headers':_0x11d7e8[_0x3b8a60(0x2b9)]},_0xf8fa93;});}),_0x3dc876['then'](_0x310cd7=>{const _0x4b6a32=_0x2fa90a,_0x2d0079=embedContentResponseFromMldev(_0x310cd7),_0x588e82=new EmbedContentResponse();return Object[_0x4b6a32(0x5a8)](_0x588e82,_0x2d0079),_0x588e82;});}}async[a6_0x51c1ef(0x25f)](_0x483b29){const _0x3cb9f9=a6_0x51c1ef;var _0x458831,_0x4a1caf,_0x184b35,_0x420b72;let _0x22c470,_0x2e2ce2='',_0x13582a={};if(this[_0x3cb9f9(0x61e)]['isVertexAI']()){const _0xf9e444=generateImagesParametersToVertex(this[_0x3cb9f9(0x61e)],_0x483b29);return _0x2e2ce2=formatMap('{model}:predict',_0xf9e444[_0x3cb9f9(0x2c1)]),_0x13582a=_0xf9e444['_query'],delete _0xf9e444[_0x3cb9f9(0x2c1)],delete _0xf9e444[_0x3cb9f9(0x4cd)],_0x22c470=this[_0x3cb9f9(0x61e)][_0x3cb9f9(0x560)]({'path':_0x2e2ce2,'queryParams':_0x13582a,'body':JSON[_0x3cb9f9(0x183)](_0xf9e444),'httpMethod':_0x3cb9f9(0x1e6),'httpOptions':(_0x458831=_0x483b29[_0x3cb9f9(0x66c)])===null||_0x458831===void 0x0?void 0x0:_0x458831[_0x3cb9f9(0x328)],'abortSignal':(_0x4a1caf=_0x483b29['config'])===null||_0x4a1caf===void 0x0?void 0x0:_0x4a1caf[_0x3cb9f9(0x643)]})[_0x3cb9f9(0x486)](_0x170e47=>{const _0x32f360=_0x3cb9f9;return _0x170e47['json']()[_0x32f360(0x486)](_0xadfa1e=>{const _0x3e96b8=_0x32f360,_0x2f5787=_0xadfa1e;return _0x2f5787[_0x3e96b8(0x344)]={'headers':_0x170e47[_0x3e96b8(0x2b9)]},_0x2f5787;});}),_0x22c470['then'](_0x2edcab=>{const _0x1ac680=_0x3cb9f9,_0x5cff0e=generateImagesResponseFromVertex(_0x2edcab),_0x2455f6=new GenerateImagesResponse();return Object[_0x1ac680(0x5a8)](_0x2455f6,_0x5cff0e),_0x2455f6;});}else{const _0x21e589=generateImagesParametersToMldev(this[_0x3cb9f9(0x61e)],_0x483b29);return _0x2e2ce2=formatMap(_0x3cb9f9(0x340),_0x21e589[_0x3cb9f9(0x2c1)]),_0x13582a=_0x21e589['_query'],delete _0x21e589[_0x3cb9f9(0x2c1)],delete _0x21e589[_0x3cb9f9(0x4cd)],_0x22c470=this[_0x3cb9f9(0x61e)][_0x3cb9f9(0x560)]({'path':_0x2e2ce2,'queryParams':_0x13582a,'body':JSON[_0x3cb9f9(0x183)](_0x21e589),'httpMethod':_0x3cb9f9(0x1e6),'httpOptions':(_0x184b35=_0x483b29[_0x3cb9f9(0x66c)])===null||_0x184b35===void 0x0?void 0x0:_0x184b35[_0x3cb9f9(0x328)],'abortSignal':(_0x420b72=_0x483b29[_0x3cb9f9(0x66c)])===null||_0x420b72===void 0x0?void 0x0:_0x420b72[_0x3cb9f9(0x643)]})[_0x3cb9f9(0x486)](_0x4fdeeb=>{const _0x188a13=_0x3cb9f9;return _0x4fdeeb[_0x188a13(0x31b)]()[_0x188a13(0x486)](_0x51bc0b=>{const _0x546d17=_0x188a13,_0x326224=_0x51bc0b;return _0x326224[_0x546d17(0x344)]={'headers':_0x4fdeeb['headers']},_0x326224;});}),_0x22c470[_0x3cb9f9(0x486)](_0x18da35=>{const _0x1cde50=_0x3cb9f9,_0x22d857=generateImagesResponseFromMldev(_0x18da35),_0x3b632d=new GenerateImagesResponse();return Object[_0x1cde50(0x5a8)](_0x3b632d,_0x22d857),_0x3b632d;});}}async[a6_0x51c1ef(0x529)](_0x27624e){const _0x1dce15=a6_0x51c1ef;var _0x15c0bd,_0x502671;let _0x443900,_0x32a905='',_0x2407fe={};if(this['apiClient'][_0x1dce15(0x291)]()){const _0x1e5ee4=editImageParametersInternalToVertex(this[_0x1dce15(0x61e)],_0x27624e);return _0x32a905=formatMap(_0x1dce15(0x340),_0x1e5ee4[_0x1dce15(0x2c1)]),_0x2407fe=_0x1e5ee4[_0x1dce15(0x4cd)],delete _0x1e5ee4[_0x1dce15(0x2c1)],delete _0x1e5ee4['_query'],_0x443900=this['apiClient'][_0x1dce15(0x560)]({'path':_0x32a905,'queryParams':_0x2407fe,'body':JSON['stringify'](_0x1e5ee4),'httpMethod':_0x1dce15(0x1e6),'httpOptions':(_0x15c0bd=_0x27624e['config'])===null||_0x15c0bd===void 0x0?void 0x0:_0x15c0bd['httpOptions'],'abortSignal':(_0x502671=_0x27624e[_0x1dce15(0x66c)])===null||_0x502671===void 0x0?void 0x0:_0x502671[_0x1dce15(0x643)]})['then'](_0x3e2080=>{const _0x42b5d3=_0x1dce15;return _0x3e2080[_0x42b5d3(0x31b)]()[_0x42b5d3(0x486)](_0x3939d0=>{const _0x53c150=_0x42b5d3,_0x1eaae2=_0x3939d0;return _0x1eaae2[_0x53c150(0x344)]={'headers':_0x3e2080['headers']},_0x1eaae2;});}),_0x443900[_0x1dce15(0x486)](_0xaa1dd0=>{const _0x2f9110=editImageResponseFromVertex(_0xaa1dd0),_0x27dc52=new EditImageResponse();return Object['assign'](_0x27dc52,_0x2f9110),_0x27dc52;});}else throw new Error(_0x1dce15(0x493));}async[a6_0x51c1ef(0x209)](_0x4112c1){const _0x5d1dc0=a6_0x51c1ef;var _0x2990c3,_0x523567;let _0x143216,_0xfcc878='',_0x45eed6={};if(this[_0x5d1dc0(0x61e)][_0x5d1dc0(0x291)]()){const _0x571522=upscaleImageAPIParametersInternalToVertex(this[_0x5d1dc0(0x61e)],_0x4112c1);return _0xfcc878=formatMap('{model}:predict',_0x571522[_0x5d1dc0(0x2c1)]),_0x45eed6=_0x571522[_0x5d1dc0(0x4cd)],delete _0x571522[_0x5d1dc0(0x2c1)],delete _0x571522[_0x5d1dc0(0x4cd)],_0x143216=this[_0x5d1dc0(0x61e)][_0x5d1dc0(0x560)]({'path':_0xfcc878,'queryParams':_0x45eed6,'body':JSON[_0x5d1dc0(0x183)](_0x571522),'httpMethod':'POST','httpOptions':(_0x2990c3=_0x4112c1['config'])===null||_0x2990c3===void 0x0?void 0x0:_0x2990c3[_0x5d1dc0(0x328)],'abortSignal':(_0x523567=_0x4112c1['config'])===null||_0x523567===void 0x0?void 0x0:_0x523567[_0x5d1dc0(0x643)]})[_0x5d1dc0(0x486)](_0x456a50=>{const _0x64e143=_0x5d1dc0;return _0x456a50[_0x64e143(0x31b)]()[_0x64e143(0x486)](_0x335a06=>{const _0x112e2e=_0x64e143,_0x19f13d=_0x335a06;return _0x19f13d[_0x112e2e(0x344)]={'headers':_0x456a50[_0x112e2e(0x2b9)]},_0x19f13d;});}),_0x143216[_0x5d1dc0(0x486)](_0x5a37c6=>{const _0x1ad030=_0x5d1dc0,_0xb32061=upscaleImageResponseFromVertex(_0x5a37c6),_0x27cf86=new UpscaleImageResponse();return Object[_0x1ad030(0x5a8)](_0x27cf86,_0xb32061),_0x27cf86;});}else throw new Error(_0x5d1dc0(0x493));}async['recontextImage'](_0x5c5827){const _0x51af1d=a6_0x51c1ef;var _0x26e68c,_0x93b052;let _0x5ac809,_0x293ba1='',_0xc3c3cb={};if(this[_0x51af1d(0x61e)][_0x51af1d(0x291)]()){const _0x56f8f2=recontextImageParametersToVertex(this[_0x51af1d(0x61e)],_0x5c5827);return _0x293ba1=formatMap('{model}:predict',_0x56f8f2[_0x51af1d(0x2c1)]),_0xc3c3cb=_0x56f8f2[_0x51af1d(0x4cd)],delete _0x56f8f2[_0x51af1d(0x2c1)],delete _0x56f8f2[_0x51af1d(0x4cd)],_0x5ac809=this['apiClient']['request']({'path':_0x293ba1,'queryParams':_0xc3c3cb,'body':JSON[_0x51af1d(0x183)](_0x56f8f2),'httpMethod':_0x51af1d(0x1e6),'httpOptions':(_0x26e68c=_0x5c5827['config'])===null||_0x26e68c===void 0x0?void 0x0:_0x26e68c[_0x51af1d(0x328)],'abortSignal':(_0x93b052=_0x5c5827['config'])===null||_0x93b052===void 0x0?void 0x0:_0x93b052[_0x51af1d(0x643)]})[_0x51af1d(0x486)](_0x4ce9c9=>{const _0x14ecda=_0x51af1d;return _0x4ce9c9[_0x14ecda(0x31b)]();}),_0x5ac809['then'](_0x513c35=>{const _0x4a78a3=recontextImageResponseFromVertex(_0x513c35),_0x241b2f=new RecontextImageResponse();return Object['assign'](_0x241b2f,_0x4a78a3),_0x241b2f;});}else throw new Error(_0x51af1d(0x493));}async[a6_0x51c1ef(0x46e)](_0x9ae75b){const _0x486f4c=a6_0x51c1ef;var _0x154e29,_0x299837;let _0x5681a0,_0x1741e9='',_0x559f4a={};if(this[_0x486f4c(0x61e)]['isVertexAI']()){const _0x10dc2e=segmentImageParametersToVertex(this[_0x486f4c(0x61e)],_0x9ae75b);return _0x1741e9=formatMap(_0x486f4c(0x340),_0x10dc2e[_0x486f4c(0x2c1)]),_0x559f4a=_0x10dc2e['_query'],delete _0x10dc2e[_0x486f4c(0x2c1)],delete _0x10dc2e['_query'],_0x5681a0=this[_0x486f4c(0x61e)][_0x486f4c(0x560)]({'path':_0x1741e9,'queryParams':_0x559f4a,'body':JSON[_0x486f4c(0x183)](_0x10dc2e),'httpMethod':_0x486f4c(0x1e6),'httpOptions':(_0x154e29=_0x9ae75b[_0x486f4c(0x66c)])===null||_0x154e29===void 0x0?void 0x0:_0x154e29[_0x486f4c(0x328)],'abortSignal':(_0x299837=_0x9ae75b['config'])===null||_0x299837===void 0x0?void 0x0:_0x299837[_0x486f4c(0x643)]})[_0x486f4c(0x486)](_0x427912=>{return _0x427912['json']();}),_0x5681a0[_0x486f4c(0x486)](_0x11b9d2=>{const _0x142acc=_0x486f4c,_0x4d5a18=segmentImageResponseFromVertex(_0x11b9d2),_0x4cd030=new SegmentImageResponse();return Object[_0x142acc(0x5a8)](_0x4cd030,_0x4d5a18),_0x4cd030;});}else throw new Error(_0x486f4c(0x493));}async[a6_0x51c1ef(0x482)](_0x52c61){const _0x44e437=a6_0x51c1ef;var _0x4f2c49,_0x567d38,_0x32834a,_0x3b463f;let _0x752e99,_0x290b4e='',_0x1436b8={};if(this[_0x44e437(0x61e)][_0x44e437(0x291)]()){const _0x2a848a=getModelParametersToVertex(this[_0x44e437(0x61e)],_0x52c61);return _0x290b4e=formatMap(_0x44e437(0x3f1),_0x2a848a['_url']),_0x1436b8=_0x2a848a[_0x44e437(0x4cd)],delete _0x2a848a['_url'],delete _0x2a848a[_0x44e437(0x4cd)],_0x752e99=this[_0x44e437(0x61e)][_0x44e437(0x560)]({'path':_0x290b4e,'queryParams':_0x1436b8,'body':JSON[_0x44e437(0x183)](_0x2a848a),'httpMethod':'GET','httpOptions':(_0x4f2c49=_0x52c61['config'])===null||_0x4f2c49===void 0x0?void 0x0:_0x4f2c49['httpOptions'],'abortSignal':(_0x567d38=_0x52c61[_0x44e437(0x66c)])===null||_0x567d38===void 0x0?void 0x0:_0x567d38[_0x44e437(0x643)]})[_0x44e437(0x486)](_0x1b0354=>{const _0x308e2a=_0x44e437;return _0x1b0354[_0x308e2a(0x31b)]();}),_0x752e99[_0x44e437(0x486)](_0x2e0e3a=>{const _0x4cb45e=modelFromVertex(_0x2e0e3a);return _0x4cb45e;});}else{const _0x3b30a3=getModelParametersToMldev(this[_0x44e437(0x61e)],_0x52c61);return _0x290b4e=formatMap('{name}',_0x3b30a3[_0x44e437(0x2c1)]),_0x1436b8=_0x3b30a3[_0x44e437(0x4cd)],delete _0x3b30a3['_url'],delete _0x3b30a3[_0x44e437(0x4cd)],_0x752e99=this[_0x44e437(0x61e)][_0x44e437(0x560)]({'path':_0x290b4e,'queryParams':_0x1436b8,'body':JSON[_0x44e437(0x183)](_0x3b30a3),'httpMethod':_0x44e437(0x1fa),'httpOptions':(_0x32834a=_0x52c61[_0x44e437(0x66c)])===null||_0x32834a===void 0x0?void 0x0:_0x32834a[_0x44e437(0x328)],'abortSignal':(_0x3b463f=_0x52c61['config'])===null||_0x3b463f===void 0x0?void 0x0:_0x3b463f['abortSignal']})['then'](_0x2d4fad=>{const _0x156c75=_0x44e437;return _0x2d4fad[_0x156c75(0x31b)]();}),_0x752e99[_0x44e437(0x486)](_0x45225d=>{const _0x430131=modelFromMldev(_0x45225d);return _0x430131;});}}async[a6_0x51c1ef(0x542)](_0x4d218f){const _0x2823b6=a6_0x51c1ef;var _0x4c808b,_0xe33eb9,_0x4c48b4,_0x3b7221;let _0x2b6915,_0xbcc46d='',_0x1fb782={};if(this[_0x2823b6(0x61e)][_0x2823b6(0x291)]()){const _0x575b90=listModelsParametersToVertex(this[_0x2823b6(0x61e)],_0x4d218f);return _0xbcc46d=formatMap(_0x2823b6(0x293),_0x575b90[_0x2823b6(0x2c1)]),_0x1fb782=_0x575b90[_0x2823b6(0x4cd)],delete _0x575b90[_0x2823b6(0x2c1)],delete _0x575b90[_0x2823b6(0x4cd)],_0x2b6915=this['apiClient'][_0x2823b6(0x560)]({'path':_0xbcc46d,'queryParams':_0x1fb782,'body':JSON[_0x2823b6(0x183)](_0x575b90),'httpMethod':'GET','httpOptions':(_0x4c808b=_0x4d218f['config'])===null||_0x4c808b===void 0x0?void 0x0:_0x4c808b[_0x2823b6(0x328)],'abortSignal':(_0xe33eb9=_0x4d218f[_0x2823b6(0x66c)])===null||_0xe33eb9===void 0x0?void 0x0:_0xe33eb9[_0x2823b6(0x643)]})[_0x2823b6(0x486)](_0x1593fa=>{const _0x1d6bf8=_0x2823b6;return _0x1593fa[_0x1d6bf8(0x31b)]()['then'](_0x536aec=>{const _0x3717c9=_0x1d6bf8,_0x9a07cb=_0x536aec;return _0x9a07cb[_0x3717c9(0x344)]={'headers':_0x1593fa['headers']},_0x9a07cb;});}),_0x2b6915['then'](_0x1a287d=>{const _0x20f80e=listModelsResponseFromVertex(_0x1a287d),_0x5f439a=new ListModelsResponse();return Object['assign'](_0x5f439a,_0x20f80e),_0x5f439a;});}else{const _0x5ef24f=listModelsParametersToMldev(this[_0x2823b6(0x61e)],_0x4d218f);return _0xbcc46d=formatMap(_0x2823b6(0x293),_0x5ef24f[_0x2823b6(0x2c1)]),_0x1fb782=_0x5ef24f[_0x2823b6(0x4cd)],delete _0x5ef24f[_0x2823b6(0x2c1)],delete _0x5ef24f[_0x2823b6(0x4cd)],_0x2b6915=this['apiClient'][_0x2823b6(0x560)]({'path':_0xbcc46d,'queryParams':_0x1fb782,'body':JSON[_0x2823b6(0x183)](_0x5ef24f),'httpMethod':'GET','httpOptions':(_0x4c48b4=_0x4d218f[_0x2823b6(0x66c)])===null||_0x4c48b4===void 0x0?void 0x0:_0x4c48b4[_0x2823b6(0x328)],'abortSignal':(_0x3b7221=_0x4d218f[_0x2823b6(0x66c)])===null||_0x3b7221===void 0x0?void 0x0:_0x3b7221[_0x2823b6(0x643)]})[_0x2823b6(0x486)](_0x142291=>{const _0x124d7f=_0x2823b6;return _0x142291[_0x124d7f(0x31b)]()[_0x124d7f(0x486)](_0x3d04a0=>{const _0x2255f3=_0x124d7f,_0xa62123=_0x3d04a0;return _0xa62123[_0x2255f3(0x344)]={'headers':_0x142291[_0x2255f3(0x2b9)]},_0xa62123;});}),_0x2b6915['then'](_0x2f2e81=>{const _0x2d0e3b=_0x2823b6,_0x459c64=listModelsResponseFromMldev(_0x2f2e81),_0x7a3132=new ListModelsResponse();return Object[_0x2d0e3b(0x5a8)](_0x7a3132,_0x459c64),_0x7a3132;});}}async[a6_0x51c1ef(0x2d2)](_0x3617bf){const _0x5db756=a6_0x51c1ef;var _0x555538,_0x1e26dc,_0x47d6b8,_0x3069e7;let _0x1e8902,_0x460b0f='',_0x3ed6cc={};if(this[_0x5db756(0x61e)][_0x5db756(0x291)]()){const _0x429436=updateModelParametersToVertex(this[_0x5db756(0x61e)],_0x3617bf);return _0x460b0f=formatMap(_0x5db756(0x57f),_0x429436[_0x5db756(0x2c1)]),_0x3ed6cc=_0x429436[_0x5db756(0x4cd)],delete _0x429436[_0x5db756(0x2c1)],delete _0x429436[_0x5db756(0x4cd)],_0x1e8902=this[_0x5db756(0x61e)][_0x5db756(0x560)]({'path':_0x460b0f,'queryParams':_0x3ed6cc,'body':JSON[_0x5db756(0x183)](_0x429436),'httpMethod':_0x5db756(0x54b),'httpOptions':(_0x555538=_0x3617bf[_0x5db756(0x66c)])===null||_0x555538===void 0x0?void 0x0:_0x555538['httpOptions'],'abortSignal':(_0x1e26dc=_0x3617bf[_0x5db756(0x66c)])===null||_0x1e26dc===void 0x0?void 0x0:_0x1e26dc[_0x5db756(0x643)]})[_0x5db756(0x486)](_0x5384bb=>{const _0x566952=_0x5db756;return _0x5384bb[_0x566952(0x31b)]();}),_0x1e8902[_0x5db756(0x486)](_0x23bd2b=>{const _0x5a393d=modelFromVertex(_0x23bd2b);return _0x5a393d;});}else{const _0x366780=updateModelParametersToMldev(this['apiClient'],_0x3617bf);return _0x460b0f=formatMap(_0x5db756(0x3f1),_0x366780[_0x5db756(0x2c1)]),_0x3ed6cc=_0x366780[_0x5db756(0x4cd)],delete _0x366780[_0x5db756(0x2c1)],delete _0x366780['_query'],_0x1e8902=this['apiClient'][_0x5db756(0x560)]({'path':_0x460b0f,'queryParams':_0x3ed6cc,'body':JSON[_0x5db756(0x183)](_0x366780),'httpMethod':_0x5db756(0x54b),'httpOptions':(_0x47d6b8=_0x3617bf['config'])===null||_0x47d6b8===void 0x0?void 0x0:_0x47d6b8[_0x5db756(0x328)],'abortSignal':(_0x3069e7=_0x3617bf[_0x5db756(0x66c)])===null||_0x3069e7===void 0x0?void 0x0:_0x3069e7['abortSignal']})[_0x5db756(0x486)](_0x2e6067=>{return _0x2e6067['json']();}),_0x1e8902[_0x5db756(0x486)](_0x3bb98d=>{const _0x3be463=modelFromMldev(_0x3bb98d);return _0x3be463;});}}async['delete'](_0x5ad6c2){const _0x304550=a6_0x51c1ef;var _0xa1f6cb,_0x39631b,_0x39d0f2,_0x36258c;let _0x100cdb,_0x1128f1='',_0x523028={};if(this['apiClient'][_0x304550(0x291)]()){const _0x2407ae=deleteModelParametersToVertex(this[_0x304550(0x61e)],_0x5ad6c2);return _0x1128f1=formatMap(_0x304550(0x3f1),_0x2407ae[_0x304550(0x2c1)]),_0x523028=_0x2407ae[_0x304550(0x4cd)],delete _0x2407ae[_0x304550(0x2c1)],delete _0x2407ae[_0x304550(0x4cd)],_0x100cdb=this[_0x304550(0x61e)][_0x304550(0x560)]({'path':_0x1128f1,'queryParams':_0x523028,'body':JSON[_0x304550(0x183)](_0x2407ae),'httpMethod':_0x304550(0x267),'httpOptions':(_0xa1f6cb=_0x5ad6c2[_0x304550(0x66c)])===null||_0xa1f6cb===void 0x0?void 0x0:_0xa1f6cb[_0x304550(0x328)],'abortSignal':(_0x39631b=_0x5ad6c2['config'])===null||_0x39631b===void 0x0?void 0x0:_0x39631b[_0x304550(0x643)]})[_0x304550(0x486)](_0x2ccf17=>{const _0x381c18=_0x304550;return _0x2ccf17[_0x381c18(0x31b)]()['then'](_0x3e41dd=>{const _0x548ca7=_0x381c18,_0x18c3fd=_0x3e41dd;return _0x18c3fd[_0x548ca7(0x344)]={'headers':_0x2ccf17['headers']},_0x18c3fd;});}),_0x100cdb[_0x304550(0x486)](_0x52ce68=>{const _0x4501b4=_0x304550,_0x6afd73=deleteModelResponseFromVertex(_0x52ce68),_0x35e22c=new DeleteModelResponse();return Object[_0x4501b4(0x5a8)](_0x35e22c,_0x6afd73),_0x35e22c;});}else{const _0x520fd1=deleteModelParametersToMldev(this['apiClient'],_0x5ad6c2);return _0x1128f1=formatMap('{name}',_0x520fd1[_0x304550(0x2c1)]),_0x523028=_0x520fd1[_0x304550(0x4cd)],delete _0x520fd1[_0x304550(0x2c1)],delete _0x520fd1[_0x304550(0x4cd)],_0x100cdb=this[_0x304550(0x61e)][_0x304550(0x560)]({'path':_0x1128f1,'queryParams':_0x523028,'body':JSON[_0x304550(0x183)](_0x520fd1),'httpMethod':_0x304550(0x267),'httpOptions':(_0x39d0f2=_0x5ad6c2[_0x304550(0x66c)])===null||_0x39d0f2===void 0x0?void 0x0:_0x39d0f2[_0x304550(0x328)],'abortSignal':(_0x36258c=_0x5ad6c2[_0x304550(0x66c)])===null||_0x36258c===void 0x0?void 0x0:_0x36258c[_0x304550(0x643)]})[_0x304550(0x486)](_0x29f5e3=>{const _0x458275=_0x304550;return _0x29f5e3[_0x458275(0x31b)]()['then'](_0x55cda3=>{const _0x46b78a=_0x458275,_0x23964f=_0x55cda3;return _0x23964f[_0x46b78a(0x344)]={'headers':_0x29f5e3[_0x46b78a(0x2b9)]},_0x23964f;});}),_0x100cdb['then'](_0x1fcc8d=>{const _0xf8d16f=_0x304550,_0x3cfc4c=deleteModelResponseFromMldev(_0x1fcc8d),_0x4681e6=new DeleteModelResponse();return Object[_0xf8d16f(0x5a8)](_0x4681e6,_0x3cfc4c),_0x4681e6;});}}async[a6_0x51c1ef(0x35a)](_0x2b7a11){const _0x908e08=a6_0x51c1ef;var _0x32e8e3,_0x3f173b,_0x47b9ff,_0x10aaec;let _0x1ea0a1,_0x2c9b11='',_0x1d41de={};if(this[_0x908e08(0x61e)][_0x908e08(0x291)]()){const _0x38d83f=countTokensParametersToVertex(this['apiClient'],_0x2b7a11);return _0x2c9b11=formatMap(_0x908e08(0x5b3),_0x38d83f['_url']),_0x1d41de=_0x38d83f[_0x908e08(0x4cd)],delete _0x38d83f[_0x908e08(0x2c1)],delete _0x38d83f['_query'],_0x1ea0a1=this[_0x908e08(0x61e)]['request']({'path':_0x2c9b11,'queryParams':_0x1d41de,'body':JSON[_0x908e08(0x183)](_0x38d83f),'httpMethod':_0x908e08(0x1e6),'httpOptions':(_0x32e8e3=_0x2b7a11[_0x908e08(0x66c)])===null||_0x32e8e3===void 0x0?void 0x0:_0x32e8e3[_0x908e08(0x328)],'abortSignal':(_0x3f173b=_0x2b7a11['config'])===null||_0x3f173b===void 0x0?void 0x0:_0x3f173b[_0x908e08(0x643)]})[_0x908e08(0x486)](_0xf04c03=>{const _0x57e9f9=_0x908e08;return _0xf04c03[_0x57e9f9(0x31b)]()[_0x57e9f9(0x486)](_0x29ec2b=>{const _0x473e36=_0x57e9f9,_0x46385f=_0x29ec2b;return _0x46385f['sdkHttpResponse']={'headers':_0xf04c03[_0x473e36(0x2b9)]},_0x46385f;});}),_0x1ea0a1['then'](_0x2dc33b=>{const _0x3ad53b=_0x908e08,_0x1c6719=countTokensResponseFromVertex(_0x2dc33b),_0xa87911=new CountTokensResponse();return Object[_0x3ad53b(0x5a8)](_0xa87911,_0x1c6719),_0xa87911;});}else{const _0x1440a4=countTokensParametersToMldev(this[_0x908e08(0x61e)],_0x2b7a11);return _0x2c9b11=formatMap('{model}:countTokens',_0x1440a4['_url']),_0x1d41de=_0x1440a4[_0x908e08(0x4cd)],delete _0x1440a4[_0x908e08(0x2c1)],delete _0x1440a4[_0x908e08(0x4cd)],_0x1ea0a1=this['apiClient']['request']({'path':_0x2c9b11,'queryParams':_0x1d41de,'body':JSON[_0x908e08(0x183)](_0x1440a4),'httpMethod':'POST','httpOptions':(_0x47b9ff=_0x2b7a11['config'])===null||_0x47b9ff===void 0x0?void 0x0:_0x47b9ff[_0x908e08(0x328)],'abortSignal':(_0x10aaec=_0x2b7a11[_0x908e08(0x66c)])===null||_0x10aaec===void 0x0?void 0x0:_0x10aaec[_0x908e08(0x643)]})[_0x908e08(0x486)](_0x7c1b20=>{const _0x40ca31=_0x908e08;return _0x7c1b20[_0x40ca31(0x31b)]()[_0x40ca31(0x486)](_0x192edc=>{const _0x361a19=_0x40ca31,_0x48fe5c=_0x192edc;return _0x48fe5c[_0x361a19(0x344)]={'headers':_0x7c1b20['headers']},_0x48fe5c;});}),_0x1ea0a1['then'](_0x2c68f4=>{const _0x460b6f=_0x908e08,_0xf57143=countTokensResponseFromMldev(_0x2c68f4),_0x5a27fc=new CountTokensResponse();return Object[_0x460b6f(0x5a8)](_0x5a27fc,_0xf57143),_0x5a27fc;});}}async['computeTokens'](_0x5c4ae1){const _0x57455c=a6_0x51c1ef;var _0x3f2094,_0x53d87c;let _0x15becd,_0x41663e='',_0x427b58={};if(this[_0x57455c(0x61e)][_0x57455c(0x291)]()){const _0x2ec478=computeTokensParametersToVertex(this[_0x57455c(0x61e)],_0x5c4ae1);return _0x41663e=formatMap(_0x57455c(0x597),_0x2ec478['_url']),_0x427b58=_0x2ec478['_query'],delete _0x2ec478[_0x57455c(0x2c1)],delete _0x2ec478[_0x57455c(0x4cd)],_0x15becd=this['apiClient'][_0x57455c(0x560)]({'path':_0x41663e,'queryParams':_0x427b58,'body':JSON[_0x57455c(0x183)](_0x2ec478),'httpMethod':_0x57455c(0x1e6),'httpOptions':(_0x3f2094=_0x5c4ae1['config'])===null||_0x3f2094===void 0x0?void 0x0:_0x3f2094[_0x57455c(0x328)],'abortSignal':(_0x53d87c=_0x5c4ae1[_0x57455c(0x66c)])===null||_0x53d87c===void 0x0?void 0x0:_0x53d87c['abortSignal']})[_0x57455c(0x486)](_0x412c18=>{const _0x23a824=_0x57455c;return _0x412c18['json']()[_0x23a824(0x486)](_0x37d1a6=>{const _0x2a12bb=_0x23a824,_0x32cb01=_0x37d1a6;return _0x32cb01[_0x2a12bb(0x344)]={'headers':_0x412c18[_0x2a12bb(0x2b9)]},_0x32cb01;});}),_0x15becd[_0x57455c(0x486)](_0x59c024=>{const _0x504097=_0x57455c,_0x38c2be=computeTokensResponseFromVertex(_0x59c024),_0x2914c6=new ComputeTokensResponse();return Object[_0x504097(0x5a8)](_0x2914c6,_0x38c2be),_0x2914c6;});}else throw new Error(_0x57455c(0x493));}async[a6_0x51c1ef(0x5e8)](_0x4ad50e){const _0x7ed1dd=a6_0x51c1ef;var _0x310b48,_0x17c737,_0xeb9fc3,_0x157105;let _0x41eda3,_0x3926e1='',_0x38fc0a={};if(this[_0x7ed1dd(0x61e)][_0x7ed1dd(0x291)]()){const _0x2ddb5c=generateVideosParametersToVertex(this[_0x7ed1dd(0x61e)],_0x4ad50e);return _0x3926e1=formatMap('{model}:predictLongRunning',_0x2ddb5c['_url']),_0x38fc0a=_0x2ddb5c[_0x7ed1dd(0x4cd)],delete _0x2ddb5c[_0x7ed1dd(0x2c1)],delete _0x2ddb5c[_0x7ed1dd(0x4cd)],_0x41eda3=this['apiClient'][_0x7ed1dd(0x560)]({'path':_0x3926e1,'queryParams':_0x38fc0a,'body':JSON[_0x7ed1dd(0x183)](_0x2ddb5c),'httpMethod':_0x7ed1dd(0x1e6),'httpOptions':(_0x310b48=_0x4ad50e[_0x7ed1dd(0x66c)])===null||_0x310b48===void 0x0?void 0x0:_0x310b48[_0x7ed1dd(0x328)],'abortSignal':(_0x17c737=_0x4ad50e[_0x7ed1dd(0x66c)])===null||_0x17c737===void 0x0?void 0x0:_0x17c737[_0x7ed1dd(0x643)]})[_0x7ed1dd(0x486)](_0x16c6f4=>{return _0x16c6f4['json']();}),_0x41eda3['then'](_0x243234=>{const _0x4ab8a1=_0x7ed1dd,_0x1f794b=generateVideosOperationFromVertex(_0x243234),_0x5f4b3b=new GenerateVideosOperation();return Object[_0x4ab8a1(0x5a8)](_0x5f4b3b,_0x1f794b),_0x5f4b3b;});}else{const _0x114405=generateVideosParametersToMldev(this['apiClient'],_0x4ad50e);return _0x3926e1=formatMap('{model}:predictLongRunning',_0x114405[_0x7ed1dd(0x2c1)]),_0x38fc0a=_0x114405[_0x7ed1dd(0x4cd)],delete _0x114405[_0x7ed1dd(0x2c1)],delete _0x114405[_0x7ed1dd(0x4cd)],_0x41eda3=this[_0x7ed1dd(0x61e)][_0x7ed1dd(0x560)]({'path':_0x3926e1,'queryParams':_0x38fc0a,'body':JSON[_0x7ed1dd(0x183)](_0x114405),'httpMethod':_0x7ed1dd(0x1e6),'httpOptions':(_0xeb9fc3=_0x4ad50e[_0x7ed1dd(0x66c)])===null||_0xeb9fc3===void 0x0?void 0x0:_0xeb9fc3[_0x7ed1dd(0x328)],'abortSignal':(_0x157105=_0x4ad50e[_0x7ed1dd(0x66c)])===null||_0x157105===void 0x0?void 0x0:_0x157105[_0x7ed1dd(0x643)]})[_0x7ed1dd(0x486)](_0x58cf94=>{const _0x141b32=_0x7ed1dd;return _0x58cf94[_0x141b32(0x31b)]();}),_0x41eda3['then'](_0x55122e=>{const _0x5e1dbf=_0x7ed1dd,_0x21e1f5=generateVideosOperationFromMldev(_0x55122e),_0x35c0ab=new GenerateVideosOperation();return Object[_0x5e1dbf(0x5a8)](_0x35c0ab,_0x21e1f5),_0x35c0ab;});}}}/**
122
+ * @license
123
+ * Copyright 2025 Google LLC
124
+ * SPDX-License-Identifier: Apache-2.0
125
+ */
126
+ class Operations extends BaseModule{constructor(_0x16b41f){super(),this['apiClient']=_0x16b41f;}async[a6_0x51c1ef(0x2fd)](_0x565882){const _0x336da4=a6_0x51c1ef,_0x368ded=_0x565882[_0x336da4(0x55f)],_0x554095=_0x565882[_0x336da4(0x66c)];if(_0x368ded[_0x336da4(0x558)]===undefined||_0x368ded['name']==='')throw new Error(_0x336da4(0x43d));if(this[_0x336da4(0x61e)][_0x336da4(0x291)]()){const _0x128ecb=_0x368ded[_0x336da4(0x558)]['split'](_0x336da4(0x434))[0x0];let _0x4a40f6=undefined;_0x554095&&_0x336da4(0x328)in _0x554095&&(_0x4a40f6=_0x554095[_0x336da4(0x328)]);const _0x5d2eb6=await this['fetchPredictVideosOperationInternal']({'operationName':_0x368ded['name'],'resourceName':_0x128ecb,'config':{'httpOptions':_0x4a40f6}});return _0x368ded[_0x336da4(0x20e)]({'apiResponse':_0x5d2eb6,'_isVertexAI':!![]});}else{const _0x4e8f0b=await this[_0x336da4(0x5e6)]({'operationName':_0x368ded[_0x336da4(0x558)],'config':_0x554095});return _0x368ded[_0x336da4(0x20e)]({'apiResponse':_0x4e8f0b,'_isVertexAI':![]});}}async[a6_0x51c1ef(0x482)](_0x12e4a8){const _0x42d276=a6_0x51c1ef,_0x5ddc90=_0x12e4a8['operation'],_0x240960=_0x12e4a8['config'];if(_0x5ddc90[_0x42d276(0x558)]===undefined||_0x5ddc90[_0x42d276(0x558)]==='')throw new Error(_0x42d276(0x43d));if(this[_0x42d276(0x61e)]['isVertexAI']()){const _0x29c709=_0x5ddc90['name'][_0x42d276(0x322)](_0x42d276(0x434))[0x0];let _0x243b24=undefined;_0x240960&&_0x42d276(0x328)in _0x240960&&(_0x243b24=_0x240960[_0x42d276(0x328)]);const _0x20af0e=await this[_0x42d276(0x3b4)]({'operationName':_0x5ddc90[_0x42d276(0x558)],'resourceName':_0x29c709,'config':{'httpOptions':_0x243b24}});return _0x5ddc90['_fromAPIResponse']({'apiResponse':_0x20af0e,'_isVertexAI':!![]});}else{const _0x34fb3c=await this[_0x42d276(0x5e6)]({'operationName':_0x5ddc90[_0x42d276(0x558)],'config':_0x240960});return _0x5ddc90['_fromAPIResponse']({'apiResponse':_0x34fb3c,'_isVertexAI':![]});}}async['getVideosOperationInternal'](_0x2712c2){const _0x194b39=a6_0x51c1ef;var _0x1bdfd6,_0x1bbf9c,_0x4fdc57,_0x1a5a12;let _0x460bf4,_0x2bb972='',_0x114445={};if(this[_0x194b39(0x61e)][_0x194b39(0x291)]()){const _0x57b22f=getOperationParametersToVertex(_0x2712c2);return _0x2bb972=formatMap(_0x194b39(0x279),_0x57b22f[_0x194b39(0x2c1)]),_0x114445=_0x57b22f[_0x194b39(0x4cd)],delete _0x57b22f[_0x194b39(0x2c1)],delete _0x57b22f[_0x194b39(0x4cd)],_0x460bf4=this[_0x194b39(0x61e)][_0x194b39(0x560)]({'path':_0x2bb972,'queryParams':_0x114445,'body':JSON[_0x194b39(0x183)](_0x57b22f),'httpMethod':_0x194b39(0x1fa),'httpOptions':(_0x1bdfd6=_0x2712c2[_0x194b39(0x66c)])===null||_0x1bdfd6===void 0x0?void 0x0:_0x1bdfd6[_0x194b39(0x328)],'abortSignal':(_0x1bbf9c=_0x2712c2[_0x194b39(0x66c)])===null||_0x1bbf9c===void 0x0?void 0x0:_0x1bbf9c['abortSignal']})[_0x194b39(0x486)](_0x991cb9=>{return _0x991cb9['json']();}),_0x460bf4;}else{const _0x233a25=getOperationParametersToMldev(_0x2712c2);return _0x2bb972=formatMap(_0x194b39(0x279),_0x233a25[_0x194b39(0x2c1)]),_0x114445=_0x233a25['_query'],delete _0x233a25[_0x194b39(0x2c1)],delete _0x233a25[_0x194b39(0x4cd)],_0x460bf4=this[_0x194b39(0x61e)][_0x194b39(0x560)]({'path':_0x2bb972,'queryParams':_0x114445,'body':JSON[_0x194b39(0x183)](_0x233a25),'httpMethod':'GET','httpOptions':(_0x4fdc57=_0x2712c2[_0x194b39(0x66c)])===null||_0x4fdc57===void 0x0?void 0x0:_0x4fdc57['httpOptions'],'abortSignal':(_0x1a5a12=_0x2712c2[_0x194b39(0x66c)])===null||_0x1a5a12===void 0x0?void 0x0:_0x1a5a12['abortSignal']})[_0x194b39(0x486)](_0x50e850=>{const _0x16e62b=_0x194b39;return _0x50e850[_0x16e62b(0x31b)]();}),_0x460bf4;}}async[a6_0x51c1ef(0x3b4)](_0x4b5e31){const _0x5479bb=a6_0x51c1ef;var _0x2e9929,_0x3f76ce;let _0x37cd72,_0x31f501='',_0x1b03de={};if(this[_0x5479bb(0x61e)][_0x5479bb(0x291)]()){const _0x3eea78=fetchPredictOperationParametersToVertex(_0x4b5e31);return _0x31f501=formatMap(_0x5479bb(0x3cd),_0x3eea78[_0x5479bb(0x2c1)]),_0x1b03de=_0x3eea78[_0x5479bb(0x4cd)],delete _0x3eea78['_url'],delete _0x3eea78[_0x5479bb(0x4cd)],_0x37cd72=this[_0x5479bb(0x61e)][_0x5479bb(0x560)]({'path':_0x31f501,'queryParams':_0x1b03de,'body':JSON['stringify'](_0x3eea78),'httpMethod':_0x5479bb(0x1e6),'httpOptions':(_0x2e9929=_0x4b5e31[_0x5479bb(0x66c)])===null||_0x2e9929===void 0x0?void 0x0:_0x2e9929[_0x5479bb(0x328)],'abortSignal':(_0x3f76ce=_0x4b5e31[_0x5479bb(0x66c)])===null||_0x3f76ce===void 0x0?void 0x0:_0x3f76ce['abortSignal']})[_0x5479bb(0x486)](_0x2b73ed=>{return _0x2b73ed['json']();}),_0x37cd72;}else throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.');}}/**
127
+ * @license
128
+ * Copyright 2025 Google LLC
129
+ * SPDX-License-Identifier: Apache-2.0
130
+ */
131
+ function blobToMldev(_0x6932b5){const _0xbee3d5=a6_0x51c1ef,_0x1d4a48={},_0x573195=getValueByPath(_0x6932b5,[_0xbee3d5(0x18b)]);_0x573195!=null&&setValueByPath(_0x1d4a48,[_0xbee3d5(0x18b)],_0x573195);if(getValueByPath(_0x6932b5,['displayName'])!==undefined)throw new Error(_0xbee3d5(0x28e));const _0x235afa=getValueByPath(_0x6932b5,[_0xbee3d5(0x1ac)]);return _0x235afa!=null&&setValueByPath(_0x1d4a48,[_0xbee3d5(0x1ac)],_0x235afa),_0x1d4a48;}function contentToMldev(_0xb0624a){const _0x45eadb=a6_0x51c1ef,_0x56bfcb={},_0x40cf7c=getValueByPath(_0xb0624a,[_0x45eadb(0x19f)]);if(_0x40cf7c!=null){let _0xf027a7=_0x40cf7c;Array['isArray'](_0xf027a7)&&(_0xf027a7=_0xf027a7['map'](_0x13538b=>{return partToMldev(_0x13538b);})),setValueByPath(_0x56bfcb,[_0x45eadb(0x19f)],_0xf027a7);}const _0x2ab241=getValueByPath(_0xb0624a,[_0x45eadb(0x407)]);return _0x2ab241!=null&&setValueByPath(_0x56bfcb,[_0x45eadb(0x407)],_0x2ab241),_0x56bfcb;}function createAuthTokenConfigToMldev(_0x589129,_0x39ff94,_0x382631){const _0x304eb4=a6_0x51c1ef,_0x339e56={},_0x468d1b=getValueByPath(_0x39ff94,['expireTime']);_0x382631!==undefined&&_0x468d1b!=null&&setValueByPath(_0x382631,[_0x304eb4(0x5fe)],_0x468d1b);const _0x150473=getValueByPath(_0x39ff94,['newSessionExpireTime']);_0x382631!==undefined&&_0x150473!=null&&setValueByPath(_0x382631,['newSessionExpireTime'],_0x150473);const _0x2a070f=getValueByPath(_0x39ff94,[_0x304eb4(0x35e)]);_0x382631!==undefined&&_0x2a070f!=null&&setValueByPath(_0x382631,[_0x304eb4(0x35e)],_0x2a070f);const _0x17cf52=getValueByPath(_0x39ff94,['liveConnectConstraints']);_0x382631!==undefined&&_0x17cf52!=null&&setValueByPath(_0x382631,['bidiGenerateContentSetup'],liveConnectConstraintsToMldev(_0x589129,_0x17cf52));const _0x243b92=getValueByPath(_0x39ff94,['lockAdditionalFields']);return _0x382631!==undefined&&_0x243b92!=null&&setValueByPath(_0x382631,[_0x304eb4(0x385)],_0x243b92),_0x339e56;}function createAuthTokenParametersToMldev(_0x346cdc,_0x41df47){const _0x32dcda=a6_0x51c1ef,_0x228684={},_0x4992de=getValueByPath(_0x41df47,[_0x32dcda(0x66c)]);return _0x4992de!=null&&setValueByPath(_0x228684,['config'],createAuthTokenConfigToMldev(_0x346cdc,_0x4992de,_0x228684)),_0x228684;}function fileDataToMldev(_0x30b380){const _0x1c05d5=a6_0x51c1ef,_0x39c031={};if(getValueByPath(_0x30b380,['displayName'])!==undefined)throw new Error(_0x1c05d5(0x28e));const _0x21eb1a=getValueByPath(_0x30b380,[_0x1c05d5(0x316)]);_0x21eb1a!=null&&setValueByPath(_0x39c031,[_0x1c05d5(0x316)],_0x21eb1a);const _0x4329e8=getValueByPath(_0x30b380,['mimeType']);return _0x4329e8!=null&&setValueByPath(_0x39c031,[_0x1c05d5(0x1ac)],_0x4329e8),_0x39c031;}function functionCallToMldev(_0x164124){const _0x455de8=a6_0x51c1ef,_0x193897={},_0x4119ee=getValueByPath(_0x164124,['id']);_0x4119ee!=null&&setValueByPath(_0x193897,['id'],_0x4119ee);const _0x1c0fad=getValueByPath(_0x164124,[_0x455de8(0x5cb)]);_0x1c0fad!=null&&setValueByPath(_0x193897,[_0x455de8(0x5cb)],_0x1c0fad);const _0x21661c=getValueByPath(_0x164124,[_0x455de8(0x558)]);_0x21661c!=null&&setValueByPath(_0x193897,[_0x455de8(0x558)],_0x21661c);if(getValueByPath(_0x164124,['partialArgs'])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x164124,['willContinue'])!==undefined)throw new Error(_0x455de8(0x3fd));return _0x193897;}function googleMapsToMldev(_0x32b778){const _0x2731e0=a6_0x51c1ef,_0x8e7aac={};if(getValueByPath(_0x32b778,['authConfig'])!==undefined)throw new Error(_0x2731e0(0x1ba));const _0x39a75d=getValueByPath(_0x32b778,[_0x2731e0(0x3ee)]);return _0x39a75d!=null&&setValueByPath(_0x8e7aac,[_0x2731e0(0x3ee)],_0x39a75d),_0x8e7aac;}function googleSearchToMldev(_0x52e0ef){const _0x415f21=a6_0x51c1ef,_0xcf8bf={};if(getValueByPath(_0x52e0ef,['excludeDomains'])!==undefined)throw new Error(_0x415f21(0x3b6));if(getValueByPath(_0x52e0ef,[_0x415f21(0x16f)])!==undefined)throw new Error(_0x415f21(0x383));const _0x13843d=getValueByPath(_0x52e0ef,[_0x415f21(0x3fb)]);return _0x13843d!=null&&setValueByPath(_0xcf8bf,[_0x415f21(0x3fb)],_0x13843d),_0xcf8bf;}function liveConnectConfigToMldev(_0x3f15fa,_0x3cad52){const _0x1bb74b=a6_0x51c1ef,_0x5ce2bf={},_0x147f31=getValueByPath(_0x3f15fa,[_0x1bb74b(0x177)]);_0x3cad52!==undefined&&_0x147f31!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177)],_0x147f31);const _0x4ec86d=getValueByPath(_0x3f15fa,['responseModalities']);_0x3cad52!==undefined&&_0x4ec86d!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),_0x1bb74b(0x4a3)],_0x4ec86d);const _0x464e12=getValueByPath(_0x3f15fa,[_0x1bb74b(0x689)]);_0x3cad52!==undefined&&_0x464e12!=null&&setValueByPath(_0x3cad52,['setup',_0x1bb74b(0x177),'temperature'],_0x464e12);const _0x33b9eb=getValueByPath(_0x3f15fa,[_0x1bb74b(0x465)]);_0x3cad52!==undefined&&_0x33b9eb!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),_0x1bb74b(0x465)],_0x33b9eb);const _0x2e8323=getValueByPath(_0x3f15fa,[_0x1bb74b(0x3ca)]);_0x3cad52!==undefined&&_0x2e8323!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),'generationConfig',_0x1bb74b(0x3ca)],_0x2e8323);const _0x1fe667=getValueByPath(_0x3f15fa,['maxOutputTokens']);_0x3cad52!==undefined&&_0x1fe667!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),'maxOutputTokens'],_0x1fe667);const _0x431a0c=getValueByPath(_0x3f15fa,[_0x1bb74b(0x615)]);_0x3cad52!==undefined&&_0x431a0c!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),_0x1bb74b(0x615)],_0x431a0c);const _0x3b83bd=getValueByPath(_0x3f15fa,[_0x1bb74b(0x245)]);_0x3cad52!==undefined&&_0x3b83bd!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),_0x1bb74b(0x245)],_0x3b83bd);const _0x2fe148=getValueByPath(_0x3f15fa,['speechConfig']);_0x3cad52!==undefined&&_0x2fe148!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),'generationConfig',_0x1bb74b(0x241)],tLiveSpeechConfig(_0x2fe148));const _0x2376e0=getValueByPath(_0x3f15fa,[_0x1bb74b(0x497)]);_0x3cad52!==undefined&&_0x2376e0!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),_0x1bb74b(0x497)],_0x2376e0);const _0x1ea704=getValueByPath(_0x3f15fa,['enableAffectiveDialog']);_0x3cad52!==undefined&&_0x1ea704!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x177),_0x1bb74b(0x21b)],_0x1ea704);const _0x2415ea=getValueByPath(_0x3f15fa,[_0x1bb74b(0x22d)]);_0x3cad52!==undefined&&_0x2415ea!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x22d)],contentToMldev(tContent(_0x2415ea)));const _0x3af7e3=getValueByPath(_0x3f15fa,[_0x1bb74b(0x269)]);if(_0x3cad52!==undefined&&_0x3af7e3!=null){let _0x52d347=tTools(_0x3af7e3);Array[_0x1bb74b(0x49d)](_0x52d347)&&(_0x52d347=_0x52d347['map'](_0x4eb3f5=>{return toolToMldev(tTool(_0x4eb3f5));})),setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x269)],_0x52d347);}const _0xa4afda=getValueByPath(_0x3f15fa,[_0x1bb74b(0x3d5)]);_0x3cad52!==undefined&&_0xa4afda!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x3d5)],sessionResumptionConfigToMldev(_0xa4afda));const _0x4d3253=getValueByPath(_0x3f15fa,['inputAudioTranscription']);_0x3cad52!==undefined&&_0x4d3253!=null&&setValueByPath(_0x3cad52,['setup',_0x1bb74b(0x1d5)],_0x4d3253);const _0x2e2e8d=getValueByPath(_0x3f15fa,[_0x1bb74b(0x5a5)]);_0x3cad52!==undefined&&_0x2e2e8d!=null&&setValueByPath(_0x3cad52,[_0x1bb74b(0x4ed),_0x1bb74b(0x5a5)],_0x2e2e8d);const _0x196361=getValueByPath(_0x3f15fa,[_0x1bb74b(0x259)]);_0x3cad52!==undefined&&_0x196361!=null&&setValueByPath(_0x3cad52,['setup','realtimeInputConfig'],_0x196361);const _0x35737e=getValueByPath(_0x3f15fa,[_0x1bb74b(0x424)]);_0x3cad52!==undefined&&_0x35737e!=null&&setValueByPath(_0x3cad52,['setup',_0x1bb74b(0x424)],_0x35737e);const _0x18027d=getValueByPath(_0x3f15fa,[_0x1bb74b(0x36b)]);_0x3cad52!==undefined&&_0x18027d!=null&&setValueByPath(_0x3cad52,['setup',_0x1bb74b(0x36b)],_0x18027d);if(getValueByPath(_0x3f15fa,['explicitVadSignal'])!==undefined)throw new Error(_0x1bb74b(0x4d0));return _0x5ce2bf;}function liveConnectConstraintsToMldev(_0x1cd759,_0x49639e){const _0x525648=a6_0x51c1ef,_0x18ecf7={},_0x439312=getValueByPath(_0x49639e,['model']);_0x439312!=null&&setValueByPath(_0x18ecf7,[_0x525648(0x4ed),_0x525648(0x418)],tModel(_0x1cd759,_0x439312));const _0x46f213=getValueByPath(_0x49639e,['config']);return _0x46f213!=null&&setValueByPath(_0x18ecf7,[_0x525648(0x66c)],liveConnectConfigToMldev(_0x46f213,_0x18ecf7)),_0x18ecf7;}function partToMldev(_0x589d10){const _0x266568=a6_0x51c1ef,_0x37e56d={},_0xc8182b=getValueByPath(_0x589d10,[_0x266568(0x615)]);_0xc8182b!=null&&setValueByPath(_0x37e56d,['mediaResolution'],_0xc8182b);const _0x18df04=getValueByPath(_0x589d10,['codeExecutionResult']);_0x18df04!=null&&setValueByPath(_0x37e56d,['codeExecutionResult'],_0x18df04);const _0x34fc44=getValueByPath(_0x589d10,[_0x266568(0x5df)]);_0x34fc44!=null&&setValueByPath(_0x37e56d,[_0x266568(0x5df)],_0x34fc44);const _0x3431c4=getValueByPath(_0x589d10,[_0x266568(0x24e)]);_0x3431c4!=null&&setValueByPath(_0x37e56d,[_0x266568(0x24e)],fileDataToMldev(_0x3431c4));const _0x213ad5=getValueByPath(_0x589d10,[_0x266568(0x2cc)]);_0x213ad5!=null&&setValueByPath(_0x37e56d,['functionCall'],functionCallToMldev(_0x213ad5));const _0x2c2aec=getValueByPath(_0x589d10,[_0x266568(0x2fa)]);_0x2c2aec!=null&&setValueByPath(_0x37e56d,[_0x266568(0x2fa)],_0x2c2aec);const _0x221dcc=getValueByPath(_0x589d10,[_0x266568(0x4b0)]);_0x221dcc!=null&&setValueByPath(_0x37e56d,[_0x266568(0x4b0)],blobToMldev(_0x221dcc));const _0x3b21b9=getValueByPath(_0x589d10,[_0x266568(0x278)]);_0x3b21b9!=null&&setValueByPath(_0x37e56d,['text'],_0x3b21b9);const _0x5e7eaf=getValueByPath(_0x589d10,[_0x266568(0x29e)]);_0x5e7eaf!=null&&setValueByPath(_0x37e56d,[_0x266568(0x29e)],_0x5e7eaf);const _0xac2f12=getValueByPath(_0x589d10,['thoughtSignature']);_0xac2f12!=null&&setValueByPath(_0x37e56d,[_0x266568(0x4f0)],_0xac2f12);const _0xd1f91=getValueByPath(_0x589d10,[_0x266568(0x2e8)]);return _0xd1f91!=null&&setValueByPath(_0x37e56d,['videoMetadata'],_0xd1f91),_0x37e56d;}function sessionResumptionConfigToMldev(_0x5ed3e0){const _0x1289e6=a6_0x51c1ef,_0x333dce={},_0x40268b=getValueByPath(_0x5ed3e0,[_0x1289e6(0x3ae)]);_0x40268b!=null&&setValueByPath(_0x333dce,[_0x1289e6(0x3ae)],_0x40268b);if(getValueByPath(_0x5ed3e0,[_0x1289e6(0x1e5)])!==undefined)throw new Error(_0x1289e6(0x17c));return _0x333dce;}function toolToMldev(_0x362538){const _0x486ff8=a6_0x51c1ef,_0x3d70f4={};if(getValueByPath(_0x362538,['retrieval'])!==undefined)throw new Error(_0x486ff8(0x390));const _0x13c312=getValueByPath(_0x362538,[_0x486ff8(0x41e)]);_0x13c312!=null&&setValueByPath(_0x3d70f4,[_0x486ff8(0x41e)],_0x13c312);const _0x2dc399=getValueByPath(_0x362538,['fileSearch']);_0x2dc399!=null&&setValueByPath(_0x3d70f4,['fileSearch'],_0x2dc399);const _0x4301ad=getValueByPath(_0x362538,[_0x486ff8(0x230)]);_0x4301ad!=null&&setValueByPath(_0x3d70f4,[_0x486ff8(0x230)],_0x4301ad);if(getValueByPath(_0x362538,[_0x486ff8(0x49c)])!==undefined)throw new Error(_0x486ff8(0x42f));const _0x710f61=getValueByPath(_0x362538,[_0x486ff8(0x63b)]);if(_0x710f61!=null){let _0x4b30c6=_0x710f61;Array[_0x486ff8(0x49d)](_0x4b30c6)&&(_0x4b30c6=_0x4b30c6[_0x486ff8(0x68f)](_0x22d655=>{return _0x22d655;})),setValueByPath(_0x3d70f4,[_0x486ff8(0x63b)],_0x4b30c6);}const _0x137667=getValueByPath(_0x362538,[_0x486ff8(0x38a)]);_0x137667!=null&&setValueByPath(_0x3d70f4,[_0x486ff8(0x38a)],googleMapsToMldev(_0x137667));const _0x45be72=getValueByPath(_0x362538,[_0x486ff8(0x618)]);_0x45be72!=null&&setValueByPath(_0x3d70f4,[_0x486ff8(0x618)],googleSearchToMldev(_0x45be72));const _0x3b3b4f=getValueByPath(_0x362538,['googleSearchRetrieval']);_0x3b3b4f!=null&&setValueByPath(_0x3d70f4,[_0x486ff8(0x698)],_0x3b3b4f);const _0x2f6799=getValueByPath(_0x362538,[_0x486ff8(0x4c9)]);return _0x2f6799!=null&&setValueByPath(_0x3d70f4,[_0x486ff8(0x4c9)],_0x2f6799),_0x3d70f4;}/**
132
+ * @license
133
+ * Copyright 2025 Google LLC
134
+ * SPDX-License-Identifier: Apache-2.0
135
+ */
136
+ function getFieldMasks(_0x5dadda){const _0x14ad9e=a6_0x51c1ef,_0x3613b9=[];for(const _0x2be294 in _0x5dadda){if(Object['prototype'][_0x14ad9e(0x472)][_0x14ad9e(0x17f)](_0x5dadda,_0x2be294)){const _0x1d0ee8=_0x5dadda[_0x2be294];if(typeof _0x1d0ee8===_0x14ad9e(0x25e)&&_0x1d0ee8!=null&&Object['keys'](_0x1d0ee8)[_0x14ad9e(0x3b7)]>0x0){const _0x216549=Object[_0x14ad9e(0x562)](_0x1d0ee8)['map'](_0x1d7a5f=>_0x2be294+'.'+_0x1d7a5f);_0x3613b9['push'](..._0x216549);}else _0x3613b9['push'](_0x2be294);}}return _0x3613b9[_0x14ad9e(0x4c1)](',');}function convertBidiSetupToTokenSetup(_0x317f04,_0x2fbae6){const _0xc40d4f=a6_0x51c1ef;let _0x324987=null;const _0x11d18e=_0x317f04['bidiGenerateContentSetup'];if(typeof _0x11d18e===_0xc40d4f(0x25e)&&_0x11d18e!==null&&_0xc40d4f(0x4ed)in _0x11d18e){const _0x5ed5f8=_0x11d18e[_0xc40d4f(0x4ed)];typeof _0x5ed5f8===_0xc40d4f(0x25e)&&_0x5ed5f8!==null?(_0x317f04['bidiGenerateContentSetup']=_0x5ed5f8,_0x324987=_0x5ed5f8):delete _0x317f04['bidiGenerateContentSetup'];}else _0x11d18e!==undefined&&delete _0x317f04['bidiGenerateContentSetup'];const _0x41e8f8=_0x317f04[_0xc40d4f(0x385)];if(_0x324987){const _0x411e2b=getFieldMasks(_0x324987);if(Array[_0xc40d4f(0x49d)](_0x2fbae6===null||_0x2fbae6===void 0x0?void 0x0:_0x2fbae6[_0xc40d4f(0x405)])&&(_0x2fbae6===null||_0x2fbae6===void 0x0?void 0x0:_0x2fbae6['lockAdditionalFields'][_0xc40d4f(0x3b7)])===0x0)_0x411e2b?_0x317f04[_0xc40d4f(0x385)]=_0x411e2b:delete _0x317f04[_0xc40d4f(0x385)];else{if((_0x2fbae6===null||_0x2fbae6===void 0x0?void 0x0:_0x2fbae6[_0xc40d4f(0x405)])&&_0x2fbae6['lockAdditionalFields']['length']>0x0&&_0x41e8f8!==null&&Array[_0xc40d4f(0x49d)](_0x41e8f8)&&_0x41e8f8['length']>0x0){const _0x319de7=['temperature','topK',_0xc40d4f(0x465),_0xc40d4f(0x378),'responseModalities','seed',_0xc40d4f(0x241)];let _0x1f85be=[];_0x41e8f8[_0xc40d4f(0x3b7)]>0x0&&(_0x1f85be=_0x41e8f8['map'](_0x29f999=>{const _0x5229f7=_0xc40d4f;if(_0x319de7[_0x5229f7(0x26d)](_0x29f999))return _0x5229f7(0x4f2)+_0x29f999;return _0x29f999;}));const _0x4f7f21=[];_0x411e2b&&_0x4f7f21[_0xc40d4f(0x656)](_0x411e2b),_0x1f85be[_0xc40d4f(0x3b7)]>0x0&&_0x4f7f21[_0xc40d4f(0x656)](..._0x1f85be),_0x4f7f21[_0xc40d4f(0x3b7)]>0x0?_0x317f04[_0xc40d4f(0x385)]=_0x4f7f21['join'](','):delete _0x317f04[_0xc40d4f(0x385)];}else delete _0x317f04[_0xc40d4f(0x385)];}}else _0x41e8f8!==null&&Array[_0xc40d4f(0x49d)](_0x41e8f8)&&_0x41e8f8[_0xc40d4f(0x3b7)]>0x0?_0x317f04['fieldMask']=_0x41e8f8[_0xc40d4f(0x4c1)](','):delete _0x317f04[_0xc40d4f(0x385)];return _0x317f04;}class Tokens extends BaseModule{constructor(_0x5248ba){const _0x250448=a6_0x51c1ef;super(),this[_0x250448(0x61e)]=_0x5248ba;}async[a6_0x51c1ef(0x3dd)](_0x3a19f6){const _0x2d90f8=a6_0x51c1ef;var _0x531c4f,_0x272e67;let _0x16ea7f,_0x1c72b2='',_0x2460fa={};if(this[_0x2d90f8(0x61e)][_0x2d90f8(0x291)]())throw new Error(_0x2d90f8(0x35b));else{const _0x3c9589=createAuthTokenParametersToMldev(this['apiClient'],_0x3a19f6);_0x1c72b2=formatMap('auth_tokens',_0x3c9589[_0x2d90f8(0x2c1)]),_0x2460fa=_0x3c9589['_query'],delete _0x3c9589[_0x2d90f8(0x66c)],delete _0x3c9589[_0x2d90f8(0x2c1)],delete _0x3c9589[_0x2d90f8(0x4cd)];const _0x2ea051=convertBidiSetupToTokenSetup(_0x3c9589,_0x3a19f6[_0x2d90f8(0x66c)]);return _0x16ea7f=this['apiClient'][_0x2d90f8(0x560)]({'path':_0x1c72b2,'queryParams':_0x2460fa,'body':JSON['stringify'](_0x2ea051),'httpMethod':_0x2d90f8(0x1e6),'httpOptions':(_0x531c4f=_0x3a19f6[_0x2d90f8(0x66c)])===null||_0x531c4f===void 0x0?void 0x0:_0x531c4f[_0x2d90f8(0x328)],'abortSignal':(_0x272e67=_0x3a19f6[_0x2d90f8(0x66c)])===null||_0x272e67===void 0x0?void 0x0:_0x272e67[_0x2d90f8(0x643)]})[_0x2d90f8(0x486)](_0x9269a6=>{const _0x107fa3=_0x2d90f8;return _0x9269a6[_0x107fa3(0x31b)]();}),_0x16ea7f[_0x2d90f8(0x486)](_0x40841c=>{return _0x40841c;});}}}/**
137
+ * @license
138
+ * Copyright 2025 Google LLC
139
+ * SPDX-License-Identifier: Apache-2.0
140
+ */
141
+ function deleteDocumentConfigToMldev(_0x1fc5c5,_0x34164d){const _0x2f09b0=a6_0x51c1ef,_0x1bff7c={},_0x431b74=getValueByPath(_0x1fc5c5,[_0x2f09b0(0x5fa)]);return _0x34164d!==undefined&&_0x431b74!=null&&setValueByPath(_0x34164d,['_query',_0x2f09b0(0x5fa)],_0x431b74),_0x1bff7c;}function deleteDocumentParametersToMldev(_0x553195){const _0x361511=a6_0x51c1ef,_0x126566={},_0x2bcb22=getValueByPath(_0x553195,[_0x361511(0x558)]);_0x2bcb22!=null&&setValueByPath(_0x126566,['_url',_0x361511(0x558)],_0x2bcb22);const _0x4b0043=getValueByPath(_0x553195,[_0x361511(0x66c)]);return _0x4b0043!=null&&deleteDocumentConfigToMldev(_0x4b0043,_0x126566),_0x126566;}function getDocumentParametersToMldev(_0xebc7c){const _0x24768c=a6_0x51c1ef,_0x38f480={},_0x339ced=getValueByPath(_0xebc7c,['name']);return _0x339ced!=null&&setValueByPath(_0x38f480,[_0x24768c(0x2c1),_0x24768c(0x558)],_0x339ced),_0x38f480;}function listDocumentsConfigToMldev(_0x41bca0,_0x996cd3){const _0x3b3664=a6_0x51c1ef,_0x20d9a1={},_0x1e59a8=getValueByPath(_0x41bca0,[_0x3b3664(0x400)]);_0x996cd3!==undefined&&_0x1e59a8!=null&&setValueByPath(_0x996cd3,[_0x3b3664(0x4cd),_0x3b3664(0x400)],_0x1e59a8);const _0x1d9df2=getValueByPath(_0x41bca0,[_0x3b3664(0x2dd)]);return _0x996cd3!==undefined&&_0x1d9df2!=null&&setValueByPath(_0x996cd3,[_0x3b3664(0x4cd),_0x3b3664(0x2dd)],_0x1d9df2),_0x20d9a1;}function listDocumentsParametersToMldev(_0x4c6329){const _0x261e53=a6_0x51c1ef,_0x450b73={},_0x2056e3=getValueByPath(_0x4c6329,[_0x261e53(0x509)]);_0x2056e3!=null&&setValueByPath(_0x450b73,[_0x261e53(0x2c1),_0x261e53(0x509)],_0x2056e3);const _0x9ba09b=getValueByPath(_0x4c6329,[_0x261e53(0x66c)]);return _0x9ba09b!=null&&listDocumentsConfigToMldev(_0x9ba09b,_0x450b73),_0x450b73;}function listDocumentsResponseFromMldev(_0x276ce2){const _0x30c1df=a6_0x51c1ef,_0x211e9a={},_0x595086=getValueByPath(_0x276ce2,[_0x30c1df(0x344)]);_0x595086!=null&&setValueByPath(_0x211e9a,[_0x30c1df(0x344)],_0x595086);const _0x3458e3=getValueByPath(_0x276ce2,['nextPageToken']);_0x3458e3!=null&&setValueByPath(_0x211e9a,[_0x30c1df(0x17a)],_0x3458e3);const _0x13a8bd=getValueByPath(_0x276ce2,['documents']);if(_0x13a8bd!=null){let _0x3d42ae=_0x13a8bd;Array[_0x30c1df(0x49d)](_0x3d42ae)&&(_0x3d42ae=_0x3d42ae['map'](_0x5a3471=>{return _0x5a3471;})),setValueByPath(_0x211e9a,[_0x30c1df(0x363)],_0x3d42ae);}return _0x211e9a;}/**
142
+ * @license
143
+ * Copyright 2025 Google LLC
144
+ * SPDX-License-Identifier: Apache-2.0
145
+ */
146
+ class Documents extends BaseModule{constructor(_0x7b205){const _0x50c170=a6_0x51c1ef;super(),this['apiClient']=_0x7b205,this[_0x50c170(0x644)]=async _0x5beccf=>{const _0x272f58=_0x50c170;return new Pager(PagedItem[_0x272f58(0x178)],_0x4a4a08=>this[_0x272f58(0x542)]({'parent':_0x5beccf[_0x272f58(0x509)],'config':_0x4a4a08['config']}),await this[_0x272f58(0x542)](_0x5beccf),_0x5beccf);};}async[a6_0x51c1ef(0x482)](_0x4bcccd){const _0x1793eb=a6_0x51c1ef;var _0x55238f,_0x5bb8b5;let _0x21588e,_0x1f0347='',_0x1d00ed={};if(this[_0x1793eb(0x61e)][_0x1793eb(0x291)]())throw new Error(_0x1793eb(0x4d2));else{const _0x88b24d=getDocumentParametersToMldev(_0x4bcccd);return _0x1f0347=formatMap(_0x1793eb(0x3f1),_0x88b24d[_0x1793eb(0x2c1)]),_0x1d00ed=_0x88b24d[_0x1793eb(0x4cd)],delete _0x88b24d[_0x1793eb(0x2c1)],delete _0x88b24d[_0x1793eb(0x4cd)],_0x21588e=this[_0x1793eb(0x61e)][_0x1793eb(0x560)]({'path':_0x1f0347,'queryParams':_0x1d00ed,'body':JSON['stringify'](_0x88b24d),'httpMethod':_0x1793eb(0x1fa),'httpOptions':(_0x55238f=_0x4bcccd[_0x1793eb(0x66c)])===null||_0x55238f===void 0x0?void 0x0:_0x55238f[_0x1793eb(0x328)],'abortSignal':(_0x5bb8b5=_0x4bcccd[_0x1793eb(0x66c)])===null||_0x5bb8b5===void 0x0?void 0x0:_0x5bb8b5[_0x1793eb(0x643)]})[_0x1793eb(0x486)](_0x429437=>{const _0x405136=_0x1793eb;return _0x429437[_0x405136(0x31b)]();}),_0x21588e[_0x1793eb(0x486)](_0x1984ae=>{return _0x1984ae;});}}async['delete'](_0x4f2db2){const _0x2f48c3=a6_0x51c1ef;var _0x19f87f,_0x325a48;let _0x2c3749='',_0x27a716={};if(this[_0x2f48c3(0x61e)]['isVertexAI']())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0xb9d143=deleteDocumentParametersToMldev(_0x4f2db2);_0x2c3749=formatMap(_0x2f48c3(0x3f1),_0xb9d143[_0x2f48c3(0x2c1)]),_0x27a716=_0xb9d143[_0x2f48c3(0x4cd)],delete _0xb9d143[_0x2f48c3(0x2c1)],delete _0xb9d143[_0x2f48c3(0x4cd)],await this['apiClient']['request']({'path':_0x2c3749,'queryParams':_0x27a716,'body':JSON[_0x2f48c3(0x183)](_0xb9d143),'httpMethod':_0x2f48c3(0x267),'httpOptions':(_0x19f87f=_0x4f2db2[_0x2f48c3(0x66c)])===null||_0x19f87f===void 0x0?void 0x0:_0x19f87f[_0x2f48c3(0x328)],'abortSignal':(_0x325a48=_0x4f2db2['config'])===null||_0x325a48===void 0x0?void 0x0:_0x325a48[_0x2f48c3(0x643)]});}}async['listInternal'](_0x531292){const _0x397ab9=a6_0x51c1ef;var _0x24e5ed,_0x52626d;let _0xf1c73e,_0x326c0b='',_0x450723={};if(this[_0x397ab9(0x61e)][_0x397ab9(0x291)]())throw new Error(_0x397ab9(0x4d2));else{const _0x4a63ea=listDocumentsParametersToMldev(_0x531292);return _0x326c0b=formatMap(_0x397ab9(0x324),_0x4a63ea['_url']),_0x450723=_0x4a63ea['_query'],delete _0x4a63ea[_0x397ab9(0x2c1)],delete _0x4a63ea[_0x397ab9(0x4cd)],_0xf1c73e=this['apiClient'][_0x397ab9(0x560)]({'path':_0x326c0b,'queryParams':_0x450723,'body':JSON['stringify'](_0x4a63ea),'httpMethod':'GET','httpOptions':(_0x24e5ed=_0x531292[_0x397ab9(0x66c)])===null||_0x24e5ed===void 0x0?void 0x0:_0x24e5ed[_0x397ab9(0x328)],'abortSignal':(_0x52626d=_0x531292[_0x397ab9(0x66c)])===null||_0x52626d===void 0x0?void 0x0:_0x52626d['abortSignal']})['then'](_0x1328d2=>{return _0x1328d2['json']();}),_0xf1c73e[_0x397ab9(0x486)](_0xd79cb7=>{const _0x1ade87=listDocumentsResponseFromMldev(_0xd79cb7),_0x2fdd0c=new ListDocumentsResponse();return Object['assign'](_0x2fdd0c,_0x1ade87),_0x2fdd0c;});}}}/**
147
+ * @license
148
+ * Copyright 2025 Google LLC
149
+ * SPDX-License-Identifier: Apache-2.0
150
+ */
151
+ class FileSearchStores extends BaseModule{constructor(_0x455e00,_0xfcc949=new Documents(_0x455e00)){const _0x508938=a6_0x51c1ef;super(),this[_0x508938(0x61e)]=_0x455e00,this[_0x508938(0x363)]=_0xfcc949,this[_0x508938(0x644)]=async(_0x1ac9bd={})=>{const _0x40ef22=_0x508938;return new Pager(PagedItem[_0x40ef22(0x226)],_0x3c43e8=>this[_0x40ef22(0x542)](_0x3c43e8),await this[_0x40ef22(0x542)](_0x1ac9bd),_0x1ac9bd);};}async[a6_0x51c1ef(0x402)](_0x5ae0ff){const _0x16ba26=a6_0x51c1ef;if(this['apiClient'][_0x16ba26(0x291)]())throw new Error(_0x16ba26(0x303));return this[_0x16ba26(0x61e)][_0x16ba26(0x66d)](_0x5ae0ff['fileSearchStoreName'],_0x5ae0ff[_0x16ba26(0x1c8)],_0x5ae0ff['config']);}async[a6_0x51c1ef(0x3dd)](_0x3deed2){const _0x1a13c8=a6_0x51c1ef;var _0x34739f,_0x1ba15f;let _0x5d6e6b,_0x1666af='',_0x46460d={};if(this[_0x1a13c8(0x61e)][_0x1a13c8(0x291)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x5a3195=createFileSearchStoreParametersToMldev(_0x3deed2);return _0x1666af=formatMap(_0x1a13c8(0x2f5),_0x5a3195[_0x1a13c8(0x2c1)]),_0x46460d=_0x5a3195[_0x1a13c8(0x4cd)],delete _0x5a3195[_0x1a13c8(0x2c1)],delete _0x5a3195[_0x1a13c8(0x4cd)],_0x5d6e6b=this[_0x1a13c8(0x61e)]['request']({'path':_0x1666af,'queryParams':_0x46460d,'body':JSON[_0x1a13c8(0x183)](_0x5a3195),'httpMethod':_0x1a13c8(0x1e6),'httpOptions':(_0x34739f=_0x3deed2['config'])===null||_0x34739f===void 0x0?void 0x0:_0x34739f['httpOptions'],'abortSignal':(_0x1ba15f=_0x3deed2[_0x1a13c8(0x66c)])===null||_0x1ba15f===void 0x0?void 0x0:_0x1ba15f[_0x1a13c8(0x643)]})[_0x1a13c8(0x486)](_0x1dbcd5=>{return _0x1dbcd5['json']();}),_0x5d6e6b[_0x1a13c8(0x486)](_0x29d1e5=>{return _0x29d1e5;});}}async[a6_0x51c1ef(0x482)](_0x5e38fa){const _0x30dbe3=a6_0x51c1ef;var _0x2f9371,_0x40eb51;let _0x155aed,_0x5edc7d='',_0x4b3a9b={};if(this['apiClient'][_0x30dbe3(0x291)]())throw new Error(_0x30dbe3(0x4d2));else{const _0x4113c3=getFileSearchStoreParametersToMldev(_0x5e38fa);return _0x5edc7d=formatMap('{name}',_0x4113c3[_0x30dbe3(0x2c1)]),_0x4b3a9b=_0x4113c3[_0x30dbe3(0x4cd)],delete _0x4113c3[_0x30dbe3(0x2c1)],delete _0x4113c3[_0x30dbe3(0x4cd)],_0x155aed=this[_0x30dbe3(0x61e)][_0x30dbe3(0x560)]({'path':_0x5edc7d,'queryParams':_0x4b3a9b,'body':JSON[_0x30dbe3(0x183)](_0x4113c3),'httpMethod':_0x30dbe3(0x1fa),'httpOptions':(_0x2f9371=_0x5e38fa['config'])===null||_0x2f9371===void 0x0?void 0x0:_0x2f9371[_0x30dbe3(0x328)],'abortSignal':(_0x40eb51=_0x5e38fa[_0x30dbe3(0x66c)])===null||_0x40eb51===void 0x0?void 0x0:_0x40eb51[_0x30dbe3(0x643)]})[_0x30dbe3(0x486)](_0x1798e2=>{const _0x46bd9b=_0x30dbe3;return _0x1798e2[_0x46bd9b(0x31b)]();}),_0x155aed[_0x30dbe3(0x486)](_0x7063af=>{return _0x7063af;});}}async[a6_0x51c1ef(0x422)](_0x146166){const _0x3d5431=a6_0x51c1ef;var _0x100871,_0x1ee8f4;let _0x31a15a='',_0x2319a8={};if(this[_0x3d5431(0x61e)][_0x3d5431(0x291)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x552783=deleteFileSearchStoreParametersToMldev(_0x146166);_0x31a15a=formatMap(_0x3d5431(0x3f1),_0x552783[_0x3d5431(0x2c1)]),_0x2319a8=_0x552783[_0x3d5431(0x4cd)],delete _0x552783['_url'],delete _0x552783['_query'],await this[_0x3d5431(0x61e)][_0x3d5431(0x560)]({'path':_0x31a15a,'queryParams':_0x2319a8,'body':JSON['stringify'](_0x552783),'httpMethod':_0x3d5431(0x267),'httpOptions':(_0x100871=_0x146166[_0x3d5431(0x66c)])===null||_0x100871===void 0x0?void 0x0:_0x100871[_0x3d5431(0x328)],'abortSignal':(_0x1ee8f4=_0x146166[_0x3d5431(0x66c)])===null||_0x1ee8f4===void 0x0?void 0x0:_0x1ee8f4[_0x3d5431(0x643)]});}}async[a6_0x51c1ef(0x542)](_0x13cdd4){const _0x373e79=a6_0x51c1ef;var _0x219ac5,_0x57a23c;let _0x261fda,_0x201d77='',_0x26a0b4={};if(this[_0x373e79(0x61e)][_0x373e79(0x291)]())throw new Error(_0x373e79(0x4d2));else{const _0x5a0738=listFileSearchStoresParametersToMldev(_0x13cdd4);return _0x201d77=formatMap(_0x373e79(0x2f5),_0x5a0738[_0x373e79(0x2c1)]),_0x26a0b4=_0x5a0738[_0x373e79(0x4cd)],delete _0x5a0738[_0x373e79(0x2c1)],delete _0x5a0738[_0x373e79(0x4cd)],_0x261fda=this[_0x373e79(0x61e)][_0x373e79(0x560)]({'path':_0x201d77,'queryParams':_0x26a0b4,'body':JSON[_0x373e79(0x183)](_0x5a0738),'httpMethod':'GET','httpOptions':(_0x219ac5=_0x13cdd4[_0x373e79(0x66c)])===null||_0x219ac5===void 0x0?void 0x0:_0x219ac5[_0x373e79(0x328)],'abortSignal':(_0x57a23c=_0x13cdd4[_0x373e79(0x66c)])===null||_0x57a23c===void 0x0?void 0x0:_0x57a23c[_0x373e79(0x643)]})[_0x373e79(0x486)](_0x5415c4=>{return _0x5415c4['json']();}),_0x261fda[_0x373e79(0x486)](_0x59bb1f=>{const _0x5ce175=listFileSearchStoresResponseFromMldev(_0x59bb1f),_0x3052d4=new ListFileSearchStoresResponse();return Object['assign'](_0x3052d4,_0x5ce175),_0x3052d4;});}}async[a6_0x51c1ef(0x1fe)](_0x51e0cf){const _0xe16131=a6_0x51c1ef;var _0x30c23c,_0x291a58;let _0x99ebf,_0x5d555d='',_0x1a3db4={};if(this['apiClient'][_0xe16131(0x291)]())throw new Error(_0xe16131(0x4d2));else{const _0x609d6e=uploadToFileSearchStoreParametersToMldev(_0x51e0cf);return _0x5d555d=formatMap('upload/v1beta/{file_search_store_name}:uploadToFileSearchStore',_0x609d6e['_url']),_0x1a3db4=_0x609d6e['_query'],delete _0x609d6e[_0xe16131(0x2c1)],delete _0x609d6e[_0xe16131(0x4cd)],_0x99ebf=this[_0xe16131(0x61e)]['request']({'path':_0x5d555d,'queryParams':_0x1a3db4,'body':JSON[_0xe16131(0x183)](_0x609d6e),'httpMethod':_0xe16131(0x1e6),'httpOptions':(_0x30c23c=_0x51e0cf[_0xe16131(0x66c)])===null||_0x30c23c===void 0x0?void 0x0:_0x30c23c['httpOptions'],'abortSignal':(_0x291a58=_0x51e0cf['config'])===null||_0x291a58===void 0x0?void 0x0:_0x291a58[_0xe16131(0x643)]})[_0xe16131(0x486)](_0x5aad6a=>{return _0x5aad6a['json']();}),_0x99ebf[_0xe16131(0x486)](_0x5d3175=>{const _0x1d4b89=_0xe16131,_0x44848f=uploadToFileSearchStoreResumableResponseFromMldev(_0x5d3175),_0x2e3499=new UploadToFileSearchStoreResumableResponse();return Object[_0x1d4b89(0x5a8)](_0x2e3499,_0x44848f),_0x2e3499;});}}async[a6_0x51c1ef(0x254)](_0x28d8d2){const _0x65532c=a6_0x51c1ef;var _0x34a93a,_0x4e9284;let _0x6d658f,_0x2a6651='',_0x130c78={};if(this[_0x65532c(0x61e)]['isVertexAI']())throw new Error(_0x65532c(0x4d2));else{const _0x15953b=importFileParametersToMldev(_0x28d8d2);return _0x2a6651=formatMap('{file_search_store_name}:importFile',_0x15953b[_0x65532c(0x2c1)]),_0x130c78=_0x15953b[_0x65532c(0x4cd)],delete _0x15953b[_0x65532c(0x2c1)],delete _0x15953b[_0x65532c(0x4cd)],_0x6d658f=this[_0x65532c(0x61e)]['request']({'path':_0x2a6651,'queryParams':_0x130c78,'body':JSON[_0x65532c(0x183)](_0x15953b),'httpMethod':_0x65532c(0x1e6),'httpOptions':(_0x34a93a=_0x28d8d2[_0x65532c(0x66c)])===null||_0x34a93a===void 0x0?void 0x0:_0x34a93a[_0x65532c(0x328)],'abortSignal':(_0x4e9284=_0x28d8d2[_0x65532c(0x66c)])===null||_0x4e9284===void 0x0?void 0x0:_0x4e9284[_0x65532c(0x643)]})['then'](_0x42a02e=>{const _0x2b3e95=_0x65532c;return _0x42a02e[_0x2b3e95(0x31b)]();}),_0x6d658f[_0x65532c(0x486)](_0x18fa9a=>{const _0x3467c7=_0x65532c,_0x516ee1=importFileOperationFromMldev(_0x18fa9a),_0x4f11bb=new ImportFileOperation();return Object[_0x3467c7(0x5a8)](_0x4f11bb,_0x516ee1),_0x4f11bb;});}}}/**
152
+ * @license
153
+ * Copyright 2025 Google LLC
154
+ * SPDX-License-Identifier: Apache-2.0
155
+ */
156
+ let uuid4Internal=function(){const _0x1c45ef=a6_0x51c1ef,{crypto:_0x1cca30}=globalThis;if(_0x1cca30===null||_0x1cca30===void 0x0?void 0x0:_0x1cca30['randomUUID'])return uuid4Internal=_0x1cca30[_0x1c45ef(0x158)]['bind'](_0x1cca30),_0x1cca30['randomUUID']();const _0x5657f9=new Uint8Array(0x1),_0x41b91c=_0x1cca30?()=>_0x1cca30[_0x1c45ef(0x457)](_0x5657f9)[0x0]:()=>Math['random']()*0xff&0xff;return _0x1c45ef(0x3a7)['replace'](/[018]/g,_0x10375e=>(+_0x10375e^_0x41b91c()&0xf>>+_0x10375e/0x4)[_0x1c45ef(0x1bc)](0x10));};const uuid4=()=>uuid4Internal();/**
157
+ * @license
158
+ * Copyright 2025 Google LLC
159
+ * SPDX-License-Identifier: Apache-2.0
160
+ */
161
+ function isAbortError(_0xa9f59b){const _0x7363d3=a6_0x51c1ef;return typeof _0xa9f59b===_0x7363d3(0x25e)&&_0xa9f59b!==null&&(_0x7363d3(0x558)in _0xa9f59b&&_0xa9f59b[_0x7363d3(0x558)]===_0x7363d3(0x4ba)||_0x7363d3(0x5a1)in _0xa9f59b&&String(_0xa9f59b[_0x7363d3(0x5a1)])[_0x7363d3(0x26d)](_0x7363d3(0x217)));}const castToError=_0x5ad998=>{const _0x2202ab=a6_0x51c1ef;if(_0x5ad998 instanceof Error)return _0x5ad998;if(typeof _0x5ad998===_0x2202ab(0x25e)&&_0x5ad998!==null){try{if(Object['prototype']['toString'][_0x2202ab(0x17f)](_0x5ad998)==='[object\x20Error]'){const _0xca52de=new Error(_0x5ad998[_0x2202ab(0x5a1)],_0x5ad998['cause']?{'cause':_0x5ad998['cause']}:{});if(_0x5ad998[_0x2202ab(0x598)])_0xca52de[_0x2202ab(0x598)]=_0x5ad998[_0x2202ab(0x598)];if(_0x5ad998[_0x2202ab(0x35d)]&&!_0xca52de[_0x2202ab(0x35d)])_0xca52de[_0x2202ab(0x35d)]=_0x5ad998[_0x2202ab(0x35d)];if(_0x5ad998['name'])_0xca52de['name']=_0x5ad998['name'];return _0xca52de;}}catch(_0xf98f1f){}try{return new Error(JSON[_0x2202ab(0x183)](_0x5ad998));}catch(_0x5e760a){}}return new Error(_0x5ad998);};/**
162
+ * @license
163
+ * Copyright 2025 Google LLC
164
+ * SPDX-License-Identifier: Apache-2.0
165
+ */
166
+ class GeminiNextGenAPIClientError extends Error{}class APIError extends GeminiNextGenAPIClientError{constructor(_0x5c292f,_0x2d2510,_0x5cabc7,_0x3ebf31){const _0x54e8c2=a6_0x51c1ef;super(''+APIError[_0x54e8c2(0x5c1)](_0x5c292f,_0x2d2510,_0x5cabc7)),this[_0x54e8c2(0x544)]=_0x5c292f,this[_0x54e8c2(0x2b9)]=_0x3ebf31,this[_0x54e8c2(0x50a)]=_0x2d2510;}static['makeMessage'](_0x1990d6,_0x20988a,_0x3d41fa){const _0x2763ad=a6_0x51c1ef,_0x51b4e0=(_0x20988a===null||_0x20988a===void 0x0?void 0x0:_0x20988a['message'])?typeof _0x20988a[_0x2763ad(0x5a1)]===_0x2763ad(0x53d)?_0x20988a[_0x2763ad(0x5a1)]:JSON[_0x2763ad(0x183)](_0x20988a[_0x2763ad(0x5a1)]):_0x20988a?JSON['stringify'](_0x20988a):_0x3d41fa;if(_0x1990d6&&_0x51b4e0)return _0x1990d6+'\x20'+_0x51b4e0;if(_0x1990d6)return _0x1990d6+_0x2763ad(0x5dd);if(_0x51b4e0)return _0x51b4e0;return _0x2763ad(0x668);}static[a6_0x51c1ef(0x2b1)](_0x36f4ab,_0x283a1e,_0x302fd5,_0x362f6e){if(!_0x36f4ab||!_0x362f6e)return new APIConnectionError({'message':_0x302fd5,'cause':castToError(_0x283a1e)});const _0x12e135=_0x283a1e;if(_0x36f4ab===0x190)return new BadRequestError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab===0x191)return new AuthenticationError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab===0x193)return new PermissionDeniedError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab===0x194)return new NotFoundError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab===0x199)return new ConflictError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab===0x1a6)return new UnprocessableEntityError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab===0x1ad)return new RateLimitError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);if(_0x36f4ab>=0x1f4)return new InternalServerError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);return new APIError(_0x36f4ab,_0x12e135,_0x302fd5,_0x362f6e);}}class APIUserAbortError extends APIError{constructor({message:_0x49ddf2}={}){const _0x3ce92c=a6_0x51c1ef;super(undefined,undefined,_0x49ddf2||_0x3ce92c(0x5d9),undefined);}}class APIConnectionError extends APIError{constructor({message:_0x5e676b,cause:_0x499795}){const _0x2599f1=a6_0x51c1ef;super(undefined,undefined,_0x5e676b||_0x2599f1(0x30a),undefined);if(_0x499795)this['cause']=_0x499795;}}class APIConnectionTimeoutError extends APIConnectionError{constructor({message:_0x8d671a}={}){const _0xad77e6=a6_0x51c1ef;super({'message':_0x8d671a!==null&&_0x8d671a!==void 0x0?_0x8d671a:_0xad77e6(0x206)});}}class BadRequestError extends APIError{}class AuthenticationError extends APIError{}class PermissionDeniedError extends APIError{}class NotFoundError extends APIError{}class ConflictError extends APIError{}class UnprocessableEntityError extends APIError{}class RateLimitError extends APIError{}class InternalServerError extends APIError{}/**
167
+ * @license
168
+ * Copyright 2025 Google LLC
169
+ * SPDX-License-Identifier: Apache-2.0
170
+ */
171
+ const startsWithSchemeRegexp=/^[a-z][a-z0-9+.-]*:/i,isAbsoluteURL=_0x441aed=>{return startsWithSchemeRegexp['test'](_0x441aed);};let isArrayInternal=_0x359b14=>(isArrayInternal=Array['isArray'],isArrayInternal(_0x359b14));const isArray=isArrayInternal;let isReadonlyArrayInternal=isArray;const isReadonlyArray=isReadonlyArrayInternal;function isEmptyObj(_0x16c7ee){if(!_0x16c7ee)return!![];for(const _0x52ceb5 in _0x16c7ee)return![];return!![];}function hasOwn(_0x5ede3b,_0x9bcd61){const _0x15351d=a6_0x51c1ef;return Object[_0x15351d(0x240)]['hasOwnProperty'][_0x15351d(0x17f)](_0x5ede3b,_0x9bcd61);}const validatePositiveInteger=(_0x3fe9ea,_0x424453)=>{const _0x5e86aa=a6_0x51c1ef;if(typeof _0x424453!==_0x5e86aa(0x682)||!Number[_0x5e86aa(0x365)](_0x424453))throw new GeminiNextGenAPIClientError(_0x3fe9ea+_0x5e86aa(0x384));if(_0x424453<0x0)throw new GeminiNextGenAPIClientError(_0x3fe9ea+_0x5e86aa(0x181));return _0x424453;},safeJSON=_0x1019f2=>{const _0x15c88e=a6_0x51c1ef;try{return JSON[_0x15c88e(0x1b2)](_0x1019f2);}catch(_0x423c63){return undefined;}},sleep$1=_0xb90b92=>new Promise(_0x33f945=>setTimeout(_0x33f945,_0xb90b92)),VERSION=a6_0x51c1ef(0x47d);/**
172
+ * @license
173
+ * Copyright 2025 Google LLC
174
+ * SPDX-License-Identifier: Apache-2.0
175
+ */
176
+ function getDetectedPlatform(){const _0x1acc20=a6_0x51c1ef;if(typeof Deno!=='undefined'&&Deno[_0x1acc20(0x3b5)]!=null)return _0x1acc20(0x37d);if(typeof EdgeRuntime!==_0x1acc20(0x66e))return _0x1acc20(0x632);if(Object[_0x1acc20(0x240)][_0x1acc20(0x1bc)][_0x1acc20(0x17f)](typeof globalThis[_0x1acc20(0x48d)]!==_0x1acc20(0x66e)?globalThis[_0x1acc20(0x48d)]:0x0)==='[object\x20process]')return'node';return'unknown';}const getPlatformProperties=()=>{const _0x445c58=a6_0x51c1ef;var _0x473520,_0x2ae526,_0x39aefb,_0x526eab,_0x295307;const _0x99da4c=getDetectedPlatform();if(_0x99da4c===_0x445c58(0x37d))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform(Deno[_0x445c58(0x3b5)]['os']),'X-Stainless-Arch':normalizeArch(Deno[_0x445c58(0x3b5)]['arch']),'X-Stainless-Runtime':_0x445c58(0x37d),'X-Stainless-Runtime-Version':typeof Deno['version']==='string'?Deno[_0x445c58(0x5b0)]:(_0x2ae526=(_0x473520=Deno[_0x445c58(0x5b0)])===null||_0x473520===void 0x0?void 0x0:_0x473520['deno'])!==null&&_0x2ae526!==void 0x0?_0x2ae526:_0x445c58(0x55e)};if(typeof EdgeRuntime!=='undefined')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x445c58(0x56d),'X-Stainless-Arch':'other:'+EdgeRuntime,'X-Stainless-Runtime':'edge','X-Stainless-Runtime-Version':globalThis[_0x445c58(0x48d)][_0x445c58(0x5b0)]};if(_0x99da4c===_0x445c58(0x294))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform((_0x39aefb=globalThis[_0x445c58(0x48d)][_0x445c58(0x470)])!==null&&_0x39aefb!==void 0x0?_0x39aefb:_0x445c58(0x55e)),'X-Stainless-Arch':normalizeArch((_0x526eab=globalThis[_0x445c58(0x48d)]['arch'])!==null&&_0x526eab!==void 0x0?_0x526eab:_0x445c58(0x55e)),'X-Stainless-Runtime':_0x445c58(0x294),'X-Stainless-Runtime-Version':(_0x295307=globalThis['process']['version'])!==null&&_0x295307!==void 0x0?_0x295307:'unknown'};const _0x51c1c1=getBrowserInfo();if(_0x51c1c1)return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x445c58(0x56d),'X-Stainless-Arch':_0x445c58(0x55e),'X-Stainless-Runtime':'browser:'+_0x51c1c1[_0x445c58(0x611)],'X-Stainless-Runtime-Version':_0x51c1c1[_0x445c58(0x5b0)]};return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x445c58(0x55e),'X-Stainless-Runtime':_0x445c58(0x55e),'X-Stainless-Runtime-Version':_0x445c58(0x55e)};};function getBrowserInfo(){const _0x190536=a6_0x51c1ef;if(typeof navigator===_0x190536(0x66e)||!navigator)return null;const _0x325f67=[{'key':_0x190536(0x632),'pattern':/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'chrome','pattern':/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'firefox','pattern':/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'safari','pattern':/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const {key:_0x41de4a,pattern:_0x2cbfa8}of _0x325f67){const _0x1b342b=_0x2cbfa8[_0x190536(0x1ae)](navigator[_0x190536(0x3a1)]);if(_0x1b342b){const _0x5cfaa3=_0x1b342b[0x1]||0x0,_0x495038=_0x1b342b[0x2]||0x0,_0x256015=_0x1b342b[0x3]||0x0;return{'browser':_0x41de4a,'version':_0x5cfaa3+'.'+_0x495038+'.'+_0x256015};}}return null;}const normalizeArch=_0x3370fc=>{const _0x3bb6b9=a6_0x51c1ef;if(_0x3370fc===_0x3bb6b9(0x1ec))return _0x3bb6b9(0x1ec);if(_0x3370fc===_0x3bb6b9(0x34f)||_0x3370fc===_0x3bb6b9(0x5cf))return'x64';if(_0x3370fc===_0x3bb6b9(0x504))return _0x3bb6b9(0x504);if(_0x3370fc===_0x3bb6b9(0x311)||_0x3370fc==='arm64')return _0x3bb6b9(0x548);if(_0x3370fc)return'other:'+_0x3370fc;return _0x3bb6b9(0x55e);},normalizePlatform=_0x15514d=>{const _0x1e53ca=a6_0x51c1ef;_0x15514d=_0x15514d[_0x1e53ca(0x502)]();if(_0x15514d[_0x1e53ca(0x26d)](_0x1e53ca(0x3d8)))return'iOS';if(_0x15514d===_0x1e53ca(0x39f))return'Android';if(_0x15514d===_0x1e53ca(0x235))return _0x1e53ca(0x17b);if(_0x15514d==='win32')return _0x1e53ca(0x499);if(_0x15514d==='freebsd')return'FreeBSD';if(_0x15514d===_0x1e53ca(0x4a0))return'OpenBSD';if(_0x15514d===_0x1e53ca(0x233))return'Linux';if(_0x15514d)return _0x1e53ca(0x1dc)+_0x15514d;return _0x1e53ca(0x56d);};let _platformHeaders;const getPlatformHeaders=()=>{return _platformHeaders!==null&&_platformHeaders!==void 0x0?_platformHeaders:_platformHeaders=getPlatformProperties();};/**
177
+ * @license
178
+ * Copyright 2025 Google LLC
179
+ * SPDX-License-Identifier: Apache-2.0
180
+ */
181
+ function getDefaultFetch(){const _0x23e686=a6_0x51c1ef;if(typeof fetch!=='undefined')return fetch;throw new Error(_0x23e686(0x260));}function makeReadableStream(..._0x2628de){const _0x194d57=a6_0x51c1ef,_0x502e3c=globalThis[_0x194d57(0x3a4)];if(typeof _0x502e3c===_0x194d57(0x66e))throw new Error(_0x194d57(0x631));return new _0x502e3c(..._0x2628de);}function ReadableStreamFrom(_0x4aae49){const _0x342d7b=a6_0x51c1ef;let _0x714e5c=Symbol['asyncIterator']in _0x4aae49?_0x4aae49[Symbol[_0x342d7b(0x648)]]():_0x4aae49[Symbol[_0x342d7b(0x2df)]]();return makeReadableStream({'start'(){},async 'pull'(_0x5e5745){const _0x376c5b=_0x342d7b,{done:_0x248643,value:_0x8b0410}=await _0x714e5c[_0x376c5b(0x394)]();_0x248643?_0x5e5745[_0x376c5b(0x2db)]():_0x5e5745[_0x376c5b(0x5d6)](_0x8b0410);},async 'cancel'(){const _0x2072a8=_0x342d7b;var _0x731397;await((_0x731397=_0x714e5c[_0x2072a8(0x1ab)])===null||_0x731397===void 0x0?void 0x0:_0x731397[_0x2072a8(0x17f)](_0x714e5c));}});}function ReadableStreamToAsyncIterable(_0x55e518){const _0x1d06d2=a6_0x51c1ef;if(_0x55e518[Symbol[_0x1d06d2(0x648)]])return _0x55e518;const _0x489bd8=_0x55e518['getReader']();return{async 'next'(){const _0x5a1e9f=_0x1d06d2;try{const _0x5ef284=await _0x489bd8[_0x5a1e9f(0x192)]();if(_0x5ef284===null||_0x5ef284===void 0x0?void 0x0:_0x5ef284['done'])_0x489bd8[_0x5a1e9f(0x2c3)]();return _0x5ef284;}catch(_0x51b0e1){_0x489bd8['releaseLock']();throw _0x51b0e1;}},async 'return'(){const _0x26c1ea=_0x1d06d2,_0x28a832=_0x489bd8[_0x26c1ea(0x5ff)]();return _0x489bd8[_0x26c1ea(0x2c3)](),await _0x28a832,{'done':!![],'value':undefined};},[Symbol[_0x1d06d2(0x648)]](){return this;}};}async function CancelReadableStream(_0x2c46b2){const _0xbce407=a6_0x51c1ef;var _0x22c05c,_0x3fb4e5;if(_0x2c46b2===null||typeof _0x2c46b2!==_0xbce407(0x25e))return;if(_0x2c46b2[Symbol[_0xbce407(0x648)]]){await((_0x3fb4e5=(_0x22c05c=_0x2c46b2[Symbol[_0xbce407(0x648)]]())[_0xbce407(0x1ab)])===null||_0x3fb4e5===void 0x0?void 0x0:_0x3fb4e5[_0xbce407(0x17f)](_0x22c05c));return;}const _0x41aab1=_0x2c46b2[_0xbce407(0x307)](),_0xfc1be6=_0x41aab1[_0xbce407(0x5ff)]();_0x41aab1['releaseLock'](),await _0xfc1be6;}/**
182
+ * @license
183
+ * Copyright 2025 Google LLC
184
+ * SPDX-License-Identifier: Apache-2.0
185
+ */
186
+ const FallbackEncoder=({headers:_0x4391a8,body:_0x496794})=>{const _0x207d14=a6_0x51c1ef;return{'bodyHeaders':{'content-type':_0x207d14(0x539)},'body':JSON[_0x207d14(0x183)](_0x496794)};},checkFileSupport=()=>{const _0x2bd7f1=a6_0x51c1ef;var _0x3fd463;if(typeof File===_0x2bd7f1(0x66e)){const {process:_0x134216}=globalThis,_0x3c0b8e=typeof((_0x3fd463=_0x134216===null||_0x134216===void 0x0?void 0x0:_0x134216[_0x2bd7f1(0x527)])===null||_0x3fd463===void 0x0?void 0x0:_0x3fd463['node'])===_0x2bd7f1(0x53d)&&parseInt(_0x134216[_0x2bd7f1(0x527)][_0x2bd7f1(0x294)]['split']('.'))<0x14;throw new Error('`File`\x20is\x20not\x20defined\x20as\x20a\x20global,\x20which\x20is\x20required\x20for\x20file\x20uploads.'+(_0x3c0b8e?_0x2bd7f1(0x62b):''));}};function makeFile(_0x129496,_0x30bd8f,_0x3ed6e1){const _0x16eac9=a6_0x51c1ef;return checkFileSupport(),new File(_0x129496,_0x30bd8f!==null&&_0x30bd8f!==void 0x0?_0x30bd8f:_0x16eac9(0x31f),_0x3ed6e1);}function getName(_0x48822b){const _0x178280=a6_0x51c1ef;return(typeof _0x48822b===_0x178280(0x25e)&&_0x48822b!==null&&(_0x178280(0x558)in _0x48822b&&_0x48822b['name']&&String(_0x48822b[_0x178280(0x558)])||_0x178280(0x409)in _0x48822b&&_0x48822b[_0x178280(0x409)]&&String(_0x48822b[_0x178280(0x409)])||_0x178280(0x3e1)in _0x48822b&&_0x48822b['filename']&&String(_0x48822b[_0x178280(0x3e1)])||_0x178280(0x3eb)in _0x48822b&&_0x48822b[_0x178280(0x3eb)]&&String(_0x48822b[_0x178280(0x3eb)]))||'')[_0x178280(0x322)](/[\\/]/)[_0x178280(0x3a9)]()||undefined;}const isAsyncIterable=_0x206f48=>_0x206f48!=null&&typeof _0x206f48===a6_0x51c1ef(0x25e)&&typeof _0x206f48[Symbol[a6_0x51c1ef(0x648)]]===a6_0x51c1ef(0x60e),isBlobLike=_0x2b026c=>_0x2b026c!=null&&typeof _0x2b026c===a6_0x51c1ef(0x25e)&&typeof _0x2b026c[a6_0x51c1ef(0x262)]===a6_0x51c1ef(0x682)&&typeof _0x2b026c[a6_0x51c1ef(0x506)]===a6_0x51c1ef(0x53d)&&typeof _0x2b026c[a6_0x51c1ef(0x278)]===a6_0x51c1ef(0x60e)&&typeof _0x2b026c[a6_0x51c1ef(0x15a)]===a6_0x51c1ef(0x60e)&&typeof _0x2b026c[a6_0x51c1ef(0x290)]===a6_0x51c1ef(0x60e),isFileLike=_0x53b924=>_0x53b924!=null&&typeof _0x53b924==='object'&&typeof _0x53b924[a6_0x51c1ef(0x558)]===a6_0x51c1ef(0x53d)&&typeof _0x53b924[a6_0x51c1ef(0x5d4)]===a6_0x51c1ef(0x682)&&isBlobLike(_0x53b924),isResponseLike=_0x143b9f=>_0x143b9f!=null&&typeof _0x143b9f===a6_0x51c1ef(0x25e)&&typeof _0x143b9f['url']===a6_0x51c1ef(0x53d)&&typeof _0x143b9f[a6_0x51c1ef(0x3fc)]==='function';async function toFile(_0x5b5ebf,_0x3477b4,_0x2fcb5c){const _0x4c80c6=a6_0x51c1ef;checkFileSupport(),_0x5b5ebf=await _0x5b5ebf;if(isFileLike(_0x5b5ebf)){if(_0x5b5ebf instanceof File)return _0x5b5ebf;return makeFile([await _0x5b5ebf[_0x4c80c6(0x290)]()],_0x5b5ebf[_0x4c80c6(0x558)]);}if(isResponseLike(_0x5b5ebf)){const _0x4a448b=await _0x5b5ebf[_0x4c80c6(0x3fc)]();return _0x3477b4||(_0x3477b4=new URL(_0x5b5ebf[_0x4c80c6(0x409)])[_0x4c80c6(0x315)][_0x4c80c6(0x322)](/[\\/]/)[_0x4c80c6(0x3a9)]()),makeFile(await getBytes(_0x4a448b),_0x3477b4,_0x2fcb5c);}const _0x2a28da=await getBytes(_0x5b5ebf);_0x3477b4||(_0x3477b4=getName(_0x5b5ebf));if(!(_0x2fcb5c===null||_0x2fcb5c===void 0x0?void 0x0:_0x2fcb5c[_0x4c80c6(0x506)])){const _0x3bcc30=_0x2a28da['find'](_0x45c382=>typeof _0x45c382===_0x4c80c6(0x25e)&&'type'in _0x45c382&&_0x45c382['type']);typeof _0x3bcc30===_0x4c80c6(0x53d)&&(_0x2fcb5c=Object[_0x4c80c6(0x5a8)](Object[_0x4c80c6(0x5a8)]({},_0x2fcb5c),{'type':_0x3bcc30}));}return makeFile(_0x2a28da,_0x3477b4,_0x2fcb5c);}async function getBytes(_0x1148f4){const _0x7b2e2c=a6_0x51c1ef;var _0x418e8b,_0x472a65,_0x5bd8a3,_0x2ab7d3,_0x2f253c;let _0x27bcc4=[];if(typeof _0x1148f4===_0x7b2e2c(0x53d)||ArrayBuffer[_0x7b2e2c(0x468)](_0x1148f4)||_0x1148f4 instanceof ArrayBuffer)_0x27bcc4[_0x7b2e2c(0x656)](_0x1148f4);else{if(isBlobLike(_0x1148f4))_0x27bcc4['push'](_0x1148f4 instanceof Blob?_0x1148f4:await _0x1148f4['arrayBuffer']());else{if(isAsyncIterable(_0x1148f4))try{for(var _0x2b7959=!![],_0x156770=__asyncValues(_0x1148f4),_0x253154;_0x253154=await _0x156770['next'](),_0x418e8b=_0x253154['done'],!_0x418e8b;_0x2b7959=!![]){_0x2ab7d3=_0x253154[_0x7b2e2c(0x296)],_0x2b7959=![];const _0x409d44=_0x2ab7d3;_0x27bcc4[_0x7b2e2c(0x656)](...await getBytes(_0x409d44));}}catch(_0x3c60b4){_0x472a65={'error':_0x3c60b4};}finally{try{if(!_0x2b7959&&!_0x418e8b&&(_0x5bd8a3=_0x156770[_0x7b2e2c(0x1ab)]))await _0x5bd8a3[_0x7b2e2c(0x17f)](_0x156770);}finally{if(_0x472a65)throw _0x472a65['error'];}}else{const _0x5cafab=(_0x2f253c=_0x1148f4===null||_0x1148f4===void 0x0?void 0x0:_0x1148f4[_0x7b2e2c(0x607)])===null||_0x2f253c===void 0x0?void 0x0:_0x2f253c[_0x7b2e2c(0x558)];throw new Error(_0x7b2e2c(0x683)+typeof _0x1148f4+(_0x5cafab?_0x7b2e2c(0x355)+_0x5cafab:'')+propsForError(_0x1148f4));}}}return _0x27bcc4;}function propsForError(_0x3e090e){const _0x25581c=a6_0x51c1ef;if(typeof _0x3e090e!==_0x25581c(0x25e)||_0x3e090e===null)return'';const _0x3ff6e9=Object['getOwnPropertyNames'](_0x3e090e);return _0x25581c(0x4f1)+_0x3ff6e9[_0x25581c(0x68f)](_0x26295f=>'\x22'+_0x26295f+'\x22')[_0x25581c(0x4c1)](',\x20')+']';}/**
187
+ * @license
188
+ * Copyright 2025 Google LLC
189
+ * SPDX-License-Identifier: Apache-2.0
190
+ */
191
+ class APIResource{constructor(_0x396c69){const _0x4ee318=a6_0x51c1ef;this[_0x4ee318(0x48c)]=_0x396c69;}}APIResource[a6_0x51c1ef(0x3cf)]=[];/**
192
+ * @license
193
+ * Copyright 2025 Google LLC
194
+ * SPDX-License-Identifier: Apache-2.0
195
+ */
196
+ function encodeURIPath(_0x49d930){const _0x478ba7=a6_0x51c1ef;return _0x49d930[_0x478ba7(0x5a3)](/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent);}const EMPTY=Object[a6_0x51c1ef(0x1f9)](Object['create'](null)),createPathTagFunction=(_0x227ace=encodeURIPath)=>function _0x1efd21(_0x18cde0,..._0x3deaad){const _0x2dffa1=a6_0x51c1ef;if(_0x18cde0['length']===0x1)return _0x18cde0[0x0];let _0xdba843=![];const _0x2f5ecc=[],_0x57ba36=_0x18cde0[_0x2dffa1(0x25c)]((_0x44f7ab,_0x27309b,_0x5a6bab)=>{const _0xad9cff=_0x2dffa1;var _0x42da87,_0x6b4bae,_0x43594e;/[?#]/[_0xad9cff(0x480)](_0x27309b)&&(_0xdba843=!![]);const _0x40cfc5=_0x3deaad[_0x5a6bab];let _0x13673e=(_0xdba843?encodeURIComponent:_0x227ace)(''+_0x40cfc5);return _0x5a6bab!==_0x3deaad[_0xad9cff(0x3b7)]&&(_0x40cfc5==null||typeof _0x40cfc5==='object'&&_0x40cfc5['toString']===((_0x43594e=Object['getPrototypeOf']((_0x6b4bae=Object[_0xad9cff(0x2fe)]((_0x42da87=_0x40cfc5[_0xad9cff(0x472)])!==null&&_0x42da87!==void 0x0?_0x42da87:EMPTY))!==null&&_0x6b4bae!==void 0x0?_0x6b4bae:EMPTY))===null||_0x43594e===void 0x0?void 0x0:_0x43594e[_0xad9cff(0x1bc)]))&&(_0x13673e=_0x40cfc5+'',_0x2f5ecc['push']({'start':_0x44f7ab[_0xad9cff(0x3b7)]+_0x27309b[_0xad9cff(0x3b7)],'length':_0x13673e[_0xad9cff(0x3b7)],'error':_0xad9cff(0x208)+Object['prototype'][_0xad9cff(0x1bc)]['call'](_0x40cfc5)['slice'](0x8,-0x1)+'\x20is\x20not\x20a\x20valid\x20path\x20parameter'})),_0x44f7ab+_0x27309b+(_0x5a6bab===_0x3deaad[_0xad9cff(0x3b7)]?'':_0x13673e);},''),_0x23f7cc=_0x57ba36[_0x2dffa1(0x322)](/[?#]/,0x1)[0x0],_0x5507c3=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;let _0xbe3a07;while((_0xbe3a07=_0x5507c3[_0x2dffa1(0x1ae)](_0x23f7cc))!==null){_0x2f5ecc[_0x2dffa1(0x656)]({'start':_0xbe3a07[_0x2dffa1(0x477)],'length':_0xbe3a07[0x0][_0x2dffa1(0x3b7)],'error':_0x2dffa1(0x2b2)+_0xbe3a07[0x0]+_0x2dffa1(0x4a5)});}_0x2f5ecc['sort']((_0x1cbb7a,_0x3f9e88)=>_0x1cbb7a[_0x2dffa1(0x64f)]-_0x3f9e88['start']);if(_0x2f5ecc[_0x2dffa1(0x3b7)]>0x0){let _0x1a2c8b=0x0;const _0x17c0dd=_0x2f5ecc[_0x2dffa1(0x25c)]((_0x3a4c7f,_0x5b1f12)=>{const _0x1727a7=_0x2dffa1,_0x2b51f5='\x20'[_0x1727a7(0x2ca)](_0x5b1f12[_0x1727a7(0x64f)]-_0x1a2c8b),_0x45e790='^'['repeat'](_0x5b1f12[_0x1727a7(0x3b7)]);return _0x1a2c8b=_0x5b1f12[_0x1727a7(0x64f)]+_0x5b1f12[_0x1727a7(0x3b7)],_0x3a4c7f+_0x2b51f5+_0x45e790;},'');throw new GeminiNextGenAPIClientError(_0x2dffa1(0x4fb)+_0x2f5ecc[_0x2dffa1(0x68f)](_0x357e88=>_0x357e88[_0x2dffa1(0x50a)])[_0x2dffa1(0x4c1)]('\x0a')+'\x0a'+_0x57ba36+'\x0a'+_0x17c0dd);}return _0x57ba36;},path=createPathTagFunction(encodeURIPath);/**
197
+ * @license
198
+ * Copyright 2025 Google LLC
199
+ * SPDX-License-Identifier: Apache-2.0
200
+ */
201
+ class BaseInteractions extends APIResource{['create'](_0x526cff,_0x59b2c4){const _0x94e8c0=a6_0x51c1ef;var _0x5b26ec;const {api_version:api_version=this['_client'][_0x94e8c0(0x63e)]}=_0x526cff,_0x53f118=__rest(_0x526cff,[_0x94e8c0(0x3d0)]);if(_0x94e8c0(0x418)in _0x53f118&&'agent_config'in _0x53f118)throw new GeminiNextGenAPIClientError(_0x94e8c0(0x53c));if(_0x94e8c0(0x2eb)in _0x53f118&&_0x94e8c0(0x308)in _0x53f118)throw new GeminiNextGenAPIClientError(_0x94e8c0(0x25d));return this[_0x94e8c0(0x48c)][_0x94e8c0(0x16a)](path`/${api_version}/interactions`,Object[_0x94e8c0(0x5a8)](Object['assign']({'body':_0x53f118},_0x59b2c4),{'stream':(_0x5b26ec=_0x526cff[_0x94e8c0(0x320)])!==null&&_0x5b26ec!==void 0x0?_0x5b26ec:![]}));}['delete'](_0x146bde,_0x2900e={},_0x1d1e30){const _0x148e52=a6_0x51c1ef,{api_version:api_version=this[_0x148e52(0x48c)][_0x148e52(0x63e)]}=_0x2900e!==null&&_0x2900e!==void 0x0?_0x2900e:{};return this['_client']['delete'](path`/${api_version}/interactions/${_0x146bde}`,_0x1d1e30);}['cancel'](_0x50f58d,_0x1dbbb3={},_0x15dec8){const _0xe337a2=a6_0x51c1ef,{api_version:api_version=this['_client'][_0xe337a2(0x63e)]}=_0x1dbbb3!==null&&_0x1dbbb3!==void 0x0?_0x1dbbb3:{};return this[_0xe337a2(0x48c)][_0xe337a2(0x16a)](path`/${api_version}/interactions/${_0x50f58d}/cancel`,_0x15dec8);}[a6_0x51c1ef(0x482)](_0x20920d,_0x2445a4={},_0x13273b){const _0x40a1b7=a6_0x51c1ef;var _0x80c97b;const _0x4975b7=_0x2445a4!==null&&_0x2445a4!==void 0x0?_0x2445a4:{},{api_version:api_version=this[_0x40a1b7(0x48c)][_0x40a1b7(0x63e)]}=_0x4975b7,_0x1ef1e6=__rest(_0x4975b7,[_0x40a1b7(0x3d0)]);return this['_client']['get'](path`/${api_version}/interactions/${_0x20920d}`,Object['assign'](Object[_0x40a1b7(0x5a8)]({'query':_0x1ef1e6},_0x13273b),{'stream':(_0x80c97b=_0x2445a4===null||_0x2445a4===void 0x0?void 0x0:_0x2445a4[_0x40a1b7(0x320)])!==null&&_0x80c97b!==void 0x0?_0x80c97b:![]}));}}BaseInteractions[a6_0x51c1ef(0x3cf)]=Object[a6_0x51c1ef(0x1f9)]([a6_0x51c1ef(0x1fc)]);class Interactions extends BaseInteractions{}/**
202
+ * @license
203
+ * Copyright 2025 Google LLC
204
+ * SPDX-License-Identifier: Apache-2.0
205
+ */
206
+ function concatBytes(_0x453706){const _0x58ece1=a6_0x51c1ef;let _0x34aecd=0x0;for(const _0x43dfe6 of _0x453706){_0x34aecd+=_0x43dfe6[_0x58ece1(0x3b7)];}const _0x4579d8=new Uint8Array(_0x34aecd);let _0x520876=0x0;for(const _0xce3df3 of _0x453706){_0x4579d8[_0x58ece1(0x229)](_0xce3df3,_0x520876),_0x520876+=_0xce3df3[_0x58ece1(0x3b7)];}return _0x4579d8;}let encodeUTF8_;function encodeUTF8(_0x443857){const _0x1e21d3=a6_0x51c1ef;let _0x10ec16;return(encodeUTF8_!==null&&encodeUTF8_!==void 0x0?encodeUTF8_:(_0x10ec16=new globalThis[(_0x1e21d3(0x532))](),encodeUTF8_=_0x10ec16[_0x1e21d3(0x612)]['bind'](_0x10ec16)))(_0x443857);}let decodeUTF8_;function decodeUTF8(_0x3c52f4){const _0x2a4903=a6_0x51c1ef;let _0x549877;return(decodeUTF8_!==null&&decodeUTF8_!==void 0x0?decodeUTF8_:(_0x549877=new globalThis[(_0x2a4903(0x463))](),decodeUTF8_=_0x549877[_0x2a4903(0x4f4)][_0x2a4903(0x663)](_0x549877)))(_0x3c52f4);}/**
207
+ * @license
208
+ * Copyright 2025 Google LLC
209
+ * SPDX-License-Identifier: Apache-2.0
210
+ */
211
+ class LineDecoder{constructor(){const _0x763691=a6_0x51c1ef;this[_0x763691(0x447)]=new Uint8Array(),this['carriageReturnIndex']=null;}[a6_0x51c1ef(0x4f4)](_0x4f581e){const _0x3bacf6=a6_0x51c1ef;if(_0x4f581e==null)return[];const _0x49c24a=_0x4f581e instanceof ArrayBuffer?new Uint8Array(_0x4f581e):typeof _0x4f581e===_0x3bacf6(0x53d)?encodeUTF8(_0x4f581e):_0x4f581e;this[_0x3bacf6(0x447)]=concatBytes([this['buffer'],_0x49c24a]);const _0x3ed3fe=[];let _0x1c1064;while((_0x1c1064=findNewlineIndex(this['buffer'],this[_0x3bacf6(0x2ad)]))!=null){if(_0x1c1064[_0x3bacf6(0x4c2)]&&this['carriageReturnIndex']==null){this['carriageReturnIndex']=_0x1c1064[_0x3bacf6(0x477)];continue;}if(this[_0x3bacf6(0x2ad)]!=null&&(_0x1c1064[_0x3bacf6(0x477)]!==this[_0x3bacf6(0x2ad)]+0x1||_0x1c1064['carriage'])){_0x3ed3fe[_0x3bacf6(0x656)](decodeUTF8(this[_0x3bacf6(0x447)][_0x3bacf6(0x617)](0x0,this[_0x3bacf6(0x2ad)]-0x1))),this[_0x3bacf6(0x447)]=this[_0x3bacf6(0x447)][_0x3bacf6(0x617)](this[_0x3bacf6(0x2ad)]),this[_0x3bacf6(0x2ad)]=null;continue;}const _0x5421b2=this[_0x3bacf6(0x2ad)]!==null?_0x1c1064[_0x3bacf6(0x1d9)]-0x1:_0x1c1064[_0x3bacf6(0x1d9)],_0x21da51=decodeUTF8(this[_0x3bacf6(0x447)][_0x3bacf6(0x617)](0x0,_0x5421b2));_0x3ed3fe[_0x3bacf6(0x656)](_0x21da51),this[_0x3bacf6(0x447)]=this[_0x3bacf6(0x447)][_0x3bacf6(0x617)](_0x1c1064[_0x3bacf6(0x477)]),this[_0x3bacf6(0x2ad)]=null;}return _0x3ed3fe;}['flush'](){const _0x4afeb4=a6_0x51c1ef;if(!this[_0x4afeb4(0x447)]['length'])return[];return this[_0x4afeb4(0x4f4)]('\x0a');}}LineDecoder['NEWLINE_CHARS']=new Set(['\x0a','\x0d']),LineDecoder[a6_0x51c1ef(0x68c)]=/\r\n|[\n\r]/g;function findNewlineIndex(_0x2fc1ed,_0x3e57af){const _0x4eac81=0xa,_0x1fcd57=0xd;for(let _0x4de301=_0x3e57af!==null&&_0x3e57af!==void 0x0?_0x3e57af:0x0;_0x4de301<_0x2fc1ed['length'];_0x4de301++){if(_0x2fc1ed[_0x4de301]===_0x4eac81)return{'preceding':_0x4de301,'index':_0x4de301+0x1,'carriage':![]};if(_0x2fc1ed[_0x4de301]===_0x1fcd57)return{'preceding':_0x4de301,'index':_0x4de301+0x1,'carriage':!![]};}return null;}function findDoubleNewlineIndex(_0x4c7b57){const _0x4e65bb=a6_0x51c1ef,_0x214b58=0xa,_0x2f31d7=0xd;for(let _0x195296=0x0;_0x195296<_0x4c7b57[_0x4e65bb(0x3b7)]-0x1;_0x195296++){if(_0x4c7b57[_0x195296]===_0x214b58&&_0x4c7b57[_0x195296+0x1]===_0x214b58)return _0x195296+0x2;if(_0x4c7b57[_0x195296]===_0x2f31d7&&_0x4c7b57[_0x195296+0x1]===_0x2f31d7)return _0x195296+0x2;if(_0x4c7b57[_0x195296]===_0x2f31d7&&_0x4c7b57[_0x195296+0x1]===_0x214b58&&_0x195296+0x3<_0x4c7b57[_0x4e65bb(0x3b7)]&&_0x4c7b57[_0x195296+0x2]===_0x2f31d7&&_0x4c7b57[_0x195296+0x3]===_0x214b58)return _0x195296+0x4;}return-0x1;}/**
212
+ * @license
213
+ * Copyright 2025 Google LLC
214
+ * SPDX-License-Identifier: Apache-2.0
215
+ */
216
+ const levelNumbers={'off':0x0,'error':0xc8,'warn':0x12c,'info':0x190,'debug':0x1f4},parseLogLevel=(_0x4c8452,_0x549137,_0x220d54)=>{const _0x2fa480=a6_0x51c1ef;if(!_0x4c8452)return undefined;if(hasOwn(levelNumbers,_0x4c8452))return _0x4c8452;return loggerFor(_0x220d54)['warn'](_0x549137+_0x2fa480(0x242)+JSON['stringify'](_0x4c8452)+_0x2fa480(0x528)+JSON['stringify'](Object[_0x2fa480(0x562)](levelNumbers))),undefined;};function noop(){}function makeLogFn(_0x107b5f,_0x45d97c,_0x294907){const _0x130305=a6_0x51c1ef;return!_0x45d97c||levelNumbers[_0x107b5f]>levelNumbers[_0x294907]?noop:_0x45d97c[_0x107b5f][_0x130305(0x663)](_0x45d97c);}const noopLogger={'error':noop,'warn':noop,'info':noop,'debug':noop};let cachedLoggers=new WeakMap();function loggerFor(_0x19a27b){const _0x394dfd=a6_0x51c1ef;var _0x591af5;const _0x42793f=_0x19a27b[_0x394dfd(0x5ad)],_0x56936c=(_0x591af5=_0x19a27b['logLevel'])!==null&&_0x591af5!==void 0x0?_0x591af5:_0x394dfd(0x572);if(!_0x42793f)return noopLogger;const _0x335e7f=cachedLoggers[_0x394dfd(0x482)](_0x42793f);if(_0x335e7f&&_0x335e7f[0x0]===_0x56936c)return _0x335e7f[0x1];const _0x5ec1ff={'error':makeLogFn(_0x394dfd(0x50a),_0x42793f,_0x56936c),'warn':makeLogFn('warn',_0x42793f,_0x56936c),'info':makeLogFn(_0x394dfd(0x416),_0x42793f,_0x56936c),'debug':makeLogFn(_0x394dfd(0x4fd),_0x42793f,_0x56936c)};return cachedLoggers['set'](_0x42793f,[_0x56936c,_0x5ec1ff]),_0x5ec1ff;}const formatRequestDetails=_0x31296c=>{const _0x29e736=a6_0x51c1ef;return _0x31296c[_0x29e736(0x54d)]&&(_0x31296c[_0x29e736(0x54d)]=Object[_0x29e736(0x5a8)]({},_0x31296c[_0x29e736(0x54d)]),delete _0x31296c[_0x29e736(0x54d)][_0x29e736(0x2b9)]),_0x31296c[_0x29e736(0x2b9)]&&(_0x31296c[_0x29e736(0x2b9)]=Object[_0x29e736(0x20b)]((_0x31296c[_0x29e736(0x2b9)]instanceof Headers?[..._0x31296c['headers']]:Object[_0x29e736(0x4cc)](_0x31296c[_0x29e736(0x2b9)]))[_0x29e736(0x68f)](([_0x1cf41b,_0xc23413])=>[_0x1cf41b,_0x1cf41b[_0x29e736(0x502)]()===_0x29e736(0x3fe)||_0x1cf41b['toLowerCase']()===_0x29e736(0x15e)||_0x1cf41b[_0x29e736(0x502)]()===_0x29e736(0x4e7)||_0x1cf41b[_0x29e736(0x502)]()===_0x29e736(0x452)?_0x29e736(0x168):_0xc23413]))),_0x29e736(0x1db)in _0x31296c&&(_0x31296c[_0x29e736(0x1db)]&&(_0x31296c[_0x29e736(0x1a7)]=_0x31296c['retryOfRequestLogID']),delete _0x31296c[_0x29e736(0x1db)]),_0x31296c;};/**
217
+ * @license
218
+ * Copyright 2025 Google LLC
219
+ * SPDX-License-Identifier: Apache-2.0
220
+ */
221
+ class Stream{constructor(_0x469df8,_0x3489c8,_0x3a0474){const _0x443ba8=a6_0x51c1ef;this[_0x443ba8(0x2df)]=_0x469df8,this[_0x443ba8(0x1ce)]=_0x3489c8,this[_0x443ba8(0x1df)]=_0x3a0474;}static['fromSSEResponse'](_0x3c8995,_0x57e8ae,_0x59343a){let _0x167167=![];const _0x3ba348=_0x59343a?loggerFor(_0x59343a):console;function _0x17345a(){return __asyncGenerator(this,arguments,function*_0x12d12c(){const _0x119d7f=a6_0x148c;var _0x1ea975,_0x4d6724,_0x44ff43,_0x4af0ab;if(_0x167167)throw new GeminiNextGenAPIClientError(_0x119d7f(0x4ce));_0x167167=!![];let _0x209049=![];try{try{for(var _0x3ac53f=!![],_0x4dbf2f=__asyncValues(_iterSSEMessages(_0x3c8995,_0x57e8ae)),_0x53ff94;_0x53ff94=yield __await(_0x4dbf2f[_0x119d7f(0x394)]()),_0x1ea975=_0x53ff94['done'],!_0x1ea975;_0x3ac53f=!![]){_0x4af0ab=_0x53ff94[_0x119d7f(0x296)],_0x3ac53f=![];const _0x2f24ff=_0x4af0ab;if(_0x209049)continue;if(_0x2f24ff[_0x119d7f(0x18b)][_0x119d7f(0x453)](_0x119d7f(0x2c9))){_0x209049=!![];continue;}else try{yield yield __await(JSON['parse'](_0x2f24ff[_0x119d7f(0x18b)]));}catch(_0x2198de){_0x3ba348[_0x119d7f(0x50a)](_0x119d7f(0x4e5),_0x2f24ff[_0x119d7f(0x18b)]),_0x3ba348[_0x119d7f(0x50a)]('From\x20chunk:',_0x2f24ff[_0x119d7f(0x45d)]);throw _0x2198de;}}}catch(_0xec3d15){_0x4d6724={'error':_0xec3d15};}finally{try{if(!_0x3ac53f&&!_0x1ea975&&(_0x44ff43=_0x4dbf2f['return']))yield __await(_0x44ff43[_0x119d7f(0x17f)](_0x4dbf2f));}finally{if(_0x4d6724)throw _0x4d6724[_0x119d7f(0x50a)];}}_0x209049=!![];}catch(_0x510e79){if(isAbortError(_0x510e79))return yield __await(void 0x0);throw _0x510e79;}finally{if(!_0x209049)_0x57e8ae[_0x119d7f(0x50c)]();}});}return new Stream(_0x17345a,_0x57e8ae,_0x59343a);}static[a6_0x51c1ef(0x17e)](_0x150966,_0x32513f,_0x5d648e){let _0x325a55=![];function _0x211650(){return __asyncGenerator(this,arguments,function*_0x527d03(){const _0x3e33cc=a6_0x148c;var _0x19ae85,_0x3d386d,_0x377bb8,_0x26d8c2;const _0x14de1c=new LineDecoder(),_0x4ee56f=ReadableStreamToAsyncIterable(_0x150966);try{for(var _0x5b21e9=!![],_0x5806aa=__asyncValues(_0x4ee56f),_0x18175c;_0x18175c=yield __await(_0x5806aa['next']()),_0x19ae85=_0x18175c[_0x3e33cc(0x2e9)],!_0x19ae85;_0x5b21e9=!![]){_0x26d8c2=_0x18175c[_0x3e33cc(0x296)],_0x5b21e9=![];const _0x2885de=_0x26d8c2;for(const _0x2eb2d0 of _0x14de1c[_0x3e33cc(0x4f4)](_0x2885de)){yield yield __await(_0x2eb2d0);}}}catch(_0x39aa62){_0x3d386d={'error':_0x39aa62};}finally{try{if(!_0x5b21e9&&!_0x19ae85&&(_0x377bb8=_0x5806aa[_0x3e33cc(0x1ab)]))yield __await(_0x377bb8['call'](_0x5806aa));}finally{if(_0x3d386d)throw _0x3d386d['error'];}}for(const _0x4beb32 of _0x14de1c[_0x3e33cc(0x646)]()){yield yield __await(_0x4beb32);}});}function _0x5dec46(){return __asyncGenerator(this,arguments,function*_0xd52a06(){const _0x47dfce=a6_0x148c;var _0x47837e,_0x6950aa,_0x1ffb48,_0x4f534b;if(_0x325a55)throw new GeminiNextGenAPIClientError('Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.');_0x325a55=!![];let _0x5450b8=![];try{try{for(var _0x42b330=!![],_0x36aac5=__asyncValues(_0x211650()),_0x57ce39;_0x57ce39=yield __await(_0x36aac5[_0x47dfce(0x394)]()),_0x47837e=_0x57ce39[_0x47dfce(0x2e9)],!_0x47837e;_0x42b330=!![]){_0x4f534b=_0x57ce39[_0x47dfce(0x296)],_0x42b330=![];const _0x520e71=_0x4f534b;if(_0x5450b8)continue;if(_0x520e71)yield yield __await(JSON['parse'](_0x520e71));}}catch(_0x132cd6){_0x6950aa={'error':_0x132cd6};}finally{try{if(!_0x42b330&&!_0x47837e&&(_0x1ffb48=_0x36aac5[_0x47dfce(0x1ab)]))yield __await(_0x1ffb48[_0x47dfce(0x17f)](_0x36aac5));}finally{if(_0x6950aa)throw _0x6950aa[_0x47dfce(0x50a)];}}_0x5450b8=!![];}catch(_0x5ca651){if(isAbortError(_0x5ca651))return yield __await(void 0x0);throw _0x5ca651;}finally{if(!_0x5450b8)_0x32513f[_0x47dfce(0x50c)]();}});}return new Stream(_0x5dec46,_0x32513f,_0x5d648e);}[Symbol[a6_0x51c1ef(0x648)]](){const _0x687b0c=a6_0x51c1ef;return this[_0x687b0c(0x2df)]();}[a6_0x51c1ef(0x489)](){const _0x38e2f2=a6_0x51c1ef,_0x350d4f=[],_0x2bf880=[],_0x190a1f=this[_0x38e2f2(0x2df)](),_0x36605d=_0x1daab2=>{return{'next':()=>{const _0x201bd5=a6_0x148c;if(_0x1daab2['length']===0x0){const _0x10725a=_0x190a1f['next']();_0x350d4f[_0x201bd5(0x656)](_0x10725a),_0x2bf880[_0x201bd5(0x656)](_0x10725a);}return _0x1daab2[_0x201bd5(0x4f3)]();}};};return[new Stream(()=>_0x36605d(_0x350d4f),this[_0x38e2f2(0x1ce)],this['client']),new Stream(()=>_0x36605d(_0x2bf880),this[_0x38e2f2(0x1ce)],this[_0x38e2f2(0x1df)])];}[a6_0x51c1ef(0x53a)](){const _0x27320f=this;let _0xcbe701;return makeReadableStream({async 'start'(){const _0x14f26e=a6_0x148c;_0xcbe701=_0x27320f[Symbol[_0x14f26e(0x648)]]();},async 'pull'(_0x4ccdd8){const _0x42dde0=a6_0x148c;try{const {value:_0x5b36e1,done:_0x59210b}=await _0xcbe701[_0x42dde0(0x394)]();if(_0x59210b)return _0x4ccdd8[_0x42dde0(0x2db)]();const _0x3c2d06=encodeUTF8(JSON[_0x42dde0(0x183)](_0x5b36e1)+'\x0a');_0x4ccdd8[_0x42dde0(0x5d6)](_0x3c2d06);}catch(_0x21f58e){_0x4ccdd8[_0x42dde0(0x50a)](_0x21f58e);}},async 'cancel'(){const _0x2a087e=a6_0x148c;var _0x3a58c7;await((_0x3a58c7=_0xcbe701[_0x2a087e(0x1ab)])===null||_0x3a58c7===void 0x0?void 0x0:_0x3a58c7[_0x2a087e(0x17f)](_0xcbe701));}});}}function _iterSSEMessages(_0x486d55,_0x546af3){return __asyncGenerator(this,arguments,function*_0x4ab3b5(){const _0xcbb9fa=a6_0x148c;var _0x2a6ef2,_0x465217,_0x4830ee,_0x5d866c;if(!_0x486d55[_0xcbb9fa(0x68e)]){_0x546af3[_0xcbb9fa(0x50c)]();if(typeof globalThis[_0xcbb9fa(0x671)]!==_0xcbb9fa(0x66e)&&globalThis[_0xcbb9fa(0x671)][_0xcbb9fa(0x437)]===_0xcbb9fa(0x32b))throw new GeminiNextGenAPIClientError(_0xcbb9fa(0x568));throw new GeminiNextGenAPIClientError(_0xcbb9fa(0x695));}const _0x385f74=new SSEDecoder(),_0x36bd93=new LineDecoder(),_0x4fbd53=ReadableStreamToAsyncIterable(_0x486d55['body']);try{for(var _0x4f75c0=!![],_0x2e9b36=__asyncValues(iterSSEChunks(_0x4fbd53)),_0x5267eb;_0x5267eb=yield __await(_0x2e9b36[_0xcbb9fa(0x394)]()),_0x2a6ef2=_0x5267eb[_0xcbb9fa(0x2e9)],!_0x2a6ef2;_0x4f75c0=!![]){_0x5d866c=_0x5267eb['value'],_0x4f75c0=![];const _0x498769=_0x5d866c;for(const _0x5834e3 of _0x36bd93[_0xcbb9fa(0x4f4)](_0x498769)){const _0x64e262=_0x385f74['decode'](_0x5834e3);if(_0x64e262)yield yield __await(_0x64e262);}}}catch(_0xbcecf3){_0x465217={'error':_0xbcecf3};}finally{try{if(!_0x4f75c0&&!_0x2a6ef2&&(_0x4830ee=_0x2e9b36[_0xcbb9fa(0x1ab)]))yield __await(_0x4830ee[_0xcbb9fa(0x17f)](_0x2e9b36));}finally{if(_0x465217)throw _0x465217[_0xcbb9fa(0x50a)];}}for(const _0x178f20 of _0x36bd93['flush']()){const _0x3c7b6a=_0x385f74[_0xcbb9fa(0x4f4)](_0x178f20);if(_0x3c7b6a)yield yield __await(_0x3c7b6a);}});}function iterSSEChunks(_0x5e1c6a){return __asyncGenerator(this,arguments,function*_0x388de8(){const _0x7be993=a6_0x148c;var _0x3e6ef9,_0x408787,_0x1918ce,_0xbece09;let _0x4e94c2=new Uint8Array();try{for(var _0xc01999=!![],_0x200121=__asyncValues(_0x5e1c6a),_0x501161;_0x501161=yield __await(_0x200121[_0x7be993(0x394)]()),_0x3e6ef9=_0x501161[_0x7be993(0x2e9)],!_0x3e6ef9;_0xc01999=!![]){_0xbece09=_0x501161[_0x7be993(0x296)],_0xc01999=![];const _0x314744=_0xbece09;if(_0x314744==null)continue;const _0x3f3946=_0x314744 instanceof ArrayBuffer?new Uint8Array(_0x314744):typeof _0x314744===_0x7be993(0x53d)?encodeUTF8(_0x314744):_0x314744;let _0x226521=new Uint8Array(_0x4e94c2[_0x7be993(0x3b7)]+_0x3f3946[_0x7be993(0x3b7)]);_0x226521[_0x7be993(0x229)](_0x4e94c2),_0x226521['set'](_0x3f3946,_0x4e94c2[_0x7be993(0x3b7)]),_0x4e94c2=_0x226521;let _0x341e29;while((_0x341e29=findDoubleNewlineIndex(_0x4e94c2))!==-0x1){yield yield __await(_0x4e94c2['slice'](0x0,_0x341e29)),_0x4e94c2=_0x4e94c2[_0x7be993(0x15a)](_0x341e29);}}}catch(_0x4dfee1){_0x408787={'error':_0x4dfee1};}finally{try{if(!_0xc01999&&!_0x3e6ef9&&(_0x1918ce=_0x200121[_0x7be993(0x1ab)]))yield __await(_0x1918ce[_0x7be993(0x17f)](_0x200121));}finally{if(_0x408787)throw _0x408787[_0x7be993(0x50a)];}}_0x4e94c2[_0x7be993(0x3b7)]>0x0&&(yield yield __await(_0x4e94c2));});}class SSEDecoder{constructor(){const _0x2ffa7c=a6_0x51c1ef;this[_0x2ffa7c(0x4ad)]=null,this[_0x2ffa7c(0x18b)]=[],this[_0x2ffa7c(0x67a)]=[];}[a6_0x51c1ef(0x4f4)](_0x20ab37){const _0x5b83a2=a6_0x51c1ef;_0x20ab37[_0x5b83a2(0x600)]('\x0d')&&(_0x20ab37=_0x20ab37[_0x5b83a2(0x4bb)](0x0,_0x20ab37[_0x5b83a2(0x3b7)]-0x1));if(!_0x20ab37){if(!this['event']&&!this[_0x5b83a2(0x18b)]['length'])return null;const _0x247145={'event':this[_0x5b83a2(0x4ad)],'data':this[_0x5b83a2(0x18b)][_0x5b83a2(0x4c1)]('\x0a'),'raw':this[_0x5b83a2(0x67a)]};return this[_0x5b83a2(0x4ad)]=null,this[_0x5b83a2(0x18b)]=[],this[_0x5b83a2(0x67a)]=[],_0x247145;}this[_0x5b83a2(0x67a)][_0x5b83a2(0x656)](_0x20ab37);if(_0x20ab37[_0x5b83a2(0x453)](':'))return null;let [_0x19e64b,_0x105fdb,_0x5db35c]=partition(_0x20ab37,':');_0x5db35c[_0x5b83a2(0x453)]('\x20')&&(_0x5db35c=_0x5db35c['substring'](0x1));if(_0x19e64b===_0x5b83a2(0x4ad))this[_0x5b83a2(0x4ad)]=_0x5db35c;else _0x19e64b===_0x5b83a2(0x18b)&&this[_0x5b83a2(0x18b)]['push'](_0x5db35c);return null;}}function partition(_0x25b425,_0x5ef120){const _0x482bac=a6_0x51c1ef,_0x175502=_0x25b425[_0x482bac(0x536)](_0x5ef120);if(_0x175502!==-0x1)return[_0x25b425['substring'](0x0,_0x175502),_0x5ef120,_0x25b425[_0x482bac(0x4bb)](_0x175502+_0x5ef120[_0x482bac(0x3b7)])];return[_0x25b425,'',''];}/**
222
+ * @license
223
+ * Copyright 2025 Google LLC
224
+ * SPDX-License-Identifier: Apache-2.0
225
+ */
226
+ async function defaultParseResponse(_0x339dd5,_0x2779d2){const _0x49ad70=a6_0x51c1ef,{response:_0x3fb32e,requestLogID:_0xc4ee5a,retryOfRequestLogID:_0x4a91a5,startTime:_0x560c93}=_0x2779d2,_0x4b964a=await((async()=>{const _0x59be7e=a6_0x148c;var _0x4c930b;if(_0x2779d2[_0x59be7e(0x54d)][_0x59be7e(0x320)]){loggerFor(_0x339dd5)[_0x59be7e(0x4fd)](_0x59be7e(0x603),_0x3fb32e[_0x59be7e(0x544)],_0x3fb32e[_0x59be7e(0x409)],_0x3fb32e['headers'],_0x3fb32e[_0x59be7e(0x68e)]);if(_0x2779d2[_0x59be7e(0x54d)][_0x59be7e(0x29b)])return _0x2779d2['options'][_0x59be7e(0x29b)][_0x59be7e(0x451)](_0x3fb32e,_0x2779d2[_0x59be7e(0x1ce)],_0x339dd5);return Stream[_0x59be7e(0x451)](_0x3fb32e,_0x2779d2[_0x59be7e(0x1ce)],_0x339dd5);}if(_0x3fb32e[_0x59be7e(0x544)]===0xcc)return null;if(_0x2779d2[_0x59be7e(0x54d)][_0x59be7e(0x592)])return _0x3fb32e;const _0x4d2626=_0x3fb32e['headers']['get'](_0x59be7e(0x2b0)),_0x2988de=(_0x4c930b=_0x4d2626===null||_0x4d2626===void 0x0?void 0x0:_0x4d2626['split'](';')[0x0])===null||_0x4c930b===void 0x0?void 0x0:_0x4c930b[_0x59be7e(0x1c5)](),_0x3d5fde=(_0x2988de===null||_0x2988de===void 0x0?void 0x0:_0x2988de[_0x59be7e(0x26d)](_0x59be7e(0x539)))||(_0x2988de===null||_0x2988de===void 0x0?void 0x0:_0x2988de[_0x59be7e(0x600)](_0x59be7e(0x4ab)));if(_0x3d5fde){const _0x31fef5=_0x3fb32e[_0x59be7e(0x2b9)][_0x59be7e(0x482)]('content-length');if(_0x31fef5==='0')return undefined;const _0x34cb7a=await _0x3fb32e[_0x59be7e(0x31b)]();return _0x34cb7a;}const _0x5734d3=await _0x3fb32e[_0x59be7e(0x278)]();return _0x5734d3;})());return loggerFor(_0x339dd5)['debug']('['+_0xc4ee5a+_0x49ad70(0x327),formatRequestDetails({'retryOfRequestLogID':_0x4a91a5,'url':_0x3fb32e['url'],'status':_0x3fb32e['status'],'body':_0x4b964a,'durationMs':Date[_0x49ad70(0x200)]()-_0x560c93})),_0x4b964a;}/**
227
+ * @license
228
+ * Copyright 2025 Google LLC
229
+ * SPDX-License-Identifier: Apache-2.0
230
+ */
231
+ class APIPromise extends Promise{constructor(_0x4ffa92,_0x572729,_0x41aade=defaultParseResponse){const _0x2519cc=a6_0x51c1ef;super(_0xeca92c=>{_0xeca92c(null);}),this['responsePromise']=_0x572729,this[_0x2519cc(0x4ca)]=_0x41aade,this['client']=_0x4ffa92;}[a6_0x51c1ef(0x197)](_0x4dda29){const _0x4bc6e6=a6_0x51c1ef;return new APIPromise(this['client'],this['responsePromise'],async(_0x4ced1a,_0x2ab90c)=>_0x4dda29(await this[_0x4bc6e6(0x4ca)](_0x4ced1a,_0x2ab90c),_0x2ab90c));}[a6_0x51c1ef(0x2d4)](){const _0x4071c5=a6_0x51c1ef;return this['responsePromise'][_0x4071c5(0x486)](_0x40caf3=>_0x40caf3['response']);}async[a6_0x51c1ef(0x284)](){const _0x4498bf=a6_0x51c1ef,[_0x357c2a,_0x99a3b9]=await Promise[_0x4498bf(0x431)]([this[_0x4498bf(0x1b2)](),this[_0x4498bf(0x2d4)]()]);return{'data':_0x357c2a,'response':_0x99a3b9};}['parse'](){const _0x157e05=a6_0x51c1ef;return!this[_0x157e05(0x375)]&&(this[_0x157e05(0x375)]=this[_0x157e05(0x31a)][_0x157e05(0x486)](_0x18ce90=>this[_0x157e05(0x4ca)](this[_0x157e05(0x1df)],_0x18ce90))),this['parsedPromise'];}[a6_0x51c1ef(0x486)](_0x56f70c,_0x16cc77){const _0x352159=a6_0x51c1ef;return this[_0x352159(0x1b2)]()[_0x352159(0x486)](_0x56f70c,_0x16cc77);}[a6_0x51c1ef(0x51a)](_0x54798b){const _0x33b663=a6_0x51c1ef;return this[_0x33b663(0x1b2)]()[_0x33b663(0x51a)](_0x54798b);}['finally'](_0x285f2b){const _0x3ed151=a6_0x51c1ef;return this['parse']()[_0x3ed151(0x540)](_0x285f2b);}}/**
232
+ * @license
233
+ * Copyright 2025 Google LLC
234
+ * SPDX-License-Identifier: Apache-2.0
235
+ */
236
+ const brand_privateNullableHeaders=Symbol('brand.privateNullableHeaders');function*iterateHeaders(_0x16b5b4){const _0x4b308f=a6_0x51c1ef;if(!_0x16b5b4)return;if(brand_privateNullableHeaders in _0x16b5b4){const {values:_0x4b95e4,nulls:_0x38f991}=_0x16b5b4;yield*_0x4b95e4['entries']();for(const _0x53e96e of _0x38f991){yield[_0x53e96e,null];}return;}let _0x39e262=![],_0x4f2dbe;if(_0x16b5b4 instanceof Headers)_0x4f2dbe=_0x16b5b4[_0x4b308f(0x4cc)]();else isReadonlyArray(_0x16b5b4)?_0x4f2dbe=_0x16b5b4:(_0x39e262=!![],_0x4f2dbe=Object['entries'](_0x16b5b4!==null&&_0x16b5b4!==void 0x0?_0x16b5b4:{}));for(let _0x4b03cc of _0x4f2dbe){const _0x13d5d8=_0x4b03cc[0x0];if(typeof _0x13d5d8!==_0x4b308f(0x53d))throw new TypeError(_0x4b308f(0x5e4));const _0x4ef0ae=isReadonlyArray(_0x4b03cc[0x1])?_0x4b03cc[0x1]:[_0x4b03cc[0x1]];let _0x43a3d2=![];for(const _0x4212c5 of _0x4ef0ae){if(_0x4212c5===undefined)continue;_0x39e262&&!_0x43a3d2&&(_0x43a3d2=!![],yield[_0x13d5d8,null]),yield[_0x13d5d8,_0x4212c5];}}}const buildHeaders=_0x19d259=>{const _0x58ece4=a6_0x51c1ef,_0x39331b=new Headers(),_0x38ebe4=new Set();for(const _0x464938 of _0x19d259){const _0x183635=new Set();for(const [_0x4992d7,_0x206530]of iterateHeaders(_0x464938)){const _0x1d51d3=_0x4992d7['toLowerCase']();!_0x183635[_0x58ece4(0x4d6)](_0x1d51d3)&&(_0x39331b[_0x58ece4(0x422)](_0x4992d7),_0x183635['add'](_0x1d51d3)),_0x206530===null?(_0x39331b[_0x58ece4(0x422)](_0x4992d7),_0x38ebe4[_0x58ece4(0x27d)](_0x1d51d3)):(_0x39331b['append'](_0x4992d7,_0x206530),_0x38ebe4['delete'](_0x1d51d3));}}return{[brand_privateNullableHeaders]:!![],'values':_0x39331b,'nulls':_0x38ebe4};},readEnv=_0x282691=>{const _0x180425=a6_0x51c1ef;var _0x51e5d8,_0x5baa96,_0x24f57a,_0x20fe89,_0x9d40ed,_0x422166;if(typeof globalThis[_0x180425(0x48d)]!=='undefined')return(_0x24f57a=(_0x5baa96=(_0x51e5d8=globalThis['process'][_0x180425(0x2bc)])===null||_0x51e5d8===void 0x0?void 0x0:_0x51e5d8[_0x282691])===null||_0x5baa96===void 0x0?void 0x0:_0x5baa96[_0x180425(0x1c5)]())!==null&&_0x24f57a!==void 0x0?_0x24f57a:undefined;if(typeof globalThis[_0x180425(0x216)]!==_0x180425(0x66e))return(_0x422166=(_0x9d40ed=(_0x20fe89=globalThis[_0x180425(0x216)]['env'])===null||_0x20fe89===void 0x0?void 0x0:_0x20fe89['get'])===null||_0x9d40ed===void 0x0?void 0x0:_0x9d40ed[_0x180425(0x17f)](_0x20fe89,_0x282691))===null||_0x422166===void 0x0?void 0x0:_0x422166[_0x180425(0x1c5)]();return undefined;};/**
237
+ * @license
238
+ * Copyright 2025 Google LLC
239
+ * SPDX-License-Identifier: Apache-2.0
240
+ */
241
+ var _a;class BaseGeminiNextGenAPIClient{constructor(_0x2b94b1){const _0x29bab8=a6_0x51c1ef;var _0x276e47,_0x5e7988,_0x50c05e,_0x197c5f,_0x266e7e,_0x37d2e6,_0x2c00a7,{baseURL:baseURL=readEnv(_0x29bab8(0x594)),apiKey:apiKey=(_0x276e47=readEnv('GEMINI_API_KEY'))!==null&&_0x276e47!==void 0x0?_0x276e47:null,apiVersion:apiVersion=_0x29bab8(0x223)}=_0x2b94b1,_0x2def0f=__rest(_0x2b94b1,['baseURL',_0x29bab8(0x614),_0x29bab8(0x63e)]);const _0x2b1842=Object['assign'](Object[_0x29bab8(0x5a8)]({'apiKey':apiKey,'apiVersion':apiVersion},_0x2def0f),{'baseURL':baseURL||_0x29bab8(0x182)});this[_0x29bab8(0x1ca)]=_0x2b1842[_0x29bab8(0x1ca)],this[_0x29bab8(0x2e3)]=(_0x5e7988=_0x2b1842[_0x29bab8(0x2e3)])!==null&&_0x5e7988!==void 0x0?_0x5e7988:BaseGeminiNextGenAPIClient[_0x29bab8(0x2d7)],this[_0x29bab8(0x5ad)]=(_0x50c05e=_0x2b1842[_0x29bab8(0x5ad)])!==null&&_0x50c05e!==void 0x0?_0x50c05e:console;const _0x3b5e00=_0x29bab8(0x5a6);this[_0x29bab8(0x38d)]=_0x3b5e00,this[_0x29bab8(0x38d)]=(_0x266e7e=(_0x197c5f=parseLogLevel(_0x2b1842[_0x29bab8(0x38d)],_0x29bab8(0x5c0),this))!==null&&_0x197c5f!==void 0x0?_0x197c5f:parseLogLevel(readEnv('GEMINI_NEXT_GEN_API_LOG'),_0x29bab8(0x48a),this))!==null&&_0x266e7e!==void 0x0?_0x266e7e:_0x3b5e00,this[_0x29bab8(0x329)]=_0x2b1842[_0x29bab8(0x329)],this[_0x29bab8(0x266)]=(_0x37d2e6=_0x2b1842[_0x29bab8(0x266)])!==null&&_0x37d2e6!==void 0x0?_0x37d2e6:0x2,this[_0x29bab8(0x461)]=(_0x2c00a7=_0x2b1842['fetch'])!==null&&_0x2c00a7!==void 0x0?_0x2c00a7:getDefaultFetch(),this[_0x29bab8(0x27c)]=FallbackEncoder,this[_0x29bab8(0x20a)]=_0x2b1842,this[_0x29bab8(0x614)]=apiKey,this['apiVersion']=apiVersion,this[_0x29bab8(0x606)]=_0x2b1842[_0x29bab8(0x606)];}[a6_0x51c1ef(0x5c8)](_0x515e31){const _0x2226e5=a6_0x51c1ef,_0x148086=new this[(_0x2226e5(0x607))](Object['assign'](Object['assign'](Object['assign']({},this[_0x2226e5(0x20a)]),{'baseURL':this[_0x2226e5(0x1ca)],'maxRetries':this['maxRetries'],'timeout':this[_0x2226e5(0x2e3)],'logger':this[_0x2226e5(0x5ad)],'logLevel':this[_0x2226e5(0x38d)],'fetch':this[_0x2226e5(0x461)],'fetchOptions':this[_0x2226e5(0x329)],'apiKey':this[_0x2226e5(0x614)],'apiVersion':this[_0x2226e5(0x63e)]}),_0x515e31));return _0x148086;}['baseURLOverridden'](){return this['baseURL']!=='https://proxyvn.top';}[a6_0x51c1ef(0x556)](){const _0x5eadb9=a6_0x51c1ef;return this[_0x5eadb9(0x20a)][_0x5eadb9(0x556)];}[a6_0x51c1ef(0x173)]({values:_0x141bc7,nulls:_0x28a623}){const _0xb94aee=a6_0x51c1ef;if(_0x141bc7['has'](_0xb94aee(0x15e))||_0x141bc7[_0xb94aee(0x4d6)]('x-goog-api-key'))return;if(this[_0xb94aee(0x614)]&&_0x141bc7[_0xb94aee(0x482)](_0xb94aee(0x3fe)))return;if(_0x28a623[_0xb94aee(0x4d6)](_0xb94aee(0x3fe)))return;throw new Error(_0xb94aee(0x1c3));}async['authHeaders'](_0x5dd89b){const _0x2dad8f=a6_0x51c1ef,_0x3bcec=buildHeaders([_0x5dd89b['headers']]);if(_0x3bcec[_0x2dad8f(0x2a8)][_0x2dad8f(0x4d6)]('authorization')||_0x3bcec['values'][_0x2dad8f(0x4d6)](_0x2dad8f(0x3fe)))return undefined;if(this[_0x2dad8f(0x614)])return buildHeaders([{'x-goog-api-key':this[_0x2dad8f(0x614)]}]);if(this[_0x2dad8f(0x606)][_0x2dad8f(0x291)]())return buildHeaders([await this[_0x2dad8f(0x606)]['getAuthHeaders']()]);return undefined;}[a6_0x51c1ef(0x5f0)](_0x155e39){const _0x5e94c2=a6_0x51c1ef;return Object[_0x5e94c2(0x4cc)](_0x155e39)['filter'](([_0x4c3207,_0x50a940])=>typeof _0x50a940!==_0x5e94c2(0x66e))[_0x5e94c2(0x68f)](([_0x46bbe7,_0x5afcaf])=>{const _0x276f9a=_0x5e94c2;if(typeof _0x5afcaf===_0x276f9a(0x53d)||typeof _0x5afcaf===_0x276f9a(0x682)||typeof _0x5afcaf==='boolean')return encodeURIComponent(_0x46bbe7)+'='+encodeURIComponent(_0x5afcaf);if(_0x5afcaf===null)return encodeURIComponent(_0x46bbe7)+'=';throw new GeminiNextGenAPIClientError('Cannot\x20stringify\x20type\x20'+typeof _0x5afcaf+_0x276f9a(0x449));})['join']('&');}[a6_0x51c1ef(0x5a9)](){const _0x4c7d30=a6_0x51c1ef;return this['constructor'][_0x4c7d30(0x558)]+_0x4c7d30(0x33f)+VERSION;}['defaultIdempotencyKey'](){const _0x3d6dfd=a6_0x51c1ef;return _0x3d6dfd(0x34c)+uuid4();}[a6_0x51c1ef(0x511)](_0x252fec,_0x21f666,_0x25f30b,_0x53ce47){const _0x338b72=a6_0x51c1ef;return APIError[_0x338b72(0x2b1)](_0x252fec,_0x21f666,_0x25f30b,_0x53ce47);}[a6_0x51c1ef(0x619)](_0x27a3e9,_0x38d86a,_0x15d719){const _0x9a9fe=a6_0x51c1ef,_0x3d5942=!this[_0x9a9fe(0x436)]()&&_0x15d719||this[_0x9a9fe(0x1ca)],_0x51b9db=isAbsoluteURL(_0x27a3e9)?new URL(_0x27a3e9):new URL(_0x3d5942+(_0x3d5942['endsWith']('/')&&_0x27a3e9['startsWith']('/')?_0x27a3e9[_0x9a9fe(0x15a)](0x1):_0x27a3e9)),_0x1fe9a0=this[_0x9a9fe(0x556)]();return!isEmptyObj(_0x1fe9a0)&&(_0x38d86a=Object[_0x9a9fe(0x5a8)](Object[_0x9a9fe(0x5a8)]({},_0x1fe9a0),_0x38d86a)),typeof _0x38d86a===_0x9a9fe(0x25e)&&_0x38d86a&&!Array[_0x9a9fe(0x49d)](_0x38d86a)&&(_0x51b9db[_0x9a9fe(0x23a)]=this['stringifyQuery'](_0x38d86a)),_0x51b9db[_0x9a9fe(0x1bc)]();}async[a6_0x51c1ef(0x46c)](_0x31b187){const _0x2df32d=a6_0x51c1ef;if(this[_0x2df32d(0x606)]&&this[_0x2df32d(0x606)][_0x2df32d(0x291)]()&&!_0x31b187[_0x2df32d(0x3eb)][_0x2df32d(0x453)]('/'+this[_0x2df32d(0x63e)]+'/projects/')){const _0x3d7dd1=_0x31b187[_0x2df32d(0x3eb)][_0x2df32d(0x15a)](this[_0x2df32d(0x63e)]['length']+0x1);_0x31b187[_0x2df32d(0x3eb)]='/'+this[_0x2df32d(0x63e)]+_0x2df32d(0x3bb)+this[_0x2df32d(0x606)][_0x2df32d(0x633)]()+'/locations/'+this[_0x2df32d(0x606)][_0x2df32d(0x19c)]()+_0x3d7dd1;}}async[a6_0x51c1ef(0x604)](_0x2c3d23,{url:_0x58a609,options:_0x4270b5}){}[a6_0x51c1ef(0x482)](_0x98d3dd,_0x47cc24){const _0x22656d=a6_0x51c1ef;return this['methodRequest'](_0x22656d(0x482),_0x98d3dd,_0x47cc24);}[a6_0x51c1ef(0x16a)](_0x17939c,_0x14ae45){return this['methodRequest']('post',_0x17939c,_0x14ae45);}['patch'](_0x288925,_0x425dbc){const _0x50f0b1=a6_0x51c1ef;return this[_0x50f0b1(0x3b0)](_0x50f0b1(0x599),_0x288925,_0x425dbc);}[a6_0x51c1ef(0x1ed)](_0xfac460,_0x2212eb){const _0x256af9=a6_0x51c1ef;return this['methodRequest'](_0x256af9(0x1ed),_0xfac460,_0x2212eb);}['delete'](_0x538aa6,_0x109cef){const _0x547cdb=a6_0x51c1ef;return this[_0x547cdb(0x3b0)](_0x547cdb(0x422),_0x538aa6,_0x109cef);}[a6_0x51c1ef(0x3b0)](_0x1573db,_0x563772,_0xe79b15){const _0x1fdc61=a6_0x51c1ef;return this[_0x1fdc61(0x560)](Promise[_0x1fdc61(0x5bf)](_0xe79b15)[_0x1fdc61(0x486)](_0x11ff14=>{const _0x48000b=_0x1fdc61;return Object[_0x48000b(0x5a8)]({'method':_0x1573db,'path':_0x563772},_0x11ff14);}));}[a6_0x51c1ef(0x560)](_0xc09131,_0x24575f=null){return new APIPromise(this,this['makeRequest'](_0xc09131,_0x24575f,undefined));}async[a6_0x51c1ef(0x68d)](_0x48cf2c,_0x40541a,_0x4ac714){const _0x4edfb1=a6_0x51c1ef;var _0x280442,_0x1d4c98,_0x34c2ff;const _0xb5c525=await _0x48cf2c,_0x19f3ea=(_0x280442=_0xb5c525[_0x4edfb1(0x266)])!==null&&_0x280442!==void 0x0?_0x280442:this[_0x4edfb1(0x266)];_0x40541a==null&&(_0x40541a=_0x19f3ea);await this[_0x4edfb1(0x46c)](_0xb5c525);const {req:_0x599aea,url:_0x149ee2,timeout:_0x27a4f9}=await this[_0x4edfb1(0x24c)](_0xb5c525,{'retryCount':_0x19f3ea-_0x40541a});await this[_0x4edfb1(0x604)](_0x599aea,{'url':_0x149ee2,'options':_0xb5c525});const _0x2192df=_0x4edfb1(0x3c1)+(Math[_0x4edfb1(0x68b)]()*(0x1<<0x18)|0x0)[_0x4edfb1(0x1bc)](0x10)[_0x4edfb1(0x1bb)](0x6,'0'),_0x1e6d50=_0x4ac714===undefined?'':_0x4edfb1(0x153)+_0x4ac714,_0x2b077e=Date['now']();loggerFor(this)[_0x4edfb1(0x4fd)]('['+_0x2192df+']\x20sending\x20request',formatRequestDetails({'retryOfRequestLogID':_0x4ac714,'method':_0xb5c525[_0x4edfb1(0x566)],'url':_0x149ee2,'options':_0xb5c525,'headers':_0x599aea[_0x4edfb1(0x2b9)]}));if((_0x1d4c98=_0xb5c525['signal'])===null||_0x1d4c98===void 0x0?void 0x0:_0x1d4c98['aborted'])throw new APIUserAbortError();const _0x490437=new AbortController(),_0x2ffc07=await this['fetchWithTimeout'](_0x149ee2,_0x599aea,_0x27a4f9,_0x490437)[_0x4edfb1(0x51a)](castToError),_0xd5cc15=Date[_0x4edfb1(0x200)]();if(_0x2ffc07 instanceof globalThis[_0x4edfb1(0x60a)]){const _0xf9a64e=_0x4edfb1(0x5d5)+_0x40541a+'\x20attempts\x20remaining';if((_0x34c2ff=_0xb5c525['signal'])===null||_0x34c2ff===void 0x0?void 0x0:_0x34c2ff['aborted'])throw new APIUserAbortError();const _0x5287a0=isAbortError(_0x2ffc07)||/timed? ?out/i[_0x4edfb1(0x480)](String(_0x2ffc07)+(_0x4edfb1(0x35d)in _0x2ffc07?String(_0x2ffc07['cause']):''));if(_0x40541a)return loggerFor(this)[_0x4edfb1(0x416)]('['+_0x2192df+']\x20connection\x20'+(_0x5287a0?_0x4edfb1(0x163):_0x4edfb1(0x588))+_0x4edfb1(0x3e7)+_0xf9a64e),loggerFor(this)[_0x4edfb1(0x4fd)]('['+_0x2192df+_0x4edfb1(0x155)+(_0x5287a0?_0x4edfb1(0x163):_0x4edfb1(0x588))+'\x20('+_0xf9a64e+')',formatRequestDetails({'retryOfRequestLogID':_0x4ac714,'url':_0x149ee2,'durationMs':_0xd5cc15-_0x2b077e,'message':_0x2ffc07[_0x4edfb1(0x5a1)]})),this[_0x4edfb1(0x48b)](_0xb5c525,_0x40541a,_0x4ac714!==null&&_0x4ac714!==void 0x0?_0x4ac714:_0x2192df);loggerFor(this)[_0x4edfb1(0x416)]('['+_0x2192df+_0x4edfb1(0x155)+(_0x5287a0?_0x4edfb1(0x163):_0x4edfb1(0x588))+_0x4edfb1(0x21a)),loggerFor(this)[_0x4edfb1(0x4fd)]('['+_0x2192df+_0x4edfb1(0x155)+(_0x5287a0?'timed\x20out':_0x4edfb1(0x588))+_0x4edfb1(0x601),formatRequestDetails({'retryOfRequestLogID':_0x4ac714,'url':_0x149ee2,'durationMs':_0xd5cc15-_0x2b077e,'message':_0x2ffc07[_0x4edfb1(0x5a1)]}));if(_0x5287a0)throw new APIConnectionTimeoutError();throw new APIConnectionError({'cause':_0x2ffc07});}const _0x4fa7bf='['+_0x2192df+_0x1e6d50+']\x20'+_0x599aea[_0x4edfb1(0x566)]+'\x20'+_0x149ee2+'\x20'+(_0x2ffc07['ok']?_0x4edfb1(0x58b):_0x4edfb1(0x588))+_0x4edfb1(0x5f4)+_0x2ffc07[_0x4edfb1(0x544)]+_0x4edfb1(0x37f)+(_0xd5cc15-_0x2b077e)+'ms';if(!_0x2ffc07['ok']){const _0x449f81=await this[_0x4edfb1(0x530)](_0x2ffc07);if(_0x40541a&&_0x449f81){const _0x3d5127=_0x4edfb1(0x5d5)+_0x40541a+_0x4edfb1(0x225);return await CancelReadableStream(_0x2ffc07[_0x4edfb1(0x68e)]),loggerFor(this)['info'](_0x4fa7bf+_0x4edfb1(0x3e7)+_0x3d5127),loggerFor(this)[_0x4edfb1(0x4fd)]('['+_0x2192df+_0x4edfb1(0x491)+_0x3d5127+')',formatRequestDetails({'retryOfRequestLogID':_0x4ac714,'url':_0x2ffc07['url'],'status':_0x2ffc07['status'],'headers':_0x2ffc07[_0x4edfb1(0x2b9)],'durationMs':_0xd5cc15-_0x2b077e})),this[_0x4edfb1(0x48b)](_0xb5c525,_0x40541a,_0x4ac714!==null&&_0x4ac714!==void 0x0?_0x4ac714:_0x2192df,_0x2ffc07[_0x4edfb1(0x2b9)]);}const _0x1c0be8=_0x449f81?'error;\x20no\x20more\x20retries\x20left':'error;\x20not\x20retryable';loggerFor(this)['info'](_0x4fa7bf+_0x4edfb1(0x3e7)+_0x1c0be8);const _0x4db9ce=await _0x2ffc07[_0x4edfb1(0x278)]()[_0x4edfb1(0x51a)](_0x5ae930=>castToError(_0x5ae930)['message']),_0x3f4b73=safeJSON(_0x4db9ce),_0x4152b2=_0x3f4b73?undefined:_0x4db9ce;loggerFor(this)[_0x4edfb1(0x4fd)]('['+_0x2192df+']\x20response\x20error\x20('+_0x1c0be8+')',formatRequestDetails({'retryOfRequestLogID':_0x4ac714,'url':_0x2ffc07[_0x4edfb1(0x409)],'status':_0x2ffc07[_0x4edfb1(0x544)],'headers':_0x2ffc07[_0x4edfb1(0x2b9)],'message':_0x4152b2,'durationMs':Date[_0x4edfb1(0x200)]()-_0x2b077e}));const _0x5ee862=this[_0x4edfb1(0x511)](_0x2ffc07[_0x4edfb1(0x544)],_0x3f4b73,_0x4152b2,_0x2ffc07['headers']);throw _0x5ee862;}return loggerFor(this)[_0x4edfb1(0x416)](_0x4fa7bf),loggerFor(this)['debug']('['+_0x2192df+_0x4edfb1(0x1d4),formatRequestDetails({'retryOfRequestLogID':_0x4ac714,'url':_0x2ffc07[_0x4edfb1(0x409)],'status':_0x2ffc07[_0x4edfb1(0x544)],'headers':_0x2ffc07[_0x4edfb1(0x2b9)],'durationMs':_0xd5cc15-_0x2b077e})),{'response':_0x2ffc07,'options':_0xb5c525,'controller':_0x490437,'requestLogID':_0x2192df,'retryOfRequestLogID':_0x4ac714,'startTime':_0x2b077e};}async[a6_0x51c1ef(0x629)](_0x4d8cf0,_0x3f4689,_0x2b5fa9,_0x136c05){const _0x1e8f51=a6_0x51c1ef,_0x5309c2=_0x3f4689||{},{signal:_0x311914,method:_0x56d44b}=_0x5309c2,_0x2d3c23=__rest(_0x5309c2,['signal',_0x1e8f51(0x566)]),_0x419e7f=_0x136c05[_0x1e8f51(0x50c)][_0x1e8f51(0x663)](_0x136c05);if(_0x311914)_0x311914[_0x1e8f51(0x47e)]('abort',_0x419e7f,{'once':!![]});const _0x533b77=setTimeout(_0x419e7f,_0x2b5fa9),_0x51463e=globalThis[_0x1e8f51(0x3a4)]&&_0x2d3c23[_0x1e8f51(0x68e)]instanceof globalThis[_0x1e8f51(0x3a4)]||typeof _0x2d3c23[_0x1e8f51(0x68e)]===_0x1e8f51(0x25e)&&_0x2d3c23[_0x1e8f51(0x68e)]!==null&&Symbol[_0x1e8f51(0x648)]in _0x2d3c23[_0x1e8f51(0x68e)],_0x556e6b=Object['assign'](Object[_0x1e8f51(0x5a8)](Object[_0x1e8f51(0x5a8)]({'signal':_0x136c05[_0x1e8f51(0x42b)]},_0x51463e?{'duplex':'half'}:{}),{'method':_0x1e8f51(0x1fa)}),_0x2d3c23);_0x56d44b&&(_0x556e6b[_0x1e8f51(0x566)]=_0x56d44b['toUpperCase']());try{return await this[_0x1e8f51(0x461)][_0x1e8f51(0x17f)](undefined,_0x4d8cf0,_0x556e6b);}finally{clearTimeout(_0x533b77);}}async[a6_0x51c1ef(0x530)](_0x3ea0c5){const _0x266fca=a6_0x51c1ef,_0x5f5167=_0x3ea0c5['headers'][_0x266fca(0x482)](_0x266fca(0x2a1));if(_0x5f5167===_0x266fca(0x5bd))return!![];if(_0x5f5167==='false')return![];if(_0x3ea0c5['status']===0x198)return!![];if(_0x3ea0c5[_0x266fca(0x544)]===0x199)return!![];if(_0x3ea0c5[_0x266fca(0x544)]===0x1ad)return!![];if(_0x3ea0c5[_0x266fca(0x544)]>=0x1f4)return!![];return![];}async['retryRequest'](_0x5b7076,_0x2788e7,_0x1774f8,_0x4400cb){const _0x3e31c0=a6_0x51c1ef;var _0x5eccf4;let _0x375a49;const _0xbd7c2e=_0x4400cb===null||_0x4400cb===void 0x0?void 0x0:_0x4400cb[_0x3e31c0(0x482)](_0x3e31c0(0x3f0));if(_0xbd7c2e){const _0x1dc0ed=parseFloat(_0xbd7c2e);!Number[_0x3e31c0(0x523)](_0x1dc0ed)&&(_0x375a49=_0x1dc0ed);}const _0x2123d9=_0x4400cb===null||_0x4400cb===void 0x0?void 0x0:_0x4400cb[_0x3e31c0(0x482)](_0x3e31c0(0x38b));if(_0x2123d9&&!_0x375a49){const _0x13c479=parseFloat(_0x2123d9);!Number[_0x3e31c0(0x523)](_0x13c479)?_0x375a49=_0x13c479*0x3e8:_0x375a49=Date[_0x3e31c0(0x1b2)](_0x2123d9)-Date['now']();}if(!(_0x375a49&&0x0<=_0x375a49&&_0x375a49<0x3c*0x3e8)){const _0x236959=(_0x5eccf4=_0x5b7076[_0x3e31c0(0x266)])!==null&&_0x5eccf4!==void 0x0?_0x5eccf4:this[_0x3e31c0(0x266)];_0x375a49=this[_0x3e31c0(0x5d3)](_0x2788e7,_0x236959);}return await sleep$1(_0x375a49),this['makeRequest'](_0x5b7076,_0x2788e7-0x1,_0x1774f8);}['calculateDefaultRetryTimeoutMillis'](_0x51ca4d,_0x56d4e1){const _0x3f383c=a6_0x51c1ef,_0x24ac3c=0.5,_0x5fd32a=0x8,_0xa09fb2=_0x56d4e1-_0x51ca4d,_0x3cd560=Math[_0x3f383c(0x4dc)](_0x24ac3c*Math[_0x3f383c(0x282)](0x2,_0xa09fb2),_0x5fd32a),_0x8c5d93=0x1-Math[_0x3f383c(0x68b)]()*0.25;return _0x3cd560*_0x8c5d93*0x3e8;}async[a6_0x51c1ef(0x24c)](_0x3cf068,{retryCount:retryCount=0x0}={}){const _0x20afc3=a6_0x51c1ef;var _0x42d284,_0x3baa96,_0x5fec03;const _0x155353=Object[_0x20afc3(0x5a8)]({},_0x3cf068),{method:_0x190571,path:_0x54ca9e,query:_0x19f3a4,defaultBaseURL:_0x422c1c}=_0x155353,_0x3fb6c9=this['buildURL'](_0x54ca9e,_0x19f3a4,_0x422c1c);if(_0x20afc3(0x2e3)in _0x155353)validatePositiveInteger(_0x20afc3(0x2e3),_0x155353[_0x20afc3(0x2e3)]);_0x155353[_0x20afc3(0x2e3)]=(_0x42d284=_0x155353[_0x20afc3(0x2e3)])!==null&&_0x42d284!==void 0x0?_0x42d284:this[_0x20afc3(0x2e3)];const {bodyHeaders:_0x41dbf1,body:_0x87b7d9}=this['buildBody']({'options':_0x155353}),_0x983a08=await this[_0x20afc3(0x3c7)]({'options':_0x3cf068,'method':_0x190571,'bodyHeaders':_0x41dbf1,'retryCount':retryCount}),_0x880d9=Object['assign'](Object['assign'](Object[_0x20afc3(0x5a8)](Object[_0x20afc3(0x5a8)](Object[_0x20afc3(0x5a8)]({'method':_0x190571,'headers':_0x983a08},_0x155353[_0x20afc3(0x42b)]&&{'signal':_0x155353['signal']}),globalThis[_0x20afc3(0x3a4)]&&_0x87b7d9 instanceof globalThis[_0x20afc3(0x3a4)]&&{'duplex':_0x20afc3(0x55d)}),_0x87b7d9&&{'body':_0x87b7d9}),(_0x3baa96=this[_0x20afc3(0x329)])!==null&&_0x3baa96!==void 0x0?_0x3baa96:{}),(_0x5fec03=_0x155353[_0x20afc3(0x329)])!==null&&_0x5fec03!==void 0x0?_0x5fec03:{});return{'req':_0x880d9,'url':_0x3fb6c9,'timeout':_0x155353[_0x20afc3(0x2e3)]};}async[a6_0x51c1ef(0x3c7)]({options:_0x574646,method:_0x4d890a,bodyHeaders:_0x55439e,retryCount:_0x3bf60a}){const _0x26ff9b=a6_0x51c1ef;let _0x2ab443={};if(this[_0x26ff9b(0x521)]&&_0x4d890a!==_0x26ff9b(0x482)){if(!_0x574646['idempotencyKey'])_0x574646[_0x26ff9b(0x1cf)]=this[_0x26ff9b(0x2c6)]();_0x2ab443[this[_0x26ff9b(0x521)]]=_0x574646[_0x26ff9b(0x1cf)];}const _0x4e77dc=await this[_0x26ff9b(0x27b)](_0x574646);let _0x1c9495=buildHeaders([_0x2ab443,Object['assign'](Object['assign']({'Accept':_0x26ff9b(0x539),'User-Agent':this['getUserAgent'](),'X-Stainless-Retry-Count':String(_0x3bf60a)},_0x574646['timeout']?{'X-Stainless-Timeout':String(Math[_0x26ff9b(0x624)](_0x574646[_0x26ff9b(0x2e3)]/0x3e8))}:{}),getPlatformHeaders()),this[_0x26ff9b(0x20a)][_0x26ff9b(0x678)],_0x55439e,_0x574646['headers'],_0x4e77dc]);return this[_0x26ff9b(0x173)](_0x1c9495),_0x1c9495[_0x26ff9b(0x2a8)];}[a6_0x51c1ef(0x67c)]({options:{body:_0x5aa519,headers:_0x2fdfcd}}){const _0x381ea9=a6_0x51c1ef;if(!_0x5aa519)return{'bodyHeaders':undefined,'body':undefined};const _0x2e3fb1=buildHeaders([_0x2fdfcd]);if(ArrayBuffer[_0x381ea9(0x468)](_0x5aa519)||_0x5aa519 instanceof ArrayBuffer||_0x5aa519 instanceof DataView||typeof _0x5aa519===_0x381ea9(0x53d)&&_0x2e3fb1[_0x381ea9(0x2a8)][_0x381ea9(0x4d6)]('content-type')||globalThis[_0x381ea9(0x512)]&&_0x5aa519 instanceof globalThis[_0x381ea9(0x512)]||_0x5aa519 instanceof FormData||_0x5aa519 instanceof URLSearchParams||globalThis[_0x381ea9(0x3a4)]&&_0x5aa519 instanceof globalThis[_0x381ea9(0x3a4)])return{'bodyHeaders':undefined,'body':_0x5aa519};else return typeof _0x5aa519===_0x381ea9(0x25e)&&(Symbol[_0x381ea9(0x648)]in _0x5aa519||Symbol['iterator']in _0x5aa519&&'next'in _0x5aa519&&typeof _0x5aa519[_0x381ea9(0x394)]===_0x381ea9(0x60e))?{'bodyHeaders':undefined,'body':ReadableStreamFrom(_0x5aa519)}:this['encoder']({'body':_0x5aa519,'headers':_0x2e3fb1});}}BaseGeminiNextGenAPIClient[a6_0x51c1ef(0x2d7)]=0xea60;class GeminiNextGenAPIClient extends BaseGeminiNextGenAPIClient{constructor(){const _0x2438aa=a6_0x51c1ef;super(...arguments),this[_0x2438aa(0x1fc)]=new Interactions(this);}}_a=GeminiNextGenAPIClient,GeminiNextGenAPIClient[a6_0x51c1ef(0x374)]=_a,GeminiNextGenAPIClient[a6_0x51c1ef(0x466)]=GeminiNextGenAPIClientError,GeminiNextGenAPIClient[a6_0x51c1ef(0x16c)]=APIError,GeminiNextGenAPIClient['APIConnectionError']=APIConnectionError,GeminiNextGenAPIClient[a6_0x51c1ef(0x4bf)]=APIConnectionTimeoutError,GeminiNextGenAPIClient[a6_0x51c1ef(0x1d3)]=APIUserAbortError,GeminiNextGenAPIClient[a6_0x51c1ef(0x29f)]=NotFoundError,GeminiNextGenAPIClient[a6_0x51c1ef(0x47a)]=ConflictError,GeminiNextGenAPIClient[a6_0x51c1ef(0x180)]=RateLimitError,GeminiNextGenAPIClient['BadRequestError']=BadRequestError,GeminiNextGenAPIClient[a6_0x51c1ef(0x4b5)]=AuthenticationError,GeminiNextGenAPIClient[a6_0x51c1ef(0x4a8)]=InternalServerError,GeminiNextGenAPIClient['PermissionDeniedError']=PermissionDeniedError,GeminiNextGenAPIClient[a6_0x51c1ef(0x186)]=UnprocessableEntityError,GeminiNextGenAPIClient['toFile']=toFile,GeminiNextGenAPIClient[a6_0x51c1ef(0x389)]=Interactions;/**
242
+ * @license
243
+ * Copyright 2025 Google LLC
244
+ * SPDX-License-Identifier: Apache-2.0
245
+ */
246
+ function cancelTuningJobParametersToMldev(_0x54000c,_0x5c49e7){const _0x53d22b={},_0x2a025a=getValueByPath(_0x54000c,['name']);return _0x2a025a!=null&&setValueByPath(_0x53d22b,['_url','name'],_0x2a025a),_0x53d22b;}function cancelTuningJobParametersToVertex(_0x18f68f,_0x51249d){const _0x4f29bb=a6_0x51c1ef,_0x5e98a7={},_0x34600a=getValueByPath(_0x18f68f,[_0x4f29bb(0x558)]);return _0x34600a!=null&&setValueByPath(_0x5e98a7,[_0x4f29bb(0x2c1),_0x4f29bb(0x558)],_0x34600a),_0x5e98a7;}function cancelTuningJobResponseFromMldev(_0x45cc1d,_0x5d1ae8){const _0x79d54b=a6_0x51c1ef,_0x4323a4={},_0x53463b=getValueByPath(_0x45cc1d,['sdkHttpResponse']);return _0x53463b!=null&&setValueByPath(_0x4323a4,[_0x79d54b(0x344)],_0x53463b),_0x4323a4;}function cancelTuningJobResponseFromVertex(_0x29df61,_0x12f905){const _0x35dcf5=a6_0x51c1ef,_0x450fa4={},_0x84a408=getValueByPath(_0x29df61,[_0x35dcf5(0x344)]);return _0x84a408!=null&&setValueByPath(_0x450fa4,[_0x35dcf5(0x344)],_0x84a408),_0x450fa4;}function createTuningJobConfigToMldev(_0x973b4e,_0x446c4b,_0x52f561){const _0x3f0567=a6_0x51c1ef,_0xd00738={};if(getValueByPath(_0x973b4e,['validationDataset'])!==undefined)throw new Error(_0x3f0567(0x2cb));const _0x451bd3=getValueByPath(_0x973b4e,[_0x3f0567(0x4f9)]);_0x446c4b!==undefined&&_0x451bd3!=null&&setValueByPath(_0x446c4b,['displayName'],_0x451bd3);if(getValueByPath(_0x973b4e,['description'])!==undefined)throw new Error(_0x3f0567(0x4b4));const _0x347513=getValueByPath(_0x973b4e,[_0x3f0567(0x426)]);_0x446c4b!==undefined&&_0x347513!=null&&setValueByPath(_0x446c4b,[_0x3f0567(0x21e),_0x3f0567(0x4d4),_0x3f0567(0x426)],_0x347513);const _0x3239db=getValueByPath(_0x973b4e,[_0x3f0567(0x2ff)]);_0x3239db!=null&&setValueByPath(_0xd00738,[_0x3f0567(0x21e),_0x3f0567(0x4d4),_0x3f0567(0x2ff)],_0x3239db);if(getValueByPath(_0x973b4e,[_0x3f0567(0x17d)])!==undefined)throw new Error('exportLastCheckpointOnly\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x973b4e,[_0x3f0567(0x25b)])!==undefined)throw new Error(_0x3f0567(0x696));if(getValueByPath(_0x973b4e,[_0x3f0567(0x5af)])!==undefined)throw new Error('adapterSize\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x973b4e,[_0x3f0567(0x250)])!==undefined)throw new Error(_0x3f0567(0x31d));if(getValueByPath(_0x973b4e,['customBaseModel'])!==undefined)throw new Error(_0x3f0567(0x3d7));const _0x23d575=getValueByPath(_0x973b4e,[_0x3f0567(0x24d)]);_0x446c4b!==undefined&&_0x23d575!=null&&setValueByPath(_0x446c4b,[_0x3f0567(0x21e),_0x3f0567(0x4d4),_0x3f0567(0x24d)],_0x23d575);const _0x389347=getValueByPath(_0x973b4e,[_0x3f0567(0x1a0)]);_0x446c4b!==undefined&&_0x389347!=null&&setValueByPath(_0x446c4b,[_0x3f0567(0x21e),_0x3f0567(0x4d4),_0x3f0567(0x1a0)],_0x389347);if(getValueByPath(_0x973b4e,[_0x3f0567(0x156)])!==undefined)throw new Error(_0x3f0567(0x4aa));if(getValueByPath(_0x973b4e,[_0x3f0567(0x3a2)])!==undefined)throw new Error(_0x3f0567(0x332));if(getValueByPath(_0x973b4e,['baseTeacherModel'])!==undefined)throw new Error(_0x3f0567(0x239));if(getValueByPath(_0x973b4e,['tunedTeacherModelSource'])!==undefined)throw new Error(_0x3f0567(0x522));if(getValueByPath(_0x973b4e,['sftLossWeightMultiplier'])!==undefined)throw new Error(_0x3f0567(0x438));if(getValueByPath(_0x973b4e,[_0x3f0567(0x1b1)])!==undefined)throw new Error(_0x3f0567(0x44f));return _0xd00738;}function createTuningJobConfigToVertex(_0x91571a,_0x125132,_0xb60fd8){const _0x36c851=a6_0x51c1ef,_0x5a7a4c={};let _0x4e8bae=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),_0x36c851(0x566)]);_0x4e8bae===undefined&&(_0x4e8bae='SUPERVISED_FINE_TUNING');if(_0x4e8bae===_0x36c851(0x2e0)){const _0x3bf481=getValueByPath(_0x91571a,[_0x36c851(0x554)]);_0x125132!==undefined&&_0x3bf481!=null&&setValueByPath(_0x125132,[_0x36c851(0x21d)],tuningValidationDatasetToVertex(_0x3bf481));}else{if(_0x4e8bae===_0x36c851(0x37b)){const _0x2bcb73=getValueByPath(_0x91571a,[_0x36c851(0x554)]);_0x125132!==undefined&&_0x2bcb73!=null&&setValueByPath(_0x125132,[_0x36c851(0x53b)],tuningValidationDatasetToVertex(_0x2bcb73));}else{if(_0x4e8bae===_0x36c851(0x1d1)){const _0x2652ea=getValueByPath(_0x91571a,[_0x36c851(0x554)]);_0x125132!==undefined&&_0x2652ea!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3)],tuningValidationDatasetToVertex(_0x2652ea));}}}const _0x463464=getValueByPath(_0x91571a,[_0x36c851(0x4f9)]);_0x125132!==undefined&&_0x463464!=null&&setValueByPath(_0x125132,[_0x36c851(0x4f9)],_0x463464);const _0x4a929c=getValueByPath(_0x91571a,[_0x36c851(0x464)]);_0x125132!==undefined&&_0x4a929c!=null&&setValueByPath(_0x125132,[_0x36c851(0x464)],_0x4a929c);let _0x19c88e=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),_0x36c851(0x566)]);_0x19c88e===undefined&&(_0x19c88e=_0x36c851(0x2e0));if(_0x19c88e===_0x36c851(0x2e0)){const _0x2a557e=getValueByPath(_0x91571a,[_0x36c851(0x426)]);_0x125132!==undefined&&_0x2a557e!=null&&setValueByPath(_0x125132,[_0x36c851(0x21d),_0x36c851(0x602),_0x36c851(0x426)],_0x2a557e);}else{if(_0x19c88e==='PREFERENCE_TUNING'){const _0x1730c5=getValueByPath(_0x91571a,[_0x36c851(0x426)]);_0x125132!==undefined&&_0x1730c5!=null&&setValueByPath(_0x125132,[_0x36c851(0x53b),'hyperParameters',_0x36c851(0x426)],_0x1730c5);}else{if(_0x19c88e==='DISTILLATION'){const _0x47fa03=getValueByPath(_0x91571a,[_0x36c851(0x426)]);_0x125132!==undefined&&_0x47fa03!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3),'hyperParameters',_0x36c851(0x426)],_0x47fa03);}}}let _0x1b3728=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),_0x36c851(0x566)]);_0x1b3728===undefined&&(_0x1b3728='SUPERVISED_FINE_TUNING');if(_0x1b3728===_0x36c851(0x2e0)){const _0x5c2f52=getValueByPath(_0x91571a,[_0x36c851(0x2ff)]);_0x125132!==undefined&&_0x5c2f52!=null&&setValueByPath(_0x125132,[_0x36c851(0x21d),_0x36c851(0x602),_0x36c851(0x2ff)],_0x5c2f52);}else{if(_0x1b3728===_0x36c851(0x37b)){const _0x5172b2=getValueByPath(_0x91571a,[_0x36c851(0x2ff)]);_0x125132!==undefined&&_0x5172b2!=null&&setValueByPath(_0x125132,[_0x36c851(0x53b),_0x36c851(0x602),_0x36c851(0x2ff)],_0x5172b2);}else{if(_0x1b3728===_0x36c851(0x1d1)){const _0x51d769=getValueByPath(_0x91571a,[_0x36c851(0x2ff)]);_0x125132!==undefined&&_0x51d769!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3),_0x36c851(0x602),_0x36c851(0x2ff)],_0x51d769);}}}let _0x5c35fe=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),'method']);_0x5c35fe===undefined&&(_0x5c35fe=_0x36c851(0x2e0));if(_0x5c35fe===_0x36c851(0x2e0)){const _0x2fbb96=getValueByPath(_0x91571a,[_0x36c851(0x17d)]);_0x125132!==undefined&&_0x2fbb96!=null&&setValueByPath(_0x125132,[_0x36c851(0x21d),_0x36c851(0x17d)],_0x2fbb96);}else{if(_0x5c35fe===_0x36c851(0x37b)){const _0x39d544=getValueByPath(_0x91571a,['exportLastCheckpointOnly']);_0x125132!==undefined&&_0x39d544!=null&&setValueByPath(_0x125132,['preferenceOptimizationSpec',_0x36c851(0x17d)],_0x39d544);}else{if(_0x5c35fe==='DISTILLATION'){const _0x5be7e2=getValueByPath(_0x91571a,[_0x36c851(0x17d)]);_0x125132!==undefined&&_0x5be7e2!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3),_0x36c851(0x17d)],_0x5be7e2);}}}let _0x5b2e9d=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),_0x36c851(0x566)]);_0x5b2e9d===undefined&&(_0x5b2e9d=_0x36c851(0x2e0));if(_0x5b2e9d===_0x36c851(0x2e0)){const _0x11cb27=getValueByPath(_0x91571a,[_0x36c851(0x5af)]);_0x125132!==undefined&&_0x11cb27!=null&&setValueByPath(_0x125132,['supervisedTuningSpec',_0x36c851(0x602),_0x36c851(0x5af)],_0x11cb27);}else{if(_0x5b2e9d==='PREFERENCE_TUNING'){const _0x46371d=getValueByPath(_0x91571a,[_0x36c851(0x5af)]);_0x125132!==undefined&&_0x46371d!=null&&setValueByPath(_0x125132,[_0x36c851(0x53b),_0x36c851(0x602),_0x36c851(0x5af)],_0x46371d);}else{if(_0x5b2e9d===_0x36c851(0x1d1)){const _0x255541=getValueByPath(_0x91571a,[_0x36c851(0x5af)]);_0x125132!==undefined&&_0x255541!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3),_0x36c851(0x602),_0x36c851(0x5af)],_0x255541);}}}let _0x34dc4a=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),_0x36c851(0x566)]);_0x34dc4a===undefined&&(_0x34dc4a=_0x36c851(0x2e0));if(_0x34dc4a===_0x36c851(0x2e0)){const _0x1ed85a=getValueByPath(_0x91571a,[_0x36c851(0x250)]);_0x125132!==undefined&&_0x1ed85a!=null&&setValueByPath(_0x125132,[_0x36c851(0x21d),_0x36c851(0x250)],_0x1ed85a);}const _0xe07508=getValueByPath(_0x91571a,['customBaseModel']);_0x125132!==undefined&&_0xe07508!=null&&setValueByPath(_0x125132,[_0x36c851(0x649)],_0xe07508);let _0x5727ca=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),'method']);_0x5727ca===undefined&&(_0x5727ca=_0x36c851(0x2e0));if(_0x5727ca==='SUPERVISED_FINE_TUNING'){const _0x4d4326=getValueByPath(_0x91571a,['batchSize']);_0x125132!==undefined&&_0x4d4326!=null&&setValueByPath(_0x125132,[_0x36c851(0x21d),'hyperParameters','batchSize'],_0x4d4326);}let _0x331a77=getValueByPath(_0xb60fd8,[_0x36c851(0x66c),_0x36c851(0x566)]);_0x331a77===undefined&&(_0x331a77=_0x36c851(0x2e0));if(_0x331a77===_0x36c851(0x2e0)){const _0x33c65a=getValueByPath(_0x91571a,[_0x36c851(0x1a0)]);_0x125132!==undefined&&_0x33c65a!=null&&setValueByPath(_0x125132,['supervisedTuningSpec',_0x36c851(0x602),'learningRate'],_0x33c65a);}const _0x3920f4=getValueByPath(_0x91571a,[_0x36c851(0x156)]);_0x125132!==undefined&&_0x3920f4!=null&&setValueByPath(_0x125132,[_0x36c851(0x156)],_0x3920f4);const _0x31c68d=getValueByPath(_0x91571a,[_0x36c851(0x3a2)]);_0x125132!==undefined&&_0x31c68d!=null&&setValueByPath(_0x125132,[_0x36c851(0x53b),_0x36c851(0x602),_0x36c851(0x3a2)],_0x31c68d);const _0x2426da=getValueByPath(_0x91571a,['baseTeacherModel']);_0x125132!==undefined&&_0x2426da!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3),_0x36c851(0x62a)],_0x2426da);const _0x2b0b36=getValueByPath(_0x91571a,[_0x36c851(0x4c6)]);_0x125132!==undefined&&_0x2b0b36!=null&&setValueByPath(_0x125132,[_0x36c851(0x1f3),_0x36c851(0x4c6)],_0x2b0b36);const _0x75eb57=getValueByPath(_0x91571a,[_0x36c851(0x3f4)]);_0x125132!==undefined&&_0x75eb57!=null&&setValueByPath(_0x125132,['distillationSpec',_0x36c851(0x602),_0x36c851(0x3f4)],_0x75eb57);const _0x32e009=getValueByPath(_0x91571a,[_0x36c851(0x1b1)]);return _0x125132!==undefined&&_0x32e009!=null&&setValueByPath(_0x125132,[_0x36c851(0x1b1)],_0x32e009),_0x5a7a4c;}function createTuningJobParametersPrivateToMldev(_0x5ddbd0,_0x46b442){const _0x34df41=a6_0x51c1ef,_0x4d16c0={},_0x5be280=getValueByPath(_0x5ddbd0,[_0x34df41(0x660)]);_0x5be280!=null&&setValueByPath(_0x4d16c0,[_0x34df41(0x660)],_0x5be280);const _0x1932dd=getValueByPath(_0x5ddbd0,[_0x34df41(0x24b)]);_0x1932dd!=null&&setValueByPath(_0x4d16c0,[_0x34df41(0x24b)],_0x1932dd);const _0x42f678=getValueByPath(_0x5ddbd0,[_0x34df41(0x60b)]);_0x42f678!=null&&tuningDatasetToMldev(_0x42f678);const _0x11ac6a=getValueByPath(_0x5ddbd0,[_0x34df41(0x66c)]);return _0x11ac6a!=null&&createTuningJobConfigToMldev(_0x11ac6a,_0x4d16c0),_0x4d16c0;}function createTuningJobParametersPrivateToVertex(_0x362a48,_0xaf7779){const _0x38371a=a6_0x51c1ef,_0x360c1b={},_0x27c7df=getValueByPath(_0x362a48,[_0x38371a(0x660)]);_0x27c7df!=null&&setValueByPath(_0x360c1b,[_0x38371a(0x660)],_0x27c7df);const _0x48d125=getValueByPath(_0x362a48,['preTunedModel']);_0x48d125!=null&&setValueByPath(_0x360c1b,['preTunedModel'],_0x48d125);const _0x1d9d21=getValueByPath(_0x362a48,[_0x38371a(0x60b)]);_0x1d9d21!=null&&tuningDatasetToVertex(_0x1d9d21,_0x360c1b,_0xaf7779);const _0x4274f7=getValueByPath(_0x362a48,['config']);return _0x4274f7!=null&&createTuningJobConfigToVertex(_0x4274f7,_0x360c1b,_0xaf7779),_0x360c1b;}function getTuningJobParametersToMldev(_0x252b5a,_0x240cf2){const _0x52dc71=a6_0x51c1ef,_0x528ac9={},_0x696ae2=getValueByPath(_0x252b5a,['name']);return _0x696ae2!=null&&setValueByPath(_0x528ac9,['_url',_0x52dc71(0x558)],_0x696ae2),_0x528ac9;}function getTuningJobParametersToVertex(_0x5d9418,_0xb9afc1){const _0x599817=a6_0x51c1ef,_0x41afb5={},_0x19f468=getValueByPath(_0x5d9418,[_0x599817(0x558)]);return _0x19f468!=null&&setValueByPath(_0x41afb5,['_url',_0x599817(0x558)],_0x19f468),_0x41afb5;}function listTuningJobsConfigToMldev(_0x16326c,_0x27f334,_0x9cdeaf){const _0x333bd8=a6_0x51c1ef,_0x17e997={},_0x846ccf=getValueByPath(_0x16326c,[_0x333bd8(0x400)]);_0x27f334!==undefined&&_0x846ccf!=null&&setValueByPath(_0x27f334,[_0x333bd8(0x4cd),_0x333bd8(0x400)],_0x846ccf);const _0x29983a=getValueByPath(_0x16326c,['pageToken']);_0x27f334!==undefined&&_0x29983a!=null&&setValueByPath(_0x27f334,[_0x333bd8(0x4cd),'pageToken'],_0x29983a);const _0x3ae65d=getValueByPath(_0x16326c,[_0x333bd8(0x581)]);return _0x27f334!==undefined&&_0x3ae65d!=null&&setValueByPath(_0x27f334,['_query','filter'],_0x3ae65d),_0x17e997;}function listTuningJobsConfigToVertex(_0x21fff2,_0x5392e5,_0x35ff8b){const _0x384538=a6_0x51c1ef,_0x548f64={},_0x450d52=getValueByPath(_0x21fff2,[_0x384538(0x400)]);_0x5392e5!==undefined&&_0x450d52!=null&&setValueByPath(_0x5392e5,[_0x384538(0x4cd),_0x384538(0x400)],_0x450d52);const _0x364356=getValueByPath(_0x21fff2,[_0x384538(0x2dd)]);_0x5392e5!==undefined&&_0x364356!=null&&setValueByPath(_0x5392e5,[_0x384538(0x4cd),_0x384538(0x2dd)],_0x364356);const _0x29aad5=getValueByPath(_0x21fff2,[_0x384538(0x581)]);return _0x5392e5!==undefined&&_0x29aad5!=null&&setValueByPath(_0x5392e5,['_query',_0x384538(0x581)],_0x29aad5),_0x548f64;}function listTuningJobsParametersToMldev(_0x158fef,_0x1d1bbf){const _0x213c72=a6_0x51c1ef,_0x4d21eb={},_0x54879c=getValueByPath(_0x158fef,[_0x213c72(0x66c)]);return _0x54879c!=null&&listTuningJobsConfigToMldev(_0x54879c,_0x4d21eb),_0x4d21eb;}function listTuningJobsParametersToVertex(_0x3f2876,_0x32f6f7){const _0x2ff803=a6_0x51c1ef,_0x38ab39={},_0x46116e=getValueByPath(_0x3f2876,[_0x2ff803(0x66c)]);return _0x46116e!=null&&listTuningJobsConfigToVertex(_0x46116e,_0x38ab39),_0x38ab39;}function listTuningJobsResponseFromMldev(_0x58acd6,_0x2cc10b){const _0x3f352a=a6_0x51c1ef,_0x5828f3={},_0x20a9ae=getValueByPath(_0x58acd6,[_0x3f352a(0x344)]);_0x20a9ae!=null&&setValueByPath(_0x5828f3,[_0x3f352a(0x344)],_0x20a9ae);const _0x29a899=getValueByPath(_0x58acd6,['nextPageToken']);_0x29a899!=null&&setValueByPath(_0x5828f3,[_0x3f352a(0x17a)],_0x29a899);const _0x3ca4e9=getValueByPath(_0x58acd6,['tunedModels']);if(_0x3ca4e9!=null){let _0x32d415=_0x3ca4e9;Array[_0x3f352a(0x49d)](_0x32d415)&&(_0x32d415=_0x32d415[_0x3f352a(0x68f)](_0x25d82c=>{return tuningJobFromMldev(_0x25d82c);})),setValueByPath(_0x5828f3,['tuningJobs'],_0x32d415);}return _0x5828f3;}function listTuningJobsResponseFromVertex(_0x2b8fce,_0x4062a3){const _0x4feb7e=a6_0x51c1ef,_0x37bd4b={},_0x2253d1=getValueByPath(_0x2b8fce,[_0x4feb7e(0x344)]);_0x2253d1!=null&&setValueByPath(_0x37bd4b,['sdkHttpResponse'],_0x2253d1);const _0x38704e=getValueByPath(_0x2b8fce,[_0x4feb7e(0x17a)]);_0x38704e!=null&&setValueByPath(_0x37bd4b,[_0x4feb7e(0x17a)],_0x38704e);const _0x46a795=getValueByPath(_0x2b8fce,[_0x4feb7e(0x413)]);if(_0x46a795!=null){let _0x3a6f58=_0x46a795;Array[_0x4feb7e(0x49d)](_0x3a6f58)&&(_0x3a6f58=_0x3a6f58['map'](_0x53433d=>{return tuningJobFromVertex(_0x53433d);})),setValueByPath(_0x37bd4b,[_0x4feb7e(0x413)],_0x3a6f58);}return _0x37bd4b;}function tunedModelFromMldev(_0xe9daab,_0x2d224d){const _0x21e44a=a6_0x51c1ef,_0x240cf0={},_0x16faf9=getValueByPath(_0xe9daab,[_0x21e44a(0x558)]);_0x16faf9!=null&&setValueByPath(_0x240cf0,[_0x21e44a(0x418)],_0x16faf9);const _0x3b59dd=getValueByPath(_0xe9daab,[_0x21e44a(0x558)]);return _0x3b59dd!=null&&setValueByPath(_0x240cf0,[_0x21e44a(0x2da)],_0x3b59dd),_0x240cf0;}function tuningDatasetToMldev(_0xdf1484,_0x9cbe77){const _0xbe5c5=a6_0x51c1ef,_0x4f062a={};if(getValueByPath(_0xdf1484,[_0xbe5c5(0x507)])!==undefined)throw new Error(_0xbe5c5(0x386));if(getValueByPath(_0xdf1484,[_0xbe5c5(0x4b3)])!==undefined)throw new Error('vertexDatasetResource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x3e517a=getValueByPath(_0xdf1484,[_0xbe5c5(0x59b)]);if(_0x3e517a!=null){let _0x42e971=_0x3e517a;Array[_0xbe5c5(0x49d)](_0x42e971)&&(_0x42e971=_0x42e971[_0xbe5c5(0x68f)](_0x2a68f6=>{return _0x2a68f6;})),setValueByPath(_0x4f062a,[_0xbe5c5(0x59b),'examples'],_0x42e971);}return _0x4f062a;}function tuningDatasetToVertex(_0x4513aa,_0x137b30,_0x3a02f9){const _0x46fb52=a6_0x51c1ef,_0x2895b0={};let _0x1b8650=getValueByPath(_0x3a02f9,[_0x46fb52(0x66c),_0x46fb52(0x566)]);_0x1b8650===undefined&&(_0x1b8650=_0x46fb52(0x2e0));if(_0x1b8650===_0x46fb52(0x2e0)){const _0x1c01c4=getValueByPath(_0x4513aa,[_0x46fb52(0x507)]);_0x137b30!==undefined&&_0x1c01c4!=null&&setValueByPath(_0x137b30,[_0x46fb52(0x21d),'trainingDatasetUri'],_0x1c01c4);}else{if(_0x1b8650===_0x46fb52(0x37b)){const _0x98a388=getValueByPath(_0x4513aa,[_0x46fb52(0x507)]);_0x137b30!==undefined&&_0x98a388!=null&&setValueByPath(_0x137b30,[_0x46fb52(0x53b),_0x46fb52(0x587)],_0x98a388);}else{if(_0x1b8650===_0x46fb52(0x1d1)){const _0x1c86e2=getValueByPath(_0x4513aa,[_0x46fb52(0x507)]);_0x137b30!==undefined&&_0x1c86e2!=null&&setValueByPath(_0x137b30,['distillationSpec','promptDatasetUri'],_0x1c86e2);}}}let _0x1efe64=getValueByPath(_0x3a02f9,[_0x46fb52(0x66c),_0x46fb52(0x566)]);_0x1efe64===undefined&&(_0x1efe64=_0x46fb52(0x2e0));if(_0x1efe64===_0x46fb52(0x2e0)){const _0x4f051f=getValueByPath(_0x4513aa,['vertexDatasetResource']);_0x137b30!==undefined&&_0x4f051f!=null&&setValueByPath(_0x137b30,[_0x46fb52(0x21d),'trainingDatasetUri'],_0x4f051f);}else{if(_0x1efe64===_0x46fb52(0x37b)){const _0x3d7b77=getValueByPath(_0x4513aa,[_0x46fb52(0x4b3)]);_0x137b30!==undefined&&_0x3d7b77!=null&&setValueByPath(_0x137b30,[_0x46fb52(0x53b),_0x46fb52(0x587)],_0x3d7b77);}else{if(_0x1efe64==='DISTILLATION'){const _0x4d6cf7=getValueByPath(_0x4513aa,['vertexDatasetResource']);_0x137b30!==undefined&&_0x4d6cf7!=null&&setValueByPath(_0x137b30,[_0x46fb52(0x1f3),_0x46fb52(0x326)],_0x4d6cf7);}}}if(getValueByPath(_0x4513aa,[_0x46fb52(0x59b)])!==undefined)throw new Error(_0x46fb52(0x339));return _0x2895b0;}function tuningJobFromMldev(_0x2de699,_0x3d2050){const _0x1b991f=a6_0x51c1ef,_0x35af19={},_0x3ea049=getValueByPath(_0x2de699,['sdkHttpResponse']);_0x3ea049!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x344)],_0x3ea049);const _0x7e9823=getValueByPath(_0x2de699,[_0x1b991f(0x558)]);_0x7e9823!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x558)],_0x7e9823);const _0xd08f4f=getValueByPath(_0x2de699,[_0x1b991f(0x341)]);_0xd08f4f!=null&&setValueByPath(_0x35af19,['state'],tTuningJobStatus(_0xd08f4f));const _0x364eab=getValueByPath(_0x2de699,['createTime']);_0x364eab!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x5c5)],_0x364eab);const _0x5913ef=getValueByPath(_0x2de699,[_0x1b991f(0x21e),_0x1b991f(0x292)]);_0x5913ef!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x292)],_0x5913ef);const _0x536690=getValueByPath(_0x2de699,[_0x1b991f(0x21e),'completeTime']);_0x536690!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x164)],_0x536690);const _0x151783=getValueByPath(_0x2de699,[_0x1b991f(0x343)]);_0x151783!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x343)],_0x151783);const _0x3b9497=getValueByPath(_0x2de699,[_0x1b991f(0x464)]);_0x3b9497!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x464)],_0x3b9497);const _0x59674e=getValueByPath(_0x2de699,[_0x1b991f(0x660)]);_0x59674e!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x660)],_0x59674e);const _0x52aa63=getValueByPath(_0x2de699,[_0x1b991f(0x5aa)]);return _0x52aa63!=null&&setValueByPath(_0x35af19,[_0x1b991f(0x5fc)],tunedModelFromMldev(_0x52aa63)),_0x35af19;}function tuningJobFromVertex(_0x359192,_0x38ceec){const _0x5dac71=a6_0x51c1ef,_0x4ed19b={},_0x3cec31=getValueByPath(_0x359192,['sdkHttpResponse']);_0x3cec31!=null&&setValueByPath(_0x4ed19b,['sdkHttpResponse'],_0x3cec31);const _0x149ce9=getValueByPath(_0x359192,[_0x5dac71(0x558)]);_0x149ce9!=null&&setValueByPath(_0x4ed19b,['name'],_0x149ce9);const _0x2d2085=getValueByPath(_0x359192,[_0x5dac71(0x341)]);_0x2d2085!=null&&setValueByPath(_0x4ed19b,['state'],tTuningJobStatus(_0x2d2085));const _0xece27a=getValueByPath(_0x359192,[_0x5dac71(0x5c5)]);_0xece27a!=null&&setValueByPath(_0x4ed19b,['createTime'],_0xece27a);const _0xb4f8e7=getValueByPath(_0x359192,[_0x5dac71(0x292)]);_0xb4f8e7!=null&&setValueByPath(_0x4ed19b,['startTime'],_0xb4f8e7);const _0x47bfc5=getValueByPath(_0x359192,[_0x5dac71(0x164)]);_0x47bfc5!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x164)],_0x47bfc5);const _0x3b9162=getValueByPath(_0x359192,[_0x5dac71(0x343)]);_0x3b9162!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x343)],_0x3b9162);const _0x149ec3=getValueByPath(_0x359192,['error']);_0x149ec3!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x50a)],_0x149ec3);const _0x5dadc3=getValueByPath(_0x359192,[_0x5dac71(0x464)]);_0x5dadc3!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x464)],_0x5dadc3);const _0x3e39cb=getValueByPath(_0x359192,['baseModel']);_0x3e39cb!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x660)],_0x3e39cb);const _0x340a96=getValueByPath(_0x359192,['tunedModel']);_0x340a96!=null&&setValueByPath(_0x4ed19b,['tunedModel'],_0x340a96);const _0x45762f=getValueByPath(_0x359192,[_0x5dac71(0x24b)]);_0x45762f!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x24b)],_0x45762f);const _0x264394=getValueByPath(_0x359192,[_0x5dac71(0x21d)]);_0x264394!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x21d)],_0x264394);const _0x34fd47=getValueByPath(_0x359192,[_0x5dac71(0x53b)]);_0x34fd47!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x53b)],_0x34fd47);const _0x5f349d=getValueByPath(_0x359192,[_0x5dac71(0x1f3)]);_0x5f349d!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x1f3)],_0x5f349d);const _0x36077f=getValueByPath(_0x359192,[_0x5dac71(0x66b)]);_0x36077f!=null&&setValueByPath(_0x4ed19b,['tuningDataStats'],_0x36077f);const _0x197df2=getValueByPath(_0x359192,[_0x5dac71(0x5e5)]);_0x197df2!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x5e5)],_0x197df2);const _0x48c9a5=getValueByPath(_0x359192,[_0x5dac71(0x4d7)]);_0x48c9a5!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x4d7)],_0x48c9a5);const _0x3fd7ee=getValueByPath(_0x359192,['customBaseModel']);_0x3fd7ee!=null&&setValueByPath(_0x4ed19b,['customBaseModel'],_0x3fd7ee);const _0x256017=getValueByPath(_0x359192,['experiment']);_0x256017!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x501)],_0x256017);const _0x2ef59e=getValueByPath(_0x359192,[_0x5dac71(0x156)]);_0x2ef59e!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x156)],_0x2ef59e);const _0x43acac=getValueByPath(_0x359192,[_0x5dac71(0x1b1)]);_0x43acac!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x1b1)],_0x43acac);const _0x4e3fb9=getValueByPath(_0x359192,['pipelineJob']);_0x4e3fb9!=null&&setValueByPath(_0x4ed19b,['pipelineJob'],_0x4e3fb9);const _0x3d7819=getValueByPath(_0x359192,['serviceAccount']);_0x3d7819!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x387)],_0x3d7819);const _0x47788a=getValueByPath(_0x359192,['tunedModelDisplayName']);_0x47788a!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x4f9)],_0x47788a);const _0x3383b4=getValueByPath(_0x359192,['veoTuningSpec']);return _0x3383b4!=null&&setValueByPath(_0x4ed19b,[_0x5dac71(0x377)],_0x3383b4),_0x4ed19b;}function tuningOperationFromMldev(_0x544854,_0x5b63ba){const _0x400f8e=a6_0x51c1ef,_0x385ce1={},_0x98074e=getValueByPath(_0x544854,[_0x400f8e(0x344)]);_0x98074e!=null&&setValueByPath(_0x385ce1,[_0x400f8e(0x344)],_0x98074e);const _0x258d61=getValueByPath(_0x544854,[_0x400f8e(0x558)]);_0x258d61!=null&&setValueByPath(_0x385ce1,[_0x400f8e(0x558)],_0x258d61);const _0x5e7d0a=getValueByPath(_0x544854,[_0x400f8e(0x367)]);_0x5e7d0a!=null&&setValueByPath(_0x385ce1,[_0x400f8e(0x367)],_0x5e7d0a);const _0x31c395=getValueByPath(_0x544854,[_0x400f8e(0x2e9)]);_0x31c395!=null&&setValueByPath(_0x385ce1,[_0x400f8e(0x2e9)],_0x31c395);const _0x505475=getValueByPath(_0x544854,[_0x400f8e(0x50a)]);return _0x505475!=null&&setValueByPath(_0x385ce1,['error'],_0x505475),_0x385ce1;}function tuningValidationDatasetToVertex(_0x3746de,_0x3515fb){const _0x11265b=a6_0x51c1ef,_0x544cef={},_0x33e51b=getValueByPath(_0x3746de,[_0x11265b(0x507)]);_0x33e51b!=null&&setValueByPath(_0x544cef,['validationDatasetUri'],_0x33e51b);const _0x4650be=getValueByPath(_0x3746de,[_0x11265b(0x4b3)]);return _0x4650be!=null&&setValueByPath(_0x544cef,[_0x11265b(0x537)],_0x4650be),_0x544cef;}/**
247
+ * @license
248
+ * Copyright 2025 Google LLC
249
+ * SPDX-License-Identifier: Apache-2.0
250
+ */
251
+ class Tunings extends BaseModule{constructor(_0x2fa37c){const _0x97df35=a6_0x51c1ef;super(),this[_0x97df35(0x61e)]=_0x2fa37c,this['list']=async(_0x5816cd={})=>{const _0x4201ed=_0x97df35;return new Pager(PagedItem[_0x4201ed(0x161)],_0x1f1ee1=>this[_0x4201ed(0x542)](_0x1f1ee1),await this[_0x4201ed(0x542)](_0x5816cd),_0x5816cd);},this['get']=async _0x634eb=>{return await this['getInternal'](_0x634eb);},this[_0x97df35(0x3fa)]=async _0xe83421=>{const _0x714352=_0x97df35;var _0x2b2096;if(this[_0x714352(0x61e)][_0x714352(0x291)]()){if(_0xe83421[_0x714352(0x660)][_0x714352(0x453)](_0x714352(0x2ba))){const _0x54423f={'tunedModelName':_0xe83421['baseModel']};((_0x2b2096=_0xe83421[_0x714352(0x66c)])===null||_0x2b2096===void 0x0?void 0x0:_0x2b2096[_0x714352(0x25b)])&&(_0x54423f['checkpointId']=_0xe83421[_0x714352(0x66c)][_0x714352(0x25b)]);const _0x18aa4f=Object['assign'](Object[_0x714352(0x5a8)]({},_0xe83421),{'preTunedModel':_0x54423f});return _0x18aa4f['baseModel']=undefined,await this['tuneInternal'](_0x18aa4f);}else{const _0xff3a91=Object['assign']({},_0xe83421);return await this['tuneInternal'](_0xff3a91);}}else{const _0x126efc=Object[_0x714352(0x5a8)]({},_0xe83421),_0x120c99=await this[_0x714352(0x167)](_0x126efc);let _0x5e28c7='';if(_0x120c99[_0x714352(0x367)]!==undefined&&_0x120c99[_0x714352(0x367)]['tunedModel']!==undefined)_0x5e28c7=_0x120c99[_0x714352(0x367)]['tunedModel'];else _0x120c99['name']!==undefined&&_0x120c99['name'][_0x714352(0x26d)]('/operations/')&&(_0x5e28c7=_0x120c99['name'][_0x714352(0x322)](_0x714352(0x434))[0x0]);const _0x5c731a={'name':_0x5e28c7,'state':JobState['JOB_STATE_QUEUED']};return _0x5c731a;}};}async['getInternal'](_0x45f4df){const _0x2f2797=a6_0x51c1ef;var _0x44eb93,_0x59260c,_0x148dd6,_0x1d8859;let _0x280196,_0x52bb66='',_0x4d2357={};if(this[_0x2f2797(0x61e)][_0x2f2797(0x291)]()){const _0x29909e=getTuningJobParametersToVertex(_0x45f4df);return _0x52bb66=formatMap(_0x2f2797(0x3f1),_0x29909e[_0x2f2797(0x2c1)]),_0x4d2357=_0x29909e[_0x2f2797(0x4cd)],delete _0x29909e[_0x2f2797(0x2c1)],delete _0x29909e[_0x2f2797(0x4cd)],_0x280196=this[_0x2f2797(0x61e)]['request']({'path':_0x52bb66,'queryParams':_0x4d2357,'body':JSON['stringify'](_0x29909e),'httpMethod':'GET','httpOptions':(_0x44eb93=_0x45f4df[_0x2f2797(0x66c)])===null||_0x44eb93===void 0x0?void 0x0:_0x44eb93[_0x2f2797(0x328)],'abortSignal':(_0x59260c=_0x45f4df[_0x2f2797(0x66c)])===null||_0x59260c===void 0x0?void 0x0:_0x59260c['abortSignal']})[_0x2f2797(0x486)](_0x2c08a1=>{const _0x174349=_0x2f2797;return _0x2c08a1[_0x174349(0x31b)]()['then'](_0x7533b0=>{const _0x54289d=_0x174349,_0x499405=_0x7533b0;return _0x499405[_0x54289d(0x344)]={'headers':_0x2c08a1[_0x54289d(0x2b9)]},_0x499405;});}),_0x280196[_0x2f2797(0x486)](_0x1d2dc4=>{const _0x4bc9db=tuningJobFromVertex(_0x1d2dc4);return _0x4bc9db;});}else{const _0x41c608=getTuningJobParametersToMldev(_0x45f4df);return _0x52bb66=formatMap(_0x2f2797(0x3f1),_0x41c608[_0x2f2797(0x2c1)]),_0x4d2357=_0x41c608[_0x2f2797(0x4cd)],delete _0x41c608[_0x2f2797(0x2c1)],delete _0x41c608[_0x2f2797(0x4cd)],_0x280196=this[_0x2f2797(0x61e)][_0x2f2797(0x560)]({'path':_0x52bb66,'queryParams':_0x4d2357,'body':JSON[_0x2f2797(0x183)](_0x41c608),'httpMethod':'GET','httpOptions':(_0x148dd6=_0x45f4df['config'])===null||_0x148dd6===void 0x0?void 0x0:_0x148dd6[_0x2f2797(0x328)],'abortSignal':(_0x1d8859=_0x45f4df['config'])===null||_0x1d8859===void 0x0?void 0x0:_0x1d8859['abortSignal']})[_0x2f2797(0x486)](_0x288aa1=>{const _0x212913=_0x2f2797;return _0x288aa1[_0x212913(0x31b)]()[_0x212913(0x486)](_0x56bcdd=>{const _0x47e0e1=_0x212913,_0x11ef85=_0x56bcdd;return _0x11ef85[_0x47e0e1(0x344)]={'headers':_0x288aa1[_0x47e0e1(0x2b9)]},_0x11ef85;});}),_0x280196[_0x2f2797(0x486)](_0x26a77c=>{const _0x8f910a=tuningJobFromMldev(_0x26a77c);return _0x8f910a;});}}async[a6_0x51c1ef(0x542)](_0x2289d2){const _0x5acc06=a6_0x51c1ef;var _0x251e18,_0x29c285,_0x2b1e14,_0x27dd1c;let _0x1db128,_0x9e7649='',_0x2716fb={};if(this[_0x5acc06(0x61e)][_0x5acc06(0x291)]()){const _0x46b55d=listTuningJobsParametersToVertex(_0x2289d2);return _0x9e7649=formatMap(_0x5acc06(0x413),_0x46b55d['_url']),_0x2716fb=_0x46b55d[_0x5acc06(0x4cd)],delete _0x46b55d[_0x5acc06(0x2c1)],delete _0x46b55d[_0x5acc06(0x4cd)],_0x1db128=this[_0x5acc06(0x61e)][_0x5acc06(0x560)]({'path':_0x9e7649,'queryParams':_0x2716fb,'body':JSON['stringify'](_0x46b55d),'httpMethod':_0x5acc06(0x1fa),'httpOptions':(_0x251e18=_0x2289d2['config'])===null||_0x251e18===void 0x0?void 0x0:_0x251e18[_0x5acc06(0x328)],'abortSignal':(_0x29c285=_0x2289d2[_0x5acc06(0x66c)])===null||_0x29c285===void 0x0?void 0x0:_0x29c285[_0x5acc06(0x643)]})[_0x5acc06(0x486)](_0x38b642=>{const _0x595df5=_0x5acc06;return _0x38b642[_0x595df5(0x31b)]()[_0x595df5(0x486)](_0x1f7adb=>{const _0x2e4258=_0x595df5,_0x1c2007=_0x1f7adb;return _0x1c2007[_0x2e4258(0x344)]={'headers':_0x38b642[_0x2e4258(0x2b9)]},_0x1c2007;});}),_0x1db128[_0x5acc06(0x486)](_0x483ae5=>{const _0x4a6e53=_0x5acc06,_0x3f545d=listTuningJobsResponseFromVertex(_0x483ae5),_0x1a0c3e=new ListTuningJobsResponse();return Object[_0x4a6e53(0x5a8)](_0x1a0c3e,_0x3f545d),_0x1a0c3e;});}else{const _0x47e8fd=listTuningJobsParametersToMldev(_0x2289d2);return _0x9e7649=formatMap('tunedModels',_0x47e8fd[_0x5acc06(0x2c1)]),_0x2716fb=_0x47e8fd['_query'],delete _0x47e8fd[_0x5acc06(0x2c1)],delete _0x47e8fd[_0x5acc06(0x4cd)],_0x1db128=this[_0x5acc06(0x61e)]['request']({'path':_0x9e7649,'queryParams':_0x2716fb,'body':JSON[_0x5acc06(0x183)](_0x47e8fd),'httpMethod':'GET','httpOptions':(_0x2b1e14=_0x2289d2['config'])===null||_0x2b1e14===void 0x0?void 0x0:_0x2b1e14[_0x5acc06(0x328)],'abortSignal':(_0x27dd1c=_0x2289d2[_0x5acc06(0x66c)])===null||_0x27dd1c===void 0x0?void 0x0:_0x27dd1c['abortSignal']})[_0x5acc06(0x486)](_0x1f6700=>{const _0x3d26b4=_0x5acc06;return _0x1f6700[_0x3d26b4(0x31b)]()['then'](_0x18d04c=>{const _0x4bf2ad=_0x3d26b4,_0x232dfa=_0x18d04c;return _0x232dfa[_0x4bf2ad(0x344)]={'headers':_0x1f6700['headers']},_0x232dfa;});}),_0x1db128['then'](_0x429881=>{const _0x5acda7=_0x5acc06,_0x2443b1=listTuningJobsResponseFromMldev(_0x429881),_0x5f4595=new ListTuningJobsResponse();return Object[_0x5acda7(0x5a8)](_0x5f4595,_0x2443b1),_0x5f4595;});}}async[a6_0x51c1ef(0x5ff)](_0x5f4f54){const _0x3d6ab1=a6_0x51c1ef;var _0x53e3a9,_0x125ae3,_0x20948a,_0x1794b6;let _0x5896a6,_0x2646b1='',_0x1070be={};if(this['apiClient'][_0x3d6ab1(0x291)]()){const _0x1612c3=cancelTuningJobParametersToVertex(_0x5f4f54);return _0x2646b1=formatMap(_0x3d6ab1(0x64a),_0x1612c3['_url']),_0x1070be=_0x1612c3[_0x3d6ab1(0x4cd)],delete _0x1612c3['_url'],delete _0x1612c3[_0x3d6ab1(0x4cd)],_0x5896a6=this[_0x3d6ab1(0x61e)][_0x3d6ab1(0x560)]({'path':_0x2646b1,'queryParams':_0x1070be,'body':JSON[_0x3d6ab1(0x183)](_0x1612c3),'httpMethod':_0x3d6ab1(0x1e6),'httpOptions':(_0x53e3a9=_0x5f4f54[_0x3d6ab1(0x66c)])===null||_0x53e3a9===void 0x0?void 0x0:_0x53e3a9[_0x3d6ab1(0x328)],'abortSignal':(_0x125ae3=_0x5f4f54[_0x3d6ab1(0x66c)])===null||_0x125ae3===void 0x0?void 0x0:_0x125ae3[_0x3d6ab1(0x643)]})[_0x3d6ab1(0x486)](_0x220a92=>{return _0x220a92['json']()['then'](_0x4871f7=>{const _0x12fbe3=a6_0x148c,_0x588320=_0x4871f7;return _0x588320[_0x12fbe3(0x344)]={'headers':_0x220a92[_0x12fbe3(0x2b9)]},_0x588320;});}),_0x5896a6[_0x3d6ab1(0x486)](_0xa41d38=>{const _0x488fd5=_0x3d6ab1,_0x1ff479=cancelTuningJobResponseFromVertex(_0xa41d38),_0x3f7708=new CancelTuningJobResponse();return Object[_0x488fd5(0x5a8)](_0x3f7708,_0x1ff479),_0x3f7708;});}else{const _0xc80f66=cancelTuningJobParametersToMldev(_0x5f4f54);return _0x2646b1=formatMap(_0x3d6ab1(0x64a),_0xc80f66[_0x3d6ab1(0x2c1)]),_0x1070be=_0xc80f66['_query'],delete _0xc80f66[_0x3d6ab1(0x2c1)],delete _0xc80f66[_0x3d6ab1(0x4cd)],_0x5896a6=this[_0x3d6ab1(0x61e)][_0x3d6ab1(0x560)]({'path':_0x2646b1,'queryParams':_0x1070be,'body':JSON[_0x3d6ab1(0x183)](_0xc80f66),'httpMethod':'POST','httpOptions':(_0x20948a=_0x5f4f54[_0x3d6ab1(0x66c)])===null||_0x20948a===void 0x0?void 0x0:_0x20948a[_0x3d6ab1(0x328)],'abortSignal':(_0x1794b6=_0x5f4f54[_0x3d6ab1(0x66c)])===null||_0x1794b6===void 0x0?void 0x0:_0x1794b6['abortSignal']})[_0x3d6ab1(0x486)](_0x58cb8b=>{const _0x39c65e=_0x3d6ab1;return _0x58cb8b[_0x39c65e(0x31b)]()[_0x39c65e(0x486)](_0x34315=>{const _0x1f6770=_0x39c65e,_0x279a9a=_0x34315;return _0x279a9a[_0x1f6770(0x344)]={'headers':_0x58cb8b[_0x1f6770(0x2b9)]},_0x279a9a;});}),_0x5896a6[_0x3d6ab1(0x486)](_0x38fa66=>{const _0x1449c0=cancelTuningJobResponseFromMldev(_0x38fa66),_0x4b5386=new CancelTuningJobResponse();return Object['assign'](_0x4b5386,_0x1449c0),_0x4b5386;});}}async[a6_0x51c1ef(0x2b4)](_0x2c6ea7){const _0x5948e2=a6_0x51c1ef;var _0x38d05e,_0x450de6;let _0x1fdb19,_0x5c2e90='',_0x1147b5={};if(this[_0x5948e2(0x61e)]['isVertexAI']()){const _0x19da52=createTuningJobParametersPrivateToVertex(_0x2c6ea7,_0x2c6ea7);return _0x5c2e90=formatMap(_0x5948e2(0x413),_0x19da52['_url']),_0x1147b5=_0x19da52['_query'],delete _0x19da52[_0x5948e2(0x2c1)],delete _0x19da52['_query'],_0x1fdb19=this[_0x5948e2(0x61e)]['request']({'path':_0x5c2e90,'queryParams':_0x1147b5,'body':JSON[_0x5948e2(0x183)](_0x19da52),'httpMethod':'POST','httpOptions':(_0x38d05e=_0x2c6ea7['config'])===null||_0x38d05e===void 0x0?void 0x0:_0x38d05e[_0x5948e2(0x328)],'abortSignal':(_0x450de6=_0x2c6ea7['config'])===null||_0x450de6===void 0x0?void 0x0:_0x450de6[_0x5948e2(0x643)]})[_0x5948e2(0x486)](_0x21af36=>{return _0x21af36['json']()['then'](_0x266daa=>{const _0x226396=a6_0x148c,_0x47df4d=_0x266daa;return _0x47df4d[_0x226396(0x344)]={'headers':_0x21af36[_0x226396(0x2b9)]},_0x47df4d;});}),_0x1fdb19[_0x5948e2(0x486)](_0x32ac38=>{const _0x1374d6=tuningJobFromVertex(_0x32ac38);return _0x1374d6;});}else throw new Error(_0x5948e2(0x493));}async[a6_0x51c1ef(0x167)](_0x1ff3e3){const _0x5d618e=a6_0x51c1ef;var _0x1cbb33,_0x2ee33c;let _0x326c02,_0x281b72='',_0x23c5b7={};if(this['apiClient'][_0x5d618e(0x291)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x5382f4=createTuningJobParametersPrivateToMldev(_0x1ff3e3);return _0x281b72=formatMap('tunedModels',_0x5382f4[_0x5d618e(0x2c1)]),_0x23c5b7=_0x5382f4[_0x5d618e(0x4cd)],delete _0x5382f4['_url'],delete _0x5382f4[_0x5d618e(0x4cd)],_0x326c02=this[_0x5d618e(0x61e)]['request']({'path':_0x281b72,'queryParams':_0x23c5b7,'body':JSON[_0x5d618e(0x183)](_0x5382f4),'httpMethod':'POST','httpOptions':(_0x1cbb33=_0x1ff3e3['config'])===null||_0x1cbb33===void 0x0?void 0x0:_0x1cbb33[_0x5d618e(0x328)],'abortSignal':(_0x2ee33c=_0x1ff3e3[_0x5d618e(0x66c)])===null||_0x2ee33c===void 0x0?void 0x0:_0x2ee33c[_0x5d618e(0x643)]})['then'](_0x3f2056=>{const _0x42f7d8=_0x5d618e;return _0x3f2056[_0x42f7d8(0x31b)]()[_0x42f7d8(0x486)](_0x4afd8f=>{const _0x11b9f2=_0x42f7d8,_0x56d4c5=_0x4afd8f;return _0x56d4c5[_0x11b9f2(0x344)]={'headers':_0x3f2056[_0x11b9f2(0x2b9)]},_0x56d4c5;});}),_0x326c02[_0x5d618e(0x486)](_0x430483=>{const _0x15449a=tuningOperationFromMldev(_0x430483);return _0x15449a;});}}}/**
252
+ * @license
253
+ * Copyright 2025 Google LLC
254
+ * SPDX-License-Identifier: Apache-2.0
255
+ */
256
+ class BrowserDownloader{async[a6_0x51c1ef(0x5dc)](_0x4dead5,_0x1127d3){const _0x5e29aa=a6_0x51c1ef;throw new Error(_0x5e29aa(0x589));}}const MAX_CHUNK_SIZE=0x400*0x400*0x8,MAX_RETRY_COUNT=0x3,INITIAL_RETRY_DELAY_MS=0x3e8,DELAY_MULTIPLIER=0x2,X_GOOG_UPLOAD_STATUS_HEADER_FIELD=a6_0x51c1ef(0x4cb);async function uploadBlob(_0xcdbbe1,_0x4528c4,_0x4b2d53){const _0x134e75=a6_0x51c1ef;var _0x509e0e;const _0x345821=await uploadBlobInternal(_0xcdbbe1,_0x4528c4,_0x4b2d53),_0x15ec64=await(_0x345821===null||_0x345821===void 0x0?void 0x0:_0x345821[_0x134e75(0x31b)]());if(((_0x509e0e=_0x345821===null||_0x345821===void 0x0?void 0x0:_0x345821[_0x134e75(0x2b9)])===null||_0x509e0e===void 0x0?void 0x0:_0x509e0e[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x134e75(0x2d9))throw new Error(_0x134e75(0x4d9));return _0x15ec64[_0x134e75(0x1c8)];}async function uploadBlobToFileSearchStore(_0xc57af4,_0x54b7ff,_0x9f1e4f){const _0x3aab23=a6_0x51c1ef;var _0x46de6c;const _0x495305=await uploadBlobInternal(_0xc57af4,_0x54b7ff,_0x9f1e4f),_0x17bb41=await(_0x495305===null||_0x495305===void 0x0?void 0x0:_0x495305[_0x3aab23(0x31b)]());if(((_0x46de6c=_0x495305===null||_0x495305===void 0x0?void 0x0:_0x495305[_0x3aab23(0x2b9)])===null||_0x46de6c===void 0x0?void 0x0:_0x46de6c[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x3aab23(0x2d9))throw new Error('Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.');const _0x33987d=uploadToFileSearchStoreOperationFromMldev(_0x17bb41),_0x4cc05e=new UploadToFileSearchStoreOperation();return Object[_0x3aab23(0x5a8)](_0x4cc05e,_0x33987d),_0x4cc05e;}async function uploadBlobInternal(_0x34902a,_0x46ed5b,_0x3fb61d){const _0x350abb=a6_0x51c1ef;var _0x138512,_0x174974;let _0x517cab=0x0,_0x368a98=0x0,_0x4cf3eb=new HttpResponse(new Response()),_0x33071a='upload';_0x517cab=_0x34902a[_0x350abb(0x262)];while(_0x368a98<_0x517cab){const _0x4475be=Math[_0x350abb(0x4dc)](MAX_CHUNK_SIZE,_0x517cab-_0x368a98),_0x55792a=_0x34902a[_0x350abb(0x15a)](_0x368a98,_0x368a98+_0x4475be);_0x368a98+_0x4475be>=_0x517cab&&(_0x33071a+=_0x350abb(0x518));let _0x556b51=0x0,_0x16a2d2=INITIAL_RETRY_DELAY_MS;while(_0x556b51<MAX_RETRY_COUNT){_0x4cf3eb=await _0x3fb61d['request']({'path':'','body':_0x55792a,'httpMethod':_0x350abb(0x1e6),'httpOptions':{'apiVersion':'','baseUrl':_0x46ed5b,'headers':{'X-Goog-Upload-Command':_0x33071a,'X-Goog-Upload-Offset':String(_0x368a98),'Content-Length':String(_0x4475be)}}});if((_0x138512=_0x4cf3eb===null||_0x4cf3eb===void 0x0?void 0x0:_0x4cf3eb['headers'])===null||_0x138512===void 0x0?void 0x0:_0x138512[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x556b51++,await sleep(_0x16a2d2),_0x16a2d2=_0x16a2d2*DELAY_MULTIPLIER;}_0x368a98+=_0x4475be;if(((_0x174974=_0x4cf3eb===null||_0x4cf3eb===void 0x0?void 0x0:_0x4cf3eb[_0x350abb(0x2b9)])===null||_0x174974===void 0x0?void 0x0:_0x174974[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x350abb(0x51f))break;if(_0x517cab<=_0x368a98)throw new Error('All\x20content\x20has\x20been\x20uploaded,\x20but\x20the\x20upload\x20status\x20is\x20not\x20finalized.');}return _0x4cf3eb;}async function getBlobStat(_0x289642){const _0x1ac026=a6_0x51c1ef,_0xc33852={'size':_0x289642[_0x1ac026(0x262)],'type':_0x289642[_0x1ac026(0x506)]};return _0xc33852;}function sleep(_0x5992cb){return new Promise(_0x19e3d4=>setTimeout(_0x19e3d4,_0x5992cb));}class BrowserUploader{async[a6_0x51c1ef(0x370)](_0x1d3ecf,_0x24a427,_0x49e8c2){const _0x741403=a6_0x51c1ef;if(typeof _0x1d3ecf===_0x741403(0x53d))throw new Error(_0x741403(0x45f));return await uploadBlob(_0x1d3ecf,_0x24a427,_0x49e8c2);}async[a6_0x51c1ef(0x402)](_0x1991c1,_0x4efdb1,_0x298e1f){const _0x1334b3=a6_0x51c1ef;if(typeof _0x1991c1===_0x1334b3(0x53d))throw new Error(_0x1334b3(0x45f));return await uploadBlobToFileSearchStore(_0x1991c1,_0x4efdb1,_0x298e1f);}async[a6_0x51c1ef(0x5c3)](_0x4c138a){if(typeof _0x4c138a==='string')throw new Error('File\x20path\x20is\x20not\x20supported\x20in\x20browser\x20uploader.');else return await getBlobStat(_0x4c138a);}}/**
257
+ * @license
258
+ * Copyright 2025 Google LLC
259
+ * SPDX-License-Identifier: Apache-2.0
260
+ */
261
+ class BrowserWebSocketFactory{[a6_0x51c1ef(0x3dd)](_0x238f69,_0x445604,_0x56ef9b){return new BrowserWebSocket(_0x238f69,_0x445604,_0x56ef9b);}}class BrowserWebSocket{constructor(_0x4752d9,_0x7bd10c,_0x5d54d0){const _0x41eaea=a6_0x51c1ef;this['url']=_0x4752d9,this[_0x41eaea(0x2b9)]=_0x7bd10c,this[_0x41eaea(0x605)]=_0x5d54d0;}['connect'](){const _0x34128a=a6_0x51c1ef;this['ws']=new WebSocket(this['url']),this['ws'][_0x34128a(0x22e)]=this[_0x34128a(0x605)][_0x34128a(0x22e)],this['ws'][_0x34128a(0x3ce)]=this[_0x34128a(0x605)][_0x34128a(0x3ce)],this['ws'][_0x34128a(0x3d2)]=this[_0x34128a(0x605)][_0x34128a(0x3d2)],this['ws'][_0x34128a(0x4ee)]=this[_0x34128a(0x605)][_0x34128a(0x4ee)];}[a6_0x51c1ef(0x575)](_0x21d2d6){const _0x33f6c2=a6_0x51c1ef;if(this['ws']===undefined)throw new Error(_0x33f6c2(0x5b8));this['ws'][_0x33f6c2(0x575)](_0x21d2d6);}['close'](){const _0xe47a70=a6_0x51c1ef;if(this['ws']===undefined)throw new Error(_0xe47a70(0x5b8));this['ws'][_0xe47a70(0x2db)]();}}/**
262
+ * @license
263
+ * Copyright 2025 Google LLC
264
+ * SPDX-License-Identifier: Apache-2.0
265
+ */
266
+ const GOOGLE_API_KEY_HEADER=a6_0x51c1ef(0x3fe);class WebAuth{constructor(_0x3a0035){this['apiKey']=_0x3a0035;}async[a6_0x51c1ef(0x41d)](_0x1232e1,_0x55b4ae){const _0x5165e5=a6_0x51c1ef;if(_0x1232e1[_0x5165e5(0x482)](GOOGLE_API_KEY_HEADER)!==null)return;if(this[_0x5165e5(0x614)][_0x5165e5(0x453)](_0x5165e5(0x46d)))throw new Error(_0x5165e5(0x5c9));if(!this[_0x5165e5(0x614)])throw new Error(_0x5165e5(0x524));_0x1232e1['append'](GOOGLE_API_KEY_HEADER,this[_0x5165e5(0x614)]);}}/**
267
+ * @license
268
+ * Copyright 2025 Google LLC
269
+ * SPDX-License-Identifier: Apache-2.0
270
+ */
271
+ const LANGUAGE_LABEL_PREFIX=a6_0x51c1ef(0x67d);class GoogleGenAI{get[a6_0x51c1ef(0x1fc)](){const _0x1f4755=a6_0x51c1ef;if(this[_0x1f4755(0x280)]!==undefined)return this['_interactions'];console[_0x1f4755(0x5a6)]('GoogleGenAI.interactions:\x20Interactions\x20usage\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.');const _0x47758e=this['httpOptions'];(_0x47758e===null||_0x47758e===void 0x0?void 0x0:_0x47758e[_0x1f4755(0x634)])&&console[_0x1f4755(0x5a6)](_0x1f4755(0x382));const _0x484d2c=new GeminiNextGenAPIClient({'baseURL':this[_0x1f4755(0x61e)]['getBaseUrl'](),'apiKey':this[_0x1f4755(0x614)],'apiVersion':this['apiClient']['getApiVersion'](),'clientAdapter':this['apiClient'],'defaultHeaders':this[_0x1f4755(0x61e)][_0x1f4755(0x578)](),'timeout':_0x47758e===null||_0x47758e===void 0x0?void 0x0:_0x47758e[_0x1f4755(0x2e3)]});return this['_interactions']=_0x484d2c[_0x1f4755(0x1fc)],this[_0x1f4755(0x280)];}constructor(_0x9b370f){const _0xe565fb=a6_0x51c1ef;var _0x54b5ad;if(_0x9b370f[_0xe565fb(0x614)]==null)throw new Error(_0xe565fb(0x5eb));if(_0x9b370f['project']||_0x9b370f['location'])throw new Error(_0xe565fb(0x360));this[_0xe565fb(0x593)]=(_0x54b5ad=_0x9b370f[_0xe565fb(0x593)])!==null&&_0x54b5ad!==void 0x0?_0x54b5ad:![],this[_0xe565fb(0x614)]=_0x9b370f[_0xe565fb(0x614)];const _0x537c3f=getBaseUrl(_0x9b370f['httpOptions'],_0x9b370f[_0xe565fb(0x593)],undefined,undefined);_0x537c3f&&(_0x9b370f[_0xe565fb(0x328)]?_0x9b370f[_0xe565fb(0x328)][_0xe565fb(0x586)]=_0x537c3f:_0x9b370f[_0xe565fb(0x328)]={'baseUrl':_0x537c3f});this['apiVersion']=_0x9b370f[_0xe565fb(0x63e)],this[_0xe565fb(0x328)]=_0x9b370f[_0xe565fb(0x328)];const _0x15b9a2=new WebAuth(this[_0xe565fb(0x614)]);this[_0xe565fb(0x61e)]=new ApiClient({'auth':_0x15b9a2,'apiVersion':this['apiVersion'],'apiKey':this[_0xe565fb(0x614)],'vertexai':this[_0xe565fb(0x593)],'httpOptions':this[_0xe565fb(0x328)],'userAgentExtra':LANGUAGE_LABEL_PREFIX+'web','uploader':new BrowserUploader(),'downloader':new BrowserDownloader()}),this[_0xe565fb(0x4dd)]=new Models(this[_0xe565fb(0x61e)]),this[_0xe565fb(0x27a)]=new Live(this[_0xe565fb(0x61e)],_0x15b9a2,new BrowserWebSocketFactory()),this['batches']=new Batches(this[_0xe565fb(0x61e)]),this[_0xe565fb(0x565)]=new Chats(this[_0xe565fb(0x4dd)],this[_0xe565fb(0x61e)]),this[_0xe565fb(0x1f1)]=new Caches(this[_0xe565fb(0x61e)]),this[_0xe565fb(0x318)]=new Files(this[_0xe565fb(0x61e)]),this[_0xe565fb(0x43f)]=new Operations(this[_0xe565fb(0x61e)]),this[_0xe565fb(0x5ae)]=new Tokens(this[_0xe565fb(0x61e)]),this['tunings']=new Tunings(this[_0xe565fb(0x61e)]),this[_0xe565fb(0x2f5)]=new FileSearchStores(this['apiClient']);}}export{ActivityHandling,AdapterSize,ApiError,ApiSpec,AuthType,Batches,Behavior,BlockedReason,Caches,CancelTuningJobResponse,Chat,Chats,ComputeTokensResponse,ContentReferenceImage,ControlReferenceImage,ControlReferenceType,CountTokensResponse,CreateFileResponse,DeleteCachedContentResponse,DeleteFileResponse,DeleteModelResponse,DocumentState,DynamicRetrievalConfigMode,EditImageResponse,EditMode,EmbedContentResponse,EndSensitivity,Environment,FeatureSelectionPreference,FileSource,FileState,Files,FinishReason,FunctionCallingConfigMode,FunctionResponse,FunctionResponseBlob,FunctionResponseFileData,FunctionResponsePart,FunctionResponseScheduling,GenerateContentResponse,GenerateContentResponsePromptFeedback,GenerateContentResponseUsageMetadata,GenerateImagesResponse,GenerateVideosOperation,GenerateVideosResponse,GoogleGenAI,HarmBlockMethod,HarmBlockThreshold,HarmCategory,HarmProbability,HarmSeverity,HttpElementLocation,HttpResponse,ImagePromptLanguage,ImportFileOperation,ImportFileResponse,InlinedEmbedContentResponse,InlinedResponse,JobState,Language,ListBatchJobsResponse,ListCachedContentsResponse,ListDocumentsResponse,ListFileSearchStoresResponse,ListFilesResponse,ListModelsResponse,ListTuningJobsResponse,Live,LiveClientToolResponse,LiveMusicPlaybackControl,LiveMusicServerMessage,LiveSendToolResponseParameters,LiveServerMessage,MaskReferenceImage,MaskReferenceMode,MediaModality,MediaResolution,Modality,Models,MusicGenerationMode,Operations,Outcome,PagedItem,Pager,PartMediaResolutionLevel,PersonGeneration,PhishBlockThreshold,RawReferenceImage,RecontextImageResponse,RegisterFilesResponse,ReplayResponse,ResourceScope,SafetyFilterLevel,Scale,SegmentImageResponse,SegmentMode,Session,SingleEmbedContentResponse,StartSensitivity,StyleReferenceImage,SubjectReferenceImage,SubjectReferenceType,ThinkingLevel,Tokens,TrafficType,TuningMethod,TuningMode,TuningTask,TurnCompleteReason,TurnCoverage,Type,UploadToFileSearchStoreOperation,UploadToFileSearchStoreResponse,UploadToFileSearchStoreResumableResponse,UpscaleImageResponse,UrlRetrievalStatus,VadSignalType,VideoCompressionQuality,VideoGenerationMaskMode,VideoGenerationReferenceType,VoiceActivityType,createFunctionResponsePartFromBase64,createFunctionResponsePartFromUri,createModelContent,createPartFromBase64,createPartFromCodeExecutionResult,createPartFromExecutableCode,createPartFromFunctionCall,createPartFromFunctionResponse,createPartFromText,createPartFromUri,createUserContent,mcpToTool,setDefaultBaseUrls};