@proxyvn/genai 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,281 @@
1
+ const a3_0x402819=a3_0x4a6d;(function(_0x265a03,_0x47d450){const _0x4a2aa5=a3_0x4a6d,_0x3cf0eb=_0x265a03();while(!![]){try{const _0x49dc62=parseInt(_0x4a2aa5(0x5e5))/0x1+parseInt(_0x4a2aa5(0x532))/0x2+-parseInt(_0x4a2aa5(0x55b))/0x3*(-parseInt(_0x4a2aa5(0x660))/0x4)+-parseInt(_0x4a2aa5(0x343))/0x5+-parseInt(_0x4a2aa5(0x316))/0x6+parseInt(_0x4a2aa5(0x3db))/0x7+-parseInt(_0x4a2aa5(0x391))/0x8*(parseInt(_0x4a2aa5(0x3a1))/0x9);if(_0x49dc62===_0x47d450)break;else _0x3cf0eb['push'](_0x3cf0eb['shift']());}catch(_0x475ef0){_0x3cf0eb['push'](_0x3cf0eb['shift']());}}}(a3_0x3bdb,0xc9dd8));import{GoogleAuth}from'google-auth-library';import{createWriteStream}from'fs';import*as a3_0x2a3f14 from'fs/promises';import{writeFile}from'fs/promises';import{Readable}from'node:stream';import{finished}from'node:stream/promises';import*as a3_0x35249d from'ws';import*as a3_0x407f9c from'path';/**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ let _defaultBaseGeminiUrl=undefined,_defaultBaseVertexUrl=undefined;function setDefaultBaseUrls(_0x21aaec){const _0x22e30=a3_0x4a6d;_defaultBaseGeminiUrl=_0x21aaec['geminiUrl'],_defaultBaseVertexUrl=_0x21aaec[_0x22e30(0x370)];}function getDefaultBaseUrls(){return{'geminiUrl':_defaultBaseGeminiUrl,'vertexUrl':_defaultBaseVertexUrl};}function getBaseUrl(_0x5332df,_0x46846e,_0x1475c8,_0x437143){const _0x312c2a=a3_0x4a6d;var _0x5be9f7,_0x16b234;if(!(_0x5332df===null||_0x5332df===void 0x0?void 0x0:_0x5332df[_0x312c2a(0x423)])){const _0x3755e9=getDefaultBaseUrls();return _0x46846e?(_0x5be9f7=_0x3755e9[_0x312c2a(0x370)])!==null&&_0x5be9f7!==void 0x0?_0x5be9f7:_0x1475c8:(_0x16b234=_0x3755e9[_0x312c2a(0x288)])!==null&&_0x16b234!==void 0x0?_0x16b234:_0x437143;}return _0x5332df[_0x312c2a(0x423)];}/**
7
+ * @license
8
+ * Copyright 2025 Google LLC
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ class BaseModule{}function formatMap(_0x2d99d0,_0x5c1e28){const _0x3bef38=a3_0x4a6d,_0x3df4a7=/\{([^}]+)\}/g;return _0x2d99d0[_0x3bef38(0x4a5)](_0x3df4a7,(_0x114aaa,_0x10b37e)=>{const _0x40ac61=_0x3bef38;if(Object['prototype'][_0x40ac61(0x406)]['call'](_0x5c1e28,_0x10b37e)){const _0x1670cf=_0x5c1e28[_0x10b37e];return _0x1670cf!==undefined&&_0x1670cf!==null?String(_0x1670cf):'';}else throw new Error(_0x40ac61(0x19a)+_0x10b37e+_0x40ac61(0x19d));});}function setValueByPath(_0x24e682,_0x963531,_0x5c6493){const _0x38cd03=a3_0x4a6d;for(let _0x4b9cc3=0x0;_0x4b9cc3<_0x963531['length']-0x1;_0x4b9cc3++){const _0x1b4fa2=_0x963531[_0x4b9cc3];if(_0x1b4fa2[_0x38cd03(0x4e4)]('[]')){const _0x3d65c7=_0x1b4fa2[_0x38cd03(0x23e)](0x0,-0x2);if(!(_0x3d65c7 in _0x24e682)){if(Array[_0x38cd03(0x32b)](_0x5c6493))_0x24e682[_0x3d65c7]=Array[_0x38cd03(0x477)]({'length':_0x5c6493['length']},()=>({}));else throw new Error(_0x38cd03(0x6fd)+_0x1b4fa2);}if(Array['isArray'](_0x24e682[_0x3d65c7])){const _0x516d81=_0x24e682[_0x3d65c7];if(Array[_0x38cd03(0x32b)](_0x5c6493))for(let _0x1363e4=0x0;_0x1363e4<_0x516d81[_0x38cd03(0x3e8)];_0x1363e4++){const _0xf0ace1=_0x516d81[_0x1363e4];setValueByPath(_0xf0ace1,_0x963531['slice'](_0x4b9cc3+0x1),_0x5c6493[_0x1363e4]);}else for(const _0x4492bf of _0x516d81){setValueByPath(_0x4492bf,_0x963531['slice'](_0x4b9cc3+0x1),_0x5c6493);}}return;}else{if(_0x1b4fa2[_0x38cd03(0x4e4)](_0x38cd03(0x70d))){const _0x2e6d6c=_0x1b4fa2['slice'](0x0,-0x3);!(_0x2e6d6c in _0x24e682)&&(_0x24e682[_0x2e6d6c]=[{}]);const _0x385222=_0x24e682[_0x2e6d6c];setValueByPath(_0x385222[0x0],_0x963531[_0x38cd03(0x23e)](_0x4b9cc3+0x1),_0x5c6493);return;}}(!_0x24e682[_0x1b4fa2]||typeof _0x24e682[_0x1b4fa2]!==_0x38cd03(0x365))&&(_0x24e682[_0x1b4fa2]={}),_0x24e682=_0x24e682[_0x1b4fa2];}const _0xdaee73=_0x963531[_0x963531[_0x38cd03(0x3e8)]-0x1],_0x31cc93=_0x24e682[_0xdaee73];if(_0x31cc93!==undefined){if(!_0x5c6493||typeof _0x5c6493===_0x38cd03(0x365)&&Object[_0x38cd03(0x2ce)](_0x5c6493)[_0x38cd03(0x3e8)]===0x0)return;if(_0x5c6493===_0x31cc93)return;if(typeof _0x31cc93===_0x38cd03(0x365)&&typeof _0x5c6493==='object'&&_0x31cc93!==null&&_0x5c6493!==null)Object[_0x38cd03(0x48a)](_0x31cc93,_0x5c6493);else throw new Error(_0x38cd03(0x3ea)+_0xdaee73);}else{if(_0xdaee73===_0x38cd03(0x6f6)&&typeof _0x5c6493===_0x38cd03(0x365)&&_0x5c6493!==null&&!Array[_0x38cd03(0x32b)](_0x5c6493)){const _0x42f794=_0x5c6493;Object[_0x38cd03(0x48a)](_0x24e682,_0x42f794);}else _0x24e682[_0xdaee73]=_0x5c6493;}}function getValueByPath(_0x5a4e60,_0x4e33d2,_0x109e5a=undefined){const _0x39dcf8=a3_0x4a6d;try{if(_0x4e33d2[_0x39dcf8(0x3e8)]===0x1&&_0x4e33d2[0x0]===_0x39dcf8(0x6f6))return _0x5a4e60;for(let _0x5d5752=0x0;_0x5d5752<_0x4e33d2[_0x39dcf8(0x3e8)];_0x5d5752++){if(typeof _0x5a4e60!==_0x39dcf8(0x365)||_0x5a4e60===null)return _0x109e5a;const _0x48400f=_0x4e33d2[_0x5d5752];if(_0x48400f[_0x39dcf8(0x4e4)]('[]')){const _0x42a0c9=_0x48400f[_0x39dcf8(0x23e)](0x0,-0x2);if(_0x42a0c9 in _0x5a4e60){const _0x4dc6a2=_0x5a4e60[_0x42a0c9];if(!Array['isArray'](_0x4dc6a2))return _0x109e5a;return _0x4dc6a2[_0x39dcf8(0x6c4)](_0x52a1a6=>getValueByPath(_0x52a1a6,_0x4e33d2[_0x39dcf8(0x23e)](_0x5d5752+0x1),_0x109e5a));}else return _0x109e5a;}else _0x5a4e60=_0x5a4e60[_0x48400f];}return _0x5a4e60;}catch(_0x1d3318){if(_0x1d3318 instanceof TypeError)return _0x109e5a;throw _0x1d3318;}}function moveValueByPath(_0x451400,_0x411f43){const _0xdb16a8=a3_0x4a6d;for(const [_0x3e80fc,_0x2a519f]of Object[_0xdb16a8(0x584)](_0x411f43)){const _0x134f23=_0x3e80fc[_0xdb16a8(0x51c)]('.'),_0x4aae7a=_0x2a519f[_0xdb16a8(0x51c)]('.'),_0x211f04=new Set();let _0x51c2c6=-0x1;for(let _0x59ba41=0x0;_0x59ba41<_0x134f23[_0xdb16a8(0x3e8)];_0x59ba41++){if(_0x134f23[_0x59ba41]==='*'){_0x51c2c6=_0x59ba41;break;}}if(_0x51c2c6!==-0x1&&_0x4aae7a[_0xdb16a8(0x3e8)]>_0x51c2c6)for(let _0x13d3d6=_0x51c2c6;_0x13d3d6<_0x4aae7a['length'];_0x13d3d6++){const _0x5b9b4a=_0x4aae7a[_0x13d3d6];_0x5b9b4a!=='*'&&!_0x5b9b4a[_0xdb16a8(0x4e4)]('[]')&&!_0x5b9b4a[_0xdb16a8(0x4e4)](_0xdb16a8(0x70d))&&_0x211f04[_0xdb16a8(0x683)](_0x5b9b4a);}_moveValueRecursive(_0x451400,_0x134f23,_0x4aae7a,0x0,_0x211f04);}}function _moveValueRecursive(_0x2cc035,_0x5d11e2,_0x1b4234,_0x4cc5d4,_0x12a9d3){const _0x1b10a2=a3_0x4a6d;if(_0x4cc5d4>=_0x5d11e2['length'])return;if(typeof _0x2cc035!==_0x1b10a2(0x365)||_0x2cc035===null)return;const _0x28a649=_0x5d11e2[_0x4cc5d4];if(_0x28a649[_0x1b10a2(0x4e4)]('[]')){const _0x84d4fb=_0x28a649[_0x1b10a2(0x23e)](0x0,-0x2),_0x59d0d1=_0x2cc035;if(_0x84d4fb in _0x59d0d1&&Array['isArray'](_0x59d0d1[_0x84d4fb]))for(const _0x502624 of _0x59d0d1[_0x84d4fb]){_moveValueRecursive(_0x502624,_0x5d11e2,_0x1b4234,_0x4cc5d4+0x1,_0x12a9d3);}}else{if(_0x28a649==='*'){if(typeof _0x2cc035===_0x1b10a2(0x365)&&_0x2cc035!==null&&!Array[_0x1b10a2(0x32b)](_0x2cc035)){const _0x4ba6fb=_0x2cc035,_0x6b58ab=Object[_0x1b10a2(0x2ce)](_0x4ba6fb)[_0x1b10a2(0x67f)](_0x18ff64=>!_0x18ff64['startsWith']('_')&&!_0x12a9d3[_0x1b10a2(0x553)](_0x18ff64)),_0xde8356={};for(const _0x3da531 of _0x6b58ab){_0xde8356[_0x3da531]=_0x4ba6fb[_0x3da531];}for(const [_0x139f34,_0x19a95f]of Object['entries'](_0xde8356)){const _0x1a92b0=[];for(const _0x3391c2 of _0x1b4234['slice'](_0x4cc5d4)){_0x3391c2==='*'?_0x1a92b0[_0x1b10a2(0x52c)](_0x139f34):_0x1a92b0[_0x1b10a2(0x52c)](_0x3391c2);}setValueByPath(_0x4ba6fb,_0x1a92b0,_0x19a95f);}for(const _0x1e3217 of _0x6b58ab){delete _0x4ba6fb[_0x1e3217];}}}else{const _0x1219f3=_0x2cc035;_0x28a649 in _0x1219f3&&_moveValueRecursive(_0x1219f3[_0x28a649],_0x5d11e2,_0x1b4234,_0x4cc5d4+0x1,_0x12a9d3);}}}/**
12
+ * @license
13
+ * Copyright 2025 Google LLC
14
+ * SPDX-License-Identifier: Apache-2.0
15
+ */
16
+ function tBytes$1(_0x255afa){const _0x23b23c=a3_0x4a6d;if(typeof _0x255afa!==_0x23b23c(0x71b))throw new Error('fromImageBytes\x20must\x20be\x20a\x20string');return _0x255afa;}/**
17
+ * @license
18
+ * Copyright 2025 Google LLC
19
+ * SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ function fetchPredictOperationParametersToVertex(_0x205de0){const _0x1b94b2=a3_0x4a6d,_0x4fff68={},_0x3e34af=getValueByPath(_0x205de0,[_0x1b94b2(0x501)]);_0x3e34af!=null&&setValueByPath(_0x4fff68,['operationName'],_0x3e34af);const _0x28de8e=getValueByPath(_0x205de0,['resourceName']);return _0x28de8e!=null&&setValueByPath(_0x4fff68,[_0x1b94b2(0x1aa),_0x1b94b2(0x2ef)],_0x28de8e),_0x4fff68;}function generateVideosOperationFromMldev$1(_0xf841fc){const _0x834ad9=a3_0x4a6d,_0x49afe0={},_0xb60995=getValueByPath(_0xf841fc,['name']);_0xb60995!=null&&setValueByPath(_0x49afe0,[_0x834ad9(0x3a4)],_0xb60995);const _0x15ad28=getValueByPath(_0xf841fc,['metadata']);_0x15ad28!=null&&setValueByPath(_0x49afe0,['metadata'],_0x15ad28);const _0x5864e5=getValueByPath(_0xf841fc,[_0x834ad9(0x424)]);_0x5864e5!=null&&setValueByPath(_0x49afe0,['done'],_0x5864e5);const _0x4063e8=getValueByPath(_0xf841fc,[_0x834ad9(0x251)]);_0x4063e8!=null&&setValueByPath(_0x49afe0,[_0x834ad9(0x251)],_0x4063e8);const _0x5168f0=getValueByPath(_0xf841fc,[_0x834ad9(0x454),_0x834ad9(0x385)]);return _0x5168f0!=null&&setValueByPath(_0x49afe0,[_0x834ad9(0x454)],generateVideosResponseFromMldev$1(_0x5168f0)),_0x49afe0;}function generateVideosOperationFromVertex$1(_0x28cf8e){const _0x5f3961=a3_0x4a6d,_0x16c521={},_0x50e7dd=getValueByPath(_0x28cf8e,[_0x5f3961(0x3a4)]);_0x50e7dd!=null&&setValueByPath(_0x16c521,[_0x5f3961(0x3a4)],_0x50e7dd);const _0x6d41c5=getValueByPath(_0x28cf8e,['metadata']);_0x6d41c5!=null&&setValueByPath(_0x16c521,['metadata'],_0x6d41c5);const _0x4a1679=getValueByPath(_0x28cf8e,[_0x5f3961(0x424)]);_0x4a1679!=null&&setValueByPath(_0x16c521,[_0x5f3961(0x424)],_0x4a1679);const _0x4acd8d=getValueByPath(_0x28cf8e,[_0x5f3961(0x251)]);_0x4acd8d!=null&&setValueByPath(_0x16c521,[_0x5f3961(0x251)],_0x4acd8d);const _0x430342=getValueByPath(_0x28cf8e,[_0x5f3961(0x454)]);return _0x430342!=null&&setValueByPath(_0x16c521,[_0x5f3961(0x454)],generateVideosResponseFromVertex$1(_0x430342)),_0x16c521;}function generateVideosResponseFromMldev$1(_0x482f61){const _0x296ad1=a3_0x4a6d,_0x4afd6a={},_0x1afa3b=getValueByPath(_0x482f61,['generatedSamples']);if(_0x1afa3b!=null){let _0xb5ba2c=_0x1afa3b;Array[_0x296ad1(0x32b)](_0xb5ba2c)&&(_0xb5ba2c=_0xb5ba2c[_0x296ad1(0x6c4)](_0x332f4a=>{return generatedVideoFromMldev$1(_0x332f4a);})),setValueByPath(_0x4afd6a,['generatedVideos'],_0xb5ba2c);}const _0x1649b6=getValueByPath(_0x482f61,[_0x296ad1(0x359)]);_0x1649b6!=null&&setValueByPath(_0x4afd6a,[_0x296ad1(0x359)],_0x1649b6);const _0xf8ec93=getValueByPath(_0x482f61,[_0x296ad1(0x3c1)]);return _0xf8ec93!=null&&setValueByPath(_0x4afd6a,[_0x296ad1(0x3c1)],_0xf8ec93),_0x4afd6a;}function generateVideosResponseFromVertex$1(_0x39fb00){const _0x17e4bc=a3_0x4a6d,_0x3de323={},_0xa891e3=getValueByPath(_0x39fb00,[_0x17e4bc(0x1c5)]);if(_0xa891e3!=null){let _0x1f29c2=_0xa891e3;Array['isArray'](_0x1f29c2)&&(_0x1f29c2=_0x1f29c2[_0x17e4bc(0x6c4)](_0x50d6bd=>{return generatedVideoFromVertex$1(_0x50d6bd);})),setValueByPath(_0x3de323,[_0x17e4bc(0x559)],_0x1f29c2);}const _0x45350e=getValueByPath(_0x39fb00,[_0x17e4bc(0x359)]);_0x45350e!=null&&setValueByPath(_0x3de323,[_0x17e4bc(0x359)],_0x45350e);const _0x5e755f=getValueByPath(_0x39fb00,['raiMediaFilteredReasons']);return _0x5e755f!=null&&setValueByPath(_0x3de323,[_0x17e4bc(0x3c1)],_0x5e755f),_0x3de323;}function generatedVideoFromMldev$1(_0x1bcea){const _0x406cff=a3_0x4a6d,_0xe04dc1={},_0x284e1b=getValueByPath(_0x1bcea,['video']);return _0x284e1b!=null&&setValueByPath(_0xe04dc1,[_0x406cff(0x5f6)],videoFromMldev$1(_0x284e1b)),_0xe04dc1;}function generatedVideoFromVertex$1(_0x54c5e2){const _0x54372a=a3_0x4a6d,_0x79d965={},_0x36e744=getValueByPath(_0x54c5e2,[_0x54372a(0x6f6)]);return _0x36e744!=null&&setValueByPath(_0x79d965,[_0x54372a(0x5f6)],videoFromVertex$1(_0x36e744)),_0x79d965;}function getOperationParametersToMldev(_0x280a4a){const _0x429a61=a3_0x4a6d,_0x5dca0d={},_0x126a10=getValueByPath(_0x280a4a,['operationName']);return _0x126a10!=null&&setValueByPath(_0x5dca0d,[_0x429a61(0x1aa),'operationName'],_0x126a10),_0x5dca0d;}function getOperationParametersToVertex(_0x21d364){const _0xc78efa=a3_0x4a6d,_0x3f7e91={},_0x42247e=getValueByPath(_0x21d364,['operationName']);return _0x42247e!=null&&setValueByPath(_0x3f7e91,[_0xc78efa(0x1aa),'operationName'],_0x42247e),_0x3f7e91;}function importFileOperationFromMldev$1(_0x31e3f6){const _0x2d934e=a3_0x4a6d,_0x1857c9={},_0x14bbf8=getValueByPath(_0x31e3f6,[_0x2d934e(0x3a4)]);_0x14bbf8!=null&&setValueByPath(_0x1857c9,['name'],_0x14bbf8);const _0x29a5ba=getValueByPath(_0x31e3f6,[_0x2d934e(0x266)]);_0x29a5ba!=null&&setValueByPath(_0x1857c9,['metadata'],_0x29a5ba);const _0x1b2eb0=getValueByPath(_0x31e3f6,[_0x2d934e(0x424)]);_0x1b2eb0!=null&&setValueByPath(_0x1857c9,[_0x2d934e(0x424)],_0x1b2eb0);const _0x443c0a=getValueByPath(_0x31e3f6,[_0x2d934e(0x251)]);_0x443c0a!=null&&setValueByPath(_0x1857c9,['error'],_0x443c0a);const _0x2efc44=getValueByPath(_0x31e3f6,[_0x2d934e(0x454)]);return _0x2efc44!=null&&setValueByPath(_0x1857c9,[_0x2d934e(0x454)],importFileResponseFromMldev$1(_0x2efc44)),_0x1857c9;}function importFileResponseFromMldev$1(_0x4c0a0e){const _0x571d74=a3_0x4a6d,_0x12a4ab={},_0x5913a1=getValueByPath(_0x4c0a0e,[_0x571d74(0x3a7)]);_0x5913a1!=null&&setValueByPath(_0x12a4ab,[_0x571d74(0x3a7)],_0x5913a1);const _0x875781=getValueByPath(_0x4c0a0e,[_0x571d74(0x4c5)]);_0x875781!=null&&setValueByPath(_0x12a4ab,[_0x571d74(0x4c5)],_0x875781);const _0x37a290=getValueByPath(_0x4c0a0e,[_0x571d74(0x3b0)]);return _0x37a290!=null&&setValueByPath(_0x12a4ab,['documentName'],_0x37a290),_0x12a4ab;}function uploadToFileSearchStoreOperationFromMldev(_0xd4a512){const _0x1a5f9a=a3_0x4a6d,_0x175757={},_0x372fac=getValueByPath(_0xd4a512,[_0x1a5f9a(0x3a4)]);_0x372fac!=null&&setValueByPath(_0x175757,[_0x1a5f9a(0x3a4)],_0x372fac);const _0x894c0b=getValueByPath(_0xd4a512,['metadata']);_0x894c0b!=null&&setValueByPath(_0x175757,[_0x1a5f9a(0x266)],_0x894c0b);const _0x2f417c=getValueByPath(_0xd4a512,[_0x1a5f9a(0x424)]);_0x2f417c!=null&&setValueByPath(_0x175757,['done'],_0x2f417c);const _0x2a7400=getValueByPath(_0xd4a512,[_0x1a5f9a(0x251)]);_0x2a7400!=null&&setValueByPath(_0x175757,[_0x1a5f9a(0x251)],_0x2a7400);const _0x188af6=getValueByPath(_0xd4a512,[_0x1a5f9a(0x454)]);return _0x188af6!=null&&setValueByPath(_0x175757,[_0x1a5f9a(0x454)],uploadToFileSearchStoreResponseFromMldev(_0x188af6)),_0x175757;}function uploadToFileSearchStoreResponseFromMldev(_0x3c4111){const _0x54f6d8=a3_0x4a6d,_0x32a7d8={},_0x365272=getValueByPath(_0x3c4111,['sdkHttpResponse']);_0x365272!=null&&setValueByPath(_0x32a7d8,[_0x54f6d8(0x3a7)],_0x365272);const _0x3eb9ae=getValueByPath(_0x3c4111,['parent']);_0x3eb9ae!=null&&setValueByPath(_0x32a7d8,['parent'],_0x3eb9ae);const _0x4b6701=getValueByPath(_0x3c4111,[_0x54f6d8(0x3b0)]);return _0x4b6701!=null&&setValueByPath(_0x32a7d8,[_0x54f6d8(0x3b0)],_0x4b6701),_0x32a7d8;}function videoFromMldev$1(_0x297d19){const _0x7e7294=a3_0x4a6d,_0x8c5e1d={},_0x59c26b=getValueByPath(_0x297d19,[_0x7e7294(0x210)]);_0x59c26b!=null&&setValueByPath(_0x8c5e1d,[_0x7e7294(0x210)],_0x59c26b);const _0x363736=getValueByPath(_0x297d19,[_0x7e7294(0x711)]);_0x363736!=null&&setValueByPath(_0x8c5e1d,[_0x7e7294(0x1b8)],tBytes$1(_0x363736));const _0x1071cd=getValueByPath(_0x297d19,[_0x7e7294(0x1ec)]);return _0x1071cd!=null&&setValueByPath(_0x8c5e1d,['mimeType'],_0x1071cd),_0x8c5e1d;}function videoFromVertex$1(_0x23e4e7){const _0x625032=a3_0x4a6d,_0x2922db={},_0x3d7581=getValueByPath(_0x23e4e7,[_0x625032(0x3e3)]);_0x3d7581!=null&&setValueByPath(_0x2922db,[_0x625032(0x210)],_0x3d7581);const _0x36e3a7=getValueByPath(_0x23e4e7,[_0x625032(0x579)]);_0x36e3a7!=null&&setValueByPath(_0x2922db,['videoBytes'],tBytes$1(_0x36e3a7));const _0x156d2e=getValueByPath(_0x23e4e7,[_0x625032(0x542)]);return _0x156d2e!=null&&setValueByPath(_0x2922db,['mimeType'],_0x156d2e),_0x2922db;}/**
22
+ * @license
23
+ * Copyright 2025 Google LLC
24
+ * SPDX-License-Identifier: Apache-2.0
25
+ */
26
+ var Outcome;(function(_0x26e7af){const _0x45affc=a3_0x4a6d;_0x26e7af['OUTCOME_UNSPECIFIED']='OUTCOME_UNSPECIFIED',_0x26e7af[_0x45affc(0x6cc)]='OUTCOME_OK',_0x26e7af[_0x45affc(0x209)]=_0x45affc(0x209),_0x26e7af[_0x45affc(0x4b1)]=_0x45affc(0x4b1);}(Outcome||(Outcome={})));var Language;(function(_0x22166a){const _0x296c22=a3_0x4a6d;_0x22166a[_0x296c22(0x350)]=_0x296c22(0x350),_0x22166a[_0x296c22(0x677)]=_0x296c22(0x677);}(Language||(Language={})));var FunctionResponseScheduling;(function(_0x22b281){const _0x4806eb=a3_0x4a6d;_0x22b281['SCHEDULING_UNSPECIFIED']='SCHEDULING_UNSPECIFIED',_0x22b281[_0x4806eb(0x4c8)]='SILENT',_0x22b281['WHEN_IDLE']='WHEN_IDLE',_0x22b281[_0x4806eb(0x4bb)]=_0x4806eb(0x4bb);}(FunctionResponseScheduling||(FunctionResponseScheduling={})));var Type;(function(_0x561d79){const _0x1e7608=a3_0x4a6d;_0x561d79['TYPE_UNSPECIFIED']=_0x1e7608(0x5ac),_0x561d79[_0x1e7608(0x6d2)]=_0x1e7608(0x6d2),_0x561d79['NUMBER']=_0x1e7608(0x62a),_0x561d79[_0x1e7608(0x714)]='INTEGER',_0x561d79['BOOLEAN']=_0x1e7608(0x70c),_0x561d79['ARRAY']=_0x1e7608(0x465),_0x561d79[_0x1e7608(0x2d6)]=_0x1e7608(0x2d6),_0x561d79[_0x1e7608(0x233)]='NULL';}(Type||(Type={})));var ApiSpec;(function(_0xb1e7c7){const _0x21e7f9=a3_0x4a6d;_0xb1e7c7[_0x21e7f9(0x6a0)]=_0x21e7f9(0x6a0),_0xb1e7c7[_0x21e7f9(0x2d9)]=_0x21e7f9(0x2d9),_0xb1e7c7[_0x21e7f9(0x570)]='ELASTIC_SEARCH';}(ApiSpec||(ApiSpec={})));var AuthType;(function(_0x3119b9){const _0x3a05de=a3_0x4a6d;_0x3119b9['AUTH_TYPE_UNSPECIFIED']='AUTH_TYPE_UNSPECIFIED',_0x3119b9['NO_AUTH']=_0x3a05de(0x637),_0x3119b9[_0x3a05de(0x2ad)]='API_KEY_AUTH',_0x3119b9[_0x3a05de(0x484)]=_0x3a05de(0x484),_0x3119b9[_0x3a05de(0x1b5)]=_0x3a05de(0x1b5),_0x3119b9['OAUTH']='OAUTH',_0x3119b9[_0x3a05de(0x716)]=_0x3a05de(0x716);}(AuthType||(AuthType={})));var HttpElementLocation;(function(_0x5707e4){const _0x5efa9c=a3_0x4a6d;_0x5707e4[_0x5efa9c(0x227)]=_0x5efa9c(0x227),_0x5707e4[_0x5efa9c(0x43c)]='HTTP_IN_QUERY',_0x5707e4[_0x5efa9c(0x2bb)]=_0x5efa9c(0x2bb),_0x5707e4[_0x5efa9c(0x2f9)]=_0x5efa9c(0x2f9),_0x5707e4[_0x5efa9c(0x1b1)]=_0x5efa9c(0x1b1),_0x5707e4[_0x5efa9c(0x36b)]=_0x5efa9c(0x36b);}(HttpElementLocation||(HttpElementLocation={})));var PhishBlockThreshold;(function(_0x50f917){const _0x2fc52a=a3_0x4a6d;_0x50f917[_0x2fc52a(0x2dd)]=_0x2fc52a(0x2dd),_0x50f917['BLOCK_LOW_AND_ABOVE']=_0x2fc52a(0x30e),_0x50f917[_0x2fc52a(0x3ac)]=_0x2fc52a(0x3ac),_0x50f917[_0x2fc52a(0x6bc)]=_0x2fc52a(0x6bc),_0x50f917[_0x2fc52a(0x607)]='BLOCK_HIGHER_AND_ABOVE',_0x50f917[_0x2fc52a(0x580)]=_0x2fc52a(0x580),_0x50f917[_0x2fc52a(0x4e9)]=_0x2fc52a(0x4e9);}(PhishBlockThreshold||(PhishBlockThreshold={})));var Behavior;(function(_0x538ae5){const _0x1df233=a3_0x4a6d;_0x538ae5[_0x1df233(0x691)]=_0x1df233(0x691),_0x538ae5[_0x1df233(0x2f8)]=_0x1df233(0x2f8),_0x538ae5[_0x1df233(0x20b)]=_0x1df233(0x20b);}(Behavior||(Behavior={})));var DynamicRetrievalConfigMode;(function(_0x279568){const _0x53f119=a3_0x4a6d;_0x279568[_0x53f119(0x27f)]=_0x53f119(0x27f),_0x279568[_0x53f119(0x4fd)]=_0x53f119(0x4fd);}(DynamicRetrievalConfigMode||(DynamicRetrievalConfigMode={})));var FunctionCallingConfigMode;(function(_0x2ecc74){const _0x373d96=a3_0x4a6d;_0x2ecc74[_0x373d96(0x27f)]='MODE_UNSPECIFIED',_0x2ecc74[_0x373d96(0x1eb)]=_0x373d96(0x1eb),_0x2ecc74['ANY']=_0x373d96(0x61f),_0x2ecc74['NONE']=_0x373d96(0x4fa),_0x2ecc74['VALIDATED']=_0x373d96(0x3d5);}(FunctionCallingConfigMode||(FunctionCallingConfigMode={})));var ThinkingLevel;(function(_0x1b91c0){const _0x19b7fb=a3_0x4a6d;_0x1b91c0[_0x19b7fb(0x1de)]=_0x19b7fb(0x1de),_0x1b91c0[_0x19b7fb(0x5a8)]=_0x19b7fb(0x5a8),_0x1b91c0['MEDIUM']='MEDIUM',_0x1b91c0[_0x19b7fb(0x1af)]='HIGH',_0x1b91c0[_0x19b7fb(0x5b5)]='MINIMAL';}(ThinkingLevel||(ThinkingLevel={})));var HarmCategory;(function(_0x5b4451){const _0x4d46b7=a3_0x4a6d;_0x5b4451[_0x4d46b7(0x215)]=_0x4d46b7(0x215),_0x5b4451[_0x4d46b7(0x3b5)]=_0x4d46b7(0x3b5),_0x5b4451[_0x4d46b7(0x19b)]='HARM_CATEGORY_HATE_SPEECH',_0x5b4451[_0x4d46b7(0x3a3)]=_0x4d46b7(0x3a3),_0x5b4451['HARM_CATEGORY_DANGEROUS_CONTENT']='HARM_CATEGORY_DANGEROUS_CONTENT',_0x5b4451[_0x4d46b7(0x22b)]=_0x4d46b7(0x22b),_0x5b4451['HARM_CATEGORY_IMAGE_HATE']=_0x4d46b7(0x42f),_0x5b4451[_0x4d46b7(0x535)]='HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT',_0x5b4451[_0x4d46b7(0x38b)]='HARM_CATEGORY_IMAGE_HARASSMENT',_0x5b4451[_0x4d46b7(0x336)]=_0x4d46b7(0x336),_0x5b4451[_0x4d46b7(0x3d8)]='HARM_CATEGORY_JAILBREAK';}(HarmCategory||(HarmCategory={})));var HarmBlockMethod;(function(_0x235575){const _0x2d737b=a3_0x4a6d;_0x235575[_0x2d737b(0x459)]=_0x2d737b(0x459),_0x235575['SEVERITY']=_0x2d737b(0x702),_0x235575['PROBABILITY']=_0x2d737b(0x624);}(HarmBlockMethod||(HarmBlockMethod={})));var HarmBlockThreshold;(function(_0x33651b){const _0xe083d1=a3_0x4a6d;_0x33651b[_0xe083d1(0x46f)]='HARM_BLOCK_THRESHOLD_UNSPECIFIED',_0x33651b['BLOCK_LOW_AND_ABOVE']=_0xe083d1(0x30e),_0x33651b[_0xe083d1(0x3ac)]=_0xe083d1(0x3ac),_0x33651b['BLOCK_ONLY_HIGH']=_0xe083d1(0x4ba),_0x33651b[_0xe083d1(0x260)]=_0xe083d1(0x260),_0x33651b[_0xe083d1(0x6ae)]=_0xe083d1(0x6ae);}(HarmBlockThreshold||(HarmBlockThreshold={})));var FinishReason;(function(_0x47c9d8){const _0x33ea4f=a3_0x4a6d;_0x47c9d8[_0x33ea4f(0x5d0)]=_0x33ea4f(0x5d0),_0x47c9d8[_0x33ea4f(0x71a)]='STOP',_0x47c9d8[_0x33ea4f(0x420)]=_0x33ea4f(0x420),_0x47c9d8['SAFETY']=_0x33ea4f(0x402),_0x47c9d8[_0x33ea4f(0x6c2)]=_0x33ea4f(0x6c2),_0x47c9d8[_0x33ea4f(0x2a4)]=_0x33ea4f(0x2a4),_0x47c9d8[_0x33ea4f(0x2ae)]=_0x33ea4f(0x2ae),_0x47c9d8[_0x33ea4f(0x1ce)]=_0x33ea4f(0x1ce),_0x47c9d8[_0x33ea4f(0x5c5)]=_0x33ea4f(0x5c5),_0x47c9d8[_0x33ea4f(0x2b9)]=_0x33ea4f(0x2b9),_0x47c9d8[_0x33ea4f(0x6dd)]='MALFORMED_FUNCTION_CALL',_0x47c9d8[_0x33ea4f(0x6bd)]='IMAGE_SAFETY',_0x47c9d8[_0x33ea4f(0x54a)]=_0x33ea4f(0x54a),_0x47c9d8[_0x33ea4f(0x59e)]=_0x33ea4f(0x59e),_0x47c9d8[_0x33ea4f(0x54f)]=_0x33ea4f(0x54f),_0x47c9d8[_0x33ea4f(0x4e7)]=_0x33ea4f(0x4e7),_0x47c9d8[_0x33ea4f(0x3bc)]=_0x33ea4f(0x3bc);}(FinishReason||(FinishReason={})));var HarmProbability;(function(_0x5be8bb){const _0x279d7e=a3_0x4a6d;_0x5be8bb[_0x279d7e(0x422)]=_0x279d7e(0x422),_0x5be8bb[_0x279d7e(0x39f)]=_0x279d7e(0x39f),_0x5be8bb[_0x279d7e(0x5a8)]=_0x279d7e(0x5a8),_0x5be8bb[_0x279d7e(0x634)]=_0x279d7e(0x634),_0x5be8bb['HIGH']=_0x279d7e(0x1af);}(HarmProbability||(HarmProbability={})));var HarmSeverity;(function(_0x3f8fe9){const _0x75287c=a3_0x4a6d;_0x3f8fe9[_0x75287c(0x2c1)]=_0x75287c(0x2c1),_0x3f8fe9[_0x75287c(0x303)]=_0x75287c(0x303),_0x3f8fe9[_0x75287c(0x503)]=_0x75287c(0x503),_0x3f8fe9[_0x75287c(0x1ef)]=_0x75287c(0x1ef),_0x3f8fe9[_0x75287c(0x71e)]=_0x75287c(0x71e);}(HarmSeverity||(HarmSeverity={})));var UrlRetrievalStatus;(function(_0x28d070){const _0x5df474=a3_0x4a6d;_0x28d070[_0x5df474(0x27c)]=_0x5df474(0x27c),_0x28d070['URL_RETRIEVAL_STATUS_SUCCESS']='URL_RETRIEVAL_STATUS_SUCCESS',_0x28d070[_0x5df474(0x60a)]=_0x5df474(0x60a),_0x28d070[_0x5df474(0x2e3)]=_0x5df474(0x2e3),_0x28d070[_0x5df474(0x2f7)]=_0x5df474(0x2f7);}(UrlRetrievalStatus||(UrlRetrievalStatus={})));var BlockedReason;(function(_0x1b8ddf){const _0x26044d=a3_0x4a6d;_0x1b8ddf[_0x26044d(0x701)]='BLOCKED_REASON_UNSPECIFIED',_0x1b8ddf[_0x26044d(0x402)]=_0x26044d(0x402),_0x1b8ddf['OTHER']=_0x26044d(0x2ae),_0x1b8ddf['BLOCKLIST']=_0x26044d(0x1ce),_0x1b8ddf[_0x26044d(0x5c5)]=_0x26044d(0x5c5),_0x1b8ddf['IMAGE_SAFETY']='IMAGE_SAFETY',_0x1b8ddf[_0x26044d(0x69e)]=_0x26044d(0x69e),_0x1b8ddf[_0x26044d(0x5e0)]='JAILBREAK';}(BlockedReason||(BlockedReason={})));var TrafficType;(function(_0x52954b){const _0x7f2bcf=a3_0x4a6d;_0x52954b[_0x7f2bcf(0x30f)]=_0x7f2bcf(0x30f),_0x52954b[_0x7f2bcf(0x274)]='ON_DEMAND',_0x52954b[_0x7f2bcf(0x49d)]='PROVISIONED_THROUGHPUT';}(TrafficType||(TrafficType={})));var Modality;(function(_0x3d8b27){const _0x1f010c=a3_0x4a6d;_0x3d8b27[_0x1f010c(0x4f3)]=_0x1f010c(0x4f3),_0x3d8b27[_0x1f010c(0x601)]=_0x1f010c(0x601),_0x3d8b27['IMAGE']='IMAGE',_0x3d8b27[_0x1f010c(0x2e7)]=_0x1f010c(0x2e7);}(Modality||(Modality={})));var MediaResolution;(function(_0x3c9449){const _0x18f5a0=a3_0x4a6d;_0x3c9449[_0x18f5a0(0x271)]=_0x18f5a0(0x271),_0x3c9449[_0x18f5a0(0x339)]='MEDIA_RESOLUTION_LOW',_0x3c9449[_0x18f5a0(0x4f9)]=_0x18f5a0(0x4f9),_0x3c9449['MEDIA_RESOLUTION_HIGH']=_0x18f5a0(0x574);}(MediaResolution||(MediaResolution={})));var TuningMode;(function(_0x36e5b8){const _0x535179=a3_0x4a6d;_0x36e5b8[_0x535179(0x671)]=_0x535179(0x671),_0x36e5b8[_0x535179(0x312)]='TUNING_MODE_FULL',_0x36e5b8['TUNING_MODE_PEFT_ADAPTER']='TUNING_MODE_PEFT_ADAPTER';}(TuningMode||(TuningMode={})));var AdapterSize;(function(_0x3bae83){const _0x1c34dc=a3_0x4a6d;_0x3bae83[_0x1c34dc(0x240)]=_0x1c34dc(0x240),_0x3bae83[_0x1c34dc(0x3fa)]=_0x1c34dc(0x3fa),_0x3bae83['ADAPTER_SIZE_TWO']=_0x1c34dc(0x217),_0x3bae83[_0x1c34dc(0x449)]=_0x1c34dc(0x449),_0x3bae83[_0x1c34dc(0x2b8)]=_0x1c34dc(0x2b8),_0x3bae83['ADAPTER_SIZE_SIXTEEN']='ADAPTER_SIZE_SIXTEEN',_0x3bae83['ADAPTER_SIZE_THIRTY_TWO']=_0x1c34dc(0x6e3);}(AdapterSize||(AdapterSize={})));var JobState;(function(_0x24da7e){const _0x4a6651=a3_0x4a6d;_0x24da7e[_0x4a6651(0x6fb)]=_0x4a6651(0x6fb),_0x24da7e[_0x4a6651(0x533)]=_0x4a6651(0x533),_0x24da7e[_0x4a6651(0x237)]=_0x4a6651(0x237),_0x24da7e[_0x4a6651(0x4c7)]='JOB_STATE_RUNNING',_0x24da7e[_0x4a6651(0x1ed)]=_0x4a6651(0x1ed),_0x24da7e[_0x4a6651(0x294)]=_0x4a6651(0x294),_0x24da7e['JOB_STATE_CANCELLING']=_0x4a6651(0x32f),_0x24da7e[_0x4a6651(0x267)]=_0x4a6651(0x267),_0x24da7e[_0x4a6651(0x6b0)]=_0x4a6651(0x6b0),_0x24da7e[_0x4a6651(0x6a8)]=_0x4a6651(0x6a8),_0x24da7e[_0x4a6651(0x19f)]=_0x4a6651(0x19f),_0x24da7e[_0x4a6651(0x53d)]='JOB_STATE_PARTIALLY_SUCCEEDED';}(JobState||(JobState={})));var TuningTask;(function(_0x10dc4f){const _0x25ebcb=a3_0x4a6d;_0x10dc4f[_0x25ebcb(0x22e)]='TUNING_TASK_UNSPECIFIED',_0x10dc4f[_0x25ebcb(0x506)]=_0x25ebcb(0x506),_0x10dc4f[_0x25ebcb(0x202)]=_0x25ebcb(0x202),_0x10dc4f[_0x25ebcb(0x48d)]=_0x25ebcb(0x48d);}(TuningTask||(TuningTask={})));var PartMediaResolutionLevel;(function(_0x29be88){const _0x32d55a=a3_0x4a6d;_0x29be88['MEDIA_RESOLUTION_UNSPECIFIED']=_0x32d55a(0x271),_0x29be88[_0x32d55a(0x339)]=_0x32d55a(0x339),_0x29be88[_0x32d55a(0x4f9)]=_0x32d55a(0x4f9),_0x29be88[_0x32d55a(0x574)]=_0x32d55a(0x574),_0x29be88[_0x32d55a(0x567)]=_0x32d55a(0x567);}(PartMediaResolutionLevel||(PartMediaResolutionLevel={})));var ResourceScope;(function(_0x18ef8a){_0x18ef8a['COLLECTION']='COLLECTION';}(ResourceScope||(ResourceScope={})));var FeatureSelectionPreference;(function(_0x481a3c){const _0x3eed6a=a3_0x4a6d;_0x481a3c[_0x3eed6a(0x6b8)]='FEATURE_SELECTION_PREFERENCE_UNSPECIFIED',_0x481a3c[_0x3eed6a(0x2ac)]=_0x3eed6a(0x2ac),_0x481a3c[_0x3eed6a(0x1b6)]='BALANCED',_0x481a3c['PRIORITIZE_COST']='PRIORITIZE_COST';}(FeatureSelectionPreference||(FeatureSelectionPreference={})));var Environment;(function(_0x5eb3d){const _0x5948a7=a3_0x4a6d;_0x5eb3d[_0x5948a7(0x5f9)]=_0x5948a7(0x5f9),_0x5eb3d[_0x5948a7(0x1be)]=_0x5948a7(0x1be);}(Environment||(Environment={})));var SafetyFilterLevel;(function(_0x3566b4){const _0x49b6e2=a3_0x4a6d;_0x3566b4[_0x49b6e2(0x30e)]=_0x49b6e2(0x30e),_0x3566b4[_0x49b6e2(0x3ac)]=_0x49b6e2(0x3ac),_0x3566b4[_0x49b6e2(0x4ba)]='BLOCK_ONLY_HIGH',_0x3566b4[_0x49b6e2(0x260)]=_0x49b6e2(0x260);}(SafetyFilterLevel||(SafetyFilterLevel={})));var PersonGeneration;(function(_0x423c5b){const _0x1a241f=a3_0x4a6d;_0x423c5b['DONT_ALLOW']=_0x1a241f(0x689),_0x423c5b['ALLOW_ADULT']=_0x1a241f(0x616),_0x423c5b[_0x1a241f(0x53c)]='ALLOW_ALL';}(PersonGeneration||(PersonGeneration={})));var ImagePromptLanguage;(function(_0x4a8bca){const _0x63fa6e=a3_0x4a6d;_0x4a8bca[_0x63fa6e(0x36f)]='auto',_0x4a8bca['en']='en',_0x4a8bca['ja']='ja',_0x4a8bca['ko']='ko',_0x4a8bca['hi']='hi',_0x4a8bca['zh']='zh',_0x4a8bca['pt']='pt',_0x4a8bca['es']='es';}(ImagePromptLanguage||(ImagePromptLanguage={})));var MaskReferenceMode;(function(_0x5421dd){const _0x1725fe=a3_0x4a6d;_0x5421dd[_0x1725fe(0x6f7)]='MASK_MODE_DEFAULT',_0x5421dd['MASK_MODE_USER_PROVIDED']=_0x1725fe(0x265),_0x5421dd[_0x1725fe(0x68d)]=_0x1725fe(0x68d),_0x5421dd[_0x1725fe(0x52b)]=_0x1725fe(0x52b),_0x5421dd[_0x1725fe(0x66c)]='MASK_MODE_SEMANTIC';}(MaskReferenceMode||(MaskReferenceMode={})));var ControlReferenceType;(function(_0x27aefe){const _0x4e467c=a3_0x4a6d;_0x27aefe[_0x4e467c(0x3aa)]=_0x4e467c(0x3aa),_0x27aefe[_0x4e467c(0x42e)]='CONTROL_TYPE_CANNY',_0x27aefe[_0x4e467c(0x717)]=_0x4e467c(0x717),_0x27aefe[_0x4e467c(0x323)]=_0x4e467c(0x323);}(ControlReferenceType||(ControlReferenceType={})));var SubjectReferenceType;(function(_0x3c9e87){const _0x4cb3f8=a3_0x4a6d;_0x3c9e87[_0x4cb3f8(0x451)]='SUBJECT_TYPE_DEFAULT',_0x3c9e87[_0x4cb3f8(0x629)]=_0x4cb3f8(0x629),_0x3c9e87[_0x4cb3f8(0x21e)]='SUBJECT_TYPE_ANIMAL',_0x3c9e87[_0x4cb3f8(0x1a2)]='SUBJECT_TYPE_PRODUCT';}(SubjectReferenceType||(SubjectReferenceType={})));var EditMode;(function(_0x4f8aaf){const _0x2a4132=a3_0x4a6d;_0x4f8aaf[_0x2a4132(0x4ea)]=_0x2a4132(0x4ea),_0x4f8aaf[_0x2a4132(0x4d3)]=_0x2a4132(0x4d3),_0x4f8aaf[_0x2a4132(0x63a)]='EDIT_MODE_INPAINT_INSERTION',_0x4f8aaf[_0x2a4132(0x28e)]='EDIT_MODE_OUTPAINT',_0x4f8aaf[_0x2a4132(0x2ff)]=_0x2a4132(0x2ff),_0x4f8aaf[_0x2a4132(0x287)]=_0x2a4132(0x287),_0x4f8aaf[_0x2a4132(0x5ee)]=_0x2a4132(0x5ee),_0x4f8aaf['EDIT_MODE_PRODUCT_IMAGE']=_0x2a4132(0x3af);}(EditMode||(EditMode={})));var SegmentMode;(function(_0x2fe3af){const _0x5a9da6=a3_0x4a6d;_0x2fe3af[_0x5a9da6(0x4f6)]='FOREGROUND',_0x2fe3af['BACKGROUND']=_0x5a9da6(0x3dd),_0x2fe3af[_0x5a9da6(0x3d1)]=_0x5a9da6(0x3d1),_0x2fe3af[_0x5a9da6(0x5a4)]=_0x5a9da6(0x5a4),_0x2fe3af['INTERACTIVE']='INTERACTIVE';}(SegmentMode||(SegmentMode={})));var VideoGenerationReferenceType;(function(_0xcf79ce){const _0x46699c=a3_0x4a6d;_0xcf79ce['ASSET']=_0x46699c(0x453),_0xcf79ce[_0x46699c(0x6e5)]=_0x46699c(0x6e5);}(VideoGenerationReferenceType||(VideoGenerationReferenceType={})));var VideoGenerationMaskMode;(function(_0x52c96c){const _0x5705b0=a3_0x4a6d;_0x52c96c['INSERT']=_0x5705b0(0x62e),_0x52c96c[_0x5705b0(0x655)]=_0x5705b0(0x655),_0x52c96c[_0x5705b0(0x64a)]='REMOVE_STATIC',_0x52c96c[_0x5705b0(0x1fd)]=_0x5705b0(0x1fd);}(VideoGenerationMaskMode||(VideoGenerationMaskMode={})));var VideoCompressionQuality;(function(_0x23d553){const _0x3f5b81=a3_0x4a6d;_0x23d553[_0x3f5b81(0x438)]='OPTIMIZED',_0x23d553[_0x3f5b81(0x43f)]=_0x3f5b81(0x43f);}(VideoCompressionQuality||(VideoCompressionQuality={})));var TuningMethod;(function(_0x1402d9){const _0x178dd9=a3_0x4a6d;_0x1402d9[_0x178dd9(0x6b5)]=_0x178dd9(0x6b5),_0x1402d9[_0x178dd9(0x222)]=_0x178dd9(0x222),_0x1402d9[_0x178dd9(0x383)]='DISTILLATION';}(TuningMethod||(TuningMethod={})));var DocumentState;(function(_0x18e58e){const _0x8a07f4=a3_0x4a6d;_0x18e58e[_0x8a07f4(0x645)]=_0x8a07f4(0x645),_0x18e58e['STATE_PENDING']=_0x8a07f4(0x457),_0x18e58e[_0x8a07f4(0x43a)]=_0x8a07f4(0x43a),_0x18e58e[_0x8a07f4(0x2d2)]='STATE_FAILED';}(DocumentState||(DocumentState={})));var FileState;(function(_0x4573b5){const _0x207286=a3_0x4a6d;_0x4573b5[_0x207286(0x645)]=_0x207286(0x645),_0x4573b5[_0x207286(0x35b)]='PROCESSING',_0x4573b5[_0x207286(0x2e5)]='ACTIVE',_0x4573b5[_0x207286(0x5cd)]='FAILED';}(FileState||(FileState={})));var FileSource;(function(_0x1537ae){const _0x2f5d6e=a3_0x4a6d;_0x1537ae[_0x2f5d6e(0x6b1)]='SOURCE_UNSPECIFIED',_0x1537ae[_0x2f5d6e(0x536)]=_0x2f5d6e(0x536),_0x1537ae[_0x2f5d6e(0x276)]=_0x2f5d6e(0x276),_0x1537ae[_0x2f5d6e(0x34d)]=_0x2f5d6e(0x34d);}(FileSource||(FileSource={})));var TurnCompleteReason;(function(_0x2a3992){const _0x111a90=a3_0x4a6d;_0x2a3992['TURN_COMPLETE_REASON_UNSPECIFIED']=_0x111a90(0x419),_0x2a3992[_0x111a90(0x6dd)]=_0x111a90(0x6dd),_0x2a3992[_0x111a90(0x4a9)]=_0x111a90(0x4a9),_0x2a3992[_0x111a90(0x39b)]='NEED_MORE_INPUT';}(TurnCompleteReason||(TurnCompleteReason={})));var MediaModality;(function(_0x3eb71d){const _0x2783ff=a3_0x4a6d;_0x3eb71d[_0x2783ff(0x4f3)]=_0x2783ff(0x4f3),_0x3eb71d[_0x2783ff(0x601)]=_0x2783ff(0x601),_0x3eb71d[_0x2783ff(0x45a)]=_0x2783ff(0x45a),_0x3eb71d[_0x2783ff(0x650)]=_0x2783ff(0x650),_0x3eb71d['AUDIO']=_0x2783ff(0x2e7),_0x3eb71d['DOCUMENT']=_0x2783ff(0x606);}(MediaModality||(MediaModality={})));var VadSignalType;(function(_0x1970ea){const _0x229244=a3_0x4a6d;_0x1970ea[_0x229244(0x3b6)]=_0x229244(0x3b6),_0x1970ea[_0x229244(0x60c)]=_0x229244(0x60c),_0x1970ea[_0x229244(0x662)]=_0x229244(0x662);}(VadSignalType||(VadSignalType={})));var VoiceActivityType;(function(_0x18bfce){const _0xddb9ec=a3_0x4a6d;_0x18bfce[_0xddb9ec(0x5ac)]=_0xddb9ec(0x5ac),_0x18bfce[_0xddb9ec(0x34a)]=_0xddb9ec(0x34a),_0x18bfce[_0xddb9ec(0x354)]=_0xddb9ec(0x354);}(VoiceActivityType||(VoiceActivityType={})));var StartSensitivity;(function(_0x46e559){const _0x21d55d=a3_0x4a6d;_0x46e559[_0x21d55d(0x705)]=_0x21d55d(0x705),_0x46e559[_0x21d55d(0x255)]='START_SENSITIVITY_HIGH',_0x46e559['START_SENSITIVITY_LOW']=_0x21d55d(0x563);}(StartSensitivity||(StartSensitivity={})));var EndSensitivity;(function(_0x38b752){const _0x52204e=a3_0x4a6d;_0x38b752[_0x52204e(0x60f)]=_0x52204e(0x60f),_0x38b752[_0x52204e(0x5e3)]=_0x52204e(0x5e3),_0x38b752[_0x52204e(0x5b0)]=_0x52204e(0x5b0);}(EndSensitivity||(EndSensitivity={})));var ActivityHandling;(function(_0x58cee0){const _0x5a5099=a3_0x4a6d;_0x58cee0[_0x5a5099(0x49b)]=_0x5a5099(0x49b),_0x58cee0[_0x5a5099(0x4f5)]='START_OF_ACTIVITY_INTERRUPTS',_0x58cee0[_0x5a5099(0x27a)]=_0x5a5099(0x27a);}(ActivityHandling||(ActivityHandling={})));var TurnCoverage;(function(_0x584224){const _0x58beb7=a3_0x4a6d;_0x584224[_0x58beb7(0x5ca)]='TURN_COVERAGE_UNSPECIFIED',_0x584224[_0x58beb7(0x275)]=_0x58beb7(0x275),_0x584224[_0x58beb7(0x52d)]=_0x58beb7(0x52d);}(TurnCoverage||(TurnCoverage={})));var Scale;(function(_0x3923c8){const _0x3753ad=a3_0x4a6d;_0x3923c8[_0x3753ad(0x2c6)]=_0x3753ad(0x2c6),_0x3923c8['C_MAJOR_A_MINOR']=_0x3753ad(0x57a),_0x3923c8[_0x3753ad(0x320)]=_0x3753ad(0x320),_0x3923c8[_0x3753ad(0x50c)]=_0x3753ad(0x50c),_0x3923c8[_0x3753ad(0x594)]=_0x3753ad(0x594),_0x3923c8[_0x3753ad(0x657)]=_0x3753ad(0x657),_0x3923c8[_0x3753ad(0x494)]='F_MAJOR_D_MINOR',_0x3923c8[_0x3753ad(0x1ea)]='G_FLAT_MAJOR_E_FLAT_MINOR',_0x3923c8[_0x3753ad(0x620)]=_0x3753ad(0x620),_0x3923c8[_0x3753ad(0x228)]=_0x3753ad(0x228),_0x3923c8['A_MAJOR_G_FLAT_MINOR']=_0x3753ad(0x42c),_0x3923c8[_0x3753ad(0x65a)]=_0x3753ad(0x65a),_0x3923c8[_0x3753ad(0x505)]=_0x3753ad(0x505);}(Scale||(Scale={})));var MusicGenerationMode;(function(_0x21f31c){const _0x4ca495=a3_0x4a6d;_0x21f31c['MUSIC_GENERATION_MODE_UNSPECIFIED']=_0x4ca495(0x479),_0x21f31c[_0x4ca495(0x512)]='QUALITY',_0x21f31c['DIVERSITY']=_0x4ca495(0x3f5),_0x21f31c[_0x4ca495(0x216)]=_0x4ca495(0x216);}(MusicGenerationMode||(MusicGenerationMode={})));var LiveMusicPlaybackControl;(function(_0x200542){const _0x55de82=a3_0x4a6d;_0x200542[_0x55de82(0x67e)]=_0x55de82(0x67e),_0x200542[_0x55de82(0x1a0)]=_0x55de82(0x1a0),_0x200542['PAUSE']=_0x55de82(0x324),_0x200542['STOP']=_0x55de82(0x71a),_0x200542[_0x55de82(0x225)]=_0x55de82(0x225);}(LiveMusicPlaybackControl||(LiveMusicPlaybackControl={})));class FunctionResponseBlob{}class FunctionResponseFileData{}class FunctionResponsePart{}function createFunctionResponsePartFromBase64(_0x56d061,_0x26e402){return{'inlineData':{'data':_0x56d061,'mimeType':_0x26e402}};}function createFunctionResponsePartFromUri(_0x2ff19a,_0x16a4b1){return{'fileData':{'fileUri':_0x2ff19a,'mimeType':_0x16a4b1}};}class FunctionResponse{}function createPartFromUri(_0x5db323,_0x3ecdb9,_0x2ed374){return Object['assign']({'fileData':{'fileUri':_0x5db323,'mimeType':_0x3ecdb9}},_0x2ed374&&{'mediaResolution':{'level':_0x2ed374}});}function createPartFromText(_0x10afd2){return{'text':_0x10afd2};}function createPartFromFunctionCall(_0x410689,_0x57f560){return{'functionCall':{'name':_0x410689,'args':_0x57f560}};}function createPartFromFunctionResponse(_0x4273f7,_0x1b0e16,_0x1b2cc0,_0x349ce3=[]){const _0x3c9a83=a3_0x4a6d;return{'functionResponse':Object['assign']({'id':_0x4273f7,'name':_0x1b0e16,'response':_0x1b2cc0},_0x349ce3[_0x3c9a83(0x3e8)]>0x0&&{'parts':_0x349ce3})};}function createPartFromBase64(_0x3befbf,_0x4cb12d,_0x4a0525){const _0x5cc40c=a3_0x4a6d;return Object[_0x5cc40c(0x48a)]({'inlineData':{'data':_0x3befbf,'mimeType':_0x4cb12d}},_0x4a0525&&{'mediaResolution':{'level':_0x4a0525}});}function createPartFromCodeExecutionResult(_0x311892,_0x21a328){return{'codeExecutionResult':{'outcome':_0x311892,'output':_0x21a328}};}function createPartFromExecutableCode(_0x3ef9f2,_0x123cb2){return{'executableCode':{'code':_0x3ef9f2,'language':_0x123cb2}};}function _isPart(_0x60403f){const _0x3f177d=a3_0x4a6d;if(typeof _0x60403f==='object'&&_0x60403f!==null)return _0x3f177d(0x2c3)in _0x60403f||_0x3f177d(0x1a9)in _0x60403f||_0x3f177d(0x45f)in _0x60403f||_0x3f177d(0x483)in _0x60403f||'inlineData'in _0x60403f||_0x3f177d(0x703)in _0x60403f||'codeExecutionResult'in _0x60403f||'executableCode'in _0x60403f;return![];}function _toParts(_0xb535a7){const _0x524939=a3_0x4a6d,_0x46673a=[];if(typeof _0xb535a7==='string')_0x46673a[_0x524939(0x52c)](createPartFromText(_0xb535a7));else{if(_isPart(_0xb535a7))_0x46673a[_0x524939(0x52c)](_0xb535a7);else{if(Array['isArray'](_0xb535a7)){if(_0xb535a7[_0x524939(0x3e8)]===0x0)throw new Error(_0x524939(0x4c3));for(const _0x3e41b1 of _0xb535a7){if(typeof _0x3e41b1===_0x524939(0x71b))_0x46673a[_0x524939(0x52c)](createPartFromText(_0x3e41b1));else{if(_isPart(_0x3e41b1))_0x46673a['push'](_0x3e41b1);else throw new Error(_0x524939(0x556));}}}else throw new Error(_0x524939(0x6eb));}}return _0x46673a;}function createUserContent(_0x2d2129){const _0x5a76e2=a3_0x4a6d;return{'role':_0x5a76e2(0x3a6),'parts':_toParts(_0x2d2129)};}function createModelContent(_0x4017ed){const _0x290087=a3_0x4a6d;return{'role':_0x290087(0x3f6),'parts':_toParts(_0x4017ed)};}class HttpResponse{constructor(_0x244228){const _0x8593e1=a3_0x4a6d,_0x111cb3={};for(const _0xb6177 of _0x244228[_0x8593e1(0x70b)][_0x8593e1(0x584)]()){_0x111cb3[_0xb6177[0x0]]=_0xb6177[0x1];}this[_0x8593e1(0x70b)]=_0x111cb3,this[_0x8593e1(0x68c)]=_0x244228;}[a3_0x402819(0x4cf)](){const _0x5bb685=a3_0x402819;return this['responseInternal'][_0x5bb685(0x4cf)]();}}class GenerateContentResponsePromptFeedback{}class GenerateContentResponseUsageMetadata{}class GenerateContentResponse{get[a3_0x402819(0x1a9)](){const _0x1b8712=a3_0x402819;var _0x35fa0f,_0x22ea20,_0x57e8d7,_0x17dad6,_0x451215,_0x716e1c,_0x1bd943,_0x13e0fa;if(((_0x17dad6=(_0x57e8d7=(_0x22ea20=(_0x35fa0f=this['candidates'])===null||_0x35fa0f===void 0x0?void 0x0:_0x35fa0f[0x0])===null||_0x22ea20===void 0x0?void 0x0:_0x22ea20[_0x1b8712(0x345)])===null||_0x57e8d7===void 0x0?void 0x0:_0x57e8d7[_0x1b8712(0x569)])===null||_0x17dad6===void 0x0?void 0x0:_0x17dad6[_0x1b8712(0x3e8)])===0x0)return undefined;this[_0x1b8712(0x6d0)]&&this[_0x1b8712(0x6d0)][_0x1b8712(0x3e8)]>0x1&&console[_0x1b8712(0x1bd)](_0x1b8712(0x692));let _0x5d48ad='',_0x8979bc=![];const _0x406135=[];for(const _0x31693f of(_0x13e0fa=(_0x1bd943=(_0x716e1c=(_0x451215=this[_0x1b8712(0x6d0)])===null||_0x451215===void 0x0?void 0x0:_0x451215[0x0])===null||_0x716e1c===void 0x0?void 0x0:_0x716e1c[_0x1b8712(0x345)])===null||_0x1bd943===void 0x0?void 0x0:_0x1bd943[_0x1b8712(0x569)])!==null&&_0x13e0fa!==void 0x0?_0x13e0fa:[]){for(const [_0x4c8c3e,_0x585980]of Object[_0x1b8712(0x584)](_0x31693f)){_0x4c8c3e!==_0x1b8712(0x1a9)&&_0x4c8c3e!==_0x1b8712(0x56f)&&_0x4c8c3e!==_0x1b8712(0x38c)&&(_0x585980!==null||_0x585980!==undefined)&&_0x406135[_0x1b8712(0x52c)](_0x4c8c3e);}if(typeof _0x31693f[_0x1b8712(0x1a9)]===_0x1b8712(0x71b)){if(typeof _0x31693f[_0x1b8712(0x56f)]===_0x1b8712(0x408)&&_0x31693f[_0x1b8712(0x56f)])continue;_0x8979bc=!![],_0x5d48ad+=_0x31693f['text'];}}return _0x406135['length']>0x0&&console[_0x1b8712(0x1bd)](_0x1b8712(0x253)+_0x406135+_0x1b8712(0x377)),_0x8979bc?_0x5d48ad:undefined;}get['data'](){const _0x7277b2=a3_0x402819;var _0x2c8d61,_0x57fb92,_0x21f543,_0x1e7a07,_0x445def,_0x5086c2,_0x48dd72,_0x231a81;if(((_0x1e7a07=(_0x21f543=(_0x57fb92=(_0x2c8d61=this['candidates'])===null||_0x2c8d61===void 0x0?void 0x0:_0x2c8d61[0x0])===null||_0x57fb92===void 0x0?void 0x0:_0x57fb92['content'])===null||_0x21f543===void 0x0?void 0x0:_0x21f543[_0x7277b2(0x569)])===null||_0x1e7a07===void 0x0?void 0x0:_0x1e7a07[_0x7277b2(0x3e8)])===0x0)return undefined;this[_0x7277b2(0x6d0)]&&this[_0x7277b2(0x6d0)][_0x7277b2(0x3e8)]>0x1&&console[_0x7277b2(0x1bd)]('there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20data\x20from\x20the\x20first\x20one.');let _0x474eef='';const _0x46f772=[];for(const _0x244d12 of(_0x231a81=(_0x48dd72=(_0x5086c2=(_0x445def=this[_0x7277b2(0x6d0)])===null||_0x445def===void 0x0?void 0x0:_0x445def[0x0])===null||_0x5086c2===void 0x0?void 0x0:_0x5086c2[_0x7277b2(0x345)])===null||_0x48dd72===void 0x0?void 0x0:_0x48dd72[_0x7277b2(0x569)])!==null&&_0x231a81!==void 0x0?_0x231a81:[]){for(const [_0x3438cf,_0x4b46a0]of Object['entries'](_0x244d12)){_0x3438cf!==_0x7277b2(0x284)&&(_0x4b46a0!==null||_0x4b46a0!==undefined)&&_0x46f772['push'](_0x3438cf);}_0x244d12[_0x7277b2(0x284)]&&typeof _0x244d12[_0x7277b2(0x284)][_0x7277b2(0x5b1)]===_0x7277b2(0x71b)&&(_0x474eef+=atob(_0x244d12[_0x7277b2(0x284)][_0x7277b2(0x5b1)]));}return _0x46f772['length']>0x0&&console['warn'](_0x7277b2(0x2da)+_0x46f772+_0x7277b2(0x27e)),_0x474eef['length']>0x0?btoa(_0x474eef):undefined;}get['functionCalls'](){const _0x1c584c=a3_0x402819;var _0x1bf824,_0x2c3af8,_0x9efe8c,_0x1de804,_0x5955d8,_0xab9d35,_0x630d9f,_0x5edc5b;if(((_0x1de804=(_0x9efe8c=(_0x2c3af8=(_0x1bf824=this[_0x1c584c(0x6d0)])===null||_0x1bf824===void 0x0?void 0x0:_0x1bf824[0x0])===null||_0x2c3af8===void 0x0?void 0x0:_0x2c3af8[_0x1c584c(0x345)])===null||_0x9efe8c===void 0x0?void 0x0:_0x9efe8c[_0x1c584c(0x569)])===null||_0x1de804===void 0x0?void 0x0:_0x1de804[_0x1c584c(0x3e8)])===0x0)return undefined;this[_0x1c584c(0x6d0)]&&this['candidates'][_0x1c584c(0x3e8)]>0x1&&console[_0x1c584c(0x1bd)](_0x1c584c(0x5d7));const _0x4ceefd=(_0x5edc5b=(_0x630d9f=(_0xab9d35=(_0x5955d8=this[_0x1c584c(0x6d0)])===null||_0x5955d8===void 0x0?void 0x0:_0x5955d8[0x0])===null||_0xab9d35===void 0x0?void 0x0:_0xab9d35['content'])===null||_0x630d9f===void 0x0?void 0x0:_0x630d9f['parts'])===null||_0x5edc5b===void 0x0?void 0x0:_0x5edc5b[_0x1c584c(0x67f)](_0x560701=>_0x560701[_0x1c584c(0x45f)])[_0x1c584c(0x6c4)](_0x43b2e4=>_0x43b2e4[_0x1c584c(0x45f)])[_0x1c584c(0x67f)](_0x1fb35e=>_0x1fb35e!==undefined);if((_0x4ceefd===null||_0x4ceefd===void 0x0?void 0x0:_0x4ceefd[_0x1c584c(0x3e8)])===0x0)return undefined;return _0x4ceefd;}get['executableCode'](){const _0x107071=a3_0x402819;var _0x1fce28,_0x36707c,_0x51ab54,_0x5d4795,_0xc82f7b,_0x5ed646,_0x4fc908,_0x46a71e,_0x1d2d5a;if(((_0x5d4795=(_0x51ab54=(_0x36707c=(_0x1fce28=this[_0x107071(0x6d0)])===null||_0x1fce28===void 0x0?void 0x0:_0x1fce28[0x0])===null||_0x36707c===void 0x0?void 0x0:_0x36707c[_0x107071(0x345)])===null||_0x51ab54===void 0x0?void 0x0:_0x51ab54['parts'])===null||_0x5d4795===void 0x0?void 0x0:_0x5d4795['length'])===0x0)return undefined;this[_0x107071(0x6d0)]&&this[_0x107071(0x6d0)][_0x107071(0x3e8)]>0x1&&console['warn'](_0x107071(0x658));const _0x221ed9=(_0x46a71e=(_0x4fc908=(_0x5ed646=(_0xc82f7b=this['candidates'])===null||_0xc82f7b===void 0x0?void 0x0:_0xc82f7b[0x0])===null||_0x5ed646===void 0x0?void 0x0:_0x5ed646[_0x107071(0x345)])===null||_0x4fc908===void 0x0?void 0x0:_0x4fc908[_0x107071(0x569)])===null||_0x46a71e===void 0x0?void 0x0:_0x46a71e[_0x107071(0x67f)](_0x43cbf6=>_0x43cbf6['executableCode'])[_0x107071(0x6c4)](_0x53495f=>_0x53495f['executableCode'])[_0x107071(0x67f)](_0x2351f0=>_0x2351f0!==undefined);if((_0x221ed9===null||_0x221ed9===void 0x0?void 0x0:_0x221ed9['length'])===0x0)return undefined;return(_0x1d2d5a=_0x221ed9===null||_0x221ed9===void 0x0?void 0x0:_0x221ed9[0x0])===null||_0x1d2d5a===void 0x0?void 0x0:_0x1d2d5a[_0x107071(0x534)];}get[a3_0x402819(0x4a6)](){const _0x1902d7=a3_0x402819;var _0x3e61dc,_0x4526ff,_0x27a4db,_0x19d4c3,_0x506664,_0x61c407,_0x4046c7,_0x2b0e30,_0x4c75be;if(((_0x19d4c3=(_0x27a4db=(_0x4526ff=(_0x3e61dc=this[_0x1902d7(0x6d0)])===null||_0x3e61dc===void 0x0?void 0x0:_0x3e61dc[0x0])===null||_0x4526ff===void 0x0?void 0x0:_0x4526ff[_0x1902d7(0x345)])===null||_0x27a4db===void 0x0?void 0x0:_0x27a4db[_0x1902d7(0x569)])===null||_0x19d4c3===void 0x0?void 0x0:_0x19d4c3['length'])===0x0)return undefined;this['candidates']&&this[_0x1902d7(0x6d0)]['length']>0x1&&console['warn'](_0x1902d7(0x38d));const _0x1d79de=(_0x2b0e30=(_0x4046c7=(_0x61c407=(_0x506664=this['candidates'])===null||_0x506664===void 0x0?void 0x0:_0x506664[0x0])===null||_0x61c407===void 0x0?void 0x0:_0x61c407[_0x1902d7(0x345)])===null||_0x4046c7===void 0x0?void 0x0:_0x4046c7[_0x1902d7(0x569)])===null||_0x2b0e30===void 0x0?void 0x0:_0x2b0e30[_0x1902d7(0x67f)](_0x336d22=>_0x336d22[_0x1902d7(0x4a6)])['map'](_0x1cc247=>_0x1cc247[_0x1902d7(0x4a6)])[_0x1902d7(0x67f)](_0x179f20=>_0x179f20!==undefined);if((_0x1d79de===null||_0x1d79de===void 0x0?void 0x0:_0x1d79de[_0x1902d7(0x3e8)])===0x0)return undefined;return(_0x4c75be=_0x1d79de===null||_0x1d79de===void 0x0?void 0x0:_0x1d79de[0x0])===null||_0x4c75be===void 0x0?void 0x0:_0x4c75be[_0x1902d7(0x364)];}}class EmbedContentResponse{}class GenerateImagesResponse{}class EditImageResponse{}class UpscaleImageResponse{}class RecontextImageResponse{}class SegmentImageResponse{}class ListModelsResponse{}class DeleteModelResponse{}class CountTokensResponse{}class ComputeTokensResponse{}class GenerateVideosResponse{}class GenerateVideosOperation{[a3_0x402819(0x56c)]({apiResponse:_0x3389c1,_isVertexAI:_0x1893f5}){const _0x5a1c1d=a3_0x402819,_0x188300=new GenerateVideosOperation();let _0x2aa758;const _0x25e1e8=_0x3389c1;return _0x1893f5?_0x2aa758=generateVideosOperationFromVertex$1(_0x25e1e8):_0x2aa758=generateVideosOperationFromMldev$1(_0x25e1e8),Object[_0x5a1c1d(0x48a)](_0x188300,_0x2aa758),_0x188300;}}class ListTuningJobsResponse{}class CancelTuningJobResponse{}class DeleteCachedContentResponse{}class ListCachedContentsResponse{}class ListDocumentsResponse{}class ListFileSearchStoresResponse{}class UploadToFileSearchStoreResumableResponse{}class ImportFileResponse{}class ImportFileOperation{['_fromAPIResponse']({apiResponse:_0x1cdf78,_isVertexAI:_0x7fca69}){const _0x4b4450=a3_0x402819,_0x46ed67=new ImportFileOperation(),_0x59d31e=_0x1cdf78,_0x4977fd=importFileOperationFromMldev$1(_0x59d31e);return Object[_0x4b4450(0x48a)](_0x46ed67,_0x4977fd),_0x46ed67;}}class ListFilesResponse{}class CreateFileResponse{}class DeleteFileResponse{}class RegisterFilesResponse{}class InlinedResponse{}class SingleEmbedContentResponse{}class InlinedEmbedContentResponse{}class ListBatchJobsResponse{}class ReplayResponse{}class RawReferenceImage{[a3_0x402819(0x34b)](){const _0x76184=a3_0x402819,_0x3deb15={'referenceType':_0x76184(0x724),'referenceImage':this[_0x76184(0x578)],'referenceId':this[_0x76184(0x5df)]};return _0x3deb15;}}class MaskReferenceImage{[a3_0x402819(0x34b)](){const _0x7b7b93=a3_0x402819,_0x1bb180={'referenceType':_0x7b7b93(0x45d),'referenceImage':this['referenceImage'],'referenceId':this['referenceId'],'maskImageConfig':this[_0x7b7b93(0x43b)]};return _0x1bb180;}}class ControlReferenceImage{[a3_0x402819(0x34b)](){const _0x2d5d51=a3_0x402819,_0x45dba4={'referenceType':_0x2d5d51(0x497),'referenceImage':this[_0x2d5d51(0x578)],'referenceId':this[_0x2d5d51(0x5df)],'controlImageConfig':this[_0x2d5d51(0x43b)]};return _0x45dba4;}}class StyleReferenceImage{[a3_0x402819(0x34b)](){const _0x395cc6=a3_0x402819,_0x331b8d={'referenceType':'REFERENCE_TYPE_STYLE','referenceImage':this[_0x395cc6(0x578)],'referenceId':this[_0x395cc6(0x5df)],'styleImageConfig':this[_0x395cc6(0x43b)]};return _0x331b8d;}}class SubjectReferenceImage{['toReferenceImageAPI'](){const _0x5c1310=a3_0x402819,_0x1ed6f9={'referenceType':_0x5c1310(0x4f8),'referenceImage':this['referenceImage'],'referenceId':this[_0x5c1310(0x5df)],'subjectImageConfig':this[_0x5c1310(0x43b)]};return _0x1ed6f9;}}class ContentReferenceImage{[a3_0x402819(0x34b)](){const _0x14db53=a3_0x402819,_0xefada3={'referenceType':_0x14db53(0x229),'referenceImage':this['referenceImage'],'referenceId':this[_0x14db53(0x5df)]};return _0xefada3;}}class LiveServerMessage{get[a3_0x402819(0x1a9)](){const _0x5003d8=a3_0x402819;var _0x1d2d9d,_0x5a4f4b,_0x1d306d;let _0x2f795c='',_0x51c9f5=![];const _0x440d97=[];for(const _0x1335e4 of(_0x1d306d=(_0x5a4f4b=(_0x1d2d9d=this[_0x5003d8(0x3e2)])===null||_0x1d2d9d===void 0x0?void 0x0:_0x1d2d9d[_0x5003d8(0x358)])===null||_0x5a4f4b===void 0x0?void 0x0:_0x5a4f4b['parts'])!==null&&_0x1d306d!==void 0x0?_0x1d306d:[]){for(const [_0x3b623d,_0x55bb01]of Object[_0x5003d8(0x584)](_0x1335e4)){_0x3b623d!==_0x5003d8(0x1a9)&&_0x3b623d!==_0x5003d8(0x56f)&&_0x55bb01!==null&&_0x440d97['push'](_0x3b623d);}if(typeof _0x1335e4[_0x5003d8(0x1a9)]===_0x5003d8(0x71b)){if(typeof _0x1335e4[_0x5003d8(0x56f)]===_0x5003d8(0x408)&&_0x1335e4[_0x5003d8(0x56f)])continue;_0x51c9f5=!![],_0x2f795c+=_0x1335e4['text'];}}return _0x440d97[_0x5003d8(0x3e8)]>0x0&&console['warn'](_0x5003d8(0x253)+_0x440d97+_0x5003d8(0x377)),_0x51c9f5?_0x2f795c:undefined;}get[a3_0x402819(0x5b1)](){const _0x2243a9=a3_0x402819;var _0xee0fbd,_0x38205f,_0x266f23;let _0x309b6c='';const _0x4cd04e=[];for(const _0x3b1a4a of(_0x266f23=(_0x38205f=(_0xee0fbd=this[_0x2243a9(0x3e2)])===null||_0xee0fbd===void 0x0?void 0x0:_0xee0fbd['modelTurn'])===null||_0x38205f===void 0x0?void 0x0:_0x38205f[_0x2243a9(0x569)])!==null&&_0x266f23!==void 0x0?_0x266f23:[]){for(const [_0x3335cc,_0x401b2d]of Object['entries'](_0x3b1a4a)){_0x3335cc!==_0x2243a9(0x284)&&_0x401b2d!==null&&_0x4cd04e['push'](_0x3335cc);}_0x3b1a4a[_0x2243a9(0x284)]&&typeof _0x3b1a4a['inlineData']['data']===_0x2243a9(0x71b)&&(_0x309b6c+=atob(_0x3b1a4a[_0x2243a9(0x284)][_0x2243a9(0x5b1)]));}return _0x4cd04e[_0x2243a9(0x3e8)]>0x0&&console['warn'](_0x2243a9(0x2da)+_0x4cd04e+_0x2243a9(0x27e)),_0x309b6c[_0x2243a9(0x3e8)]>0x0?btoa(_0x309b6c):undefined;}}class LiveClientToolResponse{}class LiveSendToolResponseParameters{constructor(){const _0x46f0ef=a3_0x402819;this[_0x46f0ef(0x2d1)]=[];}}class LiveMusicServerMessage{get[a3_0x402819(0x40a)](){const _0x1400aa=a3_0x402819;if(this[_0x1400aa(0x3e2)]&&this[_0x1400aa(0x3e2)]['audioChunks']&&this[_0x1400aa(0x3e2)][_0x1400aa(0x62c)][_0x1400aa(0x3e8)]>0x0)return this['serverContent'][_0x1400aa(0x62c)][0x0];return undefined;}}class UploadToFileSearchStoreResponse{}class UploadToFileSearchStoreOperation{[a3_0x402819(0x56c)]({apiResponse:_0xab3d2f,_isVertexAI:_0x3cf000}){const _0x314aad=a3_0x402819,_0x446321=new UploadToFileSearchStoreOperation(),_0x20e6d6=_0xab3d2f,_0x2e9b46=uploadToFileSearchStoreOperationFromMldev(_0x20e6d6);return Object[_0x314aad(0x48a)](_0x446321,_0x2e9b46),_0x446321;}}/**
27
+ * @license
28
+ * Copyright 2025 Google LLC
29
+ * SPDX-License-Identifier: Apache-2.0
30
+ */
31
+ function tModel(_0x2c5dda,_0x3c5279){const _0x236a1e=a3_0x402819;if(!_0x3c5279||typeof _0x3c5279!==_0x236a1e(0x71b))throw new Error(_0x236a1e(0x6a5));if(_0x3c5279[_0x236a1e(0x34e)]('..')||_0x3c5279[_0x236a1e(0x34e)]('?')||_0x3c5279[_0x236a1e(0x34e)]('&'))throw new Error(_0x236a1e(0x348));if(_0x2c5dda[_0x236a1e(0x268)]()){if(_0x3c5279[_0x236a1e(0x231)](_0x236a1e(0x5b6))||_0x3c5279[_0x236a1e(0x231)](_0x236a1e(0x5fd))||_0x3c5279[_0x236a1e(0x231)]('models/'))return _0x3c5279;else{if(_0x3c5279[_0x236a1e(0x680)]('/')>=0x0){const _0x219ef9=_0x3c5279[_0x236a1e(0x51c)]('/',0x2);return _0x236a1e(0x5b6)+_0x219ef9[0x0]+_0x236a1e(0x564)+_0x219ef9[0x1];}else return _0x236a1e(0x6ba)+_0x3c5279;}}else return _0x3c5279['startsWith'](_0x236a1e(0x4ee))||_0x3c5279['startsWith'](_0x236a1e(0x1bb))?_0x3c5279:'models/'+_0x3c5279;}function tCachesModel(_0x2222e0,_0x4ff592){const _0x2b9c38=a3_0x402819,_0x53f615=tModel(_0x2222e0,_0x4ff592);if(!_0x53f615)return'';if(_0x53f615[_0x2b9c38(0x231)](_0x2b9c38(0x5b6))&&_0x2222e0[_0x2b9c38(0x268)]())return _0x2b9c38(0x5fd)+_0x2222e0[_0x2b9c38(0x3df)]()+_0x2b9c38(0x3d2)+_0x2222e0[_0x2b9c38(0x6cd)]()+'/'+_0x53f615;else return _0x53f615[_0x2b9c38(0x231)](_0x2b9c38(0x4ee))&&_0x2222e0['isVertexAI']()?'projects/'+_0x2222e0['getProject']()+_0x2b9c38(0x3d2)+_0x2222e0[_0x2b9c38(0x6cd)]()+_0x2b9c38(0x3d0)+_0x53f615:_0x53f615;}function tBlobs(_0x10f6c5){const _0x1da7e8=a3_0x402819;return Array[_0x1da7e8(0x32b)](_0x10f6c5)?_0x10f6c5[_0x1da7e8(0x6c4)](_0x4dd551=>tBlob(_0x4dd551)):[tBlob(_0x10f6c5)];}function tBlob(_0x24cca8){const _0x4ed0ce=a3_0x402819;if(typeof _0x24cca8==='object'&&_0x24cca8!==null)return _0x24cca8;throw new Error(_0x4ed0ce(0x504)+typeof _0x24cca8);}function tImageBlob(_0x4a1346){const _0x308aa3=a3_0x402819,_0x3e24fe=tBlob(_0x4a1346);if(_0x3e24fe['mimeType']&&_0x3e24fe[_0x308aa3(0x542)][_0x308aa3(0x231)](_0x308aa3(0x1e2)))return _0x3e24fe;throw new Error(_0x308aa3(0x5bb)+_0x3e24fe[_0x308aa3(0x542)]);}function tAudioBlob(_0x18d8e7){const _0x368f11=a3_0x402819,_0x3f191b=tBlob(_0x18d8e7);if(_0x3f191b['mimeType']&&_0x3f191b[_0x368f11(0x542)]['startsWith'](_0x368f11(0x5a3)))return _0x3f191b;throw new Error(_0x368f11(0x5bb)+_0x3f191b['mimeType']);}function tPart(_0x1884c8){const _0xba0b00=a3_0x402819;if(_0x1884c8===null||_0x1884c8===undefined)throw new Error(_0xba0b00(0x4ef));if(typeof _0x1884c8==='object')return _0x1884c8;if(typeof _0x1884c8==='string')return{'text':_0x1884c8};throw new Error(_0xba0b00(0x5b9)+typeof _0x1884c8);}function tParts(_0x2668e0){const _0x398473=a3_0x402819;if(_0x2668e0===null||_0x2668e0===undefined||Array[_0x398473(0x32b)](_0x2668e0)&&_0x2668e0['length']===0x0)throw new Error(_0x398473(0x631));if(Array[_0x398473(0x32b)](_0x2668e0))return _0x2668e0['map'](_0x37fd77=>tPart(_0x37fd77));return[tPart(_0x2668e0)];}function _isContent(_0x536989){const _0x1ddaa8=a3_0x402819;return _0x536989!==null&&_0x536989!==undefined&&typeof _0x536989===_0x1ddaa8(0x365)&&'parts'in _0x536989&&Array[_0x1ddaa8(0x32b)](_0x536989[_0x1ddaa8(0x569)]);}function _isFunctionCallPart(_0x30c83e){const _0x22d0c4=a3_0x402819;return _0x30c83e!==null&&_0x30c83e!==undefined&&typeof _0x30c83e===_0x22d0c4(0x365)&&'functionCall'in _0x30c83e;}function _isFunctionResponsePart(_0x4f4e77){const _0x15a197=a3_0x402819;return _0x4f4e77!==null&&_0x4f4e77!==undefined&&typeof _0x4f4e77==='object'&&_0x15a197(0x483)in _0x4f4e77;}function tContent(_0x21e7fa){const _0x581dfa=a3_0x402819;if(_0x21e7fa===null||_0x21e7fa===undefined)throw new Error(_0x581dfa(0x661));if(_isContent(_0x21e7fa))return _0x21e7fa;return{'role':_0x581dfa(0x3a6),'parts':tParts(_0x21e7fa)};}function tContentsForEmbed(_0x31f4b5,_0x23231e){const _0x3a0b1a=a3_0x402819;if(!_0x23231e)return[];if(_0x31f4b5[_0x3a0b1a(0x268)]()&&Array[_0x3a0b1a(0x32b)](_0x23231e))return _0x23231e[_0x3a0b1a(0x347)](_0x4b6896=>{const _0x321419=_0x3a0b1a,_0x1f970a=tContent(_0x4b6896);if(_0x1f970a[_0x321419(0x569)]&&_0x1f970a[_0x321419(0x569)][_0x321419(0x3e8)]>0x0&&_0x1f970a[_0x321419(0x569)][0x0][_0x321419(0x1a9)]!==undefined)return[_0x1f970a['parts'][0x0][_0x321419(0x1a9)]];return[];});else{if(_0x31f4b5[_0x3a0b1a(0x268)]()){const _0x44f5b8=tContent(_0x23231e);if(_0x44f5b8['parts']&&_0x44f5b8['parts'][_0x3a0b1a(0x3e8)]>0x0&&_0x44f5b8['parts'][0x0][_0x3a0b1a(0x1a9)]!==undefined)return[_0x44f5b8['parts'][0x0][_0x3a0b1a(0x1a9)]];return[];}}if(Array['isArray'](_0x23231e))return _0x23231e[_0x3a0b1a(0x6c4)](_0x14d323=>tContent(_0x14d323));return[tContent(_0x23231e)];}function tContents(_0x273494){const _0x33a53e=a3_0x402819;if(_0x273494===null||_0x273494===undefined||Array['isArray'](_0x273494)&&_0x273494[_0x33a53e(0x3e8)]===0x0)throw new Error('contents\x20are\x20required');if(!Array[_0x33a53e(0x32b)](_0x273494)){if(_isFunctionCallPart(_0x273494)||_isFunctionResponsePart(_0x273494))throw new Error(_0x33a53e(0x403));return[tContent(_0x273494)];}const _0x4d4960=[],_0x4cccc9=[],_0x4fcaf9=_isContent(_0x273494[0x0]);for(const _0x166e78 of _0x273494){const _0x13ef07=_isContent(_0x166e78);if(_0x13ef07!=_0x4fcaf9)throw new Error('Mixing\x20Content\x20and\x20Parts\x20is\x20not\x20supported,\x20please\x20group\x20the\x20parts\x20into\x20a\x20the\x20appropriate\x20Content\x20objects\x20and\x20specify\x20the\x20roles\x20for\x20them');if(_0x13ef07)_0x4d4960['push'](_0x166e78);else{if(_isFunctionCallPart(_0x166e78)||_isFunctionResponsePart(_0x166e78))throw new Error('To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them,\x20and\x20any\x20other\x20parts,\x20in\x20Content\x20objects\x20as\x20appropriate,\x20specifying\x20the\x20role\x20for\x20them');else _0x4cccc9['push'](_0x166e78);}}return!_0x4fcaf9&&_0x4d4960[_0x33a53e(0x52c)]({'role':'user','parts':tParts(_0x4cccc9)}),_0x4d4960;}function flattenTypeArrayToAnyOf(_0x2cebff,_0x3d049d){const _0x3bdea1=a3_0x402819;_0x2cebff['includes']('null')&&(_0x3d049d[_0x3bdea1(0x4b6)]=!![]);const _0x10a666=_0x2cebff[_0x3bdea1(0x67f)](_0x1448b3=>_0x1448b3!==_0x3bdea1(0x46a));if(_0x10a666[_0x3bdea1(0x3e8)]===0x1)_0x3d049d[_0x3bdea1(0x247)]=Object['values'](Type)[_0x3bdea1(0x34e)](_0x10a666[0x0][_0x3bdea1(0x5e4)]())?_0x10a666[0x0][_0x3bdea1(0x5e4)]():Type[_0x3bdea1(0x5ac)];else{_0x3d049d[_0x3bdea1(0x445)]=[];for(const _0x4df3ae of _0x10a666){_0x3d049d[_0x3bdea1(0x445)][_0x3bdea1(0x52c)]({'type':Object['values'](Type)[_0x3bdea1(0x34e)](_0x4df3ae[_0x3bdea1(0x5e4)]())?_0x4df3ae[_0x3bdea1(0x5e4)]():Type[_0x3bdea1(0x5ac)]});}}}function processJsonSchema(_0x56bccb){const _0x533e39=a3_0x402819,_0x511dac={},_0x275976=[_0x533e39(0x24d)],_0x5a0437=[_0x533e39(0x445)],_0x497e09=['properties'];if(_0x56bccb[_0x533e39(0x247)]&&_0x56bccb[_0x533e39(0x445)])throw new Error('type\x20and\x20anyOf\x20cannot\x20be\x20both\x20populated.');const _0x21a8c8=_0x56bccb[_0x533e39(0x445)];if(_0x21a8c8!=null&&_0x21a8c8[_0x533e39(0x3e8)]==0x2){if(_0x21a8c8[0x0][_0x533e39(0x247)]==='null')_0x511dac[_0x533e39(0x4b6)]=!![],_0x56bccb=_0x21a8c8[0x1];else _0x21a8c8[0x1]['type']===_0x533e39(0x46a)&&(_0x511dac['nullable']=!![],_0x56bccb=_0x21a8c8[0x0]);}_0x56bccb['type']instanceof Array&&flattenTypeArrayToAnyOf(_0x56bccb['type'],_0x511dac);for(const [_0x208844,_0x184db9]of Object[_0x533e39(0x584)](_0x56bccb)){if(_0x184db9==null)continue;if(_0x208844=='type'){if(_0x184db9===_0x533e39(0x46a))throw new Error(_0x533e39(0x561));if(_0x184db9 instanceof Array)continue;_0x511dac[_0x533e39(0x247)]=Object[_0x533e39(0x258)](Type)[_0x533e39(0x34e)](_0x184db9[_0x533e39(0x5e4)]())?_0x184db9[_0x533e39(0x5e4)]():Type[_0x533e39(0x5ac)];}else{if(_0x275976['includes'](_0x208844))_0x511dac[_0x208844]=processJsonSchema(_0x184db9);else{if(_0x5a0437[_0x533e39(0x34e)](_0x208844)){const _0x51a4eb=[];for(const _0xd0f8b0 of _0x184db9){if(_0xd0f8b0[_0x533e39(0x247)]==_0x533e39(0x46a)){_0x511dac[_0x533e39(0x4b6)]=!![];continue;}_0x51a4eb[_0x533e39(0x52c)](processJsonSchema(_0xd0f8b0));}_0x511dac[_0x208844]=_0x51a4eb;}else{if(_0x497e09[_0x533e39(0x34e)](_0x208844)){const _0x49fcd5={};for(const [_0x4829c4,_0x450699]of Object['entries'](_0x184db9)){_0x49fcd5[_0x4829c4]=processJsonSchema(_0x450699);}_0x511dac[_0x208844]=_0x49fcd5;}else{if(_0x208844===_0x533e39(0x36c))continue;_0x511dac[_0x208844]=_0x184db9;}}}}}return _0x511dac;}function tSchema(_0x5e42cd){return processJsonSchema(_0x5e42cd);}function tSpeechConfig(_0x18fd60){const _0x3ef490=a3_0x402819;if(typeof _0x18fd60===_0x3ef490(0x365))return _0x18fd60;else{if(typeof _0x18fd60===_0x3ef490(0x71b))return{'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':_0x18fd60}}};else throw new Error(_0x3ef490(0x3cd)+typeof _0x18fd60);}}function tLiveSpeechConfig(_0x25c0f0){const _0x455f9f=a3_0x402819;if(_0x455f9f(0x678)in _0x25c0f0)throw new Error(_0x455f9f(0x367));return _0x25c0f0;}function tTool(_0x23ee86){const _0xbccceb=a3_0x402819;if(_0x23ee86['functionDeclarations'])for(const _0x36c8b5 of _0x23ee86[_0xbccceb(0x5f8)]){_0x36c8b5['parameters']&&(!Object[_0xbccceb(0x2ce)](_0x36c8b5[_0xbccceb(0x460)])[_0xbccceb(0x34e)]('$schema')?_0x36c8b5[_0xbccceb(0x460)]=processJsonSchema(_0x36c8b5['parameters']):!_0x36c8b5[_0xbccceb(0x4ad)]&&(_0x36c8b5[_0xbccceb(0x4ad)]=_0x36c8b5['parameters'],delete _0x36c8b5[_0xbccceb(0x460)])),_0x36c8b5['response']&&(!Object[_0xbccceb(0x2ce)](_0x36c8b5[_0xbccceb(0x454)])[_0xbccceb(0x34e)](_0xbccceb(0x447))?_0x36c8b5[_0xbccceb(0x454)]=processJsonSchema(_0x36c8b5[_0xbccceb(0x454)]):!_0x36c8b5[_0xbccceb(0x62d)]&&(_0x36c8b5[_0xbccceb(0x62d)]=_0x36c8b5[_0xbccceb(0x454)],delete _0x36c8b5[_0xbccceb(0x454)]));}return _0x23ee86;}function tTools(_0x4e0480){const _0x4d3824=a3_0x402819;if(_0x4e0480===undefined||_0x4e0480===null)throw new Error(_0x4d3824(0x346));if(!Array[_0x4d3824(0x32b)](_0x4e0480))throw new Error(_0x4d3824(0x3d6));const _0xb331c7=[];for(const _0x3213f2 of _0x4e0480){_0xb331c7[_0x4d3824(0x52c)](_0x3213f2);}return _0xb331c7;}function resourceName(_0xd00f38,_0x2a207a,_0x14953a,_0x52a5ea=0x1){const _0x5c5395=a3_0x402819,_0x12fa80=!_0x2a207a[_0x5c5395(0x231)](_0x14953a+'/')&&_0x2a207a['split']('/')[_0x5c5395(0x3e8)]===_0x52a5ea;if(_0xd00f38[_0x5c5395(0x268)]()){if(_0x2a207a['startsWith'](_0x5c5395(0x5fd)))return _0x2a207a;else{if(_0x2a207a[_0x5c5395(0x231)](_0x5c5395(0x71c)))return'projects/'+_0xd00f38[_0x5c5395(0x3df)]()+'/'+_0x2a207a;else{if(_0x2a207a[_0x5c5395(0x231)](_0x14953a+'/'))return _0x5c5395(0x5fd)+_0xd00f38['getProject']()+_0x5c5395(0x3d2)+_0xd00f38[_0x5c5395(0x6cd)]()+'/'+_0x2a207a;else return _0x12fa80?_0x5c5395(0x5fd)+_0xd00f38[_0x5c5395(0x3df)]()+_0x5c5395(0x3d2)+_0xd00f38[_0x5c5395(0x6cd)]()+'/'+_0x14953a+'/'+_0x2a207a:_0x2a207a;}}}if(_0x12fa80)return _0x14953a+'/'+_0x2a207a;return _0x2a207a;}function tCachedContentName(_0x3c4b14,_0x75a8fc){const _0x4d1576=a3_0x402819;if(typeof _0x75a8fc!==_0x4d1576(0x71b))throw new Error(_0x4d1576(0x568));return resourceName(_0x3c4b14,_0x75a8fc,_0x4d1576(0x1ba));}function tTuningJobStatus(_0x437de6){const _0x3205d8=a3_0x402819;switch(_0x437de6){case _0x3205d8(0x645):return'JOB_STATE_UNSPECIFIED';case _0x3205d8(0x485):return'JOB_STATE_RUNNING';case _0x3205d8(0x2e5):return _0x3205d8(0x1ed);case _0x3205d8(0x5cd):return _0x3205d8(0x294);default:return _0x437de6;}}function tBytes(_0x277e67){return tBytes$1(_0x277e67);}function _isFile(_0x5e4213){const _0x125574=a3_0x402819;return _0x5e4213!==null&&_0x5e4213!==undefined&&typeof _0x5e4213===_0x125574(0x365)&&_0x125574(0x3a4)in _0x5e4213;}function isGeneratedVideo(_0x3aae21){const _0x4d112f=a3_0x402819;return _0x3aae21!==null&&_0x3aae21!==undefined&&typeof _0x3aae21===_0x4d112f(0x365)&&_0x4d112f(0x5f6)in _0x3aae21;}function isVideo(_0x1797c3){const _0x413c76=a3_0x402819;return _0x1797c3!==null&&_0x1797c3!==undefined&&typeof _0x1797c3===_0x413c76(0x365)&&_0x413c76(0x210)in _0x1797c3;}function tFileName(_0x572efe){const _0x296808=a3_0x402819;var _0x597b74;let _0x6ecaac;_isFile(_0x572efe)&&(_0x6ecaac=_0x572efe['name']);if(isVideo(_0x572efe)){_0x6ecaac=_0x572efe[_0x296808(0x210)];if(_0x6ecaac===undefined)return undefined;}if(isGeneratedVideo(_0x572efe)){_0x6ecaac=(_0x597b74=_0x572efe[_0x296808(0x5f6)])===null||_0x597b74===void 0x0?void 0x0:_0x597b74[_0x296808(0x210)];if(_0x6ecaac===undefined)return undefined;}typeof _0x572efe===_0x296808(0x71b)&&(_0x6ecaac=_0x572efe);if(_0x6ecaac===undefined)throw new Error('Could\x20not\x20extract\x20file\x20name\x20from\x20the\x20provided\x20input.');if(_0x6ecaac['startsWith'](_0x296808(0x68b))){const _0x437958=_0x6ecaac[_0x296808(0x51c)](_0x296808(0x2f1))[0x1],_0x25d6a2=_0x437958['match'](/[a-z0-9]+/);if(_0x25d6a2===null)throw new Error(_0x296808(0x412)+_0x6ecaac);_0x6ecaac=_0x25d6a2[0x0];}else _0x6ecaac['startsWith']('files/')&&(_0x6ecaac=_0x6ecaac[_0x296808(0x51c)]('files/')[0x1]);return _0x6ecaac;}function tModelsUrl(_0x2365b9,_0x47dee){const _0x2b0af6=a3_0x402819;let _0x1c0dca;return _0x2365b9[_0x2b0af6(0x268)]()?_0x1c0dca=_0x47dee?_0x2b0af6(0x6fc):_0x2b0af6(0x55a):_0x1c0dca=_0x47dee?_0x2b0af6(0x55a):_0x2b0af6(0x719),_0x1c0dca;}function tExtractModels(_0x43ac38){const _0x1da8bf=a3_0x402819;for(const _0x3e07d0 of['models',_0x1da8bf(0x719),_0x1da8bf(0x1f1)]){if(hasField(_0x43ac38,_0x3e07d0))return _0x43ac38[_0x3e07d0];}return[];}function hasField(_0x34721d,_0x413d4a){const _0x45c5a3=a3_0x402819;return _0x34721d!==null&&typeof _0x34721d===_0x45c5a3(0x365)&&_0x413d4a in _0x34721d;}function mcpToGeminiTool(_0x11196c,_0x40456a={}){const _0x59c359=a3_0x402819,_0x281a24=_0x11196c,_0x129c7e={'name':_0x281a24[_0x59c359(0x3a4)],'description':_0x281a24[_0x59c359(0x3c3)],'parametersJsonSchema':_0x281a24[_0x59c359(0x3b1)]};_0x281a24[_0x59c359(0x673)]&&(_0x129c7e[_0x59c359(0x62d)]=_0x281a24['outputSchema']);_0x40456a[_0x59c359(0x321)]&&(_0x129c7e[_0x59c359(0x321)]=_0x40456a[_0x59c359(0x321)]);const _0x43a2a5={'functionDeclarations':[_0x129c7e]};return _0x43a2a5;}function mcpToolsToGeminiTool(_0x2a5683,_0x40c942={}){const _0x163759=a3_0x402819,_0x3b4d75=[],_0x4f021f=new Set();for(const _0x13ed16 of _0x2a5683){const _0x3fa74e=_0x13ed16['name'];if(_0x4f021f[_0x163759(0x553)](_0x3fa74e))throw new Error(_0x163759(0x1cb)+_0x3fa74e+'\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.');_0x4f021f['add'](_0x3fa74e);const _0x52ef48=mcpToGeminiTool(_0x13ed16,_0x40c942);_0x52ef48[_0x163759(0x5f8)]&&_0x3b4d75[_0x163759(0x52c)](..._0x52ef48[_0x163759(0x5f8)]);}return{'functionDeclarations':_0x3b4d75};}function tBatchJobSource(_0x2e96c4,_0x13eb47){const _0x1e15a3=a3_0x402819;let _0x1866d6;if(typeof _0x13eb47===_0x1e15a3(0x71b)){if(_0x2e96c4[_0x1e15a3(0x268)]()){if(_0x13eb47['startsWith'](_0x1e15a3(0x382)))_0x1866d6={'format':_0x1e15a3(0x307),'gcsUri':[_0x13eb47]};else{if(_0x13eb47['startsWith']('bq://'))_0x1866d6={'format':_0x1e15a3(0x1df),'bigqueryUri':_0x13eb47};else throw new Error(_0x1e15a3(0x5c9)+_0x13eb47);}}else{if(_0x13eb47[_0x1e15a3(0x231)]('files/'))_0x1866d6={'fileName':_0x13eb47};else throw new Error('Unsupported\x20string\x20source\x20for\x20Gemini\x20API:\x20'+_0x13eb47);}}else{if(Array['isArray'](_0x13eb47)){if(_0x2e96c4[_0x1e15a3(0x268)]())throw new Error(_0x1e15a3(0x252));_0x1866d6={'inlinedRequests':_0x13eb47};}else _0x1866d6=_0x13eb47;}const _0x3fe6ad=[_0x1866d6['gcsUri'],_0x1866d6[_0x1e15a3(0x1ac)]]['filter'](Boolean)[_0x1e15a3(0x3e8)],_0x9f8cee=[_0x1866d6[_0x1e15a3(0x373)],_0x1866d6[_0x1e15a3(0x55c)]][_0x1e15a3(0x67f)](Boolean)[_0x1e15a3(0x3e8)];if(_0x2e96c4[_0x1e15a3(0x268)]()){if(_0x9f8cee>0x0||_0x3fe6ad!==0x1)throw new Error(_0x1e15a3(0x71f));}else{if(_0x3fe6ad>0x0||_0x9f8cee!==0x1)throw new Error(_0x1e15a3(0x67a)+_0x1e15a3(0x1c4));}return _0x1866d6;}function tBatchJobDestination(_0x366d27){const _0x4d0287=a3_0x402819;if(typeof _0x366d27!==_0x4d0287(0x71b))return _0x366d27;const _0x30b92d=_0x366d27;if(_0x30b92d[_0x4d0287(0x231)](_0x4d0287(0x382)))return{'format':_0x4d0287(0x307),'gcsUri':_0x30b92d};else{if(_0x30b92d['startsWith'](_0x4d0287(0x509)))return{'format':_0x4d0287(0x1df),'bigqueryUri':_0x30b92d};else throw new Error(_0x4d0287(0x6ad)+_0x30b92d);}}function tRecvBatchJobDestination(_0x2dc05d){const _0x10e30d=a3_0x402819;if(typeof _0x2dc05d!==_0x10e30d(0x365)||_0x2dc05d===null)return{};const _0x28bdbc=_0x2dc05d,_0x2b0e8f=_0x28bdbc['inlinedResponses'];if(typeof _0x2b0e8f!==_0x10e30d(0x365)||_0x2b0e8f===null)return _0x2dc05d;const _0x4eb1d4=_0x2b0e8f,_0x492f27=_0x4eb1d4[_0x10e30d(0x38f)];if(!Array[_0x10e30d(0x32b)](_0x492f27)||_0x492f27['length']===0x0)return _0x2dc05d;let _0x325d1a=![];for(const _0xb336d8 of _0x492f27){if(typeof _0xb336d8!==_0x10e30d(0x365)||_0xb336d8===null)continue;const _0x4a8977=_0xb336d8,_0x3868eb=_0x4a8977[_0x10e30d(0x454)];if(typeof _0x3868eb!==_0x10e30d(0x365)||_0x3868eb===null)continue;const _0x3605a9=_0x3868eb;if(_0x3605a9[_0x10e30d(0x679)]!==undefined){_0x325d1a=!![];break;}}return _0x325d1a&&(_0x28bdbc[_0x10e30d(0x4a1)]=_0x28bdbc['inlinedResponses'],delete _0x28bdbc[_0x10e30d(0x38f)]),_0x2dc05d;}function tBatchJobName(_0x55addc,_0x4a525a){const _0x23ade4=a3_0x402819,_0xcf7305=_0x4a525a;if(!_0x55addc[_0x23ade4(0x268)]()){const _0x548afd=/batches\/[^/]+$/;if(_0x548afd[_0x23ade4(0x411)](_0xcf7305))return _0xcf7305[_0x23ade4(0x51c)]('/')[_0x23ade4(0x279)]();else throw new Error(_0x23ade4(0x682)+_0xcf7305+'.');}const _0x242355=/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/;if(_0x242355['test'](_0xcf7305))return _0xcf7305[_0x23ade4(0x51c)]('/')[_0x23ade4(0x279)]();else{if(/^\d+$/[_0x23ade4(0x411)](_0xcf7305))return _0xcf7305;else throw new Error(_0x23ade4(0x682)+_0xcf7305+'.');}}function tJobState(_0x2ecdb2){const _0x1d5bbd=a3_0x402819,_0x4ca49d=_0x2ecdb2;if(_0x4ca49d===_0x1d5bbd(0x4ff))return _0x1d5bbd(0x6fb);else{if(_0x4ca49d==='BATCH_STATE_PENDING')return _0x1d5bbd(0x237);else{if(_0x4ca49d==='BATCH_STATE_RUNNING')return'JOB_STATE_RUNNING';else{if(_0x4ca49d===_0x1d5bbd(0x3fb))return _0x1d5bbd(0x1ed);else{if(_0x4ca49d===_0x1d5bbd(0x6be))return _0x1d5bbd(0x294);else{if(_0x4ca49d===_0x1d5bbd(0x3b4))return _0x1d5bbd(0x267);else return _0x4ca49d===_0x1d5bbd(0x666)?_0x1d5bbd(0x6a8):_0x4ca49d;}}}}}}/**
32
+ * @license
33
+ * Copyright 2025 Google LLC
34
+ * SPDX-License-Identifier: Apache-2.0
35
+ */
36
+ function batchJobDestinationFromMldev(_0xd490f2){const _0x1f1f76=a3_0x402819,_0x5c7736={},_0x5d4825=getValueByPath(_0xd490f2,[_0x1f1f76(0x70a)]);_0x5d4825!=null&&setValueByPath(_0x5c7736,['fileName'],_0x5d4825);const _0x288041=getValueByPath(_0xd490f2,['inlinedResponses',_0x1f1f76(0x38f)]);if(_0x288041!=null){let _0x321516=_0x288041;Array['isArray'](_0x321516)&&(_0x321516=_0x321516[_0x1f1f76(0x6c4)](_0xa8064=>{return inlinedResponseFromMldev(_0xa8064);})),setValueByPath(_0x5c7736,[_0x1f1f76(0x38f)],_0x321516);}const _0x3eb401=getValueByPath(_0xd490f2,[_0x1f1f76(0x4a1),_0x1f1f76(0x38f)]);if(_0x3eb401!=null){let _0x4572c0=_0x3eb401;Array['isArray'](_0x4572c0)&&(_0x4572c0=_0x4572c0[_0x1f1f76(0x6c4)](_0x209aab=>{return _0x209aab;})),setValueByPath(_0x5c7736,[_0x1f1f76(0x4a1)],_0x4572c0);}return _0x5c7736;}function batchJobDestinationFromVertex(_0x5b52bc){const _0x5d2880=a3_0x402819,_0x14a728={},_0x1c0cc2=getValueByPath(_0x5b52bc,[_0x5d2880(0x6ee)]);_0x1c0cc2!=null&&setValueByPath(_0x14a728,[_0x5d2880(0x3b2)],_0x1c0cc2);const _0x162831=getValueByPath(_0x5b52bc,[_0x5d2880(0x6b4),_0x5d2880(0x1d8)]);_0x162831!=null&&setValueByPath(_0x14a728,['gcsUri'],_0x162831);const _0x4ee1b7=getValueByPath(_0x5b52bc,[_0x5d2880(0x4f4),_0x5d2880(0x6e6)]);return _0x4ee1b7!=null&&setValueByPath(_0x14a728,[_0x5d2880(0x1ac)],_0x4ee1b7),_0x14a728;}function batchJobDestinationToVertex(_0x3cdfec){const _0x5a6c47=a3_0x402819,_0x16f7f2={},_0x1ccc47=getValueByPath(_0x3cdfec,['format']);_0x1ccc47!=null&&setValueByPath(_0x16f7f2,[_0x5a6c47(0x6ee)],_0x1ccc47);const _0x1bc86f=getValueByPath(_0x3cdfec,[_0x5a6c47(0x3e3)]);_0x1bc86f!=null&&setValueByPath(_0x16f7f2,['gcsDestination',_0x5a6c47(0x1d8)],_0x1bc86f);const _0x259b47=getValueByPath(_0x3cdfec,[_0x5a6c47(0x1ac)]);_0x259b47!=null&&setValueByPath(_0x16f7f2,[_0x5a6c47(0x4f4),_0x5a6c47(0x6e6)],_0x259b47);if(getValueByPath(_0x3cdfec,[_0x5a6c47(0x55c)])!==undefined)throw new Error(_0x5a6c47(0x256));if(getValueByPath(_0x3cdfec,[_0x5a6c47(0x38f)])!==undefined)throw new Error(_0x5a6c47(0x39e));if(getValueByPath(_0x3cdfec,[_0x5a6c47(0x4a1)])!==undefined)throw new Error(_0x5a6c47(0x49e));return _0x16f7f2;}function batchJobFromMldev(_0x476e54){const _0xd1ae26=a3_0x402819,_0x18c082={},_0x47013d=getValueByPath(_0x476e54,[_0xd1ae26(0x3a4)]);_0x47013d!=null&&setValueByPath(_0x18c082,['name'],_0x47013d);const _0x21db58=getValueByPath(_0x476e54,['metadata',_0xd1ae26(0x199)]);_0x21db58!=null&&setValueByPath(_0x18c082,[_0xd1ae26(0x199)],_0x21db58);const _0x56f34a=getValueByPath(_0x476e54,[_0xd1ae26(0x266),_0xd1ae26(0x2a1)]);_0x56f34a!=null&&setValueByPath(_0x18c082,[_0xd1ae26(0x2a1)],tJobState(_0x56f34a));const _0x28260b=getValueByPath(_0x476e54,[_0xd1ae26(0x266),_0xd1ae26(0x393)]);_0x28260b!=null&&setValueByPath(_0x18c082,[_0xd1ae26(0x393)],_0x28260b);const _0x101c7e=getValueByPath(_0x476e54,[_0xd1ae26(0x266),_0xd1ae26(0x4af)]);_0x101c7e!=null&&setValueByPath(_0x18c082,['endTime'],_0x101c7e);const _0x17a3a4=getValueByPath(_0x476e54,[_0xd1ae26(0x266),_0xd1ae26(0x414)]);_0x17a3a4!=null&&setValueByPath(_0x18c082,[_0xd1ae26(0x414)],_0x17a3a4);const _0x5dda8f=getValueByPath(_0x476e54,[_0xd1ae26(0x266),_0xd1ae26(0x3f6)]);_0x5dda8f!=null&&setValueByPath(_0x18c082,[_0xd1ae26(0x3f6)],_0x5dda8f);const _0x34abda=getValueByPath(_0x476e54,[_0xd1ae26(0x266),_0xd1ae26(0x364)]);return _0x34abda!=null&&setValueByPath(_0x18c082,[_0xd1ae26(0x292)],batchJobDestinationFromMldev(tRecvBatchJobDestination(_0x34abda))),_0x18c082;}function batchJobFromVertex(_0x347700){const _0x3fa3e6=a3_0x402819,_0x569c31={},_0xc2b7d3=getValueByPath(_0x347700,['name']);_0xc2b7d3!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x3a4)],_0xc2b7d3);const _0x577bb4=getValueByPath(_0x347700,[_0x3fa3e6(0x199)]);_0x577bb4!=null&&setValueByPath(_0x569c31,['displayName'],_0x577bb4);const _0x1c5fab=getValueByPath(_0x347700,[_0x3fa3e6(0x2a1)]);_0x1c5fab!=null&&setValueByPath(_0x569c31,['state'],tJobState(_0x1c5fab));const _0x322e6b=getValueByPath(_0x347700,[_0x3fa3e6(0x251)]);_0x322e6b!=null&&setValueByPath(_0x569c31,['error'],_0x322e6b);const _0x309ff9=getValueByPath(_0x347700,[_0x3fa3e6(0x393)]);_0x309ff9!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x393)],_0x309ff9);const _0x3b4f6e=getValueByPath(_0x347700,[_0x3fa3e6(0x2a0)]);_0x3b4f6e!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x2a0)],_0x3b4f6e);const _0x451393=getValueByPath(_0x347700,[_0x3fa3e6(0x4af)]);_0x451393!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x4af)],_0x451393);const _0x4c4df1=getValueByPath(_0x347700,[_0x3fa3e6(0x414)]);_0x4c4df1!=null&&setValueByPath(_0x569c31,['updateTime'],_0x4c4df1);const _0x52f6a3=getValueByPath(_0x347700,[_0x3fa3e6(0x3f6)]);_0x52f6a3!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x3f6)],_0x52f6a3);const _0x160397=getValueByPath(_0x347700,[_0x3fa3e6(0x725)]);_0x160397!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x3a8)],batchJobSourceFromVertex(_0x160397));const _0x15a8c1=getValueByPath(_0x347700,[_0x3fa3e6(0x3c8)]);_0x15a8c1!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x292)],batchJobDestinationFromVertex(tRecvBatchJobDestination(_0x15a8c1)));const _0x17e08c=getValueByPath(_0x347700,['completionStats']);return _0x17e08c!=null&&setValueByPath(_0x569c31,[_0x3fa3e6(0x3e5)],_0x17e08c),_0x569c31;}function batchJobSourceFromVertex(_0x423b77){const _0x3c8916=a3_0x402819,_0x1dbb77={},_0x25dfd5=getValueByPath(_0x423b77,[_0x3c8916(0x23c)]);_0x25dfd5!=null&&setValueByPath(_0x1dbb77,[_0x3c8916(0x3b2)],_0x25dfd5);const _0x4312e7=getValueByPath(_0x423b77,[_0x3c8916(0x58e),_0x3c8916(0x653)]);_0x4312e7!=null&&setValueByPath(_0x1dbb77,[_0x3c8916(0x3e3)],_0x4312e7);const _0x1a219b=getValueByPath(_0x423b77,[_0x3c8916(0x2fc),_0x3c8916(0x3f0)]);return _0x1a219b!=null&&setValueByPath(_0x1dbb77,[_0x3c8916(0x1ac)],_0x1a219b),_0x1dbb77;}function batchJobSourceToMldev(_0x29fb1d,_0x391069){const _0x24b176=a3_0x402819,_0x591d7f={};if(getValueByPath(_0x391069,[_0x24b176(0x3b2)])!==undefined)throw new Error(_0x24b176(0x40e));if(getValueByPath(_0x391069,[_0x24b176(0x3e3)])!==undefined)throw new Error('gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x391069,['bigqueryUri'])!==undefined)throw new Error(_0x24b176(0x26a));const _0x25b2c8=getValueByPath(_0x391069,[_0x24b176(0x55c)]);_0x25b2c8!=null&&setValueByPath(_0x591d7f,[_0x24b176(0x55c)],_0x25b2c8);const _0x160efe=getValueByPath(_0x391069,[_0x24b176(0x373)]);if(_0x160efe!=null){let _0x21c788=_0x160efe;Array[_0x24b176(0x32b)](_0x21c788)&&(_0x21c788=_0x21c788[_0x24b176(0x6c4)](_0x386822=>{return inlinedRequestToMldev(_0x29fb1d,_0x386822);})),setValueByPath(_0x591d7f,['requests','requests'],_0x21c788);}return _0x591d7f;}function batchJobSourceToVertex(_0x4b60cf){const _0x51832c=a3_0x402819,_0x2c4f26={},_0x21780f=getValueByPath(_0x4b60cf,[_0x51832c(0x3b2)]);_0x21780f!=null&&setValueByPath(_0x2c4f26,['instancesFormat'],_0x21780f);const _0x41dcc4=getValueByPath(_0x4b60cf,[_0x51832c(0x3e3)]);_0x41dcc4!=null&&setValueByPath(_0x2c4f26,[_0x51832c(0x58e),_0x51832c(0x653)],_0x41dcc4);const _0x363432=getValueByPath(_0x4b60cf,[_0x51832c(0x1ac)]);_0x363432!=null&&setValueByPath(_0x2c4f26,[_0x51832c(0x2fc),_0x51832c(0x3f0)],_0x363432);if(getValueByPath(_0x4b60cf,[_0x51832c(0x55c)])!==undefined)throw new Error(_0x51832c(0x256));if(getValueByPath(_0x4b60cf,[_0x51832c(0x373)])!==undefined)throw new Error(_0x51832c(0x521));return _0x2c4f26;}function blobToMldev$4(_0x59c40c){const _0x38dbc9=a3_0x402819,_0x204cc5={},_0x143636=getValueByPath(_0x59c40c,[_0x38dbc9(0x5b1)]);_0x143636!=null&&setValueByPath(_0x204cc5,[_0x38dbc9(0x5b1)],_0x143636);if(getValueByPath(_0x59c40c,[_0x38dbc9(0x199)])!==undefined)throw new Error(_0x38dbc9(0x5c1));const _0x5127e8=getValueByPath(_0x59c40c,['mimeType']);return _0x5127e8!=null&&setValueByPath(_0x204cc5,['mimeType'],_0x5127e8),_0x204cc5;}function cancelBatchJobParametersToMldev(_0x37043e,_0xa872c9){const _0x4286e3=a3_0x402819,_0x48abe4={},_0x15abc6=getValueByPath(_0xa872c9,[_0x4286e3(0x3a4)]);return _0x15abc6!=null&&setValueByPath(_0x48abe4,[_0x4286e3(0x1aa),_0x4286e3(0x3a4)],tBatchJobName(_0x37043e,_0x15abc6)),_0x48abe4;}function cancelBatchJobParametersToVertex(_0x4af5c9,_0x3e7783){const _0xc0b774=a3_0x402819,_0x74bc2c={},_0x41fddd=getValueByPath(_0x3e7783,['name']);return _0x41fddd!=null&&setValueByPath(_0x74bc2c,['_url',_0xc0b774(0x3a4)],tBatchJobName(_0x4af5c9,_0x41fddd)),_0x74bc2c;}function candidateFromMldev$1(_0x27f57f){const _0x189e2f=a3_0x402819,_0x54925f={},_0x1c3fdf=getValueByPath(_0x27f57f,[_0x189e2f(0x345)]);_0x1c3fdf!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x345)],_0x1c3fdf);const _0x5e12d8=getValueByPath(_0x27f57f,[_0x189e2f(0x56b)]);_0x5e12d8!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x56b)],citationMetadataFromMldev$1(_0x5e12d8));const _0x32345c=getValueByPath(_0x27f57f,[_0x189e2f(0x48e)]);_0x32345c!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x48e)],_0x32345c);const _0x54d521=getValueByPath(_0x27f57f,[_0x189e2f(0x4da)]);_0x54d521!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x4da)],_0x54d521);const _0x175373=getValueByPath(_0x27f57f,[_0x189e2f(0x60d)]);_0x175373!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x60d)],_0x175373);const _0x5291c4=getValueByPath(_0x27f57f,[_0x189e2f(0x4e6)]);_0x5291c4!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x4e6)],_0x5291c4);const _0x3eccc4=getValueByPath(_0x27f57f,['index']);_0x3eccc4!=null&&setValueByPath(_0x54925f,['index'],_0x3eccc4);const _0x19ac91=getValueByPath(_0x27f57f,['logprobsResult']);_0x19ac91!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x49f)],_0x19ac91);const _0x28682e=getValueByPath(_0x27f57f,[_0x189e2f(0x24f)]);if(_0x28682e!=null){let _0x1b61fd=_0x28682e;Array[_0x189e2f(0x32b)](_0x1b61fd)&&(_0x1b61fd=_0x1b61fd[_0x189e2f(0x6c4)](_0x20db5d=>{return _0x20db5d;})),setValueByPath(_0x54925f,[_0x189e2f(0x24f)],_0x1b61fd);}const _0x19df34=getValueByPath(_0x27f57f,[_0x189e2f(0x65f)]);return _0x19df34!=null&&setValueByPath(_0x54925f,[_0x189e2f(0x65f)],_0x19df34),_0x54925f;}function citationMetadataFromMldev$1(_0x9afaaf){const _0x1d577f=a3_0x402819,_0x2dfe97={},_0x400371=getValueByPath(_0x9afaaf,[_0x1d577f(0x530)]);if(_0x400371!=null){let _0x43856f=_0x400371;Array[_0x1d577f(0x32b)](_0x43856f)&&(_0x43856f=_0x43856f[_0x1d577f(0x6c4)](_0x3bb38f=>{return _0x3bb38f;})),setValueByPath(_0x2dfe97,[_0x1d577f(0x1b2)],_0x43856f);}return _0x2dfe97;}function contentToMldev$4(_0x39676a){const _0x59a5e6=a3_0x402819,_0x581fb1={},_0x267ab3=getValueByPath(_0x39676a,['parts']);if(_0x267ab3!=null){let _0x3bef8d=_0x267ab3;Array[_0x59a5e6(0x32b)](_0x3bef8d)&&(_0x3bef8d=_0x3bef8d[_0x59a5e6(0x6c4)](_0x2d8bfe=>{return partToMldev$4(_0x2d8bfe);})),setValueByPath(_0x581fb1,[_0x59a5e6(0x569)],_0x3bef8d);}const _0x35a0e2=getValueByPath(_0x39676a,['role']);return _0x35a0e2!=null&&setValueByPath(_0x581fb1,[_0x59a5e6(0x23a)],_0x35a0e2),_0x581fb1;}function createBatchJobConfigToMldev(_0x586adb,_0xb3d27e){const _0x3f9cdf=a3_0x402819,_0x5a4db2={},_0x52b45d=getValueByPath(_0x586adb,[_0x3f9cdf(0x199)]);_0xb3d27e!==undefined&&_0x52b45d!=null&&setValueByPath(_0xb3d27e,[_0x3f9cdf(0x1cc),_0x3f9cdf(0x199)],_0x52b45d);if(getValueByPath(_0x586adb,[_0x3f9cdf(0x292)])!==undefined)throw new Error('dest\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x5a4db2;}function createBatchJobConfigToVertex(_0x33ac21,_0xdfe76f){const _0x31978f=a3_0x402819,_0xae4378={},_0x27f28e=getValueByPath(_0x33ac21,[_0x31978f(0x199)]);_0xdfe76f!==undefined&&_0x27f28e!=null&&setValueByPath(_0xdfe76f,['displayName'],_0x27f28e);const _0x5cdd26=getValueByPath(_0x33ac21,[_0x31978f(0x292)]);return _0xdfe76f!==undefined&&_0x5cdd26!=null&&setValueByPath(_0xdfe76f,[_0x31978f(0x3c8)],batchJobDestinationToVertex(tBatchJobDestination(_0x5cdd26))),_0xae4378;}function createBatchJobParametersToMldev(_0x10a128,_0x78a0a0){const _0x587a8c=a3_0x402819,_0x1e9d73={},_0x3be4cc=getValueByPath(_0x78a0a0,[_0x587a8c(0x3f6)]);_0x3be4cc!=null&&setValueByPath(_0x1e9d73,[_0x587a8c(0x1aa),_0x587a8c(0x3f6)],tModel(_0x10a128,_0x3be4cc));const _0x5c535f=getValueByPath(_0x78a0a0,[_0x587a8c(0x3a8)]);_0x5c535f!=null&&setValueByPath(_0x1e9d73,[_0x587a8c(0x1cc),_0x587a8c(0x725)],batchJobSourceToMldev(_0x10a128,tBatchJobSource(_0x10a128,_0x5c535f)));const _0x2a7f17=getValueByPath(_0x78a0a0,[_0x587a8c(0x43b)]);return _0x2a7f17!=null&&createBatchJobConfigToMldev(_0x2a7f17,_0x1e9d73),_0x1e9d73;}function createBatchJobParametersToVertex(_0x807c01,_0x1bfa22){const _0x1af949=a3_0x402819,_0x5216fd={},_0xc4d589=getValueByPath(_0x1bfa22,['model']);_0xc4d589!=null&&setValueByPath(_0x5216fd,['model'],tModel(_0x807c01,_0xc4d589));const _0x3fd545=getValueByPath(_0x1bfa22,[_0x1af949(0x3a8)]);_0x3fd545!=null&&setValueByPath(_0x5216fd,[_0x1af949(0x725)],batchJobSourceToVertex(tBatchJobSource(_0x807c01,_0x3fd545)));const _0x3cf0b0=getValueByPath(_0x1bfa22,[_0x1af949(0x43b)]);return _0x3cf0b0!=null&&createBatchJobConfigToVertex(_0x3cf0b0,_0x5216fd),_0x5216fd;}function createEmbeddingsBatchJobConfigToMldev(_0xa7f6d9,_0x43c37a){const _0x26233d=a3_0x402819,_0x675dfc={},_0x3f962c=getValueByPath(_0xa7f6d9,[_0x26233d(0x199)]);return _0x43c37a!==undefined&&_0x3f962c!=null&&setValueByPath(_0x43c37a,[_0x26233d(0x1cc),_0x26233d(0x199)],_0x3f962c),_0x675dfc;}function createEmbeddingsBatchJobParametersToMldev(_0x28d72a,_0x21ea54){const _0x2e081e=a3_0x402819,_0x44d847={},_0x422631=getValueByPath(_0x21ea54,[_0x2e081e(0x3f6)]);_0x422631!=null&&setValueByPath(_0x44d847,[_0x2e081e(0x1aa),_0x2e081e(0x3f6)],tModel(_0x28d72a,_0x422631));const _0x5a6f33=getValueByPath(_0x21ea54,[_0x2e081e(0x3a8)]);_0x5a6f33!=null&&setValueByPath(_0x44d847,['batch',_0x2e081e(0x725)],embeddingsBatchJobSourceToMldev(_0x28d72a,_0x5a6f33));const _0xac5776=getValueByPath(_0x21ea54,['config']);return _0xac5776!=null&&createEmbeddingsBatchJobConfigToMldev(_0xac5776,_0x44d847),_0x44d847;}function deleteBatchJobParametersToMldev(_0x5a3763,_0x463404){const _0x37dc79=a3_0x402819,_0x2da6ef={},_0x2569fe=getValueByPath(_0x463404,[_0x37dc79(0x3a4)]);return _0x2569fe!=null&&setValueByPath(_0x2da6ef,[_0x37dc79(0x1aa),_0x37dc79(0x3a4)],tBatchJobName(_0x5a3763,_0x2569fe)),_0x2da6ef;}function deleteBatchJobParametersToVertex(_0x1a063b,_0x46e661){const _0x3105b9=a3_0x402819,_0x4a4d23={},_0x5e3f09=getValueByPath(_0x46e661,[_0x3105b9(0x3a4)]);return _0x5e3f09!=null&&setValueByPath(_0x4a4d23,['_url',_0x3105b9(0x3a4)],tBatchJobName(_0x1a063b,_0x5e3f09)),_0x4a4d23;}function deleteResourceJobFromMldev(_0x260340){const _0x2331db=a3_0x402819,_0x5d7345={},_0x6f803f=getValueByPath(_0x260340,[_0x2331db(0x3a7)]);_0x6f803f!=null&&setValueByPath(_0x5d7345,[_0x2331db(0x3a7)],_0x6f803f);const _0x4f2a03=getValueByPath(_0x260340,[_0x2331db(0x3a4)]);_0x4f2a03!=null&&setValueByPath(_0x5d7345,[_0x2331db(0x3a4)],_0x4f2a03);const _0x69634c=getValueByPath(_0x260340,[_0x2331db(0x424)]);_0x69634c!=null&&setValueByPath(_0x5d7345,['done'],_0x69634c);const _0x5475cb=getValueByPath(_0x260340,['error']);return _0x5475cb!=null&&setValueByPath(_0x5d7345,[_0x2331db(0x251)],_0x5475cb),_0x5d7345;}function deleteResourceJobFromVertex(_0x3a2c8c){const _0x30a779=a3_0x402819,_0x281146={},_0x185deb=getValueByPath(_0x3a2c8c,['sdkHttpResponse']);_0x185deb!=null&&setValueByPath(_0x281146,[_0x30a779(0x3a7)],_0x185deb);const _0x5e3d00=getValueByPath(_0x3a2c8c,[_0x30a779(0x3a4)]);_0x5e3d00!=null&&setValueByPath(_0x281146,[_0x30a779(0x3a4)],_0x5e3d00);const _0x461fdc=getValueByPath(_0x3a2c8c,['done']);_0x461fdc!=null&&setValueByPath(_0x281146,[_0x30a779(0x424)],_0x461fdc);const _0x3dc330=getValueByPath(_0x3a2c8c,[_0x30a779(0x251)]);return _0x3dc330!=null&&setValueByPath(_0x281146,[_0x30a779(0x251)],_0x3dc330),_0x281146;}function embedContentBatchToMldev(_0x71b3c3,_0x55e291){const _0x5e3b62=a3_0x402819,_0x2ded80={},_0x3a5162=getValueByPath(_0x55e291,[_0x5e3b62(0x695)]);if(_0x3a5162!=null){let _0xfbfcdf=tContentsForEmbed(_0x71b3c3,_0x3a5162);Array[_0x5e3b62(0x32b)](_0xfbfcdf)&&(_0xfbfcdf=_0xfbfcdf[_0x5e3b62(0x6c4)](_0x5ed79a=>{return _0x5ed79a;})),setValueByPath(_0x2ded80,[_0x5e3b62(0x41f),_0x5e3b62(0x239),_0x5e3b62(0x345)],_0xfbfcdf);}const _0x408391=getValueByPath(_0x55e291,[_0x5e3b62(0x43b)]);return _0x408391!=null&&(setValueByPath(_0x2ded80,[_0x5e3b62(0x6f6)],embedContentConfigToMldev$1(_0x408391,_0x2ded80)),moveValueByPath(_0x2ded80,{'requests[].*':'requests[].request.*'})),_0x2ded80;}function embedContentConfigToMldev$1(_0x41e95c,_0x30d428){const _0x2fc8d7=a3_0x402819,_0xef1ee2={},_0x4a1906=getValueByPath(_0x41e95c,[_0x2fc8d7(0x722)]);_0x30d428!==undefined&&_0x4a1906!=null&&setValueByPath(_0x30d428,['requests[]','taskType'],_0x4a1906);const _0x3aec18=getValueByPath(_0x41e95c,[_0x2fc8d7(0x6af)]);_0x30d428!==undefined&&_0x3aec18!=null&&setValueByPath(_0x30d428,[_0x2fc8d7(0x41f),_0x2fc8d7(0x6af)],_0x3aec18);const _0x5e42eb=getValueByPath(_0x41e95c,['outputDimensionality']);_0x30d428!==undefined&&_0x5e42eb!=null&&setValueByPath(_0x30d428,[_0x2fc8d7(0x41f),'outputDimensionality'],_0x5e42eb);if(getValueByPath(_0x41e95c,[_0x2fc8d7(0x542)])!==undefined)throw new Error(_0x2fc8d7(0x4c1));if(getValueByPath(_0x41e95c,[_0x2fc8d7(0x22a)])!==undefined)throw new Error(_0x2fc8d7(0x3e7));return _0xef1ee2;}function embeddingsBatchJobSourceToMldev(_0x26fb5a,_0x50fa20){const _0x47c45c=a3_0x402819,_0x1c8e30={},_0x5107f0=getValueByPath(_0x50fa20,[_0x47c45c(0x55c)]);_0x5107f0!=null&&setValueByPath(_0x1c8e30,[_0x47c45c(0x244)],_0x5107f0);const _0x1cabf5=getValueByPath(_0x50fa20,[_0x47c45c(0x373)]);return _0x1cabf5!=null&&setValueByPath(_0x1c8e30,['requests'],embedContentBatchToMldev(_0x26fb5a,_0x1cabf5)),_0x1c8e30;}function fileDataToMldev$4(_0x309b98){const _0x2b21a3=a3_0x402819,_0x6013f5={};if(getValueByPath(_0x309b98,[_0x2b21a3(0x199)])!==undefined)throw new Error(_0x2b21a3(0x5c1));const _0x1db736=getValueByPath(_0x309b98,[_0x2b21a3(0x218)]);_0x1db736!=null&&setValueByPath(_0x6013f5,[_0x2b21a3(0x218)],_0x1db736);const _0x332138=getValueByPath(_0x309b98,[_0x2b21a3(0x542)]);return _0x332138!=null&&setValueByPath(_0x6013f5,[_0x2b21a3(0x542)],_0x332138),_0x6013f5;}function functionCallToMldev$4(_0x29de6a){const _0x263a9e=a3_0x402819,_0x24b3f8={},_0x29003f=getValueByPath(_0x29de6a,['id']);_0x29003f!=null&&setValueByPath(_0x24b3f8,['id'],_0x29003f);const _0x39f72a=getValueByPath(_0x29de6a,[_0x263a9e(0x6a1)]);_0x39f72a!=null&&setValueByPath(_0x24b3f8,[_0x263a9e(0x6a1)],_0x39f72a);const _0x1b509f=getValueByPath(_0x29de6a,['name']);_0x1b509f!=null&&setValueByPath(_0x24b3f8,[_0x263a9e(0x3a4)],_0x1b509f);if(getValueByPath(_0x29de6a,['partialArgs'])!==undefined)throw new Error(_0x263a9e(0x1d3));if(getValueByPath(_0x29de6a,['willContinue'])!==undefined)throw new Error(_0x263a9e(0x4dc));return _0x24b3f8;}function functionCallingConfigToMldev$2(_0x2c4f15){const _0x2972b3=a3_0x402819,_0x5e41ac={},_0x3c1ae2=getValueByPath(_0x2c4f15,[_0x2972b3(0x6e4)]);_0x3c1ae2!=null&&setValueByPath(_0x5e41ac,['allowedFunctionNames'],_0x3c1ae2);const _0x12bb0e=getValueByPath(_0x2c4f15,[_0x2972b3(0x43d)]);_0x12bb0e!=null&&setValueByPath(_0x5e41ac,[_0x2972b3(0x43d)],_0x12bb0e);if(getValueByPath(_0x2c4f15,[_0x2972b3(0x6df)])!==undefined)throw new Error(_0x2972b3(0x6f2));return _0x5e41ac;}function generateContentConfigToMldev$1(_0x2a5b92,_0x2a101b,_0x328ef6){const _0x69f214=a3_0x402819,_0x44adc1={},_0x21580b=getValueByPath(_0x2a101b,[_0x69f214(0x415)]);_0x328ef6!==undefined&&_0x21580b!=null&&setValueByPath(_0x328ef6,[_0x69f214(0x415)],contentToMldev$4(tContent(_0x21580b)));const _0x46016a=getValueByPath(_0x2a101b,[_0x69f214(0x59f)]);_0x46016a!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x59f)],_0x46016a);const _0x545d96=getValueByPath(_0x2a101b,[_0x69f214(0x394)]);_0x545d96!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x394)],_0x545d96);const _0x196a03=getValueByPath(_0x2a101b,['topK']);_0x196a03!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x5ad)],_0x196a03);const _0x2902e9=getValueByPath(_0x2a101b,[_0x69f214(0x4d7)]);_0x2902e9!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x4d7)],_0x2902e9);const _0x37c573=getValueByPath(_0x2a101b,['maxOutputTokens']);_0x37c573!=null&&setValueByPath(_0x44adc1,['maxOutputTokens'],_0x37c573);const _0x441f13=getValueByPath(_0x2a101b,[_0x69f214(0x1ae)]);_0x441f13!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x1ae)],_0x441f13);const _0x17615c=getValueByPath(_0x2a101b,['responseLogprobs']);_0x17615c!=null&&setValueByPath(_0x44adc1,['responseLogprobs'],_0x17615c);const _0x33f5d7=getValueByPath(_0x2a101b,[_0x69f214(0x355)]);_0x33f5d7!=null&&setValueByPath(_0x44adc1,['logprobs'],_0x33f5d7);const _0x197b46=getValueByPath(_0x2a101b,[_0x69f214(0x64e)]);_0x197b46!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x64e)],_0x197b46);const _0x32652a=getValueByPath(_0x2a101b,[_0x69f214(0x290)]);_0x32652a!=null&&setValueByPath(_0x44adc1,['frequencyPenalty'],_0x32652a);const _0x4fb23d=getValueByPath(_0x2a101b,[_0x69f214(0x39a)]);_0x4fb23d!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x39a)],_0x4fb23d);const _0x2bd868=getValueByPath(_0x2a101b,['responseMimeType']);_0x2bd868!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x341)],_0x2bd868);const _0x32c2cc=getValueByPath(_0x2a101b,[_0x69f214(0x53e)]);_0x32c2cc!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x53e)],tSchema(_0x32c2cc));const _0x508f19=getValueByPath(_0x2a101b,[_0x69f214(0x62d)]);_0x508f19!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x62d)],_0x508f19);if(getValueByPath(_0x2a101b,[_0x69f214(0x3d9)])!==undefined)throw new Error(_0x69f214(0x31d));if(getValueByPath(_0x2a101b,[_0x69f214(0x21a)])!==undefined)throw new Error(_0x69f214(0x632));const _0x53f6f9=getValueByPath(_0x2a101b,[_0x69f214(0x430)]);if(_0x328ef6!==undefined&&_0x53f6f9!=null){let _0x232edf=_0x53f6f9;Array[_0x69f214(0x32b)](_0x232edf)&&(_0x232edf=_0x232edf[_0x69f214(0x6c4)](_0x544622=>{return safetySettingToMldev$1(_0x544622);})),setValueByPath(_0x328ef6,[_0x69f214(0x430)],_0x232edf);}const _0xc6e064=getValueByPath(_0x2a101b,['tools']);if(_0x328ef6!==undefined&&_0xc6e064!=null){let _0x59d48b=tTools(_0xc6e064);Array['isArray'](_0x59d48b)&&(_0x59d48b=_0x59d48b[_0x69f214(0x6c4)](_0x17ece5=>{return toolToMldev$4(tTool(_0x17ece5));})),setValueByPath(_0x328ef6,[_0x69f214(0x648)],_0x59d48b);}const _0x4a1826=getValueByPath(_0x2a101b,[_0x69f214(0x45e)]);_0x328ef6!==undefined&&_0x4a1826!=null&&setValueByPath(_0x328ef6,[_0x69f214(0x45e)],toolConfigToMldev$2(_0x4a1826));if(getValueByPath(_0x2a101b,[_0x69f214(0x3ec)])!==undefined)throw new Error(_0x69f214(0x2df));const _0x525d68=getValueByPath(_0x2a101b,[_0x69f214(0x1ad)]);_0x328ef6!==undefined&&_0x525d68!=null&&setValueByPath(_0x328ef6,[_0x69f214(0x1ad)],tCachedContentName(_0x2a5b92,_0x525d68));const _0x3c37fc=getValueByPath(_0x2a101b,[_0x69f214(0x597)]);_0x3c37fc!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x597)],_0x3c37fc);const _0x30bff2=getValueByPath(_0x2a101b,[_0x69f214(0x342)]);_0x30bff2!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x342)],_0x30bff2);const _0x35bb3e=getValueByPath(_0x2a101b,[_0x69f214(0x2dc)]);_0x35bb3e!=null&&setValueByPath(_0x44adc1,['speechConfig'],tSpeechConfig(_0x35bb3e));if(getValueByPath(_0x2a101b,[_0x69f214(0x33f)])!==undefined)throw new Error(_0x69f214(0x517));const _0x74e7a7=getValueByPath(_0x2a101b,[_0x69f214(0x3c6)]);_0x74e7a7!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x3c6)],_0x74e7a7);const _0x389952=getValueByPath(_0x2a101b,['imageConfig']);_0x389952!=null&&setValueByPath(_0x44adc1,[_0x69f214(0x4d9)],imageConfigToMldev$1(_0x389952));const _0x2d4630=getValueByPath(_0x2a101b,[_0x69f214(0x5ce)]);_0x2d4630!=null&&setValueByPath(_0x44adc1,['enableEnhancedCivicAnswers'],_0x2d4630);if(getValueByPath(_0x2a101b,['modelArmorConfig'])!==undefined)throw new Error(_0x69f214(0x1d0));return _0x44adc1;}function generateContentResponseFromMldev$1(_0x178e37){const _0x4c13ac=a3_0x402819,_0x206035={},_0x1faa23=getValueByPath(_0x178e37,[_0x4c13ac(0x3a7)]);_0x1faa23!=null&&setValueByPath(_0x206035,['sdkHttpResponse'],_0x1faa23);const _0x19fe04=getValueByPath(_0x178e37,[_0x4c13ac(0x6d0)]);if(_0x19fe04!=null){let _0x31a093=_0x19fe04;Array[_0x4c13ac(0x32b)](_0x31a093)&&(_0x31a093=_0x31a093[_0x4c13ac(0x6c4)](_0x1c44ba=>{return candidateFromMldev$1(_0x1c44ba);})),setValueByPath(_0x206035,[_0x4c13ac(0x6d0)],_0x31a093);}const _0x40d304=getValueByPath(_0x178e37,['modelVersion']);_0x40d304!=null&&setValueByPath(_0x206035,[_0x4c13ac(0x4f7)],_0x40d304);const _0x43fe94=getValueByPath(_0x178e37,[_0x4c13ac(0x2f6)]);_0x43fe94!=null&&setValueByPath(_0x206035,[_0x4c13ac(0x2f6)],_0x43fe94);const _0x37fec5=getValueByPath(_0x178e37,[_0x4c13ac(0x448)]);_0x37fec5!=null&&setValueByPath(_0x206035,[_0x4c13ac(0x448)],_0x37fec5);const _0x5826e2=getValueByPath(_0x178e37,['usageMetadata']);return _0x5826e2!=null&&setValueByPath(_0x206035,[_0x4c13ac(0x2d4)],_0x5826e2),_0x206035;}function getBatchJobParametersToMldev(_0x113dc2,_0x555b88){const _0x54d919=a3_0x402819,_0x755bd4={},_0x4f1a78=getValueByPath(_0x555b88,[_0x54d919(0x3a4)]);return _0x4f1a78!=null&&setValueByPath(_0x755bd4,[_0x54d919(0x1aa),'name'],tBatchJobName(_0x113dc2,_0x4f1a78)),_0x755bd4;}function getBatchJobParametersToVertex(_0x14ea6c,_0x3692a9){const _0x4fda20=a3_0x402819,_0x241920={},_0xa5f47b=getValueByPath(_0x3692a9,[_0x4fda20(0x3a4)]);return _0xa5f47b!=null&&setValueByPath(_0x241920,[_0x4fda20(0x1aa),_0x4fda20(0x3a4)],tBatchJobName(_0x14ea6c,_0xa5f47b)),_0x241920;}function googleMapsToMldev$4(_0x2da9f5){const _0x376f59=a3_0x402819,_0x77b8a3={};if(getValueByPath(_0x2da9f5,[_0x376f59(0x305)])!==undefined)throw new Error(_0x376f59(0x51e));const _0x13e4cf=getValueByPath(_0x2da9f5,['enableWidget']);return _0x13e4cf!=null&&setValueByPath(_0x77b8a3,['enableWidget'],_0x13e4cf),_0x77b8a3;}function googleSearchToMldev$4(_0x314191){const _0xcedb52=a3_0x402819,_0x591e19={};if(getValueByPath(_0x314191,[_0xcedb52(0x22c)])!==undefined)throw new Error(_0xcedb52(0x28d));if(getValueByPath(_0x314191,['blockingConfidence'])!==undefined)throw new Error(_0xcedb52(0x50d));const _0x4a54da=getValueByPath(_0x314191,[_0xcedb52(0x1b3)]);return _0x4a54da!=null&&setValueByPath(_0x591e19,[_0xcedb52(0x1b3)],_0x4a54da),_0x591e19;}function imageConfigToMldev$1(_0x58fcad){const _0x1f95cb=a3_0x402819,_0x17db1d={},_0x4ca3ed=getValueByPath(_0x58fcad,[_0x1f95cb(0x6f5)]);_0x4ca3ed!=null&&setValueByPath(_0x17db1d,[_0x1f95cb(0x6f5)],_0x4ca3ed);const _0x4e9935=getValueByPath(_0x58fcad,[_0x1f95cb(0x473)]);_0x4e9935!=null&&setValueByPath(_0x17db1d,[_0x1f95cb(0x473)],_0x4e9935);if(getValueByPath(_0x58fcad,[_0x1f95cb(0x43e)])!==undefined)throw new Error(_0x1f95cb(0x2e9));if(getValueByPath(_0x58fcad,[_0x1f95cb(0x552)])!==undefined)throw new Error(_0x1f95cb(0x437));if(getValueByPath(_0x58fcad,[_0x1f95cb(0x67d)])!==undefined)throw new Error(_0x1f95cb(0x475));return _0x17db1d;}function inlinedRequestToMldev(_0x15fb41,_0x17247f){const _0x1e8227=a3_0x402819,_0x39c0a4={},_0x55ea36=getValueByPath(_0x17247f,[_0x1e8227(0x3f6)]);_0x55ea36!=null&&setValueByPath(_0x39c0a4,[_0x1e8227(0x239),_0x1e8227(0x3f6)],tModel(_0x15fb41,_0x55ea36));const _0x7bb03e=getValueByPath(_0x17247f,[_0x1e8227(0x695)]);if(_0x7bb03e!=null){let _0x41ea3f=tContents(_0x7bb03e);Array['isArray'](_0x41ea3f)&&(_0x41ea3f=_0x41ea3f[_0x1e8227(0x6c4)](_0x45d211=>{return contentToMldev$4(_0x45d211);})),setValueByPath(_0x39c0a4,[_0x1e8227(0x239),_0x1e8227(0x695)],_0x41ea3f);}const _0x469e37=getValueByPath(_0x17247f,[_0x1e8227(0x266)]);_0x469e37!=null&&setValueByPath(_0x39c0a4,[_0x1e8227(0x266)],_0x469e37);const _0x2ea5fc=getValueByPath(_0x17247f,[_0x1e8227(0x43b)]);return _0x2ea5fc!=null&&setValueByPath(_0x39c0a4,[_0x1e8227(0x239),_0x1e8227(0x425)],generateContentConfigToMldev$1(_0x15fb41,_0x2ea5fc,getValueByPath(_0x39c0a4,[_0x1e8227(0x239)],{}))),_0x39c0a4;}function inlinedResponseFromMldev(_0x2567e1){const _0x44ed0f=a3_0x402819,_0x48644c={},_0x3c6add=getValueByPath(_0x2567e1,[_0x44ed0f(0x454)]);_0x3c6add!=null&&setValueByPath(_0x48644c,[_0x44ed0f(0x454)],generateContentResponseFromMldev$1(_0x3c6add));const _0x4c6f3d=getValueByPath(_0x2567e1,[_0x44ed0f(0x266)]);_0x4c6f3d!=null&&setValueByPath(_0x48644c,['metadata'],_0x4c6f3d);const _0x26f35a=getValueByPath(_0x2567e1,['error']);return _0x26f35a!=null&&setValueByPath(_0x48644c,[_0x44ed0f(0x251)],_0x26f35a),_0x48644c;}function listBatchJobsConfigToMldev(_0x18af63,_0x2fc93d){const _0x529777=a3_0x402819,_0x2f4447={},_0x42641f=getValueByPath(_0x18af63,['pageSize']);_0x2fc93d!==undefined&&_0x42641f!=null&&setValueByPath(_0x2fc93d,[_0x529777(0x5fa),'pageSize'],_0x42641f);const _0x309ee2=getValueByPath(_0x18af63,[_0x529777(0x1a4)]);_0x2fc93d!==undefined&&_0x309ee2!=null&&setValueByPath(_0x2fc93d,[_0x529777(0x5fa),_0x529777(0x1a4)],_0x309ee2);if(getValueByPath(_0x18af63,[_0x529777(0x67f)])!==undefined)throw new Error('filter\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x2f4447;}function listBatchJobsConfigToVertex(_0x5b7532,_0x12378e){const _0x27f66f=a3_0x402819,_0x265ca5={},_0x12a3f6=getValueByPath(_0x5b7532,['pageSize']);_0x12378e!==undefined&&_0x12a3f6!=null&&setValueByPath(_0x12378e,['_query',_0x27f66f(0x1f8)],_0x12a3f6);const _0x472dbf=getValueByPath(_0x5b7532,['pageToken']);_0x12378e!==undefined&&_0x472dbf!=null&&setValueByPath(_0x12378e,[_0x27f66f(0x5fa),_0x27f66f(0x1a4)],_0x472dbf);const _0x591f92=getValueByPath(_0x5b7532,[_0x27f66f(0x67f)]);return _0x12378e!==undefined&&_0x591f92!=null&&setValueByPath(_0x12378e,[_0x27f66f(0x5fa),_0x27f66f(0x67f)],_0x591f92),_0x265ca5;}function listBatchJobsParametersToMldev(_0x6398b3){const _0x559054=a3_0x402819,_0x3c96a2={},_0x205c83=getValueByPath(_0x6398b3,[_0x559054(0x43b)]);return _0x205c83!=null&&listBatchJobsConfigToMldev(_0x205c83,_0x3c96a2),_0x3c96a2;}function listBatchJobsParametersToVertex(_0xeace30){const _0x2864f2=a3_0x402819,_0x29cf09={},_0x302873=getValueByPath(_0xeace30,[_0x2864f2(0x43b)]);return _0x302873!=null&&listBatchJobsConfigToVertex(_0x302873,_0x29cf09),_0x29cf09;}function listBatchJobsResponseFromMldev(_0xc9e4c4){const _0x2f1c75=a3_0x402819,_0x1faf35={},_0x267051=getValueByPath(_0xc9e4c4,[_0x2f1c75(0x3a7)]);_0x267051!=null&&setValueByPath(_0x1faf35,['sdkHttpResponse'],_0x267051);const _0x5933bf=getValueByPath(_0xc9e4c4,[_0x2f1c75(0x68e)]);_0x5933bf!=null&&setValueByPath(_0x1faf35,['nextPageToken'],_0x5933bf);const _0x50da1b=getValueByPath(_0xc9e4c4,[_0x2f1c75(0x65b)]);if(_0x50da1b!=null){let _0x51ce5a=_0x50da1b;Array[_0x2f1c75(0x32b)](_0x51ce5a)&&(_0x51ce5a=_0x51ce5a['map'](_0x1c9cf3=>{return batchJobFromMldev(_0x1c9cf3);})),setValueByPath(_0x1faf35,['batchJobs'],_0x51ce5a);}return _0x1faf35;}function listBatchJobsResponseFromVertex(_0x592c0c){const _0x4d316f=a3_0x402819,_0x1f5a1e={},_0x80ada0=getValueByPath(_0x592c0c,[_0x4d316f(0x3a7)]);_0x80ada0!=null&&setValueByPath(_0x1f5a1e,[_0x4d316f(0x3a7)],_0x80ada0);const _0x2cdd1d=getValueByPath(_0x592c0c,[_0x4d316f(0x68e)]);_0x2cdd1d!=null&&setValueByPath(_0x1f5a1e,[_0x4d316f(0x68e)],_0x2cdd1d);const _0x3000e4=getValueByPath(_0x592c0c,[_0x4d316f(0x291)]);if(_0x3000e4!=null){let _0x12241d=_0x3000e4;Array[_0x4d316f(0x32b)](_0x12241d)&&(_0x12241d=_0x12241d[_0x4d316f(0x6c4)](_0x5bb624=>{return batchJobFromVertex(_0x5bb624);})),setValueByPath(_0x1f5a1e,['batchJobs'],_0x12241d);}return _0x1f5a1e;}function partToMldev$4(_0xc85ac){const _0x3b212e=a3_0x402819,_0x3e4708={},_0x3733cb=getValueByPath(_0xc85ac,[_0x3b212e(0x342)]);_0x3733cb!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x342)],_0x3733cb);const _0x38547e=getValueByPath(_0xc85ac,[_0x3b212e(0x4a6)]);_0x38547e!=null&&setValueByPath(_0x3e4708,['codeExecutionResult'],_0x38547e);const _0x58d641=getValueByPath(_0xc85ac,[_0x3b212e(0x633)]);_0x58d641!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x633)],_0x58d641);const _0x302cb=getValueByPath(_0xc85ac,[_0x3b212e(0x2c3)]);_0x302cb!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x2c3)],fileDataToMldev$4(_0x302cb));const _0x4463a9=getValueByPath(_0xc85ac,[_0x3b212e(0x45f)]);_0x4463a9!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x45f)],functionCallToMldev$4(_0x4463a9));const _0x42981f=getValueByPath(_0xc85ac,[_0x3b212e(0x483)]);_0x42981f!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x483)],_0x42981f);const _0x2583aa=getValueByPath(_0xc85ac,['inlineData']);_0x2583aa!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x284)],blobToMldev$4(_0x2583aa));const _0x21f48e=getValueByPath(_0xc85ac,[_0x3b212e(0x1a9)]);_0x21f48e!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x1a9)],_0x21f48e);const _0x4f9a89=getValueByPath(_0xc85ac,[_0x3b212e(0x56f)]);_0x4f9a89!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x56f)],_0x4f9a89);const _0x346da7=getValueByPath(_0xc85ac,[_0x3b212e(0x38c)]);_0x346da7!=null&&setValueByPath(_0x3e4708,['thoughtSignature'],_0x346da7);const _0x36ffbe=getValueByPath(_0xc85ac,['videoMetadata']);return _0x36ffbe!=null&&setValueByPath(_0x3e4708,[_0x3b212e(0x703)],_0x36ffbe),_0x3e4708;}function safetySettingToMldev$1(_0x30ee21){const _0x4d4e47=a3_0x402819,_0x2f3f4c={},_0x5fb2d7=getValueByPath(_0x30ee21,[_0x4d4e47(0x2bc)]);_0x5fb2d7!=null&&setValueByPath(_0x2f3f4c,[_0x4d4e47(0x2bc)],_0x5fb2d7);if(getValueByPath(_0x30ee21,[_0x4d4e47(0x510)])!==undefined)throw new Error(_0x4d4e47(0x281));const _0x5e0d64=getValueByPath(_0x30ee21,[_0x4d4e47(0x5fc)]);return _0x5e0d64!=null&&setValueByPath(_0x2f3f4c,[_0x4d4e47(0x5fc)],_0x5e0d64),_0x2f3f4c;}function toolConfigToMldev$2(_0x49860b){const _0x5cb6c6=a3_0x402819,_0x34aa36={},_0x3074c9=getValueByPath(_0x49860b,[_0x5cb6c6(0x636)]);_0x3074c9!=null&&setValueByPath(_0x34aa36,['retrievalConfig'],_0x3074c9);const _0x442f89=getValueByPath(_0x49860b,[_0x5cb6c6(0x2f0)]);return _0x442f89!=null&&setValueByPath(_0x34aa36,['functionCallingConfig'],functionCallingConfigToMldev$2(_0x442f89)),_0x34aa36;}function toolToMldev$4(_0x1462e0){const _0x2a2fd0=a3_0x402819,_0xa27d21={};if(getValueByPath(_0x1462e0,[_0x2a2fd0(0x472)])!==undefined)throw new Error(_0x2a2fd0(0x4ab));const _0x39ba29=getValueByPath(_0x1462e0,[_0x2a2fd0(0x5bf)]);_0x39ba29!=null&&setValueByPath(_0xa27d21,[_0x2a2fd0(0x5bf)],_0x39ba29);const _0x167da6=getValueByPath(_0x1462e0,['fileSearch']);_0x167da6!=null&&setValueByPath(_0xa27d21,['fileSearch'],_0x167da6);const _0x3da7ca=getValueByPath(_0x1462e0,[_0x2a2fd0(0x5e2)]);_0x3da7ca!=null&&setValueByPath(_0xa27d21,[_0x2a2fd0(0x5e2)],_0x3da7ca);if(getValueByPath(_0x1462e0,[_0x2a2fd0(0x5af)])!==undefined)throw new Error(_0x2a2fd0(0x3de));const _0x47f242=getValueByPath(_0x1462e0,['functionDeclarations']);if(_0x47f242!=null){let _0x393945=_0x47f242;Array['isArray'](_0x393945)&&(_0x393945=_0x393945[_0x2a2fd0(0x6c4)](_0x5c0a61=>{return _0x5c0a61;})),setValueByPath(_0xa27d21,['functionDeclarations'],_0x393945);}const _0xc3286c=getValueByPath(_0x1462e0,[_0x2a2fd0(0x62b)]);_0xc3286c!=null&&setValueByPath(_0xa27d21,[_0x2a2fd0(0x62b)],googleMapsToMldev$4(_0xc3286c));const _0x59f604=getValueByPath(_0x1462e0,[_0x2a2fd0(0x5ed)]);_0x59f604!=null&&setValueByPath(_0xa27d21,[_0x2a2fd0(0x5ed)],googleSearchToMldev$4(_0x59f604));const _0x5a4850=getValueByPath(_0x1462e0,[_0x2a2fd0(0x3f1)]);_0x5a4850!=null&&setValueByPath(_0xa27d21,[_0x2a2fd0(0x3f1)],_0x5a4850);const _0x5ad6c8=getValueByPath(_0x1462e0,[_0x2a2fd0(0x55e)]);return _0x5ad6c8!=null&&setValueByPath(_0xa27d21,[_0x2a2fd0(0x55e)],_0x5ad6c8),_0xa27d21;}/**
37
+ * @license
38
+ * Copyright 2025 Google LLC
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ var PagedItem;(function(_0x11ad46){const _0x1d737f=a3_0x402819;_0x11ad46[_0x1d737f(0x699)]=_0x1d737f(0x33e),_0x11ad46['PAGED_ITEM_MODELS']=_0x1d737f(0x55a),_0x11ad46[_0x1d737f(0x647)]=_0x1d737f(0x64b),_0x11ad46[_0x1d737f(0x47d)]=_0x1d737f(0x232),_0x11ad46[_0x1d737f(0x5f7)]=_0x1d737f(0x1ba),_0x11ad46[_0x1d737f(0x581)]=_0x1d737f(0x642),_0x11ad46[_0x1d737f(0x694)]=_0x1d737f(0x1da);}(PagedItem||(PagedItem={})));class Pager{constructor(_0xfbab19,_0x46f233,_0x22389e,_0x5e1332){const _0x554ac5=a3_0x402819;this[_0x554ac5(0x700)]=[],this[_0x554ac5(0x698)]={},this[_0x554ac5(0x6d1)]=_0x46f233,this[_0x554ac5(0x6b3)](_0xfbab19,_0x22389e,_0x5e1332);}['init'](_0x50e751,_0x460d7c,_0x52ccf1){const _0x31c2c9=a3_0x402819;var _0x4997f7,_0x52a228;this[_0x31c2c9(0x575)]=_0x50e751,this[_0x31c2c9(0x700)]=_0x460d7c[this[_0x31c2c9(0x575)]]||[],this[_0x31c2c9(0x1b7)]=_0x460d7c===null||_0x460d7c===void 0x0?void 0x0:_0x460d7c['sdkHttpResponse'],this['idxInternal']=0x0;let _0x34cb62={'config':{}};if(!_0x52ccf1||Object[_0x31c2c9(0x2ce)](_0x52ccf1)['length']===0x0)_0x34cb62={'config':{}};else typeof _0x52ccf1==='object'?_0x34cb62=Object['assign']({},_0x52ccf1):_0x34cb62=_0x52ccf1;_0x34cb62['config']&&(_0x34cb62[_0x31c2c9(0x43b)][_0x31c2c9(0x1a4)]=_0x460d7c[_0x31c2c9(0x68e)]),this['paramsInternal']=_0x34cb62,this[_0x31c2c9(0x635)]=(_0x52a228=(_0x4997f7=_0x34cb62['config'])===null||_0x4997f7===void 0x0?void 0x0:_0x4997f7['pageSize'])!==null&&_0x52a228!==void 0x0?_0x52a228:this[_0x31c2c9(0x700)][_0x31c2c9(0x3e8)];}[a3_0x402819(0x63b)](_0x1e5b84){const _0x5af546=a3_0x402819;this[_0x5af546(0x6b3)](this[_0x5af546(0x575)],_0x1e5b84,this[_0x5af546(0x698)]);}get[a3_0x402819(0x1db)](){const _0x3b5205=a3_0x402819;return this[_0x3b5205(0x700)];}get[a3_0x402819(0x3a4)](){const _0x1a4a24=a3_0x402819;return this[_0x1a4a24(0x575)];}get[a3_0x402819(0x1f8)](){return this['pageInternalSize'];}get[a3_0x402819(0x3a7)](){return this['sdkHttpResponseInternal'];}get[a3_0x402819(0x4cd)](){const _0x368400=a3_0x402819;return this[_0x368400(0x698)];}get[a3_0x402819(0x3a0)](){const _0x293919=a3_0x402819;return this[_0x293919(0x700)]['length'];}[a3_0x402819(0x6e1)](_0x18ac61){const _0x3a88ad=a3_0x402819;return this[_0x3a88ad(0x700)][_0x18ac61];}[Symbol[a3_0x402819(0x3bd)]](){return{'next':async()=>{const _0x2b5553=a3_0x4a6d;if(this['idxInternal']>=this[_0x2b5553(0x3a0)]){if(this[_0x2b5553(0x2a2)]())await this[_0x2b5553(0x467)]();else return{'value':undefined,'done':!![]};}const _0x35c1e6=this['getItem'](this['idxInternal']);return this[_0x2b5553(0x2c2)]+=0x1,{'value':_0x35c1e6,'done':![]};},'return':async()=>{return{'value':undefined,'done':!![]};}};}async[a3_0x402819(0x467)](){const _0x309d55=a3_0x402819;if(!this[_0x309d55(0x2a2)]())throw new Error(_0x309d55(0x356));const _0x45889b=await this[_0x309d55(0x6d1)](this['params']);return this[_0x309d55(0x63b)](_0x45889b),this[_0x309d55(0x1db)];}[a3_0x402819(0x2a2)](){const _0x19183c=a3_0x402819;var _0x49512a;if(((_0x49512a=this[_0x19183c(0x4cd)][_0x19183c(0x43b)])===null||_0x49512a===void 0x0?void 0x0:_0x49512a[_0x19183c(0x1a4)])!==undefined)return!![];return![];}}/**
42
+ * @license
43
+ * Copyright 2025 Google LLC
44
+ * SPDX-License-Identifier: Apache-2.0
45
+ */
46
+ class Batches extends BaseModule{constructor(_0x4ef044){const _0x31e6d6=a3_0x402819;super(),this['apiClient']=_0x4ef044,this['list']=async(_0x1f6dbd={})=>{const _0x5ea48c=a3_0x4a6d;return new Pager(PagedItem[_0x5ea48c(0x699)],_0x150e07=>this['listInternal'](_0x150e07),await this[_0x5ea48c(0x388)](_0x1f6dbd),_0x1f6dbd);},this[_0x31e6d6(0x518)]=async _0x1b8ccf=>{const _0x435351=_0x31e6d6;return this['apiClient'][_0x435351(0x268)]()&&(_0x1b8ccf[_0x435351(0x43b)]=this['formatDestination'](_0x1b8ccf[_0x435351(0x3a8)],_0x1b8ccf[_0x435351(0x43b)])),this[_0x435351(0x523)](_0x1b8ccf);},this[_0x31e6d6(0x1ab)]=async _0x5b2d57=>{const _0x519e0c=_0x31e6d6;console[_0x519e0c(0x1bd)](_0x519e0c(0x57d));if(this[_0x519e0c(0x235)][_0x519e0c(0x268)]())throw new Error(_0x519e0c(0x2d5));return this[_0x519e0c(0x676)](_0x5b2d57);};}[a3_0x402819(0x6a7)](_0x395633){const _0x2b4a5d=a3_0x402819,_0x399119=createBatchJobParametersToMldev(this[_0x2b4a5d(0x235)],_0x395633),_0xbaa682=_0x399119['_url'],_0x56e4f9=formatMap('{model}:batchGenerateContent',_0xbaa682),_0x5dff31=_0x399119['batch'],_0x311dbb=_0x5dff31[_0x2b4a5d(0x725)],_0x4bc349=_0x311dbb[_0x2b4a5d(0x5cf)],_0x33957f=_0x4bc349[_0x2b4a5d(0x5cf)],_0x1e6865=[];for(const _0x7db5b9 of _0x33957f){const _0x28121e=Object['assign']({},_0x7db5b9);if(_0x28121e[_0x2b4a5d(0x415)]){const _0x47a7c1=_0x28121e['systemInstruction'];delete _0x28121e[_0x2b4a5d(0x415)];const _0x405a6d=_0x28121e[_0x2b4a5d(0x239)];_0x405a6d[_0x2b4a5d(0x415)]=_0x47a7c1,_0x28121e[_0x2b4a5d(0x239)]=_0x405a6d;}_0x1e6865[_0x2b4a5d(0x52c)](_0x28121e);}return _0x4bc349['requests']=_0x1e6865,delete _0x399119[_0x2b4a5d(0x43b)],delete _0x399119['_url'],delete _0x399119['_query'],{'path':_0x56e4f9,'body':_0x399119};}['getGcsUri'](_0x150a66){const _0x21aadc=a3_0x402819;if(typeof _0x150a66===_0x21aadc(0x71b))return _0x150a66[_0x21aadc(0x231)]('gs://')?_0x150a66:undefined;if(!Array[_0x21aadc(0x32b)](_0x150a66)&&_0x150a66[_0x21aadc(0x3e3)]&&_0x150a66[_0x21aadc(0x3e3)][_0x21aadc(0x3e8)]>0x0)return _0x150a66[_0x21aadc(0x3e3)][0x0];return undefined;}['getBigqueryUri'](_0x12a761){const _0x322b71=a3_0x402819;if(typeof _0x12a761===_0x322b71(0x71b))return _0x12a761[_0x322b71(0x231)](_0x322b71(0x509))?_0x12a761:undefined;if(!Array['isArray'](_0x12a761))return _0x12a761['bigqueryUri'];return undefined;}[a3_0x402819(0x3c9)](_0x5cc372,_0x256504){const _0x4a578e=a3_0x402819,_0x221314=_0x256504?Object[_0x4a578e(0x48a)]({},_0x256504):{},_0x532094=Date[_0x4a578e(0x327)]()['toString']();!_0x221314['displayName']&&(_0x221314[_0x4a578e(0x199)]=_0x4a578e(0x296)+_0x532094);if(_0x221314[_0x4a578e(0x292)]===undefined){const _0x18a5bc=this[_0x4a578e(0x2c5)](_0x5cc372),_0x486faf=this['getBigqueryUri'](_0x5cc372);if(_0x18a5bc)_0x18a5bc[_0x4a578e(0x4e4)](_0x4a578e(0x410))?_0x221314[_0x4a578e(0x292)]=_0x18a5bc['slice'](0x0,-0x6)+_0x4a578e(0x6aa):_0x221314[_0x4a578e(0x292)]=_0x18a5bc+_0x4a578e(0x5f1)+_0x532094;else{if(_0x486faf)_0x221314[_0x4a578e(0x292)]=_0x486faf+_0x4a578e(0x5f1)+_0x532094;else throw new Error(_0x4a578e(0x3d7));}}return _0x221314;}async[a3_0x402819(0x523)](_0x1ee018){const _0x3bba11=a3_0x402819;var _0xa583e2,_0x2c44ac,_0x140044,_0x473c67;let _0x207181,_0x2bb925='',_0x5ecef1={};if(this['apiClient'][_0x3bba11(0x268)]()){const _0x5d0e3c=createBatchJobParametersToVertex(this[_0x3bba11(0x235)],_0x1ee018);return _0x2bb925=formatMap('batchPredictionJobs',_0x5d0e3c[_0x3bba11(0x1aa)]),_0x5ecef1=_0x5d0e3c['_query'],delete _0x5d0e3c['_url'],delete _0x5d0e3c['_query'],_0x207181=this[_0x3bba11(0x235)][_0x3bba11(0x239)]({'path':_0x2bb925,'queryParams':_0x5ecef1,'body':JSON[_0x3bba11(0x65c)](_0x5d0e3c),'httpMethod':_0x3bba11(0x6d7),'httpOptions':(_0xa583e2=_0x1ee018[_0x3bba11(0x43b)])===null||_0xa583e2===void 0x0?void 0x0:_0xa583e2['httpOptions'],'abortSignal':(_0x2c44ac=_0x1ee018[_0x3bba11(0x43b)])===null||_0x2c44ac===void 0x0?void 0x0:_0x2c44ac[_0x3bba11(0x709)]})[_0x3bba11(0x1f0)](_0x4063d3=>{const _0x25d15b=_0x3bba11;return _0x4063d3[_0x25d15b(0x4cf)]();}),_0x207181['then'](_0x4ae775=>{const _0x575c12=batchJobFromVertex(_0x4ae775);return _0x575c12;});}else{const _0x2a0985=createBatchJobParametersToMldev(this[_0x3bba11(0x235)],_0x1ee018);return _0x2bb925=formatMap(_0x3bba11(0x540),_0x2a0985[_0x3bba11(0x1aa)]),_0x5ecef1=_0x2a0985[_0x3bba11(0x5fa)],delete _0x2a0985[_0x3bba11(0x1aa)],delete _0x2a0985['_query'],_0x207181=this['apiClient'][_0x3bba11(0x239)]({'path':_0x2bb925,'queryParams':_0x5ecef1,'body':JSON[_0x3bba11(0x65c)](_0x2a0985),'httpMethod':'POST','httpOptions':(_0x140044=_0x1ee018['config'])===null||_0x140044===void 0x0?void 0x0:_0x140044[_0x3bba11(0x5c7)],'abortSignal':(_0x473c67=_0x1ee018['config'])===null||_0x473c67===void 0x0?void 0x0:_0x473c67['abortSignal']})['then'](_0x3266d9=>{const _0xb36491=_0x3bba11;return _0x3266d9[_0xb36491(0x4cf)]();}),_0x207181[_0x3bba11(0x1f0)](_0x5f56cc=>{const _0x3cfe37=batchJobFromMldev(_0x5f56cc);return _0x3cfe37;});}}async[a3_0x402819(0x676)](_0x350856){const _0x11fd69=a3_0x402819;var _0x3833b5,_0x2f5b66;let _0x3feccf,_0xdd3b78='',_0x4ead79={};if(this[_0x11fd69(0x235)][_0x11fd69(0x268)]())throw new Error(_0x11fd69(0x206));else{const _0x34dcfa=createEmbeddingsBatchJobParametersToMldev(this[_0x11fd69(0x235)],_0x350856);return _0xdd3b78=formatMap(_0x11fd69(0x400),_0x34dcfa['_url']),_0x4ead79=_0x34dcfa[_0x11fd69(0x5fa)],delete _0x34dcfa[_0x11fd69(0x1aa)],delete _0x34dcfa[_0x11fd69(0x5fa)],_0x3feccf=this['apiClient'][_0x11fd69(0x239)]({'path':_0xdd3b78,'queryParams':_0x4ead79,'body':JSON[_0x11fd69(0x65c)](_0x34dcfa),'httpMethod':_0x11fd69(0x6d7),'httpOptions':(_0x3833b5=_0x350856['config'])===null||_0x3833b5===void 0x0?void 0x0:_0x3833b5[_0x11fd69(0x5c7)],'abortSignal':(_0x2f5b66=_0x350856['config'])===null||_0x2f5b66===void 0x0?void 0x0:_0x2f5b66[_0x11fd69(0x709)]})[_0x11fd69(0x1f0)](_0x3c9d1c=>{const _0x34bded=_0x11fd69;return _0x3c9d1c[_0x34bded(0x4cf)]();}),_0x3feccf['then'](_0x3840b0=>{const _0x14efc5=batchJobFromMldev(_0x3840b0);return _0x14efc5;});}}async[a3_0x402819(0x42b)](_0x3d5c71){const _0x267df8=a3_0x402819;var _0x439dbd,_0x544a1d,_0x4c66d2,_0x1c5fec;let _0xb9828,_0x38b248='',_0x4b3ee9={};if(this['apiClient'][_0x267df8(0x268)]()){const _0x153548=getBatchJobParametersToVertex(this[_0x267df8(0x235)],_0x3d5c71);return _0x38b248=formatMap('batchPredictionJobs/{name}',_0x153548[_0x267df8(0x1aa)]),_0x4b3ee9=_0x153548['_query'],delete _0x153548['_url'],delete _0x153548[_0x267df8(0x5fa)],_0xb9828=this[_0x267df8(0x235)][_0x267df8(0x239)]({'path':_0x38b248,'queryParams':_0x4b3ee9,'body':JSON[_0x267df8(0x65c)](_0x153548),'httpMethod':_0x267df8(0x500),'httpOptions':(_0x439dbd=_0x3d5c71[_0x267df8(0x43b)])===null||_0x439dbd===void 0x0?void 0x0:_0x439dbd[_0x267df8(0x5c7)],'abortSignal':(_0x544a1d=_0x3d5c71['config'])===null||_0x544a1d===void 0x0?void 0x0:_0x544a1d[_0x267df8(0x709)]})[_0x267df8(0x1f0)](_0x100a46=>{return _0x100a46['json']();}),_0xb9828[_0x267df8(0x1f0)](_0x153319=>{const _0x2b4787=batchJobFromVertex(_0x153319);return _0x2b4787;});}else{const _0x33c276=getBatchJobParametersToMldev(this['apiClient'],_0x3d5c71);return _0x38b248=formatMap(_0x267df8(0x37a),_0x33c276[_0x267df8(0x1aa)]),_0x4b3ee9=_0x33c276[_0x267df8(0x5fa)],delete _0x33c276[_0x267df8(0x1aa)],delete _0x33c276[_0x267df8(0x5fa)],_0xb9828=this['apiClient']['request']({'path':_0x38b248,'queryParams':_0x4b3ee9,'body':JSON['stringify'](_0x33c276),'httpMethod':'GET','httpOptions':(_0x4c66d2=_0x3d5c71[_0x267df8(0x43b)])===null||_0x4c66d2===void 0x0?void 0x0:_0x4c66d2[_0x267df8(0x5c7)],'abortSignal':(_0x1c5fec=_0x3d5c71[_0x267df8(0x43b)])===null||_0x1c5fec===void 0x0?void 0x0:_0x1c5fec['abortSignal']})[_0x267df8(0x1f0)](_0x4a5c49=>{return _0x4a5c49['json']();}),_0xb9828[_0x267df8(0x1f0)](_0x2f8397=>{const _0x3e5fea=batchJobFromMldev(_0x2f8397);return _0x3e5fea;});}}async['cancel'](_0x1748e2){const _0x2cb4c9=a3_0x402819;var _0x590c60,_0x1029ec,_0x4b71d7,_0x2c6c7e;let _0x37de00='',_0x17fa8a={};if(this[_0x2cb4c9(0x235)]['isVertexAI']()){const _0x2a2533=cancelBatchJobParametersToVertex(this[_0x2cb4c9(0x235)],_0x1748e2);_0x37de00=formatMap('batchPredictionJobs/{name}:cancel',_0x2a2533['_url']),_0x17fa8a=_0x2a2533[_0x2cb4c9(0x5fa)],delete _0x2a2533[_0x2cb4c9(0x1aa)],delete _0x2a2533[_0x2cb4c9(0x5fa)],await this[_0x2cb4c9(0x235)][_0x2cb4c9(0x239)]({'path':_0x37de00,'queryParams':_0x17fa8a,'body':JSON['stringify'](_0x2a2533),'httpMethod':_0x2cb4c9(0x6d7),'httpOptions':(_0x590c60=_0x1748e2[_0x2cb4c9(0x43b)])===null||_0x590c60===void 0x0?void 0x0:_0x590c60['httpOptions'],'abortSignal':(_0x1029ec=_0x1748e2[_0x2cb4c9(0x43b)])===null||_0x1029ec===void 0x0?void 0x0:_0x1029ec[_0x2cb4c9(0x709)]});}else{const _0x424b60=cancelBatchJobParametersToMldev(this[_0x2cb4c9(0x235)],_0x1748e2);_0x37de00=formatMap(_0x2cb4c9(0x39c),_0x424b60[_0x2cb4c9(0x1aa)]),_0x17fa8a=_0x424b60[_0x2cb4c9(0x5fa)],delete _0x424b60['_url'],delete _0x424b60[_0x2cb4c9(0x5fa)],await this[_0x2cb4c9(0x235)][_0x2cb4c9(0x239)]({'path':_0x37de00,'queryParams':_0x17fa8a,'body':JSON['stringify'](_0x424b60),'httpMethod':_0x2cb4c9(0x6d7),'httpOptions':(_0x4b71d7=_0x1748e2[_0x2cb4c9(0x43b)])===null||_0x4b71d7===void 0x0?void 0x0:_0x4b71d7['httpOptions'],'abortSignal':(_0x2c6c7e=_0x1748e2[_0x2cb4c9(0x43b)])===null||_0x2c6c7e===void 0x0?void 0x0:_0x2c6c7e[_0x2cb4c9(0x709)]});}}async['listInternal'](_0x267a87){const _0x38615c=a3_0x402819;var _0x181737,_0x2f5dd5,_0x294ce8,_0x1a2177;let _0x3080bd,_0xbfcedf='',_0x275fb1={};if(this[_0x38615c(0x235)][_0x38615c(0x268)]()){const _0x53e28e=listBatchJobsParametersToVertex(_0x267a87);return _0xbfcedf=formatMap(_0x38615c(0x291),_0x53e28e[_0x38615c(0x1aa)]),_0x275fb1=_0x53e28e[_0x38615c(0x5fa)],delete _0x53e28e[_0x38615c(0x1aa)],delete _0x53e28e[_0x38615c(0x5fa)],_0x3080bd=this[_0x38615c(0x235)][_0x38615c(0x239)]({'path':_0xbfcedf,'queryParams':_0x275fb1,'body':JSON[_0x38615c(0x65c)](_0x53e28e),'httpMethod':'GET','httpOptions':(_0x181737=_0x267a87[_0x38615c(0x43b)])===null||_0x181737===void 0x0?void 0x0:_0x181737['httpOptions'],'abortSignal':(_0x2f5dd5=_0x267a87[_0x38615c(0x43b)])===null||_0x2f5dd5===void 0x0?void 0x0:_0x2f5dd5[_0x38615c(0x709)]})[_0x38615c(0x1f0)](_0x2c63a7=>{const _0x36a809=_0x38615c;return _0x2c63a7[_0x36a809(0x4cf)]()[_0x36a809(0x1f0)](_0x42ffe0=>{const _0x3cdb61=_0x36a809,_0x465e20=_0x42ffe0;return _0x465e20[_0x3cdb61(0x3a7)]={'headers':_0x2c63a7[_0x3cdb61(0x70b)]},_0x465e20;});}),_0x3080bd['then'](_0x544af2=>{const _0x807ff2=listBatchJobsResponseFromVertex(_0x544af2),_0x33e259=new ListBatchJobsResponse();return Object['assign'](_0x33e259,_0x807ff2),_0x33e259;});}else{const _0x420358=listBatchJobsParametersToMldev(_0x267a87);return _0xbfcedf=formatMap('batches',_0x420358[_0x38615c(0x1aa)]),_0x275fb1=_0x420358[_0x38615c(0x5fa)],delete _0x420358[_0x38615c(0x1aa)],delete _0x420358['_query'],_0x3080bd=this['apiClient']['request']({'path':_0xbfcedf,'queryParams':_0x275fb1,'body':JSON[_0x38615c(0x65c)](_0x420358),'httpMethod':'GET','httpOptions':(_0x294ce8=_0x267a87[_0x38615c(0x43b)])===null||_0x294ce8===void 0x0?void 0x0:_0x294ce8['httpOptions'],'abortSignal':(_0x1a2177=_0x267a87[_0x38615c(0x43b)])===null||_0x1a2177===void 0x0?void 0x0:_0x1a2177[_0x38615c(0x709)]})[_0x38615c(0x1f0)](_0x1506d2=>{return _0x1506d2['json']()['then'](_0x3bb77c=>{const _0x5cc0a0=a3_0x4a6d,_0xc29202=_0x3bb77c;return _0xc29202[_0x5cc0a0(0x3a7)]={'headers':_0x1506d2[_0x5cc0a0(0x70b)]},_0xc29202;});}),_0x3080bd[_0x38615c(0x1f0)](_0x2fa178=>{const _0x5937bf=listBatchJobsResponseFromMldev(_0x2fa178),_0x3bee16=new ListBatchJobsResponse();return Object['assign'](_0x3bee16,_0x5937bf),_0x3bee16;});}}async[a3_0x402819(0x4a4)](_0x414246){const _0x51ce1c=a3_0x402819;var _0xa9799e,_0x4c1fb6,_0x19bd50,_0x197d49;let _0x1ac8f8,_0x41ce11='',_0x59903c={};if(this['apiClient'][_0x51ce1c(0x268)]()){const _0xc69b9b=deleteBatchJobParametersToVertex(this['apiClient'],_0x414246);return _0x41ce11=formatMap(_0x51ce1c(0x351),_0xc69b9b[_0x51ce1c(0x1aa)]),_0x59903c=_0xc69b9b[_0x51ce1c(0x5fa)],delete _0xc69b9b[_0x51ce1c(0x1aa)],delete _0xc69b9b['_query'],_0x1ac8f8=this[_0x51ce1c(0x235)][_0x51ce1c(0x239)]({'path':_0x41ce11,'queryParams':_0x59903c,'body':JSON[_0x51ce1c(0x65c)](_0xc69b9b),'httpMethod':'DELETE','httpOptions':(_0xa9799e=_0x414246['config'])===null||_0xa9799e===void 0x0?void 0x0:_0xa9799e['httpOptions'],'abortSignal':(_0x4c1fb6=_0x414246[_0x51ce1c(0x43b)])===null||_0x4c1fb6===void 0x0?void 0x0:_0x4c1fb6['abortSignal']})['then'](_0x37305a=>{const _0x1b1c61=_0x51ce1c;return _0x37305a[_0x1b1c61(0x4cf)]()['then'](_0x247ce9=>{const _0x148242=_0x1b1c61,_0xde15a3=_0x247ce9;return _0xde15a3['sdkHttpResponse']={'headers':_0x37305a[_0x148242(0x70b)]},_0xde15a3;});}),_0x1ac8f8[_0x51ce1c(0x1f0)](_0xcbfffe=>{const _0x246da3=deleteResourceJobFromVertex(_0xcbfffe);return _0x246da3;});}else{const _0x3854d2=deleteBatchJobParametersToMldev(this['apiClient'],_0x414246);return _0x41ce11=formatMap(_0x51ce1c(0x37a),_0x3854d2['_url']),_0x59903c=_0x3854d2[_0x51ce1c(0x5fa)],delete _0x3854d2[_0x51ce1c(0x1aa)],delete _0x3854d2['_query'],_0x1ac8f8=this[_0x51ce1c(0x235)]['request']({'path':_0x41ce11,'queryParams':_0x59903c,'body':JSON[_0x51ce1c(0x65c)](_0x3854d2),'httpMethod':_0x51ce1c(0x71d),'httpOptions':(_0x19bd50=_0x414246[_0x51ce1c(0x43b)])===null||_0x19bd50===void 0x0?void 0x0:_0x19bd50[_0x51ce1c(0x5c7)],'abortSignal':(_0x197d49=_0x414246[_0x51ce1c(0x43b)])===null||_0x197d49===void 0x0?void 0x0:_0x197d49[_0x51ce1c(0x709)]})[_0x51ce1c(0x1f0)](_0x13b6d4=>{const _0x58a911=_0x51ce1c;return _0x13b6d4[_0x58a911(0x4cf)]()[_0x58a911(0x1f0)](_0x539a21=>{const _0xe527a4=_0x58a911,_0x9ade48=_0x539a21;return _0x9ade48[_0xe527a4(0x3a7)]={'headers':_0x13b6d4[_0xe527a4(0x70b)]},_0x9ade48;});}),_0x1ac8f8['then'](_0x5c7e20=>{const _0x4609ab=deleteResourceJobFromMldev(_0x5c7e20);return _0x4609ab;});}}}/**
47
+ * @license
48
+ * Copyright 2025 Google LLC
49
+ * SPDX-License-Identifier: Apache-2.0
50
+ */
51
+ function blobToMldev$3(_0x21b396){const _0x3e670b=a3_0x402819,_0x2e0614={},_0x48e4c3=getValueByPath(_0x21b396,[_0x3e670b(0x5b1)]);_0x48e4c3!=null&&setValueByPath(_0x2e0614,['data'],_0x48e4c3);if(getValueByPath(_0x21b396,[_0x3e670b(0x199)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x33b30e=getValueByPath(_0x21b396,[_0x3e670b(0x542)]);return _0x33b30e!=null&&setValueByPath(_0x2e0614,['mimeType'],_0x33b30e),_0x2e0614;}function contentToMldev$3(_0x548f2b){const _0x16fb48=a3_0x402819,_0x3ee8ae={},_0x681123=getValueByPath(_0x548f2b,[_0x16fb48(0x569)]);if(_0x681123!=null){let _0x2e4403=_0x681123;Array[_0x16fb48(0x32b)](_0x2e4403)&&(_0x2e4403=_0x2e4403['map'](_0x1ea980=>{return partToMldev$3(_0x1ea980);})),setValueByPath(_0x3ee8ae,[_0x16fb48(0x569)],_0x2e4403);}const _0x286931=getValueByPath(_0x548f2b,['role']);return _0x286931!=null&&setValueByPath(_0x3ee8ae,[_0x16fb48(0x23a)],_0x286931),_0x3ee8ae;}function createCachedContentConfigToMldev(_0xdc1176,_0x20d6f0){const _0x481f4f=a3_0x402819,_0x1ae7bd={},_0x494fb0=getValueByPath(_0xdc1176,[_0x481f4f(0x6b7)]);_0x20d6f0!==undefined&&_0x494fb0!=null&&setValueByPath(_0x20d6f0,['ttl'],_0x494fb0);const _0x5be859=getValueByPath(_0xdc1176,[_0x481f4f(0x481)]);_0x20d6f0!==undefined&&_0x5be859!=null&&setValueByPath(_0x20d6f0,[_0x481f4f(0x481)],_0x5be859);const _0x4e8e01=getValueByPath(_0xdc1176,[_0x481f4f(0x199)]);_0x20d6f0!==undefined&&_0x4e8e01!=null&&setValueByPath(_0x20d6f0,[_0x481f4f(0x199)],_0x4e8e01);const _0x27f659=getValueByPath(_0xdc1176,[_0x481f4f(0x695)]);if(_0x20d6f0!==undefined&&_0x27f659!=null){let _0x2a1ca4=tContents(_0x27f659);Array[_0x481f4f(0x32b)](_0x2a1ca4)&&(_0x2a1ca4=_0x2a1ca4[_0x481f4f(0x6c4)](_0x17ff9a=>{return contentToMldev$3(_0x17ff9a);})),setValueByPath(_0x20d6f0,[_0x481f4f(0x695)],_0x2a1ca4);}const _0xd5ad31=getValueByPath(_0xdc1176,[_0x481f4f(0x415)]);_0x20d6f0!==undefined&&_0xd5ad31!=null&&setValueByPath(_0x20d6f0,['systemInstruction'],contentToMldev$3(tContent(_0xd5ad31)));const _0x4f0661=getValueByPath(_0xdc1176,[_0x481f4f(0x648)]);if(_0x20d6f0!==undefined&&_0x4f0661!=null){let _0x19b857=_0x4f0661;Array[_0x481f4f(0x32b)](_0x19b857)&&(_0x19b857=_0x19b857[_0x481f4f(0x6c4)](_0x2d4a95=>{return toolToMldev$3(_0x2d4a95);})),setValueByPath(_0x20d6f0,['tools'],_0x19b857);}const _0xc83ce4=getValueByPath(_0xdc1176,[_0x481f4f(0x45e)]);_0x20d6f0!==undefined&&_0xc83ce4!=null&&setValueByPath(_0x20d6f0,[_0x481f4f(0x45e)],toolConfigToMldev$1(_0xc83ce4));if(getValueByPath(_0xdc1176,[_0x481f4f(0x4ec)])!==undefined)throw new Error('kmsKeyName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x1ae7bd;}function createCachedContentConfigToVertex(_0x339562,_0x3b8cd5){const _0xf06d3b=a3_0x402819,_0x52056e={},_0x28835e=getValueByPath(_0x339562,[_0xf06d3b(0x6b7)]);_0x3b8cd5!==undefined&&_0x28835e!=null&&setValueByPath(_0x3b8cd5,['ttl'],_0x28835e);const _0x114232=getValueByPath(_0x339562,[_0xf06d3b(0x481)]);_0x3b8cd5!==undefined&&_0x114232!=null&&setValueByPath(_0x3b8cd5,[_0xf06d3b(0x481)],_0x114232);const _0x665705=getValueByPath(_0x339562,[_0xf06d3b(0x199)]);_0x3b8cd5!==undefined&&_0x665705!=null&&setValueByPath(_0x3b8cd5,[_0xf06d3b(0x199)],_0x665705);const _0x3a493c=getValueByPath(_0x339562,['contents']);if(_0x3b8cd5!==undefined&&_0x3a493c!=null){let _0x45d88d=tContents(_0x3a493c);Array['isArray'](_0x45d88d)&&(_0x45d88d=_0x45d88d[_0xf06d3b(0x6c4)](_0x226914=>{return _0x226914;})),setValueByPath(_0x3b8cd5,[_0xf06d3b(0x695)],_0x45d88d);}const _0x3f0935=getValueByPath(_0x339562,[_0xf06d3b(0x415)]);_0x3b8cd5!==undefined&&_0x3f0935!=null&&setValueByPath(_0x3b8cd5,[_0xf06d3b(0x415)],tContent(_0x3f0935));const _0x2f8072=getValueByPath(_0x339562,['tools']);if(_0x3b8cd5!==undefined&&_0x2f8072!=null){let _0x44af1f=_0x2f8072;Array[_0xf06d3b(0x32b)](_0x44af1f)&&(_0x44af1f=_0x44af1f[_0xf06d3b(0x6c4)](_0x364ed4=>{return toolToVertex$2(_0x364ed4);})),setValueByPath(_0x3b8cd5,[_0xf06d3b(0x648)],_0x44af1f);}const _0x2e784d=getValueByPath(_0x339562,[_0xf06d3b(0x45e)]);_0x3b8cd5!==undefined&&_0x2e784d!=null&&setValueByPath(_0x3b8cd5,[_0xf06d3b(0x45e)],_0x2e784d);const _0x10b39d=getValueByPath(_0x339562,[_0xf06d3b(0x4ec)]);return _0x3b8cd5!==undefined&&_0x10b39d!=null&&setValueByPath(_0x3b8cd5,[_0xf06d3b(0x444),'kmsKeyName'],_0x10b39d),_0x52056e;}function createCachedContentParametersToMldev(_0x36b597,_0x1b09bd){const _0x4c5a5e=a3_0x402819,_0x3af667={},_0x2e0ea7=getValueByPath(_0x1b09bd,['model']);_0x2e0ea7!=null&&setValueByPath(_0x3af667,[_0x4c5a5e(0x3f6)],tCachesModel(_0x36b597,_0x2e0ea7));const _0x509551=getValueByPath(_0x1b09bd,[_0x4c5a5e(0x43b)]);return _0x509551!=null&&createCachedContentConfigToMldev(_0x509551,_0x3af667),_0x3af667;}function createCachedContentParametersToVertex(_0x327243,_0xb94d3a){const _0x1981d1=a3_0x402819,_0xb569d1={},_0x4879c3=getValueByPath(_0xb94d3a,['model']);_0x4879c3!=null&&setValueByPath(_0xb569d1,[_0x1981d1(0x3f6)],tCachesModel(_0x327243,_0x4879c3));const _0x5d49fc=getValueByPath(_0xb94d3a,[_0x1981d1(0x43b)]);return _0x5d49fc!=null&&createCachedContentConfigToVertex(_0x5d49fc,_0xb569d1),_0xb569d1;}function deleteCachedContentParametersToMldev(_0x30d9e3,_0x55169b){const _0x73a07e=a3_0x402819,_0x1166b2={},_0x73d649=getValueByPath(_0x55169b,[_0x73a07e(0x3a4)]);return _0x73d649!=null&&setValueByPath(_0x1166b2,[_0x73a07e(0x1aa),_0x73a07e(0x3a4)],tCachedContentName(_0x30d9e3,_0x73d649)),_0x1166b2;}function deleteCachedContentParametersToVertex(_0x484805,_0x2f552c){const _0x4e29b2=a3_0x402819,_0x27c01d={},_0x59dffc=getValueByPath(_0x2f552c,['name']);return _0x59dffc!=null&&setValueByPath(_0x27c01d,['_url',_0x4e29b2(0x3a4)],tCachedContentName(_0x484805,_0x59dffc)),_0x27c01d;}function deleteCachedContentResponseFromMldev(_0x1ea97d){const _0x2c6360=a3_0x402819,_0x53f01b={},_0x10107a=getValueByPath(_0x1ea97d,[_0x2c6360(0x3a7)]);return _0x10107a!=null&&setValueByPath(_0x53f01b,[_0x2c6360(0x3a7)],_0x10107a),_0x53f01b;}function deleteCachedContentResponseFromVertex(_0x591677){const _0x55f01e=a3_0x402819,_0x3d5c66={},_0x41a2ac=getValueByPath(_0x591677,[_0x55f01e(0x3a7)]);return _0x41a2ac!=null&&setValueByPath(_0x3d5c66,[_0x55f01e(0x3a7)],_0x41a2ac),_0x3d5c66;}function fileDataToMldev$3(_0x67c899){const _0x4f900c=a3_0x402819,_0x5e3480={};if(getValueByPath(_0x67c899,[_0x4f900c(0x199)])!==undefined)throw new Error(_0x4f900c(0x5c1));const _0x517b78=getValueByPath(_0x67c899,[_0x4f900c(0x218)]);_0x517b78!=null&&setValueByPath(_0x5e3480,[_0x4f900c(0x218)],_0x517b78);const _0x5f5d43=getValueByPath(_0x67c899,[_0x4f900c(0x542)]);return _0x5f5d43!=null&&setValueByPath(_0x5e3480,['mimeType'],_0x5f5d43),_0x5e3480;}function functionCallToMldev$3(_0x3daaca){const _0xba82f8=a3_0x402819,_0x3175cc={},_0x376874=getValueByPath(_0x3daaca,['id']);_0x376874!=null&&setValueByPath(_0x3175cc,['id'],_0x376874);const _0x407149=getValueByPath(_0x3daaca,[_0xba82f8(0x6a1)]);_0x407149!=null&&setValueByPath(_0x3175cc,['args'],_0x407149);const _0x67d647=getValueByPath(_0x3daaca,['name']);_0x67d647!=null&&setValueByPath(_0x3175cc,['name'],_0x67d647);if(getValueByPath(_0x3daaca,[_0xba82f8(0x20e)])!==undefined)throw new Error('partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x3daaca,[_0xba82f8(0x269)])!==undefined)throw new Error(_0xba82f8(0x4dc));return _0x3175cc;}function functionCallingConfigToMldev$1(_0x3fbd6d){const _0x3c621d=a3_0x402819,_0x301a9f={},_0x59b58a=getValueByPath(_0x3fbd6d,[_0x3c621d(0x6e4)]);_0x59b58a!=null&&setValueByPath(_0x301a9f,[_0x3c621d(0x6e4)],_0x59b58a);const _0x36db9c=getValueByPath(_0x3fbd6d,[_0x3c621d(0x43d)]);_0x36db9c!=null&&setValueByPath(_0x301a9f,[_0x3c621d(0x43d)],_0x36db9c);if(getValueByPath(_0x3fbd6d,['streamFunctionCallArguments'])!==undefined)throw new Error('streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x301a9f;}function functionDeclarationToVertex$2(_0x1e3713){const _0x469723=a3_0x402819,_0x1886db={},_0x2c6d68=getValueByPath(_0x1e3713,['description']);_0x2c6d68!=null&&setValueByPath(_0x1886db,[_0x469723(0x3c3)],_0x2c6d68);const _0x4b5334=getValueByPath(_0x1e3713,[_0x469723(0x3a4)]);_0x4b5334!=null&&setValueByPath(_0x1886db,[_0x469723(0x3a4)],_0x4b5334);const _0x56771e=getValueByPath(_0x1e3713,[_0x469723(0x460)]);_0x56771e!=null&&setValueByPath(_0x1886db,[_0x469723(0x460)],_0x56771e);const _0x458539=getValueByPath(_0x1e3713,[_0x469723(0x4ad)]);_0x458539!=null&&setValueByPath(_0x1886db,['parametersJsonSchema'],_0x458539);const _0x23b09e=getValueByPath(_0x1e3713,[_0x469723(0x454)]);_0x23b09e!=null&&setValueByPath(_0x1886db,[_0x469723(0x454)],_0x23b09e);const _0xfbda3f=getValueByPath(_0x1e3713,[_0x469723(0x62d)]);_0xfbda3f!=null&&setValueByPath(_0x1886db,[_0x469723(0x62d)],_0xfbda3f);if(getValueByPath(_0x1e3713,[_0x469723(0x321)])!==undefined)throw new Error('behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x1886db;}function getCachedContentParametersToMldev(_0x365729,_0x28bf21){const _0x428689=a3_0x402819,_0x4a1732={},_0x55c55a=getValueByPath(_0x28bf21,['name']);return _0x55c55a!=null&&setValueByPath(_0x4a1732,[_0x428689(0x1aa),'name'],tCachedContentName(_0x365729,_0x55c55a)),_0x4a1732;}function getCachedContentParametersToVertex(_0x5e59cc,_0x2e7224){const _0x39ecfa=a3_0x402819,_0x1ade9f={},_0x53ff75=getValueByPath(_0x2e7224,[_0x39ecfa(0x3a4)]);return _0x53ff75!=null&&setValueByPath(_0x1ade9f,[_0x39ecfa(0x1aa),_0x39ecfa(0x3a4)],tCachedContentName(_0x5e59cc,_0x53ff75)),_0x1ade9f;}function googleMapsToMldev$3(_0x2b7ff){const _0x10bd8c=a3_0x402819,_0x167c42={};if(getValueByPath(_0x2b7ff,['authConfig'])!==undefined)throw new Error('authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x14f104=getValueByPath(_0x2b7ff,[_0x10bd8c(0x489)]);return _0x14f104!=null&&setValueByPath(_0x167c42,[_0x10bd8c(0x489)],_0x14f104),_0x167c42;}function googleSearchToMldev$3(_0x59832b){const _0x5e073e=a3_0x402819,_0x516e7a={};if(getValueByPath(_0x59832b,[_0x5e073e(0x22c)])!==undefined)throw new Error('excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x59832b,[_0x5e073e(0x20c)])!==undefined)throw new Error(_0x5e073e(0x50d));const _0x18b0b5=getValueByPath(_0x59832b,['timeRangeFilter']);return _0x18b0b5!=null&&setValueByPath(_0x516e7a,[_0x5e073e(0x1b3)],_0x18b0b5),_0x516e7a;}function listCachedContentsConfigToMldev(_0x29183a,_0x4cadd0){const _0x7d6750=a3_0x402819,_0x51aefd={},_0x222aae=getValueByPath(_0x29183a,[_0x7d6750(0x1f8)]);_0x4cadd0!==undefined&&_0x222aae!=null&&setValueByPath(_0x4cadd0,['_query','pageSize'],_0x222aae);const _0x4216c2=getValueByPath(_0x29183a,[_0x7d6750(0x1a4)]);return _0x4cadd0!==undefined&&_0x4216c2!=null&&setValueByPath(_0x4cadd0,[_0x7d6750(0x5fa),_0x7d6750(0x1a4)],_0x4216c2),_0x51aefd;}function listCachedContentsConfigToVertex(_0x178c84,_0x44ee50){const _0x4f2a49=a3_0x402819,_0x4a0600={},_0x332fbc=getValueByPath(_0x178c84,['pageSize']);_0x44ee50!==undefined&&_0x332fbc!=null&&setValueByPath(_0x44ee50,[_0x4f2a49(0x5fa),_0x4f2a49(0x1f8)],_0x332fbc);const _0x110131=getValueByPath(_0x178c84,[_0x4f2a49(0x1a4)]);return _0x44ee50!==undefined&&_0x110131!=null&&setValueByPath(_0x44ee50,['_query',_0x4f2a49(0x1a4)],_0x110131),_0x4a0600;}function listCachedContentsParametersToMldev(_0x1d9aa7){const _0x19ff37=a3_0x402819,_0x4e2783={},_0x4df438=getValueByPath(_0x1d9aa7,[_0x19ff37(0x43b)]);return _0x4df438!=null&&listCachedContentsConfigToMldev(_0x4df438,_0x4e2783),_0x4e2783;}function listCachedContentsParametersToVertex(_0x3082b8){const _0x904c54=a3_0x402819,_0x5a1ed2={},_0x2c3124=getValueByPath(_0x3082b8,[_0x904c54(0x43b)]);return _0x2c3124!=null&&listCachedContentsConfigToVertex(_0x2c3124,_0x5a1ed2),_0x5a1ed2;}function listCachedContentsResponseFromMldev(_0x2d66be){const _0x5e0c56=a3_0x402819,_0x5f1674={},_0x251020=getValueByPath(_0x2d66be,[_0x5e0c56(0x3a7)]);_0x251020!=null&&setValueByPath(_0x5f1674,[_0x5e0c56(0x3a7)],_0x251020);const _0x44603f=getValueByPath(_0x2d66be,['nextPageToken']);_0x44603f!=null&&setValueByPath(_0x5f1674,[_0x5e0c56(0x68e)],_0x44603f);const _0x5e657d=getValueByPath(_0x2d66be,[_0x5e0c56(0x1ba)]);if(_0x5e657d!=null){let _0x152043=_0x5e657d;Array[_0x5e0c56(0x32b)](_0x152043)&&(_0x152043=_0x152043[_0x5e0c56(0x6c4)](_0x5acae0=>{return _0x5acae0;})),setValueByPath(_0x5f1674,[_0x5e0c56(0x1ba)],_0x152043);}return _0x5f1674;}function listCachedContentsResponseFromVertex(_0x25551b){const _0x3c7c3b=a3_0x402819,_0x193696={},_0x16eabc=getValueByPath(_0x25551b,[_0x3c7c3b(0x3a7)]);_0x16eabc!=null&&setValueByPath(_0x193696,[_0x3c7c3b(0x3a7)],_0x16eabc);const _0x70d59b=getValueByPath(_0x25551b,[_0x3c7c3b(0x68e)]);_0x70d59b!=null&&setValueByPath(_0x193696,[_0x3c7c3b(0x68e)],_0x70d59b);const _0x1e3ab=getValueByPath(_0x25551b,[_0x3c7c3b(0x1ba)]);if(_0x1e3ab!=null){let _0x2eba41=_0x1e3ab;Array[_0x3c7c3b(0x32b)](_0x2eba41)&&(_0x2eba41=_0x2eba41[_0x3c7c3b(0x6c4)](_0x1e21b8=>{return _0x1e21b8;})),setValueByPath(_0x193696,['cachedContents'],_0x2eba41);}return _0x193696;}function partToMldev$3(_0x51b2c1){const _0x3ccd1d=a3_0x402819,_0x22a6cc={},_0x56ae05=getValueByPath(_0x51b2c1,['mediaResolution']);_0x56ae05!=null&&setValueByPath(_0x22a6cc,['mediaResolution'],_0x56ae05);const _0x29f35d=getValueByPath(_0x51b2c1,['codeExecutionResult']);_0x29f35d!=null&&setValueByPath(_0x22a6cc,['codeExecutionResult'],_0x29f35d);const _0x476a33=getValueByPath(_0x51b2c1,[_0x3ccd1d(0x633)]);_0x476a33!=null&&setValueByPath(_0x22a6cc,['executableCode'],_0x476a33);const _0x41a89c=getValueByPath(_0x51b2c1,[_0x3ccd1d(0x2c3)]);_0x41a89c!=null&&setValueByPath(_0x22a6cc,[_0x3ccd1d(0x2c3)],fileDataToMldev$3(_0x41a89c));const _0x33070e=getValueByPath(_0x51b2c1,['functionCall']);_0x33070e!=null&&setValueByPath(_0x22a6cc,['functionCall'],functionCallToMldev$3(_0x33070e));const _0x1f8e53=getValueByPath(_0x51b2c1,['functionResponse']);_0x1f8e53!=null&&setValueByPath(_0x22a6cc,[_0x3ccd1d(0x483)],_0x1f8e53);const _0x57163e=getValueByPath(_0x51b2c1,[_0x3ccd1d(0x284)]);_0x57163e!=null&&setValueByPath(_0x22a6cc,['inlineData'],blobToMldev$3(_0x57163e));const _0x4f8425=getValueByPath(_0x51b2c1,[_0x3ccd1d(0x1a9)]);_0x4f8425!=null&&setValueByPath(_0x22a6cc,[_0x3ccd1d(0x1a9)],_0x4f8425);const _0x46ec14=getValueByPath(_0x51b2c1,['thought']);_0x46ec14!=null&&setValueByPath(_0x22a6cc,[_0x3ccd1d(0x56f)],_0x46ec14);const _0x58abda=getValueByPath(_0x51b2c1,[_0x3ccd1d(0x38c)]);_0x58abda!=null&&setValueByPath(_0x22a6cc,[_0x3ccd1d(0x38c)],_0x58abda);const _0x34be73=getValueByPath(_0x51b2c1,[_0x3ccd1d(0x703)]);return _0x34be73!=null&&setValueByPath(_0x22a6cc,['videoMetadata'],_0x34be73),_0x22a6cc;}function toolConfigToMldev$1(_0xe18332){const _0x4b2d13=a3_0x402819,_0x5631bc={},_0x178d73=getValueByPath(_0xe18332,['retrievalConfig']);_0x178d73!=null&&setValueByPath(_0x5631bc,[_0x4b2d13(0x636)],_0x178d73);const _0x37df22=getValueByPath(_0xe18332,['functionCallingConfig']);return _0x37df22!=null&&setValueByPath(_0x5631bc,[_0x4b2d13(0x2f0)],functionCallingConfigToMldev$1(_0x37df22)),_0x5631bc;}function toolToMldev$3(_0x184bb4){const _0xaddae3=a3_0x402819,_0xedcd1e={};if(getValueByPath(_0x184bb4,['retrieval'])!==undefined)throw new Error(_0xaddae3(0x4ab));const _0x5c5f08=getValueByPath(_0x184bb4,[_0xaddae3(0x5bf)]);_0x5c5f08!=null&&setValueByPath(_0xedcd1e,[_0xaddae3(0x5bf)],_0x5c5f08);const _0x153e7a=getValueByPath(_0x184bb4,['fileSearch']);_0x153e7a!=null&&setValueByPath(_0xedcd1e,[_0xaddae3(0x375)],_0x153e7a);const _0x118ec2=getValueByPath(_0x184bb4,[_0xaddae3(0x5e2)]);_0x118ec2!=null&&setValueByPath(_0xedcd1e,[_0xaddae3(0x5e2)],_0x118ec2);if(getValueByPath(_0x184bb4,[_0xaddae3(0x5af)])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x17f730=getValueByPath(_0x184bb4,[_0xaddae3(0x5f8)]);if(_0x17f730!=null){let _0x475c3b=_0x17f730;Array[_0xaddae3(0x32b)](_0x475c3b)&&(_0x475c3b=_0x475c3b[_0xaddae3(0x6c4)](_0xbb994e=>{return _0xbb994e;})),setValueByPath(_0xedcd1e,[_0xaddae3(0x5f8)],_0x475c3b);}const _0x5cedcd=getValueByPath(_0x184bb4,[_0xaddae3(0x62b)]);_0x5cedcd!=null&&setValueByPath(_0xedcd1e,['googleMaps'],googleMapsToMldev$3(_0x5cedcd));const _0xe359f0=getValueByPath(_0x184bb4,[_0xaddae3(0x5ed)]);_0xe359f0!=null&&setValueByPath(_0xedcd1e,[_0xaddae3(0x5ed)],googleSearchToMldev$3(_0xe359f0));const _0xe50917=getValueByPath(_0x184bb4,['googleSearchRetrieval']);_0xe50917!=null&&setValueByPath(_0xedcd1e,['googleSearchRetrieval'],_0xe50917);const _0x4c3a46=getValueByPath(_0x184bb4,[_0xaddae3(0x55e)]);return _0x4c3a46!=null&&setValueByPath(_0xedcd1e,[_0xaddae3(0x55e)],_0x4c3a46),_0xedcd1e;}function toolToVertex$2(_0x1ab582){const _0x5272ed=a3_0x402819,_0x5b2e54={},_0x353fb6=getValueByPath(_0x1ab582,[_0x5272ed(0x472)]);_0x353fb6!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x472)],_0x353fb6);const _0x3e8840=getValueByPath(_0x1ab582,[_0x5272ed(0x5bf)]);_0x3e8840!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x5bf)],_0x3e8840);if(getValueByPath(_0x1ab582,[_0x5272ed(0x375)])!==undefined)throw new Error(_0x5272ed(0x57f));const _0x47cfd6=getValueByPath(_0x1ab582,[_0x5272ed(0x5e2)]);_0x47cfd6!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x5e2)],_0x47cfd6);const _0x3e2844=getValueByPath(_0x1ab582,[_0x5272ed(0x5af)]);_0x3e2844!=null&&setValueByPath(_0x5b2e54,['enterpriseWebSearch'],_0x3e2844);const _0x2994a1=getValueByPath(_0x1ab582,['functionDeclarations']);if(_0x2994a1!=null){let _0x57acc0=_0x2994a1;Array[_0x5272ed(0x32b)](_0x57acc0)&&(_0x57acc0=_0x57acc0['map'](_0x55d7ba=>{return functionDeclarationToVertex$2(_0x55d7ba);})),setValueByPath(_0x5b2e54,[_0x5272ed(0x5f8)],_0x57acc0);}const _0x4a1ae7=getValueByPath(_0x1ab582,['googleMaps']);_0x4a1ae7!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x62b)],_0x4a1ae7);const _0x4b50bb=getValueByPath(_0x1ab582,[_0x5272ed(0x5ed)]);_0x4b50bb!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x5ed)],_0x4b50bb);const _0x4317ce=getValueByPath(_0x1ab582,[_0x5272ed(0x3f1)]);_0x4317ce!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x3f1)],_0x4317ce);const _0x473828=getValueByPath(_0x1ab582,[_0x5272ed(0x55e)]);return _0x473828!=null&&setValueByPath(_0x5b2e54,[_0x5272ed(0x55e)],_0x473828),_0x5b2e54;}function updateCachedContentConfigToMldev(_0x5aa15a,_0x36c812){const _0x4e8490=a3_0x402819,_0xc78d3d={},_0x8eee39=getValueByPath(_0x5aa15a,[_0x4e8490(0x6b7)]);_0x36c812!==undefined&&_0x8eee39!=null&&setValueByPath(_0x36c812,['ttl'],_0x8eee39);const _0x4d38b3=getValueByPath(_0x5aa15a,[_0x4e8490(0x481)]);return _0x36c812!==undefined&&_0x4d38b3!=null&&setValueByPath(_0x36c812,[_0x4e8490(0x481)],_0x4d38b3),_0xc78d3d;}function updateCachedContentConfigToVertex(_0x243666,_0x1069d6){const _0x37ef67=a3_0x402819,_0x32c217={},_0x3665da=getValueByPath(_0x243666,[_0x37ef67(0x6b7)]);_0x1069d6!==undefined&&_0x3665da!=null&&setValueByPath(_0x1069d6,[_0x37ef67(0x6b7)],_0x3665da);const _0x43dfa7=getValueByPath(_0x243666,[_0x37ef67(0x481)]);return _0x1069d6!==undefined&&_0x43dfa7!=null&&setValueByPath(_0x1069d6,[_0x37ef67(0x481)],_0x43dfa7),_0x32c217;}function updateCachedContentParametersToMldev(_0x25df9b,_0x5584c9){const _0x4c9535=a3_0x402819,_0x455b3a={},_0x72ac92=getValueByPath(_0x5584c9,[_0x4c9535(0x3a4)]);_0x72ac92!=null&&setValueByPath(_0x455b3a,[_0x4c9535(0x1aa),'name'],tCachedContentName(_0x25df9b,_0x72ac92));const _0x24bcf0=getValueByPath(_0x5584c9,[_0x4c9535(0x43b)]);return _0x24bcf0!=null&&updateCachedContentConfigToMldev(_0x24bcf0,_0x455b3a),_0x455b3a;}function updateCachedContentParametersToVertex(_0x424e28,_0x1c9a6f){const _0x45e3a9=a3_0x402819,_0x4c41ee={},_0x31453b=getValueByPath(_0x1c9a6f,[_0x45e3a9(0x3a4)]);_0x31453b!=null&&setValueByPath(_0x4c41ee,[_0x45e3a9(0x1aa),_0x45e3a9(0x3a4)],tCachedContentName(_0x424e28,_0x31453b));const _0x463ae3=getValueByPath(_0x1c9a6f,[_0x45e3a9(0x43b)]);return _0x463ae3!=null&&updateCachedContentConfigToVertex(_0x463ae3,_0x4c41ee),_0x4c41ee;}/**
52
+ * @license
53
+ * Copyright 2025 Google LLC
54
+ * SPDX-License-Identifier: Apache-2.0
55
+ */
56
+ class Caches extends BaseModule{constructor(_0x5b1833){const _0xe22f1e=a3_0x402819;super(),this['apiClient']=_0x5b1833,this[_0xe22f1e(0x526)]=async(_0x21a6e1={})=>{const _0xaa2f69=_0xe22f1e;return new Pager(PagedItem[_0xaa2f69(0x5f7)],_0x2db930=>this[_0xaa2f69(0x388)](_0x2db930),await this[_0xaa2f69(0x388)](_0x21a6e1),_0x21a6e1);};}async['create'](_0x13c562){const _0x11c47d=a3_0x402819;var _0x193251,_0x404937,_0x3cf944,_0x16ee10;let _0x2e66cb,_0x100c6b='',_0x1af052={};if(this[_0x11c47d(0x235)]['isVertexAI']()){const _0x2ff066=createCachedContentParametersToVertex(this[_0x11c47d(0x235)],_0x13c562);return _0x100c6b=formatMap('cachedContents',_0x2ff066['_url']),_0x1af052=_0x2ff066[_0x11c47d(0x5fa)],delete _0x2ff066[_0x11c47d(0x1aa)],delete _0x2ff066[_0x11c47d(0x5fa)],_0x2e66cb=this[_0x11c47d(0x235)]['request']({'path':_0x100c6b,'queryParams':_0x1af052,'body':JSON[_0x11c47d(0x65c)](_0x2ff066),'httpMethod':'POST','httpOptions':(_0x193251=_0x13c562[_0x11c47d(0x43b)])===null||_0x193251===void 0x0?void 0x0:_0x193251['httpOptions'],'abortSignal':(_0x404937=_0x13c562[_0x11c47d(0x43b)])===null||_0x404937===void 0x0?void 0x0:_0x404937[_0x11c47d(0x709)]})[_0x11c47d(0x1f0)](_0xc2a8c4=>{const _0x4bc330=_0x11c47d;return _0xc2a8c4[_0x4bc330(0x4cf)]();}),_0x2e66cb[_0x11c47d(0x1f0)](_0x1d0d56=>{return _0x1d0d56;});}else{const _0x342566=createCachedContentParametersToMldev(this[_0x11c47d(0x235)],_0x13c562);return _0x100c6b=formatMap('cachedContents',_0x342566[_0x11c47d(0x1aa)]),_0x1af052=_0x342566[_0x11c47d(0x5fa)],delete _0x342566['_url'],delete _0x342566[_0x11c47d(0x5fa)],_0x2e66cb=this['apiClient'][_0x11c47d(0x239)]({'path':_0x100c6b,'queryParams':_0x1af052,'body':JSON[_0x11c47d(0x65c)](_0x342566),'httpMethod':'POST','httpOptions':(_0x3cf944=_0x13c562[_0x11c47d(0x43b)])===null||_0x3cf944===void 0x0?void 0x0:_0x3cf944[_0x11c47d(0x5c7)],'abortSignal':(_0x16ee10=_0x13c562[_0x11c47d(0x43b)])===null||_0x16ee10===void 0x0?void 0x0:_0x16ee10[_0x11c47d(0x709)]})['then'](_0x787371=>{const _0x524d7b=_0x11c47d;return _0x787371[_0x524d7b(0x4cf)]();}),_0x2e66cb[_0x11c47d(0x1f0)](_0x10f41c=>{return _0x10f41c;});}}async['get'](_0x4f5e82){const _0x2023f9=a3_0x402819;var _0x19f75a,_0x333b4a,_0x19cb65,_0x4839ee;let _0x55b833,_0xceb4ec='',_0x3c6d03={};if(this[_0x2023f9(0x235)][_0x2023f9(0x268)]()){const _0x40ff3b=getCachedContentParametersToVertex(this['apiClient'],_0x4f5e82);return _0xceb4ec=formatMap('{name}',_0x40ff3b[_0x2023f9(0x1aa)]),_0x3c6d03=_0x40ff3b[_0x2023f9(0x5fa)],delete _0x40ff3b[_0x2023f9(0x1aa)],delete _0x40ff3b['_query'],_0x55b833=this[_0x2023f9(0x235)][_0x2023f9(0x239)]({'path':_0xceb4ec,'queryParams':_0x3c6d03,'body':JSON[_0x2023f9(0x65c)](_0x40ff3b),'httpMethod':_0x2023f9(0x500),'httpOptions':(_0x19f75a=_0x4f5e82['config'])===null||_0x19f75a===void 0x0?void 0x0:_0x19f75a[_0x2023f9(0x5c7)],'abortSignal':(_0x333b4a=_0x4f5e82[_0x2023f9(0x43b)])===null||_0x333b4a===void 0x0?void 0x0:_0x333b4a[_0x2023f9(0x709)]})[_0x2023f9(0x1f0)](_0x33f900=>{return _0x33f900['json']();}),_0x55b833[_0x2023f9(0x1f0)](_0x3de6a3=>{return _0x3de6a3;});}else{const _0x474312=getCachedContentParametersToMldev(this[_0x2023f9(0x235)],_0x4f5e82);return _0xceb4ec=formatMap(_0x2023f9(0x687),_0x474312[_0x2023f9(0x1aa)]),_0x3c6d03=_0x474312[_0x2023f9(0x5fa)],delete _0x474312['_url'],delete _0x474312['_query'],_0x55b833=this[_0x2023f9(0x235)][_0x2023f9(0x239)]({'path':_0xceb4ec,'queryParams':_0x3c6d03,'body':JSON[_0x2023f9(0x65c)](_0x474312),'httpMethod':_0x2023f9(0x500),'httpOptions':(_0x19cb65=_0x4f5e82[_0x2023f9(0x43b)])===null||_0x19cb65===void 0x0?void 0x0:_0x19cb65[_0x2023f9(0x5c7)],'abortSignal':(_0x4839ee=_0x4f5e82[_0x2023f9(0x43b)])===null||_0x4839ee===void 0x0?void 0x0:_0x4839ee[_0x2023f9(0x709)]})[_0x2023f9(0x1f0)](_0x15120b=>{const _0x5ede8d=_0x2023f9;return _0x15120b[_0x5ede8d(0x4cf)]();}),_0x55b833['then'](_0x39a73a=>{return _0x39a73a;});}}async['delete'](_0x258c28){const _0x2f7a52=a3_0x402819;var _0x56ccd7,_0x49a3ec,_0xf21da,_0x420e82;let _0x419644,_0x570593='',_0x24c714={};if(this[_0x2f7a52(0x235)][_0x2f7a52(0x268)]()){const _0x25c7f9=deleteCachedContentParametersToVertex(this[_0x2f7a52(0x235)],_0x258c28);return _0x570593=formatMap('{name}',_0x25c7f9[_0x2f7a52(0x1aa)]),_0x24c714=_0x25c7f9[_0x2f7a52(0x5fa)],delete _0x25c7f9[_0x2f7a52(0x1aa)],delete _0x25c7f9['_query'],_0x419644=this[_0x2f7a52(0x235)][_0x2f7a52(0x239)]({'path':_0x570593,'queryParams':_0x24c714,'body':JSON[_0x2f7a52(0x65c)](_0x25c7f9),'httpMethod':_0x2f7a52(0x71d),'httpOptions':(_0x56ccd7=_0x258c28[_0x2f7a52(0x43b)])===null||_0x56ccd7===void 0x0?void 0x0:_0x56ccd7[_0x2f7a52(0x5c7)],'abortSignal':(_0x49a3ec=_0x258c28[_0x2f7a52(0x43b)])===null||_0x49a3ec===void 0x0?void 0x0:_0x49a3ec[_0x2f7a52(0x709)]})[_0x2f7a52(0x1f0)](_0x58e48e=>{const _0x100ec4=_0x2f7a52;return _0x58e48e[_0x100ec4(0x4cf)]()[_0x100ec4(0x1f0)](_0x11e8ef=>{const _0x19ecbc=_0x100ec4,_0xe50c33=_0x11e8ef;return _0xe50c33[_0x19ecbc(0x3a7)]={'headers':_0x58e48e['headers']},_0xe50c33;});}),_0x419644[_0x2f7a52(0x1f0)](_0x3ea958=>{const _0x47c4ff=_0x2f7a52,_0x4a504e=deleteCachedContentResponseFromVertex(_0x3ea958),_0x588c2d=new DeleteCachedContentResponse();return Object[_0x47c4ff(0x48a)](_0x588c2d,_0x4a504e),_0x588c2d;});}else{const _0x7afa82=deleteCachedContentParametersToMldev(this[_0x2f7a52(0x235)],_0x258c28);return _0x570593=formatMap(_0x2f7a52(0x687),_0x7afa82[_0x2f7a52(0x1aa)]),_0x24c714=_0x7afa82['_query'],delete _0x7afa82[_0x2f7a52(0x1aa)],delete _0x7afa82['_query'],_0x419644=this[_0x2f7a52(0x235)][_0x2f7a52(0x239)]({'path':_0x570593,'queryParams':_0x24c714,'body':JSON[_0x2f7a52(0x65c)](_0x7afa82),'httpMethod':_0x2f7a52(0x71d),'httpOptions':(_0xf21da=_0x258c28[_0x2f7a52(0x43b)])===null||_0xf21da===void 0x0?void 0x0:_0xf21da[_0x2f7a52(0x5c7)],'abortSignal':(_0x420e82=_0x258c28[_0x2f7a52(0x43b)])===null||_0x420e82===void 0x0?void 0x0:_0x420e82[_0x2f7a52(0x709)]})[_0x2f7a52(0x1f0)](_0x2b6c32=>{const _0x1f6201=_0x2f7a52;return _0x2b6c32[_0x1f6201(0x4cf)]()[_0x1f6201(0x1f0)](_0x455fba=>{const _0x565d58=_0x1f6201,_0x1a37a6=_0x455fba;return _0x1a37a6['sdkHttpResponse']={'headers':_0x2b6c32[_0x565d58(0x70b)]},_0x1a37a6;});}),_0x419644[_0x2f7a52(0x1f0)](_0x508ab0=>{const _0x80a286=deleteCachedContentResponseFromMldev(_0x508ab0),_0x44d362=new DeleteCachedContentResponse();return Object['assign'](_0x44d362,_0x80a286),_0x44d362;});}}async['update'](_0x2f6e97){const _0x9d60a3=a3_0x402819;var _0x51518e,_0x532577,_0x2ad773,_0x233546;let _0x4422f8,_0x7740af='',_0x174e36={};if(this[_0x9d60a3(0x235)][_0x9d60a3(0x268)]()){const _0x23fac8=updateCachedContentParametersToVertex(this[_0x9d60a3(0x235)],_0x2f6e97);return _0x7740af=formatMap('{name}',_0x23fac8[_0x9d60a3(0x1aa)]),_0x174e36=_0x23fac8[_0x9d60a3(0x5fa)],delete _0x23fac8[_0x9d60a3(0x1aa)],delete _0x23fac8['_query'],_0x4422f8=this[_0x9d60a3(0x235)][_0x9d60a3(0x239)]({'path':_0x7740af,'queryParams':_0x174e36,'body':JSON[_0x9d60a3(0x65c)](_0x23fac8),'httpMethod':_0x9d60a3(0x5b7),'httpOptions':(_0x51518e=_0x2f6e97[_0x9d60a3(0x43b)])===null||_0x51518e===void 0x0?void 0x0:_0x51518e[_0x9d60a3(0x5c7)],'abortSignal':(_0x532577=_0x2f6e97[_0x9d60a3(0x43b)])===null||_0x532577===void 0x0?void 0x0:_0x532577[_0x9d60a3(0x709)]})[_0x9d60a3(0x1f0)](_0x222f34=>{const _0x5e66c7=_0x9d60a3;return _0x222f34[_0x5e66c7(0x4cf)]();}),_0x4422f8[_0x9d60a3(0x1f0)](_0x558aac=>{return _0x558aac;});}else{const _0xd8840f=updateCachedContentParametersToMldev(this[_0x9d60a3(0x235)],_0x2f6e97);return _0x7740af=formatMap('{name}',_0xd8840f[_0x9d60a3(0x1aa)]),_0x174e36=_0xd8840f['_query'],delete _0xd8840f['_url'],delete _0xd8840f['_query'],_0x4422f8=this[_0x9d60a3(0x235)]['request']({'path':_0x7740af,'queryParams':_0x174e36,'body':JSON['stringify'](_0xd8840f),'httpMethod':'PATCH','httpOptions':(_0x2ad773=_0x2f6e97['config'])===null||_0x2ad773===void 0x0?void 0x0:_0x2ad773['httpOptions'],'abortSignal':(_0x233546=_0x2f6e97['config'])===null||_0x233546===void 0x0?void 0x0:_0x233546['abortSignal']})['then'](_0x2c0006=>{const _0xffeb70=_0x9d60a3;return _0x2c0006[_0xffeb70(0x4cf)]();}),_0x4422f8[_0x9d60a3(0x1f0)](_0x1303fd=>{return _0x1303fd;});}}async['listInternal'](_0x33b656){const _0x20946a=a3_0x402819;var _0x56dced,_0x725214,_0x5abe43,_0x44aa6c;let _0x52e54d,_0x59aded='',_0xa39ad1={};if(this[_0x20946a(0x235)]['isVertexAI']()){const _0x483042=listCachedContentsParametersToVertex(_0x33b656);return _0x59aded=formatMap('cachedContents',_0x483042[_0x20946a(0x1aa)]),_0xa39ad1=_0x483042[_0x20946a(0x5fa)],delete _0x483042['_url'],delete _0x483042[_0x20946a(0x5fa)],_0x52e54d=this[_0x20946a(0x235)][_0x20946a(0x239)]({'path':_0x59aded,'queryParams':_0xa39ad1,'body':JSON['stringify'](_0x483042),'httpMethod':_0x20946a(0x500),'httpOptions':(_0x56dced=_0x33b656['config'])===null||_0x56dced===void 0x0?void 0x0:_0x56dced[_0x20946a(0x5c7)],'abortSignal':(_0x725214=_0x33b656[_0x20946a(0x43b)])===null||_0x725214===void 0x0?void 0x0:_0x725214[_0x20946a(0x709)]})['then'](_0x2c99d8=>{const _0x5ad378=_0x20946a;return _0x2c99d8[_0x5ad378(0x4cf)]()[_0x5ad378(0x1f0)](_0x122479=>{const _0x318405=_0x5ad378,_0x369dd0=_0x122479;return _0x369dd0[_0x318405(0x3a7)]={'headers':_0x2c99d8[_0x318405(0x70b)]},_0x369dd0;});}),_0x52e54d['then'](_0x123175=>{const _0xad0662=_0x20946a,_0x1f9c1d=listCachedContentsResponseFromVertex(_0x123175),_0xa4fc48=new ListCachedContentsResponse();return Object[_0xad0662(0x48a)](_0xa4fc48,_0x1f9c1d),_0xa4fc48;});}else{const _0x429b3a=listCachedContentsParametersToMldev(_0x33b656);return _0x59aded=formatMap('cachedContents',_0x429b3a[_0x20946a(0x1aa)]),_0xa39ad1=_0x429b3a['_query'],delete _0x429b3a['_url'],delete _0x429b3a['_query'],_0x52e54d=this[_0x20946a(0x235)][_0x20946a(0x239)]({'path':_0x59aded,'queryParams':_0xa39ad1,'body':JSON[_0x20946a(0x65c)](_0x429b3a),'httpMethod':'GET','httpOptions':(_0x5abe43=_0x33b656[_0x20946a(0x43b)])===null||_0x5abe43===void 0x0?void 0x0:_0x5abe43[_0x20946a(0x5c7)],'abortSignal':(_0x44aa6c=_0x33b656[_0x20946a(0x43b)])===null||_0x44aa6c===void 0x0?void 0x0:_0x44aa6c[_0x20946a(0x709)]})[_0x20946a(0x1f0)](_0x40501c=>{const _0x39315e=_0x20946a;return _0x40501c['json']()[_0x39315e(0x1f0)](_0x7448cb=>{const _0x421748=_0x39315e,_0x375e17=_0x7448cb;return _0x375e17[_0x421748(0x3a7)]={'headers':_0x40501c[_0x421748(0x70b)]},_0x375e17;});}),_0x52e54d['then'](_0xb4d330=>{const _0xf68ca4=_0x20946a,_0x1e44d0=listCachedContentsResponseFromMldev(_0xb4d330),_0x5a9252=new ListCachedContentsResponse();return Object[_0xf68ca4(0x48a)](_0x5a9252,_0x1e44d0),_0x5a9252;});}}}function __rest(_0x55a034,_0x29bcfd){const _0x31f704=a3_0x402819;var _0x6a5f51={};for(var _0x1e5bf3 in _0x55a034)if(Object['prototype'][_0x31f704(0x406)][_0x31f704(0x280)](_0x55a034,_0x1e5bf3)&&_0x29bcfd[_0x31f704(0x680)](_0x1e5bf3)<0x0)_0x6a5f51[_0x1e5bf3]=_0x55a034[_0x1e5bf3];if(_0x55a034!=null&&typeof Object[_0x31f704(0x674)]===_0x31f704(0x390))for(var _0x43331a=0x0,_0x1e5bf3=Object['getOwnPropertySymbols'](_0x55a034);_0x43331a<_0x1e5bf3[_0x31f704(0x3e8)];_0x43331a++){if(_0x29bcfd[_0x31f704(0x680)](_0x1e5bf3[_0x43331a])<0x0&&Object[_0x31f704(0x5c4)][_0x31f704(0x452)]['call'](_0x55a034,_0x1e5bf3[_0x43331a]))_0x6a5f51[_0x1e5bf3[_0x43331a]]=_0x55a034[_0x1e5bf3[_0x43331a]];}return _0x6a5f51;}function __values(_0x494649){const _0x1780d8=a3_0x402819;var _0x1525ea=typeof Symbol==='function'&&Symbol[_0x1780d8(0x3f7)],_0x330231=_0x1525ea&&_0x494649[_0x1525ea],_0x482068=0x0;if(_0x330231)return _0x330231[_0x1780d8(0x280)](_0x494649);if(_0x494649&&typeof _0x494649[_0x1780d8(0x3e8)]==='number')return{'next':function(){const _0x59f59b=_0x1780d8;if(_0x494649&&_0x482068>=_0x494649[_0x59f59b(0x3e8)])_0x494649=void 0x0;return{'value':_0x494649&&_0x494649[_0x482068++],'done':!_0x494649};}};throw new TypeError(_0x1525ea?_0x1780d8(0x1c0):_0x1780d8(0x527));}function __await(_0xf2ea02){return this instanceof __await?(this['v']=_0xf2ea02,this):new __await(_0xf2ea02);}function __asyncGenerator(_0x5eab7a,_0x42a2a9,_0x4eb34c){const _0x18cbd7=a3_0x402819;if(!Symbol[_0x18cbd7(0x3bd)])throw new TypeError('Symbol.asyncIterator\x20is\x20not\x20defined.');var _0x3f55eb=_0x4eb34c['apply'](_0x5eab7a,_0x42a2a9||[]),_0x365979,_0x367f5c=[];return _0x365979=Object[_0x18cbd7(0x518)]((typeof AsyncIterator===_0x18cbd7(0x390)?AsyncIterator:Object)[_0x18cbd7(0x5c4)]),_0x13a692('next'),_0x13a692(_0x18cbd7(0x3fd)),_0x13a692('return',_0x513ff6),_0x365979[Symbol[_0x18cbd7(0x3bd)]]=function(){return this;},_0x365979;function _0x513ff6(_0x1960bf){return function(_0x548030){const _0x2bab6e=a3_0x4a6d;return Promise[_0x2bab6e(0x2b6)](_0x548030)[_0x2bab6e(0x1f0)](_0x1960bf,_0x5852a8);};}function _0x13a692(_0x135d52,_0x28a397){if(_0x3f55eb[_0x135d52]){_0x365979[_0x135d52]=function(_0x6ad253){return new Promise(function(_0x360f87,_0x3777ed){const _0x10a0ac=a3_0x4a6d;_0x367f5c[_0x10a0ac(0x52c)]([_0x135d52,_0x6ad253,_0x360f87,_0x3777ed])>0x1||_0x2340a2(_0x135d52,_0x6ad253);});};if(_0x28a397)_0x365979[_0x135d52]=_0x28a397(_0x365979[_0x135d52]);}}function _0x2340a2(_0x13305c,_0x5d0986){try{_0x1e5e7c(_0x3f55eb[_0x13305c](_0x5d0986));}catch(_0xd6c8a7){_0x263452(_0x367f5c[0x0][0x3],_0xd6c8a7);}}function _0x1e5e7c(_0x12b7c2){const _0x394c16=_0x18cbd7;_0x12b7c2[_0x394c16(0x431)]instanceof __await?Promise['resolve'](_0x12b7c2[_0x394c16(0x431)]['v'])[_0x394c16(0x1f0)](_0xccd27f,_0x5852a8):_0x263452(_0x367f5c[0x0][0x2],_0x12b7c2);}function _0xccd27f(_0x146ece){const _0x52da7b=_0x18cbd7;_0x2340a2(_0x52da7b(0x6b2),_0x146ece);}function _0x5852a8(_0x37d7a0){_0x2340a2('throw',_0x37d7a0);}function _0x263452(_0x107a1a,_0x238b15){const _0x1ab7d7=_0x18cbd7;if(_0x107a1a(_0x238b15),_0x367f5c[_0x1ab7d7(0x270)](),_0x367f5c[_0x1ab7d7(0x3e8)])_0x2340a2(_0x367f5c[0x0][0x0],_0x367f5c[0x0][0x1]);}}function __asyncValues(_0x47fe07){const _0x1ca52f=a3_0x402819;if(!Symbol[_0x1ca52f(0x3bd)])throw new TypeError(_0x1ca52f(0x2f4));var _0x10a022=_0x47fe07[Symbol[_0x1ca52f(0x3bd)]],_0x56336b;return _0x10a022?_0x10a022[_0x1ca52f(0x280)](_0x47fe07):(_0x47fe07=typeof __values===_0x1ca52f(0x390)?__values(_0x47fe07):_0x47fe07[Symbol[_0x1ca52f(0x3f7)]](),_0x56336b={},_0x2ffa0c(_0x1ca52f(0x6b2)),_0x2ffa0c(_0x1ca52f(0x3fd)),_0x2ffa0c(_0x1ca52f(0x613)),_0x56336b[Symbol[_0x1ca52f(0x3bd)]]=function(){return this;},_0x56336b);function _0x2ffa0c(_0x2ffb2a){_0x56336b[_0x2ffb2a]=_0x47fe07[_0x2ffb2a]&&function(_0x57f08a){return new Promise(function(_0x172a52,_0x2121c4){const _0x11487a=a3_0x4a6d;_0x57f08a=_0x47fe07[_0x2ffb2a](_0x57f08a),_0x37bc53(_0x172a52,_0x2121c4,_0x57f08a[_0x11487a(0x424)],_0x57f08a['value']);});};}function _0x37bc53(_0x49099e,_0x4ab0ef,_0x1ec618,_0x3884d9){const _0x444411=_0x1ca52f;Promise[_0x444411(0x2b6)](_0x3884d9)[_0x444411(0x1f0)](function(_0x4d971b){_0x49099e({'value':_0x4d971b,'done':_0x1ec618});},_0x4ab0ef);}}typeof SuppressedError===a3_0x402819(0x390)?SuppressedError:function(_0xe27cd4,_0x406adf,_0x51fa3b){const _0x2b8830=a3_0x402819;var _0x1f26fd=new Error(_0x51fa3b);return _0x1f26fd[_0x2b8830(0x3a4)]='SuppressedError',_0x1f26fd['error']=_0xe27cd4,_0x1f26fd[_0x2b8830(0x6c1)]=_0x406adf,_0x1f26fd;};/**
57
+ * @license
58
+ * Copyright 2025 Google LLC
59
+ * SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ function isValidResponse(_0x5d40ca){const _0x416e80=a3_0x402819;var _0x5a4460;if(_0x5d40ca[_0x416e80(0x6d0)]==undefined||_0x5d40ca[_0x416e80(0x6d0)][_0x416e80(0x3e8)]===0x0)return![];const _0x2f299c=(_0x5a4460=_0x5d40ca[_0x416e80(0x6d0)][0x0])===null||_0x5a4460===void 0x0?void 0x0:_0x5a4460['content'];if(_0x2f299c===undefined)return![];return isValidContent(_0x2f299c);}function isValidContent(_0x2c99a0){const _0x342658=a3_0x402819;if(_0x2c99a0[_0x342658(0x569)]===undefined||_0x2c99a0[_0x342658(0x569)][_0x342658(0x3e8)]===0x0)return![];for(const _0x5d8333 of _0x2c99a0[_0x342658(0x569)]){if(_0x5d8333===undefined||Object['keys'](_0x5d8333)[_0x342658(0x3e8)]===0x0)return![];}return!![];}function validateHistory(_0x55452a){const _0x4f8e88=a3_0x402819;if(_0x55452a[_0x4f8e88(0x3e8)]===0x0)return;for(const _0x4e25da of _0x55452a){if(_0x4e25da[_0x4f8e88(0x23a)]!=='user'&&_0x4e25da[_0x4f8e88(0x23a)]!==_0x4f8e88(0x3f6))throw new Error(_0x4f8e88(0x1b0)+_0x4e25da[_0x4f8e88(0x23a)]+'.');}}function extractCuratedHistory(_0x1a191e){const _0x36d4eb=a3_0x402819;if(_0x1a191e===undefined||_0x1a191e[_0x36d4eb(0x3e8)]===0x0)return[];const _0x347911=[],_0x38cf74=_0x1a191e[_0x36d4eb(0x3e8)];let _0x57330f=0x0;while(_0x57330f<_0x38cf74){if(_0x1a191e[_0x57330f]['role']===_0x36d4eb(0x3a6))_0x347911[_0x36d4eb(0x52c)](_0x1a191e[_0x57330f]),_0x57330f++;else{const _0x5d47bf=[];let _0x1ab7bc=!![];while(_0x57330f<_0x38cf74&&_0x1a191e[_0x57330f][_0x36d4eb(0x23a)]===_0x36d4eb(0x3f6)){_0x5d47bf[_0x36d4eb(0x52c)](_0x1a191e[_0x57330f]),_0x1ab7bc&&!isValidContent(_0x1a191e[_0x57330f])&&(_0x1ab7bc=![]),_0x57330f++;}_0x1ab7bc?_0x347911[_0x36d4eb(0x52c)](..._0x5d47bf):_0x347911['pop']();}}return _0x347911;}class Chats{constructor(_0x2216ac,_0x2ff912){const _0x507860=a3_0x402819;this[_0x507860(0x4be)]=_0x2216ac,this[_0x507860(0x235)]=_0x2ff912;}[a3_0x402819(0x518)](_0xf200fb){const _0x3dff1c=a3_0x402819;return new Chat(this['apiClient'],this['modelsModule'],_0xf200fb[_0x3dff1c(0x3f6)],_0xf200fb[_0x3dff1c(0x43b)],structuredClone(_0xf200fb['history']));}}class Chat{constructor(_0x404f36,_0x5d448f,_0x1c55aa,_0x1650b0={},_0x58f2eb=[]){const _0x134ef3=a3_0x402819;this[_0x134ef3(0x235)]=_0x404f36,this[_0x134ef3(0x4be)]=_0x5d448f,this[_0x134ef3(0x3f6)]=_0x1c55aa,this[_0x134ef3(0x43b)]=_0x1650b0,this[_0x134ef3(0x439)]=_0x58f2eb,this[_0x134ef3(0x24e)]=Promise['resolve'](),validateHistory(_0x58f2eb);}async[a3_0x402819(0x1e6)](_0x2ad7d0){const _0x253335=a3_0x402819;var _0x45d992;await this[_0x253335(0x24e)];const _0x15f918=tContent(_0x2ad7d0[_0x253335(0x557)]),_0x106292=this[_0x253335(0x4be)][_0x253335(0x3bf)]({'model':this['model'],'contents':this[_0x253335(0x571)](!![])[_0x253335(0x6ab)](_0x15f918),'config':(_0x45d992=_0x2ad7d0[_0x253335(0x43b)])!==null&&_0x45d992!==void 0x0?_0x45d992:this['config']});return this[_0x253335(0x24e)]=((async()=>{const _0x455980=_0x253335;var _0x31c154,_0x35f0dc,_0x1acd30;const _0x5d151a=await _0x106292,_0x5a2c70=(_0x35f0dc=(_0x31c154=_0x5d151a['candidates'])===null||_0x31c154===void 0x0?void 0x0:_0x31c154[0x0])===null||_0x35f0dc===void 0x0?void 0x0:_0x35f0dc[_0x455980(0x345)],_0x5f5642=_0x5d151a[_0x455980(0x2ec)],_0x3aa923=this[_0x455980(0x571)](!![])[_0x455980(0x3e8)];let _0x5ea2c6=[];_0x5f5642!=null&&(_0x5ea2c6=(_0x1acd30=_0x5f5642[_0x455980(0x23e)](_0x3aa923))!==null&&_0x1acd30!==void 0x0?_0x1acd30:[]);const _0x18ce2c=_0x5a2c70?[_0x5a2c70]:[];this[_0x455980(0x4fc)](_0x15f918,_0x18ce2c,_0x5ea2c6);return;})()),await this[_0x253335(0x24e)][_0x253335(0x66f)](()=>{const _0x17337f=_0x253335;this['sendPromise']=Promise[_0x17337f(0x2b6)]();}),_0x106292;}async[a3_0x402819(0x326)](_0x3a24aa){const _0x19ac38=a3_0x402819;var _0x1c04ad;await this[_0x19ac38(0x24e)];const _0x4ac9a5=tContent(_0x3a24aa[_0x19ac38(0x557)]),_0x45b033=this[_0x19ac38(0x4be)][_0x19ac38(0x587)]({'model':this[_0x19ac38(0x3f6)],'contents':this['getHistory'](!![])[_0x19ac38(0x6ab)](_0x4ac9a5),'config':(_0x1c04ad=_0x3a24aa['config'])!==null&&_0x1c04ad!==void 0x0?_0x1c04ad:this[_0x19ac38(0x43b)]});this[_0x19ac38(0x24e)]=_0x45b033[_0x19ac38(0x1f0)](()=>undefined)[_0x19ac38(0x66f)](()=>undefined);const _0x3cd96b=await _0x45b033,_0x135729=this['processStreamResponse'](_0x3cd96b,_0x4ac9a5);return _0x135729;}[a3_0x402819(0x571)](_0x2c5527=![]){const _0x1829bd=a3_0x402819,_0x5242ad=_0x2c5527?extractCuratedHistory(this[_0x1829bd(0x439)]):this[_0x1829bd(0x439)];return structuredClone(_0x5242ad);}['processStreamResponse'](_0x1ef7d3,_0x4c2d3b){return __asyncGenerator(this,arguments,function*_0x4f1b10(){const _0x189ffd=a3_0x4a6d;var _0x21ae62,_0x58ff44,_0x2b4c28,_0x599c88,_0x3852c0,_0x1b0b0e;const _0x3c4504=[];try{for(var _0x291b9e=!![],_0x581f16=__asyncValues(_0x1ef7d3),_0x56d3c9;_0x56d3c9=yield __await(_0x581f16[_0x189ffd(0x6b2)]()),_0x21ae62=_0x56d3c9[_0x189ffd(0x424)],!_0x21ae62;_0x291b9e=!![]){_0x599c88=_0x56d3c9[_0x189ffd(0x431)],_0x291b9e=![];const _0x4a5144=_0x599c88;if(isValidResponse(_0x4a5144)){const _0x25a63f=(_0x1b0b0e=(_0x3852c0=_0x4a5144[_0x189ffd(0x6d0)])===null||_0x3852c0===void 0x0?void 0x0:_0x3852c0[0x0])===null||_0x1b0b0e===void 0x0?void 0x0:_0x1b0b0e['content'];_0x25a63f!==undefined&&_0x3c4504[_0x189ffd(0x52c)](_0x25a63f);}yield yield __await(_0x4a5144);}}catch(_0x5d73cc){_0x58ff44={'error':_0x5d73cc};}finally{try{if(!_0x291b9e&&!_0x21ae62&&(_0x2b4c28=_0x581f16[_0x189ffd(0x613)]))yield __await(_0x2b4c28[_0x189ffd(0x280)](_0x581f16));}finally{if(_0x58ff44)throw _0x58ff44[_0x189ffd(0x251)];}}this['recordHistory'](_0x4c2d3b,_0x3c4504);});}[a3_0x402819(0x4fc)](_0x3e9fbb,_0x5b2308,_0x548c00){const _0x5575ad=a3_0x402819;let _0x4e755b=[];_0x5b2308[_0x5575ad(0x3e8)]>0x0&&_0x5b2308[_0x5575ad(0x47c)](_0x576173=>_0x576173[_0x5575ad(0x23a)]!==undefined)?_0x4e755b=_0x5b2308:_0x4e755b[_0x5575ad(0x52c)]({'role':_0x5575ad(0x3f6),'parts':[]}),_0x548c00&&_0x548c00[_0x5575ad(0x3e8)]>0x0?this[_0x5575ad(0x439)][_0x5575ad(0x52c)](...extractCuratedHistory(_0x548c00)):this[_0x5575ad(0x439)][_0x5575ad(0x52c)](_0x3e9fbb),this[_0x5575ad(0x439)][_0x5575ad(0x52c)](..._0x4e755b);}}/**
62
+ * @license
63
+ * Copyright 2025 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
66
+ class ApiError extends Error{constructor(_0x514324){const _0x39b091=a3_0x402819;super(_0x514324[_0x39b091(0x557)]),this['name']=_0x39b091(0x2cc),this[_0x39b091(0x389)]=_0x514324['status'],Object['setPrototypeOf'](this,ApiError['prototype']);}}/**
67
+ * @license
68
+ * Copyright 2025 Google LLC
69
+ * SPDX-License-Identifier: Apache-2.0
70
+ */
71
+ function createFileParametersToMldev(_0x3bfcc2){const _0x3cbc95=a3_0x402819,_0x319a94={},_0xe02b3e=getValueByPath(_0x3bfcc2,[_0x3cbc95(0x2fa)]);return _0xe02b3e!=null&&setValueByPath(_0x319a94,[_0x3cbc95(0x2fa)],_0xe02b3e),_0x319a94;}function createFileResponseFromMldev(_0x2de9b6){const _0x1afab2=a3_0x402819,_0x452490={},_0x18b942=getValueByPath(_0x2de9b6,['sdkHttpResponse']);return _0x18b942!=null&&setValueByPath(_0x452490,[_0x1afab2(0x3a7)],_0x18b942),_0x452490;}function deleteFileParametersToMldev(_0x360d0c){const _0x593107=a3_0x402819,_0x104ddc={},_0x315a96=getValueByPath(_0x360d0c,[_0x593107(0x3a4)]);return _0x315a96!=null&&setValueByPath(_0x104ddc,[_0x593107(0x1aa),_0x593107(0x2fa)],tFileName(_0x315a96)),_0x104ddc;}function deleteFileResponseFromMldev(_0x22a073){const _0xd06e22=a3_0x402819,_0xdd559={},_0x26b7ba=getValueByPath(_0x22a073,[_0xd06e22(0x3a7)]);return _0x26b7ba!=null&&setValueByPath(_0xdd559,[_0xd06e22(0x3a7)],_0x26b7ba),_0xdd559;}function getFileParametersToMldev(_0x146a33){const _0x5a125a=a3_0x402819,_0x3a25f9={},_0x4d8d96=getValueByPath(_0x146a33,[_0x5a125a(0x3a4)]);return _0x4d8d96!=null&&setValueByPath(_0x3a25f9,['_url',_0x5a125a(0x2fa)],tFileName(_0x4d8d96)),_0x3a25f9;}function internalRegisterFilesParametersToMldev(_0x1fd13d){const _0x178113=a3_0x402819,_0x3412ef={},_0x24ea54=getValueByPath(_0x1fd13d,[_0x178113(0x653)]);return _0x24ea54!=null&&setValueByPath(_0x3412ef,[_0x178113(0x653)],_0x24ea54),_0x3412ef;}function listFilesConfigToMldev(_0x1a259a,_0x1b1f06){const _0x10c43f=a3_0x402819,_0x302fd7={},_0x42d8d5=getValueByPath(_0x1a259a,[_0x10c43f(0x1f8)]);_0x1b1f06!==undefined&&_0x42d8d5!=null&&setValueByPath(_0x1b1f06,[_0x10c43f(0x5fa),_0x10c43f(0x1f8)],_0x42d8d5);const _0xa262e6=getValueByPath(_0x1a259a,[_0x10c43f(0x1a4)]);return _0x1b1f06!==undefined&&_0xa262e6!=null&&setValueByPath(_0x1b1f06,[_0x10c43f(0x5fa),_0x10c43f(0x1a4)],_0xa262e6),_0x302fd7;}function listFilesParametersToMldev(_0x21d054){const _0x46e5c5=a3_0x402819,_0x3aedcc={},_0x2f223f=getValueByPath(_0x21d054,[_0x46e5c5(0x43b)]);return _0x2f223f!=null&&listFilesConfigToMldev(_0x2f223f,_0x3aedcc),_0x3aedcc;}function listFilesResponseFromMldev(_0x414992){const _0x21eb67=a3_0x402819,_0x16c7ee={},_0x22db4d=getValueByPath(_0x414992,[_0x21eb67(0x3a7)]);_0x22db4d!=null&&setValueByPath(_0x16c7ee,[_0x21eb67(0x3a7)],_0x22db4d);const _0x240c52=getValueByPath(_0x414992,[_0x21eb67(0x68e)]);_0x240c52!=null&&setValueByPath(_0x16c7ee,[_0x21eb67(0x68e)],_0x240c52);const _0x572d5d=getValueByPath(_0x414992,[_0x21eb67(0x232)]);if(_0x572d5d!=null){let _0x59a101=_0x572d5d;Array[_0x21eb67(0x32b)](_0x59a101)&&(_0x59a101=_0x59a101['map'](_0x4d1a4c=>{return _0x4d1a4c;})),setValueByPath(_0x16c7ee,['files'],_0x59a101);}return _0x16c7ee;}function registerFilesResponseFromMldev(_0xfaefce){const _0x5ba791=a3_0x402819,_0x16e6ce={},_0x159252=getValueByPath(_0xfaefce,['sdkHttpResponse']);_0x159252!=null&&setValueByPath(_0x16e6ce,[_0x5ba791(0x3a7)],_0x159252);const _0xa3b1aa=getValueByPath(_0xfaefce,['files']);if(_0xa3b1aa!=null){let _0x15a9bf=_0xa3b1aa;Array[_0x5ba791(0x32b)](_0x15a9bf)&&(_0x15a9bf=_0x15a9bf['map'](_0x42dcce=>{return _0x42dcce;})),setValueByPath(_0x16e6ce,[_0x5ba791(0x232)],_0x15a9bf);}return _0x16e6ce;}/**
72
+ * @license
73
+ * Copyright 2025 Google LLC
74
+ * SPDX-License-Identifier: Apache-2.0
75
+ */
76
+ class Files extends BaseModule{constructor(_0x305859){const _0x277b9d=a3_0x402819;super(),this[_0x277b9d(0x235)]=_0x305859,this[_0x277b9d(0x526)]=async(_0xa02dbd={})=>{const _0x454950=_0x277b9d;return new Pager(PagedItem[_0x454950(0x47d)],_0xbe2976=>this[_0x454950(0x388)](_0xbe2976),await this[_0x454950(0x388)](_0xa02dbd),_0xa02dbd);};}async[a3_0x402819(0x630)](_0x50094b){const _0x357095=a3_0x402819;if(this[_0x357095(0x235)][_0x357095(0x268)]())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files.\x20You\x20can\x20share\x20files\x20through\x20a\x20GCS\x20bucket.');return this['apiClient'][_0x357095(0x59a)](_0x50094b[_0x357095(0x2fa)],_0x50094b['config'])[_0x357095(0x1f0)](_0x132f83=>{return _0x132f83;});}async[a3_0x402819(0x3ca)](_0x59fa6e){const _0x207992=a3_0x402819;await this['apiClient'][_0x207992(0x4f2)](_0x59fa6e);}async[a3_0x402819(0x6d4)](_0x55c84b){const _0x37bcf0=a3_0x402819;throw new Error(_0x37bcf0(0x3c0));}async['_registerFiles'](_0x3c5cf7){const _0x1ef427=a3_0x402819;return this[_0x1ef427(0x495)](_0x3c5cf7);}async[a3_0x402819(0x388)](_0xbdf975){const _0x31a8ba=a3_0x402819;var _0x1cd5c5,_0x4b7f09;let _0x23001d,_0x2154b3='',_0x1c72f6={};if(this[_0x31a8ba(0x235)]['isVertexAI']())throw new Error(_0x31a8ba(0x206));else{const _0x5b4b50=listFilesParametersToMldev(_0xbdf975);return _0x2154b3=formatMap(_0x31a8ba(0x232),_0x5b4b50[_0x31a8ba(0x1aa)]),_0x1c72f6=_0x5b4b50[_0x31a8ba(0x5fa)],delete _0x5b4b50[_0x31a8ba(0x1aa)],delete _0x5b4b50[_0x31a8ba(0x5fa)],_0x23001d=this['apiClient'][_0x31a8ba(0x239)]({'path':_0x2154b3,'queryParams':_0x1c72f6,'body':JSON['stringify'](_0x5b4b50),'httpMethod':_0x31a8ba(0x500),'httpOptions':(_0x1cd5c5=_0xbdf975[_0x31a8ba(0x43b)])===null||_0x1cd5c5===void 0x0?void 0x0:_0x1cd5c5['httpOptions'],'abortSignal':(_0x4b7f09=_0xbdf975[_0x31a8ba(0x43b)])===null||_0x4b7f09===void 0x0?void 0x0:_0x4b7f09[_0x31a8ba(0x709)]})[_0x31a8ba(0x1f0)](_0xa814bf=>{const _0x19cbf0=_0x31a8ba;return _0xa814bf[_0x19cbf0(0x4cf)]()[_0x19cbf0(0x1f0)](_0x5e7254=>{const _0x4d5bc3=_0x19cbf0,_0x46f9de=_0x5e7254;return _0x46f9de[_0x4d5bc3(0x3a7)]={'headers':_0xa814bf['headers']},_0x46f9de;});}),_0x23001d[_0x31a8ba(0x1f0)](_0x32de7b=>{const _0x1f2d0b=_0x31a8ba,_0x25a540=listFilesResponseFromMldev(_0x32de7b),_0x276766=new ListFilesResponse();return Object[_0x1f2d0b(0x48a)](_0x276766,_0x25a540),_0x276766;});}}async[a3_0x402819(0x523)](_0x4cf087){const _0x2af6ed=a3_0x402819;var _0x4ae20f,_0x132b3b;let _0x16998f,_0x452832='',_0x3a4499={};if(this[_0x2af6ed(0x235)][_0x2af6ed(0x268)]())throw new Error(_0x2af6ed(0x206));else{const _0x5946fb=createFileParametersToMldev(_0x4cf087);return _0x452832=formatMap('upload/v1beta/files',_0x5946fb[_0x2af6ed(0x1aa)]),_0x3a4499=_0x5946fb[_0x2af6ed(0x5fa)],delete _0x5946fb[_0x2af6ed(0x1aa)],delete _0x5946fb['_query'],_0x16998f=this['apiClient'][_0x2af6ed(0x239)]({'path':_0x452832,'queryParams':_0x3a4499,'body':JSON[_0x2af6ed(0x65c)](_0x5946fb),'httpMethod':_0x2af6ed(0x6d7),'httpOptions':(_0x4ae20f=_0x4cf087[_0x2af6ed(0x43b)])===null||_0x4ae20f===void 0x0?void 0x0:_0x4ae20f['httpOptions'],'abortSignal':(_0x132b3b=_0x4cf087['config'])===null||_0x132b3b===void 0x0?void 0x0:_0x132b3b['abortSignal']})['then'](_0x25751e=>{return _0x25751e['json']();}),_0x16998f[_0x2af6ed(0x1f0)](_0x24bdd7=>{const _0x5663fc=createFileResponseFromMldev(_0x24bdd7),_0x3382ce=new CreateFileResponse();return Object['assign'](_0x3382ce,_0x5663fc),_0x3382ce;});}}async[a3_0x402819(0x42b)](_0x3e470c){const _0xb014b4=a3_0x402819;var _0x3f70b2,_0xb3ad8e;let _0x332d4e,_0x4ecee4='',_0xecd559={};if(this[_0xb014b4(0x235)][_0xb014b4(0x268)]())throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.');else{const _0x7c2422=getFileParametersToMldev(_0x3e470c);return _0x4ecee4=formatMap('files/{file}',_0x7c2422['_url']),_0xecd559=_0x7c2422[_0xb014b4(0x5fa)],delete _0x7c2422[_0xb014b4(0x1aa)],delete _0x7c2422[_0xb014b4(0x5fa)],_0x332d4e=this[_0xb014b4(0x235)]['request']({'path':_0x4ecee4,'queryParams':_0xecd559,'body':JSON[_0xb014b4(0x65c)](_0x7c2422),'httpMethod':_0xb014b4(0x500),'httpOptions':(_0x3f70b2=_0x3e470c[_0xb014b4(0x43b)])===null||_0x3f70b2===void 0x0?void 0x0:_0x3f70b2[_0xb014b4(0x5c7)],'abortSignal':(_0xb3ad8e=_0x3e470c[_0xb014b4(0x43b)])===null||_0xb3ad8e===void 0x0?void 0x0:_0xb3ad8e[_0xb014b4(0x709)]})[_0xb014b4(0x1f0)](_0x427331=>{const _0x3903f0=_0xb014b4;return _0x427331[_0x3903f0(0x4cf)]();}),_0x332d4e[_0xb014b4(0x1f0)](_0x73fa27=>{return _0x73fa27;});}}async[a3_0x402819(0x4a4)](_0x2a2d4f){const _0x560bb6=a3_0x402819;var _0x142e39,_0x4c708a;let _0x24a9e8,_0xa00c52='',_0x3903f2={};if(this[_0x560bb6(0x235)][_0x560bb6(0x268)]())throw new Error(_0x560bb6(0x206));else{const _0x444438=deleteFileParametersToMldev(_0x2a2d4f);return _0xa00c52=formatMap(_0x560bb6(0x396),_0x444438[_0x560bb6(0x1aa)]),_0x3903f2=_0x444438['_query'],delete _0x444438['_url'],delete _0x444438[_0x560bb6(0x5fa)],_0x24a9e8=this['apiClient'][_0x560bb6(0x239)]({'path':_0xa00c52,'queryParams':_0x3903f2,'body':JSON[_0x560bb6(0x65c)](_0x444438),'httpMethod':'DELETE','httpOptions':(_0x142e39=_0x2a2d4f['config'])===null||_0x142e39===void 0x0?void 0x0:_0x142e39[_0x560bb6(0x5c7)],'abortSignal':(_0x4c708a=_0x2a2d4f[_0x560bb6(0x43b)])===null||_0x4c708a===void 0x0?void 0x0:_0x4c708a['abortSignal']})[_0x560bb6(0x1f0)](_0x8aae4=>{const _0x7a8721=_0x560bb6;return _0x8aae4[_0x7a8721(0x4cf)]()[_0x7a8721(0x1f0)](_0x1d0458=>{const _0x45995b=_0x7a8721,_0x35b31b=_0x1d0458;return _0x35b31b[_0x45995b(0x3a7)]={'headers':_0x8aae4[_0x45995b(0x70b)]},_0x35b31b;});}),_0x24a9e8[_0x560bb6(0x1f0)](_0x3f0844=>{const _0x3d2422=_0x560bb6,_0x929fa6=deleteFileResponseFromMldev(_0x3f0844),_0x4ba3e0=new DeleteFileResponse();return Object[_0x3d2422(0x48a)](_0x4ba3e0,_0x929fa6),_0x4ba3e0;});}}async[a3_0x402819(0x495)](_0x54c2cb){const _0x495850=a3_0x402819;var _0x18d7b3,_0xff41af;let _0x476038,_0x2a72a2='',_0x397398={};if(this[_0x495850(0x235)]['isVertexAI']())throw new Error(_0x495850(0x206));else{const _0x4658e0=internalRegisterFilesParametersToMldev(_0x54c2cb);return _0x2a72a2=formatMap('files:register',_0x4658e0[_0x495850(0x1aa)]),_0x397398=_0x4658e0[_0x495850(0x5fa)],delete _0x4658e0['_url'],delete _0x4658e0[_0x495850(0x5fa)],_0x476038=this['apiClient'][_0x495850(0x239)]({'path':_0x2a72a2,'queryParams':_0x397398,'body':JSON[_0x495850(0x65c)](_0x4658e0),'httpMethod':'POST','httpOptions':(_0x18d7b3=_0x54c2cb[_0x495850(0x43b)])===null||_0x18d7b3===void 0x0?void 0x0:_0x18d7b3['httpOptions'],'abortSignal':(_0xff41af=_0x54c2cb[_0x495850(0x43b)])===null||_0xff41af===void 0x0?void 0x0:_0xff41af[_0x495850(0x709)]})[_0x495850(0x1f0)](_0x2bc059=>{const _0x167450=_0x495850;return _0x2bc059[_0x167450(0x4cf)]();}),_0x476038[_0x495850(0x1f0)](_0x229334=>{const _0x1a3141=_0x495850,_0x1df0db=registerFilesResponseFromMldev(_0x229334),_0x47534d=new RegisterFilesResponse();return Object[_0x1a3141(0x48a)](_0x47534d,_0x1df0db),_0x47534d;});}}}/**
77
+ * @license
78
+ * Copyright 2025 Google LLC
79
+ * SPDX-License-Identifier: Apache-2.0
80
+ */
81
+ function blobToMldev$2(_0x37b312){const _0xa25f27=a3_0x402819,_0x5312d4={},_0x8f979b=getValueByPath(_0x37b312,['data']);_0x8f979b!=null&&setValueByPath(_0x5312d4,[_0xa25f27(0x5b1)],_0x8f979b);if(getValueByPath(_0x37b312,[_0xa25f27(0x199)])!==undefined)throw new Error(_0xa25f27(0x5c1));const _0x2f18a6=getValueByPath(_0x37b312,[_0xa25f27(0x542)]);return _0x2f18a6!=null&&setValueByPath(_0x5312d4,[_0xa25f27(0x542)],_0x2f18a6),_0x5312d4;}function contentToMldev$2(_0x7a6b18){const _0x2b194b=a3_0x402819,_0x130878={},_0x16c91a=getValueByPath(_0x7a6b18,[_0x2b194b(0x569)]);if(_0x16c91a!=null){let _0x57a4c8=_0x16c91a;Array[_0x2b194b(0x32b)](_0x57a4c8)&&(_0x57a4c8=_0x57a4c8[_0x2b194b(0x6c4)](_0x2b519=>{return partToMldev$2(_0x2b519);})),setValueByPath(_0x130878,[_0x2b194b(0x569)],_0x57a4c8);}const _0x515b90=getValueByPath(_0x7a6b18,[_0x2b194b(0x23a)]);return _0x515b90!=null&&setValueByPath(_0x130878,[_0x2b194b(0x23a)],_0x515b90),_0x130878;}function fileDataToMldev$2(_0x2741f5){const _0x4d63a4=a3_0x402819,_0x14cfaa={};if(getValueByPath(_0x2741f5,[_0x4d63a4(0x199)])!==undefined)throw new Error(_0x4d63a4(0x5c1));const _0x5859ad=getValueByPath(_0x2741f5,[_0x4d63a4(0x218)]);_0x5859ad!=null&&setValueByPath(_0x14cfaa,[_0x4d63a4(0x218)],_0x5859ad);const _0x1bf86c=getValueByPath(_0x2741f5,[_0x4d63a4(0x542)]);return _0x1bf86c!=null&&setValueByPath(_0x14cfaa,['mimeType'],_0x1bf86c),_0x14cfaa;}function functionCallToMldev$2(_0x3964b2){const _0x5e78c3=a3_0x402819,_0x240bc7={},_0x46c94b=getValueByPath(_0x3964b2,['id']);_0x46c94b!=null&&setValueByPath(_0x240bc7,['id'],_0x46c94b);const _0x446f1b=getValueByPath(_0x3964b2,[_0x5e78c3(0x6a1)]);_0x446f1b!=null&&setValueByPath(_0x240bc7,[_0x5e78c3(0x6a1)],_0x446f1b);const _0x5eae0b=getValueByPath(_0x3964b2,[_0x5e78c3(0x3a4)]);_0x5eae0b!=null&&setValueByPath(_0x240bc7,['name'],_0x5eae0b);if(getValueByPath(_0x3964b2,[_0x5e78c3(0x20e)])!==undefined)throw new Error(_0x5e78c3(0x1d3));if(getValueByPath(_0x3964b2,[_0x5e78c3(0x269)])!==undefined)throw new Error(_0x5e78c3(0x4dc));return _0x240bc7;}function functionDeclarationToVertex$1(_0x5112a3){const _0x4acdd0=a3_0x402819,_0x493c18={},_0x48687e=getValueByPath(_0x5112a3,[_0x4acdd0(0x3c3)]);_0x48687e!=null&&setValueByPath(_0x493c18,[_0x4acdd0(0x3c3)],_0x48687e);const _0x9dcad8=getValueByPath(_0x5112a3,[_0x4acdd0(0x3a4)]);_0x9dcad8!=null&&setValueByPath(_0x493c18,[_0x4acdd0(0x3a4)],_0x9dcad8);const _0x4c34bb=getValueByPath(_0x5112a3,[_0x4acdd0(0x460)]);_0x4c34bb!=null&&setValueByPath(_0x493c18,['parameters'],_0x4c34bb);const _0x50f61e=getValueByPath(_0x5112a3,[_0x4acdd0(0x4ad)]);_0x50f61e!=null&&setValueByPath(_0x493c18,['parametersJsonSchema'],_0x50f61e);const _0x537d70=getValueByPath(_0x5112a3,[_0x4acdd0(0x454)]);_0x537d70!=null&&setValueByPath(_0x493c18,[_0x4acdd0(0x454)],_0x537d70);const _0x18523b=getValueByPath(_0x5112a3,[_0x4acdd0(0x62d)]);_0x18523b!=null&&setValueByPath(_0x493c18,[_0x4acdd0(0x62d)],_0x18523b);if(getValueByPath(_0x5112a3,['behavior'])!==undefined)throw new Error(_0x4acdd0(0x297));return _0x493c18;}function generationConfigToVertex$1(_0xb36667){const _0x5860b1=a3_0x402819,_0x4effb7={},_0x484af6=getValueByPath(_0xb36667,[_0x5860b1(0x21a)]);_0x484af6!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x4a2)],_0x484af6);const _0x547d57=getValueByPath(_0xb36667,[_0x5860b1(0x62d)]);_0x547d57!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x62d)],_0x547d57);const _0x24a9c8=getValueByPath(_0xb36667,[_0x5860b1(0x33f)]);_0x24a9c8!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x33f)],_0x24a9c8);const _0x66f1e8=getValueByPath(_0xb36667,[_0x5860b1(0x4d7)]);_0x66f1e8!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x4d7)],_0x66f1e8);const _0xa08bb9=getValueByPath(_0xb36667,[_0x5860b1(0x41d)]);_0xa08bb9!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x41d)],_0xa08bb9);const _0xc1b5ea=getValueByPath(_0xb36667,[_0x5860b1(0x290)]);_0xc1b5ea!=null&&setValueByPath(_0x4effb7,['frequencyPenalty'],_0xc1b5ea);const _0x34f59a=getValueByPath(_0xb36667,[_0x5860b1(0x355)]);_0x34f59a!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x355)],_0x34f59a);const _0x8faa72=getValueByPath(_0xb36667,[_0x5860b1(0x35e)]);_0x8faa72!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x35e)],_0x8faa72);const _0x599aef=getValueByPath(_0xb36667,[_0x5860b1(0x342)]);_0x599aef!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x342)],_0x599aef);const _0x46499e=getValueByPath(_0xb36667,['presencePenalty']);_0x46499e!=null&&setValueByPath(_0x4effb7,['presencePenalty'],_0x46499e);const _0x59683b=getValueByPath(_0xb36667,[_0x5860b1(0x226)]);_0x59683b!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x226)],_0x59683b);const _0x5a73e0=getValueByPath(_0xb36667,[_0x5860b1(0x341)]);_0x5a73e0!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x341)],_0x5a73e0);const _0x17db1b=getValueByPath(_0xb36667,[_0x5860b1(0x597)]);_0x17db1b!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x597)],_0x17db1b);const _0x2861c3=getValueByPath(_0xb36667,[_0x5860b1(0x53e)]);_0x2861c3!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x53e)],_0x2861c3);const _0x529498=getValueByPath(_0xb36667,['routingConfig']);_0x529498!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x3d9)],_0x529498);const _0x25c36b=getValueByPath(_0xb36667,[_0x5860b1(0x39a)]);_0x25c36b!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x39a)],_0x25c36b);const _0x2d21a0=getValueByPath(_0xb36667,['speechConfig']);_0x2d21a0!=null&&setValueByPath(_0x4effb7,['speechConfig'],_0x2d21a0);const _0x375b75=getValueByPath(_0xb36667,[_0x5860b1(0x1ae)]);_0x375b75!=null&&setValueByPath(_0x4effb7,['stopSequences'],_0x375b75);const _0x408241=getValueByPath(_0xb36667,['temperature']);_0x408241!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x59f)],_0x408241);const _0x2779c0=getValueByPath(_0xb36667,['thinkingConfig']);_0x2779c0!=null&&setValueByPath(_0x4effb7,['thinkingConfig'],_0x2779c0);const _0x34551b=getValueByPath(_0xb36667,[_0x5860b1(0x5ad)]);_0x34551b!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x5ad)],_0x34551b);const _0x2f4113=getValueByPath(_0xb36667,['topP']);_0x2f4113!=null&&setValueByPath(_0x4effb7,[_0x5860b1(0x394)],_0x2f4113);if(getValueByPath(_0xb36667,['enableEnhancedCivicAnswers'])!==undefined)throw new Error('enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');return _0x4effb7;}function googleMapsToMldev$2(_0x1932db){const _0x5c8982=a3_0x402819,_0x10556d={};if(getValueByPath(_0x1932db,[_0x5c8982(0x305)])!==undefined)throw new Error(_0x5c8982(0x51e));const _0x5b2aa5=getValueByPath(_0x1932db,[_0x5c8982(0x489)]);return _0x5b2aa5!=null&&setValueByPath(_0x10556d,[_0x5c8982(0x489)],_0x5b2aa5),_0x10556d;}function googleSearchToMldev$2(_0x34d8c5){const _0x20d4ff=a3_0x402819,_0x1bc3cf={};if(getValueByPath(_0x34d8c5,[_0x20d4ff(0x22c)])!==undefined)throw new Error(_0x20d4ff(0x28d));if(getValueByPath(_0x34d8c5,[_0x20d4ff(0x20c)])!==undefined)throw new Error(_0x20d4ff(0x50d));const _0x32ebae=getValueByPath(_0x34d8c5,[_0x20d4ff(0x1b3)]);return _0x32ebae!=null&&setValueByPath(_0x1bc3cf,[_0x20d4ff(0x1b3)],_0x32ebae),_0x1bc3cf;}function liveConnectConfigToMldev$1(_0x3e1ca9,_0x107935){const _0x5e2ba5=a3_0x402819,_0x5c31b4={},_0x2989d7=getValueByPath(_0x3e1ca9,['generationConfig']);_0x107935!==undefined&&_0x2989d7!=null&&setValueByPath(_0x107935,['setup',_0x5e2ba5(0x425)],_0x2989d7);const _0x53a730=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x597)]);_0x107935!==undefined&&_0x53a730!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x425),_0x5e2ba5(0x597)],_0x53a730);const _0x44f1ed=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x59f)]);_0x107935!==undefined&&_0x44f1ed!=null&&setValueByPath(_0x107935,['setup','generationConfig',_0x5e2ba5(0x59f)],_0x44f1ed);const _0x6f0669=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x394)]);_0x107935!==undefined&&_0x6f0669!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x425),'topP'],_0x6f0669);const _0x2f36c9=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x5ad)]);_0x107935!==undefined&&_0x2f36c9!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),'generationConfig',_0x5e2ba5(0x5ad)],_0x2f36c9);const _0x22fcb2=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x35e)]);_0x107935!==undefined&&_0x22fcb2!=null&&setValueByPath(_0x107935,['setup','generationConfig',_0x5e2ba5(0x35e)],_0x22fcb2);const _0x2d5131=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x342)]);_0x107935!==undefined&&_0x2d5131!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x425),_0x5e2ba5(0x342)],_0x2d5131);const _0x2d93c8=getValueByPath(_0x3e1ca9,['seed']);_0x107935!==undefined&&_0x2d93c8!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),'generationConfig','seed'],_0x2d93c8);const _0x45b613=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x2dc)]);_0x107935!==undefined&&_0x45b613!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x425),_0x5e2ba5(0x2dc)],tLiveSpeechConfig(_0x45b613));const _0x3024dc=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x3c6)]);_0x107935!==undefined&&_0x3024dc!=null&&setValueByPath(_0x107935,['setup','generationConfig',_0x5e2ba5(0x3c6)],_0x3024dc);const _0x3d553d=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x41d)]);_0x107935!==undefined&&_0x3d553d!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x425),'enableAffectiveDialog'],_0x3d553d);const _0x4cd190=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x415)]);_0x107935!==undefined&&_0x4cd190!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),'systemInstruction'],contentToMldev$2(tContent(_0x4cd190)));const _0x21dc6e=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x648)]);if(_0x107935!==undefined&&_0x21dc6e!=null){let _0x1268ce=tTools(_0x21dc6e);Array['isArray'](_0x1268ce)&&(_0x1268ce=_0x1268ce[_0x5e2ba5(0x6c4)](_0x4b07ce=>{return toolToMldev$2(tTool(_0x4b07ce));})),setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x648)],_0x1268ce);}const _0x38edd8=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x30d)]);_0x107935!==undefined&&_0x38edd8!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x30d)],sessionResumptionConfigToMldev$1(_0x38edd8));const _0x533eff=getValueByPath(_0x3e1ca9,['inputAudioTranscription']);_0x107935!==undefined&&_0x533eff!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x5fe)],_0x533eff);const _0xba5782=getValueByPath(_0x3e1ca9,['outputAudioTranscription']);_0x107935!==undefined&&_0xba5782!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x21c)],_0xba5782);const _0x436dd7=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x598)]);_0x107935!==undefined&&_0x436dd7!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x598)],_0x436dd7);const _0x3f1fb2=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x667)]);_0x107935!==undefined&&_0x3f1fb2!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),'contextWindowCompression'],_0x3f1fb2);const _0x2a3a52=getValueByPath(_0x3e1ca9,[_0x5e2ba5(0x325)]);_0x107935!==undefined&&_0x2a3a52!=null&&setValueByPath(_0x107935,[_0x5e2ba5(0x1ee),_0x5e2ba5(0x325)],_0x2a3a52);if(getValueByPath(_0x3e1ca9,['explicitVadSignal'])!==undefined)throw new Error(_0x5e2ba5(0x257));return _0x5c31b4;}function liveConnectConfigToVertex(_0x1be9a1,_0x5c1116){const _0x8cc51f=a3_0x402819,_0x101edc={},_0x274ebe=getValueByPath(_0x1be9a1,[_0x8cc51f(0x425)]);_0x5c1116!==undefined&&_0x274ebe!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x425)],generationConfigToVertex$1(_0x274ebe));const _0x2a7b0a=getValueByPath(_0x1be9a1,['responseModalities']);_0x5c1116!==undefined&&_0x2a7b0a!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x425),'responseModalities'],_0x2a7b0a);const _0x4a856f=getValueByPath(_0x1be9a1,[_0x8cc51f(0x59f)]);_0x5c1116!==undefined&&_0x4a856f!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'generationConfig',_0x8cc51f(0x59f)],_0x4a856f);const _0x34fb5a=getValueByPath(_0x1be9a1,['topP']);_0x5c1116!==undefined&&_0x34fb5a!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'generationConfig',_0x8cc51f(0x394)],_0x34fb5a);const _0x35d41e=getValueByPath(_0x1be9a1,[_0x8cc51f(0x5ad)]);_0x5c1116!==undefined&&_0x35d41e!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x425),_0x8cc51f(0x5ad)],_0x35d41e);const _0x27e857=getValueByPath(_0x1be9a1,[_0x8cc51f(0x35e)]);_0x5c1116!==undefined&&_0x27e857!=null&&setValueByPath(_0x5c1116,['setup',_0x8cc51f(0x425),'maxOutputTokens'],_0x27e857);const _0x4fb718=getValueByPath(_0x1be9a1,['mediaResolution']);_0x5c1116!==undefined&&_0x4fb718!=null&&setValueByPath(_0x5c1116,['setup','generationConfig',_0x8cc51f(0x342)],_0x4fb718);const _0xfe4c80=getValueByPath(_0x1be9a1,[_0x8cc51f(0x39a)]);_0x5c1116!==undefined&&_0xfe4c80!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'generationConfig',_0x8cc51f(0x39a)],_0xfe4c80);const _0x51111b=getValueByPath(_0x1be9a1,[_0x8cc51f(0x2dc)]);_0x5c1116!==undefined&&_0x51111b!=null&&setValueByPath(_0x5c1116,['setup',_0x8cc51f(0x425),_0x8cc51f(0x2dc)],tLiveSpeechConfig(_0x51111b));const _0x2b9c3e=getValueByPath(_0x1be9a1,['thinkingConfig']);_0x5c1116!==undefined&&_0x2b9c3e!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'generationConfig',_0x8cc51f(0x3c6)],_0x2b9c3e);const _0x64d68a=getValueByPath(_0x1be9a1,[_0x8cc51f(0x41d)]);_0x5c1116!==undefined&&_0x64d68a!=null&&setValueByPath(_0x5c1116,['setup',_0x8cc51f(0x425),'enableAffectiveDialog'],_0x64d68a);const _0x1bf496=getValueByPath(_0x1be9a1,[_0x8cc51f(0x415)]);_0x5c1116!==undefined&&_0x1bf496!=null&&setValueByPath(_0x5c1116,['setup',_0x8cc51f(0x415)],tContent(_0x1bf496));const _0x3721af=getValueByPath(_0x1be9a1,[_0x8cc51f(0x648)]);if(_0x5c1116!==undefined&&_0x3721af!=null){let _0x10cf81=tTools(_0x3721af);Array[_0x8cc51f(0x32b)](_0x10cf81)&&(_0x10cf81=_0x10cf81['map'](_0x2efc1c=>{return toolToVertex$1(tTool(_0x2efc1c));})),setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x648)],_0x10cf81);}const _0x27133d=getValueByPath(_0x1be9a1,['sessionResumption']);_0x5c1116!==undefined&&_0x27133d!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x30d)],_0x27133d);const _0x150521=getValueByPath(_0x1be9a1,['inputAudioTranscription']);_0x5c1116!==undefined&&_0x150521!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x5fe)],_0x150521);const _0x31af06=getValueByPath(_0x1be9a1,[_0x8cc51f(0x21c)]);_0x5c1116!==undefined&&_0x31af06!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'outputAudioTranscription'],_0x31af06);const _0x5b6fb8=getValueByPath(_0x1be9a1,[_0x8cc51f(0x598)]);_0x5c1116!==undefined&&_0x5b6fb8!=null&&setValueByPath(_0x5c1116,['setup',_0x8cc51f(0x598)],_0x5b6fb8);const _0x49fce4=getValueByPath(_0x1be9a1,[_0x8cc51f(0x667)]);_0x5c1116!==undefined&&_0x49fce4!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'contextWindowCompression'],_0x49fce4);const _0x4495a2=getValueByPath(_0x1be9a1,[_0x8cc51f(0x325)]);_0x5c1116!==undefined&&_0x4495a2!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),_0x8cc51f(0x325)],_0x4495a2);const _0x431ba6=getValueByPath(_0x1be9a1,[_0x8cc51f(0x223)]);return _0x5c1116!==undefined&&_0x431ba6!=null&&setValueByPath(_0x5c1116,[_0x8cc51f(0x1ee),'explicitVadSignal'],_0x431ba6),_0x101edc;}function liveConnectParametersToMldev(_0x5eab15,_0x5c2aed){const _0x1d2e24=a3_0x402819,_0x38e7c1={},_0x548638=getValueByPath(_0x5c2aed,[_0x1d2e24(0x3f6)]);_0x548638!=null&&setValueByPath(_0x38e7c1,[_0x1d2e24(0x1ee),_0x1d2e24(0x3f6)],tModel(_0x5eab15,_0x548638));const _0xaae833=getValueByPath(_0x5c2aed,[_0x1d2e24(0x43b)]);return _0xaae833!=null&&setValueByPath(_0x38e7c1,[_0x1d2e24(0x43b)],liveConnectConfigToMldev$1(_0xaae833,_0x38e7c1)),_0x38e7c1;}function liveConnectParametersToVertex(_0x5419ff,_0x369e32){const _0x416505=a3_0x402819,_0x1a3def={},_0x55d7ed=getValueByPath(_0x369e32,[_0x416505(0x3f6)]);_0x55d7ed!=null&&setValueByPath(_0x1a3def,[_0x416505(0x1ee),_0x416505(0x3f6)],tModel(_0x5419ff,_0x55d7ed));const _0x2cb2b3=getValueByPath(_0x369e32,['config']);return _0x2cb2b3!=null&&setValueByPath(_0x1a3def,[_0x416505(0x43b)],liveConnectConfigToVertex(_0x2cb2b3,_0x1a3def)),_0x1a3def;}function liveMusicSetConfigParametersToMldev(_0x47c1d3){const _0x344206=a3_0x402819,_0x555a1d={},_0x5b6140=getValueByPath(_0x47c1d3,[_0x344206(0x641)]);return _0x5b6140!=null&&setValueByPath(_0x555a1d,[_0x344206(0x641)],_0x5b6140),_0x555a1d;}function liveMusicSetWeightedPromptsParametersToMldev(_0x137cab){const _0x1d1308=a3_0x402819,_0x842cc0={},_0xf896ba=getValueByPath(_0x137cab,['weightedPrompts']);if(_0xf896ba!=null){let _0xc1882d=_0xf896ba;Array[_0x1d1308(0x32b)](_0xc1882d)&&(_0xc1882d=_0xc1882d[_0x1d1308(0x6c4)](_0x21cf1d=>{return _0x21cf1d;})),setValueByPath(_0x842cc0,['weightedPrompts'],_0xc1882d);}return _0x842cc0;}function liveSendRealtimeInputParametersToMldev(_0x18e93c){const _0x441b07=a3_0x402819,_0x3ee25c={},_0x1c85fc=getValueByPath(_0x18e93c,[_0x441b07(0x5a9)]);if(_0x1c85fc!=null){let _0x1a0318=tBlobs(_0x1c85fc);Array[_0x441b07(0x32b)](_0x1a0318)&&(_0x1a0318=_0x1a0318[_0x441b07(0x6c4)](_0x5d4728=>{return blobToMldev$2(_0x5d4728);})),setValueByPath(_0x3ee25c,['mediaChunks'],_0x1a0318);}const _0x462abf=getValueByPath(_0x18e93c,[_0x441b07(0x6bb)]);_0x462abf!=null&&setValueByPath(_0x3ee25c,['audio'],blobToMldev$2(tAudioBlob(_0x462abf)));const _0x5a7786=getValueByPath(_0x18e93c,[_0x441b07(0x361)]);_0x5a7786!=null&&setValueByPath(_0x3ee25c,[_0x441b07(0x361)],_0x5a7786);const _0x4ad331=getValueByPath(_0x18e93c,['video']);_0x4ad331!=null&&setValueByPath(_0x3ee25c,[_0x441b07(0x5f6)],blobToMldev$2(tImageBlob(_0x4ad331)));const _0x318c67=getValueByPath(_0x18e93c,[_0x441b07(0x1a9)]);_0x318c67!=null&&setValueByPath(_0x3ee25c,[_0x441b07(0x1a9)],_0x318c67);const _0x34c9b7=getValueByPath(_0x18e93c,['activityStart']);_0x34c9b7!=null&&setValueByPath(_0x3ee25c,[_0x441b07(0x19e)],_0x34c9b7);const _0x1c9419=getValueByPath(_0x18e93c,['activityEnd']);return _0x1c9419!=null&&setValueByPath(_0x3ee25c,[_0x441b07(0x5ea)],_0x1c9419),_0x3ee25c;}function liveSendRealtimeInputParametersToVertex(_0x22f095){const _0x3bc15=a3_0x402819,_0x1de37b={},_0x376e83=getValueByPath(_0x22f095,[_0x3bc15(0x5a9)]);if(_0x376e83!=null){let _0x238c2b=tBlobs(_0x376e83);Array['isArray'](_0x238c2b)&&(_0x238c2b=_0x238c2b[_0x3bc15(0x6c4)](_0x3addcb=>{return _0x3addcb;})),setValueByPath(_0x1de37b,['mediaChunks'],_0x238c2b);}const _0x108b99=getValueByPath(_0x22f095,[_0x3bc15(0x6bb)]);_0x108b99!=null&&setValueByPath(_0x1de37b,[_0x3bc15(0x6bb)],tAudioBlob(_0x108b99));const _0xfb6d3c=getValueByPath(_0x22f095,['audioStreamEnd']);_0xfb6d3c!=null&&setValueByPath(_0x1de37b,[_0x3bc15(0x361)],_0xfb6d3c);const _0x205c7f=getValueByPath(_0x22f095,['video']);_0x205c7f!=null&&setValueByPath(_0x1de37b,[_0x3bc15(0x5f6)],tImageBlob(_0x205c7f));const _0x1c24f7=getValueByPath(_0x22f095,[_0x3bc15(0x1a9)]);_0x1c24f7!=null&&setValueByPath(_0x1de37b,[_0x3bc15(0x1a9)],_0x1c24f7);const _0x1bac60=getValueByPath(_0x22f095,[_0x3bc15(0x19e)]);_0x1bac60!=null&&setValueByPath(_0x1de37b,[_0x3bc15(0x19e)],_0x1bac60);const _0x402864=getValueByPath(_0x22f095,[_0x3bc15(0x5ea)]);return _0x402864!=null&&setValueByPath(_0x1de37b,[_0x3bc15(0x5ea)],_0x402864),_0x1de37b;}function liveServerMessageFromVertex(_0x450235){const _0x282e9f=a3_0x402819,_0x17cc45={},_0x41407e=getValueByPath(_0x450235,[_0x282e9f(0x3be)]);_0x41407e!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x3be)],_0x41407e);const _0x4994ab=getValueByPath(_0x450235,['serverContent']);_0x4994ab!=null&&setValueByPath(_0x17cc45,['serverContent'],_0x4994ab);const _0x886b99=getValueByPath(_0x450235,['toolCall']);_0x886b99!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x248)],_0x886b99);const _0x17750c=getValueByPath(_0x450235,[_0x282e9f(0x3c2)]);_0x17750c!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x3c2)],_0x17750c);const _0x321524=getValueByPath(_0x450235,[_0x282e9f(0x2d4)]);_0x321524!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x2d4)],usageMetadataFromVertex(_0x321524));const _0x4b7563=getValueByPath(_0x450235,[_0x282e9f(0x516)]);_0x4b7563!=null&&setValueByPath(_0x17cc45,['goAway'],_0x4b7563);const _0x5a42df=getValueByPath(_0x450235,[_0x282e9f(0x646)]);_0x5a42df!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x646)],_0x5a42df);const _0x4b518c=getValueByPath(_0x450235,['voiceActivityDetectionSignal']);_0x4b518c!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x589)],_0x4b518c);const _0x10bd03=getValueByPath(_0x450235,[_0x282e9f(0x4a0)]);return _0x10bd03!=null&&setValueByPath(_0x17cc45,[_0x282e9f(0x4a0)],voiceActivityFromVertex(_0x10bd03)),_0x17cc45;}function partToMldev$2(_0x92e96d){const _0x290de5=a3_0x402819,_0x58e471={},_0x433c5b=getValueByPath(_0x92e96d,[_0x290de5(0x342)]);_0x433c5b!=null&&setValueByPath(_0x58e471,[_0x290de5(0x342)],_0x433c5b);const _0x58fef8=getValueByPath(_0x92e96d,[_0x290de5(0x4a6)]);_0x58fef8!=null&&setValueByPath(_0x58e471,[_0x290de5(0x4a6)],_0x58fef8);const _0x53403d=getValueByPath(_0x92e96d,[_0x290de5(0x633)]);_0x53403d!=null&&setValueByPath(_0x58e471,[_0x290de5(0x633)],_0x53403d);const _0x16cc3a=getValueByPath(_0x92e96d,[_0x290de5(0x2c3)]);_0x16cc3a!=null&&setValueByPath(_0x58e471,['fileData'],fileDataToMldev$2(_0x16cc3a));const _0x1a7b94=getValueByPath(_0x92e96d,[_0x290de5(0x45f)]);_0x1a7b94!=null&&setValueByPath(_0x58e471,[_0x290de5(0x45f)],functionCallToMldev$2(_0x1a7b94));const _0x5ed6cb=getValueByPath(_0x92e96d,[_0x290de5(0x483)]);_0x5ed6cb!=null&&setValueByPath(_0x58e471,['functionResponse'],_0x5ed6cb);const _0xf1d325=getValueByPath(_0x92e96d,[_0x290de5(0x284)]);_0xf1d325!=null&&setValueByPath(_0x58e471,[_0x290de5(0x284)],blobToMldev$2(_0xf1d325));const _0x1e577c=getValueByPath(_0x92e96d,[_0x290de5(0x1a9)]);_0x1e577c!=null&&setValueByPath(_0x58e471,[_0x290de5(0x1a9)],_0x1e577c);const _0x3f6e3a=getValueByPath(_0x92e96d,['thought']);_0x3f6e3a!=null&&setValueByPath(_0x58e471,[_0x290de5(0x56f)],_0x3f6e3a);const _0x376a4a=getValueByPath(_0x92e96d,[_0x290de5(0x38c)]);_0x376a4a!=null&&setValueByPath(_0x58e471,[_0x290de5(0x38c)],_0x376a4a);const _0x27fde5=getValueByPath(_0x92e96d,[_0x290de5(0x703)]);return _0x27fde5!=null&&setValueByPath(_0x58e471,['videoMetadata'],_0x27fde5),_0x58e471;}function sessionResumptionConfigToMldev$1(_0x27eb3e){const _0x400185=a3_0x402819,_0x135951={},_0x262de2=getValueByPath(_0x27eb3e,[_0x400185(0x47f)]);_0x262de2!=null&&setValueByPath(_0x135951,[_0x400185(0x47f)],_0x262de2);if(getValueByPath(_0x27eb3e,[_0x400185(0x446)])!==undefined)throw new Error(_0x400185(0x6f0));return _0x135951;}function toolToMldev$2(_0x15df23){const _0x4f01a6=a3_0x402819,_0x2ac212={};if(getValueByPath(_0x15df23,[_0x4f01a6(0x472)])!==undefined)throw new Error(_0x4f01a6(0x4ab));const _0x2d6354=getValueByPath(_0x15df23,[_0x4f01a6(0x5bf)]);_0x2d6354!=null&&setValueByPath(_0x2ac212,['computerUse'],_0x2d6354);const _0x569721=getValueByPath(_0x15df23,[_0x4f01a6(0x375)]);_0x569721!=null&&setValueByPath(_0x2ac212,['fileSearch'],_0x569721);const _0x325265=getValueByPath(_0x15df23,['codeExecution']);_0x325265!=null&&setValueByPath(_0x2ac212,[_0x4f01a6(0x5e2)],_0x325265);if(getValueByPath(_0x15df23,['enterpriseWebSearch'])!==undefined)throw new Error('enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x5d7c2c=getValueByPath(_0x15df23,[_0x4f01a6(0x5f8)]);if(_0x5d7c2c!=null){let _0x1ed710=_0x5d7c2c;Array['isArray'](_0x1ed710)&&(_0x1ed710=_0x1ed710[_0x4f01a6(0x6c4)](_0x5d85e4=>{return _0x5d85e4;})),setValueByPath(_0x2ac212,[_0x4f01a6(0x5f8)],_0x1ed710);}const _0x38ec9b=getValueByPath(_0x15df23,['googleMaps']);_0x38ec9b!=null&&setValueByPath(_0x2ac212,[_0x4f01a6(0x62b)],googleMapsToMldev$2(_0x38ec9b));const _0x94baf7=getValueByPath(_0x15df23,[_0x4f01a6(0x5ed)]);_0x94baf7!=null&&setValueByPath(_0x2ac212,['googleSearch'],googleSearchToMldev$2(_0x94baf7));const _0x43362d=getValueByPath(_0x15df23,[_0x4f01a6(0x3f1)]);_0x43362d!=null&&setValueByPath(_0x2ac212,[_0x4f01a6(0x3f1)],_0x43362d);const _0x28f446=getValueByPath(_0x15df23,[_0x4f01a6(0x55e)]);return _0x28f446!=null&&setValueByPath(_0x2ac212,[_0x4f01a6(0x55e)],_0x28f446),_0x2ac212;}function toolToVertex$1(_0x5eb98c){const _0x308b9e=a3_0x402819,_0x200a1e={},_0x2647bb=getValueByPath(_0x5eb98c,[_0x308b9e(0x472)]);_0x2647bb!=null&&setValueByPath(_0x200a1e,[_0x308b9e(0x472)],_0x2647bb);const _0x191b92=getValueByPath(_0x5eb98c,[_0x308b9e(0x5bf)]);_0x191b92!=null&&setValueByPath(_0x200a1e,[_0x308b9e(0x5bf)],_0x191b92);if(getValueByPath(_0x5eb98c,[_0x308b9e(0x375)])!==undefined)throw new Error('fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.');const _0x212565=getValueByPath(_0x5eb98c,[_0x308b9e(0x5e2)]);_0x212565!=null&&setValueByPath(_0x200a1e,[_0x308b9e(0x5e2)],_0x212565);const _0x5f31cb=getValueByPath(_0x5eb98c,[_0x308b9e(0x5af)]);_0x5f31cb!=null&&setValueByPath(_0x200a1e,[_0x308b9e(0x5af)],_0x5f31cb);const _0x120070=getValueByPath(_0x5eb98c,['functionDeclarations']);if(_0x120070!=null){let _0x503670=_0x120070;Array[_0x308b9e(0x32b)](_0x503670)&&(_0x503670=_0x503670[_0x308b9e(0x6c4)](_0x147473=>{return functionDeclarationToVertex$1(_0x147473);})),setValueByPath(_0x200a1e,[_0x308b9e(0x5f8)],_0x503670);}const _0x28845f=getValueByPath(_0x5eb98c,[_0x308b9e(0x62b)]);_0x28845f!=null&&setValueByPath(_0x200a1e,[_0x308b9e(0x62b)],_0x28845f);const _0x3e51bf=getValueByPath(_0x5eb98c,[_0x308b9e(0x5ed)]);_0x3e51bf!=null&&setValueByPath(_0x200a1e,['googleSearch'],_0x3e51bf);const _0x2a535b=getValueByPath(_0x5eb98c,['googleSearchRetrieval']);_0x2a535b!=null&&setValueByPath(_0x200a1e,['googleSearchRetrieval'],_0x2a535b);const _0xb9f67e=getValueByPath(_0x5eb98c,[_0x308b9e(0x55e)]);return _0xb9f67e!=null&&setValueByPath(_0x200a1e,[_0x308b9e(0x55e)],_0xb9f67e),_0x200a1e;}function usageMetadataFromVertex(_0xd5a354){const _0x29d06b=a3_0x402819,_0x10b291={},_0x16faa2=getValueByPath(_0xd5a354,[_0x29d06b(0x560)]);_0x16faa2!=null&&setValueByPath(_0x10b291,[_0x29d06b(0x560)],_0x16faa2);const _0x4d4fbd=getValueByPath(_0xd5a354,[_0x29d06b(0x478)]);_0x4d4fbd!=null&&setValueByPath(_0x10b291,['cachedContentTokenCount'],_0x4d4fbd);const _0x4a2ea3=getValueByPath(_0xd5a354,[_0x29d06b(0x2b3)]);_0x4a2ea3!=null&&setValueByPath(_0x10b291,[_0x29d06b(0x5da)],_0x4a2ea3);const _0x2070f7=getValueByPath(_0xd5a354,[_0x29d06b(0x67b)]);_0x2070f7!=null&&setValueByPath(_0x10b291,['toolUsePromptTokenCount'],_0x2070f7);const _0x309461=getValueByPath(_0xd5a354,[_0x29d06b(0x685)]);_0x309461!=null&&setValueByPath(_0x10b291,[_0x29d06b(0x685)],_0x309461);const _0x3db34e=getValueByPath(_0xd5a354,[_0x29d06b(0x299)]);_0x3db34e!=null&&setValueByPath(_0x10b291,[_0x29d06b(0x299)],_0x3db34e);const _0x5e0399=getValueByPath(_0xd5a354,[_0x29d06b(0x3ee)]);if(_0x5e0399!=null){let _0x1e00f4=_0x5e0399;Array['isArray'](_0x1e00f4)&&(_0x1e00f4=_0x1e00f4[_0x29d06b(0x6c4)](_0x1130eb=>{return _0x1130eb;})),setValueByPath(_0x10b291,[_0x29d06b(0x3ee)],_0x1e00f4);}const _0x2ea1c2=getValueByPath(_0xd5a354,['cacheTokensDetails']);if(_0x2ea1c2!=null){let _0x57f84b=_0x2ea1c2;Array[_0x29d06b(0x32b)](_0x57f84b)&&(_0x57f84b=_0x57f84b[_0x29d06b(0x6c4)](_0x51542b=>{return _0x51542b;})),setValueByPath(_0x10b291,[_0x29d06b(0x4bf)],_0x57f84b);}const _0x4b7d05=getValueByPath(_0xd5a354,['candidatesTokensDetails']);if(_0x4b7d05!=null){let _0x5645dc=_0x4b7d05;Array['isArray'](_0x5645dc)&&(_0x5645dc=_0x5645dc[_0x29d06b(0x6c4)](_0xa8edd5=>{return _0xa8edd5;})),setValueByPath(_0x10b291,[_0x29d06b(0x2a8)],_0x5645dc);}const _0x4a386d=getValueByPath(_0xd5a354,[_0x29d06b(0x6b6)]);if(_0x4a386d!=null){let _0x351934=_0x4a386d;Array['isArray'](_0x351934)&&(_0x351934=_0x351934[_0x29d06b(0x6c4)](_0xff1f4a=>{return _0xff1f4a;})),setValueByPath(_0x10b291,[_0x29d06b(0x6b6)],_0x351934);}const _0x3a6c42=getValueByPath(_0xd5a354,[_0x29d06b(0x3b3)]);return _0x3a6c42!=null&&setValueByPath(_0x10b291,[_0x29d06b(0x3b3)],_0x3a6c42),_0x10b291;}function voiceActivityFromVertex(_0x5586a7){const _0xb4f1d3=a3_0x402819,_0x537c19={},_0x56108f=getValueByPath(_0x5586a7,[_0xb4f1d3(0x247)]);return _0x56108f!=null&&setValueByPath(_0x537c19,[_0xb4f1d3(0x34f)],_0x56108f),_0x537c19;}/**
82
+ * @license
83
+ * Copyright 2025 Google LLC
84
+ * SPDX-License-Identifier: Apache-2.0
85
+ */
86
+ function blobToMldev$1(_0x37befe,_0x10d7ee){const _0x280be7=a3_0x402819,_0x1c063b={},_0x2e0d93=getValueByPath(_0x37befe,[_0x280be7(0x5b1)]);_0x2e0d93!=null&&setValueByPath(_0x1c063b,[_0x280be7(0x5b1)],_0x2e0d93);if(getValueByPath(_0x37befe,[_0x280be7(0x199)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x5dbd2e=getValueByPath(_0x37befe,['mimeType']);return _0x5dbd2e!=null&&setValueByPath(_0x1c063b,['mimeType'],_0x5dbd2e),_0x1c063b;}function candidateFromMldev(_0x2055c1,_0xfe5d5f){const _0x21f92c=a3_0x402819,_0x1cfaf1={},_0x35d619=getValueByPath(_0x2055c1,[_0x21f92c(0x345)]);_0x35d619!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x345)],_0x35d619);const _0x211555=getValueByPath(_0x2055c1,[_0x21f92c(0x56b)]);_0x211555!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x56b)],citationMetadataFromMldev(_0x211555));const _0xb98dff=getValueByPath(_0x2055c1,[_0x21f92c(0x48e)]);_0xb98dff!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x48e)],_0xb98dff);const _0x4a589c=getValueByPath(_0x2055c1,['finishReason']);_0x4a589c!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x4da)],_0x4a589c);const _0x39cdfd=getValueByPath(_0x2055c1,[_0x21f92c(0x60d)]);_0x39cdfd!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x60d)],_0x39cdfd);const _0x34d6be=getValueByPath(_0x2055c1,[_0x21f92c(0x4e6)]);_0x34d6be!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x4e6)],_0x34d6be);const _0x166f1c=getValueByPath(_0x2055c1,[_0x21f92c(0x436)]);_0x166f1c!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x436)],_0x166f1c);const _0x565bdd=getValueByPath(_0x2055c1,[_0x21f92c(0x49f)]);_0x565bdd!=null&&setValueByPath(_0x1cfaf1,[_0x21f92c(0x49f)],_0x565bdd);const _0x155c6c=getValueByPath(_0x2055c1,['safetyRatings']);if(_0x155c6c!=null){let _0x14da71=_0x155c6c;Array[_0x21f92c(0x32b)](_0x14da71)&&(_0x14da71=_0x14da71[_0x21f92c(0x6c4)](_0x403415=>{return _0x403415;})),setValueByPath(_0x1cfaf1,[_0x21f92c(0x24f)],_0x14da71);}const _0x55fd2e=getValueByPath(_0x2055c1,[_0x21f92c(0x65f)]);return _0x55fd2e!=null&&setValueByPath(_0x1cfaf1,['urlContextMetadata'],_0x55fd2e),_0x1cfaf1;}function citationMetadataFromMldev(_0x379cf9,_0x84f723){const _0x44ee59=a3_0x402819,_0x5d2a91={},_0x3ac8a7=getValueByPath(_0x379cf9,[_0x44ee59(0x530)]);if(_0x3ac8a7!=null){let _0x45380a=_0x3ac8a7;Array[_0x44ee59(0x32b)](_0x45380a)&&(_0x45380a=_0x45380a[_0x44ee59(0x6c4)](_0x557c45=>{return _0x557c45;})),setValueByPath(_0x5d2a91,[_0x44ee59(0x1b2)],_0x45380a);}return _0x5d2a91;}function computeTokensParametersToVertex(_0x31c2e8,_0x1d84d4,_0x1b1580){const _0x586867=a3_0x402819,_0x596a3f={},_0x2d2085=getValueByPath(_0x1d84d4,['model']);_0x2d2085!=null&&setValueByPath(_0x596a3f,['_url',_0x586867(0x3f6)],tModel(_0x31c2e8,_0x2d2085));const _0x22accd=getValueByPath(_0x1d84d4,[_0x586867(0x695)]);if(_0x22accd!=null){let _0x30121a=tContents(_0x22accd);Array[_0x586867(0x32b)](_0x30121a)&&(_0x30121a=_0x30121a[_0x586867(0x6c4)](_0x43d605=>{return _0x43d605;})),setValueByPath(_0x596a3f,[_0x586867(0x695)],_0x30121a);}return _0x596a3f;}function computeTokensResponseFromVertex(_0x402fc0,_0x2fa7cd){const _0x14d755=a3_0x402819,_0x1123e6={},_0x5d9ad5=getValueByPath(_0x402fc0,[_0x14d755(0x3a7)]);_0x5d9ad5!=null&&setValueByPath(_0x1123e6,['sdkHttpResponse'],_0x5d9ad5);const _0x27c22b=getValueByPath(_0x402fc0,[_0x14d755(0x4b9)]);if(_0x27c22b!=null){let _0x4313f7=_0x27c22b;Array['isArray'](_0x4313f7)&&(_0x4313f7=_0x4313f7[_0x14d755(0x6c4)](_0x3f696a=>{return _0x3f696a;})),setValueByPath(_0x1123e6,[_0x14d755(0x4b9)],_0x4313f7);}return _0x1123e6;}function contentEmbeddingFromVertex(_0x3119b3,_0x4260bf){const _0x1e1a67=a3_0x402819,_0x46aed8={},_0x4acb37=getValueByPath(_0x3119b3,['values']);_0x4acb37!=null&&setValueByPath(_0x46aed8,[_0x1e1a67(0x258)],_0x4acb37);const _0x251f0b=getValueByPath(_0x3119b3,[_0x1e1a67(0x5f2)]);return _0x251f0b!=null&&setValueByPath(_0x46aed8,[_0x1e1a67(0x5f2)],contentEmbeddingStatisticsFromVertex(_0x251f0b)),_0x46aed8;}function contentEmbeddingStatisticsFromVertex(_0x1a8a0d,_0x34f464){const _0x23a0ee=a3_0x402819,_0x41f1a8={},_0x1550d7=getValueByPath(_0x1a8a0d,['truncated']);_0x1550d7!=null&&setValueByPath(_0x41f1a8,['truncated'],_0x1550d7);const _0x4facd8=getValueByPath(_0x1a8a0d,['token_count']);return _0x4facd8!=null&&setValueByPath(_0x41f1a8,[_0x23a0ee(0x48e)],_0x4facd8),_0x41f1a8;}function contentToMldev$1(_0x472809,_0x2a5730){const _0x4b6889=a3_0x402819,_0x476209={},_0xda9c66=getValueByPath(_0x472809,[_0x4b6889(0x569)]);if(_0xda9c66!=null){let _0x571d6a=_0xda9c66;Array['isArray'](_0x571d6a)&&(_0x571d6a=_0x571d6a['map'](_0x184053=>{return partToMldev$1(_0x184053);})),setValueByPath(_0x476209,[_0x4b6889(0x569)],_0x571d6a);}const _0x248625=getValueByPath(_0x472809,[_0x4b6889(0x23a)]);return _0x248625!=null&&setValueByPath(_0x476209,[_0x4b6889(0x23a)],_0x248625),_0x476209;}function controlReferenceConfigToVertex(_0x2035c7,_0x1d78a0){const _0x1bf6f8=a3_0x402819,_0x26c56c={},_0x3dce45=getValueByPath(_0x2035c7,[_0x1bf6f8(0x558)]);_0x3dce45!=null&&setValueByPath(_0x26c56c,['controlType'],_0x3dce45);const _0x5bdffd=getValueByPath(_0x2035c7,[_0x1bf6f8(0x48c)]);return _0x5bdffd!=null&&setValueByPath(_0x26c56c,[_0x1bf6f8(0x58d)],_0x5bdffd),_0x26c56c;}function countTokensConfigToMldev(_0x174787,_0x2d8ddc){const _0x2e0d1e=a3_0x402819,_0x59923f={};if(getValueByPath(_0x174787,[_0x2e0d1e(0x415)])!==undefined)throw new Error(_0x2e0d1e(0x376));if(getValueByPath(_0x174787,['tools'])!==undefined)throw new Error(_0x2e0d1e(0x3b7));if(getValueByPath(_0x174787,[_0x2e0d1e(0x425)])!==undefined)throw new Error(_0x2e0d1e(0x6c5));return _0x59923f;}function countTokensConfigToVertex(_0x5cbb99,_0x3f6e00,_0x4eb752){const _0x54adca=a3_0x402819,_0x2d3bc4={},_0x5bc5fc=getValueByPath(_0x5cbb99,[_0x54adca(0x415)]);_0x3f6e00!==undefined&&_0x5bc5fc!=null&&setValueByPath(_0x3f6e00,[_0x54adca(0x415)],tContent(_0x5bc5fc));const _0x4ff016=getValueByPath(_0x5cbb99,['tools']);if(_0x3f6e00!==undefined&&_0x4ff016!=null){let _0x212f77=_0x4ff016;Array[_0x54adca(0x32b)](_0x212f77)&&(_0x212f77=_0x212f77['map'](_0x1a567a=>{return toolToVertex(_0x1a567a);})),setValueByPath(_0x3f6e00,['tools'],_0x212f77);}const _0x430006=getValueByPath(_0x5cbb99,[_0x54adca(0x425)]);return _0x3f6e00!==undefined&&_0x430006!=null&&setValueByPath(_0x3f6e00,[_0x54adca(0x425)],generationConfigToVertex(_0x430006)),_0x2d3bc4;}function countTokensParametersToMldev(_0x52d3b9,_0xf8820a,_0x32d1de){const _0x3bf29e=a3_0x402819,_0x38b10a={},_0x27069e=getValueByPath(_0xf8820a,[_0x3bf29e(0x3f6)]);_0x27069e!=null&&setValueByPath(_0x38b10a,[_0x3bf29e(0x1aa),_0x3bf29e(0x3f6)],tModel(_0x52d3b9,_0x27069e));const _0x282728=getValueByPath(_0xf8820a,[_0x3bf29e(0x695)]);if(_0x282728!=null){let _0x1b0cdf=tContents(_0x282728);Array[_0x3bf29e(0x32b)](_0x1b0cdf)&&(_0x1b0cdf=_0x1b0cdf[_0x3bf29e(0x6c4)](_0x531ed3=>{return contentToMldev$1(_0x531ed3);})),setValueByPath(_0x38b10a,[_0x3bf29e(0x695)],_0x1b0cdf);}const _0x193ef7=getValueByPath(_0xf8820a,[_0x3bf29e(0x43b)]);return _0x193ef7!=null&&countTokensConfigToMldev(_0x193ef7),_0x38b10a;}function countTokensParametersToVertex(_0x5b984f,_0x20c419,_0xa07ba9){const _0x1800f9=a3_0x402819,_0x1d22c3={},_0x551835=getValueByPath(_0x20c419,[_0x1800f9(0x3f6)]);_0x551835!=null&&setValueByPath(_0x1d22c3,['_url',_0x1800f9(0x3f6)],tModel(_0x5b984f,_0x551835));const _0xe1a59f=getValueByPath(_0x20c419,[_0x1800f9(0x695)]);if(_0xe1a59f!=null){let _0x2d133f=tContents(_0xe1a59f);Array[_0x1800f9(0x32b)](_0x2d133f)&&(_0x2d133f=_0x2d133f[_0x1800f9(0x6c4)](_0x4baf92=>{return _0x4baf92;})),setValueByPath(_0x1d22c3,[_0x1800f9(0x695)],_0x2d133f);}const _0x27cf7c=getValueByPath(_0x20c419,[_0x1800f9(0x43b)]);return _0x27cf7c!=null&&countTokensConfigToVertex(_0x27cf7c,_0x1d22c3),_0x1d22c3;}function countTokensResponseFromMldev(_0x51ca3c,_0x445e79){const _0x529464=a3_0x402819,_0x160e4b={},_0x31bc7b=getValueByPath(_0x51ca3c,['sdkHttpResponse']);_0x31bc7b!=null&&setValueByPath(_0x160e4b,[_0x529464(0x3a7)],_0x31bc7b);const _0x3f88cc=getValueByPath(_0x51ca3c,[_0x529464(0x46c)]);_0x3f88cc!=null&&setValueByPath(_0x160e4b,[_0x529464(0x46c)],_0x3f88cc);const _0x8d80a3=getValueByPath(_0x51ca3c,[_0x529464(0x478)]);return _0x8d80a3!=null&&setValueByPath(_0x160e4b,['cachedContentTokenCount'],_0x8d80a3),_0x160e4b;}function countTokensResponseFromVertex(_0x4ea57e,_0x4071e7){const _0x5de186=a3_0x402819,_0x5ca1ff={},_0x444222=getValueByPath(_0x4ea57e,[_0x5de186(0x3a7)]);_0x444222!=null&&setValueByPath(_0x5ca1ff,[_0x5de186(0x3a7)],_0x444222);const _0x297c49=getValueByPath(_0x4ea57e,['totalTokens']);return _0x297c49!=null&&setValueByPath(_0x5ca1ff,[_0x5de186(0x46c)],_0x297c49),_0x5ca1ff;}function deleteModelParametersToMldev(_0x3ba0ac,_0x675da8,_0x5d871a){const _0x58ef7e=a3_0x402819,_0x47ad80={},_0x582184=getValueByPath(_0x675da8,[_0x58ef7e(0x3f6)]);return _0x582184!=null&&setValueByPath(_0x47ad80,[_0x58ef7e(0x1aa),_0x58ef7e(0x3a4)],tModel(_0x3ba0ac,_0x582184)),_0x47ad80;}function deleteModelParametersToVertex(_0xbf5666,_0x3f9f7e,_0x1f6989){const _0x293df4=a3_0x402819,_0x3210a7={},_0x924441=getValueByPath(_0x3f9f7e,[_0x293df4(0x3f6)]);return _0x924441!=null&&setValueByPath(_0x3210a7,[_0x293df4(0x1aa),_0x293df4(0x3a4)],tModel(_0xbf5666,_0x924441)),_0x3210a7;}function deleteModelResponseFromMldev(_0x11848f,_0x304d0b){const _0x1d0ab8=a3_0x402819,_0xb3f882={},_0x4ce334=getValueByPath(_0x11848f,[_0x1d0ab8(0x3a7)]);return _0x4ce334!=null&&setValueByPath(_0xb3f882,[_0x1d0ab8(0x3a7)],_0x4ce334),_0xb3f882;}function deleteModelResponseFromVertex(_0x38c6d4,_0xd0242f){const _0x13aa7b=a3_0x402819,_0xdf341d={},_0x50fbc9=getValueByPath(_0x38c6d4,['sdkHttpResponse']);return _0x50fbc9!=null&&setValueByPath(_0xdf341d,[_0x13aa7b(0x3a7)],_0x50fbc9),_0xdf341d;}function editImageConfigToVertex(_0x5e0f2c,_0x5aae18,_0x5d5a19){const _0x1c6251=a3_0x402819,_0x292c30={},_0x104959=getValueByPath(_0x5e0f2c,[_0x1c6251(0x201)]);_0x5aae18!==undefined&&_0x104959!=null&&setValueByPath(_0x5aae18,['parameters',_0x1c6251(0x3cf)],_0x104959);const _0x5af968=getValueByPath(_0x5e0f2c,['negativePrompt']);_0x5aae18!==undefined&&_0x5af968!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x2c7)],_0x5af968);const _0x184ff9=getValueByPath(_0x5e0f2c,[_0x1c6251(0x602)]);_0x5aae18!==undefined&&_0x184ff9!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),'sampleCount'],_0x184ff9);const _0x5eef1e=getValueByPath(_0x5e0f2c,[_0x1c6251(0x6f5)]);_0x5aae18!==undefined&&_0x5eef1e!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x6f5)],_0x5eef1e);const _0x5aa232=getValueByPath(_0x5e0f2c,[_0x1c6251(0x2d7)]);_0x5aae18!==undefined&&_0x5aa232!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x2d7)],_0x5aa232);const _0x5ab8dc=getValueByPath(_0x5e0f2c,['seed']);_0x5aae18!==undefined&&_0x5ab8dc!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x39a)],_0x5ab8dc);const _0x76264e=getValueByPath(_0x5e0f2c,[_0x1c6251(0x26d)]);_0x5aae18!==undefined&&_0x76264e!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x586)],_0x76264e);const _0x414e03=getValueByPath(_0x5e0f2c,[_0x1c6251(0x43e)]);_0x5aae18!==undefined&&_0x414e03!=null&&setValueByPath(_0x5aae18,['parameters',_0x1c6251(0x43e)],_0x414e03);const _0x1e674a=getValueByPath(_0x5e0f2c,[_0x1c6251(0x638)]);_0x5aae18!==undefined&&_0x1e674a!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),'includeSafetyAttributes'],_0x1e674a);const _0x2697f3=getValueByPath(_0x5e0f2c,[_0x1c6251(0x70f)]);_0x5aae18!==undefined&&_0x2697f3!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x70f)],_0x2697f3);const _0x10ee8f=getValueByPath(_0x5e0f2c,[_0x1c6251(0x493)]);_0x5aae18!==undefined&&_0x10ee8f!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),'language'],_0x10ee8f);const _0xde5523=getValueByPath(_0x5e0f2c,['outputMimeType']);_0x5aae18!==undefined&&_0xde5523!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x54e),'mimeType'],_0xde5523);const _0x56eafe=getValueByPath(_0x5e0f2c,[_0x1c6251(0x67d)]);_0x5aae18!==undefined&&_0x56eafe!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x54e),'compressionQuality'],_0x56eafe);const _0x72d4b3=getValueByPath(_0x5e0f2c,[_0x1c6251(0x4e8)]);_0x5aae18!==undefined&&_0x72d4b3!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x4e8)],_0x72d4b3);const _0x533b84=getValueByPath(_0x5e0f2c,[_0x1c6251(0x3ec)]);_0x5aae18!==undefined&&_0x533b84!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x3ec)],_0x533b84);const _0x21355e=getValueByPath(_0x5e0f2c,[_0x1c6251(0x582)]);_0x5aae18!==undefined&&_0x21355e!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),'editMode'],_0x21355e);const _0x2b3998=getValueByPath(_0x5e0f2c,['baseSteps']);return _0x5aae18!==undefined&&_0x2b3998!=null&&setValueByPath(_0x5aae18,[_0x1c6251(0x460),_0x1c6251(0x508),'baseSteps'],_0x2b3998),_0x292c30;}function editImageParametersInternalToVertex(_0x919ab4,_0x20bd32,_0x16f4fc){const _0x2ba4e3=a3_0x402819,_0x521d7d={},_0x60a3eb=getValueByPath(_0x20bd32,[_0x2ba4e3(0x3f6)]);_0x60a3eb!=null&&setValueByPath(_0x521d7d,[_0x2ba4e3(0x1aa),'model'],tModel(_0x919ab4,_0x60a3eb));const _0x2aad41=getValueByPath(_0x20bd32,[_0x2ba4e3(0x6f3)]);_0x2aad41!=null&&setValueByPath(_0x521d7d,['instances[0]',_0x2ba4e3(0x6f3)],_0x2aad41);const _0xa316f0=getValueByPath(_0x20bd32,[_0x2ba4e3(0x486)]);if(_0xa316f0!=null){let _0x89bf10=_0xa316f0;Array[_0x2ba4e3(0x32b)](_0x89bf10)&&(_0x89bf10=_0x89bf10[_0x2ba4e3(0x6c4)](_0x33ce51=>{return referenceImageAPIInternalToVertex(_0x33ce51);})),setValueByPath(_0x521d7d,[_0x2ba4e3(0x5fb),_0x2ba4e3(0x486)],_0x89bf10);}const _0x2cb21e=getValueByPath(_0x20bd32,[_0x2ba4e3(0x43b)]);return _0x2cb21e!=null&&editImageConfigToVertex(_0x2cb21e,_0x521d7d),_0x521d7d;}function editImageResponseFromVertex(_0x5901d7,_0xcebd07){const _0x1ec223=a3_0x402819,_0x4cec72={},_0x3acb33=getValueByPath(_0x5901d7,['sdkHttpResponse']);_0x3acb33!=null&&setValueByPath(_0x4cec72,[_0x1ec223(0x3a7)],_0x3acb33);const _0x31432c=getValueByPath(_0x5901d7,['predictions']);if(_0x31432c!=null){let _0x396337=_0x31432c;Array['isArray'](_0x396337)&&(_0x396337=_0x396337[_0x1ec223(0x6c4)](_0xa65c9d=>{return generatedImageFromVertex(_0xa65c9d);})),setValueByPath(_0x4cec72,[_0x1ec223(0x1f5)],_0x396337);}return _0x4cec72;}function embedContentConfigToMldev(_0x473915,_0xf2c0cd,_0x115484){const _0x164b73=a3_0x402819,_0xe23a01={},_0x1ae1a7=getValueByPath(_0x473915,[_0x164b73(0x722)]);_0xf2c0cd!==undefined&&_0x1ae1a7!=null&&setValueByPath(_0xf2c0cd,[_0x164b73(0x41f),_0x164b73(0x722)],_0x1ae1a7);const _0x5f5c8f=getValueByPath(_0x473915,['title']);_0xf2c0cd!==undefined&&_0x5f5c8f!=null&&setValueByPath(_0xf2c0cd,['requests[]','title'],_0x5f5c8f);const _0x3cefad=getValueByPath(_0x473915,[_0x164b73(0x461)]);_0xf2c0cd!==undefined&&_0x3cefad!=null&&setValueByPath(_0xf2c0cd,[_0x164b73(0x41f),_0x164b73(0x461)],_0x3cefad);if(getValueByPath(_0x473915,[_0x164b73(0x542)])!==undefined)throw new Error('mimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x473915,[_0x164b73(0x22a)])!==undefined)throw new Error('autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0xe23a01;}function embedContentConfigToVertex(_0x495224,_0x404b39,_0x3e667b){const _0x4cdced=a3_0x402819,_0x7ccdd4={},_0x2783c6=getValueByPath(_0x495224,['taskType']);_0x404b39!==undefined&&_0x2783c6!=null&&setValueByPath(_0x404b39,[_0x4cdced(0x211),'task_type'],_0x2783c6);const _0x31f79b=getValueByPath(_0x495224,[_0x4cdced(0x6af)]);_0x404b39!==undefined&&_0x31f79b!=null&&setValueByPath(_0x404b39,[_0x4cdced(0x211),'title'],_0x31f79b);const _0x2de403=getValueByPath(_0x495224,[_0x4cdced(0x461)]);_0x404b39!==undefined&&_0x2de403!=null&&setValueByPath(_0x404b39,[_0x4cdced(0x460),_0x4cdced(0x461)],_0x2de403);const _0x5a256a=getValueByPath(_0x495224,[_0x4cdced(0x542)]);_0x404b39!==undefined&&_0x5a256a!=null&&setValueByPath(_0x404b39,[_0x4cdced(0x211),_0x4cdced(0x542)],_0x5a256a);const _0x219ddc=getValueByPath(_0x495224,[_0x4cdced(0x22a)]);return _0x404b39!==undefined&&_0x219ddc!=null&&setValueByPath(_0x404b39,[_0x4cdced(0x460),_0x4cdced(0x22a)],_0x219ddc),_0x7ccdd4;}function embedContentParametersToMldev(_0x496c43,_0x45a615,_0x21b399){const _0x1c23c1=a3_0x402819,_0x2e388f={},_0x1add4a=getValueByPath(_0x45a615,['model']);_0x1add4a!=null&&setValueByPath(_0x2e388f,[_0x1c23c1(0x1aa),_0x1c23c1(0x3f6)],tModel(_0x496c43,_0x1add4a));const _0x36e41a=getValueByPath(_0x45a615,[_0x1c23c1(0x695)]);if(_0x36e41a!=null){let _0x4b256f=tContentsForEmbed(_0x496c43,_0x36e41a);Array[_0x1c23c1(0x32b)](_0x4b256f)&&(_0x4b256f=_0x4b256f[_0x1c23c1(0x6c4)](_0x187498=>{return _0x187498;})),setValueByPath(_0x2e388f,[_0x1c23c1(0x41f),_0x1c23c1(0x345)],_0x4b256f);}const _0x2a4fa2=getValueByPath(_0x45a615,[_0x1c23c1(0x43b)]);_0x2a4fa2!=null&&embedContentConfigToMldev(_0x2a4fa2,_0x2e388f);const _0x2cf08e=getValueByPath(_0x45a615,['model']);return _0x2cf08e!==undefined&&setValueByPath(_0x2e388f,[_0x1c23c1(0x41f),'model'],tModel(_0x496c43,_0x2cf08e)),_0x2e388f;}function embedContentParametersToVertex(_0x547e9c,_0x3cfa2b,_0x297752){const _0x2d8417=a3_0x402819,_0x1bcd02={},_0x4e231d=getValueByPath(_0x3cfa2b,[_0x2d8417(0x3f6)]);_0x4e231d!=null&&setValueByPath(_0x1bcd02,[_0x2d8417(0x1aa),_0x2d8417(0x3f6)],tModel(_0x547e9c,_0x4e231d));const _0x11d884=getValueByPath(_0x3cfa2b,[_0x2d8417(0x695)]);if(_0x11d884!=null){let _0x13cd00=tContentsForEmbed(_0x547e9c,_0x11d884);Array[_0x2d8417(0x32b)](_0x13cd00)&&(_0x13cd00=_0x13cd00[_0x2d8417(0x6c4)](_0x5342e0=>{return _0x5342e0;})),setValueByPath(_0x1bcd02,[_0x2d8417(0x211),'content'],_0x13cd00);}const _0x4daede=getValueByPath(_0x3cfa2b,[_0x2d8417(0x43b)]);return _0x4daede!=null&&embedContentConfigToVertex(_0x4daede,_0x1bcd02),_0x1bcd02;}function embedContentResponseFromMldev(_0x59b2ca,_0xd6d9ed){const _0x8ea4c2=a3_0x402819,_0x202c90={},_0x1876df=getValueByPath(_0x59b2ca,[_0x8ea4c2(0x3a7)]);_0x1876df!=null&&setValueByPath(_0x202c90,['sdkHttpResponse'],_0x1876df);const _0x22476a=getValueByPath(_0x59b2ca,[_0x8ea4c2(0x609)]);if(_0x22476a!=null){let _0x702f1c=_0x22476a;Array[_0x8ea4c2(0x32b)](_0x702f1c)&&(_0x702f1c=_0x702f1c[_0x8ea4c2(0x6c4)](_0x34c1c7=>{return _0x34c1c7;})),setValueByPath(_0x202c90,[_0x8ea4c2(0x609)],_0x702f1c);}const _0x377ced=getValueByPath(_0x59b2ca,[_0x8ea4c2(0x266)]);return _0x377ced!=null&&setValueByPath(_0x202c90,[_0x8ea4c2(0x266)],_0x377ced),_0x202c90;}function embedContentResponseFromVertex(_0x3e32b2,_0x1fddbb){const _0x4be23e=a3_0x402819,_0xf9ebd3={},_0x5a7928=getValueByPath(_0x3e32b2,[_0x4be23e(0x3a7)]);_0x5a7928!=null&&setValueByPath(_0xf9ebd3,[_0x4be23e(0x3a7)],_0x5a7928);const _0x4d3b53=getValueByPath(_0x3e32b2,[_0x4be23e(0x2a9),_0x4be23e(0x609)]);if(_0x4d3b53!=null){let _0x2f025f=_0x4d3b53;Array[_0x4be23e(0x32b)](_0x2f025f)&&(_0x2f025f=_0x2f025f['map'](_0x143f48=>{return contentEmbeddingFromVertex(_0x143f48);})),setValueByPath(_0xf9ebd3,[_0x4be23e(0x609)],_0x2f025f);}const _0x187137=getValueByPath(_0x3e32b2,[_0x4be23e(0x266)]);return _0x187137!=null&&setValueByPath(_0xf9ebd3,['metadata'],_0x187137),_0xf9ebd3;}function endpointFromVertex(_0x9fe1ed,_0x4518d0){const _0x290e43=a3_0x402819,_0x2ca3f0={},_0x60721a=getValueByPath(_0x9fe1ed,[_0x290e43(0x207)]);_0x60721a!=null&&setValueByPath(_0x2ca3f0,[_0x290e43(0x3a4)],_0x60721a);const _0x463f4f=getValueByPath(_0x9fe1ed,[_0x290e43(0x4b4)]);return _0x463f4f!=null&&setValueByPath(_0x2ca3f0,[_0x290e43(0x4b4)],_0x463f4f),_0x2ca3f0;}function fileDataToMldev$1(_0x472224,_0x378056){const _0x16d69b=a3_0x402819,_0x592568={};if(getValueByPath(_0x472224,['displayName'])!==undefined)throw new Error(_0x16d69b(0x5c1));const _0x4a18ab=getValueByPath(_0x472224,['fileUri']);_0x4a18ab!=null&&setValueByPath(_0x592568,[_0x16d69b(0x218)],_0x4a18ab);const _0x213473=getValueByPath(_0x472224,[_0x16d69b(0x542)]);return _0x213473!=null&&setValueByPath(_0x592568,[_0x16d69b(0x542)],_0x213473),_0x592568;}function functionCallToMldev$1(_0x4ca967,_0x14c27a){const _0x5ec472=a3_0x402819,_0x5bc223={},_0x4d8f6e=getValueByPath(_0x4ca967,['id']);_0x4d8f6e!=null&&setValueByPath(_0x5bc223,['id'],_0x4d8f6e);const _0x335e51=getValueByPath(_0x4ca967,[_0x5ec472(0x6a1)]);_0x335e51!=null&&setValueByPath(_0x5bc223,[_0x5ec472(0x6a1)],_0x335e51);const _0x109518=getValueByPath(_0x4ca967,[_0x5ec472(0x3a4)]);_0x109518!=null&&setValueByPath(_0x5bc223,[_0x5ec472(0x3a4)],_0x109518);if(getValueByPath(_0x4ca967,[_0x5ec472(0x20e)])!==undefined)throw new Error(_0x5ec472(0x1d3));if(getValueByPath(_0x4ca967,[_0x5ec472(0x269)])!==undefined)throw new Error(_0x5ec472(0x4dc));return _0x5bc223;}function functionCallingConfigToMldev(_0x2e2344,_0x5d9a7d){const _0x355648=a3_0x402819,_0x3dc1ec={},_0x216b2f=getValueByPath(_0x2e2344,[_0x355648(0x6e4)]);_0x216b2f!=null&&setValueByPath(_0x3dc1ec,['allowedFunctionNames'],_0x216b2f);const _0x3675b4=getValueByPath(_0x2e2344,[_0x355648(0x43d)]);_0x3675b4!=null&&setValueByPath(_0x3dc1ec,[_0x355648(0x43d)],_0x3675b4);if(getValueByPath(_0x2e2344,[_0x355648(0x6df)])!==undefined)throw new Error(_0x355648(0x6f2));return _0x3dc1ec;}function functionDeclarationToVertex(_0x26348b,_0x528cfc){const _0x592ac9=a3_0x402819,_0x10cd57={},_0x5dfcb5=getValueByPath(_0x26348b,[_0x592ac9(0x3c3)]);_0x5dfcb5!=null&&setValueByPath(_0x10cd57,[_0x592ac9(0x3c3)],_0x5dfcb5);const _0x3ca32f=getValueByPath(_0x26348b,[_0x592ac9(0x3a4)]);_0x3ca32f!=null&&setValueByPath(_0x10cd57,[_0x592ac9(0x3a4)],_0x3ca32f);const _0x36ccd3=getValueByPath(_0x26348b,[_0x592ac9(0x460)]);_0x36ccd3!=null&&setValueByPath(_0x10cd57,['parameters'],_0x36ccd3);const _0xd3be1f=getValueByPath(_0x26348b,[_0x592ac9(0x4ad)]);_0xd3be1f!=null&&setValueByPath(_0x10cd57,[_0x592ac9(0x4ad)],_0xd3be1f);const _0xc3f03=getValueByPath(_0x26348b,[_0x592ac9(0x454)]);_0xc3f03!=null&&setValueByPath(_0x10cd57,[_0x592ac9(0x454)],_0xc3f03);const _0x4f89bb=getValueByPath(_0x26348b,[_0x592ac9(0x62d)]);_0x4f89bb!=null&&setValueByPath(_0x10cd57,[_0x592ac9(0x62d)],_0x4f89bb);if(getValueByPath(_0x26348b,[_0x592ac9(0x321)])!==undefined)throw new Error(_0x592ac9(0x297));return _0x10cd57;}function generateContentConfigToMldev(_0x16aa30,_0x2130db,_0x9211cd,_0x5406e5){const _0xc48619=a3_0x402819,_0x23e48c={},_0x73c48f=getValueByPath(_0x2130db,[_0xc48619(0x415)]);_0x9211cd!==undefined&&_0x73c48f!=null&&setValueByPath(_0x9211cd,[_0xc48619(0x415)],contentToMldev$1(tContent(_0x73c48f)));const _0x2e60ab=getValueByPath(_0x2130db,[_0xc48619(0x59f)]);_0x2e60ab!=null&&setValueByPath(_0x23e48c,['temperature'],_0x2e60ab);const _0x42f481=getValueByPath(_0x2130db,[_0xc48619(0x394)]);_0x42f481!=null&&setValueByPath(_0x23e48c,['topP'],_0x42f481);const _0x448743=getValueByPath(_0x2130db,[_0xc48619(0x5ad)]);_0x448743!=null&&setValueByPath(_0x23e48c,['topK'],_0x448743);const _0xd94740=getValueByPath(_0x2130db,[_0xc48619(0x4d7)]);_0xd94740!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x4d7)],_0xd94740);const _0x5a6466=getValueByPath(_0x2130db,['maxOutputTokens']);_0x5a6466!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x35e)],_0x5a6466);const _0x4dd109=getValueByPath(_0x2130db,[_0xc48619(0x1ae)]);_0x4dd109!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x1ae)],_0x4dd109);const _0x23f781=getValueByPath(_0x2130db,['responseLogprobs']);_0x23f781!=null&&setValueByPath(_0x23e48c,['responseLogprobs'],_0x23f781);const _0x523043=getValueByPath(_0x2130db,['logprobs']);_0x523043!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x355)],_0x523043);const _0x31da5e=getValueByPath(_0x2130db,['presencePenalty']);_0x31da5e!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x64e)],_0x31da5e);const _0xb42717=getValueByPath(_0x2130db,[_0xc48619(0x290)]);_0xb42717!=null&&setValueByPath(_0x23e48c,['frequencyPenalty'],_0xb42717);const _0x4bc616=getValueByPath(_0x2130db,['seed']);_0x4bc616!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x39a)],_0x4bc616);const _0x13090a=getValueByPath(_0x2130db,[_0xc48619(0x341)]);_0x13090a!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x341)],_0x13090a);const _0x361627=getValueByPath(_0x2130db,['responseSchema']);_0x361627!=null&&setValueByPath(_0x23e48c,['responseSchema'],tSchema(_0x361627));const _0xeba2e0=getValueByPath(_0x2130db,[_0xc48619(0x62d)]);_0xeba2e0!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x62d)],_0xeba2e0);if(getValueByPath(_0x2130db,[_0xc48619(0x3d9)])!==undefined)throw new Error(_0xc48619(0x31d));if(getValueByPath(_0x2130db,[_0xc48619(0x21a)])!==undefined)throw new Error(_0xc48619(0x632));const _0x1b82a1=getValueByPath(_0x2130db,[_0xc48619(0x430)]);if(_0x9211cd!==undefined&&_0x1b82a1!=null){let _0x490d28=_0x1b82a1;Array['isArray'](_0x490d28)&&(_0x490d28=_0x490d28['map'](_0x1feb80=>{return safetySettingToMldev(_0x1feb80);})),setValueByPath(_0x9211cd,[_0xc48619(0x430)],_0x490d28);}const _0xe8c63d=getValueByPath(_0x2130db,['tools']);if(_0x9211cd!==undefined&&_0xe8c63d!=null){let _0x4c9b55=tTools(_0xe8c63d);Array[_0xc48619(0x32b)](_0x4c9b55)&&(_0x4c9b55=_0x4c9b55['map'](_0x1e6f92=>{return toolToMldev$1(tTool(_0x1e6f92));})),setValueByPath(_0x9211cd,[_0xc48619(0x648)],_0x4c9b55);}const _0x53e50e=getValueByPath(_0x2130db,[_0xc48619(0x45e)]);_0x9211cd!==undefined&&_0x53e50e!=null&&setValueByPath(_0x9211cd,[_0xc48619(0x45e)],toolConfigToMldev(_0x53e50e));if(getValueByPath(_0x2130db,[_0xc48619(0x3ec)])!==undefined)throw new Error(_0xc48619(0x2df));const _0x5ec6f2=getValueByPath(_0x2130db,['cachedContent']);_0x9211cd!==undefined&&_0x5ec6f2!=null&&setValueByPath(_0x9211cd,['cachedContent'],tCachedContentName(_0x16aa30,_0x5ec6f2));const _0x28ad77=getValueByPath(_0x2130db,[_0xc48619(0x597)]);_0x28ad77!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x597)],_0x28ad77);const _0x4e1758=getValueByPath(_0x2130db,[_0xc48619(0x342)]);_0x4e1758!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x342)],_0x4e1758);const _0x41675e=getValueByPath(_0x2130db,['speechConfig']);_0x41675e!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x2dc)],tSpeechConfig(_0x41675e));if(getValueByPath(_0x2130db,[_0xc48619(0x33f)])!==undefined)throw new Error(_0xc48619(0x517));const _0x2b53d0=getValueByPath(_0x2130db,[_0xc48619(0x3c6)]);_0x2b53d0!=null&&setValueByPath(_0x23e48c,['thinkingConfig'],_0x2b53d0);const _0x15a78d=getValueByPath(_0x2130db,[_0xc48619(0x4d9)]);_0x15a78d!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x4d9)],imageConfigToMldev(_0x15a78d));const _0x2f6f72=getValueByPath(_0x2130db,[_0xc48619(0x5ce)]);_0x2f6f72!=null&&setValueByPath(_0x23e48c,[_0xc48619(0x5ce)],_0x2f6f72);if(getValueByPath(_0x2130db,['modelArmorConfig'])!==undefined)throw new Error(_0xc48619(0x1d0));return _0x23e48c;}function generateContentConfigToVertex(_0x3f812d,_0x560883,_0x272c40,_0x390e1f){const _0xfeb15c=a3_0x402819,_0x13b0c9={},_0x21a9ff=getValueByPath(_0x560883,[_0xfeb15c(0x415)]);_0x272c40!==undefined&&_0x21a9ff!=null&&setValueByPath(_0x272c40,['systemInstruction'],tContent(_0x21a9ff));const _0x4efe17=getValueByPath(_0x560883,['temperature']);_0x4efe17!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x59f)],_0x4efe17);const _0x285022=getValueByPath(_0x560883,['topP']);_0x285022!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x394)],_0x285022);const _0x5782bd=getValueByPath(_0x560883,['topK']);_0x5782bd!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x5ad)],_0x5782bd);const _0x47514f=getValueByPath(_0x560883,['candidateCount']);_0x47514f!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x4d7)],_0x47514f);const _0x2b496c=getValueByPath(_0x560883,[_0xfeb15c(0x35e)]);_0x2b496c!=null&&setValueByPath(_0x13b0c9,['maxOutputTokens'],_0x2b496c);const _0x17eab5=getValueByPath(_0x560883,[_0xfeb15c(0x1ae)]);_0x17eab5!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x1ae)],_0x17eab5);const _0x2dd20b=getValueByPath(_0x560883,[_0xfeb15c(0x226)]);_0x2dd20b!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x226)],_0x2dd20b);const _0x142a13=getValueByPath(_0x560883,[_0xfeb15c(0x355)]);_0x142a13!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x355)],_0x142a13);const _0x16af83=getValueByPath(_0x560883,[_0xfeb15c(0x64e)]);_0x16af83!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x64e)],_0x16af83);const _0xb1a1fe=getValueByPath(_0x560883,[_0xfeb15c(0x290)]);_0xb1a1fe!=null&&setValueByPath(_0x13b0c9,['frequencyPenalty'],_0xb1a1fe);const _0x4e3d20=getValueByPath(_0x560883,[_0xfeb15c(0x39a)]);_0x4e3d20!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x39a)],_0x4e3d20);const _0x28010b=getValueByPath(_0x560883,[_0xfeb15c(0x341)]);_0x28010b!=null&&setValueByPath(_0x13b0c9,['responseMimeType'],_0x28010b);const _0x5dcb3f=getValueByPath(_0x560883,[_0xfeb15c(0x53e)]);_0x5dcb3f!=null&&setValueByPath(_0x13b0c9,['responseSchema'],tSchema(_0x5dcb3f));const _0x17ef1a=getValueByPath(_0x560883,[_0xfeb15c(0x62d)]);_0x17ef1a!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x62d)],_0x17ef1a);const _0x59af35=getValueByPath(_0x560883,['routingConfig']);_0x59af35!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x3d9)],_0x59af35);const _0x22fe41=getValueByPath(_0x560883,[_0xfeb15c(0x21a)]);_0x22fe41!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x4a2)],_0x22fe41);const _0x2aef68=getValueByPath(_0x560883,['safetySettings']);if(_0x272c40!==undefined&&_0x2aef68!=null){let _0x250743=_0x2aef68;Array[_0xfeb15c(0x32b)](_0x250743)&&(_0x250743=_0x250743[_0xfeb15c(0x6c4)](_0xf249e7=>{return _0xf249e7;})),setValueByPath(_0x272c40,[_0xfeb15c(0x430)],_0x250743);}const _0x5c140f=getValueByPath(_0x560883,[_0xfeb15c(0x648)]);if(_0x272c40!==undefined&&_0x5c140f!=null){let _0x52e45d=tTools(_0x5c140f);Array[_0xfeb15c(0x32b)](_0x52e45d)&&(_0x52e45d=_0x52e45d['map'](_0xc41442=>{return toolToVertex(tTool(_0xc41442));})),setValueByPath(_0x272c40,['tools'],_0x52e45d);}const _0x274247=getValueByPath(_0x560883,['toolConfig']);_0x272c40!==undefined&&_0x274247!=null&&setValueByPath(_0x272c40,[_0xfeb15c(0x45e)],_0x274247);const _0x51747c=getValueByPath(_0x560883,[_0xfeb15c(0x3ec)]);_0x272c40!==undefined&&_0x51747c!=null&&setValueByPath(_0x272c40,[_0xfeb15c(0x3ec)],_0x51747c);const _0x64ac43=getValueByPath(_0x560883,[_0xfeb15c(0x1ad)]);_0x272c40!==undefined&&_0x64ac43!=null&&setValueByPath(_0x272c40,['cachedContent'],tCachedContentName(_0x3f812d,_0x64ac43));const _0x149dfb=getValueByPath(_0x560883,['responseModalities']);_0x149dfb!=null&&setValueByPath(_0x13b0c9,['responseModalities'],_0x149dfb);const _0xdc1732=getValueByPath(_0x560883,['mediaResolution']);_0xdc1732!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x342)],_0xdc1732);const _0x53f920=getValueByPath(_0x560883,[_0xfeb15c(0x2dc)]);_0x53f920!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x2dc)],tSpeechConfig(_0x53f920));const _0x31dff1=getValueByPath(_0x560883,[_0xfeb15c(0x33f)]);_0x31dff1!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x33f)],_0x31dff1);const _0x3b80a2=getValueByPath(_0x560883,['thinkingConfig']);_0x3b80a2!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x3c6)],_0x3b80a2);const _0x470f5d=getValueByPath(_0x560883,['imageConfig']);_0x470f5d!=null&&setValueByPath(_0x13b0c9,[_0xfeb15c(0x4d9)],imageConfigToVertex(_0x470f5d));if(getValueByPath(_0x560883,[_0xfeb15c(0x5ce)])!==undefined)throw new Error(_0xfeb15c(0x29b));const _0x5a4824=getValueByPath(_0x560883,['modelArmorConfig']);return _0x272c40!==undefined&&_0x5a4824!=null&&setValueByPath(_0x272c40,['modelArmorConfig'],_0x5a4824),_0x13b0c9;}function generateContentParametersToMldev(_0xfb1b21,_0x3ce2bc,_0x5a1422){const _0x2ac00e=a3_0x402819,_0x2b3b7c={},_0x4a9059=getValueByPath(_0x3ce2bc,['model']);_0x4a9059!=null&&setValueByPath(_0x2b3b7c,[_0x2ac00e(0x1aa),'model'],tModel(_0xfb1b21,_0x4a9059));const _0x3bbb5e=getValueByPath(_0x3ce2bc,['contents']);if(_0x3bbb5e!=null){let _0x1f32cc=tContents(_0x3bbb5e);Array[_0x2ac00e(0x32b)](_0x1f32cc)&&(_0x1f32cc=_0x1f32cc['map'](_0x3d1413=>{return contentToMldev$1(_0x3d1413);})),setValueByPath(_0x2b3b7c,[_0x2ac00e(0x695)],_0x1f32cc);}const _0x479e68=getValueByPath(_0x3ce2bc,[_0x2ac00e(0x43b)]);return _0x479e68!=null&&setValueByPath(_0x2b3b7c,[_0x2ac00e(0x425)],generateContentConfigToMldev(_0xfb1b21,_0x479e68,_0x2b3b7c)),_0x2b3b7c;}function generateContentParametersToVertex(_0x5ee783,_0x48af9e,_0x507dae){const _0x461056=a3_0x402819,_0x43e283={},_0x45d7eb=getValueByPath(_0x48af9e,[_0x461056(0x3f6)]);_0x45d7eb!=null&&setValueByPath(_0x43e283,[_0x461056(0x1aa),_0x461056(0x3f6)],tModel(_0x5ee783,_0x45d7eb));const _0x199450=getValueByPath(_0x48af9e,[_0x461056(0x695)]);if(_0x199450!=null){let _0x3efaa0=tContents(_0x199450);Array['isArray'](_0x3efaa0)&&(_0x3efaa0=_0x3efaa0[_0x461056(0x6c4)](_0x335f57=>{return _0x335f57;})),setValueByPath(_0x43e283,[_0x461056(0x695)],_0x3efaa0);}const _0x32b17b=getValueByPath(_0x48af9e,[_0x461056(0x43b)]);return _0x32b17b!=null&&setValueByPath(_0x43e283,[_0x461056(0x425)],generateContentConfigToVertex(_0x5ee783,_0x32b17b,_0x43e283)),_0x43e283;}function generateContentResponseFromMldev(_0x40d0e0,_0x310dea){const _0x18359e=a3_0x402819,_0x5b34b1={},_0x1a4d3a=getValueByPath(_0x40d0e0,[_0x18359e(0x3a7)]);_0x1a4d3a!=null&&setValueByPath(_0x5b34b1,['sdkHttpResponse'],_0x1a4d3a);const _0x5c9afc=getValueByPath(_0x40d0e0,['candidates']);if(_0x5c9afc!=null){let _0x4d70c8=_0x5c9afc;Array[_0x18359e(0x32b)](_0x4d70c8)&&(_0x4d70c8=_0x4d70c8[_0x18359e(0x6c4)](_0xcf0a42=>{return candidateFromMldev(_0xcf0a42);})),setValueByPath(_0x5b34b1,[_0x18359e(0x6d0)],_0x4d70c8);}const _0x24af5f=getValueByPath(_0x40d0e0,[_0x18359e(0x4f7)]);_0x24af5f!=null&&setValueByPath(_0x5b34b1,[_0x18359e(0x4f7)],_0x24af5f);const _0x2685b7=getValueByPath(_0x40d0e0,[_0x18359e(0x2f6)]);_0x2685b7!=null&&setValueByPath(_0x5b34b1,[_0x18359e(0x2f6)],_0x2685b7);const _0x1718eb=getValueByPath(_0x40d0e0,[_0x18359e(0x448)]);_0x1718eb!=null&&setValueByPath(_0x5b34b1,['responseId'],_0x1718eb);const _0x5020fc=getValueByPath(_0x40d0e0,[_0x18359e(0x2d4)]);return _0x5020fc!=null&&setValueByPath(_0x5b34b1,[_0x18359e(0x2d4)],_0x5020fc),_0x5b34b1;}function generateContentResponseFromVertex(_0x3b7785,_0x3c9716){const _0x1a2c95=a3_0x402819,_0x1154e1={},_0x3644d0=getValueByPath(_0x3b7785,['sdkHttpResponse']);_0x3644d0!=null&&setValueByPath(_0x1154e1,['sdkHttpResponse'],_0x3644d0);const _0x1b2c78=getValueByPath(_0x3b7785,[_0x1a2c95(0x6d0)]);if(_0x1b2c78!=null){let _0x803233=_0x1b2c78;Array[_0x1a2c95(0x32b)](_0x803233)&&(_0x803233=_0x803233['map'](_0x4da726=>{return _0x4da726;})),setValueByPath(_0x1154e1,[_0x1a2c95(0x6d0)],_0x803233);}const _0x4e7e51=getValueByPath(_0x3b7785,['createTime']);_0x4e7e51!=null&&setValueByPath(_0x1154e1,['createTime'],_0x4e7e51);const _0x1226f3=getValueByPath(_0x3b7785,[_0x1a2c95(0x4f7)]);_0x1226f3!=null&&setValueByPath(_0x1154e1,[_0x1a2c95(0x4f7)],_0x1226f3);const _0x3eaa61=getValueByPath(_0x3b7785,[_0x1a2c95(0x2f6)]);_0x3eaa61!=null&&setValueByPath(_0x1154e1,[_0x1a2c95(0x2f6)],_0x3eaa61);const _0xf6b4d7=getValueByPath(_0x3b7785,[_0x1a2c95(0x448)]);_0xf6b4d7!=null&&setValueByPath(_0x1154e1,[_0x1a2c95(0x448)],_0xf6b4d7);const _0x3ff23d=getValueByPath(_0x3b7785,[_0x1a2c95(0x2d4)]);return _0x3ff23d!=null&&setValueByPath(_0x1154e1,[_0x1a2c95(0x2d4)],_0x3ff23d),_0x1154e1;}function generateImagesConfigToMldev(_0x554fe5,_0x16dd32,_0x11610b){const _0x5ca5e3=a3_0x402819,_0x5429ff={};if(getValueByPath(_0x554fe5,[_0x5ca5e3(0x201)])!==undefined)throw new Error(_0x5ca5e3(0x421));if(getValueByPath(_0x554fe5,[_0x5ca5e3(0x2c7)])!==undefined)throw new Error(_0x5ca5e3(0x59d));const _0x244f58=getValueByPath(_0x554fe5,['numberOfImages']);_0x16dd32!==undefined&&_0x244f58!=null&&setValueByPath(_0x16dd32,['parameters',_0x5ca5e3(0x3e4)],_0x244f58);const _0x1e1e50=getValueByPath(_0x554fe5,[_0x5ca5e3(0x6f5)]);_0x16dd32!==undefined&&_0x1e1e50!=null&&setValueByPath(_0x16dd32,['parameters',_0x5ca5e3(0x6f5)],_0x1e1e50);const _0x59fcfe=getValueByPath(_0x554fe5,[_0x5ca5e3(0x2d7)]);_0x16dd32!==undefined&&_0x59fcfe!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),_0x5ca5e3(0x2d7)],_0x59fcfe);if(getValueByPath(_0x554fe5,['seed'])!==undefined)throw new Error(_0x5ca5e3(0x511));const _0x516670=getValueByPath(_0x554fe5,['safetyFilterLevel']);_0x16dd32!==undefined&&_0x516670!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),'safetySetting'],_0x516670);const _0xaa36e9=getValueByPath(_0x554fe5,[_0x5ca5e3(0x43e)]);_0x16dd32!==undefined&&_0xaa36e9!=null&&setValueByPath(_0x16dd32,['parameters',_0x5ca5e3(0x43e)],_0xaa36e9);const _0x2734bb=getValueByPath(_0x554fe5,['includeSafetyAttributes']);_0x16dd32!==undefined&&_0x2734bb!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),_0x5ca5e3(0x638)],_0x2734bb);const _0x550941=getValueByPath(_0x554fe5,[_0x5ca5e3(0x70f)]);_0x16dd32!==undefined&&_0x550941!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),'includeRaiReason'],_0x550941);const _0x4e6f12=getValueByPath(_0x554fe5,[_0x5ca5e3(0x493)]);_0x16dd32!==undefined&&_0x4e6f12!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),_0x5ca5e3(0x493)],_0x4e6f12);const _0x352546=getValueByPath(_0x554fe5,[_0x5ca5e3(0x552)]);_0x16dd32!==undefined&&_0x352546!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),_0x5ca5e3(0x54e),_0x5ca5e3(0x542)],_0x352546);const _0x4f9932=getValueByPath(_0x554fe5,[_0x5ca5e3(0x67d)]);_0x16dd32!==undefined&&_0x4f9932!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),'outputOptions',_0x5ca5e3(0x442)],_0x4f9932);if(getValueByPath(_0x554fe5,[_0x5ca5e3(0x4e8)])!==undefined)throw new Error('addWatermark\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x554fe5,[_0x5ca5e3(0x3ec)])!==undefined)throw new Error(_0x5ca5e3(0x2df));const _0x20f2ee=getValueByPath(_0x554fe5,[_0x5ca5e3(0x473)]);_0x16dd32!==undefined&&_0x20f2ee!=null&&setValueByPath(_0x16dd32,[_0x5ca5e3(0x460),_0x5ca5e3(0x507)],_0x20f2ee);if(getValueByPath(_0x554fe5,['enhancePrompt'])!==undefined)throw new Error(_0x5ca5e3(0x490));return _0x5429ff;}function generateImagesConfigToVertex(_0x43d54c,_0x31e688,_0x32af39){const _0x33b9f7=a3_0x402819,_0x3c7042={},_0x175454=getValueByPath(_0x43d54c,['outputGcsUri']);_0x31e688!==undefined&&_0x175454!=null&&setValueByPath(_0x31e688,['parameters',_0x33b9f7(0x3cf)],_0x175454);const _0x3e3124=getValueByPath(_0x43d54c,['negativePrompt']);_0x31e688!==undefined&&_0x3e3124!=null&&setValueByPath(_0x31e688,['parameters',_0x33b9f7(0x2c7)],_0x3e3124);const _0x374d0e=getValueByPath(_0x43d54c,['numberOfImages']);_0x31e688!==undefined&&_0x374d0e!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x3e4)],_0x374d0e);const _0x366f9c=getValueByPath(_0x43d54c,[_0x33b9f7(0x6f5)]);_0x31e688!==undefined&&_0x366f9c!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x6f5)],_0x366f9c);const _0x315359=getValueByPath(_0x43d54c,[_0x33b9f7(0x2d7)]);_0x31e688!==undefined&&_0x315359!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x2d7)],_0x315359);const _0x4ede2f=getValueByPath(_0x43d54c,[_0x33b9f7(0x39a)]);_0x31e688!==undefined&&_0x4ede2f!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x39a)],_0x4ede2f);const _0x1d3b9f=getValueByPath(_0x43d54c,[_0x33b9f7(0x26d)]);_0x31e688!==undefined&&_0x1d3b9f!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x586)],_0x1d3b9f);const _0x2d4cd4=getValueByPath(_0x43d54c,[_0x33b9f7(0x43e)]);_0x31e688!==undefined&&_0x2d4cd4!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x43e)],_0x2d4cd4);const _0xc103f9=getValueByPath(_0x43d54c,[_0x33b9f7(0x638)]);_0x31e688!==undefined&&_0xc103f9!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),'includeSafetyAttributes'],_0xc103f9);const _0x2876cb=getValueByPath(_0x43d54c,[_0x33b9f7(0x70f)]);_0x31e688!==undefined&&_0x2876cb!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),'includeRaiReason'],_0x2876cb);const _0x562fe0=getValueByPath(_0x43d54c,['language']);_0x31e688!==undefined&&_0x562fe0!=null&&setValueByPath(_0x31e688,['parameters',_0x33b9f7(0x493)],_0x562fe0);const _0x15ffa0=getValueByPath(_0x43d54c,[_0x33b9f7(0x552)]);_0x31e688!==undefined&&_0x15ffa0!=null&&setValueByPath(_0x31e688,['parameters','outputOptions',_0x33b9f7(0x542)],_0x15ffa0);const _0x48f9c6=getValueByPath(_0x43d54c,[_0x33b9f7(0x67d)]);_0x31e688!==undefined&&_0x48f9c6!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x54e),_0x33b9f7(0x442)],_0x48f9c6);const _0x383fc6=getValueByPath(_0x43d54c,['addWatermark']);_0x31e688!==undefined&&_0x383fc6!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x4e8)],_0x383fc6);const _0x156c30=getValueByPath(_0x43d54c,[_0x33b9f7(0x3ec)]);_0x31e688!==undefined&&_0x156c30!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x3ec)],_0x156c30);const _0x5e7835=getValueByPath(_0x43d54c,['imageSize']);_0x31e688!==undefined&&_0x5e7835!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x507)],_0x5e7835);const _0x4d0eb8=getValueByPath(_0x43d54c,[_0x33b9f7(0x64f)]);return _0x31e688!==undefined&&_0x4d0eb8!=null&&setValueByPath(_0x31e688,[_0x33b9f7(0x460),_0x33b9f7(0x64f)],_0x4d0eb8),_0x3c7042;}function generateImagesParametersToMldev(_0x447d52,_0x3d2266,_0x100a37){const _0xf8b3e4=a3_0x402819,_0x391f70={},_0x323a61=getValueByPath(_0x3d2266,[_0xf8b3e4(0x3f6)]);_0x323a61!=null&&setValueByPath(_0x391f70,[_0xf8b3e4(0x1aa),_0xf8b3e4(0x3f6)],tModel(_0x447d52,_0x323a61));const _0x5d3c0d=getValueByPath(_0x3d2266,['prompt']);_0x5d3c0d!=null&&setValueByPath(_0x391f70,[_0xf8b3e4(0x5fb),_0xf8b3e4(0x6f3)],_0x5d3c0d);const _0x95096d=getValueByPath(_0x3d2266,[_0xf8b3e4(0x43b)]);return _0x95096d!=null&&generateImagesConfigToMldev(_0x95096d,_0x391f70),_0x391f70;}function generateImagesParametersToVertex(_0x5def28,_0x1b392a,_0x279b05){const _0x4f51b9=a3_0x402819,_0x229a37={},_0x2b19be=getValueByPath(_0x1b392a,[_0x4f51b9(0x3f6)]);_0x2b19be!=null&&setValueByPath(_0x229a37,[_0x4f51b9(0x1aa),'model'],tModel(_0x5def28,_0x2b19be));const _0x24723d=getValueByPath(_0x1b392a,[_0x4f51b9(0x6f3)]);_0x24723d!=null&&setValueByPath(_0x229a37,[_0x4f51b9(0x5fb),_0x4f51b9(0x6f3)],_0x24723d);const _0x2f146f=getValueByPath(_0x1b392a,[_0x4f51b9(0x43b)]);return _0x2f146f!=null&&generateImagesConfigToVertex(_0x2f146f,_0x229a37),_0x229a37;}function generateImagesResponseFromMldev(_0x53d254,_0x54f7b4){const _0x34dc38=a3_0x402819,_0x2bc480={},_0xac0178=getValueByPath(_0x53d254,[_0x34dc38(0x3a7)]);_0xac0178!=null&&setValueByPath(_0x2bc480,['sdkHttpResponse'],_0xac0178);const _0x577703=getValueByPath(_0x53d254,[_0x34dc38(0x4de)]);if(_0x577703!=null){let _0x76c699=_0x577703;Array[_0x34dc38(0x32b)](_0x76c699)&&(_0x76c699=_0x76c699[_0x34dc38(0x6c4)](_0x32cd6f=>{return generatedImageFromMldev(_0x32cd6f);})),setValueByPath(_0x2bc480,['generatedImages'],_0x76c699);}const _0x237f8f=getValueByPath(_0x53d254,[_0x34dc38(0x1fb)]);return _0x237f8f!=null&&setValueByPath(_0x2bc480,[_0x34dc38(0x1fb)],safetyAttributesFromMldev(_0x237f8f)),_0x2bc480;}function generateImagesResponseFromVertex(_0x3776a2,_0x3b74b9){const _0x38d047=a3_0x402819,_0x1dc644={},_0x121483=getValueByPath(_0x3776a2,[_0x38d047(0x3a7)]);_0x121483!=null&&setValueByPath(_0x1dc644,[_0x38d047(0x3a7)],_0x121483);const _0xa41a03=getValueByPath(_0x3776a2,[_0x38d047(0x4de)]);if(_0xa41a03!=null){let _0x1c3f19=_0xa41a03;Array['isArray'](_0x1c3f19)&&(_0x1c3f19=_0x1c3f19[_0x38d047(0x6c4)](_0x5c6d86=>{return generatedImageFromVertex(_0x5c6d86);})),setValueByPath(_0x1dc644,[_0x38d047(0x1f5)],_0x1c3f19);}const _0x148bbd=getValueByPath(_0x3776a2,[_0x38d047(0x1fb)]);return _0x148bbd!=null&&setValueByPath(_0x1dc644,[_0x38d047(0x1fb)],safetyAttributesFromVertex(_0x148bbd)),_0x1dc644;}function generateVideosConfigToMldev(_0x4867c9,_0x597ec8,_0x304ff2){const _0x5a9742=a3_0x402819,_0x544f91={},_0x13ad7e=getValueByPath(_0x4867c9,[_0x5a9742(0x5b8)]);_0x597ec8!==undefined&&_0x13ad7e!=null&&setValueByPath(_0x597ec8,[_0x5a9742(0x460),_0x5a9742(0x3e4)],_0x13ad7e);if(getValueByPath(_0x4867c9,[_0x5a9742(0x201)])!==undefined)throw new Error(_0x5a9742(0x421));if(getValueByPath(_0x4867c9,[_0x5a9742(0x541)])!==undefined)throw new Error(_0x5a9742(0x2f3));const _0x610362=getValueByPath(_0x4867c9,[_0x5a9742(0x19c)]);_0x597ec8!==undefined&&_0x610362!=null&&setValueByPath(_0x597ec8,['parameters',_0x5a9742(0x19c)],_0x610362);if(getValueByPath(_0x4867c9,[_0x5a9742(0x39a)])!==undefined)throw new Error(_0x5a9742(0x511));const _0x363f93=getValueByPath(_0x4867c9,['aspectRatio']);_0x597ec8!==undefined&&_0x363f93!=null&&setValueByPath(_0x597ec8,[_0x5a9742(0x460),_0x5a9742(0x6f5)],_0x363f93);const _0x487c99=getValueByPath(_0x4867c9,[_0x5a9742(0x369)]);_0x597ec8!==undefined&&_0x487c99!=null&&setValueByPath(_0x597ec8,['parameters',_0x5a9742(0x369)],_0x487c99);const _0x3cb687=getValueByPath(_0x4867c9,[_0x5a9742(0x43e)]);_0x597ec8!==undefined&&_0x3cb687!=null&&setValueByPath(_0x597ec8,['parameters',_0x5a9742(0x43e)],_0x3cb687);if(getValueByPath(_0x4867c9,[_0x5a9742(0x55d)])!==undefined)throw new Error(_0x5a9742(0x712));const _0x58753c=getValueByPath(_0x4867c9,[_0x5a9742(0x2c7)]);_0x597ec8!==undefined&&_0x58753c!=null&&setValueByPath(_0x597ec8,[_0x5a9742(0x460),_0x5a9742(0x2c7)],_0x58753c);const _0x131d2c=getValueByPath(_0x4867c9,[_0x5a9742(0x64f)]);_0x597ec8!==undefined&&_0x131d2c!=null&&setValueByPath(_0x597ec8,[_0x5a9742(0x460),'enhancePrompt'],_0x131d2c);if(getValueByPath(_0x4867c9,[_0x5a9742(0x5cb)])!==undefined)throw new Error(_0x5a9742(0x6f9));const _0x16b42a=getValueByPath(_0x4867c9,[_0x5a9742(0x69c)]);_0x597ec8!==undefined&&_0x16b42a!=null&&setValueByPath(_0x597ec8,['instances[0]','lastFrame'],imageToMldev(_0x16b42a));const _0x752582=getValueByPath(_0x4867c9,[_0x5a9742(0x486)]);if(_0x597ec8!==undefined&&_0x752582!=null){let _0x740f9=_0x752582;Array['isArray'](_0x740f9)&&(_0x740f9=_0x740f9['map'](_0x13be3e=>{return videoGenerationReferenceImageToMldev(_0x13be3e);})),setValueByPath(_0x597ec8,[_0x5a9742(0x5fb),_0x5a9742(0x486)],_0x740f9);}if(getValueByPath(_0x4867c9,[_0x5a9742(0x3a5)])!==undefined)throw new Error(_0x5a9742(0x686));if(getValueByPath(_0x4867c9,[_0x5a9742(0x442)])!==undefined)throw new Error(_0x5a9742(0x384));return _0x544f91;}function generateVideosConfigToVertex(_0x30a152,_0x229b7e,_0x81e13c){const _0x2cfbc2=a3_0x402819,_0x6dcb6b={},_0x59ca0b=getValueByPath(_0x30a152,['numberOfVideos']);_0x229b7e!==undefined&&_0x59ca0b!=null&&setValueByPath(_0x229b7e,['parameters',_0x2cfbc2(0x3e4)],_0x59ca0b);const _0x15b09f=getValueByPath(_0x30a152,[_0x2cfbc2(0x201)]);_0x229b7e!==undefined&&_0x15b09f!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),'storageUri'],_0x15b09f);const _0x549852=getValueByPath(_0x30a152,[_0x2cfbc2(0x541)]);_0x229b7e!==undefined&&_0x549852!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),'fps'],_0x549852);const _0x1a686a=getValueByPath(_0x30a152,[_0x2cfbc2(0x19c)]);_0x229b7e!==undefined&&_0x1a686a!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x19c)],_0x1a686a);const _0x38de8c=getValueByPath(_0x30a152,[_0x2cfbc2(0x39a)]);_0x229b7e!==undefined&&_0x38de8c!=null&&setValueByPath(_0x229b7e,['parameters',_0x2cfbc2(0x39a)],_0x38de8c);const _0x577630=getValueByPath(_0x30a152,[_0x2cfbc2(0x6f5)]);_0x229b7e!==undefined&&_0x577630!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),'aspectRatio'],_0x577630);const _0x1249d0=getValueByPath(_0x30a152,[_0x2cfbc2(0x369)]);_0x229b7e!==undefined&&_0x1249d0!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x369)],_0x1249d0);const _0x4342be=getValueByPath(_0x30a152,[_0x2cfbc2(0x43e)]);_0x229b7e!==undefined&&_0x4342be!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x43e)],_0x4342be);const _0x3c67d9=getValueByPath(_0x30a152,['pubsubTopic']);_0x229b7e!==undefined&&_0x3c67d9!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x55d)],_0x3c67d9);const _0x4a1d40=getValueByPath(_0x30a152,['negativePrompt']);_0x229b7e!==undefined&&_0x4a1d40!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x2c7)],_0x4a1d40);const _0x4106a7=getValueByPath(_0x30a152,[_0x2cfbc2(0x64f)]);_0x229b7e!==undefined&&_0x4106a7!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x64f)],_0x4106a7);const _0x40fc5e=getValueByPath(_0x30a152,['generateAudio']);_0x229b7e!==undefined&&_0x40fc5e!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x5cb)],_0x40fc5e);const _0x13cf96=getValueByPath(_0x30a152,['lastFrame']);_0x229b7e!==undefined&&_0x13cf96!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x5fb),_0x2cfbc2(0x69c)],imageToVertex(_0x13cf96));const _0x109759=getValueByPath(_0x30a152,[_0x2cfbc2(0x486)]);if(_0x229b7e!==undefined&&_0x109759!=null){let _0x58adf2=_0x109759;Array[_0x2cfbc2(0x32b)](_0x58adf2)&&(_0x58adf2=_0x58adf2[_0x2cfbc2(0x6c4)](_0x72c197=>{return videoGenerationReferenceImageToVertex(_0x72c197);})),setValueByPath(_0x229b7e,['instances[0]','referenceImages'],_0x58adf2);}const _0x8bf9e3=getValueByPath(_0x30a152,[_0x2cfbc2(0x3a5)]);_0x229b7e!==undefined&&_0x8bf9e3!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x5fb),_0x2cfbc2(0x3a5)],videoGenerationMaskToVertex(_0x8bf9e3));const _0x54a445=getValueByPath(_0x30a152,['compressionQuality']);return _0x229b7e!==undefined&&_0x54a445!=null&&setValueByPath(_0x229b7e,[_0x2cfbc2(0x460),_0x2cfbc2(0x442)],_0x54a445),_0x6dcb6b;}function generateVideosOperationFromMldev(_0x528009,_0x3d50ef){const _0x2bc12d=a3_0x402819,_0x355ddd={},_0x4099fa=getValueByPath(_0x528009,['name']);_0x4099fa!=null&&setValueByPath(_0x355ddd,[_0x2bc12d(0x3a4)],_0x4099fa);const _0x3e014c=getValueByPath(_0x528009,[_0x2bc12d(0x266)]);_0x3e014c!=null&&setValueByPath(_0x355ddd,[_0x2bc12d(0x266)],_0x3e014c);const _0x36576e=getValueByPath(_0x528009,[_0x2bc12d(0x424)]);_0x36576e!=null&&setValueByPath(_0x355ddd,[_0x2bc12d(0x424)],_0x36576e);const _0xb8dc77=getValueByPath(_0x528009,['error']);_0xb8dc77!=null&&setValueByPath(_0x355ddd,[_0x2bc12d(0x251)],_0xb8dc77);const _0x531d62=getValueByPath(_0x528009,[_0x2bc12d(0x454),_0x2bc12d(0x385)]);return _0x531d62!=null&&setValueByPath(_0x355ddd,['response'],generateVideosResponseFromMldev(_0x531d62)),_0x355ddd;}function generateVideosOperationFromVertex(_0x5352db,_0x44d882){const _0x2fb6f7=a3_0x402819,_0x29b6dc={},_0x4b1622=getValueByPath(_0x5352db,['name']);_0x4b1622!=null&&setValueByPath(_0x29b6dc,[_0x2fb6f7(0x3a4)],_0x4b1622);const _0xfb93c0=getValueByPath(_0x5352db,['metadata']);_0xfb93c0!=null&&setValueByPath(_0x29b6dc,[_0x2fb6f7(0x266)],_0xfb93c0);const _0x5ac883=getValueByPath(_0x5352db,['done']);_0x5ac883!=null&&setValueByPath(_0x29b6dc,[_0x2fb6f7(0x424)],_0x5ac883);const _0x147f2d=getValueByPath(_0x5352db,[_0x2fb6f7(0x251)]);_0x147f2d!=null&&setValueByPath(_0x29b6dc,[_0x2fb6f7(0x251)],_0x147f2d);const _0x37a7a5=getValueByPath(_0x5352db,[_0x2fb6f7(0x454)]);return _0x37a7a5!=null&&setValueByPath(_0x29b6dc,[_0x2fb6f7(0x454)],generateVideosResponseFromVertex(_0x37a7a5)),_0x29b6dc;}function generateVideosParametersToMldev(_0xeca93c,_0x3305b6,_0x3dc378){const _0x14a9bd=a3_0x402819,_0x3d87a5={},_0x3394a2=getValueByPath(_0x3305b6,[_0x14a9bd(0x3f6)]);_0x3394a2!=null&&setValueByPath(_0x3d87a5,['_url',_0x14a9bd(0x3f6)],tModel(_0xeca93c,_0x3394a2));const _0x51dbf5=getValueByPath(_0x3305b6,['prompt']);_0x51dbf5!=null&&setValueByPath(_0x3d87a5,[_0x14a9bd(0x5fb),_0x14a9bd(0x6f3)],_0x51dbf5);const _0x1e6122=getValueByPath(_0x3305b6,[_0x14a9bd(0x669)]);_0x1e6122!=null&&setValueByPath(_0x3d87a5,['instances[0]','image'],imageToMldev(_0x1e6122));const _0x434082=getValueByPath(_0x3305b6,[_0x14a9bd(0x5f6)]);_0x434082!=null&&setValueByPath(_0x3d87a5,[_0x14a9bd(0x5fb),_0x14a9bd(0x5f6)],videoToMldev(_0x434082));const _0x226d4e=getValueByPath(_0x3305b6,[_0x14a9bd(0x643)]);_0x226d4e!=null&&generateVideosSourceToMldev(_0x226d4e,_0x3d87a5);const _0x499f61=getValueByPath(_0x3305b6,[_0x14a9bd(0x43b)]);return _0x499f61!=null&&generateVideosConfigToMldev(_0x499f61,_0x3d87a5),_0x3d87a5;}function generateVideosParametersToVertex(_0x4d5547,_0x1efc77,_0x25b80c){const _0x30d2ae=a3_0x402819,_0x390af5={},_0x262d25=getValueByPath(_0x1efc77,[_0x30d2ae(0x3f6)]);_0x262d25!=null&&setValueByPath(_0x390af5,[_0x30d2ae(0x1aa),'model'],tModel(_0x4d5547,_0x262d25));const _0xa1a74c=getValueByPath(_0x1efc77,['prompt']);_0xa1a74c!=null&&setValueByPath(_0x390af5,['instances[0]',_0x30d2ae(0x6f3)],_0xa1a74c);const _0x1cb622=getValueByPath(_0x1efc77,['image']);_0x1cb622!=null&&setValueByPath(_0x390af5,[_0x30d2ae(0x5fb),_0x30d2ae(0x669)],imageToVertex(_0x1cb622));const _0x451cf0=getValueByPath(_0x1efc77,[_0x30d2ae(0x5f6)]);_0x451cf0!=null&&setValueByPath(_0x390af5,['instances[0]',_0x30d2ae(0x5f6)],videoToVertex(_0x451cf0));const _0x2f3a88=getValueByPath(_0x1efc77,[_0x30d2ae(0x643)]);_0x2f3a88!=null&&generateVideosSourceToVertex(_0x2f3a88,_0x390af5);const _0x14bbfe=getValueByPath(_0x1efc77,[_0x30d2ae(0x43b)]);return _0x14bbfe!=null&&generateVideosConfigToVertex(_0x14bbfe,_0x390af5),_0x390af5;}function generateVideosResponseFromMldev(_0x2b8e8d,_0x395769){const _0x284946=a3_0x402819,_0x564961={},_0x4646df=getValueByPath(_0x2b8e8d,[_0x284946(0x1fa)]);if(_0x4646df!=null){let _0x3331f8=_0x4646df;Array[_0x284946(0x32b)](_0x3331f8)&&(_0x3331f8=_0x3331f8[_0x284946(0x6c4)](_0x3f6a9e=>{return generatedVideoFromMldev(_0x3f6a9e);})),setValueByPath(_0x564961,[_0x284946(0x559)],_0x3331f8);}const _0x47efbc=getValueByPath(_0x2b8e8d,['raiMediaFilteredCount']);_0x47efbc!=null&&setValueByPath(_0x564961,[_0x284946(0x359)],_0x47efbc);const _0x18152d=getValueByPath(_0x2b8e8d,['raiMediaFilteredReasons']);return _0x18152d!=null&&setValueByPath(_0x564961,['raiMediaFilteredReasons'],_0x18152d),_0x564961;}function generateVideosResponseFromVertex(_0x4040df,_0x543edf){const _0x327653=a3_0x402819,_0xf46e40={},_0x37aeda=getValueByPath(_0x4040df,['videos']);if(_0x37aeda!=null){let _0x10c9ef=_0x37aeda;Array[_0x327653(0x32b)](_0x10c9ef)&&(_0x10c9ef=_0x10c9ef[_0x327653(0x6c4)](_0x17ecfb=>{return generatedVideoFromVertex(_0x17ecfb);})),setValueByPath(_0xf46e40,[_0x327653(0x559)],_0x10c9ef);}const _0x2e4239=getValueByPath(_0x4040df,[_0x327653(0x359)]);_0x2e4239!=null&&setValueByPath(_0xf46e40,[_0x327653(0x359)],_0x2e4239);const _0x2a71ca=getValueByPath(_0x4040df,[_0x327653(0x3c1)]);return _0x2a71ca!=null&&setValueByPath(_0xf46e40,['raiMediaFilteredReasons'],_0x2a71ca),_0xf46e40;}function generateVideosSourceToMldev(_0x362495,_0x3aef28,_0x2da054){const _0x2a4c14=a3_0x402819,_0x45860d={},_0x1d1d7b=getValueByPath(_0x362495,[_0x2a4c14(0x6f3)]);_0x3aef28!==undefined&&_0x1d1d7b!=null&&setValueByPath(_0x3aef28,[_0x2a4c14(0x5fb),_0x2a4c14(0x6f3)],_0x1d1d7b);const _0x276630=getValueByPath(_0x362495,[_0x2a4c14(0x669)]);_0x3aef28!==undefined&&_0x276630!=null&&setValueByPath(_0x3aef28,['instances[0]',_0x2a4c14(0x669)],imageToMldev(_0x276630));const _0x117e85=getValueByPath(_0x362495,[_0x2a4c14(0x5f6)]);return _0x3aef28!==undefined&&_0x117e85!=null&&setValueByPath(_0x3aef28,[_0x2a4c14(0x5fb),_0x2a4c14(0x5f6)],videoToMldev(_0x117e85)),_0x45860d;}function generateVideosSourceToVertex(_0x5e009d,_0x426a49,_0x16c0cb){const _0x5a1d90=a3_0x402819,_0x15188c={},_0xa3f6bf=getValueByPath(_0x5e009d,[_0x5a1d90(0x6f3)]);_0x426a49!==undefined&&_0xa3f6bf!=null&&setValueByPath(_0x426a49,[_0x5a1d90(0x5fb),_0x5a1d90(0x6f3)],_0xa3f6bf);const _0x30d717=getValueByPath(_0x5e009d,[_0x5a1d90(0x669)]);_0x426a49!==undefined&&_0x30d717!=null&&setValueByPath(_0x426a49,[_0x5a1d90(0x5fb),_0x5a1d90(0x669)],imageToVertex(_0x30d717));const _0x454495=getValueByPath(_0x5e009d,[_0x5a1d90(0x5f6)]);return _0x426a49!==undefined&&_0x454495!=null&&setValueByPath(_0x426a49,[_0x5a1d90(0x5fb),'video'],videoToVertex(_0x454495)),_0x15188c;}function generatedImageFromMldev(_0x54f8d0,_0x35e0e0){const _0x3d9db1=a3_0x402819,_0x20f428={},_0x4bb725=getValueByPath(_0x54f8d0,[_0x3d9db1(0x6f6)]);_0x4bb725!=null&&setValueByPath(_0x20f428,['image'],imageFromMldev(_0x4bb725));const _0x5abb3e=getValueByPath(_0x54f8d0,[_0x3d9db1(0x2f2)]);_0x5abb3e!=null&&setValueByPath(_0x20f428,[_0x3d9db1(0x2f2)],_0x5abb3e);const _0x4e15ec=getValueByPath(_0x54f8d0,[_0x3d9db1(0x6f6)]);return _0x4e15ec!=null&&setValueByPath(_0x20f428,['safetyAttributes'],safetyAttributesFromMldev(_0x4e15ec)),_0x20f428;}function generatedImageFromVertex(_0x2da6c4,_0x447da9){const _0x2bb81f=a3_0x402819,_0x82a0f8={},_0x263a66=getValueByPath(_0x2da6c4,[_0x2bb81f(0x6f6)]);_0x263a66!=null&&setValueByPath(_0x82a0f8,[_0x2bb81f(0x669)],imageFromVertex(_0x263a66));const _0x5aa03b=getValueByPath(_0x2da6c4,[_0x2bb81f(0x2f2)]);_0x5aa03b!=null&&setValueByPath(_0x82a0f8,[_0x2bb81f(0x2f2)],_0x5aa03b);const _0x143264=getValueByPath(_0x2da6c4,[_0x2bb81f(0x6f6)]);_0x143264!=null&&setValueByPath(_0x82a0f8,['safetyAttributes'],safetyAttributesFromVertex(_0x143264));const _0x5078c2=getValueByPath(_0x2da6c4,[_0x2bb81f(0x6f3)]);return _0x5078c2!=null&&setValueByPath(_0x82a0f8,['enhancedPrompt'],_0x5078c2),_0x82a0f8;}function generatedImageMaskFromVertex(_0x2a64da,_0xd394f1){const _0x30a80a=a3_0x402819,_0x3fa89b={},_0x211f15=getValueByPath(_0x2a64da,[_0x30a80a(0x6f6)]);_0x211f15!=null&&setValueByPath(_0x3fa89b,['mask'],imageFromVertex(_0x211f15));const _0x4ed87f=getValueByPath(_0x2a64da,[_0x30a80a(0x3ec)]);if(_0x4ed87f!=null){let _0x1b7576=_0x4ed87f;Array['isArray'](_0x1b7576)&&(_0x1b7576=_0x1b7576[_0x30a80a(0x6c4)](_0x33a492=>{return _0x33a492;})),setValueByPath(_0x3fa89b,[_0x30a80a(0x3ec)],_0x1b7576);}return _0x3fa89b;}function generatedVideoFromMldev(_0x39309a,_0x29b019){const _0x21d666=a3_0x402819,_0x3f5ed8={},_0xb1adde=getValueByPath(_0x39309a,['video']);return _0xb1adde!=null&&setValueByPath(_0x3f5ed8,[_0x21d666(0x5f6)],videoFromMldev(_0xb1adde)),_0x3f5ed8;}function generatedVideoFromVertex(_0x449bdc,_0x2dfc85){const _0x498054=a3_0x402819,_0x53b05a={},_0x3e3206=getValueByPath(_0x449bdc,[_0x498054(0x6f6)]);return _0x3e3206!=null&&setValueByPath(_0x53b05a,[_0x498054(0x5f6)],videoFromVertex(_0x3e3206)),_0x53b05a;}function generationConfigToVertex(_0x581acd,_0x21cd3c){const _0x3e405e=a3_0x402819,_0x4f3894={},_0x22c3e0=getValueByPath(_0x581acd,[_0x3e405e(0x21a)]);_0x22c3e0!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x4a2)],_0x22c3e0);const _0x4bd96f=getValueByPath(_0x581acd,['responseJsonSchema']);_0x4bd96f!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x62d)],_0x4bd96f);const _0x580b6b=getValueByPath(_0x581acd,['audioTimestamp']);_0x580b6b!=null&&setValueByPath(_0x4f3894,['audioTimestamp'],_0x580b6b);const _0xc2ae72=getValueByPath(_0x581acd,['candidateCount']);_0xc2ae72!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x4d7)],_0xc2ae72);const _0x5cde19=getValueByPath(_0x581acd,[_0x3e405e(0x41d)]);_0x5cde19!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x41d)],_0x5cde19);const _0x24d41e=getValueByPath(_0x581acd,['frequencyPenalty']);_0x24d41e!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x290)],_0x24d41e);const _0x9010b6=getValueByPath(_0x581acd,['logprobs']);_0x9010b6!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x355)],_0x9010b6);const _0x41f25f=getValueByPath(_0x581acd,['maxOutputTokens']);_0x41f25f!=null&&setValueByPath(_0x4f3894,['maxOutputTokens'],_0x41f25f);const _0x537008=getValueByPath(_0x581acd,['mediaResolution']);_0x537008!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x342)],_0x537008);const _0x330493=getValueByPath(_0x581acd,[_0x3e405e(0x64e)]);_0x330493!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x64e)],_0x330493);const _0x333fb3=getValueByPath(_0x581acd,['responseLogprobs']);_0x333fb3!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x226)],_0x333fb3);const _0x4ea835=getValueByPath(_0x581acd,['responseMimeType']);_0x4ea835!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x341)],_0x4ea835);const _0x23b511=getValueByPath(_0x581acd,[_0x3e405e(0x597)]);_0x23b511!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x597)],_0x23b511);const _0x15b71c=getValueByPath(_0x581acd,[_0x3e405e(0x53e)]);_0x15b71c!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x53e)],_0x15b71c);const _0x1998c1=getValueByPath(_0x581acd,[_0x3e405e(0x3d9)]);_0x1998c1!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x3d9)],_0x1998c1);const _0x336fb4=getValueByPath(_0x581acd,[_0x3e405e(0x39a)]);_0x336fb4!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x39a)],_0x336fb4);const _0x4a450b=getValueByPath(_0x581acd,[_0x3e405e(0x2dc)]);_0x4a450b!=null&&setValueByPath(_0x4f3894,['speechConfig'],_0x4a450b);const _0x2e6dc2=getValueByPath(_0x581acd,[_0x3e405e(0x1ae)]);_0x2e6dc2!=null&&setValueByPath(_0x4f3894,['stopSequences'],_0x2e6dc2);const _0x161b25=getValueByPath(_0x581acd,['temperature']);_0x161b25!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x59f)],_0x161b25);const _0x4c5bc5=getValueByPath(_0x581acd,[_0x3e405e(0x3c6)]);_0x4c5bc5!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x3c6)],_0x4c5bc5);const _0x5bef85=getValueByPath(_0x581acd,[_0x3e405e(0x5ad)]);_0x5bef85!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x5ad)],_0x5bef85);const _0x35b8ac=getValueByPath(_0x581acd,[_0x3e405e(0x394)]);_0x35b8ac!=null&&setValueByPath(_0x4f3894,[_0x3e405e(0x394)],_0x35b8ac);if(getValueByPath(_0x581acd,[_0x3e405e(0x5ce)])!==undefined)throw new Error(_0x3e405e(0x29b));return _0x4f3894;}function getModelParametersToMldev(_0x196038,_0x1820b9,_0x523c0c){const _0x1b34b7=a3_0x402819,_0x59cb92={},_0x522a64=getValueByPath(_0x1820b9,[_0x1b34b7(0x3f6)]);return _0x522a64!=null&&setValueByPath(_0x59cb92,[_0x1b34b7(0x1aa),'name'],tModel(_0x196038,_0x522a64)),_0x59cb92;}function getModelParametersToVertex(_0x546363,_0xfe210c,_0x416638){const _0x5945d6=a3_0x402819,_0x34b52b={},_0x1919cd=getValueByPath(_0xfe210c,[_0x5945d6(0x3f6)]);return _0x1919cd!=null&&setValueByPath(_0x34b52b,[_0x5945d6(0x1aa),'name'],tModel(_0x546363,_0x1919cd)),_0x34b52b;}function googleMapsToMldev$1(_0x139dd7,_0x357c51){const _0x4416b5=a3_0x402819,_0x50622d={};if(getValueByPath(_0x139dd7,['authConfig'])!==undefined)throw new Error(_0x4416b5(0x51e));const _0x4f78a9=getValueByPath(_0x139dd7,[_0x4416b5(0x489)]);return _0x4f78a9!=null&&setValueByPath(_0x50622d,[_0x4416b5(0x489)],_0x4f78a9),_0x50622d;}function googleSearchToMldev$1(_0x1d7110,_0x4c9e95){const _0x263541=a3_0x402819,_0x5b6b3f={};if(getValueByPath(_0x1d7110,[_0x263541(0x22c)])!==undefined)throw new Error(_0x263541(0x28d));if(getValueByPath(_0x1d7110,[_0x263541(0x20c)])!==undefined)throw new Error(_0x263541(0x50d));const _0x1aa8aa=getValueByPath(_0x1d7110,[_0x263541(0x1b3)]);return _0x1aa8aa!=null&&setValueByPath(_0x5b6b3f,[_0x263541(0x1b3)],_0x1aa8aa),_0x5b6b3f;}function imageConfigToMldev(_0x482c9b,_0x401db3){const _0x5327c7=a3_0x402819,_0x791e18={},_0x31e700=getValueByPath(_0x482c9b,['aspectRatio']);_0x31e700!=null&&setValueByPath(_0x791e18,[_0x5327c7(0x6f5)],_0x31e700);const _0x257d71=getValueByPath(_0x482c9b,[_0x5327c7(0x473)]);_0x257d71!=null&&setValueByPath(_0x791e18,[_0x5327c7(0x473)],_0x257d71);if(getValueByPath(_0x482c9b,[_0x5327c7(0x43e)])!==undefined)throw new Error(_0x5327c7(0x2e9));if(getValueByPath(_0x482c9b,[_0x5327c7(0x552)])!==undefined)throw new Error(_0x5327c7(0x437));if(getValueByPath(_0x482c9b,[_0x5327c7(0x67d)])!==undefined)throw new Error(_0x5327c7(0x475));return _0x791e18;}function imageConfigToVertex(_0x5db2e0,_0x25ddfe){const _0x5c2acb=a3_0x402819,_0x20e840={},_0x27e331=getValueByPath(_0x5db2e0,[_0x5c2acb(0x6f5)]);_0x27e331!=null&&setValueByPath(_0x20e840,[_0x5c2acb(0x6f5)],_0x27e331);const _0x58e9a=getValueByPath(_0x5db2e0,[_0x5c2acb(0x473)]);_0x58e9a!=null&&setValueByPath(_0x20e840,[_0x5c2acb(0x473)],_0x58e9a);const _0x378f98=getValueByPath(_0x5db2e0,['personGeneration']);_0x378f98!=null&&setValueByPath(_0x20e840,[_0x5c2acb(0x43e)],_0x378f98);const _0x1caa64=getValueByPath(_0x5db2e0,[_0x5c2acb(0x552)]);_0x1caa64!=null&&setValueByPath(_0x20e840,['imageOutputOptions',_0x5c2acb(0x542)],_0x1caa64);const _0x193746=getValueByPath(_0x5db2e0,[_0x5c2acb(0x67d)]);return _0x193746!=null&&setValueByPath(_0x20e840,[_0x5c2acb(0x58a),_0x5c2acb(0x442)],_0x193746),_0x20e840;}function imageFromMldev(_0x4caba5,_0x214ea8){const _0x25f5f8=a3_0x402819,_0x14d960={},_0x411e11=getValueByPath(_0x4caba5,[_0x25f5f8(0x579)]);_0x411e11!=null&&setValueByPath(_0x14d960,[_0x25f5f8(0x5de)],tBytes(_0x411e11));const _0x63d0e0=getValueByPath(_0x4caba5,[_0x25f5f8(0x542)]);return _0x63d0e0!=null&&setValueByPath(_0x14d960,['mimeType'],_0x63d0e0),_0x14d960;}function imageFromVertex(_0x126702,_0x11cf2c){const _0x23ca26=a3_0x402819,_0x494479={},_0x384904=getValueByPath(_0x126702,[_0x23ca26(0x3e3)]);_0x384904!=null&&setValueByPath(_0x494479,[_0x23ca26(0x3e3)],_0x384904);const _0x2e40cc=getValueByPath(_0x126702,[_0x23ca26(0x579)]);_0x2e40cc!=null&&setValueByPath(_0x494479,[_0x23ca26(0x5de)],tBytes(_0x2e40cc));const _0x5d2abe=getValueByPath(_0x126702,['mimeType']);return _0x5d2abe!=null&&setValueByPath(_0x494479,['mimeType'],_0x5d2abe),_0x494479;}function imageToMldev(_0x2b9d5f,_0x244480){const _0x1b1339=a3_0x402819,_0x24a34f={};if(getValueByPath(_0x2b9d5f,[_0x1b1339(0x3e3)])!==undefined)throw new Error(_0x1b1339(0x335));const _0x16d6fd=getValueByPath(_0x2b9d5f,[_0x1b1339(0x5de)]);_0x16d6fd!=null&&setValueByPath(_0x24a34f,['bytesBase64Encoded'],tBytes(_0x16d6fd));const _0x1521c3=getValueByPath(_0x2b9d5f,[_0x1b1339(0x542)]);return _0x1521c3!=null&&setValueByPath(_0x24a34f,[_0x1b1339(0x542)],_0x1521c3),_0x24a34f;}function imageToVertex(_0x432fe4,_0x294917){const _0x1ac154=a3_0x402819,_0x1acb2b={},_0x196219=getValueByPath(_0x432fe4,[_0x1ac154(0x3e3)]);_0x196219!=null&&setValueByPath(_0x1acb2b,['gcsUri'],_0x196219);const _0x226b4a=getValueByPath(_0x432fe4,['imageBytes']);_0x226b4a!=null&&setValueByPath(_0x1acb2b,[_0x1ac154(0x579)],tBytes(_0x226b4a));const _0x240c96=getValueByPath(_0x432fe4,[_0x1ac154(0x542)]);return _0x240c96!=null&&setValueByPath(_0x1acb2b,['mimeType'],_0x240c96),_0x1acb2b;}function listModelsConfigToMldev(_0x4d292a,_0x2e0516,_0x18d7a2,_0x546471){const _0x7f4c4c=a3_0x402819,_0x14ee03={},_0x159269=getValueByPath(_0x2e0516,[_0x7f4c4c(0x1f8)]);_0x18d7a2!==undefined&&_0x159269!=null&&setValueByPath(_0x18d7a2,[_0x7f4c4c(0x5fa),'pageSize'],_0x159269);const _0x3b003b=getValueByPath(_0x2e0516,[_0x7f4c4c(0x1a4)]);_0x18d7a2!==undefined&&_0x3b003b!=null&&setValueByPath(_0x18d7a2,[_0x7f4c4c(0x5fa),_0x7f4c4c(0x1a4)],_0x3b003b);const _0x3695a0=getValueByPath(_0x2e0516,[_0x7f4c4c(0x67f)]);_0x18d7a2!==undefined&&_0x3695a0!=null&&setValueByPath(_0x18d7a2,[_0x7f4c4c(0x5fa),'filter'],_0x3695a0);const _0x2c22ef=getValueByPath(_0x2e0516,[_0x7f4c4c(0x379)]);return _0x18d7a2!==undefined&&_0x2c22ef!=null&&setValueByPath(_0x18d7a2,[_0x7f4c4c(0x1aa),'models_url'],tModelsUrl(_0x4d292a,_0x2c22ef)),_0x14ee03;}function listModelsConfigToVertex(_0x3b3f9e,_0x1c9bf1,_0x1756de,_0x4baed0){const _0x59dec9=a3_0x402819,_0x307405={},_0x1884ca=getValueByPath(_0x1c9bf1,[_0x59dec9(0x1f8)]);_0x1756de!==undefined&&_0x1884ca!=null&&setValueByPath(_0x1756de,['_query',_0x59dec9(0x1f8)],_0x1884ca);const _0x5c362b=getValueByPath(_0x1c9bf1,['pageToken']);_0x1756de!==undefined&&_0x5c362b!=null&&setValueByPath(_0x1756de,[_0x59dec9(0x5fa),_0x59dec9(0x1a4)],_0x5c362b);const _0x16d35f=getValueByPath(_0x1c9bf1,[_0x59dec9(0x67f)]);_0x1756de!==undefined&&_0x16d35f!=null&&setValueByPath(_0x1756de,[_0x59dec9(0x5fa),_0x59dec9(0x67f)],_0x16d35f);const _0x7b6300=getValueByPath(_0x1c9bf1,['queryBase']);return _0x1756de!==undefined&&_0x7b6300!=null&&setValueByPath(_0x1756de,[_0x59dec9(0x1aa),_0x59dec9(0x4c0)],tModelsUrl(_0x3b3f9e,_0x7b6300)),_0x307405;}function listModelsParametersToMldev(_0x13551b,_0x46aecb,_0x2575b3){const _0x588ff6={},_0x727991=getValueByPath(_0x46aecb,['config']);return _0x727991!=null&&listModelsConfigToMldev(_0x13551b,_0x727991,_0x588ff6),_0x588ff6;}function listModelsParametersToVertex(_0x2c8cfd,_0x8e6b2a,_0x38f7b9){const _0x109b75=a3_0x402819,_0x1d829e={},_0x5e9100=getValueByPath(_0x8e6b2a,[_0x109b75(0x43b)]);return _0x5e9100!=null&&listModelsConfigToVertex(_0x2c8cfd,_0x5e9100,_0x1d829e),_0x1d829e;}function listModelsResponseFromMldev(_0xedfa3d,_0x31cacd){const _0x2080ef=a3_0x402819,_0x2ecc5f={},_0x1ab5b7=getValueByPath(_0xedfa3d,[_0x2080ef(0x3a7)]);_0x1ab5b7!=null&&setValueByPath(_0x2ecc5f,[_0x2080ef(0x3a7)],_0x1ab5b7);const _0x2961f6=getValueByPath(_0xedfa3d,[_0x2080ef(0x68e)]);_0x2961f6!=null&&setValueByPath(_0x2ecc5f,[_0x2080ef(0x68e)],_0x2961f6);const _0x5e845d=getValueByPath(_0xedfa3d,[_0x2080ef(0x6f6)]);if(_0x5e845d!=null){let _0x2f104e=tExtractModels(_0x5e845d);Array[_0x2080ef(0x32b)](_0x2f104e)&&(_0x2f104e=_0x2f104e['map'](_0x2d7a40=>{return modelFromMldev(_0x2d7a40);})),setValueByPath(_0x2ecc5f,[_0x2080ef(0x55a)],_0x2f104e);}return _0x2ecc5f;}function listModelsResponseFromVertex(_0x5863d1,_0x3c0b6a){const _0x5394ee=a3_0x402819,_0x3334e5={},_0x573afa=getValueByPath(_0x5863d1,['sdkHttpResponse']);_0x573afa!=null&&setValueByPath(_0x3334e5,[_0x5394ee(0x3a7)],_0x573afa);const _0x1f12fb=getValueByPath(_0x5863d1,[_0x5394ee(0x68e)]);_0x1f12fb!=null&&setValueByPath(_0x3334e5,[_0x5394ee(0x68e)],_0x1f12fb);const _0x3b065a=getValueByPath(_0x5863d1,[_0x5394ee(0x6f6)]);if(_0x3b065a!=null){let _0x52f451=tExtractModels(_0x3b065a);Array[_0x5394ee(0x32b)](_0x52f451)&&(_0x52f451=_0x52f451['map'](_0x221555=>{return modelFromVertex(_0x221555);})),setValueByPath(_0x3334e5,['models'],_0x52f451);}return _0x3334e5;}function maskReferenceConfigToVertex(_0x5a0eb3,_0x19bcb8){const _0x31601b=a3_0x402819,_0x173833={},_0x2844b1=getValueByPath(_0x5a0eb3,[_0x31601b(0x6cb)]);_0x2844b1!=null&&setValueByPath(_0x173833,[_0x31601b(0x6cb)],_0x2844b1);const _0x59fca9=getValueByPath(_0x5a0eb3,[_0x31601b(0x3e9)]);_0x59fca9!=null&&setValueByPath(_0x173833,['maskClasses'],_0x59fca9);const _0x3b1726=getValueByPath(_0x5a0eb3,[_0x31601b(0x4d8)]);return _0x3b1726!=null&&setValueByPath(_0x173833,[_0x31601b(0x33d)],_0x3b1726),_0x173833;}function modelFromMldev(_0x27252d,_0x1a6cd8){const _0x41c39f=a3_0x402819,_0x36e30f={},_0x295156=getValueByPath(_0x27252d,[_0x41c39f(0x3a4)]);_0x295156!=null&&setValueByPath(_0x36e30f,['name'],_0x295156);const _0x58dbb9=getValueByPath(_0x27252d,['displayName']);_0x58dbb9!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x199)],_0x58dbb9);const _0x1cf376=getValueByPath(_0x27252d,[_0x41c39f(0x3c3)]);_0x1cf376!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x3c3)],_0x1cf376);const _0x15dfca=getValueByPath(_0x27252d,[_0x41c39f(0x25d)]);_0x15dfca!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x25d)],_0x15dfca);const _0x5adcc7=getValueByPath(_0x27252d,['_self']);_0x5adcc7!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x704)],tunedModelInfoFromMldev(_0x5adcc7));const _0x39926c=getValueByPath(_0x27252d,[_0x41c39f(0x6d3)]);_0x39926c!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x6d3)],_0x39926c);const _0x196223=getValueByPath(_0x27252d,[_0x41c39f(0x234)]);_0x196223!=null&&setValueByPath(_0x36e30f,['outputTokenLimit'],_0x196223);const _0x4c6a6d=getValueByPath(_0x27252d,[_0x41c39f(0x32e)]);_0x4c6a6d!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x46e)],_0x4c6a6d);const _0x5007cd=getValueByPath(_0x27252d,[_0x41c39f(0x59f)]);_0x5007cd!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x59f)],_0x5007cd);const _0x49b8ff=getValueByPath(_0x27252d,[_0x41c39f(0x6c7)]);_0x49b8ff!=null&&setValueByPath(_0x36e30f,['maxTemperature'],_0x49b8ff);const _0x3d850c=getValueByPath(_0x27252d,[_0x41c39f(0x394)]);_0x3d850c!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x394)],_0x3d850c);const _0x2c98b5=getValueByPath(_0x27252d,[_0x41c39f(0x5ad)]);_0x2c98b5!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x5ad)],_0x2c98b5);const _0x1b0f8f=getValueByPath(_0x27252d,['thinking']);return _0x1b0f8f!=null&&setValueByPath(_0x36e30f,[_0x41c39f(0x5e8)],_0x1b0f8f),_0x36e30f;}function modelFromVertex(_0x5e9da8,_0x351b5b){const _0x2b77bf=a3_0x402819,_0x245a03={},_0x43a16a=getValueByPath(_0x5e9da8,[_0x2b77bf(0x3a4)]);_0x43a16a!=null&&setValueByPath(_0x245a03,[_0x2b77bf(0x3a4)],_0x43a16a);const _0x44e365=getValueByPath(_0x5e9da8,[_0x2b77bf(0x199)]);_0x44e365!=null&&setValueByPath(_0x245a03,[_0x2b77bf(0x199)],_0x44e365);const _0x625a3b=getValueByPath(_0x5e9da8,[_0x2b77bf(0x3c3)]);_0x625a3b!=null&&setValueByPath(_0x245a03,[_0x2b77bf(0x3c3)],_0x625a3b);const _0x226e55=getValueByPath(_0x5e9da8,[_0x2b77bf(0x522)]);_0x226e55!=null&&setValueByPath(_0x245a03,[_0x2b77bf(0x25d)],_0x226e55);const _0x5b51e0=getValueByPath(_0x5e9da8,[_0x2b77bf(0x492)]);if(_0x5b51e0!=null){let _0x532a76=_0x5b51e0;Array['isArray'](_0x532a76)&&(_0x532a76=_0x532a76[_0x2b77bf(0x6c4)](_0x1084e6=>{return endpointFromVertex(_0x1084e6);})),setValueByPath(_0x245a03,['endpoints'],_0x532a76);}const _0x5cbf4e=getValueByPath(_0x5e9da8,[_0x2b77bf(0x3ec)]);_0x5cbf4e!=null&&setValueByPath(_0x245a03,[_0x2b77bf(0x3ec)],_0x5cbf4e);const _0x541076=getValueByPath(_0x5e9da8,['_self']);_0x541076!=null&&setValueByPath(_0x245a03,[_0x2b77bf(0x704)],tunedModelInfoFromVertex(_0x541076));const _0x33fa11=getValueByPath(_0x5e9da8,[_0x2b77bf(0x600)]);_0x33fa11!=null&&setValueByPath(_0x245a03,['defaultCheckpointId'],_0x33fa11);const _0x962f0e=getValueByPath(_0x5e9da8,[_0x2b77bf(0x51b)]);if(_0x962f0e!=null){let _0x3807a8=_0x962f0e;Array[_0x2b77bf(0x32b)](_0x3807a8)&&(_0x3807a8=_0x3807a8[_0x2b77bf(0x6c4)](_0x1ff2f6=>{return _0x1ff2f6;})),setValueByPath(_0x245a03,['checkpoints'],_0x3807a8);}return _0x245a03;}function partToMldev$1(_0x1dffb0,_0x4aceb3){const _0x207ded=a3_0x402819,_0x329a0e={},_0xf954c5=getValueByPath(_0x1dffb0,['mediaResolution']);_0xf954c5!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x342)],_0xf954c5);const _0x519d53=getValueByPath(_0x1dffb0,[_0x207ded(0x4a6)]);_0x519d53!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x4a6)],_0x519d53);const _0x1afb8e=getValueByPath(_0x1dffb0,[_0x207ded(0x633)]);_0x1afb8e!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x633)],_0x1afb8e);const _0x568f70=getValueByPath(_0x1dffb0,[_0x207ded(0x2c3)]);_0x568f70!=null&&setValueByPath(_0x329a0e,['fileData'],fileDataToMldev$1(_0x568f70));const _0x400ff1=getValueByPath(_0x1dffb0,[_0x207ded(0x45f)]);_0x400ff1!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x45f)],functionCallToMldev$1(_0x400ff1));const _0x49bbbf=getValueByPath(_0x1dffb0,['functionResponse']);_0x49bbbf!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x483)],_0x49bbbf);const _0x3c5000=getValueByPath(_0x1dffb0,['inlineData']);_0x3c5000!=null&&setValueByPath(_0x329a0e,['inlineData'],blobToMldev$1(_0x3c5000));const _0x58e924=getValueByPath(_0x1dffb0,[_0x207ded(0x1a9)]);_0x58e924!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x1a9)],_0x58e924);const _0x2eed60=getValueByPath(_0x1dffb0,[_0x207ded(0x56f)]);_0x2eed60!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x56f)],_0x2eed60);const _0x926f2e=getValueByPath(_0x1dffb0,['thoughtSignature']);_0x926f2e!=null&&setValueByPath(_0x329a0e,[_0x207ded(0x38c)],_0x926f2e);const _0x5245bd=getValueByPath(_0x1dffb0,[_0x207ded(0x703)]);return _0x5245bd!=null&&setValueByPath(_0x329a0e,['videoMetadata'],_0x5245bd),_0x329a0e;}function productImageToVertex(_0x4ae861,_0x426d32){const _0x4439a8=a3_0x402819,_0x481e73={},_0x2ad8b1=getValueByPath(_0x4ae861,[_0x4439a8(0x432)]);return _0x2ad8b1!=null&&setValueByPath(_0x481e73,['image'],imageToVertex(_0x2ad8b1)),_0x481e73;}function recontextImageConfigToVertex(_0x5de064,_0x51b08c,_0x54bf7c){const _0x5c2d18=a3_0x402819,_0x132129={},_0x1030aa=getValueByPath(_0x5de064,['numberOfImages']);_0x51b08c!==undefined&&_0x1030aa!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),_0x5c2d18(0x3e4)],_0x1030aa);const _0x408d3c=getValueByPath(_0x5de064,['baseSteps']);_0x51b08c!==undefined&&_0x408d3c!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),_0x5c2d18(0x32a)],_0x408d3c);const _0x1aec78=getValueByPath(_0x5de064,[_0x5c2d18(0x201)]);_0x51b08c!==undefined&&_0x1aec78!=null&&setValueByPath(_0x51b08c,['parameters','storageUri'],_0x1aec78);const _0x177f75=getValueByPath(_0x5de064,[_0x5c2d18(0x39a)]);_0x51b08c!==undefined&&_0x177f75!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),_0x5c2d18(0x39a)],_0x177f75);const _0x1b9420=getValueByPath(_0x5de064,['safetyFilterLevel']);_0x51b08c!==undefined&&_0x1b9420!=null&&setValueByPath(_0x51b08c,['parameters','safetySetting'],_0x1b9420);const _0x182239=getValueByPath(_0x5de064,[_0x5c2d18(0x43e)]);_0x51b08c!==undefined&&_0x182239!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),_0x5c2d18(0x43e)],_0x182239);const _0x2ed272=getValueByPath(_0x5de064,[_0x5c2d18(0x4e8)]);_0x51b08c!==undefined&&_0x2ed272!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),'addWatermark'],_0x2ed272);const _0x3a6555=getValueByPath(_0x5de064,[_0x5c2d18(0x552)]);_0x51b08c!==undefined&&_0x3a6555!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),_0x5c2d18(0x54e),_0x5c2d18(0x542)],_0x3a6555);const _0x5d4bc7=getValueByPath(_0x5de064,[_0x5c2d18(0x67d)]);_0x51b08c!==undefined&&_0x5d4bc7!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x460),'outputOptions',_0x5c2d18(0x442)],_0x5d4bc7);const _0x5e6bec=getValueByPath(_0x5de064,[_0x5c2d18(0x64f)]);_0x51b08c!==undefined&&_0x5e6bec!=null&&setValueByPath(_0x51b08c,['parameters',_0x5c2d18(0x64f)],_0x5e6bec);const _0x1f4385=getValueByPath(_0x5de064,[_0x5c2d18(0x3ec)]);return _0x51b08c!==undefined&&_0x1f4385!=null&&setValueByPath(_0x51b08c,[_0x5c2d18(0x3ec)],_0x1f4385),_0x132129;}function recontextImageParametersToVertex(_0x1be795,_0xbeefd5,_0x12c89c){const _0x1b8d51=a3_0x402819,_0x5b57f1={},_0x172123=getValueByPath(_0xbeefd5,[_0x1b8d51(0x3f6)]);_0x172123!=null&&setValueByPath(_0x5b57f1,['_url',_0x1b8d51(0x3f6)],tModel(_0x1be795,_0x172123));const _0x2a3287=getValueByPath(_0xbeefd5,['source']);_0x2a3287!=null&&recontextImageSourceToVertex(_0x2a3287,_0x5b57f1);const _0x4f6765=getValueByPath(_0xbeefd5,['config']);return _0x4f6765!=null&&recontextImageConfigToVertex(_0x4f6765,_0x5b57f1),_0x5b57f1;}function recontextImageResponseFromVertex(_0x5b9c4e,_0x45f5bb){const _0x4254a2=a3_0x402819,_0x2cf4c1={},_0x7030c5=getValueByPath(_0x5b9c4e,[_0x4254a2(0x4de)]);if(_0x7030c5!=null){let _0x80ed3f=_0x7030c5;Array['isArray'](_0x80ed3f)&&(_0x80ed3f=_0x80ed3f[_0x4254a2(0x6c4)](_0x6d0bec=>{return generatedImageFromVertex(_0x6d0bec);})),setValueByPath(_0x2cf4c1,[_0x4254a2(0x1f5)],_0x80ed3f);}return _0x2cf4c1;}function recontextImageSourceToVertex(_0x2d880d,_0x39efc2,_0x21d7b7){const _0x44901b=a3_0x402819,_0x286f7c={},_0x27614d=getValueByPath(_0x2d880d,[_0x44901b(0x6f3)]);_0x39efc2!==undefined&&_0x27614d!=null&&setValueByPath(_0x39efc2,['instances[0]',_0x44901b(0x6f3)],_0x27614d);const _0x1d741c=getValueByPath(_0x2d880d,[_0x44901b(0x614)]);_0x39efc2!==undefined&&_0x1d741c!=null&&setValueByPath(_0x39efc2,['instances[0]',_0x44901b(0x614),'image'],imageToVertex(_0x1d741c));const _0x432fb5=getValueByPath(_0x2d880d,[_0x44901b(0x381)]);if(_0x39efc2!==undefined&&_0x432fb5!=null){let _0x557533=_0x432fb5;Array[_0x44901b(0x32b)](_0x557533)&&(_0x557533=_0x557533[_0x44901b(0x6c4)](_0x50e10=>{return productImageToVertex(_0x50e10);})),setValueByPath(_0x39efc2,['instances[0]',_0x44901b(0x381)],_0x557533);}return _0x286f7c;}function referenceImageAPIInternalToVertex(_0x565f8b,_0x553579){const _0x1f9c72=a3_0x402819,_0x3c2309={},_0x679e96=getValueByPath(_0x565f8b,[_0x1f9c72(0x578)]);_0x679e96!=null&&setValueByPath(_0x3c2309,[_0x1f9c72(0x578)],imageToVertex(_0x679e96));const _0x56beac=getValueByPath(_0x565f8b,[_0x1f9c72(0x5df)]);_0x56beac!=null&&setValueByPath(_0x3c2309,[_0x1f9c72(0x5df)],_0x56beac);const _0x19ff2f=getValueByPath(_0x565f8b,[_0x1f9c72(0x428)]);_0x19ff2f!=null&&setValueByPath(_0x3c2309,['referenceType'],_0x19ff2f);const _0x62a174=getValueByPath(_0x565f8b,[_0x1f9c72(0x708)]);_0x62a174!=null&&setValueByPath(_0x3c2309,[_0x1f9c72(0x708)],maskReferenceConfigToVertex(_0x62a174));const _0x931719=getValueByPath(_0x565f8b,['controlImageConfig']);_0x931719!=null&&setValueByPath(_0x3c2309,[_0x1f9c72(0x697)],controlReferenceConfigToVertex(_0x931719));const _0x67dc33=getValueByPath(_0x565f8b,[_0x1f9c72(0x5e6)]);_0x67dc33!=null&&setValueByPath(_0x3c2309,['styleImageConfig'],_0x67dc33);const _0xf5ae63=getValueByPath(_0x565f8b,['subjectImageConfig']);return _0xf5ae63!=null&&setValueByPath(_0x3c2309,[_0x1f9c72(0x6c9)],_0xf5ae63),_0x3c2309;}function safetyAttributesFromMldev(_0x21ab54,_0x2076e4){const _0x53e824=a3_0x402819,_0x132538={},_0x17cabc=getValueByPath(_0x21ab54,[_0x53e824(0x2a7),_0x53e824(0x2ee)]);_0x17cabc!=null&&setValueByPath(_0x132538,['categories'],_0x17cabc);const _0x2e696b=getValueByPath(_0x21ab54,[_0x53e824(0x2a7),_0x53e824(0x469)]);_0x2e696b!=null&&setValueByPath(_0x132538,[_0x53e824(0x469)],_0x2e696b);const _0x54de52=getValueByPath(_0x21ab54,['contentType']);return _0x54de52!=null&&setValueByPath(_0x132538,[_0x53e824(0x723)],_0x54de52),_0x132538;}function safetyAttributesFromVertex(_0x25bf97,_0x28913a){const _0x126131=a3_0x402819,_0x314dd4={},_0x77a00a=getValueByPath(_0x25bf97,[_0x126131(0x2a7),_0x126131(0x2ee)]);_0x77a00a!=null&&setValueByPath(_0x314dd4,[_0x126131(0x2ee)],_0x77a00a);const _0x10cfd7=getValueByPath(_0x25bf97,[_0x126131(0x2a7),_0x126131(0x469)]);_0x10cfd7!=null&&setValueByPath(_0x314dd4,[_0x126131(0x469)],_0x10cfd7);const _0x1817af=getValueByPath(_0x25bf97,[_0x126131(0x723)]);return _0x1817af!=null&&setValueByPath(_0x314dd4,['contentType'],_0x1817af),_0x314dd4;}function safetySettingToMldev(_0x3fe1cc,_0x3e77dd){const _0x2b64a7=a3_0x402819,_0x42c0e8={},_0x20c3e4=getValueByPath(_0x3fe1cc,[_0x2b64a7(0x2bc)]);_0x20c3e4!=null&&setValueByPath(_0x42c0e8,[_0x2b64a7(0x2bc)],_0x20c3e4);if(getValueByPath(_0x3fe1cc,[_0x2b64a7(0x510)])!==undefined)throw new Error(_0x2b64a7(0x281));const _0x46145d=getValueByPath(_0x3fe1cc,[_0x2b64a7(0x5fc)]);return _0x46145d!=null&&setValueByPath(_0x42c0e8,[_0x2b64a7(0x5fc)],_0x46145d),_0x42c0e8;}function scribbleImageToVertex(_0x124f7d,_0x49bfca){const _0x3d92e2=a3_0x402819,_0x5d3eb5={},_0x3558f5=getValueByPath(_0x124f7d,[_0x3d92e2(0x669)]);return _0x3558f5!=null&&setValueByPath(_0x5d3eb5,['image'],imageToVertex(_0x3558f5)),_0x5d3eb5;}function segmentImageConfigToVertex(_0x522296,_0x42a04a,_0x4f60c1){const _0x222be1=a3_0x402819,_0x59d42a={},_0x50255a=getValueByPath(_0x522296,[_0x222be1(0x43d)]);_0x42a04a!==undefined&&_0x50255a!=null&&setValueByPath(_0x42a04a,[_0x222be1(0x460),_0x222be1(0x43d)],_0x50255a);const _0x4dfba7=getValueByPath(_0x522296,[_0x222be1(0x55f)]);_0x42a04a!==undefined&&_0x4dfba7!=null&&setValueByPath(_0x42a04a,[_0x222be1(0x460),_0x222be1(0x55f)],_0x4dfba7);const _0x4246cf=getValueByPath(_0x522296,[_0x222be1(0x726)]);_0x42a04a!==undefined&&_0x4246cf!=null&&setValueByPath(_0x42a04a,[_0x222be1(0x460),_0x222be1(0x726)],_0x4246cf);const _0x543bdc=getValueByPath(_0x522296,[_0x222be1(0x4d8)]);_0x42a04a!==undefined&&_0x543bdc!=null&&setValueByPath(_0x42a04a,[_0x222be1(0x460),_0x222be1(0x4d8)],_0x543bdc);const _0xfc08a1=getValueByPath(_0x522296,[_0x222be1(0x4a7)]);_0x42a04a!==undefined&&_0xfc08a1!=null&&setValueByPath(_0x42a04a,[_0x222be1(0x460),_0x222be1(0x4a7)],_0xfc08a1);const _0x3d06aa=getValueByPath(_0x522296,['labels']);return _0x42a04a!==undefined&&_0x3d06aa!=null&&setValueByPath(_0x42a04a,['labels'],_0x3d06aa),_0x59d42a;}function segmentImageParametersToVertex(_0x2abb0b,_0xfa2f67,_0x140fd3){const _0xbd1848=a3_0x402819,_0x30baba={},_0x3cf49c=getValueByPath(_0xfa2f67,['model']);_0x3cf49c!=null&&setValueByPath(_0x30baba,[_0xbd1848(0x1aa),_0xbd1848(0x3f6)],tModel(_0x2abb0b,_0x3cf49c));const _0x3f9ffc=getValueByPath(_0xfa2f67,[_0xbd1848(0x643)]);_0x3f9ffc!=null&&segmentImageSourceToVertex(_0x3f9ffc,_0x30baba);const _0x13aa2a=getValueByPath(_0xfa2f67,['config']);return _0x13aa2a!=null&&segmentImageConfigToVertex(_0x13aa2a,_0x30baba),_0x30baba;}function segmentImageResponseFromVertex(_0x3e1934,_0x56ea4e){const _0x255640=a3_0x402819,_0x5a0a8e={},_0x27e07b=getValueByPath(_0x3e1934,['predictions']);if(_0x27e07b!=null){let _0x400fb6=_0x27e07b;Array['isArray'](_0x400fb6)&&(_0x400fb6=_0x400fb6[_0x255640(0x6c4)](_0x844860=>{return generatedImageMaskFromVertex(_0x844860);})),setValueByPath(_0x5a0a8e,[_0x255640(0x2ca)],_0x400fb6);}return _0x5a0a8e;}function segmentImageSourceToVertex(_0x213e90,_0x202047,_0x5604bb){const _0x3522bd=a3_0x402819,_0x2c8536={},_0x256847=getValueByPath(_0x213e90,[_0x3522bd(0x6f3)]);_0x202047!==undefined&&_0x256847!=null&&setValueByPath(_0x202047,[_0x3522bd(0x5fb),_0x3522bd(0x6f3)],_0x256847);const _0x2e5df1=getValueByPath(_0x213e90,[_0x3522bd(0x669)]);_0x202047!==undefined&&_0x2e5df1!=null&&setValueByPath(_0x202047,[_0x3522bd(0x5fb),_0x3522bd(0x669)],imageToVertex(_0x2e5df1));const _0xd480d0=getValueByPath(_0x213e90,[_0x3522bd(0x61b)]);return _0x202047!==undefined&&_0xd480d0!=null&&setValueByPath(_0x202047,[_0x3522bd(0x5fb),_0x3522bd(0x29d)],scribbleImageToVertex(_0xd480d0)),_0x2c8536;}function toolConfigToMldev(_0x18c7de,_0x17b13f){const _0x28bce7=a3_0x402819,_0x1ac90b={},_0x478526=getValueByPath(_0x18c7de,[_0x28bce7(0x636)]);_0x478526!=null&&setValueByPath(_0x1ac90b,['retrievalConfig'],_0x478526);const _0x34f56a=getValueByPath(_0x18c7de,[_0x28bce7(0x2f0)]);return _0x34f56a!=null&&setValueByPath(_0x1ac90b,[_0x28bce7(0x2f0)],functionCallingConfigToMldev(_0x34f56a)),_0x1ac90b;}function toolToMldev$1(_0xc14c36,_0x2a4e48){const _0x1674de=a3_0x402819,_0x20cd6c={};if(getValueByPath(_0xc14c36,[_0x1674de(0x472)])!==undefined)throw new Error(_0x1674de(0x4ab));const _0x28a1b2=getValueByPath(_0xc14c36,[_0x1674de(0x5bf)]);_0x28a1b2!=null&&setValueByPath(_0x20cd6c,[_0x1674de(0x5bf)],_0x28a1b2);const _0x3283c1=getValueByPath(_0xc14c36,[_0x1674de(0x375)]);_0x3283c1!=null&&setValueByPath(_0x20cd6c,[_0x1674de(0x375)],_0x3283c1);const _0x410292=getValueByPath(_0xc14c36,[_0x1674de(0x5e2)]);_0x410292!=null&&setValueByPath(_0x20cd6c,[_0x1674de(0x5e2)],_0x410292);if(getValueByPath(_0xc14c36,[_0x1674de(0x5af)])!==undefined)throw new Error(_0x1674de(0x3de));const _0x2bb478=getValueByPath(_0xc14c36,['functionDeclarations']);if(_0x2bb478!=null){let _0x4783d1=_0x2bb478;Array[_0x1674de(0x32b)](_0x4783d1)&&(_0x4783d1=_0x4783d1[_0x1674de(0x6c4)](_0x95b614=>{return _0x95b614;})),setValueByPath(_0x20cd6c,['functionDeclarations'],_0x4783d1);}const _0x5aed8b=getValueByPath(_0xc14c36,[_0x1674de(0x62b)]);_0x5aed8b!=null&&setValueByPath(_0x20cd6c,[_0x1674de(0x62b)],googleMapsToMldev$1(_0x5aed8b));const _0x4f826d=getValueByPath(_0xc14c36,['googleSearch']);_0x4f826d!=null&&setValueByPath(_0x20cd6c,[_0x1674de(0x5ed)],googleSearchToMldev$1(_0x4f826d));const _0x3f5276=getValueByPath(_0xc14c36,[_0x1674de(0x3f1)]);_0x3f5276!=null&&setValueByPath(_0x20cd6c,[_0x1674de(0x3f1)],_0x3f5276);const _0x20032b=getValueByPath(_0xc14c36,[_0x1674de(0x55e)]);return _0x20032b!=null&&setValueByPath(_0x20cd6c,['urlContext'],_0x20032b),_0x20cd6c;}function toolToVertex(_0x307c4c,_0x11fce2){const _0x7a7fe0=a3_0x402819,_0xb5934={},_0x4b38ce=getValueByPath(_0x307c4c,[_0x7a7fe0(0x472)]);_0x4b38ce!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x472)],_0x4b38ce);const _0x33aab8=getValueByPath(_0x307c4c,[_0x7a7fe0(0x5bf)]);_0x33aab8!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x5bf)],_0x33aab8);if(getValueByPath(_0x307c4c,[_0x7a7fe0(0x375)])!==undefined)throw new Error(_0x7a7fe0(0x57f));const _0x241cce=getValueByPath(_0x307c4c,[_0x7a7fe0(0x5e2)]);_0x241cce!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x5e2)],_0x241cce);const _0x513a40=getValueByPath(_0x307c4c,[_0x7a7fe0(0x5af)]);_0x513a40!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x5af)],_0x513a40);const _0x1329b2=getValueByPath(_0x307c4c,['functionDeclarations']);if(_0x1329b2!=null){let _0x48057d=_0x1329b2;Array['isArray'](_0x48057d)&&(_0x48057d=_0x48057d['map'](_0x1f9105=>{return functionDeclarationToVertex(_0x1f9105);})),setValueByPath(_0xb5934,[_0x7a7fe0(0x5f8)],_0x48057d);}const _0x3b3785=getValueByPath(_0x307c4c,[_0x7a7fe0(0x62b)]);_0x3b3785!=null&&setValueByPath(_0xb5934,['googleMaps'],_0x3b3785);const _0xe9895b=getValueByPath(_0x307c4c,[_0x7a7fe0(0x5ed)]);_0xe9895b!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x5ed)],_0xe9895b);const _0x2956c0=getValueByPath(_0x307c4c,[_0x7a7fe0(0x3f1)]);_0x2956c0!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x3f1)],_0x2956c0);const _0xd556cc=getValueByPath(_0x307c4c,['urlContext']);return _0xd556cc!=null&&setValueByPath(_0xb5934,[_0x7a7fe0(0x55e)],_0xd556cc),_0xb5934;}function tunedModelInfoFromMldev(_0x4f6e77,_0x34fb12){const _0x15390f=a3_0x402819,_0x132b96={},_0x4600f6=getValueByPath(_0x4f6e77,[_0x15390f(0x435)]);_0x4600f6!=null&&setValueByPath(_0x132b96,['baseModel'],_0x4600f6);const _0x214695=getValueByPath(_0x4f6e77,[_0x15390f(0x393)]);_0x214695!=null&&setValueByPath(_0x132b96,[_0x15390f(0x393)],_0x214695);const _0x51cbbb=getValueByPath(_0x4f6e77,[_0x15390f(0x414)]);return _0x51cbbb!=null&&setValueByPath(_0x132b96,[_0x15390f(0x414)],_0x51cbbb),_0x132b96;}function tunedModelInfoFromVertex(_0x186096,_0x4efe4e){const _0x4b3383=a3_0x402819,_0x26c026={},_0xf7c7f=getValueByPath(_0x186096,['labels',_0x4b3383(0x2cf)]);_0xf7c7f!=null&&setValueByPath(_0x26c026,[_0x4b3383(0x435)],_0xf7c7f);const _0x13875c=getValueByPath(_0x186096,[_0x4b3383(0x393)]);_0x13875c!=null&&setValueByPath(_0x26c026,[_0x4b3383(0x393)],_0x13875c);const _0x26c3b5=getValueByPath(_0x186096,['updateTime']);return _0x26c3b5!=null&&setValueByPath(_0x26c026,['updateTime'],_0x26c3b5),_0x26c026;}function updateModelConfigToMldev(_0xee7ae9,_0x38e4cc,_0x265f6a){const _0x2d411f=a3_0x402819,_0x1999a4={},_0xa7aa67=getValueByPath(_0xee7ae9,[_0x2d411f(0x199)]);_0x38e4cc!==undefined&&_0xa7aa67!=null&&setValueByPath(_0x38e4cc,['displayName'],_0xa7aa67);const _0xe3415e=getValueByPath(_0xee7ae9,['description']);_0x38e4cc!==undefined&&_0xe3415e!=null&&setValueByPath(_0x38e4cc,[_0x2d411f(0x3c3)],_0xe3415e);const _0x4899fe=getValueByPath(_0xee7ae9,[_0x2d411f(0x600)]);return _0x38e4cc!==undefined&&_0x4899fe!=null&&setValueByPath(_0x38e4cc,['defaultCheckpointId'],_0x4899fe),_0x1999a4;}function updateModelConfigToVertex(_0x2def0f,_0x1a9616,_0x10578c){const _0x52ee28=a3_0x402819,_0x1b0434={},_0x3b4ca4=getValueByPath(_0x2def0f,[_0x52ee28(0x199)]);_0x1a9616!==undefined&&_0x3b4ca4!=null&&setValueByPath(_0x1a9616,[_0x52ee28(0x199)],_0x3b4ca4);const _0x588593=getValueByPath(_0x2def0f,['description']);_0x1a9616!==undefined&&_0x588593!=null&&setValueByPath(_0x1a9616,[_0x52ee28(0x3c3)],_0x588593);const _0x15704e=getValueByPath(_0x2def0f,[_0x52ee28(0x600)]);return _0x1a9616!==undefined&&_0x15704e!=null&&setValueByPath(_0x1a9616,[_0x52ee28(0x600)],_0x15704e),_0x1b0434;}function updateModelParametersToMldev(_0x5cfd0d,_0x14fa85,_0x25ce01){const _0x13c81d=a3_0x402819,_0x35f9b9={},_0x13ac80=getValueByPath(_0x14fa85,[_0x13c81d(0x3f6)]);_0x13ac80!=null&&setValueByPath(_0x35f9b9,[_0x13c81d(0x1aa),_0x13c81d(0x3a4)],tModel(_0x5cfd0d,_0x13ac80));const _0xa458a6=getValueByPath(_0x14fa85,[_0x13c81d(0x43b)]);return _0xa458a6!=null&&updateModelConfigToMldev(_0xa458a6,_0x35f9b9),_0x35f9b9;}function updateModelParametersToVertex(_0xa5352e,_0x1cf46d,_0x46d618){const _0x296f8b=a3_0x402819,_0x2228f5={},_0x3a0454=getValueByPath(_0x1cf46d,['model']);_0x3a0454!=null&&setValueByPath(_0x2228f5,[_0x296f8b(0x1aa),'model'],tModel(_0xa5352e,_0x3a0454));const _0x4442d7=getValueByPath(_0x1cf46d,[_0x296f8b(0x43b)]);return _0x4442d7!=null&&updateModelConfigToVertex(_0x4442d7,_0x2228f5),_0x2228f5;}function upscaleImageAPIConfigInternalToVertex(_0x20ee16,_0x1ca882,_0x4eea6d){const _0x405e71=a3_0x402819,_0x311b5f={},_0x5eb4e0=getValueByPath(_0x20ee16,['outputGcsUri']);_0x1ca882!==undefined&&_0x5eb4e0!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x460),_0x405e71(0x3cf)],_0x5eb4e0);const _0x208446=getValueByPath(_0x20ee16,[_0x405e71(0x26d)]);_0x1ca882!==undefined&&_0x208446!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x460),'safetySetting'],_0x208446);const _0x212b62=getValueByPath(_0x20ee16,[_0x405e71(0x43e)]);_0x1ca882!==undefined&&_0x212b62!=null&&setValueByPath(_0x1ca882,['parameters',_0x405e71(0x43e)],_0x212b62);const _0x3bcf0b=getValueByPath(_0x20ee16,['includeRaiReason']);_0x1ca882!==undefined&&_0x3bcf0b!=null&&setValueByPath(_0x1ca882,['parameters',_0x405e71(0x70f)],_0x3bcf0b);const _0x2976b0=getValueByPath(_0x20ee16,[_0x405e71(0x552)]);_0x1ca882!==undefined&&_0x2976b0!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x460),_0x405e71(0x54e),'mimeType'],_0x2976b0);const _0x600539=getValueByPath(_0x20ee16,[_0x405e71(0x67d)]);_0x1ca882!==undefined&&_0x600539!=null&&setValueByPath(_0x1ca882,['parameters',_0x405e71(0x54e),_0x405e71(0x442)],_0x600539);const _0x1e5562=getValueByPath(_0x20ee16,[_0x405e71(0x5c6)]);_0x1ca882!==undefined&&_0x1e5562!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x460),_0x405e71(0x29c),_0x405e71(0x5c6)],_0x1e5562);const _0x5319c7=getValueByPath(_0x20ee16,['imagePreservationFactor']);_0x1ca882!==undefined&&_0x5319c7!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x460),'upscaleConfig',_0x405e71(0x349)],_0x5319c7);const _0x261c5f=getValueByPath(_0x20ee16,['labels']);_0x1ca882!==undefined&&_0x261c5f!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x3ec)],_0x261c5f);const _0x5e0f00=getValueByPath(_0x20ee16,[_0x405e71(0x602)]);_0x1ca882!==undefined&&_0x5e0f00!=null&&setValueByPath(_0x1ca882,['parameters',_0x405e71(0x3e4)],_0x5e0f00);const _0x328610=getValueByPath(_0x20ee16,[_0x405e71(0x43d)]);return _0x1ca882!==undefined&&_0x328610!=null&&setValueByPath(_0x1ca882,[_0x405e71(0x460),'mode'],_0x328610),_0x311b5f;}function a3_0x4a6d(_0x34133b,_0x5d9546){_0x34133b=_0x34133b-0x199;const _0x3bdba1=a3_0x3bdb();let _0x4a6d48=_0x3bdba1[_0x34133b];return _0x4a6d48;}function upscaleImageAPIParametersInternalToVertex(_0x370281,_0x42d98b,_0x1adb77){const _0x1ea4cc=a3_0x402819,_0x3b0a6c={},_0x4bd720=getValueByPath(_0x42d98b,['model']);_0x4bd720!=null&&setValueByPath(_0x3b0a6c,[_0x1ea4cc(0x1aa),_0x1ea4cc(0x3f6)],tModel(_0x370281,_0x4bd720));const _0x5426d7=getValueByPath(_0x42d98b,['image']);_0x5426d7!=null&&setValueByPath(_0x3b0a6c,[_0x1ea4cc(0x5fb),_0x1ea4cc(0x669)],imageToVertex(_0x5426d7));const _0x2fc406=getValueByPath(_0x42d98b,[_0x1ea4cc(0x38e)]);_0x2fc406!=null&&setValueByPath(_0x3b0a6c,[_0x1ea4cc(0x460),_0x1ea4cc(0x29c),_0x1ea4cc(0x38e)],_0x2fc406);const _0x5858fa=getValueByPath(_0x42d98b,['config']);return _0x5858fa!=null&&upscaleImageAPIConfigInternalToVertex(_0x5858fa,_0x3b0a6c),_0x3b0a6c;}function upscaleImageResponseFromVertex(_0x7d8211,_0x142031){const _0x256a6b=a3_0x402819,_0x159cee={},_0x38fe7c=getValueByPath(_0x7d8211,[_0x256a6b(0x3a7)]);_0x38fe7c!=null&&setValueByPath(_0x159cee,[_0x256a6b(0x3a7)],_0x38fe7c);const _0x290756=getValueByPath(_0x7d8211,['predictions']);if(_0x290756!=null){let _0x2fae72=_0x290756;Array[_0x256a6b(0x32b)](_0x2fae72)&&(_0x2fae72=_0x2fae72[_0x256a6b(0x6c4)](_0x9f60d0=>{return generatedImageFromVertex(_0x9f60d0);})),setValueByPath(_0x159cee,[_0x256a6b(0x1f5)],_0x2fae72);}return _0x159cee;}function videoFromMldev(_0x4ac2d2,_0x364647){const _0x25fc1d=a3_0x402819,_0x36c7b5={},_0x2dc2b2=getValueByPath(_0x4ac2d2,[_0x25fc1d(0x210)]);_0x2dc2b2!=null&&setValueByPath(_0x36c7b5,[_0x25fc1d(0x210)],_0x2dc2b2);const _0x431727=getValueByPath(_0x4ac2d2,[_0x25fc1d(0x711)]);_0x431727!=null&&setValueByPath(_0x36c7b5,[_0x25fc1d(0x1b8)],tBytes(_0x431727));const _0x48656f=getValueByPath(_0x4ac2d2,[_0x25fc1d(0x1ec)]);return _0x48656f!=null&&setValueByPath(_0x36c7b5,[_0x25fc1d(0x542)],_0x48656f),_0x36c7b5;}function videoFromVertex(_0x3dcf3b,_0x55f84e){const _0x1a0c1c=a3_0x402819,_0x29532c={},_0x3436b2=getValueByPath(_0x3dcf3b,['gcsUri']);_0x3436b2!=null&&setValueByPath(_0x29532c,['uri'],_0x3436b2);const _0x2518d2=getValueByPath(_0x3dcf3b,[_0x1a0c1c(0x579)]);_0x2518d2!=null&&setValueByPath(_0x29532c,[_0x1a0c1c(0x1b8)],tBytes(_0x2518d2));const _0xc2b382=getValueByPath(_0x3dcf3b,[_0x1a0c1c(0x542)]);return _0xc2b382!=null&&setValueByPath(_0x29532c,['mimeType'],_0xc2b382),_0x29532c;}function videoGenerationMaskToVertex(_0xc638fa,_0x386148){const _0x16f276=a3_0x402819,_0x7867a3={},_0x71bca1=getValueByPath(_0xc638fa,[_0x16f276(0x669)]);_0x71bca1!=null&&setValueByPath(_0x7867a3,[_0x16f276(0x6f6)],imageToVertex(_0x71bca1));const _0x5da07f=getValueByPath(_0xc638fa,[_0x16f276(0x6cb)]);return _0x5da07f!=null&&setValueByPath(_0x7867a3,[_0x16f276(0x6cb)],_0x5da07f),_0x7867a3;}function videoGenerationReferenceImageToMldev(_0x56ac42,_0x2a029a){const _0x48a93=a3_0x402819,_0x36b5eb={},_0x147979=getValueByPath(_0x56ac42,['image']);_0x147979!=null&&setValueByPath(_0x36b5eb,['image'],imageToMldev(_0x147979));const _0x2dcb1d=getValueByPath(_0x56ac42,[_0x48a93(0x428)]);return _0x2dcb1d!=null&&setValueByPath(_0x36b5eb,['referenceType'],_0x2dcb1d),_0x36b5eb;}function videoGenerationReferenceImageToVertex(_0x55c065,_0x3eb5a2){const _0x4c0396=a3_0x402819,_0x2a9d71={},_0x334b13=getValueByPath(_0x55c065,[_0x4c0396(0x669)]);_0x334b13!=null&&setValueByPath(_0x2a9d71,[_0x4c0396(0x669)],imageToVertex(_0x334b13));const _0x1798dc=getValueByPath(_0x55c065,[_0x4c0396(0x428)]);return _0x1798dc!=null&&setValueByPath(_0x2a9d71,['referenceType'],_0x1798dc),_0x2a9d71;}function videoToMldev(_0x4d1bb2,_0x4e8a7f){const _0x2a28d4=a3_0x402819,_0x25c787={},_0x2f7fd6=getValueByPath(_0x4d1bb2,['uri']);_0x2f7fd6!=null&&setValueByPath(_0x25c787,[_0x2a28d4(0x210)],_0x2f7fd6);const _0x28baa1=getValueByPath(_0x4d1bb2,[_0x2a28d4(0x1b8)]);_0x28baa1!=null&&setValueByPath(_0x25c787,['encodedVideo'],tBytes(_0x28baa1));const _0x5504dc=getValueByPath(_0x4d1bb2,['mimeType']);return _0x5504dc!=null&&setValueByPath(_0x25c787,[_0x2a28d4(0x1ec)],_0x5504dc),_0x25c787;}function videoToVertex(_0x1bf4d2,_0x31ebb3){const _0x12b928=a3_0x402819,_0x58ac72={},_0x9dbf0e=getValueByPath(_0x1bf4d2,[_0x12b928(0x210)]);_0x9dbf0e!=null&&setValueByPath(_0x58ac72,['gcsUri'],_0x9dbf0e);const _0x338fbc=getValueByPath(_0x1bf4d2,[_0x12b928(0x1b8)]);_0x338fbc!=null&&setValueByPath(_0x58ac72,[_0x12b928(0x579)],tBytes(_0x338fbc));const _0x450390=getValueByPath(_0x1bf4d2,['mimeType']);return _0x450390!=null&&setValueByPath(_0x58ac72,[_0x12b928(0x542)],_0x450390),_0x58ac72;}/**
87
+ * @license
88
+ * Copyright 2025 Google LLC
89
+ * SPDX-License-Identifier: Apache-2.0
90
+ */
91
+ function createFileSearchStoreConfigToMldev(_0x2f6d4,_0x254ae6){const _0x31088f=a3_0x402819,_0x3e6790={},_0x18a495=getValueByPath(_0x2f6d4,[_0x31088f(0x199)]);return _0x254ae6!==undefined&&_0x18a495!=null&&setValueByPath(_0x254ae6,['displayName'],_0x18a495),_0x3e6790;}function createFileSearchStoreParametersToMldev(_0x544bd2){const _0x422179=a3_0x402819,_0x50e0a5={},_0x2531c3=getValueByPath(_0x544bd2,[_0x422179(0x43b)]);return _0x2531c3!=null&&createFileSearchStoreConfigToMldev(_0x2531c3,_0x50e0a5),_0x50e0a5;}function deleteFileSearchStoreConfigToMldev(_0x3090dc,_0x4bd8e2){const _0x5ac441=a3_0x402819,_0x27cbef={},_0x2bc69c=getValueByPath(_0x3090dc,[_0x5ac441(0x456)]);return _0x4bd8e2!==undefined&&_0x2bc69c!=null&&setValueByPath(_0x4bd8e2,[_0x5ac441(0x5fa),_0x5ac441(0x456)],_0x2bc69c),_0x27cbef;}function deleteFileSearchStoreParametersToMldev(_0x4626c6){const _0x4a2e4a=a3_0x402819,_0x8a369b={},_0x421e61=getValueByPath(_0x4626c6,['name']);_0x421e61!=null&&setValueByPath(_0x8a369b,[_0x4a2e4a(0x1aa),'name'],_0x421e61);const _0x1e6149=getValueByPath(_0x4626c6,['config']);return _0x1e6149!=null&&deleteFileSearchStoreConfigToMldev(_0x1e6149,_0x8a369b),_0x8a369b;}function getFileSearchStoreParametersToMldev(_0x495205){const _0x4aa74d=a3_0x402819,_0x39bbbe={},_0x4dad00=getValueByPath(_0x495205,[_0x4aa74d(0x3a4)]);return _0x4dad00!=null&&setValueByPath(_0x39bbbe,[_0x4aa74d(0x1aa),'name'],_0x4dad00),_0x39bbbe;}function importFileConfigToMldev(_0x11ca5b,_0x27e85e){const _0x3223a8=a3_0x402819,_0x38f1b3={},_0x34411f=getValueByPath(_0x11ca5b,[_0x3223a8(0x204)]);if(_0x27e85e!==undefined&&_0x34411f!=null){let _0x56d4ab=_0x34411f;Array[_0x3223a8(0x32b)](_0x56d4ab)&&(_0x56d4ab=_0x56d4ab[_0x3223a8(0x6c4)](_0x584671=>{return _0x584671;})),setValueByPath(_0x27e85e,['customMetadata'],_0x56d4ab);}const _0x13c159=getValueByPath(_0x11ca5b,[_0x3223a8(0x656)]);return _0x27e85e!==undefined&&_0x13c159!=null&&setValueByPath(_0x27e85e,['chunkingConfig'],_0x13c159),_0x38f1b3;}function importFileOperationFromMldev(_0x270140){const _0x122341=a3_0x402819,_0x48d32a={},_0xb005d2=getValueByPath(_0x270140,[_0x122341(0x3a4)]);_0xb005d2!=null&&setValueByPath(_0x48d32a,[_0x122341(0x3a4)],_0xb005d2);const _0x125b8b=getValueByPath(_0x270140,[_0x122341(0x266)]);_0x125b8b!=null&&setValueByPath(_0x48d32a,['metadata'],_0x125b8b);const _0x255b6c=getValueByPath(_0x270140,[_0x122341(0x424)]);_0x255b6c!=null&&setValueByPath(_0x48d32a,['done'],_0x255b6c);const _0x3e2ab4=getValueByPath(_0x270140,[_0x122341(0x251)]);_0x3e2ab4!=null&&setValueByPath(_0x48d32a,['error'],_0x3e2ab4);const _0x4d1782=getValueByPath(_0x270140,['response']);return _0x4d1782!=null&&setValueByPath(_0x48d32a,[_0x122341(0x454)],importFileResponseFromMldev(_0x4d1782)),_0x48d32a;}function importFileParametersToMldev(_0x4dc726){const _0x57c7bc=a3_0x402819,_0x37bf61={},_0x50df23=getValueByPath(_0x4dc726,[_0x57c7bc(0x426)]);_0x50df23!=null&&setValueByPath(_0x37bf61,[_0x57c7bc(0x1aa),'file_search_store_name'],_0x50df23);const _0x5d939d=getValueByPath(_0x4dc726,[_0x57c7bc(0x55c)]);_0x5d939d!=null&&setValueByPath(_0x37bf61,[_0x57c7bc(0x55c)],_0x5d939d);const _0x4acd59=getValueByPath(_0x4dc726,[_0x57c7bc(0x43b)]);return _0x4acd59!=null&&importFileConfigToMldev(_0x4acd59,_0x37bf61),_0x37bf61;}function importFileResponseFromMldev(_0x4b4d0a){const _0x2b6fde=a3_0x402819,_0x1fb77a={},_0x3c8a07=getValueByPath(_0x4b4d0a,[_0x2b6fde(0x3a7)]);_0x3c8a07!=null&&setValueByPath(_0x1fb77a,[_0x2b6fde(0x3a7)],_0x3c8a07);const _0x2acb1e=getValueByPath(_0x4b4d0a,[_0x2b6fde(0x4c5)]);_0x2acb1e!=null&&setValueByPath(_0x1fb77a,[_0x2b6fde(0x4c5)],_0x2acb1e);const _0x38443a=getValueByPath(_0x4b4d0a,['documentName']);return _0x38443a!=null&&setValueByPath(_0x1fb77a,[_0x2b6fde(0x3b0)],_0x38443a),_0x1fb77a;}function listFileSearchStoresConfigToMldev(_0x5075e3,_0xb45d8a){const _0x536027=a3_0x402819,_0x4f4061={},_0x29fa76=getValueByPath(_0x5075e3,[_0x536027(0x1f8)]);_0xb45d8a!==undefined&&_0x29fa76!=null&&setValueByPath(_0xb45d8a,['_query','pageSize'],_0x29fa76);const _0xf627ce=getValueByPath(_0x5075e3,[_0x536027(0x1a4)]);return _0xb45d8a!==undefined&&_0xf627ce!=null&&setValueByPath(_0xb45d8a,[_0x536027(0x5fa),_0x536027(0x1a4)],_0xf627ce),_0x4f4061;}function listFileSearchStoresParametersToMldev(_0x4b9110){const _0x7d934d=a3_0x402819,_0x263a7e={},_0x583813=getValueByPath(_0x4b9110,[_0x7d934d(0x43b)]);return _0x583813!=null&&listFileSearchStoresConfigToMldev(_0x583813,_0x263a7e),_0x263a7e;}function a3_0x3bdb(){const _0x801ca7=['negativePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','IMAGE_PROHIBITED_CONTENT','temperature','\x20found\x20in\x20MCP\x20tools.\x20Please\x20ensure\x20function\x20names\x20are\x20unique.','padStart','image/webp','audio/','SEMANTIC','getRequestHeaders','x-goog-upload-status','Failed\x20to\x20open\x20file','LOW','media','\x22.\x20Original\x20type:\x20','Could\x20not\x20parse\x20function\x20response,\x20type\x20\x27','TYPE_UNSPECIFIED','topK','generateImages','enterpriseWebSearch','END_SENSITIVITY_LOW','data','countTokens','access_token','generateContentStreamInternal','MINIMAL','publishers/','PATCH','numberOfVideos','Unsupported\x20part\x20type:\x20','patch','Unsupported\x20mime\x20type:\x20','{operationName}','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).','_thenUnwrap','computerUse','PAGED_ITEM_MODELS','displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getInternal','text/javascript','prototype','PROHIBITED_CONTENT','enhanceInputImage','httpOptions','newSessionExpireTime','Unsupported\x20string\x20source\x20for\x20Vertex\x20AI:\x20','TURN_COVERAGE_UNSPECIFIED','generateAudio','defaultQuery','FAILED','enableEnhancedCivicAnswers','requests','FINISH_REASON_UNSPECIFIED','onopen','GoogleGenAI.interactions:\x20Client\x20level\x20httpOptions.extraBody\x20is\x20not\x20supported\x20by\x20the\x20interactions\x20client\x20and\x20will\x20be\x20ignored.','Positive\x20Prompt','{models_url}','initAfcToolsMap','linux','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20function\x20calls\x20from\x20the\x20first\x20one.','{model}:generateContent','exception\x20','responseTokenCount','encode','getRequestUrl','sizeBytes','imageBytes','referenceId','JAILBREAK','liveConnectConstraints','codeExecution','END_SENSITIVITY_HIGH','toUpperCase','273626Izatuw','styleImageConfig','userAgent','thinking','fromWeb','activityEnd','methodRequest',':download','googleSearch','EDIT_MODE_BGSWAP','image/jpeg','firefox','_dest_','statistics','.\x20Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x22\x20is\x20not\x20yet\x20supported.','Path\x20parameters\x20result\x20in\x20path\x20with\x20invalid\x20segments:\x0a','makeRequest','video','PAGED_ITEM_CACHED_CONTENTS','functionDeclarations','ENVIRONMENT_UNSPECIFIED','_query','instances[0]','threshold','projects/','inputAudioTranscription','Tool\x20response\x20parameters\x20are\x20required.','defaultCheckpointId','TEXT','numberOfImages','APIConnectionTimeoutError','arm64','httpMethod','DOCUMENT','BLOCK_HIGHER_AND_ABOVE','content-type','embeddings','URL_RETRIEVAL_STATUS_ERROR','prepareRequest','VAD_SIGNAL_TYPE_SOS','avgLogprobs','api_version','END_SENSITIVITY_UNSPECIFIED','getWebsocketBaseUrl','statusText','uses','return','personImage','getAuthHeaders','ALLOW_ADULT','Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.','uploadFileFromPathInternal','exception\x20parsing\x20stream\x20chunk\x20','patchHttpOptions','scribbleImage','{model}:streamGenerateContent?alt=sse','Request\x20timed\x20out.','start','ANY','G_MAJOR_E_MINOR','calculateDefaultRetryTimeoutMillis','onmessage','data:','PROBABILITY','client','connect','customBaseModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','clientAdapter','SUBJECT_TYPE_PERSON','NUMBER','googleMaps','audioChunks','responseJsonSchema','INSERT','hyperparameters','upload','PartListUnion\x20is\x20required','modelSelectionConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','executableCode','MEDIUM','pageInternalSize','retrievalConfig','NO_AUTH','includeSafetyAttributes','BidiGenerateContent','EDIT_MODE_INPAINT_INSERTION','initNextPage','retry-after-ms','buildRequest','shouldPrependVertexProjectPath','logger','filename','musicGenerationConfig','fileSearchStores','source','MacOS','STATE_UNSPECIFIED','sessionResumptionUpdate','PAGED_ITEM_TUNING_JOBS','tools','vertexai','REMOVE_STATIC','tuningJobs','process.env[\x27GEMINI_NEXT_GEN_API_LOG\x27]','iOS','presencePenalty','enhancePrompt','VIDEO','GEMINI_NEXT_GEN_API_BASE_URL','FetchRequestCanceledException','uris','Ephemeral\x20tokens\x20are\x20only\x20supported\x20by\x20the\x20live\x20API.','REMOVE','chunkingConfig','E_MAJOR_D_FLAT_MINOR','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20executable\x20code\x20from\x20the\x20first\x20one.','got\x20status:\x20','B_FLAT_MAJOR_G_MINOR','operations','stringify','application/vnd.google-earth.kml+xml','event','urlContextMetadata','3279784gTDHwZ','ContentUnion\x20is\x20required','VAD_SIGNAL_TYPE_EOS','unaryApiCall','Live\x20music\x20is\x20not\x20supported\x20for\x20Vertex\x20AI.','googleAuthOptions','BATCH_STATE_EXPIRED','contextWindowCompression','undefined','image','_key','`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`','MASK_MODE_SEMANTIC','application/vnd.visio','append','catch','.\x20Overwriting.','TUNING_MODE_UNSPECIFIED','getCustomBaseUrl','outputSchema','getOwnPropertySymbols','forEach','createEmbeddingsInternal','PYTHON','multiSpeakerVoiceConfig','embedding','Exactly\x20one\x20of\x20`inlinedRequests`,\x20`fileName`,\x20','toolUsePromptTokenCount','Automatic\x20function\x20calling\x20with\x20CallableTools\x20(or\x20MCP\x20objects)\x20and\x20basic\x20FunctionDeclarations\x20is\x20not\x20yet\x20supported.\x20Incompatible\x20tools\x20found\x20at\x20','outputCompressionQuality','PLAYBACK_CONTROL_UNSPECIFIED','filter','indexOf','\x20attempts\x20remaining','Invalid\x20batch\x20job\x20name:\x20','add','preTunedModel','thoughtsTokenCount','mask\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','{name}','application/vnd.ms-fontobject','DONT_ALLOW','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20not\x20valid\x20JSON.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','https://','responseInternal','MASK_MODE_BACKGROUND','nextPageToken','font/woff','tune','UNSPECIFIED','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20text\x20from\x20the\x20first\x20one.','+json','PAGED_ITEM_DOCUMENTS','contents','ReadableStream','controlImageConfig','paramsInternal','PAGED_ITEM_BATCH_JOBS','close','cookie','lastFrame','tunedModelDisplayName','MODEL_ARMOR','read','API_SPEC_UNSPECIFIED','args','scopes','expected\x20header\x20name\x20to\x20be\x20a\x20string','fetch','model\x20is\x20required\x20and\x20must\x20be\x20a\x20string','options','createInlinedGenerateContentRequest','JOB_STATE_EXPIRED','find','/dest','concat','withResponse','Unsupported\x20destination:\x20','OFF','title','JOB_STATE_PAUSED','SOURCE_UNSPECIFIED','next','init','gcsDestination','SUPERVISED_FINE_TUNING','toolUsePromptTokensDetails','ttl','FEATURE_SELECTION_PREFERENCE_UNSPECIFIED','distillationSpec','publishers/google/models/','audio','BLOCK_HIGH_AND_ABOVE','IMAGE_SAFETY','BATCH_STATE_FAILED','nextCursor','arch','suppressed','RECITATION','path','map','generationConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','stop','maxTemperature','getVideosOperationInternal','subjectImageConfig','ceil','maskMode','OUTCOME_OK','getLocation','webSocketFactory','responsePromise','candidates','requestInternal','STRING','inputTokenLimit','registerFiles','Linux','finally','POST','User-Agent','Cannot\x20stringify\x20type\x20','onerror','application/ogg','requestStream','MALFORMED_FUNCTION_CALL','application/java-archive','streamFunctionCallArguments','prepareOptions','getItem','random','ADAPTER_SIZE_THIRTY_TWO','allowedFunctionNames','STYLE','outputUri','process','final','application/x-bzip2','Blob','partOrString\x20must\x20be\x20a\x20Part\x20object,\x20string,\x20or\x20array','The\x20user\x20provided\x20Google\x20Cloud\x20credentials\x20will\x20take\x20precedence','InternalServerError','predictionsFormat','\x20is\x20not\x20a\x20valid\x20path\x20parameter','transparent\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','application/vnd.mozilla.xul+xml','streamFunctionCallArguments\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','prompt','image/tiff','aspectRatio','_self','MASK_MODE_DEFAULT','wss','generateAudio\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getPrototypeOf','JOB_STATE_UNSPECIFIED','publishers/google/models','Value\x20must\x20be\x20a\x20list\x20given\x20an\x20array\x20path\x20','build','bidiGenerateContentSetup','pageInternal','BLOCKED_REASON_UNSPECIFIED','SEVERITY','videoMetadata','tunedModelInfo','START_SENSITIVITY_UNSPECIFIED','Interactions','size','maskImageConfig','abortSignal','responsesFile','headers','BOOLEAN','[0]','APIUserAbortError','includeRaiReason','chunks','encodedVideo','pubsubTopic\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','{model}:predict','INTEGER','Automatic\x20function\x20calling\x20was\x20requested,\x20but\x20not\x20all\x20the\x20tools\x20the\x20model\x20used\x20implement\x20the\x20CallableTool\x20interface.\x20Available\x20tools:\x20','OIDC_AUTH','CONTROL_TYPE_SCRIBBLE','The\x20project/location\x20from\x20the\x20environment\x20variables\x20will\x20take','tunedModels','STOP','string','locations/','DELETE','HARM_SEVERITY_HIGH','Exactly\x20one\x20of\x20`gcsUri`\x20or\x20`bigqueryUri`\x20must\x20be\x20set\x20for\x20Vertex\x20AI.','parseResponse','makeMessage','taskType','contentType','REFERENCE_TYPE_RAW','inputConfig','confidenceThreshold','application/x-abiword','displayName','Key\x20\x27','HARM_CATEGORY_HATE_SPEECH','durationSeconds','\x27\x20not\x20found\x20in\x20valueMap.','activityStart','JOB_STATE_UPDATING','PLAY','arrayBuffer','SUBJECT_TYPE_PRODUCT','includeExtraBodyToRequestInit:deepMerge:\x20Type\x20mismatch\x20for\x20key\x20\x22','pageToken','exec','recontextImage',';\x20props:\x20[','uploader','text','_url','createEmbeddings','bigqueryUri','cachedContent','stopSequences','HIGH','Role\x20must\x20be\x20user\x20or\x20model,\x20but\x20got\x20','HTTP_IN_BODY','citations','timeRangeFilter','x-goog-api-key','GOOGLE_SERVICE_ACCOUNT_AUTH','BALANCED','sdkHttpResponseInternal','videoBytes','trimStart','cachedContents','tunedModels/','buildHeaders','warn','ENVIRONMENT_BROWSER','auth_tokens/','Object\x20is\x20not\x20iterable.','trainingDataset','decode','env','must\x20be\x20set\x20for\x20Gemini\x20API.','videos','functionCalls','Running\x20in\x20streaming\x20mode\x20with\x20\x27streamFunctionCallArguments\x27\x20enabled,\x20','\x20Update\x20to\x20Node\x2020\x20LTS\x20or\x20newer,\x20or\x20set\x20`globalThis.File`\x20to\x20`import(\x27node:buffer\x27).File`.','adapterSize\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','search','Duplicate\x20function\x20name\x20','batch','alt','BLOCKLIST','setWeightedPrompts','modelArmorConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','toLowerCase','signal','partialArgs\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','some','editImage','batches','stainless-node-retry-','outputUriPrefix','description\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','documents','page','importFile','raw','THINKING_LEVEL_UNSPECIFIED','bigquery','video/webm',']\x20response\x20start','image/','enqueue','retryOf','Invalid\x20request:\x20specified\x20`model`\x20and\x20`agent_config`.\x20If\x20specifying\x20`model`,\x20use\x20`generation_config`.','sendMessage','generateVideosInternal','[DONE]','The\x20default\x20react-native\x20fetch\x20implementation\x20does\x20not\x20support\x20streaming.\x20Please\x20use\x20expo/fetch:\x20https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api','G_FLAT_MAJOR_E_FLAT_MINOR','AUTO','encoding','JOB_STATE_SUCCEEDED','setup','HARM_SEVERITY_MEDIUM','then','publisherModels','AbortError','serviceAccount','addEventListener','generatedImages','sendRealtimeInput','pipe','pageSize','v1beta','generatedSamples','positivePromptSafetyAttributes','application/json','OUTPAINT','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','Trying\x20to\x20set\x20google-auth\x20headers\x20but\x20googleAuth\x20is\x20unset','upscaleImage','outputGcsUri','TUNING_TASK_T2V','application/x-tar','customMetadata','addAuthHeaders','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','endpoint','supervisedTuningSpec','OUTCOME_FAILED','releaseLock','NON_BLOCKING','blockingConfidence',']\x20sending\x20request','partialArgs','NEWLINE_CHARS','uri','instances[]','uploadFileToFileSearchStore','aborted','tool','HARM_CATEGORY_UNSPECIFIED','VOCALIZATION','ADAPTER_SIZE_TWO','fileUri','isView','modelSelectionConfig','Invalid\x20auth\x20scopes.\x20Scopes\x20must\x20include:\x20','outputAudioTranscription','trim','SUBJECT_TYPE_ANIMAL','GEMINI_NEXT_GEN_API_LOG','browser:','generateContentInternal','PREFERENCE_TUNING','explicitVadSignal','veoTuningSpec','RESET_CONTEXT','responseLogprobs','HTTP_IN_UNSPECIFIED','A_FLAT_MAJOR_F_MINOR','REFERENCE_TYPE_CONTENT','autoTruncate','HARM_CATEGORY_CIVIC_INTEGRITY','excludeDomains','addGoogleAuthHeaders','TUNING_TASK_UNSPECIFIED','Value\x20\x22','{file_search_store_name}:importFile','startsWith','files','NULL','outputTokenLimit','apiClient','blob','JOB_STATE_PENDING','utf-8','request','role','ignoreCallHistory','instancesFormat','Error','slice','tools[','ADAPTER_SIZE_UNSPECIFIED','API\x20version\x20is\x20not\x20set.','application/x-7z-compressed','downloader','file_name','authorization','isCallableTool','type','toolCall','getBaseResourcePath','application/gzip','uploadToFileSearchStoreInternal','upscaleImageInternal','items','sendPromise','safetyRatings','Warning:\x20Ephemeral\x20token\x20support\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','error','InlinedRequest[]\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','there\x20are\x20non-text\x20parts\x20','WebSocket\x20is\x20not\x20connected','START_SENSITIVITY_HIGH','fileName\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','values','hyperParameters','trunc','timed\x20out','Windows','version','error;\x20not\x20retryable','application/vnd.google-earth.kmz+xml','BLOCK_NONE','application/x-sh','buffer','processAfcStream','API\x20key\x20must\x20be\x20set\x20when\x20using\x20the\x20Gemini\x20API.','MASK_MODE_USER_PROVIDED','metadata','JOB_STATE_CANCELLED','isVertexAI','willContinue','bigqueryUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','/projects/','\x20precedence\x20over\x20the\x20API\x20key\x20from\x20the\x20environment\x20variables.','safetyFilterLevel','carriageReturnIndex','baseURL','shift','MEDIA_RESOLUTION_UNSPECIFIED','apiVersion','Unsupported\x20file\x20type','ON_DEMAND','TURN_INCLUDES_ONLY_ACTIVITY','GENERATED','\x20status\x20code\x20(no\x20body)','sse','pop','NO_INTERRUPTION','outputUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','URL_RETRIEVAL_STATUS_UNSPECIFIED','tuningMode','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20data\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20data\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','MODE_UNSPECIFIED','call','method\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','update','GOOGLE_API_KEY','inlineData','baseTeacherModel','withOptions','EDIT_MODE_STYLE','geminiUrl','false','partnerModelTuningSpec','includeExtraHttpOptionsToRequestInit','interactions','excludeDomains\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','EDIT_MODE_OUTPAINT','\x20must\x20be\x20a\x20positive\x20integer','frequencyPenalty','batchPredictionJobs','dest','baseTeacherModel\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','JOB_STATE_FAILED','listTools','genaiBatchJob_','behavior\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','arm','totalTokenCount','pause','enableEnhancedCivicAnswers\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','upscaleConfig','scribble','url','addKeyHeader','startTime','state','hasNextPage','Invalid\x20request:\x20specified\x20`agent`\x20and\x20`generation_config`.\x20If\x20specifying\x20`agent`,\x20use\x20`agent_config`.','LANGUAGE',']\x20connection\x20','fieldMask','safetyAttributes','responseTokensDetails','predictions[]','ClientOptions.logLevel','navigator','PRIORITIZE_QUALITY','API_KEY_AUTH','OTHER','batchSize','shouldRetry','application/vnd.rar','application/pdf','candidatesTokenCount','setMusicGenerationConfig','other:','resolve','lastModified','ADAPTER_SIZE_EIGHT','SPII','https://proxyvn.top/','HTTP_IN_HEADER','category','Incompatible\x20tools\x20found\x20at\x20','NEWLINE_REGEXP','Weighted\x20prompts\x20must\x20be\x20set\x20and\x20contain\x20at\x20least\x20one\x20entry.','fetchWithTimeout','HARM_SEVERITY_UNSPECIFIED','idxInternal','fileData','content-length','getGcsUri','SCALE_UNSPECIFIED','negativePrompt','{model}:predictLongRunning','Content-Type','generatedMasks','promptDatasetUri','ApiError','_interactions','keys','google-vertex-llm-tuning-base-model-id','customBaseUrl','functionResponses','STATE_FAILED','put','usageMetadata','Vertex\x20AI\x20does\x20not\x20support\x20batches.createEmbeddings.','OBJECT','guidanceScale','carriage','SIMPLE_SEARCH','there\x20are\x20non-data\x20parts\x20','/ws/google.cloud.aiplatform.','speechConfig','PHISH_BLOCK_THRESHOLD_UNSPECIFIED','{resourceName}:fetchPredictOperation','labels\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Can\x20not\x20determine\x20mimeType.\x20Please\x20provide\x20mimeType\x20in\x20the\x20config.','uploadFileFromPath','GOOGLE_CLOUD_LOCATION','URL_RETRIEVAL_STATUS_PAYWALL','fromReadableStream','ACTIVE','parsedPromise','AUDIO','authHeaders','personGeneration\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.',',\x20finalize','this\x20feature\x20is\x20not\x20compatible\x20with\x20automatic\x20function\x20calling\x20(AFC).\x20','automaticFunctionCallingHistory','{model}','categories','resourceName','functionCallingConfig','files/','raiFilteredReason','fps\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Symbol.asyncIterator\x20is\x20not\x20defined.','beta','promptFeedback','URL_RETRIEVAL_STATUS_UNSAFE','BLOCKING','HTTP_IN_PATH','file','image/bmp','bigquerySource','.\x20bytes\x20actually\x20read:\x20','succeeded','EDIT_MODE_CONTROLLED_EDITING','stream','validationDataset','application/octet-stream','HARM_SEVERITY_NEGLIGIBLE','getApiVersion','authConfig','Failed\x20to\x20download\x20video,\x20Uri\x20or\x20videoBytes\x20not\x20found.','jsonl','tunedTeacherModelSource','The\x20client.tokens.create\x20method\x20is\x20only\x20supported\x20by\x20the\x20Gemini\x20Developer\x20API.','auth','resumable','audio/wav','sessionResumption','BLOCK_LOW_AND_ABOVE','TRAFFIC_TYPE_UNSPECIFIED','extraBody','Headers\x20are\x20not\x20set.','TUNING_MODE_FULL','FunctionResponse\x20request\x20must\x20have\x20an\x20`id`\x20field\x20from\x20the\x20response\x20of\x20a\x20ToolCall.FunctionalCalls\x20in\x20Google\x20AI.','\x20-\x20','buildBody','7951890gnqgTg','x-goog-upload-url','inferMimeType','application/vnd.oasis.opendocument.text','processStreamResponse','segmentImage','Failed\x20to\x20read\x20','routingConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','project','min','D_FLAT_MAJOR_B_FLAT_MINOR','behavior','constructUrl','CONTROL_TYPE_FACE_MESH','PAUSE','proactivity','sendMessageStream','now','operation','post','baseSteps','isArray','tuneMldevInternal','set-cookie','supportedGenerationMethods','JOB_STATE_CANCELLING','info','validationDataset\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getHeaders','controller','fetchPredictVideosOperationInternal','gcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT','\x0d\x0a\x0d\x0a','generateImagesInternal','MEDIA_RESOLUTION_LOW','adapterSize','versions','GEMINI_API_KEY','dilation','batchJobs','audioTimestamp','encryptionSpec','responseMimeType','mediaResolution','1771240pkFpwE','toString','content','tools\x20is\x20required','flatMap','invalid\x20model\x20parameter','imagePreservationFactor','ACTIVITY_START','toReferenceImageAPI','send','REGISTERED','includes','voiceActivityType','LANGUAGE_UNSPECIFIED','batchPredictionJobs/{name}','platform','parse','ACTIVITY_END','logprobs','No\x20more\x20pages\x20to\x20fetch.','NotFoundError','modelTurn','raiMediaFilteredCount','x-goog-api-client','PROCESSING','UnprocessableEntityError','maximumRemoteCalls','maxOutputTokens','No\x20MCP\x20clients\x20provided','sftLossWeightMultiplier\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','audioStreamEnd','log_','text/calendar','output','object','getReader','multiSpeakerVoiceConfig\x20is\x20not\x20supported\x20in\x20the\x20live\x20API.','{model}:countTokens','resolution','This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.','HTTP_IN_COOKIE','additionalProperties','generate','automaticFunctionCalling','auto','vertexUrl','defaultHeaders','image/vnd.microsoft.icon','inlinedRequests','abort','fileSearch','systemInstruction\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','\x20in\x20the\x20response,\x20returning\x20concatenation\x20of\x20all\x20text\x20parts.\x20Please\x20refer\x20to\x20the\x20non\x20text\x20parts\x20for\x20a\x20full\x20response\x20from\x20model.','preTunedModelCheckpointId','queryBase','batches/{name}','Other:','getOwnPropertyNames','key','font/otf','application/x-shockwave-flash','application/vnd.amazon.ebook','productImages','gs://','DISTILLATION','compressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','generateVideoResponse','learningRateMultiplier','getVideosOperation','listInternal','status','apiCall','HARM_CATEGORY_IMAGE_HARASSMENT','thoughtSignature','there\x20are\x20multiple\x20candidates\x20in\x20the\x20response,\x20returning\x20code\x20execution\x20result\x20from\x20the\x20first\x20one.','upscaleFactor','inlinedResponses','function','3568eNWKSq','getFileName','createTime','topP','queryParams','files/{file}','response\x20is\x20undefined','application/epub+zip','_registerFiles','seed','NEED_MORE_INPUT','batches/{name}:cancel','video/3gpp2','inlinedResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','NEGLIGIBLE','pageLength','21933WKhRZp','audio/aac','HARM_CATEGORY_SEXUALLY_EXPLICIT','name','mask','user','sdkHttpResponse','src','conn','CONTROL_TYPE_DEFAULT','\x20the\x20project/location\x20from\x20the\x20environment\x20variables.','BLOCK_MEDIUM_AND_ABOVE','application/vnd.openxmlformats-officedocument.presentationml.presentation','getDefaultHeaders','EDIT_MODE_PRODUCT_IMAGE','documentName','inputSchema','format','trafficType','BATCH_STATE_CANCELLED','HARM_CATEGORY_HARASSMENT','VAD_SIGNAL_TYPE_UNSPECIFIED','tools\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','fromEntries','getUserAgent','downloadPath','Attempted\x20to\x20iterate\x20over\x20a\x20response\x20with\x20no\x20body','IMAGE_OTHER','asyncIterator','setupComplete','generateContent','registerFiles\x20is\x20only\x20supported\x20in\x20Node.js\x20environments.','raiMediaFilteredReasons','toolCallCancellation','description','fetchUploadUrl','global','thinkingConfig','examples\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','outputConfig','formatDestination','download','tLiveClientContent','openbsd','Unsupported\x20speechConfig\x20type:\x20','constructor','storageUri','/publishers/google/','PROMPT','/locations/','x-should-retry','examples','VALIDATED','tools\x20is\x20required\x20and\x20must\x20be\x20an\x20array\x20of\x20Tools','Unsupported\x20source\x20for\x20Vertex\x20AI:\x20No\x20GCS\x20or\x20BigQuery\x20URI\x20found.','HARM_CATEGORY_JAILBREAK','routingConfig','TextEncoder','3539431QCbdmh','validationDatasetUri','BACKGROUND','enterpriseWebSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','getProject','retrying,\x20','set','serverContent','gcsUri','sampleCount','completionStats','audio/opus','autoTruncate\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','length','segmentationClasses','Cannot\x20set\x20value\x20for\x20an\x20existing\x20key.\x20Key:\x20','learningRate','labels','stack','promptTokensDetails','tuneInternal','inputUri','googleSearchRetrieval','ReactNative','Server\x20did\x20not\x20return\x20an\x20HttpResponse\x20or\x20the\x20returned\x20HttpResponse\x20did\x20not\x20have\x20headers.','googleAuth','DIVERSITY','model','iterator','Trying\x20to\x20set\x20API\x20key\x20header\x20but\x20apiKey\x20is\x20not\x20set',',\x20retryOf:\x20','ADAPTER_SIZE_ONE','BATCH_STATE_SUCCEEDED','live','throw','deno','retryRequest','{model}:asyncBatchEmbedContent','join','SAFETY','To\x20specify\x20functionCall\x20or\x20functionResponse\x20parts,\x20please\x20wrap\x20them\x20in\x20a\x20Content\x20object,\x20specifying\x20the\x20role\x20for\x20them','audio/ogg','bind','hasOwnProperty','GOOGLE_GEMINI_BASE_URL','boolean','stat','audioChunk','unknown','Cannot\x20iterate\x20over\x20a\x20consumed\x20stream,\x20use\x20`.tee()`\x20to\x20split\x20the\x20stream.','video/ogg','format\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','timeout','.jsonl','test','Could\x20not\x20extract\x20file\x20name\x20from\x20URI\x20','tuningTask','updateTime','systemInstruction','fetchOptions','sendClientContent',';\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.','TURN_COMPLETE_REASON_UNSPECIFIED','includeExtraBodyToRequestInit:\x20Original\x20request\x20body\x20is\x20valid\x20JSON\x20but\x20not\x20a\x20non-array\x20object.\x20Skip\x20applying\x20extraBody\x20to\x20the\x20request\x20body.','toReadableStream','customBaseModel','enableAffectiveDialog','epochCount','requests[]','MAX_TOKENS','outputGcsUri\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','HARM_PROBABILITY_UNSPECIFIED','baseUrl','done','generationConfig','fileSearchStoreName','/operations/','referenceType','checkpointId','unref','get','A_MAJOR_G_FLAT_MINOR','isInteger','CONTROL_TYPE_CANNY','HARM_CATEGORY_IMAGE_HATE','safetySettings','value','productImage','experiment','google-genai-sdk/','baseModel','index','outputMimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','OPTIMIZED','history','STATE_ACTIVE','config','HTTP_IN_QUERY','mode','personGeneration','LOSSLESS','Unknown','number','compressionQuality','node','encryption_spec','anyOf','transparent','$schema','responseId','ADAPTER_SIZE_FOUR','logLevel','functionResponses\x20is\x20required.','exportLastCheckpointOnly','baseUrlResourceScope','__streamClass','Function\x20declaration\x20name\x20is\x20required.','debug','SUBJECT_TYPE_DEFAULT','propertyIsEnumerable','ASSET','response','freeze','force','STATE_PENDING','mcpClients','HARM_BLOCK_METHOD_UNSPECIFIED','IMAGE','\x20bytes\x20from\x20file\x20at\x20offset\x20','callTool','REFERENCE_TYPE_MASK','toolConfig','functionCall','parameters','outputDimensionality','x86_64','onclose','substring','ARRAY','exportLastCheckpointOnly\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','nextPage','reduce','scores','null','audio/mpeg','totalTokens','Operation\x20name\x20is\x20required.','supportedActions','HARM_BLOCK_THRESHOLD_UNSPECIFIED','flush','stringifyQuery','retrieval','imageSize','edge','outputCompressionQuality\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','Both\x20GOOGLE_API_KEY\x20and\x20GEMINI_API_KEY\x20are\x20set.\x20Using\x20GOOGLE_API_KEY.','from','cachedContentTokenCount','MUSIC_GENERATION_MODE_UNSPECIFIED','agent_config','cause','every','PAGED_ITEM_FILES','lockAdditionalFields','handle','x32','expireTime','disable','functionResponse','HTTP_BASIC_AUTH','CREATING','referenceImages','x64','Authentication\x20is\x20not\x20set\x20up.\x20Please\x20provide\x20either\x20a\x20project\x20and\x20location,\x20or\x20an\x20API\x20key,\x20or\x20a\x20custom\x20base\x20URL.','enableWidget','assign','{model}:batchEmbedContents','enableControlImageComputation','TUNING_TASK_R2V','tokenCount','turnComplete','enhancePrompt\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','uploadFileToFileSearchStoreFromPath','deployedModels','language','F_MAJOR_D_MINOR','registerFilesInternal','active','REFERENCE_TYPE_CONTROL','HTTP\x20options\x20are\x20not\x20correctly\x20set.','vertexDatasetResource','AuthenticationError','ACTIVITY_HANDLING_UNSPECIFIED','\x20LiveConnectConfig\x20yet.\x20Please\x20use\x20the\x20client-level\x20httpOptions','PROVISIONED_THROUGHPUT','inlinedEmbedContentResponses\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','logprobsResult','voiceActivity','inlinedEmbedContentResponses','modelConfig','0.0.1','delete','replace','codeExecutionResult','binaryColorThreshold','All\x20content\x20has\x20been\x20uploaded,\x20but\x20the\x20upload\x20status\x20is\x20not\x20finalized.','RESPONSE_REJECTED','_client','retrieval\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','half','parametersJsonSchema','baseURLOverridden','endTime','tunings','OUTCOME_DEADLINE_EXCEEDED','audio/webm','tLiveClienttToolResponse','deployedModelId','GeminiNextGenAPIClientError','nullable','.LlmBidiService/BidiGenerateContent','location','tokensInfo','BLOCK_ONLY_HIGH','INTERRUPT','application/msword','Live\x20music\x20generation\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','modelsModule','cacheTokensDetails','models_url','mimeType\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','or\x20leave\x20\x27config.toolConfig.functionCallingConfig.streamFunctionCallArguments\x27\x20','partOrString\x20cannot\x20be\x20an\x20empty\x20array','callbacks','parent','getRandomValues','JOB_STATE_RUNNING','SILENT','gl-node/','searchParams','pow','Failed\x20to\x20write\x20file\x20to\x20','params','GeminiNextGenAPIClient','json','RateLimitError','clientOptions','http:','EDIT_MODE_INPAINT_REMOVAL','FreeBSD','GOOGLE_VERTEX_BASE_URL','protocol','candidateCount','maskDilation','imageConfig','finishReason','(no\x20status\x20code\x20or\x20body)','willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','streamApiCall','predictions','open','validateHeaders','cancel','\x20was\x20set\x20to\x20','TextDecoder','endsWith','pathname','groundingMetadata','IMAGE_RECITATION','addWatermark','BLOCK_ONLY_EXTREMELY_HIGH','EDIT_MODE_DEFAULT','agent','kmsKeyName','.GenerativeService.','models/','PartUnion\x20is\x20required','1.40.0','computeTokens','downloadFile','MODALITY_UNSPECIFIED','bigqueryDestination','START_OF_ACTIVITY_INTERRUPTS','FOREGROUND','modelVersion','REFERENCE_TYPE_SUBJECT','MEDIA_RESOLUTION_MEDIUM','NONE','Filtering\x20tuned\x20models\x20list\x20for\x20Vertex\x20AI\x20is\x20not\x20currently\x20supported','recordHistory','MODE_DYNAMIC','getBaseUrl','BATCH_STATE_UNSPECIFIED','GET','operationName','Incomplete\x20JSON\x20segment\x20at\x20the\x20end','HARM_SEVERITY_LOW','Could\x20not\x20parse\x20input\x20as\x20Blob.\x20Unsupported\x20blob\x20type:\x20','B_MAJOR_A_FLAT_MINOR','TUNING_TASK_I2V','sampleImageSize','editConfig','bq://','all','application/zip','D_MAJOR_B_MINOR','blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','repeat','turns','method','seed\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','QUALITY','maybeMoveToResponseJsonSchem','getRequestUrlInternal','Connection\x20error.','goAway','audioTimestamp\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','create','_options','application/vnd.ms-powerpoint','checkpoints','split','text/html','authConfig\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.','processParamsMaybeAddMcpUsage','[object\x20Error]','inlinedRequests\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','versionId','createInternal','tuningDataStats','upload/v1beta/','list','Symbol.iterator\x20is\x20not\x20defined.','preferenceOptimizationSpec','weightedPrompts','failed','MASK_MODE_FOREGROUND','push','TURN_INCLUDES_ALL_INPUT','lastIndexOf','Request\x20body\x20should\x20be\x20empty\x20for\x20GET\x20request,\x20but\x20got\x20non\x20empty\x20request\x20body','citationSources','body','2348308NKocIC','JOB_STATE_QUEUED','code','HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT','UPLOADED','video/x-msvideo','functionNameToMcpClient','play','pipelineJob','/JS\x20','ALLOW_ALL','JOB_STATE_PARTIALLY_SUCCEEDED','responseSchema','retry-after','{model}:batchGenerateContent','fps','mimeType','\x20must\x20be\x20an\x20integer','editImageInternal','includeExtraBodyToRequestInit:\x20extraBody\x20provided\x20but\x20current\x20request\x20body\x20is\x20a\x20Blob.\x20extraBody\x20will\x20be\x20ignored\x20as\x20merging\x20is\x20not\x20supported\x20for\x20Blob\x20bodies.','image/png','retryOfRequestLogID','idempotencyHeader','toFile','UNEXPECTED_TOOL_CALL','fromSSEResponse','unknown_file','isNaN','outputOptions','NO_IMAGE','BidiGenerateContentConstrained',',\x20mising\x20tool:\x20','outputMimeType','has','initialize','subarray','element\x20in\x20PartUnion\x20must\x20be\x20a\x20Part\x20object\x20or\x20string','message','controlType','generatedVideos','models','6NJWhMi','fileName','pubsubTopic','urlContext','maxPredictions','promptTokenCount','type:\x20null\x20can\x20not\x20be\x20the\x20only\x20possible\x20type\x20for\x20the\x20field.','sftLossWeightMultiplier','START_SENSITIVITY_LOW','/models/','`File`\x20is\x20not\x20defined\x20as\x20a\x20global,\x20which\x20is\x20required\x20for\x20file\x20uploads.','trainingDatasetUri','MEDIA_RESOLUTION_ULTRA_HIGH','name\x20must\x20be\x20a\x20string','parts','idempotencyKey','citationMetadata','_fromAPIResponse','{name}:cancel','Function\x20call\x20name\x20was\x20not\x20returned\x20by\x20the\x20model.','thought','ELASTIC_SEARCH','getHistory','completeTime','preceding','MEDIA_RESOLUTION_HIGH','nameInternal','https://aiplatform.googleapis.com/','embedContent','referenceImage','bytesBase64Encoded','C_MAJOR_A_MINOR','tunedModel','video/3gpp','batches.createEmbeddings()\x20is\x20experimental\x20and\x20may\x20change\x20without\x20notice.','GoogleGenAI.interactions:\x20Interactions\x20usage\x20is\x20experimental\x20and\x20may\x20change\x20in\x20future\x20versions.','fileSearch\x20parameter\x20is\x20not\x20supported\x20in\x20Vertex\x20AI.','BLOCK_VERY_HIGH_AND_ABOVE','PAGED_ITEM_FILE_SEARCH_STORES','editMode','X-Server-Timeout','entries','mcpTools','safetySetting','generateContentStream','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','voiceActivityDetectionSignal','imageOutputOptions','Deno','apiKey','computeControl','gcsSource','\x20sending\x20request','uploadToFileSearchStore','\x20over\x20the\x20API\x20key\x20from\x20the\x20environment\x20variable.','aarch64','maxRetries','E_FLAT_MAJOR_C_MINOR','sendPlaybackControl','chrome','responseModalities','realtimeInputConfig','[object\x20process]','uploadFile','setBaseUrl','freebsd'];a3_0x3bdb=function(){return _0x801ca7;};return a3_0x3bdb();}function listFileSearchStoresResponseFromMldev(_0x3091d0){const _0xd79ac2=a3_0x402819,_0x6b1fbd={},_0x3c0d3d=getValueByPath(_0x3091d0,['sdkHttpResponse']);_0x3c0d3d!=null&&setValueByPath(_0x6b1fbd,[_0xd79ac2(0x3a7)],_0x3c0d3d);const _0x4bf7c3=getValueByPath(_0x3091d0,[_0xd79ac2(0x68e)]);_0x4bf7c3!=null&&setValueByPath(_0x6b1fbd,[_0xd79ac2(0x68e)],_0x4bf7c3);const _0x283d7a=getValueByPath(_0x3091d0,[_0xd79ac2(0x642)]);if(_0x283d7a!=null){let _0x35e08e=_0x283d7a;Array[_0xd79ac2(0x32b)](_0x35e08e)&&(_0x35e08e=_0x35e08e[_0xd79ac2(0x6c4)](_0x49ab50=>{return _0x49ab50;})),setValueByPath(_0x6b1fbd,['fileSearchStores'],_0x35e08e);}return _0x6b1fbd;}function uploadToFileSearchStoreConfigToMldev(_0x1a9e80,_0x39da6f){const _0x298915=a3_0x402819,_0x14780e={},_0xf75e93=getValueByPath(_0x1a9e80,[_0x298915(0x542)]);_0x39da6f!==undefined&&_0xf75e93!=null&&setValueByPath(_0x39da6f,['mimeType'],_0xf75e93);const _0x3dd559=getValueByPath(_0x1a9e80,[_0x298915(0x199)]);_0x39da6f!==undefined&&_0x3dd559!=null&&setValueByPath(_0x39da6f,[_0x298915(0x199)],_0x3dd559);const _0x418051=getValueByPath(_0x1a9e80,['customMetadata']);if(_0x39da6f!==undefined&&_0x418051!=null){let _0x4db8a0=_0x418051;Array[_0x298915(0x32b)](_0x4db8a0)&&(_0x4db8a0=_0x4db8a0[_0x298915(0x6c4)](_0x437451=>{return _0x437451;})),setValueByPath(_0x39da6f,[_0x298915(0x204)],_0x4db8a0);}const _0x503ff0=getValueByPath(_0x1a9e80,[_0x298915(0x656)]);return _0x39da6f!==undefined&&_0x503ff0!=null&&setValueByPath(_0x39da6f,[_0x298915(0x656)],_0x503ff0),_0x14780e;}function uploadToFileSearchStoreParametersToMldev(_0x9dbb8){const _0x114f86=a3_0x402819,_0x1bb190={},_0x559cbe=getValueByPath(_0x9dbb8,[_0x114f86(0x426)]);_0x559cbe!=null&&setValueByPath(_0x1bb190,[_0x114f86(0x1aa),'file_search_store_name'],_0x559cbe);const _0x531ffa=getValueByPath(_0x9dbb8,[_0x114f86(0x43b)]);return _0x531ffa!=null&&uploadToFileSearchStoreConfigToMldev(_0x531ffa,_0x1bb190),_0x1bb190;}function uploadToFileSearchStoreResumableResponseFromMldev(_0x1984ba){const _0x90a3c0=a3_0x402819,_0x4d0889={},_0xcba253=getValueByPath(_0x1984ba,['sdkHttpResponse']);return _0xcba253!=null&&setValueByPath(_0x4d0889,[_0x90a3c0(0x3a7)],_0xcba253),_0x4d0889;}/**
92
+ * @license
93
+ * Copyright 2025 Google LLC
94
+ * SPDX-License-Identifier: Apache-2.0
95
+ */
96
+ const CONTENT_TYPE_HEADER=a3_0x402819(0x2c9),SERVER_TIMEOUT_HEADER=a3_0x402819(0x583),USER_AGENT_HEADER=a3_0x402819(0x6d8),GOOGLE_API_CLIENT_HEADER=a3_0x402819(0x35a),SDK_VERSION=a3_0x402819(0x4f0),LIBRARY_LABEL=a3_0x402819(0x434)+SDK_VERSION,VERTEX_AI_API_DEFAULT_VERSION='v1beta1',GOOGLE_AI_API_DEFAULT_VERSION=a3_0x402819(0x1f9);class ApiClient{constructor(_0x1d1795){const _0x530d40=a3_0x402819;var _0x1ec326,_0x2f7846,_0x28d8aa;this[_0x530d40(0x4d1)]=Object[_0x530d40(0x48a)]({},_0x1d1795),this[_0x530d40(0x2d0)]=(_0x1ec326=_0x1d1795[_0x530d40(0x5c7)])===null||_0x1ec326===void 0x0?void 0x0:_0x1ec326[_0x530d40(0x423)];if(this[_0x530d40(0x4d1)][_0x530d40(0x649)]){if(this[_0x530d40(0x4d1)][_0x530d40(0x31e)]&&this[_0x530d40(0x4d1)][_0x530d40(0x4b8)])this[_0x530d40(0x4d1)][_0x530d40(0x58c)]=undefined;else this[_0x530d40(0x4d1)][_0x530d40(0x58c)]&&(this[_0x530d40(0x4d1)][_0x530d40(0x31e)]=undefined,this[_0x530d40(0x4d1)]['location']=undefined);}const _0x195cce={};if(this[_0x530d40(0x4d1)][_0x530d40(0x649)]){!this[_0x530d40(0x4d1)][_0x530d40(0x4b8)]&&!this[_0x530d40(0x4d1)][_0x530d40(0x58c)]&&!this[_0x530d40(0x2d0)]&&(this[_0x530d40(0x4d1)][_0x530d40(0x4b8)]=_0x530d40(0x3c5));const _0x500735=this[_0x530d40(0x4d1)][_0x530d40(0x31e)]&&this['clientOptions'][_0x530d40(0x4b8)]||this[_0x530d40(0x4d1)][_0x530d40(0x58c)];if(!_0x500735&&!this[_0x530d40(0x2d0)])throw new Error(_0x530d40(0x488));const _0x4da9b4=_0x1d1795[_0x530d40(0x31e)]&&_0x1d1795[_0x530d40(0x4b8)]||!!_0x1d1795['apiKey'];if(this[_0x530d40(0x2d0)]&&!_0x4da9b4)_0x195cce[_0x530d40(0x423)]=this[_0x530d40(0x2d0)],this[_0x530d40(0x4d1)][_0x530d40(0x31e)]=undefined,this[_0x530d40(0x4d1)][_0x530d40(0x4b8)]=undefined;else{if(this['clientOptions']['apiKey']||this['clientOptions'][_0x530d40(0x4b8)]===_0x530d40(0x3c5))_0x195cce['baseUrl']=_0x530d40(0x576);else this[_0x530d40(0x4d1)][_0x530d40(0x31e)]&&this['clientOptions'][_0x530d40(0x4b8)]&&(_0x195cce[_0x530d40(0x423)]='https://'+this[_0x530d40(0x4d1)][_0x530d40(0x4b8)]+'-aiplatform.googleapis.com/');}_0x195cce['apiVersion']=(_0x2f7846=this[_0x530d40(0x4d1)]['apiVersion'])!==null&&_0x2f7846!==void 0x0?_0x2f7846:VERTEX_AI_API_DEFAULT_VERSION;}else{if(!this[_0x530d40(0x4d1)][_0x530d40(0x58c)])throw new ApiError({'message':_0x530d40(0x264),'status':0x193});_0x195cce[_0x530d40(0x272)]=(_0x28d8aa=this[_0x530d40(0x4d1)][_0x530d40(0x272)])!==null&&_0x28d8aa!==void 0x0?_0x28d8aa:GOOGLE_AI_API_DEFAULT_VERSION,_0x195cce[_0x530d40(0x423)]=_0x530d40(0x2ba);}_0x195cce[_0x530d40(0x70b)]=this[_0x530d40(0x3ae)](),this[_0x530d40(0x4d1)][_0x530d40(0x5c7)]=_0x195cce,_0x1d1795[_0x530d40(0x5c7)]&&(this[_0x530d40(0x4d1)][_0x530d40(0x5c7)]=this[_0x530d40(0x61a)](_0x195cce,_0x1d1795[_0x530d40(0x5c7)]));}[a3_0x402819(0x268)](){const _0x1e6725=a3_0x402819;var _0x231048;return(_0x231048=this['clientOptions'][_0x1e6725(0x649)])!==null&&_0x231048!==void 0x0?_0x231048:![];}[a3_0x402819(0x3df)](){const _0x16d11b=a3_0x402819;return this[_0x16d11b(0x4d1)]['project'];}[a3_0x402819(0x6cd)](){return this['clientOptions']['location'];}['getCustomBaseUrl'](){const _0x10d625=a3_0x402819;return this[_0x10d625(0x2d0)];}async[a3_0x402819(0x615)](){const _0x131df2=a3_0x402819,_0x513e27=new Headers();return await this[_0x131df2(0x4d1)]['auth']['addAuthHeaders'](_0x513e27),_0x513e27;}[a3_0x402819(0x304)](){const _0x45028d=a3_0x402819;if(this[_0x45028d(0x4d1)][_0x45028d(0x5c7)]&&this[_0x45028d(0x4d1)][_0x45028d(0x5c7)]['apiVersion']!==undefined)return this[_0x45028d(0x4d1)][_0x45028d(0x5c7)][_0x45028d(0x272)];throw new Error(_0x45028d(0x241));}[a3_0x402819(0x4fe)](){const _0x2e1581=a3_0x402819;if(this[_0x2e1581(0x4d1)][_0x2e1581(0x5c7)]&&this[_0x2e1581(0x4d1)]['httpOptions'][_0x2e1581(0x423)]!==undefined)return this[_0x2e1581(0x4d1)][_0x2e1581(0x5c7)]['baseUrl'];throw new Error('Base\x20URL\x20is\x20not\x20set.');}[a3_0x402819(0x5dc)](){const _0x53acb0=a3_0x402819;return this[_0x53acb0(0x514)](this[_0x53acb0(0x4d1)][_0x53acb0(0x5c7)]);}[a3_0x402819(0x332)](){const _0x44ebe=a3_0x402819;if(this[_0x44ebe(0x4d1)][_0x44ebe(0x5c7)]&&this['clientOptions'][_0x44ebe(0x5c7)][_0x44ebe(0x70b)]!==undefined)return this[_0x44ebe(0x4d1)]['httpOptions']['headers'];else throw new Error(_0x44ebe(0x311));}[a3_0x402819(0x514)](_0x321a8d){const _0x3a9635=a3_0x402819;if(!_0x321a8d||_0x321a8d[_0x3a9635(0x423)]===undefined||_0x321a8d['apiVersion']===undefined)throw new Error(_0x3a9635(0x498));const _0x1ff7dc=_0x321a8d['baseUrl'][_0x3a9635(0x4e4)]('/')?_0x321a8d[_0x3a9635(0x423)][_0x3a9635(0x23e)](0x0,-0x1):_0x321a8d['baseUrl'],_0x54e08f=[_0x1ff7dc];return _0x321a8d['apiVersion']&&_0x321a8d[_0x3a9635(0x272)]!==''&&_0x54e08f['push'](_0x321a8d['apiVersion']),_0x54e08f['join']('/');}[a3_0x402819(0x249)](){const _0x276e9e=a3_0x402819;return _0x276e9e(0x5fd)+this['clientOptions'][_0x276e9e(0x31e)]+'/locations/'+this[_0x276e9e(0x4d1)][_0x276e9e(0x4b8)];}['getApiKey'](){const _0x5bfd20=a3_0x402819;return this[_0x5bfd20(0x4d1)][_0x5bfd20(0x58c)];}[a3_0x402819(0x610)](){const _0x39851f=a3_0x402819,_0x32bb22=this[_0x39851f(0x4fe)](),_0xaa1ff2=new URL(_0x32bb22);return _0xaa1ff2[_0x39851f(0x4d6)]=_0xaa1ff2['protocol']==_0x39851f(0x4d2)?'ws':_0x39851f(0x6f8),_0xaa1ff2[_0x39851f(0x344)]();}[a3_0x402819(0x59b)](_0x313514){const _0x26280f=a3_0x402819;if(this['clientOptions']['httpOptions'])this[_0x26280f(0x4d1)][_0x26280f(0x5c7)][_0x26280f(0x423)]=_0x313514;else throw new Error(_0x26280f(0x498));}[a3_0x402819(0x322)](_0x50ec2f,_0x401871,_0x540c2e){const _0x56d468=a3_0x402819,_0x54dc5b=[this[_0x56d468(0x514)](_0x401871)];_0x540c2e&&_0x54dc5b['push'](this[_0x56d468(0x249)]());_0x50ec2f!==''&&_0x54dc5b[_0x56d468(0x52c)](_0x50ec2f);const _0x43239a=new URL(''+_0x54dc5b[_0x56d468(0x401)]('/'));return _0x43239a;}[a3_0x402819(0x63e)](_0x946e08,_0x324c2a){const _0xa736ba=a3_0x402819;if(_0x324c2a[_0xa736ba(0x423)]&&_0x324c2a[_0xa736ba(0x44d)]===ResourceScope['COLLECTION'])return![];if(this[_0xa736ba(0x4d1)][_0xa736ba(0x58c)])return![];if(!this['clientOptions'][_0xa736ba(0x649)])return![];if(_0x946e08[_0xa736ba(0x6c3)][_0xa736ba(0x231)]('projects/'))return![];if(_0x946e08[_0xa736ba(0x605)]===_0xa736ba(0x500)&&_0x946e08[_0xa736ba(0x6c3)]['startsWith'](_0xa736ba(0x6fc)))return![];return!![];}async[a3_0x402819(0x239)](_0x5f2a9e){const _0xf15041=a3_0x402819;let _0x2e494f=this[_0xf15041(0x4d1)][_0xf15041(0x5c7)];_0x5f2a9e['httpOptions']&&(_0x2e494f=this[_0xf15041(0x61a)](this[_0xf15041(0x4d1)][_0xf15041(0x5c7)],_0x5f2a9e[_0xf15041(0x5c7)]));const _0x3f73ac=this['shouldPrependVertexProjectPath'](_0x5f2a9e,_0x2e494f),_0x52df7f=this[_0xf15041(0x322)](_0x5f2a9e[_0xf15041(0x6c3)],_0x2e494f,_0x3f73ac);if(_0x5f2a9e['queryParams'])for(const [_0x5db71d,_0x323c3d]of Object['entries'](_0x5f2a9e[_0xf15041(0x395)])){_0x52df7f[_0xf15041(0x4ca)][_0xf15041(0x66e)](_0x5db71d,String(_0x323c3d));}let _0x153445={};if(_0x5f2a9e[_0xf15041(0x605)]===_0xf15041(0x500)){if(_0x5f2a9e[_0xf15041(0x531)]&&_0x5f2a9e[_0xf15041(0x531)]!=='{}')throw new Error(_0xf15041(0x52f));}else _0x153445[_0xf15041(0x531)]=_0x5f2a9e['body'];return _0x153445=await this[_0xf15041(0x28b)](_0x153445,_0x2e494f,_0x52df7f[_0xf15041(0x344)](),_0x5f2a9e['abortSignal']),this[_0xf15041(0x663)](_0x52df7f,_0x153445,_0x5f2a9e[_0xf15041(0x605)]);}['patchHttpOptions'](_0xf9425b,_0x49e04d){const _0x2a2fa5=a3_0x402819,_0x22cb8a=JSON[_0x2a2fa5(0x353)](JSON[_0x2a2fa5(0x65c)](_0xf9425b));for(const [_0x45d98a,_0x461f2b]of Object[_0x2a2fa5(0x584)](_0x49e04d)){if(typeof _0x461f2b==='object')_0x22cb8a[_0x45d98a]=Object[_0x2a2fa5(0x48a)](Object[_0x2a2fa5(0x48a)]({},_0x22cb8a[_0x45d98a]),_0x461f2b);else _0x461f2b!==undefined&&(_0x22cb8a[_0x45d98a]=_0x461f2b);}return _0x22cb8a;}async[a3_0x402819(0x6dc)](_0x177359){const _0x309af5=a3_0x402819;let _0x5e0396=this[_0x309af5(0x4d1)][_0x309af5(0x5c7)];_0x177359['httpOptions']&&(_0x5e0396=this[_0x309af5(0x61a)](this['clientOptions'][_0x309af5(0x5c7)],_0x177359[_0x309af5(0x5c7)]));const _0x1398c8=this[_0x309af5(0x63e)](_0x177359,_0x5e0396),_0x344d5a=this[_0x309af5(0x322)](_0x177359['path'],_0x5e0396,_0x1398c8);(!_0x344d5a[_0x309af5(0x4ca)]['has'](_0x309af5(0x1cd))||_0x344d5a[_0x309af5(0x4ca)]['get'](_0x309af5(0x1cd))!==_0x309af5(0x278))&&_0x344d5a[_0x309af5(0x4ca)][_0x309af5(0x3e1)](_0x309af5(0x1cd),_0x309af5(0x278));let _0x1f65e6={};return _0x1f65e6[_0x309af5(0x531)]=_0x177359['body'],_0x1f65e6=await this[_0x309af5(0x28b)](_0x1f65e6,_0x5e0396,_0x344d5a['toString'](),_0x177359[_0x309af5(0x709)]),this[_0x309af5(0x4dd)](_0x344d5a,_0x1f65e6,_0x177359[_0x309af5(0x605)]);}async['includeExtraHttpOptionsToRequestInit'](_0x539e75,_0x36a62f,_0x43a5a5,_0x380caf){const _0x119d64=a3_0x402819;if(_0x36a62f&&_0x36a62f[_0x119d64(0x40f)]||_0x380caf){const _0x4b89d8=new AbortController(),_0x4b070a=_0x4b89d8[_0x119d64(0x1d2)];if(_0x36a62f[_0x119d64(0x40f)]&&(_0x36a62f===null||_0x36a62f===void 0x0?void 0x0:_0x36a62f[_0x119d64(0x40f)])>0x0){const _0x1745e4=setTimeout(()=>_0x4b89d8[_0x119d64(0x374)](),_0x36a62f[_0x119d64(0x40f)]);_0x1745e4&&typeof _0x1745e4[_0x119d64(0x42a)]===_0x119d64(0x390)&&_0x1745e4[_0x119d64(0x42a)]();}_0x380caf&&_0x380caf[_0x119d64(0x1f4)](_0x119d64(0x374),()=>{const _0x1af4e4=_0x119d64;_0x4b89d8[_0x1af4e4(0x374)]();}),_0x539e75[_0x119d64(0x1d2)]=_0x4b070a;}return _0x36a62f&&_0x36a62f[_0x119d64(0x310)]!==null&&includeExtraBodyToRequestInit(_0x539e75,_0x36a62f[_0x119d64(0x310)]),_0x539e75[_0x119d64(0x70b)]=await this['getHeadersInternal'](_0x36a62f,_0x43a5a5),_0x539e75;}async[a3_0x402819(0x663)](_0x2e5f7,_0x3b619a,_0x3a784){const _0x484cad=a3_0x402819;return this[_0x484cad(0x38a)](_0x2e5f7[_0x484cad(0x344)](),Object[_0x484cad(0x48a)](Object[_0x484cad(0x48a)]({},_0x3b619a),{'method':_0x3a784}))['then'](async _0x478f0c=>{return await throwErrorIfNotOK(_0x478f0c),new HttpResponse(_0x478f0c);})['catch'](_0x4bcd25=>{const _0x27f082=_0x484cad;if(_0x4bcd25 instanceof Error)throw _0x4bcd25;else throw new Error(JSON[_0x27f082(0x65c)](_0x4bcd25));});}async[a3_0x402819(0x4dd)](_0x594553,_0x3fbb7e,_0x5735e2){const _0x2e9227=a3_0x402819;return this[_0x2e9227(0x38a)](_0x594553[_0x2e9227(0x344)](),Object[_0x2e9227(0x48a)](Object[_0x2e9227(0x48a)]({},_0x3fbb7e),{'method':_0x5735e2}))[_0x2e9227(0x1f0)](async _0x319769=>{return await throwErrorIfNotOK(_0x319769),this['processStreamResponse'](_0x319769);})[_0x2e9227(0x66f)](_0x2882ea=>{const _0x2f93d6=_0x2e9227;if(_0x2882ea instanceof Error)throw _0x2882ea;else throw new Error(JSON[_0x2f93d6(0x65c)](_0x2882ea));});}[a3_0x402819(0x31a)](_0x5b2cb0){return __asyncGenerator(this,arguments,function*_0x5be0df(){const _0x251295=a3_0x4a6d;var _0x491dc3;const _0x1be62b=(_0x491dc3=_0x5b2cb0===null||_0x5b2cb0===void 0x0?void 0x0:_0x5b2cb0[_0x251295(0x531)])===null||_0x491dc3===void 0x0?void 0x0:_0x491dc3[_0x251295(0x366)](),_0x160ace=new TextDecoder(_0x251295(0x238));if(!_0x1be62b)throw new Error('Response\x20body\x20is\x20empty');try{let _0x757cff='';const _0xa2070=_0x251295(0x623),_0x473649=['\x0a\x0a','\x0d\x0d',_0x251295(0x337)];while(!![]){const {done:_0x5320ba,value:_0x5a9640}=yield __await(_0x1be62b['read']());if(_0x5320ba){if(_0x757cff['trim']()[_0x251295(0x3e8)]>0x0)throw new Error(_0x251295(0x502));break;}const _0x225db6=_0x160ace['decode'](_0x5a9640,{'stream':!![]});try{const _0x5425f0=JSON[_0x251295(0x353)](_0x225db6);if(_0x251295(0x251)in _0x5425f0){const _0x279b72=JSON['parse'](JSON['stringify'](_0x5425f0[_0x251295(0x251)])),_0x5e8ff7=_0x279b72[_0x251295(0x389)],_0x4522f8=_0x279b72[_0x251295(0x534)],_0x136d74=_0x251295(0x659)+_0x5e8ff7+'.\x20'+JSON[_0x251295(0x65c)](_0x5425f0);if(_0x4522f8>=0x190&&_0x4522f8<0x258){const _0x390fb2=new ApiError({'message':_0x136d74,'status':_0x4522f8});throw _0x390fb2;}}}catch(_0x37bf17){const _0x38dc9f=_0x37bf17;if(_0x38dc9f['name']==='ApiError')throw _0x37bf17;}_0x757cff+=_0x225db6;let _0x2293eb=-0x1,_0x7aab87=0x0;while(!![]){_0x2293eb=-0x1,_0x7aab87=0x0;for(const _0x3aa7e9 of _0x473649){const _0x32d26b=_0x757cff[_0x251295(0x680)](_0x3aa7e9);_0x32d26b!==-0x1&&(_0x2293eb===-0x1||_0x32d26b<_0x2293eb)&&(_0x2293eb=_0x32d26b,_0x7aab87=_0x3aa7e9[_0x251295(0x3e8)]);}if(_0x2293eb===-0x1)break;const _0x40d0d0=_0x757cff[_0x251295(0x464)](0x0,_0x2293eb);_0x757cff=_0x757cff[_0x251295(0x464)](_0x2293eb+_0x7aab87);const _0x17a064=_0x40d0d0[_0x251295(0x21d)]();if(_0x17a064['startsWith'](_0xa2070)){const _0x9150b2=_0x17a064['substring'](_0xa2070['length'])[_0x251295(0x21d)]();try{const _0x397399=new Response(_0x9150b2,{'headers':_0x5b2cb0===null||_0x5b2cb0===void 0x0?void 0x0:_0x5b2cb0[_0x251295(0x70b)],'status':_0x5b2cb0===null||_0x5b2cb0===void 0x0?void 0x0:_0x5b2cb0[_0x251295(0x389)],'statusText':_0x5b2cb0===null||_0x5b2cb0===void 0x0?void 0x0:_0x5b2cb0[_0x251295(0x611)]});yield yield __await(new HttpResponse(_0x397399));}catch(_0x3c8d17){throw new Error(_0x251295(0x619)+_0x9150b2+'.\x20'+_0x3c8d17);}}}}}finally{_0x1be62b[_0x251295(0x20a)]();}});}async[a3_0x402819(0x38a)](_0x1a6bc4,_0x352cc7){const _0x5a4f3d=a3_0x402819;return fetch(_0x1a6bc4,_0x352cc7)[_0x5a4f3d(0x66f)](_0x15c313=>{const _0x808958=_0x5a4f3d;throw new Error(_0x808958(0x5d9)+_0x15c313+_0x808958(0x58f));});}[a3_0x402819(0x3ae)](){const _0x2f3916=a3_0x402819,_0x1b876f={},_0x22f7ab=LIBRARY_LABEL+'\x20'+this['clientOptions']['userAgentExtra'];return _0x1b876f[USER_AGENT_HEADER]=_0x22f7ab,_0x1b876f[GOOGLE_API_CLIENT_HEADER]=_0x22f7ab,_0x1b876f[CONTENT_TYPE_HEADER]=_0x2f3916(0x1fc),_0x1b876f;}async['getHeadersInternal'](_0x21b754,_0x25630e){const _0x5031f3=a3_0x402819,_0x30b321=new Headers();if(_0x21b754&&_0x21b754[_0x5031f3(0x70b)]){for(const [_0x265ec9,_0x2664e4]of Object[_0x5031f3(0x584)](_0x21b754['headers'])){_0x30b321[_0x5031f3(0x66e)](_0x265ec9,_0x2664e4);}_0x21b754[_0x5031f3(0x40f)]&&_0x21b754[_0x5031f3(0x40f)]>0x0&&_0x30b321['append'](SERVER_TIMEOUT_HEADER,String(Math[_0x5031f3(0x6ca)](_0x21b754['timeout']/0x3e8)));}return await this[_0x5031f3(0x4d1)][_0x5031f3(0x30a)][_0x5031f3(0x205)](_0x30b321,_0x25630e),_0x30b321;}[a3_0x402819(0x392)](_0x2b1c8e){const _0x4d33ec=a3_0x402819;var _0x563f32;let _0x4a8345='';return typeof _0x2b1c8e===_0x4d33ec(0x71b)&&(_0x4a8345=_0x2b1c8e['replace'](/[/\\]+$/,''),_0x4a8345=(_0x563f32=_0x4a8345[_0x4d33ec(0x51c)](/[/\\]/)[_0x4d33ec(0x279)]())!==null&&_0x563f32!==void 0x0?_0x563f32:''),_0x4a8345;}async['uploadFile'](_0x1b0981,_0x5a82bd){const _0x1f7c98=a3_0x402819;var _0x59544f;const _0x4f8cc2={};_0x5a82bd!=null&&(_0x4f8cc2[_0x1f7c98(0x542)]=_0x5a82bd[_0x1f7c98(0x542)],_0x4f8cc2[_0x1f7c98(0x3a4)]=_0x5a82bd['name'],_0x4f8cc2[_0x1f7c98(0x199)]=_0x5a82bd[_0x1f7c98(0x199)]);_0x4f8cc2[_0x1f7c98(0x3a4)]&&!_0x4f8cc2[_0x1f7c98(0x3a4)][_0x1f7c98(0x231)](_0x1f7c98(0x2f1))&&(_0x4f8cc2['name']=_0x1f7c98(0x2f1)+_0x4f8cc2[_0x1f7c98(0x3a4)]);const _0x24c02c=this['clientOptions'][_0x1f7c98(0x1a8)],_0x270d6e=await _0x24c02c['stat'](_0x1b0981);_0x4f8cc2[_0x1f7c98(0x5dd)]=String(_0x270d6e[_0x1f7c98(0x707)]);const _0x5f1265=(_0x59544f=_0x5a82bd===null||_0x5a82bd===void 0x0?void 0x0:_0x5a82bd[_0x1f7c98(0x542)])!==null&&_0x59544f!==void 0x0?_0x59544f:_0x270d6e[_0x1f7c98(0x247)];if(_0x5f1265===undefined||_0x5f1265==='')throw new Error(_0x1f7c98(0x2e0));_0x4f8cc2[_0x1f7c98(0x542)]=_0x5f1265;const _0x3c32b5={'file':_0x4f8cc2},_0x4ab6a5=this[_0x1f7c98(0x392)](_0x1b0981),_0x553410=formatMap('upload/v1beta/files',_0x3c32b5['_url']),_0x498774=await this[_0x1f7c98(0x3c4)](_0x553410,_0x4f8cc2[_0x1f7c98(0x5dd)],_0x4f8cc2[_0x1f7c98(0x542)],_0x4ab6a5,_0x3c32b5,_0x5a82bd===null||_0x5a82bd===void 0x0?void 0x0:_0x5a82bd[_0x1f7c98(0x5c7)]);return _0x24c02c[_0x1f7c98(0x630)](_0x1b0981,_0x498774,this);}async[a3_0x402819(0x212)](_0x4dac3f,_0x42dfae,_0x4db82a){const _0x5e9371=a3_0x402819;var _0x1a40a5;const _0x4b6039=this[_0x5e9371(0x4d1)][_0x5e9371(0x1a8)],_0x46fb3f=await _0x4b6039[_0x5e9371(0x409)](_0x42dfae),_0x1e59a8=String(_0x46fb3f[_0x5e9371(0x707)]),_0x399829=(_0x1a40a5=_0x4db82a===null||_0x4db82a===void 0x0?void 0x0:_0x4db82a['mimeType'])!==null&&_0x1a40a5!==void 0x0?_0x1a40a5:_0x46fb3f[_0x5e9371(0x247)];if(_0x399829===undefined||_0x399829==='')throw new Error(_0x5e9371(0x2e0));const _0x3c91c9=_0x5e9371(0x525)+_0x4dac3f+':uploadToFileSearchStore',_0xaa6259=this[_0x5e9371(0x392)](_0x42dfae),_0x2face9={};_0x4db82a!=null&&uploadToFileSearchStoreConfigToMldev(_0x4db82a,_0x2face9);const _0x71e46e=await this[_0x5e9371(0x3c4)](_0x3c91c9,_0x1e59a8,_0x399829,_0xaa6259,_0x2face9,_0x4db82a===null||_0x4db82a===void 0x0?void 0x0:_0x4db82a[_0x5e9371(0x5c7)]);return _0x4b6039[_0x5e9371(0x590)](_0x42dfae,_0x71e46e,this);}async['downloadFile'](_0xb4c278){const _0x3dd275=a3_0x402819,_0x22c32b=this['clientOptions'][_0x3dd275(0x243)];await _0x22c32b[_0x3dd275(0x3ca)](_0xb4c278,this);}async[a3_0x402819(0x3c4)](_0x308a1f,_0x2e1251,_0x625818,_0x1edde8,_0x250750,_0x113cfe){const _0x96382a=a3_0x402819;var _0x4eb522;let _0x4c5f6a={};_0x113cfe?_0x4c5f6a=_0x113cfe:_0x4c5f6a={'apiVersion':'','headers':Object[_0x96382a(0x48a)]({'Content-Type':_0x96382a(0x1fc),'X-Goog-Upload-Protocol':_0x96382a(0x30b),'X-Goog-Upload-Command':_0x96382a(0x61e),'X-Goog-Upload-Header-Content-Length':''+_0x2e1251,'X-Goog-Upload-Header-Content-Type':''+_0x625818},_0x1edde8?{'X-Goog-Upload-File-Name':_0x1edde8}:{})};const _0x282ba0=await this[_0x96382a(0x239)]({'path':_0x308a1f,'body':JSON['stringify'](_0x250750),'httpMethod':_0x96382a(0x6d7),'httpOptions':_0x4c5f6a});if(!_0x282ba0||!(_0x282ba0===null||_0x282ba0===void 0x0?void 0x0:_0x282ba0[_0x96382a(0x70b)]))throw new Error(_0x96382a(0x3f3));const _0x332aaf=(_0x4eb522=_0x282ba0===null||_0x282ba0===void 0x0?void 0x0:_0x282ba0[_0x96382a(0x70b)])===null||_0x4eb522===void 0x0?void 0x0:_0x4eb522[_0x96382a(0x317)];if(_0x332aaf===undefined)throw new Error('Failed\x20to\x20get\x20upload\x20url.\x20Server\x20did\x20not\x20return\x20the\x20x-google-upload-url\x20in\x20the\x20headers');return _0x332aaf;}}async function throwErrorIfNotOK(_0x56dd54){const _0x433d40=a3_0x402819;var _0x364b87;if(_0x56dd54===undefined)throw new Error(_0x433d40(0x397));if(!_0x56dd54['ok']){const _0xc0aba8=_0x56dd54[_0x433d40(0x389)];let _0x191d0f;((_0x364b87=_0x56dd54[_0x433d40(0x70b)][_0x433d40(0x42b)](_0x433d40(0x608)))===null||_0x364b87===void 0x0?void 0x0:_0x364b87[_0x433d40(0x34e)]('application/json'))?_0x191d0f=await _0x56dd54[_0x433d40(0x4cf)]():_0x191d0f={'error':{'message':await _0x56dd54[_0x433d40(0x1a9)](),'code':_0x56dd54[_0x433d40(0x389)],'status':_0x56dd54[_0x433d40(0x611)]}};const _0xa563d5=JSON[_0x433d40(0x65c)](_0x191d0f);if(_0xc0aba8>=0x190&&_0xc0aba8<0x258){const _0x488588=new ApiError({'message':_0xa563d5,'status':_0xc0aba8});throw _0x488588;}throw new Error(_0xa563d5);}}function includeExtraBodyToRequestInit(_0x430b57,_0x5fa258){const _0x2d7c2f=a3_0x402819;if(!_0x5fa258||Object[_0x2d7c2f(0x2ce)](_0x5fa258)['length']===0x0)return;if(_0x430b57[_0x2d7c2f(0x531)]instanceof Blob){console[_0x2d7c2f(0x1bd)](_0x2d7c2f(0x545));return;}let _0x1d2f0f={};if(typeof _0x430b57['body']==='string'&&_0x430b57['body'][_0x2d7c2f(0x3e8)]>0x0)try{const _0x578c69=JSON[_0x2d7c2f(0x353)](_0x430b57[_0x2d7c2f(0x531)]);if(typeof _0x578c69===_0x2d7c2f(0x365)&&_0x578c69!==null&&!Array[_0x2d7c2f(0x32b)](_0x578c69))_0x1d2f0f=_0x578c69;else{console[_0x2d7c2f(0x1bd)](_0x2d7c2f(0x41a));return;}}catch(_0x1c6b83){console['warn'](_0x2d7c2f(0x68a));return;}function _0x4dbfb3(_0x1ef6ca,_0x879219){const _0x1e68fd=_0x2d7c2f,_0x61037a=Object['assign']({},_0x1ef6ca);for(const _0x231944 in _0x879219){if(Object[_0x1e68fd(0x5c4)]['hasOwnProperty'][_0x1e68fd(0x280)](_0x879219,_0x231944)){const _0x383af7=_0x879219[_0x231944],_0x244db9=_0x61037a[_0x231944];_0x383af7&&typeof _0x383af7===_0x1e68fd(0x365)&&!Array[_0x1e68fd(0x32b)](_0x383af7)&&_0x244db9&&typeof _0x244db9===_0x1e68fd(0x365)&&!Array['isArray'](_0x244db9)?_0x61037a[_0x231944]=_0x4dbfb3(_0x244db9,_0x383af7):(_0x244db9&&_0x383af7&&typeof _0x244db9!==typeof _0x383af7&&console[_0x1e68fd(0x1bd)](_0x1e68fd(0x1a3)+_0x231944+_0x1e68fd(0x5aa)+typeof _0x244db9+',\x20New\x20type:\x20'+typeof _0x383af7+_0x1e68fd(0x670)),_0x61037a[_0x231944]=_0x383af7);}}return _0x61037a;}const _0x23cd2b=_0x4dbfb3(_0x1d2f0f,_0x5fa258);_0x430b57[_0x2d7c2f(0x531)]=JSON[_0x2d7c2f(0x65c)](_0x23cd2b);}/**
97
+ * @license
98
+ * Copyright 2025 Google LLC
99
+ * SPDX-License-Identifier: Apache-2.0
100
+ */
101
+ const MCP_LABEL='mcp_used/unknown';let hasMcpToolUsageFromMcpToTool=![];function hasMcpToolUsage(_0x2b625a){const _0x293542=a3_0x402819;for(const _0x5632c6 of _0x2b625a){if(isMcpCallableTool(_0x5632c6))return!![];if(typeof _0x5632c6===_0x293542(0x365)&&_0x293542(0x3b1)in _0x5632c6)return!![];}return hasMcpToolUsageFromMcpToTool;}function setMcpUsageHeader(_0xf2bc8d){const _0x48bc99=a3_0x402819;var _0x321e24;const _0xf2a591=(_0x321e24=_0xf2bc8d[GOOGLE_API_CLIENT_HEADER])!==null&&_0x321e24!==void 0x0?_0x321e24:'';_0xf2bc8d[GOOGLE_API_CLIENT_HEADER]=(_0xf2a591+('\x20'+MCP_LABEL))[_0x48bc99(0x1b9)]();}function isMcpCallableTool(_0x32010f){return _0x32010f!==null&&typeof _0x32010f==='object'&&_0x32010f instanceof McpCallableTool;}function listAllTools(_0x5cd408){return __asyncGenerator(this,arguments,function*_0x1a368c(_0x1a0eae,_0x26bb95=0x64){const _0x1029a6=a3_0x4a6d;let _0xd15207=undefined,_0x2b7b4f=0x0;while(_0x2b7b4f<_0x26bb95){const _0x48771f=yield __await(_0x1a0eae[_0x1029a6(0x295)]({'cursor':_0xd15207}));for(const _0x4bd9ad of _0x48771f[_0x1029a6(0x648)]){yield yield __await(_0x4bd9ad),_0x2b7b4f++;}if(!_0x48771f[_0x1029a6(0x6bf)])break;_0xd15207=_0x48771f[_0x1029a6(0x6bf)];}});}class McpCallableTool{constructor(_0x3cd736=[],_0x2b87b5){const _0x4c2f19=a3_0x402819;this[_0x4c2f19(0x585)]=[],this[_0x4c2f19(0x538)]={},this[_0x4c2f19(0x458)]=_0x3cd736,this['config']=_0x2b87b5;}static['create'](_0x1fec70,_0x297673){return new McpCallableTool(_0x1fec70,_0x297673);}async[a3_0x402819(0x554)](){const _0xc6871b=a3_0x402819;var _0x120406,_0x4caeb4,_0x2385ec,_0x13d350;if(this['mcpTools']['length']>0x0)return;const _0xbbf878={},_0x596d4f=[];for(const _0x50bbfc of this[_0xc6871b(0x458)]){try{for(var _0x3ba34b=!![],_0x4c6c10=(_0x4caeb4=void 0x0,__asyncValues(listAllTools(_0x50bbfc))),_0x374b23;_0x374b23=await _0x4c6c10[_0xc6871b(0x6b2)](),_0x120406=_0x374b23[_0xc6871b(0x424)],!_0x120406;_0x3ba34b=!![]){_0x13d350=_0x374b23['value'],_0x3ba34b=![];const _0x48ad33=_0x13d350;_0x596d4f[_0xc6871b(0x52c)](_0x48ad33);const _0x453857=_0x48ad33[_0xc6871b(0x3a4)];if(_0xbbf878[_0x453857])throw new Error(_0xc6871b(0x1cb)+_0x453857+_0xc6871b(0x5a0));_0xbbf878[_0x453857]=_0x50bbfc;}}catch(_0x1ca51a){_0x4caeb4={'error':_0x1ca51a};}finally{try{if(!_0x3ba34b&&!_0x120406&&(_0x2385ec=_0x4c6c10[_0xc6871b(0x613)]))await _0x2385ec[_0xc6871b(0x280)](_0x4c6c10);}finally{if(_0x4caeb4)throw _0x4caeb4['error'];}}}this[_0xc6871b(0x585)]=_0x596d4f,this[_0xc6871b(0x538)]=_0xbbf878;}async['tool'](){const _0x2396d1=a3_0x402819;return await this[_0x2396d1(0x554)](),mcpToolsToGeminiTool(this[_0x2396d1(0x585)],this[_0x2396d1(0x43b)]);}async[a3_0x402819(0x45c)](_0x12be04){const _0x2ed4ac=a3_0x402819;await this[_0x2ed4ac(0x554)]();const _0xabce54=[];for(const _0xf48c07 of _0x12be04){if(_0xf48c07[_0x2ed4ac(0x3a4)]in this[_0x2ed4ac(0x538)]){const _0x5314ff=this[_0x2ed4ac(0x538)][_0xf48c07['name']];let _0x3ef592=undefined;this[_0x2ed4ac(0x43b)][_0x2ed4ac(0x40f)]&&(_0x3ef592={'timeout':this[_0x2ed4ac(0x43b)][_0x2ed4ac(0x40f)]});const _0xe3911c=await _0x5314ff[_0x2ed4ac(0x45c)]({'name':_0xf48c07['name'],'arguments':_0xf48c07[_0x2ed4ac(0x6a1)]},undefined,_0x3ef592);_0xabce54['push']({'functionResponse':{'name':_0xf48c07[_0x2ed4ac(0x3a4)],'response':_0xe3911c['isError']?{'error':_0xe3911c}:_0xe3911c}});}}return _0xabce54;}}function isMcpClient(_0x27ba13){const _0x2d5a35=a3_0x402819;return _0x27ba13!==null&&typeof _0x27ba13===_0x2d5a35(0x365)&&_0x2d5a35(0x295)in _0x27ba13&&typeof _0x27ba13[_0x2d5a35(0x295)]==='function';}function mcpToTool(..._0x4f7d9f){const _0x3e5700=a3_0x402819;hasMcpToolUsageFromMcpToTool=!![];if(_0x4f7d9f[_0x3e5700(0x3e8)]===0x0)throw new Error(_0x3e5700(0x35f));const _0x1a1033=_0x4f7d9f[_0x4f7d9f[_0x3e5700(0x3e8)]-0x1];if(isMcpClient(_0x1a1033))return McpCallableTool[_0x3e5700(0x518)](_0x4f7d9f,{});return McpCallableTool[_0x3e5700(0x518)](_0x4f7d9f['slice'](0x0,_0x4f7d9f['length']-0x1),_0x1a1033);}/**
102
+ * @license
103
+ * Copyright 2025 Google LLC
104
+ * SPDX-License-Identifier: Apache-2.0
105
+ */
106
+ async function handleWebSocketMessage$1(_0x15c227,_0x444f68,_0x11ac1a){const _0xc1f71f=a3_0x402819,_0x4086b3=new LiveMusicServerMessage();let _0x3345f4;_0x11ac1a[_0xc1f71f(0x5b1)]instanceof Blob?_0x3345f4=JSON[_0xc1f71f(0x353)](await _0x11ac1a[_0xc1f71f(0x5b1)][_0xc1f71f(0x1a9)]()):_0x3345f4=JSON[_0xc1f71f(0x353)](_0x11ac1a[_0xc1f71f(0x5b1)]),Object[_0xc1f71f(0x48a)](_0x4086b3,_0x3345f4),_0x444f68(_0x4086b3);}class LiveMusic{constructor(_0x43bd63,_0x427664,_0x1dd42e){const _0xf024b1=a3_0x402819;this[_0xf024b1(0x235)]=_0x43bd63,this['auth']=_0x427664,this['webSocketFactory']=_0x1dd42e;}async[a3_0x402819(0x626)](_0x4e070f){const _0x103a9a=a3_0x402819;var _0x1d159e,_0x2fef78;if(this[_0x103a9a(0x235)][_0x103a9a(0x268)]())throw new Error(_0x103a9a(0x664));console[_0x103a9a(0x1bd)](_0x103a9a(0x4bd));const _0x2ecd9e=this[_0x103a9a(0x235)][_0x103a9a(0x610)](),_0x1e1dd8=this[_0x103a9a(0x235)]['getApiVersion'](),_0x4a45cf=mapToHeaders$1(this[_0x103a9a(0x235)]['getDefaultHeaders']()),_0x24d252=this['apiClient']['getApiKey'](),_0xb321f6=_0x2ecd9e+'/ws/google.ai.generativelanguage.'+_0x1e1dd8+'.GenerativeService.BidiGenerateMusic?key='+_0x24d252;let _0x110af5=()=>{};const _0x115a1a=new Promise(_0x28d8cf=>{_0x110af5=_0x28d8cf;}),_0x33da7d=_0x4e070f[_0x103a9a(0x4c4)],_0x26a191=function(){_0x110af5({});},_0x1832d0=this['apiClient'],_0xbed435={'onopen':_0x26a191,'onmessage':_0x445eaf=>{const _0x189ea7=_0x103a9a;void handleWebSocketMessage$1(_0x1832d0,_0x33da7d[_0x189ea7(0x622)],_0x445eaf);},'onerror':(_0x1d159e=_0x33da7d===null||_0x33da7d===void 0x0?void 0x0:_0x33da7d[_0x103a9a(0x6da)])!==null&&_0x1d159e!==void 0x0?_0x1d159e:function(_0x41efb0){},'onclose':(_0x2fef78=_0x33da7d===null||_0x33da7d===void 0x0?void 0x0:_0x33da7d[_0x103a9a(0x463)])!==null&&_0x2fef78!==void 0x0?_0x2fef78:function(_0x3442bc){}},_0xafc8d8=this[_0x103a9a(0x6ce)][_0x103a9a(0x518)](_0xb321f6,headersToMap$1(_0x4a45cf),_0xbed435);_0xafc8d8[_0x103a9a(0x626)](),await _0x115a1a;const _0x617087=tModel(this[_0x103a9a(0x235)],_0x4e070f[_0x103a9a(0x3f6)]),_0xf53c9f={'model':_0x617087},_0x38dbe2={'setup':_0xf53c9f};return _0xafc8d8[_0x103a9a(0x34c)](JSON[_0x103a9a(0x65c)](_0x38dbe2)),new LiveMusicSession(_0xafc8d8,this['apiClient']);}}class LiveMusicSession{constructor(_0xcb6431,_0x52c4e9){const _0x175b7d=a3_0x402819;this[_0x175b7d(0x3a9)]=_0xcb6431,this[_0x175b7d(0x235)]=_0x52c4e9;}async[a3_0x402819(0x1cf)](_0x246a12){const _0x5594df=a3_0x402819;if(!_0x246a12[_0x5594df(0x529)]||Object[_0x5594df(0x2ce)](_0x246a12['weightedPrompts'])[_0x5594df(0x3e8)]===0x0)throw new Error(_0x5594df(0x2bf));const _0x1656cb=liveMusicSetWeightedPromptsParametersToMldev(_0x246a12);this[_0x5594df(0x3a9)][_0x5594df(0x34c)](JSON[_0x5594df(0x65c)]({'clientContent':_0x1656cb}));}async[a3_0x402819(0x2b4)](_0x28426a){const _0x4aaaea=a3_0x402819;!_0x28426a[_0x4aaaea(0x641)]&&(_0x28426a[_0x4aaaea(0x641)]={});const _0x477676=liveMusicSetConfigParametersToMldev(_0x28426a);this[_0x4aaaea(0x3a9)][_0x4aaaea(0x34c)](JSON[_0x4aaaea(0x65c)](_0x477676));}['sendPlaybackControl'](_0x428645){const _0x43e0f7=a3_0x402819,_0x125bb5={'playbackControl':_0x428645};this['conn'][_0x43e0f7(0x34c)](JSON[_0x43e0f7(0x65c)](_0x125bb5));}[a3_0x402819(0x539)](){const _0x58a1ab=a3_0x402819;this[_0x58a1ab(0x595)](LiveMusicPlaybackControl[_0x58a1ab(0x1a0)]);}[a3_0x402819(0x29a)](){const _0xcced63=a3_0x402819;this[_0xcced63(0x595)](LiveMusicPlaybackControl['PAUSE']);}[a3_0x402819(0x6c6)](){const _0x55b9d1=a3_0x402819;this[_0x55b9d1(0x595)](LiveMusicPlaybackControl['STOP']);}['resetContext'](){const _0x4afdd8=a3_0x402819;this[_0x4afdd8(0x595)](LiveMusicPlaybackControl[_0x4afdd8(0x225)]);}[a3_0x402819(0x69a)](){const _0x447c4a=a3_0x402819;this[_0x447c4a(0x3a9)][_0x447c4a(0x69a)]();}}function headersToMap$1(_0x2f50ff){const _0x2fa876={};return _0x2f50ff['forEach']((_0x51b4a6,_0x5ee502)=>{_0x2fa876[_0x5ee502]=_0x51b4a6;}),_0x2fa876;}function mapToHeaders$1(_0xb7cba5){const _0x4f8c03=a3_0x402819,_0x49df77=new Headers();for(const [_0x9206f1,_0x2f101f]of Object[_0x4f8c03(0x584)](_0xb7cba5)){_0x49df77[_0x4f8c03(0x66e)](_0x9206f1,_0x2f101f);}return _0x49df77;}/**
107
+ * @license
108
+ * Copyright 2025 Google LLC
109
+ * SPDX-License-Identifier: Apache-2.0
110
+ */
111
+ const FUNCTION_RESPONSE_REQUIRES_ID=a3_0x402819(0x313);async function handleWebSocketMessage(_0x276036,_0x407d12,_0x19df7d){const _0x395999=a3_0x402819,_0x3c30b0=new LiveServerMessage();let _0x5c74d3;if(_0x19df7d[_0x395999(0x5b1)]instanceof Blob)_0x5c74d3=await _0x19df7d['data'][_0x395999(0x1a9)]();else _0x19df7d[_0x395999(0x5b1)]instanceof ArrayBuffer?_0x5c74d3=new TextDecoder()['decode'](_0x19df7d[_0x395999(0x5b1)]):_0x5c74d3=_0x19df7d[_0x395999(0x5b1)];const _0x3a22b5=JSON[_0x395999(0x353)](_0x5c74d3);if(_0x276036[_0x395999(0x268)]()){const _0x3f9cd6=liveServerMessageFromVertex(_0x3a22b5);Object[_0x395999(0x48a)](_0x3c30b0,_0x3f9cd6);}else{const _0x117032=_0x3a22b5;Object['assign'](_0x3c30b0,_0x117032);}_0x407d12(_0x3c30b0);}class Live{constructor(_0x2edc11,_0x90aa72,_0x2b707d){const _0x1cbff6=a3_0x402819;this[_0x1cbff6(0x235)]=_0x2edc11,this[_0x1cbff6(0x30a)]=_0x90aa72,this[_0x1cbff6(0x6ce)]=_0x2b707d,this['music']=new LiveMusic(this[_0x1cbff6(0x235)],this[_0x1cbff6(0x30a)],this[_0x1cbff6(0x6ce)]);}async['connect'](_0x371396){const _0x364aea=a3_0x402819;var _0x4fb16b,_0x166219,_0x11cdd2,_0x57fda0,_0x26876a,_0x3f059b;if(_0x371396[_0x364aea(0x43b)]&&_0x371396[_0x364aea(0x43b)][_0x364aea(0x5c7)])throw new Error('The\x20Live\x20module\x20does\x20not\x20support\x20httpOptions\x20at\x20request-level\x20in'+_0x364aea(0x49c)+'\x20configuration\x20instead.');const _0x25dc1b=this['apiClient'][_0x364aea(0x610)](),_0x3bd2e0=this['apiClient']['getApiVersion']();let _0x4dc83b;const _0x53f0c1=this['apiClient'][_0x364aea(0x332)]();_0x371396[_0x364aea(0x43b)]&&_0x371396['config']['tools']&&hasMcpToolUsage(_0x371396['config']['tools'])&&setMcpUsageHeader(_0x53f0c1);const _0xb9c0=mapToHeaders(_0x53f0c1);if(this[_0x364aea(0x235)][_0x364aea(0x268)]()){const _0xf5ae49=this[_0x364aea(0x235)][_0x364aea(0x3df)](),_0x3b5f5d=this[_0x364aea(0x235)][_0x364aea(0x6cd)](),_0x5c7990=this[_0x364aea(0x235)]['getApiKey'](),_0x3e0d12=!!_0xf5ae49&&!!_0x3b5f5d||!!_0x5c7990;this['apiClient'][_0x364aea(0x672)]()&&!_0x3e0d12?_0x4dc83b=_0x25dc1b:(_0x4dc83b=_0x25dc1b+_0x364aea(0x2db)+_0x3bd2e0+_0x364aea(0x4b7),await this[_0x364aea(0x30a)][_0x364aea(0x205)](_0xb9c0,_0x4dc83b));}else{const _0x3e9386=this[_0x364aea(0x235)]['getApiKey']();let _0x15b4d9=_0x364aea(0x639),_0x195fef=_0x364aea(0x37d);(_0x3e9386===null||_0x3e9386===void 0x0?void 0x0:_0x3e9386['startsWith']('auth_tokens/'))&&(console[_0x364aea(0x1bd)](_0x364aea(0x250)),_0x3bd2e0!=='v1alpha'&&console[_0x364aea(0x1bd)]('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.'),_0x15b4d9=_0x364aea(0x550),_0x195fef=_0x364aea(0x5b3)),_0x4dc83b=_0x25dc1b+'/ws/google.ai.generativelanguage.'+_0x3bd2e0+_0x364aea(0x4ed)+_0x15b4d9+'?'+_0x195fef+'='+_0x3e9386;}let _0x184246=()=>{};const _0x12b8d4=new Promise(_0x20bc45=>{_0x184246=_0x20bc45;}),_0x41b042=_0x371396[_0x364aea(0x4c4)],_0x575aa2=function(){const _0x3e92fe=_0x364aea;var _0x2f336f;(_0x2f336f=_0x41b042===null||_0x41b042===void 0x0?void 0x0:_0x41b042[_0x3e92fe(0x5d1)])===null||_0x2f336f===void 0x0?void 0x0:_0x2f336f[_0x3e92fe(0x280)](_0x41b042),_0x184246({});},_0x4c9472=this['apiClient'],_0x32596c={'onopen':_0x575aa2,'onmessage':_0x264a88=>{const _0x42f134=_0x364aea;void handleWebSocketMessage(_0x4c9472,_0x41b042[_0x42f134(0x622)],_0x264a88);},'onerror':(_0x4fb16b=_0x41b042===null||_0x41b042===void 0x0?void 0x0:_0x41b042['onerror'])!==null&&_0x4fb16b!==void 0x0?_0x4fb16b:function(_0xedab24){},'onclose':(_0x166219=_0x41b042===null||_0x41b042===void 0x0?void 0x0:_0x41b042['onclose'])!==null&&_0x166219!==void 0x0?_0x166219:function(_0x46710d){}},_0x4592a5=this['webSocketFactory'][_0x364aea(0x518)](_0x4dc83b,headersToMap(_0xb9c0),_0x32596c);_0x4592a5[_0x364aea(0x626)](),await _0x12b8d4;let _0x3f7888=tModel(this[_0x364aea(0x235)],_0x371396['model']);if(this[_0x364aea(0x235)][_0x364aea(0x268)]()&&_0x3f7888[_0x364aea(0x231)](_0x364aea(0x5b6))){const _0x2c3fe7=this['apiClient'][_0x364aea(0x3df)](),_0xe042bc=this[_0x364aea(0x235)]['getLocation']();_0x2c3fe7&&_0xe042bc&&(_0x3f7888=_0x364aea(0x5fd)+_0x2c3fe7+'/locations/'+_0xe042bc+'/'+_0x3f7888);}let _0x58205c={};this['apiClient'][_0x364aea(0x268)]()&&((_0x11cdd2=_0x371396['config'])===null||_0x11cdd2===void 0x0?void 0x0:_0x11cdd2[_0x364aea(0x597)])===undefined&&(_0x371396[_0x364aea(0x43b)]===undefined?_0x371396[_0x364aea(0x43b)]={'responseModalities':[Modality[_0x364aea(0x2e7)]]}:_0x371396[_0x364aea(0x43b)]['responseModalities']=[Modality[_0x364aea(0x2e7)]]);((_0x57fda0=_0x371396['config'])===null||_0x57fda0===void 0x0?void 0x0:_0x57fda0[_0x364aea(0x425)])&&console[_0x364aea(0x1bd)](_0x364aea(0x5bd));const _0x152626=(_0x3f059b=(_0x26876a=_0x371396[_0x364aea(0x43b)])===null||_0x26876a===void 0x0?void 0x0:_0x26876a[_0x364aea(0x648)])!==null&&_0x3f059b!==void 0x0?_0x3f059b:[],_0x2fb6c0=[];for(const _0x5a33b2 of _0x152626){if(this['isCallableTool'](_0x5a33b2)){const _0x466986=_0x5a33b2;_0x2fb6c0[_0x364aea(0x52c)](await _0x466986[_0x364aea(0x214)]());}else _0x2fb6c0[_0x364aea(0x52c)](_0x5a33b2);}_0x2fb6c0['length']>0x0&&(_0x371396[_0x364aea(0x43b)][_0x364aea(0x648)]=_0x2fb6c0);const _0x5145d8={'model':_0x3f7888,'config':_0x371396[_0x364aea(0x43b)],'callbacks':_0x371396[_0x364aea(0x4c4)]};return this[_0x364aea(0x235)][_0x364aea(0x268)]()?_0x58205c=liveConnectParametersToVertex(this['apiClient'],_0x5145d8):_0x58205c=liveConnectParametersToMldev(this[_0x364aea(0x235)],_0x5145d8),delete _0x58205c[_0x364aea(0x43b)],_0x4592a5[_0x364aea(0x34c)](JSON[_0x364aea(0x65c)](_0x58205c)),new Session(_0x4592a5,this[_0x364aea(0x235)]);}[a3_0x402819(0x246)](_0x5d0d66){const _0x22310e=a3_0x402819;return'callTool'in _0x5d0d66&&typeof _0x5d0d66['callTool']===_0x22310e(0x390);}}const defaultLiveSendClientContentParamerters={'turnComplete':!![]};class Session{constructor(_0x3a4351,_0x51e8c3){const _0x597cf6=a3_0x402819;this[_0x597cf6(0x3a9)]=_0x3a4351,this['apiClient']=_0x51e8c3;}[a3_0x402819(0x3cb)](_0x4193b1,_0x20e907){const _0x73b5e1=a3_0x402819;if(_0x20e907['turns']!==null&&_0x20e907['turns']!==undefined){let _0x5cd33a=[];try{_0x5cd33a=tContents(_0x20e907[_0x73b5e1(0x50f)]),!_0x4193b1[_0x73b5e1(0x268)]()&&(_0x5cd33a=_0x5cd33a['map'](_0xc927cc=>contentToMldev$1(_0xc927cc)));}catch(_0x330b7b){throw new Error('Failed\x20to\x20parse\x20client\x20content\x20\x22turns\x22,\x20type:\x20\x27'+typeof _0x20e907[_0x73b5e1(0x50f)]+'\x27');}return{'clientContent':{'turns':_0x5cd33a,'turnComplete':_0x20e907[_0x73b5e1(0x48f)]}};}return{'clientContent':{'turnComplete':_0x20e907[_0x73b5e1(0x48f)]}};}['tLiveClienttToolResponse'](_0x4b2328,_0x317b0f){const _0x496d8e=a3_0x402819;let _0xd96cbb=[];if(_0x317b0f[_0x496d8e(0x2d1)]==null)throw new Error(_0x496d8e(0x44b));!Array[_0x496d8e(0x32b)](_0x317b0f[_0x496d8e(0x2d1)])?_0xd96cbb=[_0x317b0f[_0x496d8e(0x2d1)]]:_0xd96cbb=_0x317b0f['functionResponses'];if(_0xd96cbb[_0x496d8e(0x3e8)]===0x0)throw new Error('functionResponses\x20is\x20required.');for(const _0x1b0ac3 of _0xd96cbb){if(typeof _0x1b0ac3!==_0x496d8e(0x365)||_0x1b0ac3===null||!(_0x496d8e(0x3a4)in _0x1b0ac3)||!(_0x496d8e(0x454)in _0x1b0ac3))throw new Error(_0x496d8e(0x5ab)+typeof _0x1b0ac3+'\x27.');if(!_0x4b2328[_0x496d8e(0x268)]()&&!('id'in _0x1b0ac3))throw new Error(FUNCTION_RESPONSE_REQUIRES_ID);}const _0x5c3dda={'toolResponse':{'functionResponses':_0xd96cbb}};return _0x5c3dda;}[a3_0x402819(0x417)](_0xd054fc){const _0x16b820=a3_0x402819;_0xd054fc=Object[_0x16b820(0x48a)](Object[_0x16b820(0x48a)]({},defaultLiveSendClientContentParamerters),_0xd054fc);const _0x31c00f=this['tLiveClientContent'](this[_0x16b820(0x235)],_0xd054fc);this[_0x16b820(0x3a9)][_0x16b820(0x34c)](JSON['stringify'](_0x31c00f));}[a3_0x402819(0x1f6)](_0x27d82e){const _0x4771c3=a3_0x402819;let _0x28b824={};this[_0x4771c3(0x235)][_0x4771c3(0x268)]()?_0x28b824={'realtimeInput':liveSendRealtimeInputParametersToVertex(_0x27d82e)}:_0x28b824={'realtimeInput':liveSendRealtimeInputParametersToMldev(_0x27d82e)},this[_0x4771c3(0x3a9)]['send'](JSON[_0x4771c3(0x65c)](_0x28b824));}['sendToolResponse'](_0xd96c7f){const _0x3b790c=a3_0x402819;if(_0xd96c7f[_0x3b790c(0x2d1)]==null)throw new Error(_0x3b790c(0x5ff));const _0xb65095=this[_0x3b790c(0x4b3)](this[_0x3b790c(0x235)],_0xd96c7f);this['conn'][_0x3b790c(0x34c)](JSON['stringify'](_0xb65095));}[a3_0x402819(0x69a)](){const _0x3837d1=a3_0x402819;this[_0x3837d1(0x3a9)][_0x3837d1(0x69a)]();}}function headersToMap(_0x42a9af){const _0x4eeb9b=a3_0x402819,_0x40b9b1={};return _0x42a9af[_0x4eeb9b(0x675)]((_0x9036ed,_0x277b46)=>{_0x40b9b1[_0x277b46]=_0x9036ed;}),_0x40b9b1;}function mapToHeaders(_0x27874c){const _0x52996d=a3_0x402819,_0x4d772b=new Headers();for(const [_0x35d0d4,_0x28e522]of Object['entries'](_0x27874c)){_0x4d772b[_0x52996d(0x66e)](_0x35d0d4,_0x28e522);}return _0x4d772b;}/**
112
+ * @license
113
+ * Copyright 2025 Google LLC
114
+ * SPDX-License-Identifier: Apache-2.0
115
+ */
116
+ const DEFAULT_MAX_REMOTE_CALLS=0xa;function shouldDisableAfc(_0xd364b4){const _0x3f5c24=a3_0x402819;var _0x4ea2b4,_0x18106f,_0x6db5e4;if((_0x4ea2b4=_0xd364b4===null||_0xd364b4===void 0x0?void 0x0:_0xd364b4[_0x3f5c24(0x36e)])===null||_0x4ea2b4===void 0x0?void 0x0:_0x4ea2b4[_0x3f5c24(0x482)])return!![];let _0x49a2ce=![];for(const _0x15fbc7 of(_0x18106f=_0xd364b4===null||_0xd364b4===void 0x0?void 0x0:_0xd364b4['tools'])!==null&&_0x18106f!==void 0x0?_0x18106f:[]){if(isCallableTool(_0x15fbc7)){_0x49a2ce=!![];break;}}if(!_0x49a2ce)return!![];const _0x318ee7=(_0x6db5e4=_0xd364b4===null||_0xd364b4===void 0x0?void 0x0:_0xd364b4[_0x3f5c24(0x36e)])===null||_0x6db5e4===void 0x0?void 0x0:_0x6db5e4[_0x3f5c24(0x35d)];if(_0x318ee7&&(_0x318ee7<0x0||!Number[_0x3f5c24(0x42d)](_0x318ee7))||_0x318ee7==0x0)return console[_0x3f5c24(0x1bd)]('Invalid\x20maximumRemoteCalls\x20value\x20provided\x20for\x20automatic\x20function\x20calling.\x20Disabled\x20automatic\x20function\x20calling.\x20Please\x20provide\x20a\x20valid\x20integer\x20value\x20greater\x20than\x200.\x20maximumRemoteCalls\x20provided:',_0x318ee7),!![];return![];}function isCallableTool(_0xa4b975){const _0xebe093=a3_0x402819;return _0xebe093(0x45c)in _0xa4b975&&typeof _0xa4b975[_0xebe093(0x45c)]===_0xebe093(0x390);}function hasCallableTools(_0x20581d){const _0x54c2db=a3_0x402819;var _0x4c94d5,_0x1d10ac,_0x53f33f;return(_0x53f33f=(_0x1d10ac=(_0x4c94d5=_0x20581d['config'])===null||_0x4c94d5===void 0x0?void 0x0:_0x4c94d5[_0x54c2db(0x648)])===null||_0x1d10ac===void 0x0?void 0x0:_0x1d10ac[_0x54c2db(0x1d4)](_0x31e897=>isCallableTool(_0x31e897)))!==null&&_0x53f33f!==void 0x0?_0x53f33f:![];}function findAfcIncompatibleToolIndexes(_0x30e4a6){const _0x21f2d4=a3_0x402819;var _0x292595;const _0x3765c1=[];if(!((_0x292595=_0x30e4a6===null||_0x30e4a6===void 0x0?void 0x0:_0x30e4a6[_0x21f2d4(0x43b)])===null||_0x292595===void 0x0?void 0x0:_0x292595['tools']))return _0x3765c1;return _0x30e4a6['config'][_0x21f2d4(0x648)]['forEach']((_0x3722a9,_0x26ad53)=>{const _0x3145bb=_0x21f2d4;if(isCallableTool(_0x3722a9))return;const _0x38fd30=_0x3722a9;_0x38fd30[_0x3145bb(0x5f8)]&&_0x38fd30['functionDeclarations'][_0x3145bb(0x3e8)]>0x0&&_0x3765c1[_0x3145bb(0x52c)](_0x26ad53);}),_0x3765c1;}function shouldAppendAfcHistory(_0x46b08c){const _0x37ab84=a3_0x402819;var _0x5ab0d0;return!((_0x5ab0d0=_0x46b08c===null||_0x46b08c===void 0x0?void 0x0:_0x46b08c['automaticFunctionCalling'])===null||_0x5ab0d0===void 0x0?void 0x0:_0x5ab0d0[_0x37ab84(0x23b)]);}/**
117
+ * @license
118
+ * Copyright 2025 Google LLC
119
+ * SPDX-License-Identifier: Apache-2.0
120
+ */
121
+ class Models extends BaseModule{constructor(_0x27772e){const _0x23874e=a3_0x402819;super(),this[_0x23874e(0x235)]=_0x27772e,this[_0x23874e(0x3bf)]=async _0x4d1344=>{const _0x2e5e42=_0x23874e;var _0x4147c7,_0x4f55ce,_0x24c421,_0x4db0a2,_0x58c5ef;const _0x16efbb=await this[_0x2e5e42(0x51f)](_0x4d1344);this['maybeMoveToResponseJsonSchem'](_0x4d1344);if(!hasCallableTools(_0x4d1344)||shouldDisableAfc(_0x4d1344[_0x2e5e42(0x43b)]))return await this['generateContentInternal'](_0x16efbb);const _0x54a84d=findAfcIncompatibleToolIndexes(_0x4d1344);if(_0x54a84d[_0x2e5e42(0x3e8)]>0x0){const _0x511899=_0x54a84d[_0x2e5e42(0x6c4)](_0x452612=>'tools['+_0x452612+']')[_0x2e5e42(0x401)](',\x20');throw new Error(_0x2e5e42(0x67c)+_0x511899+'.');}let _0x30254c,_0x554a45;const _0x26c749=tContents(_0x16efbb[_0x2e5e42(0x695)]),_0x3138e8=(_0x24c421=(_0x4f55ce=(_0x4147c7=_0x16efbb[_0x2e5e42(0x43b)])===null||_0x4147c7===void 0x0?void 0x0:_0x4147c7[_0x2e5e42(0x36e)])===null||_0x4f55ce===void 0x0?void 0x0:_0x4f55ce[_0x2e5e42(0x35d)])!==null&&_0x24c421!==void 0x0?_0x24c421:DEFAULT_MAX_REMOTE_CALLS;let _0xd3860c=0x0;while(_0xd3860c<_0x3138e8){_0x30254c=await this[_0x2e5e42(0x221)](_0x16efbb);if(!_0x30254c['functionCalls']||_0x30254c[_0x2e5e42(0x1c6)][_0x2e5e42(0x3e8)]===0x0)break;const _0x6d04a3=_0x30254c[_0x2e5e42(0x6d0)][0x0]['content'],_0x57c0b4=[];for(const _0x4e00a0 of(_0x58c5ef=(_0x4db0a2=_0x4d1344[_0x2e5e42(0x43b)])===null||_0x4db0a2===void 0x0?void 0x0:_0x4db0a2[_0x2e5e42(0x648)])!==null&&_0x58c5ef!==void 0x0?_0x58c5ef:[]){if(isCallableTool(_0x4e00a0)){const _0x2ada3e=_0x4e00a0,_0x557c67=await _0x2ada3e[_0x2e5e42(0x45c)](_0x30254c[_0x2e5e42(0x1c6)]);_0x57c0b4[_0x2e5e42(0x52c)](..._0x557c67);}}_0xd3860c++,_0x554a45={'role':_0x2e5e42(0x3a6),'parts':_0x57c0b4},_0x16efbb['contents']=tContents(_0x16efbb[_0x2e5e42(0x695)]),_0x16efbb[_0x2e5e42(0x695)][_0x2e5e42(0x52c)](_0x6d04a3),_0x16efbb[_0x2e5e42(0x695)][_0x2e5e42(0x52c)](_0x554a45),shouldAppendAfcHistory(_0x16efbb[_0x2e5e42(0x43b)])&&(_0x26c749['push'](_0x6d04a3),_0x26c749[_0x2e5e42(0x52c)](_0x554a45));}return shouldAppendAfcHistory(_0x16efbb[_0x2e5e42(0x43b)])&&(_0x30254c[_0x2e5e42(0x2ec)]=_0x26c749),_0x30254c;},this['generateContentStream']=async _0x386cf8=>{const _0x284970=_0x23874e;var _0x38bc1d,_0x551aa0,_0x42ef76,_0x2e94b4,_0x2ecf4f;this[_0x284970(0x513)](_0x386cf8);if(shouldDisableAfc(_0x386cf8['config'])){const _0x5d9b8b=await this[_0x284970(0x51f)](_0x386cf8);return await this['generateContentStreamInternal'](_0x5d9b8b);}const _0xbed456=findAfcIncompatibleToolIndexes(_0x386cf8);if(_0xbed456['length']>0x0){const _0x4ab210=_0xbed456[_0x284970(0x6c4)](_0xe52bc2=>_0x284970(0x23f)+_0xe52bc2+']')[_0x284970(0x401)](',\x20');throw new Error(_0x284970(0x2bd)+_0x4ab210+_0x284970(0x5f3));}const _0x580b3a=(_0x42ef76=(_0x551aa0=(_0x38bc1d=_0x386cf8===null||_0x386cf8===void 0x0?void 0x0:_0x386cf8[_0x284970(0x43b)])===null||_0x38bc1d===void 0x0?void 0x0:_0x38bc1d['toolConfig'])===null||_0x551aa0===void 0x0?void 0x0:_0x551aa0[_0x284970(0x2f0)])===null||_0x42ef76===void 0x0?void 0x0:_0x42ef76[_0x284970(0x6df)],_0x4715f4=(_0x2ecf4f=(_0x2e94b4=_0x386cf8===null||_0x386cf8===void 0x0?void 0x0:_0x386cf8[_0x284970(0x43b)])===null||_0x2e94b4===void 0x0?void 0x0:_0x2e94b4[_0x284970(0x36e)])===null||_0x2ecf4f===void 0x0?void 0x0:_0x2ecf4f[_0x284970(0x482)];if(_0x580b3a&&!_0x4715f4)throw new Error(_0x284970(0x1c7)+_0x284970(0x2eb)+'Please\x20set\x20\x27config.automaticFunctionCalling.disable\x27\x20to\x20true\x20to\x20disable\x20AFC\x20'+_0x284970(0x4c2)+'to\x20be\x20undefined\x20or\x20set\x20to\x20false\x20to\x20disable\x20streaming\x20function\x20call\x20arguments\x20feature.');return await this[_0x284970(0x263)](_0x386cf8);},this[_0x23874e(0x5ae)]=async _0x44b7bf=>{const _0x3afe4c=_0x23874e;return await this[_0x3afe4c(0x338)](_0x44b7bf)[_0x3afe4c(0x1f0)](_0x4c7dd1=>{const _0x4cf0c9=_0x3afe4c;var _0x1bc0ba;let _0x5b20d2;const _0x367092=[];if(_0x4c7dd1===null||_0x4c7dd1===void 0x0?void 0x0:_0x4c7dd1[_0x4cf0c9(0x1f5)])for(const _0x294bbd of _0x4c7dd1[_0x4cf0c9(0x1f5)]){_0x294bbd&&(_0x294bbd===null||_0x294bbd===void 0x0?void 0x0:_0x294bbd[_0x4cf0c9(0x2a7)])&&((_0x1bc0ba=_0x294bbd===null||_0x294bbd===void 0x0?void 0x0:_0x294bbd[_0x4cf0c9(0x2a7)])===null||_0x1bc0ba===void 0x0?void 0x0:_0x1bc0ba[_0x4cf0c9(0x723)])===_0x4cf0c9(0x5d3)?_0x5b20d2=_0x294bbd===null||_0x294bbd===void 0x0?void 0x0:_0x294bbd[_0x4cf0c9(0x2a7)]:_0x367092['push'](_0x294bbd);}let _0x4bb9df;return _0x5b20d2?_0x4bb9df={'generatedImages':_0x367092,'positivePromptSafetyAttributes':_0x5b20d2,'sdkHttpResponse':_0x4c7dd1['sdkHttpResponse']}:_0x4bb9df={'generatedImages':_0x367092,'sdkHttpResponse':_0x4c7dd1[_0x4cf0c9(0x3a7)]},_0x4bb9df;});},this[_0x23874e(0x526)]=async _0x469d55=>{const _0x236c51=_0x23874e;var _0x42f135;const _0x4bea53={'queryBase':!![]},_0x33de82=Object[_0x236c51(0x48a)](Object[_0x236c51(0x48a)]({},_0x4bea53),_0x469d55===null||_0x469d55===void 0x0?void 0x0:_0x469d55[_0x236c51(0x43b)]),_0x4d9966={'config':_0x33de82};if(this[_0x236c51(0x235)][_0x236c51(0x268)]()){if(!_0x4d9966['config']['queryBase']){if((_0x42f135=_0x4d9966[_0x236c51(0x43b)])===null||_0x42f135===void 0x0?void 0x0:_0x42f135['filter'])throw new Error(_0x236c51(0x4fb));else _0x4d9966[_0x236c51(0x43b)][_0x236c51(0x67f)]='labels.tune-type:*';}}return new Pager(PagedItem[_0x236c51(0x5c0)],_0x25406d=>this['listInternal'](_0x25406d),await this[_0x236c51(0x388)](_0x4d9966),_0x4d9966);},this[_0x23874e(0x1d5)]=async _0x2d5674=>{const _0x5c4ea9=_0x23874e,_0x216632={'model':_0x2d5674[_0x5c4ea9(0x3f6)],'prompt':_0x2d5674['prompt'],'referenceImages':[],'config':_0x2d5674[_0x5c4ea9(0x43b)]};return _0x2d5674['referenceImages']&&(_0x2d5674[_0x5c4ea9(0x486)]&&(_0x216632[_0x5c4ea9(0x486)]=_0x2d5674[_0x5c4ea9(0x486)]['map'](_0x3d54e6=>_0x3d54e6[_0x5c4ea9(0x34b)]()))),await this[_0x5c4ea9(0x544)](_0x216632);},this[_0x23874e(0x200)]=async _0x1b98e2=>{const _0xd39b9d=_0x23874e;let _0x1c278e={'numberOfImages':0x1,'mode':'upscale'};_0x1b98e2['config']&&(_0x1c278e=Object['assign'](Object[_0xd39b9d(0x48a)]({},_0x1c278e),_0x1b98e2[_0xd39b9d(0x43b)]));const _0x406913={'model':_0x1b98e2[_0xd39b9d(0x3f6)],'image':_0x1b98e2['image'],'upscaleFactor':_0x1b98e2[_0xd39b9d(0x38e)],'config':_0x1c278e};return await this[_0xd39b9d(0x24c)](_0x406913);},this['generateVideos']=async _0x8480f8=>{const _0x26e44a=_0x23874e;var _0x29442c,_0x198ca4,_0x1cf9b3,_0x188629,_0x4dbe32,_0x58ea0b;if((_0x8480f8[_0x26e44a(0x6f3)]||_0x8480f8[_0x26e44a(0x669)]||_0x8480f8[_0x26e44a(0x5f6)])&&_0x8480f8[_0x26e44a(0x643)])throw new Error('Source\x20and\x20prompt/image/video\x20are\x20mutually\x20exclusive.\x20Please\x20only\x20use\x20source.');if(!this[_0x26e44a(0x235)][_0x26e44a(0x268)]()){if(((_0x29442c=_0x8480f8[_0x26e44a(0x5f6)])===null||_0x29442c===void 0x0?void 0x0:_0x29442c['uri'])&&((_0x198ca4=_0x8480f8[_0x26e44a(0x5f6)])===null||_0x198ca4===void 0x0?void 0x0:_0x198ca4['videoBytes']))_0x8480f8['video']={'uri':_0x8480f8[_0x26e44a(0x5f6)][_0x26e44a(0x210)],'mimeType':_0x8480f8[_0x26e44a(0x5f6)][_0x26e44a(0x542)]};else((_0x188629=(_0x1cf9b3=_0x8480f8['source'])===null||_0x1cf9b3===void 0x0?void 0x0:_0x1cf9b3[_0x26e44a(0x5f6)])===null||_0x188629===void 0x0?void 0x0:_0x188629[_0x26e44a(0x210)])&&((_0x58ea0b=(_0x4dbe32=_0x8480f8[_0x26e44a(0x643)])===null||_0x4dbe32===void 0x0?void 0x0:_0x4dbe32[_0x26e44a(0x5f6)])===null||_0x58ea0b===void 0x0?void 0x0:_0x58ea0b[_0x26e44a(0x1b8)])&&(_0x8480f8[_0x26e44a(0x643)][_0x26e44a(0x5f6)]={'uri':_0x8480f8[_0x26e44a(0x643)][_0x26e44a(0x5f6)][_0x26e44a(0x210)],'mimeType':_0x8480f8[_0x26e44a(0x643)][_0x26e44a(0x5f6)][_0x26e44a(0x542)]});}return await this[_0x26e44a(0x1e7)](_0x8480f8);};}['maybeMoveToResponseJsonSchem'](_0x18e13a){const _0x406864=a3_0x402819;_0x18e13a['config']&&_0x18e13a[_0x406864(0x43b)][_0x406864(0x53e)]&&(!_0x18e13a[_0x406864(0x43b)]['responseJsonSchema']&&(Object[_0x406864(0x2ce)](_0x18e13a[_0x406864(0x43b)]['responseSchema'])[_0x406864(0x34e)](_0x406864(0x447))&&(_0x18e13a[_0x406864(0x43b)][_0x406864(0x62d)]=_0x18e13a['config'][_0x406864(0x53e)],delete _0x18e13a[_0x406864(0x43b)][_0x406864(0x53e)])));return;}async[a3_0x402819(0x51f)](_0xb8badd){const _0x355f3a=a3_0x402819;var _0x26c442,_0x4306b6,_0x5e2d1a;const _0x422d2f=(_0x26c442=_0xb8badd[_0x355f3a(0x43b)])===null||_0x26c442===void 0x0?void 0x0:_0x26c442['tools'];if(!_0x422d2f)return _0xb8badd;const _0x895c76=await Promise[_0x355f3a(0x50a)](_0x422d2f[_0x355f3a(0x6c4)](async _0x2b9cb7=>{const _0x378baf=_0x355f3a;if(isCallableTool(_0x2b9cb7)){const _0x2820f1=_0x2b9cb7;return await _0x2820f1[_0x378baf(0x214)]();}return _0x2b9cb7;})),_0x54bf82={'model':_0xb8badd[_0x355f3a(0x3f6)],'contents':_0xb8badd[_0x355f3a(0x695)],'config':Object[_0x355f3a(0x48a)](Object['assign']({},_0xb8badd['config']),{'tools':_0x895c76})};_0x54bf82[_0x355f3a(0x43b)]['tools']=_0x895c76;if(_0xb8badd[_0x355f3a(0x43b)]&&_0xb8badd[_0x355f3a(0x43b)][_0x355f3a(0x648)]&&hasMcpToolUsage(_0xb8badd[_0x355f3a(0x43b)][_0x355f3a(0x648)])){const _0x57f659=(_0x5e2d1a=(_0x4306b6=_0xb8badd[_0x355f3a(0x43b)][_0x355f3a(0x5c7)])===null||_0x4306b6===void 0x0?void 0x0:_0x4306b6[_0x355f3a(0x70b)])!==null&&_0x5e2d1a!==void 0x0?_0x5e2d1a:{};let _0x28dc1b=Object[_0x355f3a(0x48a)]({},_0x57f659);Object[_0x355f3a(0x2ce)](_0x28dc1b)['length']===0x0&&(_0x28dc1b=this[_0x355f3a(0x235)][_0x355f3a(0x3ae)]()),setMcpUsageHeader(_0x28dc1b),_0x54bf82[_0x355f3a(0x43b)][_0x355f3a(0x5c7)]=Object[_0x355f3a(0x48a)](Object[_0x355f3a(0x48a)]({},_0xb8badd[_0x355f3a(0x43b)]['httpOptions']),{'headers':_0x28dc1b});}return _0x54bf82;}async[a3_0x402819(0x5d5)](_0x411b8f){const _0x1d3553=a3_0x402819;var _0x4a0fe4,_0x9ca2da,_0x200676;const _0x463514=new Map();for(const _0x56096a of(_0x9ca2da=(_0x4a0fe4=_0x411b8f[_0x1d3553(0x43b)])===null||_0x4a0fe4===void 0x0?void 0x0:_0x4a0fe4[_0x1d3553(0x648)])!==null&&_0x9ca2da!==void 0x0?_0x9ca2da:[]){if(isCallableTool(_0x56096a)){const _0x4f53b6=_0x56096a,_0x40592b=await _0x4f53b6[_0x1d3553(0x214)]();for(const _0x1e08d1 of(_0x200676=_0x40592b[_0x1d3553(0x5f8)])!==null&&_0x200676!==void 0x0?_0x200676:[]){if(!_0x1e08d1[_0x1d3553(0x3a4)])throw new Error(_0x1d3553(0x44f));if(_0x463514[_0x1d3553(0x553)](_0x1e08d1[_0x1d3553(0x3a4)]))throw new Error('Duplicate\x20tool\x20declaration\x20name:\x20'+_0x1e08d1[_0x1d3553(0x3a4)]);_0x463514[_0x1d3553(0x3e1)](_0x1e08d1['name'],_0x4f53b6);}}}return _0x463514;}async[a3_0x402819(0x263)](_0x16c283){const _0xea9b=a3_0x402819;var _0x4aaa7a,_0x7c2619,_0xfeb6f1;const _0x4b2bf7=(_0xfeb6f1=(_0x7c2619=(_0x4aaa7a=_0x16c283['config'])===null||_0x4aaa7a===void 0x0?void 0x0:_0x4aaa7a['automaticFunctionCalling'])===null||_0x7c2619===void 0x0?void 0x0:_0x7c2619[_0xea9b(0x35d)])!==null&&_0xfeb6f1!==void 0x0?_0xfeb6f1:DEFAULT_MAX_REMOTE_CALLS;let _0x107220=![],_0x3059bb=0x0;const _0x3011bb=await this['initAfcToolsMap'](_0x16c283);return function(_0x50c68c,_0x18cac5,_0xfdc831){return __asyncGenerator(this,arguments,function*(){const _0x413351=a3_0x4a6d;var _0x54b64d,_0x71941d,_0x445ddf,_0x15b024,_0x319385,_0x2de978;while(_0x3059bb<_0x4b2bf7){_0x107220&&(_0x3059bb++,_0x107220=![]);const _0x15bdbe=yield __await(_0x50c68c[_0x413351(0x51f)](_0xfdc831)),_0x13859d=yield __await(_0x50c68c['generateContentStreamInternal'](_0x15bdbe)),_0x3c75eb=[],_0x2de63a=[];try{for(var _0x1bda39=!![],_0x237c88=(_0x71941d=void 0x0,__asyncValues(_0x13859d)),_0xe6c2c;_0xe6c2c=yield __await(_0x237c88[_0x413351(0x6b2)]()),_0x54b64d=_0xe6c2c[_0x413351(0x424)],!_0x54b64d;_0x1bda39=!![]){_0x15b024=_0xe6c2c['value'],_0x1bda39=![];const _0x443372=_0x15b024;yield yield __await(_0x443372);if(_0x443372['candidates']&&((_0x319385=_0x443372[_0x413351(0x6d0)][0x0])===null||_0x319385===void 0x0?void 0x0:_0x319385[_0x413351(0x345)])){_0x2de63a[_0x413351(0x52c)](_0x443372[_0x413351(0x6d0)][0x0][_0x413351(0x345)]);for(const _0x21cef2 of(_0x2de978=_0x443372[_0x413351(0x6d0)][0x0][_0x413351(0x345)][_0x413351(0x569)])!==null&&_0x2de978!==void 0x0?_0x2de978:[]){if(_0x3059bb<_0x4b2bf7&&_0x21cef2[_0x413351(0x45f)]){if(!_0x21cef2['functionCall'][_0x413351(0x3a4)])throw new Error(_0x413351(0x56e));if(!_0x18cac5[_0x413351(0x553)](_0x21cef2[_0x413351(0x45f)]['name']))throw new Error(_0x413351(0x715)+_0x18cac5[_0x413351(0x2ce)]()+_0x413351(0x551)+_0x21cef2[_0x413351(0x45f)][_0x413351(0x3a4)]);else{const _0x35d57b=yield __await(_0x18cac5[_0x413351(0x42b)](_0x21cef2[_0x413351(0x45f)]['name'])[_0x413351(0x45c)]([_0x21cef2[_0x413351(0x45f)]]));_0x3c75eb[_0x413351(0x52c)](..._0x35d57b);}}}}}}catch(_0xcec2f1){_0x71941d={'error':_0xcec2f1};}finally{try{if(!_0x1bda39&&!_0x54b64d&&(_0x445ddf=_0x237c88[_0x413351(0x613)]))yield __await(_0x445ddf[_0x413351(0x280)](_0x237c88));}finally{if(_0x71941d)throw _0x71941d['error'];}}if(_0x3c75eb['length']>0x0){_0x107220=!![];const _0x575be4=new GenerateContentResponse();_0x575be4[_0x413351(0x6d0)]=[{'content':{'role':_0x413351(0x3a6),'parts':_0x3c75eb}}],yield yield __await(_0x575be4);const _0xee8d01=[];_0xee8d01['push'](..._0x2de63a),_0xee8d01[_0x413351(0x52c)]({'role':_0x413351(0x3a6),'parts':_0x3c75eb});const _0x11bae8=tContents(_0xfdc831[_0x413351(0x695)])[_0x413351(0x6ab)](_0xee8d01);_0xfdc831['contents']=_0x11bae8;}else break;}});}(this,_0x3011bb,_0x16c283);}async[a3_0x402819(0x221)](_0x574489){const _0x5a0a6e=a3_0x402819;var _0x4a7a8c,_0x48c58c,_0x47f70f,_0x1f3a04;let _0x3130b7,_0x4ba568='',_0x104ea8={};if(this['apiClient']['isVertexAI']()){const _0x10dcf8=generateContentParametersToVertex(this[_0x5a0a6e(0x235)],_0x574489);return _0x4ba568=formatMap(_0x5a0a6e(0x5d8),_0x10dcf8[_0x5a0a6e(0x1aa)]),_0x104ea8=_0x10dcf8['_query'],delete _0x10dcf8[_0x5a0a6e(0x1aa)],delete _0x10dcf8['_query'],_0x3130b7=this[_0x5a0a6e(0x235)][_0x5a0a6e(0x239)]({'path':_0x4ba568,'queryParams':_0x104ea8,'body':JSON[_0x5a0a6e(0x65c)](_0x10dcf8),'httpMethod':'POST','httpOptions':(_0x4a7a8c=_0x574489[_0x5a0a6e(0x43b)])===null||_0x4a7a8c===void 0x0?void 0x0:_0x4a7a8c['httpOptions'],'abortSignal':(_0x48c58c=_0x574489[_0x5a0a6e(0x43b)])===null||_0x48c58c===void 0x0?void 0x0:_0x48c58c[_0x5a0a6e(0x709)]})[_0x5a0a6e(0x1f0)](_0x3da864=>{const _0x2160c7=_0x5a0a6e;return _0x3da864[_0x2160c7(0x4cf)]()[_0x2160c7(0x1f0)](_0x24ef60=>{const _0x5105d7=_0x2160c7,_0x2a9c20=_0x24ef60;return _0x2a9c20['sdkHttpResponse']={'headers':_0x3da864[_0x5105d7(0x70b)]},_0x2a9c20;});}),_0x3130b7[_0x5a0a6e(0x1f0)](_0x451687=>{const _0x1c9363=generateContentResponseFromVertex(_0x451687),_0x44919e=new GenerateContentResponse();return Object['assign'](_0x44919e,_0x1c9363),_0x44919e;});}else{const _0x2a44e1=generateContentParametersToMldev(this['apiClient'],_0x574489);return _0x4ba568=formatMap(_0x5a0a6e(0x5d8),_0x2a44e1[_0x5a0a6e(0x1aa)]),_0x104ea8=_0x2a44e1['_query'],delete _0x2a44e1[_0x5a0a6e(0x1aa)],delete _0x2a44e1[_0x5a0a6e(0x5fa)],_0x3130b7=this['apiClient'][_0x5a0a6e(0x239)]({'path':_0x4ba568,'queryParams':_0x104ea8,'body':JSON[_0x5a0a6e(0x65c)](_0x2a44e1),'httpMethod':'POST','httpOptions':(_0x47f70f=_0x574489[_0x5a0a6e(0x43b)])===null||_0x47f70f===void 0x0?void 0x0:_0x47f70f[_0x5a0a6e(0x5c7)],'abortSignal':(_0x1f3a04=_0x574489[_0x5a0a6e(0x43b)])===null||_0x1f3a04===void 0x0?void 0x0:_0x1f3a04[_0x5a0a6e(0x709)]})['then'](_0x41cfeb=>{const _0x11286b=_0x5a0a6e;return _0x41cfeb['json']()[_0x11286b(0x1f0)](_0x1d438a=>{const _0x1b2b37=_0x11286b,_0x5e426b=_0x1d438a;return _0x5e426b[_0x1b2b37(0x3a7)]={'headers':_0x41cfeb[_0x1b2b37(0x70b)]},_0x5e426b;});}),_0x3130b7[_0x5a0a6e(0x1f0)](_0x119305=>{const _0x546a71=_0x5a0a6e,_0x2ac981=generateContentResponseFromMldev(_0x119305),_0x3a9672=new GenerateContentResponse();return Object[_0x546a71(0x48a)](_0x3a9672,_0x2ac981),_0x3a9672;});}}async[a3_0x402819(0x5b4)](_0x4c97ca){const _0x8c473=a3_0x402819;var _0x302b36,_0x36d695,_0x107456,_0xeb9d30;let _0x1e512f,_0x426386='',_0x419aae={};if(this[_0x8c473(0x235)]['isVertexAI']()){const _0x4be524=generateContentParametersToVertex(this[_0x8c473(0x235)],_0x4c97ca);_0x426386=formatMap(_0x8c473(0x61c),_0x4be524[_0x8c473(0x1aa)]),_0x419aae=_0x4be524[_0x8c473(0x5fa)],delete _0x4be524[_0x8c473(0x1aa)],delete _0x4be524['_query'];const _0x134da2=this[_0x8c473(0x235)];return _0x1e512f=_0x134da2[_0x8c473(0x6dc)]({'path':_0x426386,'queryParams':_0x419aae,'body':JSON[_0x8c473(0x65c)](_0x4be524),'httpMethod':'POST','httpOptions':(_0x302b36=_0x4c97ca[_0x8c473(0x43b)])===null||_0x302b36===void 0x0?void 0x0:_0x302b36[_0x8c473(0x5c7)],'abortSignal':(_0x36d695=_0x4c97ca['config'])===null||_0x36d695===void 0x0?void 0x0:_0x36d695[_0x8c473(0x709)]}),_0x1e512f[_0x8c473(0x1f0)](function(_0x4618e0){return __asyncGenerator(this,arguments,function*(){const _0x404b4c=a3_0x4a6d;var _0x2d73db,_0x4f13b3,_0x411b1d,_0x122a56;try{for(var _0x446ebc=!![],_0x1733b6=__asyncValues(_0x4618e0),_0x1e7acf;_0x1e7acf=yield __await(_0x1733b6[_0x404b4c(0x6b2)]()),_0x2d73db=_0x1e7acf[_0x404b4c(0x424)],!_0x2d73db;_0x446ebc=!![]){_0x122a56=_0x1e7acf[_0x404b4c(0x431)],_0x446ebc=![];const _0x378e6d=_0x122a56,_0x503b0e=generateContentResponseFromVertex(yield __await(_0x378e6d[_0x404b4c(0x4cf)]()),_0x4c97ca);_0x503b0e['sdkHttpResponse']={'headers':_0x378e6d[_0x404b4c(0x70b)]};const _0x5714ae=new GenerateContentResponse();Object[_0x404b4c(0x48a)](_0x5714ae,_0x503b0e),yield yield __await(_0x5714ae);}}catch(_0x4255f0){_0x4f13b3={'error':_0x4255f0};}finally{try{if(!_0x446ebc&&!_0x2d73db&&(_0x411b1d=_0x1733b6[_0x404b4c(0x613)]))yield __await(_0x411b1d[_0x404b4c(0x280)](_0x1733b6));}finally{if(_0x4f13b3)throw _0x4f13b3[_0x404b4c(0x251)];}}});});}else{const _0x453fa1=generateContentParametersToMldev(this['apiClient'],_0x4c97ca);_0x426386=formatMap('{model}:streamGenerateContent?alt=sse',_0x453fa1[_0x8c473(0x1aa)]),_0x419aae=_0x453fa1['_query'],delete _0x453fa1[_0x8c473(0x1aa)],delete _0x453fa1[_0x8c473(0x5fa)];const _0x5142cd=this[_0x8c473(0x235)];return _0x1e512f=_0x5142cd['requestStream']({'path':_0x426386,'queryParams':_0x419aae,'body':JSON[_0x8c473(0x65c)](_0x453fa1),'httpMethod':_0x8c473(0x6d7),'httpOptions':(_0x107456=_0x4c97ca['config'])===null||_0x107456===void 0x0?void 0x0:_0x107456[_0x8c473(0x5c7)],'abortSignal':(_0xeb9d30=_0x4c97ca[_0x8c473(0x43b)])===null||_0xeb9d30===void 0x0?void 0x0:_0xeb9d30[_0x8c473(0x709)]}),_0x1e512f[_0x8c473(0x1f0)](function(_0x4c9b27){return __asyncGenerator(this,arguments,function*(){const _0x483ff9=a3_0x4a6d;var _0x148048,_0xd2721,_0xf02134,_0x5e758a;try{for(var _0x13c98b=!![],_0x5ed2de=__asyncValues(_0x4c9b27),_0x338e43;_0x338e43=yield __await(_0x5ed2de[_0x483ff9(0x6b2)]()),_0x148048=_0x338e43[_0x483ff9(0x424)],!_0x148048;_0x13c98b=!![]){_0x5e758a=_0x338e43[_0x483ff9(0x431)],_0x13c98b=![];const _0x3b5b79=_0x5e758a,_0x37a3d7=generateContentResponseFromMldev(yield __await(_0x3b5b79[_0x483ff9(0x4cf)]()),_0x4c97ca);_0x37a3d7[_0x483ff9(0x3a7)]={'headers':_0x3b5b79['headers']};const _0x55ce4a=new GenerateContentResponse();Object['assign'](_0x55ce4a,_0x37a3d7),yield yield __await(_0x55ce4a);}}catch(_0x3be6ed){_0xd2721={'error':_0x3be6ed};}finally{try{if(!_0x13c98b&&!_0x148048&&(_0xf02134=_0x5ed2de[_0x483ff9(0x613)]))yield __await(_0xf02134[_0x483ff9(0x280)](_0x5ed2de));}finally{if(_0xd2721)throw _0xd2721['error'];}}});});}}async[a3_0x402819(0x577)](_0x2dfb09){const _0x5271f8=a3_0x402819;var _0x3e0a7e,_0x5d81ec,_0x27730b,_0x35fb27;let _0x317143,_0x31caec='',_0x45486c={};if(this[_0x5271f8(0x235)][_0x5271f8(0x268)]()){const _0xc3a4b7=embedContentParametersToVertex(this['apiClient'],_0x2dfb09);return _0x31caec=formatMap('{model}:predict',_0xc3a4b7[_0x5271f8(0x1aa)]),_0x45486c=_0xc3a4b7['_query'],delete _0xc3a4b7[_0x5271f8(0x1aa)],delete _0xc3a4b7['_query'],_0x317143=this[_0x5271f8(0x235)][_0x5271f8(0x239)]({'path':_0x31caec,'queryParams':_0x45486c,'body':JSON[_0x5271f8(0x65c)](_0xc3a4b7),'httpMethod':_0x5271f8(0x6d7),'httpOptions':(_0x3e0a7e=_0x2dfb09[_0x5271f8(0x43b)])===null||_0x3e0a7e===void 0x0?void 0x0:_0x3e0a7e[_0x5271f8(0x5c7)],'abortSignal':(_0x5d81ec=_0x2dfb09[_0x5271f8(0x43b)])===null||_0x5d81ec===void 0x0?void 0x0:_0x5d81ec['abortSignal']})['then'](_0x18e4da=>{const _0x4bf769=_0x5271f8;return _0x18e4da[_0x4bf769(0x4cf)]()[_0x4bf769(0x1f0)](_0x58bb30=>{const _0x52b01d=_0x4bf769,_0x55ed5c=_0x58bb30;return _0x55ed5c[_0x52b01d(0x3a7)]={'headers':_0x18e4da[_0x52b01d(0x70b)]},_0x55ed5c;});}),_0x317143[_0x5271f8(0x1f0)](_0x1df248=>{const _0x3f699d=_0x5271f8,_0x3e1d95=embedContentResponseFromVertex(_0x1df248),_0x3c1c39=new EmbedContentResponse();return Object[_0x3f699d(0x48a)](_0x3c1c39,_0x3e1d95),_0x3c1c39;});}else{const _0x52ec8f=embedContentParametersToMldev(this[_0x5271f8(0x235)],_0x2dfb09);return _0x31caec=formatMap(_0x5271f8(0x48b),_0x52ec8f['_url']),_0x45486c=_0x52ec8f[_0x5271f8(0x5fa)],delete _0x52ec8f['_url'],delete _0x52ec8f[_0x5271f8(0x5fa)],_0x317143=this[_0x5271f8(0x235)]['request']({'path':_0x31caec,'queryParams':_0x45486c,'body':JSON[_0x5271f8(0x65c)](_0x52ec8f),'httpMethod':_0x5271f8(0x6d7),'httpOptions':(_0x27730b=_0x2dfb09['config'])===null||_0x27730b===void 0x0?void 0x0:_0x27730b[_0x5271f8(0x5c7)],'abortSignal':(_0x35fb27=_0x2dfb09[_0x5271f8(0x43b)])===null||_0x35fb27===void 0x0?void 0x0:_0x35fb27[_0x5271f8(0x709)]})[_0x5271f8(0x1f0)](_0x459419=>{const _0xde9eb=_0x5271f8;return _0x459419[_0xde9eb(0x4cf)]()[_0xde9eb(0x1f0)](_0x2d90a4=>{const _0x23a0ca=_0xde9eb,_0x303d10=_0x2d90a4;return _0x303d10[_0x23a0ca(0x3a7)]={'headers':_0x459419[_0x23a0ca(0x70b)]},_0x303d10;});}),_0x317143['then'](_0x223210=>{const _0x767e28=_0x5271f8,_0xcea6c3=embedContentResponseFromMldev(_0x223210),_0x170a93=new EmbedContentResponse();return Object[_0x767e28(0x48a)](_0x170a93,_0xcea6c3),_0x170a93;});}}async[a3_0x402819(0x338)](_0xdcd2a6){const _0x38f8e2=a3_0x402819;var _0x5f03bf,_0x4bad15,_0x2b54b5,_0x5a0803;let _0x198465,_0x215105='',_0x35a7d5={};if(this[_0x38f8e2(0x235)][_0x38f8e2(0x268)]()){const _0x383fb3=generateImagesParametersToVertex(this[_0x38f8e2(0x235)],_0xdcd2a6);return _0x215105=formatMap('{model}:predict',_0x383fb3[_0x38f8e2(0x1aa)]),_0x35a7d5=_0x383fb3['_query'],delete _0x383fb3[_0x38f8e2(0x1aa)],delete _0x383fb3[_0x38f8e2(0x5fa)],_0x198465=this[_0x38f8e2(0x235)][_0x38f8e2(0x239)]({'path':_0x215105,'queryParams':_0x35a7d5,'body':JSON[_0x38f8e2(0x65c)](_0x383fb3),'httpMethod':_0x38f8e2(0x6d7),'httpOptions':(_0x5f03bf=_0xdcd2a6[_0x38f8e2(0x43b)])===null||_0x5f03bf===void 0x0?void 0x0:_0x5f03bf[_0x38f8e2(0x5c7)],'abortSignal':(_0x4bad15=_0xdcd2a6['config'])===null||_0x4bad15===void 0x0?void 0x0:_0x4bad15[_0x38f8e2(0x709)]})[_0x38f8e2(0x1f0)](_0x4a85dc=>{const _0x62875b=_0x38f8e2;return _0x4a85dc['json']()[_0x62875b(0x1f0)](_0x587276=>{const _0x4fa304=_0x62875b,_0x564c67=_0x587276;return _0x564c67[_0x4fa304(0x3a7)]={'headers':_0x4a85dc[_0x4fa304(0x70b)]},_0x564c67;});}),_0x198465[_0x38f8e2(0x1f0)](_0x32675f=>{const _0x2f582a=_0x38f8e2,_0x5503dc=generateImagesResponseFromVertex(_0x32675f),_0xfd0119=new GenerateImagesResponse();return Object[_0x2f582a(0x48a)](_0xfd0119,_0x5503dc),_0xfd0119;});}else{const _0x2db13f=generateImagesParametersToMldev(this[_0x38f8e2(0x235)],_0xdcd2a6);return _0x215105=formatMap('{model}:predict',_0x2db13f[_0x38f8e2(0x1aa)]),_0x35a7d5=_0x2db13f[_0x38f8e2(0x5fa)],delete _0x2db13f[_0x38f8e2(0x1aa)],delete _0x2db13f['_query'],_0x198465=this[_0x38f8e2(0x235)][_0x38f8e2(0x239)]({'path':_0x215105,'queryParams':_0x35a7d5,'body':JSON['stringify'](_0x2db13f),'httpMethod':'POST','httpOptions':(_0x2b54b5=_0xdcd2a6[_0x38f8e2(0x43b)])===null||_0x2b54b5===void 0x0?void 0x0:_0x2b54b5[_0x38f8e2(0x5c7)],'abortSignal':(_0x5a0803=_0xdcd2a6[_0x38f8e2(0x43b)])===null||_0x5a0803===void 0x0?void 0x0:_0x5a0803[_0x38f8e2(0x709)]})[_0x38f8e2(0x1f0)](_0xebbf4c=>{const _0x132ab0=_0x38f8e2;return _0xebbf4c[_0x132ab0(0x4cf)]()[_0x132ab0(0x1f0)](_0x5a2bf1=>{const _0x20d8e0=_0x132ab0,_0x35ae7d=_0x5a2bf1;return _0x35ae7d[_0x20d8e0(0x3a7)]={'headers':_0xebbf4c[_0x20d8e0(0x70b)]},_0x35ae7d;});}),_0x198465[_0x38f8e2(0x1f0)](_0x4c388a=>{const _0x32ba6f=_0x38f8e2,_0x1c5b59=generateImagesResponseFromMldev(_0x4c388a),_0x1c2aec=new GenerateImagesResponse();return Object[_0x32ba6f(0x48a)](_0x1c2aec,_0x1c5b59),_0x1c2aec;});}}async['editImageInternal'](_0x304bc1){const _0x23c92c=a3_0x402819;var _0x13c658,_0xe188d6;let _0xa8c2c0,_0x3f7862='',_0x2e65bd={};if(this[_0x23c92c(0x235)][_0x23c92c(0x268)]()){const _0x5af9f6=editImageParametersInternalToVertex(this[_0x23c92c(0x235)],_0x304bc1);return _0x3f7862=formatMap(_0x23c92c(0x713),_0x5af9f6[_0x23c92c(0x1aa)]),_0x2e65bd=_0x5af9f6[_0x23c92c(0x5fa)],delete _0x5af9f6[_0x23c92c(0x1aa)],delete _0x5af9f6['_query'],_0xa8c2c0=this[_0x23c92c(0x235)][_0x23c92c(0x239)]({'path':_0x3f7862,'queryParams':_0x2e65bd,'body':JSON[_0x23c92c(0x65c)](_0x5af9f6),'httpMethod':_0x23c92c(0x6d7),'httpOptions':(_0x13c658=_0x304bc1[_0x23c92c(0x43b)])===null||_0x13c658===void 0x0?void 0x0:_0x13c658[_0x23c92c(0x5c7)],'abortSignal':(_0xe188d6=_0x304bc1[_0x23c92c(0x43b)])===null||_0xe188d6===void 0x0?void 0x0:_0xe188d6[_0x23c92c(0x709)]})[_0x23c92c(0x1f0)](_0x5b3e7a=>{const _0x2841ec=_0x23c92c;return _0x5b3e7a[_0x2841ec(0x4cf)]()[_0x2841ec(0x1f0)](_0x3e5ec8=>{const _0x50fa0c=_0x2841ec,_0x1052e9=_0x3e5ec8;return _0x1052e9[_0x50fa0c(0x3a7)]={'headers':_0x5b3e7a['headers']},_0x1052e9;});}),_0xa8c2c0[_0x23c92c(0x1f0)](_0x5d6e82=>{const _0x448f7b=_0x23c92c,_0x4b3fab=editImageResponseFromVertex(_0x5d6e82),_0x449efc=new EditImageResponse();return Object[_0x448f7b(0x48a)](_0x449efc,_0x4b3fab),_0x449efc;});}else throw new Error(_0x23c92c(0x36a));}async[a3_0x402819(0x24c)](_0x4db466){const _0x228d2e=a3_0x402819;var _0x3c542c,_0x1fa1f4;let _0x571bc4,_0x442531='',_0x361af6={};if(this[_0x228d2e(0x235)][_0x228d2e(0x268)]()){const _0x22a090=upscaleImageAPIParametersInternalToVertex(this[_0x228d2e(0x235)],_0x4db466);return _0x442531=formatMap(_0x228d2e(0x713),_0x22a090['_url']),_0x361af6=_0x22a090[_0x228d2e(0x5fa)],delete _0x22a090[_0x228d2e(0x1aa)],delete _0x22a090['_query'],_0x571bc4=this[_0x228d2e(0x235)][_0x228d2e(0x239)]({'path':_0x442531,'queryParams':_0x361af6,'body':JSON[_0x228d2e(0x65c)](_0x22a090),'httpMethod':_0x228d2e(0x6d7),'httpOptions':(_0x3c542c=_0x4db466[_0x228d2e(0x43b)])===null||_0x3c542c===void 0x0?void 0x0:_0x3c542c['httpOptions'],'abortSignal':(_0x1fa1f4=_0x4db466['config'])===null||_0x1fa1f4===void 0x0?void 0x0:_0x1fa1f4[_0x228d2e(0x709)]})[_0x228d2e(0x1f0)](_0x2ced58=>{const _0x296f57=_0x228d2e;return _0x2ced58[_0x296f57(0x4cf)]()[_0x296f57(0x1f0)](_0x42ff98=>{const _0x51549b=_0x296f57,_0x228ad0=_0x42ff98;return _0x228ad0['sdkHttpResponse']={'headers':_0x2ced58[_0x51549b(0x70b)]},_0x228ad0;});}),_0x571bc4[_0x228d2e(0x1f0)](_0x3c3450=>{const _0x4faad2=upscaleImageResponseFromVertex(_0x3c3450),_0x302563=new UpscaleImageResponse();return Object['assign'](_0x302563,_0x4faad2),_0x302563;});}else throw new Error('This\x20method\x20is\x20only\x20supported\x20by\x20the\x20Vertex\x20AI.');}async[a3_0x402819(0x1a6)](_0x587d4b){const _0x53ffdd=a3_0x402819;var _0x406b01,_0x25d8b4;let _0x50f8a5,_0x2777db='',_0xee006f={};if(this[_0x53ffdd(0x235)][_0x53ffdd(0x268)]()){const _0xa01ba=recontextImageParametersToVertex(this['apiClient'],_0x587d4b);return _0x2777db=formatMap(_0x53ffdd(0x713),_0xa01ba[_0x53ffdd(0x1aa)]),_0xee006f=_0xa01ba[_0x53ffdd(0x5fa)],delete _0xa01ba['_url'],delete _0xa01ba['_query'],_0x50f8a5=this[_0x53ffdd(0x235)][_0x53ffdd(0x239)]({'path':_0x2777db,'queryParams':_0xee006f,'body':JSON[_0x53ffdd(0x65c)](_0xa01ba),'httpMethod':'POST','httpOptions':(_0x406b01=_0x587d4b[_0x53ffdd(0x43b)])===null||_0x406b01===void 0x0?void 0x0:_0x406b01[_0x53ffdd(0x5c7)],'abortSignal':(_0x25d8b4=_0x587d4b['config'])===null||_0x25d8b4===void 0x0?void 0x0:_0x25d8b4['abortSignal']})['then'](_0x526455=>{const _0x386c1f=_0x53ffdd;return _0x526455[_0x386c1f(0x4cf)]();}),_0x50f8a5[_0x53ffdd(0x1f0)](_0x32bb0e=>{const _0x4929a2=recontextImageResponseFromVertex(_0x32bb0e),_0x573138=new RecontextImageResponse();return Object['assign'](_0x573138,_0x4929a2),_0x573138;});}else throw new Error(_0x53ffdd(0x36a));}async[a3_0x402819(0x31b)](_0xe4f29a){const _0x3902a8=a3_0x402819;var _0x323f7b,_0x2fa6fd;let _0x50b114,_0x582d79='',_0x3e5636={};if(this[_0x3902a8(0x235)][_0x3902a8(0x268)]()){const _0x2a2a31=segmentImageParametersToVertex(this[_0x3902a8(0x235)],_0xe4f29a);return _0x582d79=formatMap(_0x3902a8(0x713),_0x2a2a31[_0x3902a8(0x1aa)]),_0x3e5636=_0x2a2a31[_0x3902a8(0x5fa)],delete _0x2a2a31[_0x3902a8(0x1aa)],delete _0x2a2a31[_0x3902a8(0x5fa)],_0x50b114=this[_0x3902a8(0x235)][_0x3902a8(0x239)]({'path':_0x582d79,'queryParams':_0x3e5636,'body':JSON[_0x3902a8(0x65c)](_0x2a2a31),'httpMethod':_0x3902a8(0x6d7),'httpOptions':(_0x323f7b=_0xe4f29a[_0x3902a8(0x43b)])===null||_0x323f7b===void 0x0?void 0x0:_0x323f7b['httpOptions'],'abortSignal':(_0x2fa6fd=_0xe4f29a[_0x3902a8(0x43b)])===null||_0x2fa6fd===void 0x0?void 0x0:_0x2fa6fd[_0x3902a8(0x709)]})[_0x3902a8(0x1f0)](_0x16b0fd=>{return _0x16b0fd['json']();}),_0x50b114[_0x3902a8(0x1f0)](_0x244560=>{const _0x2c7d44=_0x3902a8,_0x3b6439=segmentImageResponseFromVertex(_0x244560),_0x386717=new SegmentImageResponse();return Object[_0x2c7d44(0x48a)](_0x386717,_0x3b6439),_0x386717;});}else throw new Error(_0x3902a8(0x36a));}async[a3_0x402819(0x42b)](_0x4a3246){const _0x7357ea=a3_0x402819;var _0x1d7d05,_0x3e0665,_0x16b984,_0xa3abbf;let _0x2f2933,_0x2943f9='',_0x220eca={};if(this[_0x7357ea(0x235)][_0x7357ea(0x268)]()){const _0x509bf9=getModelParametersToVertex(this['apiClient'],_0x4a3246);return _0x2943f9=formatMap('{name}',_0x509bf9[_0x7357ea(0x1aa)]),_0x220eca=_0x509bf9[_0x7357ea(0x5fa)],delete _0x509bf9[_0x7357ea(0x1aa)],delete _0x509bf9[_0x7357ea(0x5fa)],_0x2f2933=this['apiClient'][_0x7357ea(0x239)]({'path':_0x2943f9,'queryParams':_0x220eca,'body':JSON[_0x7357ea(0x65c)](_0x509bf9),'httpMethod':'GET','httpOptions':(_0x1d7d05=_0x4a3246[_0x7357ea(0x43b)])===null||_0x1d7d05===void 0x0?void 0x0:_0x1d7d05[_0x7357ea(0x5c7)],'abortSignal':(_0x3e0665=_0x4a3246[_0x7357ea(0x43b)])===null||_0x3e0665===void 0x0?void 0x0:_0x3e0665[_0x7357ea(0x709)]})['then'](_0x28b1a5=>{const _0x3c9fe9=_0x7357ea;return _0x28b1a5[_0x3c9fe9(0x4cf)]();}),_0x2f2933[_0x7357ea(0x1f0)](_0x27f863=>{const _0x28859b=modelFromVertex(_0x27f863);return _0x28859b;});}else{const _0xfca017=getModelParametersToMldev(this['apiClient'],_0x4a3246);return _0x2943f9=formatMap('{name}',_0xfca017[_0x7357ea(0x1aa)]),_0x220eca=_0xfca017['_query'],delete _0xfca017[_0x7357ea(0x1aa)],delete _0xfca017[_0x7357ea(0x5fa)],_0x2f2933=this[_0x7357ea(0x235)][_0x7357ea(0x239)]({'path':_0x2943f9,'queryParams':_0x220eca,'body':JSON[_0x7357ea(0x65c)](_0xfca017),'httpMethod':_0x7357ea(0x500),'httpOptions':(_0x16b984=_0x4a3246[_0x7357ea(0x43b)])===null||_0x16b984===void 0x0?void 0x0:_0x16b984[_0x7357ea(0x5c7)],'abortSignal':(_0xa3abbf=_0x4a3246[_0x7357ea(0x43b)])===null||_0xa3abbf===void 0x0?void 0x0:_0xa3abbf[_0x7357ea(0x709)]})[_0x7357ea(0x1f0)](_0x4b0336=>{const _0x530d17=_0x7357ea;return _0x4b0336[_0x530d17(0x4cf)]();}),_0x2f2933[_0x7357ea(0x1f0)](_0x317b30=>{const _0x2a8b79=modelFromMldev(_0x317b30);return _0x2a8b79;});}}async['listInternal'](_0xbdb69a){const _0x34e44b=a3_0x402819;var _0x2ddcee,_0x19c910,_0x42d3b0,_0x97132e;let _0x19c7fd,_0x6c9b91='',_0x286b7d={};if(this[_0x34e44b(0x235)]['isVertexAI']()){const _0x1f3c5c=listModelsParametersToVertex(this[_0x34e44b(0x235)],_0xbdb69a);return _0x6c9b91=formatMap(_0x34e44b(0x5d4),_0x1f3c5c[_0x34e44b(0x1aa)]),_0x286b7d=_0x1f3c5c[_0x34e44b(0x5fa)],delete _0x1f3c5c[_0x34e44b(0x1aa)],delete _0x1f3c5c[_0x34e44b(0x5fa)],_0x19c7fd=this['apiClient'][_0x34e44b(0x239)]({'path':_0x6c9b91,'queryParams':_0x286b7d,'body':JSON[_0x34e44b(0x65c)](_0x1f3c5c),'httpMethod':_0x34e44b(0x500),'httpOptions':(_0x2ddcee=_0xbdb69a[_0x34e44b(0x43b)])===null||_0x2ddcee===void 0x0?void 0x0:_0x2ddcee[_0x34e44b(0x5c7)],'abortSignal':(_0x19c910=_0xbdb69a['config'])===null||_0x19c910===void 0x0?void 0x0:_0x19c910[_0x34e44b(0x709)]})['then'](_0x11271f=>{const _0x2a7b0d=_0x34e44b;return _0x11271f[_0x2a7b0d(0x4cf)]()[_0x2a7b0d(0x1f0)](_0x2261b5=>{const _0x6a96ac=_0x2a7b0d,_0x48d9f8=_0x2261b5;return _0x48d9f8['sdkHttpResponse']={'headers':_0x11271f[_0x6a96ac(0x70b)]},_0x48d9f8;});}),_0x19c7fd[_0x34e44b(0x1f0)](_0x4095ac=>{const _0x1def8c=listModelsResponseFromVertex(_0x4095ac),_0x218aaf=new ListModelsResponse();return Object['assign'](_0x218aaf,_0x1def8c),_0x218aaf;});}else{const _0x3c786f=listModelsParametersToMldev(this['apiClient'],_0xbdb69a);return _0x6c9b91=formatMap(_0x34e44b(0x5d4),_0x3c786f[_0x34e44b(0x1aa)]),_0x286b7d=_0x3c786f[_0x34e44b(0x5fa)],delete _0x3c786f[_0x34e44b(0x1aa)],delete _0x3c786f[_0x34e44b(0x5fa)],_0x19c7fd=this[_0x34e44b(0x235)][_0x34e44b(0x239)]({'path':_0x6c9b91,'queryParams':_0x286b7d,'body':JSON['stringify'](_0x3c786f),'httpMethod':_0x34e44b(0x500),'httpOptions':(_0x42d3b0=_0xbdb69a[_0x34e44b(0x43b)])===null||_0x42d3b0===void 0x0?void 0x0:_0x42d3b0[_0x34e44b(0x5c7)],'abortSignal':(_0x97132e=_0xbdb69a[_0x34e44b(0x43b)])===null||_0x97132e===void 0x0?void 0x0:_0x97132e[_0x34e44b(0x709)]})['then'](_0x422ce4=>{const _0xf47e81=_0x34e44b;return _0x422ce4[_0xf47e81(0x4cf)]()['then'](_0x45b988=>{const _0xcc4f7a=_0xf47e81,_0x5d7b55=_0x45b988;return _0x5d7b55['sdkHttpResponse']={'headers':_0x422ce4[_0xcc4f7a(0x70b)]},_0x5d7b55;});}),_0x19c7fd[_0x34e44b(0x1f0)](_0x2cce74=>{const _0x459de6=_0x34e44b,_0x1b7085=listModelsResponseFromMldev(_0x2cce74),_0x290eb8=new ListModelsResponse();return Object[_0x459de6(0x48a)](_0x290eb8,_0x1b7085),_0x290eb8;});}}async[a3_0x402819(0x282)](_0x5813f3){const _0x1be8de=a3_0x402819;var _0x5b7601,_0x134270,_0x1d12ba,_0x12c9de;let _0x2f3da3,_0x171ff4='',_0x3fba8={};if(this[_0x1be8de(0x235)][_0x1be8de(0x268)]()){const _0x39aaaa=updateModelParametersToVertex(this[_0x1be8de(0x235)],_0x5813f3);return _0x171ff4=formatMap(_0x1be8de(0x2ed),_0x39aaaa[_0x1be8de(0x1aa)]),_0x3fba8=_0x39aaaa[_0x1be8de(0x5fa)],delete _0x39aaaa[_0x1be8de(0x1aa)],delete _0x39aaaa[_0x1be8de(0x5fa)],_0x2f3da3=this['apiClient'][_0x1be8de(0x239)]({'path':_0x171ff4,'queryParams':_0x3fba8,'body':JSON[_0x1be8de(0x65c)](_0x39aaaa),'httpMethod':_0x1be8de(0x5b7),'httpOptions':(_0x5b7601=_0x5813f3['config'])===null||_0x5b7601===void 0x0?void 0x0:_0x5b7601['httpOptions'],'abortSignal':(_0x134270=_0x5813f3[_0x1be8de(0x43b)])===null||_0x134270===void 0x0?void 0x0:_0x134270[_0x1be8de(0x709)]})[_0x1be8de(0x1f0)](_0x51eb2f=>{const _0x5c3144=_0x1be8de;return _0x51eb2f[_0x5c3144(0x4cf)]();}),_0x2f3da3['then'](_0x4b2849=>{const _0x929095=modelFromVertex(_0x4b2849);return _0x929095;});}else{const _0xe3fb22=updateModelParametersToMldev(this[_0x1be8de(0x235)],_0x5813f3);return _0x171ff4=formatMap(_0x1be8de(0x687),_0xe3fb22[_0x1be8de(0x1aa)]),_0x3fba8=_0xe3fb22[_0x1be8de(0x5fa)],delete _0xe3fb22['_url'],delete _0xe3fb22['_query'],_0x2f3da3=this[_0x1be8de(0x235)][_0x1be8de(0x239)]({'path':_0x171ff4,'queryParams':_0x3fba8,'body':JSON['stringify'](_0xe3fb22),'httpMethod':_0x1be8de(0x5b7),'httpOptions':(_0x1d12ba=_0x5813f3[_0x1be8de(0x43b)])===null||_0x1d12ba===void 0x0?void 0x0:_0x1d12ba['httpOptions'],'abortSignal':(_0x12c9de=_0x5813f3[_0x1be8de(0x43b)])===null||_0x12c9de===void 0x0?void 0x0:_0x12c9de[_0x1be8de(0x709)]})[_0x1be8de(0x1f0)](_0x3fbfaa=>{const _0x5a7f6a=_0x1be8de;return _0x3fbfaa[_0x5a7f6a(0x4cf)]();}),_0x2f3da3['then'](_0x58122e=>{const _0xa7f69d=modelFromMldev(_0x58122e);return _0xa7f69d;});}}async[a3_0x402819(0x4a4)](_0x417188){const _0x4c5eef=a3_0x402819;var _0x52f5bb,_0x5e9a9c,_0x4cd4df,_0x452bcf;let _0x13ccd0,_0x4da16f='',_0x346a7f={};if(this[_0x4c5eef(0x235)][_0x4c5eef(0x268)]()){const _0x180403=deleteModelParametersToVertex(this[_0x4c5eef(0x235)],_0x417188);return _0x4da16f=formatMap(_0x4c5eef(0x687),_0x180403[_0x4c5eef(0x1aa)]),_0x346a7f=_0x180403[_0x4c5eef(0x5fa)],delete _0x180403[_0x4c5eef(0x1aa)],delete _0x180403[_0x4c5eef(0x5fa)],_0x13ccd0=this[_0x4c5eef(0x235)][_0x4c5eef(0x239)]({'path':_0x4da16f,'queryParams':_0x346a7f,'body':JSON[_0x4c5eef(0x65c)](_0x180403),'httpMethod':_0x4c5eef(0x71d),'httpOptions':(_0x52f5bb=_0x417188['config'])===null||_0x52f5bb===void 0x0?void 0x0:_0x52f5bb['httpOptions'],'abortSignal':(_0x5e9a9c=_0x417188[_0x4c5eef(0x43b)])===null||_0x5e9a9c===void 0x0?void 0x0:_0x5e9a9c[_0x4c5eef(0x709)]})[_0x4c5eef(0x1f0)](_0x17c99b=>{const _0x95db30=_0x4c5eef;return _0x17c99b[_0x95db30(0x4cf)]()['then'](_0x568fc5=>{const _0x2d9f6f=_0x95db30,_0x102383=_0x568fc5;return _0x102383[_0x2d9f6f(0x3a7)]={'headers':_0x17c99b['headers']},_0x102383;});}),_0x13ccd0[_0x4c5eef(0x1f0)](_0x5ac7f4=>{const _0x59530a=_0x4c5eef,_0x28bef0=deleteModelResponseFromVertex(_0x5ac7f4),_0x327bfc=new DeleteModelResponse();return Object[_0x59530a(0x48a)](_0x327bfc,_0x28bef0),_0x327bfc;});}else{const _0x50b5e0=deleteModelParametersToMldev(this[_0x4c5eef(0x235)],_0x417188);return _0x4da16f=formatMap(_0x4c5eef(0x687),_0x50b5e0['_url']),_0x346a7f=_0x50b5e0[_0x4c5eef(0x5fa)],delete _0x50b5e0[_0x4c5eef(0x1aa)],delete _0x50b5e0['_query'],_0x13ccd0=this['apiClient']['request']({'path':_0x4da16f,'queryParams':_0x346a7f,'body':JSON[_0x4c5eef(0x65c)](_0x50b5e0),'httpMethod':_0x4c5eef(0x71d),'httpOptions':(_0x4cd4df=_0x417188[_0x4c5eef(0x43b)])===null||_0x4cd4df===void 0x0?void 0x0:_0x4cd4df['httpOptions'],'abortSignal':(_0x452bcf=_0x417188[_0x4c5eef(0x43b)])===null||_0x452bcf===void 0x0?void 0x0:_0x452bcf[_0x4c5eef(0x709)]})[_0x4c5eef(0x1f0)](_0x275d90=>{const _0x32d4b8=_0x4c5eef;return _0x275d90[_0x32d4b8(0x4cf)]()['then'](_0x23ebba=>{const _0x307d5a=_0x32d4b8,_0x412205=_0x23ebba;return _0x412205['sdkHttpResponse']={'headers':_0x275d90[_0x307d5a(0x70b)]},_0x412205;});}),_0x13ccd0['then'](_0x4d5b25=>{const _0x30f4f3=_0x4c5eef,_0xbfbccf=deleteModelResponseFromMldev(_0x4d5b25),_0x1ce09e=new DeleteModelResponse();return Object[_0x30f4f3(0x48a)](_0x1ce09e,_0xbfbccf),_0x1ce09e;});}}async[a3_0x402819(0x5b2)](_0x5df35b){const _0x4992a0=a3_0x402819;var _0x5e89bb,_0x5f2a91,_0x43a30e,_0x3be2d7;let _0x1f6c8f,_0x3fbdd7='',_0x47a575={};if(this[_0x4992a0(0x235)][_0x4992a0(0x268)]()){const _0x47fcff=countTokensParametersToVertex(this[_0x4992a0(0x235)],_0x5df35b);return _0x3fbdd7=formatMap(_0x4992a0(0x368),_0x47fcff[_0x4992a0(0x1aa)]),_0x47a575=_0x47fcff['_query'],delete _0x47fcff[_0x4992a0(0x1aa)],delete _0x47fcff[_0x4992a0(0x5fa)],_0x1f6c8f=this[_0x4992a0(0x235)][_0x4992a0(0x239)]({'path':_0x3fbdd7,'queryParams':_0x47a575,'body':JSON[_0x4992a0(0x65c)](_0x47fcff),'httpMethod':'POST','httpOptions':(_0x5e89bb=_0x5df35b[_0x4992a0(0x43b)])===null||_0x5e89bb===void 0x0?void 0x0:_0x5e89bb[_0x4992a0(0x5c7)],'abortSignal':(_0x5f2a91=_0x5df35b[_0x4992a0(0x43b)])===null||_0x5f2a91===void 0x0?void 0x0:_0x5f2a91[_0x4992a0(0x709)]})[_0x4992a0(0x1f0)](_0x19dc68=>{const _0x4346b8=_0x4992a0;return _0x19dc68[_0x4346b8(0x4cf)]()[_0x4346b8(0x1f0)](_0x20fb9f=>{const _0x2e2be9=_0x4346b8,_0x5f1f20=_0x20fb9f;return _0x5f1f20[_0x2e2be9(0x3a7)]={'headers':_0x19dc68['headers']},_0x5f1f20;});}),_0x1f6c8f['then'](_0x55b0f1=>{const _0x9d87c1=_0x4992a0,_0x315a9b=countTokensResponseFromVertex(_0x55b0f1),_0x155035=new CountTokensResponse();return Object[_0x9d87c1(0x48a)](_0x155035,_0x315a9b),_0x155035;});}else{const _0x4f1f70=countTokensParametersToMldev(this[_0x4992a0(0x235)],_0x5df35b);return _0x3fbdd7=formatMap(_0x4992a0(0x368),_0x4f1f70[_0x4992a0(0x1aa)]),_0x47a575=_0x4f1f70[_0x4992a0(0x5fa)],delete _0x4f1f70[_0x4992a0(0x1aa)],delete _0x4f1f70['_query'],_0x1f6c8f=this[_0x4992a0(0x235)][_0x4992a0(0x239)]({'path':_0x3fbdd7,'queryParams':_0x47a575,'body':JSON[_0x4992a0(0x65c)](_0x4f1f70),'httpMethod':_0x4992a0(0x6d7),'httpOptions':(_0x43a30e=_0x5df35b[_0x4992a0(0x43b)])===null||_0x43a30e===void 0x0?void 0x0:_0x43a30e[_0x4992a0(0x5c7)],'abortSignal':(_0x3be2d7=_0x5df35b[_0x4992a0(0x43b)])===null||_0x3be2d7===void 0x0?void 0x0:_0x3be2d7[_0x4992a0(0x709)]})[_0x4992a0(0x1f0)](_0x4ff566=>{const _0x131e36=_0x4992a0;return _0x4ff566[_0x131e36(0x4cf)]()[_0x131e36(0x1f0)](_0x386241=>{const _0x2fdc86=_0x131e36,_0x3449e9=_0x386241;return _0x3449e9[_0x2fdc86(0x3a7)]={'headers':_0x4ff566[_0x2fdc86(0x70b)]},_0x3449e9;});}),_0x1f6c8f['then'](_0x387f1e=>{const _0xdd4211=_0x4992a0,_0x2270ad=countTokensResponseFromMldev(_0x387f1e),_0x1a7163=new CountTokensResponse();return Object[_0xdd4211(0x48a)](_0x1a7163,_0x2270ad),_0x1a7163;});}}async[a3_0x402819(0x4f1)](_0x2ece24){const _0x67689a=a3_0x402819;var _0x44e66c,_0x288a09;let _0x4937c5,_0xf24719='',_0x100a91={};if(this[_0x67689a(0x235)][_0x67689a(0x268)]()){const _0x5d0942=computeTokensParametersToVertex(this[_0x67689a(0x235)],_0x2ece24);return _0xf24719=formatMap('{model}:computeTokens',_0x5d0942[_0x67689a(0x1aa)]),_0x100a91=_0x5d0942[_0x67689a(0x5fa)],delete _0x5d0942[_0x67689a(0x1aa)],delete _0x5d0942[_0x67689a(0x5fa)],_0x4937c5=this[_0x67689a(0x235)][_0x67689a(0x239)]({'path':_0xf24719,'queryParams':_0x100a91,'body':JSON['stringify'](_0x5d0942),'httpMethod':_0x67689a(0x6d7),'httpOptions':(_0x44e66c=_0x2ece24[_0x67689a(0x43b)])===null||_0x44e66c===void 0x0?void 0x0:_0x44e66c[_0x67689a(0x5c7)],'abortSignal':(_0x288a09=_0x2ece24[_0x67689a(0x43b)])===null||_0x288a09===void 0x0?void 0x0:_0x288a09[_0x67689a(0x709)]})[_0x67689a(0x1f0)](_0x542349=>{const _0x2ac88b=_0x67689a;return _0x542349[_0x2ac88b(0x4cf)]()[_0x2ac88b(0x1f0)](_0x596d1f=>{const _0x286664=_0x2ac88b,_0x4ae22c=_0x596d1f;return _0x4ae22c[_0x286664(0x3a7)]={'headers':_0x542349[_0x286664(0x70b)]},_0x4ae22c;});}),_0x4937c5['then'](_0x4b3090=>{const _0x455ff4=_0x67689a,_0x4f6e12=computeTokensResponseFromVertex(_0x4b3090),_0x57b9c2=new ComputeTokensResponse();return Object[_0x455ff4(0x48a)](_0x57b9c2,_0x4f6e12),_0x57b9c2;});}else throw new Error(_0x67689a(0x36a));}async[a3_0x402819(0x1e7)](_0x4b4911){const _0x44f803=a3_0x402819;var _0x56afd3,_0x2b5279,_0x19acd7,_0x6429f2;let _0x430b74,_0x1194af='',_0x3ddecd={};if(this['apiClient'][_0x44f803(0x268)]()){const _0xc80ebb=generateVideosParametersToVertex(this[_0x44f803(0x235)],_0x4b4911);return _0x1194af=formatMap(_0x44f803(0x2c8),_0xc80ebb[_0x44f803(0x1aa)]),_0x3ddecd=_0xc80ebb[_0x44f803(0x5fa)],delete _0xc80ebb['_url'],delete _0xc80ebb[_0x44f803(0x5fa)],_0x430b74=this[_0x44f803(0x235)][_0x44f803(0x239)]({'path':_0x1194af,'queryParams':_0x3ddecd,'body':JSON[_0x44f803(0x65c)](_0xc80ebb),'httpMethod':_0x44f803(0x6d7),'httpOptions':(_0x56afd3=_0x4b4911['config'])===null||_0x56afd3===void 0x0?void 0x0:_0x56afd3[_0x44f803(0x5c7)],'abortSignal':(_0x2b5279=_0x4b4911[_0x44f803(0x43b)])===null||_0x2b5279===void 0x0?void 0x0:_0x2b5279['abortSignal']})[_0x44f803(0x1f0)](_0x4802f2=>{return _0x4802f2['json']();}),_0x430b74[_0x44f803(0x1f0)](_0x26f0e6=>{const _0x3ebd00=_0x44f803,_0x56931c=generateVideosOperationFromVertex(_0x26f0e6),_0x3cfd79=new GenerateVideosOperation();return Object[_0x3ebd00(0x48a)](_0x3cfd79,_0x56931c),_0x3cfd79;});}else{const _0x3b8d88=generateVideosParametersToMldev(this[_0x44f803(0x235)],_0x4b4911);return _0x1194af=formatMap(_0x44f803(0x2c8),_0x3b8d88['_url']),_0x3ddecd=_0x3b8d88[_0x44f803(0x5fa)],delete _0x3b8d88['_url'],delete _0x3b8d88[_0x44f803(0x5fa)],_0x430b74=this[_0x44f803(0x235)][_0x44f803(0x239)]({'path':_0x1194af,'queryParams':_0x3ddecd,'body':JSON[_0x44f803(0x65c)](_0x3b8d88),'httpMethod':'POST','httpOptions':(_0x19acd7=_0x4b4911[_0x44f803(0x43b)])===null||_0x19acd7===void 0x0?void 0x0:_0x19acd7[_0x44f803(0x5c7)],'abortSignal':(_0x6429f2=_0x4b4911[_0x44f803(0x43b)])===null||_0x6429f2===void 0x0?void 0x0:_0x6429f2[_0x44f803(0x709)]})[_0x44f803(0x1f0)](_0x255d28=>{return _0x255d28['json']();}),_0x430b74[_0x44f803(0x1f0)](_0x2aab79=>{const _0x5a2c12=generateVideosOperationFromMldev(_0x2aab79),_0x1f0fe2=new GenerateVideosOperation();return Object['assign'](_0x1f0fe2,_0x5a2c12),_0x1f0fe2;});}}}/**
122
+ * @license
123
+ * Copyright 2025 Google LLC
124
+ * SPDX-License-Identifier: Apache-2.0
125
+ */
126
+ class Operations extends BaseModule{constructor(_0xc5f1e2){super(),this['apiClient']=_0xc5f1e2;}async[a3_0x402819(0x387)](_0x49b8c5){const _0x338e4a=a3_0x402819,_0x39eed1=_0x49b8c5['operation'],_0x2a6a23=_0x49b8c5[_0x338e4a(0x43b)];if(_0x39eed1[_0x338e4a(0x3a4)]===undefined||_0x39eed1[_0x338e4a(0x3a4)]==='')throw new Error(_0x338e4a(0x46d));if(this[_0x338e4a(0x235)][_0x338e4a(0x268)]()){const _0x43299a=_0x39eed1[_0x338e4a(0x3a4)][_0x338e4a(0x51c)](_0x338e4a(0x427))[0x0];let _0x1b9887=undefined;_0x2a6a23&&'httpOptions'in _0x2a6a23&&(_0x1b9887=_0x2a6a23['httpOptions']);const _0x523454=await this[_0x338e4a(0x334)]({'operationName':_0x39eed1['name'],'resourceName':_0x43299a,'config':{'httpOptions':_0x1b9887}});return _0x39eed1[_0x338e4a(0x56c)]({'apiResponse':_0x523454,'_isVertexAI':!![]});}else{const _0x164875=await this[_0x338e4a(0x6c8)]({'operationName':_0x39eed1['name'],'config':_0x2a6a23});return _0x39eed1['_fromAPIResponse']({'apiResponse':_0x164875,'_isVertexAI':![]});}}async[a3_0x402819(0x42b)](_0x310c4a){const _0x5b29d1=a3_0x402819,_0x29efa1=_0x310c4a[_0x5b29d1(0x328)],_0x3dbc50=_0x310c4a[_0x5b29d1(0x43b)];if(_0x29efa1['name']===undefined||_0x29efa1[_0x5b29d1(0x3a4)]==='')throw new Error(_0x5b29d1(0x46d));if(this[_0x5b29d1(0x235)][_0x5b29d1(0x268)]()){const _0x204c58=_0x29efa1[_0x5b29d1(0x3a4)][_0x5b29d1(0x51c)](_0x5b29d1(0x427))[0x0];let _0x46e759=undefined;_0x3dbc50&&_0x5b29d1(0x5c7)in _0x3dbc50&&(_0x46e759=_0x3dbc50[_0x5b29d1(0x5c7)]);const _0x4587cf=await this['fetchPredictVideosOperationInternal']({'operationName':_0x29efa1[_0x5b29d1(0x3a4)],'resourceName':_0x204c58,'config':{'httpOptions':_0x46e759}});return _0x29efa1['_fromAPIResponse']({'apiResponse':_0x4587cf,'_isVertexAI':!![]});}else{const _0x26b9b1=await this[_0x5b29d1(0x6c8)]({'operationName':_0x29efa1[_0x5b29d1(0x3a4)],'config':_0x3dbc50});return _0x29efa1[_0x5b29d1(0x56c)]({'apiResponse':_0x26b9b1,'_isVertexAI':![]});}}async[a3_0x402819(0x6c8)](_0x50dabf){const _0x2ff161=a3_0x402819;var _0x57de08,_0x127e92,_0x539dae,_0x4fd4c6;let _0x3ca926,_0x32de44='',_0x27f98a={};if(this[_0x2ff161(0x235)]['isVertexAI']()){const _0x2e1a5d=getOperationParametersToVertex(_0x50dabf);return _0x32de44=formatMap(_0x2ff161(0x5bc),_0x2e1a5d['_url']),_0x27f98a=_0x2e1a5d[_0x2ff161(0x5fa)],delete _0x2e1a5d[_0x2ff161(0x1aa)],delete _0x2e1a5d[_0x2ff161(0x5fa)],_0x3ca926=this[_0x2ff161(0x235)][_0x2ff161(0x239)]({'path':_0x32de44,'queryParams':_0x27f98a,'body':JSON[_0x2ff161(0x65c)](_0x2e1a5d),'httpMethod':'GET','httpOptions':(_0x57de08=_0x50dabf[_0x2ff161(0x43b)])===null||_0x57de08===void 0x0?void 0x0:_0x57de08[_0x2ff161(0x5c7)],'abortSignal':(_0x127e92=_0x50dabf[_0x2ff161(0x43b)])===null||_0x127e92===void 0x0?void 0x0:_0x127e92[_0x2ff161(0x709)]})[_0x2ff161(0x1f0)](_0x4c4579=>{const _0x487e97=_0x2ff161;return _0x4c4579[_0x487e97(0x4cf)]();}),_0x3ca926;}else{const _0x544a5d=getOperationParametersToMldev(_0x50dabf);return _0x32de44=formatMap(_0x2ff161(0x5bc),_0x544a5d[_0x2ff161(0x1aa)]),_0x27f98a=_0x544a5d[_0x2ff161(0x5fa)],delete _0x544a5d[_0x2ff161(0x1aa)],delete _0x544a5d[_0x2ff161(0x5fa)],_0x3ca926=this[_0x2ff161(0x235)][_0x2ff161(0x239)]({'path':_0x32de44,'queryParams':_0x27f98a,'body':JSON[_0x2ff161(0x65c)](_0x544a5d),'httpMethod':'GET','httpOptions':(_0x539dae=_0x50dabf['config'])===null||_0x539dae===void 0x0?void 0x0:_0x539dae[_0x2ff161(0x5c7)],'abortSignal':(_0x4fd4c6=_0x50dabf['config'])===null||_0x4fd4c6===void 0x0?void 0x0:_0x4fd4c6['abortSignal']})['then'](_0x78af6f=>{return _0x78af6f['json']();}),_0x3ca926;}}async[a3_0x402819(0x334)](_0x14fbae){const _0x4c8a41=a3_0x402819;var _0x38a201,_0x1678a6;let _0x1af882,_0x104bba='',_0xba9129={};if(this[_0x4c8a41(0x235)][_0x4c8a41(0x268)]()){const _0x21db71=fetchPredictOperationParametersToVertex(_0x14fbae);return _0x104bba=formatMap(_0x4c8a41(0x2de),_0x21db71[_0x4c8a41(0x1aa)]),_0xba9129=_0x21db71[_0x4c8a41(0x5fa)],delete _0x21db71[_0x4c8a41(0x1aa)],delete _0x21db71[_0x4c8a41(0x5fa)],_0x1af882=this[_0x4c8a41(0x235)]['request']({'path':_0x104bba,'queryParams':_0xba9129,'body':JSON['stringify'](_0x21db71),'httpMethod':_0x4c8a41(0x6d7),'httpOptions':(_0x38a201=_0x14fbae['config'])===null||_0x38a201===void 0x0?void 0x0:_0x38a201[_0x4c8a41(0x5c7)],'abortSignal':(_0x1678a6=_0x14fbae['config'])===null||_0x1678a6===void 0x0?void 0x0:_0x1678a6[_0x4c8a41(0x709)]})[_0x4c8a41(0x1f0)](_0x28b483=>{const _0x5859a1=_0x4c8a41;return _0x28b483[_0x5859a1(0x4cf)]();}),_0x1af882;}else throw new Error(_0x4c8a41(0x36a));}}/**
127
+ * @license
128
+ * Copyright 2025 Google LLC
129
+ * SPDX-License-Identifier: Apache-2.0
130
+ */
131
+ function blobToMldev(_0x14a4c5){const _0x3fc7fb=a3_0x402819,_0x2742de={},_0x3afc4c=getValueByPath(_0x14a4c5,[_0x3fc7fb(0x5b1)]);_0x3afc4c!=null&&setValueByPath(_0x2742de,[_0x3fc7fb(0x5b1)],_0x3afc4c);if(getValueByPath(_0x14a4c5,[_0x3fc7fb(0x199)])!==undefined)throw new Error('displayName\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x326c4e=getValueByPath(_0x14a4c5,[_0x3fc7fb(0x542)]);return _0x326c4e!=null&&setValueByPath(_0x2742de,[_0x3fc7fb(0x542)],_0x326c4e),_0x2742de;}function contentToMldev(_0xee0494){const _0x5373a6=a3_0x402819,_0x2b2cdc={},_0x8417b3=getValueByPath(_0xee0494,[_0x5373a6(0x569)]);if(_0x8417b3!=null){let _0x37393c=_0x8417b3;Array['isArray'](_0x37393c)&&(_0x37393c=_0x37393c[_0x5373a6(0x6c4)](_0x5be650=>{return partToMldev(_0x5be650);})),setValueByPath(_0x2b2cdc,[_0x5373a6(0x569)],_0x37393c);}const _0x476f55=getValueByPath(_0xee0494,[_0x5373a6(0x23a)]);return _0x476f55!=null&&setValueByPath(_0x2b2cdc,[_0x5373a6(0x23a)],_0x476f55),_0x2b2cdc;}function createAuthTokenConfigToMldev(_0x3a3840,_0xeb94aa,_0x2e0ef9){const _0x4ef11b=a3_0x402819,_0x267dbd={},_0x13059d=getValueByPath(_0xeb94aa,['expireTime']);_0x2e0ef9!==undefined&&_0x13059d!=null&&setValueByPath(_0x2e0ef9,[_0x4ef11b(0x481)],_0x13059d);const _0x3d3818=getValueByPath(_0xeb94aa,['newSessionExpireTime']);_0x2e0ef9!==undefined&&_0x3d3818!=null&&setValueByPath(_0x2e0ef9,[_0x4ef11b(0x5c8)],_0x3d3818);const _0x510ae8=getValueByPath(_0xeb94aa,[_0x4ef11b(0x612)]);_0x2e0ef9!==undefined&&_0x510ae8!=null&&setValueByPath(_0x2e0ef9,[_0x4ef11b(0x612)],_0x510ae8);const _0x571d57=getValueByPath(_0xeb94aa,[_0x4ef11b(0x5e1)]);_0x2e0ef9!==undefined&&_0x571d57!=null&&setValueByPath(_0x2e0ef9,[_0x4ef11b(0x6ff)],liveConnectConstraintsToMldev(_0x3a3840,_0x571d57));const _0x93d84d=getValueByPath(_0xeb94aa,[_0x4ef11b(0x47e)]);return _0x2e0ef9!==undefined&&_0x93d84d!=null&&setValueByPath(_0x2e0ef9,[_0x4ef11b(0x2a6)],_0x93d84d),_0x267dbd;}function createAuthTokenParametersToMldev(_0x56a58c,_0x100000){const _0x4c096b=a3_0x402819,_0x4fd037={},_0x3a1e42=getValueByPath(_0x100000,[_0x4c096b(0x43b)]);return _0x3a1e42!=null&&setValueByPath(_0x4fd037,[_0x4c096b(0x43b)],createAuthTokenConfigToMldev(_0x56a58c,_0x3a1e42,_0x4fd037)),_0x4fd037;}function fileDataToMldev(_0x3877ca){const _0x253a92=a3_0x402819,_0x57cf3b={};if(getValueByPath(_0x3877ca,[_0x253a92(0x199)])!==undefined)throw new Error(_0x253a92(0x5c1));const _0x1fa3ed=getValueByPath(_0x3877ca,[_0x253a92(0x218)]);_0x1fa3ed!=null&&setValueByPath(_0x57cf3b,['fileUri'],_0x1fa3ed);const _0x653406=getValueByPath(_0x3877ca,[_0x253a92(0x542)]);return _0x653406!=null&&setValueByPath(_0x57cf3b,[_0x253a92(0x542)],_0x653406),_0x57cf3b;}function functionCallToMldev(_0x238d1e){const _0x4338ba=a3_0x402819,_0x4f4796={},_0x24821f=getValueByPath(_0x238d1e,['id']);_0x24821f!=null&&setValueByPath(_0x4f4796,['id'],_0x24821f);const _0x1710e5=getValueByPath(_0x238d1e,[_0x4338ba(0x6a1)]);_0x1710e5!=null&&setValueByPath(_0x4f4796,[_0x4338ba(0x6a1)],_0x1710e5);const _0x58ff7b=getValueByPath(_0x238d1e,[_0x4338ba(0x3a4)]);_0x58ff7b!=null&&setValueByPath(_0x4f4796,['name'],_0x58ff7b);if(getValueByPath(_0x238d1e,[_0x4338ba(0x20e)])!==undefined)throw new Error(_0x4338ba(0x1d3));if(getValueByPath(_0x238d1e,[_0x4338ba(0x269)])!==undefined)throw new Error('willContinue\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x4f4796;}function googleMapsToMldev(_0xc2736e){const _0x169048=a3_0x402819,_0x486e92={};if(getValueByPath(_0xc2736e,['authConfig'])!==undefined)throw new Error(_0x169048(0x51e));const _0x5a3503=getValueByPath(_0xc2736e,[_0x169048(0x489)]);return _0x5a3503!=null&&setValueByPath(_0x486e92,[_0x169048(0x489)],_0x5a3503),_0x486e92;}function googleSearchToMldev(_0x1d4c86){const _0x5cf2c6=a3_0x402819,_0x54f99e={};if(getValueByPath(_0x1d4c86,[_0x5cf2c6(0x22c)])!==undefined)throw new Error(_0x5cf2c6(0x28d));if(getValueByPath(_0x1d4c86,[_0x5cf2c6(0x20c)])!==undefined)throw new Error('blockingConfidence\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0xc8aa6c=getValueByPath(_0x1d4c86,['timeRangeFilter']);return _0xc8aa6c!=null&&setValueByPath(_0x54f99e,[_0x5cf2c6(0x1b3)],_0xc8aa6c),_0x54f99e;}function liveConnectConfigToMldev(_0x3827d7,_0x3f28eb){const _0x207931=a3_0x402819,_0x2d6be4={},_0x31c671=getValueByPath(_0x3827d7,[_0x207931(0x425)]);_0x3f28eb!==undefined&&_0x31c671!=null&&setValueByPath(_0x3f28eb,['setup',_0x207931(0x425)],_0x31c671);const _0x137665=getValueByPath(_0x3827d7,[_0x207931(0x597)]);_0x3f28eb!==undefined&&_0x137665!=null&&setValueByPath(_0x3f28eb,['setup','generationConfig',_0x207931(0x597)],_0x137665);const _0x4393d6=getValueByPath(_0x3827d7,[_0x207931(0x59f)]);_0x3f28eb!==undefined&&_0x4393d6!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x425),'temperature'],_0x4393d6);const _0x10b016=getValueByPath(_0x3827d7,[_0x207931(0x394)]);_0x3f28eb!==undefined&&_0x10b016!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x425),'topP'],_0x10b016);const _0x4c11b4=getValueByPath(_0x3827d7,[_0x207931(0x5ad)]);_0x3f28eb!==undefined&&_0x4c11b4!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),'generationConfig',_0x207931(0x5ad)],_0x4c11b4);const _0x3716e7=getValueByPath(_0x3827d7,[_0x207931(0x35e)]);_0x3f28eb!==undefined&&_0x3716e7!=null&&setValueByPath(_0x3f28eb,['setup',_0x207931(0x425),'maxOutputTokens'],_0x3716e7);const _0x9c1003=getValueByPath(_0x3827d7,[_0x207931(0x342)]);_0x3f28eb!==undefined&&_0x9c1003!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x425),_0x207931(0x342)],_0x9c1003);const _0x26063f=getValueByPath(_0x3827d7,[_0x207931(0x39a)]);_0x3f28eb!==undefined&&_0x26063f!=null&&setValueByPath(_0x3f28eb,['setup','generationConfig',_0x207931(0x39a)],_0x26063f);const _0x1cfd27=getValueByPath(_0x3827d7,[_0x207931(0x2dc)]);_0x3f28eb!==undefined&&_0x1cfd27!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x425),_0x207931(0x2dc)],tLiveSpeechConfig(_0x1cfd27));const _0x1869a9=getValueByPath(_0x3827d7,[_0x207931(0x3c6)]);_0x3f28eb!==undefined&&_0x1869a9!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),'generationConfig',_0x207931(0x3c6)],_0x1869a9);const _0x2fa98f=getValueByPath(_0x3827d7,['enableAffectiveDialog']);_0x3f28eb!==undefined&&_0x2fa98f!=null&&setValueByPath(_0x3f28eb,['setup',_0x207931(0x425),_0x207931(0x41d)],_0x2fa98f);const _0x24b937=getValueByPath(_0x3827d7,[_0x207931(0x415)]);_0x3f28eb!==undefined&&_0x24b937!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x415)],contentToMldev(tContent(_0x24b937)));const _0x1fb7e1=getValueByPath(_0x3827d7,[_0x207931(0x648)]);if(_0x3f28eb!==undefined&&_0x1fb7e1!=null){let _0x541422=tTools(_0x1fb7e1);Array[_0x207931(0x32b)](_0x541422)&&(_0x541422=_0x541422[_0x207931(0x6c4)](_0x2f6a13=>{return toolToMldev(tTool(_0x2f6a13));})),setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x648)],_0x541422);}const _0x4a5fd3=getValueByPath(_0x3827d7,[_0x207931(0x30d)]);_0x3f28eb!==undefined&&_0x4a5fd3!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x30d)],sessionResumptionConfigToMldev(_0x4a5fd3));const _0x37b54d=getValueByPath(_0x3827d7,[_0x207931(0x5fe)]);_0x3f28eb!==undefined&&_0x37b54d!=null&&setValueByPath(_0x3f28eb,['setup',_0x207931(0x5fe)],_0x37b54d);const _0x515539=getValueByPath(_0x3827d7,[_0x207931(0x21c)]);_0x3f28eb!==undefined&&_0x515539!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x21c)],_0x515539);const _0x4156ee=getValueByPath(_0x3827d7,[_0x207931(0x598)]);_0x3f28eb!==undefined&&_0x4156ee!=null&&setValueByPath(_0x3f28eb,['setup',_0x207931(0x598)],_0x4156ee);const _0x3b1c41=getValueByPath(_0x3827d7,[_0x207931(0x667)]);_0x3f28eb!==undefined&&_0x3b1c41!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x667)],_0x3b1c41);const _0x21f56b=getValueByPath(_0x3827d7,[_0x207931(0x325)]);_0x3f28eb!==undefined&&_0x21f56b!=null&&setValueByPath(_0x3f28eb,[_0x207931(0x1ee),_0x207931(0x325)],_0x21f56b);if(getValueByPath(_0x3827d7,['explicitVadSignal'])!==undefined)throw new Error('explicitVadSignal\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');return _0x2d6be4;}function liveConnectConstraintsToMldev(_0x141ae8,_0x20c861){const _0x5d40b9=a3_0x402819,_0x5ac9eb={},_0x23e03d=getValueByPath(_0x20c861,[_0x5d40b9(0x3f6)]);_0x23e03d!=null&&setValueByPath(_0x5ac9eb,[_0x5d40b9(0x1ee),_0x5d40b9(0x3f6)],tModel(_0x141ae8,_0x23e03d));const _0x3af279=getValueByPath(_0x20c861,[_0x5d40b9(0x43b)]);return _0x3af279!=null&&setValueByPath(_0x5ac9eb,[_0x5d40b9(0x43b)],liveConnectConfigToMldev(_0x3af279,_0x5ac9eb)),_0x5ac9eb;}function partToMldev(_0x4abc83){const _0x260989=a3_0x402819,_0xf26bde={},_0x486eaa=getValueByPath(_0x4abc83,[_0x260989(0x342)]);_0x486eaa!=null&&setValueByPath(_0xf26bde,[_0x260989(0x342)],_0x486eaa);const _0x44919c=getValueByPath(_0x4abc83,[_0x260989(0x4a6)]);_0x44919c!=null&&setValueByPath(_0xf26bde,['codeExecutionResult'],_0x44919c);const _0xf93880=getValueByPath(_0x4abc83,['executableCode']);_0xf93880!=null&&setValueByPath(_0xf26bde,['executableCode'],_0xf93880);const _0x3a9f25=getValueByPath(_0x4abc83,[_0x260989(0x2c3)]);_0x3a9f25!=null&&setValueByPath(_0xf26bde,[_0x260989(0x2c3)],fileDataToMldev(_0x3a9f25));const _0x56fcf4=getValueByPath(_0x4abc83,[_0x260989(0x45f)]);_0x56fcf4!=null&&setValueByPath(_0xf26bde,[_0x260989(0x45f)],functionCallToMldev(_0x56fcf4));const _0x465320=getValueByPath(_0x4abc83,[_0x260989(0x483)]);_0x465320!=null&&setValueByPath(_0xf26bde,[_0x260989(0x483)],_0x465320);const _0x356f3b=getValueByPath(_0x4abc83,[_0x260989(0x284)]);_0x356f3b!=null&&setValueByPath(_0xf26bde,[_0x260989(0x284)],blobToMldev(_0x356f3b));const _0x5651c9=getValueByPath(_0x4abc83,[_0x260989(0x1a9)]);_0x5651c9!=null&&setValueByPath(_0xf26bde,[_0x260989(0x1a9)],_0x5651c9);const _0x4e7de4=getValueByPath(_0x4abc83,['thought']);_0x4e7de4!=null&&setValueByPath(_0xf26bde,[_0x260989(0x56f)],_0x4e7de4);const _0x3e698c=getValueByPath(_0x4abc83,[_0x260989(0x38c)]);_0x3e698c!=null&&setValueByPath(_0xf26bde,[_0x260989(0x38c)],_0x3e698c);const _0x145f93=getValueByPath(_0x4abc83,[_0x260989(0x703)]);return _0x145f93!=null&&setValueByPath(_0xf26bde,[_0x260989(0x703)],_0x145f93),_0xf26bde;}function sessionResumptionConfigToMldev(_0x3cfbd8){const _0x2cb7f7=a3_0x402819,_0x119211={},_0x39095a=getValueByPath(_0x3cfbd8,[_0x2cb7f7(0x47f)]);_0x39095a!=null&&setValueByPath(_0x119211,[_0x2cb7f7(0x47f)],_0x39095a);if(getValueByPath(_0x3cfbd8,[_0x2cb7f7(0x446)])!==undefined)throw new Error(_0x2cb7f7(0x6f0));return _0x119211;}function toolToMldev(_0x3cb71d){const _0x3ea6c4=a3_0x402819,_0xfda034={};if(getValueByPath(_0x3cb71d,[_0x3ea6c4(0x472)])!==undefined)throw new Error(_0x3ea6c4(0x4ab));const _0x156ae6=getValueByPath(_0x3cb71d,[_0x3ea6c4(0x5bf)]);_0x156ae6!=null&&setValueByPath(_0xfda034,[_0x3ea6c4(0x5bf)],_0x156ae6);const _0x2659f6=getValueByPath(_0x3cb71d,[_0x3ea6c4(0x375)]);_0x2659f6!=null&&setValueByPath(_0xfda034,[_0x3ea6c4(0x375)],_0x2659f6);const _0x56c853=getValueByPath(_0x3cb71d,['codeExecution']);_0x56c853!=null&&setValueByPath(_0xfda034,[_0x3ea6c4(0x5e2)],_0x56c853);if(getValueByPath(_0x3cb71d,[_0x3ea6c4(0x5af)])!==undefined)throw new Error(_0x3ea6c4(0x3de));const _0x3e4634=getValueByPath(_0x3cb71d,['functionDeclarations']);if(_0x3e4634!=null){let _0x282b1f=_0x3e4634;Array[_0x3ea6c4(0x32b)](_0x282b1f)&&(_0x282b1f=_0x282b1f[_0x3ea6c4(0x6c4)](_0x528513=>{return _0x528513;})),setValueByPath(_0xfda034,[_0x3ea6c4(0x5f8)],_0x282b1f);}const _0x55dc31=getValueByPath(_0x3cb71d,[_0x3ea6c4(0x62b)]);_0x55dc31!=null&&setValueByPath(_0xfda034,[_0x3ea6c4(0x62b)],googleMapsToMldev(_0x55dc31));const _0x1a764d=getValueByPath(_0x3cb71d,[_0x3ea6c4(0x5ed)]);_0x1a764d!=null&&setValueByPath(_0xfda034,[_0x3ea6c4(0x5ed)],googleSearchToMldev(_0x1a764d));const _0x3c0b64=getValueByPath(_0x3cb71d,[_0x3ea6c4(0x3f1)]);_0x3c0b64!=null&&setValueByPath(_0xfda034,['googleSearchRetrieval'],_0x3c0b64);const _0x5f3885=getValueByPath(_0x3cb71d,['urlContext']);return _0x5f3885!=null&&setValueByPath(_0xfda034,[_0x3ea6c4(0x55e)],_0x5f3885),_0xfda034;}/**
132
+ * @license
133
+ * Copyright 2025 Google LLC
134
+ * SPDX-License-Identifier: Apache-2.0
135
+ */
136
+ function getFieldMasks(_0x3c2c68){const _0x12e16c=a3_0x402819,_0x2f87a1=[];for(const _0x1ba05d in _0x3c2c68){if(Object[_0x12e16c(0x5c4)][_0x12e16c(0x406)]['call'](_0x3c2c68,_0x1ba05d)){const _0x17deee=_0x3c2c68[_0x1ba05d];if(typeof _0x17deee===_0x12e16c(0x365)&&_0x17deee!=null&&Object[_0x12e16c(0x2ce)](_0x17deee)['length']>0x0){const _0x252766=Object[_0x12e16c(0x2ce)](_0x17deee)[_0x12e16c(0x6c4)](_0x5baa7c=>_0x1ba05d+'.'+_0x5baa7c);_0x2f87a1[_0x12e16c(0x52c)](..._0x252766);}else _0x2f87a1['push'](_0x1ba05d);}}return _0x2f87a1['join'](',');}function convertBidiSetupToTokenSetup(_0x55111d,_0x935039){const _0x458aa2=a3_0x402819;let _0x232dad=null;const _0x325614=_0x55111d[_0x458aa2(0x6ff)];if(typeof _0x325614===_0x458aa2(0x365)&&_0x325614!==null&&_0x458aa2(0x1ee)in _0x325614){const _0x152b3d=_0x325614[_0x458aa2(0x1ee)];typeof _0x152b3d===_0x458aa2(0x365)&&_0x152b3d!==null?(_0x55111d[_0x458aa2(0x6ff)]=_0x152b3d,_0x232dad=_0x152b3d):delete _0x55111d[_0x458aa2(0x6ff)];}else _0x325614!==undefined&&delete _0x55111d[_0x458aa2(0x6ff)];const _0x4083fe=_0x55111d[_0x458aa2(0x2a6)];if(_0x232dad){const _0x48d079=getFieldMasks(_0x232dad);if(Array['isArray'](_0x935039===null||_0x935039===void 0x0?void 0x0:_0x935039[_0x458aa2(0x47e)])&&(_0x935039===null||_0x935039===void 0x0?void 0x0:_0x935039['lockAdditionalFields']['length'])===0x0)_0x48d079?_0x55111d['fieldMask']=_0x48d079:delete _0x55111d['fieldMask'];else{if((_0x935039===null||_0x935039===void 0x0?void 0x0:_0x935039['lockAdditionalFields'])&&_0x935039[_0x458aa2(0x47e)][_0x458aa2(0x3e8)]>0x0&&_0x4083fe!==null&&Array['isArray'](_0x4083fe)&&_0x4083fe['length']>0x0){const _0x12d794=[_0x458aa2(0x59f),_0x458aa2(0x5ad),_0x458aa2(0x394),_0x458aa2(0x35e),_0x458aa2(0x597),'seed',_0x458aa2(0x2dc)];let _0x3ca0ae=[];_0x4083fe[_0x458aa2(0x3e8)]>0x0&&(_0x3ca0ae=_0x4083fe[_0x458aa2(0x6c4)](_0x5a39ac=>{if(_0x12d794['includes'](_0x5a39ac))return'generationConfig.'+_0x5a39ac;return _0x5a39ac;}));const _0x2b451b=[];_0x48d079&&_0x2b451b[_0x458aa2(0x52c)](_0x48d079),_0x3ca0ae[_0x458aa2(0x3e8)]>0x0&&_0x2b451b[_0x458aa2(0x52c)](..._0x3ca0ae),_0x2b451b['length']>0x0?_0x55111d[_0x458aa2(0x2a6)]=_0x2b451b[_0x458aa2(0x401)](','):delete _0x55111d[_0x458aa2(0x2a6)];}else delete _0x55111d[_0x458aa2(0x2a6)];}}else _0x4083fe!==null&&Array[_0x458aa2(0x32b)](_0x4083fe)&&_0x4083fe['length']>0x0?_0x55111d[_0x458aa2(0x2a6)]=_0x4083fe['join'](','):delete _0x55111d['fieldMask'];return _0x55111d;}class Tokens extends BaseModule{constructor(_0x589c73){super(),this['apiClient']=_0x589c73;}async[a3_0x402819(0x518)](_0x552da2){const _0x18175e=a3_0x402819;var _0x341d4e,_0x28bed9;let _0xca62db,_0x1e3261='',_0x115796={};if(this[_0x18175e(0x235)][_0x18175e(0x268)]())throw new Error(_0x18175e(0x309));else{const _0x3e6201=createAuthTokenParametersToMldev(this['apiClient'],_0x552da2);_0x1e3261=formatMap('auth_tokens',_0x3e6201[_0x18175e(0x1aa)]),_0x115796=_0x3e6201[_0x18175e(0x5fa)],delete _0x3e6201[_0x18175e(0x43b)],delete _0x3e6201['_url'],delete _0x3e6201['_query'];const _0x7e4ddc=convertBidiSetupToTokenSetup(_0x3e6201,_0x552da2[_0x18175e(0x43b)]);return _0xca62db=this[_0x18175e(0x235)][_0x18175e(0x239)]({'path':_0x1e3261,'queryParams':_0x115796,'body':JSON[_0x18175e(0x65c)](_0x7e4ddc),'httpMethod':_0x18175e(0x6d7),'httpOptions':(_0x341d4e=_0x552da2[_0x18175e(0x43b)])===null||_0x341d4e===void 0x0?void 0x0:_0x341d4e[_0x18175e(0x5c7)],'abortSignal':(_0x28bed9=_0x552da2[_0x18175e(0x43b)])===null||_0x28bed9===void 0x0?void 0x0:_0x28bed9[_0x18175e(0x709)]})[_0x18175e(0x1f0)](_0x5c67ea=>{const _0x4dd314=_0x18175e;return _0x5c67ea[_0x4dd314(0x4cf)]();}),_0xca62db[_0x18175e(0x1f0)](_0x166965=>{return _0x166965;});}}}/**
137
+ * @license
138
+ * Copyright 2025 Google LLC
139
+ * SPDX-License-Identifier: Apache-2.0
140
+ */
141
+ function deleteDocumentConfigToMldev(_0x427ad9,_0x3109f4){const _0x47bc38=a3_0x402819,_0x15f74c={},_0x1850b3=getValueByPath(_0x427ad9,['force']);return _0x3109f4!==undefined&&_0x1850b3!=null&&setValueByPath(_0x3109f4,[_0x47bc38(0x5fa),_0x47bc38(0x456)],_0x1850b3),_0x15f74c;}function deleteDocumentParametersToMldev(_0xa95762){const _0x38b7a8=a3_0x402819,_0x154374={},_0x2c2c9e=getValueByPath(_0xa95762,[_0x38b7a8(0x3a4)]);_0x2c2c9e!=null&&setValueByPath(_0x154374,[_0x38b7a8(0x1aa),_0x38b7a8(0x3a4)],_0x2c2c9e);const _0x3eeeeb=getValueByPath(_0xa95762,[_0x38b7a8(0x43b)]);return _0x3eeeeb!=null&&deleteDocumentConfigToMldev(_0x3eeeeb,_0x154374),_0x154374;}function getDocumentParametersToMldev(_0x5ab14c){const _0x3b890f=a3_0x402819,_0x27e99b={},_0x166cd7=getValueByPath(_0x5ab14c,[_0x3b890f(0x3a4)]);return _0x166cd7!=null&&setValueByPath(_0x27e99b,[_0x3b890f(0x1aa),'name'],_0x166cd7),_0x27e99b;}function listDocumentsConfigToMldev(_0x311c90,_0x5ceb2d){const _0x50c5d1=a3_0x402819,_0x2b2611={},_0x3241c7=getValueByPath(_0x311c90,[_0x50c5d1(0x1f8)]);_0x5ceb2d!==undefined&&_0x3241c7!=null&&setValueByPath(_0x5ceb2d,[_0x50c5d1(0x5fa),'pageSize'],_0x3241c7);const _0x5e16a5=getValueByPath(_0x311c90,[_0x50c5d1(0x1a4)]);return _0x5ceb2d!==undefined&&_0x5e16a5!=null&&setValueByPath(_0x5ceb2d,[_0x50c5d1(0x5fa),'pageToken'],_0x5e16a5),_0x2b2611;}function listDocumentsParametersToMldev(_0x2cbdbc){const _0x450887=a3_0x402819,_0x85037a={},_0x5ddbea=getValueByPath(_0x2cbdbc,[_0x450887(0x4c5)]);_0x5ddbea!=null&&setValueByPath(_0x85037a,[_0x450887(0x1aa),_0x450887(0x4c5)],_0x5ddbea);const _0x57d40b=getValueByPath(_0x2cbdbc,['config']);return _0x57d40b!=null&&listDocumentsConfigToMldev(_0x57d40b,_0x85037a),_0x85037a;}function listDocumentsResponseFromMldev(_0x5d92f7){const _0x475523=a3_0x402819,_0x271b98={},_0x9e7e34=getValueByPath(_0x5d92f7,['sdkHttpResponse']);_0x9e7e34!=null&&setValueByPath(_0x271b98,[_0x475523(0x3a7)],_0x9e7e34);const _0x5a19e6=getValueByPath(_0x5d92f7,['nextPageToken']);_0x5a19e6!=null&&setValueByPath(_0x271b98,[_0x475523(0x68e)],_0x5a19e6);const _0x37b29d=getValueByPath(_0x5d92f7,[_0x475523(0x1da)]);if(_0x37b29d!=null){let _0x4fdc3f=_0x37b29d;Array[_0x475523(0x32b)](_0x4fdc3f)&&(_0x4fdc3f=_0x4fdc3f['map'](_0x529ea5=>{return _0x529ea5;})),setValueByPath(_0x271b98,[_0x475523(0x1da)],_0x4fdc3f);}return _0x271b98;}/**
142
+ * @license
143
+ * Copyright 2025 Google LLC
144
+ * SPDX-License-Identifier: Apache-2.0
145
+ */
146
+ class Documents extends BaseModule{constructor(_0xbfb58e){const _0x1d5d1d=a3_0x402819;super(),this[_0x1d5d1d(0x235)]=_0xbfb58e,this[_0x1d5d1d(0x526)]=async _0x4e99a0=>{const _0x3bc607=_0x1d5d1d;return new Pager(PagedItem[_0x3bc607(0x694)],_0x301fa6=>this[_0x3bc607(0x388)]({'parent':_0x4e99a0['parent'],'config':_0x301fa6[_0x3bc607(0x43b)]}),await this[_0x3bc607(0x388)](_0x4e99a0),_0x4e99a0);};}async[a3_0x402819(0x42b)](_0x374a04){const _0x5da087=a3_0x402819;var _0x2d5045,_0x449227;let _0x467c0b,_0x592630='',_0x1e127d={};if(this[_0x5da087(0x235)][_0x5da087(0x268)]())throw new Error(_0x5da087(0x206));else{const _0xe0f541=getDocumentParametersToMldev(_0x374a04);return _0x592630=formatMap(_0x5da087(0x687),_0xe0f541['_url']),_0x1e127d=_0xe0f541[_0x5da087(0x5fa)],delete _0xe0f541['_url'],delete _0xe0f541[_0x5da087(0x5fa)],_0x467c0b=this['apiClient'][_0x5da087(0x239)]({'path':_0x592630,'queryParams':_0x1e127d,'body':JSON[_0x5da087(0x65c)](_0xe0f541),'httpMethod':_0x5da087(0x500),'httpOptions':(_0x2d5045=_0x374a04['config'])===null||_0x2d5045===void 0x0?void 0x0:_0x2d5045[_0x5da087(0x5c7)],'abortSignal':(_0x449227=_0x374a04[_0x5da087(0x43b)])===null||_0x449227===void 0x0?void 0x0:_0x449227[_0x5da087(0x709)]})[_0x5da087(0x1f0)](_0x12ddbb=>{const _0x111a05=_0x5da087;return _0x12ddbb[_0x111a05(0x4cf)]();}),_0x467c0b[_0x5da087(0x1f0)](_0x590005=>{return _0x590005;});}}async['delete'](_0x356c25){const _0x4c3481=a3_0x402819;var _0x556e42,_0xc9b9b5;let _0x7e774c='',_0x27f5bd={};if(this[_0x4c3481(0x235)][_0x4c3481(0x268)]())throw new Error(_0x4c3481(0x206));else{const _0x50ca05=deleteDocumentParametersToMldev(_0x356c25);_0x7e774c=formatMap(_0x4c3481(0x687),_0x50ca05[_0x4c3481(0x1aa)]),_0x27f5bd=_0x50ca05[_0x4c3481(0x5fa)],delete _0x50ca05[_0x4c3481(0x1aa)],delete _0x50ca05[_0x4c3481(0x5fa)],await this[_0x4c3481(0x235)][_0x4c3481(0x239)]({'path':_0x7e774c,'queryParams':_0x27f5bd,'body':JSON[_0x4c3481(0x65c)](_0x50ca05),'httpMethod':_0x4c3481(0x71d),'httpOptions':(_0x556e42=_0x356c25['config'])===null||_0x556e42===void 0x0?void 0x0:_0x556e42[_0x4c3481(0x5c7)],'abortSignal':(_0xc9b9b5=_0x356c25[_0x4c3481(0x43b)])===null||_0xc9b9b5===void 0x0?void 0x0:_0xc9b9b5[_0x4c3481(0x709)]});}}async['listInternal'](_0x4dfc78){const _0x1b7121=a3_0x402819;var _0x14dc1e,_0x370ba6;let _0x2a3b95,_0x314d23='',_0x2afae3={};if(this['apiClient'][_0x1b7121(0x268)]())throw new Error(_0x1b7121(0x206));else{const _0x1d803b=listDocumentsParametersToMldev(_0x4dfc78);return _0x314d23=formatMap('{parent}/documents',_0x1d803b[_0x1b7121(0x1aa)]),_0x2afae3=_0x1d803b[_0x1b7121(0x5fa)],delete _0x1d803b['_url'],delete _0x1d803b[_0x1b7121(0x5fa)],_0x2a3b95=this['apiClient'][_0x1b7121(0x239)]({'path':_0x314d23,'queryParams':_0x2afae3,'body':JSON[_0x1b7121(0x65c)](_0x1d803b),'httpMethod':_0x1b7121(0x500),'httpOptions':(_0x14dc1e=_0x4dfc78[_0x1b7121(0x43b)])===null||_0x14dc1e===void 0x0?void 0x0:_0x14dc1e['httpOptions'],'abortSignal':(_0x370ba6=_0x4dfc78[_0x1b7121(0x43b)])===null||_0x370ba6===void 0x0?void 0x0:_0x370ba6[_0x1b7121(0x709)]})[_0x1b7121(0x1f0)](_0x56a26d=>{return _0x56a26d['json']();}),_0x2a3b95[_0x1b7121(0x1f0)](_0x267d56=>{const _0x2f22f5=_0x1b7121,_0x5c8619=listDocumentsResponseFromMldev(_0x267d56),_0x1f28d6=new ListDocumentsResponse();return Object[_0x2f22f5(0x48a)](_0x1f28d6,_0x5c8619),_0x1f28d6;});}}}/**
147
+ * @license
148
+ * Copyright 2025 Google LLC
149
+ * SPDX-License-Identifier: Apache-2.0
150
+ */
151
+ class FileSearchStores extends BaseModule{constructor(_0x1562bc,_0x20ae6f=new Documents(_0x1562bc)){const _0x301236=a3_0x402819;super(),this[_0x301236(0x235)]=_0x1562bc,this['documents']=_0x20ae6f,this[_0x301236(0x526)]=async(_0xefb0d9={})=>{const _0x57f731=_0x301236;return new Pager(PagedItem[_0x57f731(0x581)],_0x4cb54d=>this[_0x57f731(0x388)](_0x4cb54d),await this[_0x57f731(0x388)](_0xefb0d9),_0xefb0d9);};}async[a3_0x402819(0x590)](_0x5d08c4){const _0x4ba0c2=a3_0x402819;if(this[_0x4ba0c2(0x235)][_0x4ba0c2(0x268)]())throw new Error('Vertex\x20AI\x20does\x20not\x20support\x20uploading\x20files\x20to\x20a\x20file\x20search\x20store.');return this['apiClient'][_0x4ba0c2(0x212)](_0x5d08c4[_0x4ba0c2(0x426)],_0x5d08c4[_0x4ba0c2(0x2fa)],_0x5d08c4['config']);}async[a3_0x402819(0x518)](_0x4dfa2e){const _0x3b6c16=a3_0x402819;var _0x3bb022,_0x3c7f6e;let _0x2cef52,_0x4f4ff5='',_0x245b2b={};if(this[_0x3b6c16(0x235)][_0x3b6c16(0x268)]())throw new Error(_0x3b6c16(0x206));else{const _0x3fe13e=createFileSearchStoreParametersToMldev(_0x4dfa2e);return _0x4f4ff5=formatMap(_0x3b6c16(0x642),_0x3fe13e[_0x3b6c16(0x1aa)]),_0x245b2b=_0x3fe13e[_0x3b6c16(0x5fa)],delete _0x3fe13e[_0x3b6c16(0x1aa)],delete _0x3fe13e['_query'],_0x2cef52=this[_0x3b6c16(0x235)][_0x3b6c16(0x239)]({'path':_0x4f4ff5,'queryParams':_0x245b2b,'body':JSON['stringify'](_0x3fe13e),'httpMethod':_0x3b6c16(0x6d7),'httpOptions':(_0x3bb022=_0x4dfa2e[_0x3b6c16(0x43b)])===null||_0x3bb022===void 0x0?void 0x0:_0x3bb022[_0x3b6c16(0x5c7)],'abortSignal':(_0x3c7f6e=_0x4dfa2e[_0x3b6c16(0x43b)])===null||_0x3c7f6e===void 0x0?void 0x0:_0x3c7f6e[_0x3b6c16(0x709)]})[_0x3b6c16(0x1f0)](_0x139174=>{const _0x1f4902=_0x3b6c16;return _0x139174[_0x1f4902(0x4cf)]();}),_0x2cef52[_0x3b6c16(0x1f0)](_0x1e03d0=>{return _0x1e03d0;});}}async['get'](_0x5b5db8){const _0x27c0ea=a3_0x402819;var _0x243753,_0x192ce8;let _0x15183f,_0x95f137='',_0x14546f={};if(this[_0x27c0ea(0x235)][_0x27c0ea(0x268)]())throw new Error(_0x27c0ea(0x206));else{const _0x5e3d43=getFileSearchStoreParametersToMldev(_0x5b5db8);return _0x95f137=formatMap(_0x27c0ea(0x687),_0x5e3d43[_0x27c0ea(0x1aa)]),_0x14546f=_0x5e3d43['_query'],delete _0x5e3d43[_0x27c0ea(0x1aa)],delete _0x5e3d43['_query'],_0x15183f=this[_0x27c0ea(0x235)][_0x27c0ea(0x239)]({'path':_0x95f137,'queryParams':_0x14546f,'body':JSON['stringify'](_0x5e3d43),'httpMethod':_0x27c0ea(0x500),'httpOptions':(_0x243753=_0x5b5db8[_0x27c0ea(0x43b)])===null||_0x243753===void 0x0?void 0x0:_0x243753[_0x27c0ea(0x5c7)],'abortSignal':(_0x192ce8=_0x5b5db8[_0x27c0ea(0x43b)])===null||_0x192ce8===void 0x0?void 0x0:_0x192ce8['abortSignal']})[_0x27c0ea(0x1f0)](_0x41bf25=>{const _0x5d6748=_0x27c0ea;return _0x41bf25[_0x5d6748(0x4cf)]();}),_0x15183f[_0x27c0ea(0x1f0)](_0x122774=>{return _0x122774;});}}async[a3_0x402819(0x4a4)](_0x490ea6){const _0x7f420f=a3_0x402819;var _0x3aec99,_0x4aa145;let _0x506f61='',_0x34ed2c={};if(this[_0x7f420f(0x235)][_0x7f420f(0x268)]())throw new Error(_0x7f420f(0x206));else{const _0x420cf6=deleteFileSearchStoreParametersToMldev(_0x490ea6);_0x506f61=formatMap('{name}',_0x420cf6[_0x7f420f(0x1aa)]),_0x34ed2c=_0x420cf6[_0x7f420f(0x5fa)],delete _0x420cf6[_0x7f420f(0x1aa)],delete _0x420cf6['_query'],await this['apiClient']['request']({'path':_0x506f61,'queryParams':_0x34ed2c,'body':JSON[_0x7f420f(0x65c)](_0x420cf6),'httpMethod':_0x7f420f(0x71d),'httpOptions':(_0x3aec99=_0x490ea6[_0x7f420f(0x43b)])===null||_0x3aec99===void 0x0?void 0x0:_0x3aec99[_0x7f420f(0x5c7)],'abortSignal':(_0x4aa145=_0x490ea6[_0x7f420f(0x43b)])===null||_0x4aa145===void 0x0?void 0x0:_0x4aa145['abortSignal']});}}async[a3_0x402819(0x388)](_0x335d82){const _0x2a7d21=a3_0x402819;var _0x33e4d9,_0x2a45e4;let _0x437c32,_0x52d6ee='',_0x22a6ce={};if(this[_0x2a7d21(0x235)][_0x2a7d21(0x268)]())throw new Error(_0x2a7d21(0x206));else{const _0x5b1138=listFileSearchStoresParametersToMldev(_0x335d82);return _0x52d6ee=formatMap('fileSearchStores',_0x5b1138[_0x2a7d21(0x1aa)]),_0x22a6ce=_0x5b1138[_0x2a7d21(0x5fa)],delete _0x5b1138['_url'],delete _0x5b1138[_0x2a7d21(0x5fa)],_0x437c32=this[_0x2a7d21(0x235)][_0x2a7d21(0x239)]({'path':_0x52d6ee,'queryParams':_0x22a6ce,'body':JSON[_0x2a7d21(0x65c)](_0x5b1138),'httpMethod':'GET','httpOptions':(_0x33e4d9=_0x335d82['config'])===null||_0x33e4d9===void 0x0?void 0x0:_0x33e4d9['httpOptions'],'abortSignal':(_0x2a45e4=_0x335d82[_0x2a7d21(0x43b)])===null||_0x2a45e4===void 0x0?void 0x0:_0x2a45e4[_0x2a7d21(0x709)]})[_0x2a7d21(0x1f0)](_0x59bcfd=>{return _0x59bcfd['json']();}),_0x437c32['then'](_0x40c9a0=>{const _0x2ca328=_0x2a7d21,_0x77f7e6=listFileSearchStoresResponseFromMldev(_0x40c9a0),_0x52ddf9=new ListFileSearchStoresResponse();return Object[_0x2ca328(0x48a)](_0x52ddf9,_0x77f7e6),_0x52ddf9;});}}async[a3_0x402819(0x24b)](_0x12efc1){const _0x287ce9=a3_0x402819;var _0x34f7db,_0x5d91f7;let _0x52a9da,_0x2ead88='',_0x376993={};if(this[_0x287ce9(0x235)][_0x287ce9(0x268)]())throw new Error(_0x287ce9(0x206));else{const _0x7c92b4=uploadToFileSearchStoreParametersToMldev(_0x12efc1);return _0x2ead88=formatMap('upload/v1beta/{file_search_store_name}:uploadToFileSearchStore',_0x7c92b4['_url']),_0x376993=_0x7c92b4[_0x287ce9(0x5fa)],delete _0x7c92b4['_url'],delete _0x7c92b4[_0x287ce9(0x5fa)],_0x52a9da=this[_0x287ce9(0x235)][_0x287ce9(0x239)]({'path':_0x2ead88,'queryParams':_0x376993,'body':JSON[_0x287ce9(0x65c)](_0x7c92b4),'httpMethod':'POST','httpOptions':(_0x34f7db=_0x12efc1['config'])===null||_0x34f7db===void 0x0?void 0x0:_0x34f7db['httpOptions'],'abortSignal':(_0x5d91f7=_0x12efc1[_0x287ce9(0x43b)])===null||_0x5d91f7===void 0x0?void 0x0:_0x5d91f7[_0x287ce9(0x709)]})[_0x287ce9(0x1f0)](_0x4173d7=>{const _0x255626=_0x287ce9;return _0x4173d7[_0x255626(0x4cf)]();}),_0x52a9da[_0x287ce9(0x1f0)](_0x4e4329=>{const _0x38d7d0=_0x287ce9,_0x315189=uploadToFileSearchStoreResumableResponseFromMldev(_0x4e4329),_0x40890e=new UploadToFileSearchStoreResumableResponse();return Object[_0x38d7d0(0x48a)](_0x40890e,_0x315189),_0x40890e;});}}async[a3_0x402819(0x1dc)](_0x36cc2a){const _0x3d6112=a3_0x402819;var _0x1765ee,_0x3dfdfd;let _0x11bc87,_0x192be1='',_0x375f2b={};if(this[_0x3d6112(0x235)][_0x3d6112(0x268)]())throw new Error(_0x3d6112(0x206));else{const _0xd03b30=importFileParametersToMldev(_0x36cc2a);return _0x192be1=formatMap(_0x3d6112(0x230),_0xd03b30['_url']),_0x375f2b=_0xd03b30[_0x3d6112(0x5fa)],delete _0xd03b30['_url'],delete _0xd03b30['_query'],_0x11bc87=this[_0x3d6112(0x235)][_0x3d6112(0x239)]({'path':_0x192be1,'queryParams':_0x375f2b,'body':JSON[_0x3d6112(0x65c)](_0xd03b30),'httpMethod':_0x3d6112(0x6d7),'httpOptions':(_0x1765ee=_0x36cc2a[_0x3d6112(0x43b)])===null||_0x1765ee===void 0x0?void 0x0:_0x1765ee['httpOptions'],'abortSignal':(_0x3dfdfd=_0x36cc2a['config'])===null||_0x3dfdfd===void 0x0?void 0x0:_0x3dfdfd['abortSignal']})[_0x3d6112(0x1f0)](_0x5d320b=>{const _0x58cc46=_0x3d6112;return _0x5d320b[_0x58cc46(0x4cf)]();}),_0x11bc87[_0x3d6112(0x1f0)](_0x3675cc=>{const _0x3da426=_0x3d6112,_0x130245=importFileOperationFromMldev(_0x3675cc),_0x436a4e=new ImportFileOperation();return Object[_0x3da426(0x48a)](_0x436a4e,_0x130245),_0x436a4e;});}}}/**
152
+ * @license
153
+ * Copyright 2025 Google LLC
154
+ * SPDX-License-Identifier: Apache-2.0
155
+ */
156
+ let uuid4Internal=function(){const _0x2a4b2c=a3_0x402819,{crypto:_0x53904c}=globalThis;if(_0x53904c===null||_0x53904c===void 0x0?void 0x0:_0x53904c['randomUUID'])return uuid4Internal=_0x53904c['randomUUID'][_0x2a4b2c(0x405)](_0x53904c),_0x53904c['randomUUID']();const _0x58a6eb=new Uint8Array(0x1),_0x474124=_0x53904c?()=>_0x53904c[_0x2a4b2c(0x4c6)](_0x58a6eb)[0x0]:()=>Math[_0x2a4b2c(0x6e2)]()*0xff&0xff;return'10000000-1000-4000-8000-100000000000'['replace'](/[018]/g,_0x5e6923=>(+_0x5e6923^_0x474124()&0xf>>+_0x5e6923/0x4)['toString'](0x10));};const uuid4=()=>uuid4Internal();/**
157
+ * @license
158
+ * Copyright 2025 Google LLC
159
+ * SPDX-License-Identifier: Apache-2.0
160
+ */
161
+ function isAbortError(_0x224653){const _0x404d18=a3_0x402819;return typeof _0x224653===_0x404d18(0x365)&&_0x224653!==null&&(_0x404d18(0x3a4)in _0x224653&&_0x224653[_0x404d18(0x3a4)]===_0x404d18(0x1f2)||'message'in _0x224653&&String(_0x224653[_0x404d18(0x557)])[_0x404d18(0x34e)](_0x404d18(0x652)));}const castToError=_0x25d1e9=>{const _0x4558e6=a3_0x402819;if(_0x25d1e9 instanceof Error)return _0x25d1e9;if(typeof _0x25d1e9===_0x4558e6(0x365)&&_0x25d1e9!==null){try{if(Object[_0x4558e6(0x5c4)]['toString'][_0x4558e6(0x280)](_0x25d1e9)===_0x4558e6(0x520)){const _0x4c2355=new Error(_0x25d1e9[_0x4558e6(0x557)],_0x25d1e9[_0x4558e6(0x47b)]?{'cause':_0x25d1e9[_0x4558e6(0x47b)]}:{});if(_0x25d1e9[_0x4558e6(0x3ed)])_0x4c2355[_0x4558e6(0x3ed)]=_0x25d1e9['stack'];if(_0x25d1e9[_0x4558e6(0x47b)]&&!_0x4c2355['cause'])_0x4c2355[_0x4558e6(0x47b)]=_0x25d1e9['cause'];if(_0x25d1e9[_0x4558e6(0x3a4)])_0x4c2355[_0x4558e6(0x3a4)]=_0x25d1e9[_0x4558e6(0x3a4)];return _0x4c2355;}}catch(_0x56ca98){}try{return new Error(JSON[_0x4558e6(0x65c)](_0x25d1e9));}catch(_0x9b040a){}}return new Error(_0x25d1e9);};/**
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(_0x390e4e,_0x1fa174,_0x110a64,_0x6bf088){const _0x3de4b5=a3_0x402819;super(''+APIError['makeMessage'](_0x390e4e,_0x1fa174,_0x110a64)),this[_0x3de4b5(0x389)]=_0x390e4e,this['headers']=_0x6bf088,this['error']=_0x1fa174;}static[a3_0x402819(0x721)](_0x3f434a,_0x4e135e,_0x179331){const _0x350be3=a3_0x402819,_0x1f181b=(_0x4e135e===null||_0x4e135e===void 0x0?void 0x0:_0x4e135e[_0x350be3(0x557)])?typeof _0x4e135e[_0x350be3(0x557)]==='string'?_0x4e135e[_0x350be3(0x557)]:JSON[_0x350be3(0x65c)](_0x4e135e[_0x350be3(0x557)]):_0x4e135e?JSON['stringify'](_0x4e135e):_0x179331;if(_0x3f434a&&_0x1f181b)return _0x3f434a+'\x20'+_0x1f181b;if(_0x3f434a)return _0x3f434a+_0x350be3(0x277);if(_0x1f181b)return _0x1f181b;return _0x350be3(0x4db);}static[a3_0x402819(0x36d)](_0x563cbd,_0x4ceeec,_0x3c0d97,_0x5b5561){if(!_0x563cbd||!_0x5b5561)return new APIConnectionError({'message':_0x3c0d97,'cause':castToError(_0x4ceeec)});const _0x416329=_0x4ceeec;if(_0x563cbd===0x190)return new BadRequestError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd===0x191)return new AuthenticationError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd===0x193)return new PermissionDeniedError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd===0x194)return new NotFoundError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd===0x199)return new ConflictError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd===0x1a6)return new UnprocessableEntityError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd===0x1ad)return new RateLimitError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);if(_0x563cbd>=0x1f4)return new InternalServerError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);return new APIError(_0x563cbd,_0x416329,_0x3c0d97,_0x5b5561);}}class APIUserAbortError extends APIError{constructor({message:_0x356619}={}){super(undefined,undefined,_0x356619||'Request\x20was\x20aborted.',undefined);}}class APIConnectionError extends APIError{constructor({message:_0x2e161f,cause:_0x2747f0}){const _0x3367e3=a3_0x402819;super(undefined,undefined,_0x2e161f||_0x3367e3(0x515),undefined);if(_0x2747f0)this[_0x3367e3(0x47b)]=_0x2747f0;}}class APIConnectionTimeoutError extends APIConnectionError{constructor({message:_0x2f8572}={}){const _0x5c3e0e=a3_0x402819;super({'message':_0x2f8572!==null&&_0x2f8572!==void 0x0?_0x2f8572:_0x5c3e0e(0x61d)});}}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=_0x197179=>{const _0x358bfe=a3_0x402819;return startsWithSchemeRegexp[_0x358bfe(0x411)](_0x197179);};let isArrayInternal=_0x2a8aab=>(isArrayInternal=Array[a3_0x402819(0x32b)],isArrayInternal(_0x2a8aab));const isArray=isArrayInternal;let isReadonlyArrayInternal=isArray;const isReadonlyArray=isReadonlyArrayInternal;function isEmptyObj(_0x2c55d6){if(!_0x2c55d6)return!![];for(const _0xc75f99 in _0x2c55d6)return![];return!![];}function hasOwn(_0x17e158,_0x3591b6){const _0x1566dd=a3_0x402819;return Object[_0x1566dd(0x5c4)][_0x1566dd(0x406)][_0x1566dd(0x280)](_0x17e158,_0x3591b6);}const validatePositiveInteger=(_0x2c0a9c,_0x5b997d)=>{const _0x5987b7=a3_0x402819;if(typeof _0x5b997d!==_0x5987b7(0x441)||!Number['isInteger'](_0x5b997d))throw new GeminiNextGenAPIClientError(_0x2c0a9c+_0x5987b7(0x543));if(_0x5b997d<0x0)throw new GeminiNextGenAPIClientError(_0x2c0a9c+_0x5987b7(0x28f));return _0x5b997d;},safeJSON=_0x4853c4=>{const _0x12bae0=a3_0x402819;try{return JSON[_0x12bae0(0x353)](_0x4853c4);}catch(_0x38465b){return undefined;}},sleep$1=_0x4be03a=>new Promise(_0x1aa02d=>setTimeout(_0x1aa02d,_0x4be03a)),VERSION=a3_0x402819(0x4a3);/**
172
+ * @license
173
+ * Copyright 2025 Google LLC
174
+ * SPDX-License-Identifier: Apache-2.0
175
+ */
176
+ function getDetectedPlatform(){const _0x89ed2=a3_0x402819;if(typeof Deno!=='undefined'&&Deno[_0x89ed2(0x6fe)]!=null)return _0x89ed2(0x3fe);if(typeof EdgeRuntime!==_0x89ed2(0x668))return _0x89ed2(0x474);if(Object[_0x89ed2(0x5c4)]['toString'][_0x89ed2(0x280)](typeof globalThis[_0x89ed2(0x6e7)]!==_0x89ed2(0x668)?globalThis[_0x89ed2(0x6e7)]:0x0)===_0x89ed2(0x599))return _0x89ed2(0x443);return _0x89ed2(0x40b);}const getPlatformProperties=()=>{const _0x232e9d=a3_0x402819;var _0x7aa4b4,_0x4b6227,_0x48df32,_0x553b53,_0x1cef99;const _0x173c6b=getDetectedPlatform();if(_0x173c6b==='deno')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform(Deno['build']['os']),'X-Stainless-Arch':normalizeArch(Deno[_0x232e9d(0x6fe)][_0x232e9d(0x6c0)]),'X-Stainless-Runtime':_0x232e9d(0x3fe),'X-Stainless-Runtime-Version':typeof Deno[_0x232e9d(0x25d)]==='string'?Deno[_0x232e9d(0x25d)]:(_0x4b6227=(_0x7aa4b4=Deno[_0x232e9d(0x25d)])===null||_0x7aa4b4===void 0x0?void 0x0:_0x7aa4b4['deno'])!==null&&_0x4b6227!==void 0x0?_0x4b6227:_0x232e9d(0x40b)};if(typeof EdgeRuntime!=='undefined')return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x232e9d(0x440),'X-Stainless-Arch':_0x232e9d(0x2b5)+EdgeRuntime,'X-Stainless-Runtime':_0x232e9d(0x474),'X-Stainless-Runtime-Version':globalThis[_0x232e9d(0x6e7)][_0x232e9d(0x25d)]};if(_0x173c6b===_0x232e9d(0x443))return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':normalizePlatform((_0x48df32=globalThis[_0x232e9d(0x6e7)][_0x232e9d(0x352)])!==null&&_0x48df32!==void 0x0?_0x48df32:_0x232e9d(0x40b)),'X-Stainless-Arch':normalizeArch((_0x553b53=globalThis[_0x232e9d(0x6e7)][_0x232e9d(0x6c0)])!==null&&_0x553b53!==void 0x0?_0x553b53:'unknown'),'X-Stainless-Runtime':_0x232e9d(0x443),'X-Stainless-Runtime-Version':(_0x1cef99=globalThis['process'][_0x232e9d(0x25d)])!==null&&_0x1cef99!==void 0x0?_0x1cef99:_0x232e9d(0x40b)};const _0x192754=getBrowserInfo();if(_0x192754)return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':_0x232e9d(0x440),'X-Stainless-Arch':_0x232e9d(0x40b),'X-Stainless-Runtime':_0x232e9d(0x220)+_0x192754['browser'],'X-Stainless-Runtime-Version':_0x192754['version']};return{'X-Stainless-Lang':'js','X-Stainless-Package-Version':VERSION,'X-Stainless-OS':'Unknown','X-Stainless-Arch':_0x232e9d(0x40b),'X-Stainless-Runtime':'unknown','X-Stainless-Runtime-Version':_0x232e9d(0x40b)};};function getBrowserInfo(){const _0x4c82e5=a3_0x402819;if(typeof navigator===_0x4c82e5(0x668)||!navigator)return null;const _0x226faf=[{'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':_0x4c82e5(0x596),'pattern':/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':_0x4c82e5(0x5f0),'pattern':/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{'key':'safari','pattern':/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const {key:_0x1bb665,pattern:_0x54362b}of _0x226faf){const _0x311a04=_0x54362b[_0x4c82e5(0x1a5)](navigator[_0x4c82e5(0x5e7)]);if(_0x311a04){const _0x1f7274=_0x311a04[0x1]||0x0,_0x319b5c=_0x311a04[0x2]||0x0,_0x4d9f12=_0x311a04[0x3]||0x0;return{'browser':_0x1bb665,'version':_0x1f7274+'.'+_0x319b5c+'.'+_0x4d9f12};}}return null;}const normalizeArch=_0x8c54c9=>{const _0x5b6992=a3_0x402819;if(_0x8c54c9===_0x5b6992(0x480))return'x32';if(_0x8c54c9===_0x5b6992(0x462)||_0x8c54c9===_0x5b6992(0x487))return _0x5b6992(0x487);if(_0x8c54c9===_0x5b6992(0x298))return _0x5b6992(0x298);if(_0x8c54c9===_0x5b6992(0x592)||_0x8c54c9===_0x5b6992(0x604))return _0x5b6992(0x604);if(_0x8c54c9)return'other:'+_0x8c54c9;return _0x5b6992(0x40b);},normalizePlatform=_0x55acc1=>{const _0x863f7e=a3_0x402819;_0x55acc1=_0x55acc1[_0x863f7e(0x1d1)]();if(_0x55acc1[_0x863f7e(0x34e)]('ios'))return _0x863f7e(0x64d);if(_0x55acc1==='android')return'Android';if(_0x55acc1==='darwin')return _0x863f7e(0x644);if(_0x55acc1==='win32')return _0x863f7e(0x25c);if(_0x55acc1===_0x863f7e(0x59c))return _0x863f7e(0x4d4);if(_0x55acc1===_0x863f7e(0x3cc))return'OpenBSD';if(_0x55acc1===_0x863f7e(0x5d6))return _0x863f7e(0x6d5);if(_0x55acc1)return _0x863f7e(0x37b)+_0x55acc1;return _0x863f7e(0x440);};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 _0x398d16=a3_0x402819;if(typeof fetch!=='undefined')return fetch;throw new Error(_0x398d16(0x66b));}function makeReadableStream(..._0x5a51b5){const _0x22de25=a3_0x402819,_0x127aa3=globalThis[_0x22de25(0x696)];if(typeof _0x127aa3===_0x22de25(0x668))throw new Error('`ReadableStream`\x20is\x20not\x20defined\x20as\x20a\x20global;\x20You\x20will\x20need\x20to\x20polyfill\x20it,\x20`globalThis.ReadableStream\x20=\x20ReadableStream`');return new _0x127aa3(..._0x5a51b5);}function ReadableStreamFrom(_0x404b02){const _0x501b29=a3_0x402819;let _0x185c2a=Symbol[_0x501b29(0x3bd)]in _0x404b02?_0x404b02[Symbol[_0x501b29(0x3bd)]]():_0x404b02[Symbol[_0x501b29(0x3f7)]]();return makeReadableStream({'start'(){},async 'pull'(_0x3357ed){const _0x3a09c1=_0x501b29,{done:_0x473cd1,value:_0x5771f3}=await _0x185c2a['next']();_0x473cd1?_0x3357ed[_0x3a09c1(0x69a)]():_0x3357ed[_0x3a09c1(0x1e3)](_0x5771f3);},async 'cancel'(){const _0x297989=_0x501b29;var _0x46362d;await((_0x46362d=_0x185c2a[_0x297989(0x613)])===null||_0x46362d===void 0x0?void 0x0:_0x46362d['call'](_0x185c2a));}});}function ReadableStreamToAsyncIterable(_0x455229){const _0x48de27=a3_0x402819;if(_0x455229[Symbol[_0x48de27(0x3bd)]])return _0x455229;const _0x391b11=_0x455229[_0x48de27(0x366)]();return{async 'next'(){const _0x477bf1=_0x48de27;try{const _0x8cb0e1=await _0x391b11[_0x477bf1(0x69f)]();if(_0x8cb0e1===null||_0x8cb0e1===void 0x0?void 0x0:_0x8cb0e1[_0x477bf1(0x424)])_0x391b11['releaseLock']();return _0x8cb0e1;}catch(_0x9ff649){_0x391b11[_0x477bf1(0x20a)]();throw _0x9ff649;}},async 'return'(){const _0x2f535d=_0x48de27,_0x4af1fb=_0x391b11[_0x2f535d(0x4e1)]();return _0x391b11[_0x2f535d(0x20a)](),await _0x4af1fb,{'done':!![],'value':undefined};},[Symbol[_0x48de27(0x3bd)]](){return this;}};}async function CancelReadableStream(_0x8caec){const _0x393307=a3_0x402819;var _0x27f484,_0x42dfac;if(_0x8caec===null||typeof _0x8caec!==_0x393307(0x365))return;if(_0x8caec[Symbol['asyncIterator']]){await((_0x42dfac=(_0x27f484=_0x8caec[Symbol[_0x393307(0x3bd)]]())[_0x393307(0x613)])===null||_0x42dfac===void 0x0?void 0x0:_0x42dfac[_0x393307(0x280)](_0x27f484));return;}const _0x551676=_0x8caec[_0x393307(0x366)](),_0x1a7738=_0x551676[_0x393307(0x4e1)]();_0x551676[_0x393307(0x20a)](),await _0x1a7738;}/**
182
+ * @license
183
+ * Copyright 2025 Google LLC
184
+ * SPDX-License-Identifier: Apache-2.0
185
+ */
186
+ const FallbackEncoder=({headers:_0x26eb50,body:_0x874c6e})=>{const _0xc9135f=a3_0x402819;return{'bodyHeaders':{'content-type':_0xc9135f(0x1fc)},'body':JSON[_0xc9135f(0x65c)](_0x874c6e)};},checkFileSupport=()=>{const _0xd4edba=a3_0x402819;var _0x8a6c6c;if(typeof File===_0xd4edba(0x668)){const {process:_0x49f764}=globalThis,_0x4cd106=typeof((_0x8a6c6c=_0x49f764===null||_0x49f764===void 0x0?void 0x0:_0x49f764[_0xd4edba(0x33b)])===null||_0x8a6c6c===void 0x0?void 0x0:_0x8a6c6c[_0xd4edba(0x443)])===_0xd4edba(0x71b)&&parseInt(_0x49f764['versions'][_0xd4edba(0x443)][_0xd4edba(0x51c)]('.'))<0x14;throw new Error(_0xd4edba(0x565)+(_0x4cd106?_0xd4edba(0x1c8):''));}};function makeFile(_0xd511c5,_0x4a3650,_0x28ad33){const _0x4afcba=a3_0x402819;return checkFileSupport(),new File(_0xd511c5,_0x4a3650!==null&&_0x4a3650!==void 0x0?_0x4a3650:_0x4afcba(0x54c),_0x28ad33);}function getName(_0x428d23){const _0x40bbe3=a3_0x402819;return(typeof _0x428d23===_0x40bbe3(0x365)&&_0x428d23!==null&&(_0x40bbe3(0x3a4)in _0x428d23&&_0x428d23['name']&&String(_0x428d23[_0x40bbe3(0x3a4)])||_0x40bbe3(0x29e)in _0x428d23&&_0x428d23[_0x40bbe3(0x29e)]&&String(_0x428d23[_0x40bbe3(0x29e)])||_0x40bbe3(0x640)in _0x428d23&&_0x428d23[_0x40bbe3(0x640)]&&String(_0x428d23[_0x40bbe3(0x640)])||_0x40bbe3(0x6c3)in _0x428d23&&_0x428d23['path']&&String(_0x428d23[_0x40bbe3(0x6c3)]))||'')[_0x40bbe3(0x51c)](/[\\/]/)[_0x40bbe3(0x279)]()||undefined;}const isAsyncIterable=_0x45fc79=>_0x45fc79!=null&&typeof _0x45fc79==='object'&&typeof _0x45fc79[Symbol['asyncIterator']]===a3_0x402819(0x390),isBlobLike=_0x11e5e2=>_0x11e5e2!=null&&typeof _0x11e5e2===a3_0x402819(0x365)&&typeof _0x11e5e2['size']==='number'&&typeof _0x11e5e2['type']===a3_0x402819(0x71b)&&typeof _0x11e5e2[a3_0x402819(0x1a9)]==='function'&&typeof _0x11e5e2[a3_0x402819(0x23e)]===a3_0x402819(0x390)&&typeof _0x11e5e2['arrayBuffer']===a3_0x402819(0x390),isFileLike=_0x2dcfcc=>_0x2dcfcc!=null&&typeof _0x2dcfcc===a3_0x402819(0x365)&&typeof _0x2dcfcc[a3_0x402819(0x3a4)]===a3_0x402819(0x71b)&&typeof _0x2dcfcc[a3_0x402819(0x2b7)]===a3_0x402819(0x441)&&isBlobLike(_0x2dcfcc),isResponseLike=_0x3f3b52=>_0x3f3b52!=null&&typeof _0x3f3b52===a3_0x402819(0x365)&&typeof _0x3f3b52[a3_0x402819(0x29e)]==='string'&&typeof _0x3f3b52[a3_0x402819(0x236)]===a3_0x402819(0x390);async function toFile(_0x326210,_0x5a6812,_0x4e9213){const _0x17cc8f=a3_0x402819;checkFileSupport(),_0x326210=await _0x326210;if(isFileLike(_0x326210)){if(_0x326210 instanceof File)return _0x326210;return makeFile([await _0x326210[_0x17cc8f(0x1a1)]()],_0x326210[_0x17cc8f(0x3a4)]);}if(isResponseLike(_0x326210)){const _0x3adeea=await _0x326210[_0x17cc8f(0x236)]();return _0x5a6812||(_0x5a6812=new URL(_0x326210[_0x17cc8f(0x29e)])[_0x17cc8f(0x4e5)][_0x17cc8f(0x51c)](/[\\/]/)[_0x17cc8f(0x279)]()),makeFile(await getBytes(_0x3adeea),_0x5a6812,_0x4e9213);}const _0x5c52e6=await getBytes(_0x326210);_0x5a6812||(_0x5a6812=getName(_0x326210));if(!(_0x4e9213===null||_0x4e9213===void 0x0?void 0x0:_0x4e9213[_0x17cc8f(0x247)])){const _0x22a3f4=_0x5c52e6[_0x17cc8f(0x6a9)](_0x4ac9ad=>typeof _0x4ac9ad===_0x17cc8f(0x365)&&_0x17cc8f(0x247)in _0x4ac9ad&&_0x4ac9ad[_0x17cc8f(0x247)]);typeof _0x22a3f4===_0x17cc8f(0x71b)&&(_0x4e9213=Object['assign'](Object['assign']({},_0x4e9213),{'type':_0x22a3f4}));}return makeFile(_0x5c52e6,_0x5a6812,_0x4e9213);}async function getBytes(_0x5d85a9){const _0x52e8ec=a3_0x402819;var _0x2f2916,_0x15a8e8,_0x47fa12,_0x165348,_0xc00bae;let _0x1476e3=[];if(typeof _0x5d85a9===_0x52e8ec(0x71b)||ArrayBuffer['isView'](_0x5d85a9)||_0x5d85a9 instanceof ArrayBuffer)_0x1476e3[_0x52e8ec(0x52c)](_0x5d85a9);else{if(isBlobLike(_0x5d85a9))_0x1476e3[_0x52e8ec(0x52c)](_0x5d85a9 instanceof Blob?_0x5d85a9:await _0x5d85a9['arrayBuffer']());else{if(isAsyncIterable(_0x5d85a9))try{for(var _0x298cf8=!![],_0xd2d9d7=__asyncValues(_0x5d85a9),_0x49a848;_0x49a848=await _0xd2d9d7['next'](),_0x2f2916=_0x49a848[_0x52e8ec(0x424)],!_0x2f2916;_0x298cf8=!![]){_0x165348=_0x49a848[_0x52e8ec(0x431)],_0x298cf8=![];const _0x509e9b=_0x165348;_0x1476e3['push'](...await getBytes(_0x509e9b));}}catch(_0x26d7a9){_0x15a8e8={'error':_0x26d7a9};}finally{try{if(!_0x298cf8&&!_0x2f2916&&(_0x47fa12=_0xd2d9d7[_0x52e8ec(0x613)]))await _0x47fa12[_0x52e8ec(0x280)](_0xd2d9d7);}finally{if(_0x15a8e8)throw _0x15a8e8['error'];}}else{const _0x43b6cc=(_0xc00bae=_0x5d85a9===null||_0x5d85a9===void 0x0?void 0x0:_0x5d85a9[_0x52e8ec(0x3ce)])===null||_0xc00bae===void 0x0?void 0x0:_0xc00bae[_0x52e8ec(0x3a4)];throw new Error('Unexpected\x20data\x20type:\x20'+typeof _0x5d85a9+(_0x43b6cc?';\x20constructor:\x20'+_0x43b6cc:'')+propsForError(_0x5d85a9));}}}return _0x1476e3;}function propsForError(_0x3631d6){const _0x4b3256=a3_0x402819;if(typeof _0x3631d6!==_0x4b3256(0x365)||_0x3631d6===null)return'';const _0x4eed79=Object[_0x4b3256(0x37c)](_0x3631d6);return _0x4b3256(0x1a7)+_0x4eed79[_0x4b3256(0x6c4)](_0x16829f=>'\x22'+_0x16829f+'\x22')[_0x4b3256(0x401)](',\x20')+']';}/**
187
+ * @license
188
+ * Copyright 2025 Google LLC
189
+ * SPDX-License-Identifier: Apache-2.0
190
+ */
191
+ class APIResource{constructor(_0x1d1e22){const _0x359421=a3_0x402819;this[_0x359421(0x4aa)]=_0x1d1e22;}}APIResource[a3_0x402819(0x66a)]=[];/**
192
+ * @license
193
+ * Copyright 2025 Google LLC
194
+ * SPDX-License-Identifier: Apache-2.0
195
+ */
196
+ function encodeURIPath(_0xddc822){const _0x30bef2=a3_0x402819;return _0xddc822[_0x30bef2(0x4a5)](/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent);}const EMPTY=Object[a3_0x402819(0x455)](Object[a3_0x402819(0x518)](null)),createPathTagFunction=(_0x579743=encodeURIPath)=>function _0x207d63(_0x4bea30,..._0x373ac5){const _0x561b31=a3_0x402819;if(_0x4bea30[_0x561b31(0x3e8)]===0x1)return _0x4bea30[0x0];let _0x4b92e4=![];const _0x1eb618=[],_0x56affb=_0x4bea30[_0x561b31(0x468)]((_0x57138b,_0x24442e,_0x5c0325)=>{const _0x350a75=_0x561b31;var _0x19cacb,_0x3bab6a,_0x4189a4;/[?#]/[_0x350a75(0x411)](_0x24442e)&&(_0x4b92e4=!![]);const _0x12c785=_0x373ac5[_0x5c0325];let _0x3f0a9c=(_0x4b92e4?encodeURIComponent:_0x579743)(''+_0x12c785);return _0x5c0325!==_0x373ac5['length']&&(_0x12c785==null||typeof _0x12c785===_0x350a75(0x365)&&_0x12c785[_0x350a75(0x344)]===((_0x4189a4=Object['getPrototypeOf']((_0x3bab6a=Object[_0x350a75(0x6fa)]((_0x19cacb=_0x12c785[_0x350a75(0x406)])!==null&&_0x19cacb!==void 0x0?_0x19cacb:EMPTY))!==null&&_0x3bab6a!==void 0x0?_0x3bab6a:EMPTY))===null||_0x4189a4===void 0x0?void 0x0:_0x4189a4[_0x350a75(0x344)]))&&(_0x3f0a9c=_0x12c785+'',_0x1eb618[_0x350a75(0x52c)]({'start':_0x57138b['length']+_0x24442e[_0x350a75(0x3e8)],'length':_0x3f0a9c[_0x350a75(0x3e8)],'error':'Value\x20of\x20type\x20'+Object[_0x350a75(0x5c4)][_0x350a75(0x344)][_0x350a75(0x280)](_0x12c785)[_0x350a75(0x23e)](0x8,-0x1)+_0x350a75(0x6ef)})),_0x57138b+_0x24442e+(_0x5c0325===_0x373ac5['length']?'':_0x3f0a9c);},''),_0x4e07d6=_0x56affb[_0x561b31(0x51c)](/[?#]/,0x1)[0x0],_0x3c35d7=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;let _0xd4739a;while((_0xd4739a=_0x3c35d7[_0x561b31(0x1a5)](_0x4e07d6))!==null){_0x1eb618[_0x561b31(0x52c)]({'start':_0xd4739a[_0x561b31(0x436)],'length':_0xd4739a[0x0][_0x561b31(0x3e8)],'error':_0x561b31(0x22f)+_0xd4739a[0x0]+'\x22\x20can\x27t\x20be\x20safely\x20passed\x20as\x20a\x20path\x20parameter'});}_0x1eb618['sort']((_0x196b7e,_0x115ad4)=>_0x196b7e['start']-_0x115ad4[_0x561b31(0x61e)]);if(_0x1eb618[_0x561b31(0x3e8)]>0x0){let _0x38e081=0x0;const _0x5d181b=_0x1eb618['reduce']((_0x26c492,_0x50c322)=>{const _0x4009c1=_0x561b31,_0x15c172='\x20'[_0x4009c1(0x50e)](_0x50c322['start']-_0x38e081),_0x4e7792='^'[_0x4009c1(0x50e)](_0x50c322[_0x4009c1(0x3e8)]);return _0x38e081=_0x50c322['start']+_0x50c322['length'],_0x26c492+_0x15c172+_0x4e7792;},'');throw new GeminiNextGenAPIClientError(_0x561b31(0x5f4)+_0x1eb618[_0x561b31(0x6c4)](_0x294f31=>_0x294f31[_0x561b31(0x251)])[_0x561b31(0x401)]('\x0a')+'\x0a'+_0x56affb+'\x0a'+_0x5d181b);}return _0x56affb;},path=createPathTagFunction(encodeURIPath);/**
197
+ * @license
198
+ * Copyright 2025 Google LLC
199
+ * SPDX-License-Identifier: Apache-2.0
200
+ */
201
+ class BaseInteractions extends APIResource{[a3_0x402819(0x518)](_0x4bbc61,_0x4b0c70){const _0x4375af=a3_0x402819;var _0x22dc53;const {api_version:api_version=this[_0x4375af(0x4aa)]['apiVersion']}=_0x4bbc61,_0x21038c=__rest(_0x4bbc61,['api_version']);if(_0x4375af(0x3f6)in _0x21038c&&_0x4375af(0x47a)in _0x21038c)throw new GeminiNextGenAPIClientError(_0x4375af(0x1e5));if(_0x4375af(0x4eb)in _0x21038c&&'generation_config'in _0x21038c)throw new GeminiNextGenAPIClientError(_0x4375af(0x2a3));return this[_0x4375af(0x4aa)][_0x4375af(0x329)](path`/${api_version}/interactions`,Object['assign'](Object[_0x4375af(0x48a)]({'body':_0x21038c},_0x4b0c70),{'stream':(_0x22dc53=_0x4bbc61[_0x4375af(0x300)])!==null&&_0x22dc53!==void 0x0?_0x22dc53:![]}));}['delete'](_0x5467d9,_0x2c10ba={},_0x5be00e){const _0x592179=a3_0x402819,{api_version:api_version=this[_0x592179(0x4aa)][_0x592179(0x272)]}=_0x2c10ba!==null&&_0x2c10ba!==void 0x0?_0x2c10ba:{};return this[_0x592179(0x4aa)][_0x592179(0x4a4)](path`/${api_version}/interactions/${_0x5467d9}`,_0x5be00e);}[a3_0x402819(0x4e1)](_0x2e9890,_0x1178dd={},_0x57fa40){const _0x315e59=a3_0x402819,{api_version:api_version=this[_0x315e59(0x4aa)][_0x315e59(0x272)]}=_0x1178dd!==null&&_0x1178dd!==void 0x0?_0x1178dd:{};return this[_0x315e59(0x4aa)][_0x315e59(0x329)](path`/${api_version}/interactions/${_0x2e9890}/cancel`,_0x57fa40);}[a3_0x402819(0x42b)](_0xaa7ba3,_0x5d1a78={},_0x2d7054){const _0x39a9dc=a3_0x402819;var _0x42ed25;const _0x1d635a=_0x5d1a78!==null&&_0x5d1a78!==void 0x0?_0x5d1a78:{},{api_version:api_version=this[_0x39a9dc(0x4aa)]['apiVersion']}=_0x1d635a,_0x3a627a=__rest(_0x1d635a,[_0x39a9dc(0x60e)]);return this[_0x39a9dc(0x4aa)][_0x39a9dc(0x42b)](path`/${api_version}/interactions/${_0xaa7ba3}`,Object[_0x39a9dc(0x48a)](Object['assign']({'query':_0x3a627a},_0x2d7054),{'stream':(_0x42ed25=_0x5d1a78===null||_0x5d1a78===void 0x0?void 0x0:_0x5d1a78[_0x39a9dc(0x300)])!==null&&_0x42ed25!==void 0x0?_0x42ed25:![]}));}}BaseInteractions['_key']=Object[a3_0x402819(0x455)](['interactions']);class Interactions extends BaseInteractions{}/**
202
+ * @license
203
+ * Copyright 2025 Google LLC
204
+ * SPDX-License-Identifier: Apache-2.0
205
+ */
206
+ function concatBytes(_0x154d13){const _0x243e8a=a3_0x402819;let _0x2d65b9=0x0;for(const _0x54c977 of _0x154d13){_0x2d65b9+=_0x54c977[_0x243e8a(0x3e8)];}const _0x59aa8f=new Uint8Array(_0x2d65b9);let _0x58baac=0x0;for(const _0x58b926 of _0x154d13){_0x59aa8f[_0x243e8a(0x3e1)](_0x58b926,_0x58baac),_0x58baac+=_0x58b926[_0x243e8a(0x3e8)];}return _0x59aa8f;}let encodeUTF8_;function encodeUTF8(_0x5a4d62){const _0x2c9706=a3_0x402819;let _0x1e4fbb;return(encodeUTF8_!==null&&encodeUTF8_!==void 0x0?encodeUTF8_:(_0x1e4fbb=new globalThis[(_0x2c9706(0x3da))](),encodeUTF8_=_0x1e4fbb[_0x2c9706(0x5db)][_0x2c9706(0x405)](_0x1e4fbb)))(_0x5a4d62);}let decodeUTF8_;function decodeUTF8(_0x22cef8){const _0xe4ce2b=a3_0x402819;let _0x7947d0;return(decodeUTF8_!==null&&decodeUTF8_!==void 0x0?decodeUTF8_:(_0x7947d0=new globalThis[(_0xe4ce2b(0x4e3))](),decodeUTF8_=_0x7947d0['decode'][_0xe4ce2b(0x405)](_0x7947d0)))(_0x22cef8);}/**
207
+ * @license
208
+ * Copyright 2025 Google LLC
209
+ * SPDX-License-Identifier: Apache-2.0
210
+ */
211
+ class LineDecoder{constructor(){const _0x1f927e=a3_0x402819;this['buffer']=new Uint8Array(),this[_0x1f927e(0x26e)]=null;}[a3_0x402819(0x1c2)](_0x43e2b8){const _0x4ccff7=a3_0x402819;if(_0x43e2b8==null)return[];const _0x29be07=_0x43e2b8 instanceof ArrayBuffer?new Uint8Array(_0x43e2b8):typeof _0x43e2b8===_0x4ccff7(0x71b)?encodeUTF8(_0x43e2b8):_0x43e2b8;this[_0x4ccff7(0x262)]=concatBytes([this[_0x4ccff7(0x262)],_0x29be07]);const _0x3a793e=[];let _0x2dffd8;while((_0x2dffd8=findNewlineIndex(this[_0x4ccff7(0x262)],this[_0x4ccff7(0x26e)]))!=null){if(_0x2dffd8[_0x4ccff7(0x2d8)]&&this[_0x4ccff7(0x26e)]==null){this['carriageReturnIndex']=_0x2dffd8[_0x4ccff7(0x436)];continue;}if(this['carriageReturnIndex']!=null&&(_0x2dffd8[_0x4ccff7(0x436)]!==this[_0x4ccff7(0x26e)]+0x1||_0x2dffd8[_0x4ccff7(0x2d8)])){_0x3a793e['push'](decodeUTF8(this[_0x4ccff7(0x262)][_0x4ccff7(0x555)](0x0,this[_0x4ccff7(0x26e)]-0x1))),this['buffer']=this[_0x4ccff7(0x262)][_0x4ccff7(0x555)](this[_0x4ccff7(0x26e)]),this[_0x4ccff7(0x26e)]=null;continue;}const _0x353b84=this['carriageReturnIndex']!==null?_0x2dffd8[_0x4ccff7(0x573)]-0x1:_0x2dffd8['preceding'],_0x23d297=decodeUTF8(this[_0x4ccff7(0x262)][_0x4ccff7(0x555)](0x0,_0x353b84));_0x3a793e[_0x4ccff7(0x52c)](_0x23d297),this[_0x4ccff7(0x262)]=this[_0x4ccff7(0x262)][_0x4ccff7(0x555)](_0x2dffd8[_0x4ccff7(0x436)]),this[_0x4ccff7(0x26e)]=null;}return _0x3a793e;}[a3_0x402819(0x470)](){const _0x1f1d62=a3_0x402819;if(!this[_0x1f1d62(0x262)][_0x1f1d62(0x3e8)])return[];return this[_0x1f1d62(0x1c2)]('\x0a');}}LineDecoder[a3_0x402819(0x20f)]=new Set(['\x0a','\x0d']),LineDecoder[a3_0x402819(0x2be)]=/\r\n|[\n\r]/g;function findNewlineIndex(_0x2cdd51,_0x46f8ed){const _0x4c677a=0xa,_0x5c8122=0xd;for(let _0x3ad00c=_0x46f8ed!==null&&_0x46f8ed!==void 0x0?_0x46f8ed:0x0;_0x3ad00c<_0x2cdd51['length'];_0x3ad00c++){if(_0x2cdd51[_0x3ad00c]===_0x4c677a)return{'preceding':_0x3ad00c,'index':_0x3ad00c+0x1,'carriage':![]};if(_0x2cdd51[_0x3ad00c]===_0x5c8122)return{'preceding':_0x3ad00c,'index':_0x3ad00c+0x1,'carriage':!![]};}return null;}function findDoubleNewlineIndex(_0x48de00){const _0xd73e7e=a3_0x402819,_0x49d48a=0xa,_0x5587f0=0xd;for(let _0x1742b9=0x0;_0x1742b9<_0x48de00[_0xd73e7e(0x3e8)]-0x1;_0x1742b9++){if(_0x48de00[_0x1742b9]===_0x49d48a&&_0x48de00[_0x1742b9+0x1]===_0x49d48a)return _0x1742b9+0x2;if(_0x48de00[_0x1742b9]===_0x5587f0&&_0x48de00[_0x1742b9+0x1]===_0x5587f0)return _0x1742b9+0x2;if(_0x48de00[_0x1742b9]===_0x5587f0&&_0x48de00[_0x1742b9+0x1]===_0x49d48a&&_0x1742b9+0x3<_0x48de00['length']&&_0x48de00[_0x1742b9+0x2]===_0x5587f0&&_0x48de00[_0x1742b9+0x3]===_0x49d48a)return _0x1742b9+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=(_0x258bf7,_0x157c29,_0x423c47)=>{const _0x59533a=a3_0x402819;if(!_0x258bf7)return undefined;if(hasOwn(levelNumbers,_0x258bf7))return _0x258bf7;return loggerFor(_0x423c47)[_0x59533a(0x1bd)](_0x157c29+_0x59533a(0x4e2)+JSON[_0x59533a(0x65c)](_0x258bf7)+',\x20expected\x20one\x20of\x20'+JSON['stringify'](Object[_0x59533a(0x2ce)](levelNumbers))),undefined;};function noop(){}function makeLogFn(_0x392cc6,_0x2f6973,_0x35ba9d){return!_0x2f6973||levelNumbers[_0x392cc6]>levelNumbers[_0x35ba9d]?noop:_0x2f6973[_0x392cc6]['bind'](_0x2f6973);}const noopLogger={'error':noop,'warn':noop,'info':noop,'debug':noop};let cachedLoggers=new WeakMap();function loggerFor(_0xa4e080){const _0x585d59=a3_0x402819;var _0x2135d2;const _0xa6b369=_0xa4e080[_0x585d59(0x63f)],_0x5b49db=(_0x2135d2=_0xa4e080['logLevel'])!==null&&_0x2135d2!==void 0x0?_0x2135d2:'off';if(!_0xa6b369)return noopLogger;const _0x1b19ba=cachedLoggers[_0x585d59(0x42b)](_0xa6b369);if(_0x1b19ba&&_0x1b19ba[0x0]===_0x5b49db)return _0x1b19ba[0x1];const _0x537c3a={'error':makeLogFn(_0x585d59(0x251),_0xa6b369,_0x5b49db),'warn':makeLogFn('warn',_0xa6b369,_0x5b49db),'info':makeLogFn(_0x585d59(0x330),_0xa6b369,_0x5b49db),'debug':makeLogFn(_0x585d59(0x450),_0xa6b369,_0x5b49db)};return cachedLoggers['set'](_0xa6b369,[_0x5b49db,_0x537c3a]),_0x537c3a;}const formatRequestDetails=_0x2e261a=>{const _0x32ac55=a3_0x402819;return _0x2e261a[_0x32ac55(0x6a6)]&&(_0x2e261a['options']=Object['assign']({},_0x2e261a[_0x32ac55(0x6a6)]),delete _0x2e261a[_0x32ac55(0x6a6)][_0x32ac55(0x70b)]),_0x2e261a[_0x32ac55(0x70b)]&&(_0x2e261a['headers']=Object[_0x32ac55(0x3b8)]((_0x2e261a[_0x32ac55(0x70b)]instanceof Headers?[..._0x2e261a[_0x32ac55(0x70b)]]:Object['entries'](_0x2e261a[_0x32ac55(0x70b)]))[_0x32ac55(0x6c4)](([_0x22340c,_0x488b67])=>[_0x22340c,_0x22340c['toLowerCase']()===_0x32ac55(0x1b4)||_0x22340c['toLowerCase']()===_0x32ac55(0x245)||_0x22340c[_0x32ac55(0x1d1)]()===_0x32ac55(0x69b)||_0x22340c[_0x32ac55(0x1d1)]()===_0x32ac55(0x32d)?'***':_0x488b67]))),'retryOfRequestLogID'in _0x2e261a&&(_0x2e261a[_0x32ac55(0x547)]&&(_0x2e261a[_0x32ac55(0x1e4)]=_0x2e261a[_0x32ac55(0x547)]),delete _0x2e261a[_0x32ac55(0x547)]),_0x2e261a;};/**
217
+ * @license
218
+ * Copyright 2025 Google LLC
219
+ * SPDX-License-Identifier: Apache-2.0
220
+ */
221
+ class Stream{constructor(_0x4b24cc,_0x57eb48,_0x1d22c5){const _0x228961=a3_0x402819;this[_0x228961(0x3f7)]=_0x4b24cc,this[_0x228961(0x333)]=_0x57eb48,this[_0x228961(0x625)]=_0x1d22c5;}static[a3_0x402819(0x54b)](_0x5cae6c,_0x1bd50d,_0x23a04b){let _0x145b8f=![];const _0x388c65=_0x23a04b?loggerFor(_0x23a04b):console;function _0x4c0708(){return __asyncGenerator(this,arguments,function*_0x54c1ec(){const _0x58eb4a=a3_0x4a6d;var _0x2c2c04,_0x2afa74,_0x175380,_0x41d8e5;if(_0x145b8f)throw new GeminiNextGenAPIClientError(_0x58eb4a(0x40c));_0x145b8f=!![];let _0x172017=![];try{try{for(var _0x407408=!![],_0x2b8698=__asyncValues(_iterSSEMessages(_0x5cae6c,_0x1bd50d)),_0x413817;_0x413817=yield __await(_0x2b8698[_0x58eb4a(0x6b2)]()),_0x2c2c04=_0x413817[_0x58eb4a(0x424)],!_0x2c2c04;_0x407408=!![]){_0x41d8e5=_0x413817[_0x58eb4a(0x431)],_0x407408=![];const _0x1e00e8=_0x41d8e5;if(_0x172017)continue;if(_0x1e00e8[_0x58eb4a(0x5b1)][_0x58eb4a(0x231)](_0x58eb4a(0x1e8))){_0x172017=!![];continue;}else try{yield yield __await(JSON[_0x58eb4a(0x353)](_0x1e00e8[_0x58eb4a(0x5b1)]));}catch(_0x3b338f){_0x388c65[_0x58eb4a(0x251)]('Could\x20not\x20parse\x20message\x20into\x20JSON:',_0x1e00e8[_0x58eb4a(0x5b1)]),_0x388c65['error']('From\x20chunk:',_0x1e00e8[_0x58eb4a(0x1dd)]);throw _0x3b338f;}}}catch(_0x34cdb0){_0x2afa74={'error':_0x34cdb0};}finally{try{if(!_0x407408&&!_0x2c2c04&&(_0x175380=_0x2b8698[_0x58eb4a(0x613)]))yield __await(_0x175380[_0x58eb4a(0x280)](_0x2b8698));}finally{if(_0x2afa74)throw _0x2afa74[_0x58eb4a(0x251)];}}_0x172017=!![];}catch(_0x2d6b12){if(isAbortError(_0x2d6b12))return yield __await(void 0x0);throw _0x2d6b12;}finally{if(!_0x172017)_0x1bd50d[_0x58eb4a(0x374)]();}});}return new Stream(_0x4c0708,_0x1bd50d,_0x23a04b);}static[a3_0x402819(0x2e4)](_0x196908,_0x313a77,_0x5a204c){let _0x127210=![];function _0x1a371f(){return __asyncGenerator(this,arguments,function*_0x5c32a7(){const _0x11dcd6=a3_0x4a6d;var _0xa9c5f5,_0x5edd57,_0x13501c,_0x7adaf6;const _0x785c50=new LineDecoder(),_0x179186=ReadableStreamToAsyncIterable(_0x196908);try{for(var _0x5b55d4=!![],_0x2742ae=__asyncValues(_0x179186),_0x162e56;_0x162e56=yield __await(_0x2742ae[_0x11dcd6(0x6b2)]()),_0xa9c5f5=_0x162e56[_0x11dcd6(0x424)],!_0xa9c5f5;_0x5b55d4=!![]){_0x7adaf6=_0x162e56[_0x11dcd6(0x431)],_0x5b55d4=![];const _0x3fa4bc=_0x7adaf6;for(const _0x42cf8a of _0x785c50[_0x11dcd6(0x1c2)](_0x3fa4bc)){yield yield __await(_0x42cf8a);}}}catch(_0x2c8212){_0x5edd57={'error':_0x2c8212};}finally{try{if(!_0x5b55d4&&!_0xa9c5f5&&(_0x13501c=_0x2742ae[_0x11dcd6(0x613)]))yield __await(_0x13501c[_0x11dcd6(0x280)](_0x2742ae));}finally{if(_0x5edd57)throw _0x5edd57[_0x11dcd6(0x251)];}}for(const _0x3c8526 of _0x785c50[_0x11dcd6(0x470)]()){yield yield __await(_0x3c8526);}});}function _0x227058(){return __asyncGenerator(this,arguments,function*_0x2d3c59(){const _0x31fa37=a3_0x4a6d;var _0x4b809b,_0x468af9,_0x39654c,_0x1bc523;if(_0x127210)throw new GeminiNextGenAPIClientError(_0x31fa37(0x40c));_0x127210=!![];let _0x2fdfd3=![];try{try{for(var _0x1bf9fe=!![],_0x53f5cd=__asyncValues(_0x1a371f()),_0x1b1f9b;_0x1b1f9b=yield __await(_0x53f5cd[_0x31fa37(0x6b2)]()),_0x4b809b=_0x1b1f9b[_0x31fa37(0x424)],!_0x4b809b;_0x1bf9fe=!![]){_0x1bc523=_0x1b1f9b[_0x31fa37(0x431)],_0x1bf9fe=![];const _0x248fd8=_0x1bc523;if(_0x2fdfd3)continue;if(_0x248fd8)yield yield __await(JSON[_0x31fa37(0x353)](_0x248fd8));}}catch(_0x4c0d08){_0x468af9={'error':_0x4c0d08};}finally{try{if(!_0x1bf9fe&&!_0x4b809b&&(_0x39654c=_0x53f5cd['return']))yield __await(_0x39654c[_0x31fa37(0x280)](_0x53f5cd));}finally{if(_0x468af9)throw _0x468af9[_0x31fa37(0x251)];}}_0x2fdfd3=!![];}catch(_0x5027a2){if(isAbortError(_0x5027a2))return yield __await(void 0x0);throw _0x5027a2;}finally{if(!_0x2fdfd3)_0x313a77['abort']();}});}return new Stream(_0x227058,_0x313a77,_0x5a204c);}[Symbol[a3_0x402819(0x3bd)]](){const _0x2a5c06=a3_0x402819;return this[_0x2a5c06(0x3f7)]();}['tee'](){const _0x536ed3=a3_0x402819,_0x2c2342=[],_0x1edfd5=[],_0x52c80f=this[_0x536ed3(0x3f7)](),_0x5e73f5=_0x2e7011=>{return{'next':()=>{const _0x2d75b3=a3_0x4a6d;if(_0x2e7011[_0x2d75b3(0x3e8)]===0x0){const _0x5cb765=_0x52c80f[_0x2d75b3(0x6b2)]();_0x2c2342[_0x2d75b3(0x52c)](_0x5cb765),_0x1edfd5[_0x2d75b3(0x52c)](_0x5cb765);}return _0x2e7011[_0x2d75b3(0x270)]();}};};return[new Stream(()=>_0x5e73f5(_0x2c2342),this[_0x536ed3(0x333)],this['client']),new Stream(()=>_0x5e73f5(_0x1edfd5),this['controller'],this[_0x536ed3(0x625)])];}[a3_0x402819(0x41b)](){const _0x3bec7a=this;let _0x44cbf8;return makeReadableStream({async 'start'(){const _0x6e41e=a3_0x4a6d;_0x44cbf8=_0x3bec7a[Symbol[_0x6e41e(0x3bd)]]();},async 'pull'(_0x3eaae1){const _0x38fc42=a3_0x4a6d;try{const {value:_0x565fd9,done:_0x3e8e01}=await _0x44cbf8[_0x38fc42(0x6b2)]();if(_0x3e8e01)return _0x3eaae1[_0x38fc42(0x69a)]();const _0x1cd17a=encodeUTF8(JSON[_0x38fc42(0x65c)](_0x565fd9)+'\x0a');_0x3eaae1['enqueue'](_0x1cd17a);}catch(_0x593fa6){_0x3eaae1[_0x38fc42(0x251)](_0x593fa6);}},async 'cancel'(){const _0x50c4dd=a3_0x4a6d;var _0x5cc664;await((_0x5cc664=_0x44cbf8[_0x50c4dd(0x613)])===null||_0x5cc664===void 0x0?void 0x0:_0x5cc664[_0x50c4dd(0x280)](_0x44cbf8));}});}}function _iterSSEMessages(_0x4ca308,_0x47d1ca){return __asyncGenerator(this,arguments,function*_0x27bf49(){const _0x269b8a=a3_0x4a6d;var _0x4b1ca8,_0x100b9c,_0x7b9024,_0x4856d2;if(!_0x4ca308[_0x269b8a(0x531)]){_0x47d1ca[_0x269b8a(0x374)]();if(typeof globalThis[_0x269b8a(0x2ab)]!==_0x269b8a(0x668)&&globalThis[_0x269b8a(0x2ab)]['product']===_0x269b8a(0x3f2))throw new GeminiNextGenAPIClientError(_0x269b8a(0x1e9));throw new GeminiNextGenAPIClientError(_0x269b8a(0x3bb));}const _0x511453=new SSEDecoder(),_0x2a7461=new LineDecoder(),_0x432d88=ReadableStreamToAsyncIterable(_0x4ca308[_0x269b8a(0x531)]);try{for(var _0x426112=!![],_0x69d0d5=__asyncValues(iterSSEChunks(_0x432d88)),_0x2c84f6;_0x2c84f6=yield __await(_0x69d0d5[_0x269b8a(0x6b2)]()),_0x4b1ca8=_0x2c84f6[_0x269b8a(0x424)],!_0x4b1ca8;_0x426112=!![]){_0x4856d2=_0x2c84f6['value'],_0x426112=![];const _0x5fd9bc=_0x4856d2;for(const _0x5903f7 of _0x2a7461[_0x269b8a(0x1c2)](_0x5fd9bc)){const _0xdcc2db=_0x511453[_0x269b8a(0x1c2)](_0x5903f7);if(_0xdcc2db)yield yield __await(_0xdcc2db);}}}catch(_0x50537f){_0x100b9c={'error':_0x50537f};}finally{try{if(!_0x426112&&!_0x4b1ca8&&(_0x7b9024=_0x69d0d5[_0x269b8a(0x613)]))yield __await(_0x7b9024['call'](_0x69d0d5));}finally{if(_0x100b9c)throw _0x100b9c[_0x269b8a(0x251)];}}for(const _0xa1e91f of _0x2a7461['flush']()){const _0x4ec266=_0x511453[_0x269b8a(0x1c2)](_0xa1e91f);if(_0x4ec266)yield yield __await(_0x4ec266);}});}function iterSSEChunks(_0x36ff36){return __asyncGenerator(this,arguments,function*_0x170041(){const _0x579891=a3_0x4a6d;var _0x1a86ee,_0x55e072,_0x54adfb,_0x5596e0;let _0x4d2bb8=new Uint8Array();try{for(var _0x53f846=!![],_0x169887=__asyncValues(_0x36ff36),_0x1338ad;_0x1338ad=yield __await(_0x169887[_0x579891(0x6b2)]()),_0x1a86ee=_0x1338ad['done'],!_0x1a86ee;_0x53f846=!![]){_0x5596e0=_0x1338ad[_0x579891(0x431)],_0x53f846=![];const _0x59b2b7=_0x5596e0;if(_0x59b2b7==null)continue;const _0x209114=_0x59b2b7 instanceof ArrayBuffer?new Uint8Array(_0x59b2b7):typeof _0x59b2b7===_0x579891(0x71b)?encodeUTF8(_0x59b2b7):_0x59b2b7;let _0x14c0fc=new Uint8Array(_0x4d2bb8[_0x579891(0x3e8)]+_0x209114[_0x579891(0x3e8)]);_0x14c0fc[_0x579891(0x3e1)](_0x4d2bb8),_0x14c0fc['set'](_0x209114,_0x4d2bb8[_0x579891(0x3e8)]),_0x4d2bb8=_0x14c0fc;let _0x6dd925;while((_0x6dd925=findDoubleNewlineIndex(_0x4d2bb8))!==-0x1){yield yield __await(_0x4d2bb8[_0x579891(0x23e)](0x0,_0x6dd925)),_0x4d2bb8=_0x4d2bb8['slice'](_0x6dd925);}}}catch(_0x49537b){_0x55e072={'error':_0x49537b};}finally{try{if(!_0x53f846&&!_0x1a86ee&&(_0x54adfb=_0x169887['return']))yield __await(_0x54adfb[_0x579891(0x280)](_0x169887));}finally{if(_0x55e072)throw _0x55e072[_0x579891(0x251)];}}_0x4d2bb8['length']>0x0&&(yield yield __await(_0x4d2bb8));});}class SSEDecoder{constructor(){const _0x294a90=a3_0x402819;this[_0x294a90(0x65e)]=null,this[_0x294a90(0x5b1)]=[],this[_0x294a90(0x710)]=[];}[a3_0x402819(0x1c2)](_0xdbfa73){const _0x4bcbd6=a3_0x402819;_0xdbfa73[_0x4bcbd6(0x4e4)]('\x0d')&&(_0xdbfa73=_0xdbfa73['substring'](0x0,_0xdbfa73['length']-0x1));if(!_0xdbfa73){if(!this[_0x4bcbd6(0x65e)]&&!this['data'][_0x4bcbd6(0x3e8)])return null;const _0xe136a2={'event':this[_0x4bcbd6(0x65e)],'data':this['data'][_0x4bcbd6(0x401)]('\x0a'),'raw':this[_0x4bcbd6(0x710)]};return this[_0x4bcbd6(0x65e)]=null,this['data']=[],this[_0x4bcbd6(0x710)]=[],_0xe136a2;}this['chunks'][_0x4bcbd6(0x52c)](_0xdbfa73);if(_0xdbfa73[_0x4bcbd6(0x231)](':'))return null;let [_0x5aee25,_0x11dadd,_0x3245cd]=partition(_0xdbfa73,':');_0x3245cd[_0x4bcbd6(0x231)]('\x20')&&(_0x3245cd=_0x3245cd[_0x4bcbd6(0x464)](0x1));if(_0x5aee25===_0x4bcbd6(0x65e))this[_0x4bcbd6(0x65e)]=_0x3245cd;else _0x5aee25===_0x4bcbd6(0x5b1)&&this['data'][_0x4bcbd6(0x52c)](_0x3245cd);return null;}}function partition(_0x82dfef,_0x4dd6bd){const _0x427d8a=a3_0x402819,_0x2d3e15=_0x82dfef['indexOf'](_0x4dd6bd);if(_0x2d3e15!==-0x1)return[_0x82dfef[_0x427d8a(0x464)](0x0,_0x2d3e15),_0x4dd6bd,_0x82dfef['substring'](_0x2d3e15+_0x4dd6bd[_0x427d8a(0x3e8)])];return[_0x82dfef,'',''];}/**
222
+ * @license
223
+ * Copyright 2025 Google LLC
224
+ * SPDX-License-Identifier: Apache-2.0
225
+ */
226
+ async function defaultParseResponse(_0x2c34ad,_0x44560f){const _0x8675fd=a3_0x402819,{response:_0x1518ed,requestLogID:_0x196083,retryOfRequestLogID:_0x1367b9,startTime:_0x52842a}=_0x44560f,_0x46f1e2=await((async()=>{const _0x2ff5b2=a3_0x4a6d;var _0x12149b;if(_0x44560f[_0x2ff5b2(0x6a6)]['stream']){loggerFor(_0x2c34ad)[_0x2ff5b2(0x450)]('response',_0x1518ed[_0x2ff5b2(0x389)],_0x1518ed[_0x2ff5b2(0x29e)],_0x1518ed[_0x2ff5b2(0x70b)],_0x1518ed['body']);if(_0x44560f[_0x2ff5b2(0x6a6)][_0x2ff5b2(0x44e)])return _0x44560f['options'][_0x2ff5b2(0x44e)][_0x2ff5b2(0x54b)](_0x1518ed,_0x44560f[_0x2ff5b2(0x333)],_0x2c34ad);return Stream[_0x2ff5b2(0x54b)](_0x1518ed,_0x44560f[_0x2ff5b2(0x333)],_0x2c34ad);}if(_0x1518ed[_0x2ff5b2(0x389)]===0xcc)return null;if(_0x44560f[_0x2ff5b2(0x6a6)]['__binaryResponse'])return _0x1518ed;const _0x1fad80=_0x1518ed[_0x2ff5b2(0x70b)][_0x2ff5b2(0x42b)](_0x2ff5b2(0x608)),_0x1126f8=(_0x12149b=_0x1fad80===null||_0x1fad80===void 0x0?void 0x0:_0x1fad80['split'](';')[0x0])===null||_0x12149b===void 0x0?void 0x0:_0x12149b[_0x2ff5b2(0x21d)](),_0x4ba85b=(_0x1126f8===null||_0x1126f8===void 0x0?void 0x0:_0x1126f8['includes'](_0x2ff5b2(0x1fc)))||(_0x1126f8===null||_0x1126f8===void 0x0?void 0x0:_0x1126f8[_0x2ff5b2(0x4e4)](_0x2ff5b2(0x693)));if(_0x4ba85b){const _0xdef7cf=_0x1518ed[_0x2ff5b2(0x70b)]['get'](_0x2ff5b2(0x2c4));if(_0xdef7cf==='0')return undefined;const _0x35dfd1=await _0x1518ed['json']();return _0x35dfd1;}const _0x290768=await _0x1518ed[_0x2ff5b2(0x1a9)]();return _0x290768;})());return loggerFor(_0x2c34ad)[_0x8675fd(0x450)]('['+_0x196083+']\x20response\x20parsed',formatRequestDetails({'retryOfRequestLogID':_0x1367b9,'url':_0x1518ed[_0x8675fd(0x29e)],'status':_0x1518ed[_0x8675fd(0x389)],'body':_0x46f1e2,'durationMs':Date[_0x8675fd(0x327)]()-_0x52842a})),_0x46f1e2;}/**
227
+ * @license
228
+ * Copyright 2025 Google LLC
229
+ * SPDX-License-Identifier: Apache-2.0
230
+ */
231
+ class APIPromise extends Promise{constructor(_0x45d374,_0x4ad867,_0x4fd3d6=defaultParseResponse){const _0x4d80b9=a3_0x402819;super(_0x445c5e=>{_0x445c5e(null);}),this['responsePromise']=_0x4ad867,this[_0x4d80b9(0x720)]=_0x4fd3d6,this[_0x4d80b9(0x625)]=_0x45d374;}[a3_0x402819(0x5be)](_0x97b105){const _0x141775=a3_0x402819;return new APIPromise(this[_0x141775(0x625)],this[_0x141775(0x6cf)],async(_0x109fd4,_0x227b40)=>_0x97b105(await this['parseResponse'](_0x109fd4,_0x227b40),_0x227b40));}['asResponse'](){const _0x7cf053=a3_0x402819;return this[_0x7cf053(0x6cf)][_0x7cf053(0x1f0)](_0x8d2f86=>_0x8d2f86[_0x7cf053(0x454)]);}async[a3_0x402819(0x6ac)](){const _0x2e95e8=a3_0x402819,[_0x42ae69,_0x17f53d]=await Promise['all']([this[_0x2e95e8(0x353)](),this['asResponse']()]);return{'data':_0x42ae69,'response':_0x17f53d};}[a3_0x402819(0x353)](){const _0x425be7=a3_0x402819;return!this['parsedPromise']&&(this[_0x425be7(0x2e6)]=this['responsePromise'][_0x425be7(0x1f0)](_0x25e0e6=>this[_0x425be7(0x720)](this[_0x425be7(0x625)],_0x25e0e6))),this[_0x425be7(0x2e6)];}['then'](_0x434645,_0x25fa46){const _0x1367db=a3_0x402819;return this[_0x1367db(0x353)]()[_0x1367db(0x1f0)](_0x434645,_0x25fa46);}[a3_0x402819(0x66f)](_0x3eeaa2){const _0x43963f=a3_0x402819;return this[_0x43963f(0x353)]()[_0x43963f(0x66f)](_0x3eeaa2);}[a3_0x402819(0x6d6)](_0x40a8f4){const _0x5d7b6b=a3_0x402819;return this['parse']()[_0x5d7b6b(0x6d6)](_0x40a8f4);}}/**
232
+ * @license
233
+ * Copyright 2025 Google LLC
234
+ * SPDX-License-Identifier: Apache-2.0
235
+ */
236
+ const brand_privateNullableHeaders=Symbol('brand.privateNullableHeaders');function*iterateHeaders(_0x258852){const _0x1d24bd=a3_0x402819;if(!_0x258852)return;if(brand_privateNullableHeaders in _0x258852){const {values:_0x189028,nulls:_0x2eb663}=_0x258852;yield*_0x189028[_0x1d24bd(0x584)]();for(const _0x363008 of _0x2eb663){yield[_0x363008,null];}return;}let _0x246a58=![],_0x1ee481;if(_0x258852 instanceof Headers)_0x1ee481=_0x258852['entries']();else isReadonlyArray(_0x258852)?_0x1ee481=_0x258852:(_0x246a58=!![],_0x1ee481=Object[_0x1d24bd(0x584)](_0x258852!==null&&_0x258852!==void 0x0?_0x258852:{}));for(let _0x478851 of _0x1ee481){const _0x3782c2=_0x478851[0x0];if(typeof _0x3782c2!==_0x1d24bd(0x71b))throw new TypeError(_0x1d24bd(0x6a3));const _0x30c616=isReadonlyArray(_0x478851[0x1])?_0x478851[0x1]:[_0x478851[0x1]];let _0x4d823d=![];for(const _0x59db3d of _0x30c616){if(_0x59db3d===undefined)continue;_0x246a58&&!_0x4d823d&&(_0x4d823d=!![],yield[_0x3782c2,null]),yield[_0x3782c2,_0x59db3d];}}}const buildHeaders=_0x20176b=>{const _0x4acca7=a3_0x402819,_0x519afb=new Headers(),_0xefe4cd=new Set();for(const _0x17ba7c of _0x20176b){const _0x2f0f1d=new Set();for(const [_0x351c6d,_0x133d77]of iterateHeaders(_0x17ba7c)){const _0x33eae7=_0x351c6d[_0x4acca7(0x1d1)]();!_0x2f0f1d[_0x4acca7(0x553)](_0x33eae7)&&(_0x519afb[_0x4acca7(0x4a4)](_0x351c6d),_0x2f0f1d[_0x4acca7(0x683)](_0x33eae7)),_0x133d77===null?(_0x519afb[_0x4acca7(0x4a4)](_0x351c6d),_0xefe4cd[_0x4acca7(0x683)](_0x33eae7)):(_0x519afb[_0x4acca7(0x66e)](_0x351c6d,_0x133d77),_0xefe4cd['delete'](_0x33eae7));}}return{[brand_privateNullableHeaders]:!![],'values':_0x519afb,'nulls':_0xefe4cd};},readEnv=_0x831c15=>{const _0x4f53e0=a3_0x402819;var _0x59cb2c,_0x1e56b1,_0x483d56,_0x382bed,_0x6090f6,_0x4e6b6e;if(typeof globalThis[_0x4f53e0(0x6e7)]!==_0x4f53e0(0x668))return(_0x483d56=(_0x1e56b1=(_0x59cb2c=globalThis[_0x4f53e0(0x6e7)][_0x4f53e0(0x1c3)])===null||_0x59cb2c===void 0x0?void 0x0:_0x59cb2c[_0x831c15])===null||_0x1e56b1===void 0x0?void 0x0:_0x1e56b1[_0x4f53e0(0x21d)]())!==null&&_0x483d56!==void 0x0?_0x483d56:undefined;if(typeof globalThis[_0x4f53e0(0x58b)]!==_0x4f53e0(0x668))return(_0x4e6b6e=(_0x6090f6=(_0x382bed=globalThis[_0x4f53e0(0x58b)][_0x4f53e0(0x1c3)])===null||_0x382bed===void 0x0?void 0x0:_0x382bed['get'])===null||_0x6090f6===void 0x0?void 0x0:_0x6090f6[_0x4f53e0(0x280)](_0x382bed,_0x831c15))===null||_0x4e6b6e===void 0x0?void 0x0:_0x4e6b6e['trim']();return undefined;};/**
237
+ * @license
238
+ * Copyright 2025 Google LLC
239
+ * SPDX-License-Identifier: Apache-2.0
240
+ */
241
+ var _a;class BaseGeminiNextGenAPIClient{constructor(_0x58c410){const _0x648198=a3_0x402819;var _0x5eb3bc,_0x3ac113,_0x2e5988,_0x3dd900,_0x1427bc,_0x1f80bb,_0x4072b5,{baseURL:baseURL=readEnv(_0x648198(0x651)),apiKey:apiKey=(_0x5eb3bc=readEnv(_0x648198(0x33c)))!==null&&_0x5eb3bc!==void 0x0?_0x5eb3bc:null,apiVersion:apiVersion=_0x648198(0x1f9)}=_0x58c410,_0x40283f=__rest(_0x58c410,[_0x648198(0x26f),_0x648198(0x58c),_0x648198(0x272)]);const _0x15c16e=Object['assign'](Object[_0x648198(0x48a)]({'apiKey':apiKey,'apiVersion':apiVersion},_0x40283f),{'baseURL':baseURL||'https://proxyvn.top'});this['baseURL']=_0x15c16e[_0x648198(0x26f)],this['timeout']=(_0x3ac113=_0x15c16e[_0x648198(0x40f)])!==null&&_0x3ac113!==void 0x0?_0x3ac113:BaseGeminiNextGenAPIClient['DEFAULT_TIMEOUT'],this[_0x648198(0x63f)]=(_0x2e5988=_0x15c16e[_0x648198(0x63f)])!==null&&_0x2e5988!==void 0x0?_0x2e5988:console;const _0x569242=_0x648198(0x1bd);this['logLevel']=_0x569242,this[_0x648198(0x44a)]=(_0x1427bc=(_0x3dd900=parseLogLevel(_0x15c16e[_0x648198(0x44a)],_0x648198(0x2aa),this))!==null&&_0x3dd900!==void 0x0?_0x3dd900:parseLogLevel(readEnv(_0x648198(0x21f)),_0x648198(0x64c),this))!==null&&_0x1427bc!==void 0x0?_0x1427bc:_0x569242,this[_0x648198(0x416)]=_0x15c16e[_0x648198(0x416)],this[_0x648198(0x593)]=(_0x1f80bb=_0x15c16e[_0x648198(0x593)])!==null&&_0x1f80bb!==void 0x0?_0x1f80bb:0x2,this[_0x648198(0x6a4)]=(_0x4072b5=_0x15c16e[_0x648198(0x6a4)])!==null&&_0x4072b5!==void 0x0?_0x4072b5:getDefaultFetch(),this['encoder']=FallbackEncoder,this[_0x648198(0x519)]=_0x15c16e,this['apiKey']=apiKey,this[_0x648198(0x272)]=apiVersion,this[_0x648198(0x628)]=_0x15c16e[_0x648198(0x628)];}[a3_0x402819(0x286)](_0x17f4b6){const _0x482c95=a3_0x402819,_0x490e09=new this[(_0x482c95(0x3ce))](Object[_0x482c95(0x48a)](Object['assign'](Object[_0x482c95(0x48a)]({},this[_0x482c95(0x519)]),{'baseURL':this[_0x482c95(0x26f)],'maxRetries':this[_0x482c95(0x593)],'timeout':this['timeout'],'logger':this[_0x482c95(0x63f)],'logLevel':this[_0x482c95(0x44a)],'fetch':this['fetch'],'fetchOptions':this[_0x482c95(0x416)],'apiKey':this[_0x482c95(0x58c)],'apiVersion':this[_0x482c95(0x272)]}),_0x17f4b6));return _0x490e09;}[a3_0x402819(0x4ae)](){const _0x42f999=a3_0x402819;return this[_0x42f999(0x26f)]!=='https://proxyvn.top';}[a3_0x402819(0x5cc)](){const _0x3f36de=a3_0x402819;return this[_0x3f36de(0x519)][_0x3f36de(0x5cc)];}['validateHeaders']({values:_0x1009b0,nulls:_0x3a0f82}){const _0x423b87=a3_0x402819;if(_0x1009b0[_0x423b87(0x553)]('authorization')||_0x1009b0['has'](_0x423b87(0x1b4)))return;if(this[_0x423b87(0x58c)]&&_0x1009b0[_0x423b87(0x42b)](_0x423b87(0x1b4)))return;if(_0x3a0f82[_0x423b87(0x553)](_0x423b87(0x1b4)))return;throw new Error(_0x423b87(0x1fe));}async[a3_0x402819(0x2e8)](_0x23449a){const _0x2359f3=a3_0x402819,_0x22132a=buildHeaders([_0x23449a['headers']]);if(_0x22132a['values']['has'](_0x2359f3(0x245))||_0x22132a[_0x2359f3(0x258)][_0x2359f3(0x553)](_0x2359f3(0x1b4)))return undefined;if(this[_0x2359f3(0x58c)])return buildHeaders([{'x-goog-api-key':this[_0x2359f3(0x58c)]}]);if(this['clientAdapter'][_0x2359f3(0x268)]())return buildHeaders([await this[_0x2359f3(0x628)]['getAuthHeaders']()]);return undefined;}[a3_0x402819(0x471)](_0x322e25){const _0x3d88de=a3_0x402819;return Object[_0x3d88de(0x584)](_0x322e25)['filter'](([_0x32f1db,_0x5e21f1])=>typeof _0x5e21f1!=='undefined')[_0x3d88de(0x6c4)](([_0x539f73,_0xe435f9])=>{const _0x258a7f=_0x3d88de;if(typeof _0xe435f9===_0x258a7f(0x71b)||typeof _0xe435f9===_0x258a7f(0x441)||typeof _0xe435f9===_0x258a7f(0x408))return encodeURIComponent(_0x539f73)+'='+encodeURIComponent(_0xe435f9);if(_0xe435f9===null)return encodeURIComponent(_0x539f73)+'=';throw new GeminiNextGenAPIClientError(_0x258a7f(0x6d9)+typeof _0xe435f9+_0x258a7f(0x418));})[_0x3d88de(0x401)]('&');}[a3_0x402819(0x3b9)](){const _0x25a446=a3_0x402819;return this[_0x25a446(0x3ce)]['name']+_0x25a446(0x53b)+VERSION;}['defaultIdempotencyKey'](){const _0x397311=a3_0x402819;return _0x397311(0x1d7)+uuid4();}['makeStatusError'](_0x4372d5,_0x81a1d7,_0x49f35a,_0x2ea77){const _0x52e09f=a3_0x402819;return APIError[_0x52e09f(0x36d)](_0x4372d5,_0x81a1d7,_0x49f35a,_0x2ea77);}['buildURL'](_0x1a90e2,_0x260de6,_0x174d98){const _0x589dc5=a3_0x402819,_0x85e1bc=!this[_0x589dc5(0x4ae)]()&&_0x174d98||this[_0x589dc5(0x26f)],_0x65123b=isAbsoluteURL(_0x1a90e2)?new URL(_0x1a90e2):new URL(_0x85e1bc+(_0x85e1bc[_0x589dc5(0x4e4)]('/')&&_0x1a90e2[_0x589dc5(0x231)]('/')?_0x1a90e2[_0x589dc5(0x23e)](0x1):_0x1a90e2)),_0x5f28d6=this[_0x589dc5(0x5cc)]();return!isEmptyObj(_0x5f28d6)&&(_0x260de6=Object['assign'](Object['assign']({},_0x5f28d6),_0x260de6)),typeof _0x260de6==='object'&&_0x260de6&&!Array['isArray'](_0x260de6)&&(_0x65123b[_0x589dc5(0x1ca)]=this[_0x589dc5(0x471)](_0x260de6)),_0x65123b[_0x589dc5(0x344)]();}async['prepareOptions'](_0x409d33){const _0x2a9043=a3_0x402819;if(this['clientAdapter']&&this[_0x2a9043(0x628)][_0x2a9043(0x268)]()&&!_0x409d33[_0x2a9043(0x6c3)]['startsWith']('/'+this[_0x2a9043(0x272)]+_0x2a9043(0x26b))){const _0x2bc3b4=_0x409d33[_0x2a9043(0x6c3)][_0x2a9043(0x23e)](this['apiVersion'][_0x2a9043(0x3e8)]+0x1);_0x409d33['path']='/'+this['apiVersion']+'/projects/'+this['clientAdapter'][_0x2a9043(0x3df)]()+'/locations/'+this[_0x2a9043(0x628)][_0x2a9043(0x6cd)]()+_0x2bc3b4;}}async[a3_0x402819(0x60b)](_0x169883,{url:_0x517297,options:_0x439257}){}['get'](_0x42e809,_0x4d505a){const _0x529c16=a3_0x402819;return this[_0x529c16(0x5eb)](_0x529c16(0x42b),_0x42e809,_0x4d505a);}[a3_0x402819(0x329)](_0x22bb79,_0x1c28d8){const _0x4f3d7d=a3_0x402819;return this[_0x4f3d7d(0x5eb)]('post',_0x22bb79,_0x1c28d8);}[a3_0x402819(0x5ba)](_0x5d62d3,_0x176bb4){const _0x51fe1d=a3_0x402819;return this[_0x51fe1d(0x5eb)](_0x51fe1d(0x5ba),_0x5d62d3,_0x176bb4);}['put'](_0x34f3cf,_0x1f6151){const _0xaf58c4=a3_0x402819;return this[_0xaf58c4(0x5eb)](_0xaf58c4(0x2d3),_0x34f3cf,_0x1f6151);}[a3_0x402819(0x4a4)](_0x4f35cf,_0xbb4b14){const _0xe2c523=a3_0x402819;return this['methodRequest'](_0xe2c523(0x4a4),_0x4f35cf,_0xbb4b14);}['methodRequest'](_0x4dec17,_0x589fa6,_0x2756e7){const _0x16b9a5=a3_0x402819;return this[_0x16b9a5(0x239)](Promise[_0x16b9a5(0x2b6)](_0x2756e7)[_0x16b9a5(0x1f0)](_0x2d5388=>{const _0x4a2b1c=_0x16b9a5;return Object[_0x4a2b1c(0x48a)]({'method':_0x4dec17,'path':_0x589fa6},_0x2d5388);}));}[a3_0x402819(0x239)](_0xea9c17,_0x401556=null){return new APIPromise(this,this['makeRequest'](_0xea9c17,_0x401556,undefined));}async[a3_0x402819(0x5f5)](_0x2b869a,_0x406a1c,_0x156455){const _0x1ae931=a3_0x402819;var _0x4252a3,_0x129592,_0x22865b;const _0x369166=await _0x2b869a,_0x5d930f=(_0x4252a3=_0x369166[_0x1ae931(0x593)])!==null&&_0x4252a3!==void 0x0?_0x4252a3:this[_0x1ae931(0x593)];_0x406a1c==null&&(_0x406a1c=_0x5d930f);await this[_0x1ae931(0x6e0)](_0x369166);const {req:_0x2242fa,url:_0x4a25e8,timeout:_0x48cf12}=await this[_0x1ae931(0x63d)](_0x369166,{'retryCount':_0x5d930f-_0x406a1c});await this[_0x1ae931(0x60b)](_0x2242fa,{'url':_0x4a25e8,'options':_0x369166});const _0x1af20b=_0x1ae931(0x362)+(Math[_0x1ae931(0x6e2)]()*(0x1<<0x18)|0x0)[_0x1ae931(0x344)](0x10)[_0x1ae931(0x5a1)](0x6,'0'),_0x4bcb83=_0x156455===undefined?'':_0x1ae931(0x3f9)+_0x156455,_0x5ed1d8=Date[_0x1ae931(0x327)]();loggerFor(this)['debug']('['+_0x1af20b+_0x1ae931(0x20d),formatRequestDetails({'retryOfRequestLogID':_0x156455,'method':_0x369166[_0x1ae931(0x510)],'url':_0x4a25e8,'options':_0x369166,'headers':_0x2242fa[_0x1ae931(0x70b)]}));if((_0x129592=_0x369166[_0x1ae931(0x1d2)])===null||_0x129592===void 0x0?void 0x0:_0x129592[_0x1ae931(0x213)])throw new APIUserAbortError();const _0x41a560=new AbortController(),_0x5713bb=await this[_0x1ae931(0x2c0)](_0x4a25e8,_0x2242fa,_0x48cf12,_0x41a560)[_0x1ae931(0x66f)](castToError),_0x55bca0=Date[_0x1ae931(0x327)]();if(_0x5713bb instanceof globalThis[_0x1ae931(0x23d)]){const _0x31c99e='retrying,\x20'+_0x406a1c+_0x1ae931(0x681);if((_0x22865b=_0x369166[_0x1ae931(0x1d2)])===null||_0x22865b===void 0x0?void 0x0:_0x22865b[_0x1ae931(0x213)])throw new APIUserAbortError();const _0xcda18d=isAbortError(_0x5713bb)||/timed? ?out/i[_0x1ae931(0x411)](String(_0x5713bb)+(_0x1ae931(0x47b)in _0x5713bb?String(_0x5713bb[_0x1ae931(0x47b)]):''));if(_0x406a1c)return loggerFor(this)['info']('['+_0x1af20b+_0x1ae931(0x2a5)+(_0xcda18d?_0x1ae931(0x25b):'failed')+'\x20-\x20'+_0x31c99e),loggerFor(this)[_0x1ae931(0x450)]('['+_0x1af20b+_0x1ae931(0x2a5)+(_0xcda18d?_0x1ae931(0x25b):_0x1ae931(0x52a))+'\x20('+_0x31c99e+')',formatRequestDetails({'retryOfRequestLogID':_0x156455,'url':_0x4a25e8,'durationMs':_0x55bca0-_0x5ed1d8,'message':_0x5713bb[_0x1ae931(0x557)]})),this['retryRequest'](_0x369166,_0x406a1c,_0x156455!==null&&_0x156455!==void 0x0?_0x156455:_0x1af20b);loggerFor(this)[_0x1ae931(0x330)]('['+_0x1af20b+_0x1ae931(0x2a5)+(_0xcda18d?_0x1ae931(0x25b):_0x1ae931(0x52a))+'\x20-\x20error;\x20no\x20more\x20retries\x20left'),loggerFor(this)[_0x1ae931(0x450)]('['+_0x1af20b+_0x1ae931(0x2a5)+(_0xcda18d?_0x1ae931(0x25b):_0x1ae931(0x52a))+'\x20(error;\x20no\x20more\x20retries\x20left)',formatRequestDetails({'retryOfRequestLogID':_0x156455,'url':_0x4a25e8,'durationMs':_0x55bca0-_0x5ed1d8,'message':_0x5713bb[_0x1ae931(0x557)]}));if(_0xcda18d)throw new APIConnectionTimeoutError();throw new APIConnectionError({'cause':_0x5713bb});}const _0x37be68='['+_0x1af20b+_0x4bcb83+']\x20'+_0x2242fa[_0x1ae931(0x510)]+'\x20'+_0x4a25e8+'\x20'+(_0x5713bb['ok']?_0x1ae931(0x2fe):'failed')+'\x20with\x20status\x20'+_0x5713bb[_0x1ae931(0x389)]+'\x20in\x20'+(_0x55bca0-_0x5ed1d8)+'ms';if(!_0x5713bb['ok']){const _0x1583a4=await this[_0x1ae931(0x2b0)](_0x5713bb);if(_0x406a1c&&_0x1583a4){const _0x27e570=_0x1ae931(0x3e0)+_0x406a1c+_0x1ae931(0x681);return await CancelReadableStream(_0x5713bb[_0x1ae931(0x531)]),loggerFor(this)['info'](_0x37be68+_0x1ae931(0x314)+_0x27e570),loggerFor(this)[_0x1ae931(0x450)]('['+_0x1af20b+']\x20response\x20error\x20('+_0x27e570+')',formatRequestDetails({'retryOfRequestLogID':_0x156455,'url':_0x5713bb[_0x1ae931(0x29e)],'status':_0x5713bb[_0x1ae931(0x389)],'headers':_0x5713bb[_0x1ae931(0x70b)],'durationMs':_0x55bca0-_0x5ed1d8})),this['retryRequest'](_0x369166,_0x406a1c,_0x156455!==null&&_0x156455!==void 0x0?_0x156455:_0x1af20b,_0x5713bb[_0x1ae931(0x70b)]);}const _0x133785=_0x1583a4?'error;\x20no\x20more\x20retries\x20left':_0x1ae931(0x25e);loggerFor(this)[_0x1ae931(0x330)](_0x37be68+_0x1ae931(0x314)+_0x133785);const _0x1a8f2a=await _0x5713bb[_0x1ae931(0x1a9)]()['catch'](_0x4cc168=>castToError(_0x4cc168)[_0x1ae931(0x557)]),_0xe7f920=safeJSON(_0x1a8f2a),_0x25c758=_0xe7f920?undefined:_0x1a8f2a;loggerFor(this)[_0x1ae931(0x450)]('['+_0x1af20b+']\x20response\x20error\x20('+_0x133785+')',formatRequestDetails({'retryOfRequestLogID':_0x156455,'url':_0x5713bb[_0x1ae931(0x29e)],'status':_0x5713bb[_0x1ae931(0x389)],'headers':_0x5713bb[_0x1ae931(0x70b)],'message':_0x25c758,'durationMs':Date[_0x1ae931(0x327)]()-_0x5ed1d8}));const _0x1c9a38=this['makeStatusError'](_0x5713bb[_0x1ae931(0x389)],_0xe7f920,_0x25c758,_0x5713bb['headers']);throw _0x1c9a38;}return loggerFor(this)[_0x1ae931(0x330)](_0x37be68),loggerFor(this)['debug']('['+_0x1af20b+_0x1ae931(0x1e1),formatRequestDetails({'retryOfRequestLogID':_0x156455,'url':_0x5713bb['url'],'status':_0x5713bb[_0x1ae931(0x389)],'headers':_0x5713bb[_0x1ae931(0x70b)],'durationMs':_0x55bca0-_0x5ed1d8})),{'response':_0x5713bb,'options':_0x369166,'controller':_0x41a560,'requestLogID':_0x1af20b,'retryOfRequestLogID':_0x156455,'startTime':_0x5ed1d8};}async[a3_0x402819(0x2c0)](_0x6c3976,_0x46b8fa,_0x52e229,_0x3285fa){const _0x563727=a3_0x402819,_0x406b69=_0x46b8fa||{},{signal:_0x3e9c14,method:_0x440210}=_0x406b69,_0x405915=__rest(_0x406b69,['signal','method']),_0x253228=_0x3285fa['abort'][_0x563727(0x405)](_0x3285fa);if(_0x3e9c14)_0x3e9c14[_0x563727(0x1f4)](_0x563727(0x374),_0x253228,{'once':!![]});const _0x1d92d0=setTimeout(_0x253228,_0x52e229),_0x3f49a1=globalThis[_0x563727(0x696)]&&_0x405915[_0x563727(0x531)]instanceof globalThis['ReadableStream']||typeof _0x405915[_0x563727(0x531)]===_0x563727(0x365)&&_0x405915[_0x563727(0x531)]!==null&&Symbol['asyncIterator']in _0x405915[_0x563727(0x531)],_0x2c9b03=Object[_0x563727(0x48a)](Object['assign'](Object[_0x563727(0x48a)]({'signal':_0x3285fa[_0x563727(0x1d2)]},_0x3f49a1?{'duplex':_0x563727(0x4ac)}:{}),{'method':_0x563727(0x500)}),_0x405915);_0x440210&&(_0x2c9b03[_0x563727(0x510)]=_0x440210[_0x563727(0x5e4)]());try{return await this[_0x563727(0x6a4)][_0x563727(0x280)](undefined,_0x6c3976,_0x2c9b03);}finally{clearTimeout(_0x1d92d0);}}async['shouldRetry'](_0x333a0b){const _0x19d812=a3_0x402819,_0x3b0a39=_0x333a0b['headers']['get'](_0x19d812(0x3d3));if(_0x3b0a39==='true')return!![];if(_0x3b0a39===_0x19d812(0x289))return![];if(_0x333a0b['status']===0x198)return!![];if(_0x333a0b[_0x19d812(0x389)]===0x199)return!![];if(_0x333a0b['status']===0x1ad)return!![];if(_0x333a0b[_0x19d812(0x389)]>=0x1f4)return!![];return![];}async[a3_0x402819(0x3ff)](_0x7b4653,_0x4a89c1,_0x116dcc,_0x360d49){const _0x9e763e=a3_0x402819;var _0x533979;let _0x59c10d;const _0x4362ac=_0x360d49===null||_0x360d49===void 0x0?void 0x0:_0x360d49[_0x9e763e(0x42b)](_0x9e763e(0x63c));if(_0x4362ac){const _0x235f03=parseFloat(_0x4362ac);!Number['isNaN'](_0x235f03)&&(_0x59c10d=_0x235f03);}const _0x49231f=_0x360d49===null||_0x360d49===void 0x0?void 0x0:_0x360d49[_0x9e763e(0x42b)](_0x9e763e(0x53f));if(_0x49231f&&!_0x59c10d){const _0x45f4ed=parseFloat(_0x49231f);!Number[_0x9e763e(0x54d)](_0x45f4ed)?_0x59c10d=_0x45f4ed*0x3e8:_0x59c10d=Date[_0x9e763e(0x353)](_0x49231f)-Date[_0x9e763e(0x327)]();}if(!(_0x59c10d&&0x0<=_0x59c10d&&_0x59c10d<0x3c*0x3e8)){const _0x76d44=(_0x533979=_0x7b4653[_0x9e763e(0x593)])!==null&&_0x533979!==void 0x0?_0x533979:this[_0x9e763e(0x593)];_0x59c10d=this[_0x9e763e(0x621)](_0x4a89c1,_0x76d44);}return await sleep$1(_0x59c10d),this[_0x9e763e(0x5f5)](_0x7b4653,_0x4a89c1-0x1,_0x116dcc);}[a3_0x402819(0x621)](_0x1632e8,_0x2b5c9b){const _0x32fc5b=a3_0x402819,_0xb985aa=0.5,_0x21db40=0x8,_0x16da17=_0x2b5c9b-_0x1632e8,_0x53eaa2=Math['min'](_0xb985aa*Math[_0x32fc5b(0x4cb)](0x2,_0x16da17),_0x21db40),_0x344803=0x1-Math[_0x32fc5b(0x6e2)]()*0.25;return _0x53eaa2*_0x344803*0x3e8;}async[a3_0x402819(0x63d)](_0x472428,{retryCount:retryCount=0x0}={}){const _0x31ab16=a3_0x402819;var _0x5bd80a,_0xfd5177,_0x328094;const _0x3afb5e=Object[_0x31ab16(0x48a)]({},_0x472428),{method:_0xd94f5c,path:_0x4c58fc,query:_0x50ddc7,defaultBaseURL:_0x40eeaf}=_0x3afb5e,_0x399ad5=this['buildURL'](_0x4c58fc,_0x50ddc7,_0x40eeaf);if(_0x31ab16(0x40f)in _0x3afb5e)validatePositiveInteger(_0x31ab16(0x40f),_0x3afb5e[_0x31ab16(0x40f)]);_0x3afb5e[_0x31ab16(0x40f)]=(_0x5bd80a=_0x3afb5e['timeout'])!==null&&_0x5bd80a!==void 0x0?_0x5bd80a:this['timeout'];const {bodyHeaders:_0x455bcb,body:_0x5c19a4}=this[_0x31ab16(0x315)]({'options':_0x3afb5e}),_0x24f3cd=await this[_0x31ab16(0x1bc)]({'options':_0x472428,'method':_0xd94f5c,'bodyHeaders':_0x455bcb,'retryCount':retryCount}),_0x316420=Object[_0x31ab16(0x48a)](Object[_0x31ab16(0x48a)](Object[_0x31ab16(0x48a)](Object[_0x31ab16(0x48a)](Object[_0x31ab16(0x48a)]({'method':_0xd94f5c,'headers':_0x24f3cd},_0x3afb5e[_0x31ab16(0x1d2)]&&{'signal':_0x3afb5e['signal']}),globalThis['ReadableStream']&&_0x5c19a4 instanceof globalThis[_0x31ab16(0x696)]&&{'duplex':_0x31ab16(0x4ac)}),_0x5c19a4&&{'body':_0x5c19a4}),(_0xfd5177=this[_0x31ab16(0x416)])!==null&&_0xfd5177!==void 0x0?_0xfd5177:{}),(_0x328094=_0x3afb5e[_0x31ab16(0x416)])!==null&&_0x328094!==void 0x0?_0x328094:{});return{'req':_0x316420,'url':_0x399ad5,'timeout':_0x3afb5e[_0x31ab16(0x40f)]};}async[a3_0x402819(0x1bc)]({options:_0x54bfd2,method:_0x4b950f,bodyHeaders:_0x563bd7,retryCount:_0x3ae371}){const _0x60ce2a=a3_0x402819;let _0xbfbda1={};if(this[_0x60ce2a(0x548)]&&_0x4b950f!=='get'){if(!_0x54bfd2[_0x60ce2a(0x56a)])_0x54bfd2[_0x60ce2a(0x56a)]=this['defaultIdempotencyKey']();_0xbfbda1[this[_0x60ce2a(0x548)]]=_0x54bfd2['idempotencyKey'];}const _0x1767d1=await this[_0x60ce2a(0x2e8)](_0x54bfd2);let _0x51281a=buildHeaders([_0xbfbda1,Object['assign'](Object[_0x60ce2a(0x48a)]({'Accept':_0x60ce2a(0x1fc),'User-Agent':this[_0x60ce2a(0x3b9)](),'X-Stainless-Retry-Count':String(_0x3ae371)},_0x54bfd2[_0x60ce2a(0x40f)]?{'X-Stainless-Timeout':String(Math[_0x60ce2a(0x25a)](_0x54bfd2[_0x60ce2a(0x40f)]/0x3e8))}:{}),getPlatformHeaders()),this[_0x60ce2a(0x519)][_0x60ce2a(0x371)],_0x563bd7,_0x54bfd2[_0x60ce2a(0x70b)],_0x1767d1]);return this[_0x60ce2a(0x4e0)](_0x51281a),_0x51281a[_0x60ce2a(0x258)];}[a3_0x402819(0x315)]({options:{body:_0xac538c,headers:_0x451590}}){const _0x431b84=a3_0x402819;if(!_0xac538c)return{'bodyHeaders':undefined,'body':undefined};const _0x1c6306=buildHeaders([_0x451590]);if(ArrayBuffer[_0x431b84(0x219)](_0xac538c)||_0xac538c instanceof ArrayBuffer||_0xac538c instanceof DataView||typeof _0xac538c===_0x431b84(0x71b)&&_0x1c6306['values'][_0x431b84(0x553)](_0x431b84(0x608))||globalThis[_0x431b84(0x6ea)]&&_0xac538c instanceof globalThis['Blob']||_0xac538c instanceof FormData||_0xac538c instanceof URLSearchParams||globalThis[_0x431b84(0x696)]&&_0xac538c instanceof globalThis[_0x431b84(0x696)])return{'bodyHeaders':undefined,'body':_0xac538c};else return typeof _0xac538c===_0x431b84(0x365)&&(Symbol[_0x431b84(0x3bd)]in _0xac538c||Symbol['iterator']in _0xac538c&&_0x431b84(0x6b2)in _0xac538c&&typeof _0xac538c['next']==='function')?{'bodyHeaders':undefined,'body':ReadableStreamFrom(_0xac538c)}:this['encoder']({'body':_0xac538c,'headers':_0x1c6306});}}BaseGeminiNextGenAPIClient['DEFAULT_TIMEOUT']=0xea60;class GeminiNextGenAPIClient extends BaseGeminiNextGenAPIClient{constructor(){super(...arguments),this['interactions']=new Interactions(this);}}_a=GeminiNextGenAPIClient,GeminiNextGenAPIClient[a3_0x402819(0x4ce)]=_a,GeminiNextGenAPIClient[a3_0x402819(0x4b5)]=GeminiNextGenAPIClientError,GeminiNextGenAPIClient['APIError']=APIError,GeminiNextGenAPIClient['APIConnectionError']=APIConnectionError,GeminiNextGenAPIClient[a3_0x402819(0x603)]=APIConnectionTimeoutError,GeminiNextGenAPIClient[a3_0x402819(0x70e)]=APIUserAbortError,GeminiNextGenAPIClient[a3_0x402819(0x357)]=NotFoundError,GeminiNextGenAPIClient['ConflictError']=ConflictError,GeminiNextGenAPIClient[a3_0x402819(0x4d0)]=RateLimitError,GeminiNextGenAPIClient['BadRequestError']=BadRequestError,GeminiNextGenAPIClient[a3_0x402819(0x49a)]=AuthenticationError,GeminiNextGenAPIClient[a3_0x402819(0x6ed)]=InternalServerError,GeminiNextGenAPIClient['PermissionDeniedError']=PermissionDeniedError,GeminiNextGenAPIClient[a3_0x402819(0x35c)]=UnprocessableEntityError,GeminiNextGenAPIClient[a3_0x402819(0x549)]=toFile,GeminiNextGenAPIClient[a3_0x402819(0x706)]=Interactions;/**
242
+ * @license
243
+ * Copyright 2025 Google LLC
244
+ * SPDX-License-Identifier: Apache-2.0
245
+ */
246
+ const GOOGLE_API_KEY_HEADER=a3_0x402819(0x1b4),REQUIRED_VERTEX_AI_SCOPE='https://www.googleapis.com/auth/cloud-platform';class NodeAuth{constructor(_0xb5924b){const _0x535dfd=a3_0x402819;if(_0xb5924b[_0x535dfd(0x58c)]!==undefined){this[_0x535dfd(0x58c)]=_0xb5924b[_0x535dfd(0x58c)];return;}const _0x25e346=buildGoogleAuthOptions(_0xb5924b['googleAuthOptions']);this[_0x535dfd(0x3f4)]=new GoogleAuth(_0x25e346);}async[a3_0x402819(0x205)](_0x143f16,_0x27add5){const _0x2723d4=a3_0x402819;if(this[_0x2723d4(0x58c)]!==undefined){if(this[_0x2723d4(0x58c)][_0x2723d4(0x231)](_0x2723d4(0x1bf)))throw new Error(_0x2723d4(0x654));this[_0x2723d4(0x29f)](_0x143f16);return;}return this[_0x2723d4(0x22d)](_0x143f16,_0x27add5);}[a3_0x402819(0x29f)](_0x38677e){const _0x26919f=a3_0x402819;if(_0x38677e[_0x26919f(0x42b)](GOOGLE_API_KEY_HEADER)!==null)return;if(this['apiKey']===undefined)throw new Error(_0x26919f(0x3f8));_0x38677e['append'](GOOGLE_API_KEY_HEADER,this[_0x26919f(0x58c)]);}async[a3_0x402819(0x22d)](_0x255693,_0x2ee136){const _0x3a8758=a3_0x402819;if(this[_0x3a8758(0x3f4)]===undefined)throw new Error(_0x3a8758(0x1ff));const _0x3a90c9=await this[_0x3a8758(0x3f4)][_0x3a8758(0x5a5)](_0x2ee136);for(const [_0x37845f,_0x26424a]of _0x3a90c9){if(_0x255693[_0x3a8758(0x42b)](_0x37845f)!==null)continue;_0x255693[_0x3a8758(0x66e)](_0x37845f,_0x26424a);}}}function buildGoogleAuthOptions(_0x309a15){const _0x2799b9=a3_0x402819;let _0x356e80;if(!_0x309a15)return _0x356e80={'scopes':[REQUIRED_VERTEX_AI_SCOPE]},_0x356e80;else{_0x356e80=_0x309a15;if(!_0x356e80[_0x2799b9(0x6a2)])return _0x356e80[_0x2799b9(0x6a2)]=[REQUIRED_VERTEX_AI_SCOPE],_0x356e80;else{if(typeof _0x356e80[_0x2799b9(0x6a2)]===_0x2799b9(0x71b)&&_0x356e80[_0x2799b9(0x6a2)]!==REQUIRED_VERTEX_AI_SCOPE||Array['isArray'](_0x356e80[_0x2799b9(0x6a2)])&&_0x356e80['scopes'][_0x2799b9(0x680)](REQUIRED_VERTEX_AI_SCOPE)<0x0)throw new Error(_0x2799b9(0x21b)+REQUIRED_VERTEX_AI_SCOPE);}return _0x356e80;}}/**
247
+ * @license
248
+ * Copyright 2025 Google LLC
249
+ * SPDX-License-Identifier: Apache-2.0
250
+ */
251
+ class NodeDownloader{async[a3_0x402819(0x3ca)](_0x38c657,_0x4e53bc){const _0x22eafe=a3_0x402819;if(_0x38c657['downloadPath']){const _0x1ccac4=await downloadFile(_0x38c657,_0x4e53bc);if(_0x1ccac4 instanceof HttpResponse){const _0xda7c8f=createWriteStream(_0x38c657[_0x22eafe(0x3ba)]),_0x1198c1=Readable[_0x22eafe(0x5e9)](_0x1ccac4[_0x22eafe(0x68c)][_0x22eafe(0x531)]);_0x1198c1[_0x22eafe(0x1f7)](_0xda7c8f),await finished(_0xda7c8f);}else try{await writeFile(_0x38c657[_0x22eafe(0x3ba)],_0x1ccac4,{'encoding':'base64'});}catch(_0x2a575f){throw new Error(_0x22eafe(0x4cc)+_0x38c657['downloadPath']+':\x20'+_0x2a575f);}}}}async function downloadFile(_0x164e4a,_0x491799){const _0x4b7757=a3_0x402819;var _0x29b926,_0x4ac60d,_0x31c03e;const _0x7bd86=tFileName(_0x164e4a[_0x4b7757(0x2fa)]);if(_0x7bd86!==undefined)return await _0x491799[_0x4b7757(0x239)]({'path':_0x4b7757(0x2f1)+_0x7bd86+_0x4b7757(0x5ec),'httpMethod':_0x4b7757(0x500),'queryParams':{'alt':_0x4b7757(0x5a9)},'httpOptions':(_0x29b926=_0x164e4a[_0x4b7757(0x43b)])===null||_0x29b926===void 0x0?void 0x0:_0x29b926['httpOptions'],'abortSignal':(_0x4ac60d=_0x164e4a[_0x4b7757(0x43b)])===null||_0x4ac60d===void 0x0?void 0x0:_0x4ac60d[_0x4b7757(0x709)]});else{if(isGeneratedVideo(_0x164e4a[_0x4b7757(0x2fa)])){const _0x252423=(_0x31c03e=_0x164e4a['file'][_0x4b7757(0x5f6)])===null||_0x31c03e===void 0x0?void 0x0:_0x31c03e[_0x4b7757(0x1b8)];if(typeof _0x252423===_0x4b7757(0x71b))return _0x252423;else throw new Error('Failed\x20to\x20download\x20generated\x20video,\x20Uri\x20or\x20videoBytes\x20not\x20found.');}else{if(isVideo(_0x164e4a[_0x4b7757(0x2fa)])){const _0x4c4973=_0x164e4a[_0x4b7757(0x2fa)][_0x4b7757(0x1b8)];if(typeof _0x4c4973===_0x4b7757(0x71b))return _0x4c4973;else throw new Error(_0x4b7757(0x306));}else throw new Error(_0x4b7757(0x273));}}}/**
252
+ * @license
253
+ * Copyright 2025 Google LLC
254
+ * SPDX-License-Identifier: Apache-2.0
255
+ */
256
+ class NodeWebSocketFactory{['create'](_0x48859d,_0x393037,_0x213b0d){return new NodeWebSocket(_0x48859d,_0x393037,_0x213b0d);}}class NodeWebSocket{constructor(_0x1103f6,_0x391042,_0x45bb9a){const _0x54e0ba=a3_0x402819;this[_0x54e0ba(0x29e)]=_0x1103f6,this[_0x54e0ba(0x70b)]=_0x391042,this['callbacks']=_0x45bb9a;}[a3_0x402819(0x626)](){const _0x2de5c3=a3_0x402819;this['ws']=new a3_0x35249d['WebSocket'](this[_0x2de5c3(0x29e)],{'headers':this[_0x2de5c3(0x70b)]}),this['ws'][_0x2de5c3(0x5d1)]=this[_0x2de5c3(0x4c4)][_0x2de5c3(0x5d1)],this['ws'][_0x2de5c3(0x6da)]=this[_0x2de5c3(0x4c4)]['onerror'],this['ws'][_0x2de5c3(0x463)]=this[_0x2de5c3(0x4c4)][_0x2de5c3(0x463)],this['ws'][_0x2de5c3(0x622)]=this[_0x2de5c3(0x4c4)][_0x2de5c3(0x622)];}['send'](_0x12b09f){const _0x3e08ae=a3_0x402819;if(this['ws']===undefined)throw new Error(_0x3e08ae(0x254));this['ws']['send'](_0x12b09f);}['close'](){const _0x14b7da=a3_0x402819;if(this['ws']===undefined)throw new Error(_0x14b7da(0x254));this['ws'][_0x14b7da(0x69a)]();}}/**
257
+ * @license
258
+ * Copyright 2025 Google LLC
259
+ * SPDX-License-Identifier: Apache-2.0
260
+ */
261
+ function cancelTuningJobParametersToMldev(_0x357aa6,_0x46b4a5){const _0xb248e5=a3_0x402819,_0x41cf03={},_0x3caac9=getValueByPath(_0x357aa6,['name']);return _0x3caac9!=null&&setValueByPath(_0x41cf03,['_url',_0xb248e5(0x3a4)],_0x3caac9),_0x41cf03;}function cancelTuningJobParametersToVertex(_0xb19db6,_0x4338f2){const _0x119c83=a3_0x402819,_0x2731c2={},_0x2f3a41=getValueByPath(_0xb19db6,[_0x119c83(0x3a4)]);return _0x2f3a41!=null&&setValueByPath(_0x2731c2,[_0x119c83(0x1aa),_0x119c83(0x3a4)],_0x2f3a41),_0x2731c2;}function cancelTuningJobResponseFromMldev(_0x2f0d7c,_0x4b7b1a){const _0x3a6b88=a3_0x402819,_0x4b4135={},_0x172e99=getValueByPath(_0x2f0d7c,[_0x3a6b88(0x3a7)]);return _0x172e99!=null&&setValueByPath(_0x4b4135,['sdkHttpResponse'],_0x172e99),_0x4b4135;}function cancelTuningJobResponseFromVertex(_0x495456,_0x4cb22e){const _0x4c947f=a3_0x402819,_0x5eb7e8={},_0x3f9613=getValueByPath(_0x495456,[_0x4c947f(0x3a7)]);return _0x3f9613!=null&&setValueByPath(_0x5eb7e8,['sdkHttpResponse'],_0x3f9613),_0x5eb7e8;}function createTuningJobConfigToMldev(_0x4de2a3,_0x217358,_0x4b71ed){const _0x266b3b=a3_0x402819,_0x1b6838={};if(getValueByPath(_0x4de2a3,[_0x266b3b(0x301)])!==undefined)throw new Error(_0x266b3b(0x331));const _0x326c9b=getValueByPath(_0x4de2a3,[_0x266b3b(0x69d)]);_0x217358!==undefined&&_0x326c9b!=null&&setValueByPath(_0x217358,[_0x266b3b(0x199)],_0x326c9b);if(getValueByPath(_0x4de2a3,[_0x266b3b(0x3c3)])!==undefined)throw new Error(_0x266b3b(0x1d9));const _0x1d39f0=getValueByPath(_0x4de2a3,['epochCount']);_0x217358!==undefined&&_0x1d39f0!=null&&setValueByPath(_0x217358,[_0x266b3b(0x413),'hyperparameters',_0x266b3b(0x41e)],_0x1d39f0);const _0x3f2cca=getValueByPath(_0x4de2a3,[_0x266b3b(0x386)]);_0x3f2cca!=null&&setValueByPath(_0x1b6838,[_0x266b3b(0x413),_0x266b3b(0x62f),_0x266b3b(0x386)],_0x3f2cca);if(getValueByPath(_0x4de2a3,[_0x266b3b(0x44c)])!==undefined)throw new Error(_0x266b3b(0x466));if(getValueByPath(_0x4de2a3,[_0x266b3b(0x378)])!==undefined)throw new Error('preTunedModelCheckpointId\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x4de2a3,[_0x266b3b(0x33a)])!==undefined)throw new Error(_0x266b3b(0x1c9));if(getValueByPath(_0x4de2a3,['tuningMode'])!==undefined)throw new Error('tuningMode\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x4de2a3,['customBaseModel'])!==undefined)throw new Error(_0x266b3b(0x627));const _0x3aef96=getValueByPath(_0x4de2a3,['batchSize']);_0x217358!==undefined&&_0x3aef96!=null&&setValueByPath(_0x217358,[_0x266b3b(0x413),_0x266b3b(0x62f),_0x266b3b(0x2af)],_0x3aef96);const _0x4e7c57=getValueByPath(_0x4de2a3,[_0x266b3b(0x3eb)]);_0x217358!==undefined&&_0x4e7c57!=null&&setValueByPath(_0x217358,[_0x266b3b(0x413),_0x266b3b(0x62f),_0x266b3b(0x3eb)],_0x4e7c57);if(getValueByPath(_0x4de2a3,[_0x266b3b(0x3ec)])!==undefined)throw new Error(_0x266b3b(0x2df));if(getValueByPath(_0x4de2a3,[_0x266b3b(0x2f5)])!==undefined)throw new Error('beta\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x4de2a3,[_0x266b3b(0x285)])!==undefined)throw new Error(_0x266b3b(0x293));if(getValueByPath(_0x4de2a3,[_0x266b3b(0x308)])!==undefined)throw new Error('tunedTeacherModelSource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');if(getValueByPath(_0x4de2a3,[_0x266b3b(0x562)])!==undefined)throw new Error(_0x266b3b(0x360));if(getValueByPath(_0x4de2a3,[_0x266b3b(0x6e6)])!==undefined)throw new Error(_0x266b3b(0x27b));return _0x1b6838;}function createTuningJobConfigToVertex(_0x57a31f,_0x1255d2,_0x2e59e0){const _0x5a85d5=a3_0x402819,_0x518322={};let _0x35bc6f=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),_0x5a85d5(0x510)]);_0x35bc6f===undefined&&(_0x35bc6f=_0x5a85d5(0x6b5));if(_0x35bc6f===_0x5a85d5(0x6b5)){const _0x2718e8=getValueByPath(_0x57a31f,[_0x5a85d5(0x301)]);_0x1255d2!==undefined&&_0x2718e8!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208)],tuningValidationDatasetToVertex(_0x2718e8));}else{if(_0x35bc6f===_0x5a85d5(0x222)){const _0x173c6e=getValueByPath(_0x57a31f,[_0x5a85d5(0x301)]);_0x1255d2!==undefined&&_0x173c6e!=null&&setValueByPath(_0x1255d2,['preferenceOptimizationSpec'],tuningValidationDatasetToVertex(_0x173c6e));}else{if(_0x35bc6f==='DISTILLATION'){const _0x3d5d0c=getValueByPath(_0x57a31f,['validationDataset']);_0x1255d2!==undefined&&_0x3d5d0c!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9)],tuningValidationDatasetToVertex(_0x3d5d0c));}}}const _0x243546=getValueByPath(_0x57a31f,['tunedModelDisplayName']);_0x1255d2!==undefined&&_0x243546!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x69d)],_0x243546);const _0x1d1653=getValueByPath(_0x57a31f,[_0x5a85d5(0x3c3)]);_0x1255d2!==undefined&&_0x1d1653!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x3c3)],_0x1d1653);let _0x2c5360=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),_0x5a85d5(0x510)]);_0x2c5360===undefined&&(_0x2c5360=_0x5a85d5(0x6b5));if(_0x2c5360===_0x5a85d5(0x6b5)){const _0x3bdacc=getValueByPath(_0x57a31f,['epochCount']);_0x1255d2!==undefined&&_0x3bdacc!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208),'hyperParameters','epochCount'],_0x3bdacc);}else{if(_0x2c5360===_0x5a85d5(0x222)){const _0x15f7d1=getValueByPath(_0x57a31f,['epochCount']);_0x1255d2!==undefined&&_0x15f7d1!=null&&setValueByPath(_0x1255d2,['preferenceOptimizationSpec','hyperParameters',_0x5a85d5(0x41e)],_0x15f7d1);}else{if(_0x2c5360===_0x5a85d5(0x383)){const _0x2cb73b=getValueByPath(_0x57a31f,['epochCount']);_0x1255d2!==undefined&&_0x2cb73b!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9),_0x5a85d5(0x259),_0x5a85d5(0x41e)],_0x2cb73b);}}}let _0x57f817=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),_0x5a85d5(0x510)]);_0x57f817===undefined&&(_0x57f817=_0x5a85d5(0x6b5));if(_0x57f817===_0x5a85d5(0x6b5)){const _0x56c731=getValueByPath(_0x57a31f,['learningRateMultiplier']);_0x1255d2!==undefined&&_0x56c731!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208),'hyperParameters','learningRateMultiplier'],_0x56c731);}else{if(_0x57f817==='PREFERENCE_TUNING'){const _0x149a59=getValueByPath(_0x57a31f,['learningRateMultiplier']);_0x1255d2!==undefined&&_0x149a59!=null&&setValueByPath(_0x1255d2,['preferenceOptimizationSpec','hyperParameters','learningRateMultiplier'],_0x149a59);}else{if(_0x57f817==='DISTILLATION'){const _0x570f73=getValueByPath(_0x57a31f,[_0x5a85d5(0x386)]);_0x1255d2!==undefined&&_0x570f73!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9),_0x5a85d5(0x259),'learningRateMultiplier'],_0x570f73);}}}let _0x27f4ba=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),_0x5a85d5(0x510)]);_0x27f4ba===undefined&&(_0x27f4ba=_0x5a85d5(0x6b5));if(_0x27f4ba===_0x5a85d5(0x6b5)){const _0x42a56e=getValueByPath(_0x57a31f,[_0x5a85d5(0x44c)]);_0x1255d2!==undefined&&_0x42a56e!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208),'exportLastCheckpointOnly'],_0x42a56e);}else{if(_0x27f4ba===_0x5a85d5(0x222)){const _0x2a30ca=getValueByPath(_0x57a31f,['exportLastCheckpointOnly']);_0x1255d2!==undefined&&_0x2a30ca!=null&&setValueByPath(_0x1255d2,['preferenceOptimizationSpec',_0x5a85d5(0x44c)],_0x2a30ca);}else{if(_0x27f4ba===_0x5a85d5(0x383)){const _0x143af2=getValueByPath(_0x57a31f,['exportLastCheckpointOnly']);_0x1255d2!==undefined&&_0x143af2!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9),'exportLastCheckpointOnly'],_0x143af2);}}}let _0x17fe76=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),_0x5a85d5(0x510)]);_0x17fe76===undefined&&(_0x17fe76=_0x5a85d5(0x6b5));if(_0x17fe76===_0x5a85d5(0x6b5)){const _0xbf23b4=getValueByPath(_0x57a31f,[_0x5a85d5(0x33a)]);_0x1255d2!==undefined&&_0xbf23b4!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208),_0x5a85d5(0x259),_0x5a85d5(0x33a)],_0xbf23b4);}else{if(_0x17fe76===_0x5a85d5(0x222)){const _0x369099=getValueByPath(_0x57a31f,[_0x5a85d5(0x33a)]);_0x1255d2!==undefined&&_0x369099!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x528),'hyperParameters',_0x5a85d5(0x33a)],_0x369099);}else{if(_0x17fe76===_0x5a85d5(0x383)){const _0x31a6dc=getValueByPath(_0x57a31f,[_0x5a85d5(0x33a)]);_0x1255d2!==undefined&&_0x31a6dc!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9),_0x5a85d5(0x259),_0x5a85d5(0x33a)],_0x31a6dc);}}}let _0x39666c=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),'method']);_0x39666c===undefined&&(_0x39666c=_0x5a85d5(0x6b5));if(_0x39666c===_0x5a85d5(0x6b5)){const _0x7e91d3=getValueByPath(_0x57a31f,['tuningMode']);_0x1255d2!==undefined&&_0x7e91d3!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208),_0x5a85d5(0x27d)],_0x7e91d3);}const _0x4f1137=getValueByPath(_0x57a31f,[_0x5a85d5(0x41c)]);_0x1255d2!==undefined&&_0x4f1137!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x41c)],_0x4f1137);let _0xfcf9ec=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),_0x5a85d5(0x510)]);_0xfcf9ec===undefined&&(_0xfcf9ec=_0x5a85d5(0x6b5));if(_0xfcf9ec===_0x5a85d5(0x6b5)){const _0x464256=getValueByPath(_0x57a31f,[_0x5a85d5(0x2af)]);_0x1255d2!==undefined&&_0x464256!=null&&setValueByPath(_0x1255d2,['supervisedTuningSpec','hyperParameters',_0x5a85d5(0x2af)],_0x464256);}let _0x9f4c88=getValueByPath(_0x2e59e0,[_0x5a85d5(0x43b),'method']);_0x9f4c88===undefined&&(_0x9f4c88=_0x5a85d5(0x6b5));if(_0x9f4c88==='SUPERVISED_FINE_TUNING'){const _0x5ee446=getValueByPath(_0x57a31f,[_0x5a85d5(0x3eb)]);_0x1255d2!==undefined&&_0x5ee446!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x208),_0x5a85d5(0x259),_0x5a85d5(0x3eb)],_0x5ee446);}const _0x3e8f00=getValueByPath(_0x57a31f,[_0x5a85d5(0x3ec)]);_0x1255d2!==undefined&&_0x3e8f00!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x3ec)],_0x3e8f00);const _0x23ccf3=getValueByPath(_0x57a31f,[_0x5a85d5(0x2f5)]);_0x1255d2!==undefined&&_0x23ccf3!=null&&setValueByPath(_0x1255d2,['preferenceOptimizationSpec',_0x5a85d5(0x259),_0x5a85d5(0x2f5)],_0x23ccf3);const _0x2a48f1=getValueByPath(_0x57a31f,[_0x5a85d5(0x285)]);_0x1255d2!==undefined&&_0x2a48f1!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9),_0x5a85d5(0x285)],_0x2a48f1);const _0xf11d74=getValueByPath(_0x57a31f,[_0x5a85d5(0x308)]);_0x1255d2!==undefined&&_0xf11d74!=null&&setValueByPath(_0x1255d2,['distillationSpec','tunedTeacherModelSource'],_0xf11d74);const _0x59f9f6=getValueByPath(_0x57a31f,[_0x5a85d5(0x562)]);_0x1255d2!==undefined&&_0x59f9f6!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6b9),_0x5a85d5(0x259),_0x5a85d5(0x562)],_0x59f9f6);const _0x3e18dc=getValueByPath(_0x57a31f,['outputUri']);return _0x1255d2!==undefined&&_0x3e18dc!=null&&setValueByPath(_0x1255d2,[_0x5a85d5(0x6e6)],_0x3e18dc),_0x518322;}function createTuningJobParametersPrivateToMldev(_0x293658,_0x1c5968){const _0x3ed2b9=a3_0x402819,_0x1a8539={},_0x2f71ac=getValueByPath(_0x293658,[_0x3ed2b9(0x435)]);_0x2f71ac!=null&&setValueByPath(_0x1a8539,['baseModel'],_0x2f71ac);const _0x431259=getValueByPath(_0x293658,[_0x3ed2b9(0x684)]);_0x431259!=null&&setValueByPath(_0x1a8539,['preTunedModel'],_0x431259);const _0x15b1a3=getValueByPath(_0x293658,[_0x3ed2b9(0x1c1)]);_0x15b1a3!=null&&tuningDatasetToMldev(_0x15b1a3);const _0x30c831=getValueByPath(_0x293658,[_0x3ed2b9(0x43b)]);return _0x30c831!=null&&createTuningJobConfigToMldev(_0x30c831,_0x1a8539),_0x1a8539;}function createTuningJobParametersPrivateToVertex(_0x4cc8ea,_0x18a5e0){const _0x14eaf4=a3_0x402819,_0x44386c={},_0x1df375=getValueByPath(_0x4cc8ea,[_0x14eaf4(0x435)]);_0x1df375!=null&&setValueByPath(_0x44386c,[_0x14eaf4(0x435)],_0x1df375);const _0x17102f=getValueByPath(_0x4cc8ea,[_0x14eaf4(0x684)]);_0x17102f!=null&&setValueByPath(_0x44386c,[_0x14eaf4(0x684)],_0x17102f);const _0x1a10d5=getValueByPath(_0x4cc8ea,[_0x14eaf4(0x1c1)]);_0x1a10d5!=null&&tuningDatasetToVertex(_0x1a10d5,_0x44386c,_0x18a5e0);const _0x35832f=getValueByPath(_0x4cc8ea,[_0x14eaf4(0x43b)]);return _0x35832f!=null&&createTuningJobConfigToVertex(_0x35832f,_0x44386c,_0x18a5e0),_0x44386c;}function getTuningJobParametersToMldev(_0x514f2e,_0x25a083){const _0x5f208a=a3_0x402819,_0x29b652={},_0x289a0a=getValueByPath(_0x514f2e,['name']);return _0x289a0a!=null&&setValueByPath(_0x29b652,[_0x5f208a(0x1aa),_0x5f208a(0x3a4)],_0x289a0a),_0x29b652;}function getTuningJobParametersToVertex(_0x5489b3,_0x48768f){const _0x4d518d=a3_0x402819,_0x113693={},_0x472c92=getValueByPath(_0x5489b3,[_0x4d518d(0x3a4)]);return _0x472c92!=null&&setValueByPath(_0x113693,[_0x4d518d(0x1aa),_0x4d518d(0x3a4)],_0x472c92),_0x113693;}function listTuningJobsConfigToMldev(_0x48d4b9,_0x1b8f55,_0x587c0b){const _0x575248=a3_0x402819,_0xc6587={},_0x29dcf8=getValueByPath(_0x48d4b9,[_0x575248(0x1f8)]);_0x1b8f55!==undefined&&_0x29dcf8!=null&&setValueByPath(_0x1b8f55,[_0x575248(0x5fa),'pageSize'],_0x29dcf8);const _0x309e66=getValueByPath(_0x48d4b9,[_0x575248(0x1a4)]);_0x1b8f55!==undefined&&_0x309e66!=null&&setValueByPath(_0x1b8f55,[_0x575248(0x5fa),'pageToken'],_0x309e66);const _0x204b7a=getValueByPath(_0x48d4b9,[_0x575248(0x67f)]);return _0x1b8f55!==undefined&&_0x204b7a!=null&&setValueByPath(_0x1b8f55,[_0x575248(0x5fa),_0x575248(0x67f)],_0x204b7a),_0xc6587;}function listTuningJobsConfigToVertex(_0x4cdcc4,_0x12c463,_0x226377){const _0x34df2a=a3_0x402819,_0x330b40={},_0x34b7a0=getValueByPath(_0x4cdcc4,[_0x34df2a(0x1f8)]);_0x12c463!==undefined&&_0x34b7a0!=null&&setValueByPath(_0x12c463,[_0x34df2a(0x5fa),_0x34df2a(0x1f8)],_0x34b7a0);const _0x2dbf6b=getValueByPath(_0x4cdcc4,['pageToken']);_0x12c463!==undefined&&_0x2dbf6b!=null&&setValueByPath(_0x12c463,['_query',_0x34df2a(0x1a4)],_0x2dbf6b);const _0x1658c1=getValueByPath(_0x4cdcc4,[_0x34df2a(0x67f)]);return _0x12c463!==undefined&&_0x1658c1!=null&&setValueByPath(_0x12c463,['_query',_0x34df2a(0x67f)],_0x1658c1),_0x330b40;}function listTuningJobsParametersToMldev(_0xf0a1a0,_0x332495){const _0xa10693=a3_0x402819,_0x176b25={},_0x3d4238=getValueByPath(_0xf0a1a0,[_0xa10693(0x43b)]);return _0x3d4238!=null&&listTuningJobsConfigToMldev(_0x3d4238,_0x176b25),_0x176b25;}function listTuningJobsParametersToVertex(_0x2d07b7,_0x4d19a5){const _0x939a0d=a3_0x402819,_0x2c0f5c={},_0x304137=getValueByPath(_0x2d07b7,[_0x939a0d(0x43b)]);return _0x304137!=null&&listTuningJobsConfigToVertex(_0x304137,_0x2c0f5c),_0x2c0f5c;}function listTuningJobsResponseFromMldev(_0x1b69dc,_0x2ca558){const _0x245eac=a3_0x402819,_0x3ecc26={},_0x555011=getValueByPath(_0x1b69dc,[_0x245eac(0x3a7)]);_0x555011!=null&&setValueByPath(_0x3ecc26,[_0x245eac(0x3a7)],_0x555011);const _0x137f82=getValueByPath(_0x1b69dc,['nextPageToken']);_0x137f82!=null&&setValueByPath(_0x3ecc26,['nextPageToken'],_0x137f82);const _0x4c1dd1=getValueByPath(_0x1b69dc,['tunedModels']);if(_0x4c1dd1!=null){let _0x3b5004=_0x4c1dd1;Array[_0x245eac(0x32b)](_0x3b5004)&&(_0x3b5004=_0x3b5004['map'](_0x3c023a=>{return tuningJobFromMldev(_0x3c023a);})),setValueByPath(_0x3ecc26,[_0x245eac(0x64b)],_0x3b5004);}return _0x3ecc26;}function listTuningJobsResponseFromVertex(_0x22f212,_0x21e7c8){const _0x50e658=a3_0x402819,_0x38f92f={},_0x16323f=getValueByPath(_0x22f212,[_0x50e658(0x3a7)]);_0x16323f!=null&&setValueByPath(_0x38f92f,[_0x50e658(0x3a7)],_0x16323f);const _0x30e590=getValueByPath(_0x22f212,[_0x50e658(0x68e)]);_0x30e590!=null&&setValueByPath(_0x38f92f,[_0x50e658(0x68e)],_0x30e590);const _0xf8c144=getValueByPath(_0x22f212,[_0x50e658(0x64b)]);if(_0xf8c144!=null){let _0x192799=_0xf8c144;Array[_0x50e658(0x32b)](_0x192799)&&(_0x192799=_0x192799[_0x50e658(0x6c4)](_0x430800=>{return tuningJobFromVertex(_0x430800);})),setValueByPath(_0x38f92f,[_0x50e658(0x64b)],_0x192799);}return _0x38f92f;}function tunedModelFromMldev(_0x26eb08,_0x44bb0c){const _0x2898cd=a3_0x402819,_0x371df0={},_0x1e952f=getValueByPath(_0x26eb08,[_0x2898cd(0x3a4)]);_0x1e952f!=null&&setValueByPath(_0x371df0,[_0x2898cd(0x3f6)],_0x1e952f);const _0x288bb5=getValueByPath(_0x26eb08,['name']);return _0x288bb5!=null&&setValueByPath(_0x371df0,['endpoint'],_0x288bb5),_0x371df0;}function tuningDatasetToMldev(_0x39392d,_0x578749){const _0x1b5f17=a3_0x402819,_0x22d22b={};if(getValueByPath(_0x39392d,['gcsUri'])!==undefined)throw new Error(_0x1b5f17(0x335));if(getValueByPath(_0x39392d,[_0x1b5f17(0x499)])!==undefined)throw new Error('vertexDatasetResource\x20parameter\x20is\x20not\x20supported\x20in\x20Gemini\x20API.');const _0x796643=getValueByPath(_0x39392d,[_0x1b5f17(0x3d4)]);if(_0x796643!=null){let _0x1f789b=_0x796643;Array[_0x1b5f17(0x32b)](_0x1f789b)&&(_0x1f789b=_0x1f789b[_0x1b5f17(0x6c4)](_0x4d621d=>{return _0x4d621d;})),setValueByPath(_0x22d22b,[_0x1b5f17(0x3d4),_0x1b5f17(0x3d4)],_0x1f789b);}return _0x22d22b;}function tuningDatasetToVertex(_0x99740b,_0x212b89,_0x5136f3){const _0xf25801=a3_0x402819,_0x5854b0={};let _0x5dce18=getValueByPath(_0x5136f3,[_0xf25801(0x43b),'method']);_0x5dce18===undefined&&(_0x5dce18=_0xf25801(0x6b5));if(_0x5dce18===_0xf25801(0x6b5)){const _0x58add3=getValueByPath(_0x99740b,[_0xf25801(0x3e3)]);_0x212b89!==undefined&&_0x58add3!=null&&setValueByPath(_0x212b89,['supervisedTuningSpec',_0xf25801(0x566)],_0x58add3);}else{if(_0x5dce18==='PREFERENCE_TUNING'){const _0x42dc76=getValueByPath(_0x99740b,['gcsUri']);_0x212b89!==undefined&&_0x42dc76!=null&&setValueByPath(_0x212b89,[_0xf25801(0x528),'trainingDatasetUri'],_0x42dc76);}else{if(_0x5dce18==='DISTILLATION'){const _0x2a2d6b=getValueByPath(_0x99740b,[_0xf25801(0x3e3)]);_0x212b89!==undefined&&_0x2a2d6b!=null&&setValueByPath(_0x212b89,[_0xf25801(0x6b9),_0xf25801(0x2cb)],_0x2a2d6b);}}}let _0x546c0d=getValueByPath(_0x5136f3,[_0xf25801(0x43b),_0xf25801(0x510)]);_0x546c0d===undefined&&(_0x546c0d=_0xf25801(0x6b5));if(_0x546c0d===_0xf25801(0x6b5)){const _0x244b68=getValueByPath(_0x99740b,[_0xf25801(0x499)]);_0x212b89!==undefined&&_0x244b68!=null&&setValueByPath(_0x212b89,[_0xf25801(0x208),_0xf25801(0x566)],_0x244b68);}else{if(_0x546c0d==='PREFERENCE_TUNING'){const _0x5b4bca=getValueByPath(_0x99740b,[_0xf25801(0x499)]);_0x212b89!==undefined&&_0x5b4bca!=null&&setValueByPath(_0x212b89,[_0xf25801(0x528),_0xf25801(0x566)],_0x5b4bca);}else{if(_0x546c0d===_0xf25801(0x383)){const _0x451c6b=getValueByPath(_0x99740b,[_0xf25801(0x499)]);_0x212b89!==undefined&&_0x451c6b!=null&&setValueByPath(_0x212b89,[_0xf25801(0x6b9),_0xf25801(0x2cb)],_0x451c6b);}}}if(getValueByPath(_0x99740b,['examples'])!==undefined)throw new Error(_0xf25801(0x3c7));return _0x5854b0;}function tuningJobFromMldev(_0x5688cd,_0x45f60e){const _0x208246=a3_0x402819,_0x1cf01f={},_0xeac4b7=getValueByPath(_0x5688cd,[_0x208246(0x3a7)]);_0xeac4b7!=null&&setValueByPath(_0x1cf01f,[_0x208246(0x3a7)],_0xeac4b7);const _0xcae109=getValueByPath(_0x5688cd,['name']);_0xcae109!=null&&setValueByPath(_0x1cf01f,[_0x208246(0x3a4)],_0xcae109);const _0x2b1f0f=getValueByPath(_0x5688cd,[_0x208246(0x2a1)]);_0x2b1f0f!=null&&setValueByPath(_0x1cf01f,[_0x208246(0x2a1)],tTuningJobStatus(_0x2b1f0f));const _0x560154=getValueByPath(_0x5688cd,[_0x208246(0x393)]);_0x560154!=null&&setValueByPath(_0x1cf01f,[_0x208246(0x393)],_0x560154);const _0x4bb130=getValueByPath(_0x5688cd,['tuningTask','startTime']);_0x4bb130!=null&&setValueByPath(_0x1cf01f,['startTime'],_0x4bb130);const _0x4b5fc1=getValueByPath(_0x5688cd,[_0x208246(0x413),_0x208246(0x572)]);_0x4b5fc1!=null&&setValueByPath(_0x1cf01f,[_0x208246(0x4af)],_0x4b5fc1);const _0x5eecfa=getValueByPath(_0x5688cd,[_0x208246(0x414)]);_0x5eecfa!=null&&setValueByPath(_0x1cf01f,['updateTime'],_0x5eecfa);const _0x317171=getValueByPath(_0x5688cd,[_0x208246(0x3c3)]);_0x317171!=null&&setValueByPath(_0x1cf01f,['description'],_0x317171);const _0x1c66e6=getValueByPath(_0x5688cd,[_0x208246(0x435)]);_0x1c66e6!=null&&setValueByPath(_0x1cf01f,[_0x208246(0x435)],_0x1c66e6);const _0x2efab4=getValueByPath(_0x5688cd,[_0x208246(0x6f6)]);return _0x2efab4!=null&&setValueByPath(_0x1cf01f,['tunedModel'],tunedModelFromMldev(_0x2efab4)),_0x1cf01f;}function tuningJobFromVertex(_0x4abb77,_0x2597c7){const _0x6266c6=a3_0x402819,_0x278dc5={},_0x3d2bdb=getValueByPath(_0x4abb77,[_0x6266c6(0x3a7)]);_0x3d2bdb!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x3a7)],_0x3d2bdb);const _0x6e1dfe=getValueByPath(_0x4abb77,['name']);_0x6e1dfe!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x3a4)],_0x6e1dfe);const _0x367aba=getValueByPath(_0x4abb77,['state']);_0x367aba!=null&&setValueByPath(_0x278dc5,['state'],tTuningJobStatus(_0x367aba));const _0x576711=getValueByPath(_0x4abb77,[_0x6266c6(0x393)]);_0x576711!=null&&setValueByPath(_0x278dc5,['createTime'],_0x576711);const _0x345624=getValueByPath(_0x4abb77,[_0x6266c6(0x2a0)]);_0x345624!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x2a0)],_0x345624);const _0xc1834c=getValueByPath(_0x4abb77,[_0x6266c6(0x4af)]);_0xc1834c!=null&&setValueByPath(_0x278dc5,['endTime'],_0xc1834c);const _0x2a7edb=getValueByPath(_0x4abb77,[_0x6266c6(0x414)]);_0x2a7edb!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x414)],_0x2a7edb);const _0x17eec2=getValueByPath(_0x4abb77,['error']);_0x17eec2!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x251)],_0x17eec2);const _0x571a55=getValueByPath(_0x4abb77,[_0x6266c6(0x3c3)]);_0x571a55!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x3c3)],_0x571a55);const _0x537b1d=getValueByPath(_0x4abb77,[_0x6266c6(0x435)]);_0x537b1d!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x435)],_0x537b1d);const _0x190468=getValueByPath(_0x4abb77,[_0x6266c6(0x57b)]);_0x190468!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x57b)],_0x190468);const _0x261e90=getValueByPath(_0x4abb77,[_0x6266c6(0x684)]);_0x261e90!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x684)],_0x261e90);const _0x207bc4=getValueByPath(_0x4abb77,['supervisedTuningSpec']);_0x207bc4!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x208)],_0x207bc4);const _0x2a3964=getValueByPath(_0x4abb77,['preferenceOptimizationSpec']);_0x2a3964!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x528)],_0x2a3964);const _0x1ca19c=getValueByPath(_0x4abb77,['distillationSpec']);_0x1ca19c!=null&&setValueByPath(_0x278dc5,['distillationSpec'],_0x1ca19c);const _0x1f9cad=getValueByPath(_0x4abb77,['tuningDataStats']);_0x1f9cad!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x524)],_0x1f9cad);const _0x14d09a=getValueByPath(_0x4abb77,[_0x6266c6(0x340)]);_0x14d09a!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x340)],_0x14d09a);const _0x3ee650=getValueByPath(_0x4abb77,['partnerModelTuningSpec']);_0x3ee650!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x28a)],_0x3ee650);const _0x5b52d6=getValueByPath(_0x4abb77,[_0x6266c6(0x41c)]);_0x5b52d6!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x41c)],_0x5b52d6);const _0x410b06=getValueByPath(_0x4abb77,[_0x6266c6(0x433)]);_0x410b06!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x433)],_0x410b06);const _0x486b8b=getValueByPath(_0x4abb77,['labels']);_0x486b8b!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x3ec)],_0x486b8b);const _0x10e5cd=getValueByPath(_0x4abb77,[_0x6266c6(0x6e6)]);_0x10e5cd!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x6e6)],_0x10e5cd);const _0x46c2f9=getValueByPath(_0x4abb77,[_0x6266c6(0x53a)]);_0x46c2f9!=null&&setValueByPath(_0x278dc5,['pipelineJob'],_0x46c2f9);const _0x904949=getValueByPath(_0x4abb77,['serviceAccount']);_0x904949!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x1f3)],_0x904949);const _0x1ca8e2=getValueByPath(_0x4abb77,[_0x6266c6(0x69d)]);_0x1ca8e2!=null&&setValueByPath(_0x278dc5,['tunedModelDisplayName'],_0x1ca8e2);const _0x42d9b5=getValueByPath(_0x4abb77,[_0x6266c6(0x224)]);return _0x42d9b5!=null&&setValueByPath(_0x278dc5,[_0x6266c6(0x224)],_0x42d9b5),_0x278dc5;}function tuningOperationFromMldev(_0x59a0f0,_0x765661){const _0x2928c4=a3_0x402819,_0x249bfb={},_0xe62fd9=getValueByPath(_0x59a0f0,[_0x2928c4(0x3a7)]);_0xe62fd9!=null&&setValueByPath(_0x249bfb,[_0x2928c4(0x3a7)],_0xe62fd9);const _0x2bc162=getValueByPath(_0x59a0f0,[_0x2928c4(0x3a4)]);_0x2bc162!=null&&setValueByPath(_0x249bfb,['name'],_0x2bc162);const _0x326971=getValueByPath(_0x59a0f0,[_0x2928c4(0x266)]);_0x326971!=null&&setValueByPath(_0x249bfb,[_0x2928c4(0x266)],_0x326971);const _0xb88d5e=getValueByPath(_0x59a0f0,[_0x2928c4(0x424)]);_0xb88d5e!=null&&setValueByPath(_0x249bfb,[_0x2928c4(0x424)],_0xb88d5e);const _0x416f1b=getValueByPath(_0x59a0f0,[_0x2928c4(0x251)]);return _0x416f1b!=null&&setValueByPath(_0x249bfb,[_0x2928c4(0x251)],_0x416f1b),_0x249bfb;}function tuningValidationDatasetToVertex(_0x38853e,_0x4e7c5e){const _0x7b7862=a3_0x402819,_0x3629a6={},_0x3e14b6=getValueByPath(_0x38853e,[_0x7b7862(0x3e3)]);_0x3e14b6!=null&&setValueByPath(_0x3629a6,[_0x7b7862(0x3dc)],_0x3e14b6);const _0x267c68=getValueByPath(_0x38853e,[_0x7b7862(0x499)]);return _0x267c68!=null&&setValueByPath(_0x3629a6,[_0x7b7862(0x3dc)],_0x267c68),_0x3629a6;}/**
262
+ * @license
263
+ * Copyright 2025 Google LLC
264
+ * SPDX-License-Identifier: Apache-2.0
265
+ */
266
+ class Tunings extends BaseModule{constructor(_0x111753){const _0x4e7566=a3_0x402819;super(),this[_0x4e7566(0x235)]=_0x111753,this[_0x4e7566(0x526)]=async(_0x21bb87={})=>{const _0x265392=_0x4e7566;return new Pager(PagedItem[_0x265392(0x647)],_0x51422f=>this[_0x265392(0x388)](_0x51422f),await this[_0x265392(0x388)](_0x21bb87),_0x21bb87);},this['get']=async _0x12b7a4=>{const _0x45bfe1=_0x4e7566;return await this[_0x45bfe1(0x5c2)](_0x12b7a4);},this[_0x4e7566(0x690)]=async _0x498c4b=>{const _0x1263ff=_0x4e7566;var _0x315293;if(this['apiClient']['isVertexAI']()){if(_0x498c4b[_0x1263ff(0x435)][_0x1263ff(0x231)](_0x1263ff(0x5fd))){const _0x292fdd={'tunedModelName':_0x498c4b[_0x1263ff(0x435)]};((_0x315293=_0x498c4b[_0x1263ff(0x43b)])===null||_0x315293===void 0x0?void 0x0:_0x315293[_0x1263ff(0x378)])&&(_0x292fdd[_0x1263ff(0x429)]=_0x498c4b[_0x1263ff(0x43b)][_0x1263ff(0x378)]);const _0x5b0a86=Object[_0x1263ff(0x48a)](Object[_0x1263ff(0x48a)]({},_0x498c4b),{'preTunedModel':_0x292fdd});return _0x5b0a86[_0x1263ff(0x435)]=undefined,await this[_0x1263ff(0x3ef)](_0x5b0a86);}else{const _0x1f2225=Object[_0x1263ff(0x48a)]({},_0x498c4b);return await this[_0x1263ff(0x3ef)](_0x1f2225);}}else{const _0x4ac63a=Object[_0x1263ff(0x48a)]({},_0x498c4b),_0x267ccc=await this['tuneMldevInternal'](_0x4ac63a);let _0x45bc33='';if(_0x267ccc['metadata']!==undefined&&_0x267ccc['metadata'][_0x1263ff(0x57b)]!==undefined)_0x45bc33=_0x267ccc['metadata'][_0x1263ff(0x57b)];else _0x267ccc['name']!==undefined&&_0x267ccc[_0x1263ff(0x3a4)][_0x1263ff(0x34e)](_0x1263ff(0x427))&&(_0x45bc33=_0x267ccc[_0x1263ff(0x3a4)][_0x1263ff(0x51c)]('/operations/')[0x0]);const _0x32cbbe={'name':_0x45bc33,'state':JobState[_0x1263ff(0x533)]};return _0x32cbbe;}};}async['getInternal'](_0x31d287){const _0x1f4829=a3_0x402819;var _0x2fab61,_0x42ebc6,_0x3d0f46,_0x4321c9;let _0x4ee4cf,_0xdc5f7e='',_0x3c5b16={};if(this[_0x1f4829(0x235)][_0x1f4829(0x268)]()){const _0x553847=getTuningJobParametersToVertex(_0x31d287);return _0xdc5f7e=formatMap(_0x1f4829(0x687),_0x553847['_url']),_0x3c5b16=_0x553847[_0x1f4829(0x5fa)],delete _0x553847['_url'],delete _0x553847[_0x1f4829(0x5fa)],_0x4ee4cf=this[_0x1f4829(0x235)][_0x1f4829(0x239)]({'path':_0xdc5f7e,'queryParams':_0x3c5b16,'body':JSON[_0x1f4829(0x65c)](_0x553847),'httpMethod':_0x1f4829(0x500),'httpOptions':(_0x2fab61=_0x31d287[_0x1f4829(0x43b)])===null||_0x2fab61===void 0x0?void 0x0:_0x2fab61['httpOptions'],'abortSignal':(_0x42ebc6=_0x31d287[_0x1f4829(0x43b)])===null||_0x42ebc6===void 0x0?void 0x0:_0x42ebc6[_0x1f4829(0x709)]})[_0x1f4829(0x1f0)](_0x25d11a=>{const _0x371bbe=_0x1f4829;return _0x25d11a[_0x371bbe(0x4cf)]()[_0x371bbe(0x1f0)](_0x4e334d=>{const _0x1267d1=_0x371bbe,_0x2b505e=_0x4e334d;return _0x2b505e[_0x1267d1(0x3a7)]={'headers':_0x25d11a[_0x1267d1(0x70b)]},_0x2b505e;});}),_0x4ee4cf['then'](_0x48b241=>{const _0x22dd2f=tuningJobFromVertex(_0x48b241);return _0x22dd2f;});}else{const _0x45a4fd=getTuningJobParametersToMldev(_0x31d287);return _0xdc5f7e=formatMap(_0x1f4829(0x687),_0x45a4fd[_0x1f4829(0x1aa)]),_0x3c5b16=_0x45a4fd[_0x1f4829(0x5fa)],delete _0x45a4fd[_0x1f4829(0x1aa)],delete _0x45a4fd['_query'],_0x4ee4cf=this[_0x1f4829(0x235)]['request']({'path':_0xdc5f7e,'queryParams':_0x3c5b16,'body':JSON['stringify'](_0x45a4fd),'httpMethod':'GET','httpOptions':(_0x3d0f46=_0x31d287[_0x1f4829(0x43b)])===null||_0x3d0f46===void 0x0?void 0x0:_0x3d0f46['httpOptions'],'abortSignal':(_0x4321c9=_0x31d287[_0x1f4829(0x43b)])===null||_0x4321c9===void 0x0?void 0x0:_0x4321c9[_0x1f4829(0x709)]})['then'](_0x69edf3=>{const _0x2f145a=_0x1f4829;return _0x69edf3['json']()[_0x2f145a(0x1f0)](_0x10684d=>{const _0x2d6c22=_0x2f145a,_0x27ede1=_0x10684d;return _0x27ede1[_0x2d6c22(0x3a7)]={'headers':_0x69edf3['headers']},_0x27ede1;});}),_0x4ee4cf[_0x1f4829(0x1f0)](_0x4f7390=>{const _0x48c511=tuningJobFromMldev(_0x4f7390);return _0x48c511;});}}async['listInternal'](_0x45b932){const _0x44f9e2=a3_0x402819;var _0x5e67ce,_0x18de03,_0x9fb2a3,_0x21f0a3;let _0x4ed107,_0x3302a9='',_0x17a447={};if(this[_0x44f9e2(0x235)]['isVertexAI']()){const _0x48bd21=listTuningJobsParametersToVertex(_0x45b932);return _0x3302a9=formatMap(_0x44f9e2(0x64b),_0x48bd21[_0x44f9e2(0x1aa)]),_0x17a447=_0x48bd21[_0x44f9e2(0x5fa)],delete _0x48bd21['_url'],delete _0x48bd21[_0x44f9e2(0x5fa)],_0x4ed107=this[_0x44f9e2(0x235)][_0x44f9e2(0x239)]({'path':_0x3302a9,'queryParams':_0x17a447,'body':JSON[_0x44f9e2(0x65c)](_0x48bd21),'httpMethod':_0x44f9e2(0x500),'httpOptions':(_0x5e67ce=_0x45b932['config'])===null||_0x5e67ce===void 0x0?void 0x0:_0x5e67ce[_0x44f9e2(0x5c7)],'abortSignal':(_0x18de03=_0x45b932[_0x44f9e2(0x43b)])===null||_0x18de03===void 0x0?void 0x0:_0x18de03[_0x44f9e2(0x709)]})['then'](_0x3b58c1=>{const _0xfe50df=_0x44f9e2;return _0x3b58c1[_0xfe50df(0x4cf)]()['then'](_0x2d44bb=>{const _0x563dcf=_0xfe50df,_0x1e7ba7=_0x2d44bb;return _0x1e7ba7['sdkHttpResponse']={'headers':_0x3b58c1[_0x563dcf(0x70b)]},_0x1e7ba7;});}),_0x4ed107[_0x44f9e2(0x1f0)](_0x20ee6a=>{const _0x365dcb=_0x44f9e2,_0x33329c=listTuningJobsResponseFromVertex(_0x20ee6a),_0x313525=new ListTuningJobsResponse();return Object[_0x365dcb(0x48a)](_0x313525,_0x33329c),_0x313525;});}else{const _0x20e908=listTuningJobsParametersToMldev(_0x45b932);return _0x3302a9=formatMap(_0x44f9e2(0x719),_0x20e908[_0x44f9e2(0x1aa)]),_0x17a447=_0x20e908[_0x44f9e2(0x5fa)],delete _0x20e908[_0x44f9e2(0x1aa)],delete _0x20e908[_0x44f9e2(0x5fa)],_0x4ed107=this[_0x44f9e2(0x235)]['request']({'path':_0x3302a9,'queryParams':_0x17a447,'body':JSON['stringify'](_0x20e908),'httpMethod':'GET','httpOptions':(_0x9fb2a3=_0x45b932[_0x44f9e2(0x43b)])===null||_0x9fb2a3===void 0x0?void 0x0:_0x9fb2a3[_0x44f9e2(0x5c7)],'abortSignal':(_0x21f0a3=_0x45b932[_0x44f9e2(0x43b)])===null||_0x21f0a3===void 0x0?void 0x0:_0x21f0a3['abortSignal']})[_0x44f9e2(0x1f0)](_0x56c35a=>{const _0x3d7c72=_0x44f9e2;return _0x56c35a[_0x3d7c72(0x4cf)]()[_0x3d7c72(0x1f0)](_0x4ad043=>{const _0x112eae=_0x3d7c72,_0x2b86d0=_0x4ad043;return _0x2b86d0[_0x112eae(0x3a7)]={'headers':_0x56c35a['headers']},_0x2b86d0;});}),_0x4ed107['then'](_0x5284bb=>{const _0x571c55=_0x44f9e2,_0x55fc4c=listTuningJobsResponseFromMldev(_0x5284bb),_0x4efc00=new ListTuningJobsResponse();return Object[_0x571c55(0x48a)](_0x4efc00,_0x55fc4c),_0x4efc00;});}}async[a3_0x402819(0x4e1)](_0x53018b){const _0x5cd704=a3_0x402819;var _0x504bf1,_0x4445a3,_0x522c6c,_0x1c3722;let _0x143512,_0x477d76='',_0x3b6bf2={};if(this[_0x5cd704(0x235)]['isVertexAI']()){const _0x2e6118=cancelTuningJobParametersToVertex(_0x53018b);return _0x477d76=formatMap(_0x5cd704(0x56d),_0x2e6118[_0x5cd704(0x1aa)]),_0x3b6bf2=_0x2e6118[_0x5cd704(0x5fa)],delete _0x2e6118[_0x5cd704(0x1aa)],delete _0x2e6118[_0x5cd704(0x5fa)],_0x143512=this[_0x5cd704(0x235)]['request']({'path':_0x477d76,'queryParams':_0x3b6bf2,'body':JSON[_0x5cd704(0x65c)](_0x2e6118),'httpMethod':_0x5cd704(0x6d7),'httpOptions':(_0x504bf1=_0x53018b['config'])===null||_0x504bf1===void 0x0?void 0x0:_0x504bf1[_0x5cd704(0x5c7)],'abortSignal':(_0x4445a3=_0x53018b[_0x5cd704(0x43b)])===null||_0x4445a3===void 0x0?void 0x0:_0x4445a3[_0x5cd704(0x709)]})[_0x5cd704(0x1f0)](_0x481346=>{const _0x58b1d4=_0x5cd704;return _0x481346['json']()[_0x58b1d4(0x1f0)](_0x384f0e=>{const _0x58f970=_0x58b1d4,_0xa3de96=_0x384f0e;return _0xa3de96[_0x58f970(0x3a7)]={'headers':_0x481346[_0x58f970(0x70b)]},_0xa3de96;});}),_0x143512[_0x5cd704(0x1f0)](_0x3e5ad5=>{const _0x4668ec=_0x5cd704,_0x44a34e=cancelTuningJobResponseFromVertex(_0x3e5ad5),_0x539c18=new CancelTuningJobResponse();return Object[_0x4668ec(0x48a)](_0x539c18,_0x44a34e),_0x539c18;});}else{const _0x50f710=cancelTuningJobParametersToMldev(_0x53018b);return _0x477d76=formatMap(_0x5cd704(0x56d),_0x50f710[_0x5cd704(0x1aa)]),_0x3b6bf2=_0x50f710[_0x5cd704(0x5fa)],delete _0x50f710[_0x5cd704(0x1aa)],delete _0x50f710['_query'],_0x143512=this['apiClient']['request']({'path':_0x477d76,'queryParams':_0x3b6bf2,'body':JSON[_0x5cd704(0x65c)](_0x50f710),'httpMethod':_0x5cd704(0x6d7),'httpOptions':(_0x522c6c=_0x53018b['config'])===null||_0x522c6c===void 0x0?void 0x0:_0x522c6c[_0x5cd704(0x5c7)],'abortSignal':(_0x1c3722=_0x53018b[_0x5cd704(0x43b)])===null||_0x1c3722===void 0x0?void 0x0:_0x1c3722[_0x5cd704(0x709)]})[_0x5cd704(0x1f0)](_0x467783=>{const _0x332b33=_0x5cd704;return _0x467783['json']()[_0x332b33(0x1f0)](_0x5112bd=>{const _0x4ccd05=_0x332b33,_0x57052e=_0x5112bd;return _0x57052e[_0x4ccd05(0x3a7)]={'headers':_0x467783[_0x4ccd05(0x70b)]},_0x57052e;});}),_0x143512['then'](_0x57531d=>{const _0x57ebc9=cancelTuningJobResponseFromMldev(_0x57531d),_0x13eea6=new CancelTuningJobResponse();return Object['assign'](_0x13eea6,_0x57ebc9),_0x13eea6;});}}async['tuneInternal'](_0x3efab){const _0x288c97=a3_0x402819;var _0x39e2c1,_0x90db07;let _0x579f46,_0x4b0ca2='',_0xd335e6={};if(this[_0x288c97(0x235)][_0x288c97(0x268)]()){const _0x5ac9ca=createTuningJobParametersPrivateToVertex(_0x3efab,_0x3efab);return _0x4b0ca2=formatMap(_0x288c97(0x64b),_0x5ac9ca[_0x288c97(0x1aa)]),_0xd335e6=_0x5ac9ca[_0x288c97(0x5fa)],delete _0x5ac9ca['_url'],delete _0x5ac9ca[_0x288c97(0x5fa)],_0x579f46=this['apiClient']['request']({'path':_0x4b0ca2,'queryParams':_0xd335e6,'body':JSON[_0x288c97(0x65c)](_0x5ac9ca),'httpMethod':'POST','httpOptions':(_0x39e2c1=_0x3efab['config'])===null||_0x39e2c1===void 0x0?void 0x0:_0x39e2c1[_0x288c97(0x5c7)],'abortSignal':(_0x90db07=_0x3efab[_0x288c97(0x43b)])===null||_0x90db07===void 0x0?void 0x0:_0x90db07[_0x288c97(0x709)]})[_0x288c97(0x1f0)](_0x5ba1bb=>{const _0x5dc234=_0x288c97;return _0x5ba1bb['json']()[_0x5dc234(0x1f0)](_0x2251d4=>{const _0x83d209=_0x5dc234,_0xd3ccd6=_0x2251d4;return _0xd3ccd6[_0x83d209(0x3a7)]={'headers':_0x5ba1bb[_0x83d209(0x70b)]},_0xd3ccd6;});}),_0x579f46['then'](_0xd45c04=>{const _0x4069ed=tuningJobFromVertex(_0xd45c04);return _0x4069ed;});}else throw new Error(_0x288c97(0x36a));}async[a3_0x402819(0x32c)](_0x3fceca){const _0x50e5d7=a3_0x402819;var _0x30333d,_0xf58cb2;let _0x2dc339,_0x2edf24='',_0xaa31d8={};if(this[_0x50e5d7(0x235)][_0x50e5d7(0x268)]())throw new Error(_0x50e5d7(0x206));else{const _0x12db95=createTuningJobParametersPrivateToMldev(_0x3fceca);return _0x2edf24=formatMap(_0x50e5d7(0x719),_0x12db95['_url']),_0xaa31d8=_0x12db95[_0x50e5d7(0x5fa)],delete _0x12db95[_0x50e5d7(0x1aa)],delete _0x12db95[_0x50e5d7(0x5fa)],_0x2dc339=this['apiClient']['request']({'path':_0x2edf24,'queryParams':_0xaa31d8,'body':JSON[_0x50e5d7(0x65c)](_0x12db95),'httpMethod':_0x50e5d7(0x6d7),'httpOptions':(_0x30333d=_0x3fceca[_0x50e5d7(0x43b)])===null||_0x30333d===void 0x0?void 0x0:_0x30333d[_0x50e5d7(0x5c7)],'abortSignal':(_0xf58cb2=_0x3fceca[_0x50e5d7(0x43b)])===null||_0xf58cb2===void 0x0?void 0x0:_0xf58cb2[_0x50e5d7(0x709)]})[_0x50e5d7(0x1f0)](_0xc15929=>{const _0x38bc68=_0x50e5d7;return _0xc15929['json']()[_0x38bc68(0x1f0)](_0x561c9b=>{const _0x4d84fe=_0x38bc68,_0x142b2d=_0x561c9b;return _0x142b2d[_0x4d84fe(0x3a7)]={'headers':_0xc15929[_0x4d84fe(0x70b)]},_0x142b2d;});}),_0x2dc339[_0x50e5d7(0x1f0)](_0x41f0d9=>{const _0x48d77f=tuningOperationFromMldev(_0x41f0d9);return _0x48d77f;});}}}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=a3_0x402819(0x5a6);async function uploadBlob(_0x5c4b74,_0x15ce7c,_0x396279){const _0x25cc97=a3_0x402819;var _0x1380ed;const _0x2abaa6=await uploadBlobInternal(_0x5c4b74,_0x15ce7c,_0x396279),_0x25e913=await(_0x2abaa6===null||_0x2abaa6===void 0x0?void 0x0:_0x2abaa6[_0x25cc97(0x4cf)]());if(((_0x1380ed=_0x2abaa6===null||_0x2abaa6===void 0x0?void 0x0:_0x2abaa6['headers'])===null||_0x1380ed===void 0x0?void 0x0:_0x1380ed[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x25cc97(0x6e8))throw new Error(_0x25cc97(0x617));return _0x25e913['file'];}async function uploadBlobToFileSearchStore(_0x3bb276,_0x442423,_0x523b6b){const _0x33d989=a3_0x402819;var _0x4060d8;const _0x2a970f=await uploadBlobInternal(_0x3bb276,_0x442423,_0x523b6b),_0x3bca02=await(_0x2a970f===null||_0x2a970f===void 0x0?void 0x0:_0x2a970f[_0x33d989(0x4cf)]());if(((_0x4060d8=_0x2a970f===null||_0x2a970f===void 0x0?void 0x0:_0x2a970f[_0x33d989(0x70b)])===null||_0x4060d8===void 0x0?void 0x0:_0x4060d8[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x33d989(0x6e8))throw new Error(_0x33d989(0x617));const _0xeeb6d7=uploadToFileSearchStoreOperationFromMldev(_0x3bca02),_0x588f89=new UploadToFileSearchStoreOperation();return Object[_0x33d989(0x48a)](_0x588f89,_0xeeb6d7),_0x588f89;}async function uploadBlobInternal(_0x14c076,_0x5c0e68,_0x17b60c){const _0x2dad92=a3_0x402819;var _0x382ec0,_0x221312;let _0x5bbf24=0x0,_0x35d34a=0x0,_0x5453d6=new HttpResponse(new Response()),_0x45cf4f=_0x2dad92(0x630);_0x5bbf24=_0x14c076[_0x2dad92(0x707)];while(_0x35d34a<_0x5bbf24){const _0x508cb6=Math[_0x2dad92(0x31f)](MAX_CHUNK_SIZE,_0x5bbf24-_0x35d34a),_0x1b46ce=_0x14c076['slice'](_0x35d34a,_0x35d34a+_0x508cb6);_0x35d34a+_0x508cb6>=_0x5bbf24&&(_0x45cf4f+=_0x2dad92(0x2ea));let _0x202a75=0x0,_0x570f49=INITIAL_RETRY_DELAY_MS;while(_0x202a75<MAX_RETRY_COUNT){_0x5453d6=await _0x17b60c['request']({'path':'','body':_0x1b46ce,'httpMethod':_0x2dad92(0x6d7),'httpOptions':{'apiVersion':'','baseUrl':_0x5c0e68,'headers':{'X-Goog-Upload-Command':_0x45cf4f,'X-Goog-Upload-Offset':String(_0x35d34a),'Content-Length':String(_0x508cb6)}}});if((_0x382ec0=_0x5453d6===null||_0x5453d6===void 0x0?void 0x0:_0x5453d6[_0x2dad92(0x70b)])===null||_0x382ec0===void 0x0?void 0x0:_0x382ec0[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x202a75++,await sleep(_0x570f49),_0x570f49=_0x570f49*DELAY_MULTIPLIER;}_0x35d34a+=_0x508cb6;if(((_0x221312=_0x5453d6===null||_0x5453d6===void 0x0?void 0x0:_0x5453d6[_0x2dad92(0x70b)])===null||_0x221312===void 0x0?void 0x0:_0x221312[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x2dad92(0x496))break;if(_0x5bbf24<=_0x35d34a)throw new Error(_0x2dad92(0x4a8));}return _0x5453d6;}async function getBlobStat(_0x7e03be){const _0x32ec34=a3_0x402819,_0x3bc974={'size':_0x7e03be[_0x32ec34(0x707)],'type':_0x7e03be[_0x32ec34(0x247)]};return _0x3bc974;}function sleep(_0x18b76d){return new Promise(_0x47e893=>setTimeout(_0x47e893,_0x18b76d));}/**
267
+ * @license
268
+ * Copyright 2025 Google LLC
269
+ * SPDX-License-Identifier: Apache-2.0
270
+ */
271
+ class NodeUploader{async[a3_0x402819(0x409)](_0x499dcc){const _0x28d822=a3_0x402819,_0x2d72a9={'size':0x0,'type':undefined};if(typeof _0x499dcc===_0x28d822(0x71b)){const _0x3992bf=await a3_0x2a3f14[_0x28d822(0x409)](_0x499dcc);return _0x2d72a9[_0x28d822(0x707)]=_0x3992bf['size'],_0x2d72a9[_0x28d822(0x247)]=this[_0x28d822(0x318)](_0x499dcc),_0x2d72a9;}else return await getBlobStat(_0x499dcc);}async[a3_0x402819(0x630)](_0x4a3a0a,_0x35b9db,_0x1ca7a4){const _0x15abb7=a3_0x402819;return typeof _0x4a3a0a===_0x15abb7(0x71b)?await this['uploadFileFromPath'](_0x4a3a0a,_0x35b9db,_0x1ca7a4):uploadBlob(_0x4a3a0a,_0x35b9db,_0x1ca7a4);}async[a3_0x402819(0x590)](_0x76923,_0x51171f,_0x529199){return typeof _0x76923==='string'?await this['uploadFileToFileSearchStoreFromPath'](_0x76923,_0x51171f,_0x529199):uploadBlobToFileSearchStore(_0x76923,_0x51171f,_0x529199);}[a3_0x402819(0x318)](_0x4dd0be){const _0x574ab8=a3_0x402819,_0x382f21=_0x4dd0be['slice'](_0x4dd0be[_0x574ab8(0x52e)]('.')+0x1),_0x19cce4={'aac':_0x574ab8(0x3a2),'abw':_0x574ab8(0x727),'arc':'application/x-freearc','avi':_0x574ab8(0x537),'azw':_0x574ab8(0x380),'bin':_0x574ab8(0x302),'bmp':_0x574ab8(0x2fb),'bz':'application/x-bzip','bz2':_0x574ab8(0x6e9),'csh':'application/x-csh','css':'text/css','csv':'text/csv','doc':_0x574ab8(0x4bc),'docx':'application/vnd.openxmlformats-officedocument.wordprocessingml.document','eot':_0x574ab8(0x688),'epub':_0x574ab8(0x398),'gz':_0x574ab8(0x24a),'gif':'image/gif','htm':'text/html','html':_0x574ab8(0x51d),'ico':_0x574ab8(0x372),'ics':_0x574ab8(0x363),'jar':_0x574ab8(0x6de),'jpeg':_0x574ab8(0x5ef),'jpg':_0x574ab8(0x5ef),'js':_0x574ab8(0x5c3),'json':'application/json','jsonld':'application/ld+json','kml':_0x574ab8(0x65d),'kmz':_0x574ab8(0x25f),'mjs':_0x574ab8(0x5c3),'mp3':_0x574ab8(0x46b),'mp4':'video/mp4','mpeg':'video/mpeg','mpkg':'application/vnd.apple.installer+xml','odt':_0x574ab8(0x319),'oga':_0x574ab8(0x404),'ogv':_0x574ab8(0x40d),'ogx':_0x574ab8(0x6db),'opus':_0x574ab8(0x3e6),'otf':_0x574ab8(0x37e),'png':_0x574ab8(0x546),'pdf':_0x574ab8(0x2b2),'php':'application/x-httpd-php','ppt':_0x574ab8(0x51a),'pptx':_0x574ab8(0x3ad),'rar':_0x574ab8(0x2b1),'rtf':'application/rtf','sh':_0x574ab8(0x261),'svg':'image/svg+xml','swf':_0x574ab8(0x37f),'tar':_0x574ab8(0x203),'tif':_0x574ab8(0x6f4),'tiff':_0x574ab8(0x6f4),'ts':'video/mp2t','ttf':'font/ttf','txt':'text/plain','vsd':_0x574ab8(0x66d),'wav':_0x574ab8(0x30c),'weba':_0x574ab8(0x4b2),'webm':_0x574ab8(0x1e0),'webp':_0x574ab8(0x5a2),'woff':_0x574ab8(0x68f),'woff2':'font/woff2','xhtml':'application/xhtml+xml','xls':'application/vnd.ms-excel','xlsx':_0x574ab8(0x588),'xml':'application/xml','xul':_0x574ab8(0x6f1),'zip':_0x574ab8(0x50b),'3gp':_0x574ab8(0x57c),'3g2':_0x574ab8(0x39d),'7z':_0x574ab8(0x242)},_0x8e367d=_0x19cce4[_0x382f21['toLowerCase']()];return _0x8e367d;}async[a3_0x402819(0x2e1)](_0x4b7902,_0x5f45de,_0x2c16ce){const _0x34327c=a3_0x402819;var _0x174570;const _0x569c38=await this['uploadFileFromPathInternal'](_0x4b7902,_0x5f45de,_0x2c16ce),_0x479d18=await(_0x569c38===null||_0x569c38===void 0x0?void 0x0:_0x569c38[_0x34327c(0x4cf)]());if(((_0x174570=_0x569c38===null||_0x569c38===void 0x0?void 0x0:_0x569c38[_0x34327c(0x70b)])===null||_0x174570===void 0x0?void 0x0:_0x174570[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!=='final')throw new Error('Failed\x20to\x20upload\x20file:\x20Upload\x20status\x20is\x20not\x20finalized.');return _0x479d18[_0x34327c(0x2fa)];}async[a3_0x402819(0x491)](_0x42ec92,_0x4cb910,_0x509334){const _0x595f6b=a3_0x402819;var _0x3d7252;const _0x49f5d5=await this[_0x595f6b(0x618)](_0x42ec92,_0x4cb910,_0x509334),_0x1699a4=await(_0x49f5d5===null||_0x49f5d5===void 0x0?void 0x0:_0x49f5d5[_0x595f6b(0x4cf)]());if(((_0x3d7252=_0x49f5d5===null||_0x49f5d5===void 0x0?void 0x0:_0x49f5d5[_0x595f6b(0x70b)])===null||_0x3d7252===void 0x0?void 0x0:_0x3d7252[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x595f6b(0x6e8))throw new Error(_0x595f6b(0x617));const _0x5dc452=uploadToFileSearchStoreOperationFromMldev(_0x1699a4),_0x273ea0=new UploadToFileSearchStoreOperation();return Object[_0x595f6b(0x48a)](_0x273ea0,_0x5dc452),_0x273ea0;}async['uploadFileFromPathInternal'](_0x17dee7,_0x51a319,_0x424ce0){const _0x45c08a=a3_0x402819;var _0x55b2e8,_0x2b38d4;let _0x14cde8=0x0,_0x2b4647=0x0,_0x34851e=new HttpResponse(new Response()),_0xa410e0='upload',_0x5200ea;const _0x7355ab=a3_0x407f9c['basename'](_0x17dee7);try{_0x5200ea=await a3_0x2a3f14[_0x45c08a(0x4df)](_0x17dee7,'r');if(!_0x5200ea)throw new Error(_0x45c08a(0x5a7));_0x14cde8=(await _0x5200ea[_0x45c08a(0x409)]())[_0x45c08a(0x707)];while(_0x2b4647<_0x14cde8){const _0x10e8dd=Math[_0x45c08a(0x31f)](MAX_CHUNK_SIZE,_0x14cde8-_0x2b4647);_0x2b4647+_0x10e8dd>=_0x14cde8&&(_0xa410e0+=_0x45c08a(0x2ea));const _0x37e1c5=new Uint8Array(_0x10e8dd),{bytesRead:_0x473206}=await _0x5200ea[_0x45c08a(0x69f)](_0x37e1c5,0x0,_0x10e8dd,_0x2b4647);if(_0x473206!==_0x10e8dd)throw new Error(_0x45c08a(0x31c)+_0x10e8dd+_0x45c08a(0x45b)+_0x2b4647+_0x45c08a(0x2fd)+_0x473206);const _0x4bfe5d=new Blob([_0x37e1c5]);let _0x445d00=0x0,_0x49e614=INITIAL_RETRY_DELAY_MS;while(_0x445d00<MAX_RETRY_COUNT){_0x34851e=await _0x424ce0[_0x45c08a(0x239)]({'path':'','body':_0x4bfe5d,'httpMethod':_0x45c08a(0x6d7),'httpOptions':{'apiVersion':'','baseUrl':_0x51a319,'headers':{'X-Goog-Upload-Command':_0xa410e0,'X-Goog-Upload-Offset':String(_0x2b4647),'Content-Length':String(_0x473206),'X-Goog-Upload-File-Name':_0x7355ab}}});if((_0x55b2e8=_0x34851e===null||_0x34851e===void 0x0?void 0x0:_0x34851e[_0x45c08a(0x70b)])===null||_0x55b2e8===void 0x0?void 0x0:_0x55b2e8[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])break;_0x445d00++,await sleep(_0x49e614),_0x49e614=_0x49e614*DELAY_MULTIPLIER;}_0x2b4647+=_0x473206;if(((_0x2b38d4=_0x34851e===null||_0x34851e===void 0x0?void 0x0:_0x34851e[_0x45c08a(0x70b)])===null||_0x2b38d4===void 0x0?void 0x0:_0x2b38d4[X_GOOG_UPLOAD_STATUS_HEADER_FIELD])!==_0x45c08a(0x496))break;if(_0x14cde8<=_0x2b4647)throw new Error(_0x45c08a(0x4a8));}return _0x34851e;}finally{_0x5200ea&&await _0x5200ea[_0x45c08a(0x69a)]();}}}/**
272
+ * @license
273
+ * Copyright 2025 Google LLC
274
+ * SPDX-License-Identifier: Apache-2.0
275
+ */
276
+ class NodeFiles extends Files{async[a3_0x402819(0x6d4)](_0x39cbb5){const _0x38c365=a3_0x402819;if(typeof process===_0x38c365(0x668)||!process[_0x38c365(0x33b)]||!process[_0x38c365(0x33b)][_0x38c365(0x443)])throw new Error(_0x38c365(0x3c0));const _0x35e7a9=_0x39cbb5['auth'],_0x2601ef=await _0x35e7a9[_0x38c365(0x5a5)](),_0x45aa1f=_0x39cbb5['config']||{},_0x37440d=_0x45aa1f[_0x38c365(0x5c7)]||{},_0x37e723=Object['assign']({},_0x37440d[_0x38c365(0x70b)]||{});if(_0x2601ef){if(typeof _0x2601ef[Symbol[_0x38c365(0x3f7)]]===_0x38c365(0x390))for(const [_0x4f6c81,_0x527f60]of _0x2601ef){_0x37e723[_0x4f6c81]=_0x527f60;}else for(const [_0x11c860,_0x5e4308]of Object[_0x38c365(0x584)](_0x2601ef)){_0x37e723[_0x11c860]=_0x5e4308;}}return this[_0x38c365(0x399)]({'uris':_0x39cbb5[_0x38c365(0x653)],'config':Object[_0x38c365(0x48a)](Object[_0x38c365(0x48a)]({},_0x45aa1f),{'httpOptions':Object[_0x38c365(0x48a)](Object[_0x38c365(0x48a)]({},_0x37440d),{'headers':_0x37e723})})});}}/**
277
+ * @license
278
+ * Copyright 2025 Google LLC
279
+ * SPDX-License-Identifier: Apache-2.0
280
+ */
281
+ const LANGUAGE_LABEL_PREFIX=a3_0x402819(0x4c9);class GoogleGenAI{get['interactions'](){const _0x764c25=a3_0x402819;if(this[_0x764c25(0x2cd)]!==undefined)return this[_0x764c25(0x2cd)];console[_0x764c25(0x1bd)](_0x764c25(0x57e));const _0x26872c=this[_0x764c25(0x5c7)];(_0x26872c===null||_0x26872c===void 0x0?void 0x0:_0x26872c[_0x764c25(0x310)])&&console[_0x764c25(0x1bd)](_0x764c25(0x5d2));const _0x5dab8a=new GeminiNextGenAPIClient({'baseURL':this[_0x764c25(0x235)][_0x764c25(0x4fe)](),'apiKey':this[_0x764c25(0x58c)],'apiVersion':this[_0x764c25(0x235)]['getApiVersion'](),'clientAdapter':this['apiClient'],'defaultHeaders':this[_0x764c25(0x235)][_0x764c25(0x3ae)](),'timeout':_0x26872c===null||_0x26872c===void 0x0?void 0x0:_0x26872c[_0x764c25(0x40f)]});return this['_interactions']=_0x5dab8a[_0x764c25(0x28c)],this[_0x764c25(0x2cd)];}constructor(_0x5a6158){const _0x345e0d=a3_0x402819;var _0x1618d5,_0x472b75,_0x10ef84,_0x149788,_0x426ce4,_0x36ebfb;if((_0x5a6158[_0x345e0d(0x31e)]||_0x5a6158[_0x345e0d(0x4b8)])&&_0x5a6158[_0x345e0d(0x58c)])throw new Error('Project/location\x20and\x20API\x20key\x20are\x20mutually\x20exclusive\x20in\x20the\x20client\x20initializer.');this[_0x345e0d(0x649)]=(_0x472b75=(_0x1618d5=_0x5a6158[_0x345e0d(0x649)])!==null&&_0x1618d5!==void 0x0?_0x1618d5:getBooleanEnv('GOOGLE_GENAI_USE_VERTEXAI'))!==null&&_0x472b75!==void 0x0?_0x472b75:![];const _0x5bb303=getApiKeyFromEnv(),_0x3dd1d9=getEnv('GOOGLE_CLOUD_PROJECT'),_0x42ea1b=getEnv(_0x345e0d(0x2e2));this['apiKey']=(_0x10ef84=_0x5a6158['apiKey'])!==null&&_0x10ef84!==void 0x0?_0x10ef84:_0x5bb303,this[_0x345e0d(0x31e)]=(_0x149788=_0x5a6158[_0x345e0d(0x31e)])!==null&&_0x149788!==void 0x0?_0x149788:_0x3dd1d9,this[_0x345e0d(0x4b8)]=(_0x426ce4=_0x5a6158['location'])!==null&&_0x426ce4!==void 0x0?_0x426ce4:_0x42ea1b;if(!this[_0x345e0d(0x649)]&&!this[_0x345e0d(0x58c)])throw new Error(_0x345e0d(0x264));if(_0x5a6158[_0x345e0d(0x649)]){((_0x36ebfb=_0x5a6158[_0x345e0d(0x665)])===null||_0x36ebfb===void 0x0?void 0x0:_0x36ebfb['credentials'])&&(console[_0x345e0d(0x450)](_0x345e0d(0x6ec)+_0x345e0d(0x591)),this['apiKey']=undefined);if((_0x3dd1d9||_0x42ea1b)&&_0x5a6158[_0x345e0d(0x58c)])console[_0x345e0d(0x450)]('The\x20user\x20provided\x20Vertex\x20AI\x20API\x20key\x20will\x20take\x20precedence\x20over'+_0x345e0d(0x3ab)),this[_0x345e0d(0x31e)]=undefined,this[_0x345e0d(0x4b8)]=undefined;else{if((_0x5a6158[_0x345e0d(0x31e)]||_0x5a6158[_0x345e0d(0x4b8)])&&_0x5bb303)console[_0x345e0d(0x450)]('The\x20user\x20provided\x20project/location\x20will\x20take\x20precedence\x20over'+'\x20the\x20API\x20key\x20from\x20the\x20environment\x20variables.'),this[_0x345e0d(0x58c)]=undefined;else(_0x3dd1d9||_0x42ea1b)&&_0x5bb303&&(console[_0x345e0d(0x450)](_0x345e0d(0x718)+_0x345e0d(0x26c)),this[_0x345e0d(0x58c)]=undefined);}!this[_0x345e0d(0x4b8)]&&!this[_0x345e0d(0x58c)]&&(this[_0x345e0d(0x4b8)]=_0x345e0d(0x3c5));}const _0x3bff32=getBaseUrl(_0x5a6158[_0x345e0d(0x5c7)],_0x5a6158[_0x345e0d(0x649)],getEnv(_0x345e0d(0x4d5)),getEnv(_0x345e0d(0x407)));_0x3bff32&&(_0x5a6158[_0x345e0d(0x5c7)]?_0x5a6158[_0x345e0d(0x5c7)]['baseUrl']=_0x3bff32:_0x5a6158[_0x345e0d(0x5c7)]={'baseUrl':_0x3bff32});this[_0x345e0d(0x272)]=_0x5a6158[_0x345e0d(0x272)],this[_0x345e0d(0x5c7)]=_0x5a6158[_0x345e0d(0x5c7)];const _0x2ab7be=new NodeAuth({'apiKey':this[_0x345e0d(0x58c)],'googleAuthOptions':_0x5a6158['googleAuthOptions']});this[_0x345e0d(0x235)]=new ApiClient({'auth':_0x2ab7be,'project':this['project'],'location':this['location'],'apiVersion':this[_0x345e0d(0x272)],'apiKey':this[_0x345e0d(0x58c)],'vertexai':this['vertexai'],'httpOptions':this[_0x345e0d(0x5c7)],'userAgentExtra':LANGUAGE_LABEL_PREFIX+process['version'],'uploader':new NodeUploader(),'downloader':new NodeDownloader()}),this[_0x345e0d(0x55a)]=new Models(this[_0x345e0d(0x235)]),this[_0x345e0d(0x3fc)]=new Live(this['apiClient'],_0x2ab7be,new NodeWebSocketFactory()),this[_0x345e0d(0x1d6)]=new Batches(this[_0x345e0d(0x235)]),this['chats']=new Chats(this[_0x345e0d(0x55a)],this[_0x345e0d(0x235)]),this['caches']=new Caches(this[_0x345e0d(0x235)]),this[_0x345e0d(0x232)]=new NodeFiles(this[_0x345e0d(0x235)]),this[_0x345e0d(0x65b)]=new Operations(this['apiClient']),this['authTokens']=new Tokens(this[_0x345e0d(0x235)]),this[_0x345e0d(0x4b0)]=new Tunings(this['apiClient']),this[_0x345e0d(0x642)]=new FileSearchStores(this[_0x345e0d(0x235)]);}}function getEnv(_0x2afc34){var _0x1726de,_0x31edc6,_0x3e64d3;return(_0x3e64d3=(_0x31edc6=(_0x1726de=process===null||process===void 0x0?void 0x0:process.env)===null||_0x1726de===void 0x0?void 0x0:_0x1726de[_0x2afc34])===null||_0x31edc6===void 0x0?void 0x0:_0x31edc6['trim']())!==null&&_0x3e64d3!==void 0x0?_0x3e64d3:undefined;}function getBooleanEnv(_0x620937){return stringToBoolean(getEnv(_0x620937));}function stringToBoolean(_0x5be835){const _0x1414c0=a3_0x402819;if(_0x5be835===undefined)return![];return _0x5be835[_0x1414c0(0x1d1)]()==='true';}function getApiKeyFromEnv(){const _0x502ab7=a3_0x402819,_0x195d6c=getEnv(_0x502ab7(0x283)),_0x4e8f15=getEnv(_0x502ab7(0x33c));return _0x195d6c&&_0x4e8f15&&console[_0x502ab7(0x1bd)](_0x502ab7(0x476)),_0x195d6c||_0x4e8f15||undefined;}export{ActivityHandling,AdapterSize,ApiError,ApiSpec,AuthType,Batches,Behavior,BlockedReason,Caches,CancelTuningJobResponse,Chat,Chats,ComputeTokensResponse,ContentReferenceImage,ControlReferenceImage,ControlReferenceType,CountTokensResponse,CreateFileResponse,DeleteCachedContentResponse,DeleteFileResponse,DeleteModelResponse,DocumentState,DynamicRetrievalConfigMode,EditImageResponse,EditMode,EmbedContentResponse,EndSensitivity,Environment,FeatureSelectionPreference,FileSource,FileState,Files,FinishReason,FunctionCallingConfigMode,FunctionResponse,FunctionResponseBlob,FunctionResponseFileData,FunctionResponsePart,FunctionResponseScheduling,GenerateContentResponse,GenerateContentResponsePromptFeedback,GenerateContentResponseUsageMetadata,GenerateImagesResponse,GenerateVideosOperation,GenerateVideosResponse,GoogleGenAI,HarmBlockMethod,HarmBlockThreshold,HarmCategory,HarmProbability,HarmSeverity,HttpElementLocation,HttpResponse,ImagePromptLanguage,ImportFileOperation,ImportFileResponse,InlinedEmbedContentResponse,InlinedResponse,JobState,Language,ListBatchJobsResponse,ListCachedContentsResponse,ListDocumentsResponse,ListFileSearchStoresResponse,ListFilesResponse,ListModelsResponse,ListTuningJobsResponse,Live,LiveClientToolResponse,LiveMusicPlaybackControl,LiveMusicServerMessage,LiveSendToolResponseParameters,LiveServerMessage,MaskReferenceImage,MaskReferenceMode,MediaModality,MediaResolution,Modality,Models,MusicGenerationMode,Operations,Outcome,PagedItem,Pager,PartMediaResolutionLevel,PersonGeneration,PhishBlockThreshold,RawReferenceImage,RecontextImageResponse,RegisterFilesResponse,ReplayResponse,ResourceScope,SafetyFilterLevel,Scale,SegmentImageResponse,SegmentMode,Session,SingleEmbedContentResponse,StartSensitivity,StyleReferenceImage,SubjectReferenceImage,SubjectReferenceType,ThinkingLevel,Tokens,TrafficType,TuningMethod,TuningMode,TuningTask,TurnCompleteReason,TurnCoverage,Type,UploadToFileSearchStoreOperation,UploadToFileSearchStoreResponse,UploadToFileSearchStoreResumableResponse,UpscaleImageResponse,UrlRetrievalStatus,VadSignalType,VideoCompressionQuality,VideoGenerationMaskMode,VideoGenerationReferenceType,VoiceActivityType,createFunctionResponsePartFromBase64,createFunctionResponsePartFromUri,createModelContent,createPartFromBase64,createPartFromCodeExecutionResult,createPartFromExecutableCode,createPartFromFunctionCall,createPartFromFunctionResponse,createPartFromText,createPartFromUri,createUserContent,mcpToTool,setDefaultBaseUrls};