@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.
- package/LICENSE +202 -0
- package/README.md +609 -0
- package/dist/genai.d.ts +11232 -0
- package/dist/index.cjs +276 -0
- package/dist/index.mjs +276 -0
- package/dist/node/index.cjs +281 -0
- package/dist/node/index.mjs +281 -0
- package/dist/node/node.d.ts +11244 -0
- package/dist/tokenizer/node.cjs +46 -0
- package/dist/tokenizer/node.d.ts +1159 -0
- package/dist/tokenizer/node.mjs +51 -0
- package/dist/web/index.mjs +271 -0
- package/dist/web/web.d.ts +11237 -0
- package/node/package.json +4 -0
- package/package.json +167 -0
- package/web/package.json +4 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
'use strict';const a2_0x8e922d=a2_0x28ed;(function(_0x86b57a,_0x171f89){const _0x357293=a2_0x28ed,_0x5218c1=_0x86b57a();while(!![]){try{const _0x2687ea=-parseInt(_0x357293(0x19c))/0x1*(-parseInt(_0x357293(0x5c5))/0x2)+-parseInt(_0x357293(0x3b2))/0x3+-parseInt(_0x357293(0x24a))/0x4+parseInt(_0x357293(0x62e))/0x5+-parseInt(_0x357293(0xc9))/0x6+parseInt(_0x357293(0x169))/0x7*(parseInt(_0x357293(0x1fc))/0x8)+parseInt(_0x357293(0x611))/0x9*(parseInt(_0x357293(0x27a))/0xa);if(_0x2687ea===_0x171f89)break;else _0x5218c1['push'](_0x5218c1['shift']());}catch(_0x3afb39){_0x5218c1['push'](_0x5218c1['shift']());}}}(a2_0x3ea7,0x98011));var googleAuthLibrary=require(a2_0x8e922d(0x1c0)),fs=require('fs'),fs$1=require(a2_0x8e922d(0x2a8)),node_stream=require(a2_0x8e922d(0x4b0)),promises=require(a2_0x8e922d(0x622)),NodeWs=require('ws'),path$1=require(a2_0x8e922d(0x2e0));function _interopNamespaceDefault(_0x6223f4){const _0x321aed=a2_0x8e922d;var _0x522954=Object[_0x321aed(0x5da)](null);return _0x6223f4&&Object[_0x321aed(0x6b2)](_0x6223f4)[_0x321aed(0xea)](function(_0x4014fe){const _0x22e952=_0x321aed;if(_0x4014fe!==_0x22e952(0x5a7)){var _0x445d69=Object[_0x22e952(0x2ae)](_0x6223f4,_0x4014fe);Object[_0x22e952(0x18e)](_0x522954,_0x4014fe,_0x445d69[_0x22e952(0x661)]?_0x445d69:{'enumerable':!![],'get':function(){return _0x6223f4[_0x4014fe];}});}}),_0x522954[_0x321aed(0x5a7)]=_0x6223f4,Object['freeze'](_0x522954);}var fs__namespace=_interopNamespaceDefault(fs$1),NodeWs__namespace=_interopNamespaceDefault(NodeWs),path__namespace=_interopNamespaceDefault(path$1);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
let _defaultBaseGeminiUrl=undefined,_defaultBaseVertexUrl=undefined;function setDefaultBaseUrls(_0xe9dbaa){_defaultBaseGeminiUrl=_0xe9dbaa['geminiUrl'],_defaultBaseVertexUrl=_0xe9dbaa['vertexUrl'];}function getDefaultBaseUrls(){return{'geminiUrl':_defaultBaseGeminiUrl,'vertexUrl':_defaultBaseVertexUrl};}function getBaseUrl(_0x56bd79,_0x297f02,_0x2cbea0,_0x370b69){const _0x28e6ec=a2_0x8e922d;var _0x594690,_0x593079;if(!(_0x56bd79===null||_0x56bd79===void 0x0?void 0x0:_0x56bd79[_0x28e6ec(0x2df)])){const _0x470e93=getDefaultBaseUrls();return _0x297f02?(_0x594690=_0x470e93[_0x28e6ec(0x5ad)])!==null&&_0x594690!==void 0x0?_0x594690:_0x2cbea0:(_0x593079=_0x470e93[_0x28e6ec(0x59c)])!==null&&_0x593079!==void 0x0?_0x593079:_0x370b69;}return _0x56bd79[_0x28e6ec(0x2df)];}/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 Google LLC
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
class BaseModule{}function formatMap(_0x3296d6,_0x385769){const _0x30f49b=a2_0x8e922d,_0xe71664=/\{([^}]+)\}/g;return _0x3296d6[_0x30f49b(0xdc)](_0xe71664,(_0x4de503,_0x4e0492)=>{const _0x2f284c=_0x30f49b;if(Object['prototype']['hasOwnProperty'][_0x2f284c(0x168)](_0x385769,_0x4e0492)){const _0x25942e=_0x385769[_0x4e0492];return _0x25942e!==undefined&&_0x25942e!==null?String(_0x25942e):'';}else throw new Error('Key\x20\x27'+_0x4e0492+'\x27\x20not\x20found\x20in\x20valueMap.');});}function setValueByPath(_0x47e338,_0x44dace,_0x1eae3e){const _0x1a5273=a2_0x8e922d;for(let _0x3d0830=0x0;_0x3d0830<_0x44dace[_0x1a5273(0x568)]-0x1;_0x3d0830++){const _0x2e8d59=_0x44dace[_0x3d0830];if(_0x2e8d59[_0x1a5273(0x39c)]('[]')){const _0x1c754e=_0x2e8d59['slice'](0x0,-0x2);if(!(_0x1c754e in _0x47e338)){if(Array[_0x1a5273(0x266)](_0x1eae3e))_0x47e338[_0x1c754e]=Array[_0x1a5273(0xb1)]({'length':_0x1eae3e['length']},()=>({}));else throw new Error('Value\x20must\x20be\x20a\x20list\x20given\x20an\x20array\x20path\x20'+_0x2e8d59);}if(Array['isArray'](_0x47e338[_0x1c754e])){const _0x1b6182=_0x47e338[_0x1c754e];if(Array[_0x1a5273(0x266)](_0x1eae3e))for(let _0x297406=0x0;_0x297406<_0x1b6182[_0x1a5273(0x568)];_0x297406++){const _0xa6e56b=_0x1b6182[_0x297406];setValueByPath(_0xa6e56b,_0x44dace[_0x1a5273(0x664)](_0x3d0830+0x1),_0x1eae3e[_0x297406]);}else for(const _0x29bd54 of _0x1b6182){setValueByPath(_0x29bd54,_0x44dace[_0x1a5273(0x664)](_0x3d0830+0x1),_0x1eae3e);}}return;}else{if(_0x2e8d59[_0x1a5273(0x39c)]('[0]')){const _0x3bba6b=_0x2e8d59[_0x1a5273(0x664)](0x0,-0x3);!(_0x3bba6b in _0x47e338)&&(_0x47e338[_0x3bba6b]=[{}]);const _0x434fd5=_0x47e338[_0x3bba6b];setValueByPath(_0x434fd5[0x0],_0x44dace[_0x1a5273(0x664)](_0x3d0830+0x1),_0x1eae3e);return;}}(!_0x47e338[_0x2e8d59]||typeof _0x47e338[_0x2e8d59]!==_0x1a5273(0x515))&&(_0x47e338[_0x2e8d59]={}),_0x47e338=_0x47e338[_0x2e8d59];}const _0x3a1dc9=_0x44dace[_0x44dace[_0x1a5273(0x568)]-0x1],_0x243e29=_0x47e338[_0x3a1dc9];if(_0x243e29!==undefined){if(!_0x1eae3e||typeof _0x1eae3e===_0x1a5273(0x515)&&Object[_0x1a5273(0x6b2)](_0x1eae3e)['length']===0x0)return;if(_0x1eae3e===_0x243e29)return;if(typeof _0x243e29===_0x1a5273(0x515)&&typeof _0x1eae3e===_0x1a5273(0x515)&&_0x243e29!==null&&_0x1eae3e!==null)Object[_0x1a5273(0x289)](_0x243e29,_0x1eae3e);else throw new Error(_0x1a5273(0x197)+_0x3a1dc9);}else{if(_0x3a1dc9===_0x1a5273(0x39a)&&typeof _0x1eae3e===_0x1a5273(0x515)&&_0x1eae3e!==null&&!Array[_0x1a5273(0x266)](_0x1eae3e)){const _0x310f48=_0x1eae3e;Object[_0x1a5273(0x289)](_0x47e338,_0x310f48);}else _0x47e338[_0x3a1dc9]=_0x1eae3e;}}function getValueByPath(_0x446553,_0x2b8716,_0x26ce13=undefined){const _0x570144=a2_0x8e922d;try{if(_0x2b8716[_0x570144(0x568)]===0x1&&_0x2b8716[0x0]===_0x570144(0x39a))return _0x446553;for(let _0x2408d7=0x0;_0x2408d7<_0x2b8716[_0x570144(0x568)];_0x2408d7++){if(typeof _0x446553!==_0x570144(0x515)||_0x446553===null)return _0x26ce13;const _0xa41c84=_0x2b8716[_0x2408d7];if(_0xa41c84[_0x570144(0x39c)]('[]')){const _0x34b5f8=_0xa41c84[_0x570144(0x664)](0x0,-0x2);if(_0x34b5f8 in _0x446553){const _0x1b1017=_0x446553[_0x34b5f8];if(!Array[_0x570144(0x266)](_0x1b1017))return _0x26ce13;return _0x1b1017[_0x570144(0x4a8)](_0x232462=>getValueByPath(_0x232462,_0x2b8716[_0x570144(0x664)](_0x2408d7+0x1),_0x26ce13));}else return _0x26ce13;}else _0x446553=_0x446553[_0xa41c84];}return _0x446553;}catch(_0x1ca117){if(_0x1ca117 instanceof TypeError)return _0x26ce13;throw _0x1ca117;}}function moveValueByPath(_0x412bda,_0x5d6c91){const _0x51fb83=a2_0x8e922d;for(const [_0x2247f6,_0x209664]of Object[_0x51fb83(0x3da)](_0x5d6c91)){const _0xc83167=_0x2247f6['split']('.'),_0x4e314f=_0x209664[_0x51fb83(0x5f3)]('.'),_0x4eff87=new Set();let _0x3ac224=-0x1;for(let _0x160fe1=0x0;_0x160fe1<_0xc83167['length'];_0x160fe1++){if(_0xc83167[_0x160fe1]==='*'){_0x3ac224=_0x160fe1;break;}}if(_0x3ac224!==-0x1&&_0x4e314f[_0x51fb83(0x568)]>_0x3ac224)for(let _0x4a0681=_0x3ac224;_0x4a0681<_0x4e314f['length'];_0x4a0681++){const _0x3baffc=_0x4e314f[_0x4a0681];_0x3baffc!=='*'&&!_0x3baffc[_0x51fb83(0x39c)]('[]')&&!_0x3baffc[_0x51fb83(0x39c)](_0x51fb83(0x6af))&&_0x4eff87['add'](_0x3baffc);}_moveValueRecursive(_0x412bda,_0xc83167,_0x4e314f,0x0,_0x4eff87);}}function _moveValueRecursive(_0x1b6193,_0x749b9f,_0x59320c,_0x18e109,_0x9a7e11){const _0x23de04=a2_0x8e922d;if(_0x18e109>=_0x749b9f[_0x23de04(0x568)])return;if(typeof _0x1b6193!==_0x23de04(0x515)||_0x1b6193===null)return;const _0x140a36=_0x749b9f[_0x18e109];if(_0x140a36[_0x23de04(0x39c)]('[]')){const _0x3c4866=_0x140a36[_0x23de04(0x664)](0x0,-0x2),_0x3ac4cb=_0x1b6193;if(_0x3c4866 in _0x3ac4cb&&Array[_0x23de04(0x266)](_0x3ac4cb[_0x3c4866]))for(const _0x442b6b of _0x3ac4cb[_0x3c4866]){_moveValueRecursive(_0x442b6b,_0x749b9f,_0x59320c,_0x18e109+0x1,_0x9a7e11);}}else{if(_0x140a36==='*'){if(typeof _0x1b6193===_0x23de04(0x515)&&_0x1b6193!==null&&!Array['isArray'](_0x1b6193)){const _0x257ac6=_0x1b6193,_0x142174=Object[_0x23de04(0x6b2)](_0x257ac6)['filter'](_0x3c49a9=>!_0x3c49a9[_0x23de04(0x1af)]('_')&&!_0x9a7e11[_0x23de04(0x4b7)](_0x3c49a9)),_0x146a43={};for(const _0x36c4b8 of _0x142174){_0x146a43[_0x36c4b8]=_0x257ac6[_0x36c4b8];}for(const [_0x211b60,_0x130988]of Object[_0x23de04(0x3da)](_0x146a43)){const _0x5bc6e0=[];for(const _0xb72631 of _0x59320c['slice'](_0x18e109)){_0xb72631==='*'?_0x5bc6e0[_0x23de04(0x599)](_0x211b60):_0x5bc6e0[_0x23de04(0x599)](_0xb72631);}setValueByPath(_0x257ac6,_0x5bc6e0,_0x130988);}for(const _0x44f72c of _0x142174){delete _0x257ac6[_0x44f72c];}}}else{const _0x2b7c6b=_0x1b6193;_0x140a36 in _0x2b7c6b&&_moveValueRecursive(_0x2b7c6b[_0x140a36],_0x749b9f,_0x59320c,_0x18e109+0x1,_0x9a7e11);}}}/**
|
|
12
|
+
* @license
|
|
13
|
+
* Copyright 2025 Google LLC
|
|
14
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
+
*/
|
|
16
|
+
function tBytes$1(_0x27940b){const _0x3bc000=a2_0x8e922d;if(typeof _0x27940b!==_0x3bc000(0x68f))throw new Error('fromImageBytes\x20must\x20be\x20a\x20string');return _0x27940b;}/**
|
|
17
|
+
* @license
|
|
18
|
+
* Copyright 2025 Google LLC
|
|
19
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
20
|
+
*/
|
|
21
|
+
function fetchPredictOperationParametersToVertex(_0x1cc061){const _0x178a9d=a2_0x8e922d,_0x253f9e={},_0x1ac0d9=getValueByPath(_0x1cc061,[_0x178a9d(0x5c1)]);_0x1ac0d9!=null&&setValueByPath(_0x253f9e,[_0x178a9d(0x5c1)],_0x1ac0d9);const _0x965041=getValueByPath(_0x1cc061,[_0x178a9d(0x3b4)]);return _0x965041!=null&&setValueByPath(_0x253f9e,[_0x178a9d(0x334),_0x178a9d(0x3b4)],_0x965041),_0x253f9e;}function generateVideosOperationFromMldev$1(_0x392605){const _0x23c78c=a2_0x8e922d,_0xbbc6c3={},_0x45bd8e=getValueByPath(_0x392605,[_0x23c78c(0x206)]);_0x45bd8e!=null&&setValueByPath(_0xbbc6c3,[_0x23c78c(0x206)],_0x45bd8e);const _0xe49045=getValueByPath(_0x392605,['metadata']);_0xe49045!=null&&setValueByPath(_0xbbc6c3,[_0x23c78c(0x172)],_0xe49045);const _0x25e63d=getValueByPath(_0x392605,[_0x23c78c(0x4ae)]);_0x25e63d!=null&&setValueByPath(_0xbbc6c3,[_0x23c78c(0x4ae)],_0x25e63d);const _0x2cd52c=getValueByPath(_0x392605,[_0x23c78c(0x262)]);_0x2cd52c!=null&&setValueByPath(_0xbbc6c3,['error'],_0x2cd52c);const _0x1c5bdc=getValueByPath(_0x392605,[_0x23c78c(0x1d3),_0x23c78c(0x2cf)]);return _0x1c5bdc!=null&&setValueByPath(_0xbbc6c3,[_0x23c78c(0x1d3)],generateVideosResponseFromMldev$1(_0x1c5bdc)),_0xbbc6c3;}function generateVideosOperationFromVertex$1(_0x3c736a){const _0x5bd887=a2_0x8e922d,_0x2e4515={},_0x237ee9=getValueByPath(_0x3c736a,[_0x5bd887(0x206)]);_0x237ee9!=null&&setValueByPath(_0x2e4515,[_0x5bd887(0x206)],_0x237ee9);const _0x35043a=getValueByPath(_0x3c736a,['metadata']);_0x35043a!=null&&setValueByPath(_0x2e4515,['metadata'],_0x35043a);const _0x20cba2=getValueByPath(_0x3c736a,[_0x5bd887(0x4ae)]);_0x20cba2!=null&&setValueByPath(_0x2e4515,[_0x5bd887(0x4ae)],_0x20cba2);const _0x84f42e=getValueByPath(_0x3c736a,[_0x5bd887(0x262)]);_0x84f42e!=null&&setValueByPath(_0x2e4515,[_0x5bd887(0x262)],_0x84f42e);const _0x180719=getValueByPath(_0x3c736a,[_0x5bd887(0x1d3)]);return _0x180719!=null&&setValueByPath(_0x2e4515,['response'],generateVideosResponseFromVertex$1(_0x180719)),_0x2e4515;}function generateVideosResponseFromMldev$1(_0x3a485e){const _0x1a67bd=a2_0x8e922d,_0x1ff71a={},_0x2b75fc=getValueByPath(_0x3a485e,[_0x1a67bd(0x1e9)]);if(_0x2b75fc!=null){let _0x56f9ac=_0x2b75fc;Array[_0x1a67bd(0x266)](_0x56f9ac)&&(_0x56f9ac=_0x56f9ac['map'](_0x3016a6=>{return generatedVideoFromMldev$1(_0x3016a6);})),setValueByPath(_0x1ff71a,[_0x1a67bd(0x3a6)],_0x56f9ac);}const _0x7c0642=getValueByPath(_0x3a485e,[_0x1a67bd(0x261)]);_0x7c0642!=null&&setValueByPath(_0x1ff71a,[_0x1a67bd(0x261)],_0x7c0642);const _0x1c8d0f=getValueByPath(_0x3a485e,[_0x1a67bd(0x1d0)]);return _0x1c8d0f!=null&&setValueByPath(_0x1ff71a,['raiMediaFilteredReasons'],_0x1c8d0f),_0x1ff71a;}function generateVideosResponseFromVertex$1(_0x316c80){const _0x2de493=a2_0x8e922d,_0x222fb1={},_0x1f818c=getValueByPath(_0x316c80,['videos']);if(_0x1f818c!=null){let _0x124c8b=_0x1f818c;Array[_0x2de493(0x266)](_0x124c8b)&&(_0x124c8b=_0x124c8b[_0x2de493(0x4a8)](_0x5ae6b6=>{return generatedVideoFromVertex$1(_0x5ae6b6);})),setValueByPath(_0x222fb1,[_0x2de493(0x3a6)],_0x124c8b);}const _0x560e47=getValueByPath(_0x316c80,['raiMediaFilteredCount']);_0x560e47!=null&&setValueByPath(_0x222fb1,[_0x2de493(0x261)],_0x560e47);const _0x2ef634=getValueByPath(_0x316c80,[_0x2de493(0x1d0)]);return _0x2ef634!=null&&setValueByPath(_0x222fb1,['raiMediaFilteredReasons'],_0x2ef634),_0x222fb1;}function generatedVideoFromMldev$1(_0x554b27){const _0x10c203=a2_0x8e922d,_0x26dc2a={},_0x2f223b=getValueByPath(_0x554b27,[_0x10c203(0x640)]);return _0x2f223b!=null&&setValueByPath(_0x26dc2a,[_0x10c203(0x640)],videoFromMldev$1(_0x2f223b)),_0x26dc2a;}function generatedVideoFromVertex$1(_0xc1f446){const _0x4aef8f=a2_0x8e922d,_0x19e1f2={},_0xa4efe4=getValueByPath(_0xc1f446,['_self']);return _0xa4efe4!=null&&setValueByPath(_0x19e1f2,[_0x4aef8f(0x640)],videoFromVertex$1(_0xa4efe4)),_0x19e1f2;}function getOperationParametersToMldev(_0x393d39){const _0x4a68d1=a2_0x8e922d,_0x153727={},_0x584e73=getValueByPath(_0x393d39,[_0x4a68d1(0x5c1)]);return _0x584e73!=null&&setValueByPath(_0x153727,['_url',_0x4a68d1(0x5c1)],_0x584e73),_0x153727;}function getOperationParametersToVertex(_0x4c8609){const _0x2520d9=a2_0x8e922d,_0x282295={},_0x35c99b=getValueByPath(_0x4c8609,[_0x2520d9(0x5c1)]);return _0x35c99b!=null&&setValueByPath(_0x282295,[_0x2520d9(0x334),_0x2520d9(0x5c1)],_0x35c99b),_0x282295;}function importFileOperationFromMldev$1(_0x5740e6){const _0x593e62=a2_0x8e922d,_0x293862={},_0x409b9a=getValueByPath(_0x5740e6,['name']);_0x409b9a!=null&&setValueByPath(_0x293862,['name'],_0x409b9a);const _0x4ca73d=getValueByPath(_0x5740e6,['metadata']);_0x4ca73d!=null&&setValueByPath(_0x293862,['metadata'],_0x4ca73d);const _0x3b6275=getValueByPath(_0x5740e6,[_0x593e62(0x4ae)]);_0x3b6275!=null&&setValueByPath(_0x293862,[_0x593e62(0x4ae)],_0x3b6275);const _0x4b7c7a=getValueByPath(_0x5740e6,['error']);_0x4b7c7a!=null&&setValueByPath(_0x293862,[_0x593e62(0x262)],_0x4b7c7a);const _0x384b1c=getValueByPath(_0x5740e6,[_0x593e62(0x1d3)]);return _0x384b1c!=null&&setValueByPath(_0x293862,['response'],importFileResponseFromMldev$1(_0x384b1c)),_0x293862;}function importFileResponseFromMldev$1(_0x64112d){const _0x5e0394=a2_0x8e922d,_0x54b4c3={},_0x1e1bb8=getValueByPath(_0x64112d,[_0x5e0394(0x3a0)]);_0x1e1bb8!=null&&setValueByPath(_0x54b4c3,['sdkHttpResponse'],_0x1e1bb8);const _0x270baa=getValueByPath(_0x64112d,[_0x5e0394(0x232)]);_0x270baa!=null&&setValueByPath(_0x54b4c3,[_0x5e0394(0x232)],_0x270baa);const _0x3a0bfd=getValueByPath(_0x64112d,[_0x5e0394(0x380)]);return _0x3a0bfd!=null&&setValueByPath(_0x54b4c3,['documentName'],_0x3a0bfd),_0x54b4c3;}function uploadToFileSearchStoreOperationFromMldev(_0x258301){const _0x4e4f7d=a2_0x8e922d,_0x8cd09={},_0x1faeb2=getValueByPath(_0x258301,[_0x4e4f7d(0x206)]);_0x1faeb2!=null&&setValueByPath(_0x8cd09,[_0x4e4f7d(0x206)],_0x1faeb2);const _0x26565e=getValueByPath(_0x258301,[_0x4e4f7d(0x172)]);_0x26565e!=null&&setValueByPath(_0x8cd09,[_0x4e4f7d(0x172)],_0x26565e);const _0x340957=getValueByPath(_0x258301,[_0x4e4f7d(0x4ae)]);_0x340957!=null&&setValueByPath(_0x8cd09,[_0x4e4f7d(0x4ae)],_0x340957);const _0x1cf402=getValueByPath(_0x258301,[_0x4e4f7d(0x262)]);_0x1cf402!=null&&setValueByPath(_0x8cd09,[_0x4e4f7d(0x262)],_0x1cf402);const _0xc368a5=getValueByPath(_0x258301,[_0x4e4f7d(0x1d3)]);return _0xc368a5!=null&&setValueByPath(_0x8cd09,[_0x4e4f7d(0x1d3)],uploadToFileSearchStoreResponseFromMldev(_0xc368a5)),_0x8cd09;}function uploadToFileSearchStoreResponseFromMldev(_0x5e50b1){const _0x143d4c=a2_0x8e922d,_0x184e62={},_0x258a9c=getValueByPath(_0x5e50b1,[_0x143d4c(0x3a0)]);_0x258a9c!=null&&setValueByPath(_0x184e62,[_0x143d4c(0x3a0)],_0x258a9c);const _0x58d8f9=getValueByPath(_0x5e50b1,[_0x143d4c(0x232)]);_0x58d8f9!=null&&setValueByPath(_0x184e62,[_0x143d4c(0x232)],_0x58d8f9);const _0x21b9f3=getValueByPath(_0x5e50b1,['documentName']);return _0x21b9f3!=null&&setValueByPath(_0x184e62,[_0x143d4c(0x380)],_0x21b9f3),_0x184e62;}function videoFromMldev$1(_0x34ec9d){const _0x395f48=a2_0x8e922d,_0x545566={},_0xf0be2b=getValueByPath(_0x34ec9d,[_0x395f48(0x1a0)]);_0xf0be2b!=null&&setValueByPath(_0x545566,[_0x395f48(0x1a0)],_0xf0be2b);const _0x491b5b=getValueByPath(_0x34ec9d,[_0x395f48(0x22b)]);_0x491b5b!=null&&setValueByPath(_0x545566,[_0x395f48(0x426)],tBytes$1(_0x491b5b));const _0x14d0f0=getValueByPath(_0x34ec9d,['encoding']);return _0x14d0f0!=null&&setValueByPath(_0x545566,['mimeType'],_0x14d0f0),_0x545566;}function videoFromVertex$1(_0x23eb39){const _0x518bf9=a2_0x8e922d,_0x3fa3cf={},_0x40afdf=getValueByPath(_0x23eb39,[_0x518bf9(0x305)]);_0x40afdf!=null&&setValueByPath(_0x3fa3cf,[_0x518bf9(0x1a0)],_0x40afdf);const _0x3374c6=getValueByPath(_0x23eb39,[_0x518bf9(0x64e)]);_0x3374c6!=null&&setValueByPath(_0x3fa3cf,[_0x518bf9(0x426)],tBytes$1(_0x3374c6));const _0x43f6c1=getValueByPath(_0x23eb39,[_0x518bf9(0x3c0)]);return _0x43f6c1!=null&&setValueByPath(_0x3fa3cf,[_0x518bf9(0x3c0)],_0x43f6c1),_0x3fa3cf;}/**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2025 Google LLC
|
|
24
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
25
|
+
*/
|
|
26
|
+
exports['Outcome']=void 0x0,function(_0x2ecc34){const _0x3cf3b1=a2_0x8e922d;_0x2ecc34[_0x3cf3b1(0x445)]=_0x3cf3b1(0x445),_0x2ecc34[_0x3cf3b1(0x461)]=_0x3cf3b1(0x461),_0x2ecc34[_0x3cf3b1(0x3a5)]=_0x3cf3b1(0x3a5),_0x2ecc34['OUTCOME_DEADLINE_EXCEEDED']=_0x3cf3b1(0x247);}(exports[a2_0x8e922d(0x366)]||(exports[a2_0x8e922d(0x366)]={})),exports[a2_0x8e922d(0x2c8)]=void 0x0,function(_0xc0a92e){const _0x20c2c6=a2_0x8e922d;_0xc0a92e['LANGUAGE_UNSPECIFIED']='LANGUAGE_UNSPECIFIED',_0xc0a92e['PYTHON']=_0x20c2c6(0x57e);}(exports[a2_0x8e922d(0x2c8)]||(exports[a2_0x8e922d(0x2c8)]={})),exports[a2_0x8e922d(0x2d1)]=void 0x0,function(_0x87d7e1){const _0x244daa=a2_0x8e922d;_0x87d7e1[_0x244daa(0x55c)]=_0x244daa(0x55c),_0x87d7e1['SILENT']=_0x244daa(0x463),_0x87d7e1[_0x244daa(0x19a)]=_0x244daa(0x19a),_0x87d7e1['INTERRUPT']=_0x244daa(0x15e);}(exports['FunctionResponseScheduling']||(exports['FunctionResponseScheduling']={})),exports[a2_0x8e922d(0x44a)]=void 0x0,function(_0xae5764){const _0x36f40e=a2_0x8e922d;_0xae5764['TYPE_UNSPECIFIED']=_0x36f40e(0x4df),_0xae5764[_0x36f40e(0x4a0)]=_0x36f40e(0x4a0),_0xae5764[_0x36f40e(0x1e2)]=_0x36f40e(0x1e2),_0xae5764[_0x36f40e(0x24f)]=_0x36f40e(0x24f),_0xae5764[_0x36f40e(0x38b)]=_0x36f40e(0x38b),_0xae5764[_0x36f40e(0x494)]='ARRAY',_0xae5764[_0x36f40e(0xde)]=_0x36f40e(0xde),_0xae5764[_0x36f40e(0x3d6)]=_0x36f40e(0x3d6);}(exports[a2_0x8e922d(0x44a)]||(exports['Type']={})),exports[a2_0x8e922d(0x4ff)]=void 0x0,function(_0x2a52ab){const _0x5c93df=a2_0x8e922d;_0x2a52ab[_0x5c93df(0x265)]=_0x5c93df(0x265),_0x2a52ab[_0x5c93df(0x6a7)]=_0x5c93df(0x6a7),_0x2a52ab[_0x5c93df(0x1a9)]=_0x5c93df(0x1a9);}(exports['ApiSpec']||(exports[a2_0x8e922d(0x4ff)]={})),exports[a2_0x8e922d(0x35b)]=void 0x0,function(_0x32599b){const _0x1deec0=a2_0x8e922d;_0x32599b[_0x1deec0(0x36c)]=_0x1deec0(0x36c),_0x32599b[_0x1deec0(0x1cd)]=_0x1deec0(0x1cd),_0x32599b[_0x1deec0(0x1b5)]=_0x1deec0(0x1b5),_0x32599b['HTTP_BASIC_AUTH']=_0x1deec0(0xc3),_0x32599b['GOOGLE_SERVICE_ACCOUNT_AUTH']='GOOGLE_SERVICE_ACCOUNT_AUTH',_0x32599b[_0x1deec0(0x1b1)]=_0x1deec0(0x1b1),_0x32599b[_0x1deec0(0x66c)]=_0x1deec0(0x66c);}(exports[a2_0x8e922d(0x35b)]||(exports[a2_0x8e922d(0x35b)]={})),exports[a2_0x8e922d(0xb8)]=void 0x0,function(_0x1663f5){const _0x38328b=a2_0x8e922d;_0x1663f5[_0x38328b(0x2a5)]=_0x38328b(0x2a5),_0x1663f5[_0x38328b(0x542)]=_0x38328b(0x542),_0x1663f5[_0x38328b(0x42c)]=_0x38328b(0x42c),_0x1663f5[_0x38328b(0x5fc)]=_0x38328b(0x5fc),_0x1663f5[_0x38328b(0xd7)]=_0x38328b(0xd7),_0x1663f5[_0x38328b(0x587)]=_0x38328b(0x587);}(exports[a2_0x8e922d(0xb8)]||(exports[a2_0x8e922d(0xb8)]={})),exports[a2_0x8e922d(0x5f2)]=void 0x0,function(_0x10bc10){const _0x512149=a2_0x8e922d;_0x10bc10[_0x512149(0x2f9)]=_0x512149(0x2f9),_0x10bc10['BLOCK_LOW_AND_ABOVE']=_0x512149(0x1d6),_0x10bc10[_0x512149(0x2f1)]=_0x512149(0x2f1),_0x10bc10[_0x512149(0x5e2)]=_0x512149(0x5e2),_0x10bc10[_0x512149(0x339)]=_0x512149(0x339),_0x10bc10[_0x512149(0x42b)]=_0x512149(0x42b),_0x10bc10['BLOCK_ONLY_EXTREMELY_HIGH']=_0x512149(0x1de);}(exports[a2_0x8e922d(0x5f2)]||(exports[a2_0x8e922d(0x5f2)]={})),exports[a2_0x8e922d(0x479)]=void 0x0,function(_0xf77926){const _0x331b70=a2_0x8e922d;_0xf77926['UNSPECIFIED']=_0x331b70(0x207),_0xf77926[_0x331b70(0x5c4)]=_0x331b70(0x5c4),_0xf77926['NON_BLOCKING']=_0x331b70(0xf9);}(exports[a2_0x8e922d(0x479)]||(exports['Behavior']={})),exports['DynamicRetrievalConfigMode']=void 0x0,function(_0x1b631c){const _0xab5722=a2_0x8e922d;_0x1b631c[_0xab5722(0x17a)]=_0xab5722(0x17a),_0x1b631c[_0xab5722(0x14a)]=_0xab5722(0x14a);}(exports[a2_0x8e922d(0x48b)]||(exports['DynamicRetrievalConfigMode']={})),exports['FunctionCallingConfigMode']=void 0x0,function(_0x30664b){const _0x136a91=a2_0x8e922d;_0x30664b['MODE_UNSPECIFIED']='MODE_UNSPECIFIED',_0x30664b[_0x136a91(0x545)]='AUTO',_0x30664b[_0x136a91(0x517)]=_0x136a91(0x517),_0x30664b[_0x136a91(0x364)]='NONE',_0x30664b[_0x136a91(0x3b9)]=_0x136a91(0x3b9);}(exports[a2_0x8e922d(0x2b0)]||(exports[a2_0x8e922d(0x2b0)]={})),exports[a2_0x8e922d(0xf7)]=void 0x0,function(_0x4c27d0){const _0x1b6b5d=a2_0x8e922d;_0x4c27d0[_0x1b6b5d(0x302)]=_0x1b6b5d(0x302),_0x4c27d0[_0x1b6b5d(0x480)]=_0x1b6b5d(0x480),_0x4c27d0[_0x1b6b5d(0x605)]=_0x1b6b5d(0x605),_0x4c27d0[_0x1b6b5d(0x589)]=_0x1b6b5d(0x589),_0x4c27d0[_0x1b6b5d(0x3f8)]=_0x1b6b5d(0x3f8);}(exports[a2_0x8e922d(0xf7)]||(exports['ThinkingLevel']={})),exports[a2_0x8e922d(0x61e)]=void 0x0,function(_0x38ca9a){const _0x25ce91=a2_0x8e922d;_0x38ca9a[_0x25ce91(0x425)]='HARM_CATEGORY_UNSPECIFIED',_0x38ca9a[_0x25ce91(0x641)]='HARM_CATEGORY_HARASSMENT',_0x38ca9a[_0x25ce91(0x35c)]=_0x25ce91(0x35c),_0x38ca9a[_0x25ce91(0x3e6)]=_0x25ce91(0x3e6),_0x38ca9a[_0x25ce91(0x46e)]=_0x25ce91(0x46e),_0x38ca9a[_0x25ce91(0x4be)]='HARM_CATEGORY_CIVIC_INTEGRITY',_0x38ca9a[_0x25ce91(0xaf)]=_0x25ce91(0xaf),_0x38ca9a[_0x25ce91(0x444)]=_0x25ce91(0x444),_0x38ca9a['HARM_CATEGORY_IMAGE_HARASSMENT']=_0x25ce91(0x591),_0x38ca9a[_0x25ce91(0x64b)]=_0x25ce91(0x64b),_0x38ca9a[_0x25ce91(0x3a2)]=_0x25ce91(0x3a2);}(exports[a2_0x8e922d(0x61e)]||(exports[a2_0x8e922d(0x61e)]={})),exports[a2_0x8e922d(0x356)]=void 0x0,function(_0x5bd8e6){const _0x531a66=a2_0x8e922d;_0x5bd8e6['HARM_BLOCK_METHOD_UNSPECIFIED']=_0x531a66(0x11d),_0x5bd8e6[_0x531a66(0x535)]=_0x531a66(0x535),_0x5bd8e6[_0x531a66(0x3ae)]=_0x531a66(0x3ae);}(exports[a2_0x8e922d(0x356)]||(exports[a2_0x8e922d(0x356)]={})),exports[a2_0x8e922d(0x4a4)]=void 0x0,function(_0x1471b4){const _0x372502=a2_0x8e922d;_0x1471b4[_0x372502(0x636)]=_0x372502(0x636),_0x1471b4[_0x372502(0x1d6)]='BLOCK_LOW_AND_ABOVE',_0x1471b4[_0x372502(0x2f1)]=_0x372502(0x2f1),_0x1471b4['BLOCK_ONLY_HIGH']=_0x372502(0x301),_0x1471b4['BLOCK_NONE']=_0x372502(0x2c3),_0x1471b4[_0x372502(0x6ac)]='OFF';}(exports['HarmBlockThreshold']||(exports[a2_0x8e922d(0x4a4)]={})),exports['FinishReason']=void 0x0,function(_0x63e16f){const _0x53e9c1=a2_0x8e922d;_0x63e16f['FINISH_REASON_UNSPECIFIED']=_0x53e9c1(0x1dd),_0x63e16f['STOP']=_0x53e9c1(0x68c),_0x63e16f[_0x53e9c1(0x62c)]=_0x53e9c1(0x62c),_0x63e16f[_0x53e9c1(0x391)]='SAFETY',_0x63e16f[_0x53e9c1(0xb7)]=_0x53e9c1(0xb7),_0x63e16f[_0x53e9c1(0x482)]=_0x53e9c1(0x482),_0x63e16f[_0x53e9c1(0x4e4)]=_0x53e9c1(0x4e4),_0x63e16f[_0x53e9c1(0x573)]=_0x53e9c1(0x573),_0x63e16f[_0x53e9c1(0x21d)]=_0x53e9c1(0x21d),_0x63e16f[_0x53e9c1(0x377)]=_0x53e9c1(0x377),_0x63e16f['MALFORMED_FUNCTION_CALL']=_0x53e9c1(0x66d),_0x63e16f['IMAGE_SAFETY']=_0x53e9c1(0x1ff),_0x63e16f[_0x53e9c1(0x179)]=_0x53e9c1(0x179),_0x63e16f[_0x53e9c1(0x156)]=_0x53e9c1(0x156),_0x63e16f[_0x53e9c1(0x1bd)]='NO_IMAGE',_0x63e16f[_0x53e9c1(0x49f)]='IMAGE_RECITATION',_0x63e16f[_0x53e9c1(0x3fa)]=_0x53e9c1(0x3fa);}(exports[a2_0x8e922d(0x221)]||(exports[a2_0x8e922d(0x221)]={})),exports['HarmProbability']=void 0x0,function(_0x4db64e){const _0xbf24b7=a2_0x8e922d;_0x4db64e[_0xbf24b7(0x229)]=_0xbf24b7(0x229),_0x4db64e[_0xbf24b7(0x623)]=_0xbf24b7(0x623),_0x4db64e[_0xbf24b7(0x480)]=_0xbf24b7(0x480),_0x4db64e[_0xbf24b7(0x605)]='MEDIUM',_0x4db64e[_0xbf24b7(0x589)]=_0xbf24b7(0x589);}(exports[a2_0x8e922d(0x3c5)]||(exports['HarmProbability']={})),exports[a2_0x8e922d(0x1b6)]=void 0x0,function(_0x272cb8){const _0x2b9464=a2_0x8e922d;_0x272cb8['HARM_SEVERITY_UNSPECIFIED']=_0x2b9464(0x50b),_0x272cb8[_0x2b9464(0x337)]=_0x2b9464(0x337),_0x272cb8[_0x2b9464(0x35d)]=_0x2b9464(0x35d),_0x272cb8[_0x2b9464(0x200)]=_0x2b9464(0x200),_0x272cb8['HARM_SEVERITY_HIGH']=_0x2b9464(0x389);}(exports[a2_0x8e922d(0x1b6)]||(exports[a2_0x8e922d(0x1b6)]={})),exports[a2_0x8e922d(0x3f2)]=void 0x0,function(_0x4c5166){const _0x5c823c=a2_0x8e922d;_0x4c5166[_0x5c823c(0x29f)]='URL_RETRIEVAL_STATUS_UNSPECIFIED',_0x4c5166[_0x5c823c(0x5ac)]='URL_RETRIEVAL_STATUS_SUCCESS',_0x4c5166[_0x5c823c(0x415)]='URL_RETRIEVAL_STATUS_ERROR',_0x4c5166[_0x5c823c(0x41e)]=_0x5c823c(0x41e),_0x4c5166[_0x5c823c(0x524)]=_0x5c823c(0x524);}(exports[a2_0x8e922d(0x3f2)]||(exports['UrlRetrievalStatus']={})),exports[a2_0x8e922d(0x17b)]=void 0x0,function(_0x5051ad){const _0xbbbbd4=a2_0x8e922d;_0x5051ad[_0xbbbbd4(0x1cf)]=_0xbbbbd4(0x1cf),_0x5051ad[_0xbbbbd4(0x391)]='SAFETY',_0x5051ad[_0xbbbbd4(0x4e4)]='OTHER',_0x5051ad[_0xbbbbd4(0x573)]=_0xbbbbd4(0x573),_0x5051ad[_0xbbbbd4(0x21d)]=_0xbbbbd4(0x21d),_0x5051ad[_0xbbbbd4(0x1ff)]='IMAGE_SAFETY',_0x5051ad[_0xbbbbd4(0x1e5)]=_0xbbbbd4(0x1e5),_0x5051ad[_0xbbbbd4(0x54e)]=_0xbbbbd4(0x54e);}(exports[a2_0x8e922d(0x17b)]||(exports[a2_0x8e922d(0x17b)]={})),exports[a2_0x8e922d(0x49b)]=void 0x0,function(_0x913aa9){const _0x5e6dd9=a2_0x8e922d;_0x913aa9[_0x5e6dd9(0x2d2)]=_0x5e6dd9(0x2d2),_0x913aa9[_0x5e6dd9(0x1a7)]=_0x5e6dd9(0x1a7),_0x913aa9[_0x5e6dd9(0x4ee)]=_0x5e6dd9(0x4ee);}(exports[a2_0x8e922d(0x49b)]||(exports['TrafficType']={})),exports[a2_0x8e922d(0x394)]=void 0x0,function(_0x471d27){const _0xde51d1=a2_0x8e922d;_0x471d27[_0xde51d1(0x30c)]='MODALITY_UNSPECIFIED',_0x471d27[_0xde51d1(0x500)]=_0xde51d1(0x500),_0x471d27[_0xde51d1(0x5a0)]='IMAGE',_0x471d27[_0xde51d1(0x3f4)]=_0xde51d1(0x3f4);}(exports[a2_0x8e922d(0x394)]||(exports[a2_0x8e922d(0x394)]={})),exports[a2_0x8e922d(0x583)]=void 0x0,function(_0x359cf7){const _0x52cffd=a2_0x8e922d;_0x359cf7['MEDIA_RESOLUTION_UNSPECIFIED']=_0x52cffd(0xf3),_0x359cf7[_0x52cffd(0x434)]=_0x52cffd(0x434),_0x359cf7[_0x52cffd(0x563)]=_0x52cffd(0x563),_0x359cf7[_0x52cffd(0x53a)]='MEDIA_RESOLUTION_HIGH';}(exports['MediaResolution']||(exports[a2_0x8e922d(0x583)]={})),exports[a2_0x8e922d(0x1ed)]=void 0x0,function(_0x37b8fd){const _0x282b46=a2_0x8e922d;_0x37b8fd[_0x282b46(0x3df)]=_0x282b46(0x3df),_0x37b8fd[_0x282b46(0x133)]=_0x282b46(0x133),_0x37b8fd[_0x282b46(0x5c6)]=_0x282b46(0x5c6);}(exports['TuningMode']||(exports[a2_0x8e922d(0x1ed)]={})),exports['AdapterSize']=void 0x0,function(_0xe385ed){const _0x2ee93a=a2_0x8e922d;_0xe385ed[_0x2ee93a(0x699)]=_0x2ee93a(0x699),_0xe385ed[_0x2ee93a(0x4db)]=_0x2ee93a(0x4db),_0xe385ed[_0x2ee93a(0x61f)]=_0x2ee93a(0x61f),_0xe385ed[_0x2ee93a(0x5f4)]=_0x2ee93a(0x5f4),_0xe385ed[_0x2ee93a(0x1fe)]='ADAPTER_SIZE_EIGHT',_0xe385ed['ADAPTER_SIZE_SIXTEEN']=_0x2ee93a(0x2dd),_0xe385ed['ADAPTER_SIZE_THIRTY_TWO']='ADAPTER_SIZE_THIRTY_TWO';}(exports[a2_0x8e922d(0x2cd)]||(exports[a2_0x8e922d(0x2cd)]={})),exports[a2_0x8e922d(0x184)]=void 0x0,function(_0x394cd6){const _0x146385=a2_0x8e922d;_0x394cd6[_0x146385(0x32b)]=_0x146385(0x32b),_0x394cd6['JOB_STATE_QUEUED']=_0x146385(0x26a),_0x394cd6[_0x146385(0x2c1)]=_0x146385(0x2c1),_0x394cd6['JOB_STATE_RUNNING']=_0x146385(0x12a),_0x394cd6[_0x146385(0x1ab)]=_0x146385(0x1ab),_0x394cd6[_0x146385(0x393)]=_0x146385(0x393),_0x394cd6[_0x146385(0x39b)]=_0x146385(0x39b),_0x394cd6[_0x146385(0x430)]='JOB_STATE_CANCELLED',_0x394cd6[_0x146385(0x3bb)]='JOB_STATE_PAUSED',_0x394cd6[_0x146385(0x212)]=_0x146385(0x212),_0x394cd6[_0x146385(0x18f)]=_0x146385(0x18f),_0x394cd6[_0x146385(0x153)]=_0x146385(0x153);}(exports[a2_0x8e922d(0x184)]||(exports[a2_0x8e922d(0x184)]={})),exports[a2_0x8e922d(0x485)]=void 0x0,function(_0x515647){const _0x4a0c86=a2_0x8e922d;_0x515647['TUNING_TASK_UNSPECIFIED']='TUNING_TASK_UNSPECIFIED',_0x515647[_0x4a0c86(0x405)]=_0x4a0c86(0x405),_0x515647[_0x4a0c86(0x576)]=_0x4a0c86(0x576),_0x515647['TUNING_TASK_R2V']=_0x4a0c86(0x585);}(exports[a2_0x8e922d(0x485)]||(exports[a2_0x8e922d(0x485)]={})),exports['PartMediaResolutionLevel']=void 0x0,function(_0x397140){const _0x154f0b=a2_0x8e922d;_0x397140['MEDIA_RESOLUTION_UNSPECIFIED']=_0x154f0b(0xf3),_0x397140[_0x154f0b(0x434)]=_0x154f0b(0x434),_0x397140[_0x154f0b(0x563)]='MEDIA_RESOLUTION_MEDIUM',_0x397140[_0x154f0b(0x53a)]=_0x154f0b(0x53a),_0x397140[_0x154f0b(0x407)]=_0x154f0b(0x407);}(exports[a2_0x8e922d(0x23e)]||(exports[a2_0x8e922d(0x23e)]={})),exports[a2_0x8e922d(0x523)]=void 0x0,function(_0x29f591){const _0x405ce7=a2_0x8e922d;_0x29f591['COLLECTION']=_0x405ce7(0x3ed);}(exports[a2_0x8e922d(0x523)]||(exports[a2_0x8e922d(0x523)]={})),exports[a2_0x8e922d(0x5eb)]=void 0x0,function(_0x872ae3){const _0x4f654b=a2_0x8e922d;_0x872ae3[_0x4f654b(0x46b)]=_0x4f654b(0x46b),_0x872ae3['PRIORITIZE_QUALITY']=_0x4f654b(0x5fe),_0x872ae3[_0x4f654b(0x353)]='BALANCED',_0x872ae3[_0x4f654b(0x459)]='PRIORITIZE_COST';}(exports[a2_0x8e922d(0x5eb)]||(exports[a2_0x8e922d(0x5eb)]={})),exports[a2_0x8e922d(0x205)]=void 0x0,function(_0x58be0c){const _0x2c5eb6=a2_0x8e922d;_0x58be0c[_0x2c5eb6(0x5aa)]=_0x2c5eb6(0x5aa),_0x58be0c['ENVIRONMENT_BROWSER']='ENVIRONMENT_BROWSER';}(exports[a2_0x8e922d(0x205)]||(exports[a2_0x8e922d(0x205)]={})),exports[a2_0x8e922d(0x379)]=void 0x0,function(_0x36e92e){const _0x82b1ed=a2_0x8e922d;_0x36e92e['BLOCK_LOW_AND_ABOVE']=_0x82b1ed(0x1d6),_0x36e92e[_0x82b1ed(0x2f1)]=_0x82b1ed(0x2f1),_0x36e92e[_0x82b1ed(0x301)]=_0x82b1ed(0x301),_0x36e92e[_0x82b1ed(0x2c3)]=_0x82b1ed(0x2c3);}(exports[a2_0x8e922d(0x379)]||(exports[a2_0x8e922d(0x379)]={})),exports[a2_0x8e922d(0x5ae)]=void 0x0,function(_0x588a1f){const _0x521133=a2_0x8e922d;_0x588a1f[_0x521133(0x180)]='DONT_ALLOW',_0x588a1f[_0x521133(0x22c)]=_0x521133(0x22c),_0x588a1f[_0x521133(0xb3)]=_0x521133(0xb3);}(exports[a2_0x8e922d(0x5ae)]||(exports[a2_0x8e922d(0x5ae)]={})),exports[a2_0x8e922d(0x38d)]=void 0x0,function(_0x1e6d09){const _0x1c2528=a2_0x8e922d;_0x1e6d09[_0x1c2528(0x631)]=_0x1c2528(0x631),_0x1e6d09['en']='en',_0x1e6d09['ja']='ja',_0x1e6d09['ko']='ko',_0x1e6d09['hi']='hi',_0x1e6d09['zh']='zh',_0x1e6d09['pt']='pt',_0x1e6d09['es']='es';}(exports[a2_0x8e922d(0x38d)]||(exports['ImagePromptLanguage']={})),exports[a2_0x8e922d(0x5d2)]=void 0x0,function(_0x40cd0e){const _0x2173f2=a2_0x8e922d;_0x40cd0e['MASK_MODE_DEFAULT']=_0x2173f2(0x454),_0x40cd0e[_0x2173f2(0x61c)]=_0x2173f2(0x61c),_0x40cd0e[_0x2173f2(0x250)]=_0x2173f2(0x250),_0x40cd0e[_0x2173f2(0x484)]=_0x2173f2(0x484),_0x40cd0e[_0x2173f2(0x492)]=_0x2173f2(0x492);}(exports[a2_0x8e922d(0x5d2)]||(exports['MaskReferenceMode']={})),exports[a2_0x8e922d(0x503)]=void 0x0,function(_0x296caf){const _0x170372=a2_0x8e922d;_0x296caf['CONTROL_TYPE_DEFAULT']='CONTROL_TYPE_DEFAULT',_0x296caf[_0x170372(0x5ee)]=_0x170372(0x5ee),_0x296caf[_0x170372(0xc8)]=_0x170372(0xc8),_0x296caf[_0x170372(0x5e5)]=_0x170372(0x5e5);}(exports[a2_0x8e922d(0x503)]||(exports['ControlReferenceType']={})),exports[a2_0x8e922d(0x598)]=void 0x0,function(_0x3a4a70){const _0x113b6b=a2_0x8e922d;_0x3a4a70['SUBJECT_TYPE_DEFAULT']=_0x113b6b(0xfe),_0x3a4a70[_0x113b6b(0x6a2)]=_0x113b6b(0x6a2),_0x3a4a70[_0x113b6b(0x5f6)]=_0x113b6b(0x5f6),_0x3a4a70[_0x113b6b(0x59e)]='SUBJECT_TYPE_PRODUCT';}(exports[a2_0x8e922d(0x598)]||(exports[a2_0x8e922d(0x598)]={})),exports[a2_0x8e922d(0x4b6)]=void 0x0,function(_0x371cee){const _0x34556d=a2_0x8e922d;_0x371cee[_0x34556d(0x483)]=_0x34556d(0x483),_0x371cee['EDIT_MODE_INPAINT_REMOVAL']=_0x34556d(0x522),_0x371cee['EDIT_MODE_INPAINT_INSERTION']='EDIT_MODE_INPAINT_INSERTION',_0x371cee[_0x34556d(0x474)]='EDIT_MODE_OUTPAINT',_0x371cee[_0x34556d(0x67d)]=_0x34556d(0x67d),_0x371cee[_0x34556d(0x31b)]='EDIT_MODE_STYLE',_0x371cee['EDIT_MODE_BGSWAP']=_0x34556d(0x52a),_0x371cee[_0x34556d(0x5b8)]=_0x34556d(0x5b8);}(exports[a2_0x8e922d(0x4b6)]||(exports[a2_0x8e922d(0x4b6)]={})),exports[a2_0x8e922d(0x1e7)]=void 0x0,function(_0x2051cb){const _0x45aa58=a2_0x8e922d;_0x2051cb[_0x45aa58(0x26d)]=_0x45aa58(0x26d),_0x2051cb['BACKGROUND']=_0x45aa58(0x5db),_0x2051cb[_0x45aa58(0x597)]='PROMPT',_0x2051cb['SEMANTIC']=_0x45aa58(0x584),_0x2051cb[_0x45aa58(0x4fa)]=_0x45aa58(0x4fa);}(exports[a2_0x8e922d(0x1e7)]||(exports[a2_0x8e922d(0x1e7)]={})),exports[a2_0x8e922d(0x64a)]=void 0x0,function(_0x460097){const _0x3f34ee=a2_0x8e922d;_0x460097[_0x3f34ee(0x5fd)]=_0x3f34ee(0x5fd),_0x460097[_0x3f34ee(0xfc)]=_0x3f34ee(0xfc);}(exports['VideoGenerationReferenceType']||(exports['VideoGenerationReferenceType']={})),exports[a2_0x8e922d(0x40a)]=void 0x0,function(_0x44146e){const _0x15086f=a2_0x8e922d;_0x44146e['INSERT']=_0x15086f(0x384),_0x44146e[_0x15086f(0x187)]='REMOVE',_0x44146e['REMOVE_STATIC']=_0x15086f(0x19f),_0x44146e[_0x15086f(0x145)]=_0x15086f(0x145);}(exports[a2_0x8e922d(0x40a)]||(exports[a2_0x8e922d(0x40a)]={})),exports[a2_0x8e922d(0x104)]=void 0x0,function(_0x4ee07b){const _0x49583c=a2_0x8e922d;_0x4ee07b[_0x49583c(0x450)]=_0x49583c(0x450),_0x4ee07b[_0x49583c(0x307)]=_0x49583c(0x307);}(exports['VideoCompressionQuality']||(exports['VideoCompressionQuality']={})),exports[a2_0x8e922d(0x50f)]=void 0x0,function(_0x51f073){const _0x1bfdd4=a2_0x8e922d;_0x51f073[_0x1bfdd4(0x26b)]=_0x1bfdd4(0x26b),_0x51f073[_0x1bfdd4(0xf6)]=_0x1bfdd4(0xf6),_0x51f073[_0x1bfdd4(0x5fa)]='DISTILLATION';}(exports[a2_0x8e922d(0x50f)]||(exports[a2_0x8e922d(0x50f)]={})),exports[a2_0x8e922d(0x4d6)]=void 0x0,function(_0x33c8a3){const _0x3d8be1=a2_0x8e922d;_0x33c8a3[_0x3d8be1(0x2da)]='STATE_UNSPECIFIED',_0x33c8a3[_0x3d8be1(0x4d5)]=_0x3d8be1(0x4d5),_0x33c8a3[_0x3d8be1(0x4d3)]=_0x3d8be1(0x4d3),_0x33c8a3[_0x3d8be1(0x35e)]=_0x3d8be1(0x35e);}(exports[a2_0x8e922d(0x4d6)]||(exports[a2_0x8e922d(0x4d6)]={})),exports[a2_0x8e922d(0x3e5)]=void 0x0,function(_0x3f658a){const _0x33ec00=a2_0x8e922d;_0x3f658a['STATE_UNSPECIFIED']=_0x33ec00(0x2da),_0x3f658a[_0x33ec00(0x381)]=_0x33ec00(0x381),_0x3f658a[_0x33ec00(0x654)]='ACTIVE',_0x3f658a['FAILED']=_0x33ec00(0x2e1);}(exports['FileState']||(exports[a2_0x8e922d(0x3e5)]={})),exports[a2_0x8e922d(0x601)]=void 0x0,function(_0x29d97c){const _0x120277=a2_0x8e922d;_0x29d97c['SOURCE_UNSPECIFIED']=_0x120277(0x57d),_0x29d97c[_0x120277(0x31d)]='UPLOADED',_0x29d97c[_0x120277(0x32e)]='GENERATED',_0x29d97c['REGISTERED']=_0x120277(0x1e8);}(exports['FileSource']||(exports[a2_0x8e922d(0x601)]={})),exports[a2_0x8e922d(0x25e)]=void 0x0,function(_0x2b49e4){const _0x2dc452=a2_0x8e922d;_0x2b49e4[_0x2dc452(0x395)]=_0x2dc452(0x395),_0x2b49e4[_0x2dc452(0x66d)]=_0x2dc452(0x66d),_0x2b49e4[_0x2dc452(0x16f)]=_0x2dc452(0x16f),_0x2b49e4['NEED_MORE_INPUT']='NEED_MORE_INPUT';}(exports[a2_0x8e922d(0x25e)]||(exports[a2_0x8e922d(0x25e)]={})),exports[a2_0x8e922d(0x33f)]=void 0x0,function(_0xd4f25c){const _0x33370d=a2_0x8e922d;_0xd4f25c[_0x33370d(0x30c)]=_0x33370d(0x30c),_0xd4f25c['TEXT']='TEXT',_0xd4f25c[_0x33370d(0x5a0)]=_0x33370d(0x5a0),_0xd4f25c['VIDEO']='VIDEO',_0xd4f25c[_0x33370d(0x3f4)]=_0x33370d(0x3f4),_0xd4f25c[_0x33370d(0x58b)]='DOCUMENT';}(exports[a2_0x8e922d(0x33f)]||(exports['MediaModality']={})),exports[a2_0x8e922d(0x228)]=void 0x0,function(_0x1346d9){const _0x5cb3ac=a2_0x8e922d;_0x1346d9[_0x5cb3ac(0x5be)]='VAD_SIGNAL_TYPE_UNSPECIFIED',_0x1346d9['VAD_SIGNAL_TYPE_SOS']='VAD_SIGNAL_TYPE_SOS',_0x1346d9[_0x5cb3ac(0x41a)]=_0x5cb3ac(0x41a);}(exports[a2_0x8e922d(0x228)]||(exports['VadSignalType']={})),exports[a2_0x8e922d(0x1bf)]=void 0x0,function(_0x3ed4aa){const _0x5abb5b=a2_0x8e922d;_0x3ed4aa['TYPE_UNSPECIFIED']=_0x5abb5b(0x4df),_0x3ed4aa['ACTIVITY_START']=_0x5abb5b(0x604),_0x3ed4aa[_0x5abb5b(0x612)]='ACTIVITY_END';}(exports[a2_0x8e922d(0x1bf)]||(exports[a2_0x8e922d(0x1bf)]={})),exports['StartSensitivity']=void 0x0,function(_0x35335f){const _0x384bcc=a2_0x8e922d;_0x35335f[_0x384bcc(0x602)]='START_SENSITIVITY_UNSPECIFIED',_0x35335f[_0x384bcc(0x629)]=_0x384bcc(0x629),_0x35335f['START_SENSITIVITY_LOW']=_0x384bcc(0x2ff);}(exports[a2_0x8e922d(0x550)]||(exports[a2_0x8e922d(0x550)]={})),exports['EndSensitivity']=void 0x0,function(_0x3c4ff4){const _0x5a57cb=a2_0x8e922d;_0x3c4ff4['END_SENSITIVITY_UNSPECIFIED']=_0x5a57cb(0x5a6),_0x3c4ff4[_0x5a57cb(0x564)]=_0x5a57cb(0x564),_0x3c4ff4[_0x5a57cb(0x308)]=_0x5a57cb(0x308);}(exports[a2_0x8e922d(0x27c)]||(exports[a2_0x8e922d(0x27c)]={})),exports[a2_0x8e922d(0x260)]=void 0x0,function(_0x214024){const _0x46c4e6=a2_0x8e922d;_0x214024[_0x46c4e6(0x644)]='ACTIVITY_HANDLING_UNSPECIFIED',_0x214024[_0x46c4e6(0x236)]=_0x46c4e6(0x236),_0x214024[_0x46c4e6(0x35f)]=_0x46c4e6(0x35f);}(exports['ActivityHandling']||(exports[a2_0x8e922d(0x260)]={})),exports[a2_0x8e922d(0x3b8)]=void 0x0,function(_0x46ddd4){const _0x3e0f82=a2_0x8e922d;_0x46ddd4[_0x3e0f82(0x341)]=_0x3e0f82(0x341),_0x46ddd4[_0x3e0f82(0x557)]=_0x3e0f82(0x557),_0x46ddd4[_0x3e0f82(0x4d8)]=_0x3e0f82(0x4d8);}(exports[a2_0x8e922d(0x3b8)]||(exports['TurnCoverage']={})),exports['Scale']=void 0x0,function(_0x51bfef){const _0x21fd8a=a2_0x8e922d;_0x51bfef[_0x21fd8a(0x4da)]=_0x21fd8a(0x4da),_0x51bfef['C_MAJOR_A_MINOR']='C_MAJOR_A_MINOR',_0x51bfef[_0x21fd8a(0x4c4)]=_0x21fd8a(0x4c4),_0x51bfef[_0x21fd8a(0x4a7)]=_0x21fd8a(0x4a7),_0x51bfef[_0x21fd8a(0x291)]=_0x21fd8a(0x291),_0x51bfef[_0x21fd8a(0x39f)]='E_MAJOR_D_FLAT_MINOR',_0x51bfef[_0x21fd8a(0x1cb)]=_0x21fd8a(0x1cb),_0x51bfef[_0x21fd8a(0x3cb)]=_0x21fd8a(0x3cb),_0x51bfef[_0x21fd8a(0x5f7)]=_0x21fd8a(0x5f7),_0x51bfef['A_FLAT_MAJOR_F_MINOR']='A_FLAT_MAJOR_F_MINOR',_0x51bfef[_0x21fd8a(0x495)]=_0x21fd8a(0x495),_0x51bfef[_0x21fd8a(0x64f)]=_0x21fd8a(0x64f),_0x51bfef[_0x21fd8a(0x5f8)]=_0x21fd8a(0x5f8);}(exports['Scale']||(exports[a2_0x8e922d(0x369)]={})),exports['MusicGenerationMode']=void 0x0,function(_0x1befa1){const _0x38c113=a2_0x8e922d;_0x1befa1[_0x38c113(0x689)]=_0x38c113(0x689),_0x1befa1[_0x38c113(0x512)]=_0x38c113(0x512),_0x1befa1[_0x38c113(0x15c)]=_0x38c113(0x15c),_0x1befa1[_0x38c113(0x619)]=_0x38c113(0x619);}(exports[a2_0x8e922d(0x47e)]||(exports['MusicGenerationMode']={})),exports[a2_0x8e922d(0x538)]=void 0x0,function(_0x32d0c0){const _0x5dd805=a2_0x8e922d;_0x32d0c0[_0x5dd805(0x4f3)]='PLAYBACK_CONTROL_UNSPECIFIED',_0x32d0c0['PLAY']=_0x5dd805(0x637),_0x32d0c0[_0x5dd805(0x19d)]=_0x5dd805(0x19d),_0x32d0c0['STOP']=_0x5dd805(0x68c),_0x32d0c0[_0x5dd805(0x1c1)]=_0x5dd805(0x1c1);}(exports[a2_0x8e922d(0x538)]||(exports['LiveMusicPlaybackControl']={}));class FunctionResponseBlob{}class FunctionResponseFileData{}class FunctionResponsePart{}function createFunctionResponsePartFromBase64(_0x3d7797,_0x97bba3){return{'inlineData':{'data':_0x3d7797,'mimeType':_0x97bba3}};}function createFunctionResponsePartFromUri(_0x5ac94b,_0x197fde){return{'fileData':{'fileUri':_0x5ac94b,'mimeType':_0x197fde}};}class FunctionResponse{}function createPartFromUri(_0x12f9c1,_0x2054bb,_0xd4dd60){const _0x1db0c4=a2_0x8e922d;return Object[_0x1db0c4(0x289)]({'fileData':{'fileUri':_0x12f9c1,'mimeType':_0x2054bb}},_0xd4dd60&&{'mediaResolution':{'level':_0xd4dd60}});}function createPartFromText(_0x16d952){return{'text':_0x16d952};}function createPartFromFunctionCall(_0x5a8bc0,_0x542e34){return{'functionCall':{'name':_0x5a8bc0,'args':_0x542e34}};}function createPartFromFunctionResponse(_0x17d619,_0xb5f8d5,_0xe75e8b,_0x1a7e90=[]){const _0x298b53=a2_0x8e922d;return{'functionResponse':Object[_0x298b53(0x289)]({'id':_0x17d619,'name':_0xb5f8d5,'response':_0xe75e8b},_0x1a7e90[_0x298b53(0x568)]>0x0&&{'parts':_0x1a7e90})};}function createPartFromBase64(_0x3086e3,_0x2a1902,_0x19646c){const _0x37071e=a2_0x8e922d;return Object[_0x37071e(0x289)]({'inlineData':{'data':_0x3086e3,'mimeType':_0x2a1902}},_0x19646c&&{'mediaResolution':{'level':_0x19646c}});}function createPartFromCodeExecutionResult(_0x32db08,_0x3cc51b){return{'codeExecutionResult':{'outcome':_0x32db08,'output':_0x3cc51b}};}function createPartFromExecutableCode(_0x7b513c,_0x25a077){return{'executableCode':{'code':_0x7b513c,'language':_0x25a077}};}function _isPart(_0x3d8530){const _0x1f3e4d=a2_0x8e922d;if(typeof _0x3d8530==='object'&&_0x3d8530!==null)return _0x1f3e4d(0x49d)in _0x3d8530||'text'in _0x3d8530||_0x1f3e4d(0x521)in _0x3d8530||_0x1f3e4d(0x659)in _0x3d8530||_0x1f3e4d(0x54b)in _0x3d8530||'videoMetadata'in _0x3d8530||_0x1f3e4d(0x686)in _0x3d8530||_0x1f3e4d(0x295)in _0x3d8530;return![];}function _toParts(_0x4e2e3b){const _0x282427=a2_0x8e922d,_0x30fc3c=[];if(typeof _0x4e2e3b===_0x282427(0x68f))_0x30fc3c[_0x282427(0x599)](createPartFromText(_0x4e2e3b));else{if(_isPart(_0x4e2e3b))_0x30fc3c[_0x282427(0x599)](_0x4e2e3b);else{if(Array['isArray'](_0x4e2e3b)){if(_0x4e2e3b[_0x282427(0x568)]===0x0)throw new Error(_0x282427(0x2fd));for(const _0x410eec of _0x4e2e3b){if(typeof _0x410eec==='string')_0x30fc3c['push'](createPartFromText(_0x410eec));else{if(_isPart(_0x410eec))_0x30fc3c[_0x282427(0x599)](_0x410eec);else throw new Error(_0x282427(0x56e));}}}else throw new Error(_0x282427(0x3d9));}}return _0x30fc3c;}function createUserContent(_0x21781e){const _0x267c51=a2_0x8e922d;return{'role':_0x267c51(0x5d0),'parts':_toParts(_0x21781e)};}function createModelContent(_0x442da8){const _0x228e00=a2_0x8e922d;return{'role':_0x228e00(0x638),'parts':_toParts(_0x442da8)};}class HttpResponse{constructor(_0x2ca496){const _0x263385=a2_0x8e922d,_0x3600fb={};for(const _0x3a9820 of _0x2ca496[_0x263385(0x438)][_0x263385(0x3da)]()){_0x3600fb[_0x3a9820[0x0]]=_0x3a9820[0x1];}this[_0x263385(0x438)]=_0x3600fb,this[_0x263385(0x2ec)]=_0x2ca496;}[a2_0x8e922d(0xdf)](){const _0xf46ccb=a2_0x8e922d;return this['responseInternal'][_0xf46ccb(0xdf)]();}}class GenerateContentResponsePromptFeedback{}class GenerateContentResponseUsageMetadata{}class GenerateContentResponse{get[a2_0x8e922d(0x1a8)](){const _0x3a5edc=a2_0x8e922d;var _0x4057f6,_0x2a253b,_0x4e14fd,_0x17dca4,_0x1251d5,_0x448433,_0x1b7cee,_0x4c3a03;if(((_0x17dca4=(_0x4e14fd=(_0x2a253b=(_0x4057f6=this[_0x3a5edc(0x2ba)])===null||_0x4057f6===void 0x0?void 0x0:_0x4057f6[0x0])===null||_0x2a253b===void 0x0?void 0x0:_0x2a253b[_0x3a5edc(0x4a6)])===null||_0x4e14fd===void 0x0?void 0x0:_0x4e14fd[_0x3a5edc(0x694)])===null||_0x17dca4===void 0x0?void 0x0:_0x17dca4[_0x3a5edc(0x568)])===0x0)return undefined;this[_0x3a5edc(0x2ba)]&&this[_0x3a5edc(0x2ba)]['length']>0x1&&console['warn'](_0x3a5edc(0x502));let _0x3dffc9='',_0x35a792=![];const _0x2ee3f9=[];for(const _0x115d07 of(_0x4c3a03=(_0x1b7cee=(_0x448433=(_0x1251d5=this['candidates'])===null||_0x1251d5===void 0x0?void 0x0:_0x1251d5[0x0])===null||_0x448433===void 0x0?void 0x0:_0x448433[_0x3a5edc(0x4a6)])===null||_0x1b7cee===void 0x0?void 0x0:_0x1b7cee[_0x3a5edc(0x694)])!==null&&_0x4c3a03!==void 0x0?_0x4c3a03:[]){for(const [_0x1fffca,_0x42b306]of Object[_0x3a5edc(0x3da)](_0x115d07)){_0x1fffca!==_0x3a5edc(0x1a8)&&_0x1fffca!==_0x3a5edc(0x4d4)&&_0x1fffca!==_0x3a5edc(0x643)&&(_0x42b306!==null||_0x42b306!==undefined)&&_0x2ee3f9['push'](_0x1fffca);}if(typeof _0x115d07[_0x3a5edc(0x1a8)]===_0x3a5edc(0x68f)){if(typeof _0x115d07[_0x3a5edc(0x4d4)]===_0x3a5edc(0x173)&&_0x115d07['thought'])continue;_0x35a792=!![],_0x3dffc9+=_0x115d07[_0x3a5edc(0x1a8)];}}return _0x2ee3f9[_0x3a5edc(0x568)]>0x0&&console[_0x3a5edc(0x1ef)](_0x3a5edc(0x618)+_0x2ee3f9+'\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20text\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20text\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.'),_0x35a792?_0x3dffc9:undefined;}get['data'](){const _0x3eae42=a2_0x8e922d;var _0x265658,_0x3856b8,_0x1a4440,_0x5a5a5d,_0xccc3cb,_0x4d02fb,_0x593ba9,_0x2b2dbe;if(((_0x5a5a5d=(_0x1a4440=(_0x3856b8=(_0x265658=this[_0x3eae42(0x2ba)])===null||_0x265658===void 0x0?void 0x0:_0x265658[0x0])===null||_0x3856b8===void 0x0?void 0x0:_0x3856b8[_0x3eae42(0x4a6)])===null||_0x1a4440===void 0x0?void 0x0:_0x1a4440[_0x3eae42(0x694)])===null||_0x5a5a5d===void 0x0?void 0x0:_0x5a5a5d['length'])===0x0)return undefined;this['candidates']&&this[_0x3eae42(0x2ba)][_0x3eae42(0x568)]>0x1&&console['warn']('there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20data\x20from\x20the\x20first\x20one.');let _0xc35bf3='';const _0x4fb2e6=[];for(const _0x5dab37 of(_0x2b2dbe=(_0x593ba9=(_0x4d02fb=(_0xccc3cb=this['candidates'])===null||_0xccc3cb===void 0x0?void 0x0:_0xccc3cb[0x0])===null||_0x4d02fb===void 0x0?void 0x0:_0x4d02fb[_0x3eae42(0x4a6)])===null||_0x593ba9===void 0x0?void 0x0:_0x593ba9[_0x3eae42(0x694)])!==null&&_0x2b2dbe!==void 0x0?_0x2b2dbe:[]){for(const [_0x1b45a0,_0x50b56f]of Object['entries'](_0x5dab37)){_0x1b45a0!==_0x3eae42(0x54b)&&(_0x50b56f!==null||_0x50b56f!==undefined)&&_0x4fb2e6[_0x3eae42(0x599)](_0x1b45a0);}_0x5dab37['inlineData']&&typeof _0x5dab37[_0x3eae42(0x54b)]['data']===_0x3eae42(0x68f)&&(_0xc35bf3+=atob(_0x5dab37[_0x3eae42(0x54b)][_0x3eae42(0x529)]));}return _0x4fb2e6[_0x3eae42(0x568)]>0x0&&console['warn'](_0x3eae42(0x15a)+_0x4fb2e6+_0x3eae42(0x225)),_0xc35bf3[_0x3eae42(0x568)]>0x0?btoa(_0xc35bf3):undefined;}get['functionCalls'](){const _0x15b467=a2_0x8e922d;var _0x1c7d15,_0x799d17,_0x3ac249,_0x21eba0,_0x36d3c7,_0x2b758b,_0x31e7e8,_0x406052;if(((_0x21eba0=(_0x3ac249=(_0x799d17=(_0x1c7d15=this[_0x15b467(0x2ba)])===null||_0x1c7d15===void 0x0?void 0x0:_0x1c7d15[0x0])===null||_0x799d17===void 0x0?void 0x0:_0x799d17['content'])===null||_0x3ac249===void 0x0?void 0x0:_0x3ac249[_0x15b467(0x694)])===null||_0x21eba0===void 0x0?void 0x0:_0x21eba0[_0x15b467(0x568)])===0x0)return undefined;this[_0x15b467(0x2ba)]&&this['candidates'][_0x15b467(0x568)]>0x1&&console[_0x15b467(0x1ef)](_0x15b467(0x678));const _0x4ee300=(_0x406052=(_0x31e7e8=(_0x2b758b=(_0x36d3c7=this[_0x15b467(0x2ba)])===null||_0x36d3c7===void 0x0?void 0x0:_0x36d3c7[0x0])===null||_0x2b758b===void 0x0?void 0x0:_0x2b758b[_0x15b467(0x4a6)])===null||_0x31e7e8===void 0x0?void 0x0:_0x31e7e8['parts'])===null||_0x406052===void 0x0?void 0x0:_0x406052['filter'](_0x303fe6=>_0x303fe6[_0x15b467(0x521)])['map'](_0xf82333=>_0xf82333[_0x15b467(0x521)])[_0x15b467(0x50e)](_0x1c3858=>_0x1c3858!==undefined);if((_0x4ee300===null||_0x4ee300===void 0x0?void 0x0:_0x4ee300[_0x15b467(0x568)])===0x0)return undefined;return _0x4ee300;}get[a2_0x8e922d(0x295)](){const _0x2c85da=a2_0x8e922d;var _0x46b14b,_0x42900c,_0x3566a6,_0x4d2b93,_0x5c8534,_0x26acb7,_0xd0f820,_0x8ac032,_0x3c4b8e;if(((_0x4d2b93=(_0x3566a6=(_0x42900c=(_0x46b14b=this[_0x2c85da(0x2ba)])===null||_0x46b14b===void 0x0?void 0x0:_0x46b14b[0x0])===null||_0x42900c===void 0x0?void 0x0:_0x42900c[_0x2c85da(0x4a6)])===null||_0x3566a6===void 0x0?void 0x0:_0x3566a6[_0x2c85da(0x694)])===null||_0x4d2b93===void 0x0?void 0x0:_0x4d2b93['length'])===0x0)return undefined;this[_0x2c85da(0x2ba)]&&this[_0x2c85da(0x2ba)]['length']>0x1&&console[_0x2c85da(0x1ef)]('there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20executable\x20code\x20from\x20the\x20first\x20one.');const _0x2204a9=(_0x8ac032=(_0xd0f820=(_0x26acb7=(_0x5c8534=this[_0x2c85da(0x2ba)])===null||_0x5c8534===void 0x0?void 0x0:_0x5c8534[0x0])===null||_0x26acb7===void 0x0?void 0x0:_0x26acb7[_0x2c85da(0x4a6)])===null||_0xd0f820===void 0x0?void 0x0:_0xd0f820[_0x2c85da(0x694)])===null||_0x8ac032===void 0x0?void 0x0:_0x8ac032[_0x2c85da(0x50e)](_0x271e36=>_0x271e36[_0x2c85da(0x295)])['map'](_0x3c7426=>_0x3c7426[_0x2c85da(0x295)])['filter'](_0x33e6a2=>_0x33e6a2!==undefined);if((_0x2204a9===null||_0x2204a9===void 0x0?void 0x0:_0x2204a9[_0x2c85da(0x568)])===0x0)return undefined;return(_0x3c4b8e=_0x2204a9===null||_0x2204a9===void 0x0?void 0x0:_0x2204a9[0x0])===null||_0x3c4b8e===void 0x0?void 0x0:_0x3c4b8e[_0x2c85da(0x24d)];}get[a2_0x8e922d(0x686)](){const _0x18227f=a2_0x8e922d;var _0x95a2b5,_0xe9c4d9,_0x2f4d8c,_0x33f389,_0x536eea,_0x220fb9,_0x3654e1,_0x473011,_0x2595c9;if(((_0x33f389=(_0x2f4d8c=(_0xe9c4d9=(_0x95a2b5=this['candidates'])===null||_0x95a2b5===void 0x0?void 0x0:_0x95a2b5[0x0])===null||_0xe9c4d9===void 0x0?void 0x0:_0xe9c4d9[_0x18227f(0x4a6)])===null||_0x2f4d8c===void 0x0?void 0x0:_0x2f4d8c[_0x18227f(0x694)])===null||_0x33f389===void 0x0?void 0x0:_0x33f389[_0x18227f(0x568)])===0x0)return undefined;this['candidates']&&this['candidates']['length']>0x1&&console[_0x18227f(0x1ef)](_0x18227f(0x416));const _0x3a97df=(_0x473011=(_0x3654e1=(_0x220fb9=(_0x536eea=this[_0x18227f(0x2ba)])===null||_0x536eea===void 0x0?void 0x0:_0x536eea[0x0])===null||_0x220fb9===void 0x0?void 0x0:_0x220fb9[_0x18227f(0x4a6)])===null||_0x3654e1===void 0x0?void 0x0:_0x3654e1[_0x18227f(0x694)])===null||_0x473011===void 0x0?void 0x0:_0x473011[_0x18227f(0x50e)](_0x15053e=>_0x15053e[_0x18227f(0x686)])[_0x18227f(0x4a8)](_0x305586=>_0x305586['codeExecutionResult'])[_0x18227f(0x50e)](_0x1775ce=>_0x1775ce!==undefined);if((_0x3a97df===null||_0x3a97df===void 0x0?void 0x0:_0x3a97df[_0x18227f(0x568)])===0x0)return undefined;return(_0x2595c9=_0x3a97df===null||_0x3a97df===void 0x0?void 0x0:_0x3a97df[0x0])===null||_0x2595c9===void 0x0?void 0x0:_0x2595c9[_0x18227f(0x5d9)];}}class EmbedContentResponse{}class GenerateImagesResponse{}class EditImageResponse{}class UpscaleImageResponse{}class RecontextImageResponse{}class SegmentImageResponse{}class ListModelsResponse{}class DeleteModelResponse{}class CountTokensResponse{}class ComputeTokensResponse{}class GenerateVideosResponse{}class GenerateVideosOperation{[a2_0x8e922d(0x423)]({apiResponse:_0x415f30,_isVertexAI:_0x1f82d7}){const _0x59aa74=a2_0x8e922d,_0x5d5c16=new GenerateVideosOperation();let _0x4b4b70;const _0x3e97e5=_0x415f30;return _0x1f82d7?_0x4b4b70=generateVideosOperationFromVertex$1(_0x3e97e5):_0x4b4b70=generateVideosOperationFromMldev$1(_0x3e97e5),Object[_0x59aa74(0x289)](_0x5d5c16,_0x4b4b70),_0x5d5c16;}}class ListTuningJobsResponse{}class CancelTuningJobResponse{}class DeleteCachedContentResponse{}class ListCachedContentsResponse{}class ListDocumentsResponse{}class ListFileSearchStoresResponse{}class UploadToFileSearchStoreResumableResponse{}class ImportFileResponse{}class ImportFileOperation{[a2_0x8e922d(0x423)]({apiResponse:_0x99b199,_isVertexAI:_0x880b92}){const _0x1474a7=a2_0x8e922d,_0xa7da3a=new ImportFileOperation(),_0x23e3fd=_0x99b199,_0x202d78=importFileOperationFromMldev$1(_0x23e3fd);return Object[_0x1474a7(0x289)](_0xa7da3a,_0x202d78),_0xa7da3a;}}class ListFilesResponse{}class CreateFileResponse{}class DeleteFileResponse{}class RegisterFilesResponse{}class InlinedResponse{}class SingleEmbedContentResponse{}class InlinedEmbedContentResponse{}class ListBatchJobsResponse{}class ReplayResponse{}class RawReferenceImage{[a2_0x8e922d(0x477)](){const _0xb55355=a2_0x8e922d,_0x25c466={'referenceType':'REFERENCE_TYPE_RAW','referenceImage':this[_0xb55355(0x365)],'referenceId':this[_0xb55355(0x3be)]};return _0x25c466;}}class MaskReferenceImage{[a2_0x8e922d(0x477)](){const _0xe2c2d=a2_0x8e922d,_0x29b6d9={'referenceType':'REFERENCE_TYPE_MASK','referenceImage':this[_0xe2c2d(0x365)],'referenceId':this[_0xe2c2d(0x3be)],'maskImageConfig':this[_0xe2c2d(0x182)]};return _0x29b6d9;}}class ControlReferenceImage{['toReferenceImageAPI'](){const _0x439a1a=a2_0x8e922d,_0x4e0cb4={'referenceType':'REFERENCE_TYPE_CONTROL','referenceImage':this[_0x439a1a(0x365)],'referenceId':this[_0x439a1a(0x3be)],'controlImageConfig':this[_0x439a1a(0x182)]};return _0x4e0cb4;}}class StyleReferenceImage{[a2_0x8e922d(0x477)](){const _0x2e3aa5=a2_0x8e922d,_0x4441ea={'referenceType':_0x2e3aa5(0x61a),'referenceImage':this[_0x2e3aa5(0x365)],'referenceId':this[_0x2e3aa5(0x3be)],'styleImageConfig':this[_0x2e3aa5(0x182)]};return _0x4441ea;}}class SubjectReferenceImage{[a2_0x8e922d(0x477)](){const _0x1cda67=a2_0x8e922d,_0x1222fb={'referenceType':_0x1cda67(0x519),'referenceImage':this[_0x1cda67(0x365)],'referenceId':this['referenceId'],'subjectImageConfig':this[_0x1cda67(0x182)]};return _0x1222fb;}}class ContentReferenceImage{[a2_0x8e922d(0x477)](){const _0x13795c=a2_0x8e922d,_0x469561={'referenceType':_0x13795c(0x5ab),'referenceImage':this[_0x13795c(0x365)],'referenceId':this[_0x13795c(0x3be)]};return _0x469561;}}class LiveServerMessage{get['text'](){const _0xf00c51=a2_0x8e922d;var _0x3f1a76,_0x2c7bcb,_0x291cad;let _0x308b1d='',_0x4ae101=![];const _0x5bde01=[];for(const _0x58bd48 of(_0x291cad=(_0x2c7bcb=(_0x3f1a76=this['serverContent'])===null||_0x3f1a76===void 0x0?void 0x0:_0x3f1a76[_0xf00c51(0x3de)])===null||_0x2c7bcb===void 0x0?void 0x0:_0x2c7bcb[_0xf00c51(0x694)])!==null&&_0x291cad!==void 0x0?_0x291cad:[]){for(const [_0x23a43e,_0x2a4090]of Object['entries'](_0x58bd48)){_0x23a43e!=='text'&&_0x23a43e!==_0xf00c51(0x4d4)&&_0x2a4090!==null&&_0x5bde01[_0xf00c51(0x599)](_0x23a43e);}if(typeof _0x58bd48[_0xf00c51(0x1a8)]===_0xf00c51(0x68f)){if(typeof _0x58bd48[_0xf00c51(0x4d4)]==='boolean'&&_0x58bd48[_0xf00c51(0x4d4)])continue;_0x4ae101=!![],_0x308b1d+=_0x58bd48[_0xf00c51(0x1a8)];}}return _0x5bde01[_0xf00c51(0x568)]>0x0&&console[_0xf00c51(0x1ef)](_0xf00c51(0x618)+_0x5bde01+_0xf00c51(0x4cb)),_0x4ae101?_0x308b1d:undefined;}get['data'](){const _0x344d12=a2_0x8e922d;var _0x38762f,_0x3c9e09,_0x4aa51e;let _0x5c720c='';const _0x5d00ff=[];for(const _0x2d90d5 of(_0x4aa51e=(_0x3c9e09=(_0x38762f=this[_0x344d12(0x18d)])===null||_0x38762f===void 0x0?void 0x0:_0x38762f['modelTurn'])===null||_0x3c9e09===void 0x0?void 0x0:_0x3c9e09[_0x344d12(0x694)])!==null&&_0x4aa51e!==void 0x0?_0x4aa51e:[]){for(const [_0x501268,_0x5133f1]of Object[_0x344d12(0x3da)](_0x2d90d5)){_0x501268!==_0x344d12(0x54b)&&_0x5133f1!==null&&_0x5d00ff['push'](_0x501268);}_0x2d90d5['inlineData']&&typeof _0x2d90d5[_0x344d12(0x54b)][_0x344d12(0x529)]==='string'&&(_0x5c720c+=atob(_0x2d90d5[_0x344d12(0x54b)][_0x344d12(0x529)]));}return _0x5d00ff[_0x344d12(0x568)]>0x0&&console['warn']('there\x20are\x20non-data\x20parts\x20'+_0x5d00ff+'\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.'),_0x5c720c[_0x344d12(0x568)]>0x0?btoa(_0x5c720c):undefined;}}class LiveClientToolResponse{}class LiveSendToolResponseParameters{constructor(){const _0x57b5b2=a2_0x8e922d;this[_0x57b5b2(0x358)]=[];}}class LiveMusicServerMessage{get[a2_0x8e922d(0x192)](){const _0x404eeb=a2_0x8e922d;if(this[_0x404eeb(0x18d)]&&this['serverContent'][_0x404eeb(0x288)]&&this['serverContent'][_0x404eeb(0x288)][_0x404eeb(0x568)]>0x0)return this[_0x404eeb(0x18d)]['audioChunks'][0x0];return undefined;}}class UploadToFileSearchStoreResponse{}class UploadToFileSearchStoreOperation{['_fromAPIResponse']({apiResponse:_0x1fb42b,_isVertexAI:_0xc54365}){const _0x2a8bb3=a2_0x8e922d,_0x2bac86=new UploadToFileSearchStoreOperation(),_0x46da21=_0x1fb42b,_0x57961a=uploadToFileSearchStoreOperationFromMldev(_0x46da21);return Object[_0x2a8bb3(0x289)](_0x2bac86,_0x57961a),_0x2bac86;}}/**
|
|
27
|
+
* @license
|
|
28
|
+
* Copyright 2025 Google LLC
|
|
29
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
30
|
+
*/
|
|
31
|
+
function tModel(_0x3abc12,_0x57dbc8){const _0xa637c7=a2_0x8e922d;if(!_0x57dbc8||typeof _0x57dbc8!==_0xa637c7(0x68f))throw new Error('model\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x57dbc8[_0xa637c7(0x198)]('..')||_0x57dbc8[_0xa637c7(0x198)]('?')||_0x57dbc8['includes']('&'))throw new Error(_0xa637c7(0x1ac));if(_0x3abc12[_0xa637c7(0x4d0)]()){if(_0x57dbc8[_0xa637c7(0x1af)]('publishers/')||_0x57dbc8[_0xa637c7(0x1af)]('projects/')||_0x57dbc8[_0xa637c7(0x1af)](_0xa637c7(0x373)))return _0x57dbc8;else{if(_0x57dbc8['indexOf']('/')>=0x0){const _0xa51234=_0x57dbc8[_0xa637c7(0x5f3)]('/',0x2);return _0xa637c7(0x3ba)+_0xa51234[0x0]+_0xa637c7(0x2f6)+_0xa51234[0x1];}else return _0xa637c7(0x48e)+_0x57dbc8;}}else return _0x57dbc8[_0xa637c7(0x1af)](_0xa637c7(0x373))||_0x57dbc8[_0xa637c7(0x1af)](_0xa637c7(0x44b))?_0x57dbc8:_0xa637c7(0x373)+_0x57dbc8;}function tCachesModel(_0x1662d3,_0xd18d17){const _0x31cb8b=a2_0x8e922d,_0x575ed6=tModel(_0x1662d3,_0xd18d17);if(!_0x575ed6)return'';if(_0x575ed6[_0x31cb8b(0x1af)](_0x31cb8b(0x3ba))&&_0x1662d3[_0x31cb8b(0x4d0)]())return _0x31cb8b(0x2bf)+_0x1662d3[_0x31cb8b(0x491)]()+_0x31cb8b(0x224)+_0x1662d3[_0x31cb8b(0x555)]()+'/'+_0x575ed6;else return _0x575ed6['startsWith'](_0x31cb8b(0x373))&&_0x1662d3[_0x31cb8b(0x4d0)]()?_0x31cb8b(0x2bf)+_0x1662d3[_0x31cb8b(0x491)]()+'/locations/'+_0x1662d3[_0x31cb8b(0x555)]()+'/publishers/google/'+_0x575ed6:_0x575ed6;}function tBlobs(_0x2144d1){const _0x6b532=a2_0x8e922d;return Array['isArray'](_0x2144d1)?_0x2144d1[_0x6b532(0x4a8)](_0x8d01b7=>tBlob(_0x8d01b7)):[tBlob(_0x2144d1)];}function tBlob(_0x631a1e){const _0x31bbe3=a2_0x8e922d;if(typeof _0x631a1e===_0x31bbe3(0x515)&&_0x631a1e!==null)return _0x631a1e;throw new Error(_0x31bbe3(0x20a)+typeof _0x631a1e);}function tImageBlob(_0x1ce7a5){const _0x220cfd=a2_0x8e922d,_0x252bc9=tBlob(_0x1ce7a5);if(_0x252bc9[_0x220cfd(0x3c0)]&&_0x252bc9[_0x220cfd(0x3c0)][_0x220cfd(0x1af)]('image/'))return _0x252bc9;throw new Error(_0x220cfd(0x51b)+_0x252bc9[_0x220cfd(0x3c0)]);}function tAudioBlob(_0x202299){const _0xf29fc9=a2_0x8e922d,_0x167c0f=tBlob(_0x202299);if(_0x167c0f['mimeType']&&_0x167c0f[_0xf29fc9(0x3c0)]['startsWith'](_0xf29fc9(0x190)))return _0x167c0f;throw new Error(_0xf29fc9(0x51b)+_0x167c0f[_0xf29fc9(0x3c0)]);}function tPart(_0x24cf86){const _0x40ad19=a2_0x8e922d;if(_0x24cf86===null||_0x24cf86===undefined)throw new Error(_0x40ad19(0x46c));if(typeof _0x24cf86===_0x40ad19(0x515))return _0x24cf86;if(typeof _0x24cf86===_0x40ad19(0x68f))return{'text':_0x24cf86};throw new Error(_0x40ad19(0x1e0)+typeof _0x24cf86);}function tParts(_0x3696f7){const _0x46a979=a2_0x8e922d;if(_0x3696f7===null||_0x3696f7===undefined||Array[_0x46a979(0x266)](_0x3696f7)&&_0x3696f7[_0x46a979(0x568)]===0x0)throw new Error('PartListUnion\x20is\x20required');if(Array[_0x46a979(0x266)](_0x3696f7))return _0x3696f7['map'](_0x3585fb=>tPart(_0x3585fb));return[tPart(_0x3696f7)];}function _isContent(_0x4d19ef){const _0x127808=a2_0x8e922d;return _0x4d19ef!==null&&_0x4d19ef!==undefined&&typeof _0x4d19ef===_0x127808(0x515)&&_0x127808(0x694)in _0x4d19ef&&Array[_0x127808(0x266)](_0x4d19ef['parts']);}function _isFunctionCallPart(_0x3829ca){const _0x43e8bb=a2_0x8e922d;return _0x3829ca!==null&&_0x3829ca!==undefined&&typeof _0x3829ca==='object'&&_0x43e8bb(0x521)in _0x3829ca;}function _isFunctionResponsePart(_0x3c7071){const _0x72850e=a2_0x8e922d;return _0x3c7071!==null&&_0x3c7071!==undefined&&typeof _0x3c7071==='object'&&_0x72850e(0x659)in _0x3c7071;}function tContent(_0x372f24){const _0x5097e8=a2_0x8e922d;if(_0x372f24===null||_0x372f24===undefined)throw new Error(_0x5097e8(0x4d7));if(_isContent(_0x372f24))return _0x372f24;return{'role':'user','parts':tParts(_0x372f24)};}function tContentsForEmbed(_0x3d8c88,_0x456602){const _0xb3bf13=a2_0x8e922d;if(!_0x456602)return[];if(_0x3d8c88[_0xb3bf13(0x4d0)]()&&Array[_0xb3bf13(0x266)](_0x456602))return _0x456602['flatMap'](_0x355bcf=>{const _0x218f1b=_0xb3bf13,_0x3630c2=tContent(_0x355bcf);if(_0x3630c2['parts']&&_0x3630c2[_0x218f1b(0x694)][_0x218f1b(0x568)]>0x0&&_0x3630c2[_0x218f1b(0x694)][0x0][_0x218f1b(0x1a8)]!==undefined)return[_0x3630c2[_0x218f1b(0x694)][0x0][_0x218f1b(0x1a8)]];return[];});else{if(_0x3d8c88[_0xb3bf13(0x4d0)]()){const _0x4dfe2f=tContent(_0x456602);if(_0x4dfe2f['parts']&&_0x4dfe2f['parts'][_0xb3bf13(0x568)]>0x0&&_0x4dfe2f[_0xb3bf13(0x694)][0x0][_0xb3bf13(0x1a8)]!==undefined)return[_0x4dfe2f[_0xb3bf13(0x694)][0x0]['text']];return[];}}if(Array['isArray'](_0x456602))return _0x456602[_0xb3bf13(0x4a8)](_0x57f49b=>tContent(_0x57f49b));return[tContent(_0x456602)];}function tContents(_0x38d521){const _0x1fc470=a2_0x8e922d;if(_0x38d521===null||_0x38d521===undefined||Array['isArray'](_0x38d521)&&_0x38d521['length']===0x0)throw new Error('contents\x20are\x20required');if(!Array[_0x1fc470(0x266)](_0x38d521)){if(_isFunctionCallPart(_0x38d521)||_isFunctionResponsePart(_0x38d521))throw new Error(_0x1fc470(0x294));return[tContent(_0x38d521)];}const _0x3649f1=[],_0x3aceca=[],_0x1f3796=_isContent(_0x38d521[0x0]);for(const _0x699e4a of _0x38d521){const _0x282a99=_isContent(_0x699e4a);if(_0x282a99!=_0x1f3796)throw new Error(_0x1fc470(0x14e));if(_0x282a99)_0x3649f1[_0x1fc470(0x599)](_0x699e4a);else{if(_isFunctionCallPart(_0x699e4a)||_isFunctionResponsePart(_0x699e4a))throw new Error(_0x1fc470(0x4c1));else _0x3aceca[_0x1fc470(0x599)](_0x699e4a);}}return!_0x1f3796&&_0x3649f1[_0x1fc470(0x599)]({'role':'user','parts':tParts(_0x3aceca)}),_0x3649f1;}function flattenTypeArrayToAnyOf(_0x2bf88a,_0x1a202d){const _0x5b6aa8=a2_0x8e922d;_0x2bf88a['includes'](_0x5b6aa8(0x284))&&(_0x1a202d[_0x5b6aa8(0x5ea)]=!![]);const _0x4f597b=_0x2bf88a['filter'](_0x42809d=>_0x42809d!==_0x5b6aa8(0x284));if(_0x4f597b[_0x5b6aa8(0x568)]===0x1)_0x1a202d[_0x5b6aa8(0x37a)]=Object[_0x5b6aa8(0x4d2)](exports[_0x5b6aa8(0x44a)])[_0x5b6aa8(0x198)](_0x4f597b[0x0][_0x5b6aa8(0x2d9)]())?_0x4f597b[0x0]['toUpperCase']():exports[_0x5b6aa8(0x44a)][_0x5b6aa8(0x4df)];else{_0x1a202d[_0x5b6aa8(0x5cc)]=[];for(const _0x43170e of _0x4f597b){_0x1a202d['anyOf'][_0x5b6aa8(0x599)]({'type':Object[_0x5b6aa8(0x4d2)](exports['Type'])[_0x5b6aa8(0x198)](_0x43170e[_0x5b6aa8(0x2d9)]())?_0x43170e['toUpperCase']():exports[_0x5b6aa8(0x44a)]['TYPE_UNSPECIFIED']});}}}function processJsonSchema(_0x4813e2){const _0xdd4703=a2_0x8e922d,_0x1c11ff={},_0xa43495=[_0xdd4703(0x3e9)],_0x3c6b05=[_0xdd4703(0x5cc)],_0xad8be0=[_0xdd4703(0x292)];if(_0x4813e2[_0xdd4703(0x37a)]&&_0x4813e2[_0xdd4703(0x5cc)])throw new Error('type\x20and\x20anyOf\x20cannot\x20be\x20both\x20populated.');const _0x7972ee=_0x4813e2['anyOf'];if(_0x7972ee!=null&&_0x7972ee[_0xdd4703(0x568)]==0x2){if(_0x7972ee[0x0]['type']===_0xdd4703(0x284))_0x1c11ff[_0xdd4703(0x5ea)]=!![],_0x4813e2=_0x7972ee[0x1];else _0x7972ee[0x1][_0xdd4703(0x37a)]==='null'&&(_0x1c11ff['nullable']=!![],_0x4813e2=_0x7972ee[0x0]);}_0x4813e2[_0xdd4703(0x37a)]instanceof Array&&flattenTypeArrayToAnyOf(_0x4813e2['type'],_0x1c11ff);for(const [_0x479ffb,_0x5a6e71]of Object[_0xdd4703(0x3da)](_0x4813e2)){if(_0x5a6e71==null)continue;if(_0x479ffb=='type'){if(_0x5a6e71===_0xdd4703(0x284))throw new Error(_0xdd4703(0x272));if(_0x5a6e71 instanceof Array)continue;_0x1c11ff[_0xdd4703(0x37a)]=Object[_0xdd4703(0x4d2)](exports['Type'])[_0xdd4703(0x198)](_0x5a6e71[_0xdd4703(0x2d9)]())?_0x5a6e71[_0xdd4703(0x2d9)]():exports['Type'][_0xdd4703(0x4df)];}else{if(_0xa43495[_0xdd4703(0x198)](_0x479ffb))_0x1c11ff[_0x479ffb]=processJsonSchema(_0x5a6e71);else{if(_0x3c6b05[_0xdd4703(0x198)](_0x479ffb)){const _0x4d7c58=[];for(const _0x5b2a35 of _0x5a6e71){if(_0x5b2a35[_0xdd4703(0x37a)]==_0xdd4703(0x284)){_0x1c11ff[_0xdd4703(0x5ea)]=!![];continue;}_0x4d7c58['push'](processJsonSchema(_0x5b2a35));}_0x1c11ff[_0x479ffb]=_0x4d7c58;}else{if(_0xad8be0[_0xdd4703(0x198)](_0x479ffb)){const _0x4b01a1={};for(const [_0x4aeef4,_0x534a74]of Object[_0xdd4703(0x3da)](_0x5a6e71)){_0x4b01a1[_0x4aeef4]=processJsonSchema(_0x534a74);}_0x1c11ff[_0x479ffb]=_0x4b01a1;}else{if(_0x479ffb==='additionalProperties')continue;_0x1c11ff[_0x479ffb]=_0x5a6e71;}}}}}return _0x1c11ff;}function tSchema(_0x13fa19){return processJsonSchema(_0x13fa19);}function tSpeechConfig(_0x280b16){const _0x70d25b=a2_0x8e922d;if(typeof _0x280b16===_0x70d25b(0x515))return _0x280b16;else{if(typeof _0x280b16===_0x70d25b(0x68f))return{'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':_0x280b16}}};else throw new Error(_0x70d25b(0x37f)+typeof _0x280b16);}}function tLiveSpeechConfig(_0x422437){const _0x24ad95=a2_0x8e922d;if(_0x24ad95(0x36a)in _0x422437)throw new Error(_0x24ad95(0x417));return _0x422437;}function tTool(_0x175084){const _0x366563=a2_0x8e922d;if(_0x175084[_0x366563(0x4e2)])for(const _0x1056ce of _0x175084[_0x366563(0x4e2)]){_0x1056ce[_0x366563(0x28c)]&&(!Object['keys'](_0x1056ce['parameters'])[_0x366563(0x198)](_0x366563(0x54d))?_0x1056ce[_0x366563(0x28c)]=processJsonSchema(_0x1056ce[_0x366563(0x28c)]):!_0x1056ce['parametersJsonSchema']&&(_0x1056ce['parametersJsonSchema']=_0x1056ce[_0x366563(0x28c)],delete _0x1056ce[_0x366563(0x28c)])),_0x1056ce[_0x366563(0x1d3)]&&(!Object[_0x366563(0x6b2)](_0x1056ce[_0x366563(0x1d3)])['includes'](_0x366563(0x54d))?_0x1056ce['response']=processJsonSchema(_0x1056ce[_0x366563(0x1d3)]):!_0x1056ce[_0x366563(0x13c)]&&(_0x1056ce[_0x366563(0x13c)]=_0x1056ce[_0x366563(0x1d3)],delete _0x1056ce[_0x366563(0x1d3)]));}return _0x175084;}function tTools(_0x50522a){const _0xa14b5d=a2_0x8e922d;if(_0x50522a===undefined||_0x50522a===null)throw new Error(_0xa14b5d(0xad));if(!Array[_0xa14b5d(0x266)](_0x50522a))throw new Error(_0xa14b5d(0x274));const _0x5e73ed=[];for(const _0x183051 of _0x50522a){_0x5e73ed[_0xa14b5d(0x599)](_0x183051);}return _0x5e73ed;}function resourceName(_0x15e8c4,_0x116df6,_0x1a2cc4,_0x33a888=0x1){const _0x3246fd=a2_0x8e922d,_0x238ac8=!_0x116df6[_0x3246fd(0x1af)](_0x1a2cc4+'/')&&_0x116df6[_0x3246fd(0x5f3)]('/')[_0x3246fd(0x568)]===_0x33a888;if(_0x15e8c4[_0x3246fd(0x4d0)]()){if(_0x116df6[_0x3246fd(0x1af)]('projects/'))return _0x116df6;else{if(_0x116df6['startsWith']('locations/'))return'projects/'+_0x15e8c4[_0x3246fd(0x491)]()+'/'+_0x116df6;else{if(_0x116df6[_0x3246fd(0x1af)](_0x1a2cc4+'/'))return _0x3246fd(0x2bf)+_0x15e8c4[_0x3246fd(0x491)]()+_0x3246fd(0x224)+_0x15e8c4[_0x3246fd(0x555)]()+'/'+_0x116df6;else return _0x238ac8?_0x3246fd(0x2bf)+_0x15e8c4['getProject']()+_0x3246fd(0x224)+_0x15e8c4['getLocation']()+'/'+_0x1a2cc4+'/'+_0x116df6:_0x116df6;}}}if(_0x238ac8)return _0x1a2cc4+'/'+_0x116df6;return _0x116df6;}function tCachedContentName(_0x2a3b50,_0x5524e1){const _0x3bc8ed=a2_0x8e922d;if(typeof _0x5524e1!==_0x3bc8ed(0x68f))throw new Error(_0x3bc8ed(0x36d));return resourceName(_0x2a3b50,_0x5524e1,'cachedContents');}function tTuningJobStatus(_0x35b72c){const _0x48bcd5=a2_0x8e922d;switch(_0x35b72c){case _0x48bcd5(0x2da):return'JOB_STATE_UNSPECIFIED';case _0x48bcd5(0x319):return _0x48bcd5(0x12a);case _0x48bcd5(0x654):return _0x48bcd5(0x1ab);case _0x48bcd5(0x2e1):return _0x48bcd5(0x393);default:return _0x35b72c;}}function tBytes(_0x24b9d2){return tBytes$1(_0x24b9d2);}function _isFile(_0x1e54ba){const _0x261a1c=a2_0x8e922d;return _0x1e54ba!==null&&_0x1e54ba!==undefined&&typeof _0x1e54ba===_0x261a1c(0x515)&&_0x261a1c(0x206)in _0x1e54ba;}function isGeneratedVideo(_0x18cef3){const _0x46874e=a2_0x8e922d;return _0x18cef3!==null&&_0x18cef3!==undefined&&typeof _0x18cef3===_0x46874e(0x515)&&_0x46874e(0x640)in _0x18cef3;}function isVideo(_0x471558){const _0x460fb4=a2_0x8e922d;return _0x471558!==null&&_0x471558!==undefined&&typeof _0x471558==='object'&&_0x460fb4(0x1a0)in _0x471558;}function tFileName(_0x277645){const _0x27a4b3=a2_0x8e922d;var _0x245a6f;let _0x544a8d;_isFile(_0x277645)&&(_0x544a8d=_0x277645['name']);if(isVideo(_0x277645)){_0x544a8d=_0x277645['uri'];if(_0x544a8d===undefined)return undefined;}if(isGeneratedVideo(_0x277645)){_0x544a8d=(_0x245a6f=_0x277645['video'])===null||_0x245a6f===void 0x0?void 0x0:_0x245a6f[_0x27a4b3(0x1a0)];if(_0x544a8d===undefined)return undefined;}typeof _0x277645==='string'&&(_0x544a8d=_0x277645);if(_0x544a8d===undefined)throw new Error(_0x27a4b3(0x69c));if(_0x544a8d[_0x27a4b3(0x1af)](_0x27a4b3(0x299))){const _0x398444=_0x544a8d[_0x27a4b3(0x5f3)](_0x27a4b3(0x11a))[0x1],_0x412053=_0x398444['match'](/[a-z0-9]+/);if(_0x412053===null)throw new Error(_0x27a4b3(0x675)+_0x544a8d);_0x544a8d=_0x412053[0x0];}else _0x544a8d[_0x27a4b3(0x1af)]('files/')&&(_0x544a8d=_0x544a8d[_0x27a4b3(0x5f3)](_0x27a4b3(0x11a))[0x1]);return _0x544a8d;}function tModelsUrl(_0x214bfb,_0x973c7f){const _0x2722d2=a2_0x8e922d;let _0x1dbbb5;return _0x214bfb[_0x2722d2(0x4d0)]()?_0x1dbbb5=_0x973c7f?_0x2722d2(0x69a):_0x2722d2(0x4f8):_0x1dbbb5=_0x973c7f?_0x2722d2(0x4f8):_0x2722d2(0x374),_0x1dbbb5;}function tExtractModels(_0x3374fb){const _0xacb162=a2_0x8e922d;for(const _0x28cd52 of[_0xacb162(0x4f8),'tunedModels',_0xacb162(0x2e5)]){if(hasField(_0x3374fb,_0x28cd52))return _0x3374fb[_0x28cd52];}return[];}function hasField(_0x5c61ee,_0x5a63b4){const _0x12b075=a2_0x8e922d;return _0x5c61ee!==null&&typeof _0x5c61ee===_0x12b075(0x515)&&_0x5a63b4 in _0x5c61ee;}function mcpToGeminiTool(_0x18e7c4,_0x3cf8e7={}){const _0x19782c=a2_0x8e922d,_0x5b25d1=_0x18e7c4,_0x2d87ae={'name':_0x5b25d1[_0x19782c(0x206)],'description':_0x5b25d1['description'],'parametersJsonSchema':_0x5b25d1['inputSchema']};_0x5b25d1[_0x19782c(0x21e)]&&(_0x2d87ae[_0x19782c(0x13c)]=_0x5b25d1['outputSchema']);_0x3cf8e7[_0x19782c(0x4b4)]&&(_0x2d87ae[_0x19782c(0x4b4)]=_0x3cf8e7[_0x19782c(0x4b4)]);const _0x521158={'functionDeclarations':[_0x2d87ae]};return _0x521158;}function mcpToolsToGeminiTool(_0x145a47,_0x229eea={}){const _0x37305c=a2_0x8e922d,_0x513865=[],_0x583b5f=new Set();for(const _0x2de39d of _0x145a47){const _0x59c82a=_0x2de39d[_0x37305c(0x206)];if(_0x583b5f[_0x37305c(0x4b7)](_0x59c82a))throw new Error(_0x37305c(0x4de)+_0x59c82a+_0x37305c(0xb2));_0x583b5f[_0x37305c(0x3f7)](_0x59c82a);const _0x891d73=mcpToGeminiTool(_0x2de39d,_0x229eea);_0x891d73[_0x37305c(0x4e2)]&&_0x513865[_0x37305c(0x599)](..._0x891d73['functionDeclarations']);}return{'functionDeclarations':_0x513865};}function tBatchJobSource(_0x502ec3,_0x1d58f7){const _0x10b4e9=a2_0x8e922d;let _0x411a44;if(typeof _0x1d58f7===_0x10b4e9(0x68f)){if(_0x502ec3[_0x10b4e9(0x4d0)]()){if(_0x1d58f7[_0x10b4e9(0x1af)](_0x10b4e9(0x533)))_0x411a44={'format':_0x10b4e9(0x254),'gcsUri':[_0x1d58f7]};else{if(_0x1d58f7[_0x10b4e9(0x1af)](_0x10b4e9(0x610)))_0x411a44={'format':'bigquery','bigqueryUri':_0x1d58f7};else throw new Error(_0x10b4e9(0x14b)+_0x1d58f7);}}else{if(_0x1d58f7[_0x10b4e9(0x1af)](_0x10b4e9(0x11a)))_0x411a44={'fileName':_0x1d58f7};else throw new Error(_0x10b4e9(0x39d)+_0x1d58f7);}}else{if(Array[_0x10b4e9(0x266)](_0x1d58f7)){if(_0x502ec3[_0x10b4e9(0x4d0)]())throw new Error('InlinedRequest[]\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');_0x411a44={'inlinedRequests':_0x1d58f7};}else _0x411a44=_0x1d58f7;}const _0x50cd51=[_0x411a44[_0x10b4e9(0x305)],_0x411a44['bigqueryUri']]['filter'](Boolean)[_0x10b4e9(0x568)],_0x400ec0=[_0x411a44['inlinedRequests'],_0x411a44['fileName']][_0x10b4e9(0x50e)](Boolean)['length'];if(_0x502ec3[_0x10b4e9(0x4d0)]()){if(_0x400ec0>0x0||_0x50cd51!==0x1)throw new Error(_0x10b4e9(0x2d8));}else{if(_0x50cd51>0x0||_0x400ec0!==0x1)throw new Error(_0x10b4e9(0x547)+_0x10b4e9(0x157));}return _0x411a44;}function tBatchJobDestination(_0x5e568f){const _0xe81d20=a2_0x8e922d;if(typeof _0x5e568f!==_0xe81d20(0x68f))return _0x5e568f;const _0x585b67=_0x5e568f;if(_0x585b67[_0xe81d20(0x1af)](_0xe81d20(0x533)))return{'format':_0xe81d20(0x254),'gcsUri':_0x585b67};else{if(_0x585b67[_0xe81d20(0x1af)](_0xe81d20(0x610)))return{'format':_0xe81d20(0x171),'bigqueryUri':_0x585b67};else throw new Error('Unsupported\x20destination:\x20'+_0x585b67);}}function tRecvBatchJobDestination(_0x4076ab){const _0x169710=a2_0x8e922d;if(typeof _0x4076ab!==_0x169710(0x515)||_0x4076ab===null)return{};const _0x2d9cdc=_0x4076ab,_0x427664=_0x2d9cdc[_0x169710(0x652)];if(typeof _0x427664!==_0x169710(0x515)||_0x427664===null)return _0x4076ab;const _0x1478f0=_0x427664,_0xaf220=_0x1478f0[_0x169710(0x652)];if(!Array[_0x169710(0x266)](_0xaf220)||_0xaf220[_0x169710(0x568)]===0x0)return _0x4076ab;let _0x1ef47a=![];for(const _0x531f7e of _0xaf220){if(typeof _0x531f7e!=='object'||_0x531f7e===null)continue;const _0x5aa2e9=_0x531f7e,_0x1eabbf=_0x5aa2e9['response'];if(typeof _0x1eabbf!==_0x169710(0x515)||_0x1eabbf===null)continue;const _0x36de14=_0x1eabbf;if(_0x36de14['embedding']!==undefined){_0x1ef47a=!![];break;}}return _0x1ef47a&&(_0x2d9cdc['inlinedEmbedContentResponses']=_0x2d9cdc['inlinedResponses'],delete _0x2d9cdc[_0x169710(0x652)]),_0x4076ab;}function tBatchJobName(_0x55d023,_0x39c6e7){const _0x318b5c=a2_0x8e922d,_0x1e799e=_0x39c6e7;if(!_0x55d023[_0x318b5c(0x4d0)]()){const _0x4b389f=/batches\/[^/]+$/;if(_0x4b389f[_0x318b5c(0x226)](_0x1e799e))return _0x1e799e['split']('/')[_0x318b5c(0x511)]();else throw new Error(_0x318b5c(0x6a9)+_0x1e799e+'.');}const _0xb76851=/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/;if(_0xb76851['test'](_0x1e799e))return _0x1e799e['split']('/')[_0x318b5c(0x511)]();else{if(/^\d+$/[_0x318b5c(0x226)](_0x1e799e))return _0x1e799e;else throw new Error('Invalid\x20batch\x20job\x20name:\x20'+_0x1e799e+'.');}}function tJobState(_0x563eb0){const _0x21bfe4=a2_0x8e922d,_0x44f6ad=_0x563eb0;if(_0x44f6ad===_0x21bfe4(0x1ba))return _0x21bfe4(0x32b);else{if(_0x44f6ad===_0x21bfe4(0x30d))return'JOB_STATE_PENDING';else{if(_0x44f6ad==='BATCH_STATE_RUNNING')return _0x21bfe4(0x12a);else{if(_0x44f6ad==='BATCH_STATE_SUCCEEDED')return _0x21bfe4(0x1ab);else{if(_0x44f6ad===_0x21bfe4(0x5a5))return'JOB_STATE_FAILED';else{if(_0x44f6ad===_0x21bfe4(0x196))return _0x21bfe4(0x430);else return _0x44f6ad===_0x21bfe4(0x388)?_0x21bfe4(0x212):_0x44f6ad;}}}}}}/**
|
|
32
|
+
* @license
|
|
33
|
+
* Copyright 2025 Google LLC
|
|
34
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
35
|
+
*/
|
|
36
|
+
function batchJobDestinationFromMldev(_0x166e55){const _0x98478=a2_0x8e922d,_0x22e6da={},_0x86c9dc=getValueByPath(_0x166e55,[_0x98478(0x47b)]);_0x86c9dc!=null&&setValueByPath(_0x22e6da,[_0x98478(0x155)],_0x86c9dc);const _0x517771=getValueByPath(_0x166e55,[_0x98478(0x652),_0x98478(0x652)]);if(_0x517771!=null){let _0x50e196=_0x517771;Array[_0x98478(0x266)](_0x50e196)&&(_0x50e196=_0x50e196['map'](_0x560b47=>{return inlinedResponseFromMldev(_0x560b47);})),setValueByPath(_0x22e6da,[_0x98478(0x652)],_0x50e196);}const _0x1a37b3=getValueByPath(_0x166e55,[_0x98478(0x160),'inlinedResponses']);if(_0x1a37b3!=null){let _0x17c867=_0x1a37b3;Array['isArray'](_0x17c867)&&(_0x17c867=_0x17c867['map'](_0x8eb6dc=>{return _0x8eb6dc;})),setValueByPath(_0x22e6da,[_0x98478(0x160)],_0x17c867);}return _0x22e6da;}function batchJobDestinationFromVertex(_0x54b789){const _0x1b74c5=a2_0x8e922d,_0x4d62ef={},_0x5a2094=getValueByPath(_0x54b789,[_0x1b74c5(0xe6)]);_0x5a2094!=null&&setValueByPath(_0x4d62ef,['format'],_0x5a2094);const _0x3e19c8=getValueByPath(_0x54b789,[_0x1b74c5(0x2aa),_0x1b74c5(0x3bf)]);_0x3e19c8!=null&&setValueByPath(_0x4d62ef,['gcsUri'],_0x3e19c8);const _0x397c6c=getValueByPath(_0x54b789,[_0x1b74c5(0x53f),'outputUri']);return _0x397c6c!=null&&setValueByPath(_0x4d62ef,[_0x1b74c5(0x403)],_0x397c6c),_0x4d62ef;}function batchJobDestinationToVertex(_0x5b41c2){const _0x17c247=a2_0x8e922d,_0x2c32ce={},_0x4c3193=getValueByPath(_0x5b41c2,[_0x17c247(0xc5)]);_0x4c3193!=null&&setValueByPath(_0x2c32ce,[_0x17c247(0xe6)],_0x4c3193);const _0xaa2ee=getValueByPath(_0x5b41c2,[_0x17c247(0x305)]);_0xaa2ee!=null&&setValueByPath(_0x2c32ce,[_0x17c247(0x2aa),_0x17c247(0x3bf)],_0xaa2ee);const _0x501a18=getValueByPath(_0x5b41c2,[_0x17c247(0x403)]);_0x501a18!=null&&setValueByPath(_0x2c32ce,[_0x17c247(0x53f),_0x17c247(0x4c0)],_0x501a18);if(getValueByPath(_0x5b41c2,[_0x17c247(0x155)])!==undefined)throw new Error(_0x17c247(0x69f));if(getValueByPath(_0x5b41c2,['inlinedResponses'])!==undefined)throw new Error(_0x17c247(0x2ea));if(getValueByPath(_0x5b41c2,[_0x17c247(0x160)])!==undefined)throw new Error('inlinedEmbedContentResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x2c32ce;}function batchJobFromMldev(_0x4d3db1){const _0x51c0cf=a2_0x8e922d,_0x3f7467={},_0x527a17=getValueByPath(_0x4d3db1,['name']);_0x527a17!=null&&setValueByPath(_0x3f7467,[_0x51c0cf(0x206)],_0x527a17);const _0x1912cf=getValueByPath(_0x4d3db1,[_0x51c0cf(0x172),_0x51c0cf(0x1c2)]);_0x1912cf!=null&&setValueByPath(_0x3f7467,[_0x51c0cf(0x1c2)],_0x1912cf);const _0x48bade=getValueByPath(_0x4d3db1,['metadata','state']);_0x48bade!=null&&setValueByPath(_0x3f7467,[_0x51c0cf(0x48d)],tJobState(_0x48bade));const _0x4089f2=getValueByPath(_0x4d3db1,[_0x51c0cf(0x172),_0x51c0cf(0x15b)]);_0x4089f2!=null&&setValueByPath(_0x3f7467,['createTime'],_0x4089f2);const _0x5c8d28=getValueByPath(_0x4d3db1,['metadata',_0x51c0cf(0x5f1)]);_0x5c8d28!=null&&setValueByPath(_0x3f7467,[_0x51c0cf(0x5f1)],_0x5c8d28);const _0x2de061=getValueByPath(_0x4d3db1,[_0x51c0cf(0x172),_0x51c0cf(0x3ef)]);_0x2de061!=null&&setValueByPath(_0x3f7467,[_0x51c0cf(0x3ef)],_0x2de061);const _0x52ae16=getValueByPath(_0x4d3db1,[_0x51c0cf(0x172),'model']);_0x52ae16!=null&&setValueByPath(_0x3f7467,[_0x51c0cf(0x638)],_0x52ae16);const _0xe318f8=getValueByPath(_0x4d3db1,[_0x51c0cf(0x172),_0x51c0cf(0x5d9)]);return _0xe318f8!=null&&setValueByPath(_0x3f7467,['dest'],batchJobDestinationFromMldev(tRecvBatchJobDestination(_0xe318f8))),_0x3f7467;}function batchJobFromVertex(_0x251e3d){const _0x27981a=a2_0x8e922d,_0x5ec7e7={},_0x44c91d=getValueByPath(_0x251e3d,[_0x27981a(0x206)]);_0x44c91d!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x206)],_0x44c91d);const _0x32e3bc=getValueByPath(_0x251e3d,[_0x27981a(0x1c2)]);_0x32e3bc!=null&&setValueByPath(_0x5ec7e7,['displayName'],_0x32e3bc);const _0x2388c6=getValueByPath(_0x251e3d,['state']);_0x2388c6!=null&&setValueByPath(_0x5ec7e7,['state'],tJobState(_0x2388c6));const _0x2ccdab=getValueByPath(_0x251e3d,[_0x27981a(0x262)]);_0x2ccdab!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x262)],_0x2ccdab);const _0x2c2ae7=getValueByPath(_0x251e3d,[_0x27981a(0x15b)]);_0x2c2ae7!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x15b)],_0x2c2ae7);const _0x48e0d2=getValueByPath(_0x251e3d,[_0x27981a(0x61d)]);_0x48e0d2!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x61d)],_0x48e0d2);const _0x13339a=getValueByPath(_0x251e3d,[_0x27981a(0x5f1)]);_0x13339a!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x5f1)],_0x13339a);const _0x38e38e=getValueByPath(_0x251e3d,[_0x27981a(0x3ef)]);_0x38e38e!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x3ef)],_0x38e38e);const _0x230966=getValueByPath(_0x251e3d,[_0x27981a(0x638)]);_0x230966!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x638)],_0x230966);const _0x13b9c8=getValueByPath(_0x251e3d,[_0x27981a(0x476)]);_0x13b9c8!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x609)],batchJobSourceFromVertex(_0x13b9c8));const _0x2adbf9=getValueByPath(_0x251e3d,[_0x27981a(0x230)]);_0x2adbf9!=null&&setValueByPath(_0x5ec7e7,['dest'],batchJobDestinationFromVertex(tRecvBatchJobDestination(_0x2adbf9)));const _0x33a99c=getValueByPath(_0x251e3d,[_0x27981a(0x58c)]);return _0x33a99c!=null&&setValueByPath(_0x5ec7e7,[_0x27981a(0x58c)],_0x33a99c),_0x5ec7e7;}function batchJobSourceFromVertex(_0x3212f6){const _0x173c15=a2_0x8e922d,_0x35bef9={},_0x5537f4=getValueByPath(_0x3212f6,['instancesFormat']);_0x5537f4!=null&&setValueByPath(_0x35bef9,[_0x173c15(0xc5)],_0x5537f4);const _0x5e7ab0=getValueByPath(_0x3212f6,['gcsSource',_0x173c15(0x249)]);_0x5e7ab0!=null&&setValueByPath(_0x35bef9,[_0x173c15(0x305)],_0x5e7ab0);const _0x321276=getValueByPath(_0x3212f6,['bigquerySource',_0x173c15(0x61b)]);return _0x321276!=null&&setValueByPath(_0x35bef9,[_0x173c15(0x403)],_0x321276),_0x35bef9;}function batchJobSourceToMldev(_0x5072df,_0x2efd3f){const _0x1a0c20=a2_0x8e922d,_0x36e82e={};if(getValueByPath(_0x2efd3f,['format'])!==undefined)throw new Error(_0x1a0c20(0x62f));if(getValueByPath(_0x2efd3f,[_0x1a0c20(0x305)])!==undefined)throw new Error(_0x1a0c20(0x6a8));if(getValueByPath(_0x2efd3f,[_0x1a0c20(0x403)])!==undefined)throw new Error('bigqueryUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x262a9c=getValueByPath(_0x2efd3f,[_0x1a0c20(0x155)]);_0x262a9c!=null&&setValueByPath(_0x36e82e,[_0x1a0c20(0x155)],_0x262a9c);const _0x5d8ac0=getValueByPath(_0x2efd3f,['inlinedRequests']);if(_0x5d8ac0!=null){let _0x4441d2=_0x5d8ac0;Array[_0x1a0c20(0x266)](_0x4441d2)&&(_0x4441d2=_0x4441d2[_0x1a0c20(0x4a8)](_0x72a8a5=>{return inlinedRequestToMldev(_0x5072df,_0x72a8a5);})),setValueByPath(_0x36e82e,['requests',_0x1a0c20(0x4c7)],_0x4441d2);}return _0x36e82e;}function batchJobSourceToVertex(_0x14c45a){const _0x33deb1=a2_0x8e922d,_0x4f68e3={},_0x168233=getValueByPath(_0x14c45a,[_0x33deb1(0xc5)]);_0x168233!=null&&setValueByPath(_0x4f68e3,[_0x33deb1(0xb5)],_0x168233);const _0x28027d=getValueByPath(_0x14c45a,['gcsUri']);_0x28027d!=null&&setValueByPath(_0x4f68e3,[_0x33deb1(0x29c),_0x33deb1(0x249)],_0x28027d);const _0x52177f=getValueByPath(_0x14c45a,['bigqueryUri']);_0x52177f!=null&&setValueByPath(_0x4f68e3,[_0x33deb1(0x11f),_0x33deb1(0x61b)],_0x52177f);if(getValueByPath(_0x14c45a,['fileName'])!==undefined)throw new Error(_0x33deb1(0x69f));if(getValueByPath(_0x14c45a,['inlinedRequests'])!==undefined)throw new Error(_0x33deb1(0x2b2));return _0x4f68e3;}function blobToMldev$4(_0x2829f5){const _0x3211f6=a2_0x8e922d,_0x104010={},_0xa466f9=getValueByPath(_0x2829f5,['data']);_0xa466f9!=null&&setValueByPath(_0x104010,['data'],_0xa466f9);if(getValueByPath(_0x2829f5,['displayName'])!==undefined)throw new Error(_0x3211f6(0x5d8));const _0x2eaa8a=getValueByPath(_0x2829f5,[_0x3211f6(0x3c0)]);return _0x2eaa8a!=null&&setValueByPath(_0x104010,[_0x3211f6(0x3c0)],_0x2eaa8a),_0x104010;}function cancelBatchJobParametersToMldev(_0x4424f9,_0x581ba6){const _0x3bf85f=a2_0x8e922d,_0x39b8af={},_0x22e1c3=getValueByPath(_0x581ba6,[_0x3bf85f(0x206)]);return _0x22e1c3!=null&&setValueByPath(_0x39b8af,[_0x3bf85f(0x334),'name'],tBatchJobName(_0x4424f9,_0x22e1c3)),_0x39b8af;}function cancelBatchJobParametersToVertex(_0x388b80,_0x182cc4){const _0x4eaa88=a2_0x8e922d,_0x23bc06={},_0x37178a=getValueByPath(_0x182cc4,[_0x4eaa88(0x206)]);return _0x37178a!=null&&setValueByPath(_0x23bc06,[_0x4eaa88(0x334),_0x4eaa88(0x206)],tBatchJobName(_0x388b80,_0x37178a)),_0x23bc06;}function candidateFromMldev$1(_0x11c9f){const _0x450030=a2_0x8e922d,_0x1046fc={},_0x216291=getValueByPath(_0x11c9f,[_0x450030(0x4a6)]);_0x216291!=null&&setValueByPath(_0x1046fc,['content'],_0x216291);const _0x1c02c1=getValueByPath(_0x11c9f,[_0x450030(0x1fa)]);_0x1c02c1!=null&&setValueByPath(_0x1046fc,['citationMetadata'],citationMetadataFromMldev$1(_0x1c02c1));const _0x260130=getValueByPath(_0x11c9f,['tokenCount']);_0x260130!=null&&setValueByPath(_0x1046fc,['tokenCount'],_0x260130);const _0x4978a1=getValueByPath(_0x11c9f,['finishReason']);_0x4978a1!=null&&setValueByPath(_0x1046fc,['finishReason'],_0x4978a1);const _0x3e6347=getValueByPath(_0x11c9f,[_0x450030(0x578)]);_0x3e6347!=null&&setValueByPath(_0x1046fc,[_0x450030(0x578)],_0x3e6347);const _0x3bbbf3=getValueByPath(_0x11c9f,['groundingMetadata']);_0x3bbbf3!=null&&setValueByPath(_0x1046fc,[_0x450030(0x255)],_0x3bbbf3);const _0x285f99=getValueByPath(_0x11c9f,[_0x450030(0x19b)]);_0x285f99!=null&&setValueByPath(_0x1046fc,[_0x450030(0x19b)],_0x285f99);const _0x472285=getValueByPath(_0x11c9f,[_0x450030(0x592)]);_0x472285!=null&&setValueByPath(_0x1046fc,[_0x450030(0x592)],_0x472285);const _0x312e77=getValueByPath(_0x11c9f,[_0x450030(0x5e6)]);if(_0x312e77!=null){let _0x3645c5=_0x312e77;Array[_0x450030(0x266)](_0x3645c5)&&(_0x3645c5=_0x3645c5[_0x450030(0x4a8)](_0x15bb65=>{return _0x15bb65;})),setValueByPath(_0x1046fc,['safetyRatings'],_0x3645c5);}const _0x185feb=getValueByPath(_0x11c9f,['urlContextMetadata']);return _0x185feb!=null&&setValueByPath(_0x1046fc,['urlContextMetadata'],_0x185feb),_0x1046fc;}function citationMetadataFromMldev$1(_0x274a8c){const _0x2a2dd2=a2_0x8e922d,_0x1bb0df={},_0x495b6b=getValueByPath(_0x274a8c,[_0x2a2dd2(0x2c0)]);if(_0x495b6b!=null){let _0x30c017=_0x495b6b;Array[_0x2a2dd2(0x266)](_0x30c017)&&(_0x30c017=_0x30c017[_0x2a2dd2(0x4a8)](_0x2e1b8f=>{return _0x2e1b8f;})),setValueByPath(_0x1bb0df,['citations'],_0x30c017);}return _0x1bb0df;}function contentToMldev$4(_0x2e03ec){const _0x2264db=a2_0x8e922d,_0x43c4cd={},_0x4e48b9=getValueByPath(_0x2e03ec,[_0x2264db(0x694)]);if(_0x4e48b9!=null){let _0x206e4f=_0x4e48b9;Array['isArray'](_0x206e4f)&&(_0x206e4f=_0x206e4f['map'](_0x3d586c=>{return partToMldev$4(_0x3d586c);})),setValueByPath(_0x43c4cd,[_0x2264db(0x694)],_0x206e4f);}const _0x2a0402=getValueByPath(_0x2e03ec,[_0x2264db(0x31e)]);return _0x2a0402!=null&&setValueByPath(_0x43c4cd,[_0x2264db(0x31e)],_0x2a0402),_0x43c4cd;}function createBatchJobConfigToMldev(_0x55f571,_0x2288a7){const _0x1bf53f=a2_0x8e922d,_0x1f2b8b={},_0x12040e=getValueByPath(_0x55f571,['displayName']);_0x2288a7!==undefined&&_0x12040e!=null&&setValueByPath(_0x2288a7,[_0x1bf53f(0x4e8),_0x1bf53f(0x1c2)],_0x12040e);if(getValueByPath(_0x55f571,[_0x1bf53f(0x56d)])!==undefined)throw new Error('dest\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x1f2b8b;}function createBatchJobConfigToVertex(_0x41bd0a,_0x41cf27){const _0x128e56=a2_0x8e922d,_0x42b9db={},_0x3b4b35=getValueByPath(_0x41bd0a,[_0x128e56(0x1c2)]);_0x41cf27!==undefined&&_0x3b4b35!=null&&setValueByPath(_0x41cf27,['displayName'],_0x3b4b35);const _0x27424a=getValueByPath(_0x41bd0a,['dest']);return _0x41cf27!==undefined&&_0x27424a!=null&&setValueByPath(_0x41cf27,[_0x128e56(0x230)],batchJobDestinationToVertex(tBatchJobDestination(_0x27424a))),_0x42b9db;}function createBatchJobParametersToMldev(_0x3faea1,_0x208e6b){const _0x45550a=a2_0x8e922d,_0x4f370f={},_0x14187a=getValueByPath(_0x208e6b,['model']);_0x14187a!=null&&setValueByPath(_0x4f370f,[_0x45550a(0x334),_0x45550a(0x638)],tModel(_0x3faea1,_0x14187a));const _0x142d33=getValueByPath(_0x208e6b,[_0x45550a(0x609)]);_0x142d33!=null&&setValueByPath(_0x4f370f,[_0x45550a(0x4e8),_0x45550a(0x476)],batchJobSourceToMldev(_0x3faea1,tBatchJobSource(_0x3faea1,_0x142d33)));const _0x4ed642=getValueByPath(_0x208e6b,[_0x45550a(0x182)]);return _0x4ed642!=null&&createBatchJobConfigToMldev(_0x4ed642,_0x4f370f),_0x4f370f;}function createBatchJobParametersToVertex(_0x514b47,_0x57d77e){const _0x362698=a2_0x8e922d,_0x4b5dd1={},_0x25d05d=getValueByPath(_0x57d77e,[_0x362698(0x638)]);_0x25d05d!=null&&setValueByPath(_0x4b5dd1,[_0x362698(0x638)],tModel(_0x514b47,_0x25d05d));const _0xe55bd7=getValueByPath(_0x57d77e,['src']);_0xe55bd7!=null&&setValueByPath(_0x4b5dd1,['inputConfig'],batchJobSourceToVertex(tBatchJobSource(_0x514b47,_0xe55bd7)));const _0x36af53=getValueByPath(_0x57d77e,['config']);return _0x36af53!=null&&createBatchJobConfigToVertex(_0x36af53,_0x4b5dd1),_0x4b5dd1;}function createEmbeddingsBatchJobConfigToMldev(_0x48520d,_0x976ddb){const _0x57bc35=a2_0x8e922d,_0x47418={},_0x36aa7f=getValueByPath(_0x48520d,[_0x57bc35(0x1c2)]);return _0x976ddb!==undefined&&_0x36aa7f!=null&&setValueByPath(_0x976ddb,[_0x57bc35(0x4e8),'displayName'],_0x36aa7f),_0x47418;}function createEmbeddingsBatchJobParametersToMldev(_0x23fd8b,_0x4dd195){const _0x403ae1=a2_0x8e922d,_0x10eb70={},_0x323e6b=getValueByPath(_0x4dd195,[_0x403ae1(0x638)]);_0x323e6b!=null&&setValueByPath(_0x10eb70,[_0x403ae1(0x334),_0x403ae1(0x638)],tModel(_0x23fd8b,_0x323e6b));const _0x33e405=getValueByPath(_0x4dd195,[_0x403ae1(0x609)]);_0x33e405!=null&&setValueByPath(_0x10eb70,['batch',_0x403ae1(0x476)],embeddingsBatchJobSourceToMldev(_0x23fd8b,_0x33e405));const _0x48a7f4=getValueByPath(_0x4dd195,[_0x403ae1(0x182)]);return _0x48a7f4!=null&&createEmbeddingsBatchJobConfigToMldev(_0x48a7f4,_0x10eb70),_0x10eb70;}function deleteBatchJobParametersToMldev(_0x46f307,_0x44501c){const _0x2fd8bd=a2_0x8e922d,_0x54727c={},_0x115933=getValueByPath(_0x44501c,[_0x2fd8bd(0x206)]);return _0x115933!=null&&setValueByPath(_0x54727c,[_0x2fd8bd(0x334),_0x2fd8bd(0x206)],tBatchJobName(_0x46f307,_0x115933)),_0x54727c;}function deleteBatchJobParametersToVertex(_0x383b9c,_0x56587e){const _0x4fbbb6=a2_0x8e922d,_0x11562a={},_0x419da2=getValueByPath(_0x56587e,[_0x4fbbb6(0x206)]);return _0x419da2!=null&&setValueByPath(_0x11562a,[_0x4fbbb6(0x334),'name'],tBatchJobName(_0x383b9c,_0x419da2)),_0x11562a;}function deleteResourceJobFromMldev(_0x46ecfc){const _0x5605be=a2_0x8e922d,_0x164c58={},_0xe5efff=getValueByPath(_0x46ecfc,[_0x5605be(0x3a0)]);_0xe5efff!=null&&setValueByPath(_0x164c58,['sdkHttpResponse'],_0xe5efff);const _0x20c818=getValueByPath(_0x46ecfc,[_0x5605be(0x206)]);_0x20c818!=null&&setValueByPath(_0x164c58,['name'],_0x20c818);const _0x23405e=getValueByPath(_0x46ecfc,[_0x5605be(0x4ae)]);_0x23405e!=null&&setValueByPath(_0x164c58,[_0x5605be(0x4ae)],_0x23405e);const _0x8652c=getValueByPath(_0x46ecfc,[_0x5605be(0x262)]);return _0x8652c!=null&&setValueByPath(_0x164c58,['error'],_0x8652c),_0x164c58;}function deleteResourceJobFromVertex(_0x1cc3f5){const _0x20a4b2=a2_0x8e922d,_0x1eb926={},_0x180cc4=getValueByPath(_0x1cc3f5,[_0x20a4b2(0x3a0)]);_0x180cc4!=null&&setValueByPath(_0x1eb926,[_0x20a4b2(0x3a0)],_0x180cc4);const _0x1c9381=getValueByPath(_0x1cc3f5,[_0x20a4b2(0x206)]);_0x1c9381!=null&&setValueByPath(_0x1eb926,['name'],_0x1c9381);const _0x24a984=getValueByPath(_0x1cc3f5,['done']);_0x24a984!=null&&setValueByPath(_0x1eb926,[_0x20a4b2(0x4ae)],_0x24a984);const _0x41df3b=getValueByPath(_0x1cc3f5,[_0x20a4b2(0x262)]);return _0x41df3b!=null&&setValueByPath(_0x1eb926,[_0x20a4b2(0x262)],_0x41df3b),_0x1eb926;}function embedContentBatchToMldev(_0x3195f0,_0x432a23){const _0x53668d=a2_0x8e922d,_0x5e203c={},_0x1df6c0=getValueByPath(_0x432a23,['contents']);if(_0x1df6c0!=null){let _0x520cb5=tContentsForEmbed(_0x3195f0,_0x1df6c0);Array[_0x53668d(0x266)](_0x520cb5)&&(_0x520cb5=_0x520cb5['map'](_0x3ba154=>{return _0x3ba154;})),setValueByPath(_0x5e203c,[_0x53668d(0x458),_0x53668d(0x269),_0x53668d(0x4a6)],_0x520cb5);}const _0x1d38df=getValueByPath(_0x432a23,[_0x53668d(0x182)]);return _0x1d38df!=null&&(setValueByPath(_0x5e203c,[_0x53668d(0x39a)],embedContentConfigToMldev$1(_0x1d38df,_0x5e203c)),moveValueByPath(_0x5e203c,{'requests[].*':_0x53668d(0x37d)})),_0x5e203c;}function embedContentConfigToMldev$1(_0x1f172b,_0x296ce5){const _0x59240b=a2_0x8e922d,_0x4d5ad9={},_0x7a7fd9=getValueByPath(_0x1f172b,[_0x59240b(0x528)]);_0x296ce5!==undefined&&_0x7a7fd9!=null&&setValueByPath(_0x296ce5,[_0x59240b(0x458),_0x59240b(0x528)],_0x7a7fd9);const _0x401e36=getValueByPath(_0x1f172b,[_0x59240b(0x672)]);_0x296ce5!==undefined&&_0x401e36!=null&&setValueByPath(_0x296ce5,[_0x59240b(0x458),'title'],_0x401e36);const _0xbf79e6=getValueByPath(_0x1f172b,['outputDimensionality']);_0x296ce5!==undefined&&_0xbf79e6!=null&&setValueByPath(_0x296ce5,[_0x59240b(0x458),_0x59240b(0x47d)],_0xbf79e6);if(getValueByPath(_0x1f172b,[_0x59240b(0x3c0)])!==undefined)throw new Error(_0x59240b(0x471));if(getValueByPath(_0x1f172b,['autoTruncate'])!==undefined)throw new Error(_0x59240b(0x210));return _0x4d5ad9;}function embeddingsBatchJobSourceToMldev(_0x1178ed,_0x1fbdb5){const _0x5879e5=a2_0x8e922d,_0x3bc001={},_0x197777=getValueByPath(_0x1fbdb5,[_0x5879e5(0x155)]);_0x197777!=null&&setValueByPath(_0x3bc001,['file_name'],_0x197777);const _0x1a4880=getValueByPath(_0x1fbdb5,[_0x5879e5(0x505)]);return _0x1a4880!=null&&setValueByPath(_0x3bc001,[_0x5879e5(0x4c7)],embedContentBatchToMldev(_0x1178ed,_0x1a4880)),_0x3bc001;}function fileDataToMldev$4(_0x487457){const _0x2030e1=a2_0x8e922d,_0x10df48={};if(getValueByPath(_0x487457,[_0x2030e1(0x1c2)])!==undefined)throw new Error(_0x2030e1(0x5d8));const _0x1aabef=getValueByPath(_0x487457,['fileUri']);_0x1aabef!=null&&setValueByPath(_0x10df48,[_0x2030e1(0x3d0)],_0x1aabef);const _0x1a7c5f=getValueByPath(_0x487457,[_0x2030e1(0x3c0)]);return _0x1a7c5f!=null&&setValueByPath(_0x10df48,[_0x2030e1(0x3c0)],_0x1a7c5f),_0x10df48;}function functionCallToMldev$4(_0x3bcb3e){const _0x3c9eff=a2_0x8e922d,_0x20af3e={},_0x1ff6d1=getValueByPath(_0x3bcb3e,['id']);_0x1ff6d1!=null&&setValueByPath(_0x20af3e,['id'],_0x1ff6d1);const _0x2a4f74=getValueByPath(_0x3bcb3e,[_0x3c9eff(0x122)]);_0x2a4f74!=null&&setValueByPath(_0x20af3e,[_0x3c9eff(0x122)],_0x2a4f74);const _0x32c76d=getValueByPath(_0x3bcb3e,[_0x3c9eff(0x206)]);_0x32c76d!=null&&setValueByPath(_0x20af3e,['name'],_0x32c76d);if(getValueByPath(_0x3bcb3e,[_0x3c9eff(0x571)])!==undefined)throw new Error(_0x3c9eff(0x493));if(getValueByPath(_0x3bcb3e,[_0x3c9eff(0x2fe)])!==undefined)throw new Error('willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x20af3e;}function functionCallingConfigToMldev$2(_0x240ebf){const _0x110864=a2_0x8e922d,_0x4079a8={},_0x5342c2=getValueByPath(_0x240ebf,[_0x110864(0x556)]);_0x5342c2!=null&&setValueByPath(_0x4079a8,[_0x110864(0x556)],_0x5342c2);const _0x2a24cb=getValueByPath(_0x240ebf,[_0x110864(0x2de)]);_0x2a24cb!=null&&setValueByPath(_0x4079a8,[_0x110864(0x2de)],_0x2a24cb);if(getValueByPath(_0x240ebf,[_0x110864(0x4eb)])!==undefined)throw new Error(_0x110864(0x43d));return _0x4079a8;}function generateContentConfigToMldev$1(_0x33ebdc,_0x5bdd6c,_0x3b22b8){const _0x482029=a2_0x8e922d,_0x48648d={},_0x44c074=getValueByPath(_0x5bdd6c,['systemInstruction']);_0x3b22b8!==undefined&&_0x44c074!=null&&setValueByPath(_0x3b22b8,[_0x482029(0xd0)],contentToMldev$4(tContent(_0x44c074)));const _0x156b5c=getValueByPath(_0x5bdd6c,['temperature']);_0x156b5c!=null&&setValueByPath(_0x48648d,[_0x482029(0x1e3)],_0x156b5c);const _0x343862=getValueByPath(_0x5bdd6c,[_0x482029(0x159)]);_0x343862!=null&&setValueByPath(_0x48648d,[_0x482029(0x159)],_0x343862);const _0x5e956f=getValueByPath(_0x5bdd6c,[_0x482029(0x411)]);_0x5e956f!=null&&setValueByPath(_0x48648d,['topK'],_0x5e956f);const _0x13d6b1=getValueByPath(_0x5bdd6c,[_0x482029(0x268)]);_0x13d6b1!=null&&setValueByPath(_0x48648d,[_0x482029(0x268)],_0x13d6b1);const _0x1ef2b0=getValueByPath(_0x5bdd6c,[_0x482029(0x3fc)]);_0x1ef2b0!=null&&setValueByPath(_0x48648d,[_0x482029(0x3fc)],_0x1ef2b0);const _0x117cfc=getValueByPath(_0x5bdd6c,['stopSequences']);_0x117cfc!=null&&setValueByPath(_0x48648d,[_0x482029(0x278)],_0x117cfc);const _0x479c6d=getValueByPath(_0x5bdd6c,[_0x482029(0x120)]);_0x479c6d!=null&&setValueByPath(_0x48648d,['responseLogprobs'],_0x479c6d);const _0xb822c6=getValueByPath(_0x5bdd6c,['logprobs']);_0xb822c6!=null&&setValueByPath(_0x48648d,['logprobs'],_0xb822c6);const _0x2d867a=getValueByPath(_0x5bdd6c,[_0x482029(0x5b1)]);_0x2d867a!=null&&setValueByPath(_0x48648d,[_0x482029(0x5b1)],_0x2d867a);const _0x1b31b8=getValueByPath(_0x5bdd6c,[_0x482029(0x54f)]);_0x1b31b8!=null&&setValueByPath(_0x48648d,[_0x482029(0x54f)],_0x1b31b8);const _0x31a214=getValueByPath(_0x5bdd6c,[_0x482029(0x398)]);_0x31a214!=null&&setValueByPath(_0x48648d,['seed'],_0x31a214);const _0x18ecac=getValueByPath(_0x5bdd6c,['responseMimeType']);_0x18ecac!=null&&setValueByPath(_0x48648d,['responseMimeType'],_0x18ecac);const _0x36776c=getValueByPath(_0x5bdd6c,[_0x482029(0x475)]);_0x36776c!=null&&setValueByPath(_0x48648d,[_0x482029(0x475)],tSchema(_0x36776c));const _0x22e44e=getValueByPath(_0x5bdd6c,[_0x482029(0x13c)]);_0x22e44e!=null&&setValueByPath(_0x48648d,[_0x482029(0x13c)],_0x22e44e);if(getValueByPath(_0x5bdd6c,[_0x482029(0x69b)])!==undefined)throw new Error(_0x482029(0x45a));if(getValueByPath(_0x5bdd6c,[_0x482029(0x23a)])!==undefined)throw new Error(_0x482029(0x273));const _0x439fe3=getValueByPath(_0x5bdd6c,[_0x482029(0x64c)]);if(_0x3b22b8!==undefined&&_0x439fe3!=null){let _0x16cb23=_0x439fe3;Array['isArray'](_0x16cb23)&&(_0x16cb23=_0x16cb23[_0x482029(0x4a8)](_0x3e4011=>{return safetySettingToMldev$1(_0x3e4011);})),setValueByPath(_0x3b22b8,[_0x482029(0x64c)],_0x16cb23);}const _0x3f4e79=getValueByPath(_0x5bdd6c,[_0x482029(0x376)]);if(_0x3b22b8!==undefined&&_0x3f4e79!=null){let _0x45e165=tTools(_0x3f4e79);Array['isArray'](_0x45e165)&&(_0x45e165=_0x45e165['map'](_0x485f68=>{return toolToMldev$4(tTool(_0x485f68));})),setValueByPath(_0x3b22b8,[_0x482029(0x376)],_0x45e165);}const _0x568435=getValueByPath(_0x5bdd6c,[_0x482029(0x264)]);_0x3b22b8!==undefined&&_0x568435!=null&&setValueByPath(_0x3b22b8,[_0x482029(0x264)],toolConfigToMldev$2(_0x568435));if(getValueByPath(_0x5bdd6c,[_0x482029(0xee)])!==undefined)throw new Error(_0x482029(0x696));const _0x15bd61=getValueByPath(_0x5bdd6c,[_0x482029(0x433)]);_0x3b22b8!==undefined&&_0x15bd61!=null&&setValueByPath(_0x3b22b8,[_0x482029(0x433)],tCachedContentName(_0x33ebdc,_0x15bd61));const _0x3da58a=getValueByPath(_0x5bdd6c,['responseModalities']);_0x3da58a!=null&&setValueByPath(_0x48648d,[_0x482029(0x2ee)],_0x3da58a);const _0x1e3153=getValueByPath(_0x5bdd6c,[_0x482029(0x314)]);_0x1e3153!=null&&setValueByPath(_0x48648d,[_0x482029(0x314)],_0x1e3153);const _0x52a4ab=getValueByPath(_0x5bdd6c,[_0x482029(0xd9)]);_0x52a4ab!=null&&setValueByPath(_0x48648d,[_0x482029(0xd9)],tSpeechConfig(_0x52a4ab));if(getValueByPath(_0x5bdd6c,[_0x482029(0x4ca)])!==undefined)throw new Error('audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x13b1e4=getValueByPath(_0x5bdd6c,[_0x482029(0x10b)]);_0x13b1e4!=null&&setValueByPath(_0x48648d,[_0x482029(0x10b)],_0x13b1e4);const _0x851849=getValueByPath(_0x5bdd6c,['imageConfig']);_0x851849!=null&&setValueByPath(_0x48648d,[_0x482029(0x478)],imageConfigToMldev$1(_0x851849));const _0x592ff3=getValueByPath(_0x5bdd6c,['enableEnhancedCivicAnswers']);_0x592ff3!=null&&setValueByPath(_0x48648d,[_0x482029(0x679)],_0x592ff3);if(getValueByPath(_0x5bdd6c,[_0x482029(0x3b1)])!==undefined)throw new Error('modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x48648d;}function generateContentResponseFromMldev$1(_0x34839f){const _0x45be34=a2_0x8e922d,_0x5ccee0={},_0x588d34=getValueByPath(_0x34839f,[_0x45be34(0x3a0)]);_0x588d34!=null&&setValueByPath(_0x5ccee0,[_0x45be34(0x3a0)],_0x588d34);const _0x4128ae=getValueByPath(_0x34839f,[_0x45be34(0x2ba)]);if(_0x4128ae!=null){let _0x3b0867=_0x4128ae;Array[_0x45be34(0x266)](_0x3b0867)&&(_0x3b0867=_0x3b0867['map'](_0x58a919=>{return candidateFromMldev$1(_0x58a919);})),setValueByPath(_0x5ccee0,[_0x45be34(0x2ba)],_0x3b0867);}const _0x13198f=getValueByPath(_0x34839f,['modelVersion']);_0x13198f!=null&&setValueByPath(_0x5ccee0,[_0x45be34(0x551)],_0x13198f);const _0x6bbb11=getValueByPath(_0x34839f,[_0x45be34(0x1d4)]);_0x6bbb11!=null&&setValueByPath(_0x5ccee0,[_0x45be34(0x1d4)],_0x6bbb11);const _0x3d692c=getValueByPath(_0x34839f,[_0x45be34(0x5a8)]);_0x3d692c!=null&&setValueByPath(_0x5ccee0,[_0x45be34(0x5a8)],_0x3d692c);const _0x17cd25=getValueByPath(_0x34839f,[_0x45be34(0x3ac)]);return _0x17cd25!=null&&setValueByPath(_0x5ccee0,[_0x45be34(0x3ac)],_0x17cd25),_0x5ccee0;}function getBatchJobParametersToMldev(_0x45f919,_0x22a48c){const _0x1cd770=a2_0x8e922d,_0x127858={},_0x32d85f=getValueByPath(_0x22a48c,[_0x1cd770(0x206)]);return _0x32d85f!=null&&setValueByPath(_0x127858,['_url',_0x1cd770(0x206)],tBatchJobName(_0x45f919,_0x32d85f)),_0x127858;}function getBatchJobParametersToVertex(_0x563ea3,_0x459b4c){const _0x223250=a2_0x8e922d,_0x4e8b58={},_0x596e80=getValueByPath(_0x459b4c,[_0x223250(0x206)]);return _0x596e80!=null&&setValueByPath(_0x4e8b58,[_0x223250(0x334),_0x223250(0x206)],tBatchJobName(_0x563ea3,_0x596e80)),_0x4e8b58;}function googleMapsToMldev$4(_0xd3f1d){const _0x36da1d=a2_0x8e922d,_0x20200e={};if(getValueByPath(_0xd3f1d,['authConfig'])!==undefined)throw new Error(_0x36da1d(0x1be));const _0x26e4fb=getValueByPath(_0xd3f1d,[_0x36da1d(0x38f)]);return _0x26e4fb!=null&&setValueByPath(_0x20200e,[_0x36da1d(0x38f)],_0x26e4fb),_0x20200e;}function googleSearchToMldev$4(_0x1c769b){const _0x392a70=a2_0x8e922d,_0x2a91f2={};if(getValueByPath(_0x1c769b,[_0x392a70(0x65d)])!==undefined)throw new Error(_0x392a70(0x496));if(getValueByPath(_0x1c769b,[_0x392a70(0x237)])!==undefined)throw new Error(_0x392a70(0x410));const _0x167569=getValueByPath(_0x1c769b,[_0x392a70(0x164)]);return _0x167569!=null&&setValueByPath(_0x2a91f2,['timeRangeFilter'],_0x167569),_0x2a91f2;}function imageConfigToMldev$1(_0x5155bc){const _0x1fd5a5=a2_0x8e922d,_0xabba8c={},_0x4999b0=getValueByPath(_0x5155bc,[_0x1fd5a5(0x27e)]);_0x4999b0!=null&&setValueByPath(_0xabba8c,[_0x1fd5a5(0x27e)],_0x4999b0);const _0x2fc1cf=getValueByPath(_0x5155bc,[_0x1fd5a5(0x60e)]);_0x2fc1cf!=null&&setValueByPath(_0xabba8c,[_0x1fd5a5(0x60e)],_0x2fc1cf);if(getValueByPath(_0x5155bc,[_0x1fd5a5(0x47c)])!==undefined)throw new Error(_0x1fd5a5(0x30f));if(getValueByPath(_0x5155bc,['outputMimeType'])!==undefined)throw new Error(_0x1fd5a5(0x2b9));if(getValueByPath(_0x5155bc,[_0x1fd5a5(0x53c)])!==undefined)throw new Error(_0x1fd5a5(0x3d1));return _0xabba8c;}function inlinedRequestToMldev(_0x291115,_0x2e272a){const _0x12ab78=a2_0x8e922d,_0xe9b0f2={},_0x2028fb=getValueByPath(_0x2e272a,['model']);_0x2028fb!=null&&setValueByPath(_0xe9b0f2,[_0x12ab78(0x269),_0x12ab78(0x638)],tModel(_0x291115,_0x2028fb));const _0x4315c9=getValueByPath(_0x2e272a,[_0x12ab78(0x684)]);if(_0x4315c9!=null){let _0x1fc387=tContents(_0x4315c9);Array[_0x12ab78(0x266)](_0x1fc387)&&(_0x1fc387=_0x1fc387[_0x12ab78(0x4a8)](_0x40577d=>{return contentToMldev$4(_0x40577d);})),setValueByPath(_0xe9b0f2,['request',_0x12ab78(0x684)],_0x1fc387);}const _0x3bd7ea=getValueByPath(_0x2e272a,[_0x12ab78(0x172)]);_0x3bd7ea!=null&&setValueByPath(_0xe9b0f2,[_0x12ab78(0x172)],_0x3bd7ea);const _0x4938b2=getValueByPath(_0x2e272a,[_0x12ab78(0x182)]);return _0x4938b2!=null&&setValueByPath(_0xe9b0f2,[_0x12ab78(0x269),_0x12ab78(0x558)],generateContentConfigToMldev$1(_0x291115,_0x4938b2,getValueByPath(_0xe9b0f2,[_0x12ab78(0x269)],{}))),_0xe9b0f2;}function inlinedResponseFromMldev(_0x37beb4){const _0x376621=a2_0x8e922d,_0x236fcf={},_0x4a3a31=getValueByPath(_0x37beb4,['response']);_0x4a3a31!=null&&setValueByPath(_0x236fcf,[_0x376621(0x1d3)],generateContentResponseFromMldev$1(_0x4a3a31));const _0x5b7d73=getValueByPath(_0x37beb4,[_0x376621(0x172)]);_0x5b7d73!=null&&setValueByPath(_0x236fcf,['metadata'],_0x5b7d73);const _0xdf44a4=getValueByPath(_0x37beb4,['error']);return _0xdf44a4!=null&&setValueByPath(_0x236fcf,[_0x376621(0x262)],_0xdf44a4),_0x236fcf;}function listBatchJobsConfigToMldev(_0x195a43,_0x5808f7){const _0x4d2cee=a2_0x8e922d,_0xd111a0={},_0x492926=getValueByPath(_0x195a43,['pageSize']);_0x5808f7!==undefined&&_0x492926!=null&&setValueByPath(_0x5808f7,['_query',_0x4d2cee(0x546)],_0x492926);const _0x52bae6=getValueByPath(_0x195a43,[_0x4d2cee(0x193)]);_0x5808f7!==undefined&&_0x52bae6!=null&&setValueByPath(_0x5808f7,[_0x4d2cee(0xa9),_0x4d2cee(0x193)],_0x52bae6);if(getValueByPath(_0x195a43,[_0x4d2cee(0x50e)])!==undefined)throw new Error(_0x4d2cee(0x124));return _0xd111a0;}function listBatchJobsConfigToVertex(_0x16b863,_0x5d3811){const _0x2036b8=a2_0x8e922d,_0xa4ec8d={},_0x447195=getValueByPath(_0x16b863,['pageSize']);_0x5d3811!==undefined&&_0x447195!=null&&setValueByPath(_0x5d3811,[_0x2036b8(0xa9),_0x2036b8(0x546)],_0x447195);const _0xd3ffe=getValueByPath(_0x16b863,[_0x2036b8(0x193)]);_0x5d3811!==undefined&&_0xd3ffe!=null&&setValueByPath(_0x5d3811,['_query','pageToken'],_0xd3ffe);const _0x3c9efa=getValueByPath(_0x16b863,[_0x2036b8(0x50e)]);return _0x5d3811!==undefined&&_0x3c9efa!=null&&setValueByPath(_0x5d3811,[_0x2036b8(0xa9),_0x2036b8(0x50e)],_0x3c9efa),_0xa4ec8d;}function listBatchJobsParametersToMldev(_0x4ba628){const _0x20d234=a2_0x8e922d,_0x31bb37={},_0x566693=getValueByPath(_0x4ba628,[_0x20d234(0x182)]);return _0x566693!=null&&listBatchJobsConfigToMldev(_0x566693,_0x31bb37),_0x31bb37;}function listBatchJobsParametersToVertex(_0x68a50d){const _0x3a0b51={},_0x12c01a=getValueByPath(_0x68a50d,['config']);return _0x12c01a!=null&&listBatchJobsConfigToVertex(_0x12c01a,_0x3a0b51),_0x3a0b51;}function listBatchJobsResponseFromMldev(_0x542821){const _0x25007a=a2_0x8e922d,_0x307ca2={},_0x130e14=getValueByPath(_0x542821,[_0x25007a(0x3a0)]);_0x130e14!=null&&setValueByPath(_0x307ca2,[_0x25007a(0x3a0)],_0x130e14);const _0x50bf1a=getValueByPath(_0x542821,[_0x25007a(0x12c)]);_0x50bf1a!=null&&setValueByPath(_0x307ca2,[_0x25007a(0x12c)],_0x50bf1a);const _0x3dc51=getValueByPath(_0x542821,['operations']);if(_0x3dc51!=null){let _0x37c4c2=_0x3dc51;Array[_0x25007a(0x266)](_0x37c4c2)&&(_0x37c4c2=_0x37c4c2[_0x25007a(0x4a8)](_0xc95dfb=>{return batchJobFromMldev(_0xc95dfb);})),setValueByPath(_0x307ca2,['batchJobs'],_0x37c4c2);}return _0x307ca2;}function listBatchJobsResponseFromVertex(_0x103812){const _0x207909=a2_0x8e922d,_0x4b7318={},_0x1ff636=getValueByPath(_0x103812,['sdkHttpResponse']);_0x1ff636!=null&&setValueByPath(_0x4b7318,[_0x207909(0x3a0)],_0x1ff636);const _0x149c95=getValueByPath(_0x103812,[_0x207909(0x12c)]);_0x149c95!=null&&setValueByPath(_0x4b7318,[_0x207909(0x12c)],_0x149c95);const _0x12ad46=getValueByPath(_0x103812,[_0x207909(0x396)]);if(_0x12ad46!=null){let _0x232e74=_0x12ad46;Array[_0x207909(0x266)](_0x232e74)&&(_0x232e74=_0x232e74[_0x207909(0x4a8)](_0x148075=>{return batchJobFromVertex(_0x148075);})),setValueByPath(_0x4b7318,[_0x207909(0x3f3)],_0x232e74);}return _0x4b7318;}function partToMldev$4(_0x317206){const _0x91d328=a2_0x8e922d,_0x101157={},_0x4ae406=getValueByPath(_0x317206,[_0x91d328(0x314)]);_0x4ae406!=null&&setValueByPath(_0x101157,[_0x91d328(0x314)],_0x4ae406);const _0x4169f1=getValueByPath(_0x317206,[_0x91d328(0x686)]);_0x4169f1!=null&&setValueByPath(_0x101157,[_0x91d328(0x686)],_0x4169f1);const _0x48e707=getValueByPath(_0x317206,['executableCode']);_0x48e707!=null&&setValueByPath(_0x101157,['executableCode'],_0x48e707);const _0x1c3a34=getValueByPath(_0x317206,[_0x91d328(0x49d)]);_0x1c3a34!=null&&setValueByPath(_0x101157,[_0x91d328(0x49d)],fileDataToMldev$4(_0x1c3a34));const _0x556f9a=getValueByPath(_0x317206,['functionCall']);_0x556f9a!=null&&setValueByPath(_0x101157,[_0x91d328(0x521)],functionCallToMldev$4(_0x556f9a));const _0x1d0409=getValueByPath(_0x317206,[_0x91d328(0x659)]);_0x1d0409!=null&&setValueByPath(_0x101157,[_0x91d328(0x659)],_0x1d0409);const _0x4a2a44=getValueByPath(_0x317206,[_0x91d328(0x54b)]);_0x4a2a44!=null&&setValueByPath(_0x101157,['inlineData'],blobToMldev$4(_0x4a2a44));const _0x309e65=getValueByPath(_0x317206,[_0x91d328(0x1a8)]);_0x309e65!=null&&setValueByPath(_0x101157,[_0x91d328(0x1a8)],_0x309e65);const _0x470f55=getValueByPath(_0x317206,[_0x91d328(0x4d4)]);_0x470f55!=null&&setValueByPath(_0x101157,[_0x91d328(0x4d4)],_0x470f55);const _0x12139c=getValueByPath(_0x317206,[_0x91d328(0x643)]);_0x12139c!=null&&setValueByPath(_0x101157,[_0x91d328(0x643)],_0x12139c);const _0x560fa7=getValueByPath(_0x317206,[_0x91d328(0x3ad)]);return _0x560fa7!=null&&setValueByPath(_0x101157,[_0x91d328(0x3ad)],_0x560fa7),_0x101157;}function safetySettingToMldev$1(_0x430693){const _0x43e2fc=a2_0x8e922d,_0x38b91a={},_0x428ba3=getValueByPath(_0x430693,[_0x43e2fc(0x327)]);_0x428ba3!=null&&setValueByPath(_0x38b91a,[_0x43e2fc(0x327)],_0x428ba3);if(getValueByPath(_0x430693,['method'])!==undefined)throw new Error(_0x43e2fc(0x10a));const _0x263fd4=getValueByPath(_0x430693,[_0x43e2fc(0x575)]);return _0x263fd4!=null&&setValueByPath(_0x38b91a,[_0x43e2fc(0x575)],_0x263fd4),_0x38b91a;}function toolConfigToMldev$2(_0x524570){const _0x388855=a2_0x8e922d,_0x2e0b23={},_0x1e5abd=getValueByPath(_0x524570,['retrievalConfig']);_0x1e5abd!=null&&setValueByPath(_0x2e0b23,[_0x388855(0x5c2)],_0x1e5abd);const _0x32e305=getValueByPath(_0x524570,['functionCallingConfig']);return _0x32e305!=null&&setValueByPath(_0x2e0b23,[_0x388855(0x132)],functionCallingConfigToMldev$2(_0x32e305)),_0x2e0b23;}function toolToMldev$4(_0x492b40){const _0x51e8bf=a2_0x8e922d,_0x366dcb={};if(getValueByPath(_0x492b40,[_0x51e8bf(0x113)])!==undefined)throw new Error(_0x51e8bf(0x238));const _0x3b9286=getValueByPath(_0x492b40,[_0x51e8bf(0x6a1)]);_0x3b9286!=null&&setValueByPath(_0x366dcb,['computerUse'],_0x3b9286);const _0xb1d0ed=getValueByPath(_0x492b40,['fileSearch']);_0xb1d0ed!=null&&setValueByPath(_0x366dcb,['fileSearch'],_0xb1d0ed);const _0x155aa2=getValueByPath(_0x492b40,[_0x51e8bf(0x567)]);_0x155aa2!=null&&setValueByPath(_0x366dcb,['codeExecution'],_0x155aa2);if(getValueByPath(_0x492b40,[_0x51e8bf(0x11b)])!==undefined)throw new Error(_0x51e8bf(0x244));const _0x1a4ca1=getValueByPath(_0x492b40,['functionDeclarations']);if(_0x1a4ca1!=null){let _0x4d7c53=_0x1a4ca1;Array['isArray'](_0x4d7c53)&&(_0x4d7c53=_0x4d7c53['map'](_0x14822e=>{return _0x14822e;})),setValueByPath(_0x366dcb,[_0x51e8bf(0x4e2)],_0x4d7c53);}const _0x5ae6ec=getValueByPath(_0x492b40,[_0x51e8bf(0x118)]);_0x5ae6ec!=null&&setValueByPath(_0x366dcb,[_0x51e8bf(0x118)],googleMapsToMldev$4(_0x5ae6ec));const _0x16691a=getValueByPath(_0x492b40,[_0x51e8bf(0x1f9)]);_0x16691a!=null&&setValueByPath(_0x366dcb,[_0x51e8bf(0x1f9)],googleSearchToMldev$4(_0x16691a));const _0x1113e0=getValueByPath(_0x492b40,[_0x51e8bf(0x151)]);_0x1113e0!=null&&setValueByPath(_0x366dcb,['googleSearchRetrieval'],_0x1113e0);const _0xc88094=getValueByPath(_0x492b40,['urlContext']);return _0xc88094!=null&&setValueByPath(_0x366dcb,[_0x51e8bf(0x642)],_0xc88094),_0x366dcb;}/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright 2025 Google LLC
|
|
39
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
40
|
+
*/
|
|
41
|
+
exports[a2_0x8e922d(0x1a4)]=void 0x0,function(_0x336c6a){const _0x2058ac=a2_0x8e922d;_0x336c6a[_0x2058ac(0x20c)]=_0x2058ac(0x3f3),_0x336c6a[_0x2058ac(0x5ca)]=_0x2058ac(0x4f8),_0x336c6a[_0x2058ac(0x490)]='tuningJobs',_0x336c6a['PAGED_ITEM_FILES']=_0x2058ac(0x57c),_0x336c6a[_0x2058ac(0x1b0)]=_0x2058ac(0x11c),_0x336c6a[_0x2058ac(0x2f7)]=_0x2058ac(0x6b3),_0x336c6a[_0x2058ac(0x300)]=_0x2058ac(0x3d8);}(exports[a2_0x8e922d(0x1a4)]||(exports[a2_0x8e922d(0x1a4)]={}));class Pager{constructor(_0x423a61,_0x4c1042,_0x3b4d3f,_0x49072c){const _0x33d731=a2_0x8e922d;this[_0x33d731(0x136)]=[],this[_0x33d731(0x617)]={},this[_0x33d731(0x5e8)]=_0x4c1042,this[_0x33d731(0x18a)](_0x423a61,_0x3b4d3f,_0x49072c);}[a2_0x8e922d(0x18a)](_0x21743a,_0x5e5e78,_0x894788){const _0x33281b=a2_0x8e922d;var _0x2055b0,_0x596b67;this[_0x33281b(0xb0)]=_0x21743a,this['pageInternal']=_0x5e5e78[this[_0x33281b(0xb0)]]||[],this[_0x33281b(0x514)]=_0x5e5e78===null||_0x5e5e78===void 0x0?void 0x0:_0x5e5e78['sdkHttpResponse'],this['idxInternal']=0x0;let _0xc4da0c={'config':{}};if(!_0x894788||Object['keys'](_0x894788)[_0x33281b(0x568)]===0x0)_0xc4da0c={'config':{}};else typeof _0x894788==='object'?_0xc4da0c=Object[_0x33281b(0x289)]({},_0x894788):_0xc4da0c=_0x894788;_0xc4da0c['config']&&(_0xc4da0c[_0x33281b(0x182)][_0x33281b(0x193)]=_0x5e5e78[_0x33281b(0x12c)]),this['paramsInternal']=_0xc4da0c,this[_0x33281b(0xc1)]=(_0x596b67=(_0x2055b0=_0xc4da0c[_0x33281b(0x182)])===null||_0x2055b0===void 0x0?void 0x0:_0x2055b0[_0x33281b(0x546)])!==null&&_0x596b67!==void 0x0?_0x596b67:this['pageInternal'][_0x33281b(0x568)];}[a2_0x8e922d(0x222)](_0x7cd020){const _0x554714=a2_0x8e922d;this['init'](this[_0x554714(0xb0)],_0x7cd020,this[_0x554714(0x617)]);}get[a2_0x8e922d(0x60b)](){const _0x456341=a2_0x8e922d;return this[_0x456341(0x136)];}get[a2_0x8e922d(0x206)](){return this['nameInternal'];}get[a2_0x8e922d(0x546)](){const _0x39ef52=a2_0x8e922d;return this[_0x39ef52(0xc1)];}get[a2_0x8e922d(0x3a0)](){const _0xd27e9f=a2_0x8e922d;return this[_0xd27e9f(0x514)];}get[a2_0x8e922d(0x3d3)](){const _0x43b748=a2_0x8e922d;return this[_0x43b748(0x617)];}get[a2_0x8e922d(0x1b2)](){const _0x3d27cc=a2_0x8e922d;return this[_0x3d27cc(0x136)][_0x3d27cc(0x568)];}['getItem'](_0x3fe573){const _0x1d7cfa=a2_0x8e922d;return this[_0x1d7cfa(0x136)][_0x3fe573];}[Symbol[a2_0x8e922d(0x4f2)]](){return{'next':async()=>{const _0xec9770=a2_0x28ed;if(this[_0xec9770(0x469)]>=this[_0xec9770(0x1b2)]){if(this[_0xec9770(0x4ac)]())await this[_0xec9770(0x392)]();else return{'value':undefined,'done':!![]};}const _0x4428c4=this[_0xec9770(0x135)](this[_0xec9770(0x469)]);return this[_0xec9770(0x469)]+=0x1,{'value':_0x4428c4,'done':![]};},'return':async()=>{return{'value':undefined,'done':!![]};}};}async[a2_0x8e922d(0x392)](){const _0x396849=a2_0x8e922d;if(!this[_0x396849(0x4ac)]())throw new Error('No\x20more\x20pages\x20to\x20fetch.');const _0x51b9c3=await this[_0x396849(0x5e8)](this[_0x396849(0x3d3)]);return this['initNextPage'](_0x51b9c3),this[_0x396849(0x60b)];}[a2_0x8e922d(0x4ac)](){const _0xcd316c=a2_0x8e922d;var _0xc8f00b;if(((_0xc8f00b=this[_0xcd316c(0x3d3)][_0xcd316c(0x182)])===null||_0xc8f00b===void 0x0?void 0x0:_0xc8f00b[_0xcd316c(0x193)])!==undefined)return!![];return![];}}/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2025 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
45
|
+
*/
|
|
46
|
+
class Batches extends BaseModule{constructor(_0x5951ef){const _0x5c2bab=a2_0x8e922d;super(),this['apiClient']=_0x5951ef,this['list']=async(_0x3704a9={})=>{const _0x1d5c5e=a2_0x28ed;return new Pager(exports[_0x1d5c5e(0x1a4)][_0x1d5c5e(0x20c)],_0x40f428=>this[_0x1d5c5e(0x456)](_0x40f428),await this[_0x1d5c5e(0x456)](_0x3704a9),_0x3704a9);},this[_0x5c2bab(0x5da)]=async _0x451018=>{const _0x5db19b=_0x5c2bab;return this[_0x5db19b(0x2eb)][_0x5db19b(0x4d0)]()&&(_0x451018[_0x5db19b(0x182)]=this[_0x5db19b(0x5fb)](_0x451018[_0x5db19b(0x609)],_0x451018[_0x5db19b(0x182)])),this['createInternal'](_0x451018);},this['createEmbeddings']=async _0x2dc504=>{const _0x552a5c=_0x5c2bab;console[_0x552a5c(0x1ef)](_0x552a5c(0x665));if(this['apiClient'][_0x552a5c(0x4d0)]())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20batches.createEmbeddings.');return this['createEmbeddingsInternal'](_0x2dc504);};}[a2_0x8e922d(0x143)](_0x3e5fd0){const _0x3b35a3=a2_0x8e922d,_0x4b8d67=createBatchJobParametersToMldev(this[_0x3b35a3(0x2eb)],_0x3e5fd0),_0x161eab=_0x4b8d67[_0x3b35a3(0x334)],_0x43287f=formatMap('{model}:batchGenerateContent',_0x161eab),_0x5e749f=_0x4b8d67['batch'],_0x2ecd0d=_0x5e749f['inputConfig'],_0x179d8f=_0x2ecd0d['requests'],_0x2e7925=_0x179d8f[_0x3b35a3(0x4c7)],_0x5ed1ad=[];for(const _0x11c38e of _0x2e7925){const _0x3092e2=Object[_0x3b35a3(0x289)]({},_0x11c38e);if(_0x3092e2[_0x3b35a3(0xd0)]){const _0x5cd380=_0x3092e2[_0x3b35a3(0xd0)];delete _0x3092e2[_0x3b35a3(0xd0)];const _0x2ae685=_0x3092e2[_0x3b35a3(0x269)];_0x2ae685['systemInstruction']=_0x5cd380,_0x3092e2[_0x3b35a3(0x269)]=_0x2ae685;}_0x5ed1ad['push'](_0x3092e2);}return _0x179d8f[_0x3b35a3(0x4c7)]=_0x5ed1ad,delete _0x4b8d67[_0x3b35a3(0x182)],delete _0x4b8d67[_0x3b35a3(0x334)],delete _0x4b8d67[_0x3b35a3(0xa9)],{'path':_0x43287f,'body':_0x4b8d67};}['getGcsUri'](_0x544a80){const _0x1b28b8=a2_0x8e922d;if(typeof _0x544a80===_0x1b28b8(0x68f))return _0x544a80['startsWith'](_0x1b28b8(0x533))?_0x544a80:undefined;if(!Array[_0x1b28b8(0x266)](_0x544a80)&&_0x544a80[_0x1b28b8(0x305)]&&_0x544a80[_0x1b28b8(0x305)][_0x1b28b8(0x568)]>0x0)return _0x544a80[_0x1b28b8(0x305)][0x0];return undefined;}['getBigqueryUri'](_0x3dab88){const _0x4ffb9e=a2_0x8e922d;if(typeof _0x3dab88===_0x4ffb9e(0x68f))return _0x3dab88[_0x4ffb9e(0x1af)](_0x4ffb9e(0x610))?_0x3dab88:undefined;if(!Array[_0x4ffb9e(0x266)](_0x3dab88))return _0x3dab88[_0x4ffb9e(0x403)];return undefined;}[a2_0x8e922d(0x5fb)](_0x13ebdd,_0xb5306a){const _0x29779d=a2_0x8e922d,_0x53d7b3=_0xb5306a?Object[_0x29779d(0x289)]({},_0xb5306a):{},_0x18bfdf=Date['now']()['toString']();!_0x53d7b3[_0x29779d(0x1c2)]&&(_0x53d7b3[_0x29779d(0x1c2)]=_0x29779d(0x215)+_0x18bfdf);if(_0x53d7b3['dest']===undefined){const _0x58955a=this[_0x29779d(0x464)](_0x13ebdd),_0x5c3179=this[_0x29779d(0x662)](_0x13ebdd);if(_0x58955a)_0x58955a[_0x29779d(0x39c)](_0x29779d(0x5b6))?_0x53d7b3['dest']=_0x58955a[_0x29779d(0x664)](0x0,-0x6)+_0x29779d(0x432):_0x53d7b3[_0x29779d(0x56d)]=_0x58955a+_0x29779d(0x603)+_0x18bfdf;else{if(_0x5c3179)_0x53d7b3['dest']=_0x5c3179+_0x29779d(0x603)+_0x18bfdf;else throw new Error(_0x29779d(0x607));}}return _0x53d7b3;}async[a2_0x8e922d(0xd5)](_0x37dcc7){const _0x241633=a2_0x8e922d;var _0x6ff2be,_0x3be4ad,_0x4c889c,_0x2510d4;let _0xb5f059,_0x2e157c='',_0x5dbf17={};if(this[_0x241633(0x2eb)][_0x241633(0x4d0)]()){const _0x56b58a=createBatchJobParametersToVertex(this[_0x241633(0x2eb)],_0x37dcc7);return _0x2e157c=formatMap(_0x241633(0x396),_0x56b58a[_0x241633(0x334)]),_0x5dbf17=_0x56b58a[_0x241633(0xa9)],delete _0x56b58a[_0x241633(0x334)],delete _0x56b58a[_0x241633(0xa9)],_0xb5f059=this['apiClient']['request']({'path':_0x2e157c,'queryParams':_0x5dbf17,'body':JSON[_0x241633(0x296)](_0x56b58a),'httpMethod':_0x241633(0x208),'httpOptions':(_0x6ff2be=_0x37dcc7[_0x241633(0x182)])===null||_0x6ff2be===void 0x0?void 0x0:_0x6ff2be[_0x241633(0x30a)],'abortSignal':(_0x3be4ad=_0x37dcc7[_0x241633(0x182)])===null||_0x3be4ad===void 0x0?void 0x0:_0x3be4ad['abortSignal']})[_0x241633(0x213)](_0x3edddb=>{return _0x3edddb['json']();}),_0xb5f059['then'](_0x59dcf1=>{const _0x469cac=batchJobFromVertex(_0x59dcf1);return _0x469cac;});}else{const _0x1b9570=createBatchJobParametersToMldev(this[_0x241633(0x2eb)],_0x37dcc7);return _0x2e157c=formatMap('{model}:batchGenerateContent',_0x1b9570[_0x241633(0x334)]),_0x5dbf17=_0x1b9570[_0x241633(0xa9)],delete _0x1b9570[_0x241633(0x334)],delete _0x1b9570['_query'],_0xb5f059=this['apiClient'][_0x241633(0x269)]({'path':_0x2e157c,'queryParams':_0x5dbf17,'body':JSON['stringify'](_0x1b9570),'httpMethod':'POST','httpOptions':(_0x4c889c=_0x37dcc7['config'])===null||_0x4c889c===void 0x0?void 0x0:_0x4c889c[_0x241633(0x30a)],'abortSignal':(_0x2510d4=_0x37dcc7[_0x241633(0x182)])===null||_0x2510d4===void 0x0?void 0x0:_0x2510d4[_0x241633(0x2fc)]})[_0x241633(0x213)](_0x8f6828=>{const _0x59e723=_0x241633;return _0x8f6828[_0x59e723(0xdf)]();}),_0xb5f059[_0x241633(0x213)](_0x85d7ab=>{const _0x7854a7=batchJobFromMldev(_0x85d7ab);return _0x7854a7;});}}async[a2_0x8e922d(0x3c6)](_0x539005){const _0x2388b7=a2_0x8e922d;var _0x338ae8,_0x2846df;let _0x56682e,_0x5ed6b4='',_0x3c3e25={};if(this[_0x2388b7(0x2eb)]['isVertexAI']())throw new Error(_0x2388b7(0x651));else{const _0x4a6068=createEmbeddingsBatchJobParametersToMldev(this[_0x2388b7(0x2eb)],_0x539005);return _0x5ed6b4=formatMap('{model}:asyncBatchEmbedContent',_0x4a6068[_0x2388b7(0x334)]),_0x3c3e25=_0x4a6068[_0x2388b7(0xa9)],delete _0x4a6068['_url'],delete _0x4a6068['_query'],_0x56682e=this[_0x2388b7(0x2eb)][_0x2388b7(0x269)]({'path':_0x5ed6b4,'queryParams':_0x3c3e25,'body':JSON[_0x2388b7(0x296)](_0x4a6068),'httpMethod':_0x2388b7(0x208),'httpOptions':(_0x338ae8=_0x539005[_0x2388b7(0x182)])===null||_0x338ae8===void 0x0?void 0x0:_0x338ae8['httpOptions'],'abortSignal':(_0x2846df=_0x539005[_0x2388b7(0x182)])===null||_0x2846df===void 0x0?void 0x0:_0x2846df[_0x2388b7(0x2fc)]})['then'](_0x5c1db6=>{return _0x5c1db6['json']();}),_0x56682e[_0x2388b7(0x213)](_0x577da3=>{const _0x5278de=batchJobFromMldev(_0x577da3);return _0x5278de;});}}async[a2_0x8e922d(0x661)](_0x1d2c00){const _0x5078f7=a2_0x8e922d;var _0x49b7e0,_0x16574d,_0x559be9,_0xf1f0e5;let _0x2be209,_0xe913ce='',_0x1d5396={};if(this[_0x5078f7(0x2eb)][_0x5078f7(0x4d0)]()){const _0x34b116=getBatchJobParametersToVertex(this[_0x5078f7(0x2eb)],_0x1d2c00);return _0xe913ce=formatMap(_0x5078f7(0x647),_0x34b116[_0x5078f7(0x334)]),_0x1d5396=_0x34b116['_query'],delete _0x34b116[_0x5078f7(0x334)],delete _0x34b116[_0x5078f7(0xa9)],_0x2be209=this[_0x5078f7(0x2eb)]['request']({'path':_0xe913ce,'queryParams':_0x1d5396,'body':JSON[_0x5078f7(0x296)](_0x34b116),'httpMethod':_0x5078f7(0x375),'httpOptions':(_0x49b7e0=_0x1d2c00[_0x5078f7(0x182)])===null||_0x49b7e0===void 0x0?void 0x0:_0x49b7e0[_0x5078f7(0x30a)],'abortSignal':(_0x16574d=_0x1d2c00[_0x5078f7(0x182)])===null||_0x16574d===void 0x0?void 0x0:_0x16574d[_0x5078f7(0x2fc)]})[_0x5078f7(0x213)](_0x534147=>{return _0x534147['json']();}),_0x2be209[_0x5078f7(0x213)](_0xeab7ee=>{const _0x463559=batchJobFromVertex(_0xeab7ee);return _0x463559;});}else{const _0x4d29ab=getBatchJobParametersToMldev(this[_0x5078f7(0x2eb)],_0x1d2c00);return _0xe913ce=formatMap(_0x5078f7(0x3ee),_0x4d29ab[_0x5078f7(0x334)]),_0x1d5396=_0x4d29ab[_0x5078f7(0xa9)],delete _0x4d29ab[_0x5078f7(0x334)],delete _0x4d29ab[_0x5078f7(0xa9)],_0x2be209=this[_0x5078f7(0x2eb)][_0x5078f7(0x269)]({'path':_0xe913ce,'queryParams':_0x1d5396,'body':JSON[_0x5078f7(0x296)](_0x4d29ab),'httpMethod':_0x5078f7(0x375),'httpOptions':(_0x559be9=_0x1d2c00['config'])===null||_0x559be9===void 0x0?void 0x0:_0x559be9[_0x5078f7(0x30a)],'abortSignal':(_0xf1f0e5=_0x1d2c00[_0x5078f7(0x182)])===null||_0xf1f0e5===void 0x0?void 0x0:_0xf1f0e5[_0x5078f7(0x2fc)]})[_0x5078f7(0x213)](_0x19a7fb=>{const _0x49996b=_0x5078f7;return _0x19a7fb[_0x49996b(0xdf)]();}),_0x2be209['then'](_0x3fc52f=>{const _0x152d9e=batchJobFromMldev(_0x3fc52f);return _0x152d9e;});}}async['cancel'](_0x2701ab){const _0x3b3991=a2_0x8e922d;var _0xd16f9c,_0xe26386,_0x5c63b1,_0x3d9df4;let _0x225ad2='',_0x1d78aa={};if(this[_0x3b3991(0x2eb)][_0x3b3991(0x4d0)]()){const _0x5171bf=cancelBatchJobParametersToVertex(this[_0x3b3991(0x2eb)],_0x2701ab);_0x225ad2=formatMap('batchPredictionJobs/{name}:cancel',_0x5171bf[_0x3b3991(0x334)]),_0x1d78aa=_0x5171bf[_0x3b3991(0xa9)],delete _0x5171bf[_0x3b3991(0x334)],delete _0x5171bf[_0x3b3991(0xa9)],await this[_0x3b3991(0x2eb)][_0x3b3991(0x269)]({'path':_0x225ad2,'queryParams':_0x1d78aa,'body':JSON[_0x3b3991(0x296)](_0x5171bf),'httpMethod':_0x3b3991(0x208),'httpOptions':(_0xd16f9c=_0x2701ab[_0x3b3991(0x182)])===null||_0xd16f9c===void 0x0?void 0x0:_0xd16f9c[_0x3b3991(0x30a)],'abortSignal':(_0xe26386=_0x2701ab[_0x3b3991(0x182)])===null||_0xe26386===void 0x0?void 0x0:_0xe26386[_0x3b3991(0x2fc)]});}else{const _0x56d3c3=cancelBatchJobParametersToMldev(this[_0x3b3991(0x2eb)],_0x2701ab);_0x225ad2=formatMap('batches/{name}:cancel',_0x56d3c3[_0x3b3991(0x334)]),_0x1d78aa=_0x56d3c3['_query'],delete _0x56d3c3[_0x3b3991(0x334)],delete _0x56d3c3[_0x3b3991(0xa9)],await this[_0x3b3991(0x2eb)]['request']({'path':_0x225ad2,'queryParams':_0x1d78aa,'body':JSON[_0x3b3991(0x296)](_0x56d3c3),'httpMethod':_0x3b3991(0x208),'httpOptions':(_0x5c63b1=_0x2701ab[_0x3b3991(0x182)])===null||_0x5c63b1===void 0x0?void 0x0:_0x5c63b1[_0x3b3991(0x30a)],'abortSignal':(_0x3d9df4=_0x2701ab[_0x3b3991(0x182)])===null||_0x3d9df4===void 0x0?void 0x0:_0x3d9df4[_0x3b3991(0x2fc)]});}}async[a2_0x8e922d(0x456)](_0x2ddd9b){const _0x35bbbd=a2_0x8e922d;var _0x597bc5,_0x5d31fe,_0x9268dc,_0x500583;let _0x1e5497,_0x1d141f='',_0x67adbd={};if(this[_0x35bbbd(0x2eb)][_0x35bbbd(0x4d0)]()){const _0x5e03fa=listBatchJobsParametersToVertex(_0x2ddd9b);return _0x1d141f=formatMap('batchPredictionJobs',_0x5e03fa['_url']),_0x67adbd=_0x5e03fa[_0x35bbbd(0xa9)],delete _0x5e03fa[_0x35bbbd(0x334)],delete _0x5e03fa['_query'],_0x1e5497=this[_0x35bbbd(0x2eb)][_0x35bbbd(0x269)]({'path':_0x1d141f,'queryParams':_0x67adbd,'body':JSON[_0x35bbbd(0x296)](_0x5e03fa),'httpMethod':_0x35bbbd(0x375),'httpOptions':(_0x597bc5=_0x2ddd9b['config'])===null||_0x597bc5===void 0x0?void 0x0:_0x597bc5[_0x35bbbd(0x30a)],'abortSignal':(_0x5d31fe=_0x2ddd9b[_0x35bbbd(0x182)])===null||_0x5d31fe===void 0x0?void 0x0:_0x5d31fe['abortSignal']})[_0x35bbbd(0x213)](_0x3ad409=>{const _0x33a0ba=_0x35bbbd;return _0x3ad409[_0x33a0ba(0xdf)]()['then'](_0x38777d=>{const _0x4124ac=_0x33a0ba,_0x11f589=_0x38777d;return _0x11f589[_0x4124ac(0x3a0)]={'headers':_0x3ad409[_0x4124ac(0x438)]},_0x11f589;});}),_0x1e5497[_0x35bbbd(0x213)](_0x479843=>{const _0x3e6623=_0x35bbbd,_0x15d833=listBatchJobsResponseFromVertex(_0x479843),_0x334352=new ListBatchJobsResponse();return Object[_0x3e6623(0x289)](_0x334352,_0x15d833),_0x334352;});}else{const _0x5091c4=listBatchJobsParametersToMldev(_0x2ddd9b);return _0x1d141f=formatMap(_0x35bbbd(0x306),_0x5091c4[_0x35bbbd(0x334)]),_0x67adbd=_0x5091c4['_query'],delete _0x5091c4['_url'],delete _0x5091c4[_0x35bbbd(0xa9)],_0x1e5497=this[_0x35bbbd(0x2eb)][_0x35bbbd(0x269)]({'path':_0x1d141f,'queryParams':_0x67adbd,'body':JSON[_0x35bbbd(0x296)](_0x5091c4),'httpMethod':_0x35bbbd(0x375),'httpOptions':(_0x9268dc=_0x2ddd9b['config'])===null||_0x9268dc===void 0x0?void 0x0:_0x9268dc['httpOptions'],'abortSignal':(_0x500583=_0x2ddd9b['config'])===null||_0x500583===void 0x0?void 0x0:_0x500583[_0x35bbbd(0x2fc)]})['then'](_0x2c362e=>{const _0x42a546=_0x35bbbd;return _0x2c362e[_0x42a546(0xdf)]()[_0x42a546(0x213)](_0x334d8e=>{const _0x13c6be=_0x42a546,_0x29cf57=_0x334d8e;return _0x29cf57[_0x13c6be(0x3a0)]={'headers':_0x2c362e[_0x13c6be(0x438)]},_0x29cf57;});}),_0x1e5497[_0x35bbbd(0x213)](_0x511b31=>{const _0xbdbb92=_0x35bbbd,_0x271730=listBatchJobsResponseFromMldev(_0x511b31),_0xe85bf5=new ListBatchJobsResponse();return Object[_0xbdbb92(0x289)](_0xe85bf5,_0x271730),_0xe85bf5;});}}async[a2_0x8e922d(0x1a5)](_0xcbd08f){const _0x27416e=a2_0x8e922d;var _0x23bc1b,_0x586953,_0x4a462e,_0xf4cbe3;let _0x58089b,_0x16fb5b='',_0x505b13={};if(this[_0x27416e(0x2eb)]['isVertexAI']()){const _0x57ba8b=deleteBatchJobParametersToVertex(this[_0x27416e(0x2eb)],_0xcbd08f);return _0x16fb5b=formatMap(_0x27416e(0x647),_0x57ba8b[_0x27416e(0x334)]),_0x505b13=_0x57ba8b[_0x27416e(0xa9)],delete _0x57ba8b[_0x27416e(0x334)],delete _0x57ba8b[_0x27416e(0xa9)],_0x58089b=this[_0x27416e(0x2eb)][_0x27416e(0x269)]({'path':_0x16fb5b,'queryParams':_0x505b13,'body':JSON[_0x27416e(0x296)](_0x57ba8b),'httpMethod':_0x27416e(0x596),'httpOptions':(_0x23bc1b=_0xcbd08f[_0x27416e(0x182)])===null||_0x23bc1b===void 0x0?void 0x0:_0x23bc1b['httpOptions'],'abortSignal':(_0x586953=_0xcbd08f[_0x27416e(0x182)])===null||_0x586953===void 0x0?void 0x0:_0x586953[_0x27416e(0x2fc)]})['then'](_0x40e483=>{const _0xc68ab2=_0x27416e;return _0x40e483[_0xc68ab2(0xdf)]()['then'](_0x188193=>{const _0x50130b=_0xc68ab2,_0x531e61=_0x188193;return _0x531e61[_0x50130b(0x3a0)]={'headers':_0x40e483[_0x50130b(0x438)]},_0x531e61;});}),_0x58089b[_0x27416e(0x213)](_0x1e7db5=>{const _0x2e6a10=deleteResourceJobFromVertex(_0x1e7db5);return _0x2e6a10;});}else{const _0x1b57b1=deleteBatchJobParametersToMldev(this[_0x27416e(0x2eb)],_0xcbd08f);return _0x16fb5b=formatMap(_0x27416e(0x3ee),_0x1b57b1[_0x27416e(0x334)]),_0x505b13=_0x1b57b1['_query'],delete _0x1b57b1[_0x27416e(0x334)],delete _0x1b57b1[_0x27416e(0xa9)],_0x58089b=this[_0x27416e(0x2eb)][_0x27416e(0x269)]({'path':_0x16fb5b,'queryParams':_0x505b13,'body':JSON[_0x27416e(0x296)](_0x1b57b1),'httpMethod':_0x27416e(0x596),'httpOptions':(_0x4a462e=_0xcbd08f[_0x27416e(0x182)])===null||_0x4a462e===void 0x0?void 0x0:_0x4a462e[_0x27416e(0x30a)],'abortSignal':(_0xf4cbe3=_0xcbd08f['config'])===null||_0xf4cbe3===void 0x0?void 0x0:_0xf4cbe3[_0x27416e(0x2fc)]})[_0x27416e(0x213)](_0x824390=>{const _0x328cb8=_0x27416e;return _0x824390[_0x328cb8(0xdf)]()[_0x328cb8(0x213)](_0x57ea7e=>{const _0x237c4e=_0x328cb8,_0x4c3d20=_0x57ea7e;return _0x4c3d20['sdkHttpResponse']={'headers':_0x824390[_0x237c4e(0x438)]},_0x4c3d20;});}),_0x58089b['then'](_0xbb09c9=>{const _0x4f3271=deleteResourceJobFromMldev(_0xbb09c9);return _0x4f3271;});}}}/**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2025 Google LLC
|
|
49
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
50
|
+
*/
|
|
51
|
+
function blobToMldev$3(_0x51d43e){const _0x380941=a2_0x8e922d,_0x350cc5={},_0x148d19=getValueByPath(_0x51d43e,[_0x380941(0x529)]);_0x148d19!=null&&setValueByPath(_0x350cc5,[_0x380941(0x529)],_0x148d19);if(getValueByPath(_0x51d43e,[_0x380941(0x1c2)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x13ff22=getValueByPath(_0x51d43e,[_0x380941(0x3c0)]);return _0x13ff22!=null&&setValueByPath(_0x350cc5,['mimeType'],_0x13ff22),_0x350cc5;}function contentToMldev$3(_0x576102){const _0x4b43d5=a2_0x8e922d,_0x18b618={},_0x16969c=getValueByPath(_0x576102,[_0x4b43d5(0x694)]);if(_0x16969c!=null){let _0xf2af82=_0x16969c;Array[_0x4b43d5(0x266)](_0xf2af82)&&(_0xf2af82=_0xf2af82[_0x4b43d5(0x4a8)](_0x1e3966=>{return partToMldev$3(_0x1e3966);})),setValueByPath(_0x18b618,[_0x4b43d5(0x694)],_0xf2af82);}const _0x1fa432=getValueByPath(_0x576102,[_0x4b43d5(0x31e)]);return _0x1fa432!=null&&setValueByPath(_0x18b618,[_0x4b43d5(0x31e)],_0x1fa432),_0x18b618;}function createCachedContentConfigToMldev(_0x2d87ac,_0xf1a83c){const _0x1d15d1=a2_0x8e922d,_0x59e67b={},_0x504112=getValueByPath(_0x2d87ac,['ttl']);_0xf1a83c!==undefined&&_0x504112!=null&&setValueByPath(_0xf1a83c,[_0x1d15d1(0x178)],_0x504112);const _0x20d41e=getValueByPath(_0x2d87ac,[_0x1d15d1(0x5f0)]);_0xf1a83c!==undefined&&_0x20d41e!=null&&setValueByPath(_0xf1a83c,[_0x1d15d1(0x5f0)],_0x20d41e);const _0x491904=getValueByPath(_0x2d87ac,['displayName']);_0xf1a83c!==undefined&&_0x491904!=null&&setValueByPath(_0xf1a83c,[_0x1d15d1(0x1c2)],_0x491904);const _0x54e815=getValueByPath(_0x2d87ac,[_0x1d15d1(0x684)]);if(_0xf1a83c!==undefined&&_0x54e815!=null){let _0x29d69e=tContents(_0x54e815);Array[_0x1d15d1(0x266)](_0x29d69e)&&(_0x29d69e=_0x29d69e[_0x1d15d1(0x4a8)](_0x5687d7=>{return contentToMldev$3(_0x5687d7);})),setValueByPath(_0xf1a83c,[_0x1d15d1(0x684)],_0x29d69e);}const _0x1c4bdd=getValueByPath(_0x2d87ac,[_0x1d15d1(0xd0)]);_0xf1a83c!==undefined&&_0x1c4bdd!=null&&setValueByPath(_0xf1a83c,[_0x1d15d1(0xd0)],contentToMldev$3(tContent(_0x1c4bdd)));const _0x341fa9=getValueByPath(_0x2d87ac,[_0x1d15d1(0x376)]);if(_0xf1a83c!==undefined&&_0x341fa9!=null){let _0xf0d1fb=_0x341fa9;Array[_0x1d15d1(0x266)](_0xf0d1fb)&&(_0xf0d1fb=_0xf0d1fb[_0x1d15d1(0x4a8)](_0x3ed6cd=>{return toolToMldev$3(_0x3ed6cd);})),setValueByPath(_0xf1a83c,[_0x1d15d1(0x376)],_0xf0d1fb);}const _0x29a078=getValueByPath(_0x2d87ac,[_0x1d15d1(0x264)]);_0xf1a83c!==undefined&&_0x29a078!=null&&setValueByPath(_0xf1a83c,[_0x1d15d1(0x264)],toolConfigToMldev$1(_0x29a078));if(getValueByPath(_0x2d87ac,[_0x1d15d1(0x33c)])!==undefined)throw new Error('kmsKeyName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x59e67b;}function createCachedContentConfigToVertex(_0x4f2c9d,_0x295f4c){const _0xa90991=a2_0x8e922d,_0x2bdf5e={},_0x5e2e4c=getValueByPath(_0x4f2c9d,['ttl']);_0x295f4c!==undefined&&_0x5e2e4c!=null&&setValueByPath(_0x295f4c,[_0xa90991(0x178)],_0x5e2e4c);const _0x187d5a=getValueByPath(_0x4f2c9d,['expireTime']);_0x295f4c!==undefined&&_0x187d5a!=null&&setValueByPath(_0x295f4c,['expireTime'],_0x187d5a);const _0x3dc495=getValueByPath(_0x4f2c9d,[_0xa90991(0x1c2)]);_0x295f4c!==undefined&&_0x3dc495!=null&&setValueByPath(_0x295f4c,[_0xa90991(0x1c2)],_0x3dc495);const _0x35125d=getValueByPath(_0x4f2c9d,['contents']);if(_0x295f4c!==undefined&&_0x35125d!=null){let _0xccf242=tContents(_0x35125d);Array[_0xa90991(0x266)](_0xccf242)&&(_0xccf242=_0xccf242['map'](_0x586d2f=>{return _0x586d2f;})),setValueByPath(_0x295f4c,[_0xa90991(0x684)],_0xccf242);}const _0x4fde75=getValueByPath(_0x4f2c9d,['systemInstruction']);_0x295f4c!==undefined&&_0x4fde75!=null&&setValueByPath(_0x295f4c,[_0xa90991(0xd0)],tContent(_0x4fde75));const _0x473532=getValueByPath(_0x4f2c9d,['tools']);if(_0x295f4c!==undefined&&_0x473532!=null){let _0x41ecfa=_0x473532;Array[_0xa90991(0x266)](_0x41ecfa)&&(_0x41ecfa=_0x41ecfa['map'](_0x19e9e2=>{return toolToVertex$2(_0x19e9e2);})),setValueByPath(_0x295f4c,[_0xa90991(0x376)],_0x41ecfa);}const _0x23bd1a=getValueByPath(_0x4f2c9d,['toolConfig']);_0x295f4c!==undefined&&_0x23bd1a!=null&&setValueByPath(_0x295f4c,['toolConfig'],_0x23bd1a);const _0x5d1cd1=getValueByPath(_0x4f2c9d,[_0xa90991(0x33c)]);return _0x295f4c!==undefined&&_0x5d1cd1!=null&&setValueByPath(_0x295f4c,[_0xa90991(0x5a1),_0xa90991(0x33c)],_0x5d1cd1),_0x2bdf5e;}function createCachedContentParametersToMldev(_0xdc978f,_0x1501a4){const _0x13f369=a2_0x8e922d,_0x3316ee={},_0x4019ce=getValueByPath(_0x1501a4,[_0x13f369(0x638)]);_0x4019ce!=null&&setValueByPath(_0x3316ee,['model'],tCachesModel(_0xdc978f,_0x4019ce));const _0x269e0c=getValueByPath(_0x1501a4,[_0x13f369(0x182)]);return _0x269e0c!=null&&createCachedContentConfigToMldev(_0x269e0c,_0x3316ee),_0x3316ee;}function createCachedContentParametersToVertex(_0x348a40,_0x2d1f89){const _0x46538f=a2_0x8e922d,_0x1a57ef={},_0x53f5dd=getValueByPath(_0x2d1f89,[_0x46538f(0x638)]);_0x53f5dd!=null&&setValueByPath(_0x1a57ef,[_0x46538f(0x638)],tCachesModel(_0x348a40,_0x53f5dd));const _0x2f38f1=getValueByPath(_0x2d1f89,[_0x46538f(0x182)]);return _0x2f38f1!=null&&createCachedContentConfigToVertex(_0x2f38f1,_0x1a57ef),_0x1a57ef;}function deleteCachedContentParametersToMldev(_0x732ab8,_0xbdf633){const _0x3700da=a2_0x8e922d,_0x219fb0={},_0x4e0700=getValueByPath(_0xbdf633,[_0x3700da(0x206)]);return _0x4e0700!=null&&setValueByPath(_0x219fb0,[_0x3700da(0x334),_0x3700da(0x206)],tCachedContentName(_0x732ab8,_0x4e0700)),_0x219fb0;}function deleteCachedContentParametersToVertex(_0x1845e3,_0x7227aa){const _0x4ed59b=a2_0x8e922d,_0x1e52d2={},_0x362624=getValueByPath(_0x7227aa,[_0x4ed59b(0x206)]);return _0x362624!=null&&setValueByPath(_0x1e52d2,[_0x4ed59b(0x334),_0x4ed59b(0x206)],tCachedContentName(_0x1845e3,_0x362624)),_0x1e52d2;}function deleteCachedContentResponseFromMldev(_0x1fdbe4){const _0x1a8230=a2_0x8e922d,_0x19b661={},_0x1d8eea=getValueByPath(_0x1fdbe4,[_0x1a8230(0x3a0)]);return _0x1d8eea!=null&&setValueByPath(_0x19b661,[_0x1a8230(0x3a0)],_0x1d8eea),_0x19b661;}function deleteCachedContentResponseFromVertex(_0xd6c559){const _0x33f99f=a2_0x8e922d,_0x13dda5={},_0x3c841c=getValueByPath(_0xd6c559,[_0x33f99f(0x3a0)]);return _0x3c841c!=null&&setValueByPath(_0x13dda5,[_0x33f99f(0x3a0)],_0x3c841c),_0x13dda5;}function fileDataToMldev$3(_0xe006e0){const _0x550407=a2_0x8e922d,_0x166c10={};if(getValueByPath(_0xe006e0,[_0x550407(0x1c2)])!==undefined)throw new Error(_0x550407(0x5d8));const _0x2e29b6=getValueByPath(_0xe006e0,['fileUri']);_0x2e29b6!=null&&setValueByPath(_0x166c10,['fileUri'],_0x2e29b6);const _0x472903=getValueByPath(_0xe006e0,['mimeType']);return _0x472903!=null&&setValueByPath(_0x166c10,[_0x550407(0x3c0)],_0x472903),_0x166c10;}function functionCallToMldev$3(_0x164d34){const _0x5cbce4=a2_0x8e922d,_0x5e009d={},_0x5a7560=getValueByPath(_0x164d34,['id']);_0x5a7560!=null&&setValueByPath(_0x5e009d,['id'],_0x5a7560);const _0x10c229=getValueByPath(_0x164d34,[_0x5cbce4(0x122)]);_0x10c229!=null&&setValueByPath(_0x5e009d,['args'],_0x10c229);const _0x17c694=getValueByPath(_0x164d34,[_0x5cbce4(0x206)]);_0x17c694!=null&&setValueByPath(_0x5e009d,['name'],_0x17c694);if(getValueByPath(_0x164d34,[_0x5cbce4(0x571)])!==undefined)throw new Error(_0x5cbce4(0x493));if(getValueByPath(_0x164d34,[_0x5cbce4(0x2fe)])!==undefined)throw new Error(_0x5cbce4(0x520));return _0x5e009d;}function functionCallingConfigToMldev$1(_0x2af198){const _0x20f460=a2_0x8e922d,_0x5e419f={},_0x25ce7b=getValueByPath(_0x2af198,[_0x20f460(0x556)]);_0x25ce7b!=null&&setValueByPath(_0x5e419f,[_0x20f460(0x556)],_0x25ce7b);const _0x544bfb=getValueByPath(_0x2af198,['mode']);_0x544bfb!=null&&setValueByPath(_0x5e419f,[_0x20f460(0x2de)],_0x544bfb);if(getValueByPath(_0x2af198,[_0x20f460(0x4eb)])!==undefined)throw new Error(_0x20f460(0x43d));return _0x5e419f;}function functionDeclarationToVertex$2(_0x3efe9d){const _0x2712ee=a2_0x8e922d,_0x2e0d0a={},_0x311c58=getValueByPath(_0x3efe9d,[_0x2712ee(0x4ea)]);_0x311c58!=null&&setValueByPath(_0x2e0d0a,['description'],_0x311c58);const _0x1bfa26=getValueByPath(_0x3efe9d,[_0x2712ee(0x206)]);_0x1bfa26!=null&&setValueByPath(_0x2e0d0a,[_0x2712ee(0x206)],_0x1bfa26);const _0x3ac5f0=getValueByPath(_0x3efe9d,[_0x2712ee(0x28c)]);_0x3ac5f0!=null&&setValueByPath(_0x2e0d0a,['parameters'],_0x3ac5f0);const _0x4becfd=getValueByPath(_0x3efe9d,[_0x2712ee(0x3e7)]);_0x4becfd!=null&&setValueByPath(_0x2e0d0a,[_0x2712ee(0x3e7)],_0x4becfd);const _0x270a8f=getValueByPath(_0x3efe9d,[_0x2712ee(0x1d3)]);_0x270a8f!=null&&setValueByPath(_0x2e0d0a,[_0x2712ee(0x1d3)],_0x270a8f);const _0x13aba7=getValueByPath(_0x3efe9d,[_0x2712ee(0x13c)]);_0x13aba7!=null&&setValueByPath(_0x2e0d0a,['responseJsonSchema'],_0x13aba7);if(getValueByPath(_0x3efe9d,[_0x2712ee(0x4b4)])!==undefined)throw new Error(_0x2712ee(0xe1));return _0x2e0d0a;}function getCachedContentParametersToMldev(_0x15fd67,_0x527caa){const _0x55ba03=a2_0x8e922d,_0x400212={},_0x388d1b=getValueByPath(_0x527caa,[_0x55ba03(0x206)]);return _0x388d1b!=null&&setValueByPath(_0x400212,['_url',_0x55ba03(0x206)],tCachedContentName(_0x15fd67,_0x388d1b)),_0x400212;}function getCachedContentParametersToVertex(_0x29aedb,_0x415412){const _0x122f82=a2_0x8e922d,_0xbce98b={},_0x98a893=getValueByPath(_0x415412,[_0x122f82(0x206)]);return _0x98a893!=null&&setValueByPath(_0xbce98b,[_0x122f82(0x334),_0x122f82(0x206)],tCachedContentName(_0x29aedb,_0x98a893)),_0xbce98b;}function googleMapsToMldev$3(_0x3f916c){const _0x263395=a2_0x8e922d,_0x2bcfb1={};if(getValueByPath(_0x3f916c,[_0x263395(0x44d)])!==undefined)throw new Error(_0x263395(0x1be));const _0x3b9f01=getValueByPath(_0x3f916c,[_0x263395(0x38f)]);return _0x3b9f01!=null&&setValueByPath(_0x2bcfb1,[_0x263395(0x38f)],_0x3b9f01),_0x2bcfb1;}function googleSearchToMldev$3(_0x20e1bc){const _0x5c7ce2=a2_0x8e922d,_0x2bbaf7={};if(getValueByPath(_0x20e1bc,[_0x5c7ce2(0x65d)])!==undefined)throw new Error(_0x5c7ce2(0x496));if(getValueByPath(_0x20e1bc,['blockingConfidence'])!==undefined)throw new Error(_0x5c7ce2(0x410));const _0xb98d0e=getValueByPath(_0x20e1bc,[_0x5c7ce2(0x164)]);return _0xb98d0e!=null&&setValueByPath(_0x2bbaf7,[_0x5c7ce2(0x164)],_0xb98d0e),_0x2bbaf7;}function listCachedContentsConfigToMldev(_0x127509,_0x2f8b34){const _0x506c63=a2_0x8e922d,_0x112a08={},_0x3cbe8f=getValueByPath(_0x127509,['pageSize']);_0x2f8b34!==undefined&&_0x3cbe8f!=null&&setValueByPath(_0x2f8b34,[_0x506c63(0xa9),'pageSize'],_0x3cbe8f);const _0x4b15e6=getValueByPath(_0x127509,['pageToken']);return _0x2f8b34!==undefined&&_0x4b15e6!=null&&setValueByPath(_0x2f8b34,[_0x506c63(0xa9),_0x506c63(0x193)],_0x4b15e6),_0x112a08;}function listCachedContentsConfigToVertex(_0x5449da,_0x26c6fa){const _0xbc1ca2=a2_0x8e922d,_0x39c8be={},_0x5c889e=getValueByPath(_0x5449da,[_0xbc1ca2(0x546)]);_0x26c6fa!==undefined&&_0x5c889e!=null&&setValueByPath(_0x26c6fa,['_query',_0xbc1ca2(0x546)],_0x5c889e);const _0x23afa6=getValueByPath(_0x5449da,[_0xbc1ca2(0x193)]);return _0x26c6fa!==undefined&&_0x23afa6!=null&&setValueByPath(_0x26c6fa,[_0xbc1ca2(0xa9),_0xbc1ca2(0x193)],_0x23afa6),_0x39c8be;}function listCachedContentsParametersToMldev(_0x8ef678){const _0x51c853={},_0x1e165f=getValueByPath(_0x8ef678,['config']);return _0x1e165f!=null&&listCachedContentsConfigToMldev(_0x1e165f,_0x51c853),_0x51c853;}function listCachedContentsParametersToVertex(_0x4ed8de){const _0x383d9d=a2_0x8e922d,_0x3c773c={},_0x5627e4=getValueByPath(_0x4ed8de,[_0x383d9d(0x182)]);return _0x5627e4!=null&&listCachedContentsConfigToVertex(_0x5627e4,_0x3c773c),_0x3c773c;}function listCachedContentsResponseFromMldev(_0x85ea61){const _0x3ab027=a2_0x8e922d,_0x219542={},_0x123354=getValueByPath(_0x85ea61,[_0x3ab027(0x3a0)]);_0x123354!=null&&setValueByPath(_0x219542,[_0x3ab027(0x3a0)],_0x123354);const _0x716a3c=getValueByPath(_0x85ea61,['nextPageToken']);_0x716a3c!=null&&setValueByPath(_0x219542,[_0x3ab027(0x12c)],_0x716a3c);const _0x5d9c85=getValueByPath(_0x85ea61,[_0x3ab027(0x11c)]);if(_0x5d9c85!=null){let _0x206aa4=_0x5d9c85;Array[_0x3ab027(0x266)](_0x206aa4)&&(_0x206aa4=_0x206aa4[_0x3ab027(0x4a8)](_0x1fa6a5=>{return _0x1fa6a5;})),setValueByPath(_0x219542,['cachedContents'],_0x206aa4);}return _0x219542;}function listCachedContentsResponseFromVertex(_0x545edc){const _0x539546=a2_0x8e922d,_0xbff1df={},_0x53c7cb=getValueByPath(_0x545edc,[_0x539546(0x3a0)]);_0x53c7cb!=null&&setValueByPath(_0xbff1df,[_0x539546(0x3a0)],_0x53c7cb);const _0x184d31=getValueByPath(_0x545edc,[_0x539546(0x12c)]);_0x184d31!=null&&setValueByPath(_0xbff1df,[_0x539546(0x12c)],_0x184d31);const _0x4834db=getValueByPath(_0x545edc,[_0x539546(0x11c)]);if(_0x4834db!=null){let _0x28dce7=_0x4834db;Array[_0x539546(0x266)](_0x28dce7)&&(_0x28dce7=_0x28dce7['map'](_0x46574e=>{return _0x46574e;})),setValueByPath(_0xbff1df,['cachedContents'],_0x28dce7);}return _0xbff1df;}function partToMldev$3(_0x31e564){const _0x206339=a2_0x8e922d,_0x1b0319={},_0x322ee2=getValueByPath(_0x31e564,[_0x206339(0x314)]);_0x322ee2!=null&&setValueByPath(_0x1b0319,['mediaResolution'],_0x322ee2);const _0x2f050b=getValueByPath(_0x31e564,[_0x206339(0x686)]);_0x2f050b!=null&&setValueByPath(_0x1b0319,[_0x206339(0x686)],_0x2f050b);const _0x223128=getValueByPath(_0x31e564,[_0x206339(0x295)]);_0x223128!=null&&setValueByPath(_0x1b0319,[_0x206339(0x295)],_0x223128);const _0x299b7d=getValueByPath(_0x31e564,[_0x206339(0x49d)]);_0x299b7d!=null&&setValueByPath(_0x1b0319,[_0x206339(0x49d)],fileDataToMldev$3(_0x299b7d));const _0x359129=getValueByPath(_0x31e564,[_0x206339(0x521)]);_0x359129!=null&&setValueByPath(_0x1b0319,[_0x206339(0x521)],functionCallToMldev$3(_0x359129));const _0x48cce6=getValueByPath(_0x31e564,[_0x206339(0x659)]);_0x48cce6!=null&&setValueByPath(_0x1b0319,['functionResponse'],_0x48cce6);const _0x360e59=getValueByPath(_0x31e564,[_0x206339(0x54b)]);_0x360e59!=null&&setValueByPath(_0x1b0319,['inlineData'],blobToMldev$3(_0x360e59));const _0x5aa105=getValueByPath(_0x31e564,['text']);_0x5aa105!=null&&setValueByPath(_0x1b0319,['text'],_0x5aa105);const _0x51dc1c=getValueByPath(_0x31e564,[_0x206339(0x4d4)]);_0x51dc1c!=null&&setValueByPath(_0x1b0319,[_0x206339(0x4d4)],_0x51dc1c);const _0x14268b=getValueByPath(_0x31e564,[_0x206339(0x643)]);_0x14268b!=null&&setValueByPath(_0x1b0319,[_0x206339(0x643)],_0x14268b);const _0x3c87a9=getValueByPath(_0x31e564,[_0x206339(0x3ad)]);return _0x3c87a9!=null&&setValueByPath(_0x1b0319,[_0x206339(0x3ad)],_0x3c87a9),_0x1b0319;}function toolConfigToMldev$1(_0x28f9d6){const _0x2dd578=a2_0x8e922d,_0x3d5f93={},_0xfb0cf7=getValueByPath(_0x28f9d6,[_0x2dd578(0x5c2)]);_0xfb0cf7!=null&&setValueByPath(_0x3d5f93,[_0x2dd578(0x5c2)],_0xfb0cf7);const _0x473fc7=getValueByPath(_0x28f9d6,[_0x2dd578(0x132)]);return _0x473fc7!=null&&setValueByPath(_0x3d5f93,['functionCallingConfig'],functionCallingConfigToMldev$1(_0x473fc7)),_0x3d5f93;}function toolToMldev$3(_0x5bcf10){const _0x3a31fd=a2_0x8e922d,_0x261814={};if(getValueByPath(_0x5bcf10,[_0x3a31fd(0x113)])!==undefined)throw new Error('retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x27258b=getValueByPath(_0x5bcf10,[_0x3a31fd(0x6a1)]);_0x27258b!=null&&setValueByPath(_0x261814,[_0x3a31fd(0x6a1)],_0x27258b);const _0x319b0e=getValueByPath(_0x5bcf10,[_0x3a31fd(0x2c6)]);_0x319b0e!=null&&setValueByPath(_0x261814,[_0x3a31fd(0x2c6)],_0x319b0e);const _0x3ad893=getValueByPath(_0x5bcf10,[_0x3a31fd(0x567)]);_0x3ad893!=null&&setValueByPath(_0x261814,['codeExecution'],_0x3ad893);if(getValueByPath(_0x5bcf10,['enterpriseWebSearch'])!==undefined)throw new Error(_0x3a31fd(0x244));const _0x3b0773=getValueByPath(_0x5bcf10,[_0x3a31fd(0x4e2)]);if(_0x3b0773!=null){let _0x1805b3=_0x3b0773;Array[_0x3a31fd(0x266)](_0x1805b3)&&(_0x1805b3=_0x1805b3[_0x3a31fd(0x4a8)](_0x4a8f92=>{return _0x4a8f92;})),setValueByPath(_0x261814,[_0x3a31fd(0x4e2)],_0x1805b3);}const _0x6f5108=getValueByPath(_0x5bcf10,[_0x3a31fd(0x118)]);_0x6f5108!=null&&setValueByPath(_0x261814,[_0x3a31fd(0x118)],googleMapsToMldev$3(_0x6f5108));const _0x166610=getValueByPath(_0x5bcf10,[_0x3a31fd(0x1f9)]);_0x166610!=null&&setValueByPath(_0x261814,[_0x3a31fd(0x1f9)],googleSearchToMldev$3(_0x166610));const _0x2b06a8=getValueByPath(_0x5bcf10,[_0x3a31fd(0x151)]);_0x2b06a8!=null&&setValueByPath(_0x261814,[_0x3a31fd(0x151)],_0x2b06a8);const _0x727311=getValueByPath(_0x5bcf10,[_0x3a31fd(0x642)]);return _0x727311!=null&&setValueByPath(_0x261814,[_0x3a31fd(0x642)],_0x727311),_0x261814;}function toolToVertex$2(_0x18f145){const _0x5c055c=a2_0x8e922d,_0x8a5219={},_0x5e4622=getValueByPath(_0x18f145,['retrieval']);_0x5e4622!=null&&setValueByPath(_0x8a5219,[_0x5c055c(0x113)],_0x5e4622);const _0x5f3ca4=getValueByPath(_0x18f145,[_0x5c055c(0x6a1)]);_0x5f3ca4!=null&&setValueByPath(_0x8a5219,['computerUse'],_0x5f3ca4);if(getValueByPath(_0x18f145,[_0x5c055c(0x2c6)])!==undefined)throw new Error(_0x5c055c(0x1dc));const _0x57643d=getValueByPath(_0x18f145,[_0x5c055c(0x567)]);_0x57643d!=null&&setValueByPath(_0x8a5219,['codeExecution'],_0x57643d);const _0x47ee05=getValueByPath(_0x18f145,['enterpriseWebSearch']);_0x47ee05!=null&&setValueByPath(_0x8a5219,[_0x5c055c(0x11b)],_0x47ee05);const _0x3e12a3=getValueByPath(_0x18f145,[_0x5c055c(0x4e2)]);if(_0x3e12a3!=null){let _0x321918=_0x3e12a3;Array[_0x5c055c(0x266)](_0x321918)&&(_0x321918=_0x321918[_0x5c055c(0x4a8)](_0x124a40=>{return functionDeclarationToVertex$2(_0x124a40);})),setValueByPath(_0x8a5219,['functionDeclarations'],_0x321918);}const _0x224d03=getValueByPath(_0x18f145,[_0x5c055c(0x118)]);_0x224d03!=null&&setValueByPath(_0x8a5219,[_0x5c055c(0x118)],_0x224d03);const _0x25904a=getValueByPath(_0x18f145,[_0x5c055c(0x1f9)]);_0x25904a!=null&&setValueByPath(_0x8a5219,['googleSearch'],_0x25904a);const _0x8dc283=getValueByPath(_0x18f145,[_0x5c055c(0x151)]);_0x8dc283!=null&&setValueByPath(_0x8a5219,[_0x5c055c(0x151)],_0x8dc283);const _0x54cefd=getValueByPath(_0x18f145,[_0x5c055c(0x642)]);return _0x54cefd!=null&&setValueByPath(_0x8a5219,[_0x5c055c(0x642)],_0x54cefd),_0x8a5219;}function updateCachedContentConfigToMldev(_0x2cc157,_0x577cd2){const _0x139ff4=a2_0x8e922d,_0x473475={},_0x18e815=getValueByPath(_0x2cc157,[_0x139ff4(0x178)]);_0x577cd2!==undefined&&_0x18e815!=null&&setValueByPath(_0x577cd2,[_0x139ff4(0x178)],_0x18e815);const _0x2ce73f=getValueByPath(_0x2cc157,[_0x139ff4(0x5f0)]);return _0x577cd2!==undefined&&_0x2ce73f!=null&&setValueByPath(_0x577cd2,[_0x139ff4(0x5f0)],_0x2ce73f),_0x473475;}function updateCachedContentConfigToVertex(_0x4b771c,_0x4056d5){const _0x5a8bf2=a2_0x8e922d,_0xa86453={},_0xff80f1=getValueByPath(_0x4b771c,[_0x5a8bf2(0x178)]);_0x4056d5!==undefined&&_0xff80f1!=null&&setValueByPath(_0x4056d5,[_0x5a8bf2(0x178)],_0xff80f1);const _0xea9a70=getValueByPath(_0x4b771c,[_0x5a8bf2(0x5f0)]);return _0x4056d5!==undefined&&_0xea9a70!=null&&setValueByPath(_0x4056d5,[_0x5a8bf2(0x5f0)],_0xea9a70),_0xa86453;}function updateCachedContentParametersToMldev(_0x2520a9,_0x5d8d4a){const _0x42bd0d=a2_0x8e922d,_0x321b86={},_0xf34b32=getValueByPath(_0x5d8d4a,[_0x42bd0d(0x206)]);_0xf34b32!=null&&setValueByPath(_0x321b86,[_0x42bd0d(0x334),_0x42bd0d(0x206)],tCachedContentName(_0x2520a9,_0xf34b32));const _0x59bb4d=getValueByPath(_0x5d8d4a,[_0x42bd0d(0x182)]);return _0x59bb4d!=null&&updateCachedContentConfigToMldev(_0x59bb4d,_0x321b86),_0x321b86;}function updateCachedContentParametersToVertex(_0x51933b,_0x283f8b){const _0x363b00=a2_0x8e922d,_0x35fa15={},_0x30647c=getValueByPath(_0x283f8b,[_0x363b00(0x206)]);_0x30647c!=null&&setValueByPath(_0x35fa15,[_0x363b00(0x334),_0x363b00(0x206)],tCachedContentName(_0x51933b,_0x30647c));const _0x3ed0d9=getValueByPath(_0x283f8b,[_0x363b00(0x182)]);return _0x3ed0d9!=null&&updateCachedContentConfigToVertex(_0x3ed0d9,_0x35fa15),_0x35fa15;}/**
|
|
52
|
+
* @license
|
|
53
|
+
* Copyright 2025 Google LLC
|
|
54
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
55
|
+
*/
|
|
56
|
+
class Caches extends BaseModule{constructor(_0x409d32){const _0x53119b=a2_0x8e922d;super(),this[_0x53119b(0x2eb)]=_0x409d32,this['list']=async(_0x491771={})=>{const _0x3a66e8=_0x53119b;return new Pager(exports[_0x3a66e8(0x1a4)][_0x3a66e8(0x1b0)],_0x6fd67a=>this[_0x3a66e8(0x456)](_0x6fd67a),await this[_0x3a66e8(0x456)](_0x491771),_0x491771);};}async[a2_0x8e922d(0x5da)](_0x5e8435){const _0x51b52c=a2_0x8e922d;var _0x5c5449,_0x3db98a,_0x3b9ec0,_0x270d1b;let _0x540817,_0x4e1e4d='',_0x500349={};if(this[_0x51b52c(0x2eb)]['isVertexAI']()){const _0x1b9da0=createCachedContentParametersToVertex(this[_0x51b52c(0x2eb)],_0x5e8435);return _0x4e1e4d=formatMap('cachedContents',_0x1b9da0[_0x51b52c(0x334)]),_0x500349=_0x1b9da0[_0x51b52c(0xa9)],delete _0x1b9da0[_0x51b52c(0x334)],delete _0x1b9da0[_0x51b52c(0xa9)],_0x540817=this[_0x51b52c(0x2eb)]['request']({'path':_0x4e1e4d,'queryParams':_0x500349,'body':JSON['stringify'](_0x1b9da0),'httpMethod':'POST','httpOptions':(_0x5c5449=_0x5e8435[_0x51b52c(0x182)])===null||_0x5c5449===void 0x0?void 0x0:_0x5c5449['httpOptions'],'abortSignal':(_0x3db98a=_0x5e8435[_0x51b52c(0x182)])===null||_0x3db98a===void 0x0?void 0x0:_0x3db98a[_0x51b52c(0x2fc)]})['then'](_0x17f9f7=>{return _0x17f9f7['json']();}),_0x540817[_0x51b52c(0x213)](_0x590ee6=>{return _0x590ee6;});}else{const _0x6454f9=createCachedContentParametersToMldev(this['apiClient'],_0x5e8435);return _0x4e1e4d=formatMap(_0x51b52c(0x11c),_0x6454f9[_0x51b52c(0x334)]),_0x500349=_0x6454f9['_query'],delete _0x6454f9[_0x51b52c(0x334)],delete _0x6454f9['_query'],_0x540817=this[_0x51b52c(0x2eb)][_0x51b52c(0x269)]({'path':_0x4e1e4d,'queryParams':_0x500349,'body':JSON['stringify'](_0x6454f9),'httpMethod':_0x51b52c(0x208),'httpOptions':(_0x3b9ec0=_0x5e8435[_0x51b52c(0x182)])===null||_0x3b9ec0===void 0x0?void 0x0:_0x3b9ec0[_0x51b52c(0x30a)],'abortSignal':(_0x270d1b=_0x5e8435[_0x51b52c(0x182)])===null||_0x270d1b===void 0x0?void 0x0:_0x270d1b[_0x51b52c(0x2fc)]})[_0x51b52c(0x213)](_0x27ae50=>{return _0x27ae50['json']();}),_0x540817[_0x51b52c(0x213)](_0x25fde1=>{return _0x25fde1;});}}async[a2_0x8e922d(0x661)](_0x1cec19){const _0x46694b=a2_0x8e922d;var _0x57a8c9,_0x48933d,_0x5ebead,_0x4e7435;let _0x5b3db1,_0x18cabc='',_0x2541f9={};if(this['apiClient'][_0x46694b(0x4d0)]()){const _0x2fd9e1=getCachedContentParametersToVertex(this[_0x46694b(0x2eb)],_0x1cec19);return _0x18cabc=formatMap(_0x46694b(0x69d),_0x2fd9e1['_url']),_0x2541f9=_0x2fd9e1[_0x46694b(0xa9)],delete _0x2fd9e1[_0x46694b(0x334)],delete _0x2fd9e1[_0x46694b(0xa9)],_0x5b3db1=this[_0x46694b(0x2eb)][_0x46694b(0x269)]({'path':_0x18cabc,'queryParams':_0x2541f9,'body':JSON[_0x46694b(0x296)](_0x2fd9e1),'httpMethod':_0x46694b(0x375),'httpOptions':(_0x57a8c9=_0x1cec19['config'])===null||_0x57a8c9===void 0x0?void 0x0:_0x57a8c9['httpOptions'],'abortSignal':(_0x48933d=_0x1cec19[_0x46694b(0x182)])===null||_0x48933d===void 0x0?void 0x0:_0x48933d[_0x46694b(0x2fc)]})[_0x46694b(0x213)](_0x4b5d8e=>{return _0x4b5d8e['json']();}),_0x5b3db1[_0x46694b(0x213)](_0x17cfc6=>{return _0x17cfc6;});}else{const _0x8057ec=getCachedContentParametersToMldev(this[_0x46694b(0x2eb)],_0x1cec19);return _0x18cabc=formatMap(_0x46694b(0x69d),_0x8057ec['_url']),_0x2541f9=_0x8057ec[_0x46694b(0xa9)],delete _0x8057ec['_url'],delete _0x8057ec[_0x46694b(0xa9)],_0x5b3db1=this[_0x46694b(0x2eb)]['request']({'path':_0x18cabc,'queryParams':_0x2541f9,'body':JSON[_0x46694b(0x296)](_0x8057ec),'httpMethod':_0x46694b(0x375),'httpOptions':(_0x5ebead=_0x1cec19[_0x46694b(0x182)])===null||_0x5ebead===void 0x0?void 0x0:_0x5ebead['httpOptions'],'abortSignal':(_0x4e7435=_0x1cec19[_0x46694b(0x182)])===null||_0x4e7435===void 0x0?void 0x0:_0x4e7435[_0x46694b(0x2fc)]})[_0x46694b(0x213)](_0x31447d=>{const _0x4a8314=_0x46694b;return _0x31447d[_0x4a8314(0xdf)]();}),_0x5b3db1[_0x46694b(0x213)](_0x5f5861=>{return _0x5f5861;});}}async[a2_0x8e922d(0x1a5)](_0x345592){const _0x1ea73f=a2_0x8e922d;var _0x3bd505,_0x123259,_0x938380,_0x251ce7;let _0x3a21e5,_0x55fe8b='',_0x30bbc0={};if(this['apiClient'][_0x1ea73f(0x4d0)]()){const _0x9a4596=deleteCachedContentParametersToVertex(this[_0x1ea73f(0x2eb)],_0x345592);return _0x55fe8b=formatMap(_0x1ea73f(0x69d),_0x9a4596[_0x1ea73f(0x334)]),_0x30bbc0=_0x9a4596[_0x1ea73f(0xa9)],delete _0x9a4596[_0x1ea73f(0x334)],delete _0x9a4596[_0x1ea73f(0xa9)],_0x3a21e5=this['apiClient'][_0x1ea73f(0x269)]({'path':_0x55fe8b,'queryParams':_0x30bbc0,'body':JSON[_0x1ea73f(0x296)](_0x9a4596),'httpMethod':_0x1ea73f(0x596),'httpOptions':(_0x3bd505=_0x345592['config'])===null||_0x3bd505===void 0x0?void 0x0:_0x3bd505['httpOptions'],'abortSignal':(_0x123259=_0x345592['config'])===null||_0x123259===void 0x0?void 0x0:_0x123259[_0x1ea73f(0x2fc)]})[_0x1ea73f(0x213)](_0x3c37be=>{const _0x5d7517=_0x1ea73f;return _0x3c37be[_0x5d7517(0xdf)]()['then'](_0x92a85b=>{const _0x4fd7b0=_0x5d7517,_0x2b6a88=_0x92a85b;return _0x2b6a88[_0x4fd7b0(0x3a0)]={'headers':_0x3c37be['headers']},_0x2b6a88;});}),_0x3a21e5[_0x1ea73f(0x213)](_0x38baea=>{const _0x1a9ffb=_0x1ea73f,_0x522ec8=deleteCachedContentResponseFromVertex(_0x38baea),_0x1bf704=new DeleteCachedContentResponse();return Object[_0x1a9ffb(0x289)](_0x1bf704,_0x522ec8),_0x1bf704;});}else{const _0x35560a=deleteCachedContentParametersToMldev(this[_0x1ea73f(0x2eb)],_0x345592);return _0x55fe8b=formatMap(_0x1ea73f(0x69d),_0x35560a[_0x1ea73f(0x334)]),_0x30bbc0=_0x35560a[_0x1ea73f(0xa9)],delete _0x35560a['_url'],delete _0x35560a[_0x1ea73f(0xa9)],_0x3a21e5=this[_0x1ea73f(0x2eb)][_0x1ea73f(0x269)]({'path':_0x55fe8b,'queryParams':_0x30bbc0,'body':JSON[_0x1ea73f(0x296)](_0x35560a),'httpMethod':'DELETE','httpOptions':(_0x938380=_0x345592[_0x1ea73f(0x182)])===null||_0x938380===void 0x0?void 0x0:_0x938380[_0x1ea73f(0x30a)],'abortSignal':(_0x251ce7=_0x345592[_0x1ea73f(0x182)])===null||_0x251ce7===void 0x0?void 0x0:_0x251ce7[_0x1ea73f(0x2fc)]})['then'](_0x57ff03=>{const _0x285930=_0x1ea73f;return _0x57ff03[_0x285930(0xdf)]()[_0x285930(0x213)](_0x1de0f9=>{const _0x9a49e9=_0x285930,_0x49f071=_0x1de0f9;return _0x49f071[_0x9a49e9(0x3a0)]={'headers':_0x57ff03['headers']},_0x49f071;});}),_0x3a21e5[_0x1ea73f(0x213)](_0x4e5060=>{const _0x1c8692=_0x1ea73f,_0x5d4eda=deleteCachedContentResponseFromMldev(_0x4e5060),_0x583263=new DeleteCachedContentResponse();return Object[_0x1c8692(0x289)](_0x583263,_0x5d4eda),_0x583263;});}}async['update'](_0x47726c){const _0x5bc14e=a2_0x8e922d;var _0x5cb8e0,_0x24927b,_0x1ad671,_0x58738d;let _0x31f290,_0x31f1b3='',_0x57a769={};if(this[_0x5bc14e(0x2eb)]['isVertexAI']()){const _0x1fc67a=updateCachedContentParametersToVertex(this[_0x5bc14e(0x2eb)],_0x47726c);return _0x31f1b3=formatMap(_0x5bc14e(0x69d),_0x1fc67a['_url']),_0x57a769=_0x1fc67a['_query'],delete _0x1fc67a['_url'],delete _0x1fc67a['_query'],_0x31f290=this[_0x5bc14e(0x2eb)][_0x5bc14e(0x269)]({'path':_0x31f1b3,'queryParams':_0x57a769,'body':JSON['stringify'](_0x1fc67a),'httpMethod':_0x5bc14e(0x227),'httpOptions':(_0x5cb8e0=_0x47726c[_0x5bc14e(0x182)])===null||_0x5cb8e0===void 0x0?void 0x0:_0x5cb8e0[_0x5bc14e(0x30a)],'abortSignal':(_0x24927b=_0x47726c['config'])===null||_0x24927b===void 0x0?void 0x0:_0x24927b[_0x5bc14e(0x2fc)]})[_0x5bc14e(0x213)](_0x36e2f3=>{const _0x493efc=_0x5bc14e;return _0x36e2f3[_0x493efc(0xdf)]();}),_0x31f290[_0x5bc14e(0x213)](_0x39e6be=>{return _0x39e6be;});}else{const _0x4431b6=updateCachedContentParametersToMldev(this[_0x5bc14e(0x2eb)],_0x47726c);return _0x31f1b3=formatMap(_0x5bc14e(0x69d),_0x4431b6[_0x5bc14e(0x334)]),_0x57a769=_0x4431b6[_0x5bc14e(0xa9)],delete _0x4431b6[_0x5bc14e(0x334)],delete _0x4431b6['_query'],_0x31f290=this[_0x5bc14e(0x2eb)][_0x5bc14e(0x269)]({'path':_0x31f1b3,'queryParams':_0x57a769,'body':JSON[_0x5bc14e(0x296)](_0x4431b6),'httpMethod':_0x5bc14e(0x227),'httpOptions':(_0x1ad671=_0x47726c['config'])===null||_0x1ad671===void 0x0?void 0x0:_0x1ad671[_0x5bc14e(0x30a)],'abortSignal':(_0x58738d=_0x47726c[_0x5bc14e(0x182)])===null||_0x58738d===void 0x0?void 0x0:_0x58738d[_0x5bc14e(0x2fc)]})[_0x5bc14e(0x213)](_0x525afb=>{const _0x1a3706=_0x5bc14e;return _0x525afb[_0x1a3706(0xdf)]();}),_0x31f290[_0x5bc14e(0x213)](_0x3f2380=>{return _0x3f2380;});}}async['listInternal'](_0x2140af){const _0x3ba4e7=a2_0x8e922d;var _0x118ea0,_0x2094d6,_0x3a9567,_0x4e7697;let _0x23f934,_0x511c8e='',_0x28add9={};if(this[_0x3ba4e7(0x2eb)][_0x3ba4e7(0x4d0)]()){const _0x34f63f=listCachedContentsParametersToVertex(_0x2140af);return _0x511c8e=formatMap(_0x3ba4e7(0x11c),_0x34f63f[_0x3ba4e7(0x334)]),_0x28add9=_0x34f63f[_0x3ba4e7(0xa9)],delete _0x34f63f[_0x3ba4e7(0x334)],delete _0x34f63f[_0x3ba4e7(0xa9)],_0x23f934=this[_0x3ba4e7(0x2eb)][_0x3ba4e7(0x269)]({'path':_0x511c8e,'queryParams':_0x28add9,'body':JSON[_0x3ba4e7(0x296)](_0x34f63f),'httpMethod':_0x3ba4e7(0x375),'httpOptions':(_0x118ea0=_0x2140af['config'])===null||_0x118ea0===void 0x0?void 0x0:_0x118ea0[_0x3ba4e7(0x30a)],'abortSignal':(_0x2094d6=_0x2140af['config'])===null||_0x2094d6===void 0x0?void 0x0:_0x2094d6[_0x3ba4e7(0x2fc)]})[_0x3ba4e7(0x213)](_0x51eb85=>{const _0x372189=_0x3ba4e7;return _0x51eb85[_0x372189(0xdf)]()[_0x372189(0x213)](_0x1503b2=>{const _0x62b00f=_0x372189,_0xd90b49=_0x1503b2;return _0xd90b49['sdkHttpResponse']={'headers':_0x51eb85[_0x62b00f(0x438)]},_0xd90b49;});}),_0x23f934[_0x3ba4e7(0x213)](_0x4d9aca=>{const _0x5ebd52=_0x3ba4e7,_0x168e90=listCachedContentsResponseFromVertex(_0x4d9aca),_0x37091d=new ListCachedContentsResponse();return Object[_0x5ebd52(0x289)](_0x37091d,_0x168e90),_0x37091d;});}else{const _0x10ff8c=listCachedContentsParametersToMldev(_0x2140af);return _0x511c8e=formatMap(_0x3ba4e7(0x11c),_0x10ff8c[_0x3ba4e7(0x334)]),_0x28add9=_0x10ff8c[_0x3ba4e7(0xa9)],delete _0x10ff8c[_0x3ba4e7(0x334)],delete _0x10ff8c[_0x3ba4e7(0xa9)],_0x23f934=this[_0x3ba4e7(0x2eb)][_0x3ba4e7(0x269)]({'path':_0x511c8e,'queryParams':_0x28add9,'body':JSON['stringify'](_0x10ff8c),'httpMethod':_0x3ba4e7(0x375),'httpOptions':(_0x3a9567=_0x2140af['config'])===null||_0x3a9567===void 0x0?void 0x0:_0x3a9567[_0x3ba4e7(0x30a)],'abortSignal':(_0x4e7697=_0x2140af[_0x3ba4e7(0x182)])===null||_0x4e7697===void 0x0?void 0x0:_0x4e7697[_0x3ba4e7(0x2fc)]})[_0x3ba4e7(0x213)](_0x1301d1=>{const _0xa98009=_0x3ba4e7;return _0x1301d1[_0xa98009(0xdf)]()['then'](_0x526394=>{const _0x23d997=_0xa98009,_0x114f03=_0x526394;return _0x114f03[_0x23d997(0x3a0)]={'headers':_0x1301d1[_0x23d997(0x438)]},_0x114f03;});}),_0x23f934[_0x3ba4e7(0x213)](_0x9f73aa=>{const _0x242478=_0x3ba4e7,_0x3f79e0=listCachedContentsResponseFromMldev(_0x9f73aa),_0x371c02=new ListCachedContentsResponse();return Object[_0x242478(0x289)](_0x371c02,_0x3f79e0),_0x371c02;});}}}function __rest(_0x155ae3,_0x72cbfc){const _0x2b6d04=a2_0x8e922d;var _0x4a82d0={};for(var _0xd336f5 in _0x155ae3)if(Object[_0x2b6d04(0x627)][_0x2b6d04(0x2cb)][_0x2b6d04(0x168)](_0x155ae3,_0xd336f5)&&_0x72cbfc[_0x2b6d04(0xcf)](_0xd336f5)<0x0)_0x4a82d0[_0xd336f5]=_0x155ae3[_0xd336f5];if(_0x155ae3!=null&&typeof Object['getOwnPropertySymbols']===_0x2b6d04(0x47f))for(var _0x9db4a4=0x0,_0xd336f5=Object[_0x2b6d04(0x183)](_0x155ae3);_0x9db4a4<_0xd336f5[_0x2b6d04(0x568)];_0x9db4a4++){if(_0x72cbfc[_0x2b6d04(0xcf)](_0xd336f5[_0x9db4a4])<0x0&&Object[_0x2b6d04(0x627)][_0x2b6d04(0x189)][_0x2b6d04(0x168)](_0x155ae3,_0xd336f5[_0x9db4a4]))_0x4a82d0[_0xd336f5[_0x9db4a4]]=_0x155ae3[_0xd336f5[_0x9db4a4]];}return _0x4a82d0;}function __values(_0x1c432d){const _0x18ec70=a2_0x8e922d;var _0x56f908=typeof Symbol===_0x18ec70(0x47f)&&Symbol[_0x18ec70(0x4b8)],_0x5e0ff2=_0x56f908&&_0x1c432d[_0x56f908],_0x2c5e11=0x0;if(_0x5e0ff2)return _0x5e0ff2[_0x18ec70(0x168)](_0x1c432d);if(_0x1c432d&&typeof _0x1c432d['length']===_0x18ec70(0x5de))return{'next':function(){const _0x563ef7=_0x18ec70;if(_0x1c432d&&_0x2c5e11>=_0x1c432d[_0x563ef7(0x568)])_0x1c432d=void 0x0;return{'value':_0x1c432d&&_0x1c432d[_0x2c5e11++],'done':!_0x1c432d};}};throw new TypeError(_0x56f908?'Object\x20is\x20not\x20iterable.':'Symbol.iterator\x20is\x20not\x20defined.');}function __await(_0x58a584){return this instanceof __await?(this['v']=_0x58a584,this):new __await(_0x58a584);}function __asyncGenerator(_0x24fd25,_0x2354d6,_0xe683e7){const _0x41bdd7=a2_0x8e922d;if(!Symbol[_0x41bdd7(0x4f2)])throw new TypeError('Symbol.asyncIterator\x20is\x20not\x20defined.');var _0x3be6eb=_0xe683e7[_0x41bdd7(0x54c)](_0x24fd25,_0x2354d6||[]),_0x4821fa,_0x3602ff=[];return _0x4821fa=Object[_0x41bdd7(0x5da)]((typeof AsyncIterator===_0x41bdd7(0x47f)?AsyncIterator:Object)['prototype']),_0x5dfeef('next'),_0x5dfeef('throw'),_0x5dfeef(_0x41bdd7(0x632),_0x5f5244),_0x4821fa[Symbol['asyncIterator']]=function(){return this;},_0x4821fa;function _0x5f5244(_0x40dac0){return function(_0x9fd11e){return Promise['resolve'](_0x9fd11e)['then'](_0x40dac0,_0x5c1c08);};}function _0x5dfeef(_0x1c7c49,_0x4f2dcf){if(_0x3be6eb[_0x1c7c49]){_0x4821fa[_0x1c7c49]=function(_0xf8eaff){return new Promise(function(_0x71855d,_0x101323){const _0x1f50b1=a2_0x28ed;_0x3602ff[_0x1f50b1(0x599)]([_0x1c7c49,_0xf8eaff,_0x71855d,_0x101323])>0x1||_0x45f00a(_0x1c7c49,_0xf8eaff);});};if(_0x4f2dcf)_0x4821fa[_0x1c7c49]=_0x4f2dcf(_0x4821fa[_0x1c7c49]);}}function _0x45f00a(_0x581ae1,_0x34f615){try{_0x18e3a1(_0x3be6eb[_0x581ae1](_0x34f615));}catch(_0x288f09){_0xc60d5b(_0x3602ff[0x0][0x3],_0x288f09);}}function _0x18e3a1(_0x54122e){const _0x406a2e=_0x41bdd7;_0x54122e[_0x406a2e(0x6ad)]instanceof __await?Promise[_0x406a2e(0xb9)](_0x54122e[_0x406a2e(0x6ad)]['v'])[_0x406a2e(0x213)](_0x1794d0,_0x5c1c08):_0xc60d5b(_0x3602ff[0x0][0x2],_0x54122e);}function _0x1794d0(_0x3c164d){const _0x3ed70d=_0x41bdd7;_0x45f00a(_0x3ed70d(0x27b),_0x3c164d);}function _0x5c1c08(_0x3b38f0){_0x45f00a('throw',_0x3b38f0);}function _0xc60d5b(_0x3cbde0,_0x1554ab){const _0x38957e=_0x41bdd7;if(_0x3cbde0(_0x1554ab),_0x3602ff['shift'](),_0x3602ff[_0x38957e(0x568)])_0x45f00a(_0x3602ff[0x0][0x0],_0x3602ff[0x0][0x1]);}}function __asyncValues(_0x67ea91){const _0x142a48=a2_0x8e922d;if(!Symbol[_0x142a48(0x4f2)])throw new TypeError('Symbol.asyncIterator\x20is\x20not\x20defined.');var _0x3c5188=_0x67ea91[Symbol['asyncIterator']],_0x2556d4;return _0x3c5188?_0x3c5188['call'](_0x67ea91):(_0x67ea91=typeof __values==='function'?__values(_0x67ea91):_0x67ea91[Symbol[_0x142a48(0x4b8)]](),_0x2556d4={},_0x5c974c('next'),_0x5c974c(_0x142a48(0x1b4)),_0x5c974c(_0x142a48(0x632)),_0x2556d4[Symbol[_0x142a48(0x4f2)]]=function(){return this;},_0x2556d4);function _0x5c974c(_0x483f59){_0x2556d4[_0x483f59]=_0x67ea91[_0x483f59]&&function(_0x27d908){return new Promise(function(_0x458f44,_0x4ea386){const _0x1caec0=a2_0x28ed;_0x27d908=_0x67ea91[_0x483f59](_0x27d908),_0x1742a9(_0x458f44,_0x4ea386,_0x27d908[_0x1caec0(0x4ae)],_0x27d908[_0x1caec0(0x6ad)]);});};}function _0x1742a9(_0x4b21d4,_0x5d5906,_0xcb21e3,_0x467bb4){const _0x17bd58=_0x142a48;Promise['resolve'](_0x467bb4)[_0x17bd58(0x213)](function(_0x3bb948){_0x4b21d4({'value':_0x3bb948,'done':_0xcb21e3});},_0x5d5906);}}typeof SuppressedError===a2_0x8e922d(0x47f)?SuppressedError:function(_0x2fee13,_0x513c61,_0x52038e){const _0x3da6d3=a2_0x8e922d;var _0x151e46=new Error(_0x52038e);return _0x151e46['name']=_0x3da6d3(0x3cd),_0x151e46[_0x3da6d3(0x262)]=_0x2fee13,_0x151e46[_0x3da6d3(0x29b)]=_0x513c61,_0x151e46;};/**
|
|
57
|
+
* @license
|
|
58
|
+
* Copyright 2025 Google LLC
|
|
59
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
60
|
+
*/
|
|
61
|
+
function isValidResponse(_0x31fd21){const _0x4e159d=a2_0x8e922d;var _0x496c34;if(_0x31fd21[_0x4e159d(0x2ba)]==undefined||_0x31fd21['candidates'][_0x4e159d(0x568)]===0x0)return![];const _0x3663bf=(_0x496c34=_0x31fd21['candidates'][0x0])===null||_0x496c34===void 0x0?void 0x0:_0x496c34[_0x4e159d(0x4a6)];if(_0x3663bf===undefined)return![];return isValidContent(_0x3663bf);}function isValidContent(_0x4495c5){const _0x4ecbb3=a2_0x8e922d;if(_0x4495c5[_0x4ecbb3(0x694)]===undefined||_0x4495c5[_0x4ecbb3(0x694)][_0x4ecbb3(0x568)]===0x0)return![];for(const _0x1dea8f of _0x4495c5[_0x4ecbb3(0x694)]){if(_0x1dea8f===undefined||Object['keys'](_0x1dea8f)[_0x4ecbb3(0x568)]===0x0)return![];}return!![];}function validateHistory(_0x272ce8){const _0x490e23=a2_0x8e922d;if(_0x272ce8['length']===0x0)return;for(const _0x375cc1 of _0x272ce8){if(_0x375cc1[_0x490e23(0x31e)]!=='user'&&_0x375cc1[_0x490e23(0x31e)]!==_0x490e23(0x638))throw new Error('Role\x20must\x20be\x20user\x20or\x20model,\x20but\x20got\x20'+_0x375cc1[_0x490e23(0x31e)]+'.');}}function extractCuratedHistory(_0x4106ad){const _0x11c1e9=a2_0x8e922d;if(_0x4106ad===undefined||_0x4106ad[_0x11c1e9(0x568)]===0x0)return[];const _0x537001=[],_0x4c7179=_0x4106ad[_0x11c1e9(0x568)];let _0x2fb5c0=0x0;while(_0x2fb5c0<_0x4c7179){if(_0x4106ad[_0x2fb5c0][_0x11c1e9(0x31e)]===_0x11c1e9(0x5d0))_0x537001['push'](_0x4106ad[_0x2fb5c0]),_0x2fb5c0++;else{const _0x210e9a=[];let _0xf84263=!![];while(_0x2fb5c0<_0x4c7179&&_0x4106ad[_0x2fb5c0]['role']===_0x11c1e9(0x638)){_0x210e9a[_0x11c1e9(0x599)](_0x4106ad[_0x2fb5c0]),_0xf84263&&!isValidContent(_0x4106ad[_0x2fb5c0])&&(_0xf84263=![]),_0x2fb5c0++;}_0xf84263?_0x537001[_0x11c1e9(0x599)](..._0x210e9a):_0x537001[_0x11c1e9(0x511)]();}}return _0x537001;}class Chats{constructor(_0x277f40,_0x36dba7){const _0x23e191=a2_0x8e922d;this[_0x23e191(0x498)]=_0x277f40,this['apiClient']=_0x36dba7;}[a2_0x8e922d(0x5da)](_0xe3e2f6){const _0x550bc1=a2_0x8e922d;return new Chat(this[_0x550bc1(0x2eb)],this[_0x550bc1(0x498)],_0xe3e2f6[_0x550bc1(0x638)],_0xe3e2f6[_0x550bc1(0x182)],structuredClone(_0xe3e2f6['history']));}}class Chat{constructor(_0x34c481,_0xb9368e,_0x4389a1,_0xc5df0d={},_0x392e8a=[]){const _0x4d0877=a2_0x8e922d;this['apiClient']=_0x34c481,this[_0x4d0877(0x498)]=_0xb9368e,this['model']=_0x4389a1,this[_0x4d0877(0x182)]=_0xc5df0d,this['history']=_0x392e8a,this['sendPromise']=Promise[_0x4d0877(0xb9)](),validateHistory(_0x392e8a);}async[a2_0x8e922d(0x45b)](_0x150e1e){const _0x3631ca=a2_0x8e922d;var _0x44b45f;await this[_0x3631ca(0x424)];const _0x43a015=tContent(_0x150e1e[_0x3631ca(0x3b6)]),_0x12daa3=this[_0x3631ca(0x498)][_0x3631ca(0xa7)]({'model':this[_0x3631ca(0x638)],'contents':this['getHistory'](!![])['concat'](_0x43a015),'config':(_0x44b45f=_0x150e1e[_0x3631ca(0x182)])!==null&&_0x44b45f!==void 0x0?_0x44b45f:this[_0x3631ca(0x182)]});return this[_0x3631ca(0x424)]=((async()=>{const _0x47849d=_0x3631ca;var _0xc46a61,_0x19f47b,_0x2363db;const _0x33bfd5=await _0x12daa3,_0x13ba90=(_0x19f47b=(_0xc46a61=_0x33bfd5[_0x47849d(0x2ba)])===null||_0xc46a61===void 0x0?void 0x0:_0xc46a61[0x0])===null||_0x19f47b===void 0x0?void 0x0:_0x19f47b['content'],_0x4db814=_0x33bfd5['automaticFunctionCallingHistory'],_0x4e7ab0=this[_0x47849d(0x287)](!![])['length'];let _0x2d5c25=[];_0x4db814!=null&&(_0x2d5c25=(_0x2363db=_0x4db814[_0x47849d(0x664)](_0x4e7ab0))!==null&&_0x2363db!==void 0x0?_0x2363db:[]);const _0x2c9c48=_0x13ba90?[_0x13ba90]:[];this[_0x47849d(0x685)](_0x43a015,_0x2c9c48,_0x2d5c25);return;})()),await this[_0x3631ca(0x424)][_0x3631ca(0x29e)](()=>{const _0x57c415=_0x3631ca;this[_0x57c415(0x424)]=Promise[_0x57c415(0xb9)]();}),_0x12daa3;}async[a2_0x8e922d(0x191)](_0x897485){const _0x928cc1=a2_0x8e922d;var _0x1abe4e;await this[_0x928cc1(0x424)];const _0x2607f5=tContent(_0x897485[_0x928cc1(0x3b6)]),_0x1791b9=this[_0x928cc1(0x498)]['generateContentStream']({'model':this[_0x928cc1(0x638)],'contents':this['getHistory'](!![])['concat'](_0x2607f5),'config':(_0x1abe4e=_0x897485[_0x928cc1(0x182)])!==null&&_0x1abe4e!==void 0x0?_0x1abe4e:this[_0x928cc1(0x182)]});this[_0x928cc1(0x424)]=_0x1791b9[_0x928cc1(0x213)](()=>undefined)[_0x928cc1(0x29e)](()=>undefined);const _0x16d7d2=await _0x1791b9,_0x271667=this[_0x928cc1(0x3e4)](_0x16d7d2,_0x2607f5);return _0x271667;}[a2_0x8e922d(0x287)](_0x20d6a0=![]){const _0x3cbe71=a2_0x8e922d,_0x8eed08=_0x20d6a0?extractCuratedHistory(this[_0x3cbe71(0x53b)]):this[_0x3cbe71(0x53b)];return structuredClone(_0x8eed08);}['processStreamResponse'](_0x165639,_0x17258a){return __asyncGenerator(this,arguments,function*_0x10a406(){const _0x5f5552=a2_0x28ed;var _0x2096fa,_0x197b21,_0x4e8d2a,_0x5c7b95,_0x566231,_0x565181;const _0x30a866=[];try{for(var _0x593dea=!![],_0x13a819=__asyncValues(_0x165639),_0x191f2e;_0x191f2e=yield __await(_0x13a819[_0x5f5552(0x27b)]()),_0x2096fa=_0x191f2e['done'],!_0x2096fa;_0x593dea=!![]){_0x5c7b95=_0x191f2e[_0x5f5552(0x6ad)],_0x593dea=![];const _0x3caf8d=_0x5c7b95;if(isValidResponse(_0x3caf8d)){const _0x466db8=(_0x565181=(_0x566231=_0x3caf8d[_0x5f5552(0x2ba)])===null||_0x566231===void 0x0?void 0x0:_0x566231[0x0])===null||_0x565181===void 0x0?void 0x0:_0x565181[_0x5f5552(0x4a6)];_0x466db8!==undefined&&_0x30a866['push'](_0x466db8);}yield yield __await(_0x3caf8d);}}catch(_0x194547){_0x197b21={'error':_0x194547};}finally{try{if(!_0x593dea&&!_0x2096fa&&(_0x4e8d2a=_0x13a819[_0x5f5552(0x632)]))yield __await(_0x4e8d2a[_0x5f5552(0x168)](_0x13a819));}finally{if(_0x197b21)throw _0x197b21[_0x5f5552(0x262)];}}this[_0x5f5552(0x685)](_0x17258a,_0x30a866);});}[a2_0x8e922d(0x685)](_0x2014da,_0x172bf6,_0x3420ce){const _0x52a52a=a2_0x8e922d;let _0x497a91=[];_0x172bf6[_0x52a52a(0x568)]>0x0&&_0x172bf6[_0x52a52a(0xdd)](_0x57da0e=>_0x57da0e[_0x52a52a(0x31e)]!==undefined)?_0x497a91=_0x172bf6:_0x497a91['push']({'role':_0x52a52a(0x638),'parts':[]}),_0x3420ce&&_0x3420ce[_0x52a52a(0x568)]>0x0?this[_0x52a52a(0x53b)][_0x52a52a(0x599)](...extractCuratedHistory(_0x3420ce)):this[_0x52a52a(0x53b)][_0x52a52a(0x599)](_0x2014da),this[_0x52a52a(0x53b)][_0x52a52a(0x599)](..._0x497a91);}}/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2025 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
65
|
+
*/
|
|
66
|
+
class ApiError extends Error{constructor(_0x19a197){const _0x129e25=a2_0x8e922d;super(_0x19a197['message']),this['name']=_0x129e25(0x488),this[_0x129e25(0x3d4)]=_0x19a197['status'],Object[_0x129e25(0x316)](this,ApiError[_0x129e25(0x627)]);}}/**
|
|
67
|
+
* @license
|
|
68
|
+
* Copyright 2025 Google LLC
|
|
69
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
70
|
+
*/
|
|
71
|
+
function createFileParametersToMldev(_0xa810a5){const _0x165c38=a2_0x8e922d,_0x1c9e89={},_0xa92c67=getValueByPath(_0xa810a5,[_0x165c38(0x52f)]);return _0xa92c67!=null&&setValueByPath(_0x1c9e89,[_0x165c38(0x52f)],_0xa92c67),_0x1c9e89;}function createFileResponseFromMldev(_0x29190a){const _0x33dabe=a2_0x8e922d,_0x179050={},_0x3e2468=getValueByPath(_0x29190a,[_0x33dabe(0x3a0)]);return _0x3e2468!=null&&setValueByPath(_0x179050,['sdkHttpResponse'],_0x3e2468),_0x179050;}function deleteFileParametersToMldev(_0x2432fc){const _0x4146ad=a2_0x8e922d,_0x468a14={},_0x1bb9df=getValueByPath(_0x2432fc,[_0x4146ad(0x206)]);return _0x1bb9df!=null&&setValueByPath(_0x468a14,[_0x4146ad(0x334),_0x4146ad(0x52f)],tFileName(_0x1bb9df)),_0x468a14;}function deleteFileResponseFromMldev(_0x883637){const _0x2446c9=a2_0x8e922d,_0x5b0aa2={},_0x392bc1=getValueByPath(_0x883637,[_0x2446c9(0x3a0)]);return _0x392bc1!=null&&setValueByPath(_0x5b0aa2,[_0x2446c9(0x3a0)],_0x392bc1),_0x5b0aa2;}function getFileParametersToMldev(_0x18bf15){const _0x5c14aa=a2_0x8e922d,_0x3513fd={},_0x5ae83c=getValueByPath(_0x18bf15,[_0x5c14aa(0x206)]);return _0x5ae83c!=null&&setValueByPath(_0x3513fd,[_0x5c14aa(0x334),_0x5c14aa(0x52f)],tFileName(_0x5ae83c)),_0x3513fd;}function internalRegisterFilesParametersToMldev(_0x2f63d4){const _0x89eec6=a2_0x8e922d,_0x3db5c4={},_0x230642=getValueByPath(_0x2f63d4,[_0x89eec6(0x249)]);return _0x230642!=null&&setValueByPath(_0x3db5c4,['uris'],_0x230642),_0x3db5c4;}function listFilesConfigToMldev(_0x2295ab,_0x2c40c0){const _0x19db76=a2_0x8e922d,_0x490744={},_0x54b5fd=getValueByPath(_0x2295ab,[_0x19db76(0x546)]);_0x2c40c0!==undefined&&_0x54b5fd!=null&&setValueByPath(_0x2c40c0,[_0x19db76(0xa9),_0x19db76(0x546)],_0x54b5fd);const _0x2eca1c=getValueByPath(_0x2295ab,['pageToken']);return _0x2c40c0!==undefined&&_0x2eca1c!=null&&setValueByPath(_0x2c40c0,[_0x19db76(0xa9),_0x19db76(0x193)],_0x2eca1c),_0x490744;}function listFilesParametersToMldev(_0x142adf){const _0x68648d={},_0x42f707=getValueByPath(_0x142adf,['config']);return _0x42f707!=null&&listFilesConfigToMldev(_0x42f707,_0x68648d),_0x68648d;}function listFilesResponseFromMldev(_0x9f41b9){const _0x87b168=a2_0x8e922d,_0x3038d2={},_0xcd611e=getValueByPath(_0x9f41b9,['sdkHttpResponse']);_0xcd611e!=null&&setValueByPath(_0x3038d2,[_0x87b168(0x3a0)],_0xcd611e);const _0x32d669=getValueByPath(_0x9f41b9,[_0x87b168(0x12c)]);_0x32d669!=null&&setValueByPath(_0x3038d2,[_0x87b168(0x12c)],_0x32d669);const _0x4ca609=getValueByPath(_0x9f41b9,[_0x87b168(0x57c)]);if(_0x4ca609!=null){let _0x4f389f=_0x4ca609;Array[_0x87b168(0x266)](_0x4f389f)&&(_0x4f389f=_0x4f389f['map'](_0x55c090=>{return _0x55c090;})),setValueByPath(_0x3038d2,[_0x87b168(0x57c)],_0x4f389f);}return _0x3038d2;}function registerFilesResponseFromMldev(_0x34a36c){const _0x2fa27d=a2_0x8e922d,_0x527ac0={},_0x43957d=getValueByPath(_0x34a36c,[_0x2fa27d(0x3a0)]);_0x43957d!=null&&setValueByPath(_0x527ac0,[_0x2fa27d(0x3a0)],_0x43957d);const _0x3d33cb=getValueByPath(_0x34a36c,[_0x2fa27d(0x57c)]);if(_0x3d33cb!=null){let _0xd1e776=_0x3d33cb;Array['isArray'](_0xd1e776)&&(_0xd1e776=_0xd1e776[_0x2fa27d(0x4a8)](_0x4fa39d=>{return _0x4fa39d;})),setValueByPath(_0x527ac0,[_0x2fa27d(0x57c)],_0xd1e776);}return _0x527ac0;}/**
|
|
72
|
+
* @license
|
|
73
|
+
* Copyright 2025 Google LLC
|
|
74
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
75
|
+
*/
|
|
76
|
+
class Files extends BaseModule{constructor(_0x3446af){const _0x2f7928=a2_0x8e922d;super(),this[_0x2f7928(0x2eb)]=_0x3446af,this['list']=async(_0x485f85={})=>{const _0x3a965e=_0x2f7928;return new Pager(exports[_0x3a965e(0x1a4)][_0x3a965e(0x4b1)],_0x874878=>this[_0x3a965e(0x456)](_0x874878),await this[_0x3a965e(0x456)](_0x485f85),_0x485f85);};}async[a2_0x8e922d(0x223)](_0x1cb770){const _0x1f7bd8=a2_0x8e922d;if(this[_0x1f7bd8(0x2eb)]['isVertexAI']())throw new Error(_0x1f7bd8(0x487));return this[_0x1f7bd8(0x2eb)][_0x1f7bd8(0x21a)](_0x1cb770[_0x1f7bd8(0x52f)],_0x1cb770[_0x1f7bd8(0x182)])[_0x1f7bd8(0x213)](_0x4a7ce2=>{return _0x4a7ce2;});}async[a2_0x8e922d(0x669)](_0x5e1af1){const _0x498965=a2_0x8e922d;await this['apiClient'][_0x498965(0x57b)](_0x5e1af1);}async['registerFiles'](_0x49d9eb){const _0x5aa71f=a2_0x8e922d;throw new Error(_0x5aa71f(0x38a));}async[a2_0x8e922d(0x50d)](_0x3204c7){const _0x52d3af=a2_0x8e922d;return this[_0x52d3af(0x66a)](_0x3204c7);}async[a2_0x8e922d(0x456)](_0x5869b6){const _0x44e502=a2_0x8e922d;var _0x52d99a,_0x170ef5;let _0x21fe29,_0x10da93='',_0x1d3397={};if(this[_0x44e502(0x2eb)][_0x44e502(0x4d0)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x1f43a3=listFilesParametersToMldev(_0x5869b6);return _0x10da93=formatMap(_0x44e502(0x57c),_0x1f43a3[_0x44e502(0x334)]),_0x1d3397=_0x1f43a3['_query'],delete _0x1f43a3[_0x44e502(0x334)],delete _0x1f43a3['_query'],_0x21fe29=this[_0x44e502(0x2eb)][_0x44e502(0x269)]({'path':_0x10da93,'queryParams':_0x1d3397,'body':JSON[_0x44e502(0x296)](_0x1f43a3),'httpMethod':_0x44e502(0x375),'httpOptions':(_0x52d99a=_0x5869b6[_0x44e502(0x182)])===null||_0x52d99a===void 0x0?void 0x0:_0x52d99a['httpOptions'],'abortSignal':(_0x170ef5=_0x5869b6[_0x44e502(0x182)])===null||_0x170ef5===void 0x0?void 0x0:_0x170ef5['abortSignal']})[_0x44e502(0x213)](_0x11a2fe=>{const _0x547f54=_0x44e502;return _0x11a2fe['json']()[_0x547f54(0x213)](_0x39ff8b=>{const _0x4fe874=_0x547f54,_0x427204=_0x39ff8b;return _0x427204[_0x4fe874(0x3a0)]={'headers':_0x11a2fe[_0x4fe874(0x438)]},_0x427204;});}),_0x21fe29[_0x44e502(0x213)](_0x4e0ec6=>{const _0x5e3610=_0x44e502,_0x237af5=listFilesResponseFromMldev(_0x4e0ec6),_0x407920=new ListFilesResponse();return Object[_0x5e3610(0x289)](_0x407920,_0x237af5),_0x407920;});}}async[a2_0x8e922d(0xd5)](_0x4bf989){const _0x1bb1b2=a2_0x8e922d;var _0x421dac,_0x1ca7a5;let _0x58011a,_0x5adb7e='',_0x23f6d1={};if(this[_0x1bb1b2(0x2eb)]['isVertexAI']())throw new Error(_0x1bb1b2(0x651));else{const _0x1b5ccb=createFileParametersToMldev(_0x4bf989);return _0x5adb7e=formatMap(_0x1bb1b2(0x5e7),_0x1b5ccb[_0x1bb1b2(0x334)]),_0x23f6d1=_0x1b5ccb[_0x1bb1b2(0xa9)],delete _0x1b5ccb[_0x1bb1b2(0x334)],delete _0x1b5ccb[_0x1bb1b2(0xa9)],_0x58011a=this[_0x1bb1b2(0x2eb)][_0x1bb1b2(0x269)]({'path':_0x5adb7e,'queryParams':_0x23f6d1,'body':JSON[_0x1bb1b2(0x296)](_0x1b5ccb),'httpMethod':_0x1bb1b2(0x208),'httpOptions':(_0x421dac=_0x4bf989[_0x1bb1b2(0x182)])===null||_0x421dac===void 0x0?void 0x0:_0x421dac[_0x1bb1b2(0x30a)],'abortSignal':(_0x1ca7a5=_0x4bf989[_0x1bb1b2(0x182)])===null||_0x1ca7a5===void 0x0?void 0x0:_0x1ca7a5['abortSignal']})['then'](_0x20b42f=>{const _0x42f2f2=_0x1bb1b2;return _0x20b42f[_0x42f2f2(0xdf)]();}),_0x58011a[_0x1bb1b2(0x213)](_0x1ab63e=>{const _0x1a7aac=_0x1bb1b2,_0x51cc40=createFileResponseFromMldev(_0x1ab63e),_0x15e04e=new CreateFileResponse();return Object[_0x1a7aac(0x289)](_0x15e04e,_0x51cc40),_0x15e04e;});}}async[a2_0x8e922d(0x661)](_0x4caacf){const _0x299428=a2_0x8e922d;var _0x117e63,_0x21cf3e;let _0x697a91,_0x1e1640='',_0x2065a2={};if(this[_0x299428(0x2eb)][_0x299428(0x4d0)]())throw new Error(_0x299428(0x651));else{const _0x54ff19=getFileParametersToMldev(_0x4caacf);return _0x1e1640=formatMap(_0x299428(0x1eb),_0x54ff19['_url']),_0x2065a2=_0x54ff19[_0x299428(0xa9)],delete _0x54ff19['_url'],delete _0x54ff19['_query'],_0x697a91=this['apiClient'][_0x299428(0x269)]({'path':_0x1e1640,'queryParams':_0x2065a2,'body':JSON[_0x299428(0x296)](_0x54ff19),'httpMethod':_0x299428(0x375),'httpOptions':(_0x117e63=_0x4caacf[_0x299428(0x182)])===null||_0x117e63===void 0x0?void 0x0:_0x117e63[_0x299428(0x30a)],'abortSignal':(_0x21cf3e=_0x4caacf[_0x299428(0x182)])===null||_0x21cf3e===void 0x0?void 0x0:_0x21cf3e[_0x299428(0x2fc)]})[_0x299428(0x213)](_0x3bd125=>{const _0x4df3b7=_0x299428;return _0x3bd125[_0x4df3b7(0xdf)]();}),_0x697a91[_0x299428(0x213)](_0x15c4a1=>{return _0x15c4a1;});}}async[a2_0x8e922d(0x1a5)](_0x543573){const _0x2ffaf9=a2_0x8e922d;var _0x4b6762,_0x5d7867;let _0x13c918,_0x558e43='',_0x1e212f={};if(this[_0x2ffaf9(0x2eb)]['isVertexAI']())throw new Error(_0x2ffaf9(0x651));else{const _0x37966d=deleteFileParametersToMldev(_0x543573);return _0x558e43=formatMap(_0x2ffaf9(0x1eb),_0x37966d[_0x2ffaf9(0x334)]),_0x1e212f=_0x37966d['_query'],delete _0x37966d[_0x2ffaf9(0x334)],delete _0x37966d[_0x2ffaf9(0xa9)],_0x13c918=this[_0x2ffaf9(0x2eb)]['request']({'path':_0x558e43,'queryParams':_0x1e212f,'body':JSON[_0x2ffaf9(0x296)](_0x37966d),'httpMethod':_0x2ffaf9(0x596),'httpOptions':(_0x4b6762=_0x543573['config'])===null||_0x4b6762===void 0x0?void 0x0:_0x4b6762[_0x2ffaf9(0x30a)],'abortSignal':(_0x5d7867=_0x543573[_0x2ffaf9(0x182)])===null||_0x5d7867===void 0x0?void 0x0:_0x5d7867[_0x2ffaf9(0x2fc)]})['then'](_0x46c48d=>{const _0x3e721f=_0x2ffaf9;return _0x46c48d[_0x3e721f(0xdf)]()['then'](_0xb63fb6=>{const _0x271df2=_0x3e721f,_0x55dfe1=_0xb63fb6;return _0x55dfe1[_0x271df2(0x3a0)]={'headers':_0x46c48d[_0x271df2(0x438)]},_0x55dfe1;});}),_0x13c918[_0x2ffaf9(0x213)](_0xd8533b=>{const _0x2bd3ae=_0x2ffaf9,_0x561ddf=deleteFileResponseFromMldev(_0xd8533b),_0x274dc9=new DeleteFileResponse();return Object[_0x2bd3ae(0x289)](_0x274dc9,_0x561ddf),_0x274dc9;});}}async[a2_0x8e922d(0x66a)](_0x588adb){const _0x6a5961=a2_0x8e922d;var _0x5b561a,_0x3a557e;let _0x40a41a,_0x5203cf='',_0xe5132a={};if(this['apiClient'][_0x6a5961(0x4d0)]())throw new Error(_0x6a5961(0x651));else{const _0xc1f122=internalRegisterFilesParametersToMldev(_0x588adb);return _0x5203cf=formatMap(_0x6a5961(0x539),_0xc1f122[_0x6a5961(0x334)]),_0xe5132a=_0xc1f122['_query'],delete _0xc1f122[_0x6a5961(0x334)],delete _0xc1f122['_query'],_0x40a41a=this[_0x6a5961(0x2eb)][_0x6a5961(0x269)]({'path':_0x5203cf,'queryParams':_0xe5132a,'body':JSON[_0x6a5961(0x296)](_0xc1f122),'httpMethod':_0x6a5961(0x208),'httpOptions':(_0x5b561a=_0x588adb['config'])===null||_0x5b561a===void 0x0?void 0x0:_0x5b561a[_0x6a5961(0x30a)],'abortSignal':(_0x3a557e=_0x588adb[_0x6a5961(0x182)])===null||_0x3a557e===void 0x0?void 0x0:_0x3a557e[_0x6a5961(0x2fc)]})[_0x6a5961(0x213)](_0x15f5f6=>{return _0x15f5f6['json']();}),_0x40a41a[_0x6a5961(0x213)](_0x3346d2=>{const _0xf24cf0=_0x6a5961,_0x5c99b0=registerFilesResponseFromMldev(_0x3346d2),_0x25cd1c=new RegisterFilesResponse();return Object[_0xf24cf0(0x289)](_0x25cd1c,_0x5c99b0),_0x25cd1c;});}}}/**
|
|
77
|
+
* @license
|
|
78
|
+
* Copyright 2025 Google LLC
|
|
79
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
80
|
+
*/
|
|
81
|
+
function blobToMldev$2(_0x5e1894){const _0x5983ac=a2_0x8e922d,_0x134e1f={},_0x5c09ba=getValueByPath(_0x5e1894,[_0x5983ac(0x529)]);_0x5c09ba!=null&&setValueByPath(_0x134e1f,['data'],_0x5c09ba);if(getValueByPath(_0x5e1894,[_0x5983ac(0x1c2)])!==undefined)throw new Error(_0x5983ac(0x5d8));const _0x53f098=getValueByPath(_0x5e1894,[_0x5983ac(0x3c0)]);return _0x53f098!=null&&setValueByPath(_0x134e1f,[_0x5983ac(0x3c0)],_0x53f098),_0x134e1f;}function contentToMldev$2(_0x358e05){const _0x5582e0=a2_0x8e922d,_0x392088={},_0x4a1129=getValueByPath(_0x358e05,['parts']);if(_0x4a1129!=null){let _0x45aa32=_0x4a1129;Array['isArray'](_0x45aa32)&&(_0x45aa32=_0x45aa32[_0x5582e0(0x4a8)](_0x1ab1f3=>{return partToMldev$2(_0x1ab1f3);})),setValueByPath(_0x392088,['parts'],_0x45aa32);}const _0x21f3f9=getValueByPath(_0x358e05,[_0x5582e0(0x31e)]);return _0x21f3f9!=null&&setValueByPath(_0x392088,[_0x5582e0(0x31e)],_0x21f3f9),_0x392088;}function fileDataToMldev$2(_0x51526e){const _0x319943=a2_0x8e922d,_0x4b8550={};if(getValueByPath(_0x51526e,['displayName'])!==undefined)throw new Error(_0x319943(0x5d8));const _0x2b1395=getValueByPath(_0x51526e,[_0x319943(0x3d0)]);_0x2b1395!=null&&setValueByPath(_0x4b8550,['fileUri'],_0x2b1395);const _0x498b5f=getValueByPath(_0x51526e,['mimeType']);return _0x498b5f!=null&&setValueByPath(_0x4b8550,['mimeType'],_0x498b5f),_0x4b8550;}function functionCallToMldev$2(_0x522d7f){const _0x2bc5fa=a2_0x8e922d,_0x332396={},_0x30abe2=getValueByPath(_0x522d7f,['id']);_0x30abe2!=null&&setValueByPath(_0x332396,['id'],_0x30abe2);const _0x52bc58=getValueByPath(_0x522d7f,[_0x2bc5fa(0x122)]);_0x52bc58!=null&&setValueByPath(_0x332396,[_0x2bc5fa(0x122)],_0x52bc58);const _0x27d9fb=getValueByPath(_0x522d7f,['name']);_0x27d9fb!=null&&setValueByPath(_0x332396,['name'],_0x27d9fb);if(getValueByPath(_0x522d7f,[_0x2bc5fa(0x571)])!==undefined)throw new Error(_0x2bc5fa(0x493));if(getValueByPath(_0x522d7f,['willContinue'])!==undefined)throw new Error(_0x2bc5fa(0x520));return _0x332396;}function functionDeclarationToVertex$1(_0x1e16f7){const _0x5de744=a2_0x8e922d,_0x9b3ac3={},_0x59b6e1=getValueByPath(_0x1e16f7,[_0x5de744(0x4ea)]);_0x59b6e1!=null&&setValueByPath(_0x9b3ac3,[_0x5de744(0x4ea)],_0x59b6e1);const _0x47699c=getValueByPath(_0x1e16f7,['name']);_0x47699c!=null&&setValueByPath(_0x9b3ac3,[_0x5de744(0x206)],_0x47699c);const _0x18e539=getValueByPath(_0x1e16f7,[_0x5de744(0x28c)]);_0x18e539!=null&&setValueByPath(_0x9b3ac3,['parameters'],_0x18e539);const _0x4c1bd2=getValueByPath(_0x1e16f7,[_0x5de744(0x3e7)]);_0x4c1bd2!=null&&setValueByPath(_0x9b3ac3,['parametersJsonSchema'],_0x4c1bd2);const _0x30d911=getValueByPath(_0x1e16f7,[_0x5de744(0x1d3)]);_0x30d911!=null&&setValueByPath(_0x9b3ac3,['response'],_0x30d911);const _0x2e1c83=getValueByPath(_0x1e16f7,[_0x5de744(0x13c)]);_0x2e1c83!=null&&setValueByPath(_0x9b3ac3,[_0x5de744(0x13c)],_0x2e1c83);if(getValueByPath(_0x1e16f7,[_0x5de744(0x4b4)])!==undefined)throw new Error('behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x9b3ac3;}function generationConfigToVertex$1(_0x116210){const _0x5c7202=a2_0x8e922d,_0x51c9be={},_0x418fa8=getValueByPath(_0x116210,[_0x5c7202(0x23a)]);_0x418fa8!=null&&setValueByPath(_0x51c9be,['modelConfig'],_0x418fa8);const _0x5694f7=getValueByPath(_0x116210,[_0x5c7202(0x13c)]);_0x5694f7!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x13c)],_0x5694f7);const _0x1c6406=getValueByPath(_0x116210,[_0x5c7202(0x4ca)]);_0x1c6406!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x4ca)],_0x1c6406);const _0x36b63e=getValueByPath(_0x116210,[_0x5c7202(0x268)]);_0x36b63e!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x268)],_0x36b63e);const _0xf668c7=getValueByPath(_0x116210,[_0x5c7202(0x4e6)]);_0xf668c7!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x4e6)],_0xf668c7);const _0x2c8706=getValueByPath(_0x116210,[_0x5c7202(0x54f)]);_0x2c8706!=null&&setValueByPath(_0x51c9be,['frequencyPenalty'],_0x2c8706);const _0x161c6c=getValueByPath(_0x116210,[_0x5c7202(0x2db)]);_0x161c6c!=null&&setValueByPath(_0x51c9be,['logprobs'],_0x161c6c);const _0x3804a6=getValueByPath(_0x116210,['maxOutputTokens']);_0x3804a6!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x3fc)],_0x3804a6);const _0x1d131d=getValueByPath(_0x116210,[_0x5c7202(0x314)]);_0x1d131d!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x314)],_0x1d131d);const _0x1266e3=getValueByPath(_0x116210,[_0x5c7202(0x5b1)]);_0x1266e3!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x5b1)],_0x1266e3);const _0x11838d=getValueByPath(_0x116210,[_0x5c7202(0x120)]);_0x11838d!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x120)],_0x11838d);const _0x4a0ea1=getValueByPath(_0x116210,[_0x5c7202(0x335)]);_0x4a0ea1!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x335)],_0x4a0ea1);const _0x79a087=getValueByPath(_0x116210,[_0x5c7202(0x2ee)]);_0x79a087!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x2ee)],_0x79a087);const _0x5d7e24=getValueByPath(_0x116210,[_0x5c7202(0x475)]);_0x5d7e24!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x475)],_0x5d7e24);const _0x1821ac=getValueByPath(_0x116210,[_0x5c7202(0x69b)]);_0x1821ac!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x69b)],_0x1821ac);const _0x4e748f=getValueByPath(_0x116210,[_0x5c7202(0x398)]);_0x4e748f!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x398)],_0x4e748f);const _0x29184e=getValueByPath(_0x116210,[_0x5c7202(0xd9)]);_0x29184e!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0xd9)],_0x29184e);const _0x3c6339=getValueByPath(_0x116210,[_0x5c7202(0x278)]);_0x3c6339!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x278)],_0x3c6339);const _0x27a03d=getValueByPath(_0x116210,[_0x5c7202(0x1e3)]);_0x27a03d!=null&&setValueByPath(_0x51c9be,['temperature'],_0x27a03d);const _0x4c4b5b=getValueByPath(_0x116210,['thinkingConfig']);_0x4c4b5b!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x10b)],_0x4c4b5b);const _0xd16335=getValueByPath(_0x116210,[_0x5c7202(0x411)]);_0xd16335!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x411)],_0xd16335);const _0x2570a0=getValueByPath(_0x116210,[_0x5c7202(0x159)]);_0x2570a0!=null&&setValueByPath(_0x51c9be,[_0x5c7202(0x159)],_0x2570a0);if(getValueByPath(_0x116210,[_0x5c7202(0x679)])!==undefined)throw new Error('enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x51c9be;}function googleMapsToMldev$2(_0x30de31){const _0x27cd71=a2_0x8e922d,_0x2273f3={};if(getValueByPath(_0x30de31,[_0x27cd71(0x44d)])!==undefined)throw new Error(_0x27cd71(0x1be));const _0x14ac01=getValueByPath(_0x30de31,['enableWidget']);return _0x14ac01!=null&&setValueByPath(_0x2273f3,['enableWidget'],_0x14ac01),_0x2273f3;}function googleSearchToMldev$2(_0x2c9119){const _0x359bea=a2_0x8e922d,_0x36119b={};if(getValueByPath(_0x2c9119,[_0x359bea(0x65d)])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x2c9119,['blockingConfidence'])!==undefined)throw new Error('blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x1577be=getValueByPath(_0x2c9119,[_0x359bea(0x164)]);return _0x1577be!=null&&setValueByPath(_0x36119b,[_0x359bea(0x164)],_0x1577be),_0x36119b;}function liveConnectConfigToMldev$1(_0x4e1c44,_0x313646){const _0x11af25=a2_0x8e922d,_0x29bdc7={},_0x3ca22b=getValueByPath(_0x4e1c44,[_0x11af25(0x558)]);_0x313646!==undefined&&_0x3ca22b!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),'generationConfig'],_0x3ca22b);const _0x590a08=getValueByPath(_0x4e1c44,['responseModalities']);_0x313646!==undefined&&_0x590a08!=null&&setValueByPath(_0x313646,['setup',_0x11af25(0x558),_0x11af25(0x2ee)],_0x590a08);const _0x2726d4=getValueByPath(_0x4e1c44,[_0x11af25(0x1e3)]);_0x313646!==undefined&&_0x2726d4!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),_0x11af25(0x1e3)],_0x2726d4);const _0x13a6a8=getValueByPath(_0x4e1c44,[_0x11af25(0x159)]);_0x313646!==undefined&&_0x13a6a8!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),'generationConfig','topP'],_0x13a6a8);const _0x379127=getValueByPath(_0x4e1c44,[_0x11af25(0x411)]);_0x313646!==undefined&&_0x379127!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),'topK'],_0x379127);const _0x22de58=getValueByPath(_0x4e1c44,['maxOutputTokens']);_0x313646!==undefined&&_0x22de58!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),_0x11af25(0x3fc)],_0x22de58);const _0x391352=getValueByPath(_0x4e1c44,[_0x11af25(0x314)]);_0x313646!==undefined&&_0x391352!=null&&setValueByPath(_0x313646,['setup','generationConfig',_0x11af25(0x314)],_0x391352);const _0xdb212f=getValueByPath(_0x4e1c44,[_0x11af25(0x398)]);_0x313646!==undefined&&_0xdb212f!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),_0x11af25(0x398)],_0xdb212f);const _0x4d9888=getValueByPath(_0x4e1c44,[_0x11af25(0xd9)]);_0x313646!==undefined&&_0x4d9888!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),_0x11af25(0xd9)],tLiveSpeechConfig(_0x4d9888));const _0x3c0a7b=getValueByPath(_0x4e1c44,[_0x11af25(0x10b)]);_0x313646!==undefined&&_0x3c0a7b!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),'thinkingConfig'],_0x3c0a7b);const _0x3290b1=getValueByPath(_0x4e1c44,['enableAffectiveDialog']);_0x313646!==undefined&&_0x3290b1!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x558),'enableAffectiveDialog'],_0x3290b1);const _0x38de26=getValueByPath(_0x4e1c44,[_0x11af25(0xd0)]);_0x313646!==undefined&&_0x38de26!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0xd0)],contentToMldev$2(tContent(_0x38de26)));const _0x21d469=getValueByPath(_0x4e1c44,[_0x11af25(0x376)]);if(_0x313646!==undefined&&_0x21d469!=null){let _0x24578d=tTools(_0x21d469);Array[_0x11af25(0x266)](_0x24578d)&&(_0x24578d=_0x24578d['map'](_0x1c6e9e=>{return toolToMldev$2(tTool(_0x1c6e9e));})),setValueByPath(_0x313646,['setup',_0x11af25(0x376)],_0x24578d);}const _0x26cd62=getValueByPath(_0x4e1c44,[_0x11af25(0xf0)]);_0x313646!==undefined&&_0x26cd62!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0xf0)],sessionResumptionConfigToMldev$1(_0x26cd62));const _0x4e228c=getValueByPath(_0x4e1c44,[_0x11af25(0x34c)]);_0x313646!==undefined&&_0x4e228c!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),_0x11af25(0x34c)],_0x4e228c);const _0x16fa4c=getValueByPath(_0x4e1c44,[_0x11af25(0x6b0)]);_0x313646!==undefined&&_0x16fa4c!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),'outputAudioTranscription'],_0x16fa4c);const _0xc31924=getValueByPath(_0x4e1c44,[_0x11af25(0x4c8)]);_0x313646!==undefined&&_0xc31924!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),'realtimeInputConfig'],_0xc31924);const _0x2fe5b0=getValueByPath(_0x4e1c44,['contextWindowCompression']);_0x313646!==undefined&&_0x2fe5b0!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),'contextWindowCompression'],_0x2fe5b0);const _0x5b17e2=getValueByPath(_0x4e1c44,[_0x11af25(0x32a)]);_0x313646!==undefined&&_0x5b17e2!=null&&setValueByPath(_0x313646,[_0x11af25(0x23d),'proactivity'],_0x5b17e2);if(getValueByPath(_0x4e1c44,[_0x11af25(0x4fd)])!==undefined)throw new Error(_0x11af25(0x252));return _0x29bdc7;}function liveConnectConfigToVertex(_0x37c823,_0x4c9135){const _0x2b98fe=a2_0x8e922d,_0x547dc8={},_0x2a2466=getValueByPath(_0x37c823,[_0x2b98fe(0x558)]);_0x4c9135!==undefined&&_0x2a2466!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558)],generationConfigToVertex$1(_0x2a2466));const _0x3b87d9=getValueByPath(_0x37c823,[_0x2b98fe(0x2ee)]);_0x4c9135!==undefined&&_0x3b87d9!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),'generationConfig','responseModalities'],_0x3b87d9);const _0x298b3f=getValueByPath(_0x37c823,[_0x2b98fe(0x1e3)]);_0x4c9135!==undefined&&_0x298b3f!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),_0x2b98fe(0x1e3)],_0x298b3f);const _0x4d3ea1=getValueByPath(_0x37c823,[_0x2b98fe(0x159)]);_0x4c9135!==undefined&&_0x4d3ea1!=null&&setValueByPath(_0x4c9135,['setup','generationConfig',_0x2b98fe(0x159)],_0x4d3ea1);const _0x46bb3c=getValueByPath(_0x37c823,['topK']);_0x4c9135!==undefined&&_0x46bb3c!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),_0x2b98fe(0x411)],_0x46bb3c);const _0x5c98e2=getValueByPath(_0x37c823,[_0x2b98fe(0x3fc)]);_0x4c9135!==undefined&&_0x5c98e2!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),_0x2b98fe(0x3fc)],_0x5c98e2);const _0xada00f=getValueByPath(_0x37c823,[_0x2b98fe(0x314)]);_0x4c9135!==undefined&&_0xada00f!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),_0x2b98fe(0x314)],_0xada00f);const _0x15b012=getValueByPath(_0x37c823,[_0x2b98fe(0x398)]);_0x4c9135!==undefined&&_0x15b012!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),_0x2b98fe(0x398)],_0x15b012);const _0x3776e6=getValueByPath(_0x37c823,['speechConfig']);_0x4c9135!==undefined&&_0x3776e6!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),'speechConfig'],tLiveSpeechConfig(_0x3776e6));const _0x3452b8=getValueByPath(_0x37c823,[_0x2b98fe(0x10b)]);_0x4c9135!==undefined&&_0x3452b8!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),'generationConfig',_0x2b98fe(0x10b)],_0x3452b8);const _0x12506d=getValueByPath(_0x37c823,[_0x2b98fe(0x4e6)]);_0x4c9135!==undefined&&_0x12506d!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x558),_0x2b98fe(0x4e6)],_0x12506d);const _0x468641=getValueByPath(_0x37c823,[_0x2b98fe(0xd0)]);_0x4c9135!==undefined&&_0x468641!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0xd0)],tContent(_0x468641));const _0x4cbee3=getValueByPath(_0x37c823,[_0x2b98fe(0x376)]);if(_0x4c9135!==undefined&&_0x4cbee3!=null){let _0x5c80ea=tTools(_0x4cbee3);Array['isArray'](_0x5c80ea)&&(_0x5c80ea=_0x5c80ea[_0x2b98fe(0x4a8)](_0x2e0e75=>{return toolToVertex$1(tTool(_0x2e0e75));})),setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x376)],_0x5c80ea);}const _0x542045=getValueByPath(_0x37c823,[_0x2b98fe(0xf0)]);_0x4c9135!==undefined&&_0x542045!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0xf0)],_0x542045);const _0xfadb7b=getValueByPath(_0x37c823,[_0x2b98fe(0x34c)]);_0x4c9135!==undefined&&_0xfadb7b!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),'inputAudioTranscription'],_0xfadb7b);const _0x526b19=getValueByPath(_0x37c823,[_0x2b98fe(0x6b0)]);_0x4c9135!==undefined&&_0x526b19!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x6b0)],_0x526b19);const _0x2542b9=getValueByPath(_0x37c823,[_0x2b98fe(0x4c8)]);_0x4c9135!==undefined&&_0x2542b9!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x4c8)],_0x2542b9);const _0x5e96dd=getValueByPath(_0x37c823,[_0x2b98fe(0x352)]);_0x4c9135!==undefined&&_0x5e96dd!=null&&setValueByPath(_0x4c9135,[_0x2b98fe(0x23d),_0x2b98fe(0x352)],_0x5e96dd);const _0x13fc09=getValueByPath(_0x37c823,['proactivity']);_0x4c9135!==undefined&&_0x13fc09!=null&&setValueByPath(_0x4c9135,['setup',_0x2b98fe(0x32a)],_0x13fc09);const _0xe65114=getValueByPath(_0x37c823,[_0x2b98fe(0x4fd)]);return _0x4c9135!==undefined&&_0xe65114!=null&&setValueByPath(_0x4c9135,['setup',_0x2b98fe(0x4fd)],_0xe65114),_0x547dc8;}function liveConnectParametersToMldev(_0x127675,_0x444f73){const _0x4c0862=a2_0x8e922d,_0xb933b7={},_0xd76345=getValueByPath(_0x444f73,[_0x4c0862(0x638)]);_0xd76345!=null&&setValueByPath(_0xb933b7,[_0x4c0862(0x23d),'model'],tModel(_0x127675,_0xd76345));const _0x2fa3ec=getValueByPath(_0x444f73,[_0x4c0862(0x182)]);return _0x2fa3ec!=null&&setValueByPath(_0xb933b7,[_0x4c0862(0x182)],liveConnectConfigToMldev$1(_0x2fa3ec,_0xb933b7)),_0xb933b7;}function liveConnectParametersToVertex(_0x29ccfe,_0xeceb34){const _0x263bac=a2_0x8e922d,_0x56e3d2={},_0x18be5d=getValueByPath(_0xeceb34,[_0x263bac(0x638)]);_0x18be5d!=null&&setValueByPath(_0x56e3d2,[_0x263bac(0x23d),_0x263bac(0x638)],tModel(_0x29ccfe,_0x18be5d));const _0x822fb8=getValueByPath(_0xeceb34,['config']);return _0x822fb8!=null&&setValueByPath(_0x56e3d2,[_0x263bac(0x182)],liveConnectConfigToVertex(_0x822fb8,_0x56e3d2)),_0x56e3d2;}function liveMusicSetConfigParametersToMldev(_0x44ba62){const _0x4bd1e4=a2_0x8e922d,_0x1acbfd={},_0x55fd9e=getValueByPath(_0x44ba62,[_0x4bd1e4(0x4e1)]);return _0x55fd9e!=null&&setValueByPath(_0x1acbfd,['musicGenerationConfig'],_0x55fd9e),_0x1acbfd;}function liveMusicSetWeightedPromptsParametersToMldev(_0x5ab760){const _0x3ad786=a2_0x8e922d,_0x100c26={},_0x55b75a=getValueByPath(_0x5ab760,[_0x3ad786(0x4cd)]);if(_0x55b75a!=null){let _0x4bc563=_0x55b75a;Array[_0x3ad786(0x266)](_0x4bc563)&&(_0x4bc563=_0x4bc563[_0x3ad786(0x4a8)](_0x1d48cc=>{return _0x1d48cc;})),setValueByPath(_0x100c26,[_0x3ad786(0x4cd)],_0x4bc563);}return _0x100c26;}function liveSendRealtimeInputParametersToMldev(_0x30f1cf){const _0x26e634=a2_0x8e922d,_0xda30={},_0x40b9cb=getValueByPath(_0x30f1cf,[_0x26e634(0x690)]);if(_0x40b9cb!=null){let _0x1a8a6b=tBlobs(_0x40b9cb);Array['isArray'](_0x1a8a6b)&&(_0x1a8a6b=_0x1a8a6b[_0x26e634(0x4a8)](_0x3814cd=>{return blobToMldev$2(_0x3814cd);})),setValueByPath(_0xda30,[_0x26e634(0x657)],_0x1a8a6b);}const _0x3976f5=getValueByPath(_0x30f1cf,[_0x26e634(0x2fb)]);_0x3976f5!=null&&setValueByPath(_0xda30,[_0x26e634(0x2fb)],blobToMldev$2(tAudioBlob(_0x3976f5)));const _0x5a9906=getValueByPath(_0x30f1cf,[_0x26e634(0x332)]);_0x5a9906!=null&&setValueByPath(_0xda30,[_0x26e634(0x332)],_0x5a9906);const _0x32638f=getValueByPath(_0x30f1cf,[_0x26e634(0x640)]);_0x32638f!=null&&setValueByPath(_0xda30,['video'],blobToMldev$2(tImageBlob(_0x32638f)));const _0x512ab9=getValueByPath(_0x30f1cf,[_0x26e634(0x1a8)]);_0x512ab9!=null&&setValueByPath(_0xda30,[_0x26e634(0x1a8)],_0x512ab9);const _0x3cc390=getValueByPath(_0x30f1cf,[_0x26e634(0x639)]);_0x3cc390!=null&&setValueByPath(_0xda30,[_0x26e634(0x639)],_0x3cc390);const _0x305599=getValueByPath(_0x30f1cf,[_0x26e634(0x4a2)]);return _0x305599!=null&&setValueByPath(_0xda30,[_0x26e634(0x4a2)],_0x305599),_0xda30;}function liveSendRealtimeInputParametersToVertex(_0x471264){const _0x167118=a2_0x8e922d,_0x107484={},_0x1afd9c=getValueByPath(_0x471264,[_0x167118(0x690)]);if(_0x1afd9c!=null){let _0x2aa554=tBlobs(_0x1afd9c);Array[_0x167118(0x266)](_0x2aa554)&&(_0x2aa554=_0x2aa554[_0x167118(0x4a8)](_0x2b177c=>{return _0x2b177c;})),setValueByPath(_0x107484,[_0x167118(0x657)],_0x2aa554);}const _0x3d4664=getValueByPath(_0x471264,[_0x167118(0x2fb)]);_0x3d4664!=null&&setValueByPath(_0x107484,[_0x167118(0x2fb)],tAudioBlob(_0x3d4664));const _0x3c8c47=getValueByPath(_0x471264,[_0x167118(0x332)]);_0x3c8c47!=null&&setValueByPath(_0x107484,[_0x167118(0x332)],_0x3c8c47);const _0x531d8b=getValueByPath(_0x471264,[_0x167118(0x640)]);_0x531d8b!=null&&setValueByPath(_0x107484,[_0x167118(0x640)],tImageBlob(_0x531d8b));const _0x508a07=getValueByPath(_0x471264,[_0x167118(0x1a8)]);_0x508a07!=null&&setValueByPath(_0x107484,[_0x167118(0x1a8)],_0x508a07);const _0x4b266e=getValueByPath(_0x471264,['activityStart']);_0x4b266e!=null&&setValueByPath(_0x107484,[_0x167118(0x639)],_0x4b266e);const _0x566b2f=getValueByPath(_0x471264,['activityEnd']);return _0x566b2f!=null&&setValueByPath(_0x107484,['activityEnd'],_0x566b2f),_0x107484;}function liveServerMessageFromVertex(_0x1bf145){const _0x4cec97=a2_0x8e922d,_0x18fe53={},_0xae284d=getValueByPath(_0x1bf145,[_0x4cec97(0x2f8)]);_0xae284d!=null&&setValueByPath(_0x18fe53,[_0x4cec97(0x2f8)],_0xae284d);const _0x19d395=getValueByPath(_0x1bf145,['serverContent']);_0x19d395!=null&&setValueByPath(_0x18fe53,[_0x4cec97(0x18d)],_0x19d395);const _0x521461=getValueByPath(_0x1bf145,[_0x4cec97(0x3c3)]);_0x521461!=null&&setValueByPath(_0x18fe53,[_0x4cec97(0x3c3)],_0x521461);const _0x1d161f=getValueByPath(_0x1bf145,['toolCallCancellation']);_0x1d161f!=null&&setValueByPath(_0x18fe53,['toolCallCancellation'],_0x1d161f);const _0xd8b436=getValueByPath(_0x1bf145,[_0x4cec97(0x3ac)]);_0xd8b436!=null&&setValueByPath(_0x18fe53,[_0x4cec97(0x3ac)],usageMetadataFromVertex(_0xd8b436));const _0x466a9b=getValueByPath(_0x1bf145,[_0x4cec97(0x12f)]);_0x466a9b!=null&&setValueByPath(_0x18fe53,['goAway'],_0x466a9b);const _0xa8cadb=getValueByPath(_0x1bf145,[_0x4cec97(0x5d5)]);_0xa8cadb!=null&&setValueByPath(_0x18fe53,['sessionResumptionUpdate'],_0xa8cadb);const _0x4fce8a=getValueByPath(_0x1bf145,['voiceActivityDetectionSignal']);_0x4fce8a!=null&&setValueByPath(_0x18fe53,[_0x4cec97(0x594)],_0x4fce8a);const _0x5c92c6=getValueByPath(_0x1bf145,['voiceActivity']);return _0x5c92c6!=null&&setValueByPath(_0x18fe53,[_0x4cec97(0x147)],voiceActivityFromVertex(_0x5c92c6)),_0x18fe53;}function partToMldev$2(_0x46c137){const _0x5b3744=a2_0x8e922d,_0x474df5={},_0x14ef89=getValueByPath(_0x46c137,['mediaResolution']);_0x14ef89!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x314)],_0x14ef89);const _0x467620=getValueByPath(_0x46c137,[_0x5b3744(0x686)]);_0x467620!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x686)],_0x467620);const _0x641ce2=getValueByPath(_0x46c137,[_0x5b3744(0x295)]);_0x641ce2!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x295)],_0x641ce2);const _0x1d9e88=getValueByPath(_0x46c137,[_0x5b3744(0x49d)]);_0x1d9e88!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x49d)],fileDataToMldev$2(_0x1d9e88));const _0x3736bc=getValueByPath(_0x46c137,[_0x5b3744(0x521)]);_0x3736bc!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x521)],functionCallToMldev$2(_0x3736bc));const _0x392986=getValueByPath(_0x46c137,[_0x5b3744(0x659)]);_0x392986!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x659)],_0x392986);const _0x5cf360=getValueByPath(_0x46c137,[_0x5b3744(0x54b)]);_0x5cf360!=null&&setValueByPath(_0x474df5,['inlineData'],blobToMldev$2(_0x5cf360));const _0x13921a=getValueByPath(_0x46c137,[_0x5b3744(0x1a8)]);_0x13921a!=null&&setValueByPath(_0x474df5,[_0x5b3744(0x1a8)],_0x13921a);const _0x409ac6=getValueByPath(_0x46c137,[_0x5b3744(0x4d4)]);_0x409ac6!=null&&setValueByPath(_0x474df5,['thought'],_0x409ac6);const _0x452164=getValueByPath(_0x46c137,[_0x5b3744(0x643)]);_0x452164!=null&&setValueByPath(_0x474df5,['thoughtSignature'],_0x452164);const _0x26a635=getValueByPath(_0x46c137,[_0x5b3744(0x3ad)]);return _0x26a635!=null&&setValueByPath(_0x474df5,['videoMetadata'],_0x26a635),_0x474df5;}function sessionResumptionConfigToMldev$1(_0x1c883d){const _0x5d4788=a2_0x8e922d,_0x421e2f={},_0x249d44=getValueByPath(_0x1c883d,['handle']);_0x249d44!=null&&setValueByPath(_0x421e2f,[_0x5d4788(0x5a9)],_0x249d44);if(getValueByPath(_0x1c883d,['transparent'])!==undefined)throw new Error('transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x421e2f;}function toolToMldev$2(_0x3a18b3){const _0x218231=a2_0x8e922d,_0x2cff3a={};if(getValueByPath(_0x3a18b3,[_0x218231(0x113)])!==undefined)throw new Error(_0x218231(0x238));const _0x5378ef=getValueByPath(_0x3a18b3,[_0x218231(0x6a1)]);_0x5378ef!=null&&setValueByPath(_0x2cff3a,['computerUse'],_0x5378ef);const _0x219f6a=getValueByPath(_0x3a18b3,[_0x218231(0x2c6)]);_0x219f6a!=null&&setValueByPath(_0x2cff3a,['fileSearch'],_0x219f6a);const _0x14c08b=getValueByPath(_0x3a18b3,[_0x218231(0x567)]);_0x14c08b!=null&&setValueByPath(_0x2cff3a,[_0x218231(0x567)],_0x14c08b);if(getValueByPath(_0x3a18b3,[_0x218231(0x11b)])!==undefined)throw new Error(_0x218231(0x244));const _0x529044=getValueByPath(_0x3a18b3,[_0x218231(0x4e2)]);if(_0x529044!=null){let _0xe5b34b=_0x529044;Array['isArray'](_0xe5b34b)&&(_0xe5b34b=_0xe5b34b[_0x218231(0x4a8)](_0x56faaa=>{return _0x56faaa;})),setValueByPath(_0x2cff3a,['functionDeclarations'],_0xe5b34b);}const _0x58c13f=getValueByPath(_0x3a18b3,['googleMaps']);_0x58c13f!=null&&setValueByPath(_0x2cff3a,[_0x218231(0x118)],googleMapsToMldev$2(_0x58c13f));const _0x5ddb7f=getValueByPath(_0x3a18b3,['googleSearch']);_0x5ddb7f!=null&&setValueByPath(_0x2cff3a,[_0x218231(0x1f9)],googleSearchToMldev$2(_0x5ddb7f));const _0x38d98e=getValueByPath(_0x3a18b3,[_0x218231(0x151)]);_0x38d98e!=null&&setValueByPath(_0x2cff3a,[_0x218231(0x151)],_0x38d98e);const _0x3187cd=getValueByPath(_0x3a18b3,[_0x218231(0x642)]);return _0x3187cd!=null&&setValueByPath(_0x2cff3a,[_0x218231(0x642)],_0x3187cd),_0x2cff3a;}function a2_0x28ed(_0x1f4170,_0x42b631){_0x1f4170=_0x1f4170-0xa7;const _0x3ea767=a2_0x3ea7();let _0x28edb7=_0x3ea767[_0x1f4170];return _0x28edb7;}function toolToVertex$1(_0x3ac849){const _0xd4ba69=a2_0x8e922d,_0x5d7809={},_0x2e5ab2=getValueByPath(_0x3ac849,[_0xd4ba69(0x113)]);_0x2e5ab2!=null&&setValueByPath(_0x5d7809,[_0xd4ba69(0x113)],_0x2e5ab2);const _0x37b30d=getValueByPath(_0x3ac849,[_0xd4ba69(0x6a1)]);_0x37b30d!=null&&setValueByPath(_0x5d7809,['computerUse'],_0x37b30d);if(getValueByPath(_0x3ac849,[_0xd4ba69(0x2c6)])!==undefined)throw new Error('fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');const _0x5bdd56=getValueByPath(_0x3ac849,[_0xd4ba69(0x567)]);_0x5bdd56!=null&&setValueByPath(_0x5d7809,[_0xd4ba69(0x567)],_0x5bdd56);const _0xa02c22=getValueByPath(_0x3ac849,[_0xd4ba69(0x11b)]);_0xa02c22!=null&&setValueByPath(_0x5d7809,[_0xd4ba69(0x11b)],_0xa02c22);const _0x4d9e27=getValueByPath(_0x3ac849,[_0xd4ba69(0x4e2)]);if(_0x4d9e27!=null){let _0x474b81=_0x4d9e27;Array['isArray'](_0x474b81)&&(_0x474b81=_0x474b81[_0xd4ba69(0x4a8)](_0x5c622e=>{return functionDeclarationToVertex$1(_0x5c622e);})),setValueByPath(_0x5d7809,[_0xd4ba69(0x4e2)],_0x474b81);}const _0x15fe80=getValueByPath(_0x3ac849,[_0xd4ba69(0x118)]);_0x15fe80!=null&&setValueByPath(_0x5d7809,['googleMaps'],_0x15fe80);const _0x3529d5=getValueByPath(_0x3ac849,[_0xd4ba69(0x1f9)]);_0x3529d5!=null&&setValueByPath(_0x5d7809,[_0xd4ba69(0x1f9)],_0x3529d5);const _0x39d4eb=getValueByPath(_0x3ac849,[_0xd4ba69(0x151)]);_0x39d4eb!=null&&setValueByPath(_0x5d7809,['googleSearchRetrieval'],_0x39d4eb);const _0x1d9480=getValueByPath(_0x3ac849,[_0xd4ba69(0x642)]);return _0x1d9480!=null&&setValueByPath(_0x5d7809,[_0xd4ba69(0x642)],_0x1d9480),_0x5d7809;}function usageMetadataFromVertex(_0x251910){const _0x52fca0=a2_0x8e922d,_0x1c2e39={},_0x2517bf=getValueByPath(_0x251910,[_0x52fca0(0x673)]);_0x2517bf!=null&&setValueByPath(_0x1c2e39,['promptTokenCount'],_0x2517bf);const _0x32e9d9=getValueByPath(_0x251910,[_0x52fca0(0x387)]);_0x32e9d9!=null&&setValueByPath(_0x1c2e39,[_0x52fca0(0x387)],_0x32e9d9);const _0x493714=getValueByPath(_0x251910,[_0x52fca0(0x6ab)]);_0x493714!=null&&setValueByPath(_0x1c2e39,[_0x52fca0(0xc2)],_0x493714);const _0xedd706=getValueByPath(_0x251910,[_0x52fca0(0x3c4)]);_0xedd706!=null&&setValueByPath(_0x1c2e39,[_0x52fca0(0x3c4)],_0xedd706);const _0x2e8a66=getValueByPath(_0x251910,[_0x52fca0(0x5b7)]);_0x2e8a66!=null&&setValueByPath(_0x1c2e39,['thoughtsTokenCount'],_0x2e8a66);const _0x413195=getValueByPath(_0x251910,[_0x52fca0(0x186)]);_0x413195!=null&&setValueByPath(_0x1c2e39,[_0x52fca0(0x186)],_0x413195);const _0x59770c=getValueByPath(_0x251910,['promptTokensDetails']);if(_0x59770c!=null){let _0x403ea6=_0x59770c;Array[_0x52fca0(0x266)](_0x403ea6)&&(_0x403ea6=_0x403ea6[_0x52fca0(0x4a8)](_0x1bc211=>{return _0x1bc211;})),setValueByPath(_0x1c2e39,[_0x52fca0(0x32d)],_0x403ea6);}const _0x50466e=getValueByPath(_0x251910,[_0x52fca0(0x531)]);if(_0x50466e!=null){let _0x16e773=_0x50466e;Array[_0x52fca0(0x266)](_0x16e773)&&(_0x16e773=_0x16e773['map'](_0x1c74c8=>{return _0x1c74c8;})),setValueByPath(_0x1c2e39,[_0x52fca0(0x531)],_0x16e773);}const _0x49fcfc=getValueByPath(_0x251910,[_0x52fca0(0x3fb)]);if(_0x49fcfc!=null){let _0x3c02c8=_0x49fcfc;Array[_0x52fca0(0x266)](_0x3c02c8)&&(_0x3c02c8=_0x3c02c8[_0x52fca0(0x4a8)](_0x2b01bc=>{return _0x2b01bc;})),setValueByPath(_0x1c2e39,[_0x52fca0(0x3b5)],_0x3c02c8);}const _0x128c9b=getValueByPath(_0x251910,[_0x52fca0(0x324)]);if(_0x128c9b!=null){let _0xd1eb8f=_0x128c9b;Array[_0x52fca0(0x266)](_0xd1eb8f)&&(_0xd1eb8f=_0xd1eb8f[_0x52fca0(0x4a8)](_0x3995a2=>{return _0x3995a2;})),setValueByPath(_0x1c2e39,[_0x52fca0(0x324)],_0xd1eb8f);}const _0x229d1d=getValueByPath(_0x251910,[_0x52fca0(0x146)]);return _0x229d1d!=null&&setValueByPath(_0x1c2e39,[_0x52fca0(0x146)],_0x229d1d),_0x1c2e39;}function voiceActivityFromVertex(_0x47a129){const _0x2c53b7=a2_0x8e922d,_0x20cb4e={},_0x38b9a0=getValueByPath(_0x47a129,[_0x2c53b7(0x37a)]);return _0x38b9a0!=null&&setValueByPath(_0x20cb4e,[_0x2c53b7(0x242)],_0x38b9a0),_0x20cb4e;}/**
|
|
82
|
+
* @license
|
|
83
|
+
* Copyright 2025 Google LLC
|
|
84
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
85
|
+
*/
|
|
86
|
+
function blobToMldev$1(_0x4c5345,_0x271de4){const _0x395b10=a2_0x8e922d,_0x3139c={},_0x246ce6=getValueByPath(_0x4c5345,[_0x395b10(0x529)]);_0x246ce6!=null&&setValueByPath(_0x3139c,['data'],_0x246ce6);if(getValueByPath(_0x4c5345,[_0x395b10(0x1c2)])!==undefined)throw new Error(_0x395b10(0x5d8));const _0x77051=getValueByPath(_0x4c5345,[_0x395b10(0x3c0)]);return _0x77051!=null&&setValueByPath(_0x3139c,[_0x395b10(0x3c0)],_0x77051),_0x3139c;}function candidateFromMldev(_0x59d960,_0x4c8a5e){const _0x2dcdd3=a2_0x8e922d,_0x2a04f6={},_0x44bee8=getValueByPath(_0x59d960,[_0x2dcdd3(0x4a6)]);_0x44bee8!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0x4a6)],_0x44bee8);const _0x20911f=getValueByPath(_0x59d960,['citationMetadata']);_0x20911f!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0x1fa)],citationMetadataFromMldev(_0x20911f));const _0x1feff2=getValueByPath(_0x59d960,[_0x2dcdd3(0xd6)]);_0x1feff2!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0xd6)],_0x1feff2);const _0xa8e988=getValueByPath(_0x59d960,[_0x2dcdd3(0x357)]);_0xa8e988!=null&&setValueByPath(_0x2a04f6,['finishReason'],_0xa8e988);const _0x1d42c1=getValueByPath(_0x59d960,[_0x2dcdd3(0x578)]);_0x1d42c1!=null&&setValueByPath(_0x2a04f6,['avgLogprobs'],_0x1d42c1);const _0x1134c3=getValueByPath(_0x59d960,[_0x2dcdd3(0x255)]);_0x1134c3!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0x255)],_0x1134c3);const _0x5cc5ee=getValueByPath(_0x59d960,[_0x2dcdd3(0x19b)]);_0x5cc5ee!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0x19b)],_0x5cc5ee);const _0x2ac654=getValueByPath(_0x59d960,[_0x2dcdd3(0x592)]);_0x2ac654!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0x592)],_0x2ac654);const _0x1d493c=getValueByPath(_0x59d960,['safetyRatings']);if(_0x1d493c!=null){let _0x5fa89d=_0x1d493c;Array[_0x2dcdd3(0x266)](_0x5fa89d)&&(_0x5fa89d=_0x5fa89d[_0x2dcdd3(0x4a8)](_0x143604=>{return _0x143604;})),setValueByPath(_0x2a04f6,[_0x2dcdd3(0x5e6)],_0x5fa89d);}const _0x197c2c=getValueByPath(_0x59d960,[_0x2dcdd3(0x1f8)]);return _0x197c2c!=null&&setValueByPath(_0x2a04f6,[_0x2dcdd3(0x1f8)],_0x197c2c),_0x2a04f6;}function citationMetadataFromMldev(_0x4ed1f0,_0x169a5a){const _0x21bcab=a2_0x8e922d,_0x1594b3={},_0x2e22e0=getValueByPath(_0x4ed1f0,['citationSources']);if(_0x2e22e0!=null){let _0x277032=_0x2e22e0;Array[_0x21bcab(0x266)](_0x277032)&&(_0x277032=_0x277032['map'](_0x4a93f8=>{return _0x4a93f8;})),setValueByPath(_0x1594b3,[_0x21bcab(0x354)],_0x277032);}return _0x1594b3;}function computeTokensParametersToVertex(_0x305c82,_0x5b4cb0,_0x1900d4){const _0x472a52=a2_0x8e922d,_0x169600={},_0x4376de=getValueByPath(_0x5b4cb0,[_0x472a52(0x638)]);_0x4376de!=null&&setValueByPath(_0x169600,[_0x472a52(0x334),_0x472a52(0x638)],tModel(_0x305c82,_0x4376de));const _0x5e1fd8=getValueByPath(_0x5b4cb0,[_0x472a52(0x684)]);if(_0x5e1fd8!=null){let _0x5e7f50=tContents(_0x5e1fd8);Array[_0x472a52(0x266)](_0x5e7f50)&&(_0x5e7f50=_0x5e7f50[_0x472a52(0x4a8)](_0xc3c017=>{return _0xc3c017;})),setValueByPath(_0x169600,['contents'],_0x5e7f50);}return _0x169600;}function computeTokensResponseFromVertex(_0x492f4c,_0x262ae3){const _0x165381=a2_0x8e922d,_0x805e26={},_0x365496=getValueByPath(_0x492f4c,['sdkHttpResponse']);_0x365496!=null&&setValueByPath(_0x805e26,[_0x165381(0x3a0)],_0x365496);const _0x5616b0=getValueByPath(_0x492f4c,['tokensInfo']);if(_0x5616b0!=null){let _0x2d5fe1=_0x5616b0;Array['isArray'](_0x2d5fe1)&&(_0x2d5fe1=_0x2d5fe1['map'](_0x335e85=>{return _0x335e85;})),setValueByPath(_0x805e26,[_0x165381(0x1e6)],_0x2d5fe1);}return _0x805e26;}function contentEmbeddingFromVertex(_0x9d27fe,_0x1f662d){const _0x55d05a=a2_0x8e922d,_0x5c4de6={},_0x401c25=getValueByPath(_0x9d27fe,[_0x55d05a(0x4d2)]);_0x401c25!=null&&setValueByPath(_0x5c4de6,[_0x55d05a(0x4d2)],_0x401c25);const _0x4f3246=getValueByPath(_0x9d27fe,[_0x55d05a(0x1da)]);return _0x4f3246!=null&&setValueByPath(_0x5c4de6,[_0x55d05a(0x1da)],contentEmbeddingStatisticsFromVertex(_0x4f3246)),_0x5c4de6;}function contentEmbeddingStatisticsFromVertex(_0x17f424,_0xfcc6d6){const _0x2c610c=a2_0x8e922d,_0x480c68={},_0x29d2fb=getValueByPath(_0x17f424,[_0x2c610c(0x33a)]);_0x29d2fb!=null&&setValueByPath(_0x480c68,[_0x2c610c(0x33a)],_0x29d2fb);const _0x51a219=getValueByPath(_0x17f424,[_0x2c610c(0x241)]);return _0x51a219!=null&&setValueByPath(_0x480c68,['tokenCount'],_0x51a219),_0x480c68;}function contentToMldev$1(_0xf4c09c,_0x459575){const _0x1a9e89=a2_0x8e922d,_0x46ecad={},_0x8560ee=getValueByPath(_0xf4c09c,['parts']);if(_0x8560ee!=null){let _0x3785d9=_0x8560ee;Array[_0x1a9e89(0x266)](_0x3785d9)&&(_0x3785d9=_0x3785d9['map'](_0x2a7873=>{return partToMldev$1(_0x2a7873);})),setValueByPath(_0x46ecad,[_0x1a9e89(0x694)],_0x3785d9);}const _0x10f340=getValueByPath(_0xf4c09c,[_0x1a9e89(0x31e)]);return _0x10f340!=null&&setValueByPath(_0x46ecad,[_0x1a9e89(0x31e)],_0x10f340),_0x46ecad;}function controlReferenceConfigToVertex(_0x31c1fd,_0x4c915d){const _0x1e980a=a2_0x8e922d,_0x582652={},_0x4b3622=getValueByPath(_0x31c1fd,[_0x1e980a(0x304)]);_0x4b3622!=null&&setValueByPath(_0x582652,[_0x1e980a(0x304)],_0x4b3622);const _0x39f19b=getValueByPath(_0x31c1fd,[_0x1e980a(0x4e5)]);return _0x39f19b!=null&&setValueByPath(_0x582652,[_0x1e980a(0x577)],_0x39f19b),_0x582652;}function countTokensConfigToMldev(_0xbe1ab2,_0xe41d15){const _0x2e2c1e=a2_0x8e922d,_0x4424d5={};if(getValueByPath(_0xbe1ab2,[_0x2e2c1e(0xd0)])!==undefined)throw new Error(_0x2e2c1e(0x359));if(getValueByPath(_0xbe1ab2,[_0x2e2c1e(0x376)])!==undefined)throw new Error(_0x2e2c1e(0x39e));if(getValueByPath(_0xbe1ab2,['generationConfig'])!==undefined)throw new Error(_0x2e2c1e(0x52c));return _0x4424d5;}function countTokensConfigToVertex(_0x5f49c3,_0x45ce0e,_0x6cc6e5){const _0x39ce12=a2_0x8e922d,_0x566d49={},_0x425a12=getValueByPath(_0x5f49c3,[_0x39ce12(0xd0)]);_0x45ce0e!==undefined&&_0x425a12!=null&&setValueByPath(_0x45ce0e,[_0x39ce12(0xd0)],tContent(_0x425a12));const _0x8d00c5=getValueByPath(_0x5f49c3,[_0x39ce12(0x376)]);if(_0x45ce0e!==undefined&&_0x8d00c5!=null){let _0x233ad9=_0x8d00c5;Array[_0x39ce12(0x266)](_0x233ad9)&&(_0x233ad9=_0x233ad9[_0x39ce12(0x4a8)](_0x3d5f5c=>{return toolToVertex(_0x3d5f5c);})),setValueByPath(_0x45ce0e,['tools'],_0x233ad9);}const _0x20a700=getValueByPath(_0x5f49c3,[_0x39ce12(0x558)]);return _0x45ce0e!==undefined&&_0x20a700!=null&&setValueByPath(_0x45ce0e,[_0x39ce12(0x558)],generationConfigToVertex(_0x20a700)),_0x566d49;}function countTokensParametersToMldev(_0x12e7c1,_0x845444,_0x1e2bd3){const _0x53f25e=a2_0x8e922d,_0x500109={},_0x19c7b0=getValueByPath(_0x845444,[_0x53f25e(0x638)]);_0x19c7b0!=null&&setValueByPath(_0x500109,['_url',_0x53f25e(0x638)],tModel(_0x12e7c1,_0x19c7b0));const _0x3ef9d0=getValueByPath(_0x845444,[_0x53f25e(0x684)]);if(_0x3ef9d0!=null){let _0x35bab4=tContents(_0x3ef9d0);Array[_0x53f25e(0x266)](_0x35bab4)&&(_0x35bab4=_0x35bab4['map'](_0x57884a=>{return contentToMldev$1(_0x57884a);})),setValueByPath(_0x500109,[_0x53f25e(0x684)],_0x35bab4);}const _0x13519a=getValueByPath(_0x845444,[_0x53f25e(0x182)]);return _0x13519a!=null&&countTokensConfigToMldev(_0x13519a),_0x500109;}function countTokensParametersToVertex(_0x425ece,_0x2a00cf,_0x5d2c29){const _0x18933a=a2_0x8e922d,_0x3e387d={},_0x390af3=getValueByPath(_0x2a00cf,[_0x18933a(0x638)]);_0x390af3!=null&&setValueByPath(_0x3e387d,['_url',_0x18933a(0x638)],tModel(_0x425ece,_0x390af3));const _0x1dbaa9=getValueByPath(_0x2a00cf,[_0x18933a(0x684)]);if(_0x1dbaa9!=null){let _0xbaf200=tContents(_0x1dbaa9);Array[_0x18933a(0x266)](_0xbaf200)&&(_0xbaf200=_0xbaf200['map'](_0x527f06=>{return _0x527f06;})),setValueByPath(_0x3e387d,[_0x18933a(0x684)],_0xbaf200);}const _0x3029bd=getValueByPath(_0x2a00cf,[_0x18933a(0x182)]);return _0x3029bd!=null&&countTokensConfigToVertex(_0x3029bd,_0x3e387d),_0x3e387d;}function countTokensResponseFromMldev(_0x4332a4,_0x2f6fdc){const _0x40e094=a2_0x8e922d,_0x56f3e1={},_0x2efb6e=getValueByPath(_0x4332a4,['sdkHttpResponse']);_0x2efb6e!=null&&setValueByPath(_0x56f3e1,[_0x40e094(0x3a0)],_0x2efb6e);const _0x1d7c84=getValueByPath(_0x4332a4,['totalTokens']);_0x1d7c84!=null&&setValueByPath(_0x56f3e1,[_0x40e094(0x111)],_0x1d7c84);const _0xc180fa=getValueByPath(_0x4332a4,[_0x40e094(0x387)]);return _0xc180fa!=null&&setValueByPath(_0x56f3e1,[_0x40e094(0x387)],_0xc180fa),_0x56f3e1;}function countTokensResponseFromVertex(_0x2bf2e1,_0x670fc3){const _0x3b05f4=a2_0x8e922d,_0x5f3938={},_0x5c921c=getValueByPath(_0x2bf2e1,[_0x3b05f4(0x3a0)]);_0x5c921c!=null&&setValueByPath(_0x5f3938,['sdkHttpResponse'],_0x5c921c);const _0x196a95=getValueByPath(_0x2bf2e1,[_0x3b05f4(0x111)]);return _0x196a95!=null&&setValueByPath(_0x5f3938,[_0x3b05f4(0x111)],_0x196a95),_0x5f3938;}function deleteModelParametersToMldev(_0x4bdb30,_0x12bd84,_0x3af159){const _0x38f9d6=a2_0x8e922d,_0x560245={},_0x122f0c=getValueByPath(_0x12bd84,[_0x38f9d6(0x638)]);return _0x122f0c!=null&&setValueByPath(_0x560245,[_0x38f9d6(0x334),'name'],tModel(_0x4bdb30,_0x122f0c)),_0x560245;}function deleteModelParametersToVertex(_0x3b8285,_0x2621af,_0x48f713){const _0x33cb41=a2_0x8e922d,_0x5a1957={},_0x54c42f=getValueByPath(_0x2621af,[_0x33cb41(0x638)]);return _0x54c42f!=null&&setValueByPath(_0x5a1957,[_0x33cb41(0x334),'name'],tModel(_0x3b8285,_0x54c42f)),_0x5a1957;}function deleteModelResponseFromMldev(_0x39cba4,_0x29fc86){const _0x402c25=a2_0x8e922d,_0x33c7a6={},_0x449f00=getValueByPath(_0x39cba4,[_0x402c25(0x3a0)]);return _0x449f00!=null&&setValueByPath(_0x33c7a6,[_0x402c25(0x3a0)],_0x449f00),_0x33c7a6;}function deleteModelResponseFromVertex(_0x55db71,_0x43ac0c){const _0x37308f=a2_0x8e922d,_0x1cc4bb={},_0x1dbb5b=getValueByPath(_0x55db71,['sdkHttpResponse']);return _0x1dbb5b!=null&&setValueByPath(_0x1cc4bb,[_0x37308f(0x3a0)],_0x1dbb5b),_0x1cc4bb;}function editImageConfigToVertex(_0x50016e,_0x11ba84,_0x1970d0){const _0x6471de=a2_0x8e922d,_0x23a302={},_0x1ec086=getValueByPath(_0x50016e,['outputGcsUri']);_0x11ba84!==undefined&&_0x1ec086!=null&&setValueByPath(_0x11ba84,['parameters',_0x6471de(0x16d)],_0x1ec086);const _0x362a4f=getValueByPath(_0x50016e,[_0x6471de(0x4e0)]);_0x11ba84!==undefined&&_0x362a4f!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),_0x6471de(0x4e0)],_0x362a4f);const _0x4cb9fa=getValueByPath(_0x50016e,['numberOfImages']);_0x11ba84!==undefined&&_0x4cb9fa!=null&&setValueByPath(_0x11ba84,['parameters',_0x6471de(0x276)],_0x4cb9fa);const _0x100362=getValueByPath(_0x50016e,[_0x6471de(0x27e)]);_0x11ba84!==undefined&&_0x100362!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),_0x6471de(0x27e)],_0x100362);const _0x4e2ff8=getValueByPath(_0x50016e,[_0x6471de(0x51e)]);_0x11ba84!==undefined&&_0x4e2ff8!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),_0x6471de(0x51e)],_0x4e2ff8);const _0x250289=getValueByPath(_0x50016e,[_0x6471de(0x398)]);_0x11ba84!==undefined&&_0x250289!=null&&setValueByPath(_0x11ba84,['parameters',_0x6471de(0x398)],_0x250289);const _0x4888ce=getValueByPath(_0x50016e,[_0x6471de(0x3d7)]);_0x11ba84!==undefined&&_0x4888ce!=null&&setValueByPath(_0x11ba84,['parameters','safetySetting'],_0x4888ce);const _0x4bb726=getValueByPath(_0x50016e,[_0x6471de(0x47c)]);_0x11ba84!==undefined&&_0x4bb726!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),'personGeneration'],_0x4bb726);const _0x5062cc=getValueByPath(_0x50016e,[_0x6471de(0x59a)]);_0x11ba84!==undefined&&_0x5062cc!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),'includeSafetyAttributes'],_0x5062cc);const _0xb418b9=getValueByPath(_0x50016e,['includeRaiReason']);_0x11ba84!==undefined&&_0xb418b9!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),'includeRaiReason'],_0xb418b9);const _0x4e9819=getValueByPath(_0x50016e,[_0x6471de(0x402)]);_0x11ba84!==undefined&&_0x4e9819!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),'language'],_0x4e9819);const _0x2880e6=getValueByPath(_0x50016e,['outputMimeType']);_0x11ba84!==undefined&&_0x2880e6!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),_0x6471de(0x231),'mimeType'],_0x2880e6);const _0x5f2aa6=getValueByPath(_0x50016e,[_0x6471de(0x53c)]);_0x11ba84!==undefined&&_0x5f2aa6!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),_0x6471de(0x231),_0x6471de(0x382)],_0x5f2aa6);const _0x5dbb2f=getValueByPath(_0x50016e,[_0x6471de(0xe4)]);_0x11ba84!==undefined&&_0x5dbb2f!=null&&setValueByPath(_0x11ba84,['parameters',_0x6471de(0xe4)],_0x5dbb2f);const _0x5afc41=getValueByPath(_0x50016e,[_0x6471de(0xee)]);_0x11ba84!==undefined&&_0x5afc41!=null&&setValueByPath(_0x11ba84,['labels'],_0x5afc41);const _0x167ce2=getValueByPath(_0x50016e,[_0x6471de(0x1ca)]);_0x11ba84!==undefined&&_0x167ce2!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),'editMode'],_0x167ce2);const _0x4e615d=getValueByPath(_0x50016e,[_0x6471de(0x606)]);return _0x11ba84!==undefined&&_0x4e615d!=null&&setValueByPath(_0x11ba84,[_0x6471de(0x28c),_0x6471de(0x65f),'baseSteps'],_0x4e615d),_0x23a302;}function editImageParametersInternalToVertex(_0x32dacc,_0x5eb072,_0x2105e6){const _0x5b8ca6=a2_0x8e922d,_0x36a9db={},_0x2b1d82=getValueByPath(_0x5eb072,['model']);_0x2b1d82!=null&&setValueByPath(_0x36a9db,['_url','model'],tModel(_0x32dacc,_0x2b1d82));const _0x383e43=getValueByPath(_0x5eb072,[_0x5b8ca6(0x624)]);_0x383e43!=null&&setValueByPath(_0x36a9db,[_0x5b8ca6(0x1a2),_0x5b8ca6(0x624)],_0x383e43);const _0x309810=getValueByPath(_0x5eb072,[_0x5b8ca6(0x2e2)]);if(_0x309810!=null){let _0x18fdea=_0x309810;Array['isArray'](_0x18fdea)&&(_0x18fdea=_0x18fdea[_0x5b8ca6(0x4a8)](_0x26a21b=>{return referenceImageAPIInternalToVertex(_0x26a21b);})),setValueByPath(_0x36a9db,[_0x5b8ca6(0x1a2),_0x5b8ca6(0x2e2)],_0x18fdea);}const _0x1fc269=getValueByPath(_0x5eb072,['config']);return _0x1fc269!=null&&editImageConfigToVertex(_0x1fc269,_0x36a9db),_0x36a9db;}function editImageResponseFromVertex(_0x4a42bf,_0x55243d){const _0x3b429f=a2_0x8e922d,_0x422f2a={},_0x14c8a9=getValueByPath(_0x4a42bf,[_0x3b429f(0x3a0)]);_0x14c8a9!=null&&setValueByPath(_0x422f2a,['sdkHttpResponse'],_0x14c8a9);const _0x27c90c=getValueByPath(_0x4a42bf,[_0x3b429f(0x60a)]);if(_0x27c90c!=null){let _0x5242ef=_0x27c90c;Array[_0x3b429f(0x266)](_0x5242ef)&&(_0x5242ef=_0x5242ef[_0x3b429f(0x4a8)](_0x5827c5=>{return generatedImageFromVertex(_0x5827c5);})),setValueByPath(_0x422f2a,['generatedImages'],_0x5242ef);}return _0x422f2a;}function embedContentConfigToMldev(_0x1e1228,_0x124543,_0x36f51a){const _0x4c4a8d=a2_0x8e922d,_0x58ee42={},_0x36b14f=getValueByPath(_0x1e1228,[_0x4c4a8d(0x528)]);_0x124543!==undefined&&_0x36b14f!=null&&setValueByPath(_0x124543,['requests[]',_0x4c4a8d(0x528)],_0x36b14f);const _0x2282dd=getValueByPath(_0x1e1228,[_0x4c4a8d(0x672)]);_0x124543!==undefined&&_0x2282dd!=null&&setValueByPath(_0x124543,[_0x4c4a8d(0x458),_0x4c4a8d(0x672)],_0x2282dd);const _0x43b79a=getValueByPath(_0x1e1228,[_0x4c4a8d(0x47d)]);_0x124543!==undefined&&_0x43b79a!=null&&setValueByPath(_0x124543,[_0x4c4a8d(0x458),_0x4c4a8d(0x47d)],_0x43b79a);if(getValueByPath(_0x1e1228,[_0x4c4a8d(0x3c0)])!==undefined)throw new Error(_0x4c4a8d(0x471));if(getValueByPath(_0x1e1228,[_0x4c4a8d(0x16a)])!==undefined)throw new Error('autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x58ee42;}function embedContentConfigToVertex(_0xffb710,_0x858ad,_0xe1a28){const _0x983a62=a2_0x8e922d,_0x1a2636={},_0x4d99a8=getValueByPath(_0xffb710,['taskType']);_0x858ad!==undefined&&_0x4d99a8!=null&&setValueByPath(_0x858ad,['instances[]','task_type'],_0x4d99a8);const _0x20e88e=getValueByPath(_0xffb710,[_0x983a62(0x672)]);_0x858ad!==undefined&&_0x20e88e!=null&&setValueByPath(_0x858ad,[_0x983a62(0xc0),_0x983a62(0x672)],_0x20e88e);const _0x24a677=getValueByPath(_0xffb710,[_0x983a62(0x47d)]);_0x858ad!==undefined&&_0x24a677!=null&&setValueByPath(_0x858ad,[_0x983a62(0x28c),_0x983a62(0x47d)],_0x24a677);const _0x577d2f=getValueByPath(_0xffb710,[_0x983a62(0x3c0)]);_0x858ad!==undefined&&_0x577d2f!=null&&setValueByPath(_0x858ad,[_0x983a62(0xc0),_0x983a62(0x3c0)],_0x577d2f);const _0x4de718=getValueByPath(_0xffb710,[_0x983a62(0x16a)]);return _0x858ad!==undefined&&_0x4de718!=null&&setValueByPath(_0x858ad,['parameters','autoTruncate'],_0x4de718),_0x1a2636;}function embedContentParametersToMldev(_0x316f10,_0x502c7d,_0x12bf8d){const _0x364fe4=a2_0x8e922d,_0x10c246={},_0x30eca4=getValueByPath(_0x502c7d,[_0x364fe4(0x638)]);_0x30eca4!=null&&setValueByPath(_0x10c246,[_0x364fe4(0x334),'model'],tModel(_0x316f10,_0x30eca4));const _0x322adb=getValueByPath(_0x502c7d,[_0x364fe4(0x684)]);if(_0x322adb!=null){let _0x306390=tContentsForEmbed(_0x316f10,_0x322adb);Array['isArray'](_0x306390)&&(_0x306390=_0x306390[_0x364fe4(0x4a8)](_0x3bfbd7=>{return _0x3bfbd7;})),setValueByPath(_0x10c246,[_0x364fe4(0x458),_0x364fe4(0x4a6)],_0x306390);}const _0xd9f224=getValueByPath(_0x502c7d,[_0x364fe4(0x182)]);_0xd9f224!=null&&embedContentConfigToMldev(_0xd9f224,_0x10c246);const _0x258f2c=getValueByPath(_0x502c7d,[_0x364fe4(0x638)]);return _0x258f2c!==undefined&&setValueByPath(_0x10c246,[_0x364fe4(0x458),_0x364fe4(0x638)],tModel(_0x316f10,_0x258f2c)),_0x10c246;}function embedContentParametersToVertex(_0x45b6ea,_0x113851,_0x22c9fb){const _0x24d098=a2_0x8e922d,_0xc1412a={},_0x291b15=getValueByPath(_0x113851,[_0x24d098(0x638)]);_0x291b15!=null&&setValueByPath(_0xc1412a,[_0x24d098(0x334),_0x24d098(0x638)],tModel(_0x45b6ea,_0x291b15));const _0x4e9a96=getValueByPath(_0x113851,['contents']);if(_0x4e9a96!=null){let _0x374f8e=tContentsForEmbed(_0x45b6ea,_0x4e9a96);Array[_0x24d098(0x266)](_0x374f8e)&&(_0x374f8e=_0x374f8e[_0x24d098(0x4a8)](_0x426aaf=>{return _0x426aaf;})),setValueByPath(_0xc1412a,[_0x24d098(0xc0),_0x24d098(0x4a6)],_0x374f8e);}const _0x365bef=getValueByPath(_0x113851,[_0x24d098(0x182)]);return _0x365bef!=null&&embedContentConfigToVertex(_0x365bef,_0xc1412a),_0xc1412a;}function embedContentResponseFromMldev(_0x13917c,_0x5cddd0){const _0x442e97=a2_0x8e922d,_0x3f94c4={},_0x26eb1f=getValueByPath(_0x13917c,[_0x442e97(0x3a0)]);_0x26eb1f!=null&&setValueByPath(_0x3f94c4,[_0x442e97(0x3a0)],_0x26eb1f);const _0x155fea=getValueByPath(_0x13917c,[_0x442e97(0x338)]);if(_0x155fea!=null){let _0x18abf6=_0x155fea;Array[_0x442e97(0x266)](_0x18abf6)&&(_0x18abf6=_0x18abf6[_0x442e97(0x4a8)](_0x554822=>{return _0x554822;})),setValueByPath(_0x3f94c4,['embeddings'],_0x18abf6);}const _0x396e7a=getValueByPath(_0x13917c,[_0x442e97(0x172)]);return _0x396e7a!=null&&setValueByPath(_0x3f94c4,[_0x442e97(0x172)],_0x396e7a),_0x3f94c4;}function embedContentResponseFromVertex(_0x45ccac,_0x4ea46b){const _0x5d3c37=a2_0x8e922d,_0x7fea1={},_0x3fbf2c=getValueByPath(_0x45ccac,[_0x5d3c37(0x3a0)]);_0x3fbf2c!=null&&setValueByPath(_0x7fea1,[_0x5d3c37(0x3a0)],_0x3fbf2c);const _0x3a1c9e=getValueByPath(_0x45ccac,['predictions[]',_0x5d3c37(0x338)]);if(_0x3a1c9e!=null){let _0xac6f71=_0x3a1c9e;Array[_0x5d3c37(0x266)](_0xac6f71)&&(_0xac6f71=_0xac6f71[_0x5d3c37(0x4a8)](_0xa7ee96=>{return contentEmbeddingFromVertex(_0xa7ee96);})),setValueByPath(_0x7fea1,[_0x5d3c37(0x338)],_0xac6f71);}const _0x5ef4ad=getValueByPath(_0x45ccac,['metadata']);return _0x5ef4ad!=null&&setValueByPath(_0x7fea1,[_0x5d3c37(0x172)],_0x5ef4ad),_0x7fea1;}function endpointFromVertex(_0x274a4f,_0x162f40){const _0x3221dc=a2_0x8e922d,_0x5e7dae={},_0x3560f6=getValueByPath(_0x274a4f,['endpoint']);_0x3560f6!=null&&setValueByPath(_0x5e7dae,[_0x3221dc(0x206)],_0x3560f6);const _0x5c7c73=getValueByPath(_0x274a4f,[_0x3221dc(0x372)]);return _0x5c7c73!=null&&setValueByPath(_0x5e7dae,[_0x3221dc(0x372)],_0x5c7c73),_0x5e7dae;}function fileDataToMldev$1(_0xe0e298,_0x4f23c4){const _0x437bfd=a2_0x8e922d,_0x44af62={};if(getValueByPath(_0xe0e298,[_0x437bfd(0x1c2)])!==undefined)throw new Error(_0x437bfd(0x5d8));const _0x3909b6=getValueByPath(_0xe0e298,['fileUri']);_0x3909b6!=null&&setValueByPath(_0x44af62,[_0x437bfd(0x3d0)],_0x3909b6);const _0xd803a3=getValueByPath(_0xe0e298,[_0x437bfd(0x3c0)]);return _0xd803a3!=null&&setValueByPath(_0x44af62,[_0x437bfd(0x3c0)],_0xd803a3),_0x44af62;}function functionCallToMldev$1(_0x2becee,_0x26c72a){const _0x37f339=a2_0x8e922d,_0x2410ea={},_0x3255e3=getValueByPath(_0x2becee,['id']);_0x3255e3!=null&&setValueByPath(_0x2410ea,['id'],_0x3255e3);const _0x2eeec6=getValueByPath(_0x2becee,[_0x37f339(0x122)]);_0x2eeec6!=null&&setValueByPath(_0x2410ea,[_0x37f339(0x122)],_0x2eeec6);const _0x33ce5f=getValueByPath(_0x2becee,[_0x37f339(0x206)]);_0x33ce5f!=null&&setValueByPath(_0x2410ea,[_0x37f339(0x206)],_0x33ce5f);if(getValueByPath(_0x2becee,[_0x37f339(0x571)])!==undefined)throw new Error(_0x37f339(0x493));if(getValueByPath(_0x2becee,[_0x37f339(0x2fe)])!==undefined)throw new Error(_0x37f339(0x520));return _0x2410ea;}function functionCallingConfigToMldev(_0x2b165,_0x541a61){const _0x75cbba=a2_0x8e922d,_0x2f8a5b={},_0x52b13d=getValueByPath(_0x2b165,['allowedFunctionNames']);_0x52b13d!=null&&setValueByPath(_0x2f8a5b,[_0x75cbba(0x556)],_0x52b13d);const _0x4cd0d1=getValueByPath(_0x2b165,[_0x75cbba(0x2de)]);_0x4cd0d1!=null&&setValueByPath(_0x2f8a5b,[_0x75cbba(0x2de)],_0x4cd0d1);if(getValueByPath(_0x2b165,[_0x75cbba(0x4eb)])!==undefined)throw new Error(_0x75cbba(0x43d));return _0x2f8a5b;}function functionDeclarationToVertex(_0x379b3d,_0x5223e2){const _0x3511db=a2_0x8e922d,_0xb4413e={},_0x4ea908=getValueByPath(_0x379b3d,[_0x3511db(0x4ea)]);_0x4ea908!=null&&setValueByPath(_0xb4413e,[_0x3511db(0x4ea)],_0x4ea908);const _0x213e99=getValueByPath(_0x379b3d,[_0x3511db(0x206)]);_0x213e99!=null&&setValueByPath(_0xb4413e,['name'],_0x213e99);const _0x5343cd=getValueByPath(_0x379b3d,['parameters']);_0x5343cd!=null&&setValueByPath(_0xb4413e,[_0x3511db(0x28c)],_0x5343cd);const _0x3c26cf=getValueByPath(_0x379b3d,[_0x3511db(0x3e7)]);_0x3c26cf!=null&&setValueByPath(_0xb4413e,[_0x3511db(0x3e7)],_0x3c26cf);const _0x28826d=getValueByPath(_0x379b3d,['response']);_0x28826d!=null&&setValueByPath(_0xb4413e,[_0x3511db(0x1d3)],_0x28826d);const _0x5da647=getValueByPath(_0x379b3d,[_0x3511db(0x13c)]);_0x5da647!=null&&setValueByPath(_0xb4413e,['responseJsonSchema'],_0x5da647);if(getValueByPath(_0x379b3d,[_0x3511db(0x4b4)])!==undefined)throw new Error(_0x3511db(0xe1));return _0xb4413e;}function generateContentConfigToMldev(_0x27e183,_0x4f7ae7,_0x114401,_0x58814b){const _0x82eac8=a2_0x8e922d,_0x57d577={},_0x3481f1=getValueByPath(_0x4f7ae7,[_0x82eac8(0xd0)]);_0x114401!==undefined&&_0x3481f1!=null&&setValueByPath(_0x114401,[_0x82eac8(0xd0)],contentToMldev$1(tContent(_0x3481f1)));const _0x5afc19=getValueByPath(_0x4f7ae7,[_0x82eac8(0x1e3)]);_0x5afc19!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x1e3)],_0x5afc19);const _0x297978=getValueByPath(_0x4f7ae7,['topP']);_0x297978!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x159)],_0x297978);const _0x24417b=getValueByPath(_0x4f7ae7,[_0x82eac8(0x411)]);_0x24417b!=null&&setValueByPath(_0x57d577,['topK'],_0x24417b);const _0x4e968f=getValueByPath(_0x4f7ae7,['candidateCount']);_0x4e968f!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x268)],_0x4e968f);const _0x58f779=getValueByPath(_0x4f7ae7,[_0x82eac8(0x3fc)]);_0x58f779!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x3fc)],_0x58f779);const _0x43164b=getValueByPath(_0x4f7ae7,['stopSequences']);_0x43164b!=null&&setValueByPath(_0x57d577,['stopSequences'],_0x43164b);const _0x235e03=getValueByPath(_0x4f7ae7,[_0x82eac8(0x120)]);_0x235e03!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x120)],_0x235e03);const _0x1a2bc1=getValueByPath(_0x4f7ae7,['logprobs']);_0x1a2bc1!=null&&setValueByPath(_0x57d577,['logprobs'],_0x1a2bc1);const _0x111eed=getValueByPath(_0x4f7ae7,[_0x82eac8(0x5b1)]);_0x111eed!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x5b1)],_0x111eed);const _0x506375=getValueByPath(_0x4f7ae7,[_0x82eac8(0x54f)]);_0x506375!=null&&setValueByPath(_0x57d577,['frequencyPenalty'],_0x506375);const _0x3c7cf4=getValueByPath(_0x4f7ae7,[_0x82eac8(0x398)]);_0x3c7cf4!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x398)],_0x3c7cf4);const _0x5e710f=getValueByPath(_0x4f7ae7,[_0x82eac8(0x335)]);_0x5e710f!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x335)],_0x5e710f);const _0x2178c4=getValueByPath(_0x4f7ae7,['responseSchema']);_0x2178c4!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x475)],tSchema(_0x2178c4));const _0x1f37a7=getValueByPath(_0x4f7ae7,[_0x82eac8(0x13c)]);_0x1f37a7!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x13c)],_0x1f37a7);if(getValueByPath(_0x4f7ae7,[_0x82eac8(0x69b)])!==undefined)throw new Error(_0x82eac8(0x45a));if(getValueByPath(_0x4f7ae7,[_0x82eac8(0x23a)])!==undefined)throw new Error(_0x82eac8(0x273));const _0x5e9503=getValueByPath(_0x4f7ae7,[_0x82eac8(0x64c)]);if(_0x114401!==undefined&&_0x5e9503!=null){let _0x200370=_0x5e9503;Array[_0x82eac8(0x266)](_0x200370)&&(_0x200370=_0x200370[_0x82eac8(0x4a8)](_0x1193e9=>{return safetySettingToMldev(_0x1193e9);})),setValueByPath(_0x114401,[_0x82eac8(0x64c)],_0x200370);}const _0x17dd2e=getValueByPath(_0x4f7ae7,[_0x82eac8(0x376)]);if(_0x114401!==undefined&&_0x17dd2e!=null){let _0x578884=tTools(_0x17dd2e);Array[_0x82eac8(0x266)](_0x578884)&&(_0x578884=_0x578884[_0x82eac8(0x4a8)](_0xab91a9=>{return toolToMldev$1(tTool(_0xab91a9));})),setValueByPath(_0x114401,['tools'],_0x578884);}const _0x1ed289=getValueByPath(_0x4f7ae7,['toolConfig']);_0x114401!==undefined&&_0x1ed289!=null&&setValueByPath(_0x114401,[_0x82eac8(0x264)],toolConfigToMldev(_0x1ed289));if(getValueByPath(_0x4f7ae7,[_0x82eac8(0xee)])!==undefined)throw new Error('labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x2463e9=getValueByPath(_0x4f7ae7,['cachedContent']);_0x114401!==undefined&&_0x2463e9!=null&&setValueByPath(_0x114401,[_0x82eac8(0x433)],tCachedContentName(_0x27e183,_0x2463e9));const _0x237e51=getValueByPath(_0x4f7ae7,[_0x82eac8(0x2ee)]);_0x237e51!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x2ee)],_0x237e51);const _0xa1ef72=getValueByPath(_0x4f7ae7,[_0x82eac8(0x314)]);_0xa1ef72!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x314)],_0xa1ef72);const _0x39b94a=getValueByPath(_0x4f7ae7,[_0x82eac8(0xd9)]);_0x39b94a!=null&&setValueByPath(_0x57d577,['speechConfig'],tSpeechConfig(_0x39b94a));if(getValueByPath(_0x4f7ae7,[_0x82eac8(0x4ca)])!==undefined)throw new Error(_0x82eac8(0x13d));const _0x4c38be=getValueByPath(_0x4f7ae7,['thinkingConfig']);_0x4c38be!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x10b)],_0x4c38be);const _0x1af9d5=getValueByPath(_0x4f7ae7,['imageConfig']);_0x1af9d5!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x478)],imageConfigToMldev(_0x1af9d5));const _0x2fbd38=getValueByPath(_0x4f7ae7,[_0x82eac8(0x679)]);_0x2fbd38!=null&&setValueByPath(_0x57d577,[_0x82eac8(0x679)],_0x2fbd38);if(getValueByPath(_0x4f7ae7,[_0x82eac8(0x3b1)])!==undefined)throw new Error(_0x82eac8(0x3c7));return _0x57d577;}function generateContentConfigToVertex(_0x402899,_0x55148c,_0x4ec2ab,_0x506f23){const _0x25d29a=a2_0x8e922d,_0x55c2d7={},_0x313f01=getValueByPath(_0x55148c,[_0x25d29a(0xd0)]);_0x4ec2ab!==undefined&&_0x313f01!=null&&setValueByPath(_0x4ec2ab,[_0x25d29a(0xd0)],tContent(_0x313f01));const _0x35b635=getValueByPath(_0x55148c,[_0x25d29a(0x1e3)]);_0x35b635!=null&&setValueByPath(_0x55c2d7,['temperature'],_0x35b635);const _0x7b7d10=getValueByPath(_0x55148c,[_0x25d29a(0x159)]);_0x7b7d10!=null&&setValueByPath(_0x55c2d7,['topP'],_0x7b7d10);const _0x17e007=getValueByPath(_0x55148c,['topK']);_0x17e007!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x411)],_0x17e007);const _0x369016=getValueByPath(_0x55148c,[_0x25d29a(0x268)]);_0x369016!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x268)],_0x369016);const _0x1b1bb7=getValueByPath(_0x55148c,['maxOutputTokens']);_0x1b1bb7!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x3fc)],_0x1b1bb7);const _0x554e9b=getValueByPath(_0x55148c,['stopSequences']);_0x554e9b!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x278)],_0x554e9b);const _0x270d70=getValueByPath(_0x55148c,[_0x25d29a(0x120)]);_0x270d70!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x120)],_0x270d70);const _0x21e966=getValueByPath(_0x55148c,[_0x25d29a(0x2db)]);_0x21e966!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x2db)],_0x21e966);const _0x33db34=getValueByPath(_0x55148c,[_0x25d29a(0x5b1)]);_0x33db34!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x5b1)],_0x33db34);const _0xa02797=getValueByPath(_0x55148c,[_0x25d29a(0x54f)]);_0xa02797!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x54f)],_0xa02797);const _0x568d30=getValueByPath(_0x55148c,[_0x25d29a(0x398)]);_0x568d30!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x398)],_0x568d30);const _0x97719d=getValueByPath(_0x55148c,[_0x25d29a(0x335)]);_0x97719d!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x335)],_0x97719d);const _0x4b22a8=getValueByPath(_0x55148c,['responseSchema']);_0x4b22a8!=null&&setValueByPath(_0x55c2d7,['responseSchema'],tSchema(_0x4b22a8));const _0x464ff8=getValueByPath(_0x55148c,[_0x25d29a(0x13c)]);_0x464ff8!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x13c)],_0x464ff8);const _0x145017=getValueByPath(_0x55148c,[_0x25d29a(0x69b)]);_0x145017!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x69b)],_0x145017);const _0x3af75d=getValueByPath(_0x55148c,['modelSelectionConfig']);_0x3af75d!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x1db)],_0x3af75d);const _0x2a5b10=getValueByPath(_0x55148c,['safetySettings']);if(_0x4ec2ab!==undefined&&_0x2a5b10!=null){let _0x5bbc45=_0x2a5b10;Array[_0x25d29a(0x266)](_0x5bbc45)&&(_0x5bbc45=_0x5bbc45[_0x25d29a(0x4a8)](_0x40aa75=>{return _0x40aa75;})),setValueByPath(_0x4ec2ab,[_0x25d29a(0x64c)],_0x5bbc45);}const _0x105231=getValueByPath(_0x55148c,['tools']);if(_0x4ec2ab!==undefined&&_0x105231!=null){let _0x4bb1fa=tTools(_0x105231);Array[_0x25d29a(0x266)](_0x4bb1fa)&&(_0x4bb1fa=_0x4bb1fa[_0x25d29a(0x4a8)](_0x9ffc11=>{return toolToVertex(tTool(_0x9ffc11));})),setValueByPath(_0x4ec2ab,['tools'],_0x4bb1fa);}const _0xbbfa69=getValueByPath(_0x55148c,[_0x25d29a(0x264)]);_0x4ec2ab!==undefined&&_0xbbfa69!=null&&setValueByPath(_0x4ec2ab,[_0x25d29a(0x264)],_0xbbfa69);const _0x493646=getValueByPath(_0x55148c,[_0x25d29a(0xee)]);_0x4ec2ab!==undefined&&_0x493646!=null&&setValueByPath(_0x4ec2ab,['labels'],_0x493646);const _0x1b2f87=getValueByPath(_0x55148c,[_0x25d29a(0x433)]);_0x4ec2ab!==undefined&&_0x1b2f87!=null&&setValueByPath(_0x4ec2ab,[_0x25d29a(0x433)],tCachedContentName(_0x402899,_0x1b2f87));const _0x51e383=getValueByPath(_0x55148c,[_0x25d29a(0x2ee)]);_0x51e383!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x2ee)],_0x51e383);const _0x5892c8=getValueByPath(_0x55148c,[_0x25d29a(0x314)]);_0x5892c8!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x314)],_0x5892c8);const _0x20bb75=getValueByPath(_0x55148c,[_0x25d29a(0xd9)]);_0x20bb75!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0xd9)],tSpeechConfig(_0x20bb75));const _0xc9f369=getValueByPath(_0x55148c,['audioTimestamp']);_0xc9f369!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x4ca)],_0xc9f369);const _0x54a33a=getValueByPath(_0x55148c,[_0x25d29a(0x10b)]);_0x54a33a!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x10b)],_0x54a33a);const _0x3dc0c4=getValueByPath(_0x55148c,[_0x25d29a(0x478)]);_0x3dc0c4!=null&&setValueByPath(_0x55c2d7,[_0x25d29a(0x478)],imageConfigToVertex(_0x3dc0c4));if(getValueByPath(_0x55148c,['enableEnhancedCivicAnswers'])!==undefined)throw new Error(_0x25d29a(0x22f));const _0x533b96=getValueByPath(_0x55148c,[_0x25d29a(0x3b1)]);return _0x4ec2ab!==undefined&&_0x533b96!=null&&setValueByPath(_0x4ec2ab,[_0x25d29a(0x3b1)],_0x533b96),_0x55c2d7;}function generateContentParametersToMldev(_0x445760,_0x2910df,_0x222f27){const _0x135b0b=a2_0x8e922d,_0x5eb0b4={},_0x1272de=getValueByPath(_0x2910df,[_0x135b0b(0x638)]);_0x1272de!=null&&setValueByPath(_0x5eb0b4,['_url',_0x135b0b(0x638)],tModel(_0x445760,_0x1272de));const _0x4b040f=getValueByPath(_0x2910df,['contents']);if(_0x4b040f!=null){let _0xe2c149=tContents(_0x4b040f);Array['isArray'](_0xe2c149)&&(_0xe2c149=_0xe2c149['map'](_0x5e026d=>{return contentToMldev$1(_0x5e026d);})),setValueByPath(_0x5eb0b4,[_0x135b0b(0x684)],_0xe2c149);}const _0x1ae08c=getValueByPath(_0x2910df,['config']);return _0x1ae08c!=null&&setValueByPath(_0x5eb0b4,['generationConfig'],generateContentConfigToMldev(_0x445760,_0x1ae08c,_0x5eb0b4)),_0x5eb0b4;}function generateContentParametersToVertex(_0x5ab16c,_0x19752f,_0x1c4ef9){const _0x14edb9=a2_0x8e922d,_0x5f9d44={},_0x5e9ddf=getValueByPath(_0x19752f,[_0x14edb9(0x638)]);_0x5e9ddf!=null&&setValueByPath(_0x5f9d44,[_0x14edb9(0x334),_0x14edb9(0x638)],tModel(_0x5ab16c,_0x5e9ddf));const _0x2431b3=getValueByPath(_0x19752f,['contents']);if(_0x2431b3!=null){let _0x18138d=tContents(_0x2431b3);Array[_0x14edb9(0x266)](_0x18138d)&&(_0x18138d=_0x18138d[_0x14edb9(0x4a8)](_0x174714=>{return _0x174714;})),setValueByPath(_0x5f9d44,[_0x14edb9(0x684)],_0x18138d);}const _0x2a6cbc=getValueByPath(_0x19752f,[_0x14edb9(0x182)]);return _0x2a6cbc!=null&&setValueByPath(_0x5f9d44,[_0x14edb9(0x558)],generateContentConfigToVertex(_0x5ab16c,_0x2a6cbc,_0x5f9d44)),_0x5f9d44;}function generateContentResponseFromMldev(_0x3eaf4c,_0x1ccb60){const _0x43877e=a2_0x8e922d,_0x18ec4b={},_0x27d127=getValueByPath(_0x3eaf4c,[_0x43877e(0x3a0)]);_0x27d127!=null&&setValueByPath(_0x18ec4b,[_0x43877e(0x3a0)],_0x27d127);const _0x2aa86b=getValueByPath(_0x3eaf4c,[_0x43877e(0x2ba)]);if(_0x2aa86b!=null){let _0x49f65d=_0x2aa86b;Array[_0x43877e(0x266)](_0x49f65d)&&(_0x49f65d=_0x49f65d[_0x43877e(0x4a8)](_0x44abbc=>{return candidateFromMldev(_0x44abbc);})),setValueByPath(_0x18ec4b,[_0x43877e(0x2ba)],_0x49f65d);}const _0x2a1161=getValueByPath(_0x3eaf4c,[_0x43877e(0x551)]);_0x2a1161!=null&&setValueByPath(_0x18ec4b,[_0x43877e(0x551)],_0x2a1161);const _0x4a382b=getValueByPath(_0x3eaf4c,[_0x43877e(0x1d4)]);_0x4a382b!=null&&setValueByPath(_0x18ec4b,[_0x43877e(0x1d4)],_0x4a382b);const _0x14e8f5=getValueByPath(_0x3eaf4c,[_0x43877e(0x5a8)]);_0x14e8f5!=null&&setValueByPath(_0x18ec4b,[_0x43877e(0x5a8)],_0x14e8f5);const _0x36b7c5=getValueByPath(_0x3eaf4c,['usageMetadata']);return _0x36b7c5!=null&&setValueByPath(_0x18ec4b,[_0x43877e(0x3ac)],_0x36b7c5),_0x18ec4b;}function generateContentResponseFromVertex(_0x3098c7,_0x276d9c){const _0x2aa9e2=a2_0x8e922d,_0x4abf83={},_0x202090=getValueByPath(_0x3098c7,['sdkHttpResponse']);_0x202090!=null&&setValueByPath(_0x4abf83,[_0x2aa9e2(0x3a0)],_0x202090);const _0x244236=getValueByPath(_0x3098c7,[_0x2aa9e2(0x2ba)]);if(_0x244236!=null){let _0x15de58=_0x244236;Array['isArray'](_0x15de58)&&(_0x15de58=_0x15de58['map'](_0x26eaab=>{return _0x26eaab;})),setValueByPath(_0x4abf83,[_0x2aa9e2(0x2ba)],_0x15de58);}const _0x42fc75=getValueByPath(_0x3098c7,['createTime']);_0x42fc75!=null&&setValueByPath(_0x4abf83,[_0x2aa9e2(0x15b)],_0x42fc75);const _0x202974=getValueByPath(_0x3098c7,[_0x2aa9e2(0x551)]);_0x202974!=null&&setValueByPath(_0x4abf83,[_0x2aa9e2(0x551)],_0x202974);const _0x4f5ef3=getValueByPath(_0x3098c7,[_0x2aa9e2(0x1d4)]);_0x4f5ef3!=null&&setValueByPath(_0x4abf83,['promptFeedback'],_0x4f5ef3);const _0x2387be=getValueByPath(_0x3098c7,['responseId']);_0x2387be!=null&&setValueByPath(_0x4abf83,[_0x2aa9e2(0x5a8)],_0x2387be);const _0x1519e4=getValueByPath(_0x3098c7,['usageMetadata']);return _0x1519e4!=null&&setValueByPath(_0x4abf83,['usageMetadata'],_0x1519e4),_0x4abf83;}function generateImagesConfigToMldev(_0x6f6e4d,_0x380684,_0xb0dcc8){const _0x106985=a2_0x8e922d,_0x3f43cc={};if(getValueByPath(_0x6f6e4d,[_0x106985(0x46d)])!==undefined)throw new Error(_0x106985(0x371));if(getValueByPath(_0x6f6e4d,[_0x106985(0x4e0)])!==undefined)throw new Error(_0x106985(0x16c));const _0x5df8b2=getValueByPath(_0x6f6e4d,[_0x106985(0x3ec)]);_0x380684!==undefined&&_0x5df8b2!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),_0x106985(0x276)],_0x5df8b2);const _0x1262c8=getValueByPath(_0x6f6e4d,['aspectRatio']);_0x380684!==undefined&&_0x1262c8!=null&&setValueByPath(_0x380684,['parameters',_0x106985(0x27e)],_0x1262c8);const _0x59460c=getValueByPath(_0x6f6e4d,[_0x106985(0x51e)]);_0x380684!==undefined&&_0x59460c!=null&&setValueByPath(_0x380684,['parameters',_0x106985(0x51e)],_0x59460c);if(getValueByPath(_0x6f6e4d,[_0x106985(0x398)])!==undefined)throw new Error(_0x106985(0x3a4));const _0x37ed30=getValueByPath(_0x6f6e4d,['safetyFilterLevel']);_0x380684!==undefined&&_0x37ed30!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),'safetySetting'],_0x37ed30);const _0x2b7607=getValueByPath(_0x6f6e4d,[_0x106985(0x47c)]);_0x380684!==undefined&&_0x2b7607!=null&&setValueByPath(_0x380684,['parameters','personGeneration'],_0x2b7607);const _0x20d220=getValueByPath(_0x6f6e4d,['includeSafetyAttributes']);_0x380684!==undefined&&_0x20d220!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),_0x106985(0x59a)],_0x20d220);const _0x3fa598=getValueByPath(_0x6f6e4d,[_0x106985(0xe8)]);_0x380684!==undefined&&_0x3fa598!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),'includeRaiReason'],_0x3fa598);const _0x359bb7=getValueByPath(_0x6f6e4d,[_0x106985(0x402)]);_0x380684!==undefined&&_0x359bb7!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),_0x106985(0x402)],_0x359bb7);const _0x47bf10=getValueByPath(_0x6f6e4d,['outputMimeType']);_0x380684!==undefined&&_0x47bf10!=null&&setValueByPath(_0x380684,['parameters',_0x106985(0x231),_0x106985(0x3c0)],_0x47bf10);const _0x1cc5c7=getValueByPath(_0x6f6e4d,[_0x106985(0x53c)]);_0x380684!==undefined&&_0x1cc5c7!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),_0x106985(0x231),_0x106985(0x382)],_0x1cc5c7);if(getValueByPath(_0x6f6e4d,[_0x106985(0xe4)])!==undefined)throw new Error('addWatermark\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x6f6e4d,['labels'])!==undefined)throw new Error(_0x106985(0x696));const _0x34e52c=getValueByPath(_0x6f6e4d,[_0x106985(0x60e)]);_0x380684!==undefined&&_0x34e52c!=null&&setValueByPath(_0x380684,[_0x106985(0x28c),'sampleImageSize'],_0x34e52c);if(getValueByPath(_0x6f6e4d,[_0x106985(0x1bb)])!==undefined)throw new Error(_0x106985(0x1fd));return _0x3f43cc;}function generateImagesConfigToVertex(_0x479d7e,_0x34669c,_0x2ddb30){const _0x520ef0=a2_0x8e922d,_0x2efb76={},_0x15309a=getValueByPath(_0x479d7e,[_0x520ef0(0x46d)]);_0x34669c!==undefined&&_0x15309a!=null&&setValueByPath(_0x34669c,['parameters',_0x520ef0(0x16d)],_0x15309a);const _0x3406df=getValueByPath(_0x479d7e,['negativePrompt']);_0x34669c!==undefined&&_0x3406df!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),'negativePrompt'],_0x3406df);const _0x5e3693=getValueByPath(_0x479d7e,[_0x520ef0(0x3ec)]);_0x34669c!==undefined&&_0x5e3693!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),'sampleCount'],_0x5e3693);const _0x11ba2f=getValueByPath(_0x479d7e,['aspectRatio']);_0x34669c!==undefined&&_0x11ba2f!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),'aspectRatio'],_0x11ba2f);const _0x577799=getValueByPath(_0x479d7e,['guidanceScale']);_0x34669c!==undefined&&_0x577799!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0x51e)],_0x577799);const _0x10fa5e=getValueByPath(_0x479d7e,[_0x520ef0(0x398)]);_0x34669c!==undefined&&_0x10fa5e!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0x398)],_0x10fa5e);const _0x2a52f5=getValueByPath(_0x479d7e,['safetyFilterLevel']);_0x34669c!==undefined&&_0x2a52f5!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0x17f)],_0x2a52f5);const _0x33c0ad=getValueByPath(_0x479d7e,[_0x520ef0(0x47c)]);_0x34669c!==undefined&&_0x33c0ad!=null&&setValueByPath(_0x34669c,['parameters',_0x520ef0(0x47c)],_0x33c0ad);const _0x5e4e0d=getValueByPath(_0x479d7e,[_0x520ef0(0x59a)]);_0x34669c!==undefined&&_0x5e4e0d!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),'includeSafetyAttributes'],_0x5e4e0d);const _0xb424c3=getValueByPath(_0x479d7e,[_0x520ef0(0xe8)]);_0x34669c!==undefined&&_0xb424c3!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),'includeRaiReason'],_0xb424c3);const _0x134408=getValueByPath(_0x479d7e,[_0x520ef0(0x402)]);_0x34669c!==undefined&&_0x134408!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0x402)],_0x134408);const _0x2d3594=getValueByPath(_0x479d7e,[_0x520ef0(0x5d4)]);_0x34669c!==undefined&&_0x2d3594!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),'outputOptions',_0x520ef0(0x3c0)],_0x2d3594);const _0x5625a6=getValueByPath(_0x479d7e,['outputCompressionQuality']);_0x34669c!==undefined&&_0x5625a6!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0x231),_0x520ef0(0x382)],_0x5625a6);const _0x40581c=getValueByPath(_0x479d7e,['addWatermark']);_0x34669c!==undefined&&_0x40581c!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0xe4)],_0x40581c);const _0x21a77f=getValueByPath(_0x479d7e,[_0x520ef0(0xee)]);_0x34669c!==undefined&&_0x21a77f!=null&&setValueByPath(_0x34669c,[_0x520ef0(0xee)],_0x21a77f);const _0x33e65c=getValueByPath(_0x479d7e,[_0x520ef0(0x60e)]);_0x34669c!==undefined&&_0x33e65c!=null&&setValueByPath(_0x34669c,['parameters',_0x520ef0(0x574)],_0x33e65c);const _0x1cc00e=getValueByPath(_0x479d7e,[_0x520ef0(0x1bb)]);return _0x34669c!==undefined&&_0x1cc00e!=null&&setValueByPath(_0x34669c,[_0x520ef0(0x28c),_0x520ef0(0x1bb)],_0x1cc00e),_0x2efb76;}function generateImagesParametersToMldev(_0x51d5b3,_0x423948,_0x4fb981){const _0x436363=a2_0x8e922d,_0x221eca={},_0x4938fd=getValueByPath(_0x423948,[_0x436363(0x638)]);_0x4938fd!=null&&setValueByPath(_0x221eca,['_url',_0x436363(0x638)],tModel(_0x51d5b3,_0x4938fd));const _0x5457ed=getValueByPath(_0x423948,['prompt']);_0x5457ed!=null&&setValueByPath(_0x221eca,[_0x436363(0x1a2),_0x436363(0x624)],_0x5457ed);const _0x58119b=getValueByPath(_0x423948,[_0x436363(0x182)]);return _0x58119b!=null&&generateImagesConfigToMldev(_0x58119b,_0x221eca),_0x221eca;}function generateImagesParametersToVertex(_0x55dd85,_0x2e0300,_0x6384fa){const _0x1b9aa7=a2_0x8e922d,_0x5bcc63={},_0x32baf9=getValueByPath(_0x2e0300,[_0x1b9aa7(0x638)]);_0x32baf9!=null&&setValueByPath(_0x5bcc63,[_0x1b9aa7(0x334),_0x1b9aa7(0x638)],tModel(_0x55dd85,_0x32baf9));const _0x44d873=getValueByPath(_0x2e0300,['prompt']);_0x44d873!=null&&setValueByPath(_0x5bcc63,['instances[0]',_0x1b9aa7(0x624)],_0x44d873);const _0x14c1a3=getValueByPath(_0x2e0300,[_0x1b9aa7(0x182)]);return _0x14c1a3!=null&&generateImagesConfigToVertex(_0x14c1a3,_0x5bcc63),_0x5bcc63;}function generateImagesResponseFromMldev(_0x273be6,_0x3b3892){const _0xcbf7af=a2_0x8e922d,_0x5b315f={},_0x4b91f7=getValueByPath(_0x273be6,[_0xcbf7af(0x3a0)]);_0x4b91f7!=null&&setValueByPath(_0x5b315f,[_0xcbf7af(0x3a0)],_0x4b91f7);const _0x3a1849=getValueByPath(_0x273be6,['predictions']);if(_0x3a1849!=null){let _0x26ba66=_0x3a1849;Array[_0xcbf7af(0x266)](_0x26ba66)&&(_0x26ba66=_0x26ba66[_0xcbf7af(0x4a8)](_0x574756=>{return generatedImageFromMldev(_0x574756);})),setValueByPath(_0x5b315f,['generatedImages'],_0x26ba66);}const _0x1c597f=getValueByPath(_0x273be6,[_0xcbf7af(0x49a)]);return _0x1c597f!=null&&setValueByPath(_0x5b315f,[_0xcbf7af(0x49a)],safetyAttributesFromMldev(_0x1c597f)),_0x5b315f;}function generateImagesResponseFromVertex(_0x30cace,_0x3e6acf){const _0x2cb500=a2_0x8e922d,_0x5a390c={},_0x344373=getValueByPath(_0x30cace,['sdkHttpResponse']);_0x344373!=null&&setValueByPath(_0x5a390c,[_0x2cb500(0x3a0)],_0x344373);const _0x5dd676=getValueByPath(_0x30cace,[_0x2cb500(0x60a)]);if(_0x5dd676!=null){let _0x4e8061=_0x5dd676;Array[_0x2cb500(0x266)](_0x4e8061)&&(_0x4e8061=_0x4e8061[_0x2cb500(0x4a8)](_0x4ef7ed=>{return generatedImageFromVertex(_0x4ef7ed);})),setValueByPath(_0x5a390c,[_0x2cb500(0x682)],_0x4e8061);}const _0x21b678=getValueByPath(_0x30cace,[_0x2cb500(0x49a)]);return _0x21b678!=null&&setValueByPath(_0x5a390c,[_0x2cb500(0x49a)],safetyAttributesFromVertex(_0x21b678)),_0x5a390c;}function generateVideosConfigToMldev(_0x59ec59,_0x2828fc,_0x5a245a){const _0x4b4985=a2_0x8e922d,_0x1107ff={},_0x1e9be7=getValueByPath(_0x59ec59,[_0x4b4985(0x544)]);_0x2828fc!==undefined&&_0x1e9be7!=null&&setValueByPath(_0x2828fc,[_0x4b4985(0x28c),_0x4b4985(0x276)],_0x1e9be7);if(getValueByPath(_0x59ec59,[_0x4b4985(0x46d)])!==undefined)throw new Error(_0x4b4985(0x371));if(getValueByPath(_0x59ec59,[_0x4b4985(0x38c)])!==undefined)throw new Error(_0x4b4985(0xcc));const _0x4e0843=getValueByPath(_0x59ec59,[_0x4b4985(0x25c)]);_0x2828fc!==undefined&&_0x4e0843!=null&&setValueByPath(_0x2828fc,[_0x4b4985(0x28c),_0x4b4985(0x25c)],_0x4e0843);if(getValueByPath(_0x59ec59,[_0x4b4985(0x398)])!==undefined)throw new Error(_0x4b4985(0x3a4));const _0x8ae1b0=getValueByPath(_0x59ec59,['aspectRatio']);_0x2828fc!==undefined&&_0x8ae1b0!=null&&setValueByPath(_0x2828fc,[_0x4b4985(0x28c),'aspectRatio'],_0x8ae1b0);const _0x5e84e2=getValueByPath(_0x59ec59,[_0x4b4985(0x2d3)]);_0x2828fc!==undefined&&_0x5e84e2!=null&&setValueByPath(_0x2828fc,[_0x4b4985(0x28c),_0x4b4985(0x2d3)],_0x5e84e2);const _0x3873c9=getValueByPath(_0x59ec59,[_0x4b4985(0x47c)]);_0x2828fc!==undefined&&_0x3873c9!=null&&setValueByPath(_0x2828fc,['parameters',_0x4b4985(0x47c)],_0x3873c9);if(getValueByPath(_0x59ec59,[_0x4b4985(0x40c)])!==undefined)throw new Error(_0x4b4985(0x2d0));const _0x4fad45=getValueByPath(_0x59ec59,[_0x4b4985(0x4e0)]);_0x2828fc!==undefined&&_0x4fad45!=null&&setValueByPath(_0x2828fc,[_0x4b4985(0x28c),_0x4b4985(0x4e0)],_0x4fad45);const _0x5939df=getValueByPath(_0x59ec59,[_0x4b4985(0x1bb)]);_0x2828fc!==undefined&&_0x5939df!=null&&setValueByPath(_0x2828fc,['parameters',_0x4b4985(0x1bb)],_0x5939df);if(getValueByPath(_0x59ec59,[_0x4b4985(0x31c)])!==undefined)throw new Error('generateAudio\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x17c1a6=getValueByPath(_0x59ec59,[_0x4b4985(0x6a3)]);_0x2828fc!==undefined&&_0x17c1a6!=null&&setValueByPath(_0x2828fc,[_0x4b4985(0x1a2),_0x4b4985(0x6a3)],imageToMldev(_0x17c1a6));const _0x409a43=getValueByPath(_0x59ec59,[_0x4b4985(0x2e2)]);if(_0x2828fc!==undefined&&_0x409a43!=null){let _0x296d76=_0x409a43;Array[_0x4b4985(0x266)](_0x296d76)&&(_0x296d76=_0x296d76[_0x4b4985(0x4a8)](_0x5b83de=>{return videoGenerationReferenceImageToMldev(_0x5b83de);})),setValueByPath(_0x2828fc,[_0x4b4985(0x1a2),_0x4b4985(0x2e2)],_0x296d76);}if(getValueByPath(_0x59ec59,[_0x4b4985(0x45d)])!==undefined)throw new Error(_0x4b4985(0x3b0));if(getValueByPath(_0x59ec59,[_0x4b4985(0x382)])!==undefined)throw new Error('compressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x1107ff;}function generateVideosConfigToVertex(_0x332c45,_0x141321,_0x3f4fca){const _0x2827dc=a2_0x8e922d,_0x4948ed={},_0x105adf=getValueByPath(_0x332c45,[_0x2827dc(0x544)]);_0x141321!==undefined&&_0x105adf!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x276)],_0x105adf);const _0x5f3595=getValueByPath(_0x332c45,[_0x2827dc(0x46d)]);_0x141321!==undefined&&_0x5f3595!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),'storageUri'],_0x5f3595);const _0x5780a0=getValueByPath(_0x332c45,[_0x2827dc(0x38c)]);_0x141321!==undefined&&_0x5780a0!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x38c)],_0x5780a0);const _0x564bba=getValueByPath(_0x332c45,[_0x2827dc(0x25c)]);_0x141321!==undefined&&_0x564bba!=null&&setValueByPath(_0x141321,['parameters','durationSeconds'],_0x564bba);const _0x49d5f9=getValueByPath(_0x332c45,[_0x2827dc(0x398)]);_0x141321!==undefined&&_0x49d5f9!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x398)],_0x49d5f9);const _0x1dff4d=getValueByPath(_0x332c45,[_0x2827dc(0x27e)]);_0x141321!==undefined&&_0x1dff4d!=null&&setValueByPath(_0x141321,['parameters',_0x2827dc(0x27e)],_0x1dff4d);const _0x1a8a93=getValueByPath(_0x332c45,['resolution']);_0x141321!==undefined&&_0x1a8a93!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x2d3)],_0x1a8a93);const _0x54f159=getValueByPath(_0x332c45,[_0x2827dc(0x47c)]);_0x141321!==undefined&&_0x54f159!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x47c)],_0x54f159);const _0xfb8101=getValueByPath(_0x332c45,[_0x2827dc(0x40c)]);_0x141321!==undefined&&_0xfb8101!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x40c)],_0xfb8101);const _0x4da116=getValueByPath(_0x332c45,[_0x2827dc(0x4e0)]);_0x141321!==undefined&&_0x4da116!=null&&setValueByPath(_0x141321,['parameters','negativePrompt'],_0x4da116);const _0x1ed699=getValueByPath(_0x332c45,[_0x2827dc(0x1bb)]);_0x141321!==undefined&&_0x1ed699!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),_0x2827dc(0x1bb)],_0x1ed699);const _0x2180e2=getValueByPath(_0x332c45,[_0x2827dc(0x31c)]);_0x141321!==undefined&&_0x2180e2!=null&&setValueByPath(_0x141321,['parameters','generateAudio'],_0x2180e2);const _0x306459=getValueByPath(_0x332c45,[_0x2827dc(0x6a3)]);_0x141321!==undefined&&_0x306459!=null&&setValueByPath(_0x141321,['instances[0]',_0x2827dc(0x6a3)],imageToVertex(_0x306459));const _0x43cc53=getValueByPath(_0x332c45,[_0x2827dc(0x2e2)]);if(_0x141321!==undefined&&_0x43cc53!=null){let _0x1ef9fe=_0x43cc53;Array[_0x2827dc(0x266)](_0x1ef9fe)&&(_0x1ef9fe=_0x1ef9fe[_0x2827dc(0x4a8)](_0x86c096=>{return videoGenerationReferenceImageToVertex(_0x86c096);})),setValueByPath(_0x141321,[_0x2827dc(0x1a2),_0x2827dc(0x2e2)],_0x1ef9fe);}const _0x599779=getValueByPath(_0x332c45,[_0x2827dc(0x45d)]);_0x141321!==undefined&&_0x599779!=null&&setValueByPath(_0x141321,['instances[0]','mask'],videoGenerationMaskToVertex(_0x599779));const _0x214bfc=getValueByPath(_0x332c45,[_0x2827dc(0x382)]);return _0x141321!==undefined&&_0x214bfc!=null&&setValueByPath(_0x141321,[_0x2827dc(0x28c),'compressionQuality'],_0x214bfc),_0x4948ed;}function generateVideosOperationFromMldev(_0x410246,_0x3eaee5){const _0x905390=a2_0x8e922d,_0x4d29b1={},_0xc425ca=getValueByPath(_0x410246,[_0x905390(0x206)]);_0xc425ca!=null&&setValueByPath(_0x4d29b1,['name'],_0xc425ca);const _0x5b875e=getValueByPath(_0x410246,[_0x905390(0x172)]);_0x5b875e!=null&&setValueByPath(_0x4d29b1,[_0x905390(0x172)],_0x5b875e);const _0x4334f2=getValueByPath(_0x410246,[_0x905390(0x4ae)]);_0x4334f2!=null&&setValueByPath(_0x4d29b1,[_0x905390(0x4ae)],_0x4334f2);const _0x1e6ce1=getValueByPath(_0x410246,[_0x905390(0x262)]);_0x1e6ce1!=null&&setValueByPath(_0x4d29b1,[_0x905390(0x262)],_0x1e6ce1);const _0xc83b14=getValueByPath(_0x410246,[_0x905390(0x1d3),_0x905390(0x2cf)]);return _0xc83b14!=null&&setValueByPath(_0x4d29b1,['response'],generateVideosResponseFromMldev(_0xc83b14)),_0x4d29b1;}function generateVideosOperationFromVertex(_0x1773eb,_0x47be40){const _0x461e4f=a2_0x8e922d,_0x5ada9a={},_0x5cb6c5=getValueByPath(_0x1773eb,['name']);_0x5cb6c5!=null&&setValueByPath(_0x5ada9a,[_0x461e4f(0x206)],_0x5cb6c5);const _0x17896e=getValueByPath(_0x1773eb,[_0x461e4f(0x172)]);_0x17896e!=null&&setValueByPath(_0x5ada9a,[_0x461e4f(0x172)],_0x17896e);const _0x2d2e2c=getValueByPath(_0x1773eb,[_0x461e4f(0x4ae)]);_0x2d2e2c!=null&&setValueByPath(_0x5ada9a,[_0x461e4f(0x4ae)],_0x2d2e2c);const _0x49487e=getValueByPath(_0x1773eb,['error']);_0x49487e!=null&&setValueByPath(_0x5ada9a,['error'],_0x49487e);const _0x1940fc=getValueByPath(_0x1773eb,['response']);return _0x1940fc!=null&&setValueByPath(_0x5ada9a,['response'],generateVideosResponseFromVertex(_0x1940fc)),_0x5ada9a;}function generateVideosParametersToMldev(_0x51118c,_0x440621,_0x264816){const _0x4f89ba=a2_0x8e922d,_0x58d265={},_0x4cee48=getValueByPath(_0x440621,[_0x4f89ba(0x638)]);_0x4cee48!=null&&setValueByPath(_0x58d265,['_url','model'],tModel(_0x51118c,_0x4cee48));const _0x54386b=getValueByPath(_0x440621,['prompt']);_0x54386b!=null&&setValueByPath(_0x58d265,['instances[0]',_0x4f89ba(0x624)],_0x54386b);const _0x4bc47b=getValueByPath(_0x440621,['image']);_0x4bc47b!=null&&setValueByPath(_0x58d265,['instances[0]',_0x4f89ba(0x59f)],imageToMldev(_0x4bc47b));const _0x18c58c=getValueByPath(_0x440621,['video']);_0x18c58c!=null&&setValueByPath(_0x58d265,[_0x4f89ba(0x1a2),_0x4f89ba(0x640)],videoToMldev(_0x18c58c));const _0x479dd2=getValueByPath(_0x440621,[_0x4f89ba(0x58a)]);_0x479dd2!=null&&generateVideosSourceToMldev(_0x479dd2,_0x58d265);const _0x5cc32a=getValueByPath(_0x440621,[_0x4f89ba(0x182)]);return _0x5cc32a!=null&&generateVideosConfigToMldev(_0x5cc32a,_0x58d265),_0x58d265;}function generateVideosParametersToVertex(_0x16887c,_0x246844,_0x5a84dd){const _0x3f2ad4=a2_0x8e922d,_0x3db5c2={},_0x3c7083=getValueByPath(_0x246844,[_0x3f2ad4(0x638)]);_0x3c7083!=null&&setValueByPath(_0x3db5c2,[_0x3f2ad4(0x334),_0x3f2ad4(0x638)],tModel(_0x16887c,_0x3c7083));const _0x1ec420=getValueByPath(_0x246844,['prompt']);_0x1ec420!=null&&setValueByPath(_0x3db5c2,['instances[0]',_0x3f2ad4(0x624)],_0x1ec420);const _0x4cb393=getValueByPath(_0x246844,[_0x3f2ad4(0x59f)]);_0x4cb393!=null&&setValueByPath(_0x3db5c2,[_0x3f2ad4(0x1a2),_0x3f2ad4(0x59f)],imageToVertex(_0x4cb393));const _0x434207=getValueByPath(_0x246844,[_0x3f2ad4(0x640)]);_0x434207!=null&&setValueByPath(_0x3db5c2,[_0x3f2ad4(0x1a2),'video'],videoToVertex(_0x434207));const _0x349d8d=getValueByPath(_0x246844,['source']);_0x349d8d!=null&&generateVideosSourceToVertex(_0x349d8d,_0x3db5c2);const _0x4be9a6=getValueByPath(_0x246844,[_0x3f2ad4(0x182)]);return _0x4be9a6!=null&&generateVideosConfigToVertex(_0x4be9a6,_0x3db5c2),_0x3db5c2;}function generateVideosResponseFromMldev(_0x2a695a,_0x4432c2){const _0x3cd82d=a2_0x8e922d,_0x47f64a={},_0x5ba14d=getValueByPath(_0x2a695a,[_0x3cd82d(0x1e9)]);if(_0x5ba14d!=null){let _0x21cf2a=_0x5ba14d;Array[_0x3cd82d(0x266)](_0x21cf2a)&&(_0x21cf2a=_0x21cf2a[_0x3cd82d(0x4a8)](_0x19987e=>{return generatedVideoFromMldev(_0x19987e);})),setValueByPath(_0x47f64a,[_0x3cd82d(0x3a6)],_0x21cf2a);}const _0xfaed47=getValueByPath(_0x2a695a,['raiMediaFilteredCount']);_0xfaed47!=null&&setValueByPath(_0x47f64a,['raiMediaFilteredCount'],_0xfaed47);const _0x156d8d=getValueByPath(_0x2a695a,[_0x3cd82d(0x1d0)]);return _0x156d8d!=null&&setValueByPath(_0x47f64a,['raiMediaFilteredReasons'],_0x156d8d),_0x47f64a;}function generateVideosResponseFromVertex(_0x27d350,_0x2bf432){const _0x137969=a2_0x8e922d,_0x43f19a={},_0x291a55=getValueByPath(_0x27d350,[_0x137969(0x541)]);if(_0x291a55!=null){let _0xafdc8a=_0x291a55;Array['isArray'](_0xafdc8a)&&(_0xafdc8a=_0xafdc8a[_0x137969(0x4a8)](_0x2a8b34=>{return generatedVideoFromVertex(_0x2a8b34);})),setValueByPath(_0x43f19a,[_0x137969(0x3a6)],_0xafdc8a);}const _0x26383f=getValueByPath(_0x27d350,[_0x137969(0x261)]);_0x26383f!=null&&setValueByPath(_0x43f19a,[_0x137969(0x261)],_0x26383f);const _0x313378=getValueByPath(_0x27d350,[_0x137969(0x1d0)]);return _0x313378!=null&&setValueByPath(_0x43f19a,[_0x137969(0x1d0)],_0x313378),_0x43f19a;}function generateVideosSourceToMldev(_0x1a168c,_0x1f2b21,_0x53cc73){const _0x5bb8d0=a2_0x8e922d,_0x258e14={},_0x5578e4=getValueByPath(_0x1a168c,[_0x5bb8d0(0x624)]);_0x1f2b21!==undefined&&_0x5578e4!=null&&setValueByPath(_0x1f2b21,[_0x5bb8d0(0x1a2),_0x5bb8d0(0x624)],_0x5578e4);const _0x249e48=getValueByPath(_0x1a168c,[_0x5bb8d0(0x59f)]);_0x1f2b21!==undefined&&_0x249e48!=null&&setValueByPath(_0x1f2b21,['instances[0]','image'],imageToMldev(_0x249e48));const _0x448858=getValueByPath(_0x1a168c,[_0x5bb8d0(0x640)]);return _0x1f2b21!==undefined&&_0x448858!=null&&setValueByPath(_0x1f2b21,[_0x5bb8d0(0x1a2),_0x5bb8d0(0x640)],videoToMldev(_0x448858)),_0x258e14;}function generateVideosSourceToVertex(_0x57cf55,_0x5bfa82,_0x25d831){const _0x2e656f=a2_0x8e922d,_0x439ed4={},_0x20a3b2=getValueByPath(_0x57cf55,[_0x2e656f(0x624)]);_0x5bfa82!==undefined&&_0x20a3b2!=null&&setValueByPath(_0x5bfa82,[_0x2e656f(0x1a2),_0x2e656f(0x624)],_0x20a3b2);const _0x3b929d=getValueByPath(_0x57cf55,[_0x2e656f(0x59f)]);_0x5bfa82!==undefined&&_0x3b929d!=null&&setValueByPath(_0x5bfa82,['instances[0]',_0x2e656f(0x59f)],imageToVertex(_0x3b929d));const _0x5da25d=getValueByPath(_0x57cf55,[_0x2e656f(0x640)]);return _0x5bfa82!==undefined&&_0x5da25d!=null&&setValueByPath(_0x5bfa82,[_0x2e656f(0x1a2),'video'],videoToVertex(_0x5da25d)),_0x439ed4;}function generatedImageFromMldev(_0x1f0960,_0x25f88d){const _0xbd9510=a2_0x8e922d,_0x27293b={},_0x1fd616=getValueByPath(_0x1f0960,[_0xbd9510(0x39a)]);_0x1fd616!=null&&setValueByPath(_0x27293b,[_0xbd9510(0x59f)],imageFromMldev(_0x1fd616));const _0x4bbc09=getValueByPath(_0x1f0960,[_0xbd9510(0x16b)]);_0x4bbc09!=null&&setValueByPath(_0x27293b,[_0xbd9510(0x16b)],_0x4bbc09);const _0x5cd944=getValueByPath(_0x1f0960,[_0xbd9510(0x39a)]);return _0x5cd944!=null&&setValueByPath(_0x27293b,[_0xbd9510(0x595)],safetyAttributesFromMldev(_0x5cd944)),_0x27293b;}function generatedImageFromVertex(_0x435bd6,_0x1d215d){const _0x1b8e41=a2_0x8e922d,_0x176add={},_0x2d71d4=getValueByPath(_0x435bd6,[_0x1b8e41(0x39a)]);_0x2d71d4!=null&&setValueByPath(_0x176add,[_0x1b8e41(0x59f)],imageFromVertex(_0x2d71d4));const _0x534ad4=getValueByPath(_0x435bd6,[_0x1b8e41(0x16b)]);_0x534ad4!=null&&setValueByPath(_0x176add,[_0x1b8e41(0x16b)],_0x534ad4);const _0x481e29=getValueByPath(_0x435bd6,['_self']);_0x481e29!=null&&setValueByPath(_0x176add,[_0x1b8e41(0x595)],safetyAttributesFromVertex(_0x481e29));const _0x37a3c4=getValueByPath(_0x435bd6,['prompt']);return _0x37a3c4!=null&&setValueByPath(_0x176add,['enhancedPrompt'],_0x37a3c4),_0x176add;}function generatedImageMaskFromVertex(_0x5ec15b,_0x4aa46d){const _0x19e10f=a2_0x8e922d,_0x7d6b16={},_0x2804a6=getValueByPath(_0x5ec15b,[_0x19e10f(0x39a)]);_0x2804a6!=null&&setValueByPath(_0x7d6b16,[_0x19e10f(0x45d)],imageFromVertex(_0x2804a6));const _0x34f995=getValueByPath(_0x5ec15b,[_0x19e10f(0xee)]);if(_0x34f995!=null){let _0x512d5c=_0x34f995;Array['isArray'](_0x512d5c)&&(_0x512d5c=_0x512d5c[_0x19e10f(0x4a8)](_0x4fd800=>{return _0x4fd800;})),setValueByPath(_0x7d6b16,[_0x19e10f(0xee)],_0x512d5c);}return _0x7d6b16;}function generatedVideoFromMldev(_0x22f57f,_0x256a91){const _0x5af894=a2_0x8e922d,_0x5c9832={},_0x52011d=getValueByPath(_0x22f57f,['video']);return _0x52011d!=null&&setValueByPath(_0x5c9832,[_0x5af894(0x640)],videoFromMldev(_0x52011d)),_0x5c9832;}function generatedVideoFromVertex(_0x30820c,_0x5b24bf){const _0x3c6da8=a2_0x8e922d,_0x16acd4={},_0x472259=getValueByPath(_0x30820c,['_self']);return _0x472259!=null&&setValueByPath(_0x16acd4,[_0x3c6da8(0x640)],videoFromVertex(_0x472259)),_0x16acd4;}function generationConfigToVertex(_0x1433a1,_0x4d4b3e){const _0x34c729=a2_0x8e922d,_0x2bf3e6={},_0xfd8166=getValueByPath(_0x1433a1,['modelSelectionConfig']);_0xfd8166!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x1db)],_0xfd8166);const _0x559eb8=getValueByPath(_0x1433a1,['responseJsonSchema']);_0x559eb8!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x13c)],_0x559eb8);const _0x25abe7=getValueByPath(_0x1433a1,[_0x34c729(0x4ca)]);_0x25abe7!=null&&setValueByPath(_0x2bf3e6,['audioTimestamp'],_0x25abe7);const _0x5de975=getValueByPath(_0x1433a1,['candidateCount']);_0x5de975!=null&&setValueByPath(_0x2bf3e6,['candidateCount'],_0x5de975);const _0x4846a7=getValueByPath(_0x1433a1,[_0x34c729(0x4e6)]);_0x4846a7!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x4e6)],_0x4846a7);const _0x3a7434=getValueByPath(_0x1433a1,[_0x34c729(0x54f)]);_0x3a7434!=null&&setValueByPath(_0x2bf3e6,['frequencyPenalty'],_0x3a7434);const _0x4d0ac3=getValueByPath(_0x1433a1,[_0x34c729(0x2db)]);_0x4d0ac3!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x2db)],_0x4d0ac3);const _0x59b1b5=getValueByPath(_0x1433a1,[_0x34c729(0x3fc)]);_0x59b1b5!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x3fc)],_0x59b1b5);const _0x19f82a=getValueByPath(_0x1433a1,['mediaResolution']);_0x19f82a!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x314)],_0x19f82a);const _0x528854=getValueByPath(_0x1433a1,[_0x34c729(0x5b1)]);_0x528854!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x5b1)],_0x528854);const _0x4bd2e1=getValueByPath(_0x1433a1,[_0x34c729(0x120)]);_0x4bd2e1!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x120)],_0x4bd2e1);const _0xe2b85f=getValueByPath(_0x1433a1,[_0x34c729(0x335)]);_0xe2b85f!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x335)],_0xe2b85f);const _0x4f3de2=getValueByPath(_0x1433a1,['responseModalities']);_0x4f3de2!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x2ee)],_0x4f3de2);const _0x169a94=getValueByPath(_0x1433a1,['responseSchema']);_0x169a94!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x475)],_0x169a94);const _0x2e49e3=getValueByPath(_0x1433a1,[_0x34c729(0x69b)]);_0x2e49e3!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x69b)],_0x2e49e3);const _0x4c499b=getValueByPath(_0x1433a1,[_0x34c729(0x398)]);_0x4c499b!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x398)],_0x4c499b);const _0x5d2138=getValueByPath(_0x1433a1,[_0x34c729(0xd9)]);_0x5d2138!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0xd9)],_0x5d2138);const _0x434306=getValueByPath(_0x1433a1,['stopSequences']);_0x434306!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x278)],_0x434306);const _0x4d9ccb=getValueByPath(_0x1433a1,['temperature']);_0x4d9ccb!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x1e3)],_0x4d9ccb);const _0xc75b4f=getValueByPath(_0x1433a1,['thinkingConfig']);_0xc75b4f!=null&&setValueByPath(_0x2bf3e6,['thinkingConfig'],_0xc75b4f);const _0xa9a681=getValueByPath(_0x1433a1,['topK']);_0xa9a681!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x411)],_0xa9a681);const _0x33a42e=getValueByPath(_0x1433a1,[_0x34c729(0x159)]);_0x33a42e!=null&&setValueByPath(_0x2bf3e6,[_0x34c729(0x159)],_0x33a42e);if(getValueByPath(_0x1433a1,['enableEnhancedCivicAnswers'])!==undefined)throw new Error(_0x34c729(0x22f));return _0x2bf3e6;}function getModelParametersToMldev(_0x1deb5c,_0x4d55ed,_0x269cd6){const _0x55a550=a2_0x8e922d,_0x11c0d8={},_0x59975c=getValueByPath(_0x4d55ed,['model']);return _0x59975c!=null&&setValueByPath(_0x11c0d8,[_0x55a550(0x334),_0x55a550(0x206)],tModel(_0x1deb5c,_0x59975c)),_0x11c0d8;}function getModelParametersToVertex(_0x3dd7ae,_0x238a80,_0x327859){const _0x1bd3db=a2_0x8e922d,_0x740993={},_0x32bd80=getValueByPath(_0x238a80,[_0x1bd3db(0x638)]);return _0x32bd80!=null&&setValueByPath(_0x740993,[_0x1bd3db(0x334),_0x1bd3db(0x206)],tModel(_0x3dd7ae,_0x32bd80)),_0x740993;}function googleMapsToMldev$1(_0xb4ad98,_0x578caf){const _0xab6aa0=a2_0x8e922d,_0x447008={};if(getValueByPath(_0xb4ad98,['authConfig'])!==undefined)throw new Error(_0xab6aa0(0x1be));const _0x2518bc=getValueByPath(_0xb4ad98,[_0xab6aa0(0x38f)]);return _0x2518bc!=null&&setValueByPath(_0x447008,[_0xab6aa0(0x38f)],_0x2518bc),_0x447008;}function googleSearchToMldev$1(_0x1a2fb0,_0x32aa67){const _0x446b36=a2_0x8e922d,_0x4c19e3={};if(getValueByPath(_0x1a2fb0,[_0x446b36(0x65d)])!==undefined)throw new Error(_0x446b36(0x496));if(getValueByPath(_0x1a2fb0,[_0x446b36(0x237)])!==undefined)throw new Error('blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x126246=getValueByPath(_0x1a2fb0,[_0x446b36(0x164)]);return _0x126246!=null&&setValueByPath(_0x4c19e3,['timeRangeFilter'],_0x126246),_0x4c19e3;}function imageConfigToMldev(_0x7d92dc,_0x91b979){const _0x48099b=a2_0x8e922d,_0x2c090a={},_0x44c5eb=getValueByPath(_0x7d92dc,[_0x48099b(0x27e)]);_0x44c5eb!=null&&setValueByPath(_0x2c090a,[_0x48099b(0x27e)],_0x44c5eb);const _0x535b3a=getValueByPath(_0x7d92dc,[_0x48099b(0x60e)]);_0x535b3a!=null&&setValueByPath(_0x2c090a,[_0x48099b(0x60e)],_0x535b3a);if(getValueByPath(_0x7d92dc,[_0x48099b(0x47c)])!==undefined)throw new Error(_0x48099b(0x30f));if(getValueByPath(_0x7d92dc,[_0x48099b(0x5d4)])!==undefined)throw new Error('outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x7d92dc,['outputCompressionQuality'])!==undefined)throw new Error(_0x48099b(0x3d1));return _0x2c090a;}function imageConfigToVertex(_0x4d1e1d,_0x2d189f){const _0x54aeb7=a2_0x8e922d,_0xd42b33={},_0x455216=getValueByPath(_0x4d1e1d,[_0x54aeb7(0x27e)]);_0x455216!=null&&setValueByPath(_0xd42b33,[_0x54aeb7(0x27e)],_0x455216);const _0xe4c63b=getValueByPath(_0x4d1e1d,[_0x54aeb7(0x60e)]);_0xe4c63b!=null&&setValueByPath(_0xd42b33,[_0x54aeb7(0x60e)],_0xe4c63b);const _0x1822d8=getValueByPath(_0x4d1e1d,[_0x54aeb7(0x47c)]);_0x1822d8!=null&&setValueByPath(_0xd42b33,['personGeneration'],_0x1822d8);const _0x1a3512=getValueByPath(_0x4d1e1d,['outputMimeType']);_0x1a3512!=null&&setValueByPath(_0xd42b33,[_0x54aeb7(0x582),'mimeType'],_0x1a3512);const _0x1c7bab=getValueByPath(_0x4d1e1d,[_0x54aeb7(0x53c)]);return _0x1c7bab!=null&&setValueByPath(_0xd42b33,[_0x54aeb7(0x582),_0x54aeb7(0x382)],_0x1c7bab),_0xd42b33;}function imageFromMldev(_0x389d5b,_0x1b2012){const _0x2a4353=a2_0x8e922d,_0x296c6d={},_0x3b8e41=getValueByPath(_0x389d5b,[_0x2a4353(0x64e)]);_0x3b8e41!=null&&setValueByPath(_0x296c6d,['imageBytes'],tBytes(_0x3b8e41));const _0x437a21=getValueByPath(_0x389d5b,[_0x2a4353(0x3c0)]);return _0x437a21!=null&&setValueByPath(_0x296c6d,[_0x2a4353(0x3c0)],_0x437a21),_0x296c6d;}function imageFromVertex(_0x54fe04,_0x239fdc){const _0x2df7c7=a2_0x8e922d,_0x224e81={},_0x29d842=getValueByPath(_0x54fe04,['gcsUri']);_0x29d842!=null&&setValueByPath(_0x224e81,[_0x2df7c7(0x305)],_0x29d842);const _0x378c7f=getValueByPath(_0x54fe04,[_0x2df7c7(0x64e)]);_0x378c7f!=null&&setValueByPath(_0x224e81,[_0x2df7c7(0x6ae)],tBytes(_0x378c7f));const _0x276c33=getValueByPath(_0x54fe04,[_0x2df7c7(0x3c0)]);return _0x276c33!=null&&setValueByPath(_0x224e81,[_0x2df7c7(0x3c0)],_0x276c33),_0x224e81;}function imageToMldev(_0x2836de,_0x6f41a9){const _0x8219ce=a2_0x8e922d,_0x5784fc={};if(getValueByPath(_0x2836de,[_0x8219ce(0x305)])!==undefined)throw new Error(_0x8219ce(0x6a8));const _0x5c1e91=getValueByPath(_0x2836de,['imageBytes']);_0x5c1e91!=null&&setValueByPath(_0x5784fc,['bytesBase64Encoded'],tBytes(_0x5c1e91));const _0x45c48e=getValueByPath(_0x2836de,[_0x8219ce(0x3c0)]);return _0x45c48e!=null&&setValueByPath(_0x5784fc,[_0x8219ce(0x3c0)],_0x45c48e),_0x5784fc;}function imageToVertex(_0x4e8630,_0x28f568){const _0x337bad=a2_0x8e922d,_0x57ad3e={},_0x1a9684=getValueByPath(_0x4e8630,[_0x337bad(0x305)]);_0x1a9684!=null&&setValueByPath(_0x57ad3e,['gcsUri'],_0x1a9684);const _0x3f4ec0=getValueByPath(_0x4e8630,[_0x337bad(0x6ae)]);_0x3f4ec0!=null&&setValueByPath(_0x57ad3e,[_0x337bad(0x64e)],tBytes(_0x3f4ec0));const _0x356838=getValueByPath(_0x4e8630,[_0x337bad(0x3c0)]);return _0x356838!=null&&setValueByPath(_0x57ad3e,[_0x337bad(0x3c0)],_0x356838),_0x57ad3e;}function listModelsConfigToMldev(_0x1e58c4,_0x1ca2c0,_0x36901b,_0xb2575b){const _0x4b9af5=a2_0x8e922d,_0x238cbc={},_0x47fc68=getValueByPath(_0x1ca2c0,['pageSize']);_0x36901b!==undefined&&_0x47fc68!=null&&setValueByPath(_0x36901b,[_0x4b9af5(0xa9),'pageSize'],_0x47fc68);const _0x2afe31=getValueByPath(_0x1ca2c0,[_0x4b9af5(0x193)]);_0x36901b!==undefined&&_0x2afe31!=null&&setValueByPath(_0x36901b,['_query',_0x4b9af5(0x193)],_0x2afe31);const _0x2bc3b7=getValueByPath(_0x1ca2c0,[_0x4b9af5(0x50e)]);_0x36901b!==undefined&&_0x2bc3b7!=null&&setValueByPath(_0x36901b,[_0x4b9af5(0xa9),_0x4b9af5(0x50e)],_0x2bc3b7);const _0x1ff5ff=getValueByPath(_0x1ca2c0,['queryBase']);return _0x36901b!==undefined&&_0x1ff5ff!=null&&setValueByPath(_0x36901b,[_0x4b9af5(0x334),_0x4b9af5(0x3a1)],tModelsUrl(_0x1e58c4,_0x1ff5ff)),_0x238cbc;}function listModelsConfigToVertex(_0x5bda6,_0xcf938c,_0x5715ea,_0x10fa93){const _0x25ae51=a2_0x8e922d,_0x3218d9={},_0x427a1d=getValueByPath(_0xcf938c,[_0x25ae51(0x546)]);_0x5715ea!==undefined&&_0x427a1d!=null&&setValueByPath(_0x5715ea,[_0x25ae51(0xa9),_0x25ae51(0x546)],_0x427a1d);const _0x5d8120=getValueByPath(_0xcf938c,[_0x25ae51(0x193)]);_0x5715ea!==undefined&&_0x5d8120!=null&&setValueByPath(_0x5715ea,[_0x25ae51(0xa9),_0x25ae51(0x193)],_0x5d8120);const _0x41977c=getValueByPath(_0xcf938c,['filter']);_0x5715ea!==undefined&&_0x41977c!=null&&setValueByPath(_0x5715ea,[_0x25ae51(0xa9),_0x25ae51(0x50e)],_0x41977c);const _0x4f3ed0=getValueByPath(_0xcf938c,[_0x25ae51(0x31a)]);return _0x5715ea!==undefined&&_0x4f3ed0!=null&&setValueByPath(_0x5715ea,[_0x25ae51(0x334),_0x25ae51(0x3a1)],tModelsUrl(_0x5bda6,_0x4f3ed0)),_0x3218d9;}function listModelsParametersToMldev(_0x43f4d1,_0x2fbd26,_0x294350){const _0x1c9bbc={},_0x3a6dad=getValueByPath(_0x2fbd26,['config']);return _0x3a6dad!=null&&listModelsConfigToMldev(_0x43f4d1,_0x3a6dad,_0x1c9bbc),_0x1c9bbc;}function listModelsParametersToVertex(_0x10256c,_0x5f48b3,_0xd45d88){const _0x2d78e2=a2_0x8e922d,_0x16f741={},_0x1f0117=getValueByPath(_0x5f48b3,[_0x2d78e2(0x182)]);return _0x1f0117!=null&&listModelsConfigToVertex(_0x10256c,_0x1f0117,_0x16f741),_0x16f741;}function listModelsResponseFromMldev(_0x54a312,_0x1e04dd){const _0x4caccd=a2_0x8e922d,_0x23ca4c={},_0xded4ad=getValueByPath(_0x54a312,[_0x4caccd(0x3a0)]);_0xded4ad!=null&&setValueByPath(_0x23ca4c,[_0x4caccd(0x3a0)],_0xded4ad);const _0x137885=getValueByPath(_0x54a312,['nextPageToken']);_0x137885!=null&&setValueByPath(_0x23ca4c,[_0x4caccd(0x12c)],_0x137885);const _0x1c1ee1=getValueByPath(_0x54a312,['_self']);if(_0x1c1ee1!=null){let _0x32b261=tExtractModels(_0x1c1ee1);Array[_0x4caccd(0x266)](_0x32b261)&&(_0x32b261=_0x32b261[_0x4caccd(0x4a8)](_0x4a49c3=>{return modelFromMldev(_0x4a49c3);})),setValueByPath(_0x23ca4c,[_0x4caccd(0x4f8)],_0x32b261);}return _0x23ca4c;}function listModelsResponseFromVertex(_0x418821,_0x1cc718){const _0x7d92b6=a2_0x8e922d,_0x3e0ac7={},_0x3c292a=getValueByPath(_0x418821,[_0x7d92b6(0x3a0)]);_0x3c292a!=null&&setValueByPath(_0x3e0ac7,['sdkHttpResponse'],_0x3c292a);const _0x103b22=getValueByPath(_0x418821,[_0x7d92b6(0x12c)]);_0x103b22!=null&&setValueByPath(_0x3e0ac7,['nextPageToken'],_0x103b22);const _0x351051=getValueByPath(_0x418821,['_self']);if(_0x351051!=null){let _0x201dd4=tExtractModels(_0x351051);Array[_0x7d92b6(0x266)](_0x201dd4)&&(_0x201dd4=_0x201dd4[_0x7d92b6(0x4a8)](_0x45e902=>{return modelFromVertex(_0x45e902);})),setValueByPath(_0x3e0ac7,[_0x7d92b6(0x4f8)],_0x201dd4);}return _0x3e0ac7;}function maskReferenceConfigToVertex(_0x26bdb5,_0x4cabf5){const _0x45bd0b=a2_0x8e922d,_0x36ad52={},_0x5a0b40=getValueByPath(_0x26bdb5,['maskMode']);_0x5a0b40!=null&&setValueByPath(_0x36ad52,[_0x45bd0b(0xf4)],_0x5a0b40);const _0x150184=getValueByPath(_0x26bdb5,[_0x45bd0b(0x318)]);_0x150184!=null&&setValueByPath(_0x36ad52,[_0x45bd0b(0x4e9)],_0x150184);const _0x17e4c4=getValueByPath(_0x26bdb5,[_0x45bd0b(0x51d)]);return _0x17e4c4!=null&&setValueByPath(_0x36ad52,[_0x45bd0b(0x40f)],_0x17e4c4),_0x36ad52;}function modelFromMldev(_0x3f42b7,_0x47a1e8){const _0xc4164a=a2_0x8e922d,_0x110512={},_0x1d3e16=getValueByPath(_0x3f42b7,['name']);_0x1d3e16!=null&&setValueByPath(_0x110512,[_0xc4164a(0x206)],_0x1d3e16);const _0x507c3f=getValueByPath(_0x3f42b7,[_0xc4164a(0x1c2)]);_0x507c3f!=null&&setValueByPath(_0x110512,[_0xc4164a(0x1c2)],_0x507c3f);const _0x67e61d=getValueByPath(_0x3f42b7,[_0xc4164a(0x4ea)]);_0x67e61d!=null&&setValueByPath(_0x110512,['description'],_0x67e61d);const _0x50950c=getValueByPath(_0x3f42b7,['version']);_0x50950c!=null&&setValueByPath(_0x110512,[_0xc4164a(0x202)],_0x50950c);const _0x54de13=getValueByPath(_0x3f42b7,[_0xc4164a(0x39a)]);_0x54de13!=null&&setValueByPath(_0x110512,[_0xc4164a(0x590)],tunedModelInfoFromMldev(_0x54de13));const _0x143a10=getValueByPath(_0x3f42b7,[_0xc4164a(0x580)]);_0x143a10!=null&&setValueByPath(_0x110512,[_0xc4164a(0x580)],_0x143a10);const _0x4b1c44=getValueByPath(_0x3f42b7,[_0xc4164a(0x2ca)]);_0x4b1c44!=null&&setValueByPath(_0x110512,['outputTokenLimit'],_0x4b1c44);const _0x27b01e=getValueByPath(_0x3f42b7,[_0xc4164a(0x62d)]);_0x27b01e!=null&&setValueByPath(_0x110512,[_0xc4164a(0x43e)],_0x27b01e);const _0x3afa56=getValueByPath(_0x3f42b7,[_0xc4164a(0x1e3)]);_0x3afa56!=null&&setValueByPath(_0x110512,[_0xc4164a(0x1e3)],_0x3afa56);const _0x33d648=getValueByPath(_0x3f42b7,['maxTemperature']);_0x33d648!=null&&setValueByPath(_0x110512,[_0xc4164a(0xaa)],_0x33d648);const _0xb75a63=getValueByPath(_0x3f42b7,[_0xc4164a(0x159)]);_0xb75a63!=null&&setValueByPath(_0x110512,['topP'],_0xb75a63);const _0x4358c4=getValueByPath(_0x3f42b7,['topK']);_0x4358c4!=null&&setValueByPath(_0x110512,[_0xc4164a(0x411)],_0x4358c4);const _0x1aead8=getValueByPath(_0x3f42b7,[_0xc4164a(0x506)]);return _0x1aead8!=null&&setValueByPath(_0x110512,[_0xc4164a(0x506)],_0x1aead8),_0x110512;}function modelFromVertex(_0xde1fa5,_0x129b06){const _0x79dddb=a2_0x8e922d,_0x2b1a00={},_0x2075df=getValueByPath(_0xde1fa5,[_0x79dddb(0x206)]);_0x2075df!=null&&setValueByPath(_0x2b1a00,[_0x79dddb(0x206)],_0x2075df);const _0x17b295=getValueByPath(_0xde1fa5,['displayName']);_0x17b295!=null&&setValueByPath(_0x2b1a00,[_0x79dddb(0x1c2)],_0x17b295);const _0x453e15=getValueByPath(_0xde1fa5,[_0x79dddb(0x4ea)]);_0x453e15!=null&&setValueByPath(_0x2b1a00,['description'],_0x453e15);const _0x3e66f1=getValueByPath(_0xde1fa5,[_0x79dddb(0x413)]);_0x3e66f1!=null&&setValueByPath(_0x2b1a00,[_0x79dddb(0x202)],_0x3e66f1);const _0x21b492=getValueByPath(_0xde1fa5,[_0x79dddb(0x56a)]);if(_0x21b492!=null){let _0x4f4b55=_0x21b492;Array['isArray'](_0x4f4b55)&&(_0x4f4b55=_0x4f4b55[_0x79dddb(0x4a8)](_0x51aeba=>{return endpointFromVertex(_0x51aeba);})),setValueByPath(_0x2b1a00,[_0x79dddb(0x1a6)],_0x4f4b55);}const _0x5a00aa=getValueByPath(_0xde1fa5,['labels']);_0x5a00aa!=null&&setValueByPath(_0x2b1a00,['labels'],_0x5a00aa);const _0x378551=getValueByPath(_0xde1fa5,[_0x79dddb(0x39a)]);_0x378551!=null&&setValueByPath(_0x2b1a00,['tunedModelInfo'],tunedModelInfoFromVertex(_0x378551));const _0x4eccb9=getValueByPath(_0xde1fa5,[_0x79dddb(0x28a)]);_0x4eccb9!=null&&setValueByPath(_0x2b1a00,[_0x79dddb(0x28a)],_0x4eccb9);const _0x316ddf=getValueByPath(_0xde1fa5,[_0x79dddb(0x112)]);if(_0x316ddf!=null){let _0x283af2=_0x316ddf;Array[_0x79dddb(0x266)](_0x283af2)&&(_0x283af2=_0x283af2[_0x79dddb(0x4a8)](_0x47f16d=>{return _0x47f16d;})),setValueByPath(_0x2b1a00,[_0x79dddb(0x112)],_0x283af2);}return _0x2b1a00;}function partToMldev$1(_0x19468a,_0x4cd864){const _0x3f0429=a2_0x8e922d,_0x201b5d={},_0x359a17=getValueByPath(_0x19468a,[_0x3f0429(0x314)]);_0x359a17!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x314)],_0x359a17);const _0x402429=getValueByPath(_0x19468a,[_0x3f0429(0x686)]);_0x402429!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x686)],_0x402429);const _0x51d2c7=getValueByPath(_0x19468a,[_0x3f0429(0x295)]);_0x51d2c7!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x295)],_0x51d2c7);const _0x422f34=getValueByPath(_0x19468a,[_0x3f0429(0x49d)]);_0x422f34!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x49d)],fileDataToMldev$1(_0x422f34));const _0x2bb636=getValueByPath(_0x19468a,['functionCall']);_0x2bb636!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x521)],functionCallToMldev$1(_0x2bb636));const _0x1278d0=getValueByPath(_0x19468a,['functionResponse']);_0x1278d0!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x659)],_0x1278d0);const _0x5d3b73=getValueByPath(_0x19468a,[_0x3f0429(0x54b)]);_0x5d3b73!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x54b)],blobToMldev$1(_0x5d3b73));const _0x5e1a8e=getValueByPath(_0x19468a,['text']);_0x5e1a8e!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x1a8)],_0x5e1a8e);const _0x1824e1=getValueByPath(_0x19468a,[_0x3f0429(0x4d4)]);_0x1824e1!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x4d4)],_0x1824e1);const _0x498874=getValueByPath(_0x19468a,[_0x3f0429(0x643)]);_0x498874!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x643)],_0x498874);const _0x45772e=getValueByPath(_0x19468a,['videoMetadata']);return _0x45772e!=null&&setValueByPath(_0x201b5d,[_0x3f0429(0x3ad)],_0x45772e),_0x201b5d;}function productImageToVertex(_0x52efce,_0x73828a){const _0x4bc4bd=a2_0x8e922d,_0x2d3442={},_0x3fe329=getValueByPath(_0x52efce,[_0x4bc4bd(0x11e)]);return _0x3fe329!=null&&setValueByPath(_0x2d3442,[_0x4bc4bd(0x59f)],imageToVertex(_0x3fe329)),_0x2d3442;}function recontextImageConfigToVertex(_0x32dab2,_0x3bee28,_0x166796){const _0x73c218=a2_0x8e922d,_0x3f3f72={},_0x29a3d8=getValueByPath(_0x32dab2,[_0x73c218(0x3ec)]);_0x3bee28!==undefined&&_0x29a3d8!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),_0x73c218(0x276)],_0x29a3d8);const _0x491b9c=getValueByPath(_0x32dab2,[_0x73c218(0x606)]);_0x3bee28!==undefined&&_0x491b9c!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),'baseSteps'],_0x491b9c);const _0x153b54=getValueByPath(_0x32dab2,[_0x73c218(0x46d)]);_0x3bee28!==undefined&&_0x153b54!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),_0x73c218(0x16d)],_0x153b54);const _0x1681d9=getValueByPath(_0x32dab2,[_0x73c218(0x398)]);_0x3bee28!==undefined&&_0x1681d9!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),'seed'],_0x1681d9);const _0x426ac9=getValueByPath(_0x32dab2,['safetyFilterLevel']);_0x3bee28!==undefined&&_0x426ac9!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),_0x73c218(0x17f)],_0x426ac9);const _0x10f9ff=getValueByPath(_0x32dab2,[_0x73c218(0x47c)]);_0x3bee28!==undefined&&_0x10f9ff!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),_0x73c218(0x47c)],_0x10f9ff);const _0xc45c8b=getValueByPath(_0x32dab2,[_0x73c218(0xe4)]);_0x3bee28!==undefined&&_0xc45c8b!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),'addWatermark'],_0xc45c8b);const _0x1d3c2d=getValueByPath(_0x32dab2,[_0x73c218(0x5d4)]);_0x3bee28!==undefined&&_0x1d3c2d!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),_0x73c218(0x231),'mimeType'],_0x1d3c2d);const _0x552e02=getValueByPath(_0x32dab2,[_0x73c218(0x53c)]);_0x3bee28!==undefined&&_0x552e02!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),'outputOptions',_0x73c218(0x382)],_0x552e02);const _0x3a021c=getValueByPath(_0x32dab2,[_0x73c218(0x1bb)]);_0x3bee28!==undefined&&_0x3a021c!=null&&setValueByPath(_0x3bee28,[_0x73c218(0x28c),_0x73c218(0x1bb)],_0x3a021c);const _0x33b279=getValueByPath(_0x32dab2,[_0x73c218(0xee)]);return _0x3bee28!==undefined&&_0x33b279!=null&&setValueByPath(_0x3bee28,[_0x73c218(0xee)],_0x33b279),_0x3f3f72;}function recontextImageParametersToVertex(_0x2387ff,_0x39d6f5,_0x50f192){const _0x1d7b1c=a2_0x8e922d,_0x580d8e={},_0x3559bb=getValueByPath(_0x39d6f5,[_0x1d7b1c(0x638)]);_0x3559bb!=null&&setValueByPath(_0x580d8e,['_url',_0x1d7b1c(0x638)],tModel(_0x2387ff,_0x3559bb));const _0x3e6176=getValueByPath(_0x39d6f5,['source']);_0x3e6176!=null&&recontextImageSourceToVertex(_0x3e6176,_0x580d8e);const _0x50ed39=getValueByPath(_0x39d6f5,[_0x1d7b1c(0x182)]);return _0x50ed39!=null&&recontextImageConfigToVertex(_0x50ed39,_0x580d8e),_0x580d8e;}function recontextImageResponseFromVertex(_0x164c96,_0x344886){const _0x4a8cd7=a2_0x8e922d,_0x3c8643={},_0x19aeae=getValueByPath(_0x164c96,[_0x4a8cd7(0x60a)]);if(_0x19aeae!=null){let _0x310edb=_0x19aeae;Array['isArray'](_0x310edb)&&(_0x310edb=_0x310edb[_0x4a8cd7(0x4a8)](_0x446be9=>{return generatedImageFromVertex(_0x446be9);})),setValueByPath(_0x3c8643,['generatedImages'],_0x310edb);}return _0x3c8643;}function recontextImageSourceToVertex(_0x59ca07,_0x38c9a4,_0x14eb26){const _0x106ac1=a2_0x8e922d,_0x32c736={},_0x50dd07=getValueByPath(_0x59ca07,['prompt']);_0x38c9a4!==undefined&&_0x50dd07!=null&&setValueByPath(_0x38c9a4,[_0x106ac1(0x1a2),_0x106ac1(0x624)],_0x50dd07);const _0x5a53db=getValueByPath(_0x59ca07,[_0x106ac1(0x116)]);_0x38c9a4!==undefined&&_0x5a53db!=null&&setValueByPath(_0x38c9a4,[_0x106ac1(0x1a2),'personImage',_0x106ac1(0x59f)],imageToVertex(_0x5a53db));const _0x18e6a1=getValueByPath(_0x59ca07,[_0x106ac1(0x55b)]);if(_0x38c9a4!==undefined&&_0x18e6a1!=null){let _0x3bfa4a=_0x18e6a1;Array['isArray'](_0x3bfa4a)&&(_0x3bfa4a=_0x3bfa4a[_0x106ac1(0x4a8)](_0x36d72f=>{return productImageToVertex(_0x36d72f);})),setValueByPath(_0x38c9a4,[_0x106ac1(0x1a2),_0x106ac1(0x55b)],_0x3bfa4a);}return _0x32c736;}function referenceImageAPIInternalToVertex(_0x5b822e,_0x14f471){const _0x296108=a2_0x8e922d,_0x2fadfb={},_0x175e60=getValueByPath(_0x5b822e,[_0x296108(0x365)]);_0x175e60!=null&&setValueByPath(_0x2fadfb,[_0x296108(0x365)],imageToVertex(_0x175e60));const _0x3f000d=getValueByPath(_0x5b822e,['referenceId']);_0x3f000d!=null&&setValueByPath(_0x2fadfb,[_0x296108(0x3be)],_0x3f000d);const _0xaacb34=getValueByPath(_0x5b822e,[_0x296108(0x421)]);_0xaacb34!=null&&setValueByPath(_0x2fadfb,[_0x296108(0x421)],_0xaacb34);const _0x28800f=getValueByPath(_0x5b822e,[_0x296108(0xfb)]);_0x28800f!=null&&setValueByPath(_0x2fadfb,[_0x296108(0xfb)],maskReferenceConfigToVertex(_0x28800f));const _0x11dc49=getValueByPath(_0x5b822e,[_0x296108(0x1d2)]);_0x11dc49!=null&&setValueByPath(_0x2fadfb,[_0x296108(0x1d2)],controlReferenceConfigToVertex(_0x11dc49));const _0x5de3b3=getValueByPath(_0x5b822e,[_0x296108(0x30e)]);_0x5de3b3!=null&&setValueByPath(_0x2fadfb,[_0x296108(0x30e)],_0x5de3b3);const _0x3f39fc=getValueByPath(_0x5b822e,[_0x296108(0x5e4)]);return _0x3f39fc!=null&&setValueByPath(_0x2fadfb,[_0x296108(0x5e4)],_0x3f39fc),_0x2fadfb;}function safetyAttributesFromMldev(_0x18308d,_0x93f25b){const _0x12028b=a2_0x8e922d,_0x570ac4={},_0x37bdb7=getValueByPath(_0x18308d,[_0x12028b(0x595),_0x12028b(0xf1)]);_0x37bdb7!=null&&setValueByPath(_0x570ac4,[_0x12028b(0xf1)],_0x37bdb7);const _0x2b3811=getValueByPath(_0x18308d,[_0x12028b(0x595),_0x12028b(0x342)]);_0x2b3811!=null&&setValueByPath(_0x570ac4,['scores'],_0x2b3811);const _0x50708b=getValueByPath(_0x18308d,[_0x12028b(0x630)]);return _0x50708b!=null&&setValueByPath(_0x570ac4,[_0x12028b(0x630)],_0x50708b),_0x570ac4;}function safetyAttributesFromVertex(_0x33c74f,_0x358780){const _0x3fa64f=a2_0x8e922d,_0x3bd81c={},_0x2b19e8=getValueByPath(_0x33c74f,[_0x3fa64f(0x595),_0x3fa64f(0xf1)]);_0x2b19e8!=null&&setValueByPath(_0x3bd81c,[_0x3fa64f(0xf1)],_0x2b19e8);const _0x45b825=getValueByPath(_0x33c74f,['safetyAttributes',_0x3fa64f(0x342)]);_0x45b825!=null&&setValueByPath(_0x3bd81c,['scores'],_0x45b825);const _0x111ad9=getValueByPath(_0x33c74f,['contentType']);return _0x111ad9!=null&&setValueByPath(_0x3bd81c,[_0x3fa64f(0x630)],_0x111ad9),_0x3bd81c;}function safetySettingToMldev(_0x191547,_0x29d5aa){const _0x27c131=a2_0x8e922d,_0x3e5704={},_0x3ea305=getValueByPath(_0x191547,['category']);_0x3ea305!=null&&setValueByPath(_0x3e5704,[_0x27c131(0x327)],_0x3ea305);if(getValueByPath(_0x191547,[_0x27c131(0x2a1)])!==undefined)throw new Error('method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x3276cf=getValueByPath(_0x191547,['threshold']);return _0x3276cf!=null&&setValueByPath(_0x3e5704,['threshold'],_0x3276cf),_0x3e5704;}function scribbleImageToVertex(_0x2eecc8,_0xed5c04){const _0x3cdc40=a2_0x8e922d,_0x3ffde2={},_0x18b76a=getValueByPath(_0x2eecc8,[_0x3cdc40(0x59f)]);return _0x18b76a!=null&&setValueByPath(_0x3ffde2,[_0x3cdc40(0x59f)],imageToVertex(_0x18b76a)),_0x3ffde2;}function segmentImageConfigToVertex(_0x70fa3c,_0x292227,_0x4a46b4){const _0x3a1ef4=a2_0x8e922d,_0x549c6e={},_0x6ae373=getValueByPath(_0x70fa3c,['mode']);_0x292227!==undefined&&_0x6ae373!=null&&setValueByPath(_0x292227,[_0x3a1ef4(0x28c),_0x3a1ef4(0x2de)],_0x6ae373);const _0x41896e=getValueByPath(_0x70fa3c,[_0x3a1ef4(0x5f9)]);_0x292227!==undefined&&_0x41896e!=null&&setValueByPath(_0x292227,[_0x3a1ef4(0x28c),_0x3a1ef4(0x5f9)],_0x41896e);const _0x1f2b85=getValueByPath(_0x70fa3c,[_0x3a1ef4(0x660)]);_0x292227!==undefined&&_0x1f2b85!=null&&setValueByPath(_0x292227,[_0x3a1ef4(0x28c),'confidenceThreshold'],_0x1f2b85);const _0x351ed6=getValueByPath(_0x70fa3c,[_0x3a1ef4(0x51d)]);_0x292227!==undefined&&_0x351ed6!=null&&setValueByPath(_0x292227,['parameters',_0x3a1ef4(0x51d)],_0x351ed6);const _0x375e9d=getValueByPath(_0x70fa3c,[_0x3a1ef4(0x6a5)]);_0x292227!==undefined&&_0x375e9d!=null&&setValueByPath(_0x292227,[_0x3a1ef4(0x28c),_0x3a1ef4(0x6a5)],_0x375e9d);const _0x5d7c18=getValueByPath(_0x70fa3c,[_0x3a1ef4(0xee)]);return _0x292227!==undefined&&_0x5d7c18!=null&&setValueByPath(_0x292227,[_0x3a1ef4(0xee)],_0x5d7c18),_0x549c6e;}function segmentImageParametersToVertex(_0x17c2d8,_0x155b59,_0x50a773){const _0x4183a2=a2_0x8e922d,_0xa5aebd={},_0x14fc38=getValueByPath(_0x155b59,['model']);_0x14fc38!=null&&setValueByPath(_0xa5aebd,[_0x4183a2(0x334),_0x4183a2(0x638)],tModel(_0x17c2d8,_0x14fc38));const _0x41b867=getValueByPath(_0x155b59,[_0x4183a2(0x58a)]);_0x41b867!=null&&segmentImageSourceToVertex(_0x41b867,_0xa5aebd);const _0x557d43=getValueByPath(_0x155b59,['config']);return _0x557d43!=null&&segmentImageConfigToVertex(_0x557d43,_0xa5aebd),_0xa5aebd;}function segmentImageResponseFromVertex(_0x3b4073,_0x5941de){const _0x8d6e27=a2_0x8e922d,_0x419d48={},_0x1db7f5=getValueByPath(_0x3b4073,['predictions']);if(_0x1db7f5!=null){let _0x4b2805=_0x1db7f5;Array[_0x8d6e27(0x266)](_0x4b2805)&&(_0x4b2805=_0x4b2805[_0x8d6e27(0x4a8)](_0x1e492a=>{return generatedImageMaskFromVertex(_0x1e492a);})),setValueByPath(_0x419d48,[_0x8d6e27(0x325)],_0x4b2805);}return _0x419d48;}function segmentImageSourceToVertex(_0x33e878,_0x5d23d0,_0x5d2f54){const _0x1f6f3b=a2_0x8e922d,_0x554ea7={},_0x51f561=getValueByPath(_0x33e878,[_0x1f6f3b(0x624)]);_0x5d23d0!==undefined&&_0x51f561!=null&&setValueByPath(_0x5d23d0,[_0x1f6f3b(0x1a2),_0x1f6f3b(0x624)],_0x51f561);const _0x40362f=getValueByPath(_0x33e878,['image']);_0x5d23d0!==undefined&&_0x40362f!=null&&setValueByPath(_0x5d23d0,[_0x1f6f3b(0x1a2),_0x1f6f3b(0x59f)],imageToVertex(_0x40362f));const _0x18363c=getValueByPath(_0x33e878,[_0x1f6f3b(0x66b)]);return _0x5d23d0!==undefined&&_0x18363c!=null&&setValueByPath(_0x5d23d0,['instances[0]',_0x1f6f3b(0x181)],scribbleImageToVertex(_0x18363c)),_0x554ea7;}function toolConfigToMldev(_0x4122ae,_0x2ca2d6){const _0x2f18ad=a2_0x8e922d,_0xa4920c={},_0x5ae6d3=getValueByPath(_0x4122ae,[_0x2f18ad(0x5c2)]);_0x5ae6d3!=null&&setValueByPath(_0xa4920c,[_0x2f18ad(0x5c2)],_0x5ae6d3);const _0x45d54e=getValueByPath(_0x4122ae,['functionCallingConfig']);return _0x45d54e!=null&&setValueByPath(_0xa4920c,[_0x2f18ad(0x132)],functionCallingConfigToMldev(_0x45d54e)),_0xa4920c;}function toolToMldev$1(_0x59ef71,_0xc3d39){const _0x2b222b=a2_0x8e922d,_0xe41025={};if(getValueByPath(_0x59ef71,[_0x2b222b(0x113)])!==undefined)throw new Error('retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x21e5db=getValueByPath(_0x59ef71,[_0x2b222b(0x6a1)]);_0x21e5db!=null&&setValueByPath(_0xe41025,[_0x2b222b(0x6a1)],_0x21e5db);const _0x5b97cc=getValueByPath(_0x59ef71,[_0x2b222b(0x2c6)]);_0x5b97cc!=null&&setValueByPath(_0xe41025,['fileSearch'],_0x5b97cc);const _0xdbb3f7=getValueByPath(_0x59ef71,[_0x2b222b(0x567)]);_0xdbb3f7!=null&&setValueByPath(_0xe41025,[_0x2b222b(0x567)],_0xdbb3f7);if(getValueByPath(_0x59ef71,[_0x2b222b(0x11b)])!==undefined)throw new Error(_0x2b222b(0x244));const _0x44b0a1=getValueByPath(_0x59ef71,[_0x2b222b(0x4e2)]);if(_0x44b0a1!=null){let _0x4905b6=_0x44b0a1;Array[_0x2b222b(0x266)](_0x4905b6)&&(_0x4905b6=_0x4905b6[_0x2b222b(0x4a8)](_0x3a7bf4=>{return _0x3a7bf4;})),setValueByPath(_0xe41025,['functionDeclarations'],_0x4905b6);}const _0xe74f54=getValueByPath(_0x59ef71,[_0x2b222b(0x118)]);_0xe74f54!=null&&setValueByPath(_0xe41025,['googleMaps'],googleMapsToMldev$1(_0xe74f54));const _0x5ca077=getValueByPath(_0x59ef71,[_0x2b222b(0x1f9)]);_0x5ca077!=null&&setValueByPath(_0xe41025,['googleSearch'],googleSearchToMldev$1(_0x5ca077));const _0x7939ee=getValueByPath(_0x59ef71,['googleSearchRetrieval']);_0x7939ee!=null&&setValueByPath(_0xe41025,[_0x2b222b(0x151)],_0x7939ee);const _0x5a2475=getValueByPath(_0x59ef71,[_0x2b222b(0x642)]);return _0x5a2475!=null&&setValueByPath(_0xe41025,[_0x2b222b(0x642)],_0x5a2475),_0xe41025;}function toolToVertex(_0x26d1be,_0x4f5a3f){const _0x234d2d=a2_0x8e922d,_0x4a66f6={},_0x5c1856=getValueByPath(_0x26d1be,[_0x234d2d(0x113)]);_0x5c1856!=null&&setValueByPath(_0x4a66f6,['retrieval'],_0x5c1856);const _0x2f2533=getValueByPath(_0x26d1be,[_0x234d2d(0x6a1)]);_0x2f2533!=null&&setValueByPath(_0x4a66f6,['computerUse'],_0x2f2533);if(getValueByPath(_0x26d1be,[_0x234d2d(0x2c6)])!==undefined)throw new Error(_0x234d2d(0x1dc));const _0x1c340b=getValueByPath(_0x26d1be,['codeExecution']);_0x1c340b!=null&&setValueByPath(_0x4a66f6,[_0x234d2d(0x567)],_0x1c340b);const _0x3ef94c=getValueByPath(_0x26d1be,[_0x234d2d(0x11b)]);_0x3ef94c!=null&&setValueByPath(_0x4a66f6,[_0x234d2d(0x11b)],_0x3ef94c);const _0x4116b8=getValueByPath(_0x26d1be,[_0x234d2d(0x4e2)]);if(_0x4116b8!=null){let _0x192fe1=_0x4116b8;Array[_0x234d2d(0x266)](_0x192fe1)&&(_0x192fe1=_0x192fe1[_0x234d2d(0x4a8)](_0x398e91=>{return functionDeclarationToVertex(_0x398e91);})),setValueByPath(_0x4a66f6,['functionDeclarations'],_0x192fe1);}const _0x65caad=getValueByPath(_0x26d1be,[_0x234d2d(0x118)]);_0x65caad!=null&&setValueByPath(_0x4a66f6,[_0x234d2d(0x118)],_0x65caad);const _0x20120c=getValueByPath(_0x26d1be,[_0x234d2d(0x1f9)]);_0x20120c!=null&&setValueByPath(_0x4a66f6,['googleSearch'],_0x20120c);const _0x469041=getValueByPath(_0x26d1be,[_0x234d2d(0x151)]);_0x469041!=null&&setValueByPath(_0x4a66f6,[_0x234d2d(0x151)],_0x469041);const _0x28d0cd=getValueByPath(_0x26d1be,['urlContext']);return _0x28d0cd!=null&&setValueByPath(_0x4a66f6,['urlContext'],_0x28d0cd),_0x4a66f6;}function tunedModelInfoFromMldev(_0x8119ef,_0x3e969d){const _0x52d63b=a2_0x8e922d,_0x4c5e3f={},_0x1a0a9e=getValueByPath(_0x8119ef,[_0x52d63b(0x674)]);_0x1a0a9e!=null&&setValueByPath(_0x4c5e3f,[_0x52d63b(0x674)],_0x1a0a9e);const _0x259a9c=getValueByPath(_0x8119ef,[_0x52d63b(0x15b)]);_0x259a9c!=null&&setValueByPath(_0x4c5e3f,[_0x52d63b(0x15b)],_0x259a9c);const _0x89b0eb=getValueByPath(_0x8119ef,[_0x52d63b(0x3ef)]);return _0x89b0eb!=null&&setValueByPath(_0x4c5e3f,['updateTime'],_0x89b0eb),_0x4c5e3f;}function tunedModelInfoFromVertex(_0x45c447,_0x58ae19){const _0x25bb69=a2_0x8e922d,_0x567c0b={},_0x530e21=getValueByPath(_0x45c447,['labels',_0x25bb69(0x4ce)]);_0x530e21!=null&&setValueByPath(_0x567c0b,[_0x25bb69(0x674)],_0x530e21);const _0x3919f7=getValueByPath(_0x45c447,[_0x25bb69(0x15b)]);_0x3919f7!=null&&setValueByPath(_0x567c0b,[_0x25bb69(0x15b)],_0x3919f7);const _0x2ac1e2=getValueByPath(_0x45c447,[_0x25bb69(0x3ef)]);return _0x2ac1e2!=null&&setValueByPath(_0x567c0b,[_0x25bb69(0x3ef)],_0x2ac1e2),_0x567c0b;}function updateModelConfigToMldev(_0x26c6e7,_0x2d1775,_0x3fe2a3){const _0x4884f5=a2_0x8e922d,_0x1ba1cf={},_0x16b3d7=getValueByPath(_0x26c6e7,[_0x4884f5(0x1c2)]);_0x2d1775!==undefined&&_0x16b3d7!=null&&setValueByPath(_0x2d1775,[_0x4884f5(0x1c2)],_0x16b3d7);const _0x544c96=getValueByPath(_0x26c6e7,[_0x4884f5(0x4ea)]);_0x2d1775!==undefined&&_0x544c96!=null&&setValueByPath(_0x2d1775,['description'],_0x544c96);const _0x1f5dc2=getValueByPath(_0x26c6e7,['defaultCheckpointId']);return _0x2d1775!==undefined&&_0x1f5dc2!=null&&setValueByPath(_0x2d1775,[_0x4884f5(0x28a)],_0x1f5dc2),_0x1ba1cf;}function updateModelConfigToVertex(_0x4d9e91,_0x37ccdb,_0x396d02){const _0x344d02=a2_0x8e922d,_0x4c116b={},_0x4cbf7e=getValueByPath(_0x4d9e91,[_0x344d02(0x1c2)]);_0x37ccdb!==undefined&&_0x4cbf7e!=null&&setValueByPath(_0x37ccdb,[_0x344d02(0x1c2)],_0x4cbf7e);const _0x5d9479=getValueByPath(_0x4d9e91,[_0x344d02(0x4ea)]);_0x37ccdb!==undefined&&_0x5d9479!=null&&setValueByPath(_0x37ccdb,[_0x344d02(0x4ea)],_0x5d9479);const _0x5793f8=getValueByPath(_0x4d9e91,[_0x344d02(0x28a)]);return _0x37ccdb!==undefined&&_0x5793f8!=null&&setValueByPath(_0x37ccdb,['defaultCheckpointId'],_0x5793f8),_0x4c116b;}function updateModelParametersToMldev(_0x36b569,_0x6020b6,_0x8da6b9){const _0x2d3984=a2_0x8e922d,_0x1c53ab={},_0x6e69cc=getValueByPath(_0x6020b6,[_0x2d3984(0x638)]);_0x6e69cc!=null&&setValueByPath(_0x1c53ab,['_url',_0x2d3984(0x206)],tModel(_0x36b569,_0x6e69cc));const _0x353ddb=getValueByPath(_0x6020b6,[_0x2d3984(0x182)]);return _0x353ddb!=null&&updateModelConfigToMldev(_0x353ddb,_0x1c53ab),_0x1c53ab;}function updateModelParametersToVertex(_0xca0833,_0x543586,_0x233ced){const _0x564363=a2_0x8e922d,_0x4f9f68={},_0x126ed8=getValueByPath(_0x543586,[_0x564363(0x638)]);_0x126ed8!=null&&setValueByPath(_0x4f9f68,[_0x564363(0x334),'model'],tModel(_0xca0833,_0x126ed8));const _0x3f8363=getValueByPath(_0x543586,[_0x564363(0x182)]);return _0x3f8363!=null&&updateModelConfigToVertex(_0x3f8363,_0x4f9f68),_0x4f9f68;}function upscaleImageAPIConfigInternalToVertex(_0x5ecc99,_0x6bd309,_0x515517){const _0x372e1d=a2_0x8e922d,_0x2ad9e3={},_0x301951=getValueByPath(_0x5ecc99,[_0x372e1d(0x46d)]);_0x6bd309!==undefined&&_0x301951!=null&&setValueByPath(_0x6bd309,['parameters',_0x372e1d(0x16d)],_0x301951);const _0x135832=getValueByPath(_0x5ecc99,[_0x372e1d(0x3d7)]);_0x6bd309!==undefined&&_0x135832!=null&&setValueByPath(_0x6bd309,['parameters',_0x372e1d(0x17f)],_0x135832);const _0x5166fc=getValueByPath(_0x5ecc99,[_0x372e1d(0x47c)]);_0x6bd309!==undefined&&_0x5166fc!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),'personGeneration'],_0x5166fc);const _0x19a29d=getValueByPath(_0x5ecc99,[_0x372e1d(0xe8)]);_0x6bd309!==undefined&&_0x19a29d!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),_0x372e1d(0xe8)],_0x19a29d);const _0x3831c4=getValueByPath(_0x5ecc99,['outputMimeType']);_0x6bd309!==undefined&&_0x3831c4!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),_0x372e1d(0x231),_0x372e1d(0x3c0)],_0x3831c4);const _0x2c0000=getValueByPath(_0x5ecc99,['outputCompressionQuality']);_0x6bd309!==undefined&&_0x2c0000!=null&&setValueByPath(_0x6bd309,['parameters',_0x372e1d(0x231),'compressionQuality'],_0x2c0000);const _0x1be1af=getValueByPath(_0x5ecc99,['enhanceInputImage']);_0x6bd309!==undefined&&_0x1be1af!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),'upscaleConfig',_0x372e1d(0x329)],_0x1be1af);const _0x961506=getValueByPath(_0x5ecc99,['imagePreservationFactor']);_0x6bd309!==undefined&&_0x961506!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),_0x372e1d(0x142),_0x372e1d(0x60c)],_0x961506);const _0x5844ed=getValueByPath(_0x5ecc99,[_0x372e1d(0xee)]);_0x6bd309!==undefined&&_0x5844ed!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0xee)],_0x5844ed);const _0x2b00f9=getValueByPath(_0x5ecc99,[_0x372e1d(0x3ec)]);_0x6bd309!==undefined&&_0x2b00f9!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),_0x372e1d(0x276)],_0x2b00f9);const _0x4fff39=getValueByPath(_0x5ecc99,['mode']);return _0x6bd309!==undefined&&_0x4fff39!=null&&setValueByPath(_0x6bd309,[_0x372e1d(0x28c),_0x372e1d(0x2de)],_0x4fff39),_0x2ad9e3;}function upscaleImageAPIParametersInternalToVertex(_0x4838bc,_0x4d13c4,_0x1e2be5){const _0x2b28f7=a2_0x8e922d,_0x14ebbf={},_0x193438=getValueByPath(_0x4d13c4,[_0x2b28f7(0x638)]);_0x193438!=null&&setValueByPath(_0x14ebbf,[_0x2b28f7(0x334),'model'],tModel(_0x4838bc,_0x193438));const _0x3b4059=getValueByPath(_0x4d13c4,['image']);_0x3b4059!=null&&setValueByPath(_0x14ebbf,[_0x2b28f7(0x1a2),_0x2b28f7(0x59f)],imageToVertex(_0x3b4059));const _0x3a59fd=getValueByPath(_0x4d13c4,['upscaleFactor']);_0x3a59fd!=null&&setValueByPath(_0x14ebbf,[_0x2b28f7(0x28c),'upscaleConfig',_0x2b28f7(0x370)],_0x3a59fd);const _0x4a840b=getValueByPath(_0x4d13c4,['config']);return _0x4a840b!=null&&upscaleImageAPIConfigInternalToVertex(_0x4a840b,_0x14ebbf),_0x14ebbf;}function upscaleImageResponseFromVertex(_0xa15042,_0x670d4d){const _0x4ac705=a2_0x8e922d,_0x115d1f={},_0x4bc287=getValueByPath(_0xa15042,[_0x4ac705(0x3a0)]);_0x4bc287!=null&&setValueByPath(_0x115d1f,[_0x4ac705(0x3a0)],_0x4bc287);const _0x2b1461=getValueByPath(_0xa15042,[_0x4ac705(0x60a)]);if(_0x2b1461!=null){let _0x367fe2=_0x2b1461;Array[_0x4ac705(0x266)](_0x367fe2)&&(_0x367fe2=_0x367fe2['map'](_0x1f78d5=>{return generatedImageFromVertex(_0x1f78d5);})),setValueByPath(_0x115d1f,[_0x4ac705(0x682)],_0x367fe2);}return _0x115d1f;}function videoFromMldev(_0x54fe15,_0x29db01){const _0x4e33f7=a2_0x8e922d,_0x10a7c5={},_0xef5edd=getValueByPath(_0x54fe15,[_0x4e33f7(0x1a0)]);_0xef5edd!=null&&setValueByPath(_0x10a7c5,[_0x4e33f7(0x1a0)],_0xef5edd);const _0x2f5468=getValueByPath(_0x54fe15,[_0x4e33f7(0x22b)]);_0x2f5468!=null&&setValueByPath(_0x10a7c5,[_0x4e33f7(0x426)],tBytes(_0x2f5468));const _0x4c3d23=getValueByPath(_0x54fe15,[_0x4e33f7(0x323)]);return _0x4c3d23!=null&&setValueByPath(_0x10a7c5,[_0x4e33f7(0x3c0)],_0x4c3d23),_0x10a7c5;}function videoFromVertex(_0xaee6a1,_0x24aa7e){const _0x260494=a2_0x8e922d,_0x4d023e={},_0x10231f=getValueByPath(_0xaee6a1,[_0x260494(0x305)]);_0x10231f!=null&&setValueByPath(_0x4d023e,[_0x260494(0x1a0)],_0x10231f);const _0x1253d3=getValueByPath(_0xaee6a1,['bytesBase64Encoded']);_0x1253d3!=null&&setValueByPath(_0x4d023e,[_0x260494(0x426)],tBytes(_0x1253d3));const _0x5be319=getValueByPath(_0xaee6a1,[_0x260494(0x3c0)]);return _0x5be319!=null&&setValueByPath(_0x4d023e,[_0x260494(0x3c0)],_0x5be319),_0x4d023e;}function videoGenerationMaskToVertex(_0x1f5863,_0x2e36c1){const _0x4b0801=a2_0x8e922d,_0x3c2083={},_0x5d7b8f=getValueByPath(_0x1f5863,[_0x4b0801(0x59f)]);_0x5d7b8f!=null&&setValueByPath(_0x3c2083,[_0x4b0801(0x39a)],imageToVertex(_0x5d7b8f));const _0x2bbb02=getValueByPath(_0x1f5863,[_0x4b0801(0xf4)]);return _0x2bbb02!=null&&setValueByPath(_0x3c2083,[_0x4b0801(0xf4)],_0x2bbb02),_0x3c2083;}function videoGenerationReferenceImageToMldev(_0x4a06d4,_0x5c2146){const _0x236b4a=a2_0x8e922d,_0x1531fe={},_0x3245c0=getValueByPath(_0x4a06d4,['image']);_0x3245c0!=null&&setValueByPath(_0x1531fe,[_0x236b4a(0x59f)],imageToMldev(_0x3245c0));const _0x64becb=getValueByPath(_0x4a06d4,[_0x236b4a(0x421)]);return _0x64becb!=null&&setValueByPath(_0x1531fe,[_0x236b4a(0x421)],_0x64becb),_0x1531fe;}function videoGenerationReferenceImageToVertex(_0x41f113,_0x1ca9b0){const _0xb374b8=a2_0x8e922d,_0x26e12a={},_0x1e5a73=getValueByPath(_0x41f113,[_0xb374b8(0x59f)]);_0x1e5a73!=null&&setValueByPath(_0x26e12a,[_0xb374b8(0x59f)],imageToVertex(_0x1e5a73));const _0x11debf=getValueByPath(_0x41f113,['referenceType']);return _0x11debf!=null&&setValueByPath(_0x26e12a,[_0xb374b8(0x421)],_0x11debf),_0x26e12a;}function videoToMldev(_0x32a4b9,_0x5ef8de){const _0x3084f3=a2_0x8e922d,_0x5ef23d={},_0x402abc=getValueByPath(_0x32a4b9,[_0x3084f3(0x1a0)]);_0x402abc!=null&&setValueByPath(_0x5ef23d,[_0x3084f3(0x1a0)],_0x402abc);const _0x35eeaf=getValueByPath(_0x32a4b9,[_0x3084f3(0x426)]);_0x35eeaf!=null&&setValueByPath(_0x5ef23d,['encodedVideo'],tBytes(_0x35eeaf));const _0x2a2b0c=getValueByPath(_0x32a4b9,[_0x3084f3(0x3c0)]);return _0x2a2b0c!=null&&setValueByPath(_0x5ef23d,[_0x3084f3(0x323)],_0x2a2b0c),_0x5ef23d;}function videoToVertex(_0x348e72,_0x1cd2db){const _0x50dba2=a2_0x8e922d,_0x350369={},_0x4ad7fc=getValueByPath(_0x348e72,['uri']);_0x4ad7fc!=null&&setValueByPath(_0x350369,['gcsUri'],_0x4ad7fc);const _0x4dbc5b=getValueByPath(_0x348e72,['videoBytes']);_0x4dbc5b!=null&&setValueByPath(_0x350369,[_0x50dba2(0x64e)],tBytes(_0x4dbc5b));const _0x48b8fd=getValueByPath(_0x348e72,['mimeType']);return _0x48b8fd!=null&&setValueByPath(_0x350369,['mimeType'],_0x48b8fd),_0x350369;}/**
|
|
87
|
+
* @license
|
|
88
|
+
* Copyright 2025 Google LLC
|
|
89
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
90
|
+
*/
|
|
91
|
+
function createFileSearchStoreConfigToMldev(_0x12258b,_0x4a5789){const _0x485cd8=a2_0x8e922d,_0x1b5dcf={},_0x4f85c8=getValueByPath(_0x12258b,[_0x485cd8(0x1c2)]);return _0x4a5789!==undefined&&_0x4f85c8!=null&&setValueByPath(_0x4a5789,[_0x485cd8(0x1c2)],_0x4f85c8),_0x1b5dcf;}function createFileSearchStoreParametersToMldev(_0x161679){const _0x362000=a2_0x8e922d,_0x1d5f9a={},_0x4f7c4b=getValueByPath(_0x161679,[_0x362000(0x182)]);return _0x4f7c4b!=null&&createFileSearchStoreConfigToMldev(_0x4f7c4b,_0x1d5f9a),_0x1d5f9a;}function deleteFileSearchStoreConfigToMldev(_0x559283,_0x325b0a){const _0x5f4042=a2_0x8e922d,_0x1421ed={},_0x2e23a7=getValueByPath(_0x559283,[_0x5f4042(0x48c)]);return _0x325b0a!==undefined&&_0x2e23a7!=null&&setValueByPath(_0x325b0a,[_0x5f4042(0xa9),_0x5f4042(0x48c)],_0x2e23a7),_0x1421ed;}function deleteFileSearchStoreParametersToMldev(_0x1040e5){const _0x492186=a2_0x8e922d,_0x24178f={},_0x45498a=getValueByPath(_0x1040e5,[_0x492186(0x206)]);_0x45498a!=null&&setValueByPath(_0x24178f,['_url','name'],_0x45498a);const _0x1ec878=getValueByPath(_0x1040e5,[_0x492186(0x182)]);return _0x1ec878!=null&&deleteFileSearchStoreConfigToMldev(_0x1ec878,_0x24178f),_0x24178f;}function getFileSearchStoreParametersToMldev(_0x4e164f){const _0x3e057f=a2_0x8e922d,_0x11ed42={},_0x508e43=getValueByPath(_0x4e164f,[_0x3e057f(0x206)]);return _0x508e43!=null&&setValueByPath(_0x11ed42,['_url',_0x3e057f(0x206)],_0x508e43),_0x11ed42;}function importFileConfigToMldev(_0x4fc9bd,_0x47a23b){const _0x2c9427=a2_0x8e922d,_0x32668d={},_0x3b8112=getValueByPath(_0x4fc9bd,[_0x2c9427(0x328)]);if(_0x47a23b!==undefined&&_0x3b8112!=null){let _0x49c6e3=_0x3b8112;Array[_0x2c9427(0x266)](_0x49c6e3)&&(_0x49c6e3=_0x49c6e3[_0x2c9427(0x4a8)](_0x206288=>{return _0x206288;})),setValueByPath(_0x47a23b,[_0x2c9427(0x328)],_0x49c6e3);}const _0x128699=getValueByPath(_0x4fc9bd,['chunkingConfig']);return _0x47a23b!==undefined&&_0x128699!=null&&setValueByPath(_0x47a23b,[_0x2c9427(0x693)],_0x128699),_0x32668d;}function importFileOperationFromMldev(_0x96fe7a){const _0x90fb01=a2_0x8e922d,_0x22eb37={},_0x3a7eac=getValueByPath(_0x96fe7a,[_0x90fb01(0x206)]);_0x3a7eac!=null&&setValueByPath(_0x22eb37,[_0x90fb01(0x206)],_0x3a7eac);const _0x51b471=getValueByPath(_0x96fe7a,[_0x90fb01(0x172)]);_0x51b471!=null&&setValueByPath(_0x22eb37,[_0x90fb01(0x172)],_0x51b471);const _0x5523d8=getValueByPath(_0x96fe7a,[_0x90fb01(0x4ae)]);_0x5523d8!=null&&setValueByPath(_0x22eb37,[_0x90fb01(0x4ae)],_0x5523d8);const _0x38ce42=getValueByPath(_0x96fe7a,[_0x90fb01(0x262)]);_0x38ce42!=null&&setValueByPath(_0x22eb37,[_0x90fb01(0x262)],_0x38ce42);const _0x54190f=getValueByPath(_0x96fe7a,['response']);return _0x54190f!=null&&setValueByPath(_0x22eb37,['response'],importFileResponseFromMldev(_0x54190f)),_0x22eb37;}function importFileParametersToMldev(_0x2b613a){const _0x52b555=a2_0x8e922d,_0xf2ca1f={},_0x21886a=getValueByPath(_0x2b613a,[_0x52b555(0x5f5)]);_0x21886a!=null&&setValueByPath(_0xf2ca1f,['_url',_0x52b555(0x513)],_0x21886a);const _0x3a2921=getValueByPath(_0x2b613a,[_0x52b555(0x155)]);_0x3a2921!=null&&setValueByPath(_0xf2ca1f,[_0x52b555(0x155)],_0x3a2921);const _0x5c3a23=getValueByPath(_0x2b613a,[_0x52b555(0x182)]);return _0x5c3a23!=null&&importFileConfigToMldev(_0x5c3a23,_0xf2ca1f),_0xf2ca1f;}function importFileResponseFromMldev(_0x356068){const _0xb7e126=a2_0x8e922d,_0x3ff6f7={},_0x2cfd15=getValueByPath(_0x356068,[_0xb7e126(0x3a0)]);_0x2cfd15!=null&&setValueByPath(_0x3ff6f7,[_0xb7e126(0x3a0)],_0x2cfd15);const _0x56f1a5=getValueByPath(_0x356068,[_0xb7e126(0x232)]);_0x56f1a5!=null&&setValueByPath(_0x3ff6f7,[_0xb7e126(0x232)],_0x56f1a5);const _0x41566a=getValueByPath(_0x356068,['documentName']);return _0x41566a!=null&&setValueByPath(_0x3ff6f7,[_0xb7e126(0x380)],_0x41566a),_0x3ff6f7;}function listFileSearchStoresConfigToMldev(_0x4c7fe6,_0x334cdb){const _0xd4d494=a2_0x8e922d,_0x564bf5={},_0x380c5e=getValueByPath(_0x4c7fe6,[_0xd4d494(0x546)]);_0x334cdb!==undefined&&_0x380c5e!=null&&setValueByPath(_0x334cdb,[_0xd4d494(0xa9),_0xd4d494(0x546)],_0x380c5e);const _0x3c9dcd=getValueByPath(_0x4c7fe6,[_0xd4d494(0x193)]);return _0x334cdb!==undefined&&_0x3c9dcd!=null&&setValueByPath(_0x334cdb,['_query',_0xd4d494(0x193)],_0x3c9dcd),_0x564bf5;}function listFileSearchStoresParametersToMldev(_0xb14af9){const _0x17bc7e=a2_0x8e922d,_0x2997eb={},_0x5e2175=getValueByPath(_0xb14af9,[_0x17bc7e(0x182)]);return _0x5e2175!=null&&listFileSearchStoresConfigToMldev(_0x5e2175,_0x2997eb),_0x2997eb;}function listFileSearchStoresResponseFromMldev(_0xd1210f){const _0x38cca4=a2_0x8e922d,_0x84f939={},_0x27e7f5=getValueByPath(_0xd1210f,[_0x38cca4(0x3a0)]);_0x27e7f5!=null&&setValueByPath(_0x84f939,[_0x38cca4(0x3a0)],_0x27e7f5);const _0x6629aa=getValueByPath(_0xd1210f,[_0x38cca4(0x12c)]);_0x6629aa!=null&&setValueByPath(_0x84f939,['nextPageToken'],_0x6629aa);const _0x4ffccc=getValueByPath(_0xd1210f,[_0x38cca4(0x6b3)]);if(_0x4ffccc!=null){let _0x1e92e3=_0x4ffccc;Array[_0x38cca4(0x266)](_0x1e92e3)&&(_0x1e92e3=_0x1e92e3[_0x38cca4(0x4a8)](_0x30c0df=>{return _0x30c0df;})),setValueByPath(_0x84f939,[_0x38cca4(0x6b3)],_0x1e92e3);}return _0x84f939;}function uploadToFileSearchStoreConfigToMldev(_0x382b0f,_0x2b7a41){const _0x5c9e7f=a2_0x8e922d,_0x5507e0={},_0x29ac77=getValueByPath(_0x382b0f,[_0x5c9e7f(0x3c0)]);_0x2b7a41!==undefined&&_0x29ac77!=null&&setValueByPath(_0x2b7a41,[_0x5c9e7f(0x3c0)],_0x29ac77);const _0x41f223=getValueByPath(_0x382b0f,[_0x5c9e7f(0x1c2)]);_0x2b7a41!==undefined&&_0x41f223!=null&&setValueByPath(_0x2b7a41,['displayName'],_0x41f223);const _0x4268ed=getValueByPath(_0x382b0f,['customMetadata']);if(_0x2b7a41!==undefined&&_0x4268ed!=null){let _0x271966=_0x4268ed;Array[_0x5c9e7f(0x266)](_0x271966)&&(_0x271966=_0x271966[_0x5c9e7f(0x4a8)](_0x3d4b2=>{return _0x3d4b2;})),setValueByPath(_0x2b7a41,[_0x5c9e7f(0x328)],_0x271966);}const _0x58089f=getValueByPath(_0x382b0f,[_0x5c9e7f(0x693)]);return _0x2b7a41!==undefined&&_0x58089f!=null&&setValueByPath(_0x2b7a41,[_0x5c9e7f(0x693)],_0x58089f),_0x5507e0;}function uploadToFileSearchStoreParametersToMldev(_0xd247d2){const _0x2c3e6f=a2_0x8e922d,_0x33edfe={},_0x89d743=getValueByPath(_0xd247d2,[_0x2c3e6f(0x5f5)]);_0x89d743!=null&&setValueByPath(_0x33edfe,[_0x2c3e6f(0x334),_0x2c3e6f(0x513)],_0x89d743);const _0xf7f0b9=getValueByPath(_0xd247d2,[_0x2c3e6f(0x182)]);return _0xf7f0b9!=null&&uploadToFileSearchStoreConfigToMldev(_0xf7f0b9,_0x33edfe),_0x33edfe;}function uploadToFileSearchStoreResumableResponseFromMldev(_0x6a6404){const _0x5a5c86=a2_0x8e922d,_0x99e24c={},_0x3efdfa=getValueByPath(_0x6a6404,['sdkHttpResponse']);return _0x3efdfa!=null&&setValueByPath(_0x99e24c,[_0x5a5c86(0x3a0)],_0x3efdfa),_0x99e24c;}/**
|
|
92
|
+
* @license
|
|
93
|
+
* Copyright 2025 Google LLC
|
|
94
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
95
|
+
*/
|
|
96
|
+
const CONTENT_TYPE_HEADER=a2_0x8e922d(0x649),SERVER_TIMEOUT_HEADER='X-Server-Timeout',USER_AGENT_HEADER=a2_0x8e922d(0x263),GOOGLE_API_CLIENT_HEADER='x-goog-api-client',SDK_VERSION=a2_0x8e922d(0x360),LIBRARY_LABEL=a2_0x8e922d(0x697)+SDK_VERSION,VERTEX_AI_API_DEFAULT_VERSION=a2_0x8e922d(0x588),GOOGLE_AI_API_DEFAULT_VERSION=a2_0x8e922d(0x5cf);class ApiClient{constructor(_0x21cd80){const _0x11bf72=a2_0x8e922d;var _0x5b9884,_0xd8a641,_0x2532cc;this[_0x11bf72(0x34a)]=Object['assign']({},_0x21cd80),this['customBaseUrl']=(_0x5b9884=_0x21cd80[_0x11bf72(0x30a)])===null||_0x5b9884===void 0x0?void 0x0:_0x5b9884[_0x11bf72(0x2df)];if(this[_0x11bf72(0x34a)][_0x11bf72(0x3f5)]){if(this[_0x11bf72(0x34a)][_0x11bf72(0x527)]&&this[_0x11bf72(0x34a)][_0x11bf72(0x536)])this[_0x11bf72(0x34a)][_0x11bf72(0x362)]=undefined;else this[_0x11bf72(0x34a)][_0x11bf72(0x362)]&&(this[_0x11bf72(0x34a)][_0x11bf72(0x527)]=undefined,this[_0x11bf72(0x34a)][_0x11bf72(0x536)]=undefined);}const _0x1dd6d8={};if(this[_0x11bf72(0x34a)][_0x11bf72(0x3f5)]){!this[_0x11bf72(0x34a)][_0x11bf72(0x536)]&&!this[_0x11bf72(0x34a)][_0x11bf72(0x362)]&&!this[_0x11bf72(0x4f7)]&&(this[_0x11bf72(0x34a)][_0x11bf72(0x536)]=_0x11bf72(0x1d7));const _0xe03479=this[_0x11bf72(0x34a)][_0x11bf72(0x527)]&&this['clientOptions'][_0x11bf72(0x536)]||this['clientOptions'][_0x11bf72(0x362)];if(!_0xe03479&&!this[_0x11bf72(0x4f7)])throw new Error('Authentication\x20is\x20not\x20set\x20up.\x20Please\x20provide\x20either\x20a\x20project\x20and\x20location,\x20or\x20an\x20API\x20key,\x20or\x20a\x20custom\x20base\x20URL.');const _0x9e9427=_0x21cd80[_0x11bf72(0x527)]&&_0x21cd80[_0x11bf72(0x536)]||!!_0x21cd80[_0x11bf72(0x362)];if(this[_0x11bf72(0x4f7)]&&!_0x9e9427)_0x1dd6d8['baseUrl']=this[_0x11bf72(0x4f7)],this['clientOptions'][_0x11bf72(0x527)]=undefined,this['clientOptions'][_0x11bf72(0x536)]=undefined;else{if(this[_0x11bf72(0x34a)][_0x11bf72(0x362)]||this[_0x11bf72(0x34a)]['location']===_0x11bf72(0x1d7))_0x1dd6d8[_0x11bf72(0x2df)]=_0x11bf72(0x103);else this['clientOptions']['project']&&this['clientOptions'][_0x11bf72(0x536)]&&(_0x1dd6d8[_0x11bf72(0x2df)]=_0x11bf72(0x299)+this[_0x11bf72(0x34a)][_0x11bf72(0x536)]+_0x11bf72(0x593));}_0x1dd6d8[_0x11bf72(0xeb)]=(_0xd8a641=this[_0x11bf72(0x34a)][_0x11bf72(0xeb)])!==null&&_0xd8a641!==void 0x0?_0xd8a641:VERTEX_AI_API_DEFAULT_VERSION;}else{if(!this[_0x11bf72(0x34a)][_0x11bf72(0x362)])throw new ApiError({'message':'API\x20key\x20must\x20be\x20set\x20when\x20using\x20the\x20Gemini\x20API.','status':0x193});_0x1dd6d8[_0x11bf72(0xeb)]=(_0x2532cc=this[_0x11bf72(0x34a)][_0x11bf72(0xeb)])!==null&&_0x2532cc!==void 0x0?_0x2532cc:GOOGLE_AI_API_DEFAULT_VERSION,_0x1dd6d8[_0x11bf72(0x2df)]=_0x11bf72(0x13e);}_0x1dd6d8[_0x11bf72(0x438)]=this['getDefaultHeaders'](),this['clientOptions'][_0x11bf72(0x30a)]=_0x1dd6d8,_0x21cd80[_0x11bf72(0x30a)]&&(this[_0x11bf72(0x34a)][_0x11bf72(0x30a)]=this[_0x11bf72(0x1b8)](_0x1dd6d8,_0x21cd80[_0x11bf72(0x30a)]));}[a2_0x8e922d(0x4d0)](){const _0x402da0=a2_0x8e922d;var _0x138388;return(_0x138388=this[_0x402da0(0x34a)][_0x402da0(0x3f5)])!==null&&_0x138388!==void 0x0?_0x138388:![];}[a2_0x8e922d(0x491)](){const _0x502194=a2_0x8e922d;return this['clientOptions'][_0x502194(0x527)];}['getLocation'](){const _0x512c43=a2_0x8e922d;return this[_0x512c43(0x34a)][_0x512c43(0x536)];}[a2_0x8e922d(0x1f3)](){return this['customBaseUrl'];}async[a2_0x8e922d(0x14f)](){const _0x561f00=a2_0x8e922d,_0x145b37=new Headers();return await this[_0x561f00(0x34a)][_0x561f00(0x185)][_0x561f00(0x525)](_0x145b37),_0x145b37;}[a2_0x8e922d(0x2a3)](){const _0x126396=a2_0x8e922d;if(this[_0x126396(0x34a)][_0x126396(0x30a)]&&this[_0x126396(0x34a)][_0x126396(0x30a)][_0x126396(0xeb)]!==undefined)return this[_0x126396(0x34a)][_0x126396(0x30a)][_0x126396(0xeb)];throw new Error('API\x20version\x20is\x20not\x20set.');}[a2_0x8e922d(0x26e)](){const _0x3d369f=a2_0x8e922d;if(this[_0x3d369f(0x34a)][_0x3d369f(0x30a)]&&this[_0x3d369f(0x34a)][_0x3d369f(0x30a)][_0x3d369f(0x2df)]!==undefined)return this[_0x3d369f(0x34a)][_0x3d369f(0x30a)][_0x3d369f(0x2df)];throw new Error(_0x3d369f(0x1ec));}['getRequestUrl'](){const _0x11cd0a=a2_0x8e922d;return this[_0x11cd0a(0x428)](this[_0x11cd0a(0x34a)][_0x11cd0a(0x30a)]);}['getHeaders'](){const _0xd77587=a2_0x8e922d;if(this['clientOptions'][_0xd77587(0x30a)]&&this[_0xd77587(0x34a)][_0xd77587(0x30a)][_0xd77587(0x438)]!==undefined)return this['clientOptions'][_0xd77587(0x30a)][_0xd77587(0x438)];else throw new Error(_0xd77587(0x42f));}[a2_0x8e922d(0x428)](_0x1237c6){const _0x1a4540=a2_0x8e922d;if(!_0x1237c6||_0x1237c6[_0x1a4540(0x2df)]===undefined||_0x1237c6[_0x1a4540(0xeb)]===undefined)throw new Error(_0x1a4540(0x21f));const _0x1392e9=_0x1237c6[_0x1a4540(0x2df)][_0x1a4540(0x39c)]('/')?_0x1237c6[_0x1a4540(0x2df)][_0x1a4540(0x664)](0x0,-0x1):_0x1237c6['baseUrl'],_0x5a9547=[_0x1392e9];return _0x1237c6[_0x1a4540(0xeb)]&&_0x1237c6[_0x1a4540(0xeb)]!==''&&_0x5a9547[_0x1a4540(0x599)](_0x1237c6['apiVersion']),_0x5a9547['join']('/');}['getBaseResourcePath'](){const _0x5b2895=a2_0x8e922d;return _0x5b2895(0x2bf)+this[_0x5b2895(0x34a)][_0x5b2895(0x527)]+_0x5b2895(0x224)+this[_0x5b2895(0x34a)]['location'];}[a2_0x8e922d(0x29d)](){const _0x4e9b4f=a2_0x8e922d;return this[_0x4e9b4f(0x34a)][_0x4e9b4f(0x362)];}['getWebsocketBaseUrl'](){const _0x344c19=a2_0x8e922d,_0x10ef60=this[_0x344c19(0x26e)](),_0x1c94fd=new URL(_0x10ef60);return _0x1c94fd[_0x344c19(0x4ba)]=_0x1c94fd['protocol']==_0x344c19(0x211)?'ws':'wss',_0x1c94fd[_0x344c19(0x2b5)]();}['setBaseUrl'](_0x1692a1){const _0x1b2045=a2_0x8e922d;if(this[_0x1b2045(0x34a)][_0x1b2045(0x30a)])this[_0x1b2045(0x34a)][_0x1b2045(0x30a)][_0x1b2045(0x2df)]=_0x1692a1;else throw new Error(_0x1b2045(0x21f));}[a2_0x8e922d(0x5b3)](_0x1502e0,_0x3ae086,_0x4c9dd9){const _0x1bf488=a2_0x8e922d,_0x1b53bd=[this['getRequestUrlInternal'](_0x3ae086)];_0x4c9dd9&&_0x1b53bd[_0x1bf488(0x599)](this[_0x1bf488(0x621)]());_0x1502e0!==''&&_0x1b53bd[_0x1bf488(0x599)](_0x1502e0);const _0x4eba58=new URL(''+_0x1b53bd[_0x1bf488(0x174)]('/'));return _0x4eba58;}[a2_0x8e922d(0x21b)](_0x477d1d,_0x257296){const _0x1c119b=a2_0x8e922d;if(_0x257296[_0x1c119b(0x2df)]&&_0x257296['baseUrlResourceScope']===exports['ResourceScope']['COLLECTION'])return![];if(this['clientOptions'][_0x1c119b(0x362)])return![];if(!this[_0x1c119b(0x34a)][_0x1c119b(0x3f5)])return![];if(_0x477d1d[_0x1c119b(0x2e0)][_0x1c119b(0x1af)](_0x1c119b(0x2bf)))return![];if(_0x477d1d[_0x1c119b(0x141)]===_0x1c119b(0x375)&&_0x477d1d['path'][_0x1c119b(0x1af)](_0x1c119b(0x69a)))return![];return!![];}async[a2_0x8e922d(0x269)](_0x4d70a6){const _0x35a7bb=a2_0x8e922d;let _0x3eda01=this['clientOptions'][_0x35a7bb(0x30a)];_0x4d70a6[_0x35a7bb(0x30a)]&&(_0x3eda01=this[_0x35a7bb(0x1b8)](this['clientOptions'][_0x35a7bb(0x30a)],_0x4d70a6[_0x35a7bb(0x30a)]));const _0x3c9cd0=this['shouldPrependVertexProjectPath'](_0x4d70a6,_0x3eda01),_0x3e8b6a=this[_0x35a7bb(0x5b3)](_0x4d70a6[_0x35a7bb(0x2e0)],_0x3eda01,_0x3c9cd0);if(_0x4d70a6['queryParams'])for(const [_0x3c13c6,_0x2fcb8f]of Object[_0x35a7bb(0x3da)](_0x4d70a6[_0x35a7bb(0x5cd)])){_0x3e8b6a[_0x35a7bb(0x628)][_0x35a7bb(0x246)](_0x3c13c6,String(_0x2fcb8f));}let _0x1a3cd7={};if(_0x4d70a6['httpMethod']===_0x35a7bb(0x375)){if(_0x4d70a6['body']&&_0x4d70a6[_0x35a7bb(0x31f)]!=='{}')throw new Error(_0x35a7bb(0xd3));}else _0x1a3cd7[_0x35a7bb(0x31f)]=_0x4d70a6['body'];return _0x1a3cd7=await this['includeExtraHttpOptionsToRequestInit'](_0x1a3cd7,_0x3eda01,_0x3e8b6a[_0x35a7bb(0x2b5)](),_0x4d70a6[_0x35a7bb(0x2fc)]),this[_0x35a7bb(0x497)](_0x3e8b6a,_0x1a3cd7,_0x4d70a6[_0x35a7bb(0x141)]);}[a2_0x8e922d(0x1b8)](_0x7501d4,_0x3a6aba){const _0x5cde47=a2_0x8e922d,_0x45e596=JSON['parse'](JSON['stringify'](_0x7501d4));for(const [_0x368292,_0x3d9ff9]of Object['entries'](_0x3a6aba)){if(typeof _0x3d9ff9===_0x5cde47(0x515))_0x45e596[_0x368292]=Object[_0x5cde47(0x289)](Object[_0x5cde47(0x289)]({},_0x45e596[_0x368292]),_0x3d9ff9);else _0x3d9ff9!==undefined&&(_0x45e596[_0x368292]=_0x3d9ff9);}return _0x45e596;}async[a2_0x8e922d(0x24c)](_0x46bdda){const _0x3c7719=a2_0x8e922d;let _0x1a8984=this[_0x3c7719(0x34a)][_0x3c7719(0x30a)];_0x46bdda[_0x3c7719(0x30a)]&&(_0x1a8984=this[_0x3c7719(0x1b8)](this['clientOptions'][_0x3c7719(0x30a)],_0x46bdda[_0x3c7719(0x30a)]));const _0x25ea68=this[_0x3c7719(0x21b)](_0x46bdda,_0x1a8984),_0x29a4fd=this[_0x3c7719(0x5b3)](_0x46bdda[_0x3c7719(0x2e0)],_0x1a8984,_0x25ea68);(!_0x29a4fd['searchParams'][_0x3c7719(0x4b7)](_0x3c7719(0xb6))||_0x29a4fd[_0x3c7719(0x628)]['get'](_0x3c7719(0xb6))!=='sse')&&_0x29a4fd[_0x3c7719(0x628)][_0x3c7719(0x44e)](_0x3c7719(0xb6),'sse');let _0x448e88={};return _0x448e88[_0x3c7719(0x31f)]=_0x46bdda[_0x3c7719(0x31f)],_0x448e88=await this[_0x3c7719(0x668)](_0x448e88,_0x1a8984,_0x29a4fd[_0x3c7719(0x2b5)](),_0x46bdda[_0x3c7719(0x2fc)]),this['streamApiCall'](_0x29a4fd,_0x448e88,_0x46bdda[_0x3c7719(0x141)]);}async[a2_0x8e922d(0x668)](_0x89ad15,_0x30fde4,_0x3fce54,_0xcc14ac){const _0x324660=a2_0x8e922d;if(_0x30fde4&&_0x30fde4[_0x324660(0x258)]||_0xcc14ac){const _0x1c8e89=new AbortController(),_0x434c79=_0x1c8e89[_0x324660(0x216)];if(_0x30fde4[_0x324660(0x258)]&&(_0x30fde4===null||_0x30fde4===void 0x0?void 0x0:_0x30fde4[_0x324660(0x258)])>0x0){const _0x5f1832=setTimeout(()=>_0x1c8e89[_0x324660(0x4b5)](),_0x30fde4[_0x324660(0x258)]);_0x5f1832&&typeof _0x5f1832[_0x324660(0x68a)]===_0x324660(0x47f)&&_0x5f1832[_0x324660(0x68a)]();}_0xcc14ac&&_0xcc14ac[_0x324660(0x5d1)]('abort',()=>{_0x1c8e89['abort']();}),_0x89ad15[_0x324660(0x216)]=_0x434c79;}return _0x30fde4&&_0x30fde4[_0x324660(0x21c)]!==null&&includeExtraBodyToRequestInit(_0x89ad15,_0x30fde4[_0x324660(0x21c)]),_0x89ad15['headers']=await this[_0x324660(0x666)](_0x30fde4,_0x3fce54),_0x89ad15;}async[a2_0x8e922d(0x497)](_0x15559b,_0x394fb4,_0x257c89){const _0xb78197=a2_0x8e922d;return this[_0xb78197(0x243)](_0x15559b[_0xb78197(0x2b5)](),Object[_0xb78197(0x289)](Object[_0xb78197(0x289)]({},_0x394fb4),{'method':_0x257c89}))['then'](async _0x40696b=>{return await throwErrorIfNotOK(_0x40696b),new HttpResponse(_0x40696b);})[_0xb78197(0x29e)](_0x4fb182=>{if(_0x4fb182 instanceof Error)throw _0x4fb182;else throw new Error(JSON['stringify'](_0x4fb182));});}async[a2_0x8e922d(0x441)](_0x529bd7,_0x486dfe,_0x5f13d0){const _0x58397b=a2_0x8e922d;return this[_0x58397b(0x243)](_0x529bd7[_0x58397b(0x2b5)](),Object['assign'](Object[_0x58397b(0x289)]({},_0x486dfe),{'method':_0x5f13d0}))[_0x58397b(0x213)](async _0x53355c=>{const _0x5cd842=_0x58397b;return await throwErrorIfNotOK(_0x53355c),this[_0x5cd842(0x3e4)](_0x53355c);})['catch'](_0x2a9a4c=>{const _0x224483=_0x58397b;if(_0x2a9a4c instanceof Error)throw _0x2a9a4c;else throw new Error(JSON[_0x224483(0x296)](_0x2a9a4c));});}['processStreamResponse'](_0x4563f7){return __asyncGenerator(this,arguments,function*_0x41521a(){const _0x44a664=a2_0x28ed;var _0x1bd1ee;const _0x2c8132=(_0x1bd1ee=_0x4563f7===null||_0x4563f7===void 0x0?void 0x0:_0x4563f7['body'])===null||_0x1bd1ee===void 0x0?void 0x0:_0x1bd1ee[_0x44a664(0x63d)](),_0x5412ac=new TextDecoder(_0x44a664(0x63b));if(!_0x2c8132)throw new Error('Response\x20body\x20is\x20empty');try{let _0x2122b2='';const _0x10eb15=_0x44a664(0x36f),_0x34ad6e=['\x0a\x0a','\x0d\x0d',_0x44a664(0x280)];while(!![]){const {done:_0x535777,value:_0x3c5505}=yield __await(_0x2c8132[_0x44a664(0x333)]());if(_0x535777){if(_0x2122b2[_0x44a664(0xed)]()[_0x44a664(0x568)]>0x0)throw new Error(_0x44a664(0x453));break;}const _0x12b07f=_0x5412ac[_0x44a664(0x615)](_0x3c5505,{'stream':!![]});try{const _0x51edfb=JSON['parse'](_0x12b07f);if(_0x44a664(0x262)in _0x51edfb){const _0x4d0296=JSON[_0x44a664(0x4bf)](JSON['stringify'](_0x51edfb[_0x44a664(0x262)])),_0x1ec907=_0x4d0296[_0x44a664(0x3d4)],_0x4f0726=_0x4d0296['code'],_0x267811='got\x20status:\x20'+_0x1ec907+'.\x20'+JSON[_0x44a664(0x296)](_0x51edfb);if(_0x4f0726>=0x190&&_0x4f0726<0x258){const _0x3e09be=new ApiError({'message':_0x267811,'status':_0x4f0726});throw _0x3e09be;}}}catch(_0x163f13){const _0x1e1e3a=_0x163f13;if(_0x1e1e3a[_0x44a664(0x206)]===_0x44a664(0x488))throw _0x163f13;}_0x2122b2+=_0x12b07f;let _0x51b10d=-0x1,_0x49d307=0x0;while(!![]){_0x51b10d=-0x1,_0x49d307=0x0;for(const _0x283650 of _0x34ad6e){const _0x40f067=_0x2122b2[_0x44a664(0xcf)](_0x283650);_0x40f067!==-0x1&&(_0x51b10d===-0x1||_0x40f067<_0x51b10d)&&(_0x51b10d=_0x40f067,_0x49d307=_0x283650[_0x44a664(0x568)]);}if(_0x51b10d===-0x1)break;const _0x321136=_0x2122b2[_0x44a664(0x1e4)](0x0,_0x51b10d);_0x2122b2=_0x2122b2[_0x44a664(0x1e4)](_0x51b10d+_0x49d307);const _0x26a293=_0x321136[_0x44a664(0xed)]();if(_0x26a293['startsWith'](_0x10eb15)){const _0x13f6d5=_0x26a293[_0x44a664(0x1e4)](_0x10eb15[_0x44a664(0x568)])['trim']();try{const _0x58d25a=new Response(_0x13f6d5,{'headers':_0x4563f7===null||_0x4563f7===void 0x0?void 0x0:_0x4563f7[_0x44a664(0x438)],'status':_0x4563f7===null||_0x4563f7===void 0x0?void 0x0:_0x4563f7['status'],'statusText':_0x4563f7===null||_0x4563f7===void 0x0?void 0x0:_0x4563f7['statusText']});yield yield __await(new HttpResponse(_0x58d25a));}catch(_0x26e377){throw new Error(_0x44a664(0x4a1)+_0x13f6d5+'.\x20'+_0x26e377);}}}}}finally{_0x2c8132[_0x44a664(0x4dd)]();}});}async[a2_0x8e922d(0x243)](_0x5aad5a,_0xeaeac1){const _0x298af0=a2_0x8e922d;return fetch(_0x5aad5a,_0xeaeac1)[_0x298af0(0x29e)](_0x2a0411=>{const _0x1d7a86=_0x298af0;throw new Error(_0x1d7a86(0x17d)+_0x2a0411+_0x1d7a86(0x59b));});}[a2_0x8e922d(0x1aa)](){const _0x28f35c=a2_0x8e922d,_0x7d986a={},_0x2cebe9=LIBRARY_LABEL+'\x20'+this[_0x28f35c(0x34a)][_0x28f35c(0x4c6)];return _0x7d986a[USER_AGENT_HEADER]=_0x2cebe9,_0x7d986a[GOOGLE_API_CLIENT_HEADER]=_0x2cebe9,_0x7d986a[CONTENT_TYPE_HEADER]=_0x28f35c(0x149),_0x7d986a;}async['getHeadersInternal'](_0x3afb32,_0x207533){const _0x37976c=a2_0x8e922d,_0x83ac7c=new Headers();if(_0x3afb32&&_0x3afb32[_0x37976c(0x438)]){for(const [_0x2271a3,_0x1ee285]of Object[_0x37976c(0x3da)](_0x3afb32[_0x37976c(0x438)])){_0x83ac7c[_0x37976c(0x246)](_0x2271a3,_0x1ee285);}_0x3afb32[_0x37976c(0x258)]&&_0x3afb32['timeout']>0x0&&_0x83ac7c[_0x37976c(0x246)](SERVER_TIMEOUT_HEADER,String(Math[_0x37976c(0x4c3)](_0x3afb32[_0x37976c(0x258)]/0x3e8)));}return await this[_0x37976c(0x34a)][_0x37976c(0x185)]['addAuthHeaders'](_0x83ac7c,_0x207533),_0x83ac7c;}[a2_0x8e922d(0x3db)](_0x13ab84){const _0x366385=a2_0x8e922d;var _0x151359;let _0x55820c='';return typeof _0x13ab84===_0x366385(0x68f)&&(_0x55820c=_0x13ab84[_0x366385(0xdc)](/[/\\]+$/,''),_0x55820c=(_0x151359=_0x55820c['split'](/[/\\]/)[_0x366385(0x511)]())!==null&&_0x151359!==void 0x0?_0x151359:''),_0x55820c;}async[a2_0x8e922d(0x21a)](_0x3052a9,_0x533715){const _0x49c6cd=a2_0x8e922d;var _0x16376b;const _0x46120b={};_0x533715!=null&&(_0x46120b[_0x49c6cd(0x3c0)]=_0x533715[_0x49c6cd(0x3c0)],_0x46120b['name']=_0x533715[_0x49c6cd(0x206)],_0x46120b[_0x49c6cd(0x1c2)]=_0x533715[_0x49c6cd(0x1c2)]);_0x46120b[_0x49c6cd(0x206)]&&!_0x46120b[_0x49c6cd(0x206)]['startsWith'](_0x49c6cd(0x11a))&&(_0x46120b[_0x49c6cd(0x206)]=_0x49c6cd(0x11a)+_0x46120b[_0x49c6cd(0x206)]);const _0x49c405=this[_0x49c6cd(0x34a)]['uploader'],_0xdd8707=await _0x49c405[_0x49c6cd(0x449)](_0x3052a9);_0x46120b['sizeBytes']=String(_0xdd8707[_0x49c6cd(0x4e7)]);const _0x30efb1=(_0x16376b=_0x533715===null||_0x533715===void 0x0?void 0x0:_0x533715[_0x49c6cd(0x3c0)])!==null&&_0x16376b!==void 0x0?_0x16376b:_0xdd8707[_0x49c6cd(0x37a)];if(_0x30efb1===undefined||_0x30efb1==='')throw new Error('Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.');_0x46120b[_0x49c6cd(0x3c0)]=_0x30efb1;const _0x108967={'file':_0x46120b},_0x358cf1=this[_0x49c6cd(0x3db)](_0x3052a9),_0x38f3f5=formatMap(_0x49c6cd(0x5e7),_0x108967['_url']),_0x38f1d9=await this[_0x49c6cd(0x22e)](_0x38f3f5,_0x46120b[_0x49c6cd(0x656)],_0x46120b[_0x49c6cd(0x3c0)],_0x358cf1,_0x108967,_0x533715===null||_0x533715===void 0x0?void 0x0:_0x533715[_0x49c6cd(0x30a)]);return _0x49c405[_0x49c6cd(0x223)](_0x3052a9,_0x38f1d9,this);}async[a2_0x8e922d(0x1d5)](_0x85c7cc,_0x33f6b5,_0x4d4942){const _0x3bdfd4=a2_0x8e922d;var _0x2c7a7f;const _0x4bd17c=this[_0x3bdfd4(0x34a)][_0x3bdfd4(0x66f)],_0x524a25=await _0x4bd17c['stat'](_0x33f6b5),_0x5740ff=String(_0x524a25['size']),_0xecfe12=(_0x2c7a7f=_0x4d4942===null||_0x4d4942===void 0x0?void 0x0:_0x4d4942[_0x3bdfd4(0x3c0)])!==null&&_0x2c7a7f!==void 0x0?_0x2c7a7f:_0x524a25[_0x3bdfd4(0x37a)];if(_0xecfe12===undefined||_0xecfe12==='')throw new Error(_0x3bdfd4(0x140));const _0xa1b526=_0x3bdfd4(0x2ad)+_0x85c7cc+_0x3bdfd4(0x655),_0x5e4a0a=this[_0x3bdfd4(0x3db)](_0x33f6b5),_0x41b363={};_0x4d4942!=null&&uploadToFileSearchStoreConfigToMldev(_0x4d4942,_0x41b363);const _0x1e71f6=await this[_0x3bdfd4(0x22e)](_0xa1b526,_0x5740ff,_0xecfe12,_0x5e4a0a,_0x41b363,_0x4d4942===null||_0x4d4942===void 0x0?void 0x0:_0x4d4942['httpOptions']);return _0x4bd17c[_0x3bdfd4(0x279)](_0x33f6b5,_0x1e71f6,this);}async['downloadFile'](_0x2f52ce){const _0x349288=a2_0x8e922d,_0x146ae5=this['clientOptions']['downloader'];await _0x146ae5[_0x349288(0x669)](_0x2f52ce,this);}async[a2_0x8e922d(0x22e)](_0x3f2204,_0x4af4fe,_0x3cb9ee,_0x2f4683,_0xca90cf,_0x12900a){const _0x447e7b=a2_0x8e922d;var _0xa781c7;let _0x17f3cb={};_0x12900a?_0x17f3cb=_0x12900a:_0x17f3cb={'apiVersion':'','headers':Object[_0x447e7b(0x289)]({'Content-Type':'application/json','X-Goog-Upload-Protocol':'resumable','X-Goog-Upload-Command':'start','X-Goog-Upload-Header-Content-Length':''+_0x4af4fe,'X-Goog-Upload-Header-Content-Type':''+_0x3cb9ee},_0x2f4683?{'X-Goog-Upload-File-Name':_0x2f4683}:{})};const _0x2207b2=await this[_0x447e7b(0x269)]({'path':_0x3f2204,'body':JSON[_0x447e7b(0x296)](_0xca90cf),'httpMethod':'POST','httpOptions':_0x17f3cb});if(!_0x2207b2||!(_0x2207b2===null||_0x2207b2===void 0x0?void 0x0:_0x2207b2['headers']))throw new Error(_0x447e7b(0xdb));const _0x3247aa=(_0xa781c7=_0x2207b2===null||_0x2207b2===void 0x0?void 0x0:_0x2207b2[_0x447e7b(0x438)])===null||_0xa781c7===void 0x0?void 0x0:_0xa781c7[_0x447e7b(0x348)];if(_0x3247aa===undefined)throw new Error('Failed\x20to\x20get\x20upload\x20url.\x20Server\x20did\x20not\x20return\x20the\x20x-google-upload-url\x20in\x20the\x20headers');return _0x3247aa;}}async function throwErrorIfNotOK(_0x26d62b){const _0x1566e5=a2_0x8e922d;var _0x2c9099;if(_0x26d62b===undefined)throw new Error(_0x1566e5(0x2a4));if(!_0x26d62b['ok']){const _0x5b2bfd=_0x26d62b['status'];let _0x5a9a56;((_0x2c9099=_0x26d62b[_0x1566e5(0x438)]['get']('content-type'))===null||_0x2c9099===void 0x0?void 0x0:_0x2c9099[_0x1566e5(0x198)](_0x1566e5(0x149)))?_0x5a9a56=await _0x26d62b[_0x1566e5(0xdf)]():_0x5a9a56={'error':{'message':await _0x26d62b[_0x1566e5(0x1a8)](),'code':_0x26d62b['status'],'status':_0x26d62b['statusText']}};const _0x18df1e=JSON[_0x1566e5(0x296)](_0x5a9a56);if(_0x5b2bfd>=0x190&&_0x5b2bfd<0x258){const _0x2da8f3=new ApiError({'message':_0x18df1e,'status':_0x5b2bfd});throw _0x2da8f3;}throw new Error(_0x18df1e);}}function includeExtraBodyToRequestInit(_0x583d34,_0x1d8606){const _0x37de26=a2_0x8e922d;if(!_0x1d8606||Object['keys'](_0x1d8606)[_0x37de26(0x568)]===0x0)return;if(_0x583d34[_0x37de26(0x31f)]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 _0x492065={};if(typeof _0x583d34[_0x37de26(0x31f)]===_0x37de26(0x68f)&&_0x583d34[_0x37de26(0x31f)][_0x37de26(0x568)]>0x0)try{const _0xdba8b6=JSON[_0x37de26(0x4bf)](_0x583d34[_0x37de26(0x31f)]);if(typeof _0xdba8b6===_0x37de26(0x515)&&_0xdba8b6!==null&&!Array[_0x37de26(0x266)](_0xdba8b6))_0x492065=_0xdba8b6;else{console[_0x37de26(0x1ef)](_0x37de26(0xbf));return;}}catch(_0x411dac){console['warn']('includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20not\x20valid\x20JSON.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.');return;}function _0x20a6d3(_0x500b59,_0x59d66e){const _0xe64683=_0x37de26,_0x23e76a=Object[_0xe64683(0x289)]({},_0x500b59);for(const _0xe25725 in _0x59d66e){if(Object['prototype'][_0xe64683(0x2cb)]['call'](_0x59d66e,_0xe25725)){const _0x318eb8=_0x59d66e[_0xe25725],_0x5f5675=_0x23e76a[_0xe25725];_0x318eb8&&typeof _0x318eb8==='object'&&!Array[_0xe64683(0x266)](_0x318eb8)&&_0x5f5675&&typeof _0x5f5675===_0xe64683(0x515)&&!Array['isArray'](_0x5f5675)?_0x23e76a[_0xe25725]=_0x20a6d3(_0x5f5675,_0x318eb8):(_0x5f5675&&_0x318eb8&&typeof _0x5f5675!==typeof _0x318eb8&&console['warn'](_0xe64683(0x635)+_0xe25725+'\x22.\x20Original\x20type:\x20'+typeof _0x5f5675+_0xe64683(0x4ef)+typeof _0x318eb8+_0xe64683(0x653)),_0x23e76a[_0xe25725]=_0x318eb8);}}return _0x23e76a;}const _0x30817a=_0x20a6d3(_0x492065,_0x1d8606);_0x583d34[_0x37de26(0x31f)]=JSON[_0x37de26(0x296)](_0x30817a);}/**
|
|
97
|
+
* @license
|
|
98
|
+
* Copyright 2025 Google LLC
|
|
99
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
100
|
+
*/
|
|
101
|
+
const MCP_LABEL=a2_0x8e922d(0x281);let hasMcpToolUsageFromMcpToTool=![];function hasMcpToolUsage(_0x5cbf6d){const _0x501152=a2_0x8e922d;for(const _0x27182f of _0x5cbf6d){if(isMcpCallableTool(_0x27182f))return!![];if(typeof _0x27182f===_0x501152(0x515)&&_0x501152(0x336)in _0x27182f)return!![];}return hasMcpToolUsageFromMcpToTool;}function setMcpUsageHeader(_0x43de02){const _0x5e6e35=a2_0x8e922d;var _0xcd1283;const _0x105d10=(_0xcd1283=_0x43de02[GOOGLE_API_CLIENT_HEADER])!==null&&_0xcd1283!==void 0x0?_0xcd1283:'';_0x43de02[GOOGLE_API_CLIENT_HEADER]=(_0x105d10+('\x20'+MCP_LABEL))[_0x5e6e35(0x681)]();}function isMcpCallableTool(_0x3dbee5){const _0x12c36f=a2_0x8e922d;return _0x3dbee5!==null&&typeof _0x3dbee5===_0x12c36f(0x515)&&_0x3dbee5 instanceof McpCallableTool;}function listAllTools(_0x1c7fac){return __asyncGenerator(this,arguments,function*_0x28fa7e(_0x3fdce0,_0x496b52=0x64){const _0x29e0a8=a2_0x28ed;let _0x335d0a=undefined,_0x24d01d=0x0;while(_0x24d01d<_0x496b52){const _0x4022c1=yield __await(_0x3fdce0[_0x29e0a8(0x554)]({'cursor':_0x335d0a}));for(const _0x132bdf of _0x4022c1[_0x29e0a8(0x376)]){yield yield __await(_0x132bdf),_0x24d01d++;}if(!_0x4022c1['nextCursor'])break;_0x335d0a=_0x4022c1[_0x29e0a8(0x65e)];}});}class McpCallableTool{constructor(_0x5d072b=[],_0x4ce12e){const _0x1652fd=a2_0x8e922d;this[_0x1652fd(0x1d1)]=[],this[_0x1652fd(0x3bc)]={},this['mcpClients']=_0x5d072b,this[_0x1652fd(0x182)]=_0x4ce12e;}static[a2_0x8e922d(0x5da)](_0x14b7b2,_0xf46177){return new McpCallableTool(_0x14b7b2,_0xf46177);}async['initialize'](){const _0x553914=a2_0x8e922d;var _0xc130c8,_0x44e3cc,_0x1ff195,_0x1bda61;if(this[_0x553914(0x1d1)]['length']>0x0)return;const _0x26e7c7={},_0x27731f=[];for(const _0x1375f9 of this[_0x553914(0x1f5)]){try{for(var _0x4ee1f7=!![],_0x3dcfb9=(_0x44e3cc=void 0x0,__asyncValues(listAllTools(_0x1375f9))),_0x1b148d;_0x1b148d=await _0x3dcfb9['next'](),_0xc130c8=_0x1b148d[_0x553914(0x4ae)],!_0xc130c8;_0x4ee1f7=!![]){_0x1bda61=_0x1b148d[_0x553914(0x6ad)],_0x4ee1f7=![];const _0x1f547b=_0x1bda61;_0x27731f['push'](_0x1f547b);const _0x3f24da=_0x1f547b[_0x553914(0x206)];if(_0x26e7c7[_0x3f24da])throw new Error(_0x553914(0x4de)+_0x3f24da+_0x553914(0xb2));_0x26e7c7[_0x3f24da]=_0x1375f9;}}catch(_0x3b0a76){_0x44e3cc={'error':_0x3b0a76};}finally{try{if(!_0x4ee1f7&&!_0xc130c8&&(_0x1ff195=_0x3dcfb9[_0x553914(0x632)]))await _0x1ff195[_0x553914(0x168)](_0x3dcfb9);}finally{if(_0x44e3cc)throw _0x44e3cc[_0x553914(0x262)];}}}this[_0x553914(0x1d1)]=_0x27731f,this[_0x553914(0x3bc)]=_0x26e7c7;}async[a2_0x8e922d(0x2cc)](){const _0x403c0f=a2_0x8e922d;return await this[_0x403c0f(0x67b)](),mcpToolsToGeminiTool(this['mcpTools'],this[_0x403c0f(0x182)]);}async['callTool'](_0x72adff){const _0x4f6d7f=a2_0x8e922d;await this[_0x4f6d7f(0x67b)]();const _0x3f1485=[];for(const _0x4b7d22 of _0x72adff){if(_0x4b7d22[_0x4f6d7f(0x206)]in this[_0x4f6d7f(0x3bc)]){const _0x1941dc=this['functionNameToMcpClient'][_0x4b7d22[_0x4f6d7f(0x206)]];let _0x25ed2c=undefined;this['config']['timeout']&&(_0x25ed2c={'timeout':this[_0x4f6d7f(0x182)][_0x4f6d7f(0x258)]});const _0x715a50=await _0x1941dc[_0x4f6d7f(0x3ca)]({'name':_0x4b7d22[_0x4f6d7f(0x206)],'arguments':_0x4b7d22[_0x4f6d7f(0x122)]},undefined,_0x25ed2c);_0x3f1485[_0x4f6d7f(0x599)]({'functionResponse':{'name':_0x4b7d22[_0x4f6d7f(0x206)],'response':_0x715a50['isError']?{'error':_0x715a50}:_0x715a50}});}}return _0x3f1485;}}function isMcpClient(_0x3529a1){const _0x44f90b=a2_0x8e922d;return _0x3529a1!==null&&typeof _0x3529a1===_0x44f90b(0x515)&&_0x44f90b(0x554)in _0x3529a1&&typeof _0x3529a1[_0x44f90b(0x554)]===_0x44f90b(0x47f);}function mcpToTool(..._0x27107d){const _0xb5f29b=a2_0x8e922d;hasMcpToolUsageFromMcpToTool=!![];if(_0x27107d[_0xb5f29b(0x568)]===0x0)throw new Error(_0xb5f29b(0x344));const _0xbd9448=_0x27107d[_0x27107d[_0xb5f29b(0x568)]-0x1];if(isMcpClient(_0xbd9448))return McpCallableTool['create'](_0x27107d,{});return McpCallableTool[_0xb5f29b(0x5da)](_0x27107d[_0xb5f29b(0x664)](0x0,_0x27107d['length']-0x1),_0xbd9448);}/**
|
|
102
|
+
* @license
|
|
103
|
+
* Copyright 2025 Google LLC
|
|
104
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
105
|
+
*/
|
|
106
|
+
async function handleWebSocketMessage$1(_0x25c687,_0x1e5d53,_0x305c87){const _0x17e359=a2_0x8e922d,_0x3b5090=new LiveMusicServerMessage();let _0x3e61d0;_0x305c87[_0x17e359(0x529)]instanceof Blob?_0x3e61d0=JSON[_0x17e359(0x4bf)](await _0x305c87['data'][_0x17e359(0x1a8)]()):_0x3e61d0=JSON[_0x17e359(0x4bf)](_0x305c87[_0x17e359(0x529)]),Object['assign'](_0x3b5090,_0x3e61d0),_0x1e5d53(_0x3b5090);}class LiveMusic{constructor(_0x459cca,_0x16bfe6,_0x23b2d9){const _0xa0b99c=a2_0x8e922d;this[_0xa0b99c(0x2eb)]=_0x459cca,this['auth']=_0x16bfe6,this[_0xa0b99c(0x170)]=_0x23b2d9;}async[a2_0x8e922d(0x3c8)](_0x464eb3){const _0x37765e=a2_0x8e922d;var _0x3a3e65,_0x31f65a;if(this['apiClient'][_0x37765e(0x4d0)]())throw new Error(_0x37765e(0x4f1));console[_0x37765e(0x1ef)](_0x37765e(0x1bc));const _0x4e127d=this[_0x37765e(0x2eb)][_0x37765e(0x20b)](),_0x18a329=this[_0x37765e(0x2eb)][_0x37765e(0x2a3)](),_0x1249e5=mapToHeaders$1(this[_0x37765e(0x2eb)][_0x37765e(0x1aa)]()),_0x505d4f=this['apiClient'][_0x37765e(0x29d)](),_0x2ca78b=_0x4e127d+'/ws/google.ai.generativelanguage.'+_0x18a329+'.GenerativeService.BidiGenerateMusic?key='+_0x505d4f;let _0x2817dc=()=>{};const _0x106e62=new Promise(_0xdd08ba=>{_0x2817dc=_0xdd08ba;}),_0x42ab0c=_0x464eb3[_0x37765e(0x235)],_0x549b3d=function(){_0x2817dc({});},_0x17f4b3=this['apiClient'],_0x5c092f={'onopen':_0x549b3d,'onmessage':_0x10706d=>{void handleWebSocketMessage$1(_0x17f4b3,_0x42ab0c['onmessage'],_0x10706d);},'onerror':(_0x3a3e65=_0x42ab0c===null||_0x42ab0c===void 0x0?void 0x0:_0x42ab0c[_0x37765e(0x3ff)])!==null&&_0x3a3e65!==void 0x0?_0x3a3e65:function(_0x1c7974){},'onclose':(_0x31f65a=_0x42ab0c===null||_0x42ab0c===void 0x0?void 0x0:_0x42ab0c[_0x37765e(0x691)])!==null&&_0x31f65a!==void 0x0?_0x31f65a:function(_0x4b1016){}},_0x371b9f=this[_0x37765e(0x170)]['create'](_0x2ca78b,headersToMap$1(_0x1249e5),_0x5c092f);_0x371b9f[_0x37765e(0x3c8)](),await _0x106e62;const _0x20a24d=tModel(this[_0x37765e(0x2eb)],_0x464eb3['model']),_0x48459d={'model':_0x20a24d},_0x1815b5={'setup':_0x48459d};return _0x371b9f['send'](JSON[_0x37765e(0x296)](_0x1815b5)),new LiveMusicSession(_0x371b9f,this[_0x37765e(0x2eb)]);}}class LiveMusicSession{constructor(_0x43ee82,_0xf0c8ab){const _0x3c134d=a2_0x8e922d;this[_0x3c134d(0x435)]=_0x43ee82,this['apiClient']=_0xf0c8ab;}async[a2_0x8e922d(0x2b6)](_0x3961eb){const _0x248d76=a2_0x8e922d;if(!_0x3961eb[_0x248d76(0x4cd)]||Object[_0x248d76(0x6b2)](_0x3961eb['weightedPrompts'])['length']===0x0)throw new Error(_0x248d76(0x4ad));const _0x13392d=liveMusicSetWeightedPromptsParametersToMldev(_0x3961eb);this[_0x248d76(0x435)]['send'](JSON[_0x248d76(0x296)]({'clientContent':_0x13392d}));}async[a2_0x8e922d(0x409)](_0x49a77f){const _0x529338=a2_0x8e922d;!_0x49a77f[_0x529338(0x4e1)]&&(_0x49a77f[_0x529338(0x4e1)]={});const _0x1b4a29=liveMusicSetConfigParametersToMldev(_0x49a77f);this[_0x529338(0x435)][_0x529338(0x109)](JSON[_0x529338(0x296)](_0x1b4a29));}[a2_0x8e922d(0x2c5)](_0x1da778){const _0x12bc9b=a2_0x8e922d,_0x1d03f5={'playbackControl':_0x1da778};this[_0x12bc9b(0x435)][_0x12bc9b(0x109)](JSON[_0x12bc9b(0x296)](_0x1d03f5));}['play'](){const _0x1baa18=a2_0x8e922d;this[_0x1baa18(0x2c5)](exports['LiveMusicPlaybackControl'][_0x1baa18(0x637)]);}[a2_0x8e922d(0x439)](){const _0x16de80=a2_0x8e922d;this[_0x16de80(0x2c5)](exports[_0x16de80(0x538)][_0x16de80(0x19d)]);}[a2_0x8e922d(0x418)](){const _0x32c965=a2_0x8e922d;this[_0x32c965(0x2c5)](exports[_0x32c965(0x538)][_0x32c965(0x68c)]);}['resetContext'](){const _0x2881e0=a2_0x8e922d;this[_0x2881e0(0x2c5)](exports[_0x2881e0(0x538)][_0x2881e0(0x1c1)]);}[a2_0x8e922d(0x2f3)](){const _0x2c1e23=a2_0x8e922d;this[_0x2c1e23(0x435)][_0x2c1e23(0x2f3)]();}}function headersToMap$1(_0x4633eb){const _0xe0ce09=a2_0x8e922d,_0x560dfc={};return _0x4633eb[_0xe0ce09(0xea)]((_0x3c076d,_0x26e4d1)=>{_0x560dfc[_0x26e4d1]=_0x3c076d;}),_0x560dfc;}function mapToHeaders$1(_0x122983){const _0x393753=a2_0x8e922d,_0x10c7cb=new Headers();for(const [_0x458650,_0x1efa96]of Object['entries'](_0x122983)){_0x10c7cb[_0x393753(0x246)](_0x458650,_0x1efa96);}return _0x10c7cb;}/**
|
|
107
|
+
* @license
|
|
108
|
+
* Copyright 2025 Google LLC
|
|
109
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
110
|
+
*/
|
|
111
|
+
const FUNCTION_RESPONSE_REQUIRES_ID=a2_0x8e922d(0x552);async function handleWebSocketMessage(_0x126c7b,_0x41c528,_0xc76c25){const _0x25858f=a2_0x8e922d,_0x21ed57=new LiveServerMessage();let _0x444eea;if(_0xc76c25[_0x25858f(0x529)]instanceof Blob)_0x444eea=await _0xc76c25[_0x25858f(0x529)][_0x25858f(0x1a8)]();else _0xc76c25[_0x25858f(0x529)]instanceof ArrayBuffer?_0x444eea=new TextDecoder()[_0x25858f(0x615)](_0xc76c25[_0x25858f(0x529)]):_0x444eea=_0xc76c25[_0x25858f(0x529)];const _0x149c44=JSON[_0x25858f(0x4bf)](_0x444eea);if(_0x126c7b['isVertexAI']()){const _0x7da835=liveServerMessageFromVertex(_0x149c44);Object[_0x25858f(0x289)](_0x21ed57,_0x7da835);}else{const _0x842972=_0x149c44;Object[_0x25858f(0x289)](_0x21ed57,_0x842972);}_0x41c528(_0x21ed57);}class Live{constructor(_0x41cafd,_0x5dccf5,_0x120048){const _0x1c59c6=a2_0x8e922d;this[_0x1c59c6(0x2eb)]=_0x41cafd,this['auth']=_0x5dccf5,this['webSocketFactory']=_0x120048,this['music']=new LiveMusic(this[_0x1c59c6(0x2eb)],this[_0x1c59c6(0x185)],this[_0x1c59c6(0x170)]);}async['connect'](_0x4b6043){const _0x3bc04a=a2_0x8e922d;var _0x2a317a,_0x31c64c,_0x39737d,_0x50b79d,_0x3c9d77,_0x22ff09;if(_0x4b6043[_0x3bc04a(0x182)]&&_0x4b6043[_0x3bc04a(0x182)]['httpOptions'])throw new Error('The\x20Live\x20module\x20does\x20not\x20support\x20httpOptions\x20at\x20request-level\x20in'+'\x20LiveConnectConfig\x20yet.\x20Please\x20use\x20the\x20client-level\x20httpOptions'+_0x3bc04a(0x3fe));const _0x406833=this[_0x3bc04a(0x2eb)][_0x3bc04a(0x20b)](),_0x3d6e9f=this['apiClient']['getApiVersion']();let _0x3ad4f0;const _0xe10166=this[_0x3bc04a(0x2eb)][_0x3bc04a(0x42a)]();_0x4b6043[_0x3bc04a(0x182)]&&_0x4b6043[_0x3bc04a(0x182)][_0x3bc04a(0x376)]&&hasMcpToolUsage(_0x4b6043[_0x3bc04a(0x182)]['tools'])&&setMcpUsageHeader(_0xe10166);const _0x1c8ffd=mapToHeaders(_0xe10166);if(this[_0x3bc04a(0x2eb)]['isVertexAI']()){const _0x4ad395=this[_0x3bc04a(0x2eb)][_0x3bc04a(0x491)](),_0x435dc4=this[_0x3bc04a(0x2eb)][_0x3bc04a(0x555)](),_0x55bfa2=this[_0x3bc04a(0x2eb)][_0x3bc04a(0x29d)](),_0xa2a03f=!!_0x4ad395&&!!_0x435dc4||!!_0x55bfa2;this[_0x3bc04a(0x2eb)][_0x3bc04a(0x1f3)]()&&!_0xa2a03f?_0x3ad4f0=_0x406833:(_0x3ad4f0=_0x406833+_0x3bc04a(0x3bd)+_0x3d6e9f+_0x3bc04a(0x50a),await this[_0x3bc04a(0x185)][_0x3bc04a(0x525)](_0x1c8ffd,_0x3ad4f0));}else{const _0x308449=this['apiClient'][_0x3bc04a(0x29d)]();let _0x1cb1b2=_0x3bc04a(0x24b),_0x27960c=_0x3bc04a(0x4c9);(_0x308449===null||_0x308449===void 0x0?void 0x0:_0x308449[_0x3bc04a(0x1af)]('auth_tokens/'))&&(console[_0x3bc04a(0x1ef)]('Warning:\x20Ephemeral\x20token\x20support\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.'),_0x3d6e9f!==_0x3bc04a(0x12d)&&console[_0x3bc04a(0x1ef)](_0x3bc04a(0x49c)),_0x1cb1b2='BidiGenerateContentConstrained',_0x27960c=_0x3bc04a(0xa8)),_0x3ad4f0=_0x406833+_0x3bc04a(0x297)+_0x3d6e9f+'.GenerativeService.'+_0x1cb1b2+'?'+_0x27960c+'='+_0x308449;}let _0x2b5ded=()=>{};const _0xf15a62=new Promise(_0x1f0cbd=>{_0x2b5ded=_0x1f0cbd;}),_0x4f39d1=_0x4b6043[_0x3bc04a(0x235)],_0x2bc6f8=function(){const _0x4f97a9=_0x3bc04a;var _0x5d6184;(_0x5d6184=_0x4f39d1===null||_0x4f39d1===void 0x0?void 0x0:_0x4f39d1[_0x4f97a9(0x57a)])===null||_0x5d6184===void 0x0?void 0x0:_0x5d6184[_0x4f97a9(0x168)](_0x4f39d1),_0x2b5ded({});},_0x5c50a8=this[_0x3bc04a(0x2eb)],_0x422d49={'onopen':_0x2bc6f8,'onmessage':_0x3eafd5=>{void handleWebSocketMessage(_0x5c50a8,_0x4f39d1['onmessage'],_0x3eafd5);},'onerror':(_0x2a317a=_0x4f39d1===null||_0x4f39d1===void 0x0?void 0x0:_0x4f39d1[_0x3bc04a(0x3ff)])!==null&&_0x2a317a!==void 0x0?_0x2a317a:function(_0x25a41a){},'onclose':(_0x31c64c=_0x4f39d1===null||_0x4f39d1===void 0x0?void 0x0:_0x4f39d1['onclose'])!==null&&_0x31c64c!==void 0x0?_0x31c64c:function(_0x10c383){}},_0x918df6=this[_0x3bc04a(0x170)][_0x3bc04a(0x5da)](_0x3ad4f0,headersToMap(_0x1c8ffd),_0x422d49);_0x918df6[_0x3bc04a(0x3c8)](),await _0xf15a62;let _0x432d49=tModel(this['apiClient'],_0x4b6043[_0x3bc04a(0x638)]);if(this[_0x3bc04a(0x2eb)]['isVertexAI']()&&_0x432d49['startsWith'](_0x3bc04a(0x3ba))){const _0x2feb2f=this[_0x3bc04a(0x2eb)]['getProject'](),_0x5207dc=this['apiClient'][_0x3bc04a(0x555)]();_0x2feb2f&&_0x5207dc&&(_0x432d49='projects/'+_0x2feb2f+_0x3bc04a(0x224)+_0x5207dc+'/'+_0x432d49);}let _0x1d1724={};this[_0x3bc04a(0x2eb)][_0x3bc04a(0x4d0)]()&&((_0x39737d=_0x4b6043[_0x3bc04a(0x182)])===null||_0x39737d===void 0x0?void 0x0:_0x39737d[_0x3bc04a(0x2ee)])===undefined&&(_0x4b6043[_0x3bc04a(0x182)]===undefined?_0x4b6043[_0x3bc04a(0x182)]={'responseModalities':[exports['Modality'][_0x3bc04a(0x3f4)]]}:_0x4b6043['config']['responseModalities']=[exports[_0x3bc04a(0x394)][_0x3bc04a(0x3f4)]]);((_0x50b79d=_0x4b6043[_0x3bc04a(0x182)])===null||_0x50b79d===void 0x0?void 0x0:_0x50b79d[_0x3bc04a(0x558)])&&console[_0x3bc04a(0x1ef)](_0x3bc04a(0x65c));const _0x1b80ec=(_0x22ff09=(_0x3c9d77=_0x4b6043[_0x3bc04a(0x182)])===null||_0x3c9d77===void 0x0?void 0x0:_0x3c9d77[_0x3bc04a(0x376)])!==null&&_0x22ff09!==void 0x0?_0x22ff09:[],_0x52d6d=[];for(const _0x32efde of _0x1b80ec){if(this[_0x3bc04a(0x115)](_0x32efde)){const _0x1df737=_0x32efde;_0x52d6d[_0x3bc04a(0x599)](await _0x1df737[_0x3bc04a(0x2cc)]());}else _0x52d6d['push'](_0x32efde);}_0x52d6d[_0x3bc04a(0x568)]>0x0&&(_0x4b6043['config'][_0x3bc04a(0x376)]=_0x52d6d);const _0xc4618={'model':_0x432d49,'config':_0x4b6043[_0x3bc04a(0x182)],'callbacks':_0x4b6043[_0x3bc04a(0x235)]};return this[_0x3bc04a(0x2eb)][_0x3bc04a(0x4d0)]()?_0x1d1724=liveConnectParametersToVertex(this[_0x3bc04a(0x2eb)],_0xc4618):_0x1d1724=liveConnectParametersToMldev(this['apiClient'],_0xc4618),delete _0x1d1724[_0x3bc04a(0x182)],_0x918df6[_0x3bc04a(0x109)](JSON[_0x3bc04a(0x296)](_0x1d1724)),new Session(_0x918df6,this[_0x3bc04a(0x2eb)]);}[a2_0x8e922d(0x115)](_0x521038){const _0x3ac3e0=a2_0x8e922d;return _0x3ac3e0(0x3ca)in _0x521038&&typeof _0x521038[_0x3ac3e0(0x3ca)]===_0x3ac3e0(0x47f);}}const defaultLiveSendClientContentParamerters={'turnComplete':!![]};class Session{constructor(_0xc602d3,_0x47e918){const _0xa065b3=a2_0x8e922d;this['conn']=_0xc602d3,this[_0xa065b3(0x2eb)]=_0x47e918;}[a2_0x8e922d(0x400)](_0x2e40bd,_0x2eff64){const _0x147209=a2_0x8e922d;if(_0x2eff64[_0x147209(0x2bd)]!==null&&_0x2eff64[_0x147209(0x2bd)]!==undefined){let _0x206e62=[];try{_0x206e62=tContents(_0x2eff64[_0x147209(0x2bd)]),!_0x2e40bd[_0x147209(0x4d0)]()&&(_0x206e62=_0x206e62[_0x147209(0x4a8)](_0x5d249d=>contentToMldev$1(_0x5d249d)));}catch(_0x2bb555){throw new Error('Failed\x20to\x20parse\x20client\x20content\x20\x22turns\x22,\x20type:\x20\x27'+typeof _0x2eff64['turns']+'\x27');}return{'clientContent':{'turns':_0x206e62,'turnComplete':_0x2eff64[_0x147209(0x4bd)]}};}return{'clientContent':{'turnComplete':_0x2eff64['turnComplete']}};}[a2_0x8e922d(0x3fd)](_0x267208,_0x316f05){const _0x1cdc0d=a2_0x8e922d;let _0xc2dd5e=[];if(_0x316f05[_0x1cdc0d(0x358)]==null)throw new Error(_0x1cdc0d(0x286));!Array[_0x1cdc0d(0x266)](_0x316f05[_0x1cdc0d(0x358)])?_0xc2dd5e=[_0x316f05[_0x1cdc0d(0x358)]]:_0xc2dd5e=_0x316f05[_0x1cdc0d(0x358)];if(_0xc2dd5e[_0x1cdc0d(0x568)]===0x0)throw new Error(_0x1cdc0d(0x286));for(const _0x556a03 of _0xc2dd5e){if(typeof _0x556a03!=='object'||_0x556a03===null||!('name'in _0x556a03)||!(_0x1cdc0d(0x1d3)in _0x556a03))throw new Error(_0x1cdc0d(0x3af)+typeof _0x556a03+'\x27.');if(!_0x267208[_0x1cdc0d(0x4d0)]()&&!('id'in _0x556a03))throw new Error(FUNCTION_RESPONSE_REQUIRES_ID);}const _0x394498={'toolResponse':{'functionResponses':_0xc2dd5e}};return _0x394498;}[a2_0x8e922d(0x2fa)](_0x4d1163){const _0x39b7a6=a2_0x8e922d;_0x4d1163=Object[_0x39b7a6(0x289)](Object[_0x39b7a6(0x289)]({},defaultLiveSendClientContentParamerters),_0x4d1163);const _0x2c1d0b=this[_0x39b7a6(0x400)](this[_0x39b7a6(0x2eb)],_0x4d1163);this[_0x39b7a6(0x435)][_0x39b7a6(0x109)](JSON['stringify'](_0x2c1d0b));}[a2_0x8e922d(0x473)](_0x22c82d){const _0x141c50=a2_0x8e922d;let _0x2e1750={};this[_0x141c50(0x2eb)]['isVertexAI']()?_0x2e1750={'realtimeInput':liveSendRealtimeInputParametersToVertex(_0x22c82d)}:_0x2e1750={'realtimeInput':liveSendRealtimeInputParametersToMldev(_0x22c82d)},this['conn'][_0x141c50(0x109)](JSON[_0x141c50(0x296)](_0x2e1750));}[a2_0x8e922d(0x2c2)](_0x1fc8f4){const _0x178aeb=a2_0x8e922d;if(_0x1fc8f4[_0x178aeb(0x358)]==null)throw new Error('Tool\x20response\x20parameters\x20are\x20required.');const _0x37649d=this[_0x178aeb(0x3fd)](this[_0x178aeb(0x2eb)],_0x1fc8f4);this['conn'][_0x178aeb(0x109)](JSON[_0x178aeb(0x296)](_0x37649d));}['close'](){const _0x284352=a2_0x8e922d;this['conn'][_0x284352(0x2f3)]();}}function headersToMap(_0x3851b5){const _0x427e33=a2_0x8e922d,_0xbcac80={};return _0x3851b5[_0x427e33(0xea)]((_0x24b7a9,_0x11ac56)=>{_0xbcac80[_0x11ac56]=_0x24b7a9;}),_0xbcac80;}function mapToHeaders(_0x293264){const _0x3a1d91=a2_0x8e922d,_0x165025=new Headers();for(const [_0x4fe7e4,_0x9b5c6e]of Object['entries'](_0x293264)){_0x165025[_0x3a1d91(0x246)](_0x4fe7e4,_0x9b5c6e);}return _0x165025;}/**
|
|
112
|
+
* @license
|
|
113
|
+
* Copyright 2025 Google LLC
|
|
114
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
115
|
+
*/
|
|
116
|
+
const DEFAULT_MAX_REMOTE_CALLS=0xa;function shouldDisableAfc(_0x53e9b8){const _0x228e2c=a2_0x8e922d;var _0x26dcdc,_0x582a35,_0x40f719;if((_0x26dcdc=_0x53e9b8===null||_0x53e9b8===void 0x0?void 0x0:_0x53e9b8[_0x228e2c(0x408)])===null||_0x26dcdc===void 0x0?void 0x0:_0x26dcdc[_0x228e2c(0x1c7)])return!![];let _0x4f8954=![];for(const _0x92eec7 of(_0x582a35=_0x53e9b8===null||_0x53e9b8===void 0x0?void 0x0:_0x53e9b8[_0x228e2c(0x376)])!==null&&_0x582a35!==void 0x0?_0x582a35:[]){if(isCallableTool(_0x92eec7)){_0x4f8954=!![];break;}}if(!_0x4f8954)return!![];const _0x56cc07=(_0x40f719=_0x53e9b8===null||_0x53e9b8===void 0x0?void 0x0:_0x53e9b8[_0x228e2c(0x408)])===null||_0x40f719===void 0x0?void 0x0:_0x40f719[_0x228e2c(0x2c9)];if(_0x56cc07&&(_0x56cc07<0x0||!Number['isInteger'](_0x56cc07))||_0x56cc07==0x0)return console[_0x228e2c(0x1ef)](_0x228e2c(0x48f),_0x56cc07),!![];return![];}function isCallableTool(_0x311062){const _0x4634fb=a2_0x8e922d;return _0x4634fb(0x3ca)in _0x311062&&typeof _0x311062['callTool']===_0x4634fb(0x47f);}function hasCallableTools(_0x4884f9){const _0x16f08c=a2_0x8e922d;var _0xdbbb1d,_0x4c1093,_0x58503b;return(_0x58503b=(_0x4c1093=(_0xdbbb1d=_0x4884f9[_0x16f08c(0x182)])===null||_0xdbbb1d===void 0x0?void 0x0:_0xdbbb1d[_0x16f08c(0x376)])===null||_0x4c1093===void 0x0?void 0x0:_0x4c1093[_0x16f08c(0x119)](_0x1d7322=>isCallableTool(_0x1d7322)))!==null&&_0x58503b!==void 0x0?_0x58503b:![];}function findAfcIncompatibleToolIndexes(_0x1d1fc5){const _0x29e4c8=a2_0x8e922d;var _0x1c3cc6;const _0x1c57c2=[];if(!((_0x1c3cc6=_0x1d1fc5===null||_0x1d1fc5===void 0x0?void 0x0:_0x1d1fc5[_0x29e4c8(0x182)])===null||_0x1c3cc6===void 0x0?void 0x0:_0x1c3cc6['tools']))return _0x1c57c2;return _0x1d1fc5['config'][_0x29e4c8(0x376)][_0x29e4c8(0xea)]((_0x2f5817,_0x28c546)=>{const _0x3f02a6=_0x29e4c8;if(isCallableTool(_0x2f5817))return;const _0x7dc7e2=_0x2f5817;_0x7dc7e2[_0x3f02a6(0x4e2)]&&_0x7dc7e2[_0x3f02a6(0x4e2)][_0x3f02a6(0x568)]>0x0&&_0x1c57c2['push'](_0x28c546);}),_0x1c57c2;}function shouldAppendAfcHistory(_0x18072d){const _0x3116f5=a2_0x8e922d;var _0x1c2325;return!((_0x1c2325=_0x18072d===null||_0x18072d===void 0x0?void 0x0:_0x18072d[_0x3116f5(0x408)])===null||_0x1c2325===void 0x0?void 0x0:_0x1c2325['ignoreCallHistory']);}/**
|
|
117
|
+
* @license
|
|
118
|
+
* Copyright 2025 Google LLC
|
|
119
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
120
|
+
*/
|
|
121
|
+
class Models extends BaseModule{constructor(_0x405861){const _0x5e62c9=a2_0x8e922d;super(),this['apiClient']=_0x405861,this[_0x5e62c9(0xa7)]=async _0x48c93f=>{const _0x5bcfac=_0x5e62c9;var _0x34b9df,_0x5c2abb,_0x1ee32c,_0x3da501,_0x590897;const _0x130b9d=await this['processParamsMaybeAddMcpUsage'](_0x48c93f);this[_0x5bcfac(0x52e)](_0x48c93f);if(!hasCallableTools(_0x48c93f)||shouldDisableAfc(_0x48c93f[_0x5bcfac(0x182)]))return await this[_0x5bcfac(0x549)](_0x130b9d);const _0x1131da=findAfcIncompatibleToolIndexes(_0x48c93f);if(_0x1131da[_0x5bcfac(0x568)]>0x0){const _0x3eb655=_0x1131da[_0x5bcfac(0x4a8)](_0x3f3b42=>'tools['+_0x3f3b42+']')['join'](',\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'+_0x3eb655+'.');}let _0x46c579,_0x2b7875;const _0x2ce2b1=tContents(_0x130b9d[_0x5bcfac(0x684)]),_0x3d8f92=(_0x1ee32c=(_0x5c2abb=(_0x34b9df=_0x130b9d[_0x5bcfac(0x182)])===null||_0x34b9df===void 0x0?void 0x0:_0x34b9df['automaticFunctionCalling'])===null||_0x5c2abb===void 0x0?void 0x0:_0x5c2abb[_0x5bcfac(0x2c9)])!==null&&_0x1ee32c!==void 0x0?_0x1ee32c:DEFAULT_MAX_REMOTE_CALLS;let _0x13cfa9=0x0;while(_0x13cfa9<_0x3d8f92){_0x46c579=await this[_0x5bcfac(0x549)](_0x130b9d);if(!_0x46c579[_0x5bcfac(0x3e8)]||_0x46c579['functionCalls']['length']===0x0)break;const _0x3f8c18=_0x46c579['candidates'][0x0][_0x5bcfac(0x4a6)],_0x3897d2=[];for(const _0x454714 of(_0x590897=(_0x3da501=_0x48c93f[_0x5bcfac(0x182)])===null||_0x3da501===void 0x0?void 0x0:_0x3da501[_0x5bcfac(0x376)])!==null&&_0x590897!==void 0x0?_0x590897:[]){if(isCallableTool(_0x454714)){const _0x3b014a=_0x454714,_0x161f5b=await _0x3b014a['callTool'](_0x46c579['functionCalls']);_0x3897d2[_0x5bcfac(0x599)](..._0x161f5b);}}_0x13cfa9++,_0x2b7875={'role':_0x5bcfac(0x5d0),'parts':_0x3897d2},_0x130b9d[_0x5bcfac(0x684)]=tContents(_0x130b9d[_0x5bcfac(0x684)]),_0x130b9d[_0x5bcfac(0x684)]['push'](_0x3f8c18),_0x130b9d[_0x5bcfac(0x684)]['push'](_0x2b7875),shouldAppendAfcHistory(_0x130b9d[_0x5bcfac(0x182)])&&(_0x2ce2b1[_0x5bcfac(0x599)](_0x3f8c18),_0x2ce2b1[_0x5bcfac(0x599)](_0x2b7875));}return shouldAppendAfcHistory(_0x130b9d[_0x5bcfac(0x182)])&&(_0x46c579[_0x5bcfac(0xae)]=_0x2ce2b1),_0x46c579;},this[_0x5e62c9(0x671)]=async _0x66592b=>{const _0x48cf3f=_0x5e62c9;var _0x19e3df,_0xfb9c4d,_0x37fb1a,_0x324cfd,_0x7a04a6;this[_0x48cf3f(0x52e)](_0x66592b);if(shouldDisableAfc(_0x66592b[_0x48cf3f(0x182)])){const _0x3d6766=await this[_0x48cf3f(0x534)](_0x66592b);return await this['generateContentStreamInternal'](_0x3d6766);}const _0x43cc41=findAfcIncompatibleToolIndexes(_0x66592b);if(_0x43cc41[_0x48cf3f(0x568)]>0x0){const _0x46ed3c=_0x43cc41['map'](_0x106bd8=>_0x48cf3f(0x5dd)+_0x106bd8+']')[_0x48cf3f(0x174)](',\x20');throw new Error(_0x48cf3f(0x204)+_0x46ed3c+_0x48cf3f(0xef));}const _0x2ab3fc=(_0x37fb1a=(_0xfb9c4d=(_0x19e3df=_0x66592b===null||_0x66592b===void 0x0?void 0x0:_0x66592b[_0x48cf3f(0x182)])===null||_0x19e3df===void 0x0?void 0x0:_0x19e3df[_0x48cf3f(0x264)])===null||_0xfb9c4d===void 0x0?void 0x0:_0xfb9c4d[_0x48cf3f(0x132)])===null||_0x37fb1a===void 0x0?void 0x0:_0x37fb1a[_0x48cf3f(0x4eb)],_0xb6bf6f=(_0x7a04a6=(_0x324cfd=_0x66592b===null||_0x66592b===void 0x0?void 0x0:_0x66592b[_0x48cf3f(0x182)])===null||_0x324cfd===void 0x0?void 0x0:_0x324cfd[_0x48cf3f(0x408)])===null||_0x7a04a6===void 0x0?void 0x0:_0x7a04a6[_0x48cf3f(0x1c7)];if(_0x2ab3fc&&!_0xb6bf6f)throw new Error('Running\x20in\x20streaming\x20mode\x20with\x20\x27streamFunctionCallArguments\x27\x20enabled,\x20'+_0x48cf3f(0x45c)+_0x48cf3f(0x683)+_0x48cf3f(0xd1)+_0x48cf3f(0x467));return await this[_0x48cf3f(0x117)](_0x66592b);},this[_0x5e62c9(0x658)]=async _0x225e38=>{return await this['generateImagesInternal'](_0x225e38)['then'](_0x28eef4=>{const _0x259507=a2_0x28ed;var _0x11afb3;let _0x57a358;const _0x2112e0=[];if(_0x28eef4===null||_0x28eef4===void 0x0?void 0x0:_0x28eef4[_0x259507(0x682)])for(const _0x4703c0 of _0x28eef4[_0x259507(0x682)]){_0x4703c0&&(_0x4703c0===null||_0x4703c0===void 0x0?void 0x0:_0x4703c0[_0x259507(0x595)])&&((_0x11afb3=_0x4703c0===null||_0x4703c0===void 0x0?void 0x0:_0x4703c0[_0x259507(0x595)])===null||_0x11afb3===void 0x0?void 0x0:_0x11afb3[_0x259507(0x630)])==='Positive\x20Prompt'?_0x57a358=_0x4703c0===null||_0x4703c0===void 0x0?void 0x0:_0x4703c0[_0x259507(0x595)]:_0x2112e0[_0x259507(0x599)](_0x4703c0);}let _0xfda3c5;return _0x57a358?_0xfda3c5={'generatedImages':_0x2112e0,'positivePromptSafetyAttributes':_0x57a358,'sdkHttpResponse':_0x28eef4['sdkHttpResponse']}:_0xfda3c5={'generatedImages':_0x2112e0,'sdkHttpResponse':_0x28eef4[_0x259507(0x3a0)]},_0xfda3c5;});},this[_0x5e62c9(0x10c)]=async _0x3e8189=>{const _0x4ed9e5=_0x5e62c9;var _0x99dad1;const _0x256e24={'queryBase':!![]},_0x264dcf=Object['assign'](Object[_0x4ed9e5(0x289)]({},_0x256e24),_0x3e8189===null||_0x3e8189===void 0x0?void 0x0:_0x3e8189['config']),_0xc42c49={'config':_0x264dcf};if(this[_0x4ed9e5(0x2eb)][_0x4ed9e5(0x4d0)]()){if(!_0xc42c49[_0x4ed9e5(0x182)][_0x4ed9e5(0x31a)]){if((_0x99dad1=_0xc42c49[_0x4ed9e5(0x182)])===null||_0x99dad1===void 0x0?void 0x0:_0x99dad1[_0x4ed9e5(0x50e)])throw new Error(_0x4ed9e5(0x20d));else _0xc42c49['config'][_0x4ed9e5(0x50e)]=_0x4ed9e5(0x5b0);}}return new Pager(exports[_0x4ed9e5(0x1a4)]['PAGED_ITEM_MODELS'],_0x21aae2=>this[_0x4ed9e5(0x456)](_0x21aae2),await this['listInternal'](_0xc42c49),_0xc42c49);},this['editImage']=async _0x146bcb=>{const _0xeee3b=_0x5e62c9,_0x5e4bd6={'model':_0x146bcb[_0xeee3b(0x638)],'prompt':_0x146bcb['prompt'],'referenceImages':[],'config':_0x146bcb[_0xeee3b(0x182)]};return _0x146bcb[_0xeee3b(0x2e2)]&&(_0x146bcb['referenceImages']&&(_0x5e4bd6[_0xeee3b(0x2e2)]=_0x146bcb['referenceImages'][_0xeee3b(0x4a8)](_0x126263=>_0x126263['toReferenceImageAPI']()))),await this['editImageInternal'](_0x5e4bd6);},this[_0x5e62c9(0x3a3)]=async _0x2057e3=>{const _0x3ca9ad=_0x5e62c9;let _0x2ec5ee={'numberOfImages':0x1,'mode':'upscale'};_0x2057e3[_0x3ca9ad(0x182)]&&(_0x2ec5ee=Object[_0x3ca9ad(0x289)](Object[_0x3ca9ad(0x289)]({},_0x2ec5ee),_0x2057e3[_0x3ca9ad(0x182)]));const _0x25561a={'model':_0x2057e3[_0x3ca9ad(0x638)],'image':_0x2057e3[_0x3ca9ad(0x59f)],'upscaleFactor':_0x2057e3[_0x3ca9ad(0x370)],'config':_0x2ec5ee};return await this[_0x3ca9ad(0x419)](_0x25561a);},this[_0x5e62c9(0x5c0)]=async _0xd7c78=>{const _0x5a7ba8=_0x5e62c9;var _0x22f440,_0x165f0b,_0x49db6a,_0x17c6fa,_0x4eed9c,_0x2a8ea4;if((_0xd7c78[_0x5a7ba8(0x624)]||_0xd7c78[_0x5a7ba8(0x59f)]||_0xd7c78[_0x5a7ba8(0x640)])&&_0xd7c78[_0x5a7ba8(0x58a)])throw new Error('Source\x20and\x20prompt/image/video\x20are\x20mutually\x20exclusive.\x20Please\x20only\x20use\x20source.');if(!this[_0x5a7ba8(0x2eb)]['isVertexAI']()){if(((_0x22f440=_0xd7c78['video'])===null||_0x22f440===void 0x0?void 0x0:_0x22f440[_0x5a7ba8(0x1a0)])&&((_0x165f0b=_0xd7c78[_0x5a7ba8(0x640)])===null||_0x165f0b===void 0x0?void 0x0:_0x165f0b[_0x5a7ba8(0x426)]))_0xd7c78[_0x5a7ba8(0x640)]={'uri':_0xd7c78[_0x5a7ba8(0x640)][_0x5a7ba8(0x1a0)],'mimeType':_0xd7c78['video'][_0x5a7ba8(0x3c0)]};else((_0x17c6fa=(_0x49db6a=_0xd7c78[_0x5a7ba8(0x58a)])===null||_0x49db6a===void 0x0?void 0x0:_0x49db6a[_0x5a7ba8(0x640)])===null||_0x17c6fa===void 0x0?void 0x0:_0x17c6fa[_0x5a7ba8(0x1a0)])&&((_0x2a8ea4=(_0x4eed9c=_0xd7c78['source'])===null||_0x4eed9c===void 0x0?void 0x0:_0x4eed9c[_0x5a7ba8(0x640)])===null||_0x2a8ea4===void 0x0?void 0x0:_0x2a8ea4[_0x5a7ba8(0x426)])&&(_0xd7c78[_0x5a7ba8(0x58a)][_0x5a7ba8(0x640)]={'uri':_0xd7c78[_0x5a7ba8(0x58a)]['video'][_0x5a7ba8(0x1a0)],'mimeType':_0xd7c78['source']['video'][_0x5a7ba8(0x3c0)]});}return await this[_0x5a7ba8(0x5dc)](_0xd7c78);};}[a2_0x8e922d(0x52e)](_0x4afbda){const _0x552fc9=a2_0x8e922d;_0x4afbda[_0x552fc9(0x182)]&&_0x4afbda[_0x552fc9(0x182)][_0x552fc9(0x475)]&&(!_0x4afbda['config'][_0x552fc9(0x13c)]&&(Object[_0x552fc9(0x6b2)](_0x4afbda['config'][_0x552fc9(0x475)])['includes']('$schema')&&(_0x4afbda[_0x552fc9(0x182)][_0x552fc9(0x13c)]=_0x4afbda[_0x552fc9(0x182)]['responseSchema'],delete _0x4afbda[_0x552fc9(0x182)][_0x552fc9(0x475)])));return;}async[a2_0x8e922d(0x534)](_0x17158c){const _0x3e231d=a2_0x8e922d;var _0x336407,_0x119abe,_0x182639;const _0x2fe56c=(_0x336407=_0x17158c[_0x3e231d(0x182)])===null||_0x336407===void 0x0?void 0x0:_0x336407[_0x3e231d(0x376)];if(!_0x2fe56c)return _0x17158c;const _0x16c885=await Promise[_0x3e231d(0x4b2)](_0x2fe56c[_0x3e231d(0x4a8)](async _0x5e7466=>{if(isCallableTool(_0x5e7466)){const _0x5450d1=_0x5e7466;return await _0x5450d1['tool']();}return _0x5e7466;})),_0x4c7b71={'model':_0x17158c['model'],'contents':_0x17158c[_0x3e231d(0x684)],'config':Object[_0x3e231d(0x289)](Object[_0x3e231d(0x289)]({},_0x17158c['config']),{'tools':_0x16c885})};_0x4c7b71[_0x3e231d(0x182)][_0x3e231d(0x376)]=_0x16c885;if(_0x17158c['config']&&_0x17158c[_0x3e231d(0x182)][_0x3e231d(0x376)]&&hasMcpToolUsage(_0x17158c[_0x3e231d(0x182)]['tools'])){const _0x4489d9=(_0x182639=(_0x119abe=_0x17158c[_0x3e231d(0x182)][_0x3e231d(0x30a)])===null||_0x119abe===void 0x0?void 0x0:_0x119abe[_0x3e231d(0x438)])!==null&&_0x182639!==void 0x0?_0x182639:{};let _0x52eef1=Object[_0x3e231d(0x289)]({},_0x4489d9);Object[_0x3e231d(0x6b2)](_0x52eef1)[_0x3e231d(0x568)]===0x0&&(_0x52eef1=this[_0x3e231d(0x2eb)][_0x3e231d(0x1aa)]()),setMcpUsageHeader(_0x52eef1),_0x4c7b71[_0x3e231d(0x182)]['httpOptions']=Object[_0x3e231d(0x289)](Object[_0x3e231d(0x289)]({},_0x17158c[_0x3e231d(0x182)][_0x3e231d(0x30a)]),{'headers':_0x52eef1});}return _0x4c7b71;}async[a2_0x8e922d(0x367)](_0x361688){const _0x53d7c=a2_0x8e922d;var _0x2f8d97,_0x16213c,_0x4ea06c;const _0x21cb9f=new Map();for(const _0x1beab0 of(_0x16213c=(_0x2f8d97=_0x361688['config'])===null||_0x2f8d97===void 0x0?void 0x0:_0x2f8d97[_0x53d7c(0x376)])!==null&&_0x16213c!==void 0x0?_0x16213c:[]){if(isCallableTool(_0x1beab0)){const _0x583357=_0x1beab0,_0x236503=await _0x583357[_0x53d7c(0x2cc)]();for(const _0x56d411 of(_0x4ea06c=_0x236503['functionDeclarations'])!==null&&_0x4ea06c!==void 0x0?_0x4ea06c:[]){if(!_0x56d411[_0x53d7c(0x206)])throw new Error('Function\x20declaration\x20name\x20is\x20required.');if(_0x21cb9f['has'](_0x56d411[_0x53d7c(0x206)]))throw new Error('Duplicate\x20tool\x20declaration\x20name:\x20'+_0x56d411[_0x53d7c(0x206)]);_0x21cb9f[_0x53d7c(0x44e)](_0x56d411[_0x53d7c(0x206)],_0x583357);}}}return _0x21cb9f;}async['processAfcStream'](_0x1ef029){const _0x490acb=a2_0x8e922d;var _0x3627ae,_0x571d17,_0x4258cf;const _0x503c83=(_0x4258cf=(_0x571d17=(_0x3627ae=_0x1ef029['config'])===null||_0x3627ae===void 0x0?void 0x0:_0x3627ae[_0x490acb(0x408)])===null||_0x571d17===void 0x0?void 0x0:_0x571d17[_0x490acb(0x2c9)])!==null&&_0x4258cf!==void 0x0?_0x4258cf:DEFAULT_MAX_REMOTE_CALLS;let _0x4038e0=![],_0x4bedbf=0x0;const _0xb91dbf=await this[_0x490acb(0x367)](_0x1ef029);return function(_0x258a61,_0x1b44c0,_0x3cf34a){return __asyncGenerator(this,arguments,function*(){const _0x59520d=a2_0x28ed;var _0x46f709,_0x421b94,_0x500427,_0x32410f,_0x16a540,_0x121cd0;while(_0x4bedbf<_0x503c83){_0x4038e0&&(_0x4bedbf++,_0x4038e0=![]);const _0x766354=yield __await(_0x258a61['processParamsMaybeAddMcpUsage'](_0x3cf34a)),_0x1a08cb=yield __await(_0x258a61[_0x59520d(0x406)](_0x766354)),_0x58c8da=[],_0x53503e=[];try{for(var _0x37d76a=!![],_0x1a28ab=(_0x421b94=void 0x0,__asyncValues(_0x1a08cb)),_0x1b768c;_0x1b768c=yield __await(_0x1a28ab['next']()),_0x46f709=_0x1b768c['done'],!_0x46f709;_0x37d76a=!![]){_0x32410f=_0x1b768c[_0x59520d(0x6ad)],_0x37d76a=![];const _0x430170=_0x32410f;yield yield __await(_0x430170);if(_0x430170[_0x59520d(0x2ba)]&&((_0x16a540=_0x430170[_0x59520d(0x2ba)][0x0])===null||_0x16a540===void 0x0?void 0x0:_0x16a540[_0x59520d(0x4a6)])){_0x53503e[_0x59520d(0x599)](_0x430170[_0x59520d(0x2ba)][0x0][_0x59520d(0x4a6)]);for(const _0x1177b9 of(_0x121cd0=_0x430170['candidates'][0x0][_0x59520d(0x4a6)][_0x59520d(0x694)])!==null&&_0x121cd0!==void 0x0?_0x121cd0:[]){if(_0x4bedbf<_0x503c83&&_0x1177b9['functionCall']){if(!_0x1177b9[_0x59520d(0x521)][_0x59520d(0x206)])throw new Error(_0x59520d(0x670));if(!_0x1b44c0[_0x59520d(0x4b7)](_0x1177b9[_0x59520d(0x521)][_0x59520d(0x206)]))throw new Error(_0x59520d(0x537)+_0x1b44c0[_0x59520d(0x6b2)]()+',\x20mising\x20tool:\x20'+_0x1177b9[_0x59520d(0x521)][_0x59520d(0x206)]);else{const _0x5c6c32=yield __await(_0x1b44c0[_0x59520d(0x661)](_0x1177b9[_0x59520d(0x521)][_0x59520d(0x206)])[_0x59520d(0x3ca)]([_0x1177b9[_0x59520d(0x521)]]));_0x58c8da['push'](..._0x5c6c32);}}}}}}catch(_0x1cd45c){_0x421b94={'error':_0x1cd45c};}finally{try{if(!_0x37d76a&&!_0x46f709&&(_0x500427=_0x1a28ab[_0x59520d(0x632)]))yield __await(_0x500427[_0x59520d(0x168)](_0x1a28ab));}finally{if(_0x421b94)throw _0x421b94[_0x59520d(0x262)];}}if(_0x58c8da[_0x59520d(0x568)]>0x0){_0x4038e0=!![];const _0x54232d=new GenerateContentResponse();_0x54232d[_0x59520d(0x2ba)]=[{'content':{'role':_0x59520d(0x5d0),'parts':_0x58c8da}}],yield yield __await(_0x54232d);const _0x48aeda=[];_0x48aeda['push'](..._0x53503e),_0x48aeda[_0x59520d(0x599)]({'role':_0x59520d(0x5d0),'parts':_0x58c8da});const _0x4ed76b=tContents(_0x3cf34a['contents'])[_0x59520d(0x62a)](_0x48aeda);_0x3cf34a[_0x59520d(0x684)]=_0x4ed76b;}else break;}});}(this,_0xb91dbf,_0x1ef029);}async[a2_0x8e922d(0x549)](_0x269a28){const _0x391285=a2_0x8e922d;var _0x59cc5c,_0x4e4d89,_0x495e32,_0x43f220;let _0xc2a8c0,_0x5c1ba6='',_0xd975c8={};if(this[_0x391285(0x2eb)][_0x391285(0x4d0)]()){const _0x3fbdf9=generateContentParametersToVertex(this[_0x391285(0x2eb)],_0x269a28);return _0x5c1ba6=formatMap(_0x391285(0x572),_0x3fbdf9[_0x391285(0x334)]),_0xd975c8=_0x3fbdf9[_0x391285(0xa9)],delete _0x3fbdf9[_0x391285(0x334)],delete _0x3fbdf9[_0x391285(0xa9)],_0xc2a8c0=this[_0x391285(0x2eb)][_0x391285(0x269)]({'path':_0x5c1ba6,'queryParams':_0xd975c8,'body':JSON[_0x391285(0x296)](_0x3fbdf9),'httpMethod':_0x391285(0x208),'httpOptions':(_0x59cc5c=_0x269a28[_0x391285(0x182)])===null||_0x59cc5c===void 0x0?void 0x0:_0x59cc5c['httpOptions'],'abortSignal':(_0x4e4d89=_0x269a28[_0x391285(0x182)])===null||_0x4e4d89===void 0x0?void 0x0:_0x4e4d89[_0x391285(0x2fc)]})[_0x391285(0x213)](_0x4da33b=>{const _0x373a35=_0x391285;return _0x4da33b['json']()[_0x373a35(0x213)](_0x100024=>{const _0x24fdeb=_0x373a35,_0x2603f0=_0x100024;return _0x2603f0[_0x24fdeb(0x3a0)]={'headers':_0x4da33b[_0x24fdeb(0x438)]},_0x2603f0;});}),_0xc2a8c0[_0x391285(0x213)](_0xd0e061=>{const _0x378708=generateContentResponseFromVertex(_0xd0e061),_0x4655d5=new GenerateContentResponse();return Object['assign'](_0x4655d5,_0x378708),_0x4655d5;});}else{const _0x2425cd=generateContentParametersToMldev(this[_0x391285(0x2eb)],_0x269a28);return _0x5c1ba6=formatMap(_0x391285(0x572),_0x2425cd[_0x391285(0x334)]),_0xd975c8=_0x2425cd['_query'],delete _0x2425cd[_0x391285(0x334)],delete _0x2425cd[_0x391285(0xa9)],_0xc2a8c0=this['apiClient'][_0x391285(0x269)]({'path':_0x5c1ba6,'queryParams':_0xd975c8,'body':JSON[_0x391285(0x296)](_0x2425cd),'httpMethod':'POST','httpOptions':(_0x495e32=_0x269a28[_0x391285(0x182)])===null||_0x495e32===void 0x0?void 0x0:_0x495e32[_0x391285(0x30a)],'abortSignal':(_0x43f220=_0x269a28[_0x391285(0x182)])===null||_0x43f220===void 0x0?void 0x0:_0x43f220[_0x391285(0x2fc)]})[_0x391285(0x213)](_0x42c116=>{const _0x246563=_0x391285;return _0x42c116[_0x246563(0xdf)]()['then'](_0x38c742=>{const _0x373813=_0x246563,_0x2cc57a=_0x38c742;return _0x2cc57a[_0x373813(0x3a0)]={'headers':_0x42c116[_0x373813(0x438)]},_0x2cc57a;});}),_0xc2a8c0[_0x391285(0x213)](_0x283b55=>{const _0xd81cd0=_0x391285,_0x3a419f=generateContentResponseFromMldev(_0x283b55),_0x2578da=new GenerateContentResponse();return Object[_0xd81cd0(0x289)](_0x2578da,_0x3a419f),_0x2578da;});}}async[a2_0x8e922d(0x406)](_0x3714fa){const _0x2eabaa=a2_0x8e922d;var _0x399f74,_0x44cef3,_0x4effc1,_0x91ba17;let _0x1bf819,_0x45fc27='',_0x4d1072={};if(this['apiClient'][_0x2eabaa(0x4d0)]()){const _0x27c5a0=generateContentParametersToVertex(this[_0x2eabaa(0x2eb)],_0x3714fa);_0x45fc27=formatMap(_0x2eabaa(0x331),_0x27c5a0[_0x2eabaa(0x334)]),_0x4d1072=_0x27c5a0[_0x2eabaa(0xa9)],delete _0x27c5a0[_0x2eabaa(0x334)],delete _0x27c5a0['_query'];const _0x58e992=this[_0x2eabaa(0x2eb)];return _0x1bf819=_0x58e992[_0x2eabaa(0x24c)]({'path':_0x45fc27,'queryParams':_0x4d1072,'body':JSON['stringify'](_0x27c5a0),'httpMethod':_0x2eabaa(0x208),'httpOptions':(_0x399f74=_0x3714fa['config'])===null||_0x399f74===void 0x0?void 0x0:_0x399f74[_0x2eabaa(0x30a)],'abortSignal':(_0x44cef3=_0x3714fa[_0x2eabaa(0x182)])===null||_0x44cef3===void 0x0?void 0x0:_0x44cef3['abortSignal']}),_0x1bf819[_0x2eabaa(0x213)](function(_0x343969){return __asyncGenerator(this,arguments,function*(){const _0x36b6d0=a2_0x28ed;var _0x2bcde2,_0xf5c4ed,_0x594806,_0x18cc38;try{for(var _0x5e9423=!![],_0x30ac19=__asyncValues(_0x343969),_0x1acbf9;_0x1acbf9=yield __await(_0x30ac19[_0x36b6d0(0x27b)]()),_0x2bcde2=_0x1acbf9['done'],!_0x2bcde2;_0x5e9423=!![]){_0x18cc38=_0x1acbf9[_0x36b6d0(0x6ad)],_0x5e9423=![];const _0x20dcb6=_0x18cc38,_0x4f9f79=generateContentResponseFromVertex(yield __await(_0x20dcb6['json']()),_0x3714fa);_0x4f9f79['sdkHttpResponse']={'headers':_0x20dcb6[_0x36b6d0(0x438)]};const _0x55dd7a=new GenerateContentResponse();Object['assign'](_0x55dd7a,_0x4f9f79),yield yield __await(_0x55dd7a);}}catch(_0x293507){_0xf5c4ed={'error':_0x293507};}finally{try{if(!_0x5e9423&&!_0x2bcde2&&(_0x594806=_0x30ac19['return']))yield __await(_0x594806[_0x36b6d0(0x168)](_0x30ac19));}finally{if(_0xf5c4ed)throw _0xf5c4ed[_0x36b6d0(0x262)];}}});});}else{const _0x457caf=generateContentParametersToMldev(this[_0x2eabaa(0x2eb)],_0x3714fa);_0x45fc27=formatMap(_0x2eabaa(0x331),_0x457caf[_0x2eabaa(0x334)]),_0x4d1072=_0x457caf[_0x2eabaa(0xa9)],delete _0x457caf[_0x2eabaa(0x334)],delete _0x457caf['_query'];const _0x169b01=this[_0x2eabaa(0x2eb)];return _0x1bf819=_0x169b01['requestStream']({'path':_0x45fc27,'queryParams':_0x4d1072,'body':JSON[_0x2eabaa(0x296)](_0x457caf),'httpMethod':_0x2eabaa(0x208),'httpOptions':(_0x4effc1=_0x3714fa[_0x2eabaa(0x182)])===null||_0x4effc1===void 0x0?void 0x0:_0x4effc1[_0x2eabaa(0x30a)],'abortSignal':(_0x91ba17=_0x3714fa[_0x2eabaa(0x182)])===null||_0x91ba17===void 0x0?void 0x0:_0x91ba17[_0x2eabaa(0x2fc)]}),_0x1bf819[_0x2eabaa(0x213)](function(_0x2be2e0){return __asyncGenerator(this,arguments,function*(){const _0x1618e9=a2_0x28ed;var _0x5f4dfd,_0x2fe8cc,_0x545c68,_0x30e20b;try{for(var _0x39e451=!![],_0x4c5492=__asyncValues(_0x2be2e0),_0x536f38;_0x536f38=yield __await(_0x4c5492[_0x1618e9(0x27b)]()),_0x5f4dfd=_0x536f38[_0x1618e9(0x4ae)],!_0x5f4dfd;_0x39e451=!![]){_0x30e20b=_0x536f38[_0x1618e9(0x6ad)],_0x39e451=![];const _0x1a741b=_0x30e20b,_0x81ff81=generateContentResponseFromMldev(yield __await(_0x1a741b[_0x1618e9(0xdf)]()),_0x3714fa);_0x81ff81[_0x1618e9(0x3a0)]={'headers':_0x1a741b[_0x1618e9(0x438)]};const _0x529e1a=new GenerateContentResponse();Object[_0x1618e9(0x289)](_0x529e1a,_0x81ff81),yield yield __await(_0x529e1a);}}catch(_0x3fe536){_0x2fe8cc={'error':_0x3fe536};}finally{try{if(!_0x39e451&&!_0x5f4dfd&&(_0x545c68=_0x4c5492[_0x1618e9(0x632)]))yield __await(_0x545c68[_0x1618e9(0x168)](_0x4c5492));}finally{if(_0x2fe8cc)throw _0x2fe8cc[_0x1618e9(0x262)];}}});});}}async[a2_0x8e922d(0x45e)](_0x280ed7){const _0x5e381e=a2_0x8e922d;var _0x2bd6ff,_0x307d04,_0x294306,_0x37bc2d;let _0x101db9,_0x355d09='',_0x58b475={};if(this['apiClient'][_0x5e381e(0x4d0)]()){const _0x1d6220=embedContentParametersToVertex(this['apiClient'],_0x280ed7);return _0x355d09=formatMap(_0x5e381e(0x625),_0x1d6220['_url']),_0x58b475=_0x1d6220['_query'],delete _0x1d6220[_0x5e381e(0x334)],delete _0x1d6220[_0x5e381e(0xa9)],_0x101db9=this['apiClient'][_0x5e381e(0x269)]({'path':_0x355d09,'queryParams':_0x58b475,'body':JSON[_0x5e381e(0x296)](_0x1d6220),'httpMethod':_0x5e381e(0x208),'httpOptions':(_0x2bd6ff=_0x280ed7[_0x5e381e(0x182)])===null||_0x2bd6ff===void 0x0?void 0x0:_0x2bd6ff[_0x5e381e(0x30a)],'abortSignal':(_0x307d04=_0x280ed7[_0x5e381e(0x182)])===null||_0x307d04===void 0x0?void 0x0:_0x307d04['abortSignal']})[_0x5e381e(0x213)](_0x2d774c=>{const _0x2dcaa3=_0x5e381e;return _0x2d774c[_0x2dcaa3(0xdf)]()[_0x2dcaa3(0x213)](_0x3c595c=>{const _0x26225e=_0x2dcaa3,_0xafa5fb=_0x3c595c;return _0xafa5fb[_0x26225e(0x3a0)]={'headers':_0x2d774c[_0x26225e(0x438)]},_0xafa5fb;});}),_0x101db9[_0x5e381e(0x213)](_0x358d34=>{const _0x589c0e=_0x5e381e,_0x1550ef=embedContentResponseFromVertex(_0x358d34),_0xf0e3d7=new EmbedContentResponse();return Object[_0x589c0e(0x289)](_0xf0e3d7,_0x1550ef),_0xf0e3d7;});}else{const _0x2c8df9=embedContentParametersToMldev(this[_0x5e381e(0x2eb)],_0x280ed7);return _0x355d09=formatMap(_0x5e381e(0x443),_0x2c8df9[_0x5e381e(0x334)]),_0x58b475=_0x2c8df9[_0x5e381e(0xa9)],delete _0x2c8df9[_0x5e381e(0x334)],delete _0x2c8df9[_0x5e381e(0xa9)],_0x101db9=this['apiClient'][_0x5e381e(0x269)]({'path':_0x355d09,'queryParams':_0x58b475,'body':JSON[_0x5e381e(0x296)](_0x2c8df9),'httpMethod':'POST','httpOptions':(_0x294306=_0x280ed7[_0x5e381e(0x182)])===null||_0x294306===void 0x0?void 0x0:_0x294306[_0x5e381e(0x30a)],'abortSignal':(_0x37bc2d=_0x280ed7[_0x5e381e(0x182)])===null||_0x37bc2d===void 0x0?void 0x0:_0x37bc2d[_0x5e381e(0x2fc)]})[_0x5e381e(0x213)](_0x529c1b=>{const _0x259099=_0x5e381e;return _0x529c1b[_0x259099(0xdf)]()[_0x259099(0x213)](_0x2c3f14=>{const _0x13f5fc=_0x259099,_0x3935f3=_0x2c3f14;return _0x3935f3[_0x13f5fc(0x3a0)]={'headers':_0x529c1b[_0x13f5fc(0x438)]},_0x3935f3;});}),_0x101db9[_0x5e381e(0x213)](_0x1c2105=>{const _0x5d1b2e=_0x5e381e,_0x1fc745=embedContentResponseFromMldev(_0x1c2105),_0x4bb6d6=new EmbedContentResponse();return Object[_0x5d1b2e(0x289)](_0x4bb6d6,_0x1fc745),_0x4bb6d6;});}}async[a2_0x8e922d(0xbe)](_0x511a3b){const _0x22540c=a2_0x8e922d;var _0x4ff3bb,_0x2908c1,_0x158569,_0x2ca344;let _0x179240,_0x192822='',_0x3e459a={};if(this[_0x22540c(0x2eb)][_0x22540c(0x4d0)]()){const _0x157634=generateImagesParametersToVertex(this['apiClient'],_0x511a3b);return _0x192822=formatMap(_0x22540c(0x625),_0x157634[_0x22540c(0x334)]),_0x3e459a=_0x157634['_query'],delete _0x157634[_0x22540c(0x334)],delete _0x157634[_0x22540c(0xa9)],_0x179240=this['apiClient'][_0x22540c(0x269)]({'path':_0x192822,'queryParams':_0x3e459a,'body':JSON['stringify'](_0x157634),'httpMethod':'POST','httpOptions':(_0x4ff3bb=_0x511a3b[_0x22540c(0x182)])===null||_0x4ff3bb===void 0x0?void 0x0:_0x4ff3bb[_0x22540c(0x30a)],'abortSignal':(_0x2908c1=_0x511a3b['config'])===null||_0x2908c1===void 0x0?void 0x0:_0x2908c1['abortSignal']})['then'](_0x31d464=>{const _0x21984d=_0x22540c;return _0x31d464[_0x21984d(0xdf)]()[_0x21984d(0x213)](_0x213df9=>{const _0x527e41=_0x21984d,_0x4837ee=_0x213df9;return _0x4837ee[_0x527e41(0x3a0)]={'headers':_0x31d464[_0x527e41(0x438)]},_0x4837ee;});}),_0x179240[_0x22540c(0x213)](_0x2adabb=>{const _0x5f35d7=_0x22540c,_0x31f8cc=generateImagesResponseFromVertex(_0x2adabb),_0x3ba690=new GenerateImagesResponse();return Object[_0x5f35d7(0x289)](_0x3ba690,_0x31f8cc),_0x3ba690;});}else{const _0x2da97c=generateImagesParametersToMldev(this['apiClient'],_0x511a3b);return _0x192822=formatMap(_0x22540c(0x625),_0x2da97c['_url']),_0x3e459a=_0x2da97c['_query'],delete _0x2da97c[_0x22540c(0x334)],delete _0x2da97c[_0x22540c(0xa9)],_0x179240=this[_0x22540c(0x2eb)]['request']({'path':_0x192822,'queryParams':_0x3e459a,'body':JSON['stringify'](_0x2da97c),'httpMethod':_0x22540c(0x208),'httpOptions':(_0x158569=_0x511a3b[_0x22540c(0x182)])===null||_0x158569===void 0x0?void 0x0:_0x158569[_0x22540c(0x30a)],'abortSignal':(_0x2ca344=_0x511a3b['config'])===null||_0x2ca344===void 0x0?void 0x0:_0x2ca344[_0x22540c(0x2fc)]})['then'](_0x535227=>{const _0x5eba3e=_0x22540c;return _0x535227['json']()[_0x5eba3e(0x213)](_0x3b128a=>{const _0x1cc3e8=_0x5eba3e,_0x5a3f22=_0x3b128a;return _0x5a3f22['sdkHttpResponse']={'headers':_0x535227[_0x1cc3e8(0x438)]},_0x5a3f22;});}),_0x179240[_0x22540c(0x213)](_0x50622c=>{const _0x4f4a33=_0x22540c,_0x2cf7dd=generateImagesResponseFromMldev(_0x50622c),_0x37c752=new GenerateImagesResponse();return Object[_0x4f4a33(0x289)](_0x37c752,_0x2cf7dd),_0x37c752;});}}async[a2_0x8e922d(0x613)](_0x891e46){const _0x497735=a2_0x8e922d;var _0x18b4c1,_0x578ba7;let _0x3d6966,_0x5ae5b0='',_0x462438={};if(this[_0x497735(0x2eb)][_0x497735(0x4d0)]()){const _0x4225ec=editImageParametersInternalToVertex(this[_0x497735(0x2eb)],_0x891e46);return _0x5ae5b0=formatMap(_0x497735(0x625),_0x4225ec[_0x497735(0x334)]),_0x462438=_0x4225ec[_0x497735(0xa9)],delete _0x4225ec[_0x497735(0x334)],delete _0x4225ec[_0x497735(0xa9)],_0x3d6966=this[_0x497735(0x2eb)][_0x497735(0x269)]({'path':_0x5ae5b0,'queryParams':_0x462438,'body':JSON['stringify'](_0x4225ec),'httpMethod':_0x497735(0x208),'httpOptions':(_0x18b4c1=_0x891e46[_0x497735(0x182)])===null||_0x18b4c1===void 0x0?void 0x0:_0x18b4c1[_0x497735(0x30a)],'abortSignal':(_0x578ba7=_0x891e46[_0x497735(0x182)])===null||_0x578ba7===void 0x0?void 0x0:_0x578ba7[_0x497735(0x2fc)]})[_0x497735(0x213)](_0x255d52=>{const _0x1d32a4=_0x497735;return _0x255d52[_0x1d32a4(0xdf)]()[_0x1d32a4(0x213)](_0x535ffc=>{const _0x14616c=_0x1d32a4,_0x3d002b=_0x535ffc;return _0x3d002b[_0x14616c(0x3a0)]={'headers':_0x255d52[_0x14616c(0x438)]},_0x3d002b;});}),_0x3d6966[_0x497735(0x213)](_0x482bb1=>{const _0x1a3b6c=editImageResponseFromVertex(_0x482bb1),_0x111fbc=new EditImageResponse();return Object['assign'](_0x111fbc,_0x1a3b6c),_0x111fbc;});}else throw new Error(_0x497735(0x427));}async[a2_0x8e922d(0x419)](_0x34181a){const _0x48029e=a2_0x8e922d;var _0x4dd0a7,_0x3b690e;let _0x6d50ef,_0x286420='',_0x183217={};if(this['apiClient'][_0x48029e(0x4d0)]()){const _0x2c3544=upscaleImageAPIParametersInternalToVertex(this[_0x48029e(0x2eb)],_0x34181a);return _0x286420=formatMap(_0x48029e(0x625),_0x2c3544[_0x48029e(0x334)]),_0x183217=_0x2c3544[_0x48029e(0xa9)],delete _0x2c3544[_0x48029e(0x334)],delete _0x2c3544[_0x48029e(0xa9)],_0x6d50ef=this[_0x48029e(0x2eb)][_0x48029e(0x269)]({'path':_0x286420,'queryParams':_0x183217,'body':JSON[_0x48029e(0x296)](_0x2c3544),'httpMethod':_0x48029e(0x208),'httpOptions':(_0x4dd0a7=_0x34181a[_0x48029e(0x182)])===null||_0x4dd0a7===void 0x0?void 0x0:_0x4dd0a7[_0x48029e(0x30a)],'abortSignal':(_0x3b690e=_0x34181a[_0x48029e(0x182)])===null||_0x3b690e===void 0x0?void 0x0:_0x3b690e['abortSignal']})[_0x48029e(0x213)](_0x5ca6fb=>{const _0xd3fc2c=_0x48029e;return _0x5ca6fb[_0xd3fc2c(0xdf)]()['then'](_0x3d42a4=>{const _0x580441=_0xd3fc2c,_0x1263ce=_0x3d42a4;return _0x1263ce[_0x580441(0x3a0)]={'headers':_0x5ca6fb['headers']},_0x1263ce;});}),_0x6d50ef[_0x48029e(0x213)](_0xa424e3=>{const _0x2b2c23=_0x48029e,_0x3053c5=upscaleImageResponseFromVertex(_0xa424e3),_0x3f6e61=new UpscaleImageResponse();return Object[_0x2b2c23(0x289)](_0x3f6e61,_0x3053c5),_0x3f6e61;});}else throw new Error(_0x48029e(0x427));}async[a2_0x8e922d(0x110)](_0x410b48){const _0x170add=a2_0x8e922d;var _0x3f50cd,_0x1749a5;let _0x45f323,_0x343f53='',_0x1095f6={};if(this[_0x170add(0x2eb)][_0x170add(0x4d0)]()){const _0x285e2c=recontextImageParametersToVertex(this['apiClient'],_0x410b48);return _0x343f53=formatMap(_0x170add(0x625),_0x285e2c[_0x170add(0x334)]),_0x1095f6=_0x285e2c['_query'],delete _0x285e2c[_0x170add(0x334)],delete _0x285e2c[_0x170add(0xa9)],_0x45f323=this['apiClient'][_0x170add(0x269)]({'path':_0x343f53,'queryParams':_0x1095f6,'body':JSON[_0x170add(0x296)](_0x285e2c),'httpMethod':_0x170add(0x208),'httpOptions':(_0x3f50cd=_0x410b48[_0x170add(0x182)])===null||_0x3f50cd===void 0x0?void 0x0:_0x3f50cd[_0x170add(0x30a)],'abortSignal':(_0x1749a5=_0x410b48[_0x170add(0x182)])===null||_0x1749a5===void 0x0?void 0x0:_0x1749a5['abortSignal']})['then'](_0x7a487a=>{const _0x469d8f=_0x170add;return _0x7a487a[_0x469d8f(0xdf)]();}),_0x45f323['then'](_0x624063=>{const _0x308a66=_0x170add,_0x42f41f=recontextImageResponseFromVertex(_0x624063),_0x53348e=new RecontextImageResponse();return Object[_0x308a66(0x289)](_0x53348e,_0x42f41f),_0x53348e;});}else throw new Error(_0x170add(0x427));}async[a2_0x8e922d(0x460)](_0x41976f){const _0x565ebf=a2_0x8e922d;var _0x2d6051,_0xff826d;let _0x1fe387,_0xb45b9a='',_0x2bd637={};if(this['apiClient'][_0x565ebf(0x4d0)]()){const _0x163106=segmentImageParametersToVertex(this[_0x565ebf(0x2eb)],_0x41976f);return _0xb45b9a=formatMap(_0x565ebf(0x625),_0x163106[_0x565ebf(0x334)]),_0x2bd637=_0x163106[_0x565ebf(0xa9)],delete _0x163106['_url'],delete _0x163106[_0x565ebf(0xa9)],_0x1fe387=this[_0x565ebf(0x2eb)][_0x565ebf(0x269)]({'path':_0xb45b9a,'queryParams':_0x2bd637,'body':JSON[_0x565ebf(0x296)](_0x163106),'httpMethod':'POST','httpOptions':(_0x2d6051=_0x41976f['config'])===null||_0x2d6051===void 0x0?void 0x0:_0x2d6051[_0x565ebf(0x30a)],'abortSignal':(_0xff826d=_0x41976f[_0x565ebf(0x182)])===null||_0xff826d===void 0x0?void 0x0:_0xff826d[_0x565ebf(0x2fc)]})[_0x565ebf(0x213)](_0x466c71=>{const _0x5e89e2=_0x565ebf;return _0x466c71[_0x5e89e2(0xdf)]();}),_0x1fe387['then'](_0x1686b9=>{const _0x3fb9e8=_0x565ebf,_0x935c6e=segmentImageResponseFromVertex(_0x1686b9),_0x4f3431=new SegmentImageResponse();return Object[_0x3fb9e8(0x289)](_0x4f3431,_0x935c6e),_0x4f3431;});}else throw new Error(_0x565ebf(0x427));}async[a2_0x8e922d(0x661)](_0x2c2d51){const _0x173f60=a2_0x8e922d;var _0x43a611,_0x2f488a,_0x3ec5b0,_0x1711a4;let _0x34e60c,_0x7dd324='',_0xac23ab={};if(this[_0x173f60(0x2eb)]['isVertexAI']()){const _0x2b29bd=getModelParametersToVertex(this[_0x173f60(0x2eb)],_0x2c2d51);return _0x7dd324=formatMap(_0x173f60(0x69d),_0x2b29bd[_0x173f60(0x334)]),_0xac23ab=_0x2b29bd['_query'],delete _0x2b29bd['_url'],delete _0x2b29bd['_query'],_0x34e60c=this[_0x173f60(0x2eb)][_0x173f60(0x269)]({'path':_0x7dd324,'queryParams':_0xac23ab,'body':JSON[_0x173f60(0x296)](_0x2b29bd),'httpMethod':_0x173f60(0x375),'httpOptions':(_0x43a611=_0x2c2d51[_0x173f60(0x182)])===null||_0x43a611===void 0x0?void 0x0:_0x43a611[_0x173f60(0x30a)],'abortSignal':(_0x2f488a=_0x2c2d51['config'])===null||_0x2f488a===void 0x0?void 0x0:_0x2f488a['abortSignal']})[_0x173f60(0x213)](_0x58297f=>{const _0x482019=_0x173f60;return _0x58297f[_0x482019(0xdf)]();}),_0x34e60c[_0x173f60(0x213)](_0x20a955=>{const _0x2e6c17=modelFromVertex(_0x20a955);return _0x2e6c17;});}else{const _0x41c489=getModelParametersToMldev(this['apiClient'],_0x2c2d51);return _0x7dd324=formatMap(_0x173f60(0x69d),_0x41c489[_0x173f60(0x334)]),_0xac23ab=_0x41c489['_query'],delete _0x41c489[_0x173f60(0x334)],delete _0x41c489[_0x173f60(0xa9)],_0x34e60c=this[_0x173f60(0x2eb)][_0x173f60(0x269)]({'path':_0x7dd324,'queryParams':_0xac23ab,'body':JSON[_0x173f60(0x296)](_0x41c489),'httpMethod':_0x173f60(0x375),'httpOptions':(_0x3ec5b0=_0x2c2d51[_0x173f60(0x182)])===null||_0x3ec5b0===void 0x0?void 0x0:_0x3ec5b0[_0x173f60(0x30a)],'abortSignal':(_0x1711a4=_0x2c2d51['config'])===null||_0x1711a4===void 0x0?void 0x0:_0x1711a4[_0x173f60(0x2fc)]})['then'](_0x3f81c9=>{const _0x2f8a4b=_0x173f60;return _0x3f81c9[_0x2f8a4b(0xdf)]();}),_0x34e60c[_0x173f60(0x213)](_0x5b29f6=>{const _0x2026fc=modelFromMldev(_0x5b29f6);return _0x2026fc;});}}async['listInternal'](_0x1c5a3f){const _0x170f03=a2_0x8e922d;var _0x29b18b,_0x166547,_0x3c9ae1,_0x20557a;let _0x3b20d9,_0x6ea0e3='',_0x3390ee={};if(this[_0x170f03(0x2eb)][_0x170f03(0x4d0)]()){const _0xe93c8=listModelsParametersToVertex(this['apiClient'],_0x1c5a3f);return _0x6ea0e3=formatMap(_0x170f03(0x34b),_0xe93c8[_0x170f03(0x334)]),_0x3390ee=_0xe93c8[_0x170f03(0xa9)],delete _0xe93c8[_0x170f03(0x334)],delete _0xe93c8['_query'],_0x3b20d9=this[_0x170f03(0x2eb)][_0x170f03(0x269)]({'path':_0x6ea0e3,'queryParams':_0x3390ee,'body':JSON[_0x170f03(0x296)](_0xe93c8),'httpMethod':_0x170f03(0x375),'httpOptions':(_0x29b18b=_0x1c5a3f[_0x170f03(0x182)])===null||_0x29b18b===void 0x0?void 0x0:_0x29b18b[_0x170f03(0x30a)],'abortSignal':(_0x166547=_0x1c5a3f[_0x170f03(0x182)])===null||_0x166547===void 0x0?void 0x0:_0x166547[_0x170f03(0x2fc)]})[_0x170f03(0x213)](_0x2bb3bc=>{const _0x132209=_0x170f03;return _0x2bb3bc[_0x132209(0xdf)]()[_0x132209(0x213)](_0x5a2ed6=>{const _0x5949f8=_0x132209,_0x13bbc6=_0x5a2ed6;return _0x13bbc6[_0x5949f8(0x3a0)]={'headers':_0x2bb3bc[_0x5949f8(0x438)]},_0x13bbc6;});}),_0x3b20d9[_0x170f03(0x213)](_0x278058=>{const _0x47d283=listModelsResponseFromVertex(_0x278058),_0x3add23=new ListModelsResponse();return Object['assign'](_0x3add23,_0x47d283),_0x3add23;});}else{const _0x372435=listModelsParametersToMldev(this['apiClient'],_0x1c5a3f);return _0x6ea0e3=formatMap(_0x170f03(0x34b),_0x372435[_0x170f03(0x334)]),_0x3390ee=_0x372435[_0x170f03(0xa9)],delete _0x372435[_0x170f03(0x334)],delete _0x372435[_0x170f03(0xa9)],_0x3b20d9=this[_0x170f03(0x2eb)]['request']({'path':_0x6ea0e3,'queryParams':_0x3390ee,'body':JSON[_0x170f03(0x296)](_0x372435),'httpMethod':_0x170f03(0x375),'httpOptions':(_0x3c9ae1=_0x1c5a3f[_0x170f03(0x182)])===null||_0x3c9ae1===void 0x0?void 0x0:_0x3c9ae1[_0x170f03(0x30a)],'abortSignal':(_0x20557a=_0x1c5a3f[_0x170f03(0x182)])===null||_0x20557a===void 0x0?void 0x0:_0x20557a[_0x170f03(0x2fc)]})[_0x170f03(0x213)](_0x26e9b8=>{const _0x504b46=_0x170f03;return _0x26e9b8[_0x504b46(0xdf)]()[_0x504b46(0x213)](_0x347f9d=>{const _0x1e215e=_0x504b46,_0x1e34fd=_0x347f9d;return _0x1e34fd['sdkHttpResponse']={'headers':_0x26e9b8[_0x1e215e(0x438)]},_0x1e34fd;});}),_0x3b20d9[_0x170f03(0x213)](_0x5924ec=>{const _0x277e95=_0x170f03,_0x41bf67=listModelsResponseFromMldev(_0x5924ec),_0x407f92=new ListModelsResponse();return Object[_0x277e95(0x289)](_0x407f92,_0x41bf67),_0x407f92;});}}async[a2_0x8e922d(0x130)](_0x56d733){const _0x8ccdcd=a2_0x8e922d;var _0x30194b,_0x4d07e1,_0x2630b8,_0x9497c9;let _0x2c436d,_0x13f48a='',_0x3c60ca={};if(this[_0x8ccdcd(0x2eb)]['isVertexAI']()){const _0x2180b9=updateModelParametersToVertex(this[_0x8ccdcd(0x2eb)],_0x56d733);return _0x13f48a=formatMap(_0x8ccdcd(0x5e3),_0x2180b9['_url']),_0x3c60ca=_0x2180b9[_0x8ccdcd(0xa9)],delete _0x2180b9[_0x8ccdcd(0x334)],delete _0x2180b9['_query'],_0x2c436d=this[_0x8ccdcd(0x2eb)][_0x8ccdcd(0x269)]({'path':_0x13f48a,'queryParams':_0x3c60ca,'body':JSON['stringify'](_0x2180b9),'httpMethod':_0x8ccdcd(0x227),'httpOptions':(_0x30194b=_0x56d733['config'])===null||_0x30194b===void 0x0?void 0x0:_0x30194b[_0x8ccdcd(0x30a)],'abortSignal':(_0x4d07e1=_0x56d733['config'])===null||_0x4d07e1===void 0x0?void 0x0:_0x4d07e1[_0x8ccdcd(0x2fc)]})[_0x8ccdcd(0x213)](_0xf2f4cc=>{const _0x2ebda2=_0x8ccdcd;return _0xf2f4cc[_0x2ebda2(0xdf)]();}),_0x2c436d[_0x8ccdcd(0x213)](_0x4cec79=>{const _0x701062=modelFromVertex(_0x4cec79);return _0x701062;});}else{const _0x24c8a4=updateModelParametersToMldev(this[_0x8ccdcd(0x2eb)],_0x56d733);return _0x13f48a=formatMap(_0x8ccdcd(0x69d),_0x24c8a4['_url']),_0x3c60ca=_0x24c8a4[_0x8ccdcd(0xa9)],delete _0x24c8a4[_0x8ccdcd(0x334)],delete _0x24c8a4[_0x8ccdcd(0xa9)],_0x2c436d=this[_0x8ccdcd(0x2eb)][_0x8ccdcd(0x269)]({'path':_0x13f48a,'queryParams':_0x3c60ca,'body':JSON[_0x8ccdcd(0x296)](_0x24c8a4),'httpMethod':_0x8ccdcd(0x227),'httpOptions':(_0x2630b8=_0x56d733[_0x8ccdcd(0x182)])===null||_0x2630b8===void 0x0?void 0x0:_0x2630b8[_0x8ccdcd(0x30a)],'abortSignal':(_0x9497c9=_0x56d733['config'])===null||_0x9497c9===void 0x0?void 0x0:_0x9497c9[_0x8ccdcd(0x2fc)]})[_0x8ccdcd(0x213)](_0x2d8412=>{const _0x40601a=_0x8ccdcd;return _0x2d8412[_0x40601a(0xdf)]();}),_0x2c436d['then'](_0x219b65=>{const _0x266f71=modelFromMldev(_0x219b65);return _0x266f71;});}}async['delete'](_0x5512e9){const _0x1456ea=a2_0x8e922d;var _0x4b38a2,_0x490d2a,_0x408dc1,_0x62add4;let _0x5b7362,_0x48c8ad='',_0x1fcc8f={};if(this[_0x1456ea(0x2eb)][_0x1456ea(0x4d0)]()){const _0x465c3a=deleteModelParametersToVertex(this[_0x1456ea(0x2eb)],_0x5512e9);return _0x48c8ad=formatMap(_0x1456ea(0x69d),_0x465c3a['_url']),_0x1fcc8f=_0x465c3a[_0x1456ea(0xa9)],delete _0x465c3a[_0x1456ea(0x334)],delete _0x465c3a[_0x1456ea(0xa9)],_0x5b7362=this[_0x1456ea(0x2eb)][_0x1456ea(0x269)]({'path':_0x48c8ad,'queryParams':_0x1fcc8f,'body':JSON[_0x1456ea(0x296)](_0x465c3a),'httpMethod':_0x1456ea(0x596),'httpOptions':(_0x4b38a2=_0x5512e9[_0x1456ea(0x182)])===null||_0x4b38a2===void 0x0?void 0x0:_0x4b38a2[_0x1456ea(0x30a)],'abortSignal':(_0x490d2a=_0x5512e9[_0x1456ea(0x182)])===null||_0x490d2a===void 0x0?void 0x0:_0x490d2a[_0x1456ea(0x2fc)]})['then'](_0x400e6a=>{const _0x331614=_0x1456ea;return _0x400e6a['json']()[_0x331614(0x213)](_0x8e85bd=>{const _0x33648c=_0x331614,_0x18b3f0=_0x8e85bd;return _0x18b3f0[_0x33648c(0x3a0)]={'headers':_0x400e6a[_0x33648c(0x438)]},_0x18b3f0;});}),_0x5b7362[_0x1456ea(0x213)](_0x31059d=>{const _0x5c1eff=deleteModelResponseFromVertex(_0x31059d),_0x4ea314=new DeleteModelResponse();return Object['assign'](_0x4ea314,_0x5c1eff),_0x4ea314;});}else{const _0x22654c=deleteModelParametersToMldev(this[_0x1456ea(0x2eb)],_0x5512e9);return _0x48c8ad=formatMap(_0x1456ea(0x69d),_0x22654c[_0x1456ea(0x334)]),_0x1fcc8f=_0x22654c['_query'],delete _0x22654c[_0x1456ea(0x334)],delete _0x22654c['_query'],_0x5b7362=this[_0x1456ea(0x2eb)][_0x1456ea(0x269)]({'path':_0x48c8ad,'queryParams':_0x1fcc8f,'body':JSON[_0x1456ea(0x296)](_0x22654c),'httpMethod':_0x1456ea(0x596),'httpOptions':(_0x408dc1=_0x5512e9[_0x1456ea(0x182)])===null||_0x408dc1===void 0x0?void 0x0:_0x408dc1[_0x1456ea(0x30a)],'abortSignal':(_0x62add4=_0x5512e9[_0x1456ea(0x182)])===null||_0x62add4===void 0x0?void 0x0:_0x62add4[_0x1456ea(0x2fc)]})[_0x1456ea(0x213)](_0x4e2b3b=>{const _0x58f66b=_0x1456ea;return _0x4e2b3b['json']()[_0x58f66b(0x213)](_0x478861=>{const _0x35e9b1=_0x58f66b,_0x4820c1=_0x478861;return _0x4820c1[_0x35e9b1(0x3a0)]={'headers':_0x4e2b3b['headers']},_0x4820c1;});}),_0x5b7362['then'](_0xa48bf8=>{const _0x41d798=_0x1456ea,_0x2b94c6=deleteModelResponseFromMldev(_0xa48bf8),_0x348cbb=new DeleteModelResponse();return Object[_0x41d798(0x289)](_0x348cbb,_0x2b94c6),_0x348cbb;});}}async[a2_0x8e922d(0x616)](_0x404568){const _0x4c00dc=a2_0x8e922d;var _0x5db66d,_0x1c963b,_0xe1723b,_0x41f653;let _0x565e0c,_0x34dfee='',_0xa024f4={};if(this[_0x4c00dc(0x2eb)][_0x4c00dc(0x4d0)]()){const _0x234630=countTokensParametersToVertex(this[_0x4c00dc(0x2eb)],_0x404568);return _0x34dfee=formatMap(_0x4c00dc(0x2af),_0x234630[_0x4c00dc(0x334)]),_0xa024f4=_0x234630[_0x4c00dc(0xa9)],delete _0x234630[_0x4c00dc(0x334)],delete _0x234630[_0x4c00dc(0xa9)],_0x565e0c=this['apiClient']['request']({'path':_0x34dfee,'queryParams':_0xa024f4,'body':JSON[_0x4c00dc(0x296)](_0x234630),'httpMethod':_0x4c00dc(0x208),'httpOptions':(_0x5db66d=_0x404568[_0x4c00dc(0x182)])===null||_0x5db66d===void 0x0?void 0x0:_0x5db66d[_0x4c00dc(0x30a)],'abortSignal':(_0x1c963b=_0x404568[_0x4c00dc(0x182)])===null||_0x1c963b===void 0x0?void 0x0:_0x1c963b[_0x4c00dc(0x2fc)]})['then'](_0x445092=>{const _0x5b1103=_0x4c00dc;return _0x445092[_0x5b1103(0xdf)]()['then'](_0x66fa9d=>{const _0x144689=_0x5b1103,_0x11612e=_0x66fa9d;return _0x11612e['sdkHttpResponse']={'headers':_0x445092[_0x144689(0x438)]},_0x11612e;});}),_0x565e0c['then'](_0x3fd08a=>{const _0x4605a9=_0x4c00dc,_0x277079=countTokensResponseFromVertex(_0x3fd08a),_0x44f6d1=new CountTokensResponse();return Object[_0x4605a9(0x289)](_0x44f6d1,_0x277079),_0x44f6d1;});}else{const _0x5aa9a7=countTokensParametersToMldev(this[_0x4c00dc(0x2eb)],_0x404568);return _0x34dfee=formatMap('{model}:countTokens',_0x5aa9a7['_url']),_0xa024f4=_0x5aa9a7[_0x4c00dc(0xa9)],delete _0x5aa9a7[_0x4c00dc(0x334)],delete _0x5aa9a7[_0x4c00dc(0xa9)],_0x565e0c=this[_0x4c00dc(0x2eb)][_0x4c00dc(0x269)]({'path':_0x34dfee,'queryParams':_0xa024f4,'body':JSON[_0x4c00dc(0x296)](_0x5aa9a7),'httpMethod':_0x4c00dc(0x208),'httpOptions':(_0xe1723b=_0x404568[_0x4c00dc(0x182)])===null||_0xe1723b===void 0x0?void 0x0:_0xe1723b[_0x4c00dc(0x30a)],'abortSignal':(_0x41f653=_0x404568[_0x4c00dc(0x182)])===null||_0x41f653===void 0x0?void 0x0:_0x41f653[_0x4c00dc(0x2fc)]})['then'](_0x179f3b=>{const _0x2d063b=_0x4c00dc;return _0x179f3b[_0x2d063b(0xdf)]()[_0x2d063b(0x213)](_0x4504ba=>{const _0x36bc95=_0x2d063b,_0x429467=_0x4504ba;return _0x429467['sdkHttpResponse']={'headers':_0x179f3b[_0x36bc95(0x438)]},_0x429467;});}),_0x565e0c[_0x4c00dc(0x213)](_0x6ca8df=>{const _0x396445=_0x4c00dc,_0x480548=countTokensResponseFromMldev(_0x6ca8df),_0x35aa88=new CountTokensResponse();return Object[_0x396445(0x289)](_0x35aa88,_0x480548),_0x35aa88;});}}async[a2_0x8e922d(0x499)](_0x53c211){const _0x45839e=a2_0x8e922d;var _0x16574a,_0xf3d5ca;let _0x2d1bd9,_0x547713='',_0x586063={};if(this[_0x45839e(0x2eb)]['isVertexAI']()){const _0x338544=computeTokensParametersToVertex(this[_0x45839e(0x2eb)],_0x53c211);return _0x547713=formatMap('{model}:computeTokens',_0x338544[_0x45839e(0x334)]),_0x586063=_0x338544[_0x45839e(0xa9)],delete _0x338544[_0x45839e(0x334)],delete _0x338544[_0x45839e(0xa9)],_0x2d1bd9=this[_0x45839e(0x2eb)][_0x45839e(0x269)]({'path':_0x547713,'queryParams':_0x586063,'body':JSON[_0x45839e(0x296)](_0x338544),'httpMethod':'POST','httpOptions':(_0x16574a=_0x53c211[_0x45839e(0x182)])===null||_0x16574a===void 0x0?void 0x0:_0x16574a[_0x45839e(0x30a)],'abortSignal':(_0xf3d5ca=_0x53c211[_0x45839e(0x182)])===null||_0xf3d5ca===void 0x0?void 0x0:_0xf3d5ca['abortSignal']})[_0x45839e(0x213)](_0x1ab47d=>{const _0x5801dc=_0x45839e;return _0x1ab47d[_0x5801dc(0xdf)]()[_0x5801dc(0x213)](_0x297aec=>{const _0x4f4c2a=_0x5801dc,_0x1fc911=_0x297aec;return _0x1fc911[_0x4f4c2a(0x3a0)]={'headers':_0x1ab47d[_0x4f4c2a(0x438)]},_0x1fc911;});}),_0x2d1bd9['then'](_0x59f575=>{const _0x481b72=_0x45839e,_0x5ceaf6=computeTokensResponseFromVertex(_0x59f575),_0x5ba194=new ComputeTokensResponse();return Object[_0x481b72(0x289)](_0x5ba194,_0x5ceaf6),_0x5ba194;});}else throw new Error(_0x45839e(0x427));}async['generateVideosInternal'](_0xe368ae){const _0xa371ed=a2_0x8e922d;var _0x253bc8,_0x1240a7,_0x3e17f6,_0x574727;let _0x40b3de,_0x515969='',_0x3bbdbf={};if(this[_0xa371ed(0x2eb)]['isVertexAI']()){const _0x4cf6b2=generateVideosParametersToVertex(this['apiClient'],_0xe368ae);return _0x515969=formatMap(_0xa371ed(0x2bc),_0x4cf6b2[_0xa371ed(0x334)]),_0x3bbdbf=_0x4cf6b2[_0xa371ed(0xa9)],delete _0x4cf6b2['_url'],delete _0x4cf6b2[_0xa371ed(0xa9)],_0x40b3de=this[_0xa371ed(0x2eb)][_0xa371ed(0x269)]({'path':_0x515969,'queryParams':_0x3bbdbf,'body':JSON[_0xa371ed(0x296)](_0x4cf6b2),'httpMethod':_0xa371ed(0x208),'httpOptions':(_0x253bc8=_0xe368ae[_0xa371ed(0x182)])===null||_0x253bc8===void 0x0?void 0x0:_0x253bc8['httpOptions'],'abortSignal':(_0x1240a7=_0xe368ae[_0xa371ed(0x182)])===null||_0x1240a7===void 0x0?void 0x0:_0x1240a7[_0xa371ed(0x2fc)]})[_0xa371ed(0x213)](_0x41d81e=>{const _0x2bd070=_0xa371ed;return _0x41d81e[_0x2bd070(0xdf)]();}),_0x40b3de[_0xa371ed(0x213)](_0x560211=>{const _0x278ce5=_0xa371ed,_0x5bf480=generateVideosOperationFromVertex(_0x560211),_0x3b5f40=new GenerateVideosOperation();return Object[_0x278ce5(0x289)](_0x3b5f40,_0x5bf480),_0x3b5f40;});}else{const _0x51f18f=generateVideosParametersToMldev(this['apiClient'],_0xe368ae);return _0x515969=formatMap('{model}:predictLongRunning',_0x51f18f[_0xa371ed(0x334)]),_0x3bbdbf=_0x51f18f[_0xa371ed(0xa9)],delete _0x51f18f[_0xa371ed(0x334)],delete _0x51f18f[_0xa371ed(0xa9)],_0x40b3de=this[_0xa371ed(0x2eb)]['request']({'path':_0x515969,'queryParams':_0x3bbdbf,'body':JSON['stringify'](_0x51f18f),'httpMethod':_0xa371ed(0x208),'httpOptions':(_0x3e17f6=_0xe368ae['config'])===null||_0x3e17f6===void 0x0?void 0x0:_0x3e17f6[_0xa371ed(0x30a)],'abortSignal':(_0x574727=_0xe368ae[_0xa371ed(0x182)])===null||_0x574727===void 0x0?void 0x0:_0x574727[_0xa371ed(0x2fc)]})['then'](_0x16e0f1=>{const _0x2be939=_0xa371ed;return _0x16e0f1[_0x2be939(0xdf)]();}),_0x40b3de[_0xa371ed(0x213)](_0x40f26a=>{const _0x416d3a=_0xa371ed,_0x347ac8=generateVideosOperationFromMldev(_0x40f26a),_0x46d80b=new GenerateVideosOperation();return Object[_0x416d3a(0x289)](_0x46d80b,_0x347ac8),_0x46d80b;});}}}/**
|
|
122
|
+
* @license
|
|
123
|
+
* Copyright 2025 Google LLC
|
|
124
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
125
|
+
*/
|
|
126
|
+
class Operations extends BaseModule{constructor(_0x13f8e8){const _0x33c112=a2_0x8e922d;super(),this[_0x33c112(0x2eb)]=_0x13f8e8;}async['getVideosOperation'](_0x22010c){const _0x4ac38a=a2_0x8e922d,_0x5b3a82=_0x22010c['operation'],_0x386ae1=_0x22010c[_0x4ac38a(0x182)];if(_0x5b3a82[_0x4ac38a(0x206)]===undefined||_0x5b3a82[_0x4ac38a(0x206)]==='')throw new Error(_0x4ac38a(0x137));if(this['apiClient']['isVertexAI']()){const _0x377dd6=_0x5b3a82['name'][_0x4ac38a(0x5f3)]('/operations/')[0x0];let _0x42bba0=undefined;_0x386ae1&&_0x4ac38a(0x30a)in _0x386ae1&&(_0x42bba0=_0x386ae1['httpOptions']);const _0x1bfe9d=await this['fetchPredictVideosOperationInternal']({'operationName':_0x5b3a82['name'],'resourceName':_0x377dd6,'config':{'httpOptions':_0x42bba0}});return _0x5b3a82[_0x4ac38a(0x423)]({'apiResponse':_0x1bfe9d,'_isVertexAI':!![]});}else{const _0x4a2b76=await this[_0x4ac38a(0x248)]({'operationName':_0x5b3a82[_0x4ac38a(0x206)],'config':_0x386ae1});return _0x5b3a82[_0x4ac38a(0x423)]({'apiResponse':_0x4a2b76,'_isVertexAI':![]});}}async[a2_0x8e922d(0x661)](_0x5d253b){const _0x211687=a2_0x8e922d,_0x1b11a7=_0x5d253b['operation'],_0xdc466=_0x5d253b['config'];if(_0x1b11a7[_0x211687(0x206)]===undefined||_0x1b11a7[_0x211687(0x206)]==='')throw new Error(_0x211687(0x137));if(this[_0x211687(0x2eb)]['isVertexAI']()){const _0x44ad33=_0x1b11a7[_0x211687(0x206)][_0x211687(0x5f3)](_0x211687(0x1b3))[0x0];let _0x3909ef=undefined;_0xdc466&&'httpOptions'in _0xdc466&&(_0x3909ef=_0xdc466['httpOptions']);const _0xcdc2a6=await this[_0x211687(0x312)]({'operationName':_0x1b11a7[_0x211687(0x206)],'resourceName':_0x44ad33,'config':{'httpOptions':_0x3909ef}});return _0x1b11a7[_0x211687(0x423)]({'apiResponse':_0xcdc2a6,'_isVertexAI':!![]});}else{const _0x4e24b2=await this[_0x211687(0x248)]({'operationName':_0x1b11a7[_0x211687(0x206)],'config':_0xdc466});return _0x1b11a7[_0x211687(0x423)]({'apiResponse':_0x4e24b2,'_isVertexAI':![]});}}async[a2_0x8e922d(0x248)](_0x51407d){const _0x2497fe=a2_0x8e922d;var _0x160a43,_0x12751b,_0x5d70de,_0x295358;let _0x438738,_0x1473d4='',_0x5eaf1f={};if(this[_0x2497fe(0x2eb)][_0x2497fe(0x4d0)]()){const _0x217492=getOperationParametersToVertex(_0x51407d);return _0x1473d4=formatMap(_0x2497fe(0x442),_0x217492[_0x2497fe(0x334)]),_0x5eaf1f=_0x217492[_0x2497fe(0xa9)],delete _0x217492['_url'],delete _0x217492['_query'],_0x438738=this[_0x2497fe(0x2eb)][_0x2497fe(0x269)]({'path':_0x1473d4,'queryParams':_0x5eaf1f,'body':JSON[_0x2497fe(0x296)](_0x217492),'httpMethod':_0x2497fe(0x375),'httpOptions':(_0x160a43=_0x51407d[_0x2497fe(0x182)])===null||_0x160a43===void 0x0?void 0x0:_0x160a43['httpOptions'],'abortSignal':(_0x12751b=_0x51407d[_0x2497fe(0x182)])===null||_0x12751b===void 0x0?void 0x0:_0x12751b[_0x2497fe(0x2fc)]})[_0x2497fe(0x213)](_0x5a6334=>{return _0x5a6334['json']();}),_0x438738;}else{const _0x5cd376=getOperationParametersToMldev(_0x51407d);return _0x1473d4=formatMap(_0x2497fe(0x442),_0x5cd376[_0x2497fe(0x334)]),_0x5eaf1f=_0x5cd376[_0x2497fe(0xa9)],delete _0x5cd376[_0x2497fe(0x334)],delete _0x5cd376[_0x2497fe(0xa9)],_0x438738=this[_0x2497fe(0x2eb)][_0x2497fe(0x269)]({'path':_0x1473d4,'queryParams':_0x5eaf1f,'body':JSON[_0x2497fe(0x296)](_0x5cd376),'httpMethod':_0x2497fe(0x375),'httpOptions':(_0x5d70de=_0x51407d[_0x2497fe(0x182)])===null||_0x5d70de===void 0x0?void 0x0:_0x5d70de['httpOptions'],'abortSignal':(_0x295358=_0x51407d['config'])===null||_0x295358===void 0x0?void 0x0:_0x295358[_0x2497fe(0x2fc)]})[_0x2497fe(0x213)](_0x1f4060=>{return _0x1f4060['json']();}),_0x438738;}}async['fetchPredictVideosOperationInternal'](_0x3865b9){const _0x31dd0f=a2_0x8e922d;var _0x45c8af,_0x440433;let _0x15f51e,_0x5f4b22='',_0x337b27={};if(this[_0x31dd0f(0x2eb)][_0x31dd0f(0x4d0)]()){const _0x201a76=fetchPredictOperationParametersToVertex(_0x3865b9);return _0x5f4b22=formatMap('{resourceName}:fetchPredictOperation',_0x201a76[_0x31dd0f(0x334)]),_0x337b27=_0x201a76['_query'],delete _0x201a76[_0x31dd0f(0x334)],delete _0x201a76['_query'],_0x15f51e=this[_0x31dd0f(0x2eb)][_0x31dd0f(0x269)]({'path':_0x5f4b22,'queryParams':_0x337b27,'body':JSON[_0x31dd0f(0x296)](_0x201a76),'httpMethod':_0x31dd0f(0x208),'httpOptions':(_0x45c8af=_0x3865b9[_0x31dd0f(0x182)])===null||_0x45c8af===void 0x0?void 0x0:_0x45c8af[_0x31dd0f(0x30a)],'abortSignal':(_0x440433=_0x3865b9[_0x31dd0f(0x182)])===null||_0x440433===void 0x0?void 0x0:_0x440433['abortSignal']})[_0x31dd0f(0x213)](_0x5a994a=>{const _0x55345a=_0x31dd0f;return _0x5a994a[_0x55345a(0xdf)]();}),_0x15f51e;}else throw new Error(_0x31dd0f(0x427));}}/**
|
|
127
|
+
* @license
|
|
128
|
+
* Copyright 2025 Google LLC
|
|
129
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
130
|
+
*/
|
|
131
|
+
function blobToMldev(_0x48eb6d){const _0x454b7b=a2_0x8e922d,_0x246ffc={},_0x27843f=getValueByPath(_0x48eb6d,['data']);_0x27843f!=null&&setValueByPath(_0x246ffc,[_0x454b7b(0x529)],_0x27843f);if(getValueByPath(_0x48eb6d,[_0x454b7b(0x1c2)])!==undefined)throw new Error(_0x454b7b(0x5d8));const _0x21c2d4=getValueByPath(_0x48eb6d,[_0x454b7b(0x3c0)]);return _0x21c2d4!=null&&setValueByPath(_0x246ffc,[_0x454b7b(0x3c0)],_0x21c2d4),_0x246ffc;}function contentToMldev(_0x362e47){const _0x56250d=a2_0x8e922d,_0x1f1062={},_0x3253eb=getValueByPath(_0x362e47,[_0x56250d(0x694)]);if(_0x3253eb!=null){let _0x1e5dcd=_0x3253eb;Array[_0x56250d(0x266)](_0x1e5dcd)&&(_0x1e5dcd=_0x1e5dcd['map'](_0x4ba643=>{return partToMldev(_0x4ba643);})),setValueByPath(_0x1f1062,[_0x56250d(0x694)],_0x1e5dcd);}const _0x2c1f53=getValueByPath(_0x362e47,['role']);return _0x2c1f53!=null&&setValueByPath(_0x1f1062,[_0x56250d(0x31e)],_0x2c1f53),_0x1f1062;}function createAuthTokenConfigToMldev(_0x46b658,_0x5aff34,_0x29e810){const _0x2100e5=a2_0x8e922d,_0x1a5cba={},_0x3e8261=getValueByPath(_0x5aff34,[_0x2100e5(0x5f0)]);_0x29e810!==undefined&&_0x3e8261!=null&&setValueByPath(_0x29e810,[_0x2100e5(0x5f0)],_0x3e8261);const _0xffc92d=getValueByPath(_0x5aff34,[_0x2100e5(0xbb)]);_0x29e810!==undefined&&_0xffc92d!=null&&setValueByPath(_0x29e810,[_0x2100e5(0xbb)],_0xffc92d);const _0x3988c8=getValueByPath(_0x5aff34,[_0x2100e5(0x2e3)]);_0x29e810!==undefined&&_0x3988c8!=null&&setValueByPath(_0x29e810,[_0x2100e5(0x2e3)],_0x3988c8);const _0x2dc257=getValueByPath(_0x5aff34,[_0x2100e5(0x253)]);_0x29e810!==undefined&&_0x2dc257!=null&&setValueByPath(_0x29e810,[_0x2100e5(0x10e)],liveConnectConstraintsToMldev(_0x46b658,_0x2dc257));const _0x4f7d44=getValueByPath(_0x5aff34,['lockAdditionalFields']);return _0x29e810!==undefined&&_0x4f7d44!=null&&setValueByPath(_0x29e810,[_0x2100e5(0x4ec)],_0x4f7d44),_0x1a5cba;}function createAuthTokenParametersToMldev(_0x1ef734,_0x4cd93f){const _0x3a459c=a2_0x8e922d,_0x18a270={},_0x22d712=getValueByPath(_0x4cd93f,[_0x3a459c(0x182)]);return _0x22d712!=null&&setValueByPath(_0x18a270,[_0x3a459c(0x182)],createAuthTokenConfigToMldev(_0x1ef734,_0x22d712,_0x18a270)),_0x18a270;}function fileDataToMldev(_0x242a03){const _0x33f343=a2_0x8e922d,_0x14379a={};if(getValueByPath(_0x242a03,['displayName'])!==undefined)throw new Error(_0x33f343(0x5d8));const _0x3220d6=getValueByPath(_0x242a03,[_0x33f343(0x3d0)]);_0x3220d6!=null&&setValueByPath(_0x14379a,[_0x33f343(0x3d0)],_0x3220d6);const _0x134058=getValueByPath(_0x242a03,['mimeType']);return _0x134058!=null&&setValueByPath(_0x14379a,[_0x33f343(0x3c0)],_0x134058),_0x14379a;}function functionCallToMldev(_0x117fc9){const _0x5a47f4=a2_0x8e922d,_0x271759={},_0x48ffc7=getValueByPath(_0x117fc9,['id']);_0x48ffc7!=null&&setValueByPath(_0x271759,['id'],_0x48ffc7);const _0x41ea1f=getValueByPath(_0x117fc9,['args']);_0x41ea1f!=null&&setValueByPath(_0x271759,[_0x5a47f4(0x122)],_0x41ea1f);const _0x19be72=getValueByPath(_0x117fc9,['name']);_0x19be72!=null&&setValueByPath(_0x271759,['name'],_0x19be72);if(getValueByPath(_0x117fc9,['partialArgs'])!==undefined)throw new Error(_0x5a47f4(0x493));if(getValueByPath(_0x117fc9,['willContinue'])!==undefined)throw new Error('willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x271759;}function googleMapsToMldev(_0x22eb1a){const _0xb16144=a2_0x8e922d,_0x52f4b6={};if(getValueByPath(_0x22eb1a,[_0xb16144(0x44d)])!==undefined)throw new Error('authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x173952=getValueByPath(_0x22eb1a,['enableWidget']);return _0x173952!=null&&setValueByPath(_0x52f4b6,[_0xb16144(0x38f)],_0x173952),_0x52f4b6;}function googleSearchToMldev(_0x12b805){const _0xcd927b=a2_0x8e922d,_0x2ba06c={};if(getValueByPath(_0x12b805,[_0xcd927b(0x65d)])!==undefined)throw new Error(_0xcd927b(0x496));if(getValueByPath(_0x12b805,[_0xcd927b(0x237)])!==undefined)throw new Error('blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x394ce3=getValueByPath(_0x12b805,[_0xcd927b(0x164)]);return _0x394ce3!=null&&setValueByPath(_0x2ba06c,[_0xcd927b(0x164)],_0x394ce3),_0x2ba06c;}function liveConnectConfigToMldev(_0x207063,_0x5c4835){const _0x2da0a8=a2_0x8e922d,_0x5e26f5={},_0x1c72fe=getValueByPath(_0x207063,[_0x2da0a8(0x558)]);_0x5c4835!==undefined&&_0x1c72fe!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558)],_0x1c72fe);const _0x15cf63=getValueByPath(_0x207063,[_0x2da0a8(0x2ee)]);_0x5c4835!==undefined&&_0x15cf63!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),_0x2da0a8(0x2ee)],_0x15cf63);const _0x2a7761=getValueByPath(_0x207063,[_0x2da0a8(0x1e3)]);_0x5c4835!==undefined&&_0x2a7761!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),'generationConfig','temperature'],_0x2a7761);const _0x3ce9d1=getValueByPath(_0x207063,['topP']);_0x5c4835!==undefined&&_0x3ce9d1!=null&&setValueByPath(_0x5c4835,['setup',_0x2da0a8(0x558),_0x2da0a8(0x159)],_0x3ce9d1);const _0x4114f2=getValueByPath(_0x207063,['topK']);_0x5c4835!==undefined&&_0x4114f2!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),_0x2da0a8(0x411)],_0x4114f2);const _0x42a071=getValueByPath(_0x207063,[_0x2da0a8(0x3fc)]);_0x5c4835!==undefined&&_0x42a071!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),_0x2da0a8(0x3fc)],_0x42a071);const _0x2eb973=getValueByPath(_0x207063,[_0x2da0a8(0x314)]);_0x5c4835!==undefined&&_0x2eb973!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),'mediaResolution'],_0x2eb973);const _0x46f370=getValueByPath(_0x207063,[_0x2da0a8(0x398)]);_0x5c4835!==undefined&&_0x46f370!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),_0x2da0a8(0x398)],_0x46f370);const _0x2d46fd=getValueByPath(_0x207063,['speechConfig']);_0x5c4835!==undefined&&_0x2d46fd!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),_0x2da0a8(0xd9)],tLiveSpeechConfig(_0x2d46fd));const _0x273f22=getValueByPath(_0x207063,[_0x2da0a8(0x10b)]);_0x5c4835!==undefined&&_0x273f22!=null&&setValueByPath(_0x5c4835,['setup','generationConfig',_0x2da0a8(0x10b)],_0x273f22);const _0x187eb6=getValueByPath(_0x207063,[_0x2da0a8(0x4e6)]);_0x5c4835!==undefined&&_0x187eb6!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x558),_0x2da0a8(0x4e6)],_0x187eb6);const _0xeae9f1=getValueByPath(_0x207063,[_0x2da0a8(0xd0)]);_0x5c4835!==undefined&&_0xeae9f1!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0xd0)],contentToMldev(tContent(_0xeae9f1)));const _0x37718=getValueByPath(_0x207063,['tools']);if(_0x5c4835!==undefined&&_0x37718!=null){let _0x5c17b5=tTools(_0x37718);Array['isArray'](_0x5c17b5)&&(_0x5c17b5=_0x5c17b5[_0x2da0a8(0x4a8)](_0x8bc501=>{return toolToMldev(tTool(_0x8bc501));})),setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x376)],_0x5c17b5);}const _0x2b824e=getValueByPath(_0x207063,[_0x2da0a8(0xf0)]);_0x5c4835!==undefined&&_0x2b824e!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0xf0)],sessionResumptionConfigToMldev(_0x2b824e));const _0x2435cd=getValueByPath(_0x207063,[_0x2da0a8(0x34c)]);_0x5c4835!==undefined&&_0x2435cd!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x34c)],_0x2435cd);const _0x1b07ac=getValueByPath(_0x207063,[_0x2da0a8(0x6b0)]);_0x5c4835!==undefined&&_0x1b07ac!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x6b0)],_0x1b07ac);const _0x3f04ff=getValueByPath(_0x207063,[_0x2da0a8(0x4c8)]);_0x5c4835!==undefined&&_0x3f04ff!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),'realtimeInputConfig'],_0x3f04ff);const _0x1c45a8=getValueByPath(_0x207063,[_0x2da0a8(0x352)]);_0x5c4835!==undefined&&_0x1c45a8!=null&&setValueByPath(_0x5c4835,[_0x2da0a8(0x23d),_0x2da0a8(0x352)],_0x1c45a8);const _0x1fc2b6=getValueByPath(_0x207063,[_0x2da0a8(0x32a)]);_0x5c4835!==undefined&&_0x1fc2b6!=null&&setValueByPath(_0x5c4835,['setup',_0x2da0a8(0x32a)],_0x1fc2b6);if(getValueByPath(_0x207063,[_0x2da0a8(0x4fd)])!==undefined)throw new Error(_0x2da0a8(0x252));return _0x5e26f5;}function liveConnectConstraintsToMldev(_0x1aeb68,_0x414914){const _0x5d9858=a2_0x8e922d,_0x846381={},_0x448253=getValueByPath(_0x414914,[_0x5d9858(0x638)]);_0x448253!=null&&setValueByPath(_0x846381,[_0x5d9858(0x23d),_0x5d9858(0x638)],tModel(_0x1aeb68,_0x448253));const _0x3859f3=getValueByPath(_0x414914,[_0x5d9858(0x182)]);return _0x3859f3!=null&&setValueByPath(_0x846381,[_0x5d9858(0x182)],liveConnectConfigToMldev(_0x3859f3,_0x846381)),_0x846381;}function partToMldev(_0x170901){const _0x28f13b=a2_0x8e922d,_0x23061e={},_0x5684c8=getValueByPath(_0x170901,[_0x28f13b(0x314)]);_0x5684c8!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x314)],_0x5684c8);const _0x8bbcb5=getValueByPath(_0x170901,[_0x28f13b(0x686)]);_0x8bbcb5!=null&&setValueByPath(_0x23061e,['codeExecutionResult'],_0x8bbcb5);const _0x4786b4=getValueByPath(_0x170901,[_0x28f13b(0x295)]);_0x4786b4!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x295)],_0x4786b4);const _0xa312c4=getValueByPath(_0x170901,[_0x28f13b(0x49d)]);_0xa312c4!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x49d)],fileDataToMldev(_0xa312c4));const _0x363c28=getValueByPath(_0x170901,['functionCall']);_0x363c28!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x521)],functionCallToMldev(_0x363c28));const _0x394e47=getValueByPath(_0x170901,[_0x28f13b(0x659)]);_0x394e47!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x659)],_0x394e47);const _0x2c7e0a=getValueByPath(_0x170901,[_0x28f13b(0x54b)]);_0x2c7e0a!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x54b)],blobToMldev(_0x2c7e0a));const _0x1b04e7=getValueByPath(_0x170901,['text']);_0x1b04e7!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x1a8)],_0x1b04e7);const _0x29f495=getValueByPath(_0x170901,[_0x28f13b(0x4d4)]);_0x29f495!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x4d4)],_0x29f495);const _0x19f3f1=getValueByPath(_0x170901,[_0x28f13b(0x643)]);_0x19f3f1!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x643)],_0x19f3f1);const _0x6a5ef2=getValueByPath(_0x170901,[_0x28f13b(0x3ad)]);return _0x6a5ef2!=null&&setValueByPath(_0x23061e,[_0x28f13b(0x3ad)],_0x6a5ef2),_0x23061e;}function sessionResumptionConfigToMldev(_0x2697cd){const _0x2cae36=a2_0x8e922d,_0x53d5f0={},_0x66f3ef=getValueByPath(_0x2697cd,['handle']);_0x66f3ef!=null&&setValueByPath(_0x53d5f0,[_0x2cae36(0x5a9)],_0x66f3ef);if(getValueByPath(_0x2697cd,[_0x2cae36(0x38e)])!==undefined)throw new Error(_0x2cae36(0x44f));return _0x53d5f0;}function toolToMldev(_0x29a5e6){const _0x197eaf=a2_0x8e922d,_0x429c4c={};if(getValueByPath(_0x29a5e6,[_0x197eaf(0x113)])!==undefined)throw new Error('retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x3db813=getValueByPath(_0x29a5e6,[_0x197eaf(0x6a1)]);_0x3db813!=null&&setValueByPath(_0x429c4c,[_0x197eaf(0x6a1)],_0x3db813);const _0x12f673=getValueByPath(_0x29a5e6,[_0x197eaf(0x2c6)]);_0x12f673!=null&&setValueByPath(_0x429c4c,[_0x197eaf(0x2c6)],_0x12f673);const _0x5da0c8=getValueByPath(_0x29a5e6,[_0x197eaf(0x567)]);_0x5da0c8!=null&&setValueByPath(_0x429c4c,['codeExecution'],_0x5da0c8);if(getValueByPath(_0x29a5e6,[_0x197eaf(0x11b)])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x2d537d=getValueByPath(_0x29a5e6,[_0x197eaf(0x4e2)]);if(_0x2d537d!=null){let _0x282b1a=_0x2d537d;Array[_0x197eaf(0x266)](_0x282b1a)&&(_0x282b1a=_0x282b1a[_0x197eaf(0x4a8)](_0x10a75c=>{return _0x10a75c;})),setValueByPath(_0x429c4c,['functionDeclarations'],_0x282b1a);}const _0x169c83=getValueByPath(_0x29a5e6,[_0x197eaf(0x118)]);_0x169c83!=null&&setValueByPath(_0x429c4c,[_0x197eaf(0x118)],googleMapsToMldev(_0x169c83));const _0x1b1322=getValueByPath(_0x29a5e6,['googleSearch']);_0x1b1322!=null&&setValueByPath(_0x429c4c,[_0x197eaf(0x1f9)],googleSearchToMldev(_0x1b1322));const _0x4b1e8d=getValueByPath(_0x29a5e6,[_0x197eaf(0x151)]);_0x4b1e8d!=null&&setValueByPath(_0x429c4c,[_0x197eaf(0x151)],_0x4b1e8d);const _0x89fea1=getValueByPath(_0x29a5e6,[_0x197eaf(0x642)]);return _0x89fea1!=null&&setValueByPath(_0x429c4c,[_0x197eaf(0x642)],_0x89fea1),_0x429c4c;}/**
|
|
132
|
+
* @license
|
|
133
|
+
* Copyright 2025 Google LLC
|
|
134
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
135
|
+
*/
|
|
136
|
+
function getFieldMasks(_0xf12b2c){const _0x1a0c82=a2_0x8e922d,_0x460eb1=[];for(const _0x4cab33 in _0xf12b2c){if(Object[_0x1a0c82(0x627)]['hasOwnProperty'][_0x1a0c82(0x168)](_0xf12b2c,_0x4cab33)){const _0x5d43ca=_0xf12b2c[_0x4cab33];if(typeof _0x5d43ca===_0x1a0c82(0x515)&&_0x5d43ca!=null&&Object[_0x1a0c82(0x6b2)](_0x5d43ca)['length']>0x0){const _0x15aae9=Object['keys'](_0x5d43ca)[_0x1a0c82(0x4a8)](_0x2c9b27=>_0x4cab33+'.'+_0x2c9b27);_0x460eb1[_0x1a0c82(0x599)](..._0x15aae9);}else _0x460eb1[_0x1a0c82(0x599)](_0x4cab33);}}return _0x460eb1[_0x1a0c82(0x174)](',');}function convertBidiSetupToTokenSetup(_0x2ba540,_0x4ea225){const _0x317f52=a2_0x8e922d;let _0x48aca3=null;const _0x158b56=_0x2ba540[_0x317f52(0x10e)];if(typeof _0x158b56===_0x317f52(0x515)&&_0x158b56!==null&&_0x317f52(0x23d)in _0x158b56){const _0x7e3fc=_0x158b56['setup'];typeof _0x7e3fc===_0x317f52(0x515)&&_0x7e3fc!==null?(_0x2ba540[_0x317f52(0x10e)]=_0x7e3fc,_0x48aca3=_0x7e3fc):delete _0x2ba540['bidiGenerateContentSetup'];}else _0x158b56!==undefined&&delete _0x2ba540[_0x317f52(0x10e)];const _0x4efe51=_0x2ba540[_0x317f52(0x4ec)];if(_0x48aca3){const _0x244e78=getFieldMasks(_0x48aca3);if(Array['isArray'](_0x4ea225===null||_0x4ea225===void 0x0?void 0x0:_0x4ea225[_0x317f52(0x4f6)])&&(_0x4ea225===null||_0x4ea225===void 0x0?void 0x0:_0x4ea225['lockAdditionalFields'][_0x317f52(0x568)])===0x0)_0x244e78?_0x2ba540[_0x317f52(0x4ec)]=_0x244e78:delete _0x2ba540[_0x317f52(0x4ec)];else{if((_0x4ea225===null||_0x4ea225===void 0x0?void 0x0:_0x4ea225['lockAdditionalFields'])&&_0x4ea225[_0x317f52(0x4f6)][_0x317f52(0x568)]>0x0&&_0x4efe51!==null&&Array['isArray'](_0x4efe51)&&_0x4efe51[_0x317f52(0x568)]>0x0){const _0x2794e1=[_0x317f52(0x1e3),_0x317f52(0x411),_0x317f52(0x159),_0x317f52(0x3fc),_0x317f52(0x2ee),_0x317f52(0x398),'speechConfig'];let _0x3aa8f7=[];_0x4efe51[_0x317f52(0x568)]>0x0&&(_0x3aa8f7=_0x4efe51['map'](_0x2f32d5=>{const _0xd0c675=_0x317f52;if(_0x2794e1[_0xd0c675(0x198)](_0x2f32d5))return'generationConfig.'+_0x2f32d5;return _0x2f32d5;}));const _0x50902b=[];_0x244e78&&_0x50902b['push'](_0x244e78),_0x3aa8f7[_0x317f52(0x568)]>0x0&&_0x50902b[_0x317f52(0x599)](..._0x3aa8f7),_0x50902b[_0x317f52(0x568)]>0x0?_0x2ba540[_0x317f52(0x4ec)]=_0x50902b['join'](','):delete _0x2ba540[_0x317f52(0x4ec)];}else delete _0x2ba540['fieldMask'];}}else _0x4efe51!==null&&Array[_0x317f52(0x266)](_0x4efe51)&&_0x4efe51['length']>0x0?_0x2ba540['fieldMask']=_0x4efe51[_0x317f52(0x174)](','):delete _0x2ba540['fieldMask'];return _0x2ba540;}class Tokens extends BaseModule{constructor(_0x29aea9){const _0x39e64e=a2_0x8e922d;super(),this[_0x39e64e(0x2eb)]=_0x29aea9;}async[a2_0x8e922d(0x5da)](_0x1ae0c4){const _0xd313f=a2_0x8e922d;var _0x23c59b,_0x54f805;let _0x9d7446,_0x571319='',_0x1629af={};if(this[_0xd313f(0x2eb)][_0xd313f(0x4d0)]())throw new Error(_0xd313f(0x293));else{const _0x5a2b45=createAuthTokenParametersToMldev(this[_0xd313f(0x2eb)],_0x1ae0c4);_0x571319=formatMap(_0xd313f(0x2ed),_0x5a2b45[_0xd313f(0x334)]),_0x1629af=_0x5a2b45[_0xd313f(0xa9)],delete _0x5a2b45[_0xd313f(0x182)],delete _0x5a2b45[_0xd313f(0x334)],delete _0x5a2b45[_0xd313f(0xa9)];const _0x20f740=convertBidiSetupToTokenSetup(_0x5a2b45,_0x1ae0c4['config']);return _0x9d7446=this[_0xd313f(0x2eb)]['request']({'path':_0x571319,'queryParams':_0x1629af,'body':JSON[_0xd313f(0x296)](_0x20f740),'httpMethod':_0xd313f(0x208),'httpOptions':(_0x23c59b=_0x1ae0c4[_0xd313f(0x182)])===null||_0x23c59b===void 0x0?void 0x0:_0x23c59b[_0xd313f(0x30a)],'abortSignal':(_0x54f805=_0x1ae0c4['config'])===null||_0x54f805===void 0x0?void 0x0:_0x54f805[_0xd313f(0x2fc)]})[_0xd313f(0x213)](_0x3bd1cb=>{return _0x3bd1cb['json']();}),_0x9d7446[_0xd313f(0x213)](_0x4855e3=>{return _0x4855e3;});}}}/**
|
|
137
|
+
* @license
|
|
138
|
+
* Copyright 2025 Google LLC
|
|
139
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
140
|
+
*/
|
|
141
|
+
function deleteDocumentConfigToMldev(_0x417313,_0xaac468){const _0xe9fbb0=a2_0x8e922d,_0x1c80fc={},_0x1809d0=getValueByPath(_0x417313,[_0xe9fbb0(0x48c)]);return _0xaac468!==undefined&&_0x1809d0!=null&&setValueByPath(_0xaac468,['_query','force'],_0x1809d0),_0x1c80fc;}function deleteDocumentParametersToMldev(_0x5dee7e){const _0x4b750b=a2_0x8e922d,_0x43d28b={},_0x28e7af=getValueByPath(_0x5dee7e,[_0x4b750b(0x206)]);_0x28e7af!=null&&setValueByPath(_0x43d28b,['_url',_0x4b750b(0x206)],_0x28e7af);const _0x3b491d=getValueByPath(_0x5dee7e,[_0x4b750b(0x182)]);return _0x3b491d!=null&&deleteDocumentConfigToMldev(_0x3b491d,_0x43d28b),_0x43d28b;}function getDocumentParametersToMldev(_0x36f935){const _0x44ef6=a2_0x8e922d,_0x10e55c={},_0x327989=getValueByPath(_0x36f935,[_0x44ef6(0x206)]);return _0x327989!=null&&setValueByPath(_0x10e55c,[_0x44ef6(0x334),_0x44ef6(0x206)],_0x327989),_0x10e55c;}function listDocumentsConfigToMldev(_0x2f331e,_0x2d21a5){const _0x29fe82=a2_0x8e922d,_0x342393={},_0x24bb33=getValueByPath(_0x2f331e,[_0x29fe82(0x546)]);_0x2d21a5!==undefined&&_0x24bb33!=null&&setValueByPath(_0x2d21a5,[_0x29fe82(0xa9),_0x29fe82(0x546)],_0x24bb33);const _0x1d8bcb=getValueByPath(_0x2f331e,[_0x29fe82(0x193)]);return _0x2d21a5!==undefined&&_0x1d8bcb!=null&&setValueByPath(_0x2d21a5,[_0x29fe82(0xa9),_0x29fe82(0x193)],_0x1d8bcb),_0x342393;}function listDocumentsParametersToMldev(_0x3c6367){const _0x14f4fc=a2_0x8e922d,_0x3bd3cd={},_0x28ffe8=getValueByPath(_0x3c6367,[_0x14f4fc(0x232)]);_0x28ffe8!=null&&setValueByPath(_0x3bd3cd,[_0x14f4fc(0x334),'parent'],_0x28ffe8);const _0x592bcd=getValueByPath(_0x3c6367,[_0x14f4fc(0x182)]);return _0x592bcd!=null&&listDocumentsConfigToMldev(_0x592bcd,_0x3bd3cd),_0x3bd3cd;}function listDocumentsResponseFromMldev(_0x31f933){const _0x39aa42=a2_0x8e922d,_0x4d5550={},_0x395618=getValueByPath(_0x31f933,[_0x39aa42(0x3a0)]);_0x395618!=null&&setValueByPath(_0x4d5550,[_0x39aa42(0x3a0)],_0x395618);const _0x3d4a30=getValueByPath(_0x31f933,[_0x39aa42(0x12c)]);_0x3d4a30!=null&&setValueByPath(_0x4d5550,[_0x39aa42(0x12c)],_0x3d4a30);const _0x52a36b=getValueByPath(_0x31f933,[_0x39aa42(0x3d8)]);if(_0x52a36b!=null){let _0x1f135c=_0x52a36b;Array[_0x39aa42(0x266)](_0x1f135c)&&(_0x1f135c=_0x1f135c[_0x39aa42(0x4a8)](_0x3c64b4=>{return _0x3c64b4;})),setValueByPath(_0x4d5550,[_0x39aa42(0x3d8)],_0x1f135c);}return _0x4d5550;}/**
|
|
142
|
+
* @license
|
|
143
|
+
* Copyright 2025 Google LLC
|
|
144
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
145
|
+
*/
|
|
146
|
+
class Documents extends BaseModule{constructor(_0x3f64a9){const _0x5cd2db=a2_0x8e922d;super(),this['apiClient']=_0x3f64a9,this[_0x5cd2db(0x10c)]=async _0x55747b=>{const _0x3e4afb=_0x5cd2db;return new Pager(exports[_0x3e4afb(0x1a4)][_0x3e4afb(0x300)],_0x5dc5c8=>this[_0x3e4afb(0x456)]({'parent':_0x55747b[_0x3e4afb(0x232)],'config':_0x5dc5c8[_0x3e4afb(0x182)]}),await this[_0x3e4afb(0x456)](_0x55747b),_0x55747b);};}async[a2_0x8e922d(0x661)](_0x47335b){const _0x1612ee=a2_0x8e922d;var _0x5a9b0a,_0x5f23ca;let _0x7f106d,_0x18a11f='',_0x595c9a={};if(this['apiClient'][_0x1612ee(0x4d0)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x4825dc=getDocumentParametersToMldev(_0x47335b);return _0x18a11f=formatMap(_0x1612ee(0x69d),_0x4825dc['_url']),_0x595c9a=_0x4825dc[_0x1612ee(0xa9)],delete _0x4825dc['_url'],delete _0x4825dc[_0x1612ee(0xa9)],_0x7f106d=this['apiClient'][_0x1612ee(0x269)]({'path':_0x18a11f,'queryParams':_0x595c9a,'body':JSON['stringify'](_0x4825dc),'httpMethod':_0x1612ee(0x375),'httpOptions':(_0x5a9b0a=_0x47335b[_0x1612ee(0x182)])===null||_0x5a9b0a===void 0x0?void 0x0:_0x5a9b0a[_0x1612ee(0x30a)],'abortSignal':(_0x5f23ca=_0x47335b[_0x1612ee(0x182)])===null||_0x5f23ca===void 0x0?void 0x0:_0x5f23ca[_0x1612ee(0x2fc)]})[_0x1612ee(0x213)](_0x534c3c=>{const _0x22a5f3=_0x1612ee;return _0x534c3c[_0x22a5f3(0xdf)]();}),_0x7f106d[_0x1612ee(0x213)](_0x24e196=>{return _0x24e196;});}}async['delete'](_0x1193db){const _0x116327=a2_0x8e922d;var _0x3f7608,_0x5d2204;let _0x368cf0='',_0x479eac={};if(this[_0x116327(0x2eb)][_0x116327(0x4d0)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x2c3f65=deleteDocumentParametersToMldev(_0x1193db);_0x368cf0=formatMap('{name}',_0x2c3f65[_0x116327(0x334)]),_0x479eac=_0x2c3f65['_query'],delete _0x2c3f65[_0x116327(0x334)],delete _0x2c3f65['_query'],await this['apiClient']['request']({'path':_0x368cf0,'queryParams':_0x479eac,'body':JSON[_0x116327(0x296)](_0x2c3f65),'httpMethod':'DELETE','httpOptions':(_0x3f7608=_0x1193db['config'])===null||_0x3f7608===void 0x0?void 0x0:_0x3f7608[_0x116327(0x30a)],'abortSignal':(_0x5d2204=_0x1193db[_0x116327(0x182)])===null||_0x5d2204===void 0x0?void 0x0:_0x5d2204[_0x116327(0x2fc)]});}}async[a2_0x8e922d(0x456)](_0x36bbd7){const _0x1ff733=a2_0x8e922d;var _0x26f9cb,_0x232394;let _0x14ee1e,_0x59fd59='',_0x4b3daf={};if(this[_0x1ff733(0x2eb)]['isVertexAI']())throw new Error(_0x1ff733(0x651));else{const _0x566c37=listDocumentsParametersToMldev(_0x36bbd7);return _0x59fd59=formatMap('{parent}/documents',_0x566c37[_0x1ff733(0x334)]),_0x4b3daf=_0x566c37[_0x1ff733(0xa9)],delete _0x566c37[_0x1ff733(0x334)],delete _0x566c37[_0x1ff733(0xa9)],_0x14ee1e=this[_0x1ff733(0x2eb)]['request']({'path':_0x59fd59,'queryParams':_0x4b3daf,'body':JSON['stringify'](_0x566c37),'httpMethod':_0x1ff733(0x375),'httpOptions':(_0x26f9cb=_0x36bbd7[_0x1ff733(0x182)])===null||_0x26f9cb===void 0x0?void 0x0:_0x26f9cb[_0x1ff733(0x30a)],'abortSignal':(_0x232394=_0x36bbd7[_0x1ff733(0x182)])===null||_0x232394===void 0x0?void 0x0:_0x232394[_0x1ff733(0x2fc)]})['then'](_0x293a05=>{const _0x21c587=_0x1ff733;return _0x293a05[_0x21c587(0xdf)]();}),_0x14ee1e[_0x1ff733(0x213)](_0x2e66a0=>{const _0x38a7b2=listDocumentsResponseFromMldev(_0x2e66a0),_0x2d537b=new ListDocumentsResponse();return Object['assign'](_0x2d537b,_0x38a7b2),_0x2d537b;});}}}/**
|
|
147
|
+
* @license
|
|
148
|
+
* Copyright 2025 Google LLC
|
|
149
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
150
|
+
*/
|
|
151
|
+
class FileSearchStores extends BaseModule{constructor(_0x4af832,_0x2efa9c=new Documents(_0x4af832)){const _0x4b18e6=a2_0x8e922d;super(),this[_0x4b18e6(0x2eb)]=_0x4af832,this[_0x4b18e6(0x3d8)]=_0x2efa9c,this[_0x4b18e6(0x10c)]=async(_0x148d3a={})=>{const _0x222a67=_0x4b18e6;return new Pager(exports['PagedItem'][_0x222a67(0x2f7)],_0x47db15=>this[_0x222a67(0x456)](_0x47db15),await this['listInternal'](_0x148d3a),_0x148d3a);};}async[a2_0x8e922d(0x279)](_0x57184b){const _0x518c05=a2_0x8e922d;if(this['apiClient']['isVertexAI']())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files\x20to\x20a\x20file\x20search\x20store.');return this[_0x518c05(0x2eb)]['uploadFileToFileSearchStore'](_0x57184b[_0x518c05(0x5f5)],_0x57184b[_0x518c05(0x52f)],_0x57184b[_0x518c05(0x182)]);}async[a2_0x8e922d(0x5da)](_0x2bb3ff){const _0x2e80bd=a2_0x8e922d;var _0x2209f9,_0x121f46;let _0x1ce51b,_0x1e5865='',_0x4bd121={};if(this[_0x2e80bd(0x2eb)][_0x2e80bd(0x4d0)]())throw new Error(_0x2e80bd(0x651));else{const _0x2504bb=createFileSearchStoreParametersToMldev(_0x2bb3ff);return _0x1e5865=formatMap(_0x2e80bd(0x6b3),_0x2504bb[_0x2e80bd(0x334)]),_0x4bd121=_0x2504bb[_0x2e80bd(0xa9)],delete _0x2504bb['_url'],delete _0x2504bb[_0x2e80bd(0xa9)],_0x1ce51b=this[_0x2e80bd(0x2eb)][_0x2e80bd(0x269)]({'path':_0x1e5865,'queryParams':_0x4bd121,'body':JSON['stringify'](_0x2504bb),'httpMethod':_0x2e80bd(0x208),'httpOptions':(_0x2209f9=_0x2bb3ff['config'])===null||_0x2209f9===void 0x0?void 0x0:_0x2209f9[_0x2e80bd(0x30a)],'abortSignal':(_0x121f46=_0x2bb3ff[_0x2e80bd(0x182)])===null||_0x121f46===void 0x0?void 0x0:_0x121f46[_0x2e80bd(0x2fc)]})[_0x2e80bd(0x213)](_0x48c781=>{const _0x32fbac=_0x2e80bd;return _0x48c781[_0x32fbac(0xdf)]();}),_0x1ce51b[_0x2e80bd(0x213)](_0x4dd7fe=>{return _0x4dd7fe;});}}async[a2_0x8e922d(0x661)](_0x175a5f){const _0x2e8dcd=a2_0x8e922d;var _0xd67601,_0xadad20;let _0x2da6b0,_0x34e5fd='',_0x2834b1={};if(this['apiClient']['isVertexAI']())throw new Error(_0x2e8dcd(0x651));else{const _0xa8d180=getFileSearchStoreParametersToMldev(_0x175a5f);return _0x34e5fd=formatMap(_0x2e8dcd(0x69d),_0xa8d180[_0x2e8dcd(0x334)]),_0x2834b1=_0xa8d180['_query'],delete _0xa8d180[_0x2e8dcd(0x334)],delete _0xa8d180[_0x2e8dcd(0xa9)],_0x2da6b0=this['apiClient']['request']({'path':_0x34e5fd,'queryParams':_0x2834b1,'body':JSON['stringify'](_0xa8d180),'httpMethod':_0x2e8dcd(0x375),'httpOptions':(_0xd67601=_0x175a5f[_0x2e8dcd(0x182)])===null||_0xd67601===void 0x0?void 0x0:_0xd67601[_0x2e8dcd(0x30a)],'abortSignal':(_0xadad20=_0x175a5f['config'])===null||_0xadad20===void 0x0?void 0x0:_0xadad20['abortSignal']})[_0x2e8dcd(0x213)](_0x506f36=>{const _0x1f715b=_0x2e8dcd;return _0x506f36[_0x1f715b(0xdf)]();}),_0x2da6b0[_0x2e8dcd(0x213)](_0x44ac44=>{return _0x44ac44;});}}async[a2_0x8e922d(0x1a5)](_0x2eca67){const _0x4f7968=a2_0x8e922d;var _0x96af47,_0x11bfa3;let _0x15f4e1='',_0x1dcb7a={};if(this[_0x4f7968(0x2eb)][_0x4f7968(0x4d0)]())throw new Error(_0x4f7968(0x651));else{const _0x3e6e30=deleteFileSearchStoreParametersToMldev(_0x2eca67);_0x15f4e1=formatMap(_0x4f7968(0x69d),_0x3e6e30[_0x4f7968(0x334)]),_0x1dcb7a=_0x3e6e30[_0x4f7968(0xa9)],delete _0x3e6e30['_url'],delete _0x3e6e30[_0x4f7968(0xa9)],await this[_0x4f7968(0x2eb)]['request']({'path':_0x15f4e1,'queryParams':_0x1dcb7a,'body':JSON[_0x4f7968(0x296)](_0x3e6e30),'httpMethod':_0x4f7968(0x596),'httpOptions':(_0x96af47=_0x2eca67[_0x4f7968(0x182)])===null||_0x96af47===void 0x0?void 0x0:_0x96af47[_0x4f7968(0x30a)],'abortSignal':(_0x11bfa3=_0x2eca67['config'])===null||_0x11bfa3===void 0x0?void 0x0:_0x11bfa3[_0x4f7968(0x2fc)]});}}async[a2_0x8e922d(0x456)](_0x55c471){const _0x2c9987=a2_0x8e922d;var _0x1d6d38,_0x4170da;let _0x5eef20,_0x4fb2da='',_0x62db75={};if(this[_0x2c9987(0x2eb)][_0x2c9987(0x4d0)]())throw new Error(_0x2c9987(0x651));else{const _0x2b65ec=listFileSearchStoresParametersToMldev(_0x55c471);return _0x4fb2da=formatMap('fileSearchStores',_0x2b65ec['_url']),_0x62db75=_0x2b65ec[_0x2c9987(0xa9)],delete _0x2b65ec[_0x2c9987(0x334)],delete _0x2b65ec[_0x2c9987(0xa9)],_0x5eef20=this['apiClient'][_0x2c9987(0x269)]({'path':_0x4fb2da,'queryParams':_0x62db75,'body':JSON[_0x2c9987(0x296)](_0x2b65ec),'httpMethod':'GET','httpOptions':(_0x1d6d38=_0x55c471[_0x2c9987(0x182)])===null||_0x1d6d38===void 0x0?void 0x0:_0x1d6d38[_0x2c9987(0x30a)],'abortSignal':(_0x4170da=_0x55c471[_0x2c9987(0x182)])===null||_0x4170da===void 0x0?void 0x0:_0x4170da['abortSignal']})[_0x2c9987(0x213)](_0xadd5a6=>{return _0xadd5a6['json']();}),_0x5eef20['then'](_0x5c6f6d=>{const _0x18aa20=_0x2c9987,_0xf5c286=listFileSearchStoresResponseFromMldev(_0x5c6f6d),_0x2e8699=new ListFileSearchStoresResponse();return Object[_0x18aa20(0x289)](_0x2e8699,_0xf5c286),_0x2e8699;});}}async[a2_0x8e922d(0x321)](_0x8e22aa){const _0x734092=a2_0x8e922d;var _0x18ea35,_0x2b19d3;let _0x290018,_0x44ed8c='',_0xf0947={};if(this[_0x734092(0x2eb)][_0x734092(0x4d0)]())throw new Error(_0x734092(0x651));else{const _0x1ce2d3=uploadToFileSearchStoreParametersToMldev(_0x8e22aa);return _0x44ed8c=formatMap(_0x734092(0x383),_0x1ce2d3[_0x734092(0x334)]),_0xf0947=_0x1ce2d3[_0x734092(0xa9)],delete _0x1ce2d3[_0x734092(0x334)],delete _0x1ce2d3[_0x734092(0xa9)],_0x290018=this[_0x734092(0x2eb)]['request']({'path':_0x44ed8c,'queryParams':_0xf0947,'body':JSON[_0x734092(0x296)](_0x1ce2d3),'httpMethod':_0x734092(0x208),'httpOptions':(_0x18ea35=_0x8e22aa[_0x734092(0x182)])===null||_0x18ea35===void 0x0?void 0x0:_0x18ea35[_0x734092(0x30a)],'abortSignal':(_0x2b19d3=_0x8e22aa[_0x734092(0x182)])===null||_0x2b19d3===void 0x0?void 0x0:_0x2b19d3['abortSignal']})[_0x734092(0x213)](_0x1d4c47=>{const _0x28ed0a=_0x734092;return _0x1d4c47[_0x28ed0a(0xdf)]();}),_0x290018['then'](_0x48795f=>{const _0x8b2e94=_0x734092,_0x16da76=uploadToFileSearchStoreResumableResponseFromMldev(_0x48795f),_0x13ef0c=new UploadToFileSearchStoreResumableResponse();return Object[_0x8b2e94(0x289)](_0x13ef0c,_0x16da76),_0x13ef0c;});}}async[a2_0x8e922d(0x2b8)](_0x3eded){const _0x4babf7=a2_0x8e922d;var _0x7db54d,_0x4e138e;let _0x63c365,_0x3bd6a5='',_0x4f6196={};if(this[_0x4babf7(0x2eb)][_0x4babf7(0x4d0)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x5b91ae=importFileParametersToMldev(_0x3eded);return _0x3bd6a5=formatMap(_0x4babf7(0x3aa),_0x5b91ae['_url']),_0x4f6196=_0x5b91ae['_query'],delete _0x5b91ae[_0x4babf7(0x334)],delete _0x5b91ae[_0x4babf7(0xa9)],_0x63c365=this[_0x4babf7(0x2eb)][_0x4babf7(0x269)]({'path':_0x3bd6a5,'queryParams':_0x4f6196,'body':JSON[_0x4babf7(0x296)](_0x5b91ae),'httpMethod':_0x4babf7(0x208),'httpOptions':(_0x7db54d=_0x3eded['config'])===null||_0x7db54d===void 0x0?void 0x0:_0x7db54d[_0x4babf7(0x30a)],'abortSignal':(_0x4e138e=_0x3eded[_0x4babf7(0x182)])===null||_0x4e138e===void 0x0?void 0x0:_0x4e138e[_0x4babf7(0x2fc)]})[_0x4babf7(0x213)](_0x54cf05=>{return _0x54cf05['json']();}),_0x63c365[_0x4babf7(0x213)](_0x52c335=>{const _0x479faf=_0x4babf7,_0x1eddc7=importFileOperationFromMldev(_0x52c335),_0x30beea=new ImportFileOperation();return Object[_0x479faf(0x289)](_0x30beea,_0x1eddc7),_0x30beea;});}}}/**
|
|
152
|
+
* @license
|
|
153
|
+
* Copyright 2025 Google LLC
|
|
154
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
155
|
+
*/
|
|
156
|
+
let uuid4Internal=function(){const _0x3ff445=a2_0x8e922d,{crypto:_0x127607}=globalThis;if(_0x127607===null||_0x127607===void 0x0?void 0x0:_0x127607[_0x3ff445(0x3a9)])return uuid4Internal=_0x127607['randomUUID'][_0x3ff445(0x3ea)](_0x127607),_0x127607[_0x3ff445(0x3a9)]();const _0x3d7f03=new Uint8Array(0x1),_0xdffb0e=_0x127607?()=>_0x127607[_0x3ff445(0x1f1)](_0x3d7f03)[0x0]:()=>Math[_0x3ff445(0x5df)]()*0xff&0xff;return'10000000-1000-4000-8000-100000000000'['replace'](/[018]/g,_0x47ac5c=>(+_0x47ac5c^_0xdffb0e()&0xf>>+_0x47ac5c/0x4)['toString'](0x10));};const uuid4=()=>uuid4Internal();/**
|
|
157
|
+
* @license
|
|
158
|
+
* Copyright 2025 Google LLC
|
|
159
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
160
|
+
*/
|
|
161
|
+
function isAbortError(_0x4f02fa){const _0x57c631=a2_0x8e922d;return typeof _0x4f02fa===_0x57c631(0x515)&&_0x4f02fa!==null&&(_0x57c631(0x206)in _0x4f02fa&&_0x4f02fa[_0x57c631(0x206)]===_0x57c631(0xca)||'message'in _0x4f02fa&&String(_0x4f02fa['message'])[_0x57c631(0x198)](_0x57c631(0x51a)));}const castToError=_0x2b77c4=>{const _0x305db1=a2_0x8e922d;if(_0x2b77c4 instanceof Error)return _0x2b77c4;if(typeof _0x2b77c4==='object'&&_0x2b77c4!==null){try{if(Object[_0x305db1(0x627)][_0x305db1(0x2b5)][_0x305db1(0x168)](_0x2b77c4)===_0x305db1(0x220)){const _0x2ededf=new Error(_0x2b77c4['message'],_0x2b77c4[_0x305db1(0x509)]?{'cause':_0x2b77c4[_0x305db1(0x509)]}:{});if(_0x2b77c4[_0x305db1(0x1ae)])_0x2ededf[_0x305db1(0x1ae)]=_0x2b77c4[_0x305db1(0x1ae)];if(_0x2b77c4[_0x305db1(0x509)]&&!_0x2ededf['cause'])_0x2ededf[_0x305db1(0x509)]=_0x2b77c4['cause'];if(_0x2b77c4[_0x305db1(0x206)])_0x2ededf['name']=_0x2b77c4[_0x305db1(0x206)];return _0x2ededf;}}catch(_0x45f009){}try{return new Error(JSON[_0x305db1(0x296)](_0x2b77c4));}catch(_0x2c89f8){}}return new Error(_0x2b77c4);};/**
|
|
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(_0x26f3f5,_0xf0c98f,_0x256959,_0x22f3ff){const _0x5119e6=a2_0x8e922d;super(''+APIError[_0x5119e6(0x214)](_0x26f3f5,_0xf0c98f,_0x256959)),this[_0x5119e6(0x3d4)]=_0x26f3f5,this[_0x5119e6(0x438)]=_0x22f3ff,this['error']=_0xf0c98f;}static['makeMessage'](_0x2a50e4,_0x1480f7,_0x53d73e){const _0x237a34=a2_0x8e922d,_0x37c673=(_0x1480f7===null||_0x1480f7===void 0x0?void 0x0:_0x1480f7[_0x237a34(0x3b6)])?typeof _0x1480f7[_0x237a34(0x3b6)]==='string'?_0x1480f7[_0x237a34(0x3b6)]:JSON[_0x237a34(0x296)](_0x1480f7[_0x237a34(0x3b6)]):_0x1480f7?JSON[_0x237a34(0x296)](_0x1480f7):_0x53d73e;if(_0x2a50e4&&_0x37c673)return _0x2a50e4+'\x20'+_0x37c673;if(_0x2a50e4)return _0x2a50e4+_0x237a34(0x349);if(_0x37c673)return _0x37c673;return _0x237a34(0x251);}static[a2_0x8e922d(0x34f)](_0x2c894c,_0x250bc0,_0x30f60b,_0x7b9337){if(!_0x2c894c||!_0x7b9337)return new APIConnectionError({'message':_0x30f60b,'cause':castToError(_0x250bc0)});const _0xb34a1c=_0x250bc0;if(_0x2c894c===0x190)return new BadRequestError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c===0x191)return new AuthenticationError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c===0x193)return new PermissionDeniedError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c===0x194)return new NotFoundError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c===0x199)return new ConflictError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c===0x1a6)return new UnprocessableEntityError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c===0x1ad)return new RateLimitError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);if(_0x2c894c>=0x1f4)return new InternalServerError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);return new APIError(_0x2c894c,_0xb34a1c,_0x30f60b,_0x7b9337);}}class APIUserAbortError extends APIError{constructor({message:_0x5f5c9d}={}){const _0x191d48=a2_0x8e922d;super(undefined,undefined,_0x5f5c9d||_0x191d48(0x2b4),undefined);}}class APIConnectionError extends APIError{constructor({message:_0x455c1d,cause:_0x13b300}){const _0x40f79d=a2_0x8e922d;super(undefined,undefined,_0x455c1d||_0x40f79d(0x2b3),undefined);if(_0x13b300)this[_0x40f79d(0x509)]=_0x13b300;}}class APIConnectionTimeoutError extends APIConnectionError{constructor({message:_0x1d9640}={}){const _0x1b73be=a2_0x8e922d;super({'message':_0x1d9640!==null&&_0x1d9640!==void 0x0?_0x1d9640:_0x1b73be(0x3a8)});}}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=_0x1b9d06=>{const _0x54da1c=a2_0x8e922d;return startsWithSchemeRegexp[_0x54da1c(0x226)](_0x1b9d06);};let isArrayInternal=_0x35d02c=>(isArrayInternal=Array[a2_0x8e922d(0x266)],isArrayInternal(_0x35d02c));const isArray=isArrayInternal;let isReadonlyArrayInternal=isArray;const isReadonlyArray=isReadonlyArrayInternal;function isEmptyObj(_0x1787d6){if(!_0x1787d6)return!![];for(const _0x31e39a in _0x1787d6)return![];return!![];}function hasOwn(_0x3f8e43,_0x35e4cd){const _0x520a73=a2_0x8e922d;return Object[_0x520a73(0x627)]['hasOwnProperty'][_0x520a73(0x168)](_0x3f8e43,_0x35e4cd);}const validatePositiveInteger=(_0x3cddee,_0x1a7b38)=>{const _0x3964b9=a2_0x8e922d;if(typeof _0x1a7b38!==_0x3964b9(0x5de)||!Number[_0x3964b9(0x687)](_0x1a7b38))throw new GeminiNextGenAPIClientError(_0x3cddee+_0x3964b9(0x26c));if(_0x1a7b38<0x0)throw new GeminiNextGenAPIClientError(_0x3cddee+'\x20must\x20be\x20a\x20positive\x20integer');return _0x1a7b38;},safeJSON=_0x5dbfe0=>{const _0x4a99fd=a2_0x8e922d;try{return JSON[_0x4a99fd(0x4bf)](_0x5dbfe0);}catch(_0x2bb32b){return undefined;}},sleep$1=_0x8a568a=>new Promise(_0x115a53=>setTimeout(_0x115a53,_0x8a568a)),VERSION=a2_0x8e922d(0x6a6);/**
|
|
172
|
+
* @license
|
|
173
|
+
* Copyright 2025 Google LLC
|
|
174
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
175
|
+
*/
|
|
176
|
+
function getDetectedPlatform(){const _0x157656=a2_0x8e922d;if(typeof Deno!==_0x157656(0xb4)&&Deno[_0x157656(0x154)]!=null)return _0x157656(0x3c1);if(typeof EdgeRuntime!==_0x157656(0xb4))return'edge';if(Object[_0x157656(0x627)][_0x157656(0x2b5)][_0x157656(0x168)](typeof globalThis[_0x157656(0x1a1)]!==_0x157656(0xb4)?globalThis[_0x157656(0x1a1)]:0x0)===_0x157656(0x5b9))return _0x157656(0x6a0);return _0x157656(0x13f);}const getPlatformProperties=()=>{const _0x239ef2=a2_0x8e922d;var _0x59ddc6,_0x2c4a6b,_0x5c5ba2,_0x4da61b,_0x410287;const _0x69b75f=getDetectedPlatform();if(_0x69b75f===_0x239ef2(0x3c1))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform(Deno[_0x239ef2(0x154)]['os']),'X-Stainless-Arch':normalizeArch(Deno[_0x239ef2(0x154)][_0x239ef2(0x466)]),'X-Stainless-Runtime':_0x239ef2(0x3c1),'X-Stainless-Runtime-Version':typeof Deno['version']===_0x239ef2(0x68f)?Deno[_0x239ef2(0x202)]:(_0x2c4a6b=(_0x59ddc6=Deno['version'])===null||_0x59ddc6===void 0x0?void 0x0:_0x59ddc6[_0x239ef2(0x3c1)])!==null&&_0x2c4a6b!==void 0x0?_0x2c4a6b:_0x239ef2(0x13f)};if(typeof EdgeRuntime!=='undefined')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x239ef2(0x12e)+EdgeRuntime,'X-Stainless-Runtime':_0x239ef2(0x414),'X-Stainless-Runtime-Version':globalThis[_0x239ef2(0x1a1)]['version']};if(_0x69b75f===_0x239ef2(0x6a0))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform((_0x5c5ba2=globalThis[_0x239ef2(0x1a1)][_0x239ef2(0x3f9)])!==null&&_0x5c5ba2!==void 0x0?_0x5c5ba2:_0x239ef2(0x13f)),'X-Stainless-Arch':normalizeArch((_0x4da61b=globalThis[_0x239ef2(0x1a1)][_0x239ef2(0x466)])!==null&&_0x4da61b!==void 0x0?_0x4da61b:_0x239ef2(0x13f)),'X-Stainless-Runtime':_0x239ef2(0x6a0),'X-Stainless-Runtime-Version':(_0x410287=globalThis[_0x239ef2(0x1a1)][_0x239ef2(0x202)])!==null&&_0x410287!==void 0x0?_0x410287:_0x239ef2(0x13f)};const _0x510111=getBrowserInfo();if(_0x510111)return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x239ef2(0x60d),'X-Stainless-Arch':_0x239ef2(0x13f),'X-Stainless-Runtime':_0x239ef2(0x45f)+_0x510111['browser'],'X-Stainless-Runtime-Version':_0x510111['version']};return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x239ef2(0x13f),'X-Stainless-Runtime':'unknown','X-Stainless-Runtime-Version':_0x239ef2(0x13f)};};function getBrowserInfo(){const _0x3e2a40=a2_0x8e922d;if(typeof navigator===_0x3e2a40(0xb4)||!navigator)return null;const _0x2f2c13=[{'key':'edge','pattern':/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'ie','pattern':/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x3e2a40(0x23f),'pattern':/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x3e2a40(0x4f0),'pattern':/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x3e2a40(0x32f),'pattern':/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const {key:_0x2462f2,pattern:_0xbbed4e}of _0x2f2c13){const _0x527966=_0xbbed4e[_0x3e2a40(0x1b9)](navigator[_0x3e2a40(0x3e3)]);if(_0x527966){const _0x292123=_0x527966[0x1]||0x0,_0xbd2098=_0x527966[0x2]||0x0,_0x290c19=_0x527966[0x3]||0x0;return{'browser':_0x2462f2,'version':_0x292123+'.'+_0xbd2098+'.'+_0x290c19};}}return null;}const normalizeArch=_0x5419d8=>{const _0x428ec5=a2_0x8e922d;if(_0x5419d8===_0x428ec5(0x436))return _0x428ec5(0x436);if(_0x5419d8==='x86_64'||_0x5419d8==='x64')return _0x428ec5(0x3cf);if(_0x5419d8===_0x428ec5(0x25a))return _0x428ec5(0x25a);if(_0x5419d8===_0x428ec5(0x412)||_0x5419d8===_0x428ec5(0xcb))return _0x428ec5(0xcb);if(_0x5419d8)return'other:'+_0x5419d8;return _0x428ec5(0x13f);},normalizePlatform=_0x1b9a35=>{const _0x5780ba=a2_0x8e922d;_0x1b9a35=_0x1b9a35[_0x5780ba(0x1c4)]();if(_0x1b9a35[_0x5780ba(0x198)](_0x5780ba(0x56b)))return _0x5780ba(0x28e);if(_0x1b9a35===_0x5780ba(0x451))return'Android';if(_0x1b9a35===_0x5780ba(0x33d))return _0x5780ba(0x2ce);if(_0x1b9a35==='win32')return'Windows';if(_0x1b9a35===_0x5780ba(0x41d))return'FreeBSD';if(_0x1b9a35===_0x5780ba(0x44c))return _0x5780ba(0x22a);if(_0x1b9a35==='linux')return'Linux';if(_0x1b9a35)return'Other:'+_0x1b9a35;return _0x5780ba(0x60d);};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 _0x1b642c=a2_0x8e922d;if(typeof fetch!==_0x1b642c(0xb4))return fetch;throw new Error(_0x1b642c(0x16e));}function makeReadableStream(..._0x269918){const _0xcc8e98=a2_0x8e922d,_0x52f165=globalThis[_0xcc8e98(0x562)];if(typeof _0x52f165===_0xcc8e98(0xb4))throw new Error(_0xcc8e98(0x566));return new _0x52f165(..._0x269918);}function ReadableStreamFrom(_0x57496a){const _0xfff940=a2_0x8e922d;let _0x2f3ffe=Symbol[_0xfff940(0x4f2)]in _0x57496a?_0x57496a[Symbol[_0xfff940(0x4f2)]]():_0x57496a[Symbol[_0xfff940(0x4b8)]]();return makeReadableStream({'start'(){},async 'pull'(_0x45b6d6){const _0x20bcd5=_0xfff940,{done:_0x3cb3ea,value:_0x41fa0b}=await _0x2f3ffe[_0x20bcd5(0x27b)]();_0x3cb3ea?_0x45b6d6[_0x20bcd5(0x2f3)]():_0x45b6d6[_0x20bcd5(0x346)](_0x41fa0b);},async 'cancel'(){const _0x49c0f6=_0xfff940;var _0x13a662;await((_0x13a662=_0x2f3ffe[_0x49c0f6(0x632)])===null||_0x13a662===void 0x0?void 0x0:_0x13a662[_0x49c0f6(0x168)](_0x2f3ffe));}});}function ReadableStreamToAsyncIterable(_0x59465a){const _0x50a994=a2_0x8e922d;if(_0x59465a[Symbol[_0x50a994(0x4f2)]])return _0x59465a;const _0x2c1781=_0x59465a[_0x50a994(0x63d)]();return{async 'next'(){const _0xf5d329=_0x50a994;try{const _0x3a32da=await _0x2c1781[_0xf5d329(0x333)]();if(_0x3a32da===null||_0x3a32da===void 0x0?void 0x0:_0x3a32da['done'])_0x2c1781['releaseLock']();return _0x3a32da;}catch(_0x5aa847){_0x2c1781[_0xf5d329(0x4dd)]();throw _0x5aa847;}},async 'return'(){const _0x587308=_0x50a994,_0x3a0942=_0x2c1781[_0x587308(0x1f2)]();return _0x2c1781['releaseLock'](),await _0x3a0942,{'done':!![],'value':undefined};},[Symbol[_0x50a994(0x4f2)]](){return this;}};}async function CancelReadableStream(_0x18839a){const _0x4dab12=a2_0x8e922d;var _0x2c6c75,_0x2f8bd4;if(_0x18839a===null||typeof _0x18839a!==_0x4dab12(0x515))return;if(_0x18839a[Symbol[_0x4dab12(0x4f2)]]){await((_0x2f8bd4=(_0x2c6c75=_0x18839a[Symbol[_0x4dab12(0x4f2)]]())[_0x4dab12(0x632)])===null||_0x2f8bd4===void 0x0?void 0x0:_0x2f8bd4['call'](_0x2c6c75));return;}const _0x4e683e=_0x18839a[_0x4dab12(0x63d)](),_0x4765d5=_0x4e683e['cancel']();_0x4e683e[_0x4dab12(0x4dd)](),await _0x4765d5;}/**
|
|
182
|
+
* @license
|
|
183
|
+
* Copyright 2025 Google LLC
|
|
184
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
185
|
+
*/
|
|
186
|
+
const FallbackEncoder=({headers:_0x8ead62,body:_0x1e8f4b})=>{const _0x4ff8b7=a2_0x8e922d;return{'bodyHeaders':{'content-type':_0x4ff8b7(0x149)},'body':JSON[_0x4ff8b7(0x296)](_0x1e8f4b)};},checkFileSupport=()=>{const _0x3fcb4a=a2_0x8e922d;var _0x5c4cd6;if(typeof File===_0x3fcb4a(0xb4)){const {process:_0x4e58b5}=globalThis,_0x14b13a=typeof((_0x5c4cd6=_0x4e58b5===null||_0x4e58b5===void 0x0?void 0x0:_0x4e58b5[_0x3fcb4a(0x4f9)])===null||_0x5c4cd6===void 0x0?void 0x0:_0x5c4cd6['node'])===_0x3fcb4a(0x68f)&&parseInt(_0x4e58b5['versions']['node'][_0x3fcb4a(0x5f3)]('.'))<0x14;throw new Error(_0x3fcb4a(0x28f)+(_0x14b13a?_0x3fcb4a(0x2d4):''));}};function makeFile(_0x1c04ed,_0x3360cf,_0x5caf23){return checkFileSupport(),new File(_0x1c04ed,_0x3360cf!==null&&_0x3360cf!==void 0x0?_0x3360cf:'unknown_file',_0x5caf23);}function getName(_0x4a3750){const _0x2ff62b=a2_0x8e922d;return(typeof _0x4a3750===_0x2ff62b(0x515)&&_0x4a3750!==null&&(_0x2ff62b(0x206)in _0x4a3750&&_0x4a3750[_0x2ff62b(0x206)]&&String(_0x4a3750[_0x2ff62b(0x206)])||_0x2ff62b(0x2ef)in _0x4a3750&&_0x4a3750['url']&&String(_0x4a3750[_0x2ff62b(0x2ef)])||_0x2ff62b(0x5bf)in _0x4a3750&&_0x4a3750[_0x2ff62b(0x5bf)]&&String(_0x4a3750[_0x2ff62b(0x5bf)])||_0x2ff62b(0x2e0)in _0x4a3750&&_0x4a3750[_0x2ff62b(0x2e0)]&&String(_0x4a3750[_0x2ff62b(0x2e0)]))||'')[_0x2ff62b(0x5f3)](/[\\/]/)[_0x2ff62b(0x511)]()||undefined;}const isAsyncIterable=_0xb5313f=>_0xb5313f!=null&&typeof _0xb5313f===a2_0x8e922d(0x515)&&typeof _0xb5313f[Symbol[a2_0x8e922d(0x4f2)]]===a2_0x8e922d(0x47f),isBlobLike=_0x2c1670=>_0x2c1670!=null&&typeof _0x2c1670===a2_0x8e922d(0x515)&&typeof _0x2c1670['size']===a2_0x8e922d(0x5de)&&typeof _0x2c1670[a2_0x8e922d(0x37a)]===a2_0x8e922d(0x68f)&&typeof _0x2c1670['text']===a2_0x8e922d(0x47f)&&typeof _0x2c1670['slice']==='function'&&typeof _0x2c1670['arrayBuffer']===a2_0x8e922d(0x47f),isFileLike=_0x86065b=>_0x86065b!=null&&typeof _0x86065b===a2_0x8e922d(0x515)&&typeof _0x86065b[a2_0x8e922d(0x206)]===a2_0x8e922d(0x68f)&&typeof _0x86065b[a2_0x8e922d(0x49e)]===a2_0x8e922d(0x5de)&&isBlobLike(_0x86065b),isResponseLike=_0x42a14d=>_0x42a14d!=null&&typeof _0x42a14d===a2_0x8e922d(0x515)&&typeof _0x42a14d[a2_0x8e922d(0x2ef)]===a2_0x8e922d(0x68f)&&typeof _0x42a14d[a2_0x8e922d(0x58d)]===a2_0x8e922d(0x47f);async function toFile(_0x5dfa4b,_0x5b0942,_0x488312){const _0x341b50=a2_0x8e922d;checkFileSupport(),_0x5dfa4b=await _0x5dfa4b;if(isFileLike(_0x5dfa4b)){if(_0x5dfa4b instanceof File)return _0x5dfa4b;return makeFile([await _0x5dfa4b[_0x341b50(0x540)]()],_0x5dfa4b[_0x341b50(0x206)]);}if(isResponseLike(_0x5dfa4b)){const _0x2b8c05=await _0x5dfa4b[_0x341b50(0x58d)]();return _0x5b0942||(_0x5b0942=new URL(_0x5dfa4b[_0x341b50(0x2ef)])[_0x341b50(0x581)][_0x341b50(0x5f3)](/[\\/]/)[_0x341b50(0x511)]()),makeFile(await getBytes(_0x2b8c05),_0x5b0942,_0x488312);}const _0x4d3e2e=await getBytes(_0x5dfa4b);_0x5b0942||(_0x5b0942=getName(_0x5dfa4b));if(!(_0x488312===null||_0x488312===void 0x0?void 0x0:_0x488312[_0x341b50(0x37a)])){const _0x33c8ef=_0x4d3e2e[_0x341b50(0x259)](_0x3c954e=>typeof _0x3c954e===_0x341b50(0x515)&&'type'in _0x3c954e&&_0x3c954e[_0x341b50(0x37a)]);typeof _0x33c8ef===_0x341b50(0x68f)&&(_0x488312=Object[_0x341b50(0x289)](Object[_0x341b50(0x289)]({},_0x488312),{'type':_0x33c8ef}));}return makeFile(_0x4d3e2e,_0x5b0942,_0x488312);}async function getBytes(_0x4ca186){const _0x2d71bc=a2_0x8e922d;var _0x7552e9,_0x1b83a5,_0x5f3f86,_0x5760f5,_0x2f5374;let _0x9ddbcd=[];if(typeof _0x4ca186===_0x2d71bc(0x68f)||ArrayBuffer[_0x2d71bc(0x310)](_0x4ca186)||_0x4ca186 instanceof ArrayBuffer)_0x9ddbcd['push'](_0x4ca186);else{if(isBlobLike(_0x4ca186))_0x9ddbcd[_0x2d71bc(0x599)](_0x4ca186 instanceof Blob?_0x4ca186:await _0x4ca186[_0x2d71bc(0x540)]());else{if(isAsyncIterable(_0x4ca186))try{for(var _0x363487=!![],_0x180ec0=__asyncValues(_0x4ca186),_0x56e880;_0x56e880=await _0x180ec0[_0x2d71bc(0x27b)](),_0x7552e9=_0x56e880[_0x2d71bc(0x4ae)],!_0x7552e9;_0x363487=!![]){_0x5760f5=_0x56e880[_0x2d71bc(0x6ad)],_0x363487=![];const _0x4d68c6=_0x5760f5;_0x9ddbcd[_0x2d71bc(0x599)](...await getBytes(_0x4d68c6));}}catch(_0x513921){_0x1b83a5={'error':_0x513921};}finally{try{if(!_0x363487&&!_0x7552e9&&(_0x5f3f86=_0x180ec0[_0x2d71bc(0x632)]))await _0x5f3f86[_0x2d71bc(0x168)](_0x180ec0);}finally{if(_0x1b83a5)throw _0x1b83a5[_0x2d71bc(0x262)];}}else{const _0x31d1d8=(_0x2f5374=_0x4ca186===null||_0x4ca186===void 0x0?void 0x0:_0x4ca186[_0x2d71bc(0x315)])===null||_0x2f5374===void 0x0?void 0x0:_0x2f5374['name'];throw new Error('Unexpected\x20data\x20type:\x20'+typeof _0x4ca186+(_0x31d1d8?_0x2d71bc(0xab)+_0x31d1d8:'')+propsForError(_0x4ca186));}}}return _0x9ddbcd;}function propsForError(_0x50bd41){const _0x20e95e=a2_0x8e922d;if(typeof _0x50bd41!==_0x20e95e(0x515)||_0x50bd41===null)return'';const _0x49a7c7=Object[_0x20e95e(0x43c)](_0x50bd41);return';\x20props:\x20['+_0x49a7c7['map'](_0x49eedb=>'\x22'+_0x49eedb+'\x22')[_0x20e95e(0x174)](',\x20')+']';}/**
|
|
187
|
+
* @license
|
|
188
|
+
* Copyright 2025 Google LLC
|
|
189
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
190
|
+
*/
|
|
191
|
+
class APIResource{constructor(_0x18cf62){const _0x379a58=a2_0x8e922d;this[_0x379a58(0x17c)]=_0x18cf62;}}APIResource[a2_0x8e922d(0x256)]=[];/**
|
|
192
|
+
* @license
|
|
193
|
+
* Copyright 2025 Google LLC
|
|
194
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
195
|
+
*/
|
|
196
|
+
function encodeURIPath(_0x2f513b){const _0x3c91f7=a2_0x8e922d;return _0x2f513b[_0x3c91f7(0xdc)](/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent);}const EMPTY=Object['freeze'](Object[a2_0x8e922d(0x5da)](null)),createPathTagFunction=(_0x184c6f=encodeURIPath)=>function _0x126234(_0x104145,..._0x5ad09b){const _0x2d4cc2=a2_0x8e922d;if(_0x104145[_0x2d4cc2(0x568)]===0x1)return _0x104145[0x0];let _0x3f5566=![];const _0x2a5779=[],_0x11e53f=_0x104145[_0x2d4cc2(0x586)]((_0x12586b,_0x491f5a,_0x51bfce)=>{const _0x2420d7=_0x2d4cc2;var _0x1ef652,_0x4e723b,_0x444296;/[?#]/['test'](_0x491f5a)&&(_0x3f5566=!![]);const _0x183345=_0x5ad09b[_0x51bfce];let _0xcfe74d=(_0x3f5566?encodeURIComponent:_0x184c6f)(''+_0x183345);return _0x51bfce!==_0x5ad09b['length']&&(_0x183345==null||typeof _0x183345===_0x2420d7(0x515)&&_0x183345[_0x2420d7(0x2b5)]===((_0x444296=Object[_0x2420d7(0x13a)]((_0x4e723b=Object[_0x2420d7(0x13a)]((_0x1ef652=_0x183345[_0x2420d7(0x2cb)])!==null&&_0x1ef652!==void 0x0?_0x1ef652:EMPTY))!==null&&_0x4e723b!==void 0x0?_0x4e723b:EMPTY))===null||_0x444296===void 0x0?void 0x0:_0x444296['toString']))&&(_0xcfe74d=_0x183345+'',_0x2a5779[_0x2420d7(0x599)]({'start':_0x12586b[_0x2420d7(0x568)]+_0x491f5a[_0x2420d7(0x568)],'length':_0xcfe74d[_0x2420d7(0x568)],'error':'Value\x20of\x20type\x20'+Object[_0x2420d7(0x627)][_0x2420d7(0x2b5)][_0x2420d7(0x168)](_0x183345)[_0x2420d7(0x664)](0x8,-0x1)+_0x2420d7(0x1fb)})),_0x12586b+_0x491f5a+(_0x51bfce===_0x5ad09b['length']?'':_0xcfe74d);},''),_0xa4fe27=_0x11e53f['split'](/[?#]/,0x1)[0x0],_0x33e033=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;let _0x4e36af;while((_0x4e36af=_0x33e033['exec'](_0xa4fe27))!==null){_0x2a5779[_0x2d4cc2(0x599)]({'start':_0x4e36af[_0x2d4cc2(0x19b)],'length':_0x4e36af[0x0][_0x2d4cc2(0x568)],'error':_0x2d4cc2(0x10d)+_0x4e36af[0x0]+_0x2d4cc2(0x1b7)});}_0x2a5779[_0x2d4cc2(0x18b)]((_0x46d11d,_0x328da4)=>_0x46d11d[_0x2d4cc2(0x532)]-_0x328da4['start']);if(_0x2a5779[_0x2d4cc2(0x568)]>0x0){let _0x2e27e0=0x0;const _0x59dd6f=_0x2a5779[_0x2d4cc2(0x586)]((_0x4c7993,_0x214869)=>{const _0x450283=_0x2d4cc2,_0x2e4977='\x20'[_0x450283(0x201)](_0x214869['start']-_0x2e27e0),_0x348cba='^'[_0x450283(0x201)](_0x214869[_0x450283(0x568)]);return _0x2e27e0=_0x214869[_0x450283(0x532)]+_0x214869[_0x450283(0x568)],_0x4c7993+_0x2e4977+_0x348cba;},'');throw new GeminiNextGenAPIClientError(_0x2d4cc2(0x5a2)+_0x2a5779[_0x2d4cc2(0x4a8)](_0x15497f=>_0x15497f[_0x2d4cc2(0x262)])[_0x2d4cc2(0x174)]('\x0a')+'\x0a'+_0x11e53f+'\x0a'+_0x59dd6f);}return _0x11e53f;},path=createPathTagFunction(encodeURIPath);/**
|
|
197
|
+
* @license
|
|
198
|
+
* Copyright 2025 Google LLC
|
|
199
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
200
|
+
*/
|
|
201
|
+
class BaseInteractions extends APIResource{[a2_0x8e922d(0x5da)](_0x138096,_0x2f51bf){const _0x51d6eb=a2_0x8e922d;var _0x1b44ac;const {api_version:api_version=this[_0x51d6eb(0x17c)][_0x51d6eb(0xeb)]}=_0x138096,_0x1125ab=__rest(_0x138096,[_0x51d6eb(0x131)]);if(_0x51d6eb(0x638)in _0x1125ab&&'agent_config'in _0x1125ab)throw new GeminiNextGenAPIClientError(_0x51d6eb(0x663));if('agent'in _0x1125ab&&_0x51d6eb(0x62b)in _0x1125ab)throw new GeminiNextGenAPIClientError(_0x51d6eb(0x1c8));return this['_client'][_0x51d6eb(0x25b)](path`/${api_version}/interactions`,Object[_0x51d6eb(0x289)](Object[_0x51d6eb(0x289)]({'body':_0x1125ab},_0x2f51bf),{'stream':(_0x1b44ac=_0x138096['stream'])!==null&&_0x1b44ac!==void 0x0?_0x1b44ac:![]}));}[a2_0x8e922d(0x1a5)](_0x586214,_0x3997fe={},_0x491419){const _0x1a1346=a2_0x8e922d,{api_version:api_version=this['_client'][_0x1a1346(0xeb)]}=_0x3997fe!==null&&_0x3997fe!==void 0x0?_0x3997fe:{};return this[_0x1a1346(0x17c)]['delete'](path`/${api_version}/interactions/${_0x586214}`,_0x491419);}[a2_0x8e922d(0x1f2)](_0x27fb6e,_0x5c28fb={},_0x16819f){const _0xc603c5=a2_0x8e922d,{api_version:api_version=this[_0xc603c5(0x17c)][_0xc603c5(0xeb)]}=_0x5c28fb!==null&&_0x5c28fb!==void 0x0?_0x5c28fb:{};return this['_client'][_0xc603c5(0x25b)](path`/${api_version}/interactions/${_0x27fb6e}/cancel`,_0x16819f);}[a2_0x8e922d(0x661)](_0x1f6871,_0x3031ff={},_0xe1b1c1){const _0x2ca50e=a2_0x8e922d;var _0x11eb5f;const _0x1a3b2d=_0x3031ff!==null&&_0x3031ff!==void 0x0?_0x3031ff:{},{api_version:api_version=this[_0x2ca50e(0x17c)][_0x2ca50e(0xeb)]}=_0x1a3b2d,_0x21569a=__rest(_0x1a3b2d,['api_version']);return this[_0x2ca50e(0x17c)][_0x2ca50e(0x661)](path`/${api_version}/interactions/${_0x1f6871}`,Object['assign'](Object['assign']({'query':_0x21569a},_0xe1b1c1),{'stream':(_0x11eb5f=_0x3031ff===null||_0x3031ff===void 0x0?void 0x0:_0x3031ff[_0x2ca50e(0x15d)])!==null&&_0x11eb5f!==void 0x0?_0x11eb5f:![]}));}}BaseInteractions['_key']=Object[a2_0x8e922d(0x158)]([a2_0x8e922d(0x41f)]);class Interactions extends BaseInteractions{}/**
|
|
202
|
+
* @license
|
|
203
|
+
* Copyright 2025 Google LLC
|
|
204
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
205
|
+
*/
|
|
206
|
+
function concatBytes(_0x4c6398){const _0x15cf20=a2_0x8e922d;let _0x34f7c3=0x0;for(const _0x23a518 of _0x4c6398){_0x34f7c3+=_0x23a518[_0x15cf20(0x568)];}const _0x4a9549=new Uint8Array(_0x34f7c3);let _0x218139=0x0;for(const _0x5c4361 of _0x4c6398){_0x4a9549['set'](_0x5c4361,_0x218139),_0x218139+=_0x5c4361[_0x15cf20(0x568)];}return _0x4a9549;}let encodeUTF8_;function encodeUTF8(_0x1b3fa3){const _0x560f47=a2_0x8e922d;let _0x1a4370;return(encodeUTF8_!==null&&encodeUTF8_!==void 0x0?encodeUTF8_:(_0x1a4370=new globalThis[(_0x560f47(0x5ed))](),encodeUTF8_=_0x1a4370[_0x560f47(0x28b)][_0x560f47(0x3ea)](_0x1a4370)))(_0x1b3fa3);}let decodeUTF8_;function decodeUTF8(_0x88f7e6){const _0x2e7b86=a2_0x8e922d;let _0x332158;return(decodeUTF8_!==null&&decodeUTF8_!==void 0x0?decodeUTF8_:(_0x332158=new globalThis['TextDecoder'](),decodeUTF8_=_0x332158[_0x2e7b86(0x615)][_0x2e7b86(0x3ea)](_0x332158)))(_0x88f7e6);}/**
|
|
207
|
+
* @license
|
|
208
|
+
* Copyright 2025 Google LLC
|
|
209
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
210
|
+
*/
|
|
211
|
+
class LineDecoder{constructor(){const _0x35202b=a2_0x8e922d;this[_0x35202b(0x114)]=new Uint8Array(),this[_0x35202b(0x455)]=null;}[a2_0x8e922d(0x615)](_0x19959e){const _0x1be7f4=a2_0x8e922d;if(_0x19959e==null)return[];const _0x62a051=_0x19959e instanceof ArrayBuffer?new Uint8Array(_0x19959e):typeof _0x19959e===_0x1be7f4(0x68f)?encodeUTF8(_0x19959e):_0x19959e;this['buffer']=concatBytes([this[_0x1be7f4(0x114)],_0x62a051]);const _0x2eb798=[];let _0x1bbf43;while((_0x1bbf43=findNewlineIndex(this[_0x1be7f4(0x114)],this[_0x1be7f4(0x455)]))!=null){if(_0x1bbf43[_0x1be7f4(0x234)]&&this[_0x1be7f4(0x455)]==null){this['carriageReturnIndex']=_0x1bbf43[_0x1be7f4(0x19b)];continue;}if(this[_0x1be7f4(0x455)]!=null&&(_0x1bbf43[_0x1be7f4(0x19b)]!==this[_0x1be7f4(0x455)]+0x1||_0x1bbf43[_0x1be7f4(0x234)])){_0x2eb798[_0x1be7f4(0x599)](decodeUTF8(this[_0x1be7f4(0x114)]['subarray'](0x0,this[_0x1be7f4(0x455)]-0x1))),this[_0x1be7f4(0x114)]=this[_0x1be7f4(0x114)][_0x1be7f4(0x42d)](this[_0x1be7f4(0x455)]),this['carriageReturnIndex']=null;continue;}const _0x2c0c8c=this['carriageReturnIndex']!==null?_0x1bbf43[_0x1be7f4(0x177)]-0x1:_0x1bbf43['preceding'],_0x595baa=decodeUTF8(this[_0x1be7f4(0x114)][_0x1be7f4(0x42d)](0x0,_0x2c0c8c));_0x2eb798[_0x1be7f4(0x599)](_0x595baa),this[_0x1be7f4(0x114)]=this['buffer'][_0x1be7f4(0x42d)](_0x1bbf43['index']),this[_0x1be7f4(0x455)]=null;}return _0x2eb798;}['flush'](){if(!this['buffer']['length'])return[];return this['decode']('\x0a');}}LineDecoder[a2_0x8e922d(0x3f0)]=new Set(['\x0a','\x0d']),LineDecoder[a2_0x8e922d(0x390)]=/\r\n|[\n\r]/g;function findNewlineIndex(_0x11c3ab,_0x375e98){const _0xe76175=a2_0x8e922d,_0x210b99=0xa,_0x3ef580=0xd;for(let _0x30c4fc=_0x375e98!==null&&_0x375e98!==void 0x0?_0x375e98:0x0;_0x30c4fc<_0x11c3ab[_0xe76175(0x568)];_0x30c4fc++){if(_0x11c3ab[_0x30c4fc]===_0x210b99)return{'preceding':_0x30c4fc,'index':_0x30c4fc+0x1,'carriage':![]};if(_0x11c3ab[_0x30c4fc]===_0x3ef580)return{'preceding':_0x30c4fc,'index':_0x30c4fc+0x1,'carriage':!![]};}return null;}function findDoubleNewlineIndex(_0x5cdd1c){const _0x4bc271=a2_0x8e922d,_0x5e455e=0xa,_0x2a87a0=0xd;for(let _0x1c30c3=0x0;_0x1c30c3<_0x5cdd1c['length']-0x1;_0x1c30c3++){if(_0x5cdd1c[_0x1c30c3]===_0x5e455e&&_0x5cdd1c[_0x1c30c3+0x1]===_0x5e455e)return _0x1c30c3+0x2;if(_0x5cdd1c[_0x1c30c3]===_0x2a87a0&&_0x5cdd1c[_0x1c30c3+0x1]===_0x2a87a0)return _0x1c30c3+0x2;if(_0x5cdd1c[_0x1c30c3]===_0x2a87a0&&_0x5cdd1c[_0x1c30c3+0x1]===_0x5e455e&&_0x1c30c3+0x3<_0x5cdd1c[_0x4bc271(0x568)]&&_0x5cdd1c[_0x1c30c3+0x2]===_0x2a87a0&&_0x5cdd1c[_0x1c30c3+0x3]===_0x5e455e)return _0x1c30c3+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=(_0x1e4b43,_0x5d8638,_0xdc8374)=>{const _0x2fd8e9=a2_0x8e922d;if(!_0x1e4b43)return undefined;if(hasOwn(levelNumbers,_0x1e4b43))return _0x1e4b43;return loggerFor(_0xdc8374)['warn'](_0x5d8638+_0x2fd8e9(0x1e1)+JSON[_0x2fd8e9(0x296)](_0x1e4b43)+_0x2fd8e9(0x3dc)+JSON[_0x2fd8e9(0x296)](Object[_0x2fd8e9(0x6b2)](levelNumbers))),undefined;};function noop(){}function makeLogFn(_0x2141e7,_0x35945b,_0x5088cc){const _0x2bec2f=a2_0x8e922d;return!_0x35945b||levelNumbers[_0x2141e7]>levelNumbers[_0x5088cc]?noop:_0x35945b[_0x2141e7][_0x2bec2f(0x3ea)](_0x35945b);}const noopLogger={'error':noop,'warn':noop,'info':noop,'debug':noop};let cachedLoggers=new WeakMap();function loggerFor(_0x1d769e){const _0x12b2b1=a2_0x8e922d;var _0x158778;const _0xd8299e=_0x1d769e[_0x12b2b1(0x2d7)],_0x4b2892=(_0x158778=_0x1d769e[_0x12b2b1(0x5ef)])!==null&&_0x158778!==void 0x0?_0x158778:_0x12b2b1(0x50c);if(!_0xd8299e)return noopLogger;const _0xd4b533=cachedLoggers[_0x12b2b1(0x661)](_0xd8299e);if(_0xd4b533&&_0xd4b533[0x0]===_0x4b2892)return _0xd4b533[0x1];const _0x417603={'error':makeLogFn(_0x12b2b1(0x262),_0xd8299e,_0x4b2892),'warn':makeLogFn(_0x12b2b1(0x1ef),_0xd8299e,_0x4b2892),'info':makeLogFn(_0x12b2b1(0x648),_0xd8299e,_0x4b2892),'debug':makeLogFn(_0x12b2b1(0x134),_0xd8299e,_0x4b2892)};return cachedLoggers[_0x12b2b1(0x44e)](_0xd8299e,[_0x4b2892,_0x417603]),_0x417603;}const formatRequestDetails=_0x5d4cdd=>{const _0x2e6d9e=a2_0x8e922d;return _0x5d4cdd[_0x2e6d9e(0x5af)]&&(_0x5d4cdd[_0x2e6d9e(0x5af)]=Object[_0x2e6d9e(0x289)]({},_0x5d4cdd[_0x2e6d9e(0x5af)]),delete _0x5d4cdd[_0x2e6d9e(0x5af)][_0x2e6d9e(0x438)]),_0x5d4cdd[_0x2e6d9e(0x438)]&&(_0x5d4cdd[_0x2e6d9e(0x438)]=Object[_0x2e6d9e(0x37b)]((_0x5d4cdd[_0x2e6d9e(0x438)]instanceof Headers?[..._0x5d4cdd[_0x2e6d9e(0x438)]]:Object[_0x2e6d9e(0x3da)](_0x5d4cdd[_0x2e6d9e(0x438)]))[_0x2e6d9e(0x4a8)](([_0x4e8d3b,_0x3b515e])=>[_0x4e8d3b,_0x4e8d3b[_0x2e6d9e(0x1c4)]()==='x-goog-api-key'||_0x4e8d3b[_0x2e6d9e(0x1c4)]()===_0x2e6d9e(0x126)||_0x4e8d3b[_0x2e6d9e(0x1c4)]()===_0x2e6d9e(0x1d9)||_0x4e8d3b[_0x2e6d9e(0x1c4)]()==='set-cookie'?_0x2e6d9e(0x3e0):_0x3b515e]))),'retryOfRequestLogID'in _0x5d4cdd&&(_0x5d4cdd[_0x2e6d9e(0x4cf)]&&(_0x5d4cdd[_0x2e6d9e(0x52b)]=_0x5d4cdd[_0x2e6d9e(0x4cf)]),delete _0x5d4cdd['retryOfRequestLogID']),_0x5d4cdd;};/**
|
|
217
|
+
* @license
|
|
218
|
+
* Copyright 2025 Google LLC
|
|
219
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
220
|
+
*/
|
|
221
|
+
class Stream{constructor(_0x1271ca,_0x58956b,_0x564138){const _0x2419b0=a2_0x8e922d;this[_0x2419b0(0x4b8)]=_0x1271ca,this[_0x2419b0(0x239)]=_0x58956b,this['client']=_0x564138;}static[a2_0x8e922d(0x1f6)](_0x51ab83,_0x335779,_0x30bc69){let _0x3d3311=![];const _0x5e1496=_0x30bc69?loggerFor(_0x30bc69):console;function _0x3aadfd(){return __asyncGenerator(this,arguments,function*_0x402390(){const _0x4937cf=a2_0x28ed;var _0x449547,_0x477e99,_0x285d0a,_0x5c4013;if(_0x3d3311)throw new GeminiNextGenAPIClientError(_0x4937cf(0x277));_0x3d3311=!![];let _0x722e75=![];try{try{for(var _0x5ae0fb=!![],_0xd53c7a=__asyncValues(_iterSSEMessages(_0x51ab83,_0x335779)),_0x4ef071;_0x4ef071=yield __await(_0xd53c7a[_0x4937cf(0x27b)]()),_0x449547=_0x4ef071[_0x4937cf(0x4ae)],!_0x449547;_0x5ae0fb=!![]){_0x5c4013=_0x4ef071[_0x4937cf(0x6ad)],_0x5ae0fb=![];const _0x1deb63=_0x5c4013;if(_0x722e75)continue;if(_0x1deb63[_0x4937cf(0x529)][_0x4937cf(0x1af)](_0x4937cf(0x355))){_0x722e75=!![];continue;}else try{yield yield __await(JSON['parse'](_0x1deb63[_0x4937cf(0x529)]));}catch(_0xe8b214){_0x5e1496[_0x4937cf(0x262)](_0x4937cf(0x5b5),_0x1deb63[_0x4937cf(0x529)]),_0x5e1496['error'](_0x4937cf(0x4f4),_0x1deb63[_0x4937cf(0xd4)]);throw _0xe8b214;}}}catch(_0x5a69ab){_0x477e99={'error':_0x5a69ab};}finally{try{if(!_0x5ae0fb&&!_0x449547&&(_0x285d0a=_0xd53c7a[_0x4937cf(0x632)]))yield __await(_0x285d0a['call'](_0xd53c7a));}finally{if(_0x477e99)throw _0x477e99[_0x4937cf(0x262)];}}_0x722e75=!![];}catch(_0x1e4006){if(isAbortError(_0x1e4006))return yield __await(void 0x0);throw _0x1e4006;}finally{if(!_0x722e75)_0x335779[_0x4937cf(0x4b5)]();}});}return new Stream(_0x3aadfd,_0x335779,_0x30bc69);}static[a2_0x8e922d(0x267)](_0x590a12,_0x5e9989,_0x1de949){let _0x4ce747=![];function _0x2fbe32(){return __asyncGenerator(this,arguments,function*_0xcc86b2(){const _0x2ca25a=a2_0x28ed;var _0x1a076d,_0x271c9b,_0x5419ef,_0x4757ac;const _0x44cdd1=new LineDecoder(),_0x418135=ReadableStreamToAsyncIterable(_0x590a12);try{for(var _0x5670e3=!![],_0x268436=__asyncValues(_0x418135),_0x3cbfbd;_0x3cbfbd=yield __await(_0x268436[_0x2ca25a(0x27b)]()),_0x1a076d=_0x3cbfbd[_0x2ca25a(0x4ae)],!_0x1a076d;_0x5670e3=!![]){_0x4757ac=_0x3cbfbd['value'],_0x5670e3=![];const _0x2feda6=_0x4757ac;for(const _0x3c36b3 of _0x44cdd1[_0x2ca25a(0x615)](_0x2feda6)){yield yield __await(_0x3c36b3);}}}catch(_0x318e03){_0x271c9b={'error':_0x318e03};}finally{try{if(!_0x5670e3&&!_0x1a076d&&(_0x5419ef=_0x268436['return']))yield __await(_0x5419ef['call'](_0x268436));}finally{if(_0x271c9b)throw _0x271c9b[_0x2ca25a(0x262)];}}for(const _0x235b96 of _0x44cdd1[_0x2ca25a(0x2a7)]()){yield yield __await(_0x235b96);}});}function _0x333212(){return __asyncGenerator(this,arguments,function*_0x1483bc(){const _0x175697=a2_0x28ed;var _0x34e3c7,_0x29a133,_0xa3f08a,_0x5a7f90;if(_0x4ce747)throw new GeminiNextGenAPIClientError(_0x175697(0x277));_0x4ce747=!![];let _0x214652=![];try{try{for(var _0x5d1a81=!![],_0x2fbbd3=__asyncValues(_0x2fbe32()),_0x4524ad;_0x4524ad=yield __await(_0x2fbbd3['next']()),_0x34e3c7=_0x4524ad[_0x175697(0x4ae)],!_0x34e3c7;_0x5d1a81=!![]){_0x5a7f90=_0x4524ad[_0x175697(0x6ad)],_0x5d1a81=![];const _0x13c848=_0x5a7f90;if(_0x214652)continue;if(_0x13c848)yield yield __await(JSON[_0x175697(0x4bf)](_0x13c848));}}catch(_0x379a89){_0x29a133={'error':_0x379a89};}finally{try{if(!_0x5d1a81&&!_0x34e3c7&&(_0xa3f08a=_0x2fbbd3[_0x175697(0x632)]))yield __await(_0xa3f08a[_0x175697(0x168)](_0x2fbbd3));}finally{if(_0x29a133)throw _0x29a133[_0x175697(0x262)];}}_0x214652=!![];}catch(_0xd9b9ec){if(isAbortError(_0xd9b9ec))return yield __await(void 0x0);throw _0xd9b9ec;}finally{if(!_0x214652)_0x5e9989['abort']();}});}return new Stream(_0x333212,_0x5e9989,_0x1de949);}[Symbol[a2_0x8e922d(0x4f2)]](){const _0x35125c=a2_0x8e922d;return this[_0x35125c(0x4b8)]();}[a2_0x8e922d(0x4b3)](){const _0x2a89be=a2_0x8e922d,_0x50dcc7=[],_0x48af2e=[],_0x293eb0=this['iterator'](),_0x315c85=_0x2e8656=>{return{'next':()=>{const _0x1e3ee1=a2_0x28ed;if(_0x2e8656['length']===0x0){const _0x1d5e81=_0x293eb0[_0x1e3ee1(0x27b)]();_0x50dcc7['push'](_0x1d5e81),_0x48af2e[_0x1e3ee1(0x599)](_0x1d5e81);}return _0x2e8656[_0x1e3ee1(0x2e7)]();}};};return[new Stream(()=>_0x315c85(_0x50dcc7),this['controller'],this[_0x2a89be(0x1f7)]),new Stream(()=>_0x315c85(_0x48af2e),this[_0x2a89be(0x239)],this[_0x2a89be(0x1f7)])];}[a2_0x8e922d(0x448)](){const _0x19778=this;let _0x40a39d;return makeReadableStream({async 'start'(){_0x40a39d=_0x19778[Symbol['asyncIterator']]();},async 'pull'(_0x31e20a){const _0x4024b8=a2_0x28ed;try{const {value:_0x35fc5d,done:_0x1c6928}=await _0x40a39d[_0x4024b8(0x27b)]();if(_0x1c6928)return _0x31e20a[_0x4024b8(0x2f3)]();const _0x595163=encodeUTF8(JSON[_0x4024b8(0x296)](_0x35fc5d)+'\x0a');_0x31e20a[_0x4024b8(0x346)](_0x595163);}catch(_0x3e0c59){_0x31e20a[_0x4024b8(0x262)](_0x3e0c59);}},async 'cancel'(){const _0x1ac0a1=a2_0x28ed;var _0xa457db;await((_0xa457db=_0x40a39d[_0x1ac0a1(0x632)])===null||_0xa457db===void 0x0?void 0x0:_0xa457db[_0x1ac0a1(0x168)](_0x40a39d));}});}}function _iterSSEMessages(_0xad98bf,_0x457ea1){return __asyncGenerator(this,arguments,function*_0x5b5f38(){const _0x2d98fe=a2_0x28ed;var _0x4ae048,_0x58e740,_0x169462,_0x5f2528;if(!_0xad98bf[_0x2d98fe(0x31f)]){_0x457ea1['abort']();if(typeof globalThis[_0x2d98fe(0x3d2)]!==_0x2d98fe(0xb4)&&globalThis[_0x2d98fe(0x3d2)][_0x2d98fe(0x63c)]===_0x2d98fe(0x283))throw new GeminiNextGenAPIClientError('The\x20default\x20react-native\x20fetch\x20implementation\x20does\x20not\x20support\x20streaming.\x20Please\x20use\x20expo/fetch:\x20https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api');throw new GeminiNextGenAPIClientError(_0x2d98fe(0x1a3));}const _0x29b481=new SSEDecoder(),_0x3118ae=new LineDecoder(),_0x14c582=ReadableStreamToAsyncIterable(_0xad98bf['body']);try{for(var _0x5562ee=!![],_0x3b7079=__asyncValues(iterSSEChunks(_0x14c582)),_0x803920;_0x803920=yield __await(_0x3b7079[_0x2d98fe(0x27b)]()),_0x4ae048=_0x803920['done'],!_0x4ae048;_0x5562ee=!![]){_0x5f2528=_0x803920['value'],_0x5562ee=![];const _0x3bcd83=_0x5f2528;for(const _0x428ffb of _0x3118ae[_0x2d98fe(0x615)](_0x3bcd83)){const _0x3d6b45=_0x29b481['decode'](_0x428ffb);if(_0x3d6b45)yield yield __await(_0x3d6b45);}}}catch(_0xa535f4){_0x58e740={'error':_0xa535f4};}finally{try{if(!_0x5562ee&&!_0x4ae048&&(_0x169462=_0x3b7079[_0x2d98fe(0x632)]))yield __await(_0x169462[_0x2d98fe(0x168)](_0x3b7079));}finally{if(_0x58e740)throw _0x58e740[_0x2d98fe(0x262)];}}for(const _0x34996c of _0x3118ae['flush']()){const _0x27d858=_0x29b481[_0x2d98fe(0x615)](_0x34996c);if(_0x27d858)yield yield __await(_0x27d858);}});}function iterSSEChunks(_0x49a96e){return __asyncGenerator(this,arguments,function*_0x2a6f4d(){const _0x464fa2=a2_0x28ed;var _0x166aff,_0x6d255e,_0xb69688,_0x3e339d;let _0x5dea42=new Uint8Array();try{for(var _0xfce62=!![],_0x162db1=__asyncValues(_0x49a96e),_0x1450a4;_0x1450a4=yield __await(_0x162db1[_0x464fa2(0x27b)]()),_0x166aff=_0x1450a4[_0x464fa2(0x4ae)],!_0x166aff;_0xfce62=!![]){_0x3e339d=_0x1450a4['value'],_0xfce62=![];const _0x1c282f=_0x3e339d;if(_0x1c282f==null)continue;const _0x36127c=_0x1c282f instanceof ArrayBuffer?new Uint8Array(_0x1c282f):typeof _0x1c282f===_0x464fa2(0x68f)?encodeUTF8(_0x1c282f):_0x1c282f;let _0x2e09aa=new Uint8Array(_0x5dea42[_0x464fa2(0x568)]+_0x36127c['length']);_0x2e09aa['set'](_0x5dea42),_0x2e09aa[_0x464fa2(0x44e)](_0x36127c,_0x5dea42['length']),_0x5dea42=_0x2e09aa;let _0x6b233c;while((_0x6b233c=findDoubleNewlineIndex(_0x5dea42))!==-0x1){yield yield __await(_0x5dea42[_0x464fa2(0x664)](0x0,_0x6b233c)),_0x5dea42=_0x5dea42[_0x464fa2(0x664)](_0x6b233c);}}}catch(_0x35365b){_0x6d255e={'error':_0x35365b};}finally{try{if(!_0xfce62&&!_0x166aff&&(_0xb69688=_0x162db1[_0x464fa2(0x632)]))yield __await(_0xb69688[_0x464fa2(0x168)](_0x162db1));}finally{if(_0x6d255e)throw _0x6d255e[_0x464fa2(0x262)];}}_0x5dea42[_0x464fa2(0x568)]>0x0&&(yield yield __await(_0x5dea42));});}class SSEDecoder{constructor(){const _0x37bdf9=a2_0x8e922d;this[_0x37bdf9(0x579)]=null,this[_0x37bdf9(0x529)]=[],this[_0x37bdf9(0x34d)]=[];}[a2_0x8e922d(0x615)](_0x15cf5b){const _0x2bac55=a2_0x8e922d;_0x15cf5b[_0x2bac55(0x39c)]('\x0d')&&(_0x15cf5b=_0x15cf5b[_0x2bac55(0x1e4)](0x0,_0x15cf5b[_0x2bac55(0x568)]-0x1));if(!_0x15cf5b){if(!this[_0x2bac55(0x579)]&&!this[_0x2bac55(0x529)][_0x2bac55(0x568)])return null;const _0x20e4fe={'event':this['event'],'data':this[_0x2bac55(0x529)][_0x2bac55(0x174)]('\x0a'),'raw':this[_0x2bac55(0x34d)]};return this[_0x2bac55(0x579)]=null,this[_0x2bac55(0x529)]=[],this['chunks']=[],_0x20e4fe;}this[_0x2bac55(0x34d)][_0x2bac55(0x599)](_0x15cf5b);if(_0x15cf5b[_0x2bac55(0x1af)](':'))return null;let [_0x2cf251,_0x2f68fa,_0x4b6247]=partition(_0x15cf5b,':');_0x4b6247['startsWith']('\x20')&&(_0x4b6247=_0x4b6247['substring'](0x1));if(_0x2cf251==='event')this[_0x2bac55(0x579)]=_0x4b6247;else _0x2cf251===_0x2bac55(0x529)&&this[_0x2bac55(0x529)][_0x2bac55(0x599)](_0x4b6247);return null;}}function partition(_0x2c5566,_0x4f97c3){const _0x1661a6=a2_0x8e922d,_0x1013f5=_0x2c5566[_0x1661a6(0xcf)](_0x4f97c3);if(_0x1013f5!==-0x1)return[_0x2c5566[_0x1661a6(0x1e4)](0x0,_0x1013f5),_0x4f97c3,_0x2c5566['substring'](_0x1013f5+_0x4f97c3[_0x1661a6(0x568)])];return[_0x2c5566,'',''];}/**
|
|
222
|
+
* @license
|
|
223
|
+
* Copyright 2025 Google LLC
|
|
224
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
225
|
+
*/
|
|
226
|
+
async function defaultParseResponse(_0x3b0c89,_0x1e7914){const _0x18dd8f=a2_0x8e922d,{response:_0x57b65f,requestLogID:_0x3461dd,retryOfRequestLogID:_0x4a73c1,startTime:_0x10ada8}=_0x1e7914,_0x494e3c=await((async()=>{const _0x157e50=a2_0x28ed;var _0x49f304;if(_0x1e7914[_0x157e50(0x5af)][_0x157e50(0x15d)]){loggerFor(_0x3b0c89)[_0x157e50(0x134)](_0x157e50(0x1d3),_0x57b65f['status'],_0x57b65f['url'],_0x57b65f[_0x157e50(0x438)],_0x57b65f[_0x157e50(0x31f)]);if(_0x1e7914[_0x157e50(0x5af)]['__streamClass'])return _0x1e7914[_0x157e50(0x5af)]['__streamClass']['fromSSEResponse'](_0x57b65f,_0x1e7914[_0x157e50(0x239)],_0x3b0c89);return Stream[_0x157e50(0x1f6)](_0x57b65f,_0x1e7914[_0x157e50(0x239)],_0x3b0c89);}if(_0x57b65f['status']===0xcc)return null;if(_0x1e7914[_0x157e50(0x5af)][_0x157e50(0x60f)])return _0x57b65f;const _0x3d1afc=_0x57b65f[_0x157e50(0x438)][_0x157e50(0x661)](_0x157e50(0x3b3)),_0x63a7f5=(_0x49f304=_0x3d1afc===null||_0x3d1afc===void 0x0?void 0x0:_0x3d1afc[_0x157e50(0x5f3)](';')[0x0])===null||_0x49f304===void 0x0?void 0x0:_0x49f304['trim'](),_0x953ad5=(_0x63a7f5===null||_0x63a7f5===void 0x0?void 0x0:_0x63a7f5[_0x157e50(0x198)](_0x157e50(0x149)))||(_0x63a7f5===null||_0x63a7f5===void 0x0?void 0x0:_0x63a7f5[_0x157e50(0x39c)]('+json'));if(_0x953ad5){const _0x1beb3e=_0x57b65f[_0x157e50(0x438)][_0x157e50(0x661)](_0x157e50(0x217));if(_0x1beb3e==='0')return undefined;const _0x389df2=await _0x57b65f[_0x157e50(0xdf)]();return _0x389df2;}const _0x53981b=await _0x57b65f[_0x157e50(0x1a8)]();return _0x53981b;})());return loggerFor(_0x3b0c89)['debug']('['+_0x3461dd+_0x18dd8f(0x431),formatRequestDetails({'retryOfRequestLogID':_0x4a73c1,'url':_0x57b65f[_0x18dd8f(0x2ef)],'status':_0x57b65f['status'],'body':_0x494e3c,'durationMs':Date[_0x18dd8f(0x504)]()-_0x10ada8})),_0x494e3c;}/**
|
|
227
|
+
* @license
|
|
228
|
+
* Copyright 2025 Google LLC
|
|
229
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
230
|
+
*/
|
|
231
|
+
class APIPromise extends Promise{constructor(_0x334643,_0x19cc53,_0x2ee62d=defaultParseResponse){const _0x3c7841=a2_0x8e922d;super(_0x48510c=>{_0x48510c(null);}),this[_0x3c7841(0x561)]=_0x19cc53,this[_0x3c7841(0x3c9)]=_0x2ee62d,this['client']=_0x334643;}[a2_0x8e922d(0x489)](_0x1ea9ea){const _0x276bed=a2_0x8e922d;return new APIPromise(this[_0x276bed(0x1f7)],this[_0x276bed(0x561)],async(_0x590a40,_0x335911)=>_0x1ea9ea(await this[_0x276bed(0x3c9)](_0x590a40,_0x335911),_0x335911));}[a2_0x8e922d(0x67e)](){const _0x22e58e=a2_0x8e922d;return this[_0x22e58e(0x561)]['then'](_0x20f45b=>_0x20f45b[_0x22e58e(0x1d3)]);}async[a2_0x8e922d(0x3dd)](){const _0x46c862=a2_0x8e922d,[_0x2025ce,_0x4e8f0f]=await Promise['all']([this[_0x46c862(0x4bf)](),this[_0x46c862(0x67e)]()]);return{'data':_0x2025ce,'response':_0x4e8f0f};}[a2_0x8e922d(0x4bf)](){const _0x1fe72d=a2_0x8e922d;return!this[_0x1fe72d(0x2a6)]&&(this[_0x1fe72d(0x2a6)]=this[_0x1fe72d(0x561)]['then'](_0x21c97=>this['parseResponse'](this['client'],_0x21c97))),this[_0x1fe72d(0x2a6)];}[a2_0x8e922d(0x213)](_0x28fac8,_0x50d22c){const _0x1a333c=a2_0x8e922d;return this[_0x1a333c(0x4bf)]()[_0x1a333c(0x213)](_0x28fac8,_0x50d22c);}[a2_0x8e922d(0x29e)](_0x3f9e4a){const _0x4e76c6=a2_0x8e922d;return this[_0x4e76c6(0x4bf)]()['catch'](_0x3f9e4a);}[a2_0x8e922d(0x56f)](_0x3ee830){const _0x2f0e42=a2_0x8e922d;return this[_0x2f0e42(0x4bf)]()[_0x2f0e42(0x56f)](_0x3ee830);}}/**
|
|
232
|
+
* @license
|
|
233
|
+
* Copyright 2025 Google LLC
|
|
234
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
235
|
+
*/
|
|
236
|
+
const brand_privateNullableHeaders=Symbol(a2_0x8e922d(0x37c));function*iterateHeaders(_0x2f9924){const _0x5ae023=a2_0x8e922d;if(!_0x2f9924)return;if(brand_privateNullableHeaders in _0x2f9924){const {values:_0x4ad22a,nulls:_0xe30546}=_0x2f9924;yield*_0x4ad22a['entries']();for(const _0x3523c8 of _0xe30546){yield[_0x3523c8,null];}return;}let _0x79acdd=![],_0x4dfe19;if(_0x2f9924 instanceof Headers)_0x4dfe19=_0x2f9924['entries']();else isReadonlyArray(_0x2f9924)?_0x4dfe19=_0x2f9924:(_0x79acdd=!![],_0x4dfe19=Object['entries'](_0x2f9924!==null&&_0x2f9924!==void 0x0?_0x2f9924:{}));for(let _0x100005 of _0x4dfe19){const _0x2d4826=_0x100005[0x0];if(typeof _0x2d4826!==_0x5ae023(0x68f))throw new TypeError(_0x5ae023(0x688));const _0x1b99d0=isReadonlyArray(_0x100005[0x1])?_0x100005[0x1]:[_0x100005[0x1]];let _0x59eeae=![];for(const _0x3a4e0e of _0x1b99d0){if(_0x3a4e0e===undefined)continue;_0x79acdd&&!_0x59eeae&&(_0x59eeae=!![],yield[_0x2d4826,null]),yield[_0x2d4826,_0x3a4e0e];}}}const buildHeaders=_0x2929c5=>{const _0x25b5f9=a2_0x8e922d,_0x1a7b60=new Headers(),_0x56bf97=new Set();for(const _0x14cb44 of _0x2929c5){const _0x28e32e=new Set();for(const [_0x220468,_0x3de7b4]of iterateHeaders(_0x14cb44)){const _0x13e385=_0x220468[_0x25b5f9(0x1c4)]();!_0x28e32e['has'](_0x13e385)&&(_0x1a7b60[_0x25b5f9(0x1a5)](_0x220468),_0x28e32e['add'](_0x13e385)),_0x3de7b4===null?(_0x1a7b60[_0x25b5f9(0x1a5)](_0x220468),_0x56bf97[_0x25b5f9(0x3f7)](_0x13e385)):(_0x1a7b60['append'](_0x220468,_0x3de7b4),_0x56bf97[_0x25b5f9(0x1a5)](_0x13e385));}}return{[brand_privateNullableHeaders]:!![],'values':_0x1a7b60,'nulls':_0x56bf97};},readEnv=_0x3f2781=>{const _0x4668a7=a2_0x8e922d;var _0x567b3b,_0x5076a5,_0x51d522,_0x386e18,_0x5e0ac3,_0x32e2cf;if(typeof globalThis['process']!==_0x4668a7(0xb4))return(_0x51d522=(_0x5076a5=(_0x567b3b=globalThis['process'][_0x4668a7(0x5bd)])===null||_0x567b3b===void 0x0?void 0x0:_0x567b3b[_0x3f2781])===null||_0x5076a5===void 0x0?void 0x0:_0x5076a5[_0x4668a7(0xed)]())!==null&&_0x51d522!==void 0x0?_0x51d522:undefined;if(typeof globalThis[_0x4668a7(0x4a5)]!==_0x4668a7(0xb4))return(_0x32e2cf=(_0x5e0ac3=(_0x386e18=globalThis['Deno'][_0x4668a7(0x5bd)])===null||_0x386e18===void 0x0?void 0x0:_0x386e18['get'])===null||_0x5e0ac3===void 0x0?void 0x0:_0x5e0ac3['call'](_0x386e18,_0x3f2781))===null||_0x32e2cf===void 0x0?void 0x0:_0x32e2cf[_0x4668a7(0xed)]();return undefined;};/**
|
|
237
|
+
* @license
|
|
238
|
+
* Copyright 2025 Google LLC
|
|
239
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
240
|
+
*/
|
|
241
|
+
var _a;class BaseGeminiNextGenAPIClient{constructor(_0x605fd3){const _0x35b57f=a2_0x8e922d;var _0x1586e1,_0x58f007,_0x2142e2,_0x2add7f,_0x2639a6,_0x333b4a,_0x24bb59,{baseURL:baseURL=readEnv('GEMINI_NEXT_GEN_API_BASE_URL'),apiKey:apiKey=(_0x1586e1=readEnv(_0x35b57f(0x5c9)))!==null&&_0x1586e1!==void 0x0?_0x1586e1:null,apiVersion:apiVersion=_0x35b57f(0x5cf)}=_0x605fd3,_0x251927=__rest(_0x605fd3,['baseURL','apiKey','apiVersion']);const _0x4fc1e8=Object[_0x35b57f(0x289)](Object[_0x35b57f(0x289)]({'apiKey':apiKey,'apiVersion':apiVersion},_0x251927),{'baseURL':baseURL||_0x35b57f(0x4aa)});this[_0x35b57f(0x53d)]=_0x4fc1e8[_0x35b57f(0x53d)],this['timeout']=(_0x58f007=_0x4fc1e8[_0x35b57f(0x258)])!==null&&_0x58f007!==void 0x0?_0x58f007:BaseGeminiNextGenAPIClient[_0x35b57f(0x42e)],this[_0x35b57f(0x2d7)]=(_0x2142e2=_0x4fc1e8[_0x35b57f(0x2d7)])!==null&&_0x2142e2!==void 0x0?_0x2142e2:console;const _0x575b2b='warn';this[_0x35b57f(0x5ef)]=_0x575b2b,this[_0x35b57f(0x5ef)]=(_0x2639a6=(_0x2add7f=parseLogLevel(_0x4fc1e8[_0x35b57f(0x5ef)],_0x35b57f(0xd8),this))!==null&&_0x2add7f!==void 0x0?_0x2add7f:parseLogLevel(readEnv(_0x35b57f(0x5c8)),_0x35b57f(0x4b9),this))!==null&&_0x2639a6!==void 0x0?_0x2639a6:_0x575b2b,this[_0x35b57f(0x152)]=_0x4fc1e8['fetchOptions'],this[_0x35b57f(0x51c)]=(_0x333b4a=_0x4fc1e8[_0x35b57f(0x51c)])!==null&&_0x333b4a!==void 0x0?_0x333b4a:0x2,this[_0x35b57f(0x5ba)]=(_0x24bb59=_0x4fc1e8['fetch'])!==null&&_0x24bb59!==void 0x0?_0x24bb59:getDefaultFetch(),this[_0x35b57f(0x13b)]=FallbackEncoder,this[_0x35b57f(0x2d6)]=_0x4fc1e8,this[_0x35b57f(0x362)]=apiKey,this['apiVersion']=apiVersion,this['clientAdapter']=_0x4fc1e8[_0x35b57f(0x5a4)];}[a2_0x8e922d(0x1c6)](_0x137e7b){const _0x45ab3c=a2_0x8e922d,_0x3ee9b6=new this[(_0x45ab3c(0x315))](Object[_0x45ab3c(0x289)](Object[_0x45ab3c(0x289)](Object[_0x45ab3c(0x289)]({},this[_0x45ab3c(0x2d6)]),{'baseURL':this[_0x45ab3c(0x53d)],'maxRetries':this[_0x45ab3c(0x51c)],'timeout':this[_0x45ab3c(0x258)],'logger':this[_0x45ab3c(0x2d7)],'logLevel':this[_0x45ab3c(0x5ef)],'fetch':this['fetch'],'fetchOptions':this['fetchOptions'],'apiKey':this[_0x45ab3c(0x362)],'apiVersion':this[_0x45ab3c(0xeb)]}),_0x137e7b));return _0x3ee9b6;}[a2_0x8e922d(0x162)](){const _0xd485c5=a2_0x8e922d;return this[_0xd485c5(0x53d)]!==_0xd485c5(0x4aa);}[a2_0x8e922d(0x6a4)](){const _0x2f214e=a2_0x8e922d;return this[_0x2f214e(0x2d6)]['defaultQuery'];}[a2_0x8e922d(0x634)]({values:_0x38088c,nulls:_0x582471}){const _0x2f146c=a2_0x8e922d;if(_0x38088c[_0x2f146c(0x4b7)](_0x2f146c(0x126))||_0x38088c['has'](_0x2f146c(0x106)))return;if(this[_0x2f146c(0x362)]&&_0x38088c[_0x2f146c(0x661)](_0x2f146c(0x106)))return;if(_0x582471[_0x2f146c(0x4b7)](_0x2f146c(0x106)))return;throw new Error(_0x2f146c(0x219));}async[a2_0x8e922d(0x15f)](_0x35844){const _0x256d45=a2_0x8e922d,_0xf583ff=buildHeaders([_0x35844[_0x256d45(0x438)]]);if(_0xf583ff['values'][_0x256d45(0x4b7)](_0x256d45(0x126))||_0xf583ff['values'][_0x256d45(0x4b7)](_0x256d45(0x106)))return undefined;if(this[_0x256d45(0x362)])return buildHeaders([{'x-goog-api-key':this[_0x256d45(0x362)]}]);if(this[_0x256d45(0x5a4)][_0x256d45(0x4d0)]())return buildHeaders([await this['clientAdapter']['getAuthHeaders']()]);return undefined;}[a2_0x8e922d(0xce)](_0x57d709){const _0x268cea=a2_0x8e922d;return Object['entries'](_0x57d709)[_0x268cea(0x50e)](([_0x283ecc,_0x247a5b])=>typeof _0x247a5b!=='undefined')[_0x268cea(0x4a8)](([_0x1bc143,_0x17c403])=>{const _0x1d826e=_0x268cea;if(typeof _0x17c403==='string'||typeof _0x17c403===_0x1d826e(0x5de)||typeof _0x17c403===_0x1d826e(0x173))return encodeURIComponent(_0x1bc143)+'='+encodeURIComponent(_0x17c403);if(_0x17c403===null)return encodeURIComponent(_0x1bc143)+'=';throw new GeminiNextGenAPIClientError(_0x1d826e(0x457)+typeof _0x17c403+_0x1d826e(0x165));})[_0x268cea(0x174)]('&');}[a2_0x8e922d(0x30b)](){const _0x240ec3=a2_0x8e922d;return this[_0x240ec3(0x315)][_0x240ec3(0x206)]+'/JS\x20'+VERSION;}[a2_0x8e922d(0x600)](){const _0x50cda9=a2_0x8e922d;return _0x50cda9(0x345)+uuid4();}[a2_0x8e922d(0x68d)](_0x57d1ff,_0x217d72,_0x2abb0c,_0x1cfc77){const _0x55d50c=a2_0x8e922d;return APIError[_0x55d50c(0x34f)](_0x57d1ff,_0x217d72,_0x2abb0c,_0x1cfc77);}['buildURL'](_0x44cca4,_0x290bf3,_0x5b18c5){const _0x21ee55=a2_0x8e922d,_0xfe9a8e=!this['baseURLOverridden']()&&_0x5b18c5||this[_0x21ee55(0x53d)],_0x22b8ff=isAbsoluteURL(_0x44cca4)?new URL(_0x44cca4):new URL(_0xfe9a8e+(_0xfe9a8e[_0x21ee55(0x39c)]('/')&&_0x44cca4['startsWith']('/')?_0x44cca4[_0x21ee55(0x664)](0x1):_0x44cca4)),_0x2da7a7=this[_0x21ee55(0x6a4)]();return!isEmptyObj(_0x2da7a7)&&(_0x290bf3=Object[_0x21ee55(0x289)](Object[_0x21ee55(0x289)]({},_0x2da7a7),_0x290bf3)),typeof _0x290bf3===_0x21ee55(0x515)&&_0x290bf3&&!Array[_0x21ee55(0x266)](_0x290bf3)&&(_0x22b8ff[_0x21ee55(0x465)]=this[_0x21ee55(0xce)](_0x290bf3)),_0x22b8ff[_0x21ee55(0x2b5)]();}async[a2_0x8e922d(0x4fb)](_0x5efd6){const _0x45a3e8=a2_0x8e922d;if(this['clientAdapter']&&this[_0x45a3e8(0x5a4)][_0x45a3e8(0x4d0)]()&&!_0x5efd6[_0x45a3e8(0x2e0)][_0x45a3e8(0x1af)]('/'+this[_0x45a3e8(0xeb)]+_0x45a3e8(0x4c2))){const _0x4f3b90=_0x5efd6['path'][_0x45a3e8(0x664)](this[_0x45a3e8(0xeb)][_0x45a3e8(0x568)]+0x1);_0x5efd6['path']='/'+this[_0x45a3e8(0xeb)]+'/projects/'+this['clientAdapter'][_0x45a3e8(0x491)]()+_0x45a3e8(0x224)+this[_0x45a3e8(0x5a4)][_0x45a3e8(0x555)]()+_0x4f3b90;}}async[a2_0x8e922d(0x270)](_0x52fcf8,{url:_0x10b7a5,options:_0xe55105}){}[a2_0x8e922d(0x661)](_0x25e595,_0x1ec07d){const _0x49afb3=a2_0x8e922d;return this['methodRequest'](_0x49afb3(0x661),_0x25e595,_0x1ec07d);}[a2_0x8e922d(0x25b)](_0x2a8b87,_0x103976){const _0x9e9ff7=a2_0x8e922d;return this[_0x9e9ff7(0x2f2)](_0x9e9ff7(0x25b),_0x2a8b87,_0x103976);}['patch'](_0x38c72a,_0x3e5e28){const _0x1dc7ac=a2_0x8e922d;return this['methodRequest'](_0x1dc7ac(0x2c7),_0x38c72a,_0x3e5e28);}[a2_0x8e922d(0x4f5)](_0x411f20,_0x56b43c){const _0x33d4e6=a2_0x8e922d;return this[_0x33d4e6(0x2f2)](_0x33d4e6(0x4f5),_0x411f20,_0x56b43c);}['delete'](_0x3e60c1,_0xac7d73){const _0x23ac68=a2_0x8e922d;return this[_0x23ac68(0x2f2)](_0x23ac68(0x1a5),_0x3e60c1,_0xac7d73);}[a2_0x8e922d(0x2f2)](_0x36e710,_0x13dbb0,_0x5c3456){const _0x35e376=a2_0x8e922d;return this['request'](Promise[_0x35e376(0xb9)](_0x5c3456)[_0x35e376(0x213)](_0x2e3852=>{return Object['assign']({'method':_0x36e710,'path':_0x13dbb0},_0x2e3852);}));}['request'](_0x3844ff,_0x25c793=null){return new APIPromise(this,this['makeRequest'](_0x3844ff,_0x25c793,undefined));}async[a2_0x8e922d(0x311)](_0x4adda0,_0x2ac253,_0x283d22){const _0x2b1205=a2_0x8e922d;var _0x523109,_0x342325,_0xf35cba;const _0x58a555=await _0x4adda0,_0x2df5bf=(_0x523109=_0x58a555[_0x2b1205(0x51c)])!==null&&_0x523109!==void 0x0?_0x523109:this[_0x2b1205(0x51c)];_0x2ac253==null&&(_0x2ac253=_0x2df5bf);await this[_0x2b1205(0x4fb)](_0x58a555);const {req:_0x45c8a7,url:_0x1fea68,timeout:_0x3d0b7a}=await this[_0x2b1205(0x55d)](_0x58a555,{'retryCount':_0x2df5bf-_0x2ac253});await this['prepareRequest'](_0x45c8a7,{'url':_0x1fea68,'options':_0x58a555});const _0x16c761='log_'+(Math[_0x2b1205(0x5df)]()*(0x1<<0x18)|0x0)[_0x2b1205(0x2b5)](0x10)[_0x2b1205(0x67f)](0x6,'0'),_0x4db2b9=_0x283d22===undefined?'':_0x2b1205(0x472)+_0x283d22,_0x56c685=Date[_0x2b1205(0x504)]();loggerFor(this)[_0x2b1205(0x134)]('['+_0x16c761+_0x2b1205(0x667),formatRequestDetails({'retryOfRequestLogID':_0x283d22,'method':_0x58a555[_0x2b1205(0x2a1)],'url':_0x1fea68,'options':_0x58a555,'headers':_0x45c8a7['headers']}));if((_0x342325=_0x58a555[_0x2b1205(0x216)])===null||_0x342325===void 0x0?void 0x0:_0x342325[_0x2b1205(0x218)])throw new APIUserAbortError();const _0x411769=new AbortController(),_0x10a867=await this[_0x2b1205(0x56c)](_0x1fea68,_0x45c8a7,_0x3d0b7a,_0x411769)[_0x2b1205(0x29e)](castToError),_0x3cedc8=Date[_0x2b1205(0x504)]();if(_0x10a867 instanceof globalThis[_0x2b1205(0x41b)]){const _0x307adb=_0x2b1205(0x3e1)+_0x2ac253+_0x2b1205(0x347);if((_0xf35cba=_0x58a555[_0x2b1205(0x216)])===null||_0xf35cba===void 0x0?void 0x0:_0xf35cba[_0x2b1205(0x218)])throw new APIUserAbortError();const _0x36f5e9=isAbortError(_0x10a867)||/timed? ?out/i[_0x2b1205(0x226)](String(_0x10a867)+(_0x2b1205(0x509)in _0x10a867?String(_0x10a867[_0x2b1205(0x509)]):''));if(_0x2ac253)return loggerFor(this)[_0x2b1205(0x648)]('['+_0x16c761+_0x2b1205(0x20f)+(_0x36f5e9?_0x2b1205(0x161):'failed')+'\x20-\x20'+_0x307adb),loggerFor(this)[_0x2b1205(0x134)]('['+_0x16c761+_0x2b1205(0x20f)+(_0x36f5e9?'timed\x20out':_0x2b1205(0x199))+'\x20('+_0x307adb+')',formatRequestDetails({'retryOfRequestLogID':_0x283d22,'url':_0x1fea68,'durationMs':_0x3cedc8-_0x56c685,'message':_0x10a867[_0x2b1205(0x3b6)]})),this['retryRequest'](_0x58a555,_0x2ac253,_0x283d22!==null&&_0x283d22!==void 0x0?_0x283d22:_0x16c761);loggerFor(this)[_0x2b1205(0x648)]('['+_0x16c761+_0x2b1205(0x20f)+(_0x36f5e9?_0x2b1205(0x161):'failed')+_0x2b1205(0x23b)),loggerFor(this)[_0x2b1205(0x134)]('['+_0x16c761+_0x2b1205(0x20f)+(_0x36f5e9?_0x2b1205(0x161):_0x2b1205(0x199))+_0x2b1205(0x40e),formatRequestDetails({'retryOfRequestLogID':_0x283d22,'url':_0x1fea68,'durationMs':_0x3cedc8-_0x56c685,'message':_0x10a867[_0x2b1205(0x3b6)]}));if(_0x36f5e9)throw new APIConnectionTimeoutError();throw new APIConnectionError({'cause':_0x10a867});}const _0xa06220='['+_0x16c761+_0x4db2b9+']\x20'+_0x45c8a7[_0x2b1205(0x2a1)]+'\x20'+_0x1fea68+'\x20'+(_0x10a867['ok']?_0x2b1205(0xec):'failed')+'\x20with\x20status\x20'+_0x10a867[_0x2b1205(0x3d4)]+_0x2b1205(0x486)+(_0x3cedc8-_0x56c685)+'ms';if(!_0x10a867['ok']){const _0x4edca5=await this[_0x2b1205(0xac)](_0x10a867);if(_0x2ac253&&_0x4edca5){const _0x5211ce=_0x2b1205(0x3e1)+_0x2ac253+'\x20attempts\x20remaining';return await CancelReadableStream(_0x10a867[_0x2b1205(0x31f)]),loggerFor(this)['info'](_0xa06220+_0x2b1205(0x2e4)+_0x5211ce),loggerFor(this)[_0x2b1205(0x134)]('['+_0x16c761+_0x2b1205(0x6b4)+_0x5211ce+')',formatRequestDetails({'retryOfRequestLogID':_0x283d22,'url':_0x10a867[_0x2b1205(0x2ef)],'status':_0x10a867[_0x2b1205(0x3d4)],'headers':_0x10a867[_0x2b1205(0x438)],'durationMs':_0x3cedc8-_0x56c685})),this[_0x2b1205(0x320)](_0x58a555,_0x2ac253,_0x283d22!==null&&_0x283d22!==void 0x0?_0x283d22:_0x16c761,_0x10a867['headers']);}const _0x5c109e=_0x4edca5?_0x2b1205(0x468):_0x2b1205(0x330);loggerFor(this)[_0x2b1205(0x648)](_0xa06220+'\x20-\x20'+_0x5c109e);const _0xc994bf=await _0x10a867['text']()[_0x2b1205(0x29e)](_0x468348=>castToError(_0x468348)[_0x2b1205(0x3b6)]),_0xa177e6=safeJSON(_0xc994bf),_0x569b5f=_0xa177e6?undefined:_0xc994bf;loggerFor(this)[_0x2b1205(0x134)]('['+_0x16c761+_0x2b1205(0x6b4)+_0x5c109e+')',formatRequestDetails({'retryOfRequestLogID':_0x283d22,'url':_0x10a867[_0x2b1205(0x2ef)],'status':_0x10a867[_0x2b1205(0x3d4)],'headers':_0x10a867[_0x2b1205(0x438)],'message':_0x569b5f,'durationMs':Date[_0x2b1205(0x504)]()-_0x56c685}));const _0x4cb816=this['makeStatusError'](_0x10a867[_0x2b1205(0x3d4)],_0xa177e6,_0x569b5f,_0x10a867[_0x2b1205(0x438)]);throw _0x4cb816;}return loggerFor(this)['info'](_0xa06220),loggerFor(this)[_0x2b1205(0x134)]('['+_0x16c761+_0x2b1205(0x176),formatRequestDetails({'retryOfRequestLogID':_0x283d22,'url':_0x10a867[_0x2b1205(0x2ef)],'status':_0x10a867[_0x2b1205(0x3d4)],'headers':_0x10a867[_0x2b1205(0x438)],'durationMs':_0x3cedc8-_0x56c685})),{'response':_0x10a867,'options':_0x58a555,'controller':_0x411769,'requestLogID':_0x16c761,'retryOfRequestLogID':_0x283d22,'startTime':_0x56c685};}async[a2_0x8e922d(0x56c)](_0x298545,_0x1a9f86,_0x459837,_0x1d2b3a){const _0x13df23=a2_0x8e922d,_0x40b2c9=_0x1a9f86||{},{signal:_0x16d901,method:_0x535b8a}=_0x40b2c9,_0x3ccf11=__rest(_0x40b2c9,[_0x13df23(0x216),_0x13df23(0x2a1)]),_0x15a0fd=_0x1d2b3a['abort'][_0x13df23(0x3ea)](_0x1d2b3a);if(_0x16d901)_0x16d901[_0x13df23(0x5d1)](_0x13df23(0x4b5),_0x15a0fd,{'once':!![]});const _0x257e58=setTimeout(_0x15a0fd,_0x459837),_0x182e9d=globalThis['ReadableStream']&&_0x3ccf11[_0x13df23(0x31f)]instanceof globalThis[_0x13df23(0x562)]||typeof _0x3ccf11[_0x13df23(0x31f)]===_0x13df23(0x515)&&_0x3ccf11['body']!==null&&Symbol[_0x13df23(0x4f2)]in _0x3ccf11['body'],_0x4a204e=Object[_0x13df23(0x289)](Object[_0x13df23(0x289)](Object[_0x13df23(0x289)]({'signal':_0x1d2b3a[_0x13df23(0x216)]},_0x182e9d?{'duplex':_0x13df23(0x5e9)}:{}),{'method':_0x13df23(0x375)}),_0x3ccf11);_0x535b8a&&(_0x4a204e[_0x13df23(0x2a1)]=_0x535b8a[_0x13df23(0x2d9)]());try{return await this[_0x13df23(0x5ba)][_0x13df23(0x168)](undefined,_0x298545,_0x4a204e);}finally{clearTimeout(_0x257e58);}}async[a2_0x8e922d(0xac)](_0x2cc33c){const _0x387ab1=a2_0x8e922d,_0x385f1e=_0x2cc33c['headers'][_0x387ab1(0x661)](_0x387ab1(0x4ab));if(_0x385f1e===_0x387ab1(0x692))return!![];if(_0x385f1e===_0x387ab1(0x194))return![];if(_0x2cc33c[_0x387ab1(0x3d4)]===0x198)return!![];if(_0x2cc33c[_0x387ab1(0x3d4)]===0x199)return!![];if(_0x2cc33c[_0x387ab1(0x3d4)]===0x1ad)return!![];if(_0x2cc33c[_0x387ab1(0x3d4)]>=0x1f4)return!![];return![];}async['retryRequest'](_0x5df294,_0x2d2fdf,_0x3e5657,_0x2142ba){const _0x4f354b=a2_0x8e922d;var _0x4decd4;let _0x307607;const _0x39156b=_0x2142ba===null||_0x2142ba===void 0x0?void 0x0:_0x2142ba[_0x4f354b(0x661)](_0x4f354b(0x680));if(_0x39156b){const _0xc275f2=parseFloat(_0x39156b);!Number[_0x4f354b(0x17e)](_0xc275f2)&&(_0x307607=_0xc275f2);}const _0xda35f5=_0x2142ba===null||_0x2142ba===void 0x0?void 0x0:_0x2142ba['get'](_0x4f354b(0x127));if(_0xda35f5&&!_0x307607){const _0x1a9ed7=parseFloat(_0xda35f5);!Number[_0x4f354b(0x17e)](_0x1a9ed7)?_0x307607=_0x1a9ed7*0x3e8:_0x307607=Date[_0x4f354b(0x4bf)](_0xda35f5)-Date[_0x4f354b(0x504)]();}if(!(_0x307607&&0x0<=_0x307607&&_0x307607<0x3c*0x3e8)){const _0x549043=(_0x4decd4=_0x5df294[_0x4f354b(0x51c)])!==null&&_0x4decd4!==void 0x0?_0x4decd4:this[_0x4f354b(0x51c)];_0x307607=this[_0x4f354b(0x565)](_0x2d2fdf,_0x549043);}return await sleep$1(_0x307607),this[_0x4f354b(0x311)](_0x5df294,_0x2d2fdf-0x1,_0x3e5657);}['calculateDefaultRetryTimeoutMillis'](_0xd43750,_0x48f634){const _0x1b29ac=a2_0x8e922d,_0x3fe3f7=0.5,_0x3a1261=0x8,_0x5346e3=_0x48f634-_0xd43750,_0x3b4292=Math[_0x1b29ac(0x27d)](_0x3fe3f7*Math[_0x1b29ac(0x3a7)](0x2,_0x5346e3),_0x3a1261),_0x39d784=0x1-Math[_0x1b29ac(0x5df)]()*0.25;return _0x3b4292*_0x39d784*0x3e8;}async['buildRequest'](_0x1c696b,{retryCount:retryCount=0x0}={}){const _0x46327e=a2_0x8e922d;var _0x5d5264,_0xa7e74f,_0x21c042;const _0x989c7a=Object[_0x46327e(0x289)]({},_0x1c696b),{method:_0x40ec08,path:_0x36862a,query:_0x2ab51a,defaultBaseURL:_0x8bb35f}=_0x989c7a,_0x17e740=this['buildURL'](_0x36862a,_0x2ab51a,_0x8bb35f);if(_0x46327e(0x258)in _0x989c7a)validatePositiveInteger(_0x46327e(0x258),_0x989c7a['timeout']);_0x989c7a[_0x46327e(0x258)]=(_0x5d5264=_0x989c7a[_0x46327e(0x258)])!==null&&_0x5d5264!==void 0x0?_0x5d5264:this['timeout'];const {bodyHeaders:_0x54494a,body:_0x2ff952}=this['buildBody']({'options':_0x989c7a}),_0x2f837c=await this[_0x46327e(0x385)]({'options':_0x1c696b,'method':_0x40ec08,'bodyHeaders':_0x54494a,'retryCount':retryCount}),_0x4ca61f=Object['assign'](Object[_0x46327e(0x289)](Object[_0x46327e(0x289)](Object[_0x46327e(0x289)](Object[_0x46327e(0x289)]({'method':_0x40ec08,'headers':_0x2f837c},_0x989c7a[_0x46327e(0x216)]&&{'signal':_0x989c7a['signal']}),globalThis[_0x46327e(0x562)]&&_0x2ff952 instanceof globalThis[_0x46327e(0x562)]&&{'duplex':'half'}),_0x2ff952&&{'body':_0x2ff952}),(_0xa7e74f=this['fetchOptions'])!==null&&_0xa7e74f!==void 0x0?_0xa7e74f:{}),(_0x21c042=_0x989c7a[_0x46327e(0x152)])!==null&&_0x21c042!==void 0x0?_0x21c042:{});return{'req':_0x4ca61f,'url':_0x17e740,'timeout':_0x989c7a[_0x46327e(0x258)]};}async[a2_0x8e922d(0x385)]({options:_0x59e8a6,method:_0x21cb5e,bodyHeaders:_0x565df3,retryCount:_0x5af022}){const _0xcd3800=a2_0x8e922d;let _0x3bc8cc={};if(this[_0xcd3800(0x2f0)]&&_0x21cb5e!==_0xcd3800(0x661)){if(!_0x59e8a6['idempotencyKey'])_0x59e8a6[_0xcd3800(0x18c)]=this[_0xcd3800(0x600)]();_0x3bc8cc[this[_0xcd3800(0x2f0)]]=_0x59e8a6[_0xcd3800(0x18c)];}const _0x4d4637=await this['authHeaders'](_0x59e8a6);let _0x4db1a3=buildHeaders([_0x3bc8cc,Object[_0xcd3800(0x289)](Object[_0xcd3800(0x289)]({'Accept':_0xcd3800(0x149),'User-Agent':this['getUserAgent'](),'X-Stainless-Retry-Count':String(_0x5af022)},_0x59e8a6[_0xcd3800(0x258)]?{'X-Stainless-Timeout':String(Math[_0xcd3800(0x25d)](_0x59e8a6[_0xcd3800(0x258)]/0x3e8))}:{}),getPlatformHeaders()),this[_0xcd3800(0x2d6)][_0xcd3800(0x57f)],_0x565df3,_0x59e8a6[_0xcd3800(0x438)],_0x4d4637]);return this[_0xcd3800(0x634)](_0x4db1a3),_0x4db1a3[_0xcd3800(0x4d2)];}[a2_0x8e922d(0x271)]({options:{body:_0x1945dc,headers:_0xd5c002}}){const _0x25b448=a2_0x8e922d;if(!_0x1945dc)return{'bodyHeaders':undefined,'body':undefined};const _0x1143cb=buildHeaders([_0xd5c002]);if(ArrayBuffer[_0x25b448(0x310)](_0x1945dc)||_0x1945dc instanceof ArrayBuffer||_0x1945dc instanceof DataView||typeof _0x1945dc==='string'&&_0x1143cb[_0x25b448(0x4d2)][_0x25b448(0x4b7)]('content-type')||globalThis[_0x25b448(0x2ac)]&&_0x1945dc instanceof globalThis[_0x25b448(0x2ac)]||_0x1945dc instanceof FormData||_0x1945dc instanceof URLSearchParams||globalThis['ReadableStream']&&_0x1945dc instanceof globalThis['ReadableStream'])return{'bodyHeaders':undefined,'body':_0x1945dc};else return typeof _0x1945dc===_0x25b448(0x515)&&(Symbol[_0x25b448(0x4f2)]in _0x1945dc||Symbol[_0x25b448(0x4b8)]in _0x1945dc&&'next'in _0x1945dc&&typeof _0x1945dc[_0x25b448(0x27b)]===_0x25b448(0x47f))?{'bodyHeaders':undefined,'body':ReadableStreamFrom(_0x1945dc)}:this[_0x25b448(0x13b)]({'body':_0x1945dc,'headers':_0x1143cb});}}BaseGeminiNextGenAPIClient[a2_0x8e922d(0x42e)]=0xea60;class GeminiNextGenAPIClient extends BaseGeminiNextGenAPIClient{constructor(){const _0x5cda10=a2_0x8e922d;super(...arguments),this[_0x5cda10(0x41f)]=new Interactions(this);}}_a=GeminiNextGenAPIClient,GeminiNextGenAPIClient[a2_0x8e922d(0x6b1)]=_a,GeminiNextGenAPIClient['GeminiNextGenAPIClientError']=GeminiNextGenAPIClientError,GeminiNextGenAPIClient[a2_0x8e922d(0x309)]=APIError,GeminiNextGenAPIClient[a2_0x8e922d(0x4a3)]=APIConnectionError,GeminiNextGenAPIClient['APIConnectionTimeoutError']=APIConnectionTimeoutError,GeminiNextGenAPIClient[a2_0x8e922d(0xe7)]=APIUserAbortError,GeminiNextGenAPIClient['NotFoundError']=NotFoundError,GeminiNextGenAPIClient['ConflictError']=ConflictError,GeminiNextGenAPIClient[a2_0x8e922d(0x4d9)]=RateLimitError,GeminiNextGenAPIClient[a2_0x8e922d(0x553)]=BadRequestError,GeminiNextGenAPIClient[a2_0x8e922d(0x129)]=AuthenticationError,GeminiNextGenAPIClient[a2_0x8e922d(0x3d5)]=InternalServerError,GeminiNextGenAPIClient[a2_0x8e922d(0x52d)]=PermissionDeniedError,GeminiNextGenAPIClient[a2_0x8e922d(0xe3)]=UnprocessableEntityError,GeminiNextGenAPIClient['toFile']=toFile,GeminiNextGenAPIClient[a2_0x8e922d(0x5bc)]=Interactions;/**
|
|
242
|
+
* @license
|
|
243
|
+
* Copyright 2025 Google LLC
|
|
244
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
245
|
+
*/
|
|
246
|
+
const GOOGLE_API_KEY_HEADER='x-goog-api-key',REQUIRED_VERTEX_AI_SCOPE='https://www.googleapis.com/auth/cloud-platform';class NodeAuth{constructor(_0x4a92c4){const _0x3f5a2e=a2_0x8e922d;if(_0x4a92c4[_0x3f5a2e(0x362)]!==undefined){this[_0x3f5a2e(0x362)]=_0x4a92c4['apiKey'];return;}const _0x5d196c=buildGoogleAuthOptions(_0x4a92c4['googleAuthOptions']);this[_0x3f5a2e(0x54a)]=new googleAuthLibrary[(_0x3f5a2e(0x290))](_0x5d196c);}async[a2_0x8e922d(0x525)](_0x47d171,_0x2b4445){const _0x535dd8=a2_0x8e922d;if(this[_0x535dd8(0x362)]!==undefined){if(this[_0x535dd8(0x362)]['startsWith']('auth_tokens/'))throw new Error(_0x535dd8(0x462));this['addKeyHeader'](_0x47d171);return;}return this['addGoogleAuthHeaders'](_0x47d171,_0x2b4445);}[a2_0x8e922d(0x1f4)](_0x4c8697){const _0x3c6d5f=a2_0x8e922d;if(_0x4c8697[_0x3c6d5f(0x661)](GOOGLE_API_KEY_HEADER)!==null)return;if(this[_0x3c6d5f(0x362)]===undefined)throw new Error('Trying\x20to\x20set\x20API\x20key\x20header\x20but\x20apiKey\x20is\x20not\x20set');_0x4c8697[_0x3c6d5f(0x246)](GOOGLE_API_KEY_HEADER,this[_0x3c6d5f(0x362)]);}async[a2_0x8e922d(0x195)](_0x21d2ac,_0x523d44){const _0x346df1=a2_0x8e922d;if(this[_0x346df1(0x54a)]===undefined)throw new Error(_0x346df1(0x3f1));const _0x241dc5=await this['googleAuth'][_0x346df1(0x148)](_0x523d44);for(const [_0xeaba01,_0x475bff]of _0x241dc5){if(_0x21d2ac[_0x346df1(0x661)](_0xeaba01)!==null)continue;_0x21d2ac[_0x346df1(0x246)](_0xeaba01,_0x475bff);}}}function buildGoogleAuthOptions(_0x385a3f){const _0x53e2a6=a2_0x8e922d;let _0x8add71;if(!_0x385a3f)return _0x8add71={'scopes':[REQUIRED_VERTEX_AI_SCOPE]},_0x8add71;else{_0x8add71=_0x385a3f;if(!_0x8add71[_0x53e2a6(0x150)])return _0x8add71['scopes']=[REQUIRED_VERTEX_AI_SCOPE],_0x8add71;else{if(typeof _0x8add71['scopes']==='string'&&_0x8add71[_0x53e2a6(0x150)]!==REQUIRED_VERTEX_AI_SCOPE||Array[_0x53e2a6(0x266)](_0x8add71['scopes'])&&_0x8add71[_0x53e2a6(0x150)]['indexOf'](REQUIRED_VERTEX_AI_SCOPE)<0x0)throw new Error(_0x53e2a6(0x526)+REQUIRED_VERTEX_AI_SCOPE);}return _0x8add71;}}/**
|
|
247
|
+
* @license
|
|
248
|
+
* Copyright 2025 Google LLC
|
|
249
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
250
|
+
*/
|
|
251
|
+
class NodeDownloader{async[a2_0x8e922d(0x669)](_0x114ccf,_0x45002b){const _0xdaedde=a2_0x8e922d;if(_0x114ccf[_0xdaedde(0x5b4)]){const _0x4d67c8=await downloadFile(_0x114ccf,_0x45002b);if(_0x4d67c8 instanceof HttpResponse){const _0x519634=fs[_0xdaedde(0x2e9)](_0x114ccf['downloadPath']),_0x55b6d6=node_stream[_0xdaedde(0x64d)][_0xdaedde(0x322)](_0x4d67c8[_0xdaedde(0x2ec)][_0xdaedde(0x31f)]);_0x55b6d6[_0xdaedde(0x378)](_0x519634),await promises['finished'](_0x519634);}else try{await fs$1[_0xdaedde(0x317)](_0x114ccf[_0xdaedde(0x5b4)],_0x4d67c8,{'encoding':'base64'});}catch(_0x441068){throw new Error(_0xdaedde(0x470)+_0x114ccf[_0xdaedde(0x5b4)]+':\x20'+_0x441068);}}}}async function downloadFile(_0x2b11a0,_0x2dca87){const _0x49e66b=a2_0x8e922d;var _0x5af92f,_0x19eaae,_0x46aeb9;const _0xb2388c=tFileName(_0x2b11a0['file']);if(_0xb2388c!==undefined)return await _0x2dca87['request']({'path':_0x49e66b(0x11a)+_0xb2388c+_0x49e66b(0x303),'httpMethod':_0x49e66b(0x375),'queryParams':{'alt':_0x49e66b(0x690)},'httpOptions':(_0x5af92f=_0x2b11a0['config'])===null||_0x5af92f===void 0x0?void 0x0:_0x5af92f['httpOptions'],'abortSignal':(_0x19eaae=_0x2b11a0[_0x49e66b(0x182)])===null||_0x19eaae===void 0x0?void 0x0:_0x19eaae['abortSignal']});else{if(isGeneratedVideo(_0x2b11a0[_0x49e66b(0x52f)])){const _0x3b106d=(_0x46aeb9=_0x2b11a0['file']['video'])===null||_0x46aeb9===void 0x0?void 0x0:_0x46aeb9[_0x49e66b(0x426)];if(typeof _0x3b106d===_0x49e66b(0x68f))return _0x3b106d;else throw new Error(_0x49e66b(0xf2));}else{if(isVideo(_0x2b11a0[_0x49e66b(0x52f)])){const _0x3e7ea6=_0x2b11a0['file'][_0x49e66b(0x426)];if(typeof _0x3e7ea6===_0x49e66b(0x68f))return _0x3e7ea6;else throw new Error(_0x49e66b(0x2b1));}else throw new Error(_0x49e66b(0x282));}}}/**
|
|
252
|
+
* @license
|
|
253
|
+
* Copyright 2025 Google LLC
|
|
254
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
255
|
+
*/
|
|
256
|
+
class NodeWebSocketFactory{[a2_0x8e922d(0x5da)](_0x2f8b6d,_0x4ff5cb,_0x27ce68){return new NodeWebSocket(_0x2f8b6d,_0x4ff5cb,_0x27ce68);}}class NodeWebSocket{constructor(_0x1fd2d3,_0x174ec3,_0x144b4d){const _0x4355b6=a2_0x8e922d;this['url']=_0x1fd2d3,this[_0x4355b6(0x438)]=_0x174ec3,this[_0x4355b6(0x235)]=_0x144b4d;}[a2_0x8e922d(0x3c8)](){const _0x178c2c=a2_0x8e922d;this['ws']=new NodeWs__namespace[(_0x178c2c(0x4cc))](this[_0x178c2c(0x2ef)],{'headers':this[_0x178c2c(0x438)]}),this['ws']['onopen']=this[_0x178c2c(0x235)][_0x178c2c(0x57a)],this['ws'][_0x178c2c(0x3ff)]=this[_0x178c2c(0x235)][_0x178c2c(0x3ff)],this['ws']['onclose']=this[_0x178c2c(0x235)][_0x178c2c(0x691)],this['ws']['onmessage']=this[_0x178c2c(0x235)][_0x178c2c(0x63f)];}[a2_0x8e922d(0x109)](_0x3a2d7c){const _0x119c64=a2_0x8e922d;if(this['ws']===undefined)throw new Error(_0x119c64(0x66e));this['ws']['send'](_0x3a2d7c);}['close'](){const _0x207c08=a2_0x8e922d;if(this['ws']===undefined)throw new Error(_0x207c08(0x66e));this['ws'][_0x207c08(0x2f3)]();}}/**
|
|
257
|
+
* @license
|
|
258
|
+
* Copyright 2025 Google LLC
|
|
259
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
260
|
+
*/
|
|
261
|
+
function cancelTuningJobParametersToMldev(_0xb69338,_0x13a185){const _0x20e858={},_0x850e2f=getValueByPath(_0xb69338,['name']);return _0x850e2f!=null&&setValueByPath(_0x20e858,['_url','name'],_0x850e2f),_0x20e858;}function cancelTuningJobParametersToVertex(_0x26b289,_0x38c42f){const _0x36a63c=a2_0x8e922d,_0x56685e={},_0x298ad6=getValueByPath(_0x26b289,[_0x36a63c(0x206)]);return _0x298ad6!=null&&setValueByPath(_0x56685e,['_url',_0x36a63c(0x206)],_0x298ad6),_0x56685e;}function cancelTuningJobResponseFromMldev(_0x4bd941,_0x14263b){const _0x3c0261=a2_0x8e922d,_0x3a7cc6={},_0x500463=getValueByPath(_0x4bd941,['sdkHttpResponse']);return _0x500463!=null&&setValueByPath(_0x3a7cc6,[_0x3c0261(0x3a0)],_0x500463),_0x3a7cc6;}function cancelTuningJobResponseFromVertex(_0x39d243,_0x470c55){const _0x3dac1c=a2_0x8e922d,_0x4bec45={},_0x4b6db4=getValueByPath(_0x39d243,[_0x3dac1c(0x3a0)]);return _0x4b6db4!=null&&setValueByPath(_0x4bec45,[_0x3dac1c(0x3a0)],_0x4b6db4),_0x4bec45;}function createTuningJobConfigToMldev(_0x28dc69,_0x5c0dbd,_0x4ce54d){const _0x229392=a2_0x8e922d,_0x163293={};if(getValueByPath(_0x28dc69,[_0x229392(0x26f)])!==undefined)throw new Error('validationDataset\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x116624=getValueByPath(_0x28dc69,[_0x229392(0x128)]);_0x5c0dbd!==undefined&&_0x116624!=null&&setValueByPath(_0x5c0dbd,['displayName'],_0x116624);if(getValueByPath(_0x28dc69,[_0x229392(0x4ea)])!==undefined)throw new Error(_0x229392(0x20e));const _0x542c51=getValueByPath(_0x28dc69,[_0x229392(0x350)]);_0x5c0dbd!==undefined&&_0x542c51!=null&&setValueByPath(_0x5c0dbd,[_0x229392(0x59d),_0x229392(0x41c),'epochCount'],_0x542c51);const _0x4d09db=getValueByPath(_0x28dc69,[_0x229392(0x5c7)]);_0x4d09db!=null&&setValueByPath(_0x163293,[_0x229392(0x59d),_0x229392(0x41c),_0x229392(0x5c7)],_0x4d09db);if(getValueByPath(_0x28dc69,['exportLastCheckpointOnly'])!==undefined)throw new Error(_0x229392(0x4fe));if(getValueByPath(_0x28dc69,[_0x229392(0xc7)])!==undefined)throw new Error(_0x229392(0x58e));if(getValueByPath(_0x28dc69,[_0x229392(0x55f)])!==undefined)throw new Error('adapterSize\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x28dc69,[_0x229392(0x163)])!==undefined)throw new Error('tuningMode\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x28dc69,['customBaseModel'])!==undefined)throw new Error(_0x229392(0x10f));const _0x40811d=getValueByPath(_0x28dc69,[_0x229392(0x1c3)]);_0x5c0dbd!==undefined&&_0x40811d!=null&&setValueByPath(_0x5c0dbd,['tuningTask',_0x229392(0x41c),_0x229392(0x1c3)],_0x40811d);const _0x31e1cc=getValueByPath(_0x28dc69,[_0x229392(0xba)]);_0x5c0dbd!==undefined&&_0x31e1cc!=null&&setValueByPath(_0x5c0dbd,[_0x229392(0x59d),_0x229392(0x41c),_0x229392(0xba)],_0x31e1cc);if(getValueByPath(_0x28dc69,[_0x229392(0xee)])!==undefined)throw new Error(_0x229392(0x696));if(getValueByPath(_0x28dc69,[_0x229392(0x27f)])!==undefined)throw new Error(_0x229392(0x429));if(getValueByPath(_0x28dc69,[_0x229392(0xd2)])!==undefined)throw new Error(_0x229392(0x28d));if(getValueByPath(_0x28dc69,[_0x229392(0x2c4)])!==undefined)throw new Error(_0x229392(0xbd));if(getValueByPath(_0x28dc69,[_0x229392(0x2d5)])!==undefined)throw new Error(_0x229392(0x1f0));if(getValueByPath(_0x28dc69,[_0x229392(0x4c0)])!==undefined)throw new Error(_0x229392(0x1ee));return _0x163293;}function createTuningJobConfigToVertex(_0x2fb2fc,_0x1e5c2c,_0x1cf2e0){const _0x1de344=a2_0x8e922d,_0x29e244={};let _0x2f0ea6=getValueByPath(_0x1cf2e0,['config',_0x1de344(0x2a1)]);_0x2f0ea6===undefined&&(_0x2f0ea6=_0x1de344(0x26b));if(_0x2f0ea6==='SUPERVISED_FINE_TUNING'){const _0x2864b5=getValueByPath(_0x2fb2fc,['validationDataset']);_0x1e5c2c!==undefined&&_0x2864b5!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1)],tuningValidationDatasetToVertex(_0x2864b5));}else{if(_0x2f0ea6===_0x1de344(0xf6)){const _0x4829c6=getValueByPath(_0x2fb2fc,['validationDataset']);_0x1e5c2c!==undefined&&_0x4829c6!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x2dc)],tuningValidationDatasetToVertex(_0x4829c6));}else{if(_0x2f0ea6===_0x1de344(0x5fa)){const _0x46175c=getValueByPath(_0x2fb2fc,[_0x1de344(0x26f)]);_0x1e5c2c!==undefined&&_0x46175c!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x36e)],tuningValidationDatasetToVertex(_0x46175c));}}}const _0x5234e9=getValueByPath(_0x2fb2fc,['tunedModelDisplayName']);_0x1e5c2c!==undefined&&_0x5234e9!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x128)],_0x5234e9);const _0xe282f=getValueByPath(_0x2fb2fc,[_0x1de344(0x4ea)]);_0x1e5c2c!==undefined&&_0xe282f!=null&&setValueByPath(_0x1e5c2c,['description'],_0xe282f);let _0x473dd0=getValueByPath(_0x1cf2e0,[_0x1de344(0x182),_0x1de344(0x2a1)]);_0x473dd0===undefined&&(_0x473dd0='SUPERVISED_FINE_TUNING');if(_0x473dd0===_0x1de344(0x26b)){const _0x1eac7a=getValueByPath(_0x2fb2fc,[_0x1de344(0x350)]);_0x1e5c2c!==undefined&&_0x1eac7a!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),_0x1de344(0x5d7),_0x1de344(0x350)],_0x1eac7a);}else{if(_0x473dd0===_0x1de344(0xf6)){const _0x3c8529=getValueByPath(_0x2fb2fc,[_0x1de344(0x350)]);_0x1e5c2c!==undefined&&_0x3c8529!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x2dc),_0x1de344(0x5d7),_0x1de344(0x350)],_0x3c8529);}else{if(_0x473dd0===_0x1de344(0x5fa)){const _0x39b5e9=getValueByPath(_0x2fb2fc,[_0x1de344(0x350)]);_0x1e5c2c!==undefined&&_0x39b5e9!=null&&setValueByPath(_0x1e5c2c,['distillationSpec','hyperParameters',_0x1de344(0x350)],_0x39b5e9);}}}let _0x39bd6f=getValueByPath(_0x1cf2e0,[_0x1de344(0x182),'method']);_0x39bd6f===undefined&&(_0x39bd6f=_0x1de344(0x26b));if(_0x39bd6f===_0x1de344(0x26b)){const _0x1470ae=getValueByPath(_0x2fb2fc,['learningRateMultiplier']);_0x1e5c2c!==undefined&&_0x1470ae!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),_0x1de344(0x5d7),_0x1de344(0x5c7)],_0x1470ae);}else{if(_0x39bd6f===_0x1de344(0xf6)){const _0x3e66a7=getValueByPath(_0x2fb2fc,[_0x1de344(0x5c7)]);_0x1e5c2c!==undefined&&_0x3e66a7!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x2dc),_0x1de344(0x5d7),_0x1de344(0x5c7)],_0x3e66a7);}else{if(_0x39bd6f===_0x1de344(0x5fa)){const _0x4b8f08=getValueByPath(_0x2fb2fc,[_0x1de344(0x5c7)]);_0x1e5c2c!==undefined&&_0x4b8f08!=null&&setValueByPath(_0x1e5c2c,['distillationSpec','hyperParameters',_0x1de344(0x5c7)],_0x4b8f08);}}}let _0x258c6c=getValueByPath(_0x1cf2e0,[_0x1de344(0x182),_0x1de344(0x2a1)]);_0x258c6c===undefined&&(_0x258c6c=_0x1de344(0x26b));if(_0x258c6c==='SUPERVISED_FINE_TUNING'){const _0x387e38=getValueByPath(_0x2fb2fc,[_0x1de344(0x105)]);_0x1e5c2c!==undefined&&_0x387e38!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),_0x1de344(0x105)],_0x387e38);}else{if(_0x258c6c===_0x1de344(0xf6)){const _0x3750e7=getValueByPath(_0x2fb2fc,[_0x1de344(0x105)]);_0x1e5c2c!==undefined&&_0x3750e7!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x2dc),_0x1de344(0x105)],_0x3750e7);}else{if(_0x258c6c===_0x1de344(0x5fa)){const _0x5a6644=getValueByPath(_0x2fb2fc,[_0x1de344(0x105)]);_0x1e5c2c!==undefined&&_0x5a6644!=null&&setValueByPath(_0x1e5c2c,['distillationSpec',_0x1de344(0x105)],_0x5a6644);}}}let _0x442057=getValueByPath(_0x1cf2e0,['config',_0x1de344(0x2a1)]);_0x442057===undefined&&(_0x442057=_0x1de344(0x26b));if(_0x442057==='SUPERVISED_FINE_TUNING'){const _0x4886ac=getValueByPath(_0x2fb2fc,[_0x1de344(0x55f)]);_0x1e5c2c!==undefined&&_0x4886ac!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),_0x1de344(0x5d7),'adapterSize'],_0x4886ac);}else{if(_0x442057===_0x1de344(0xf6)){const _0xe00646=getValueByPath(_0x2fb2fc,['adapterSize']);_0x1e5c2c!==undefined&&_0xe00646!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x2dc),_0x1de344(0x5d7),_0x1de344(0x55f)],_0xe00646);}else{if(_0x442057==='DISTILLATION'){const _0x287e5a=getValueByPath(_0x2fb2fc,[_0x1de344(0x55f)]);_0x1e5c2c!==undefined&&_0x287e5a!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x36e),_0x1de344(0x5d7),_0x1de344(0x55f)],_0x287e5a);}}}let _0x588573=getValueByPath(_0x1cf2e0,['config',_0x1de344(0x2a1)]);_0x588573===undefined&&(_0x588573='SUPERVISED_FINE_TUNING');if(_0x588573===_0x1de344(0x26b)){const _0x3c307e=getValueByPath(_0x2fb2fc,[_0x1de344(0x163)]);_0x1e5c2c!==undefined&&_0x3c307e!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),'tuningMode'],_0x3c307e);}const _0x5bbb9c=getValueByPath(_0x2fb2fc,[_0x1de344(0x343)]);_0x1e5c2c!==undefined&&_0x5bbb9c!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x343)],_0x5bbb9c);let _0x48bd90=getValueByPath(_0x1cf2e0,[_0x1de344(0x182),_0x1de344(0x2a1)]);_0x48bd90===undefined&&(_0x48bd90='SUPERVISED_FINE_TUNING');if(_0x48bd90==='SUPERVISED_FINE_TUNING'){const _0x234300=getValueByPath(_0x2fb2fc,[_0x1de344(0x1c3)]);_0x1e5c2c!==undefined&&_0x234300!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),'hyperParameters',_0x1de344(0x1c3)],_0x234300);}let _0x4be571=getValueByPath(_0x1cf2e0,[_0x1de344(0x182),_0x1de344(0x2a1)]);_0x4be571===undefined&&(_0x4be571=_0x1de344(0x26b));if(_0x4be571===_0x1de344(0x26b)){const _0xceb689=getValueByPath(_0x2fb2fc,[_0x1de344(0xba)]);_0x1e5c2c!==undefined&&_0xceb689!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x4d1),'hyperParameters',_0x1de344(0xba)],_0xceb689);}const _0x27ad51=getValueByPath(_0x2fb2fc,[_0x1de344(0xee)]);_0x1e5c2c!==undefined&&_0x27ad51!=null&&setValueByPath(_0x1e5c2c,['labels'],_0x27ad51);const _0x5222bf=getValueByPath(_0x2fb2fc,[_0x1de344(0x27f)]);_0x1e5c2c!==undefined&&_0x5222bf!=null&&setValueByPath(_0x1e5c2c,['preferenceOptimizationSpec','hyperParameters',_0x1de344(0x27f)],_0x5222bf);const _0x5de21c=getValueByPath(_0x2fb2fc,['baseTeacherModel']);_0x1e5c2c!==undefined&&_0x5de21c!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x36e),_0x1de344(0xd2)],_0x5de21c);const _0x143e12=getValueByPath(_0x2fb2fc,['tunedTeacherModelSource']);_0x1e5c2c!==undefined&&_0x143e12!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x36e),_0x1de344(0x2c4)],_0x143e12);const _0x1ebea7=getValueByPath(_0x2fb2fc,[_0x1de344(0x2d5)]);_0x1e5c2c!==undefined&&_0x1ebea7!=null&&setValueByPath(_0x1e5c2c,[_0x1de344(0x36e),_0x1de344(0x5d7),_0x1de344(0x2d5)],_0x1ebea7);const _0x546057=getValueByPath(_0x2fb2fc,[_0x1de344(0x4c0)]);return _0x1e5c2c!==undefined&&_0x546057!=null&&setValueByPath(_0x1e5c2c,['outputUri'],_0x546057),_0x29e244;}function createTuningJobParametersPrivateToMldev(_0x13d10f,_0xd949ca){const _0x3dc608=a2_0x8e922d,_0x29655c={},_0x336187=getValueByPath(_0x13d10f,['baseModel']);_0x336187!=null&&setValueByPath(_0x29655c,[_0x3dc608(0x674)],_0x336187);const _0x5a7500=getValueByPath(_0x13d10f,[_0x3dc608(0x144)]);_0x5a7500!=null&&setValueByPath(_0x29655c,[_0x3dc608(0x144)],_0x5a7500);const _0x1d3d39=getValueByPath(_0x13d10f,[_0x3dc608(0x107)]);_0x1d3d39!=null&&tuningDatasetToMldev(_0x1d3d39);const _0x40c4da=getValueByPath(_0x13d10f,[_0x3dc608(0x182)]);return _0x40c4da!=null&&createTuningJobConfigToMldev(_0x40c4da,_0x29655c),_0x29655c;}function createTuningJobParametersPrivateToVertex(_0x3538fe,_0x884c91){const _0x2b21ed=a2_0x8e922d,_0x1d647d={},_0x21d2b2=getValueByPath(_0x3538fe,[_0x2b21ed(0x674)]);_0x21d2b2!=null&&setValueByPath(_0x1d647d,[_0x2b21ed(0x674)],_0x21d2b2);const _0x23495f=getValueByPath(_0x3538fe,[_0x2b21ed(0x144)]);_0x23495f!=null&&setValueByPath(_0x1d647d,['preTunedModel'],_0x23495f);const _0xe54130=getValueByPath(_0x3538fe,['trainingDataset']);_0xe54130!=null&&tuningDatasetToVertex(_0xe54130,_0x1d647d,_0x884c91);const _0x34c014=getValueByPath(_0x3538fe,[_0x2b21ed(0x182)]);return _0x34c014!=null&&createTuningJobConfigToVertex(_0x34c014,_0x1d647d,_0x884c91),_0x1d647d;}function getTuningJobParametersToMldev(_0x1e9d92,_0x3bad07){const _0x314a3=a2_0x8e922d,_0x4f0f32={},_0x31fa16=getValueByPath(_0x1e9d92,[_0x314a3(0x206)]);return _0x31fa16!=null&&setValueByPath(_0x4f0f32,[_0x314a3(0x334),_0x314a3(0x206)],_0x31fa16),_0x4f0f32;}function getTuningJobParametersToVertex(_0x52152d,_0x337d58){const _0x289078=a2_0x8e922d,_0x5d51b8={},_0x2fc460=getValueByPath(_0x52152d,['name']);return _0x2fc460!=null&&setValueByPath(_0x5d51b8,[_0x289078(0x334),_0x289078(0x206)],_0x2fc460),_0x5d51b8;}function listTuningJobsConfigToMldev(_0x21c3e4,_0x4d7a07,_0x46d47b){const _0x32b419=a2_0x8e922d,_0x37e43b={},_0x26dd03=getValueByPath(_0x21c3e4,[_0x32b419(0x546)]);_0x4d7a07!==undefined&&_0x26dd03!=null&&setValueByPath(_0x4d7a07,['_query',_0x32b419(0x546)],_0x26dd03);const _0x32a09a=getValueByPath(_0x21c3e4,[_0x32b419(0x193)]);_0x4d7a07!==undefined&&_0x32a09a!=null&&setValueByPath(_0x4d7a07,[_0x32b419(0xa9),_0x32b419(0x193)],_0x32a09a);const _0x3fe8ca=getValueByPath(_0x21c3e4,[_0x32b419(0x50e)]);return _0x4d7a07!==undefined&&_0x3fe8ca!=null&&setValueByPath(_0x4d7a07,[_0x32b419(0xa9),_0x32b419(0x50e)],_0x3fe8ca),_0x37e43b;}function listTuningJobsConfigToVertex(_0x2ad50a,_0x3f5a08,_0x2dd5b0){const _0x16e96c=a2_0x8e922d,_0x4a6f9c={},_0x2d1b9d=getValueByPath(_0x2ad50a,['pageSize']);_0x3f5a08!==undefined&&_0x2d1b9d!=null&&setValueByPath(_0x3f5a08,['_query',_0x16e96c(0x546)],_0x2d1b9d);const _0xd83f8=getValueByPath(_0x2ad50a,['pageToken']);_0x3f5a08!==undefined&&_0xd83f8!=null&&setValueByPath(_0x3f5a08,['_query',_0x16e96c(0x193)],_0xd83f8);const _0x285248=getValueByPath(_0x2ad50a,['filter']);return _0x3f5a08!==undefined&&_0x285248!=null&&setValueByPath(_0x3f5a08,['_query',_0x16e96c(0x50e)],_0x285248),_0x4a6f9c;}function listTuningJobsParametersToMldev(_0x287200,_0x3d56c8){const _0x3ce950=a2_0x8e922d,_0x5454bb={},_0x3724d8=getValueByPath(_0x287200,[_0x3ce950(0x182)]);return _0x3724d8!=null&&listTuningJobsConfigToMldev(_0x3724d8,_0x5454bb),_0x5454bb;}function a2_0x3ea7(){const _0x4082ef=['output','create','BACKGROUND','generateVideosInternal','tools[','number','random','active','RawReferenceImage','BLOCK_HIGH_AND_ABOVE','{model}','subjectImageConfig','CONTROL_TYPE_FACE_MESH','safetyRatings','upload/v1beta/files','requestInternal','half','nullable','FeatureSelectionPreference','font/otf','TextEncoder','CONTROL_TYPE_CANNY','logLevel','expireTime','endTime','PhishBlockThreshold','split','ADAPTER_SIZE_FOUR','fileSearchStoreName','SUBJECT_TYPE_ANIMAL','G_MAJOR_E_MINOR','B_MAJOR_A_FLAT_MINOR','maxPredictions','DISTILLATION','formatDestination','HTTP_IN_PATH','ASSET','PRIORITIZE_QUALITY','Live','defaultIdempotencyKey','FileSource','START_SENSITIVITY_UNSPECIFIED','_dest_','ACTIVITY_START','MEDIUM','baseSteps','Unsupported\x20source\x20for\x20Vertex\x20AI:\x20No\x20GCS\x20or\x20BigQuery\x20URI\x20found.','mcpToTool','src','predictions','page','imagePreservationFactor','Unknown','imageSize','__binaryResponse','bq://','207684dWXckI','ACTIVITY_END','editImageInternal','ImportFileOperation','decode','countTokens','paramsInternal','there\x20are\x20non-text\x20parts\x20','VOCALIZATION','REFERENCE_TYPE_STYLE','inputUri','MASK_MODE_USER_PROVIDED','startTime','HarmCategory','ADAPTER_SIZE_TWO','basename','getBaseResourcePath','node:stream/promises','NEGLIGIBLE','prompt','{model}:predict','Both\x20GOOGLE_API_KEY\x20and\x20GEMINI_API_KEY\x20are\x20set.\x20Using\x20GOOGLE_API_KEY.','prototype','searchParams','START_SENSITIVITY_HIGH','concat','generation_config','MAX_TOKENS','supportedGenerationMethods','5564120EkNHZe','format\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','contentType','auto','return','application/x-bzip','validateHeaders','includeExtraBodyToRequestInit:deepMerge:\x20Type\x20mismatch\x20for\x20key\x20\x22','HARM_BLOCK_THRESHOLD_UNSPECIFIED','PLAY','model','activityStart','application/vnd.amazon.ebook','utf-8','product','getReader','video/ogg','onmessage','video','HARM_CATEGORY_HARASSMENT','urlContext','thoughtSignature','ACTIVITY_HANDLING_UNSPECIFIED','experiment','\x20precedence\x20over\x20the\x20API\x20key\x20from\x20the\x20environment\x20variables.','batchPredictionJobs/{name}','info','Content-Type','VideoGenerationReferenceType','HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT','safetySettings','Readable','bytesBase64Encoded','B_FLAT_MAJOR_G_MINOR','uploadFileFromPathInternal','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','inlinedResponses','.\x20Overwriting.','ACTIVE',':uploadToFileSearchStore','sizeBytes','mediaChunks','generateImages','functionResponse','UploadToFileSearchStoreOperation','tuningDataStats','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).','excludeDomains','nextCursor','editConfig','confidenceThreshold','get','getBigqueryUri','Invalid\x20request:\x20specified\x20`model`\x20and\x20`agent_config`.\x20If\x20specifying\x20`model`,\x20use\x20`generation_config`.','slice','batches.createEmbeddings()\x20is\x20experimental\x20and\x20may\x20change\x20without\x20notice.','getHeadersInternal',']\x20sending\x20request','includeExtraHttpOptionsToRequestInit','download','registerFilesInternal','scribbleImage','OIDC_AUTH','MALFORMED_FUNCTION_CALL','WebSocket\x20is\x20not\x20connected','uploader','Function\x20call\x20name\x20was\x20not\x20returned\x20by\x20the\x20model.','generateContentStream','title','promptTokenCount','baseModel','Could\x20not\x20extract\x20file\x20name\x20from\x20URI\x20','Project/location\x20and\x20API\x20key\x20are\x20mutually\x20exclusive\x20in\x20the\x20client\x20initializer.','video/webm','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20function\x20calls\x20from\x20the\x20first\x20one.','enableEnhancedCivicAnswers','veoTuningSpec','initialize','Tokens','EDIT_MODE_CONTROLLED_EDITING','asResponse','padStart','retry-after-ms','trimStart','generatedImages','Please\x20set\x20\x27config.automaticFunctionCalling.disable\x27\x20to\x20true\x20to\x20disable\x20AFC\x20','contents','recordHistory','codeExecutionResult','isInteger','expected\x20header\x20name\x20to\x20be\x20a\x20string','MUSIC_GENERATION_MODE_UNSPECIFIED','unref','UploadToFileSearchStoreResponse','STOP','makeStatusError','Chat','string','media','onclose','true','chunkingConfig','parts','image/png','labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','google-genai-sdk/','image/gif','ADAPTER_SIZE_UNSPECIFIED','publishers/google/models','routingConfig','Could\x20not\x20extract\x20file\x20name\x20from\x20the\x20provided\x20input.','{name}','application/vnd.apple.installer+xml','fileName\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','node','computerUse','SUBJECT_TYPE_PERSON','lastFrame','defaultQuery','binaryColorThreshold','0.0.1','SIMPLE_SEARCH','gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Invalid\x20batch\x20job\x20name:\x20','Operations','candidatesTokenCount','OFF','value','imageBytes','[0]','outputAudioTranscription','GeminiNextGenAPIClient','keys','fileSearchStores',']\x20response\x20error\x20(','generateContent','access_token','_query','maxTemperature',';\x20constructor:\x20','shouldRetry','tools\x20is\x20required','automaticFunctionCallingHistory','HARM_CATEGORY_IMAGE_HATE','nameInternal','from','\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.','ALLOW_ALL','undefined','instancesFormat','alt','RECITATION','HttpElementLocation','resolve','learningRate','newSessionExpireTime','tuningJobs','tunedTeacherModelSource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','generateImagesInternal','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20valid\x20JSON\x20but\x20not\x20a\x20non-array\x20object.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','instances[]','pageInternalSize','responseTokenCount','HTTP_BASIC_AUTH','promptDatasetUri','format','final','preTunedModelCheckpointId','CONTROL_TYPE_SCRIBBLE','4304484erhOJW','AbortError','arm64','fps\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','createPartFromCodeExecutionResult','stringifyQuery','indexOf','systemInstruction','or\x20leave\x20\x27config.toolConfig.functionCallingConfig.streamFunctionCallArguments\x27\x20','baseTeacherModel','Request\x20body\x20should\x20be\x20empty\x20for\x20GET\x20request,\x20but\x20got\x20non\x20empty\x20request\x20body','raw','createInternal','tokenCount','HTTP_IN_BODY','ClientOptions.logLevel','speechConfig','application/xml','Server\x20did\x20not\x20return\x20an\x20HttpResponse\x20or\x20the\x20returned\x20HttpResponse\x20did\x20not\x20have\x20headers.','replace','every','OBJECT','json',',\x20finalize','behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','createPartFromBase64','UnprocessableEntityError','addWatermark','ListFileSearchStoresResponse','predictionsFormat','APIUserAbortError','includeRaiReason','application/x-sh','forEach','apiVersion','succeeded','trim','labels','.\x20Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x22\x20is\x20not\x20yet\x20supported.','sessionResumption','categories','Failed\x20to\x20download\x20generated\x20video,\x20Uri\x20or\x20videoBytes\x20not\x20found.','MEDIA_RESOLUTION_UNSPECIFIED','maskMode','MaskReferenceImage','PREFERENCE_TUNING','ThinkingLevel','application/vnd.ms-excel','NON_BLOCKING','Caches','maskImageConfig','STYLE','vertexDatasetResource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','SUBJECT_TYPE_DEFAULT','completeTime','audio/opus','audio/mpeg','ListBatchJobsResponse','https://aiplatform.googleapis.com/','VideoCompressionQuality','exportLastCheckpointOnly','x-goog-api-key','trainingDataset','encryptionSpec','send','method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','thinkingConfig','list','Value\x20\x22','bidiGenerateContentSetup','customBaseModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','recontextImage','totalTokens','checkpoints','retrieval','buffer','isCallableTool','personImage','processAfcStream','googleMaps','some','files/','enterpriseWebSearch','cachedContents','HARM_BLOCK_METHOD_UNSPECIFIED','productImage','bigquerySource','responseLogprobs','video/mp4','args','StyleReferenceImage','filter\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','application/epub+zip','authorization','retry-after','tunedModelDisplayName','AuthenticationError','JOB_STATE_RUNNING','ReplayResponse','nextPageToken','v1alpha','other:','goAway','update','api_version','functionCallingConfig','TUNING_MODE_FULL','debug','getItem','pageInternal','Operation\x20name\x20is\x20required.','font/ttf','application/octet-stream','getPrototypeOf','encoder','responseJsonSchema','audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','https://proxyvn.top/','unknown','Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.','httpMethod','upscaleConfig','createInlinedGenerateContentRequest','preTunedModel','OUTPAINT','trafficType','voiceActivity','getRequestHeaders','application/json','MODE_DYNAMIC','Unsupported\x20string\x20source\x20for\x20Vertex\x20AI:\x20','uploadFileFromPath','text/css','Mixing\x20Content\x20and\x20Parts\x20is\x20not\x20supported,\x20please\x20group\x20the\x20parts\x20into\x20a\x20the\x20appropriate\x20Content\x20objects\x20and\x20specify\x20the\x20roles\x20for\x20them','getAuthHeaders','scopes','googleSearchRetrieval','fetchOptions','JOB_STATE_PARTIALLY_SUCCEEDED','build','fileName','IMAGE_PROHIBITED_CONTENT','must\x20be\x20set\x20for\x20Gemini\x20API.','freeze','topP','there\x20are\x20non-data\x20parts\x20','createTime','DIVERSITY','stream','INTERRUPT','authHeaders','inlinedEmbedContentResponses','timed\x20out','baseURLOverridden','tuningMode','timeRangeFilter',';\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.','RecontextImageResponse','application/rtf','call','467173itoSiX','autoTruncate','raiFilteredReason','negativePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','storageUri','`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`','RESPONSE_REJECTED','webSocketFactory','bigquery','metadata','boolean','join','GenerateVideosOperation',']\x20response\x20start','preceding','ttl','UNEXPECTED_TOOL_CALL','MODE_UNSPECIFIED','BlockedReason','_client','exception\x20','isNaN','safetySetting','DONT_ALLOW','scribble','config','getOwnPropertySymbols','JobState','auth','totalTokenCount','REMOVE','application/x-shockwave-flash','propertyIsEnumerable','init','sort','idempotencyKey','serverContent','defineProperty','JOB_STATE_UPDATING','audio/','sendMessageStream','audioChunk','pageToken','false','addGoogleAuthHeaders','BATCH_STATE_CANCELLED','Cannot\x20set\x20value\x20for\x20an\x20existing\x20key.\x20Key:\x20','includes','failed','WHEN_IDLE','index','305LUMZJt','PAUSE','getInternal','REMOVE_STATIC','uri','process','instances[0]','Attempted\x20to\x20iterate\x20over\x20a\x20response\x20with\x20no\x20body','PagedItem','delete','endpoints','ON_DEMAND','text','ELASTIC_SEARCH','getDefaultHeaders','JOB_STATE_SUCCEEDED','invalid\x20model\x20parameter','ListDocumentsResponse','stack','startsWith','PAGED_ITEM_CACHED_CONTENTS','OAUTH','pageLength','/operations/','throw','API_KEY_AUTH','HarmSeverity','\x22\x20can\x27t\x20be\x20safely\x20passed\x20as\x20a\x20path\x20parameter','patchHttpOptions','exec','BATCH_STATE_UNSPECIFIED','enhancePrompt','Live\x20music\x20generation\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','NO_IMAGE','authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','VoiceActivityType','google-auth-library','RESET_CONTEXT','displayName','batchSize','toLowerCase','{name}:cancel','withOptions','disable','Invalid\x20request:\x20specified\x20`agent`\x20and\x20`generation_config`.\x20If\x20specifying\x20`agent`,\x20use\x20`agent_config`.','application/vnd.openxmlformats-officedocument.presentationml.presentation','editMode','F_MAJOR_D_MINOR','ContentReferenceImage','NO_AUTH','partnerModelTuningSpec','BLOCKED_REASON_UNSPECIFIED','raiMediaFilteredReasons','mcpTools','controlImageConfig','response','promptFeedback','uploadFileToFileSearchStore','BLOCK_LOW_AND_ABOVE','global','font/woff','cookie','statistics','modelConfig','fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','FINISH_REASON_UNSPECIFIED','BLOCK_ONLY_EXTREMELY_HIGH','application/vnd.google-earth.kml+xml','Unsupported\x20part\x20type:\x20','\x20was\x20set\x20to\x20','NUMBER','temperature','substring','MODEL_ARMOR','tokensInfo','SegmentMode','REGISTERED','generatedSamples','The\x20user\x20provided\x20project/location\x20will\x20take\x20precedence\x20over','files/{file}','Base\x20URL\x20is\x20not\x20set.','TuningMode','outputUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','warn','sftLossWeightMultiplier\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getRandomValues','cancel','getCustomBaseUrl','addKeyHeader','mcpClients','fromSSEResponse','client','urlContextMetadata','googleSearch','citationMetadata','\x20is\x20not\x20a\x20valid\x20path\x20parameter','64sVdYDQ','enhancePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ADAPTER_SIZE_EIGHT','IMAGE_SAFETY','HARM_SEVERITY_MEDIUM','repeat','version','ListFilesResponse','Incompatible\x20tools\x20found\x20at\x20','Environment','name','UNSPECIFIED','POST','googleAuthOptions','Could\x20not\x20parse\x20input\x20as\x20Blob.\x20Unsupported\x20blob\x20type:\x20','getWebsocketBaseUrl','PAGED_ITEM_BATCH_JOBS','Filtering\x20tuned\x20models\x20list\x20for\x20Vertex\x20AI\x20is\x20not\x20currently\x20supported','description\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.',']\x20connection\x20','autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','http:','JOB_STATE_EXPIRED','then','makeMessage','genaiBatchJob_','signal','content-length','aborted','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','uploadFile','shouldPrependVertexProjectPath','extraBody','PROHIBITED_CONTENT','outputSchema','HTTP\x20options\x20are\x20not\x20correctly\x20set.','[object\x20Error]','FinishReason','initNextPage','upload','/locations/','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','test','PATCH','VadSignalType','HARM_PROBABILITY_UNSPECIFIED','OpenBSD','encodedVideo','ALLOW_ADULT','GoogleGenAI.interactions:\x20Client\x20level\x20httpOptions.extraBody\x20is\x20not\x20supported\x20by\x20the\x20interactions\x20client\x20and\x20will\x20be\x20ignored.','fetchUploadUrl','enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','outputConfig','outputOptions','parent','video/mpeg','carriage','callbacks','START_OF_ACTIVITY_INTERRUPTS','blockingConfidence','retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','controller','modelSelectionConfig','\x20-\x20error;\x20no\x20more\x20retries\x20left','audio/ogg','setup','PartMediaResolutionLevel','chrome','GOOGLE_CLOUD_PROJECT','token_count','voiceActivityType','apiCall','enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','createPartFromExecutableCode','append','OUTCOME_DEADLINE_EXCEEDED','getVideosOperationInternal','uris','2809704dWLzyG','BidiGenerateContent','requestStream','code','image/webp','INTEGER','MASK_MODE_BACKGROUND','(no\x20status\x20code\x20or\x20body)','explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','liveConnectConstraints','jsonl','groundingMetadata','_key','text/csv','timeout','find','arm','post','durationSeconds','trunc','TurnCompleteReason','examples','ActivityHandling','raiMediaFilteredCount','error','User-Agent','toolConfig','API_SPEC_UNSPECIFIED','isArray','fromReadableStream','candidateCount','request','JOB_STATE_QUEUED','SUPERVISED_FINE_TUNING','\x20must\x20be\x20an\x20integer','FOREGROUND','getBaseUrl','validationDataset','prepareRequest','buildBody','type:\x20null\x20can\x20not\x20be\x20the\x20only\x20possible\x20type\x20for\x20the\x20field.','modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','tools\x20is\x20required\x20and\x20must\x20be\x20an\x20array\x20of\x20Tools','GenerateContentResponseUsageMetadata','sampleCount','Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.','stopSequences','uploadToFileSearchStore','280qDNNoy','next','EndSensitivity','min','aspectRatio','beta','\x0d\x0a\x0d\x0a','mcp_used/unknown','Unsupported\x20file\x20type','ReactNative','null','text/calendar','functionResponses\x20is\x20required.','getHistory','audioChunks','assign','defaultCheckpointId','encode','parameters','baseTeacherModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','iOS','`File`\x20is\x20not\x20defined\x20as\x20a\x20global,\x20which\x20is\x20required\x20for\x20file\x20uploads.','GoogleAuth','E_FLAT_MAJOR_C_MINOR','properties','The\x20client.tokens.create\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them\x20in\x20a\x20Content\x20object,\x20specifying\x20the\x20role\x20for\x20them','executableCode','stringify','/ws/google.ai.generativelanguage.','application/vnd.ms-fontobject','https://','The\x20project/location\x20from\x20the\x20environment\x20variables\x20will\x20take','suppressed','gcsSource','getApiKey','catch','URL_RETRIEVAL_STATUS_UNSPECIFIED','caches','method','GenerateVideosResponse','getApiVersion','response\x20is\x20undefined','HTTP_IN_UNSPECIFIED','parsedPromise','flush','fs/promises','serviceAccount','gcsDestination','LiveSendToolResponseParameters','Blob','upload/v1beta/','getOwnPropertyDescriptor','{model}:countTokens','FunctionCallingConfigMode','Failed\x20to\x20download\x20video,\x20Uri\x20or\x20videoBytes\x20not\x20found.','inlinedRequests\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','Connection\x20error.','Request\x20was\x20aborted.','toString','setWeightedPrompts','application/x-tar','importFile','outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','candidates','pipelineJob','{model}:predictLongRunning','turns','authTokens','projects/','citationSources','JOB_STATE_PENDING','sendToolResponse','BLOCK_NONE','tunedTeacherModelSource','sendPlaybackControl','fileSearch','patch','Language','maximumRemoteCalls','outputTokenLimit','hasOwnProperty','tool','AdapterSize','MacOS','generateVideoResponse','pubsubTopic\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','FunctionResponseScheduling','TRAFFIC_TYPE_UNSPECIFIED','resolution','\x20Update\x20to\x20Node\x2020\x20LTS\x20or\x20newer,\x20or\x20set\x20`globalThis.File`\x20to\x20`import(\x27node:buffer\x27).File`.','sftLossWeightMultiplier','_options','logger','Exactly\x20one\x20of\x20`gcsUri`\x20or\x20`bigqueryUri`\x20must\x20be\x20set\x20for\x20Vertex\x20AI.','toUpperCase','STATE_UNSPECIFIED','logprobs','preferenceOptimizationSpec','ADAPTER_SIZE_SIXTEEN','mode','baseUrl','path','FAILED','referenceImages','uses','\x20-\x20','publisherModels','chats','shift','Batches','createWriteStream','inlinedResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','apiClient','responseInternal','auth_tokens','responseModalities','url','idempotencyHeader','BLOCK_MEDIUM_AND_ABOVE','methodRequest','close','application/vnd.mozilla.xul+xml','_interactions','/models/','PAGED_ITEM_FILE_SEARCH_STORES','setupComplete','PHISH_BLOCK_THRESHOLD_UNSPECIFIED','sendClientContent','audio','abortSignal','partOrString\x20cannot\x20be\x20an\x20empty\x20array','willContinue','START_SENSITIVITY_LOW','PAGED_ITEM_DOCUMENTS','BLOCK_ONLY_HIGH','THINKING_LEVEL_UNSPECIFIED',':download','controlType','gcsUri','batches','LOSSLESS','END_SENSITIVITY_LOW','APIError','httpOptions','getUserAgent','MODALITY_UNSPECIFIED','BATCH_STATE_PENDING','styleImageConfig','personGeneration\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','isView','makeRequest','fetchPredictVideosOperationInternal','tuneInternal','mediaResolution','constructor','setPrototypeOf','writeFile','segmentationClasses','CREATING','queryBase','EDIT_MODE_STYLE','generateAudio','UPLOADED','role','body','retryRequest','uploadToFileSearchStoreInternal','fromWeb','encoding','toolUsePromptTokensDetails','generatedMasks','LiveMusicServerMessage','category','customMetadata','enhanceInputImage','proactivity','JOB_STATE_UNSPECIFIED','SingleEmbedContentResponse','promptTokensDetails','GENERATED','safari','error;\x20not\x20retryable','{model}:streamGenerateContent?alt=sse','audioStreamEnd','read','_url','responseMimeType','inputSchema','HARM_SEVERITY_NEGLIGIBLE','embeddings','BLOCK_HIGHER_AND_ABOVE','truncated','API\x20key\x20must\x20be\x20set\x20when\x20using\x20the\x20Gemini\x20API.','kmsKeyName','darwin','CancelTuningJobResponse','MediaModality','image/tiff','TURN_COVERAGE_UNSPECIFIED','scores','customBaseModel','No\x20MCP\x20clients\x20provided','stainless-node-retry-','enqueue','\x20attempts\x20remaining','x-goog-upload-url','\x20status\x20code\x20(no\x20body)','clientOptions','{models_url}','inputAudioTranscription','chunks','audio/aac','generate','epochCount','GoogleGenAI','contextWindowCompression','BALANCED','citations','[DONE]','HarmBlockMethod','finishReason','functionResponses','systemInstruction\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','vertexDatasetResource','AuthType','HARM_CATEGORY_HATE_SPEECH','HARM_SEVERITY_LOW','STATE_FAILED','NO_INTERRUPTION','1.40.0','tuneMldevInternal','apiKey','GOOGLE_CLOUD_LOCATION','NONE','referenceImage','Outcome','initAfcToolsMap','GoogleGenAI.interactions:\x20Interactions\x20usage\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','Scale','multiSpeakerVoiceConfig','endpoint','AUTH_TYPE_UNSPECIFIED','name\x20must\x20be\x20a\x20string','distillationSpec','data:','upscaleFactor','outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','deployedModelId','models/','tunedModels','GET','tools','SPII','pipe','SafetyFilterLevel','type','fromEntries','brand.privateNullableHeaders','requests[].request.*','.\x20bytes\x20actually\x20read:\x20','Unsupported\x20speechConfig\x20type:\x20','documentName','PROCESSING','compressionQuality','upload/v1beta/{file_search_store_name}:uploadToFileSearchStore','INSERT','buildHeaders','createPartFromFunctionResponse','cachedContentTokenCount','BATCH_STATE_EXPIRED','HARM_SEVERITY_HIGH','registerFiles\x20is\x20only\x20supported\x20in\x20Node.js\x20environments.','BOOLEAN','fps','ImagePromptLanguage','transparent','enableWidget','NEWLINE_REGEXP','SAFETY','nextPage','JOB_STATE_FAILED','Modality','TURN_COMPLETE_REASON_UNSPECIFIED','batchPredictionJobs','Pager','seed','GOOGLE_VERTEX_BASE_URL','_self','JOB_STATE_CANCELLING','endsWith','Unsupported\x20string\x20source\x20for\x20Gemini\x20API:\x20','tools\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','E_MAJOR_D_FLAT_MINOR','sdkHttpResponse','models_url','HARM_CATEGORY_JAILBREAK','upscaleImage','seed\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','OUTCOME_FAILED','generatedVideos','pow','Request\x20timed\x20out.','randomUUID','{file_search_store_name}:importFile','live','usageMetadata','videoMetadata','PROBABILITY','Could\x20not\x20parse\x20function\x20response,\x20type\x20\x27','mask\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','modelArmorConfig','897645FsmrHu','content-type','resourceName','responseTokensDetails','message','uploadFileToFileSearchStoreFromPath','TurnCoverage','VALIDATED','publishers/','JOB_STATE_PAUSED','functionNameToMcpClient','/ws/google.cloud.aiplatform.','referenceId','outputUriPrefix','mimeType','deno','examples\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','toolCall','toolUsePromptTokenCount','HarmProbability','createEmbeddingsInternal','modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','connect','parseResponse','callTool','G_FLAT_MAJOR_E_FLAT_MINOR','image/vnd.microsoft.icon','SuppressedError','ImportFileResponse','x64','fileUri','outputCompressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','navigator','params','status','InternalServerError','NULL','safetyFilterLevel','documents','partOrString\x20must\x20be\x20a\x20Part\x20object,\x20string,\x20or\x20array','entries','getFileName',',\x20expected\x20one\x20of\x20','withResponse','modelTurn','TUNING_MODE_UNSPECIFIED','***','retrying,\x20','video/x-msvideo','userAgent','processStreamResponse','FileState','HARM_CATEGORY_SEXUALLY_EXPLICIT','parametersJsonSchema','functionCalls','items','bind','ListCachedContentsResponse','numberOfImages','COLLECTION','batches/{name}','updateTime','NEWLINE_CHARS','Trying\x20to\x20set\x20google-auth\x20headers\x20but\x20googleAuth\x20is\x20unset','UrlRetrievalStatus','batchJobs','AUDIO','vertexai','\x20bytes\x20from\x20file\x20at\x20offset\x20','add','MINIMAL','platform','IMAGE_OTHER','candidatesTokensDetails','maxOutputTokens','tLiveClienttToolResponse','\x20configuration\x20instead.','onerror','tLiveClientContent','application/x-csh','language','bigqueryUri','SubjectReferenceImage','TUNING_TASK_I2V','generateContentStreamInternal','MEDIA_RESOLUTION_ULTRA_HIGH','automaticFunctionCalling','setMusicGenerationConfig','VideoGenerationMaskMode','LiveClientToolResponse','pubsubTopic','application/vnd.ms-powerpoint','\x20(error;\x20no\x20more\x20retries\x20left)','dilation','blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','topK','aarch64','versionId','edge','URL_RETRIEVAL_STATUS_ERROR','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20code\x20execution\x20result\x20from\x20the\x20first\x20one.','multiSpeakerVoiceConfig\x20is\x20not\x20supported\x20in\x20the\x20live\x20API.','stop','upscaleImageInternal','VAD_SIGNAL_TYPE_EOS','Error','hyperparameters','freebsd','URL_RETRIEVAL_STATUS_PAYWALL','interactions','Session','referenceType','text/javascript','_fromAPIResponse','sendPromise','HARM_CATEGORY_UNSPECIFIED','videoBytes','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.','getRequestUrlInternal','beta\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getHeaders','BLOCK_VERY_HIGH_AND_ABOVE','HTTP_IN_HEADER','subarray','DEFAULT_TIMEOUT','Headers\x20are\x20not\x20set.','JOB_STATE_CANCELLED',']\x20response\x20parsed','/dest','cachedContent','MEDIA_RESOLUTION_LOW','conn','x32','Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.','headers','pause','Files','ListTuningJobsResponse','getOwnPropertyNames','streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','supportedActions','UpscaleImageResponse','tunedModel','streamApiCall','{operationName}','{model}:batchEmbedContents','HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT','OUTCOME_UNSPECIFIED','text/html','RegisterFilesResponse','toReadableStream','stat','Type','tunedModels/','openbsd','authConfig','set','transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','OPTIMIZED','android','trainingDatasetUri','Incomplete\x20JSON\x20segment\x20at\x20the\x20end','MASK_MODE_DEFAULT','carriageReturnIndex','listInternal','Cannot\x20stringify\x20type\x20','requests[]','PRIORITIZE_COST','routingConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','sendMessage','this\x20feature\x20is\x20not\x20compatible\x20with\x20automatic\x20function\x20calling\x20(AFC).\x20','mask','embedContent','browser:','segmentImage','OUTCOME_OK','Ephemeral\x20tokens\x20are\x20only\x20supported\x20by\x20the\x20live\x20API.','SILENT','getGcsUri','search','arch','to\x20be\x20undefined\x20or\x20set\x20to\x20false\x20to\x20disable\x20streaming\x20function\x20call\x20arguments\x20feature.','error;\x20no\x20more\x20retries\x20left','idxInternal','image/jpeg','FEATURE_SELECTION_PREFERENCE_UNSPECIFIED','PartUnion\x20is\x20required','outputGcsUri','HARM_CATEGORY_DANGEROUS_CONTENT','HttpResponse','Failed\x20to\x20write\x20file\x20to\x20','mimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.',',\x20retryOf:\x20','sendRealtimeInput','EDIT_MODE_OUTPAINT','responseSchema','inputConfig','toReferenceImageAPI','imageConfig','Behavior','application/vnd.visio','responsesFile','personGeneration','outputDimensionality','MusicGenerationMode','function','LOW','operations','LANGUAGE','EDIT_MODE_DEFAULT','MASK_MODE_FOREGROUND','TuningTask','\x20in\x20','Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files.\x20You\x20can\x20share\x20files\x20through\x20a\x20GCS\x20bucket.','ApiError','_thenUnwrap','inferMimeType','DynamicRetrievalConfigMode','force','state','publishers/google/models/','Invalid\x20maximumRemoteCalls\x20value\x20provided\x20for\x20automatic\x20function\x20calling.\x20Disabled\x20automatic\x20function\x20calling.\x20Please\x20provide\x20a\x20valid\x20integer\x20value\x20greater\x20than\x200.\x20maximumRemoteCalls\x20provided:','PAGED_ITEM_TUNING_JOBS','getProject','MASK_MODE_SEMANTIC','partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ARRAY','A_MAJOR_G_FLAT_MINOR','excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','unaryApiCall','modelsModule','computeTokens','positivePromptSafetyAttributes','TrafficType','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.','fileData','lastModified','IMAGE_RECITATION','STRING','exception\x20parsing\x20stream\x20chunk\x20','activityEnd','APIConnectionError','HarmBlockThreshold','Deno','content','D_MAJOR_B_MINOR','map','tunings','https://proxyvn.top','x-should-retry','hasNextPage','Weighted\x20prompts\x20must\x20be\x20set\x20and\x20contain\x20at\x20least\x20one\x20entry.','done','GenerateContentResponse','node:stream','PAGED_ITEM_FILES','all','tee','behavior','abort','EditMode','has','iterator','process.env[\x27GEMINI_NEXT_GEN_API_LOG\x27]','protocol','application/gzip','DeleteModelResponse','turnComplete','HARM_CATEGORY_CIVIC_INTEGRITY','parse','outputUri','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them,\x20and\x20any\x20other\x20parts,\x20in\x20Content\x20objects\x20as\x20appropriate,\x20specifying\x20the\x20role\x20for\x20them','/projects/','ceil','D_FLAT_MAJOR_B_FLAT_MINOR','credentials','userAgentExtra','requests','realtimeInputConfig','key','audioTimestamp','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20text\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20text\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','WebSocket','weightedPrompts','google-vertex-llm-tuning-base-model-id','retryOfRequestLogID','isVertexAI','supervisedTuningSpec','values','STATE_ACTIVE','thought','STATE_PENDING','DocumentState','ContentUnion\x20is\x20required','TURN_INCLUDES_ALL_INPUT','RateLimitError','SCALE_UNSPECIFIED','ADAPTER_SIZE_ONE','font/woff2','releaseLock','Duplicate\x20function\x20name\x20','TYPE_UNSPECIFIED','negativePrompt','musicGenerationConfig','functionDeclarations','application/ogg','OTHER','enableControlImageComputation','enableAffectiveDialog','size','batch','maskClasses','description','streamFunctionCallArguments','fieldMask','checkpointId','PROVISIONED_THROUGHPUT',',\x20New\x20type:\x20','firefox','Live\x20music\x20is\x20not\x20supported\x20for\x20Vertex\x20AI.','asyncIterator','PLAYBACK_CONTROL_UNSPECIFIED','From\x20chunk:','put','lockAdditionalFields','customBaseUrl','models','versions','INTERACTIVE','prepareOptions','application/vnd.google-earth.kmz+xml','explicitVadSignal','exportLastCheckpointOnly\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','ApiSpec','TEXT','x-goog-upload-status','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20text\x20from\x20the\x20first\x20one.','ControlReferenceType','now','inlinedRequests','thinking','All\x20content\x20has\x20been\x20uploaded,\x20but\x20the\x20upload\x20status\x20is\x20not\x20finalized.','Models','cause','.LlmBidiService/BidiGenerateContent','HARM_SEVERITY_UNSPECIFIED','off','_registerFiles','filter','TuningMethod','video/3gpp','pop','QUALITY','file_search_store_name','sdkHttpResponseInternal','object','InlinedEmbedContentResponse','ANY','CountTokensResponse','REFERENCE_TYPE_SUBJECT','FetchRequestCanceledException','Unsupported\x20mime\x20type:\x20','maxRetries','maskDilation','guidanceScale','audio/webm','willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','functionCall','EDIT_MODE_INPAINT_REMOVAL','ResourceScope','URL_RETRIEVAL_STATUS_UNSAFE','addAuthHeaders','Invalid\x20auth\x20scopes.\x20Scopes\x20must\x20include:\x20','project','taskType','data','EDIT_MODE_BGSWAP','retryOf','generationConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','PermissionDeniedError','maybeMoveToResponseJsonSchem','file','Failed\x20to\x20read\x20','cacheTokensDetails','start','gs://','processParamsMaybeAddMcpUsage','SEVERITY','location','Automatic\x20function\x20calling\x20was\x20requested,\x20but\x20not\x20all\x20the\x20tools\x20the\x20model\x20used\x20implement\x20the\x20CallableTool\x20interface.\x20Available\x20tools:\x20','LiveMusicPlaybackControl','files:register','MEDIA_RESOLUTION_HIGH','history','outputCompressionQuality','baseURL','application/pdf','bigqueryDestination','arrayBuffer','videos','HTTP_IN_QUERY','application/ld+json','numberOfVideos','AUTO','pageSize','Exactly\x20one\x20of\x20`inlinedRequests`,\x20`fileName`,\x20','\x20the\x20API\x20key\x20from\x20the\x20environment\x20variables.','generateContentInternal','googleAuth','inlineData','apply','$schema','JAILBREAK','frequencyPenalty','StartSensitivity','modelVersion','FunctionResponse\x20request\x20must\x20have\x20an\x20`id`\x20field\x20from\x20the\x20response\x20of\x20a\x20ToolCall.FunctionalCalls\x20in\x20Google\x20AI.','BadRequestError','listTools','getLocation','allowedFunctionNames','TURN_INCLUDES_ONLY_ACTIVITY','generationConfig','ControlReferenceImage','application/zip','productImages','SCHEDULING_UNSPECIFIED','buildRequest','ComputeTokensResponse','adapterSize','DeleteFileResponse','responsePromise','ReadableStream','MEDIA_RESOLUTION_MEDIUM','END_SENSITIVITY_HIGH','calculateDefaultRetryTimeoutMillis','`ReadableStream`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20You\x20will\x20need\x20to\x20polyfill\x20it,\x20`globalThis.ReadableStream\x20=\x20ReadableStream`','codeExecution','length','GenerateImagesResponse','deployedModels','ios','fetchWithTimeout','dest','element\x20in\x20PartUnion\x20must\x20be\x20a\x20Part\x20object\x20or\x20string','finally','CreateFileResponse','partialArgs','{model}:generateContent','BLOCKLIST','sampleImageSize','threshold','TUNING_TASK_T2V','computeControl','avgLogprobs','event','onopen','downloadFile','files','SOURCE_UNSPECIFIED','PYTHON','defaultHeaders','inputTokenLimit','pathname','imageOutputOptions','MediaResolution','SEMANTIC','TUNING_TASK_R2V','reduce','HTTP_IN_COOKIE','v1beta1','HIGH','source','DOCUMENT','completionStats','blob','preTunedModelCheckpointId\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','InlinedResponse','tunedModelInfo','HARM_CATEGORY_IMAGE_HARASSMENT','logprobsResult','-aiplatform.googleapis.com/','voiceActivityDetectionSignal','safetyAttributes','DELETE','PROMPT','SubjectReferenceType','push','includeSafetyAttributes','\x20sending\x20request','geminiUrl','tuningTask','SUBJECT_TYPE_PRODUCT','image','IMAGE','encryption_spec','Path\x20parameters\x20result\x20in\x20path\x20with\x20invalid\x20segments:\x0a','ListModelsResponse','clientAdapter','BATCH_STATE_FAILED','END_SENSITIVITY_UNSPECIFIED','default','responseId','handle','ENVIRONMENT_UNSPECIFIED','REFERENCE_TYPE_CONTENT','URL_RETRIEVAL_STATUS_SUCCESS','vertexUrl','PersonGeneration','options','labels.tune-type:*','presencePenalty','createModelContent','constructUrl','downloadPath','Could\x20not\x20parse\x20message\x20into\x20JSON:','.jsonl','thoughtsTokenCount','EDIT_MODE_PRODUCT_IMAGE','[object\x20process]','fetch','application/vnd.rar','Interactions','env','VAD_SIGNAL_TYPE_UNSPECIFIED','filename','generateVideos','operationName','retrievalConfig','application/msword','BLOCKING','320kciVkN','TUNING_MODE_PEFT_ADAPTER','learningRateMultiplier','GEMINI_NEXT_GEN_API_LOG','GEMINI_API_KEY','PAGED_ITEM_MODELS','validationDatasetUri','anyOf','queryParams','image/svg+xml','v1beta','user','addEventListener','MaskReferenceMode','GOOGLE_API_KEY','outputMimeType','sessionResumptionUpdate','\x20over\x20the\x20API\x20key\x20from\x20the\x20environment\x20variable.','hyperParameters','displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.'];a2_0x3ea7=function(){return _0x4082ef;};return a2_0x3ea7();}function listTuningJobsParametersToVertex(_0x3ae32e,_0x30184f){const _0x227d6f=a2_0x8e922d,_0x2e9965={},_0x2ec7b7=getValueByPath(_0x3ae32e,[_0x227d6f(0x182)]);return _0x2ec7b7!=null&&listTuningJobsConfigToVertex(_0x2ec7b7,_0x2e9965),_0x2e9965;}function listTuningJobsResponseFromMldev(_0x51d2ab,_0xb34dcf){const _0x5056a9=a2_0x8e922d,_0x4ef8b9={},_0x2bc6f4=getValueByPath(_0x51d2ab,[_0x5056a9(0x3a0)]);_0x2bc6f4!=null&&setValueByPath(_0x4ef8b9,[_0x5056a9(0x3a0)],_0x2bc6f4);const _0x5ca611=getValueByPath(_0x51d2ab,[_0x5056a9(0x12c)]);_0x5ca611!=null&&setValueByPath(_0x4ef8b9,[_0x5056a9(0x12c)],_0x5ca611);const _0x5e1b04=getValueByPath(_0x51d2ab,[_0x5056a9(0x374)]);if(_0x5e1b04!=null){let _0x5b3f67=_0x5e1b04;Array[_0x5056a9(0x266)](_0x5b3f67)&&(_0x5b3f67=_0x5b3f67['map'](_0x3acdc3=>{return tuningJobFromMldev(_0x3acdc3);})),setValueByPath(_0x4ef8b9,[_0x5056a9(0xbc)],_0x5b3f67);}return _0x4ef8b9;}function listTuningJobsResponseFromVertex(_0x233223,_0x38e623){const _0x9aad8c=a2_0x8e922d,_0x4ca0da={},_0x3e0adb=getValueByPath(_0x233223,[_0x9aad8c(0x3a0)]);_0x3e0adb!=null&&setValueByPath(_0x4ca0da,[_0x9aad8c(0x3a0)],_0x3e0adb);const _0xde6482=getValueByPath(_0x233223,[_0x9aad8c(0x12c)]);_0xde6482!=null&&setValueByPath(_0x4ca0da,[_0x9aad8c(0x12c)],_0xde6482);const _0x196bd7=getValueByPath(_0x233223,['tuningJobs']);if(_0x196bd7!=null){let _0x2ab85f=_0x196bd7;Array[_0x9aad8c(0x266)](_0x2ab85f)&&(_0x2ab85f=_0x2ab85f[_0x9aad8c(0x4a8)](_0x5b3592=>{return tuningJobFromVertex(_0x5b3592);})),setValueByPath(_0x4ca0da,[_0x9aad8c(0xbc)],_0x2ab85f);}return _0x4ca0da;}function tunedModelFromMldev(_0x1c4b92,_0x41076d){const _0x527860=a2_0x8e922d,_0x1d73de={},_0x38e007=getValueByPath(_0x1c4b92,[_0x527860(0x206)]);_0x38e007!=null&&setValueByPath(_0x1d73de,[_0x527860(0x638)],_0x38e007);const _0x11919a=getValueByPath(_0x1c4b92,[_0x527860(0x206)]);return _0x11919a!=null&&setValueByPath(_0x1d73de,[_0x527860(0x36b)],_0x11919a),_0x1d73de;}function tuningDatasetToMldev(_0x2d5de8,_0xe801d1){const _0x237f7f=a2_0x8e922d,_0x3a4336={};if(getValueByPath(_0x2d5de8,['gcsUri'])!==undefined)throw new Error(_0x237f7f(0x6a8));if(getValueByPath(_0x2d5de8,[_0x237f7f(0x35a)])!==undefined)throw new Error(_0x237f7f(0xfd));const _0x2212c1=getValueByPath(_0x2d5de8,['examples']);if(_0x2212c1!=null){let _0x47b070=_0x2212c1;Array[_0x237f7f(0x266)](_0x47b070)&&(_0x47b070=_0x47b070[_0x237f7f(0x4a8)](_0x270524=>{return _0x270524;})),setValueByPath(_0x3a4336,['examples',_0x237f7f(0x25f)],_0x47b070);}return _0x3a4336;}function tuningDatasetToVertex(_0x4db2f5,_0x3514e3,_0x545d24){const _0x4f9190=a2_0x8e922d,_0x20f495={};let _0x5f3c26=getValueByPath(_0x545d24,[_0x4f9190(0x182),_0x4f9190(0x2a1)]);_0x5f3c26===undefined&&(_0x5f3c26='SUPERVISED_FINE_TUNING');if(_0x5f3c26===_0x4f9190(0x26b)){const _0x1649e2=getValueByPath(_0x4db2f5,[_0x4f9190(0x305)]);_0x3514e3!==undefined&&_0x1649e2!=null&&setValueByPath(_0x3514e3,[_0x4f9190(0x4d1),_0x4f9190(0x452)],_0x1649e2);}else{if(_0x5f3c26==='PREFERENCE_TUNING'){const _0xa43e35=getValueByPath(_0x4db2f5,[_0x4f9190(0x305)]);_0x3514e3!==undefined&&_0xa43e35!=null&&setValueByPath(_0x3514e3,['preferenceOptimizationSpec',_0x4f9190(0x452)],_0xa43e35);}else{if(_0x5f3c26===_0x4f9190(0x5fa)){const _0x250e00=getValueByPath(_0x4db2f5,[_0x4f9190(0x305)]);_0x3514e3!==undefined&&_0x250e00!=null&&setValueByPath(_0x3514e3,[_0x4f9190(0x36e),_0x4f9190(0xc4)],_0x250e00);}}}let _0xf1d2c6=getValueByPath(_0x545d24,[_0x4f9190(0x182),_0x4f9190(0x2a1)]);_0xf1d2c6===undefined&&(_0xf1d2c6=_0x4f9190(0x26b));if(_0xf1d2c6===_0x4f9190(0x26b)){const _0x1a5e99=getValueByPath(_0x4db2f5,[_0x4f9190(0x35a)]);_0x3514e3!==undefined&&_0x1a5e99!=null&&setValueByPath(_0x3514e3,[_0x4f9190(0x4d1),_0x4f9190(0x452)],_0x1a5e99);}else{if(_0xf1d2c6==='PREFERENCE_TUNING'){const _0x1a91b0=getValueByPath(_0x4db2f5,[_0x4f9190(0x35a)]);_0x3514e3!==undefined&&_0x1a91b0!=null&&setValueByPath(_0x3514e3,[_0x4f9190(0x2dc),_0x4f9190(0x452)],_0x1a91b0);}else{if(_0xf1d2c6===_0x4f9190(0x5fa)){const _0xee7297=getValueByPath(_0x4db2f5,['vertexDatasetResource']);_0x3514e3!==undefined&&_0xee7297!=null&&setValueByPath(_0x3514e3,[_0x4f9190(0x36e),_0x4f9190(0xc4)],_0xee7297);}}}if(getValueByPath(_0x4db2f5,[_0x4f9190(0x25f)])!==undefined)throw new Error(_0x4f9190(0x3c2));return _0x20f495;}function tuningJobFromMldev(_0x2f1a8d,_0x520b53){const _0x44324f=a2_0x8e922d,_0x44f773={},_0x2a86f1=getValueByPath(_0x2f1a8d,[_0x44324f(0x3a0)]);_0x2a86f1!=null&&setValueByPath(_0x44f773,['sdkHttpResponse'],_0x2a86f1);const _0x121d2b=getValueByPath(_0x2f1a8d,['name']);_0x121d2b!=null&&setValueByPath(_0x44f773,[_0x44324f(0x206)],_0x121d2b);const _0x25f21d=getValueByPath(_0x2f1a8d,[_0x44324f(0x48d)]);_0x25f21d!=null&&setValueByPath(_0x44f773,[_0x44324f(0x48d)],tTuningJobStatus(_0x25f21d));const _0x1468ec=getValueByPath(_0x2f1a8d,[_0x44324f(0x15b)]);_0x1468ec!=null&&setValueByPath(_0x44f773,[_0x44324f(0x15b)],_0x1468ec);const _0x5f4f6f=getValueByPath(_0x2f1a8d,[_0x44324f(0x59d),_0x44324f(0x61d)]);_0x5f4f6f!=null&&setValueByPath(_0x44f773,['startTime'],_0x5f4f6f);const _0x5815bd=getValueByPath(_0x2f1a8d,[_0x44324f(0x59d),_0x44324f(0xff)]);_0x5815bd!=null&&setValueByPath(_0x44f773,['endTime'],_0x5815bd);const _0x41c58c=getValueByPath(_0x2f1a8d,[_0x44324f(0x3ef)]);_0x41c58c!=null&&setValueByPath(_0x44f773,['updateTime'],_0x41c58c);const _0x496eac=getValueByPath(_0x2f1a8d,[_0x44324f(0x4ea)]);_0x496eac!=null&&setValueByPath(_0x44f773,[_0x44324f(0x4ea)],_0x496eac);const _0x4a1546=getValueByPath(_0x2f1a8d,[_0x44324f(0x674)]);_0x4a1546!=null&&setValueByPath(_0x44f773,[_0x44324f(0x674)],_0x4a1546);const _0x4c8bc1=getValueByPath(_0x2f1a8d,['_self']);return _0x4c8bc1!=null&&setValueByPath(_0x44f773,[_0x44324f(0x440)],tunedModelFromMldev(_0x4c8bc1)),_0x44f773;}function tuningJobFromVertex(_0x3ba1fb,_0x1e9af1){const _0x5df455=a2_0x8e922d,_0x26a865={},_0x184cc5=getValueByPath(_0x3ba1fb,['sdkHttpResponse']);_0x184cc5!=null&&setValueByPath(_0x26a865,['sdkHttpResponse'],_0x184cc5);const _0x496ef8=getValueByPath(_0x3ba1fb,[_0x5df455(0x206)]);_0x496ef8!=null&&setValueByPath(_0x26a865,[_0x5df455(0x206)],_0x496ef8);const _0x508e92=getValueByPath(_0x3ba1fb,[_0x5df455(0x48d)]);_0x508e92!=null&&setValueByPath(_0x26a865,[_0x5df455(0x48d)],tTuningJobStatus(_0x508e92));const _0x739320=getValueByPath(_0x3ba1fb,[_0x5df455(0x15b)]);_0x739320!=null&&setValueByPath(_0x26a865,['createTime'],_0x739320);const _0x1214c9=getValueByPath(_0x3ba1fb,[_0x5df455(0x61d)]);_0x1214c9!=null&&setValueByPath(_0x26a865,[_0x5df455(0x61d)],_0x1214c9);const _0x257603=getValueByPath(_0x3ba1fb,['endTime']);_0x257603!=null&&setValueByPath(_0x26a865,[_0x5df455(0x5f1)],_0x257603);const _0x129a4b=getValueByPath(_0x3ba1fb,[_0x5df455(0x3ef)]);_0x129a4b!=null&&setValueByPath(_0x26a865,['updateTime'],_0x129a4b);const _0x489ce1=getValueByPath(_0x3ba1fb,['error']);_0x489ce1!=null&&setValueByPath(_0x26a865,[_0x5df455(0x262)],_0x489ce1);const _0x1dceca=getValueByPath(_0x3ba1fb,[_0x5df455(0x4ea)]);_0x1dceca!=null&&setValueByPath(_0x26a865,[_0x5df455(0x4ea)],_0x1dceca);const _0x310b91=getValueByPath(_0x3ba1fb,[_0x5df455(0x674)]);_0x310b91!=null&&setValueByPath(_0x26a865,[_0x5df455(0x674)],_0x310b91);const _0x22d193=getValueByPath(_0x3ba1fb,[_0x5df455(0x440)]);_0x22d193!=null&&setValueByPath(_0x26a865,[_0x5df455(0x440)],_0x22d193);const _0x1bd86b=getValueByPath(_0x3ba1fb,[_0x5df455(0x144)]);_0x1bd86b!=null&&setValueByPath(_0x26a865,[_0x5df455(0x144)],_0x1bd86b);const _0x11314a=getValueByPath(_0x3ba1fb,[_0x5df455(0x4d1)]);_0x11314a!=null&&setValueByPath(_0x26a865,[_0x5df455(0x4d1)],_0x11314a);const _0x1d5148=getValueByPath(_0x3ba1fb,['preferenceOptimizationSpec']);_0x1d5148!=null&&setValueByPath(_0x26a865,['preferenceOptimizationSpec'],_0x1d5148);const _0x14ff3d=getValueByPath(_0x3ba1fb,[_0x5df455(0x36e)]);_0x14ff3d!=null&&setValueByPath(_0x26a865,['distillationSpec'],_0x14ff3d);const _0xffd404=getValueByPath(_0x3ba1fb,['tuningDataStats']);_0xffd404!=null&&setValueByPath(_0x26a865,[_0x5df455(0x65b)],_0xffd404);const _0x2ec84f=getValueByPath(_0x3ba1fb,[_0x5df455(0x108)]);_0x2ec84f!=null&&setValueByPath(_0x26a865,[_0x5df455(0x108)],_0x2ec84f);const _0x5c47eb=getValueByPath(_0x3ba1fb,[_0x5df455(0x1ce)]);_0x5c47eb!=null&&setValueByPath(_0x26a865,[_0x5df455(0x1ce)],_0x5c47eb);const _0x195389=getValueByPath(_0x3ba1fb,[_0x5df455(0x343)]);_0x195389!=null&&setValueByPath(_0x26a865,['customBaseModel'],_0x195389);const _0x8f1798=getValueByPath(_0x3ba1fb,[_0x5df455(0x645)]);_0x8f1798!=null&&setValueByPath(_0x26a865,[_0x5df455(0x645)],_0x8f1798);const _0x222b00=getValueByPath(_0x3ba1fb,[_0x5df455(0xee)]);_0x222b00!=null&&setValueByPath(_0x26a865,['labels'],_0x222b00);const _0x575936=getValueByPath(_0x3ba1fb,[_0x5df455(0x4c0)]);_0x575936!=null&&setValueByPath(_0x26a865,[_0x5df455(0x4c0)],_0x575936);const _0xcbd516=getValueByPath(_0x3ba1fb,['pipelineJob']);_0xcbd516!=null&&setValueByPath(_0x26a865,[_0x5df455(0x2bb)],_0xcbd516);const _0x2a9a9f=getValueByPath(_0x3ba1fb,[_0x5df455(0x2a9)]);_0x2a9a9f!=null&&setValueByPath(_0x26a865,[_0x5df455(0x2a9)],_0x2a9a9f);const _0x7d48df=getValueByPath(_0x3ba1fb,[_0x5df455(0x128)]);_0x7d48df!=null&&setValueByPath(_0x26a865,[_0x5df455(0x128)],_0x7d48df);const _0x3443fb=getValueByPath(_0x3ba1fb,[_0x5df455(0x67a)]);return _0x3443fb!=null&&setValueByPath(_0x26a865,[_0x5df455(0x67a)],_0x3443fb),_0x26a865;}function tuningOperationFromMldev(_0x390011,_0x1481be){const _0x25aaf5=a2_0x8e922d,_0x3fa878={},_0x31e2ba=getValueByPath(_0x390011,[_0x25aaf5(0x3a0)]);_0x31e2ba!=null&&setValueByPath(_0x3fa878,[_0x25aaf5(0x3a0)],_0x31e2ba);const _0x4ca7a5=getValueByPath(_0x390011,[_0x25aaf5(0x206)]);_0x4ca7a5!=null&&setValueByPath(_0x3fa878,[_0x25aaf5(0x206)],_0x4ca7a5);const _0x50b1f5=getValueByPath(_0x390011,[_0x25aaf5(0x172)]);_0x50b1f5!=null&&setValueByPath(_0x3fa878,[_0x25aaf5(0x172)],_0x50b1f5);const _0x52bcb0=getValueByPath(_0x390011,[_0x25aaf5(0x4ae)]);_0x52bcb0!=null&&setValueByPath(_0x3fa878,[_0x25aaf5(0x4ae)],_0x52bcb0);const _0x43ac99=getValueByPath(_0x390011,[_0x25aaf5(0x262)]);return _0x43ac99!=null&&setValueByPath(_0x3fa878,[_0x25aaf5(0x262)],_0x43ac99),_0x3fa878;}function tuningValidationDatasetToVertex(_0x11842c,_0xb09944){const _0x3f86da=a2_0x8e922d,_0x1962aa={},_0x162cc1=getValueByPath(_0x11842c,['gcsUri']);_0x162cc1!=null&&setValueByPath(_0x1962aa,[_0x3f86da(0x5cb)],_0x162cc1);const _0x20b4af=getValueByPath(_0x11842c,[_0x3f86da(0x35a)]);return _0x20b4af!=null&&setValueByPath(_0x1962aa,[_0x3f86da(0x5cb)],_0x20b4af),_0x1962aa;}/**
|
|
262
|
+
* @license
|
|
263
|
+
* Copyright 2025 Google LLC
|
|
264
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
265
|
+
*/
|
|
266
|
+
class Tunings extends BaseModule{constructor(_0x5b5b14){const _0x5a245e=a2_0x8e922d;super(),this[_0x5a245e(0x2eb)]=_0x5b5b14,this[_0x5a245e(0x10c)]=async(_0x200d6b={})=>{const _0x2e90e9=_0x5a245e;return new Pager(exports['PagedItem'][_0x2e90e9(0x490)],_0x520e6e=>this[_0x2e90e9(0x456)](_0x520e6e),await this[_0x2e90e9(0x456)](_0x200d6b),_0x200d6b);},this[_0x5a245e(0x661)]=async _0x1c4620=>{const _0x2ab86e=_0x5a245e;return await this[_0x2ab86e(0x19e)](_0x1c4620);},this['tune']=async _0x38b47c=>{const _0x5b4708=_0x5a245e;var _0x3d3748;if(this[_0x5b4708(0x2eb)]['isVertexAI']()){if(_0x38b47c['baseModel']['startsWith']('projects/')){const _0x494187={'tunedModelName':_0x38b47c[_0x5b4708(0x674)]};((_0x3d3748=_0x38b47c[_0x5b4708(0x182)])===null||_0x3d3748===void 0x0?void 0x0:_0x3d3748['preTunedModelCheckpointId'])&&(_0x494187[_0x5b4708(0x4ed)]=_0x38b47c['config']['preTunedModelCheckpointId']);const _0x4ca690=Object[_0x5b4708(0x289)](Object['assign']({},_0x38b47c),{'preTunedModel':_0x494187});return _0x4ca690[_0x5b4708(0x674)]=undefined,await this[_0x5b4708(0x313)](_0x4ca690);}else{const _0x3e2931=Object[_0x5b4708(0x289)]({},_0x38b47c);return await this[_0x5b4708(0x313)](_0x3e2931);}}else{const _0x39db17=Object[_0x5b4708(0x289)]({},_0x38b47c),_0x74f760=await this[_0x5b4708(0x361)](_0x39db17);let _0xfc5f33='';if(_0x74f760['metadata']!==undefined&&_0x74f760[_0x5b4708(0x172)]['tunedModel']!==undefined)_0xfc5f33=_0x74f760[_0x5b4708(0x172)]['tunedModel'];else _0x74f760[_0x5b4708(0x206)]!==undefined&&_0x74f760[_0x5b4708(0x206)][_0x5b4708(0x198)](_0x5b4708(0x1b3))&&(_0xfc5f33=_0x74f760[_0x5b4708(0x206)][_0x5b4708(0x5f3)](_0x5b4708(0x1b3))[0x0]);const _0xea9dd9={'name':_0xfc5f33,'state':exports[_0x5b4708(0x184)][_0x5b4708(0x26a)]};return _0xea9dd9;}};}async[a2_0x8e922d(0x19e)](_0x14cb25){const _0xddb09b=a2_0x8e922d;var _0x4fc5bb,_0x4bd7ae,_0xc2d28f,_0x38eafb;let _0x16990f,_0x53d321='',_0x1447b3={};if(this[_0xddb09b(0x2eb)]['isVertexAI']()){const _0x10ed47=getTuningJobParametersToVertex(_0x14cb25);return _0x53d321=formatMap('{name}',_0x10ed47[_0xddb09b(0x334)]),_0x1447b3=_0x10ed47[_0xddb09b(0xa9)],delete _0x10ed47[_0xddb09b(0x334)],delete _0x10ed47[_0xddb09b(0xa9)],_0x16990f=this[_0xddb09b(0x2eb)][_0xddb09b(0x269)]({'path':_0x53d321,'queryParams':_0x1447b3,'body':JSON[_0xddb09b(0x296)](_0x10ed47),'httpMethod':_0xddb09b(0x375),'httpOptions':(_0x4fc5bb=_0x14cb25[_0xddb09b(0x182)])===null||_0x4fc5bb===void 0x0?void 0x0:_0x4fc5bb[_0xddb09b(0x30a)],'abortSignal':(_0x4bd7ae=_0x14cb25[_0xddb09b(0x182)])===null||_0x4bd7ae===void 0x0?void 0x0:_0x4bd7ae['abortSignal']})[_0xddb09b(0x213)](_0x25d06b=>{const _0x43c512=_0xddb09b;return _0x25d06b[_0x43c512(0xdf)]()[_0x43c512(0x213)](_0x430250=>{const _0x5d1207=_0x43c512,_0x373118=_0x430250;return _0x373118['sdkHttpResponse']={'headers':_0x25d06b[_0x5d1207(0x438)]},_0x373118;});}),_0x16990f[_0xddb09b(0x213)](_0x255eba=>{const _0x384f5c=tuningJobFromVertex(_0x255eba);return _0x384f5c;});}else{const _0x348254=getTuningJobParametersToMldev(_0x14cb25);return _0x53d321=formatMap(_0xddb09b(0x69d),_0x348254['_url']),_0x1447b3=_0x348254['_query'],delete _0x348254[_0xddb09b(0x334)],delete _0x348254['_query'],_0x16990f=this['apiClient'][_0xddb09b(0x269)]({'path':_0x53d321,'queryParams':_0x1447b3,'body':JSON[_0xddb09b(0x296)](_0x348254),'httpMethod':_0xddb09b(0x375),'httpOptions':(_0xc2d28f=_0x14cb25['config'])===null||_0xc2d28f===void 0x0?void 0x0:_0xc2d28f['httpOptions'],'abortSignal':(_0x38eafb=_0x14cb25[_0xddb09b(0x182)])===null||_0x38eafb===void 0x0?void 0x0:_0x38eafb[_0xddb09b(0x2fc)]})[_0xddb09b(0x213)](_0x1f23d1=>{const _0x37a7b1=_0xddb09b;return _0x1f23d1[_0x37a7b1(0xdf)]()['then'](_0x4af086=>{const _0x67cd11=_0x37a7b1,_0x375b3=_0x4af086;return _0x375b3[_0x67cd11(0x3a0)]={'headers':_0x1f23d1[_0x67cd11(0x438)]},_0x375b3;});}),_0x16990f[_0xddb09b(0x213)](_0x471248=>{const _0x91759f=tuningJobFromMldev(_0x471248);return _0x91759f;});}}async[a2_0x8e922d(0x456)](_0x499f77){const _0x1aefd4=a2_0x8e922d;var _0xe1743,_0x3476b0,_0x415c3b,_0x5146f5;let _0x438bcb,_0x5b55d8='',_0x4bb962={};if(this[_0x1aefd4(0x2eb)][_0x1aefd4(0x4d0)]()){const _0x336e99=listTuningJobsParametersToVertex(_0x499f77);return _0x5b55d8=formatMap(_0x1aefd4(0xbc),_0x336e99['_url']),_0x4bb962=_0x336e99['_query'],delete _0x336e99[_0x1aefd4(0x334)],delete _0x336e99[_0x1aefd4(0xa9)],_0x438bcb=this[_0x1aefd4(0x2eb)]['request']({'path':_0x5b55d8,'queryParams':_0x4bb962,'body':JSON['stringify'](_0x336e99),'httpMethod':_0x1aefd4(0x375),'httpOptions':(_0xe1743=_0x499f77['config'])===null||_0xe1743===void 0x0?void 0x0:_0xe1743['httpOptions'],'abortSignal':(_0x3476b0=_0x499f77['config'])===null||_0x3476b0===void 0x0?void 0x0:_0x3476b0[_0x1aefd4(0x2fc)]})[_0x1aefd4(0x213)](_0x19be09=>{return _0x19be09['json']()['then'](_0x3a0d13=>{const _0x21dd34=a2_0x28ed,_0x42bcab=_0x3a0d13;return _0x42bcab[_0x21dd34(0x3a0)]={'headers':_0x19be09[_0x21dd34(0x438)]},_0x42bcab;});}),_0x438bcb['then'](_0x39cdcd=>{const _0x438fcc=_0x1aefd4,_0x416c3a=listTuningJobsResponseFromVertex(_0x39cdcd),_0x1144ea=new ListTuningJobsResponse();return Object[_0x438fcc(0x289)](_0x1144ea,_0x416c3a),_0x1144ea;});}else{const _0x456334=listTuningJobsParametersToMldev(_0x499f77);return _0x5b55d8=formatMap(_0x1aefd4(0x374),_0x456334['_url']),_0x4bb962=_0x456334['_query'],delete _0x456334[_0x1aefd4(0x334)],delete _0x456334['_query'],_0x438bcb=this[_0x1aefd4(0x2eb)]['request']({'path':_0x5b55d8,'queryParams':_0x4bb962,'body':JSON[_0x1aefd4(0x296)](_0x456334),'httpMethod':'GET','httpOptions':(_0x415c3b=_0x499f77[_0x1aefd4(0x182)])===null||_0x415c3b===void 0x0?void 0x0:_0x415c3b[_0x1aefd4(0x30a)],'abortSignal':(_0x5146f5=_0x499f77[_0x1aefd4(0x182)])===null||_0x5146f5===void 0x0?void 0x0:_0x5146f5['abortSignal']})[_0x1aefd4(0x213)](_0x32f678=>{const _0x20992d=_0x1aefd4;return _0x32f678[_0x20992d(0xdf)]()[_0x20992d(0x213)](_0x3206fc=>{const _0x3d18c4=_0x20992d,_0x4db370=_0x3206fc;return _0x4db370[_0x3d18c4(0x3a0)]={'headers':_0x32f678['headers']},_0x4db370;});}),_0x438bcb[_0x1aefd4(0x213)](_0x28fb91=>{const _0x3cdb42=listTuningJobsResponseFromMldev(_0x28fb91),_0x9bc29=new ListTuningJobsResponse();return Object['assign'](_0x9bc29,_0x3cdb42),_0x9bc29;});}}async[a2_0x8e922d(0x1f2)](_0xff4ba0){const _0x4716f6=a2_0x8e922d;var _0x4e94ab,_0x35ced7,_0x3c3f6f,_0x1842a4;let _0xf19152,_0xb99026='',_0x3963ca={};if(this[_0x4716f6(0x2eb)]['isVertexAI']()){const _0x3c298e=cancelTuningJobParametersToVertex(_0xff4ba0);return _0xb99026=formatMap(_0x4716f6(0x1c5),_0x3c298e['_url']),_0x3963ca=_0x3c298e[_0x4716f6(0xa9)],delete _0x3c298e['_url'],delete _0x3c298e[_0x4716f6(0xa9)],_0xf19152=this[_0x4716f6(0x2eb)][_0x4716f6(0x269)]({'path':_0xb99026,'queryParams':_0x3963ca,'body':JSON[_0x4716f6(0x296)](_0x3c298e),'httpMethod':_0x4716f6(0x208),'httpOptions':(_0x4e94ab=_0xff4ba0['config'])===null||_0x4e94ab===void 0x0?void 0x0:_0x4e94ab['httpOptions'],'abortSignal':(_0x35ced7=_0xff4ba0[_0x4716f6(0x182)])===null||_0x35ced7===void 0x0?void 0x0:_0x35ced7[_0x4716f6(0x2fc)]})['then'](_0x4cad28=>{const _0x4fb667=_0x4716f6;return _0x4cad28[_0x4fb667(0xdf)]()[_0x4fb667(0x213)](_0xfcfb31=>{const _0x37ccf4=_0x4fb667,_0x398206=_0xfcfb31;return _0x398206[_0x37ccf4(0x3a0)]={'headers':_0x4cad28[_0x37ccf4(0x438)]},_0x398206;});}),_0xf19152['then'](_0x114d8b=>{const _0x2d2ff6=_0x4716f6,_0x4509e8=cancelTuningJobResponseFromVertex(_0x114d8b),_0x5506e3=new CancelTuningJobResponse();return Object[_0x2d2ff6(0x289)](_0x5506e3,_0x4509e8),_0x5506e3;});}else{const _0x31d1b9=cancelTuningJobParametersToMldev(_0xff4ba0);return _0xb99026=formatMap(_0x4716f6(0x1c5),_0x31d1b9['_url']),_0x3963ca=_0x31d1b9['_query'],delete _0x31d1b9[_0x4716f6(0x334)],delete _0x31d1b9[_0x4716f6(0xa9)],_0xf19152=this[_0x4716f6(0x2eb)][_0x4716f6(0x269)]({'path':_0xb99026,'queryParams':_0x3963ca,'body':JSON[_0x4716f6(0x296)](_0x31d1b9),'httpMethod':_0x4716f6(0x208),'httpOptions':(_0x3c3f6f=_0xff4ba0['config'])===null||_0x3c3f6f===void 0x0?void 0x0:_0x3c3f6f['httpOptions'],'abortSignal':(_0x1842a4=_0xff4ba0[_0x4716f6(0x182)])===null||_0x1842a4===void 0x0?void 0x0:_0x1842a4['abortSignal']})[_0x4716f6(0x213)](_0x190445=>{const _0x58923f=_0x4716f6;return _0x190445[_0x58923f(0xdf)]()[_0x58923f(0x213)](_0x37a40d=>{const _0xe7488=_0x58923f,_0x18b126=_0x37a40d;return _0x18b126[_0xe7488(0x3a0)]={'headers':_0x190445['headers']},_0x18b126;});}),_0xf19152[_0x4716f6(0x213)](_0x38ff92=>{const _0x5c5f18=_0x4716f6,_0x25d6cf=cancelTuningJobResponseFromMldev(_0x38ff92),_0x278ccf=new CancelTuningJobResponse();return Object[_0x5c5f18(0x289)](_0x278ccf,_0x25d6cf),_0x278ccf;});}}async[a2_0x8e922d(0x313)](_0x3f29c3){const _0x5ae054=a2_0x8e922d;var _0x295f4f,_0x29ce0b;let _0x51f459,_0x15a3b2='',_0x305f47={};if(this[_0x5ae054(0x2eb)][_0x5ae054(0x4d0)]()){const _0x17757d=createTuningJobParametersPrivateToVertex(_0x3f29c3,_0x3f29c3);return _0x15a3b2=formatMap(_0x5ae054(0xbc),_0x17757d[_0x5ae054(0x334)]),_0x305f47=_0x17757d[_0x5ae054(0xa9)],delete _0x17757d[_0x5ae054(0x334)],delete _0x17757d[_0x5ae054(0xa9)],_0x51f459=this['apiClient']['request']({'path':_0x15a3b2,'queryParams':_0x305f47,'body':JSON[_0x5ae054(0x296)](_0x17757d),'httpMethod':'POST','httpOptions':(_0x295f4f=_0x3f29c3[_0x5ae054(0x182)])===null||_0x295f4f===void 0x0?void 0x0:_0x295f4f['httpOptions'],'abortSignal':(_0x29ce0b=_0x3f29c3[_0x5ae054(0x182)])===null||_0x29ce0b===void 0x0?void 0x0:_0x29ce0b[_0x5ae054(0x2fc)]})[_0x5ae054(0x213)](_0x3f94be=>{const _0xad4621=_0x5ae054;return _0x3f94be[_0xad4621(0xdf)]()[_0xad4621(0x213)](_0x3875ed=>{const _0x231474=_0xad4621,_0x6de573=_0x3875ed;return _0x6de573[_0x231474(0x3a0)]={'headers':_0x3f94be[_0x231474(0x438)]},_0x6de573;});}),_0x51f459[_0x5ae054(0x213)](_0x13a3a3=>{const _0x4d273e=tuningJobFromVertex(_0x13a3a3);return _0x4d273e;});}else throw new Error(_0x5ae054(0x427));}async[a2_0x8e922d(0x361)](_0x42c0fb){const _0x38ddef=a2_0x8e922d;var _0x1f1667,_0x26349b;let _0x375b62,_0x236915='',_0x116251={};if(this[_0x38ddef(0x2eb)]['isVertexAI']())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0xcad37=createTuningJobParametersPrivateToMldev(_0x42c0fb);return _0x236915=formatMap(_0x38ddef(0x374),_0xcad37[_0x38ddef(0x334)]),_0x116251=_0xcad37[_0x38ddef(0xa9)],delete _0xcad37['_url'],delete _0xcad37[_0x38ddef(0xa9)],_0x375b62=this[_0x38ddef(0x2eb)][_0x38ddef(0x269)]({'path':_0x236915,'queryParams':_0x116251,'body':JSON[_0x38ddef(0x296)](_0xcad37),'httpMethod':'POST','httpOptions':(_0x1f1667=_0x42c0fb[_0x38ddef(0x182)])===null||_0x1f1667===void 0x0?void 0x0:_0x1f1667[_0x38ddef(0x30a)],'abortSignal':(_0x26349b=_0x42c0fb['config'])===null||_0x26349b===void 0x0?void 0x0:_0x26349b[_0x38ddef(0x2fc)]})['then'](_0x3b66c1=>{const _0x13e9a4=_0x38ddef;return _0x3b66c1[_0x13e9a4(0xdf)]()[_0x13e9a4(0x213)](_0x3f5d9c=>{const _0x5d4738=_0x13e9a4,_0x452e02=_0x3f5d9c;return _0x452e02['sdkHttpResponse']={'headers':_0x3b66c1[_0x5d4738(0x438)]},_0x452e02;});}),_0x375b62[_0x38ddef(0x213)](_0x2122e9=>{const _0xd4b217=tuningOperationFromMldev(_0x2122e9);return _0xd4b217;});}}}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=a2_0x8e922d(0x501);async function uploadBlob(_0x172c2c,_0x2fe7d7,_0x56ae22){const _0x199555=a2_0x8e922d;var _0x17d65a;const _0x54f41e=await uploadBlobInternal(_0x172c2c,_0x2fe7d7,_0x56ae22),_0x146e6c=await(_0x54f41e===null||_0x54f41e===void 0x0?void 0x0:_0x54f41e[_0x199555(0xdf)]());if(((_0x17d65a=_0x54f41e===null||_0x54f41e===void 0x0?void 0x0:_0x54f41e[_0x199555(0x438)])===null||_0x17d65a===void 0x0?void 0x0:_0x17d65a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x199555(0xc6))throw new Error(_0x199555(0x437));return _0x146e6c[_0x199555(0x52f)];}async function uploadBlobToFileSearchStore(_0x424018,_0x29e037,_0x9b777d){const _0x2dd62f=a2_0x8e922d;var _0x506e39;const _0x25e835=await uploadBlobInternal(_0x424018,_0x29e037,_0x9b777d),_0x491695=await(_0x25e835===null||_0x25e835===void 0x0?void 0x0:_0x25e835[_0x2dd62f(0xdf)]());if(((_0x506e39=_0x25e835===null||_0x25e835===void 0x0?void 0x0:_0x25e835[_0x2dd62f(0x438)])===null||_0x506e39===void 0x0?void 0x0:_0x506e39[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x2dd62f(0xc6))throw new Error(_0x2dd62f(0x437));const _0x340154=uploadToFileSearchStoreOperationFromMldev(_0x491695),_0x1218b7=new UploadToFileSearchStoreOperation();return Object[_0x2dd62f(0x289)](_0x1218b7,_0x340154),_0x1218b7;}async function uploadBlobInternal(_0x44c137,_0x4a6753,_0x47adb7){const _0xc8271e=a2_0x8e922d;var _0x101f0c,_0x4d044d;let _0x8b5992=0x0,_0x39e780=0x0,_0x3edb8a=new HttpResponse(new Response()),_0x1aa88b=_0xc8271e(0x223);_0x8b5992=_0x44c137[_0xc8271e(0x4e7)];while(_0x39e780<_0x8b5992){const _0x1aac88=Math[_0xc8271e(0x27d)](MAX_CHUNK_SIZE,_0x8b5992-_0x39e780),_0x10b425=_0x44c137[_0xc8271e(0x664)](_0x39e780,_0x39e780+_0x1aac88);_0x39e780+_0x1aac88>=_0x8b5992&&(_0x1aa88b+=_0xc8271e(0xe0));let _0x224517=0x0,_0x38aa72=INITIAL_RETRY_DELAY_MS;while(_0x224517<MAX_RETRY_COUNT){_0x3edb8a=await _0x47adb7[_0xc8271e(0x269)]({'path':'','body':_0x10b425,'httpMethod':_0xc8271e(0x208),'httpOptions':{'apiVersion':'','baseUrl':_0x4a6753,'headers':{'X-Goog-Upload-Command':_0x1aa88b,'X-Goog-Upload-Offset':String(_0x39e780),'Content-Length':String(_0x1aac88)}}});if((_0x101f0c=_0x3edb8a===null||_0x3edb8a===void 0x0?void 0x0:_0x3edb8a[_0xc8271e(0x438)])===null||_0x101f0c===void 0x0?void 0x0:_0x101f0c[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x224517++,await sleep(_0x38aa72),_0x38aa72=_0x38aa72*DELAY_MULTIPLIER;}_0x39e780+=_0x1aac88;if(((_0x4d044d=_0x3edb8a===null||_0x3edb8a===void 0x0?void 0x0:_0x3edb8a[_0xc8271e(0x438)])===null||_0x4d044d===void 0x0?void 0x0:_0x4d044d[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0xc8271e(0x5e0))break;if(_0x8b5992<=_0x39e780)throw new Error(_0xc8271e(0x507));}return _0x3edb8a;}async function getBlobStat(_0x4dc8cd){const _0x106798=a2_0x8e922d,_0x394e31={'size':_0x4dc8cd['size'],'type':_0x4dc8cd[_0x106798(0x37a)]};return _0x394e31;}function sleep(_0x562c96){return new Promise(_0x22714f=>setTimeout(_0x22714f,_0x562c96));}/**
|
|
267
|
+
* @license
|
|
268
|
+
* Copyright 2025 Google LLC
|
|
269
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
270
|
+
*/
|
|
271
|
+
class NodeUploader{async[a2_0x8e922d(0x449)](_0x17a9b5){const _0x38a2d5=a2_0x8e922d,_0x16cf98={'size':0x0,'type':undefined};if(typeof _0x17a9b5===_0x38a2d5(0x68f)){const _0x3c7fa2=await fs__namespace[_0x38a2d5(0x449)](_0x17a9b5);return _0x16cf98[_0x38a2d5(0x4e7)]=_0x3c7fa2['size'],_0x16cf98[_0x38a2d5(0x37a)]=this[_0x38a2d5(0x48a)](_0x17a9b5),_0x16cf98;}else return await getBlobStat(_0x17a9b5);}async['upload'](_0x340d92,_0x42ead6,_0x5a0854){const _0x5ce45d=a2_0x8e922d;return typeof _0x340d92==='string'?await this[_0x5ce45d(0x14c)](_0x340d92,_0x42ead6,_0x5a0854):uploadBlob(_0x340d92,_0x42ead6,_0x5a0854);}async['uploadToFileSearchStore'](_0x61eca0,_0x10fa96,_0x5b0c41){const _0x4e5a53=a2_0x8e922d;return typeof _0x61eca0===_0x4e5a53(0x68f)?await this[_0x4e5a53(0x3b7)](_0x61eca0,_0x10fa96,_0x5b0c41):uploadBlobToFileSearchStore(_0x61eca0,_0x10fa96,_0x5b0c41);}[a2_0x8e922d(0x48a)](_0x1c1e56){const _0x5144a5=a2_0x8e922d,_0x2a4e81=_0x1c1e56[_0x5144a5(0x664)](_0x1c1e56['lastIndexOf']('.')+0x1),_0x2dec84={'aac':_0x5144a5(0x34e),'abw':'application/x-abiword','arc':'application/x-freearc','avi':_0x5144a5(0x3e2),'azw':_0x5144a5(0x63a),'bin':_0x5144a5(0x139),'bmp':'image/bmp','bz':_0x5144a5(0x633),'bz2':'application/x-bzip2','csh':_0x5144a5(0x401),'css':_0x5144a5(0x14d),'csv':_0x5144a5(0x257),'doc':_0x5144a5(0x5c3),'docx':'application/vnd.openxmlformats-officedocument.wordprocessingml.document','eot':_0x5144a5(0x298),'epub':_0x5144a5(0x125),'gz':_0x5144a5(0x4bb),'gif':_0x5144a5(0x698),'htm':_0x5144a5(0x446),'html':_0x5144a5(0x446),'ico':_0x5144a5(0x3cc),'ics':_0x5144a5(0x285),'jar':'application/java-archive','jpeg':_0x5144a5(0x46a),'jpg':_0x5144a5(0x46a),'js':_0x5144a5(0x422),'json':_0x5144a5(0x149),'jsonld':_0x5144a5(0x543),'kml':_0x5144a5(0x1df),'kmz':_0x5144a5(0x4fc),'mjs':_0x5144a5(0x422),'mp3':_0x5144a5(0x101),'mp4':_0x5144a5(0x121),'mpeg':_0x5144a5(0x233),'mpkg':_0x5144a5(0x69e),'odt':'application/vnd.oasis.opendocument.text','oga':_0x5144a5(0x23c),'ogv':_0x5144a5(0x63e),'ogx':_0x5144a5(0x4e3),'opus':_0x5144a5(0x100),'otf':_0x5144a5(0x5ec),'png':_0x5144a5(0x695),'pdf':_0x5144a5(0x53e),'php':'application/x-httpd-php','ppt':_0x5144a5(0x40d),'pptx':_0x5144a5(0x1c9),'rar':_0x5144a5(0x5bb),'rtf':_0x5144a5(0x167),'sh':_0x5144a5(0xe9),'svg':_0x5144a5(0x5ce),'swf':_0x5144a5(0x188),'tar':_0x5144a5(0x2b7),'tif':_0x5144a5(0x340),'tiff':'image/tiff','ts':'video/mp2t','ttf':_0x5144a5(0x138),'txt':'text/plain','vsd':_0x5144a5(0x47a),'wav':'audio/wav','weba':_0x5144a5(0x51f),'webm':_0x5144a5(0x677),'webp':_0x5144a5(0x24e),'woff':_0x5144a5(0x1d8),'woff2':_0x5144a5(0x4dc),'xhtml':'application/xhtml+xml','xls':_0x5144a5(0xf8),'xlsx':'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','xml':_0x5144a5(0xda),'xul':_0x5144a5(0x2f4),'zip':_0x5144a5(0x55a),'3gp':_0x5144a5(0x510),'3g2':'video/3gpp2','7z':'application/x-7z-compressed'},_0x572bb5=_0x2dec84[_0x2a4e81[_0x5144a5(0x1c4)]()];return _0x572bb5;}async[a2_0x8e922d(0x14c)](_0x139bed,_0x45a508,_0x5611af){const _0xd67a64=a2_0x8e922d;var _0x5e9332;const _0x5d610e=await this['uploadFileFromPathInternal'](_0x139bed,_0x45a508,_0x5611af),_0x46418e=await(_0x5d610e===null||_0x5d610e===void 0x0?void 0x0:_0x5d610e[_0xd67a64(0xdf)]());if(((_0x5e9332=_0x5d610e===null||_0x5d610e===void 0x0?void 0x0:_0x5d610e['headers'])===null||_0x5e9332===void 0x0?void 0x0:_0x5e9332[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0xd67a64(0xc6))throw new Error('Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.');return _0x46418e[_0xd67a64(0x52f)];}async[a2_0x8e922d(0x3b7)](_0x337173,_0x5d3442,_0x235ead){const _0x5d0e45=a2_0x8e922d;var _0x2aedcb;const _0x3ad86a=await this['uploadFileFromPathInternal'](_0x337173,_0x5d3442,_0x235ead),_0x23fce1=await(_0x3ad86a===null||_0x3ad86a===void 0x0?void 0x0:_0x3ad86a[_0x5d0e45(0xdf)]());if(((_0x2aedcb=_0x3ad86a===null||_0x3ad86a===void 0x0?void 0x0:_0x3ad86a[_0x5d0e45(0x438)])===null||_0x2aedcb===void 0x0?void 0x0:_0x2aedcb[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x5d0e45(0xc6))throw new Error(_0x5d0e45(0x437));const _0x4fc8c0=uploadToFileSearchStoreOperationFromMldev(_0x23fce1),_0x148ad5=new UploadToFileSearchStoreOperation();return Object[_0x5d0e45(0x289)](_0x148ad5,_0x4fc8c0),_0x148ad5;}async[a2_0x8e922d(0x650)](_0x178365,_0x3e04f9,_0x183a81){const _0x1e7117=a2_0x8e922d;var _0x4525ac,_0x2a3f70;let _0x27026c=0x0,_0x218436=0x0,_0x2c516a=new HttpResponse(new Response()),_0x68f44a=_0x1e7117(0x223),_0x35434e;const _0x1afbf8=path__namespace[_0x1e7117(0x620)](_0x178365);try{_0x35434e=await fs__namespace['open'](_0x178365,'r');if(!_0x35434e)throw new Error('Failed\x20to\x20open\x20file');_0x27026c=(await _0x35434e[_0x1e7117(0x449)]())[_0x1e7117(0x4e7)];while(_0x218436<_0x27026c){const _0x3e2311=Math['min'](MAX_CHUNK_SIZE,_0x27026c-_0x218436);_0x218436+_0x3e2311>=_0x27026c&&(_0x68f44a+=_0x1e7117(0xe0));const _0x28921d=new Uint8Array(_0x3e2311),{bytesRead:_0x40326b}=await _0x35434e[_0x1e7117(0x333)](_0x28921d,0x0,_0x3e2311,_0x218436);if(_0x40326b!==_0x3e2311)throw new Error(_0x1e7117(0x530)+_0x3e2311+_0x1e7117(0x3f6)+_0x218436+_0x1e7117(0x37e)+_0x40326b);const _0x23db37=new Blob([_0x28921d]);let _0x392d2c=0x0,_0x4a829a=INITIAL_RETRY_DELAY_MS;while(_0x392d2c<MAX_RETRY_COUNT){_0x2c516a=await _0x183a81['request']({'path':'','body':_0x23db37,'httpMethod':'POST','httpOptions':{'apiVersion':'','baseUrl':_0x3e04f9,'headers':{'X-Goog-Upload-Command':_0x68f44a,'X-Goog-Upload-Offset':String(_0x218436),'Content-Length':String(_0x40326b),'X-Goog-Upload-File-Name':_0x1afbf8}}});if((_0x4525ac=_0x2c516a===null||_0x2c516a===void 0x0?void 0x0:_0x2c516a[_0x1e7117(0x438)])===null||_0x4525ac===void 0x0?void 0x0:_0x4525ac[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x392d2c++,await sleep(_0x4a829a),_0x4a829a=_0x4a829a*DELAY_MULTIPLIER;}_0x218436+=_0x40326b;if(((_0x2a3f70=_0x2c516a===null||_0x2c516a===void 0x0?void 0x0:_0x2c516a[_0x1e7117(0x438)])===null||_0x2a3f70===void 0x0?void 0x0:_0x2a3f70[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x1e7117(0x5e0))break;if(_0x27026c<=_0x218436)throw new Error(_0x1e7117(0x507));}return _0x2c516a;}finally{_0x35434e&&await _0x35434e['close']();}}}/**
|
|
272
|
+
* @license
|
|
273
|
+
* Copyright 2025 Google LLC
|
|
274
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
275
|
+
*/
|
|
276
|
+
class NodeFiles extends Files{async['registerFiles'](_0x1fad8a){const _0x125885=a2_0x8e922d;if(typeof process==='undefined'||!process['versions']||!process[_0x125885(0x4f9)][_0x125885(0x6a0)])throw new Error(_0x125885(0x38a));const _0x3e2c78=_0x1fad8a['auth'],_0x569985=await _0x3e2c78[_0x125885(0x148)](),_0x3ffd8d=_0x1fad8a['config']||{},_0x1f99fc=_0x3ffd8d[_0x125885(0x30a)]||{},_0x2f94c7=Object[_0x125885(0x289)]({},_0x1f99fc[_0x125885(0x438)]||{});if(_0x569985){if(typeof _0x569985[Symbol[_0x125885(0x4b8)]]===_0x125885(0x47f))for(const [_0x400c42,_0x40e630]of _0x569985){_0x2f94c7[_0x400c42]=_0x40e630;}else for(const [_0x5dca97,_0x59bfad]of Object[_0x125885(0x3da)](_0x569985)){_0x2f94c7[_0x5dca97]=_0x59bfad;}}return this[_0x125885(0x50d)]({'uris':_0x1fad8a[_0x125885(0x249)],'config':Object[_0x125885(0x289)](Object[_0x125885(0x289)]({},_0x3ffd8d),{'httpOptions':Object[_0x125885(0x289)](Object[_0x125885(0x289)]({},_0x1f99fc),{'headers':_0x2f94c7})})});}}/**
|
|
277
|
+
* @license
|
|
278
|
+
* Copyright 2025 Google LLC
|
|
279
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
280
|
+
*/
|
|
281
|
+
const LANGUAGE_LABEL_PREFIX='gl-node/';class GoogleGenAI{get[a2_0x8e922d(0x41f)](){const _0x374580=a2_0x8e922d;if(this[_0x374580(0x2f5)]!==undefined)return this[_0x374580(0x2f5)];console[_0x374580(0x1ef)](_0x374580(0x368));const _0x5ee03a=this[_0x374580(0x30a)];(_0x5ee03a===null||_0x5ee03a===void 0x0?void 0x0:_0x5ee03a[_0x374580(0x21c)])&&console[_0x374580(0x1ef)](_0x374580(0x22d));const _0x9e7ba1=new GeminiNextGenAPIClient({'baseURL':this['apiClient'][_0x374580(0x26e)](),'apiKey':this[_0x374580(0x362)],'apiVersion':this[_0x374580(0x2eb)][_0x374580(0x2a3)](),'clientAdapter':this[_0x374580(0x2eb)],'defaultHeaders':this[_0x374580(0x2eb)][_0x374580(0x1aa)](),'timeout':_0x5ee03a===null||_0x5ee03a===void 0x0?void 0x0:_0x5ee03a[_0x374580(0x258)]});return this[_0x374580(0x2f5)]=_0x9e7ba1[_0x374580(0x41f)],this['_interactions'];}constructor(_0x18b224){const _0x59c479=a2_0x8e922d;var _0x98957,_0x3d6a5f,_0x98c508,_0x5155c3,_0x3fd2fa,_0x5c0a74;if((_0x18b224[_0x59c479(0x527)]||_0x18b224[_0x59c479(0x536)])&&_0x18b224['apiKey'])throw new Error(_0x59c479(0x676));this[_0x59c479(0x3f5)]=(_0x3d6a5f=(_0x98957=_0x18b224[_0x59c479(0x3f5)])!==null&&_0x98957!==void 0x0?_0x98957:getBooleanEnv('GOOGLE_GENAI_USE_VERTEXAI'))!==null&&_0x3d6a5f!==void 0x0?_0x3d6a5f:![];const _0x22c6f4=getApiKeyFromEnv(),_0x2dac0b=getEnv(_0x59c479(0x240)),_0x1caaee=getEnv(_0x59c479(0x363));this[_0x59c479(0x362)]=(_0x98c508=_0x18b224[_0x59c479(0x362)])!==null&&_0x98c508!==void 0x0?_0x98c508:_0x22c6f4,this[_0x59c479(0x527)]=(_0x5155c3=_0x18b224[_0x59c479(0x527)])!==null&&_0x5155c3!==void 0x0?_0x5155c3:_0x2dac0b,this[_0x59c479(0x536)]=(_0x3fd2fa=_0x18b224[_0x59c479(0x536)])!==null&&_0x3fd2fa!==void 0x0?_0x3fd2fa:_0x1caaee;if(!this[_0x59c479(0x3f5)]&&!this[_0x59c479(0x362)])throw new Error(_0x59c479(0x33b));if(_0x18b224[_0x59c479(0x3f5)]){((_0x5c0a74=_0x18b224[_0x59c479(0x209)])===null||_0x5c0a74===void 0x0?void 0x0:_0x5c0a74[_0x59c479(0x4c5)])&&(console[_0x59c479(0x134)]('The\x20user\x20provided\x20Google\x20Cloud\x20credentials\x20will\x20take\x20precedence'+_0x59c479(0x5d6)),this['apiKey']=undefined);if((_0x2dac0b||_0x1caaee)&&_0x18b224[_0x59c479(0x362)])console[_0x59c479(0x134)]('The\x20user\x20provided\x20Vertex\x20AI\x20API\x20key\x20will\x20take\x20precedence\x20over'+'\x20the\x20project/location\x20from\x20the\x20environment\x20variables.'),this[_0x59c479(0x527)]=undefined,this[_0x59c479(0x536)]=undefined;else{if((_0x18b224['project']||_0x18b224[_0x59c479(0x536)])&&_0x22c6f4)console[_0x59c479(0x134)](_0x59c479(0x1ea)+_0x59c479(0x548)),this[_0x59c479(0x362)]=undefined;else(_0x2dac0b||_0x1caaee)&&_0x22c6f4&&(console[_0x59c479(0x134)](_0x59c479(0x29a)+_0x59c479(0x646)),this[_0x59c479(0x362)]=undefined);}!this[_0x59c479(0x536)]&&!this[_0x59c479(0x362)]&&(this[_0x59c479(0x536)]=_0x59c479(0x1d7));}const _0x38f956=getBaseUrl(_0x18b224[_0x59c479(0x30a)],_0x18b224['vertexai'],getEnv(_0x59c479(0x399)),getEnv('GOOGLE_GEMINI_BASE_URL'));_0x38f956&&(_0x18b224[_0x59c479(0x30a)]?_0x18b224['httpOptions'][_0x59c479(0x2df)]=_0x38f956:_0x18b224[_0x59c479(0x30a)]={'baseUrl':_0x38f956});this[_0x59c479(0xeb)]=_0x18b224[_0x59c479(0xeb)],this[_0x59c479(0x30a)]=_0x18b224[_0x59c479(0x30a)];const _0x5ec838=new NodeAuth({'apiKey':this[_0x59c479(0x362)],'googleAuthOptions':_0x18b224[_0x59c479(0x209)]});this[_0x59c479(0x2eb)]=new ApiClient({'auth':_0x5ec838,'project':this[_0x59c479(0x527)],'location':this[_0x59c479(0x536)],'apiVersion':this['apiVersion'],'apiKey':this['apiKey'],'vertexai':this[_0x59c479(0x3f5)],'httpOptions':this[_0x59c479(0x30a)],'userAgentExtra':LANGUAGE_LABEL_PREFIX+process[_0x59c479(0x202)],'uploader':new NodeUploader(),'downloader':new NodeDownloader()}),this[_0x59c479(0x4f8)]=new Models(this['apiClient']),this[_0x59c479(0x3ab)]=new Live(this['apiClient'],_0x5ec838,new NodeWebSocketFactory()),this['batches']=new Batches(this[_0x59c479(0x2eb)]),this[_0x59c479(0x2e6)]=new Chats(this[_0x59c479(0x4f8)],this[_0x59c479(0x2eb)]),this[_0x59c479(0x2a0)]=new Caches(this['apiClient']),this[_0x59c479(0x57c)]=new NodeFiles(this[_0x59c479(0x2eb)]),this[_0x59c479(0x481)]=new Operations(this['apiClient']),this[_0x59c479(0x2be)]=new Tokens(this[_0x59c479(0x2eb)]),this[_0x59c479(0x4a9)]=new Tunings(this['apiClient']),this[_0x59c479(0x6b3)]=new FileSearchStores(this[_0x59c479(0x2eb)]);}}function getEnv(_0x2a983c){const _0x3c7658=a2_0x8e922d;var _0x2056df,_0x474c12,_0x2a84f6;return(_0x2a84f6=(_0x474c12=(_0x2056df=process===null||process===void 0x0?void 0x0:process.env)===null||_0x2056df===void 0x0?void 0x0:_0x2056df[_0x2a983c])===null||_0x474c12===void 0x0?void 0x0:_0x474c12[_0x3c7658(0xed)]())!==null&&_0x2a84f6!==void 0x0?_0x2a84f6:undefined;}function getBooleanEnv(_0x3048c4){return stringToBoolean(getEnv(_0x3048c4));}function stringToBoolean(_0x2f7737){const _0x27cda2=a2_0x8e922d;if(_0x2f7737===undefined)return![];return _0x2f7737[_0x27cda2(0x1c4)]()===_0x27cda2(0x692);}function getApiKeyFromEnv(){const _0x29c726=a2_0x8e922d,_0x2a71ae=getEnv(_0x29c726(0x5d3)),_0x48344b=getEnv(_0x29c726(0x5c9));return _0x2a71ae&&_0x48344b&&console[_0x29c726(0x1ef)](_0x29c726(0x626)),_0x2a71ae||_0x48344b||undefined;}exports[a2_0x8e922d(0x488)]=ApiError,exports[a2_0x8e922d(0x2e8)]=Batches,exports[a2_0x8e922d(0xfa)]=Caches,exports[a2_0x8e922d(0x33e)]=CancelTuningJobResponse,exports[a2_0x8e922d(0x68e)]=Chat,exports['Chats']=Chats,exports[a2_0x8e922d(0x55e)]=ComputeTokensResponse,exports[a2_0x8e922d(0x1cc)]=ContentReferenceImage,exports[a2_0x8e922d(0x559)]=ControlReferenceImage,exports[a2_0x8e922d(0x518)]=CountTokensResponse,exports[a2_0x8e922d(0x570)]=CreateFileResponse,exports['DeleteCachedContentResponse']=DeleteCachedContentResponse,exports[a2_0x8e922d(0x560)]=DeleteFileResponse,exports[a2_0x8e922d(0x4bc)]=DeleteModelResponse,exports['EditImageResponse']=EditImageResponse,exports['EmbedContentResponse']=EmbedContentResponse,exports[a2_0x8e922d(0x43a)]=Files,exports['FunctionResponse']=FunctionResponse,exports['FunctionResponseBlob']=FunctionResponseBlob,exports['FunctionResponseFileData']=FunctionResponseFileData,exports['FunctionResponsePart']=FunctionResponsePart,exports[a2_0x8e922d(0x4af)]=GenerateContentResponse,exports['GenerateContentResponsePromptFeedback']=GenerateContentResponsePromptFeedback,exports[a2_0x8e922d(0x275)]=GenerateContentResponseUsageMetadata,exports[a2_0x8e922d(0x569)]=GenerateImagesResponse,exports[a2_0x8e922d(0x175)]=GenerateVideosOperation,exports[a2_0x8e922d(0x2a2)]=GenerateVideosResponse,exports[a2_0x8e922d(0x351)]=GoogleGenAI,exports[a2_0x8e922d(0x46f)]=HttpResponse,exports[a2_0x8e922d(0x614)]=ImportFileOperation,exports[a2_0x8e922d(0x3ce)]=ImportFileResponse,exports[a2_0x8e922d(0x516)]=InlinedEmbedContentResponse,exports[a2_0x8e922d(0x58f)]=InlinedResponse,exports[a2_0x8e922d(0x102)]=ListBatchJobsResponse,exports[a2_0x8e922d(0x3eb)]=ListCachedContentsResponse,exports[a2_0x8e922d(0x1ad)]=ListDocumentsResponse,exports[a2_0x8e922d(0xe5)]=ListFileSearchStoresResponse,exports[a2_0x8e922d(0x203)]=ListFilesResponse,exports[a2_0x8e922d(0x5a3)]=ListModelsResponse,exports[a2_0x8e922d(0x43b)]=ListTuningJobsResponse,exports[a2_0x8e922d(0x5ff)]=Live,exports[a2_0x8e922d(0x40b)]=LiveClientToolResponse,exports[a2_0x8e922d(0x326)]=LiveMusicServerMessage,exports[a2_0x8e922d(0x2ab)]=LiveSendToolResponseParameters,exports['LiveServerMessage']=LiveServerMessage,exports[a2_0x8e922d(0xf5)]=MaskReferenceImage,exports[a2_0x8e922d(0x508)]=Models,exports[a2_0x8e922d(0x6aa)]=Operations,exports[a2_0x8e922d(0x397)]=Pager,exports[a2_0x8e922d(0x5e1)]=RawReferenceImage,exports[a2_0x8e922d(0x166)]=RecontextImageResponse,exports[a2_0x8e922d(0x447)]=RegisterFilesResponse,exports[a2_0x8e922d(0x12b)]=ReplayResponse,exports['SegmentImageResponse']=SegmentImageResponse,exports[a2_0x8e922d(0x420)]=Session,exports[a2_0x8e922d(0x32c)]=SingleEmbedContentResponse,exports[a2_0x8e922d(0x123)]=StyleReferenceImage,exports[a2_0x8e922d(0x404)]=SubjectReferenceImage,exports[a2_0x8e922d(0x67c)]=Tokens,exports[a2_0x8e922d(0x65a)]=UploadToFileSearchStoreOperation,exports[a2_0x8e922d(0x68b)]=UploadToFileSearchStoreResponse,exports['UploadToFileSearchStoreResumableResponse']=UploadToFileSearchStoreResumableResponse,exports[a2_0x8e922d(0x43f)]=UpscaleImageResponse,exports['createFunctionResponsePartFromBase64']=createFunctionResponsePartFromBase64,exports['createFunctionResponsePartFromUri']=createFunctionResponsePartFromUri,exports[a2_0x8e922d(0x5b2)]=createModelContent,exports[a2_0x8e922d(0xe2)]=createPartFromBase64,exports[a2_0x8e922d(0xcd)]=createPartFromCodeExecutionResult,exports[a2_0x8e922d(0x245)]=createPartFromExecutableCode,exports['createPartFromFunctionCall']=createPartFromFunctionCall,exports[a2_0x8e922d(0x386)]=createPartFromFunctionResponse,exports['createPartFromText']=createPartFromText,exports['createPartFromUri']=createPartFromUri,exports['createUserContent']=createUserContent,exports[a2_0x8e922d(0x608)]=mcpToTool,exports['setDefaultBaseUrls']=setDefaultBaseUrls;
|