@nuvin/agent-core 0.3.0 → 0.3.1-rc.1

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.
@@ -73,6 +73,7 @@ export declare class RoutedModel implements EngineChatModel {
73
73
  }): Promise<Response>;
74
74
  protected getRetryDelayMs(response: Response | undefined, attemptIndex: number): number;
75
75
  private shouldRetryResponse;
76
+ private shouldRefreshProviderSession;
76
77
  private shouldRetryRequestError;
77
78
  private shouldRetryStreamAttemptError;
78
79
  private waitForRetry;
@@ -1 +1 @@
1
- function _0x54f3(_0x44f0bd,_0x390733){_0x44f0bd=_0x44f0bd-0xab;const _0x1d3505=_0x1d35();let _0x54f356=_0x1d3505[_0x44f0bd];if(_0x54f3['ZxybFv']===undefined){var _0x1901ea=function(_0x426ee0){const _0x28ff1e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c2474='',_0x2fe15b='';for(let _0x30ecd0=0x0,_0x41d4a0,_0x157c50,_0x387256=0x0;_0x157c50=_0x426ee0['charAt'](_0x387256++);~_0x157c50&&(_0x41d4a0=_0x30ecd0%0x4?_0x41d4a0*0x40+_0x157c50:_0x157c50,_0x30ecd0++%0x4)?_0x1c2474+=String['fromCharCode'](0xff&_0x41d4a0>>(-0x2*_0x30ecd0&0x6)):0x0){_0x157c50=_0x28ff1e['indexOf'](_0x157c50);}for(let _0xb694b1=0x0,_0x4b713c=_0x1c2474['length'];_0xb694b1<_0x4b713c;_0xb694b1++){_0x2fe15b+='%'+('00'+_0x1c2474['charCodeAt'](_0xb694b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2fe15b);};_0x54f3['OgnBuQ']=_0x1901ea,_0x54f3['RHkcNA']={},_0x54f3['ZxybFv']=!![];}const _0x52caab=_0x1d3505[0x0],_0xa3d3f6=_0x44f0bd+_0x52caab,_0x3e3b3c=_0x54f3['RHkcNA'][_0xa3d3f6];return!_0x3e3b3c?(_0x54f356=_0x54f3['OgnBuQ'](_0x54f356),_0x54f3['RHkcNA'][_0xa3d3f6]=_0x54f356):_0x54f356=_0x3e3b3c,_0x54f356;}(function(_0x56cdb9,_0x53acba){const _0x388994={_0x2c3121:0xfe,_0x43591f:0xe9,_0x4867ed:0xf4,_0x5ca272:0x130,_0x37bb74:0x129,_0x50e64c:0x10f,_0x3d1e6d:0x11c,_0x586f29:0x115,_0xbe9358:0x11b,_0x3cfbc3:0x11f,_0x237b21:0x117,_0x1abeaf:0x111,_0x5e4de9:0xec,_0x11293a:0x113,_0x281001:0x120,_0x4a05b2:0xfa,_0x230f21:0xed,_0x2678be:0xfc,_0x2630f9:0x102,_0x24ad95:0xfa,_0xf172df:0xf9,_0x142a4d:0xf5,_0x3b3dda:0x12f,_0x370c43:0x12b,_0xfcce65:0x11e},_0x2cdac8={_0x50807d:0x68};function _0x1fa3c4(_0x2330b1,_0x916525,_0x450ff9,_0x42a2cc){return _0x54f3(_0x42a2cc-_0x2cdac8._0x50807d,_0x2330b1);}const _0x5849ee=_0x56cdb9();function _0x867ca0(_0x2d5ade,_0xf71bf3,_0x51c2e2,_0x2c7964){return _0x54f3(_0x2c7964- -0x1a9,_0x2d5ade);}while(!![]){try{const _0xc7d1ad=parseInt(_0x867ca0(-_0x388994._0x2c3121,-0xfc,-_0x388994._0x43591f,-_0x388994._0x4867ed))/0x1+parseInt(_0x1fa3c4(_0x388994._0x5ca272,0x12f,_0x388994._0x37bb74,0x12a))/0x2*(parseInt(_0x1fa3c4(0x120,_0x388994._0x50e64c,0x112,_0x388994._0x3d1e6d))/0x3)+-parseInt(_0x1fa3c4(0x124,_0x388994._0x586f29,_0x388994._0xbe9358,_0x388994._0x3cfbc3))/0x4*(parseInt(_0x1fa3c4(_0x388994._0x237b21,0x10f,_0x388994._0x1abeaf,0x11b))/0x5)+-parseInt(_0x867ca0(-0xea,-0xe0,-0xf0,-_0x388994._0x5e4de9))/0x6+parseInt(_0x1fa3c4(0x127,_0x388994._0x11293a,0x11e,_0x388994._0x281001))/0x7*(-parseInt(_0x867ca0(-_0x388994._0x4a05b2,-_0x388994._0x230f21,-_0x388994._0x2678be,-0xf0))/0x8)+parseInt(_0x867ca0(-0x105,-_0x388994._0x2630f9,-_0x388994._0x24ad95,-_0x388994._0xf172df))/0x9*(parseInt(_0x867ca0(-_0x388994._0x142a4d,-0xf1,-0xef,-0xfb))/0xa)+parseInt(_0x1fa3c4(_0x388994._0x3b3dda,0x133,0x120,_0x388994._0x370c43))/0xb*(parseInt(_0x1fa3c4(0x12b,0x119,0x123,_0x388994._0xfcce65))/0xc);if(_0xc7d1ad===_0x53acba)break;else _0x5849ee['push'](_0x5849ee['shift']());}catch(_0x474ddc){_0x5849ee['push'](_0x5849ee['shift']());}}}(_0x1d35,0x733ec));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x1c2474){const _0x5a2b51={_0x2e4a57:0x189,_0x1b040c:0x196,_0x48d34e:0x196,_0x3d0716:0x238,_0x3f4f80:0x243,_0x129e2f:0x234,_0x35cc3e:0x180,_0x31e65d:0x17a},_0x35a741={_0x4ddc08:0x3aa,_0x86beaa:0x3b6,_0x1af925:0x3a9,_0x4f30c8:0x3bf,_0x243a35:0x3ac,_0x5cd8f2:0x3ae,_0x528ea9:0xa1,_0x5366c6:0xa4,_0x3a1559:0x95},_0x4ed09b={_0x164b2c:0x147},_0x8bc980={_0x3c4406:0x171,_0x5e9408:0x7c,_0x5a3646:0x1c2},_0x144156={_0x3c23ab:0x38a,_0x30e51e:0x38a,_0x3d0089:0x388,_0x514f4f:0x3a1,_0x9df135:0x3a6,_0x209a5c:0x39c,_0x5e59cd:0x3a3,_0x132c4d:0x3a0,_0x2228ce:0x317,_0x5edc0a:0x30d},_0x217bf3={_0x35e00e:0xdf},_0x1083d6={_0x490dc3:0xcf};if(!Number[_0x516a0d(0x18f,_0x5a2b51._0x2e4a57,_0x5a2b51._0x1b040c,_0x5a2b51._0x48d34e)](_0x1c2474)||!Number[_0x3c9c3f(_0x5a2b51._0x3d0716,_0x5a2b51._0x3f4f80,_0x5a2b51._0x129e2f,0x239)](_0x1c2474)||_0x1c2474<=0x0)throw new Error(_0x516a0d(_0x5a2b51._0x35cc3e,_0x5a2b51._0x35cc3e,_0x5a2b51._0x31e65d,0x183));let _0x2fe15b=0x0;const _0x30ecd0=[];function _0x3c9c3f(_0x2903a9,_0x292e15,_0x21ef5a,_0x56e24d){return _0x54f3(_0x2903a9-0x189,_0x21ef5a);}function _0x516a0d(_0x69ee80,_0x534ca3,_0x3941b9,_0xd6752d){return _0x54f3(_0x534ca3-_0x1083d6._0x490dc3,_0x3941b9);}const _0x41d4a0=()=>{let _0xb694b1=![];return()=>{if(_0xb694b1)return;_0xb694b1=!![],_0x2fe15b-=0x1,_0x157c50();};},_0x157c50=()=>{const _0x4da4f1={_0x63eadf:0xd8};function _0x49fb86(_0x293e4d,_0xc842e7,_0x4ee68b,_0x5d6c4c){return _0x516a0d(_0x293e4d-_0x217bf3._0x35e00e,_0x5d6c4c-0x20e,_0x4ee68b,_0x5d6c4c-0xd6);}function _0x2bb72a(_0x138ccb,_0x2f5711,_0x25838b,_0x517245){return _0x3c9c3f(_0x2f5711-0xe2,_0x2f5711-_0x4da4f1._0x63eadf,_0x138ccb,_0x517245-0xb0);}while(_0x30ecd0['length']>0x0){const _0x4b713c=_0x30ecd0[_0x49fb86(0x385,_0x144156._0x3c23ab,_0x144156._0x30e51e,_0x144156._0x3d0089)]();if(!_0x4b713c||_0x4b713c[_0x49fb86(_0x144156._0x514f4f,0x3a0,_0x144156._0x9df135,_0x144156._0x209a5c)])continue;_0x4b713c[_0x49fb86(0x39d,0x390,0x3a9,0x39c)]=!![],_0x4b713c[_0x49fb86(_0x144156._0x5e59cd,_0x144156._0x132c4d,0x39c,0x398)](),_0x2fe15b+=0x1,_0x4b713c[_0x2bb72a(0x314,_0x144156._0x2228ce,_0x144156._0x5edc0a,0x30d)](_0x41d4a0());return;}},_0x387256=()=>{if(_0x2fe15b>=_0x1c2474)return void 0x0;return _0x2fe15b+=0x1,_0x41d4a0();};return{'tryAcquire':_0x387256,'acquire'(_0x16f18f){const _0x24c40f={_0xa7bb46:0xe9,_0x1ee00c:0xe3,_0x3aa1ad:0xec,_0x4af74e:0x465},_0x319d89={_0x134c07:0x185,_0x2a3599:0x80};if(_0x16f18f?.['aborted'])return Promise[_0x5696ee(_0x35a741._0x4ddc08,_0x35a741._0x86beaa,_0x35a741._0x1af925,_0x35a741._0x4f30c8)](toAbortError(_0x16f18f[_0x5696ee(0x3aa,_0x35a741._0x243a35,_0x35a741._0x5cd8f2,0x3a5)]));const _0x179a64=_0x387256();if(_0x179a64!==void 0x0)return Promise[_0x1de924(_0x35a741._0x528ea9,_0x35a741._0x5366c6,0xa3,_0x35a741._0x3a1559)](_0x179a64);function _0x5696ee(_0x1f172d,_0x257976,_0x5251b3,_0x5961cc){return _0x3c9c3f(_0x257976-_0x8bc980._0x3c4406,_0x257976-_0x8bc980._0x5e9408,_0x1f172d,_0x5961cc-_0x8bc980._0x5a3646);}function _0x1de924(_0x53a791,_0x47a7af,_0x169720,_0x2c3e1e){return _0x516a0d(_0x53a791-0x95,_0x53a791- -0xda,_0x2c3e1e,_0x2c3e1e-_0x4ed09b._0x164b2c);}return new Promise((_0x464225,_0x1a1de1)=>{const _0x366189={_0x786b04:0x1b5,_0x369cf4:0x1be,_0x353fef:0x1cb,_0x1b48ec:0x1c8,_0x37e29d:0x1b1,_0x526f86:0x1bc,_0x22ff1a:0x3ef,_0x597de5:0x3e4,_0x5c9f28:0x3fc,_0x417e1f:0x3eb,_0x288ca5:0x3ee,_0x220786:0x3f0,_0x26871c:0x3e5},_0x304142={_0x17b8dc:0x9f},_0x12ebca={_0x30f7d1:0xac};function _0x2193eb(_0x18c6f2,_0x330b59,_0x20e155,_0xb8e3ff){return _0x5696ee(_0x330b59,_0xb8e3ff-_0x12ebca._0x30f7d1,_0x20e155-0x98,_0xb8e3ff-0x3d);}const _0x30b443={'resolve':_0x464225,'reject':_0x1a1de1,'cancelled':![],'removeAbortListener':()=>{}};function _0x39c26e(_0x104dee,_0x46d2b1,_0x3f79a4,_0x2c9a13){return _0x1de924(_0x46d2b1- -_0x319d89._0x134c07,_0x46d2b1-0x191,_0x3f79a4-_0x319d89._0x2a3599,_0x3f79a4);}_0x30ecd0[_0x39c26e(-_0x24c40f._0xa7bb46,-_0x24c40f._0x1ee00c,-_0x24c40f._0x3aa1ad,-0xda)](_0x30b443),_0x30b443[_0x2193eb(0x469,_0x24c40f._0x4af74e,0x469,0x461)]=addAbortListener(_0x16f18f,()=>{const _0x533e8c={_0x9e255b:0x195,_0x1dcfdf:0x4c4};if(_0x30b443[_0x3781fd(-_0x366189._0x786b04,-_0x366189._0x369cf4,-_0x366189._0x353fef,-_0x366189._0x1b48ec)])return;_0x30b443[_0x3781fd(-0x1bf,-0x1be,-_0x366189._0x37e29d,-_0x366189._0x526f86)]=!![],_0x30b443[_0x5e1849(0x3e5,_0x366189._0x22ff1a,_0x366189._0x597de5,0x3f2)]();function _0x5e1849(_0xb6a921,_0x504c2a,_0xdb9ea,_0xd9bec){return _0x39c26e(_0xb6a921-_0x533e8c._0x9e255b,_0x504c2a-_0x533e8c._0x1dcfdf,_0xd9bec,_0xd9bec-0x1c0);}const _0x14626a=_0x30ecd0[_0x5e1849(0x3f9,0x3f2,_0x366189._0x5c9f28,_0x366189._0x417e1f)](_0x30b443);function _0x3781fd(_0x1e58e8,_0x32576c,_0x5c2ca7,_0x15174c){return _0x2193eb(_0x1e58e8-_0x304142._0x17b8dc,_0x15174c,_0x5c2ca7-0x1ce,_0x32576c- -0x623);}if(_0x14626a>=0x0)_0x30ecd0[_0x5e1849(0x3fd,0x3f4,0x3f8,_0x366189._0x288ca5)](_0x14626a,0x1);_0x30b443[_0x5e1849(0x3fc,_0x366189._0x220786,_0x366189._0x26871c,0x3ef)](toAbortError(_0x16f18f?.['reason']));});});}};}var MESSAGE_ROLES=[_0x2ce654(0x4d,0x49,0x4f,0x5b),_0x141f52(0x20c,0x211,0x20d,0x204)];function _0x141f52(_0xc53113,_0x3e1276,_0x4340c9,_0x524abf){return _0x54f3(_0x4340c9-0x14c,_0x524abf);}Object['freeze'](MESSAGE_ROLES);function _0x2ce654(_0x12416e,_0xd970c5,_0x2cc9ec,_0x13ac1e){return _0x54f3(_0x2cc9ec- -0x75,_0xd970c5);}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x1d35(){const _0x400822=['CMvQzwn0','mJe3otG0mKTPEenTra','Aw5KzxHpzG','y2fUy2vSBgvK','C3bSAwnL','DxnLCG','mtmWotz2v3rwBgO','mJiZmJy3CM5juhfv','yxnZAxn0yw50','C2HPzNq','CMvZB2X2zq','ChvZAa','mZaYodeWqLjJANHr','AxnjBNrLz2vY','owPOqLn2sq','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvHC29U','nJiZmda1z2Dpww5k','ndHfthPUuM0','mty3odCWA0HpEevI','otm2qwH1re1y','nhvizfP5tW','n0nxCK1Pyq','nZqWota2ng9ACKrbva','AxngAw5PDgu','CMvTB3zLqwjVCNrmAxn0zw5LCG'];_0x1d35=function(){return _0x400822;};return _0x1d35();}
1
+ function _0xa12d(){const _0x54fca8=['CMvTB3zLqwjVCNrmAxn0zw5LCG','ndm2mdu2wMzMt1n4','mtf3qLzdCxy','mZa4zermtvPl','ndbOrMfmEei','AxnjBNrLz2vY','zNjLzxPL','nZu1nfnXyLfzDa','mZuZmdG5mfD4BM9XsG','odiZntG1A3ziANjW','CMvQzwn0','Aw5KzxHpzG','DxnLCG','yxnZAxn0yw50','CMvZB2X2zq','ChvZAa','nZi5oty5nLfgv1b3sG','mtC5mtHks2XTuxC','CMvHC29U','y2fUy2vSBgvK','C3bSAwnL','mtHot05Hz3q','mtqYodqYCuL5BvHQ','mtbvz05kBe4','BgvUz3rO','AxngAw5PDgu'];_0xa12d=function(){return _0x54fca8;};return _0xa12d();}function _0x4e78(_0x5a20d2,_0x1715ee){_0x5a20d2=_0x5a20d2-0xf2;const _0xa12d51=_0xa12d();let _0x4e784f=_0xa12d51[_0x5a20d2];if(_0x4e78['xCRZap']===undefined){var _0x598005=function(_0xeecf60){const _0x33a269='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47bd5c='',_0x5e854c='';for(let _0xd80262=0x0,_0x435b21,_0x5a2b6c,_0x4e3b13=0x0;_0x5a2b6c=_0xeecf60['charAt'](_0x4e3b13++);~_0x5a2b6c&&(_0x435b21=_0xd80262%0x4?_0x435b21*0x40+_0x5a2b6c:_0x5a2b6c,_0xd80262++%0x4)?_0x47bd5c+=String['fromCharCode'](0xff&_0x435b21>>(-0x2*_0xd80262&0x6)):0x0){_0x5a2b6c=_0x33a269['indexOf'](_0x5a2b6c);}for(let _0x41cb21=0x0,_0x2fbd1f=_0x47bd5c['length'];_0x41cb21<_0x2fbd1f;_0x41cb21++){_0x5e854c+='%'+('00'+_0x47bd5c['charCodeAt'](_0x41cb21)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e854c);};_0x4e78['MzZhBT']=_0x598005,_0x4e78['xOyAfl']={},_0x4e78['xCRZap']=!![];}const _0x133e0e=_0xa12d51[0x0],_0x20a0a5=_0x5a20d2+_0x133e0e,_0x4eabef=_0x4e78['xOyAfl'][_0x20a0a5];return!_0x4eabef?(_0x4e784f=_0x4e78['MzZhBT'](_0x4e784f),_0x4e78['xOyAfl'][_0x20a0a5]=_0x4e784f):_0x4e784f=_0x4eabef,_0x4e784f;}(function(_0x294d11,_0x2ef005){const _0x1667c7={_0x54e868:0x87,_0x343269:0x86,_0x5bd13b:0x483,_0x5e657f:0x488,_0x2886eb:0x84,_0x30d989:0x79,_0x543a64:0x7c,_0x15638c:0x8a,_0x2c64d7:0x88,_0x2b2bfe:0x75,_0x459be1:0x7b,_0xf8cec4:0x491,_0x20737d:0x48c,_0x3ed4d0:0x484,_0x407f33:0x484,_0x5c0cc9:0x478,_0x195248:0x47f,_0x16e7dc:0x8f},_0x5ce733={_0x543381:0x388};function _0x42275a(_0x55c1d0,_0x1d818f,_0x42d00e,_0x3baf8c){return _0x4e78(_0x55c1d0-_0x5ce733._0x543381,_0x3baf8c);}function _0xf03c4e(_0x3e0110,_0x967b53,_0x3cb235,_0x57f01a){return _0x4e78(_0x57f01a- -0x7e,_0x967b53);}const _0x594c1a=_0x294d11();while(!![]){try{const _0x3e9c1a=parseInt(_0xf03c4e(0x8e,0x81,0x7d,_0x1667c7._0x54e868))/0x1*(parseInt(_0xf03c4e(_0x1667c7._0x343269,0x94,0x97,0x8d))/0x2)+-parseInt(_0x42275a(_0x1667c7._0x5bd13b,0x490,0x477,_0x1667c7._0x5e657f))/0x3*(-parseInt(_0xf03c4e(_0x1667c7._0x2886eb,0x79,0x86,_0x1667c7._0x30d989))/0x4)+-parseInt(_0xf03c4e(_0x1667c7._0x543a64,0x6d,0x70,0x7a))/0x5*(-parseInt(_0xf03c4e(_0x1667c7._0x15638c,_0x1667c7._0x2c64d7,0x90,0x8c))/0x6)+-parseInt(_0xf03c4e(0x82,0x8b,0x78,0x7f))/0x7+-parseInt(_0xf03c4e(_0x1667c7._0x2b2bfe,_0x1667c7._0x459be1,_0x1667c7._0x2b2bfe,0x77))/0x8*(parseInt(_0x42275a(_0x1667c7._0xf8cec4,0x49d,_0x1667c7._0x20737d,_0x1667c7._0x5e657f))/0x9)+-parseInt(_0x42275a(_0x1667c7._0x3ed4d0,0x486,_0x1667c7._0x407f33,_0x1667c7._0x5c0cc9))/0xa*(parseInt(_0x42275a(0x47e,0x47b,_0x1667c7._0x195248,_0x1667c7._0x407f33))/0xb)+parseInt(_0xf03c4e(_0x1667c7._0x16e7dc,0x85,0x7f,0x86))/0xc;if(_0x3e9c1a===_0x2ef005)break;else _0x594c1a['push'](_0x594c1a['shift']());}catch(_0x5df5e0){_0x594c1a['push'](_0x594c1a['shift']());}}}(_0xa12d,0x7aad2));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0xbf1129(_0x3419ca,_0x309262,_0x4d3fb3,_0xb2043f){return _0x4e78(_0x309262-0x8a,_0x4d3fb3);}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';function _0x3f6966(_0x126bfb,_0x525326,_0x5883e1,_0x34fae9){return _0x4e78(_0x126bfb- -0x188,_0x34fae9);}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x47bd5c){const _0x27625a={_0x1f5a48:0x80,_0x2b0140:0x79,_0xe8a8b2:0x76,_0x45647d:0x49},_0x1a83a3={_0x1d80e8:0xcf,_0x7fce0c:0x464,_0x54a214:0x46d,_0x247785:0x46b},_0x4af9d3={_0x3690dd:0x14a,_0x1fe2fc:0x14d,_0x5e3cce:0x97,_0x3db07b:0x97},_0x56ea1e={_0x1eb0ae:0x144,_0x482fd8:0x21},_0x5a082d={_0x1485ab:0x44},_0x4fd506={_0x56bf61:0xbf,_0x3177e5:0xb2,_0xe507c3:0xc9,_0x2e623f:0xde,_0x3e9c4b:0xe5,_0x4b4b88:0xe0,_0x228807:0xe6,_0x536959:0xf2},_0x5b838e={_0x349b9:0x10d,_0x1591bb:0x15c};function _0xadd2ea(_0x4f7eed,_0x2cc0a9,_0x138366,_0x3360a3){return _0x4e78(_0x4f7eed- -0x140,_0x2cc0a9);}if(!Number[_0x1d48d5(-_0x27625a._0x1f5a48,-_0x27625a._0x2b0140,-_0x27625a._0xe8a8b2,-0x89)](_0x47bd5c)||!Number[_0xadd2ea(-0x47,-0x3b,-_0x27625a._0x45647d,-0x40)](_0x47bd5c)||_0x47bd5c<=0x0)throw new Error('maxConcurrency\x20must\x20be\x20a\x20finite\x20positive\x20integer');let _0x5e854c=0x0;const _0xd80262=[],_0x435b21=()=>{let _0x41cb21=![];return()=>{if(_0x41cb21)return;_0x41cb21=!![],_0x5e854c-=0x1,_0x5a2b6c();};},_0x5a2b6c=()=>{const _0x17712b={_0x1bf50a:0x1a};function _0x44bc96(_0x35a7fb,_0x3a183a,_0x25a700,_0x3ca05b){return _0xadd2ea(_0x3a183a-_0x5b838e._0x349b9,_0x25a700,_0x25a700-_0x5b838e._0x1591bb,_0x3ca05b-0x52);}function _0x2f728a(_0x43c5eb,_0x2b4e1f,_0x324e5e,_0x4c7e18){return _0x1d48d5(_0x4c7e18- -0x7a,_0x43c5eb,_0x324e5e-_0x17712b._0x1bf50a,_0x4c7e18-0x5b);}while(_0xd80262[_0x44bc96(0xb7,_0x4fd506._0x56bf61,_0x4fd506._0x3177e5,_0x4fd506._0xe507c3)]>0x0){const _0x2fbd1f=_0xd80262['shift']();if(!_0x2fbd1f||_0x2fbd1f['cancelled'])continue;_0x2fbd1f[_0x2f728a(-_0x4fd506._0x2e623f,-_0x4fd506._0x3e9c4b,-_0x4fd506._0x4b4b88,-_0x4fd506._0x228807)]=!![],_0x2fbd1f['removeAbortListener'](),_0x5e854c+=0x1,_0x2fbd1f[_0x2f728a(-_0x4fd506._0x228807,-_0x4fd506._0x536959,-0xde,-0xeb)](_0x435b21());return;}},_0x4e3b13=()=>{if(_0x5e854c>=_0x47bd5c)return void 0x0;return _0x5e854c+=0x1,_0x435b21();};function _0x1d48d5(_0x4bd75c,_0x3c3f96,_0x48cd1d,_0x14dd08){return _0x4e78(_0x4bd75c- -0x173,_0x3c3f96);}return{'tryAcquire':_0x4e3b13,'acquire'(_0x5f0201){const _0x4d691f={_0x33650a:0x114,_0x7355e9:0x114,_0x547150:0x11f,_0x59a10a:0x114,_0x8eb392:0x238,_0x41d07d:0x23d,_0xa4fcff:0x249,_0x197be0:0x254,_0x58cd85:0x10b,_0x5c32c4:0x10f};function _0x57e623(_0x2d461d,_0x5cf904,_0x23533b,_0x211645){return _0x1d48d5(_0x211645-0x4dc,_0x23533b,_0x23533b-_0x5a082d._0x1485ab,_0x211645-0x68);}if(_0x5f0201?.['aborted'])return Promise[_0x53455e(0xc3,0xd3,_0x1a83a3._0x1d80e8,0xc4)](toAbortError(_0x5f0201[_0x53455e(0xe0,0xdc,0xd7,0xcb)]));const _0x41a01d=_0x4e3b13();if(_0x41a01d!==void 0x0)return Promise[_0x57e623(0x478,_0x1a83a3._0x7fce0c,_0x1a83a3._0x54a214,_0x1a83a3._0x247785)](_0x41a01d);function _0x53455e(_0x40d5c1,_0x57d5c8,_0x4309ab,_0x2a157e){return _0x1d48d5(_0x4309ab-_0x56ea1e._0x1eb0ae,_0x40d5c1,_0x4309ab-0x2,_0x2a157e-_0x56ea1e._0x482fd8);}return new Promise((_0x4c50a8,_0x3b9af3)=>{const _0x1846af={_0x7a6022:0xac,_0xf1ef57:0xf7},_0x252cf1={_0xe9151:0x35},_0x5d07e1={_0x3d09a1:0x21,_0x391d08:0x1b},_0x3d87fc={_0x21c33d:0x1c1},_0x3c2929={'resolve':_0x4c50a8,'reject':_0x3b9af3,'cancelled':![],'removeAbortListener':()=>{}};_0xd80262[_0x2daf52(-_0x4af9d3._0x3690dd,-_0x4af9d3._0x1fe2fc,-0x14d,-0x144)](_0x3c2929);function _0x40efae(_0x1d4070,_0x3a60d8,_0x25493f,_0x51a330){return _0x53455e(_0x3a60d8,_0x3a60d8-_0x3d87fc._0x21c33d,_0x25493f- -0x166,_0x51a330-0xa);}function _0x2daf52(_0x3fdd68,_0xb617b5,_0x33115a,_0x4d805e){return _0x53455e(_0x3fdd68,_0xb617b5-_0x5d07e1._0x3d09a1,_0x33115a- -0x221,_0x4d805e-_0x5d07e1._0x391d08);}_0x3c2929[_0x40efae(-_0x4af9d3._0x5e3cce,-_0x4af9d3._0x3db07b,-0xa1,-0xa1)]=addAbortListener(_0x5f0201,()=>{if(_0x3c2929[_0x413687(-0x23f,-0x240,-0x238,-0x238)])return;_0x3c2929[_0x53de73(-0x10b,-_0x4d691f._0x33650a,-_0x4d691f._0x7355e9,-0x110)]=!![];function _0x53de73(_0x31b28f,_0x50cffe,_0x12f483,_0x570bb5){return _0x2daf52(_0x570bb5,_0x50cffe-0x2e,_0x50cffe-_0x252cf1._0xe9151,_0x570bb5-0x1a2);}_0x3c2929['removeAbortListener']();const _0x33286d=_0xd80262[_0x53de73(-0x11b,-0x11c,-_0x4d691f._0x547150,-_0x4d691f._0x59a10a)](_0x3c2929);function _0x413687(_0x5ee2bf,_0x1937b5,_0xbaae2e,_0x130e42){return _0x2daf52(_0xbaae2e,_0x1937b5-_0x1846af._0x7a6022,_0x1937b5- -_0x1846af._0xf1ef57,_0x130e42-0x18a);}if(_0x33286d>=0x0)_0xd80262[_0x413687(-_0x4d691f._0x8eb392,-0x23f,-0x23a,-0x234)](_0x33286d,0x1);_0x3c2929[_0x413687(-_0x4d691f._0x41d07d,-_0x4d691f._0xa4fcff,-_0x4d691f._0x197be0,-0x24a)](toAbortError(_0x5f0201?.[_0x53de73(-0x112,-0x115,-_0x4d691f._0x58cd85,-_0x4d691f._0x5c32c4)]));});});}};}var MESSAGE_ROLES=[_0x3f6966(-0x87,-0x7a,-0x87,-0x7f),_0xbf1129(0x197,0x18a,0x185,0x185)];Object[_0x3f6966(-0x8e,-0x97,-0x90,-0x91)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};