@univer-cli/generic-keyed-instance-pool 1.6.0 → 1.6.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x1c83e2=_0xfd6e;(function(_0x3c76c9,_0xa7b337){const _0xdf9352=_0xfd6e,_0x1e48f4=_0x3c76c9();while(!![]){try{const _0x5ec824=-parseInt(_0xdf9352(0x11f))/0x1+-parseInt(_0xdf9352(0x136))/0x2*(parseInt(_0xdf9352(0x10c))/0x3)+-parseInt(_0xdf9352(0xff))/0x4+-parseInt(_0xdf9352(0x120))/0x5+parseInt(_0xdf9352(0x117))/0x6*(-parseInt(_0xdf9352(0x128))/0x7)+-parseInt(_0xdf9352(0x122))/0x8+parseInt(_0xdf9352(0x110))/0x9*(parseInt(_0xdf9352(0x138))/0xa);if(_0x5ec824===_0xa7b337)break;else _0x1e48f4['push'](_0x1e48f4['shift']());}catch(_0x33a9f9){_0x1e48f4['push'](_0x1e48f4['shift']());}}}(_0x49dc,0x79952));var e=class extends Error{[_0x1c83e2(0x101)];constructor(_0x4392a6,_0x508fcc,_0x357e59){const _0x3b2b21=_0x1c83e2;super(_0x508fcc,_0x357e59),this[_0x3b2b21(0x125)]='InstancePoolError',this[_0x3b2b21(0x101)]=_0x4392a6;}},t=0x493e0,n=0x14;function r(_0x1dc56a){const _0x36cc4c=_0x1c83e2;let _0x48f1ce=new Map(),_0x37ccbe=new Set(),_0x5d06bb=new Map(),_0x105f3a=_0x1dc56a['cache']?.['idleTtlMs']??t,_0x17e2f7=_0x1dc56a['cache']?.[_0x36cc4c(0x10e)]??n,_0x4fc7f0=!0x1,_0x2d7d16,_0x18e2a7=0x0;i(_0x105f3a,_0x17e2f7);let _0xd9329a={async 'acquire'(_0x4ce204){const _0x15ed89=_0x36cc4c;_0xee3a27(),a(_0x4ce204);let _0xbf269b=_0x48f1ce[_0x15ed89(0x102)](_0x4ce204[_0x15ed89(0x112)]);if(_0xbf269b)return _0xbf269b[_0x15ed89(0x119)]?await o(_0x4ce204,_0xbf269b[_0x15ed89(0x108)]):(c(_0xbf269b),_0xbf269b[_0x15ed89(0x119)]=!0x0,_0x1c143f({'key':_0x4ce204[_0x15ed89(0x112)],'type':'cache-hit'}),_0x1bc676(_0x4ce204[_0x15ed89(0x112)],_0xbf269b));let _0x1a3729=_0x5d06bb[_0x15ed89(0x102)](_0x4ce204['key']);if(_0x1a3729)return await o(_0x4ce204,_0x1a3729);let _0x40e1b2,_0x54b425=new Promise(_0x1647d4=>{_0x40e1b2=_0x1647d4;});_0x37ccbe[_0x15ed89(0x11a)](_0x54b425),_0x5d06bb[_0x15ed89(0x10d)](_0x4ce204[_0x15ed89(0x112)],[]);let _0x2a7b30=Date[_0x15ed89(0x132)]();_0x1c143f({'key':_0x4ce204[_0x15ed89(0x112)],'type':_0x15ed89(0x106)});try{await _0x757412();let _0x4dacb0=await _0x1dc56a[_0x15ed89(0x115)]['create'](_0x4ce204);if(_0x4fc7f0)throw await _0x1dc56a['factory'][_0x15ed89(0x11c)]({'instance':_0x4dacb0,'key':_0x4ce204['key']}),l();let _0x478495={'busy':!0x0,'closed':!0x1,'instance':_0x4dacb0,'invalidated':!0x1,'lastIdleSequence':0x0,'waiters':_0x5d06bb['get'](_0x4ce204[_0x15ed89(0x112)])??[]};return _0x48f1ce[_0x15ed89(0x10d)](_0x4ce204[_0x15ed89(0x112)],_0x478495),_0x1c143f({'durationMs':Date[_0x15ed89(0x132)]()-_0x2a7b30,'key':_0x4ce204[_0x15ed89(0x112)],'type':_0x15ed89(0x12c)}),_0x1bc676(_0x4ce204[_0x15ed89(0x112)],_0x478495);}catch(_0x267aa0){throw s(_0x5d06bb[_0x15ed89(0x102)](_0x4ce204[_0x15ed89(0x112)])??[],_0x267aa0),_0x267aa0;}finally{_0x5d06bb[_0x15ed89(0x121)](_0x4ce204[_0x15ed89(0x112)]),_0x37ccbe['delete'](_0x54b425),_0x40e1b2();}},async 'close'(){if(_0x2d7d16)return await _0x2d7d16;_0x4fc7f0=!0x0,_0x2d7d16=_0x529dc4(),await _0x2d7d16;}};return _0xd9329a;function _0x1bc676(_0x1458ba,_0x3ccb32){const _0x2940ac=_0x36cc4c;let _0x458730=!0x1;return{'instance':_0x3ccb32[_0x2940ac(0x126)],'key':_0x1458ba,async 'invalidate'(){const _0x4949c1=_0x2940ac;_0x458730||(_0x458730=!0x0,_0x3ccb32[_0x4949c1(0x105)]=!0x0,await _0x5e0eef(_0x1458ba,_0x3ccb32,_0x4949c1(0x10a)));},async 'release'(){const _0x284a1d=_0x2940ac;if(_0x458730||(_0x458730=!0x0,_0x3ccb32[_0x284a1d(0x133)]))return;if(_0x3ccb32[_0x284a1d(0x105)]){await _0x5e0eef(_0x1458ba,_0x3ccb32,_0x284a1d(0x10a));return;}let _0x4fd01c=_0x3ccb32[_0x284a1d(0x108)][_0x284a1d(0x134)]();_0x4fd01c?_0x4fd01c[_0x284a1d(0x111)](_0x1bc676(_0x1458ba,_0x3ccb32)):(_0x3ccb32[_0x284a1d(0x119)]=!0x1,_0x3ccb32[_0x284a1d(0x137)]=++_0x18e2a7,_0x468b43(_0x1458ba,_0x3ccb32));}};}async function _0x5e0eef(_0x4ea28e,_0x55550f,_0x33be2a){const _0x3b195e=_0x36cc4c;let _0x14bd97=_0x55550f[_0x3b195e(0x108)][_0x3b195e(0x10b)](0x0);_0x48f1ce[_0x3b195e(0x102)](_0x4ea28e)===_0x55550f&&_0x48f1ce[_0x3b195e(0x121)](_0x4ea28e);try{await _0x40e268(_0x4ea28e,_0x55550f,_0x33be2a);}finally{_0x33be2a&&_0x1c143f({'key':_0x4ea28e,'reason':_0x33be2a,'type':_0x3b195e(0x124)}),_0x4fc7f0?s(_0x14bd97,l()):_0x137249(_0x14bd97);}}function _0x468b43(_0x2fcf3a,_0x42419e){const _0x3bdbda=_0x36cc4c;c(_0x42419e),_0x42419e[_0x3bdbda(0x135)]=setTimeout(()=>{const _0x4f78d9=_0x3bdbda;_0x42419e[_0x4f78d9(0x119)]||_0x48f1ce[_0x4f78d9(0x102)](_0x2fcf3a)!==_0x42419e||(_0x48f1ce[_0x4f78d9(0x121)](_0x2fcf3a),_0x40e268(_0x2fcf3a,_0x42419e,_0x4f78d9(0x113))[_0x4f78d9(0x130)](()=>_0x1c143f({'key':_0x2fcf3a,'reason':_0x4f78d9(0x113),'type':_0x4f78d9(0x124)}))[_0x4f78d9(0x12d)](()=>void 0x0));},_0x105f3a),_0x42419e[_0x3bdbda(0x135)][_0x3bdbda(0x100)]?.();}async function _0x757412(){const _0x2deac0=_0x36cc4c;for(;_0x48f1ce[_0x2deac0(0x12b)]+_0x5d06bb['size']>_0x17e2f7;){let _0x36f1ab;for(let _0x318a53 of _0x48f1ce)_0x318a53[0x1][_0x2deac0(0x119)]||(!_0x36f1ab||_0x318a53[0x1][_0x2deac0(0x137)]<_0x36f1ab[0x1][_0x2deac0(0x137)])&&(_0x36f1ab=_0x318a53);if(!_0x36f1ab)throw new e(_0x2deac0(0x12a),'Instance\x20pool\x20capacity\x20'+_0x17e2f7+_0x2deac0(0x109));_0x48f1ce[_0x2deac0(0x121)](_0x36f1ab[0x0]),await _0x40e268(_0x36f1ab[0x0],_0x36f1ab[0x1],'lru'),_0x1c143f({'key':_0x36f1ab[0x0],'reason':_0x2deac0(0x131),'type':_0x2deac0(0x124)});}}async function _0x529dc4(){const _0x2bfb89=_0x36cc4c;let _0x56fe11=l(),_0x8fafd0=[..._0x48f1ce['entries']()];for(let [,_0x42b659]of _0x8fafd0)s(_0x42b659[_0x2bfb89(0x108)],_0x56fe11);for(let _0x5c0a8e of _0x5d06bb[_0x2bfb89(0x13a)]())s(_0x5c0a8e,_0x56fe11);_0x48f1ce[_0x2bfb89(0x104)]();let _0x224298=(await Promise[_0x2bfb89(0x11d)]([..._0x8fafd0[_0x2bfb89(0x118)](async([_0x4863ab,_0x213b77])=>await _0x40e268(_0x4863ab,_0x213b77)),..._0x37ccbe]))[_0x2bfb89(0x129)](_0x40fc16=>_0x40fc16[_0x2bfb89(0xfe)]===_0x2bfb89(0x116));if(_0x224298?.[_0x2bfb89(0xfe)]===_0x2bfb89(0x116))throw _0x224298[_0x2bfb89(0x12e)];}function _0x1c143f(_0x10aa99){try{_0x1dc56a['onEvent']?.(_0x10aa99);}catch{}}function _0xee3a27(){if(_0x4fc7f0)throw l();}function _0x137249(_0x548daf){const _0x59d6b4=_0x36cc4c;for(let _0x45513e of _0x548daf)_0xd9329a['acquire'](_0x45513e[_0x59d6b4(0x11b)])[_0x59d6b4(0x130)](_0x45513e[_0x59d6b4(0x111)],_0x45513e['reject']);}async function _0x40e268(_0x1ecebc,_0x166897,_0x5a0066){const _0x1385ef=_0x36cc4c;_0x166897['closed']||(_0x166897[_0x1385ef(0x133)]=!0x0,c(_0x166897),_0x5a0066&&_0x1c143f({'key':_0x1ecebc,'reason':_0x5a0066,'type':_0x1385ef(0x123)}),await _0x1dc56a['factory']['destroy']({'instance':_0x166897['instance'],'key':_0x1ecebc}));}}function i(_0x6e7992,_0x4da3d4){const _0x2e1dac=_0x1c83e2;if(!Number[_0x2e1dac(0xfd)](_0x6e7992)||_0x6e7992<0x0)throw new e(_0x2e1dac(0x107),_0x2e1dac(0x10f));if(!Number[_0x2e1dac(0x12f)](_0x4da3d4)||_0x4da3d4<=0x0)throw new e('INSTANCE_POOL_INVALID_INPUT',_0x2e1dac(0x114));}function a(_0x1d5e5a){const _0x49be0c=_0x1c83e2;if(_0x1d5e5a[_0x49be0c(0x112)][_0x49be0c(0x103)]===0x0)throw new e(_0x49be0c(0x107),'key\x20must\x20not\x20be\x20empty');}function o(_0x265bd1,_0x7dc053){return new Promise((_0x4b0423,_0x2067fc)=>{_0x7dc053['push']({'input':_0x265bd1,'reject':_0x2067fc,'resolve':_0x4b0423});});}function s(_0x39b593,_0x4bf63c){const _0x2a2af6=_0x1c83e2;for(let _0x9ebaab of _0x39b593[_0x2a2af6(0x10b)](0x0))_0x9ebaab[_0x2a2af6(0x139)](_0x4bf63c);}function c(_0x2a0255){const _0x896d78=_0x1c83e2;_0x2a0255['idleTimer']!==void 0x0&&(clearTimeout(_0x2a0255['idleTimer']),delete _0x2a0255[_0x896d78(0x135)]);}function _0x49dc(){const _0x3ffc9=['isFinite','status','1064056KWuVLh','unref','code','get','length','clear','invalidated','create-start','INSTANCE_POOL_INVALID_INPUT','waiters','\x20is\x20occupied\x20by\x20active\x20or\x20loading\x20instances','invalidate','splice','39EKfxVp','set','maxEntries','cache.idleTtlMs\x20must\x20be\x20a\x20finite\x20non-negative\x20number','13854978RbqslK','resolve','key','ttl','cache.maxEntries\x20must\x20be\x20a\x20positive\x20integer','factory','rejected','222xljLoq','map','busy','add','input','destroy','allSettled','Instance\x20pool\x20is\x20closed','219692iDHhCV','1437130BEumuG','delete','3242216CMiyIh','destroy-start','evicted','name','instance','INSTANCE_POOL_CLOSED','105581mOCPBa','find','INSTANCE_POOL_CAPACITY_EXCEEDED','size','create-complete','catch','reason','isSafeInteger','then','lru','now','closed','shift','idleTimer','129908RrMqvF','lastIdleSequence','20llNPEL','reject','values'];_0x49dc=function(){return _0x3ffc9;};return _0x49dc();}function l(){const _0x5c7644=_0x1c83e2;return new e(_0x5c7644(0x127),_0x5c7644(0x11e));}function _0xfd6e(_0xc7c25a,_0x1edd40){_0xc7c25a=_0xc7c25a-0xfd;const _0x49dcf3=_0x49dc();let _0xfd6eb=_0x49dcf3[_0xc7c25a];return _0xfd6eb;}export{e as InstancePoolError,r as createGenericKeyedInstancePool};
1
+ const _0x1ddd6f=_0x30b2;(function(_0x2cc5aa,_0x56403e){const _0x341e9f=_0x30b2,_0x15a3f7=_0x2cc5aa();while(!![]){try{const _0x233132=parseInt(_0x341e9f(0x12d))/0x1*(parseInt(_0x341e9f(0x12e))/0x2)+-parseInt(_0x341e9f(0x10b))/0x3+-parseInt(_0x341e9f(0x108))/0x4+parseInt(_0x341e9f(0x11f))/0x5*(-parseInt(_0x341e9f(0x136))/0x6)+parseInt(_0x341e9f(0x121))/0x7*(-parseInt(_0x341e9f(0x105))/0x8)+parseInt(_0x341e9f(0x115))/0x9+parseInt(_0x341e9f(0x135))/0xa*(parseInt(_0x341e9f(0x137))/0xb);if(_0x233132===_0x56403e)break;else _0x15a3f7['push'](_0x15a3f7['shift']());}catch(_0x251af4){_0x15a3f7['push'](_0x15a3f7['shift']());}}}(_0x382d,0xa45ce));var e=class extends Error{[_0x1ddd6f(0x11a)];constructor(_0x534dac,_0x573eee,_0x47b197){const _0x361edf=_0x1ddd6f;super(_0x573eee,_0x47b197),this[_0x361edf(0x101)]='InstancePoolError',this['code']=_0x534dac;}},t=0x493e0,n=0x14;function r(_0x3db429){const _0x2b67dc=_0x1ddd6f;let _0x140a66=new Map(),_0x431e3b=new Set(),_0x3ce185=new Map(),_0x55f98f=_0x3db429[_0x2b67dc(0x11e)]?.[_0x2b67dc(0x128)]??t,_0x53248a=_0x3db429[_0x2b67dc(0x11e)]?.[_0x2b67dc(0x134)]??n,_0x49b865=!0x1,_0x26887b,_0x271c86=0x0;i(_0x55f98f,_0x53248a);let _0x205528={async 'acquire'(_0x349c41){const _0x224d53=_0x2b67dc;_0x28bf64(),a(_0x349c41);let _0x308a5b=_0x140a66[_0x224d53(0x109)](_0x349c41[_0x224d53(0x113)]);if(_0x308a5b)return _0x308a5b[_0x224d53(0x102)]?await o(_0x349c41,_0x308a5b[_0x224d53(0x11c)]):(c(_0x308a5b),_0x308a5b[_0x224d53(0x102)]=!0x0,_0x455d0d({'key':_0x349c41['key'],'type':_0x224d53(0x116)}),_0xb17e42(_0x349c41[_0x224d53(0x113)],_0x308a5b));let _0x33c949=_0x3ce185[_0x224d53(0x109)](_0x349c41[_0x224d53(0x113)]);if(_0x33c949)return await o(_0x349c41,_0x33c949);let _0x22eff2,_0x5d784b=new Promise(_0x37953b=>{_0x22eff2=_0x37953b;});_0x431e3b['add'](_0x5d784b),_0x3ce185['set'](_0x349c41[_0x224d53(0x113)],[]);let _0x31f38d=Date['now']();_0x455d0d({'key':_0x349c41[_0x224d53(0x113)],'type':_0x224d53(0x104)});try{await _0x43fd81();let _0x5a6bfa=await _0x3db429['factory'][_0x224d53(0x13b)](_0x349c41);if(_0x49b865)throw await _0x3db429['factory'][_0x224d53(0x122)]({'instance':_0x5a6bfa,'key':_0x349c41[_0x224d53(0x113)]}),l();let _0x5c4346={'busy':!0x0,'closed':!0x1,'instance':_0x5a6bfa,'invalidated':!0x1,'lastIdleSequence':0x0,'waiters':_0x3ce185['get'](_0x349c41[_0x224d53(0x113)])??[]};return _0x140a66['set'](_0x349c41[_0x224d53(0x113)],_0x5c4346),_0x455d0d({'durationMs':Date[_0x224d53(0x13d)]()-_0x31f38d,'key':_0x349c41[_0x224d53(0x113)],'type':_0x224d53(0x140)}),_0xb17e42(_0x349c41[_0x224d53(0x113)],_0x5c4346);}catch(_0x189cf4){throw s(_0x3ce185['get'](_0x349c41[_0x224d53(0x113)])??[],_0x189cf4),_0x189cf4;}finally{_0x3ce185[_0x224d53(0x11b)](_0x349c41[_0x224d53(0x113)]),_0x431e3b['delete'](_0x5d784b),_0x22eff2();}},async 'close'(){if(_0x26887b)return await _0x26887b;_0x49b865=!0x0,_0x26887b=_0x409af0(),await _0x26887b;}};return _0x205528;function _0xb17e42(_0x2fdfda,_0x476e5e){const _0xe8bae6=_0x2b67dc;let _0x563f79=!0x1;return{'instance':_0x476e5e[_0xe8bae6(0x130)],'key':_0x2fdfda,async 'invalidate'(){const _0x837c36=_0xe8bae6;_0x563f79||(_0x563f79=!0x0,_0x476e5e[_0x837c36(0x10c)]=!0x0,await _0x3b69bd(_0x2fdfda,_0x476e5e,_0x837c36(0x12a)));},async 'release'(){const _0x42dd62=_0xe8bae6;if(_0x563f79||(_0x563f79=!0x0,_0x476e5e[_0x42dd62(0x10e)]))return;if(_0x476e5e[_0x42dd62(0x10c)]){await _0x3b69bd(_0x2fdfda,_0x476e5e,_0x42dd62(0x12a));return;}let _0x25a0c8=_0x476e5e[_0x42dd62(0x11c)]['shift']();_0x25a0c8?_0x25a0c8[_0x42dd62(0x10d)](_0xb17e42(_0x2fdfda,_0x476e5e)):(_0x476e5e[_0x42dd62(0x102)]=!0x1,_0x476e5e['lastIdleSequence']=++_0x271c86,_0x4be9ee(_0x2fdfda,_0x476e5e));}};}async function _0x3b69bd(_0x4d7d20,_0x4b8e0a,_0x1b862b){const _0x12aee0=_0x2b67dc;let _0x42343c=_0x4b8e0a[_0x12aee0(0x11c)]['splice'](0x0);_0x140a66[_0x12aee0(0x109)](_0x4d7d20)===_0x4b8e0a&&_0x140a66[_0x12aee0(0x11b)](_0x4d7d20);try{await _0x208fa1(_0x4d7d20,_0x4b8e0a,_0x1b862b);}finally{_0x1b862b&&_0x455d0d({'key':_0x4d7d20,'reason':_0x1b862b,'type':_0x12aee0(0x133)}),_0x49b865?s(_0x42343c,l()):_0x1cd9c7(_0x42343c);}}function _0x4be9ee(_0x1c87ec,_0x4eebed){const _0x4dec78=_0x2b67dc;c(_0x4eebed),_0x4eebed['idleTimer']=setTimeout(()=>{const _0x19e915=_0x30b2;_0x4eebed['busy']||_0x140a66[_0x19e915(0x109)](_0x1c87ec)!==_0x4eebed||(_0x140a66[_0x19e915(0x11b)](_0x1c87ec),_0x208fa1(_0x1c87ec,_0x4eebed,'ttl')[_0x19e915(0x11d)](()=>_0x455d0d({'key':_0x1c87ec,'reason':_0x19e915(0x12f),'type':_0x19e915(0x133)}))[_0x19e915(0x10f)](()=>void 0x0));},_0x55f98f),_0x4eebed['idleTimer'][_0x4dec78(0x129)]?.();}async function _0x43fd81(){const _0x1031b9=_0x2b67dc;for(;_0x140a66[_0x1031b9(0x125)]+_0x3ce185[_0x1031b9(0x125)]>_0x53248a;){let _0x4cd315;for(let _0x279024 of _0x140a66)_0x279024[0x1]['busy']||(!_0x4cd315||_0x279024[0x1]['lastIdleSequence']<_0x4cd315[0x1][_0x1031b9(0x138)])&&(_0x4cd315=_0x279024);if(!_0x4cd315)throw new e('INSTANCE_POOL_CAPACITY_EXCEEDED',_0x1031b9(0x12b)+_0x53248a+'\x20is\x20occupied\x20by\x20active\x20or\x20loading\x20instances');_0x140a66[_0x1031b9(0x11b)](_0x4cd315[0x0]),await _0x208fa1(_0x4cd315[0x0],_0x4cd315[0x1],_0x1031b9(0x10a)),_0x455d0d({'key':_0x4cd315[0x0],'reason':'lru','type':_0x1031b9(0x133)});}}async function _0x409af0(){const _0x233f4c=_0x2b67dc;let _0xe6599c=l(),_0x56beb2=[..._0x140a66[_0x233f4c(0x124)]()];for(let [,_0x51146a]of _0x56beb2)s(_0x51146a[_0x233f4c(0x11c)],_0xe6599c);for(let _0x6e975b of _0x3ce185[_0x233f4c(0x13a)]())s(_0x6e975b,_0xe6599c);_0x140a66[_0x233f4c(0x123)]();let _0x1ba4ad=(await Promise[_0x233f4c(0x110)]([..._0x56beb2[_0x233f4c(0x119)](async([_0x5027e3,_0x13997b])=>await _0x208fa1(_0x5027e3,_0x13997b)),..._0x431e3b]))[_0x233f4c(0x127)](_0x1d72ee=>_0x1d72ee[_0x233f4c(0x118)]===_0x233f4c(0x132));if(_0x1ba4ad?.[_0x233f4c(0x118)]===_0x233f4c(0x132))throw _0x1ba4ad[_0x233f4c(0x13c)];}function _0x455d0d(_0x23bed7){const _0x11c7f6=_0x2b67dc;try{_0x3db429[_0x11c7f6(0x139)]?.(_0x23bed7);}catch{}}function _0x28bf64(){if(_0x49b865)throw l();}function _0x1cd9c7(_0x54c22f){const _0x331b10=_0x2b67dc;for(let _0x4dbb6f of _0x54c22f)_0x205528['acquire'](_0x4dbb6f[_0x331b10(0x107)])[_0x331b10(0x11d)](_0x4dbb6f['resolve'],_0x4dbb6f[_0x331b10(0x120)]);}async function _0x208fa1(_0x4211bf,_0xbaf7c1,_0x1658db){const _0x261074=_0x2b67dc;_0xbaf7c1['closed']||(_0xbaf7c1['closed']=!0x0,c(_0xbaf7c1),_0x1658db&&_0x455d0d({'key':_0x4211bf,'reason':_0x1658db,'type':_0x261074(0x126)}),await _0x3db429[_0x261074(0x106)][_0x261074(0x122)]({'instance':_0xbaf7c1['instance'],'key':_0x4211bf}));}}function i(_0x16833a,_0x57e993){const _0x1579b6=_0x1ddd6f;if(!Number['isFinite'](_0x16833a)||_0x16833a<0x0)throw new e(_0x1579b6(0x114),_0x1579b6(0x13f));if(!Number[_0x1579b6(0x103)](_0x57e993)||_0x57e993<=0x0)throw new e(_0x1579b6(0x114),'cache.maxEntries\x20must\x20be\x20a\x20positive\x20integer');}function _0x30b2(_0x2a372c,_0x4720cd){_0x2a372c=_0x2a372c-0x101;const _0x382dab=_0x382d();let _0x30b2ae=_0x382dab[_0x2a372c];return _0x30b2ae;}function a(_0x1f81e8){const _0x16d25b=_0x1ddd6f;if(_0x1f81e8[_0x16d25b(0x113)][_0x16d25b(0x131)]===0x0)throw new e(_0x16d25b(0x114),_0x16d25b(0x13e));}function o(_0x5d08dd,_0x3207d3){return new Promise((_0x29bdb4,_0x5df8c8)=>{const _0x2b6f60=_0x30b2;_0x3207d3[_0x2b6f60(0x117)]({'input':_0x5d08dd,'reject':_0x5df8c8,'resolve':_0x29bdb4});});}function s(_0x3eb7a3,_0x34ee81){for(let _0x58522b of _0x3eb7a3['splice'](0x0))_0x58522b['reject'](_0x34ee81);}function c(_0x1b08dc){const _0x46f1e7=_0x1ddd6f;_0x1b08dc[_0x46f1e7(0x111)]!==void 0x0&&(clearTimeout(_0x1b08dc[_0x46f1e7(0x111)]),delete _0x1b08dc[_0x46f1e7(0x111)]);}function l(){const _0x61d524=_0x1ddd6f;return new e(_0x61d524(0x12c),_0x61d524(0x112));}export{e as InstancePoolError,r as createGenericKeyedInstancePool};function _0x382d(){const _0x38dc6f=['closed','catch','allSettled','idleTimer','Instance\x20pool\x20is\x20closed','key','INSTANCE_POOL_INVALID_INPUT','11103606kleoWQ','cache-hit','push','status','map','code','delete','waiters','then','cache','13535jdSWNK','reject','72023HiXCIB','destroy','clear','entries','size','destroy-start','find','idleTtlMs','unref','invalidate','Instance\x20pool\x20capacity\x20','INSTANCE_POOL_CLOSED','1jBRXdK','1586098UgIMCp','ttl','instance','length','rejected','evicted','maxEntries','1819010sOqRvk','1626ORZbHL','22XTECLa','lastIdleSequence','onEvent','values','create','reason','now','key\x20must\x20not\x20be\x20empty','cache.idleTtlMs\x20must\x20be\x20a\x20finite\x20non-negative\x20number','create-complete','name','busy','isSafeInteger','create-start','472msAsHK','factory','input','536940zGblgK','get','lru','727416QjMXWn','invalidated','resolve'];_0x382d=function(){return _0x38dc6f;};return _0x382d();}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/generic-keyed-instance-pool",
3
3
  "type": "module",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",