@univer-cli/generic-keyed-instance-pool 1.6.2 → 1.6.3

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
- (function(_0x2cfeca,_0xcc762){const _0x4c2c84=_0x4ee2,_0x4fac43=_0x2cfeca();while(!![]){try{const _0x34432f=-parseInt(_0x4c2c84(0x188))/0x1*(-parseInt(_0x4c2c84(0x19d))/0x2)+parseInt(_0x4c2c84(0x1a5))/0x3+-parseInt(_0x4c2c84(0x193))/0x4+parseInt(_0x4c2c84(0x194))/0x5*(-parseInt(_0x4c2c84(0x185))/0x6)+-parseInt(_0x4c2c84(0x184))/0x7+parseInt(_0x4c2c84(0x18e))/0x8*(-parseInt(_0x4c2c84(0x1a1))/0x9)+parseInt(_0x4c2c84(0x1b1))/0xa;if(_0x34432f===_0xcc762)break;else _0x4fac43['push'](_0x4fac43['shift']());}catch(_0x58b745){_0x4fac43['push'](_0x4fac43['shift']());}}}(_0x12c8,0xb4a73));var e=class extends Error{['code'];constructor(_0x477650,_0xf2509a,_0x23527e){const _0x56d6a2=_0x4ee2;super(_0xf2509a,_0x23527e),this[_0x56d6a2(0x186)]=_0x56d6a2(0x1a4),this[_0x56d6a2(0x19c)]=_0x477650;}},t=0x493e0,n=0x14;function r(_0x5b8597){const _0x57c047=_0x4ee2;let _0x496955=new Map(),_0x33b1b5=new Set(),_0x3d384e=new Map(),_0x3407bb=_0x5b8597[_0x57c047(0x195)]?.[_0x57c047(0x1ab)]??t,_0x3b46c1=_0x5b8597[_0x57c047(0x195)]?.[_0x57c047(0x199)]??n,_0x594f39=!0x1,_0x2cf819,_0x131e40=0x0;i(_0x3407bb,_0x3b46c1);let _0x18ff15={async 'acquire'(_0x3d859a){const _0x145b2a=_0x57c047;_0x424d5c(),a(_0x3d859a);let _0x2e0a72=_0x496955[_0x145b2a(0x19e)](_0x3d859a[_0x145b2a(0x1b0)]);if(_0x2e0a72)return _0x2e0a72['busy']?await o(_0x3d859a,_0x2e0a72[_0x145b2a(0x1b9)]):(c(_0x2e0a72),_0x2e0a72['busy']=!0x0,_0x5d9951({'key':_0x3d859a[_0x145b2a(0x1b0)],'type':_0x145b2a(0x1b2)}),_0x1e14de(_0x3d859a['key'],_0x2e0a72));let _0x34449c=_0x3d384e[_0x145b2a(0x19e)](_0x3d859a[_0x145b2a(0x1b0)]);if(_0x34449c)return await o(_0x3d859a,_0x34449c);let _0x1c4652,_0x4598e4=new Promise(_0x3d1090=>{_0x1c4652=_0x3d1090;});_0x33b1b5[_0x145b2a(0x1b4)](_0x4598e4),_0x3d384e[_0x145b2a(0x1b8)](_0x3d859a['key'],[]);let _0x447053=Date[_0x145b2a(0x197)]();_0x5d9951({'key':_0x3d859a[_0x145b2a(0x1b0)],'type':'create-start'});try{await _0xaca06d();let _0x5efcdb=await _0x5b8597[_0x145b2a(0x1ba)][_0x145b2a(0x1bb)](_0x3d859a);if(_0x594f39)throw await _0x5b8597['factory']['destroy']({'instance':_0x5efcdb,'key':_0x3d859a['key']}),l();let _0x2e7582={'busy':!0x0,'closed':!0x1,'instance':_0x5efcdb,'invalidated':!0x1,'lastIdleSequence':0x0,'waiters':_0x3d384e[_0x145b2a(0x19e)](_0x3d859a[_0x145b2a(0x1b0)])??[]};return _0x496955['set'](_0x3d859a[_0x145b2a(0x1b0)],_0x2e7582),_0x5d9951({'durationMs':Date[_0x145b2a(0x197)]()-_0x447053,'key':_0x3d859a['key'],'type':_0x145b2a(0x19f)}),_0x1e14de(_0x3d859a['key'],_0x2e7582);}catch(_0x3bbd15){throw s(_0x3d384e[_0x145b2a(0x19e)](_0x3d859a[_0x145b2a(0x1b0)])??[],_0x3bbd15),_0x3bbd15;}finally{_0x3d384e['delete'](_0x3d859a[_0x145b2a(0x1b0)]),_0x33b1b5[_0x145b2a(0x1b6)](_0x4598e4),_0x1c4652();}},async 'close'(){if(_0x2cf819)return await _0x2cf819;_0x594f39=!0x0,_0x2cf819=_0x55df70(),await _0x2cf819;}};return _0x18ff15;function _0x1e14de(_0xb8ac55,_0x2d99cc){const _0x1f3158=_0x57c047;let _0x52d2cf=!0x1;return{'instance':_0x2d99cc[_0x1f3158(0x1a2)],'key':_0xb8ac55,async 'invalidate'(){const _0x4e560d=_0x1f3158;_0x52d2cf||(_0x52d2cf=!0x0,_0x2d99cc[_0x4e560d(0x189)]=!0x0,await _0x37fdc8(_0xb8ac55,_0x2d99cc,_0x4e560d(0x191)));},async 'release'(){const _0x3ed7a1=_0x1f3158;if(_0x52d2cf||(_0x52d2cf=!0x0,_0x2d99cc['closed']))return;if(_0x2d99cc[_0x3ed7a1(0x189)]){await _0x37fdc8(_0xb8ac55,_0x2d99cc,_0x3ed7a1(0x191));return;}let _0xa247f7=_0x2d99cc[_0x3ed7a1(0x1b9)][_0x3ed7a1(0x18d)]();_0xa247f7?_0xa247f7['resolve'](_0x1e14de(_0xb8ac55,_0x2d99cc)):(_0x2d99cc[_0x3ed7a1(0x19a)]=!0x1,_0x2d99cc[_0x3ed7a1(0x183)]=++_0x131e40,_0x1354b9(_0xb8ac55,_0x2d99cc));}};}async function _0x37fdc8(_0x2820e0,_0x53bab4,_0xca8a71){const _0x1b13f2=_0x57c047;let _0x97683d=_0x53bab4['waiters']['splice'](0x0);_0x496955['get'](_0x2820e0)===_0x53bab4&&_0x496955[_0x1b13f2(0x1b6)](_0x2820e0);try{await _0x10dd13(_0x2820e0,_0x53bab4,_0xca8a71);}finally{_0xca8a71&&_0x5d9951({'key':_0x2820e0,'reason':_0xca8a71,'type':_0x1b13f2(0x182)}),_0x594f39?s(_0x97683d,l()):_0x5e0f58(_0x97683d);}}function _0x1354b9(_0xf38aa7,_0x17a850){const _0x54d525=_0x57c047;c(_0x17a850),_0x17a850[_0x54d525(0x190)]=setTimeout(()=>{const _0x449bef=_0x54d525;_0x17a850[_0x449bef(0x19a)]||_0x496955['get'](_0xf38aa7)!==_0x17a850||(_0x496955[_0x449bef(0x1b6)](_0xf38aa7),_0x10dd13(_0xf38aa7,_0x17a850,'ttl')[_0x449bef(0x1b3)](()=>_0x5d9951({'key':_0xf38aa7,'reason':'ttl','type':_0x449bef(0x182)}))[_0x449bef(0x198)](()=>void 0x0));},_0x3407bb),_0x17a850[_0x54d525(0x190)]['unref']?.();}async function _0xaca06d(){const _0x1b1992=_0x57c047;for(;_0x496955[_0x1b1992(0x18f)]+_0x3d384e[_0x1b1992(0x18f)]>_0x3b46c1;){let _0x5b3d8e;for(let _0x13478b of _0x496955)_0x13478b[0x1][_0x1b1992(0x19a)]||(!_0x5b3d8e||_0x13478b[0x1][_0x1b1992(0x183)]<_0x5b3d8e[0x1][_0x1b1992(0x183)])&&(_0x5b3d8e=_0x13478b);if(!_0x5b3d8e)throw new e(_0x1b1992(0x192),'Instance\x20pool\x20capacity\x20'+_0x3b46c1+_0x1b1992(0x1b5));_0x496955['delete'](_0x5b3d8e[0x0]),await _0x10dd13(_0x5b3d8e[0x0],_0x5b3d8e[0x1],_0x1b1992(0x196)),_0x5d9951({'key':_0x5b3d8e[0x0],'reason':'lru','type':_0x1b1992(0x182)});}}async function _0x55df70(){const _0x4397f0=_0x57c047;let _0x4faf9f=l(),_0x5e8dfa=[..._0x496955[_0x4397f0(0x1a8)]()];for(let [,_0x571442]of _0x5e8dfa)s(_0x571442['waiters'],_0x4faf9f);for(let _0x4bbdca of _0x3d384e[_0x4397f0(0x1a3)]())s(_0x4bbdca,_0x4faf9f);_0x496955['clear']();let _0x4bbc86=(await Promise[_0x4397f0(0x180)]([..._0x5e8dfa[_0x4397f0(0x1ad)](async([_0x5af74a,_0x5e2ce2])=>await _0x10dd13(_0x5af74a,_0x5e2ce2)),..._0x33b1b5]))['find'](_0x124243=>_0x124243[_0x4397f0(0x181)]===_0x4397f0(0x1b7));if(_0x4bbc86?.[_0x4397f0(0x181)]===_0x4397f0(0x1b7))throw _0x4bbc86[_0x4397f0(0x1aa)];}function _0x5d9951(_0x583c29){const _0x552bd5=_0x57c047;try{_0x5b8597[_0x552bd5(0x1ae)]?.(_0x583c29);}catch{}}function _0x424d5c(){if(_0x594f39)throw l();}function _0x5e0f58(_0x43140e){const _0x1ee17b=_0x57c047;for(let _0x70786b of _0x43140e)_0x18ff15[_0x1ee17b(0x17f)](_0x70786b[_0x1ee17b(0x1bc)])[_0x1ee17b(0x1b3)](_0x70786b['resolve'],_0x70786b['reject']);}async function _0x10dd13(_0x3ce2bc,_0x55529a,_0x26190d){const _0x23ccba=_0x57c047;_0x55529a[_0x23ccba(0x17e)]||(_0x55529a[_0x23ccba(0x17e)]=!0x0,c(_0x55529a),_0x26190d&&_0x5d9951({'key':_0x3ce2bc,'reason':_0x26190d,'type':_0x23ccba(0x18a)}),await _0x5b8597[_0x23ccba(0x1ba)][_0x23ccba(0x18b)]({'instance':_0x55529a[_0x23ccba(0x1a2)],'key':_0x3ce2bc}));}}function _0x4ee2(_0x47a087,_0x182f88){_0x47a087=_0x47a087-0x17d;const _0x12c8da=_0x12c8();let _0x4ee2bd=_0x12c8da[_0x47a087];return _0x4ee2bd;}function i(_0x4c1e54,_0x467dd7){const _0x12a329=_0x4ee2;if(!Number['isFinite'](_0x4c1e54)||_0x4c1e54<0x0)throw new e(_0x12a329(0x19b),_0x12a329(0x1a6));if(!Number[_0x12a329(0x1a0)](_0x467dd7)||_0x467dd7<=0x0)throw new e('INSTANCE_POOL_INVALID_INPUT',_0x12a329(0x1a7));}function _0x12c8(){const _0x5552cf=['lru','now','catch','maxEntries','busy','INSTANCE_POOL_INVALID_INPUT','code','2349608HsnnTZ','get','create-complete','isSafeInteger','62073VSfylR','instance','values','InstancePoolError','1422624ThnDXy','cache.idleTtlMs\x20must\x20be\x20a\x20finite\x20non-negative\x20number','cache.maxEntries\x20must\x20be\x20a\x20positive\x20integer','entries','push','reason','idleTtlMs','INSTANCE_POOL_CLOSED','map','onEvent','reject','key','37818480bpNksY','cache-hit','then','add','\x20is\x20occupied\x20by\x20active\x20or\x20loading\x20instances','delete','rejected','set','waiters','factory','create','input','Instance\x20pool\x20is\x20closed','closed','acquire','allSettled','status','evicted','lastIdleSequence','8797845GqzEGf','12fgirWF','name','key\x20must\x20not\x20be\x20empty','1nQvypR','invalidated','destroy-start','destroy','splice','shift','1192PXwPxu','size','idleTimer','invalidate','INSTANCE_POOL_CAPACITY_EXCEEDED','5469404EsqtsM','2597665TKYctp','cache'];_0x12c8=function(){return _0x5552cf;};return _0x12c8();}function a(_0x35f35e){const _0x5b5198=_0x4ee2;if(_0x35f35e[_0x5b5198(0x1b0)]['length']===0x0)throw new e(_0x5b5198(0x19b),_0x5b5198(0x187));}function o(_0x8657ea,_0x29329a){return new Promise((_0x2c91bc,_0x1d1774)=>{const _0x5bc502=_0x4ee2;_0x29329a[_0x5bc502(0x1a9)]({'input':_0x8657ea,'reject':_0x1d1774,'resolve':_0x2c91bc});});}function s(_0x9b4894,_0x574f93){const _0x312a1b=_0x4ee2;for(let _0x284f83 of _0x9b4894[_0x312a1b(0x18c)](0x0))_0x284f83[_0x312a1b(0x1af)](_0x574f93);}function c(_0xb5ddd7){const _0x4b47f9=_0x4ee2;_0xb5ddd7['idleTimer']!==void 0x0&&(clearTimeout(_0xb5ddd7['idleTimer']),delete _0xb5ddd7[_0x4b47f9(0x190)]);}function l(){const _0x261fc4=_0x4ee2;return new e(_0x261fc4(0x1ac),_0x261fc4(0x17d));}export{e as InstancePoolError,r as createGenericKeyedInstancePool};
1
+ const _0x31ff8f=_0x5d00;(function(_0x2cd3ea,_0x59657a){const _0x1de192=_0x5d00,_0x375696=_0x2cd3ea();while(!![]){try{const _0xa5e48e=parseInt(_0x1de192(0x14f))/0x1+-parseInt(_0x1de192(0x140))/0x2+-parseInt(_0x1de192(0x162))/0x3+-parseInt(_0x1de192(0x142))/0x4+-parseInt(_0x1de192(0x16f))/0x5+-parseInt(_0x1de192(0x139))/0x6*(parseInt(_0x1de192(0x154))/0x7)+-parseInt(_0x1de192(0x137))/0x8*(-parseInt(_0x1de192(0x147))/0x9);if(_0xa5e48e===_0x59657a)break;else _0x375696['push'](_0x375696['shift']());}catch(_0x4635da){_0x375696['push'](_0x375696['shift']());}}}(_0x411d,0xe45d9));function _0x5d00(_0x476857,_0x43a0dd){_0x476857=_0x476857-0x135;const _0x411dba=_0x411d();let _0x5d0033=_0x411dba[_0x476857];return _0x5d0033;}var e=class extends Error{[_0x31ff8f(0x14c)];constructor(_0xc5e08e,_0x3e889a,_0x42f50b){const _0xd7c159=_0x31ff8f;super(_0x3e889a,_0x42f50b),this[_0xd7c159(0x16c)]=_0xd7c159(0x15e),this[_0xd7c159(0x14c)]=_0xc5e08e;}},t=0x493e0,n=0x14;function r(_0xcb30a){const _0x3860a7=_0x31ff8f;let _0x16b199=new Map(),_0x1306ac=new Set(),_0xe4826d=new Map(),_0x44e99f=_0xcb30a[_0x3860a7(0x14e)]?.[_0x3860a7(0x13c)]??t,_0xdd85fd=_0xcb30a[_0x3860a7(0x14e)]?.['maxEntries']??n,_0xcd429d=!0x1,_0x256444,_0x304443=0x0;i(_0x44e99f,_0xdd85fd);let _0x1d20ab={async 'acquire'(_0xa584aa){const _0x4b9693=_0x3860a7;_0x74f849(),a(_0xa584aa);let _0x2af43a=_0x16b199[_0x4b9693(0x171)](_0xa584aa[_0x4b9693(0x15b)]);if(_0x2af43a)return _0x2af43a[_0x4b9693(0x16b)]?await o(_0xa584aa,_0x2af43a[_0x4b9693(0x148)]):(c(_0x2af43a),_0x2af43a[_0x4b9693(0x16b)]=!0x0,_0x1eda8f({'key':_0xa584aa[_0x4b9693(0x15b)],'type':_0x4b9693(0x172)}),_0x236c74(_0xa584aa[_0x4b9693(0x15b)],_0x2af43a));let _0x194307=_0xe4826d[_0x4b9693(0x171)](_0xa584aa[_0x4b9693(0x15b)]);if(_0x194307)return await o(_0xa584aa,_0x194307);let _0x5bede5,_0x4321d0=new Promise(_0x39c8b9=>{_0x5bede5=_0x39c8b9;});_0x1306ac['add'](_0x4321d0),_0xe4826d[_0x4b9693(0x156)](_0xa584aa[_0x4b9693(0x15b)],[]);let _0x593c15=Date[_0x4b9693(0x174)]();_0x1eda8f({'key':_0xa584aa[_0x4b9693(0x15b)],'type':_0x4b9693(0x153)});try{await _0xbc2236();let _0x117e28=await _0xcb30a[_0x4b9693(0x135)][_0x4b9693(0x157)](_0xa584aa);if(_0xcd429d)throw await _0xcb30a[_0x4b9693(0x135)][_0x4b9693(0x144)]({'instance':_0x117e28,'key':_0xa584aa[_0x4b9693(0x15b)]}),l();let _0x58ec01={'busy':!0x0,'closed':!0x1,'instance':_0x117e28,'invalidated':!0x1,'lastIdleSequence':0x0,'waiters':_0xe4826d['get'](_0xa584aa[_0x4b9693(0x15b)])??[]};return _0x16b199[_0x4b9693(0x156)](_0xa584aa[_0x4b9693(0x15b)],_0x58ec01),_0x1eda8f({'durationMs':Date[_0x4b9693(0x174)]()-_0x593c15,'key':_0xa584aa[_0x4b9693(0x15b)],'type':_0x4b9693(0x152)}),_0x236c74(_0xa584aa[_0x4b9693(0x15b)],_0x58ec01);}catch(_0x1ac3aa){throw s(_0xe4826d[_0x4b9693(0x171)](_0xa584aa[_0x4b9693(0x15b)])??[],_0x1ac3aa),_0x1ac3aa;}finally{_0xe4826d[_0x4b9693(0x160)](_0xa584aa[_0x4b9693(0x15b)]),_0x1306ac[_0x4b9693(0x160)](_0x4321d0),_0x5bede5();}},async 'close'(){if(_0x256444)return await _0x256444;_0xcd429d=!0x0,_0x256444=_0x4fb48d(),await _0x256444;}};return _0x1d20ab;function _0x236c74(_0x3a6738,_0x61a697){const _0x5e61b8=_0x3860a7;let _0x545b93=!0x1;return{'instance':_0x61a697[_0x5e61b8(0x16a)],'key':_0x3a6738,async 'invalidate'(){const _0x59781f=_0x5e61b8;_0x545b93||(_0x545b93=!0x0,_0x61a697[_0x59781f(0x14a)]=!0x0,await _0x242730(_0x3a6738,_0x61a697,_0x59781f(0x15f)));},async 'release'(){const _0x46d6da=_0x5e61b8;if(_0x545b93||(_0x545b93=!0x0,_0x61a697[_0x46d6da(0x164)]))return;if(_0x61a697[_0x46d6da(0x14a)]){await _0x242730(_0x3a6738,_0x61a697,'invalidate');return;}let _0x4a61e8=_0x61a697[_0x46d6da(0x148)][_0x46d6da(0x145)]();_0x4a61e8?_0x4a61e8[_0x46d6da(0x151)](_0x236c74(_0x3a6738,_0x61a697)):(_0x61a697[_0x46d6da(0x16b)]=!0x1,_0x61a697[_0x46d6da(0x141)]=++_0x304443,_0x1f8160(_0x3a6738,_0x61a697));}};}async function _0x242730(_0x139132,_0x36acfb,_0x2f549e){const _0x50b81c=_0x3860a7;let _0x3ae185=_0x36acfb[_0x50b81c(0x148)][_0x50b81c(0x163)](0x0);_0x16b199[_0x50b81c(0x171)](_0x139132)===_0x36acfb&&_0x16b199['delete'](_0x139132);try{await _0x24ff9a(_0x139132,_0x36acfb,_0x2f549e);}finally{_0x2f549e&&_0x1eda8f({'key':_0x139132,'reason':_0x2f549e,'type':_0x50b81c(0x16d)}),_0xcd429d?s(_0x3ae185,l()):_0x34ce19(_0x3ae185);}}function _0x1f8160(_0x511ddb,_0x8f8d85){const _0x74705e=_0x3860a7;c(_0x8f8d85),_0x8f8d85[_0x74705e(0x15c)]=setTimeout(()=>{const _0x5f5061=_0x74705e;_0x8f8d85[_0x5f5061(0x16b)]||_0x16b199[_0x5f5061(0x171)](_0x511ddb)!==_0x8f8d85||(_0x16b199['delete'](_0x511ddb),_0x24ff9a(_0x511ddb,_0x8f8d85,_0x5f5061(0x15d))[_0x5f5061(0x143)](()=>_0x1eda8f({'key':_0x511ddb,'reason':_0x5f5061(0x15d),'type':_0x5f5061(0x16d)}))[_0x5f5061(0x138)](()=>void 0x0));},_0x44e99f),_0x8f8d85[_0x74705e(0x15c)][_0x74705e(0x150)]?.();}async function _0xbc2236(){const _0x379b10=_0x3860a7;for(;_0x16b199['size']+_0xe4826d[_0x379b10(0x165)]>_0xdd85fd;){let _0x53034a;for(let _0x11f6fc of _0x16b199)_0x11f6fc[0x1][_0x379b10(0x16b)]||(!_0x53034a||_0x11f6fc[0x1]['lastIdleSequence']<_0x53034a[0x1]['lastIdleSequence'])&&(_0x53034a=_0x11f6fc);if(!_0x53034a)throw new e(_0x379b10(0x13b),_0x379b10(0x177)+_0xdd85fd+_0x379b10(0x13f));_0x16b199['delete'](_0x53034a[0x0]),await _0x24ff9a(_0x53034a[0x0],_0x53034a[0x1],_0x379b10(0x169)),_0x1eda8f({'key':_0x53034a[0x0],'reason':_0x379b10(0x169),'type':_0x379b10(0x16d)});}}async function _0x4fb48d(){const _0x5c621f=_0x3860a7;let _0x4298ba=l(),_0x4cb5b8=[..._0x16b199['entries']()];for(let [,_0x4d9ec6]of _0x4cb5b8)s(_0x4d9ec6[_0x5c621f(0x148)],_0x4298ba);for(let _0x36ea29 of _0xe4826d[_0x5c621f(0x16e)]())s(_0x36ea29,_0x4298ba);_0x16b199[_0x5c621f(0x13d)]();let _0x31f885=(await Promise[_0x5c621f(0x13a)]([..._0x4cb5b8[_0x5c621f(0x14d)](async([_0x39be26,_0x52d3d1])=>await _0x24ff9a(_0x39be26,_0x52d3d1)),..._0x1306ac]))[_0x5c621f(0x170)](_0x5899cf=>_0x5899cf[_0x5c621f(0x159)]===_0x5c621f(0x167));if(_0x31f885?.[_0x5c621f(0x159)]==='rejected')throw _0x31f885[_0x5c621f(0x161)];}function _0x1eda8f(_0x485215){const _0x44842d=_0x3860a7;try{_0xcb30a[_0x44842d(0x13e)]?.(_0x485215);}catch{}}function _0x74f849(){if(_0xcd429d)throw l();}function _0x34ce19(_0x1ea30a){const _0x24b7f3=_0x3860a7;for(let _0x255934 of _0x1ea30a)_0x1d20ab[_0x24b7f3(0x168)](_0x255934['input'])[_0x24b7f3(0x143)](_0x255934[_0x24b7f3(0x151)],_0x255934[_0x24b7f3(0x158)]);}async function _0x24ff9a(_0xbac973,_0x3501c8,_0x37eca5){const _0x275dc9=_0x3860a7;_0x3501c8[_0x275dc9(0x164)]||(_0x3501c8[_0x275dc9(0x164)]=!0x0,c(_0x3501c8),_0x37eca5&&_0x1eda8f({'key':_0xbac973,'reason':_0x37eca5,'type':_0x275dc9(0x166)}),await _0xcb30a[_0x275dc9(0x135)][_0x275dc9(0x144)]({'instance':_0x3501c8[_0x275dc9(0x16a)],'key':_0xbac973}));}}function i(_0x20a2e4,_0x34bb9d){const _0x39af72=_0x31ff8f;if(!Number[_0x39af72(0x15a)](_0x20a2e4)||_0x20a2e4<0x0)throw new e(_0x39af72(0x173),'cache.idleTtlMs\x20must\x20be\x20a\x20finite\x20non-negative\x20number');if(!Number[_0x39af72(0x176)](_0x34bb9d)||_0x34bb9d<=0x0)throw new e(_0x39af72(0x173),_0x39af72(0x155));}function _0x411d(){const _0x117035=['resolve','create-complete','create-start','9237816aiYGwP','cache.maxEntries\x20must\x20be\x20a\x20positive\x20integer','set','create','reject','status','isFinite','key','idleTimer','ttl','InstancePoolError','invalidate','delete','reason','4185327hPYRYb','splice','closed','size','destroy-start','rejected','acquire','lru','instance','busy','name','evicted','values','122345SsWvPa','find','get','cache-hit','INSTANCE_POOL_INVALID_INPUT','now','INSTANCE_POOL_CLOSED','isSafeInteger','Instance\x20pool\x20capacity\x20','factory','Instance\x20pool\x20is\x20closed','344GwXmGi','catch','6OWbMZQ','allSettled','INSTANCE_POOL_CAPACITY_EXCEEDED','idleTtlMs','clear','onEvent','\x20is\x20occupied\x20by\x20active\x20or\x20loading\x20instances','1315760gQADJF','lastIdleSequence','2138324venIpW','then','destroy','shift','key\x20must\x20not\x20be\x20empty','753489YHRYJJ','waiters','length','invalidated','push','code','map','cache','1267109efDpdV','unref'];_0x411d=function(){return _0x117035;};return _0x411d();}function a(_0xf49ca1){const _0x3b31c4=_0x31ff8f;if(_0xf49ca1[_0x3b31c4(0x15b)][_0x3b31c4(0x149)]===0x0)throw new e(_0x3b31c4(0x173),_0x3b31c4(0x146));}function o(_0x33368f,_0x38b147){return new Promise((_0x3f7964,_0x4102ad)=>{const _0x58f680=_0x5d00;_0x38b147[_0x58f680(0x14b)]({'input':_0x33368f,'reject':_0x4102ad,'resolve':_0x3f7964});});}function s(_0x51f6c3,_0x37ed4d){const _0x4ec6b7=_0x31ff8f;for(let _0x5591f5 of _0x51f6c3[_0x4ec6b7(0x163)](0x0))_0x5591f5[_0x4ec6b7(0x158)](_0x37ed4d);}function c(_0x395700){const _0x2e99e0=_0x31ff8f;_0x395700[_0x2e99e0(0x15c)]!==void 0x0&&(clearTimeout(_0x395700['idleTimer']),delete _0x395700[_0x2e99e0(0x15c)]);}function l(){const _0x153ad4=_0x31ff8f;return new e(_0x153ad4(0x175),_0x153ad4(0x136));}export{e as InstancePoolError,r as createGenericKeyedInstancePool};
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.2",
4
+ "version": "1.6.3",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",